ab50b10d1b
- use new build system for generate static files
115 lines
800 KiB
JavaScript
115 lines
800 KiB
JavaScript
/*!
|
||
* jQuery JavaScript Library v2.1.4
|
||
* http://jquery.com/
|
||
*
|
||
* Includes Sizzle.js
|
||
* http://sizzlejs.com/
|
||
*
|
||
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
|
||
* Released under the MIT license
|
||
* http://jquery.org/license
|
||
*
|
||
* Date: 2015-04-28T16:01Z
|
||
*/
|
||
!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="length"in t&&t.length,n=Q.type(t);return"function"===n||Q.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(Q.isFunction(e))return Q.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return Q.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(st.test(e))return Q.filter(e,t,n);e=Q.filter(e,t)}return Q.grep(t,function(t){return Y.call(e,t)>=0!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e=ht[t]={};return Q.each(t.match(pt)||[],function(t,n){e[n]=!0}),e}function o(){K.removeEventListener("DOMContentLoaded",o,!1),t.removeEventListener("load",o,!1),Q.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Q.expando+s.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(xt,"-$1").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:bt.test(n)?Q.parseJSON(n):n}catch(i){}yt.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 Q.nodeName(t,"table")&&Q.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=jt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var n=0,r=t.length;r>n;n++)vt.set(t[n],"globalEval",!e||vt.get(e[n],"globalEval"))}function m(t,e){var n,r,i,a,o,s,u,l;if(1===e.nodeType){if(vt.hasData(t)&&(a=vt.access(t),o=vt.set(e,a),l=a.events)){delete o.handle,o.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)Q.event.add(e,i,l[i][n])}yt.hasData(t)&&(s=yt.access(t),u=Q.extend({},s),yt.set(e,u))}}function v(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&Q.nodeName(t,e)?Q.merge([t],n):n}function y(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Mt.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function b(e,n){var r,i=Q(n.createElement(e)).appendTo(n.body),a=t.getDefaultComputedStyle&&(r=t.getDefaultComputedStyle(i[0]))?r.display:Q.css(i[0],"display");return i.detach(),a}function x(t){var e=K,n=Ht[t];return n||(n=b(t,e),"none"!==n&&n||(qt=(qt||Q("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=qt[0].contentDocument,e.write(),e.close(),n=b(t,e),qt.detach()),Ht[t]=n),n}function $(t,e,n){var r,i,a,o,s=t.style;return n=n||Wt(t),n&&(o=n.getPropertyValue(e)||n[e]),n&&(""!==o||Q.contains(t.ownerDocument,t)||(o=Q.style(t,e)),Rt.test(o)&&Vt.test(e)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function w(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function k(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),r=e,i=Xt.length;i--;)if(e=Xt[i]+n,e in t)return e;return r}function M(t,e,n){var r=Ut.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function C(t,e,n,r,i){for(var a=n===(r?"border":"content")?4:"width"===e?1:0,o=0;4>a;a+=2)"margin"===n&&(o+=Q.css(t,n+wt[a],!0,i)),r?("content"===n&&(o-=Q.css(t,"padding"+wt[a],!0,i)),"margin"!==n&&(o-=Q.css(t,"border"+wt[a]+"Width",!0,i))):(o+=Q.css(t,"padding"+wt[a],!0,i),"padding"!==n&&(o+=Q.css(t,"border"+wt[a]+"Width",!0,i)));return o}function S(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,a=Wt(t),o="border-box"===Q.css(t,"boxSizing",!1,a);if(0>=i||null==i){if(i=$(t,e,a),(0>i||null==i)&&(i=t.style[e]),Rt.test(i))return i;r=o&&(Z.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+C(t,e,n||(o?"border":"content"),r,a)+"px"}function A(t,e){for(var n,r,i,a=[],o=0,s=t.length;s>o;o++)r=t[o],r.style&&(a[o]=vt.get(r,"olddisplay"),n=r.style.display,e?(a[o]||"none"!==n||(r.style.display=""),""===r.style.display&&kt(r)&&(a[o]=vt.access(r,"olddisplay",x(r.nodeName)))):(i=kt(r),"none"===n&&i||vt.set(r,"olddisplay",i?n:Q.css(r,"display"))));for(o=0;s>o;o++)r=t[o],r.style&&(e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?a[o]||"":"none"));return t}function E(t,e,n,r,i){return new E.prototype.init(t,e,n,r,i)}function D(){return setTimeout(function(){Zt=void 0}),Zt=Q.now()}function _(t,e){var n,r=0,i={height:t};for(e=e?1:0;4>r;r+=2-e)n=wt[r],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function T(t,e,n){for(var r,i=(ne[e]||[]).concat(ne["*"]),a=0,o=i.length;o>a;a++)if(r=i[a].call(n,e,t))return r}function O(t,e,n){var r,i,a,o,s,u,l,c,f=this,d={},p=t.style,h=t.nodeType&&kt(t),g=vt.get(t,"fxshow");n.queue||(s=Q._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,Q.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=Q.css(t,"display"),c="none"===l?vt.get(t,"olddisplay")||x(t.nodeName):l,"inline"===c&&"none"===Q.css(t,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in e)if(i=e[r],Jt.exec(i)){if(delete e[r],a=a||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;h=!0}d[r]=g&&g[r]||Q.style(t,r)}else l=void 0;if(Q.isEmptyObject(d))"inline"===("none"===l?x(t.nodeName):l)&&(p.display=l);else{g?"hidden"in g&&(h=g.hidden):g=vt.access(t,"fxshow",{}),a&&(g.hidden=!h),h?Q(t).show():f.done(function(){Q(t).hide()}),f.done(function(){var e;vt.remove(t,"fxshow");for(e in d)Q.style(t,e,d[e])});for(r in d)o=T(h?g[r]:0,r,f),r in g||(g[r]=o.start,h&&(o.end=o.start,o.start="width"===r||"height"===r?1:0))}}function N(t,e){var n,r,i,a,o;for(n in t)if(r=Q.camelCase(n),i=e[r],a=t[n],Q.isArray(a)&&(i=a[1],a=t[n]=a[0]),n!==r&&(t[r]=a,delete t[n]),o=Q.cssHooks[r],o&&"expand"in o){a=o.expand(a),delete t[r];for(n in a)n in t||(t[n]=a[n],e[n]=i)}else e[r]=i}function P(t,e,n){var r,i,a=0,o=ee.length,s=Q.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=Zt||D(),n=Math.max(0,l.startTime+l.duration-e),r=n/l.duration||0,a=1-r,o=0,u=l.tweens.length;u>o;o++)l.tweens[o].run(a);return s.notifyWith(t,[l,a,n]),1>a&&u?n:(s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:Q.extend({},e),opts:Q.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:Zt||D(),duration:n.duration,tweens:[],createTween:function(e,n){var r=Q.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?s.resolveWith(t,[l,e]):s.rejectWith(t,[l,e]),this}}),c=l.props;for(N(c,l.opts.specialEasing);o>a;a++)if(r=ee[a].call(l,t,c,l.opts))return r;return Q.map(c,T,l),Q.isFunction(l.opts.start)&&l.opts.start.call(t,l),Q.fx.timer(Q.extend(u,{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 F(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,a=e.toLowerCase().match(pt)||[];if(Q.isFunction(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function j(t,e,n,r){function i(s){var u;return a[s]=!0,Q.each(t[s]||[],function(t,s){var l=s(e,n,r);return"string"!=typeof l||o||a[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),i(l),!1)}),u}var a={},o=t===be;return i(e.dataTypes[0])||!a["*"]&&i("*")}function I(t,e){var n,r,i=Q.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&Q.extend(!0,t,r),t}function L(t,e,n){for(var r,i,a,o,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)a=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){a=i;break}o||(o=i)}a=a||o}return a?(a!==u[0]&&u.unshift(a),n[a]):void 0}function q(t,e,n,r){var i,a,o,s,u,l={},c=t.dataTypes.slice();if(c[1])for(o in t.converters)l[o.toLowerCase()]=t.converters[o];for(a=c.shift();a;)if(t.responseFields[a]&&(n[t.responseFields[a]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=a,a=c.shift())if("*"===a)a=u;else if("*"!==u&&u!==a){if(o=l[u+" "+a]||l["* "+a],!o)for(i in l)if(s=i.split(" "),s[1]===a&&(o=l[u+" "+s[0]]||l["* "+s[0]])){o===!0?o=l[i]:l[i]!==!0&&(a=s[0],c.unshift(s[1]));break}if(o!==!0)if(o&&t["throws"])e=o(e);else try{e=o(e)}catch(f){return{state:"parsererror",error:o?f:"No conversion from "+u+" to "+a}}}return{state:"success",data:e}}function H(t,e,n,r){var i;if(Q.isArray(e))Q.each(e,function(e,i){n||Me.test(t)?r(t,i):H(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==Q.type(e))r(t,e);else for(i in e)H(t+"["+i+"]",e[i],n,r)}function V(t){return Q.isWindow(t)?t:9===t.nodeType&&t.defaultView}var R=[],W=R.slice,z=R.concat,U=R.push,Y=R.indexOf,B={},G=B.toString,X=B.hasOwnProperty,Z={},K=t.document,J="2.1.4",Q=function(t,e){return new Q.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,nt=/-([\da-z])/gi,rt=function(t,e){return e.toUpperCase()};Q.fn=Q.prototype={jquery:J,constructor:Q,selector:"",length:0,toArray:function(){return W.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:W.call(this)},pushStack:function(t){var e=Q.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return Q.each(this,t,e)},map:function(t){return this.pushStack(Q.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(W.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:U,sort:R.sort,splice:R.splice},Q.extend=Q.fn.extend=function(){var t,e,n,r,i,a,o=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[s]||{},s++),"object"==typeof o||Q.isFunction(o)||(o={}),s===u&&(o=this,s--);u>s;s++)if(null!=(t=arguments[s]))for(e in t)n=o[e],r=t[e],o!==r&&(l&&r&&(Q.isPlainObject(r)||(i=Q.isArray(r)))?(i?(i=!1,a=n&&Q.isArray(n)?n:[]):a=n&&Q.isPlainObject(n)?n:{},o[e]=Q.extend(l,a,r)):void 0!==r&&(o[e]=r));return o},Q.extend({expando:"jQuery"+(J+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===Q.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!Q.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"!==Q.type(t)||t.nodeType||Q.isWindow(t)?!1:t.constructor&&!X.call(t.constructor.prototype,"isPrototypeOf")?!1:!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?B[G.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;t=Q.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(et,"ms-").replace(nt,rt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,r){var i,a=0,o=t.length,s=n(t);if(r){if(s)for(;o>a&&(i=e.apply(t[a],r),i!==!1);a++);else for(a in t)if(i=e.apply(t[a],r),i===!1)break}else if(s)for(;o>a&&(i=e.call(t[a],a,t[a]),i!==!1);a++);else for(a in t)if(i=e.call(t[a],a,t[a]),i===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var r=e||[];return null!=t&&(n(Object(t))?Q.merge(r,"string"==typeof t?[t]:t):U.call(r,t)),r},inArray:function(t,e,n){return null==e?-1:Y.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=[],a=0,o=t.length,s=!n;o>a;a++)r=!e(t[a],a),r!==s&&i.push(t[a]);return i},map:function(t,e,r){var i,a=0,o=t.length,s=n(t),u=[];if(s)for(;o>a;a++)i=e(t[a],a,r),null!=i&&u.push(i);else for(a in t)i=e(t[a],a,r),null!=i&&u.push(i);return z.apply([],u)},guid:1,proxy:function(t,e){var n,r,i;return"string"==typeof e&&(n=t[e],e=t,t=n),Q.isFunction(t)?(r=W.call(arguments,2),i=function(){return t.apply(e||this,r.concat(W.call(arguments)))},i.guid=t.guid=t.guid||Q.guid++,i):void 0},now:Date.now,support:Z}),Q.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){B["[object "+e+"]"]=e.toLowerCase()});var it=/*!
|
||
* Sizzle CSS Selector Engine v2.2.0-pre
|
||
* http://sizzlejs.com/
|
||
*
|
||
* Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
|
||
* Released under the MIT license
|
||
* http://jquery.org/license
|
||
*
|
||
* Date: 2014-12-16
|
||
*/
|
||
function(t){function e(t,e,n,r){var i,a,o,s,u,l,f,p,h,g;if((e?e.ownerDocument||e:H)!==O&&T(e),e=e||O,n=n||[],s=e.nodeType,"string"!=typeof t||!t||1!==s&&9!==s&&11!==s)return n;if(!r&&P){if(11!==s&&(i=yt.exec(t)))if(o=i[1]){if(9===s){if(a=e.getElementById(o),!a||!a.parentNode)return n;if(a.id===o)return n.push(a),n}else if(e.ownerDocument&&(a=e.ownerDocument.getElementById(o))&&L(e,a)&&a.id===o)return n.push(a),n}else{if(i[2])return J.apply(n,e.getElementsByTagName(t)),n;if((o=i[3])&&$.getElementsByClassName)return J.apply(n,e.getElementsByClassName(o)),n}if($.qsa&&(!F||!F.test(t))){if(p=f=q,h=e,g=1!==s&&t,1===s&&"object"!==e.nodeName.toLowerCase()){for(l=C(t),(f=e.getAttribute("id"))?p=f.replace(xt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",u=l.length;u--;)l[u]=p+d(l[u]);h=bt.test(t)&&c(e.parentNode)||e,g=l.join(",")}if(g)try{return J.apply(n,h.querySelectorAll(g)),n}catch(m){}finally{f||e.removeAttribute("id")}}}return A(t.replace(ut,"$1"),e,n,r)}function n(){function t(n,r){return e.push(n+" ")>w.cacheLength&&delete t[e.shift()],t[n+" "]=r}var e=[];return t}function r(t){return t[q]=!0,t}function i(t){var e=O.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function a(t,e){for(var n=t.split("|"),r=t.length;r--;)w.attrHandle[n[r]]=e}function o(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||B)-(~t.sourceIndex||B);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function u(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,a=t([],n.length,e),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function f(){}function d(t){for(var e=0,n=t.length,r="";n>e;e++)r+=t[e].value;return r}function p(t,e,n){var r=e.dir,i=n&&"parentNode"===r,a=R++;return e.first?function(e,n,a){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,a)}:function(e,n,o){var s,u,l=[V,a];if(o){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,o))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if(u=e[q]||(e[q]={}),(s=u[r])&&s[0]===V&&s[1]===a)return l[2]=s[2];if(u[r]=l,l[2]=t(e,n,o))return!0}}}function h(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,n,r){for(var i=0,a=n.length;a>i;i++)e(t,n[i],r);return r}function m(t,e,n,r,i){for(var a,o=[],s=0,u=t.length,l=null!=e;u>s;s++)(a=t[s])&&(!n||n(a,r,i))&&(o.push(a),l&&e.push(s));return o}function v(t,e,n,i,a,o){return i&&!i[q]&&(i=v(i)),a&&!a[q]&&(a=v(a,o)),r(function(r,o,s,u){var l,c,f,d=[],p=[],h=o.length,v=r||g(e||"*",s.nodeType?[s]:s,[]),y=!t||!r&&e?v:m(v,d,t,s,u),b=n?a||(r?t:h||i)?[]:o:y;if(n&&n(y,b,s,u),i)for(l=m(b,p),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(b[p[c]]=!(y[p[c]]=f));if(r){if(a||t){if(a){for(l=[],c=b.length;c--;)(f=b[c])&&l.push(y[c]=f);a(null,b=[],l,u)}for(c=b.length;c--;)(f=b[c])&&(l=a?tt(r,f):d[c])>-1&&(r[l]=!(o[l]=f))}}else b=m(b===o?b.splice(h,b.length):b),a?a(null,o,b,u):J.apply(o,b)})}function y(t){for(var e,n,r,i=t.length,a=w.relative[t[0].type],o=a||w.relative[" "],s=a?1:0,u=p(function(t){return t===e},o,!0),l=p(function(t){return tt(e,t)>-1},o,!0),c=[function(t,n,r){var i=!a&&(r||n!==E)||((e=n).nodeType?u(t,n,r):l(t,n,r));return e=null,i}];i>s;s++)if(n=w.relative[t[s].type])c=[p(h(c),n)];else{if(n=w.filter[t[s].type].apply(null,t[s].matches),n[q]){for(r=++s;i>r&&!w.relative[t[r].type];r++);return v(s>1&&h(c),s>1&&d(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(ut,"$1"),n,r>s&&y(t.slice(s,r)),i>r&&y(t=t.slice(r)),i>r&&d(t))}c.push(n)}return h(c)}function b(t,n){var i=n.length>0,a=t.length>0,o=function(r,o,s,u,l){var c,f,d,p=0,h="0",g=r&&[],v=[],y=E,b=r||a&&w.find.TAG("*",l),x=V+=null==y?1:Math.random()||.1,$=b.length;for(l&&(E=o!==O&&o);h!==$&&null!=(c=b[h]);h++){if(a&&c){for(f=0;d=t[f++];)if(d(c,o,s)){u.push(c);break}l&&(V=x)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,v,o,s);if(r){if(p>0)for(;h--;)g[h]||v[h]||(v[h]=Z.call(u));v=m(v)}J.apply(u,v),l&&!r&&v.length>0&&p+n.length>1&&e.uniqueSort(u)}return l&&(V=x,E=y),g};return i?r(o):o}var x,$,w,k,M,C,S,A,E,D,_,T,O,N,P,F,j,I,L,q="sizzle"+1*new Date,H=t.document,V=0,R=0,W=n(),z=n(),U=n(),Y=function(t,e){return t===e&&(_=!0),0},B=1<<31,G={}.hasOwnProperty,X=[],Z=X.pop,K=X.push,J=X.push,Q=X.slice,tt=function(t,e){for(var n=0,r=t.length;r>n;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it=rt.replace("w","w#"),at="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",ot=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+at+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),ut=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ft=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),dt=new RegExp(ot),pt=new RegExp("^"+it+"$"),ht={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,xt=/'|\\/g,$t=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),wt=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)},kt=function(){T()};try{J.apply(X=Q.call(H.childNodes),H.childNodes),X[H.childNodes.length].nodeType}catch(Mt){J={apply:X.length?function(t,e){K.apply(t,Q.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}$=e.support={},M=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},T=e.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:H;return r!==O&&9===r.nodeType&&r.documentElement?(O=r,N=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",kt,!1):n.attachEvent&&n.attachEvent("onunload",kt)),P=!M(r),$.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),$.getElementsByTagName=i(function(t){return t.appendChild(r.createComment("")),!t.getElementsByTagName("*").length}),$.getElementsByClassName=vt.test(r.getElementsByClassName),$.getById=i(function(t){return N.appendChild(t).id=q,!r.getElementsByName||!r.getElementsByName(q).length}),$.getById?(w.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&P){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(t){var e=t.replace($t,wt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace($t,wt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),w.find.TAG=$.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):$.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,a=e.getElementsByTagName(t);if("*"===t){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},w.find.CLASS=$.getElementsByClassName&&function(t,e){return P?e.getElementsByClassName(t):void 0},j=[],F=[],($.qsa=vt.test(r.querySelectorAll))&&(i(function(t){N.appendChild(t).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||F.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+q+"-]").length||F.push("~="),t.querySelectorAll(":checked").length||F.push(":checked"),t.querySelectorAll("a#"+q+"+*").length||F.push(".#.+[+~]")}),i(function(t){var e=r.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&F.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||F.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),F.push(",.*:")})),($.matchesSelector=vt.test(I=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&i(function(t){$.disconnectedMatch=I.call(t,"div"),I.call(t,"[s!='']:x"),j.push("!=",ot)}),F=F.length&&new RegExp(F.join("|")),j=j.length&&new RegExp(j.join("|")),e=vt.test(N.compareDocumentPosition),L=e||vt.test(N.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},Y=e?function(t,e){if(t===e)return _=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!$.sortDetached&&e.compareDocumentPosition(t)===n?t===r||t.ownerDocument===H&&L(H,t)?-1:e===r||e.ownerDocument===H&&L(H,e)?1:D?tt(D,t)-tt(D,e):0:4&n?-1:1)}:function(t,e){if(t===e)return _=!0,0;var n,i=0,a=t.parentNode,s=e.parentNode,u=[t],l=[e];if(!a||!s)return t===r?-1:e===r?1:a?-1:s?1:D?tt(D,t)-tt(D,e):0;if(a===s)return o(t,e);for(n=t;n=n.parentNode;)u.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;u[i]===l[i];)i++;return i?o(u[i],l[i]):u[i]===H?-1:l[i]===H?1:0},r):O},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==O&&T(t),n=n.replace(ft,"='$1']"),$.matchesSelector&&P&&(!j||!j.test(n))&&(!F||!F.test(n)))try{var r=I.call(t,n);if(r||$.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,O,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==O&&T(t),L(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==O&&T(t);var n=w.attrHandle[e.toLowerCase()],r=n&&G.call(w.attrHandle,e.toLowerCase())?n(t,e,!P):void 0;return void 0!==r?r:$.attributes||!P?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(_=!$.detectDuplicates,D=!$.sortStable&&t.slice(0),t.sort(Y),_){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return D=null,t},k=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+=k(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=k(e);return n},w=e.selectors={cacheLength:50,createPseudo:r,match:ht,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($t,wt),t[3]=(t[3]||t[4]||t[5]||"").replace($t,wt),"~="===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[6]&&t[2];return ht.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&dt.test(n)&&(e=C(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($t,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(i){var a=e.attr(i,t);return null==a?"!="===n:n?(a+="","="===n?a===r:"!="===n?a!==r:"^="===n?r&&0===a.indexOf(r):"*="===n?r&&a.indexOf(r)>-1:"$="===n?r&&a.slice(-r.length)===r:"~="===n?(" "+a.replace(st," ")+" ").indexOf(r)>-1:"|="===n?a===r||a.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(t,e,n,r,i){var a="nth"!==t.slice(0,3),o="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,d,p,h,g=a!==o?"nextSibling":"previousSibling",m=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!u&&!s;if(m){if(a){for(;g;){for(f=e;f=f[g];)if(s?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=g="only"===t&&!h&&"nextSibling"}return!0}if(h=[o?m.firstChild:m.lastChild],o&&y){for(c=m[q]||(m[q]={}),l=c[t]||[],p=l[0]===V&&l[1],d=l[0]===V&&l[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===e){c[t]=[V,p,d];break}}else if(y&&(l=(e[q]||(e[q]={}))[t])&&l[0]===V)d=l[1];else for(;(f=++p&&f&&f[g]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(y&&((f[q]||(f[q]={}))[t]=[V,d]),f!==e)););return d-=i,d===r||d%r===0&&d/r>=0}}},PSEUDO:function(t,n){var i,a=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return a[q]?a(n):a.length>1?(i=[t,t,"",n],w.setFilters.hasOwnProperty(t.toLowerCase())?r(function(t,e){for(var r,i=a(t,n),o=i.length;o--;)r=tt(t,i[o]),t[r]=!(e[r]=i[o])}):function(t){return a(t,0,i)}):a}},pseudos:{not:r(function(t){var e=[],n=[],i=S(t.replace(ut,"$1"));return i[q]?r(function(t,e,n,r){for(var a,o=i(t,null,r,[]),s=t.length;s--;)(a=o[s])&&(t[s]=!(e[s]=a))}):function(t,r,a){return e[0]=t,i(e,null,a,n),e[0]=null,!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(t){return t=t.replace($t,wt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:r(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace($t,wt).toLowerCase(),function(e){var n;do if(n=P?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===N},focus:function(t){return t===O.activeElement&&(!O.hasFocus||O.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!w.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return gt.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})}},w.pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=u(x);return f.prototype=w.filters=w.pseudos,w.setFilters=new f,C=e.tokenize=function(t,n){var r,i,a,o,s,u,l,c=z[t+" "];if(c)return n?0:c.slice(0);for(s=t,u=[],l=w.preFilter;s;){(!r||(i=lt.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),u.push(a=[])),r=!1,(i=ct.exec(s))&&(r=i.shift(),a.push({value:r,type:i[0].replace(ut," ")}),s=s.slice(r.length));for(o in w.filter)!(i=ht[o].exec(s))||l[o]&&!(i=l[o](i))||(r=i.shift(),a.push({value:r,type:o,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):z(t,u).slice(0)},S=e.compile=function(t,e){var n,r=[],i=[],a=U[t+" "];if(!a){for(e||(e=C(t)),n=e.length;n--;)a=y(e[n]),a[q]?r.push(a):i.push(a);a=U(t,b(i,r)),a.selector=t}return a},A=e.select=function(t,e,n,r){var i,a,o,s,u,l="function"==typeof t&&t,f=!r&&C(t=l.selector||t);if(n=n||[],1===f.length){if(a=f[0]=f[0].slice(0),a.length>2&&"ID"===(o=a[0]).type&&$.getById&&9===e.nodeType&&P&&w.relative[a[1].type]){if(e=(w.find.ID(o.matches[0].replace($t,wt),e)||[])[0],!e)return n;l&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(i=ht.needsContext.test(t)?0:a.length;i--&&(o=a[i],!w.relative[s=o.type]);)if((u=w.find[s])&&(r=u(o.matches[0].replace($t,wt),bt.test(a[0].type)&&c(e.parentNode)||e))){if(a.splice(i,1),t=r.length&&d(a),!t)return J.apply(n,r),n;break}}return(l||S(t,f))(r,e,!P,n,bt.test(t)&&c(e.parentNode)||e),n},$.sortStable=q.split("").sort(Y).join("")===q,$.detectDuplicates=!!_,T(),$.sortDetached=i(function(t){return 1&t.compareDocumentPosition(O.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||a("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),$.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||a("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||a(et,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);Q.find=it,Q.expr=it.selectors,Q.expr[":"]=Q.expr.pseudos,Q.unique=it.uniqueSort,Q.text=it.getText,Q.isXMLDoc=it.isXML,Q.contains=it.contains;var at=Q.expr.match.needsContext,ot=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,st=/^.[^:#\[\.,]*$/;Q.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?Q.find.matchesSelector(r,t)?[r]:[]:Q.find.matches(t,Q.grep(e,function(t){return 1===t.nodeType}))},Q.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(Q(t).filter(function(){for(e=0;n>e;e++)if(Q.contains(i[e],this))return!0}));for(e=0;n>e;e++)Q.find(t,i[e],r);return r=this.pushStack(n>1?Q.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&&at.test(t)?Q(t):t||[],!1).length}});var ut,lt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=Q.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]:lt.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||ut).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof Q?e[0]:e,Q.merge(this,Q.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:K,!0)),ot.test(n[1])&&Q.isPlainObject(e))for(n in e)Q.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):Q.isFunction(t)?"undefined"!=typeof ut.ready?ut.ready(t):t(Q):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),Q.makeArray(t,this))};ct.prototype=Q.fn,ut=Q(K);var ft=/^(?:parents|prev(?:Until|All))/,dt={children:!0,contents:!0,next:!0,prev:!0};Q.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&&Q(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}}),Q.fn.extend({has:function(t){var e=Q(t,this),n=e.length;return this.filter(function(){for(var t=0;n>t;t++)if(Q.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,a=[],o=at.test(t)||"string"!=typeof t?Q(t,e||this.context):0;i>r;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&Q.find.matchesSelector(n,t))){a.push(n);break}return this.pushStack(a.length>1?Q.unique(a):a)},index:function(t){return t?"string"==typeof t?Y.call(Q(t),this[0]):Y.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(Q.unique(Q.merge(this.get(),Q(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),Q.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Q.dir(t,"parentNode")},parentsUntil:function(t,e,n){return Q.dir(t,"parentNode",n)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return Q.dir(t,"nextSibling")},prevAll:function(t){return Q.dir(t,"previousSibling")},nextUntil:function(t,e,n){return Q.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return Q.dir(t,"previousSibling",n)},siblings:function(t){return Q.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return Q.sibling(t.firstChild)},contents:function(t){return t.contentDocument||Q.merge([],t.childNodes)}},function(t,e){Q.fn[t]=function(n,r){var i=Q.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Q.filter(r,i)),this.length>1&&(dt[t]||Q.unique(i),ft.test(t)&&i.reverse()),this.pushStack(i)}});var pt=/\S+/g,ht={};Q.Callbacks=function(t){t="string"==typeof t?ht[t]||a(t):Q.extend({},t);var e,n,r,i,o,s,u=[],l=!t.once&&[],c=function(a){for(e=t.memory&&a,n=!0,s=i||0,i=0,o=u.length,r=!0;u&&o>s;s++)if(u[s].apply(a[0],a[1])===!1&&t.stopOnFalse){e=!1;break}r=!1,u&&(l?l.length&&c(l.shift()):e?u=[]:f.disable())},f={add:function(){if(u){var n=u.length;!function a(e){Q.each(e,function(e,n){var r=Q.type(n);"function"===r?t.unique&&f.has(n)||u.push(n):n&&n.length&&"string"!==r&&a(n)})}(arguments),r?o=u.length:e&&(i=n,c(e))}return this},remove:function(){return u&&Q.each(arguments,function(t,e){for(var n;(n=Q.inArray(e,u,n))>-1;)u.splice(n,1),r&&(o>=n&&o--,s>=n&&s--)}),this},has:function(t){return t?Q.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],o=0,this},disable:function(){return u=l=e=void 0,this},disabled:function(){return!u},lock:function(){return l=void 0,e||f.disable(),this},locked:function(){return!l},fireWith:function(t,e){return!u||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},Q.extend({Deferred:function(t){var e=[["resolve","done",Q.Callbacks("once memory"),"resolved"],["reject","fail",Q.Callbacks("once memory"),"rejected"],["notify","progress",Q.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return Q.Deferred(function(n){Q.each(e,function(e,a){var o=Q.isFunction(t[e])&&t[e];i[a[1]](function(){var t=o&&o.apply(this,arguments);t&&Q.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a[0]+"With"](this===r?n.promise():this,o?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?Q.extend(t,r):r}},i={};return r.pipe=r.then,Q.each(e,function(t,a){var o=a[2],s=a[3];r[a[1]]=o.add,s&&o.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[a[0]]=function(){return i[a[0]+"With"](this===i?r:this,arguments),this},i[a[0]+"With"]=o.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,a=W.call(arguments),o=a.length,s=1!==o||t&&Q.isFunction(t.promise)?o:0,u=1===s?t:Q.Deferred(),l=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?W.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(o>1)for(e=new Array(o),n=new Array(o),r=new Array(o);o>i;i++)a[i]&&Q.isFunction(a[i].promise)?a[i].promise().done(l(i,r,a)).fail(u.reject).progress(l(i,n,e)):--s;return s||u.resolveWith(r,a),u.promise()}});var gt;Q.fn.ready=function(t){return Q.ready.promise().done(t),this},Q.extend({isReady:!1,readyWait:1,holdReady:function(t){t?Q.readyWait++:Q.ready(!0)},ready:function(t){(t===!0?--Q.readyWait:Q.isReady)||(Q.isReady=!0,t!==!0&&--Q.readyWait>0||(gt.resolveWith(K,[Q]),Q.fn.triggerHandler&&(Q(K).triggerHandler("ready"),Q(K).off("ready"))))}}),Q.ready.promise=function(e){return gt||(gt=Q.Deferred(),"complete"===K.readyState?setTimeout(Q.ready):(K.addEventListener("DOMContentLoaded",o,!1),t.addEventListener("load",o,!1))),gt.promise(e)},Q.ready.promise();var mt=Q.access=function(t,e,n,r,i,a,o){var s=0,u=t.length,l=null==n;if("object"===Q.type(n)){i=!0;for(s in n)Q.access(t,e,s,n[s],!0,a,o)}else if(void 0!==r&&(i=!0,Q.isFunction(r)||(o=!0),l&&(o?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(Q(t),n)})),e))for(;u>s;s++)e(t[s],n,o?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):a};Q.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},s.uid=1,s.accepts=Q.acceptData,s.prototype={key:function(t){if(!s.accepts(t))return 0;var e={},n=t[this.expando];if(!n){n=s.uid++;try{e[this.expando]={value:n},Object.defineProperties(t,e)}catch(r){e[this.expando]=n,Q.extend(t,e)}}return this.cache[n]||(this.cache[n]={}),n},set:function(t,e,n){var r,i=this.key(t),a=this.cache[i];if("string"==typeof e)a[e]=n;else if(Q.isEmptyObject(a))Q.extend(this.cache[i],e);else for(r in e)a[r]=e[r];return a},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,Q.camelCase(e))):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,a=this.key(t),o=this.cache[a];if(void 0===e)this.cache[a]={};else{Q.isArray(e)?r=e.concat(e.map(Q.camelCase)):(i=Q.camelCase(e),e in o?r=[e,i]:(r=i,r=r in o?[r]:r.match(pt)||[])),n=r.length;for(;n--;)delete o[r[n]]}},hasData:function(t){return!Q.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var vt=new s,yt=new s,bt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xt=/([A-Z])/g;Q.extend({hasData:function(t){return yt.hasData(t)||vt.hasData(t)},data:function(t,e,n){return yt.access(t,e,n)},removeData:function(t,e){yt.remove(t,e)},_data:function(t,e,n){return vt.access(t,e,n)},_removeData:function(t,e){vt.remove(t,e)}}),Q.fn.extend({data:function(t,e){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===t){if(this.length&&(i=yt.get(a),1===a.nodeType&&!vt.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(r=o[n].name,0===r.indexOf("data-")&&(r=Q.camelCase(r.slice(5)),u(a,r,i[r])));vt.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each(function(){yt.set(this,t)}):mt(this,function(e){var n,r=Q.camelCase(t);if(a&&void 0===e){if(n=yt.get(a,t),void 0!==n)return n;if(n=yt.get(a,r),void 0!==n)return n;if(n=u(a,r,void 0),void 0!==n)return n}else this.each(function(){var n=yt.get(this,r);yt.set(this,r,e),-1!==t.indexOf("-")&&void 0!==n&&yt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){yt.remove(this,t)})}}),Q.extend({queue:function(t,e,n){var r;return t?(e=(e||"fx")+"queue",r=vt.get(t,e),n&&(!r||Q.isArray(n)?r=vt.access(t,e,Q.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=Q.queue(t,e),r=n.length,i=n.shift(),a=Q._queueHooks(t,e),o=function(){Q.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete a.stop,i.call(t,o,a)),!r&&a&&a.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return vt.get(t,n)||vt.access(t,n,{empty:Q.Callbacks("once memory").add(function(){vt.remove(t,[e+"queue",n])})})}}),Q.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?Q.queue(this[0],t):void 0===e?this:this.each(function(){var n=Q.queue(this,t,e);Q._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&Q.dequeue(this,t)})},dequeue:function(t){return this.each(function(){Q.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=Q.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)n=vt.get(a[o],t+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var $t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wt=["Top","Right","Bottom","Left"],kt=function(t,e){return t=e||t,"none"===Q.css(t,"display")||!Q.contains(t.ownerDocument,t)},Mt=/^(?:checkbox|radio)$/i;!function(){var t=K.createDocumentFragment(),e=t.appendChild(K.createElement("div")),n=K.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),Z.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",Z.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Ct="undefined";Z.focusinBubbles="onfocusin"in t;var St=/^key/,At=/^(?:mouse|pointer|contextmenu)|click/,Et=/^(?:focusinfocus|focusoutblur)$/,Dt=/^([^.]*)(?:\.(.+)|)$/;Q.event={global:{},add:function(t,e,n,r,i){var a,o,s,u,l,c,f,d,p,h,g,m=vt.get(t);if(m)for(n.handler&&(a=n,n=a.handler,i=a.selector),n.guid||(n.guid=Q.guid++),(u=m.events)||(u=m.events={}),(o=m.handle)||(o=m.handle=function(e){return typeof Q!==Ct&&Q.event.triggered!==e.type?Q.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(pt)||[""],l=e.length;l--;)s=Dt.exec(e[l])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p&&(f=Q.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=Q.event.special[p]||{},c=Q.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Q.expr.match.needsContext.test(i),namespace:h.join(".")},a),(d=u[p])||(d=u[p]=[],d.delegateCount=0,f.setup&&f.setup.call(t,r,h,o)!==!1||t.addEventListener&&t.addEventListener(p,o,!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),Q.event.global[p]=!0)},remove:function(t,e,n,r,i){var a,o,s,u,l,c,f,d,p,h,g,m=vt.hasData(t)&&vt.get(t);if(m&&(u=m.events)){for(e=(e||"").match(pt)||[""],l=e.length;l--;)if(s=Dt.exec(e[l])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p){for(f=Q.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=d.length;a--;)c=d[a],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(a,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(t,c));o&&!d.length&&(f.teardown&&f.teardown.call(t,h,m.handle)!==!1||Q.removeEvent(t,p,m.handle),delete u[p])}else for(p in u)Q.event.remove(t,p+e[l],n,r,!0);Q.isEmptyObject(u)&&(delete m.handle,vt.remove(t,"events"))}},trigger:function(e,n,r,i){var a,o,s,u,l,c,f,d=[r||K],p=X.call(e,"type")?e.type:e,h=X.call(e,"namespace")?e.namespace.split("."):[];if(o=s=r=r||K,3!==r.nodeType&&8!==r.nodeType&&!Et.test(p+Q.event.triggered)&&(p.indexOf(".")>=0&&(h=p.split("."),p=h.shift(),h.sort()),l=p.indexOf(":")<0&&"on"+p,e=e[Q.expando]?e:new Q.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]:Q.makeArray(n,[e]),f=Q.event.special[p]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!Q.isWindow(r)){for(u=f.delegateType||p,Et.test(u+p)||(o=o.parentNode);o;o=o.parentNode)d.push(o),s=o;s===(r.ownerDocument||K)&&d.push(s.defaultView||s.parentWindow||t)}for(a=0;(o=d[a++])&&!e.isPropagationStopped();)e.type=a>1?u:f.bindType||p,c=(vt.get(o,"events")||{})[e.type]&&vt.get(o,"handle"),c&&c.apply(o,n),c=l&&o[l],c&&c.apply&&Q.acceptData(o)&&(e.result=c.apply(o,n),e.result===!1&&e.preventDefault());return e.type=p,i||e.isDefaultPrevented()||f._default&&f._default.apply(d.pop(),n)!==!1||!Q.acceptData(r)||l&&Q.isFunction(r[p])&&!Q.isWindow(r)&&(s=r[l],s&&(r[l]=null),Q.event.triggered=p,r[p](),Q.event.triggered=void 0,s&&(r[l]=s)),e.result}},dispatch:function(t){t=Q.event.fix(t);var e,n,r,i,a,o=[],s=W.call(arguments),u=(vt.get(this,"events")||{})[t.type]||[],l=Q.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(o=Q.event.handlers.call(this,t,u),e=0;(i=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(a.namespace))&&(t.handleObj=a,t.data=a.data,r=((Q.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s),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,a,o=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==t.type){for(r=[],n=0;s>n;n++)a=e[n],i=a.selector+" ",void 0===r[i]&&(r[i]=a.needsContext?Q(i,this).index(u)>=0:Q.find(i,this,null,[u]).length),r[i]&&r.push(a);r.length&&o.push({elem:u,handlers:r})}return s<e.length&&o.push({elem:this,handlers:e.slice(s)}),o},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,a=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===a||(t.which=1&a?1:2&a?3:4&a?2:0),t}},fix:function(t){if(t[Q.expando])return t;var e,n,r,i=t.type,a=t,o=this.fixHooks[i];for(o||(this.fixHooks[i]=o=At.test(i)?this.mouseHooks:St.test(i)?this.keyHooks:{}),r=o.props?this.props.concat(o.props):this.props,t=new Q.Event(a),e=r.length;e--;)n=r[e],t[n]=a[n];return t.target||(t.target=K),3===t.target.nodeType&&(t.target=t.target.parentNode),o.filter?o.filter(t,a):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&&Q.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return Q.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,r){var i=Q.extend(new Q.Event,n,{type:t,isSimulated:!0,originalEvent:{}});r?Q.event.trigger(i,null,e):Q.event.dispatch.call(e,i),i.isDefaultPrevented()&&n.preventDefault()}},Q.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},Q.Event=function(t,e){return this instanceof Q.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?l:c):this.type=t,e&&Q.extend(this,e),this.timeStamp=t&&t.timeStamp||Q.now(),void(this[Q.expando]=!0)):new Q.Event(t,e)},Q.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(){var t=this.originalEvent;this.isImmediatePropagationStopped=l,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},Q.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){Q.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,a=t.handleObj;return(!i||i!==r&&!Q.contains(r,i))&&(t.type=a.origType,n=a.handler.apply(this,arguments),t.type=e),n}}}),Z.focusinBubbles||Q.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){Q.event.simulate(e,t.target,Q.event.fix(t),!0)};Q.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=vt.access(r,e);i||r.addEventListener(t,n,!0),vt.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=vt.access(r,e)-1;i?vt.access(r,e,i):(r.removeEventListener(t,n,!0),vt.remove(r,e))}}}),Q.fn.extend({on:function(t,e,n,r,i){var a,o;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(o in t)this.on(o,e,n,t[o],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&&(a=r,r=function(t){return Q().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=Q.guid++)),this.each(function(){Q.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,Q(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(){Q.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){Q.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?Q.event.trigger(t,e,n,!0):void 0}});var _t=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Tt=/<([\w:]+)/,Ot=/<|&#?\w+;/,Nt=/<(?:script|style|link)/i,Pt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^$|\/(?:java|ecma)script/i,jt=/^true\/(.*)/,It=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Lt={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,"",""]};Lt.optgroup=Lt.option,Lt.tbody=Lt.tfoot=Lt.colgroup=Lt.caption=Lt.thead,Lt.th=Lt.td,Q.extend({clone:function(t,e,n){var r,i,a,o,s=t.cloneNode(!0),u=Q.contains(t.ownerDocument,t);if(!(Z.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||Q.isXMLDoc(t)))for(o=v(s),a=v(t),r=0,i=a.length;i>r;r++)y(a[r],o[r]);if(e)if(n)for(a=a||v(t),o=o||v(s),r=0,i=a.length;i>r;r++)m(a[r],o[r]);else m(t,s);return o=v(s,"script"),o.length>0&&g(o,!u&&v(t,"script")),s},buildFragment:function(t,e,n,r){for(var i,a,o,s,u,l,c=e.createDocumentFragment(),f=[],d=0,p=t.length;p>d;d++)if(i=t[d],i||0===i)if("object"===Q.type(i))Q.merge(f,i.nodeType?[i]:i);else if(Ot.test(i)){for(a=a||c.appendChild(e.createElement("div")),o=(Tt.exec(i)||["",""])[1].toLowerCase(),s=Lt[o]||Lt._default,a.innerHTML=s[1]+i.replace(_t,"<$1></$2>")+s[2],l=s[0];l--;)a=a.lastChild;Q.merge(f,a.childNodes),a=c.firstChild,a.textContent=""}else f.push(e.createTextNode(i));for(c.textContent="",d=0;i=f[d++];)if((!r||-1===Q.inArray(i,r))&&(u=Q.contains(i.ownerDocument,i),a=v(c.appendChild(i),"script"),u&&g(a),n))for(l=0;i=a[l++];)Ft.test(i.type||"")&&n.push(i);return c},cleanData:function(t){for(var e,n,r,i,a=Q.event.special,o=0;void 0!==(n=t[o]);o++){if(Q.acceptData(n)&&(i=n[vt.expando],i&&(e=vt.cache[i]))){if(e.events)for(r in e.events)a[r]?Q.event.remove(n,r):Q.removeEvent(n,r,e.handle);vt.cache[i]&&delete vt.cache[i]}delete yt.cache[n[yt.expando]]}}}),Q.fn.extend({text:function(t){return mt(this,function(t){return void 0===t?Q.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?Q.filter(t,this):this,i=0;null!=(n=r[i]);i++)e||1!==n.nodeType||Q.cleanData(v(n)),n.parentNode&&(e&&Q.contains(n.ownerDocument,n)&&g(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(Q.cleanData(v(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 Q.clone(this,t,e)})},html:function(t){return mt(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&&!Nt.test(t)&&!Lt[(Tt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(_t,"<$1></$2>");try{for(;r>n;n++)e=this[n]||{},1===e.nodeType&&(Q.cleanData(v(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,Q.cleanData(v(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=z.apply([],t);var n,r,i,a,o,s,u=0,l=this.length,c=this,f=l-1,d=t[0],g=Q.isFunction(d);if(g||l>1&&"string"==typeof d&&!Z.checkClone&&Pt.test(d))return this.each(function(n){var r=c.eq(n);g&&(t[0]=d.call(this,n,r.html())),r.domManip(t,e)});if(l&&(n=Q.buildFragment(t,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=Q.map(v(n,"script"),p),a=i.length;l>u;u++)o=n,u!==f&&(o=Q.clone(o,!0,!0),a&&Q.merge(i,v(o,"script"))),e.call(this[u],o,u);if(a)for(s=i[i.length-1].ownerDocument,Q.map(i,h),u=0;a>u;u++)o=i[u],Ft.test(o.type||"")&&!vt.access(o,"globalEval")&&Q.contains(s,o)&&(o.src?Q._evalUrl&&Q._evalUrl(o.src):Q.globalEval(o.textContent.replace(It,"")))}return this}}),Q.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){Q.fn[t]=function(t){for(var n,r=[],i=Q(t),a=i.length-1,o=0;a>=o;o++)n=o===a?this:this.clone(!0),Q(i[o])[e](n),U.apply(r,n.get());return this.pushStack(r)}});var qt,Ht={},Vt=/^margin/,Rt=new RegExp("^("+$t+")(?!px)[a-z%]+$","i"),Wt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",i.appendChild(a);var e=t.getComputedStyle(o,null);n="1%"!==e.top,r="4px"===e.width,i.removeChild(a)}var n,r,i=K.documentElement,a=K.createElement("div"),o=K.createElement("div");o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",Z.clearCloneStyle="content-box"===o.style.backgroundClip,a.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",a.appendChild(o),t.getComputedStyle&&Q.extend(Z,{pixelPosition:function(){return e(),n},boxSizingReliable:function(){return null==r&&e(),r},reliableMarginRight:function(){var e,n=o.appendChild(K.createElement("div"));return n.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",o.style.width="1px",i.appendChild(a),e=!parseFloat(t.getComputedStyle(n,null).marginRight),i.removeChild(a),o.removeChild(n),e}}))}(),Q.swap=function(t,e,n,r){var i,a,o={};for(a in e)o[a]=t.style[a],t.style[a]=e[a];i=n.apply(t,r||[]);for(a in e)t.style[a]=o[a];return i};var zt=/^(none|table(?!-c[ea]).+)/,Ut=new RegExp("^("+$t+")(.*)$","i"),Yt=new RegExp("^([+-])=("+$t+")","i"),Bt={position:"absolute",visibility:"hidden",display:"block"},Gt={letterSpacing:"0",fontWeight:"400"},Xt=["Webkit","O","Moz","ms"];Q.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!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,a,o,s=Q.camelCase(e),u=t.style;return e=Q.cssProps[s]||(Q.cssProps[s]=k(u,s)),o=Q.cssHooks[e]||Q.cssHooks[s],void 0===n?o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:u[e]:(a=typeof n,"string"===a&&(i=Yt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(Q.css(t,e)),a="number"),null!=n&&n===n&&("number"!==a||Q.cssNumber[s]||(n+="px"),Z.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(u[e]=n)),void 0)}},css:function(t,e,n,r){var i,a,o,s=Q.camelCase(e);return e=Q.cssProps[s]||(Q.cssProps[s]=k(t.style,s)),o=Q.cssHooks[e]||Q.cssHooks[s],o&&"get"in o&&(i=o.get(t,!0,n)),void 0===i&&(i=$(t,e,r)),"normal"===i&&e in Gt&&(i=Gt[e]),""===n||n?(a=parseFloat(i),n===!0||Q.isNumeric(a)?a||0:i):i}}),Q.each(["height","width"],function(t,e){Q.cssHooks[e]={get:function(t,n,r){return n?zt.test(Q.css(t,"display"))&&0===t.offsetWidth?Q.swap(t,Bt,function(){return S(t,e,r)}):S(t,e,r):void 0},set:function(t,n,r){var i=r&&Wt(t);return M(t,n,r?C(t,e,r,"border-box"===Q.css(t,"boxSizing",!1,i),i):0)}}}),Q.cssHooks.marginRight=w(Z.reliableMarginRight,function(t,e){return e?Q.swap(t,{display:"inline-block"},$,[t,"marginRight"]):void 0}),Q.each({margin:"",padding:"",border:"Width"},function(t,e){Q.cssHooks[t+e]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];4>r;r++)i[t+wt[r]+e]=a[r]||a[r-2]||a[0];return i}},Vt.test(t)||(Q.cssHooks[t+e].set=M)}),Q.fn.extend({css:function(t,e){return mt(this,function(t,e,n){var r,i,a={},o=0;if(Q.isArray(e)){for(r=Wt(t),i=e.length;i>o;o++)a[e[o]]=Q.css(t,e[o],!1,r);return a}return void 0!==n?Q.style(t,e,n):Q.css(t,e)},t,e,arguments.length>1)},show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){kt(this)?Q(this).show():Q(this).hide()})}}),Q.Tween=E,E.prototype={constructor:E,init:function(t,e,n,r,i,a){this.elem=t,this.prop=n,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=a||(Q.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.options.duration?this.pos=e=Q.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):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=Q.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){Q.fx.step[t.prop]?Q.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[Q.cssProps[t.prop]]||Q.cssHooks[t.prop])?Q.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)}},Q.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},Q.fx=E.prototype.init,Q.fx.step={};var Zt,Kt,Jt=/^(?:toggle|show|hide)$/,Qt=new RegExp("^(?:([+-])=|)("+$t+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[O],ne={"*":[function(t,e){var n=this.createTween(t,e),r=n.cur(),i=Qt.exec(e),a=i&&i[3]||(Q.cssNumber[t]?"":"px"),o=(Q.cssNumber[t]||"px"!==a&&+r)&&Qt.exec(Q.css(n.elem,t)),s=1,u=20;if(o&&o[3]!==a){a=a||o[3],i=i||[],o=+r||1;do s=s||".5",o/=s,Q.style(n.elem,t,o+a);while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(o=n.start=+o||+r||0,n.unit=a,n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]),n}]};Q.Animation=Q.extend(P,{tweener:function(t,e){Q.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,r=0,i=t.length;i>r;r++)n=t[r],ne[n]=ne[n]||[],ne[n].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),Q.speed=function(t,e,n){var r=t&&"object"==typeof t?Q.extend({},t):{complete:n||!n&&e||Q.isFunction(t)&&t,duration:t,easing:n&&e||e&&!Q.isFunction(e)&&e};return r.duration=Q.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in Q.fx.speeds?Q.fx.speeds[r.duration]:Q.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){Q.isFunction(r.old)&&r.old.call(this),r.queue&&Q.dequeue(this,r.queue)},r},Q.fn.extend({fadeTo:function(t,e,n,r){return this.filter(kt).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=Q.isEmptyObject(t),a=Q.speed(e,n,r),o=function(){var e=P(this,Q.extend({},t),a);(i||vt.get(this,"finish"))&&e.stop(!0)};return o.finish=o,i||a.queue===!1?this.each(o):this.queue(a.queue,o)},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",a=Q.timers,o=vt.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&te.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=t&&a[i].queue!==t||(a[i].anim.stop(n),e=!1,a.splice(i,1));(e||!n)&&Q.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=vt.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],a=Q.timers,o=r?r.length:0;for(n.finish=!0,Q.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;o>e;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish})}}),Q.each(["toggle","show","hide"],function(t,e){var n=Q.fn[e];Q.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(_(e,!0),t,r,i)}}),Q.each({slideDown:_("show"),slideUp:_("hide"),slideToggle:_("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){Q.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}}),Q.timers=[],Q.fx.tick=function(){var t,e=0,n=Q.timers;for(Zt=Q.now();e<n.length;e++)t=n[e],t()||n[e]!==t||n.splice(e--,1);n.length||Q.fx.stop(),Zt=void 0},Q.fx.timer=function(t){Q.timers.push(t),t()?Q.fx.start():Q.timers.pop()},Q.fx.interval=13,Q.fx.start=function(){Kt||(Kt=setInterval(Q.fx.tick,Q.fx.interval))},Q.fx.stop=function(){clearInterval(Kt),Kt=null},Q.fx.speeds={slow:600,fast:200,_default:400},Q.fn.delay=function(t,e){return t=Q.fx?Q.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",Z.checkOn=""!==t.value,Z.optSelected=n.selected,e.disabled=!0,Z.optDisabled=!n.disabled,t=K.createElement("input"),t.value="t",t.type="radio",Z.radioValue="t"===t.value}();var re,ie,ae=Q.expr.attrHandle;Q.fn.extend({attr:function(t,e){return mt(this,Q.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){Q.removeAttr(this,t)})}}),Q.extend({attr:function(t,e,n){var r,i,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return typeof t.getAttribute===Ct?Q.prop(t,e,n):(1===a&&Q.isXMLDoc(t)||(e=e.toLowerCase(),r=Q.attrHooks[e]||(Q.expr.match.bool.test(e)?ie:re)),void 0===n?r&&"get"in r&&null!==(i=r.get(t,e))?i:(i=Q.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 Q.removeAttr(t,e))},removeAttr:function(t,e){var n,r,i=0,a=e&&e.match(pt);if(a&&1===t.nodeType)for(;n=a[i++];)r=Q.propFix[n]||n,Q.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!Z.radioValue&&"radio"===e&&Q.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),ie={set:function(t,e,n){return e===!1?Q.removeAttr(t,n):t.setAttribute(n,n),n}},Q.each(Q.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ae[e]||Q.find.attr;ae[e]=function(t,e,r){var i,a;return r||(a=ae[e],ae[e]=i,i=null!=n(t,e,r)?e.toLowerCase():null,ae[e]=a),i}});var oe=/^(?:input|select|textarea|button)$/i;Q.fn.extend({prop:function(t,e){return mt(this,Q.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[Q.propFix[t]||t]})}}),Q.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var r,i,a,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return a=1!==o||!Q.isXMLDoc(t),a&&(e=Q.propFix[e]||e,i=Q.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")||oe.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),Z.optSelected||(Q.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),Q.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Q.propFix[this.toLowerCase()]=this});var se=/[\t\r\n\f]/g;Q.fn.extend({addClass:function(t){var e,n,r,i,a,o,s="string"==typeof t&&t,u=0,l=this.length;if(Q.isFunction(t))return this.each(function(e){Q(this).addClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(pt)||[];l>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(se," "):" ")){for(a=0;i=e[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o=Q.trim(r),n.className!==o&&(n.className=o)}return this},removeClass:function(t){var e,n,r,i,a,o,s=0===arguments.length||"string"==typeof t&&t,u=0,l=this.length;if(Q.isFunction(t))return this.each(function(e){Q(this).removeClass(t.call(this,e,this.className))});if(s)for(e=(t||"").match(pt)||[];l>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(se," "):"")){for(a=0;i=e[a++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");o=t?Q.trim(r):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):Q.isFunction(t)?this.each(function(n){Q(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,r=0,i=Q(this),a=t.match(pt)||[];e=a[r++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(n===Ct||"boolean"===n)&&(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":vt.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(se," ").indexOf(e)>=0)return!0;return!1}});var ue=/\r/g;Q.fn.extend({val:function(t){var e,n,r,i=this[0];{if(arguments.length)return r=Q.isFunction(t),this.each(function(n){var i;1===this.nodeType&&(i=r?t.call(this,n,Q(this).val()):t,null==i?i="":"number"==typeof i?i+="":Q.isArray(i)&&(i=Q.map(i,function(t){return null==t?"":t+""})),e=Q.valHooks[this.type]||Q.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))});if(i)return e=Q.valHooks[i.type]||Q.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(ue,""):null==n?"":n)}}}),Q.extend({valHooks:{option:{get:function(t){var e=Q.find.attr(t,"value");return null!=e?e:Q.trim(Q.text(t))}},select:{get:function(t){for(var e,n,r=t.options,i=t.selectedIndex,a="select-one"===t.type||0>i,o=a?null:[],s=a?i+1:r.length,u=0>i?s:a?i:0;s>u;u++)if(n=r[u],(n.selected||u===i)&&(Z.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!Q.nodeName(n.parentNode,"optgroup"))){if(e=Q(n).val(),a)return e;o.push(e)}return o},set:function(t,e){for(var n,r,i=t.options,a=Q.makeArray(e),o=i.length;o--;)r=i[o],(r.selected=Q.inArray(r.value,a)>=0)&&(n=!0);return n||(t.selectedIndex=-1),a}}}}),Q.each(["radio","checkbox"],function(){Q.valHooks[this]={set:function(t,e){return Q.isArray(e)?t.checked=Q.inArray(Q(t).val(),e)>=0:void 0}},Z.checkOn||(Q.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),Q.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){Q.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),Q.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 le=Q.now(),ce=/\?/;Q.parseJSON=function(t){return JSON.parse(t+"")},Q.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)&&Q.error("Invalid XML: "+t),e};var fe=/#.*$/,de=/([?&])_=[^&]*/,pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,he=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ge=/^(?:GET|HEAD)$/,me=/^\/\//,ve=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ye={},be={},xe="*/".concat("*"),$e=t.location.href,we=ve.exec($e.toLowerCase())||[];Q.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$e,type:"GET",isLocal:he.test(we[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xe,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":Q.parseJSON,"text xml":Q.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?I(I(t,Q.ajaxSettings),e):I(Q.ajaxSettings,t)},ajaxPrefilter:F(ye),ajaxTransport:F(be),ajax:function(t,e){function n(t,e,n,o){var u,c,v,y,x,w=e;2!==b&&(b=2,s&&clearTimeout(s),r=void 0,a=o||"",$.readyState=t>0?4:0,u=t>=200&&300>t||304===t,n&&(y=L(f,$,n)),y=q(f,y,$,u),u?(f.ifModified&&(x=$.getResponseHeader("Last-Modified"),x&&(Q.lastModified[i]=x),x=$.getResponseHeader("etag"),x&&(Q.etag[i]=x)),204===t||"HEAD"===f.type?w="nocontent":304===t?w="notmodified":(w=y.state,c=y.data,v=y.error,u=!v)):(v=w,(t||!w)&&(w="error",0>t&&(t=0))),$.status=t,$.statusText=(e||w)+"",u?h.resolveWith(d,[c,w,$]):h.rejectWith(d,[$,w,v]),$.statusCode(m),m=void 0,l&&p.trigger(u?"ajaxSuccess":"ajaxError",[$,f,u?c:v]),g.fireWith(d,[$,w]),l&&(p.trigger("ajaxComplete",[$,f]),--Q.active||Q.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,a,o,s,u,l,c,f=Q.ajaxSetup({},e),d=f.context||f,p=f.context&&(d.nodeType||d.jquery)?Q(d):Q.event,h=Q.Deferred(),g=Q.Callbacks("once memory"),m=f.statusCode||{},v={},y={},b=0,x="canceled",$={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!o)for(o={};e=pe.exec(a);)o[e[1].toLowerCase()]=e[2];e=o[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,v[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)m[e]=[m[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=g.add,$.success=$.done,$.error=$.fail,f.url=((t||f.url||$e)+"").replace(fe,"").replace(me,we[1]+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=Q.trim(f.dataType||"*").toLowerCase().match(pt)||[""],null==f.crossDomain&&(u=ve.exec(f.url.toLowerCase()),f.crossDomain=!(!u||u[1]===we[1]&&u[2]===we[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(we[3]||("http:"===we[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=Q.param(f.data,f.traditional)),j(ye,f,e,$),2===b)return $;l=Q.event&&f.global,l&&0===Q.active++&&Q.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ge.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(ce.test(i)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=de.test(i)?i.replace(de,"$1_="+le++):i+(ce.test(i)?"&":"?")+"_="+le++)),f.ifModified&&(Q.lastModified[i]&&$.setRequestHeader("If-Modified-Since",Q.lastModified[i]),Q.etag[i]&&$.setRequestHeader("If-None-Match",Q.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]?", "+xe+"; 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=j(be,f,e,$)){$.readyState=1,l&&p.trigger("ajaxSend",[$,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){$.abort("timeout")},f.timeout));try{b=1,r.send(v,n)}catch(w){if(!(2>b))throw w;n(-1,w)}}else n(-1,"No Transport");return $},getJSON:function(t,e,n){return Q.get(t,e,n,"json")},getScript:function(t,e){return Q.get(t,void 0,e,"script")}}),Q.each(["get","post"],function(t,e){Q[e]=function(t,n,r,i){return Q.isFunction(n)&&(i=i||r,r=n,n=void 0),Q.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),Q._evalUrl=function(t){return Q.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Q.fn.extend({wrapAll:function(t){var e;return Q.isFunction(t)?this.each(function(e){Q(this).wrapAll(t.call(this,e))}):(this[0]&&(e=Q(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 Q.isFunction(t)?this.each(function(e){Q(this).wrapInner(t.call(this,e))}):this.each(function(){var e=Q(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=Q.isFunction(t);return this.each(function(n){Q(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){Q.nodeName(this,"body")||Q(this).replaceWith(this.childNodes)}).end()}}),Q.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},Q.expr.filters.visible=function(t){return!Q.expr.filters.hidden(t)};var ke=/%20/g,Me=/\[\]$/,Ce=/\r?\n/g,Se=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;Q.param=function(t,e){var n,r=[],i=function(t,e){e=Q.isFunction(e)?e():null==e?"":e,
|
||
r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=Q.ajaxSettings&&Q.ajaxSettings.traditional),Q.isArray(t)||t.jquery&&!Q.isPlainObject(t))Q.each(t,function(){i(this.name,this.value)});else for(n in t)H(n,t[n],e,i);return r.join("&").replace(ke,"+")},Q.fn.extend({serialize:function(){return Q.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=Q.prop(this,"elements");return t?Q.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!Q(this).is(":disabled")&&Ae.test(this.nodeName)&&!Se.test(t)&&(this.checked||!Mt.test(t))}).map(function(t,e){var n=Q(this).val();return null==n?null:Q.isArray(n)?Q.map(n,function(t){return{name:e.name,value:t.replace(Ce,"\r\n")}}):{name:e.name,value:n.replace(Ce,"\r\n")}}).get()}}),Q.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Ee=0,De={},_e={0:200,1223:204},Te=Q.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in De)De[t]()}),Z.cors=!!Te&&"withCredentials"in Te,Z.ajax=Te=!!Te,Q.ajaxTransport(function(t){var e;return Z.cors||Te&&!t.crossDomain?{send:function(n,r){var i,a=t.xhr(),o=++Ee;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)a[i]=t.xhrFields[i];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)a.setRequestHeader(i,n[i]);e=function(t){return function(){e&&(delete De[o],e=a.onload=a.onerror=null,"abort"===t?a.abort():"error"===t?r(a.status,a.statusText):r(_e[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:void 0,a.getAllResponseHeaders()))}},a.onload=e(),a.onerror=e("error"),e=De[o]=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(s){if(e)throw s}},abort:function(){e&&e()}}:void 0}),Q.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return Q.globalEval(t),t}}}),Q.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),Q.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(r,i){e=Q("<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 Oe=[],Ne=/(=)\?(?=&|$)|\?\?/;Q.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Oe.pop()||Q.expando+"_"+le++;return this[t]=!0,t}}),Q.ajaxPrefilter("json jsonp",function(e,n,r){var i,a,o,s=e.jsonp!==!1&&(Ne.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ne.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=Q.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Ne,"$1"+i):e.jsonp!==!1&&(e.url+=(ce.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||Q.error(i+" was not called"),o[0]},e.dataTypes[0]="json",a=t[i],t[i]=function(){o=arguments},r.always(function(){t[i]=a,e[i]&&(e.jsonpCallback=n.jsonpCallback,Oe.push(i)),o&&Q.isFunction(a)&&a(o[0]),o=a=void 0}),"script"):void 0}),Q.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||K;var r=ot.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=Q.buildFragment([t],e,i),i&&i.length&&Q(i).remove(),Q.merge([],r.childNodes))};var Pe=Q.fn.load;Q.fn.load=function(t,e,n){if("string"!=typeof t&&Pe)return Pe.apply(this,arguments);var r,i,a,o=this,s=t.indexOf(" ");return s>=0&&(r=Q.trim(t.slice(s)),t=t.slice(0,s)),Q.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&Q.ajax({url:t,type:i,dataType:"html",data:e}).done(function(t){a=arguments,o.html(r?Q("<div>").append(Q.parseHTML(t)).find(r):t)}).complete(n&&function(t,e){o.each(n,a||[t.responseText,e,t])}),this},Q.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){Q.fn[e]=function(t){return this.on(e,t)}}),Q.expr.filters.animated=function(t){return Q.grep(Q.timers,function(e){return t===e.elem}).length};var Fe=t.document.documentElement;Q.offset={setOffset:function(t,e,n){var r,i,a,o,s,u,l,c=Q.css(t,"position"),f=Q(t),d={};"static"===c&&(t.style.position="relative"),s=f.offset(),a=Q.css(t,"top"),u=Q.css(t,"left"),l=("absolute"===c||"fixed"===c)&&(a+u).indexOf("auto")>-1,l?(r=f.position(),o=r.top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(u)||0),Q.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(d.top=e.top-s.top+o),null!=e.left&&(d.left=e.left-s.left+i),"using"in e?e.using.call(t,d):f.css(d)}},Q.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){Q.offset.setOffset(this,t,e)});var e,n,r=this[0],i={top:0,left:0},a=r&&r.ownerDocument;if(a)return e=a.documentElement,Q.contains(e,r)?(typeof r.getBoundingClientRect!==Ct&&(i=r.getBoundingClientRect()),n=V(a),{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"===Q.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),Q.nodeName(t[0],"html")||(r=t.offset()),r.top+=Q.css(t[0],"borderTopWidth",!0),r.left+=Q.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-Q.css(n,"marginTop",!0),left:e.left-r.left-Q.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Fe;t&&!Q.nodeName(t,"html")&&"static"===Q.css(t,"position");)t=t.offsetParent;return t||Fe})}}),Q.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r="pageYOffset"===n;Q.fn[e]=function(i){return mt(this,function(e,i,a){var o=V(e);return void 0===a?o?o[n]:e[i]:void(o?o.scrollTo(r?t.pageXOffset:a,r?a:t.pageYOffset):e[i]=a)},e,i,arguments.length,null)}}),Q.each(["top","left"],function(t,e){Q.cssHooks[e]=w(Z.pixelPosition,function(t,n){return n?(n=$(t,e),Rt.test(n)?Q(t).position()[e]+"px":n):void 0})}),Q.each({Height:"height",Width:"width"},function(t,e){Q.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){Q.fn[r]=function(r,i){var a=arguments.length&&(n||"boolean"!=typeof r),o=n||(r===!0||i===!0?"margin":"border");return mt(this,function(e,n,r){var i;return Q.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?Q.css(e,n,o):Q.style(e,n,r,o)},e,a?r:void 0,a,null)}})}),Q.fn.size=function(){return this.length},Q.fn.andSelf=Q.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Q});var je=t.jQuery,Ie=t.$;return Q.noConflict=function(e){return t.$===Q&&(t.$=Ie),e&&t.jQuery===Q&&(t.jQuery=je),Q},typeof e===Ct&&(t.jQuery=t.$=Q),Q}),/**
|
||
* @license AngularJS v1.4.8
|
||
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
* License: MIT
|
||
*/
|
||
function(t,e,n){"use strict";function r(t,e){return e=e||Error,function(){var n,r,i=2,a=arguments,o=a[0],s="["+(t?t+":":"")+o+"] ",u=a[1];for(s+=u.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n=e+i;return n<a.length?bt(a[n]):t}),s+="\nhttp://errors.angularjs.org/1.4.8/"+(t?t+"/":"")+o,r=i,n="?";r<a.length;r++,n="&")s+=n+"p"+(r-i)+"="+encodeURIComponent(bt(a[r]));return new e(s)}}function i(t){if(null==t||E(t))return!1;if(Vr(t)||k(t)||Dr&&t instanceof Dr)return!0;var e="length"in Object(t)&&t.length;return M(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function a(t,e,n){var r,o;if(t)if(S(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(Vr(t)||i(t)){var s="object"!=typeof t;for(r=0,o=t.length;o>r;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==a)t.forEach(e,n,t);else if(w(t))for(r in t)e.call(n,t[r],r,t);else if("function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);else for(r in t)Mr.call(t,r)&&e.call(n,t[r],r,t);return t}function o(t,e,n){for(var r=Object.keys(t).sort(),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 u(){return++qr}function l(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function c(t,e,n){for(var r=t.$$hashKey,i=0,a=e.length;a>i;++i){var o=e[i];if($(o)||S(o))for(var s=Object.keys(o),u=0,f=s.length;f>u;u++){var d=s[u],p=o[d];n&&$(p)?C(p)?t[d]=new Date(p.valueOf()):A(p)?t[d]=new RegExp(p):p.nodeName?t[d]=p.cloneNode(!0):j(p)?t[d]=p.clone():($(t[d])||(t[d]=Vr(p)?[]:{}),c(t[d],[p],!0)):t[d]=p}}return l(t,r),t}function f(t){return c(t,Or.call(arguments,1),!1)}function d(t){return c(t,Or.call(arguments,1),!0)}function p(t){return parseInt(t,10)}function h(t,e){return f(Object.create(t),e)}function g(){}function m(t){return t}function v(t){return function(){return t}}function y(t){return S(t.toString)&&t.toString!==Fr}function b(t){return"undefined"==typeof t}function x(t){return"undefined"!=typeof t}function $(t){return null!==t&&"object"==typeof t}function w(t){return null!==t&&"object"==typeof t&&!jr(t)}function k(t){return"string"==typeof t}function M(t){return"number"==typeof t}function C(t){return"[object Date]"===Fr.call(t)}function S(t){return"function"==typeof t}function A(t){return"[object RegExp]"===Fr.call(t)}function E(t){return t&&t.window===t}function D(t){return t&&t.$evalAsync&&t.$watch}function _(t){return"[object File]"===Fr.call(t)}function T(t){return"[object FormData]"===Fr.call(t)}function O(t){return"[object Blob]"===Fr.call(t)}function N(t){return"boolean"==typeof t}function P(t){return t&&S(t.then)}function F(t){return t&&M(t.length)&&Rr.test(Fr.call(t))}function j(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function I(t){var e,n={},r=t.split(",");for(e=0;e<r.length;e++)n[r[e]]=!0;return n}function L(t){return kr(t.nodeName||t[0]&&t[0].nodeName)}function q(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function H(t,e){function n(t,e){var n,i=e.$$hashKey;if(Vr(t))for(var a=0,o=t.length;o>a;a++)e.push(r(t[a]));else if(w(t))for(n in t)e[n]=r(t[n]);else if(t&&"function"==typeof t.hasOwnProperty)for(n in t)t.hasOwnProperty(n)&&(e[n]=r(t[n]));else for(n in t)Mr.call(t,n)&&(e[n]=r(t[n]));return l(e,i),e}function r(t){if(!$(t))return t;var e=i.indexOf(t);if(-1!==e)return o[e];if(E(t)||D(t))throw Ir("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r,a=!1;return Vr(t)?(r=[],a=!0):F(t)?r=new t.constructor(t):C(t)?r=new Date(t.getTime()):A(t)?(r=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]),r.lastIndex=t.lastIndex):S(t.cloneNode)?r=t.cloneNode(!0):(r=Object.create(jr(t)),a=!0),i.push(t),o.push(r),a?n(t,r):r}var i=[],o=[];if(e){if(F(e))throw Ir("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw Ir("cpi","Can't copy! Source and destination are identical.");return Vr(e)?e.length=0:a(e,function(t,n){"$$hashKey"!==n&&delete e[n]}),i.push(t),o.push(e),n(t,e)}return r(t)}function V(t,e){if(Vr(t)){e=e||[];for(var n=0,r=t.length;r>n;n++)e[n]=t[n]}else if($(t)){e=e||{};for(var i in t)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(e[i]=t[i])}return e||t}function R(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var n,r,i,a=typeof t,o=typeof e;if(a==o&&"object"==a){if(!Vr(t)){if(C(t))return C(e)?R(t.getTime(),e.getTime()):!1;if(A(t))return A(e)?t.toString()==e.toString():!1;if(D(t)||D(e)||E(t)||E(e)||Vr(e)||C(e)||A(e))return!1;i=mt();for(r in t)if("$"!==r.charAt(0)&&!S(t[r])){if(!R(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&x(e[r])&&!S(e[r]))return!1;return!0}if(!Vr(e))return!1;if((n=t.length)==e.length){for(r=0;n>r;r++)if(!R(t[r],e[r]))return!1;return!0}}return!1}function W(t,e,n){return t.concat(Or.call(e,n))}function z(t,e){return Or.call(t,e||0)}function U(t,e){var n=arguments.length>2?z(arguments,2):[];return!S(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,W(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Y(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=n:E(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":D(r)&&(i="$SCOPE"),i}function B(t,e){return"undefined"==typeof t?n:(M(e)||(e=e?2:null),JSON.stringify(t,Y,e))}function G(t){return k(t)?JSON.parse(t):t}function X(t,e){var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Z(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function K(t,e,n){n=n?-1:1;var r=X(e,t.getTimezoneOffset());return Z(t,n*(r-t.getTimezoneOffset()))}function J(t){t=Dr(t).clone();try{t.empty()}catch(e){}var n=Dr("<div>").append(t).html();try{return t[0].nodeType===Jr?kr(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+kr(e)})}catch(e){return kr(n)}}function Q(t){try{return decodeURIComponent(t)}catch(e){}}function tt(t){var e={};return a((t||"").split("&"),function(t){var n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=Q(r),x(r)&&(i=x(i)?Q(i):!0,Mr.call(e,r)?Vr(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))}),e}function et(t){var e=[];return a(t,function(t,n){Vr(t)?a(t,function(t){e.push(rt(n,!0)+(t===!0?"":"="+rt(t,!0)))}):e.push(rt(n,!0)+(t===!0?"":"="+rt(t,!0)))}),e.length?e.join("&"):""}function nt(t){return rt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function rt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function it(t,e){var n,r,i=Br.length;for(r=0;i>r;++r)if(n=Br[r]+e,k(n=t.getAttribute(n)))return n;return null}function at(t,e){var n,r,i={};a(Br,function(e){var i=e+"app";!n&&t.hasAttribute&&t.hasAttribute(i)&&(n=t,r=t.getAttribute(i))}),a(Br,function(e){var i,a=e+"app";!n&&(i=t.querySelector("["+a.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(a))}),n&&(i.strictDi=null!==it(n,"strict-di"),e(n,r?[r]:[],i))}function ot(n,r,i){$(i)||(i={});var o={strictDi:!1};i=f(o,i);var s=function(){if(n=Dr(n),n.injector()){var t=n[0]===e?"document":J(n);throw Ir("btstrpd","App Already Bootstrapped with this Element '{0}'",t.replace(/</,"<").replace(/>/,">"))}r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),r.unshift("ng");var a=te(r,i.strictDi);return a.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),a},u=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;return t&&u.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(u,"")),t&&!l.test(t.name)?s():(t.name=t.name.replace(l,""),Lr.resumeBootstrap=function(t){return a(t,function(t){r.push(t)}),s()},void(S(Lr.resumeDeferredBootstrap)&&Lr.resumeDeferredBootstrap()))}function st(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function ut(t){var e=Lr.element(t).injector();if(!e)throw Ir("test","no injector found for element argument to getTestability");return e.get("$$testability")}function lt(t,e){return e=e||"_",t.replace(Gr,function(t,n){return(n?e:"")+t.toLowerCase()})}function ct(){var e;if(!Xr){var r=Yr();_r=b(r)?t.jQuery:r?t[r]:n,_r&&_r.fn.on?(Dr=_r,f(_r.fn,{scope:vi.scope,isolateScope:vi.isolateScope,controller:vi.controller,injector:vi.injector,inheritedData:vi.inheritedData}),e=_r.cleanData,_r.cleanData=function(t){var n;if(Hr)Hr=!1;else for(var r,i=0;null!=(r=t[i]);i++)n=_r._data(r,"events"),n&&n.$destroy&&_r(r).triggerHandler("$destroy");e(t)}):Dr=Et,Lr.element=Dr,Xr=!0}}function ft(t,e,n){if(!t)throw Ir("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function dt(t,e,n){return n&&Vr(t)&&(t=t[t.length-1]),ft(S(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function pt(t,e){if("hasOwnProperty"===t)throw Ir("badname","hasOwnProperty is not a valid {0} name",e)}function ht(t,e,n){if(!e)return t;for(var r,i=e.split("."),a=t,o=i.length,s=0;o>s;s++)r=i[s],t&&(t=(a=t)[r]);return!n&&S(t)?U(a,t):t}function gt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(e||t[i]!==n)&&(e||(e=Dr(Or.call(t,0,i))),e.push(n));return e||t}function mt(){return Object.create(null)}function vt(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=r("$injector"),i=r("ng"),a=e(t,"angular",Object);return a.$$minErr=a.$$minErr||r,e(a,"module",function(){var t={};return function(r,a,o){var s=function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)};return s(r,"module"),a&&t.hasOwnProperty(r)&&(t[r]=null),e(t,r,function(){function t(t,e,n,r){return r||(r=i),function(){return r[n||"push"]([t,e,arguments]),c}}function e(t,e){return function(n,a){return a&&S(a)&&(a.$$moduleName=r),i.push([t,e,arguments]),c}}if(!a)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 i=[],s=[],u=[],l=t("$injector","invoke","push",s),c={_invokeQueue:i,_configBlocks:s,_runBlocks:u,requires:a,name:r,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:e("$provide","decorator"),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),config:l,run:function(t){return u.push(t),this}};return o&&l(o),c})}})}function yt(t){var e=[];return JSON.stringify(t,function(t,n){if(n=Y(t,n),$(n)){if(e.indexOf(n)>=0)return"...";e.push(n)}return n})}function bt(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):b(t)?"undefined":"string"!=typeof t?yt(t):t}function xt(e){f(e,{bootstrap:ot,copy:H,extend:f,merge:d,equals:R,element:Dr,forEach:a,injector:te,noop:g,bind:U,toJson:B,fromJson:G,identity:m,isUndefined:b,isDefined:x,isString:k,isFunction:S,isObject:$,isNumber:M,isElement:j,isArray:Vr,version:ni,isDate:C,lowercase:kr,uppercase:Cr,callbacks:{counter:0},getTestability:ut,$$minErr:r,$$csp:Ur,reloadWithDebugInfo:st}),(Tr=vt(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:bn}),t.provider("$compile",ce).directive({a:va,input:Pa,textarea:Pa,form:wa,script:Ao,select:_o,style:Oo,option:To,ngBind:Ia,ngBindHtml:qa,ngBindTemplate:La,ngClass:Va,ngClassEven:Wa,ngClassOdd:Ra,ngCloak:za,ngController:Ua,ngForm:ka,ngHide:$o,ngIf:Ga,ngInclude:Xa,ngInit:Ka,ngNonBindable:fo,ngPluralize:mo,ngRepeat:vo,ngShow:xo,ngStyle:wo,ngSwitch:ko,ngSwitchWhen:Mo,ngSwitchDefault:Co,ngOptions:go,ngTransclude:So,ngModel:uo,ngList:Ja,ngChange:Ha,pattern:Po,ngPattern:Po,required:No,ngRequired:No,minlength:jo,ngMinlength:jo,maxlength:Fo,ngMaxlength:Fo,ngValue:ja,ngModelOptions:co}).directive({ngInclude:Za}).directive(ya).directive(Ya),t.provider({$anchorScroll:ee,$animate:Oi,$animateCss:Ni,$$animateQueue:Ti,$$AnimateRunner:_i,$browser:se,$cacheFactory:ue,$controller:ge,$document:me,$exceptionHandler:ve,$filter:Nn,$$forceReflow:Li,$interpolate:Te,$interval:Oe,$http:Ae,$httpParamSerializer:be,$httpParamSerializerJQLike:xe,$httpBackend:De,$xhrFactory:Ee,$location:Ye,$log:Be,$parse:pn,$rootScope:yn,$q:hn,$$q:gn,$sce:kn,$sceDelegate:wn,$sniffer:Mn,$templateCache:le,$templateRequest:Cn,$$testability:Sn,$timeout:An,$window:_n,$$rAF:vn,$$jqLite:Xt,$$HashMap:$i,$$cookieReader:On})}])}function $t(){return++ii}function wt(t){return t.replace(si,function(t,e,n,r){return r?n.toUpperCase():n}).replace(ui,"Moz$1")}function kt(t){return!di.test(t)}function Mt(t){var e=t.nodeType;return e===Zr||!e||e===ti}function Ct(t){for(var e in ri[t.ng339])return!0;return!1}function St(t,e){var n,r,i,o,s=e.createDocumentFragment(),u=[];if(kt(t))u.push(e.createTextNode(t));else{for(n=n||s.appendChild(e.createElement("div")),r=(pi.exec(t)||["",""])[1].toLowerCase(),i=gi[r]||gi._default,n.innerHTML=i[1]+t.replace(hi,"<$1></$2>")+i[2],o=i[0];o--;)n=n.lastChild;u=W(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",a(u,function(t){s.appendChild(t)}),s}function At(t,n){n=n||e;var r;return(r=fi.exec(t))?[n.createElement(r[1])]:(r=St(t,n))?r.childNodes:[]}function Et(t){if(t instanceof Et)return t;var e;if(k(t)&&(t=Wr(t),e=!0),!(this instanceof Et)){if(e&&"<"!=t.charAt(0))throw ci("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Et(t)}e?Lt(this,At(t)):Lt(this,t)}function Dt(t){return t.cloneNode(!0)}function _t(t,e){if(e||Ot(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;i>r;r++)Ot(n[r])}function Tt(t,e,n,r){if(x(r))throw ci("offargs","jqLite#off() does not support the `selector` argument");var i=Nt(t),o=i&&i.events,s=i&&i.handle;if(s)if(e){var u=function(e){var r=o[e];x(n)&&q(r||[],n),x(n)&&r&&r.length>0||(oi(t,e,s),delete o[e])};a(e.split(" "),function(t){u(t),li[t]&&u(li[t])})}else for(e in o)"$destroy"!==e&&oi(t,e,s),delete o[e]}function Ot(t,e){var r=t.ng339,i=r&&ri[r];if(i){if(e)return void delete i.data[e];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Tt(t)),delete ri[r],t.ng339=n}}function Nt(t,e){var r=t.ng339,i=r&&ri[r];return e&&!i&&(t.ng339=r=$t(),i=ri[r]={events:{},data:{},handle:n}),i}function Pt(t,e,n){if(Mt(t)){var r=x(n),i=!r&&e&&!$(e),a=!e,o=Nt(t,!i),s=o&&o.data;if(r)s[e]=n;else{if(a)return s;if(i)return s&&s[e];f(s,e)}}}function Ft(t,e){return t.getAttribute?(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1:!1}function jt(t,e){e&&t.setAttribute&&a(e.split(" "),function(e){t.setAttribute("class",Wr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+Wr(e)+" "," ")))})}function It(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");a(e.split(" "),function(t){t=Wr(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",Wr(n))}}function Lt(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;n>r;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function qt(t,e){return Ht(t,"$"+(e||"ngController")+"Controller")}function Ht(t,e,n){t.nodeType==ti&&(t=t.documentElement);for(var r=Vr(e)?e:[e];t;){for(var i=0,a=r.length;a>i;i++)if(x(n=Dr.data(t,r[i])))return n;t=t.parentNode||t.nodeType===ei&&t.host}}function Vt(t){for(_t(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Rt(t,e){e||_t(t);var n=t.parentNode;n&&n.removeChild(t)}function Wt(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):Dr(n).on("load",e)}function zt(t,e){var n=yi[e.toLowerCase()];return n&&bi[L(t)]&&n}function Ut(t){return xi[t]}function Yt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],a=i?i.length:0;if(a){if(b(n.immediatePropagationStopped)){var o=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),o&&o.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var s=i.specialHandlerWrapper||Bt;a>1&&(i=V(i));for(var u=0;a>u;u++)n.isImmediatePropagationStopped()||s(t,n,i[u])}};return n.elem=t,n}function Bt(t,e,n){n.call(t,e)}function Gt(t,e,n){var r=e.relatedTarget;(!r||r!==t&&!mi.call(t,r))&&n.call(t,e)}function Xt(){this.$get=function(){return f(Et,{hasClass:function(t,e){return t.attr&&(t=t[0]),Ft(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),It(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),jt(t,e)}})}}function Zt(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||u)():r+":"+t}function Kt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}a(t,this.put,this)}function Jt(t){var e=t.toString().replace(Ci,""),n=e.match(wi);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Qt(t,e,n){var r,i,o,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw k(n)&&n||(n=t.name||Jt(t)),Si("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=t.toString().replace(Ci,""),o=i.match(wi),a(o[1].split(ki),function(t){t.replace(Mi,function(t,e,n){r.push(n)})})}t.$inject=r}}else Vr(t)?(s=t.length-1,dt(t[s],"fn"),r=t.slice(0,s)):dt(t,"fn",!0);return r}function te(t,e){function r(t){return function(e,n){return $(e)?void a(e,s(t)):t(e,n)}}function i(t,e){if(pt(t,"service"),(S(e)||Vr(e))&&(e=M.instantiate(e)),!e.$get)throw Si("pget","Provider '{0}' must define $get factory method.",t);return w[t+m]=e}function o(t,e){return function(){var n=A.invoke(e,this);if(b(n))throw Si("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function u(t,e,n){return i(t,{$get:n!==!1?o(t,e):e})}function l(t,e){return u(t,["$injector",function(t){return t.instantiate(e)}])}function c(t,e){return u(t,v(e),!1)}function f(t,e){pt(t,"constant"),w[t]=e,C[t]=e}function d(t,e){var n=M.get(t+m),r=n.$get;n.$get=function(){var t=A.invoke(r,n);return A.invoke(e,null,{$delegate:t})}}function p(t){ft(b(t)||Vr(t),"modulesToLoad","not an array");var e,n=[];return a(t,function(t){function r(t){var e,n;for(e=0,n=t.length;n>e;e++){var r=t[e],i=M.get(r[0]);i[r[1]].apply(i,r[2])}}if(!x.get(t)){x.put(t,!0);try{k(t)?(e=Tr(t),n=n.concat(p(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):S(t)?n.push(M.invoke(t)):Vr(t)?n.push(M.invoke(t)):dt(t,"module")}catch(i){throw Vr(t)&&(t=t[t.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),Si("modulerr","Failed to instantiate module {0} due to:\n{1}",t,i.stack||i.message||i)}}}),n}function h(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===g)throw Si("cdep","Circular dependency found: {0}",e+" <- "+y.join(" <- "));return t[e]}try{return y.unshift(e),t[e]=g,t[e]=n(e,r)}catch(i){throw t[e]===g&&delete t[e],i}finally{y.shift()}}function i(t,n,i,a){"string"==typeof i&&(a=i,i=null);var o,s,u,l=[],c=te.$$annotate(t,e,a);for(s=0,o=c.length;o>s;s++){if(u=c[s],"string"!=typeof u)throw Si("itkn","Incorrect injection token! Expected service name as string, got {0}",u);l.push(i&&i.hasOwnProperty(u)?i[u]:r(u,a))}return Vr(t)&&(t=t[o]),t.apply(n,l)}function a(t,e,n){var r=Object.create((Vr(t)?t[t.length-1]:t).prototype||null),a=i(t,r,e,n);return $(a)||S(a)?a:r}return{invoke:i,instantiate:a,get:r,annotate:te.$$annotate,has:function(e){return w.hasOwnProperty(e+m)||t.hasOwnProperty(e)}}}e=e===!0;var g={},m="Provider",y=[],x=new Kt([],!0),w={$provide:{provider:r(i),factory:r(u),service:r(l),value:r(c),constant:r(f),decorator:d}},M=w.$injector=h(w,function(t,e){throw Lr.isString(e)&&y.push(e),Si("unpr","Unknown provider: {0}",y.join(" <- "))}),C={},A=C.$injector=h(C,function(t,e){var r=M.get(t+m,e);return A.invoke(r.$get,r,n,t)});return a(p(t),function(t){t&&A.invoke(t)}),A}function ee(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){return"a"===L(t)?(e=t,!0):void 0}),e}function a(){var t=s.yOffset;if(S(t))t=t();else if(j(t)){var n=t[0],r=e.getComputedStyle(n);t="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else M(t)||(t=0);return t}function o(t){if(t){t.scrollIntoView();var n=a();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function s(t){t=k(t)?t:n.hash();var e;t?(e=u.getElementById(t))?o(e):(e=i(u.getElementsByName(t)))?o(e):"top"===t&&o(null):o(null)}var u=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){(t!==e||""!==t)&&Wt(function(){r.$evalAsync(s)})}),s}]}function ne(t,e){return t||e?t?e?(Vr(t)&&(t=t.join(" ")),Vr(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function re(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===Ei)return n}}function ie(t){k(t)&&(t=t.split(" "));var e=mt();return a(t,function(t){t.length&&(e[t]=!0)}),e}function ae(t){return $(t)?t:{}}function oe(t,e,n,r){function i(t){try{t.apply(null,z(arguments,1))}finally{if(y--,0===y)for(;x.length;)try{x.pop()()}catch(e){n.error(e)}}}function o(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}function s(){C=null,l(),c()}function u(){try{return p.state}catch(t){}}function l(){$=u(),$=b($)?null:$,R($,E)&&($=E),E=$}function c(){(k!==f.url()||w!==$)&&(k=f.url(),w=$,a(S,function(t){t(f.url(),$)}))}var f=this,d=(e[0],t.location),p=t.history,h=t.setTimeout,m=t.clearTimeout,v={};f.isMock=!1;var y=0,x=[];f.$$completeOutstandingRequest=i,f.$$incOutstandingRequestCount=function(){y++},f.notifyWhenNoOutstandingRequests=function(t){0===y?t():x.push(t)};var $,w,k=d.href,M=e.find("base"),C=null;l(),w=$,f.url=function(e,n,i){if(b(i)&&(i=null),d!==t.location&&(d=t.location),p!==t.history&&(p=t.history),e){var a=w===i;if(k===e&&(!r.history||a))return f;var s=k&&Ie(k)===Ie(e);return k=e,w=i,!r.history||s&&a?((!s||C)&&(C=e),n?d.replace(e):s?d.hash=o(e):d.href=e,d.href!==e&&(C=e)):(p[n?"replaceState":"pushState"](i,"",e),l(),w=$),f}return C||d.href.replace(/%27/g,"'")},f.state=function(){return $};var S=[],A=!1,E=null;f.onUrlChange=function(e){return A||(r.history&&Dr(t).on("popstate",s),Dr(t).on("hashchange",s),A=!0),S.push(e),e},f.$$applicationDestroyed=function(){Dr(t).off("hashchange popstate",s)},f.$$checkUrlChange=c,f.baseHref=function(){var t=M.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""},f.defer=function(t,e){var n;return y++,n=h(function(){delete v[n],i(t)},e||0),v[n]=!0,n},f.defer.cancel=function(t){return v[t]?(delete v[t],m(t),i(g),!0):!1}}function se(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new oe(t,r,e,n)}]}function ue(){this.$get=function(){function t(t,n){function i(t){t!=d&&(p?p==t&&(p=t.n):p=t,a(t.n,t.p),a(t,d),d=t,d.n=null)}function a(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 o=0,s=f({},n,{id:t}),u=mt(),l=n&&n.capacity||Number.MAX_VALUE,c=mt(),d=null,p=null;return e[t]={put:function(t,e){if(!b(e)){if(l<Number.MAX_VALUE){var n=c[t]||(c[t]={key:t});i(n)}return t in u||o++,u[t]=e,o>l&&this.remove(p.key),e}},get:function(t){if(l<Number.MAX_VALUE){var e=c[t];if(!e)return;i(e)}return u[t]},remove:function(t){if(l<Number.MAX_VALUE){var e=c[t];if(!e)return;e==d&&(d=e.p),e==p&&(p=e.n),a(e.n,e.p),delete c[t]}t in u&&(delete u[t],o--)},removeAll:function(){u=mt(),o=0,c=mt(),d=p=null},destroy:function(){u=null,s=null,c=null,delete e[t]},info:function(){return f({},s,{size:o})}}}var e={};return t.info=function(){var t={};return a(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function le(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function ce(t,r){function i(t,e,n){var r=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,i={};return a(t,function(t,a){var o=t.match(r);if(!o)throw Pi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,a,t,n?"controller bindings definition":"isolate scope definition");i[a]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||a}}),i}function o(t,e){var n={isolateScope:null,bindToController:null};if($(t.scope)&&(t.bindToController===!0?(n.bindToController=i(t.scope,e,!0),n.isolateScope={}):n.isolateScope=i(t.scope,e,!1)),$(t.bindToController)&&(n.bindToController=i(t.bindToController,e,!0)),$(n.bindToController)){var r=t.controller,a=t.controllerAs;if(!r)throw Pi("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);if(!he(r,a))throw Pi("noident","Cannot bind to controller without identifier for directive '{0}'.",e)}return n}function u(t){var e=t.charAt(0);if(!e||e!==kr(e))throw Pi("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Pi("baddir","Directive name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}var l={},c="Directive",d=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,p=/(([\w\-]+)(?:\:([^;]+))?;?)/,y=I("ngSrc,ngSrcset,src,srcset"),w=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,M=/^(on[a-z]+|formaction)$/;this.directive=function A(e,n){return pt(e,"directive"),k(e)?(u(e),ft(n,"directiveFactory"),l.hasOwnProperty(e)||(l[e]=[],t.factory(e+c,["$injector","$exceptionHandler",function(t,n){var r=[];return a(l[e],function(i,a){try{var s=t.invoke(i);S(s)?s={compile:v(s)}:!s.compile&&s.link&&(s.compile=v(s.link)),s.priority=s.priority||0,s.index=a,s.name=s.name||e,s.require=s.require||s.controller&&s.name,s.restrict=s.restrict||"EA";var u=s.$$bindings=o(s,s.name);$(u.isolateScope)&&(s.$$isolateBindings=u.isolateScope),s.$$moduleName=i.$$moduleName,r.push(s)}catch(l){n(l)}}),r}])),l[e].push(n)):a(e,s(A)),this},this.aHrefSanitizationWhitelist=function(t){return x(t)?(r.aHrefSanitizationWhitelist(t),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return x(t)?(r.imgSrcSanitizationWhitelist(t),this):r.imgSrcSanitizationWhitelist()};var C=!0;this.debugInfoEnabled=function(t){return x(t)?(C=t,this):C},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(t,r,i,o,s,u,v,x,A,E,_){function T(t,e){try{t.addClass(e)}catch(n){}}function O(t,e,n,r,i){t instanceof Dr||(t=Dr(t)),a(t,function(e,n){e.nodeType==Jr&&e.nodeValue.match(/\S+/)&&(t[n]=Dr(e).wrap("<span></span>").parent()[0])});var o=P(t,e,t,n,r,i);O.$$addScopeClass(t);var s=null;return function(e,n,r){ft(e,"scope"),i&&i.needsNewScope&&(e=e.$parent.$new()),r=r||{};var a=r.parentBoundTranscludeFn,u=r.transcludeControllers,l=r.futureParentElement;a&&a.$$boundTransclude&&(a=a.$$boundTransclude),s||(s=N(l));var c;if(c="html"!==s?Dr(Q(s,Dr("<div>").append(t).html())):n?vi.clone.call(t):t,u)for(var f in u)c.data("$"+f+"Controller",u[f].instance);return O.$$addScopeInfo(c,e),n&&n(c,e),o&&o(e,c,c,a),c}}function N(t){var e=t&&t[0];return e&&"foreignobject"!==L(e)&&e.toString().match(/SVG/)?"svg":"html"}function P(t,e,r,i,a,o){function s(t,r,i,a){var o,s,u,l,c,f,d,p,m;if(h){var v=r.length;for(m=new Array(v),c=0;c<g.length;c+=3)d=g[c],m[d]=r[d]}else m=r;for(c=0,f=g.length;f>c;)u=m[g[c++]],o=g[c++],s=g[c++],o?(o.scope?(l=t.$new(),O.$$addScopeInfo(Dr(u),l)):l=t,p=o.transcludeOnThisElement?F(t,o.transclude,a):!o.templateOnThisElement&&a?a:!a&&e?F(t,e):null,o(s,l,u,i,p)):s&&s(t,u.childNodes,n,a)}for(var u,l,c,f,d,p,h,g=[],m=0;m<t.length;m++)u=new ot,l=j(t[m],[],u,0===m?i:n,a),c=l.length?V(l,t[m],u,e,r,null,[],[],o):null,c&&c.scope&&O.$$addScopeClass(u.$$element),d=c&&c.terminal||!(f=t[m].childNodes)||!f.length?null:P(f,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:e),(c||d)&&(g.push(m,c,d),p=!0,h=h||c),o=null;return p?s:null}function F(t,e,n){var r=function(r,i,a,o,s){return r||(r=t.$new(!1,s),r.$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:a,futureParentElement:o})};return r}function j(t,e,n,r,i){var a,o,s=t.nodeType,u=n.$attr;switch(s){case Zr:U(e,fe(L(t)),"E",r,i);for(var l,c,f,h,g,m,v=t.attributes,y=0,b=v&&v.length;b>y;y++){var x=!1,w=!1;l=v[y],c=l.name,g=Wr(l.value),h=fe(c),(m=dt.test(h))&&(c=c.replace(Fi,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var M=h.match(pt);M&&Y(M[1])&&(x=c,w=c.substr(0,c.length-5)+"end",c=c.substr(0,c.length-6)),f=fe(c.toLowerCase()),u[f]=c,(m||!n.hasOwnProperty(f))&&(n[f]=g,zt(t,f)&&(n[f]=!0)),et(t,e,g,f,m),U(e,f,"A",r,i,x,w)}if(o=t.className,$(o)&&(o=o.animVal),k(o)&&""!==o)for(;a=p.exec(o);)f=fe(a[2]),U(e,f,"C",r,i)&&(n[f]=Wr(a[3])),o=o.substr(a.index+a[0].length);break;case Jr:if(11===Er)for(;t.parentNode&&t.nextSibling&&t.nextSibling.nodeType===Jr;)t.nodeValue=t.nodeValue+t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);K(e,t.nodeValue);break;case Qr:try{a=d.exec(t.nodeValue),a&&(f=fe(a[1]),U(e,f,"M",r,i)&&(n[f]=Wr(a[2])))}catch(C){}}return e.sort(X),e}function I(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Pi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==Zr&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return Dr(r)}function H(t,e,n){return function(r,i,a,o,s){return i=I(i[0],e,n),t(r,i,a,o,s)}}function V(t,r,a,o,s,l,c,f,d){function p(t,e,n,r){t&&(n&&(t=H(t,n,r)),t.require=v.require,t.directiveName=y,(_===v||v.$$isolateScope)&&(t=rt(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=H(e,n,r)),e.require=v.require,e.directiveName=y,(_===v||v.$$isolateScope)&&(e=rt(e,{isolateScope:!0})),f.push(e))}function h(t,e,n,r){var i;if(k(e)){var a=e.match(w),o=e.substring(a[0].length),s=a[1]||a[3],u="?"===a[2];if("^^"===s?n=n.parent():(i=r&&r[o],i=i&&i.instance),!i){var l="$"+o+"Controller";i=s?n.inheritedData(l):n.data(l)}if(!i&&!u)throw Pi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,t)}else if(Vr(e)){i=[];for(var c=0,f=e.length;f>c;c++)i[c]=h(t,e[c],n,r)}return i||null}function g(t,e,n,r,i,a){var o=mt();for(var s in r){var l=r[s],c={$scope:l===_||l.$$isolateScope?i:a,$element:t,$attrs:e,$transclude:n},f=l.controller;"@"==f&&(f=e[l.name]);var d=u(f,c,!0,l.controllerAs);o[l.name]=d,L||t.data("$"+l.name+"Controller",d.instance)}return o}function m(t,e,i,o,s){function u(t,e,r){var i;return D(t)||(r=e,e=t,t=n),L&&(i=m),r||(r=L?y.parent():y),s(t,e,i,r,N)}var l,d,p,m,v,y,b,x,$;r===i?(b=a,y=a.$$element):(y=Dr(i),b=new ot(y,a)),p=e,_?d=e.$new(!0):A&&(p=e.$parent),s&&(v=u,v.$$boundTransclude=s),E&&(m=g(y,b,v,E,d,e)),_&&(O.$$addScopeInfo(y,d,!0,!(T&&(T===_||T===_.$$originalDirective))),O.$$addScopeClass(y,!0),d.$$isolateBindings=_.$$isolateBindings,x=at(e,b,d,d.$$isolateBindings,_),x&&d.$on("$destroy",x));for(var w in m){var k=E[w],M=m[w],C=k.$$bindings.bindToController;M.identifier&&C&&($=at(p,b,M.instance,C,k));var S=M();S!==M.instance&&(M.instance=S,y.data("$"+k.name+"Controller",S),$&&$(),$=at(p,b,M.instance,C,k))}for(U=0,Y=c.length;Y>U;U++)l=c[U],it(l,l.isolateScope?d:e,y,b,l.require&&h(l.directiveName,l.require,y,m),v);var N=e;for(_&&(_.template||null===_.templateUrl)&&(N=d),t&&t(N,i.childNodes,n,s),U=f.length-1;U>=0;U--)l=f[U],it(l,l.isolateScope?d:e,y,b,l.require&&h(l.directiveName,l.require,y,m),v)}d=d||{};for(var v,y,b,x,M,C=-Number.MAX_VALUE,A=d.newScopeDirective,E=d.controllerDirectives,_=d.newIsolateScopeDirective,T=d.templateDirective,N=d.nonTlbTranscludeDirective,P=!1,F=!1,L=d.hasElementTranscludeDirective,q=a.$$element=Dr(r),V=l,R=o,U=0,Y=t.length;Y>U;U++){v=t[U];var X=v.$$start,K=v.$$end;if(X&&(q=I(r,X,K)),b=n,C>v.priority)break;if((M=v.scope)&&(v.templateUrl||($(M)?(Z("new/isolated scope",_||A,v,q),_=v):Z("new/isolated scope",_,v,q)),
|
||
A=A||v),y=v.name,!v.templateUrl&&v.controller&&(M=v.controller,E=E||mt(),Z("'"+y+"' controller",E[y],v,q),E[y]=v),(M=v.transclude)&&(P=!0,v.$$tlb||(Z("transclusion",N,v,q),N=v),"element"==M?(L=!0,C=v.priority,b=q,q=a.$$element=Dr(e.createComment(" "+y+": "+a[y]+" ")),r=q[0],nt(s,z(b),r),R=O(b,o,C,V&&V.name,{nonTlbTranscludeDirective:N})):(b=Dr(Dt(r)).contents(),q.empty(),R=O(b,o,n,n,{needsNewScope:v.$$isolateScope||v.$$newScope}))),v.template)if(F=!0,Z("template",T,v,q),T=v,M=S(v.template)?v.template(q,a):v.template,M=ct(M),v.replace){if(V=v,b=kt(M)?[]:pe(Q(v.templateNamespace,Wr(M))),r=b[0],1!=b.length||r.nodeType!==Zr)throw Pi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",y,"");nt(s,q,r);var tt={$attr:{}},et=j(r,[],tt),st=t.splice(U+1,t.length-(U+1));(_||A)&&W(et,_,A),t=t.concat(et).concat(st),B(a,tt),Y=t.length}else q.html(M);if(v.templateUrl)F=!0,Z("template",T,v,q),T=v,v.replace&&(V=v),m=G(t.splice(U,t.length-U),q,a,s,P&&R,c,f,{controllerDirectives:E,newScopeDirective:A!==v&&A,newIsolateScopeDirective:_,templateDirective:T,nonTlbTranscludeDirective:N}),Y=t.length;else if(v.compile)try{x=v.compile(q,a,R),S(x)?p(null,x,X,K):x&&p(x.pre,x.post,X,K)}catch(ut){i(ut,J(q))}v.terminal&&(m.terminal=!0,C=Math.max(C,v.priority))}return m.scope=A&&A.scope===!0,m.transcludeOnThisElement=P,m.templateOnThisElement=F,m.transclude=R,d.hasElementTranscludeDirective=L,m}function W(t,e,n){for(var r=0,i=t.length;i>r;r++)t[r]=h(t[r],{$$isolateScope:e,$$newScope:n})}function U(e,n,r,a,o,s,u){if(n===o)return null;var f=null;if(l.hasOwnProperty(n))for(var d,p=t.get(n+c),g=0,m=p.length;m>g;g++)try{d=p[g],(b(a)||a>d.priority)&&-1!=d.restrict.indexOf(r)&&(s&&(d=h(d,{$$start:s,$$end:u})),e.push(d),f=d)}catch(v){i(v)}return f}function Y(e){if(l.hasOwnProperty(e))for(var n,r=t.get(e+c),i=0,a=r.length;a>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function B(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;a(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),a(e,function(e,a){"class"==a?(T(i,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==a?(i.attr("style",i.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==a.charAt(0)||t.hasOwnProperty(a)||(t[a]=e,r[a]=n[a])})}function G(t,e,n,r,i,s,u,l){var c,f,d=[],p=e[0],g=t.shift(),m=h(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=S(g.templateUrl)?g.templateUrl(e,n):g.templateUrl,y=g.templateNamespace;return e.empty(),o(v).then(function(o){var h,b,x,w;if(o=ct(o),g.replace){if(x=kt(o)?[]:pe(Q(y,Wr(o))),h=x[0],1!=x.length||h.nodeType!==Zr)throw Pi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);b={$attr:{}},nt(r,e,h);var k=j(h,[],b);$(g.scope)&&W(k,!0),t=k.concat(t),B(n,b)}else h=p,e.html(o);for(t.unshift(m),c=V(t,h,n,i,e,g,s,u,l),a(r,function(t,n){t==h&&(r[n]=e[0])}),f=P(e[0].childNodes,i);d.length;){var M=d.shift(),C=d.shift(),S=d.shift(),A=d.shift(),E=e[0];if(!M.$$destroyed){if(C!==p){var D=C.className;l.hasElementTranscludeDirective&&g.replace||(E=Dt(h)),nt(S,Dr(C),E),T(Dr(E),D)}w=c.transcludeOnThisElement?F(M,c.transclude,A):A,c(f,M,E,r,w)}}d=null}),function(t,e,n,r,i){var a=i;e.$$destroyed||(d?d.push(e,n,r,a):(c.transcludeOnThisElement&&(a=F(e,c.transclude,i)),c(f,e,n,r,a)))}}function X(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 Z(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Pi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,J(r))}function K(t,e){var n=r(e,!0);n&&t.push({priority:0,compile:function(t){var e=t.parent(),r=!!e.length;return r&&O.$$addBindingClass(e),function(t,e){var i=e.parent();r||O.$$addBindingClass(i),O.$$addBindingInfo(i,n.expressions),t.$watch(n,function(t){e[0].nodeValue=t})}}})}function Q(t,n){switch(t=kr(t||"html")){case"svg":case"math":var r=e.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function tt(t,e){if("srcdoc"==e)return A.HTML;var n=L(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?A.RESOURCE_URL:void 0}function et(t,e,n,i,a){var o=tt(t,i);a=y[i]||a;var s=r(n,!0,o,a);if(s){if("multiple"===i&&"select"===L(t))throw Pi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",J(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var l=u.$$observers||(u.$$observers=mt());if(M.test(i))throw Pi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[i];c!==n&&(s=c&&r(c,!0,o,a),n=c),s&&(u[i]=s(t),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(s,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function nt(t,n,r){var i,a,o=n[0],s=n.length,u=o.parentNode;if(t)for(i=0,a=t.length;a>i;i++)if(t[i]==o){t[i++]=r;for(var l=i,c=l+s-1,f=t.length;f>l;l++,c++)f>c?t[l]=t[c]:delete t[l];t.length-=s-1,t.context===o&&(t.context=r);break}u&&u.replaceChild(r,o);var d=e.createDocumentFragment();d.appendChild(o),Dr.hasData(o)&&(Dr.data(r,Dr.data(o)),_r?(Hr=!0,_r.cleanData([o])):delete Dr.cache[o[Dr.expando]]);for(var p=1,h=n.length;h>p;p++){var g=n[p];Dr(g).remove(),d.appendChild(g),delete n[p]}n[0]=r,n.length=1}function rt(t,e){return f(function(){return t.apply(null,arguments)},t,e)}function it(t,e,n,r,a,o){try{t(e,n,r,a,o)}catch(s){i(s,J(n))}}function at(t,e,n,i,o){var u=[];return a(i,function(i,a){var l,c,f,d,p=i.attrName,h=i.optional,m=i.mode;switch(m){case"@":h||Mr.call(e,p)||(n[a]=e[p]=void 0),e.$observe(p,function(t){k(t)&&(n[a]=t)}),e.$$observers[p].$$scope=t,k(e[p])&&(n[a]=r(e[p])(t));break;case"=":if(!Mr.call(e,p)){if(h)break;e[p]=void 0}if(h&&!e[p])break;c=s(e[p]),d=c.literal?R:function(t,e){return t===e||t!==t&&e!==e},f=c.assign||function(){throw l=n[a]=c(t),Pi("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",e[p],o.name)},l=n[a]=c(t);var v=function(e){return d(e,n[a])||(d(e,l)?f(t,e=n[a]):n[a]=e),l=e};v.$stateful=!0;var y;y=i.collection?t.$watchCollection(e[p],v):t.$watch(s(e[p],v),null,c.literal),u.push(y);break;case"&":if(c=e.hasOwnProperty(p)?s(e[p]):g,c===g&&h)break;n[a]=function(e){return c(t,e)}}}),u.length&&function(){for(var t=0,e=u.length;e>t;++t)u[t]()}}var ot=function(t,e){if(e){var n,r,i,a=Object.keys(e);for(n=0,r=a.length;r>n;n++)i=a[n],this[i]=e[i]}else this.$attr={};this.$$element=t};ot.prototype={$normalize:fe,$addClass:function(t){t&&t.length>0&&E.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&E.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=de(t,e);n&&n.length&&E.addClass(this.$$element,n);var r=de(e,t);r&&r.length&&E.removeClass(this.$$element,r)},$set:function(t,e,n,r){var o,s=this.$$element[0],u=zt(s,t),l=Ut(t),c=t;if(u?(this.$$element.prop(t,e),r=u):l&&(this[l]=e,c=l),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t],r||(this.$attr[t]=r=lt(t,"-"))),o=L(this.$$element),"a"===o&&"href"===t||"img"===o&&"src"===t)this[t]=e=_(e,"src"===t);else if("img"===o&&"srcset"===t){for(var f="",d=Wr(e),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(d)?p:/(,)/,g=d.split(h),m=Math.floor(g.length/2),v=0;m>v;v++){var y=2*v;f+=_(Wr(g[y]),!0),f+=" "+Wr(g[y+1])}var x=Wr(g[2*v]).split(/\s/);f+=_(Wr(x[0]),!0),2===x.length&&(f+=" "+Wr(x[1])),this[t]=e=f}n!==!1&&(null===e||b(e)?this.$$element.removeAttr(r):this.$$element.attr(r,e));var $=this.$$observers;$&&a($[c],function(t){try{t(e)}catch(n){i(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=mt()),i=r[t]||(r[t]=[]);return i.push(e),v.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||b(n[t])||e(n[t])}),function(){q(i,e)}}};var st=r.startSymbol(),ut=r.endSymbol(),ct="{{"==st||"}}"==ut?m:function(t){return t.replace(/\{\{/g,st).replace(/}}/g,ut)},dt=/^ngAttr[A-Z]/,pt=/^(.+)Start$/;return O.$$addBindingInfo=C?function(t,e){var n=t.data("$binding")||[];Vr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:g,O.$$addBindingClass=C?function(t){T(t,"ng-binding")}:g,O.$$addScopeInfo=C?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:g,O.$$addScopeClass=C?function(t,e){T(t,e?"ng-isolate-scope":"ng-scope")}:g,O}]}function fe(t){return wt(t.replace(Fi,""))}function de(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var a=0;a<r.length;a++){for(var o=r[a],s=0;s<i.length;s++)if(o==i[s])continue t;n+=(n.length>0?" ":"")+o}return n}function pe(t){t=Dr(t);var e=t.length;if(1>=e)return t;for(;e--;){var n=t[e];n.nodeType===Qr&&Nr.call(t,e,1)}return t}function he(t,e){if(e&&k(e))return e;if(k(t)){var n=Ii.exec(t);if(n)return n[3]}}function ge(){var t={},e=!1;this.register=function(e,n){pt(e,"controller"),$(e)?f(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(i,a){function o(t,e,n,i){if(!t||!$(t.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}return function(r,s,u,l){var c,d,p,h;if(u=u===!0,l&&k(l)&&(h=l),k(r)){if(d=r.match(Ii),!d)throw ji("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);p=d[1],h=h||d[3],r=t.hasOwnProperty(p)?t[p]:ht(s.$scope,p,!0)||(e?ht(a,p,!0):n),dt(r,p,!0)}if(u){var g=(Vr(r)?r[r.length-1]:r).prototype;c=Object.create(g||null),h&&o(s,h,c,p||r.name);var m;return m=f(function(){var t=i.invoke(r,c,s,p);return t!==c&&($(t)||S(t))&&(c=t,h&&o(s,h,c,p||r.name)),c},{instance:c,identifier:h})}return c=i.instantiate(r,s,p),h&&o(s,h,c,p||r.name),c}}]}function me(){this.$get=["$window",function(t){return Dr(t.document)}]}function ve(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function ye(t){return $(t)?C(t)?t.toISOString():B(t):t}function be(){this.$get=function(){return function(t){if(!t)return"";var e=[];return o(t,function(t,n){null===t||b(t)||(Vr(t)?a(t,function(t,r){e.push(rt(n)+"="+rt(ye(t)))}):e.push(rt(n)+"="+rt(ye(t))))}),e.join("&")}}}function xe(){this.$get=function(){return function(t){function e(t,r,i){null===t||b(t)||(Vr(t)?a(t,function(t,n){e(t,r+"["+($(t)?n:"")+"]")}):$(t)&&!C(t)?o(t,function(t,n){e(t,r+(i?"":"[")+n+(i?"":"]"))}):n.push(rt(r)+"="+rt(ye(t))))}if(!t)return"";var n=[];return e(t,"",!0),n.join("&")}}}function $e(t,e){if(k(t)){var n=t.replace(Wi,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(qi)||we(n))&&(t=G(n))}}return t}function we(t){var e=t.match(Vi);return e&&Ri[e[0]].test(t)}function ke(t){function e(t,e){t&&(r[t]=r[t]?r[t]+", "+e:e)}var n,r=mt();return k(t)?a(t.split("\n"),function(t){n=t.indexOf(":"),e(kr(Wr(t.substr(0,n))),Wr(t.substr(n+1)))}):$(t)&&a(t,function(t,n){e(kr(n),Wr(t))}),r}function Me(t){var e;return function(n){if(e||(e=ke(t)),n){var r=e[kr(n)];return void 0===r&&(r=null),r}return e}}function Ce(t,e,n,r){return S(r)?r(t,e,n):(a(r,function(r){t=r(t,e,n)}),t)}function Se(t){return t>=200&&300>t}function Ae(){var t=this.defaults={transformResponse:[$e],transformRequest:[function(t){return!$(t)||_(t)||O(t)||T(t)?t:B(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:V(Hi),put:V(Hi),patch:V(Hi)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},e=!1;this.useApplyAsync=function(t){return x(t)?(e=!!t,this):e};var i=!0;this.useLegacyPromiseExtensions=function(t){return x(t)?(i=!!t,this):i};var o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(s,u,l,c,d,p){function h(e){function o(t){var e=f({},t);return e.data=Ce(t.data,t.headers,t.status,l.transformResponse),Se(t.status)?e:d.reject(e)}function s(t,e){var n,r={};return a(t,function(t,i){S(t)?(n=t(e),null!=n&&(r[i]=n)):r[i]=t}),r}function u(e){var n,r,i,a=t.headers,o=f({},e.headers);a=f({},a.common,a[kr(e.method)]);t:for(n in a){r=kr(n);for(i in o)if(kr(i)===r)continue t;o[n]=a[n]}return s(o,V(e))}if(!Lr.isObject(e))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",e);var l=f({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},e);l.headers=u(e),l.method=Cr(l.method),l.paramSerializer=k(l.paramSerializer)?p.get(l.paramSerializer):l.paramSerializer;var c=function(e){var r=e.headers,i=Ce(e.data,Me(r),n,e.transformRequest);return b(i)&&a(r,function(t,e){"content-type"===kr(e)&&delete r[e]}),b(e.withCredentials)&&!b(t.withCredentials)&&(e.withCredentials=t.withCredentials),v(e,i).then(o,o)},h=[c,n],g=d.when(l);for(a(M,function(t){(t.request||t.requestError)&&h.unshift(t.request,t.requestError),(t.response||t.responseError)&&h.push(t.response,t.responseError)});h.length;){var m=h.shift(),y=h.shift();g=g.then(m,y)}return i?(g.success=function(t){return dt(t,"fn"),g.then(function(e){t(e.data,e.status,e.headers,l)}),g},g.error=function(t){return dt(t,"fn"),g.then(null,function(e){t(e.data,e.status,e.headers,l)}),g}):(g.success=Ui("success"),g.error=Ui("error")),g}function g(t){a(arguments,function(t){h[t]=function(e,n){return h(f({},n||{},{method:t,url:e}))}})}function m(t){a(arguments,function(t){h[t]=function(e,n,r){return h(f({},r||{},{method:t,url:e,data:n}))}})}function v(r,i){function a(t,n,r,i){function a(){o(n,t,r,i)}p&&(Se(t)?p.put(M,[t,n,ke(r),i]):p.remove(M)),e?c.$applyAsync(a):(a(),c.$$phase||c.$apply())}function o(t,e,n,i){e=e>=-1?e:0,(Se(e)?m.resolve:m.reject)({data:t,status:e,headers:Me(n),config:r,statusText:i})}function l(t){o(t.data,t.status,V(t.headers()),t.statusText)}function f(){var t=h.pendingRequests.indexOf(r);-1!==t&&h.pendingRequests.splice(t,1)}var p,g,m=d.defer(),v=m.promise,k=r.headers,M=y(r.url,r.paramSerializer(r.params));if(h.pendingRequests.push(r),v.then(f,f),!r.cache&&!t.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(p=$(r.cache)?r.cache:$(t.cache)?t.cache:w),p&&(g=p.get(M),x(g)?P(g)?g.then(l,l):Vr(g)?o(g[1],g[0],V(g[2]),g[3]):o(g,200,{},"OK"):p.put(M,v)),b(g)){var C=Dn(r.url)?u()[r.xsrfCookieName||t.xsrfCookieName]:n;C&&(k[r.xsrfHeaderName||t.xsrfHeaderName]=C),s(r.method,M,i,a,k,r.timeout,r.withCredentials,r.responseType)}return v}function y(t,e){return e.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+e),t}var w=l("$http");t.paramSerializer=k(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var M=[];return a(o,function(t){M.unshift(k(t)?p.get(t):p.invoke(t))}),h.pendingRequests=[],g("get","delete","head","jsonp"),m("post","put","patch"),h.defaults=t,h}]}function Ee(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function De(){this.$get=["$browser","$window","$document","$xhrFactory",function(t,e,n,r){return _e(t,r,t.defer,e.angular.callbacks,n[0])}]}function _e(t,e,n,r,i){function o(t,e,n){var a=i.createElement("script"),o=null;return a.type="text/javascript",a.src=t,a.async=!0,o=function(t){oi(a,"load",o),oi(a,"error",o),i.body.removeChild(a),a=null;var s=-1,u="unknown";t&&("load"!==t.type||r[e].called||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},ai(a,"load",o),ai(a,"error",o),i.body.appendChild(a),o}return function(i,s,u,l,c,f,d,p){function h(){y&&y(),$&&$.abort()}function m(e,r,i,a,o){x(M)&&n.cancel(M),y=$=null,e(r,i,a,o),t.$$completeOutstandingRequest(g)}if(t.$$incOutstandingRequestCount(),s=s||t.url(),"jsonp"==kr(i)){var v="_"+(r.counter++).toString(36);r[v]=function(t){r[v].data=t,r[v].called=!0};var y=o(s.replace("JSON_CALLBACK","angular.callbacks."+v),v,function(t,e){m(l,t,r[v].data,"",e),r[v]=g})}else{var $=e(i,s);$.open(i,s,!0),a(c,function(t,e){x(t)&&$.setRequestHeader(e,t)}),$.onload=function(){var t=$.statusText||"",e="response"in $?$.response:$.responseText,n=1223===$.status?204:$.status;0===n&&(n=e?200:"file"==En(s).protocol?404:0),m(l,n,e,$.getAllResponseHeaders(),t)};var w=function(){m(l,-1,null,null,"")};if($.onerror=w,$.onabort=w,d&&($.withCredentials=!0),p)try{$.responseType=p}catch(k){if("json"!==p)throw k}$.send(b(u)?null:u)}if(f>0)var M=n(h,f);else P(f)&&f.then(h)}}function Te(){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 a(t){return"\\\\\\"+t}function o(n){return n.replace(d,t).replace(p,e)}function s(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=B(t)}return t}function u(a,u,d,p){function h(t){try{return t=E(t),p&&!x(t)?t:s(t)}catch(e){r(Yi.interr(a,e))}}p=!!p;for(var g,m,v,y=0,$=[],w=[],k=a.length,M=[],C=[];k>y;){if(-1==(g=a.indexOf(t,y))||-1==(m=a.indexOf(e,g+l))){y!==k&&M.push(o(a.substring(y)));break}y!==g&&M.push(o(a.substring(y,g))),v=a.substring(g+l,m),$.push(v),w.push(n(v,h)),y=m+c,C.push(M.length),M.push("")}if(d&&M.length>1&&Yi.throwNoconcat(a),!u||$.length){var A=function(t){for(var e=0,n=$.length;n>e;e++){if(p&&b(t[e]))return;M[C[e]]=t[e]}return M.join("")},E=function(t){return d?i.getTrusted(d,t):i.valueOf(t)};return f(function(t){var e=0,n=$.length,i=new Array(n);try{for(;n>e;e++)i[e]=w[e](t);return A(i)}catch(o){r(Yi.interr(a,o))}},{exp:a,expressions:$,$$watchDelegate:function(t,e){var n;return t.$watchGroup(w,function(r,i){var a=A(r);S(e)&&e.call(this,a,r!==i?n:a,t),n=a})}})}}var l=t.length,c=e.length,d=new RegExp(t.replace(/./g,a),"g"),p=new RegExp(e.replace(/./g,a),"g");return u.startSymbol=function(){return t},u.endSymbol=function(){return e},u}]}function Oe(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,r){function i(i,o,s,u){var l=arguments.length>4,c=l?z(arguments,4):[],f=e.setInterval,d=e.clearInterval,p=0,h=x(u)&&!u,g=(h?r:n).defer(),m=g.promise;return s=x(s)?s:0,m.then(null,null,l?function(){i.apply(null,c)}:i),m.$$intervalId=f(function(){g.notify(p++),s>0&&p>=s&&(g.resolve(p),d(m.$$intervalId),delete a[m.$$intervalId]),h||t.$apply()},o),a[m.$$intervalId]=g,m}var a={};return i.cancel=function(t){return t&&t.$$intervalId in a?(a[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0):!1},i}]}function Ne(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=nt(e[n]);return e.join("/")}function Pe(t,e){var n=En(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=p(n.port)||Gi[n.protocol]||null}function Fe(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=En(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=tt(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function je(t,e){return 0===e.indexOf(t)?e.substr(t.length):void 0}function Ie(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function Le(t){return t.replace(/(#.+)|#$/,"$1")}function qe(t){return t.substr(0,Ie(t).lastIndexOf("/")+1)}function He(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Ve(t,e,n){this.$$html5=!0,n=n||"",Pe(t,this),this.$$parse=function(t){var n=je(e,t);if(!k(n))throw Xi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);Fe(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=et(this.$$search),n=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=Ne(this.$$path)+(t?"?"+t:"")+n,this.$$absUrl=e+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var a,o,s;return x(a=je(t,r))?(o=a,s=x(a=je(n,a))?e+(je("/",a)||a):t+o):x(a=je(e,r))?s=e+a:e==r+"/"&&(s=e),s&&this.$$parse(s),!!s}}function Re(t,e,n){Pe(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var a,o=je(t,r)||je(e,r);b(o)||"#"!==o.charAt(0)?this.$$html5?a=o:(a="",b(o)&&(t=r,this.replace())):(a=je(n,o),b(a)&&(a=o)),Fe(a,this),this.$$path=i(this.$$path,a,t),this.$$compose()},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=Ne(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return Ie(t)==Ie(e)?(this.$$parse(e),!0):!1}}function We(t,e,n){this.$$html5=!0,Re.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var a,o;return t==Ie(r)?a=r:(o=je(e,r))?a=t+n+o:e===r+"/"&&(a=e),a&&this.$$parse(a),!!a},this.$$compose=function(){var e=et(this.$$search),r=this.$$hash?"#"+nt(this.$$hash):"";this.$$url=Ne(this.$$path)+(e?"?"+e:"")+r,this.$$absUrl=t+n+this.$$url}}function ze(t){return function(){return this[t]}}function Ue(t,e){return function(n){return b(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Ye(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return x(e)?(t=e,this):t},this.html5Mode=function(t){return N(t)?(e.enabled=t,this):$(t)?(N(t.enabled)&&(e.enabled=t.enabled),N(t.requireBase)&&(e.requireBase=t.requireBase),N(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,a,o){function s(t,e,n){var i=l.url(),a=l.$$state;try{r.url(t,e,n),l.$$state=r.state()}catch(o){throw l.url(i),l.$$state=a,o}}function u(t,e){n.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}var l,c,f,d=r.baseHref(),p=r.url();if(e.enabled){if(!d&&e.requireBase)throw Xi("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=He(p)+(d||"/"),c=i.history?Ve:We}else f=Ie(p),c=Re;var h=qe(f);l=new c(f,h,"#"+t),l.$$parseLinkUrl(p,p),l.$$state=r.state();var g=/^\s*(javascript|mailto):/i;a.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=Dr(t.target);"a"!==L(i[0]);)if(i[0]===a[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");$(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=En(s.animVal).href),g.test(s)||!s||i.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(t.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),o.angular["ff-684208-preventDefault"]=!0))}}),Le(l.absUrl())!=Le(p)&&r.url(l.absUrl(),!0);var m=!0;return r.onUrlChange(function(t,e){return b(je(h,t))?void(o.location.href=t):(n.$evalAsync(function(){var r,i=l.absUrl(),a=l.$$state;t=Le(t),l.$$parse(t),l.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,a).defaultPrevented,l.absUrl()===t&&(r?(l.$$parse(i),l.$$state=a,s(i,!1,a)):(m=!1,u(i,a)))}),void(n.$$phase||n.$digest()))}),n.$watch(function(){var t=Le(r.url()),e=Le(l.absUrl()),a=r.state(),o=l.$$replace,c=t!==e||l.$$html5&&i.history&&a!==l.$$state;(m||c)&&(m=!1,n.$evalAsync(function(){var e=l.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,l.$$state,a).defaultPrevented;l.absUrl()===e&&(r?(l.$$parse(t),l.$$state=a):(c&&s(e,o,a===l.$$state?null:l.$$state),u(t,a)))})),l.$$replace=!1}),l}]}function Be(){var t=!0,e=this;this.debugEnabled=function(e){return x(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||g,o=!1;try{o=!!i.apply}catch(s){}return o?function(){var t=[];return a(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 Ge(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw Ki("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Xe(t,e){if(t+="",!k(t))throw Ki("iseccst","Cannot convert object to primitive value! Expression: {0}",e);return t}function Ze(t,e){if(t){if(t.constructor===t)throw Ki("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw Ki("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw Ki("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw Ki("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function Ke(t,e){if(t){if(t.constructor===t)throw Ki("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===Ji||t===Qi||t===ta)throw Ki("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function Je(t,e){if(t&&(t===0..constructor||t===(!1).constructor||t==="".constructor||t==={}.constructor||t===[].constructor||t===Function.constructor))throw Ki("isecaf","Assigning to a constructor is disallowed! Expression: {0}",e)}function Qe(t,e){return"undefined"!=typeof t?t:e}function tn(t,e){return"undefined"==typeof t?e:"undefined"==typeof e?t:t+e}function en(t,e){var n=t(e);return!n.$stateful}function nn(t,e){var n,r;switch(t.type){case ia.Program:n=!0,a(t.body,function(t){nn(t.expression,e),n=n&&t.expression.constant}),t.constant=n;break;case ia.Literal:t.constant=!0,t.toWatch=[];break;case ia.UnaryExpression:nn(t.argument,e),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case ia.BinaryExpression:nn(t.left,e),nn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case ia.LogicalExpression:nn(t.left,e),nn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case ia.ConditionalExpression:nn(t.test,e),nn(t.alternate,e),nn(t.consequent,e),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case ia.Identifier:t.constant=!1,t.toWatch=[t];break;case ia.MemberExpression:nn(t.object,e),t.computed&&nn(t.property,e),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=[t];break;case ia.CallExpression:n=t.filter?en(e,t.callee.name):!1,r=[],a(t.arguments,function(t){nn(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=t.filter&&en(e,t.callee.name)?r:[t];break;case ia.AssignmentExpression:nn(t.left,e),nn(t.right,e),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case ia.ArrayExpression:n=!0,r=[],a(t.elements,function(t){nn(t,e),n=n&&t.constant,t.constant||r.push.apply(r,t.toWatch)}),t.constant=n,t.toWatch=r;break;case ia.ObjectExpression:n=!0,r=[],a(t.properties,function(t){nn(t.value,e),n=n&&t.value.constant,t.value.constant||r.push.apply(r,t.value.toWatch)}),t.constant=n,t.toWatch=r;break;case ia.ThisExpression:t.constant=!1,t.toWatch=[]}}function rn(t){if(1==t.length){var e=t[0].expression,r=e.toWatch;return 1!==r.length?r:r[0]!==e?r:n}}function an(t){return t.type===ia.Identifier||t.type===ia.MemberExpression}function on(t){return 1===t.body.length&&an(t.body[0].expression)?{type:ia.AssignmentExpression,left:t.body[0].expression,right:{type:ia.NGValueParameter},operator:"="}:void 0}function sn(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===ia.Literal||t.body[0].expression.type===ia.ArrayExpression||t.body[0].expression.type===ia.ObjectExpression)}function un(t){return t.constant}function ln(t,e){this.astBuilder=t,this.$filter=e}function cn(t,e){this.astBuilder=t,this.$filter=e}function fn(t){return"constructor"==t}function dn(t){return S(t.valueOf)?t.valueOf():oa.call(t)}function pn(){var t=mt(),e=mt();this.$get=["$filter",function(r){function i(t,e){return null==t||null==e?t===e:"object"==typeof t&&(t=dn(t),"object"==typeof t)?!1:t===e||t!==t&&e!==e}function o(t,e,r,a,o){var s,u=a.inputs;if(1===u.length){var l=i;return u=u[0],t.$watch(function(t){var e=u(t);return i(e,l)||(s=a(t,n,n,[e]),l=e&&dn(e)),s},e,r,o)}for(var c=[],f=[],d=0,p=u.length;p>d;d++)c[d]=i,f[d]=null;return t.$watch(function(t){for(var e=!1,r=0,o=u.length;o>r;r++){var l=u[r](t);(e||(e=!i(l,c[r])))&&(f[r]=l,c[r]=l&&dn(l))}return e&&(s=a(t,n,n,f)),s},e,r,o)}function s(t,e,n,r){var i,a;return i=t.$watch(function(t){return r(t)},function(t,n,r){a=t,S(e)&&e.apply(this,arguments),x(t)&&r.$$postDigest(function(){x(a)&&i()})},n)}function u(t,e,n,r){function i(t){var e=!0;return a(t,function(t){x(t)||(e=!1)}),e}var o,s;return o=t.$watch(function(t){return r(t)},function(t,n,r){s=t,S(e)&&e.call(this,t,n,r),i(t)&&r.$$postDigest(function(){i(s)&&o()})},n)}function l(t,e,n,r){var i;return i=t.$watch(function(t){return r(t)},function(t,n,r){S(e)&&e.apply(this,arguments),i()},n)}function c(t,e){if(!e)return t;var n=t.$$watchDelegate,r=!1,i=n!==u&&n!==s,a=i?function(n,i,a,o){var s=r&&o?o[0]:t(n,i,a,o);return e(s,n,i)}:function(n,r,i,a){var o=t(n,r,i,a),s=e(o,n,r);return x(o)?s:o};return t.$$watchDelegate&&t.$$watchDelegate!==o?a.$$watchDelegate=t.$$watchDelegate:e.$stateful||(a.$$watchDelegate=o,r=!t.inputs,a.inputs=t.inputs?t.inputs:[t]),a}var f=Ur().noUnsafeEval,d={csp:f,expensiveChecks:!1},p={csp:f,expensiveChecks:!0};return function(n,i,a){var f,h,m;switch(typeof n){case"string":n=n.trim(),m=n;var v=a?e:t;if(f=v[m],!f){":"===n.charAt(0)&&":"===n.charAt(1)&&(h=!0,n=n.substring(2));var y=a?p:d,b=new ra(y),x=new aa(b,r,y);f=x.parse(n),f.constant?f.$$watchDelegate=l:h?f.$$watchDelegate=f.literal?u:s:f.inputs&&(f.$$watchDelegate=o),v[m]=f}return c(f,i);case"function":return c(n,i);default:return g}}}]}function hn(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return mn(function(e){t.$evalAsync(e)},e)}]}function gn(){this.$get=["$browser","$exceptionHandler",function(t,e){return mn(function(e){t.defer(e)},e)}]}function mn(t,e){function i(t,e,n){function r(e){return function(n){i||(i=!0,e.call(t,n))}}var i=!1;return[r(e),r(n)]}function o(){this.$$state={status:0}}function s(t,e){return function(n){e.call(t,n)}}function u(t){var r,i,a;a=t.pending,t.processScheduled=!1,t.pending=n;for(var o=0,s=a.length;s>o;++o){i=a[o][0],r=a[o][t.status];try{S(r)?i.resolve(r(t.value)):1===t.status?i.resolve(t.value):i.reject(t.value)}catch(u){i.reject(u),e(u)}}}function l(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){u(e)}))}function c(){this.promise=new o,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}function d(t){var e=new c,n=0,r=Vr(t)?[]:{};return a(t,function(t,i){n++,y(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 p=r("$q",TypeError),h=function(){return new c};f(o.prototype,{then:function(t,e,n){if(b(t)&&b(e)&&b(n))return this;var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&l(this.$$state),r.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return v(e,!0,t)},function(e){return v(e,!1,t)},e)}}),f(c.prototype,{resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(p("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var n,r;r=i(this,this.$$resolve,this.$$reject);try{($(t)||S(t))&&(n=t&&t.then),S(n)?(this.promise.$$state.status=-1,n.call(t,r[0],r[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,l(this.promise.$$state))}catch(a){r[1](a),e(a)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,l(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,a=0,o=r.length;o>a;a++){i=r[a][0],t=r[a][3];try{i.notify(S(t)?t(n):n);
|
||
}catch(s){e(s)}}})}});var g=function(t){var e=new c;return e.reject(t),e.promise},m=function(t,e){var n=new c;return e?n.resolve(t):n.reject(t),n.promise},v=function(t,e,n){var r=null;try{S(n)&&(r=n())}catch(i){return m(i,!1)}return P(r)?r.then(function(){return m(t,e)},function(t){return m(t,!1)}):m(t,e)},y=function(t,e,n,r){var i=new c;return i.resolve(t),i.promise.then(e,n,r)},x=y,w=function k(t){function e(t){r.resolve(t)}function n(t){r.reject(t)}if(!S(t))throw p("norslvr","Expected resolverFn, got '{0}'",t);if(!(this instanceof k))return new k(t);var r=new c;return t(e,n),r.promise};return w.defer=h,w.reject=g,w.when=y,w.resolve=x,w.all=d,w}function vn(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,a=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return a.supported=i,a}]}function yn(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null}return e.prototype=t,e}var e=10,n=r("$rootScope"),o=null,s=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,l,c,f){function d(t){t.currentScope.$$destroyed=!0}function p(t){9===Er&&(t.$$childHead&&p(t.$$childHead),t.$$nextSibling&&p(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function h(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function m(t){if(C.$$phase)throw n("inprog","{0} already in progress",C.$$phase);C.$$phase=t}function v(){C.$$phase=null}function y(t,e){do t.$$watchersCount+=e;while(t=t.$parent)}function x(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function w(){}function k(){for(;D.length;)try{D.shift()()}catch(t){l(t)}s=null}function M(){null===s&&(s=f.defer(function(){C.$apply(k)}))}h.prototype={constructor:h,$new:function(e,n){var r;return n=n||this,e?(r=new h,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(e||n!=this)&&r.$on("$destroy",d),r},$watch:function(t,e,n,r){var i=c(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i,t);var a=this,s=a.$$watchers,u={fn:e,last:w,get:i,exp:r||t,eq:!!n};return o=null,S(e)||(u.fn=g),s||(s=a.$$watchers=[]),s.unshift(u),y(this,1),function(){q(s,u)>=0&&y(a,-1),o=null}},$watchGroup:function(t,e){function n(){u=!1,l?(l=!1,e(i,i,s)):e(i,r,s)}var r=new Array(t.length),i=new Array(t.length),o=[],s=this,u=!1,l=!0;if(!t.length){var c=!0;return s.$evalAsync(function(){c&&e(i,i,s)}),function(){c=!1}}return 1===t.length?this.$watch(t[0],function(t,n,a){i[0]=t,r[0]=n,e(i,t===n?i:r,a)}):(a(t,function(t,e){var a=s.$watch(t,function(t,a){i[e]=t,r[e]=a,u||(u=!0,s.$evalAsync(n))});o.push(a)}),function(){for(;o.length;)o.shift()()})},$watchCollection:function(t,e){function n(t){a=t;var e,n,r,s,u;if(!b(a)){if($(a))if(i(a)){o!==p&&(o=p,m=o.length=0,f++),e=a.length,m!==e&&(f++,o.length=m=e);for(var l=0;e>l;l++)u=o[l],s=a[l],r=u!==u&&s!==s,r||u===s||(f++,o[l]=s)}else{o!==h&&(o=h={},m=0,f++),e=0;for(n in a)Mr.call(a,n)&&(e++,s=a[n],u=o[n],n in o?(r=u!==u&&s!==s,r||u===s||(f++,o[n]=s)):(m++,o[n]=s,f++));if(m>e){f++;for(n in o)Mr.call(a,n)||(m--,delete o[n])}}else o!==a&&(o=a,f++);return f}}function r(){if(g?(g=!1,e(a,a,u)):e(a,s,u),l)if($(a))if(i(a)){s=new Array(a.length);for(var t=0;t<a.length;t++)s[t]=a[t]}else{s={};for(var n in a)Mr.call(a,n)&&(s[n]=a[n])}else s=a}n.$stateful=!0;var a,o,s,u=this,l=e.length>1,f=0,d=c(t,n),p=[],h={},g=!0,m=0;return this.$watch(d,r)},$digest:function(){var t,r,i,a,u,c,d,p,h,g,y=e,b=this,x=[];m("$digest"),f.$$checkUrlChange(),this===C&&null!==s&&(f.defer.cancel(s),k()),o=null;do{for(c=!1,p=b;A.length;){try{g=A.shift(),g.scope.$eval(g.expression,g.locals)}catch($){l($)}o=null}t:do{if(a=p.$$watchers)for(u=a.length;u--;)try{if(t=a[u])if((r=t.get(p))===(i=t.last)||(t.eq?R(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))){if(t===o){c=!1;break t}}else c=!0,o=t,t.last=t.eq?H(r,null):r,t.fn(r,i===w?r:i,p),5>y&&(h=4-y,x[h]||(x[h]=[]),x[h].push({msg:S(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:r,oldVal:i}))}catch($){l($)}if(!(d=p.$$watchersCount&&p.$$childHead||p!==b&&p.$$nextSibling))for(;p!==b&&!(d=p.$$nextSibling);)p=p.$parent}while(p=d);if((c||A.length)&&!y--)throw v(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,x)}while(c||A.length);for(v();E.length;)try{E.shift()()}catch($){l($)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===C&&f.$$applicationDestroyed(),y(this,-this.$$watchersCount);for(var e in this.$$listenerCount)x(this,this.$$listenerCount[e],e);t&&t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=g,this.$on=this.$watch=this.$watchGroup=function(){return g},this.$$listeners={},this.$$nextSibling=null,p(this)}},$eval:function(t,e){return c(t)(this,e)},$evalAsync:function(t,e){C.$$phase||A.length||f.defer(function(){A.length&&C.$digest()}),A.push({scope:this,expression:t,locals:e})},$$postDigest:function(t){E.push(t)},$apply:function(t){try{m("$apply");try{return this.$eval(t)}finally{v()}}catch(e){l(e)}finally{try{C.$digest()}catch(e){throw l(e),e}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&D.push(e),M()},$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(){var r=n.indexOf(e);-1!==r&&(n[r]=null,x(i,1,t))}},$emit:function(t,e){var n,r,i,a=[],o=this,s=!1,u={name:t,targetScope:o,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=W([u],arguments,1);do{for(n=o.$$listeners[t]||a,u.currentScope=o,r=0,i=n.length;i>r;r++)if(n[r])try{n[r].apply(null,c)}catch(f){l(f)}else n.splice(r,1),r--,i--;if(s)return u.currentScope=null,u;o=o.$parent}while(o);return u.currentScope=null,u},$broadcast:function(t,e){var n=this,r=n,i=n,a={name:t,targetScope:n,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return a;for(var o,s,u,c=W([a],arguments,1);r=i;){for(a.currentScope=r,o=r.$$listeners[t]||[],s=0,u=o.length;u>s;s++)if(o[s])try{o[s].apply(null,c)}catch(f){l(f)}else o.splice(s,1),s--,u--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return a.currentScope=null,a}};var C=new h,A=C.$$asyncQueue=[],E=C.$$postDigestQueue=[],D=C.$$applyAsyncQueue=[];return C}]}function bn(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return x(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return x(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,a=r?e:t;return i=En(n).href,""===i||i.match(a)?n:"unsafe:"+i}}}function xn(t){if("self"===t)return t;if(k(t)){if(t.indexOf("***")>-1)throw sa("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=zr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(A(t))return new RegExp("^"+t.source+"$");throw sa("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function $n(t){var e=[];return x(t)&&a(t,function(t){e.push(xn(t))}),e}function wn(){this.SCE_CONTEXTS=ua;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=$n(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=$n(t)),e},this.$get=["$injector",function(n){function r(t,e){return"self"===t?Dn(e):!!t.exec(e.href)}function i(n){var i,a,o=En(n.toString()),s=!1;for(i=0,a=t.length;a>i;i++)if(r(t[i],o)){s=!0;break}if(s)for(i=0,a=e.length;a>i;i++)if(r(e[i],o)){s=!1;break}return s}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 o(t,e){var n=f.hasOwnProperty(t)?f[t]:null;if(!n)throw sa("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||b(e)||""===e)return e;if("string"!=typeof e)throw sa("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)}function s(t){return t instanceof c?t.$$unwrapTrustedValue():t}function u(t,e){if(null===e||b(e)||""===e)return e;var n=f.hasOwnProperty(t)?f[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===ua.RESOURCE_URL){if(i(e))return e;throw sa("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",e.toString())}if(t===ua.HTML)return l(e);throw sa("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(t){throw sa("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var c=a(),f={};return f[ua.HTML]=a(c),f[ua.CSS]=a(c),f[ua.URL]=a(c),f[ua.JS]=a(c),f[ua.RESOURCE_URL]=a(f[ua.URL]),{trustAs:o,getTrusted:u,valueOf:s}}]}function kn(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&8>Er)throw sa("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 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 r=V(ua);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=m),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,function(e){return r.getTrusted(t,e)})};var i=r.parseAs,o=r.getTrusted,s=r.trustAs;return a(ua,function(t,e){var n=kr(e);r[wt("parse_as_"+n)]=function(e){return i(t,e)},r[wt("get_trusted_"+n)]=function(e){return o(t,e)},r[wt("trust_as_"+n)]=function(e){return s(t,e)}}),r}]}function Mn(){this.$get=["$window","$document",function(t,e){var n,r,i={},a=p((/android (\d+)/.exec(kr((t.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,l=s.body&&s.body.style,c=!1,f=!1;if(l){for(var d in l)if(r=u.exec(d)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in l&&"webkit"),c=!!("transition"in l||n+"Transition"in l),f=!!("animation"in l||n+"Animation"in l),!a||c&&f||(c=k(l.webkitTransition),f=k(l.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||4>a||o),hasEvent:function(t){if("input"===t&&11>=Er)return!1;if(b(i[t])){var e=s.createElement("div");i[t]="on"+t in e}return i[t]},csp:Ur(),vendorPrefix:n,transitions:c,animations:f,android:a}}]}function Cn(){this.$get=["$templateCache","$http","$q","$sce",function(t,e,n,r){function i(a,o){function s(t){if(!o)throw Pi("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText);return n.reject(t)}i.totalPendingRequests++,k(a)&&t.get(a)||(a=r.getTrustedResourceUrl(a));var u=e.defaults&&e.defaults.transformResponse;Vr(u)?u=u.filter(function(t){return t!==$e}):u===$e&&(u=null);var l={cache:t,transformResponse:u};return e.get(a,l)["finally"](function(){i.totalPendingRequests--}).then(function(e){return t.put(a,e.data),e.data},s)}return i.totalPendingRequests=0,i}]}function Sn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={};return r.findBindings=function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return a(r,function(t){var r=Lr.element(t).data("$binding");r&&a(r,function(r){if(n){var a=new RegExp("(^|\\s)"+zr(e)+"(\\s|\\||$)");a.test(r)&&i.push(t)}else-1!=r.indexOf(e)&&i.push(t)})}),i},r.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var a=n?"=":"*=",o="["+r[i]+"model"+a+'"'+e+'"]',s=t.querySelectorAll(o);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(e){e!==n.url()&&(n.url(e),t.$digest())},r.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)},r}]}function An(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){function a(a,s,u){S(a)||(u=s,s=a,a=g);var l,c=z(arguments,3),f=x(u)&&!u,d=(f?r:n).defer(),p=d.promise;return l=e.defer(function(){try{d.resolve(a.apply(null,c))}catch(e){d.reject(e),i(e)}finally{delete o[p.$$timeoutId]}f||t.$apply()},s),p.$$timeoutId=l,o[l]=d,p}var o={};return a.cancel=function(t){return t&&t.$$timeoutId in o?(o[t.$$timeoutId].reject("canceled"),delete o[t.$$timeoutId],e.defer.cancel(t.$$timeoutId)):!1},a}]}function En(t){var e=t;return Er&&(la.setAttribute("href",e),e=la.href),la.setAttribute("href",e),{href:la.href,protocol:la.protocol?la.protocol.replace(/:$/,""):"",host:la.host,search:la.search?la.search.replace(/^\?/,""):"",hash:la.hash?la.hash.replace(/^#/,""):"",hostname:la.hostname,port:la.port,pathname:"/"===la.pathname.charAt(0)?la.pathname:"/"+la.pathname}}function Dn(t){var e=k(t)?En(t):t;return e.protocol===ca.protocol&&e.host===ca.host}function _n(){this.$get=v(t)}function Tn(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},r={},i="";return function(){var t,a,o,s,u,l=n.cookie||"";if(l!==i)for(i=l,t=i.split("; "),r={},o=0;o<t.length;o++)a=t[o],s=a.indexOf("="),s>0&&(u=e(a.substring(0,s)),b(r[u])&&(r[u]=e(a.substring(s+1))));return r}}function On(){this.$get=Tn}function Nn(t){function e(r,i){if($(r)){var o={};return a(r,function(t,n){o[n]=e(n,t)}),o}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",Ln),e("date",Kn),e("filter",Pn),e("json",Jn),e("limitTo",Qn),e("lowercase",ga),e("number",qn),e("orderBy",tr),e("uppercase",ma)}function Pn(){return function(t,e,n){if(!i(t)){if(null==t)return t;throw r("filter")("notarray","Expected array but received: {0}",t)}var a,o,s=In(e);switch(s){case"function":a=e;break;case"boolean":case"null":case"number":case"string":o=!0;case"object":a=Fn(e,n,o);break;default:return t}return Array.prototype.filter.call(t,a)}}function Fn(t,e,n){var r,i=$(t)&&"$"in t;return e===!0?e=R:S(e)||(e=function(t,e){return b(t)?!1:null===t||null===e?t===e:$(e)||$(t)&&!y(t)?!1:(t=kr(""+t),e=kr(""+e),-1!==t.indexOf(e))}),r=function(r){return i&&!$(r)?jn(r,t.$,e,!1):jn(r,t,e,n)}}function jn(t,e,n,r,i){var a=In(t),o=In(e);if("string"===o&&"!"===e.charAt(0))return!jn(t,e.substring(1),n,r);if(Vr(t))return t.some(function(t){return jn(t,e,n,r)});switch(a){case"object":var s;if(r){for(s in t)if("$"!==s.charAt(0)&&jn(t[s],e,n,!0))return!0;return i?!1:jn(t,e,n,!1)}if("object"===o){for(s in e){var u=e[s];if(!S(u)&&!b(u)){var l="$"===s,c=l?t:t[s];if(!jn(c,u,n,l,l))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function In(t){return null===t?"null":typeof t}function Ln(t){var e=t.NUMBER_FORMATS;return function(t,n,r){return b(n)&&(n=e.CURRENCY_SYM),b(r)&&(r=e.PATTERNS[1].maxFrac),null==t?t:Hn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function qn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:Hn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function Hn(t,e,n,r,i){if($(t))return"";var a=0>t;t=Math.abs(t);var o=t===1/0;if(!o&&!isFinite(t))return"";var s=t+"",u="",l=!1,c=[];if(o&&(u="∞"),!o&&-1!==s.indexOf("e")){var f=s.match(/([\d\.]+)e(-?)(\d+)/);f&&"-"==f[2]&&f[3]>i+1?t=0:(u=s,l=!0)}if(o||l)i>0&&1>t&&(u=t.toFixed(i),t=parseFloat(u),u=u.replace(fa,r));else{var d=(s.split(fa)[1]||"").length;b(i)&&(i=Math.min(Math.max(e.minFrac,d),e.maxFrac)),t=+(Math.round(+(t.toString()+"e"+i)).toString()+"e"+-i);var p=(""+t).split(fa),h=p[0];p=p[1]||"";var g,m=0,v=e.lgSize,y=e.gSize;if(h.length>=v+y)for(m=h.length-v,g=0;m>g;g++)(m-g)%y===0&&0!==g&&(u+=n),u+=h.charAt(g);for(g=m;g<h.length;g++)(h.length-g)%v===0&&0!==g&&(u+=n),u+=h.charAt(g);for(;p.length<i;)p+="0";i&&"0"!==i&&(u+=r+p.substr(0,i))}return 0===t&&(a=!1),c.push(a?e.negPre:e.posPre,u,a?e.negSuf:e.posSuf),c.join("")}function Vn(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 Rn(t,e,n,r){return n=n||0,function(i){var a=i["get"+t]();return(n>0||a>-n)&&(a+=n),0===a&&-12==n&&(a=12),Vn(a,e,r)}}function Wn(t,e){return function(n,r){var i=n["get"+t](),a=Cr(e?"SHORT"+t:t);return r[a][i]}}function zn(t,e,n){var r=-1*n,i=r>=0?"+":"";return i+=Vn(Math[r>0?"floor":"ceil"](r/60),2)+Vn(Math.abs(r%60),2)}function Un(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(4>=e?5:12)-e)}function Yn(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Bn(t){return function(e){var n=Un(e.getFullYear()),r=Yn(e),i=+r-+n,a=1+Math.round(i/6048e5);return Vn(a,t)}}function Gn(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function Xn(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function Zn(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function Kn(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,a=0,o=e[8]?r.setUTCFullYear:r.setFullYear,s=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=p(e[9]+e[10]),a=p(e[9]+e[11])),o.call(r,p(e[1]),p(e[2])-1,p(e[3]));var u=p(e[4]||0)-i,l=p(e[5]||0)-a,c=p(e[6]||0),f=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(r,u,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,i){var o,s,u="",l=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,k(n)&&(n=ha.test(n)?p(n):e(n)),M(n)&&(n=new Date(n)),!C(n)||!isFinite(n.getTime()))return n;for(;r;)s=pa.exec(r),s?(l=W(l,s,1),r=l.pop()):(l.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=X(i,n.getTimezoneOffset()),n=K(n,i,!0)),a(l,function(e){o=da[e],u+=o?o(n,t.DATETIME_FORMATS,c):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Jn(){return function(t,e){return b(e)&&(e=2),B(t,e)}}function Qn(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):p(e),isNaN(e)?t:(M(t)&&(t=t.toString()),Vr(t)||k(t)?(n=!n||isNaN(n)?0:p(n),n=0>n?Math.max(0,t.length+n):n,e>=0?t.slice(n,n+e):0===n?t.slice(e,t.length):t.slice(Math.max(0,n+e),n)):t)}}function tr(t){function e(e,n){return n=n?-1:1,e.map(function(e){var r=1,i=m;if(S(e))i=e;else if(k(e)&&(("+"==e.charAt(0)||"-"==e.charAt(0))&&(r="-"==e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e),i.constant))){var a=i();i=function(t){return t[a]}}return{get:i,descending:r*n}})}function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function r(t,e){return"function"==typeof t.valueOf&&(t=t.valueOf(),n(t))?t:y(t)&&(t=t.toString(),n(t))?t:e}function a(t,e){var n=typeof t;return null===t?(n="string",t="null"):"string"===n?t=t.toLowerCase():"object"===n&&(t=r(t,e)),{value:t,type:n}}function o(t,e){var n=0;return t.type===e.type?t.value!==e.value&&(n=t.value<e.value?-1:1):n=t.type<e.type?-1:1,n}return function(t,n,r){function s(t,e){return{value:t,predicateValues:l.map(function(n){return a(n.get(t),e)})}}function u(t,e){for(var n=0,r=0,i=l.length;i>r&&!(n=o(t.predicateValues[r],e.predicateValues[r])*l[r].descending);++r);return n}if(!i(t))return t;Vr(n)||(n=[n]),0===n.length&&(n=["+"]);var l=e(n,r);l.push({get:function(){return{}},descending:r?-1:1});var c=Array.prototype.map.call(t,s);return c.sort(u),t=c.map(function(t){return t.value})}}function er(t){return S(t)&&(t={link:t}),t.restrict=t.restrict||"AC",v(t)}function nr(t,e){t.$name=e}function rr(t,e,r,i,o){var s=this,u=[];s.$error={},s.$$success={},s.$pending=n,s.$name=o(e.name||e.ngForm||"")(r),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,s.$$parentForm=ba,s.$rollbackViewValue=function(){a(u,function(t){t.$rollbackViewValue()})},s.$commitViewValue=function(){a(u,function(t){t.$commitViewValue()})},s.$addControl=function(t){pt(t.$name,"input"),u.push(t),t.$name&&(s[t.$name]=t),t.$$parentForm=s},s.$$renameControl=function(t,e){var n=t.$name;s[n]===t&&delete s[n],s[e]=t,t.$name=e},s.$removeControl=function(t){t.$name&&s[t.$name]===t&&delete s[t.$name],a(s.$pending,function(e,n){s.$setValidity(n,null,t)}),a(s.$error,function(e,n){s.$setValidity(n,null,t)}),a(s.$$success,function(e,n){s.$setValidity(n,null,t)}),q(u,t),t.$$parentForm=ba},yr({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];if(r){var i=r.indexOf(n);-1===i&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(q(r,n),0===r.length&&delete t[e])},$animate:i}),s.$setDirty=function(){i.removeClass(t,eo),i.addClass(t,no),s.$dirty=!0,s.$pristine=!1,s.$$parentForm.$setDirty()},s.$setPristine=function(){i.setClass(t,eo,no+" "+xa),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,a(u,function(t){t.$setPristine()})},s.$setUntouched=function(){a(u,function(t){t.$setUntouched()})},s.$setSubmitted=function(){i.addClass(t,xa),s.$submitted=!0,s.$$parentForm.$setSubmitted()}}function ir(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function ar(t,e,n,r,i,a){or(t,e,n,r,i,a),ir(r)}function or(t,e,n,r,i,a){var o=kr(e[0].type);if(!i.android){var s=!1;e.on("compositionstart",function(t){s=!0}),e.on("compositionend",function(){s=!1,u()})}var u=function(t){if(l&&(a.defer.cancel(l),l=null),!s){var i=e.val(),u=t&&t.type;"password"===o||n.ngTrim&&"false"===n.ngTrim||(i=Wr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)}};if(i.hasEvent("input"))e.on("input",u);else{var l,c=function(t,e,n){l||(l=a.defer(function(){l=null,e&&e.value===n||u(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||e>15&&19>e||e>=37&&40>=e||c(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",c)}e.on("change",u),r.$render=function(){var t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function sr(t,e){if(C(t))return t;if(k(t)){_a.lastIndex=0;var n=_a.exec(t);if(n){var r=+n[1],i=+n[2],a=0,o=0,s=0,u=0,l=Un(r),c=7*(i-1);return e&&(a=e.getHours(),o=e.getMinutes(),s=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,l.getDate()+c,a,o,s,u)}}return NaN}function ur(t,e){return function(n,r){var i,o;if(C(n))return n;if(k(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ma.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n))return i.shift(),o=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},a(i,function(t,n){n<e.length&&(o[e[n]]=+t)}),new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0)}return NaN}}function lr(t,e,r,i){return function(a,o,s,u,l,c,f){function d(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())}function p(t){return x(t)&&!C(t)?r(t)||n:t}cr(a,o,s,u),or(a,o,s,u,l,c);var h,g=u&&u.$options&&u.$options.timezone;if(u.$$parserName=t,u.$parsers.push(function(t){if(u.$isEmpty(t))return null;if(e.test(t)){var i=r(t,h);return g&&(i=K(i,g)),i}return n}),u.$formatters.push(function(t){if(t&&!C(t))throw oo("datefmt","Expected `{0}` to be a date",t);return d(t)?(h=t,h&&g&&(h=K(h,g,!0)),f("date")(t,i,g)):(h=null,"")}),x(s.min)||s.ngMin){var m;u.$validators.min=function(t){return!d(t)||b(m)||r(t)>=m},s.$observe("min",function(t){m=p(t),u.$validate()})}if(x(s.max)||s.ngMax){var v;u.$validators.max=function(t){return!d(t)||b(v)||r(t)<=v},s.$observe("max",function(t){v=p(t),u.$validate()})}}}function cr(t,e,r,i){var a=e[0],o=i.$$hasNativeValidators=$(a.validity);o&&i.$parsers.push(function(t){var r=e.prop(wr)||{};return r.badInput&&!r.typeMismatch?n:t})}function fr(t,e,r,i,a,o){if(cr(t,e,r,i),or(t,e,r,i,a,o),i.$$parserName="number",i.$parsers.push(function(t){return i.$isEmpty(t)?null:Aa.test(t)?parseFloat(t):n}),i.$formatters.push(function(t){if(!i.$isEmpty(t)){if(!M(t))throw oo("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),x(r.min)||r.ngMin){var s;i.$validators.min=function(t){return i.$isEmpty(t)||b(s)||t>=s},r.$observe("min",function(t){x(t)&&!M(t)&&(t=parseFloat(t,10)),s=M(t)&&!isNaN(t)?t:n,i.$validate()})}if(x(r.max)||r.ngMax){var u;i.$validators.max=function(t){return i.$isEmpty(t)||b(u)||u>=t},r.$observe("max",function(t){x(t)&&!M(t)&&(t=parseFloat(t,10)),u=M(t)&&!isNaN(t)?t:n,i.$validate()})}}function dr(t,e,n,r,i,a){or(t,e,n,r,i,a),ir(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Ca.test(n)}}function pr(t,e,n,r,i,a){or(t,e,n,r,i,a),ir(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||Sa.test(n)}}function hr(t,e,n,r){b(n.name)&&e.attr("name",u());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function gr(t,e,n,r,i){var a;if(x(r)){if(a=t(r),!a.constant)throw oo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return a(e)}return i}function mr(t,e,n,r,i,a,o,s){var u=gr(s,t,"ngTrueValue",n.ngTrueValue,!0),l=gr(s,t,"ngFalseValue",n.ngFalseValue,!1),c=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",c),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t===!1},r.$formatters.push(function(t){return R(t,u)}),r.$parsers.push(function(t){return t?u:l})}function vr(t,e){return t="ngClass"+t,["$animate",function(n){function r(t,e){var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],a=0;a<e.length;a++)if(i==e[a])continue t;n.push(i)}return n}function i(t){var e=[];return Vr(t)?(a(t,function(t){e=e.concat(i(t))}),e):k(t)?t.split(" "):$(t)?(a(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e):t}return{restrict:"AC",link:function(o,s,u){function l(t){var e=f(t,1);u.$addClass(e)}function c(t){var e=f(t,-1);u.$removeClass(e)}function f(t,e){var n=s.data("$classCounts")||mt(),r=[];return a(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))}),s.data("$classCounts",n),r.join(" ")}function d(t,e){var i=r(e,t),a=r(t,e);i=f(i,1),a=f(a,-1),i&&i.length&&n.addClass(s,i),a&&a.length&&n.removeClass(s,a)}function p(t){if(e===!0||o.$index%2===e){var n=i(t||[]);if(h){if(!R(t,h)){var r=i(h);d(r,n)}}else l(n)}h=V(t)}var h;o.$watch(u[t],p,!0),u.$observe("class",function(e){p(o.$eval(u[t]))}),"ngClass"!==t&&o.$watch("$index",function(n,r){var a=1&n;if(a!==(1&r)){var s=i(o.$eval(u[t]));a===e?l(s):c(s)}})}}}]}function yr(t){function e(t,e,u){b(e)?r("$pending",t,u):i("$pending",t,u),N(e)?e?(f(s.$error,t,u),c(s.$$success,t,u)):(c(s.$error,t,u),f(s.$$success,t,u)):(f(s.$error,t,u),f(s.$$success,t,u)),s.$pending?(a(ao,!0),s.$valid=s.$invalid=n,o("",null)):(a(ao,!1),s.$valid=br(s.$error),s.$invalid=!s.$valid,o("",s.$valid));var l;l=s.$pending&&s.$pending[t]?n:s.$error[t]?!1:s.$$success[t]?!0:null,o(t,l),s.$$parentForm.$setValidity(t,l,s)}function r(t,e,n){s[t]||(s[t]={}),c(s[t],e,n)}function i(t,e,r){s[t]&&f(s[t],e,r),br(s[t])&&(s[t]=n)}function a(t,e){e&&!l[t]?(d.addClass(u,t),l[t]=!0):!e&&l[t]&&(d.removeClass(u,t),l[t]=!1)}function o(t,e){t=t?"-"+lt(t,"-"):"",a(Qa+t,e===!0),a(to+t,e===!1)}var s=t.ctrl,u=t.$element,l={},c=t.set,f=t.unset,d=t.$animate;l[to]=!(l[Qa]=u.hasClass(Qa)),s.$setValidity=e}function br(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function xr(t){t[0].hasAttribute("selected")&&(t[0].selected=!0)}var $r=/^\/(.+)\/([a-z]*)$/,wr="validity",kr=function(t){return k(t)?t.toLowerCase():t},Mr=Object.prototype.hasOwnProperty,Cr=function(t){return k(t)?t.toUpperCase():t},Sr=function(t){return k(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Ar=function(t){return k(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};"i"!=="I".toLowerCase()&&(kr=Sr,Cr=Ar);var Er,Dr,_r,Tr,Or=[].slice,Nr=[].splice,Pr=[].push,Fr=Object.prototype.toString,jr=Object.getPrototypeOf,Ir=r("ng"),Lr=t.angular||(t.angular={}),qr=0;Er=e.documentMode,g.$inject=[],m.$inject=[];var Hr,Vr=Array.isArray,Rr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,Wr=function(t){return k(t)?t.trim():t},zr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Ur=function(){function t(){try{return new Function(""),!1}catch(t){return!0}}if(!x(Ur.rules)){var n=e.querySelector("[ng-csp]")||e.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");Ur.rules={noUnsafeEval:!r||-1!==r.indexOf("no-unsafe-eval"),noInlineStyle:!r||-1!==r.indexOf("no-inline-style")}}else Ur.rules={noUnsafeEval:t(),noInlineStyle:!1}}return Ur.rules},Yr=function(){if(x(Yr.name_))return Yr.name_;var t,n,r,i,a=Br.length;for(n=0;a>n;++n)if(r=Br[n],t=e.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Yr.name_=i},Br=["ng-","data-ng-","ng:","x-ng-"],Gr=/[A-Z]/g,Xr=!1,Zr=1,Kr=2,Jr=3,Qr=8,ti=9,ei=11,ni={full:"1.4.8",major:1,minor:4,dot:8,codeName:"ice-manipulation"};Et.expando="ng339";var ri=Et.cache={},ii=1,ai=function(t,e,n){t.addEventListener(e,n,!1)},oi=function(t,e,n){t.removeEventListener(e,n,!1)};Et._data=function(t){return this.cache[t[this.expando]]||{}};var si=/([\:\-\_]+(.))/g,ui=/^moz([A-Z])/,li={mouseleave:"mouseout",mouseenter:"mouseover"},ci=r("jqLite"),fi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,di=/<|&#?\w+;/,pi=/<([\w:-]+)/,hi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,gi={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,"",""]};gi.optgroup=gi.option,gi.tbody=gi.tfoot=gi.colgroup=gi.caption=gi.thead,gi.th=gi.td;var mi=Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},vi=Et.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===e.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),Et(t).on("load",r))},toString:function(){var t=[];return a(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return Dr(t>=0?this[t]:this[this.length+t])},length:0,push:Pr,sort:[].sort,splice:[].splice},yi={};a("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){yi[kr(t)]=t});var bi={};a("input,select,option,textarea,button,form,details".split(","),function(t){bi[t]=!0});var xi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};a({data:Pt,removeData:Ot,hasData:Ct},function(t,e){Et[e]=t}),a({data:Pt,inheritedData:Ht,scope:function(t){return Dr.data(t,"$scope")||Ht(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Dr.data(t,"$isolateScope")||Dr.data(t,"$isolateScopeNoTemplate")},controller:qt,injector:function(t){return Ht(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Ft,css:function(t,e,n){return e=wt(e),x(n)?void(t.style[e]=n):t.style[e];
|
||
},attr:function(t,e,r){var i=t.nodeType;if(i!==Jr&&i!==Kr&&i!==Qr){var a=kr(e);if(yi[a]){if(!x(r))return t[e]||(t.attributes.getNamedItem(e)||g).specified?a:n;r?(t[e]=!0,t.setAttribute(e,a)):(t[e]=!1,t.removeAttribute(a))}else if(x(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 x(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(b(e)){var n=t.nodeType;return n===Zr||n===Jr?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(b(e)){if(t.multiple&&"select"===L(t)){var n=[];return a(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){return b(e)?t.innerHTML:(_t(t,!0),void(t.innerHTML=e))},empty:Vt},function(t,e){Et.prototype[e]=function(e,n){var r,i,a=this.length;if(t!==Vt&&b(2==t.length&&t!==Ft&&t!==qt?e:n)){if($(e)){for(r=0;a>r;r++)if(t===Pt)t(this[r],e);else for(i in e)t(this[r],i,e[i]);return this}for(var o=t.$dv,s=b(o)?Math.min(a,1):a,u=0;s>u;u++){var l=t(this[u],e,n);o=o?o+l:l}return o}for(r=0;a>r;r++)t(this[r],e,n);return this}}),a({removeData:Ot,on:function(t,e,r,i){if(x(i))throw ci("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Mt(t)){var a=Nt(t,!0),o=a.events,s=a.handle;s||(s=a.handle=Yt(t,o));for(var u=e.indexOf(" ")>=0?e.split(" "):[e],l=u.length,c=function(e,n,i){var a=o[e];a||(a=o[e]=[],a.specialHandlerWrapper=n,"$destroy"===e||i||ai(t,e,s)),a.push(r)};l--;)e=u[l],li[e]?(c(li[e],Gt),c(e,n,!0)):c(e)}},off:Tt,one:function(t,e,n){t=Dr(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;_t(t),a(new Et(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return a(t.childNodes,function(t){t.nodeType===Zr&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===Zr||n===ei){e=new Et(e);for(var r=0,i=e.length;i>r;r++){var a=e[r];t.appendChild(a)}}},prepend:function(t,e){if(t.nodeType===Zr){var n=t.firstChild;a(new Et(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=Dr(e).eq(0).clone()[0];var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)},remove:Rt,detach:function(t){Rt(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new Et(e);for(var i=0,a=e.length;a>i;i++){var o=e[i];r.insertBefore(o,n.nextSibling),n=o}},addClass:It,removeClass:jt,toggleClass:function(t,e,n){e&&a(e.split(" "),function(e){var r=n;b(r)&&(r=!Ft(t,e)),(r?It:jt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==ei?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Dt,triggerHandler:function(t,e,n){var r,i,o,s=e.type||e,u=Nt(t),l=u&&u.events,c=l&&l[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:g,type:s,target:t},e.type&&(r=f(r,e)),i=V(c),o=n?[r].concat(n):[r],a(i,function(e){r.isImmediatePropagationStopped()||e.apply(t,o)}))}},function(t,e){Et.prototype[e]=function(e,n,r){for(var i,a=0,o=this.length;o>a;a++)b(i)?(i=t(this[a],e,n,r),x(i)&&(i=Dr(i))):Lt(i,t(this[a],e,n,r));return x(i)?i:this},Et.prototype.bind=Et.prototype.on,Et.prototype.unbind=Et.prototype.off}),Kt.prototype={put:function(t,e){this[Zt(t,this.nextUid)]=e},get:function(t){return this[Zt(t,this.nextUid)]},remove:function(t){var e=this[t=Zt(t,this.nextUid)];return delete this[t],e}};var $i=[function(){this.$get=[function(){return Kt}]}],wi=/^[^\(]*\(\s*([^\)]*)\)/m,ki=/,/,Mi=/^\s*(_?)(\S+?)\1\s*$/,Ci=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Si=r("$injector");te.$$annotate=Qt;var Ai=r("$animate"),Ei=1,Di="ng-animate",_i=function(){this.$get=["$q","$$rAF",function(t,e){function n(){}return n.all=g,n.chain=g,n.prototype={end:g,cancel:g,resume:g,pause:g,complete:g,then:function(n,r){return t(function(t){e(function(){t()})}).then(n,r)}},n}]},Ti=function(){var t=new Kt,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(t,e,n){var r=!1;return e&&(e=k(e)?e.split(" "):Vr(e)?e:[],a(e,function(e){e&&(r=!0,t[e]=n)})),r}function o(){a(e,function(e){var n=t.get(e);if(n){var r=ie(e.attr("class")),i="",o="";a(n,function(t,e){var n=!!r[e];t!==n&&(t?i+=(i.length?" ":"")+e:o+=(o.length?" ":"")+e)}),a(e,function(t){i&&It(t,i),o&&jt(t,o)}),t.remove(e)}}),e.length=0}function s(n,a,s){var u=t.get(n)||{},l=i(u,a,!0),c=i(u,s,!1);(l||c)&&(t.put(n,u),e.push(n),1===e.length&&r.$$postDigest(o))}return{enabled:g,on:g,off:g,pin:g,push:function(t,e,r,i){return i&&i(),r=r||{},r.from&&t.css(r.from),r.to&&t.css(r.to),(r.addClass||r.removeClass)&&s(t,r.addClass,r.removeClass),new n}}}]},Oi=["$provide",function(t){var e=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Ai("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.classNameFilter=function(t){if(1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null,this.$$classNameFilter)){var e=new RegExp("(\\s+|\\/)"+Di+"(\\s+|\\/)");if(e.test(this.$$classNameFilter.toString()))throw Ai("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Di)}return this.$$classNameFilter},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var r=re(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.end&&t.end()},enter:function(n,r,i,a){return r=r&&Dr(r),i=i&&Dr(i),r=r||i.parent(),e(n,r,i),t.push(n,"enter",ae(a))},move:function(n,r,i,a){return r=r&&Dr(r),i=i&&Dr(i),r=r||i.parent(),e(n,r,i),t.push(n,"move",ae(a))},leave:function(e,n){return t.push(e,"leave",ae(n),function(){e.remove()})},addClass:function(e,n,r){return r=ae(r),r.addClass=ne(r.addclass,n),t.push(e,"addClass",r)},removeClass:function(e,n,r){return r=ae(r),r.removeClass=ne(r.removeClass,n),t.push(e,"removeClass",r)},setClass:function(e,n,r,i){return i=ae(i),i.addClass=ne(i.addClass,n),i.removeClass=ne(i.removeClass,r),t.push(e,"setClass",i)},animate:function(e,n,r,i,a){return a=ae(a),a.from=a.from?f(a.from,n):n,a.to=a.to?f(a.to,r):r,i=i||"ng-inline-animate",a.tempClasses=ne(a.tempClasses,i),t.push(e,"animate",a)}}}]}],Ni=function(){this.$get=["$$rAF","$q",function(t,e){var n=function(){};return n.prototype={done:function(t){this.defer&&this.defer[t===!0?"reject":"resolve"]()},end:function(){this.done()},cancel:function(){this.done(!0)},getPromise:function(){return this.defer||(this.defer=e.defer()),this.defer.promise},then:function(t,e){return this.getPromise().then(t,e)},"catch":function(t){return this.getPromise()["catch"](t)},"finally":function(t){return this.getPromise()["finally"](t)}},function(e,r){function i(){return t(function(){a(),o||s.done(),o=!0}),s}function a(){r.addClass&&(e.addClass(r.addClass),r.addClass=null),r.removeClass&&(e.removeClass(r.removeClass),r.removeClass=null),r.to&&(e.css(r.to),r.to=null)}r.cleanupStyles&&(r.from=r.to=null),r.from&&(e.css(r.from),r.from=null);var o,s=new n;return{start:i,end:i}}}]},Pi=r("$compile");ce.$inject=["$provide","$$sanitizeUriProvider"];var Fi=/^((?:x|data)[\:\-_])/i,ji=r("$controller"),Ii=/^(\S+)(\s+as\s+(\w+))?$/,Li=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Dr&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},qi="application/json",Hi={"Content-Type":qi+";charset=utf-8"},Vi=/^\[|^\{(?!\{)/,Ri={"[":/]$/,"{":/}$/},Wi=/^\)\]\}',?\n/,zi=r("$http"),Ui=function(t){return function(){throw zi("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",t)}},Yi=Lr.$interpolateMinErr=r("$interpolate");Yi.throwNoconcat=function(t){throw Yi("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",t)},Yi.interr=function(t,e){return Yi("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Bi=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Gi={http:80,https:443,ftp:21},Xi=r("$location"),Zi={$$html5:!1,$$replace:!1,absUrl:ze("$$absUrl"),url:function(t){if(b(t))return this.$$url;var e=Bi.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:ze("$$protocol"),host:ze("$$host"),port:ze("$$port"),path:Ue("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(k(t)||M(t))t=t.toString(),this.$$search=tt(t);else{if(!$(t))throw Xi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=H(t,{}),a(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:b(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Ue("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};a([We,Re,Ve],function(t){t.prototype=Object.create(Zi),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Ve||!this.$$html5)throw Xi("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=b(e)?null:e,this}});var Ki=r("$parse"),Ji=Function.prototype.call,Qi=Function.prototype.apply,ta=Function.prototype.bind,ea=mt();a("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){ea[t]=!0});var na={n:"\n",f:"\f",r:"\r",t:" ",v:"","'":"'",'"':'"'},ra=function(t){this.options=t};ra.prototype={constructor:ra,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(e))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),r=n+this.peek(2),i=ea[e],a=ea[n],o=ea[r];if(i||a||o){var s=o?r:a?n:e;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},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&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||" "===t||"\n"===t||""===t||" "===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=x(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw Ki("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=kr(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++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){for(var t=this.index;this.index<this.text.length;){var e=this.text.charAt(this.index);if(!this.isIdent(e)&&!this.isNumber(e))break;this.index++}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",r=t,i=!1;this.index<this.text.length;){var a=this.text.charAt(this.index);if(r+=a,i){if("u"===a){var o=this.text.substring(this.index+1,this.index+5);o.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+o+"]"),this.index+=4,n+=String.fromCharCode(parseInt(o,16))}else{var s=na[a];n+=s||a}i=!1}else if("\\"===a)i=!0;else{if(a===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=a}this.index++}this.throwError("Unterminated quote",e)}};var ia=function(t,e){this.lexer=t,this.options=e};ia.Program="Program",ia.ExpressionStatement="ExpressionStatement",ia.AssignmentExpression="AssignmentExpression",ia.ConditionalExpression="ConditionalExpression",ia.LogicalExpression="LogicalExpression",ia.BinaryExpression="BinaryExpression",ia.UnaryExpression="UnaryExpression",ia.CallExpression="CallExpression",ia.MemberExpression="MemberExpression",ia.Identifier="Identifier",ia.Literal="Literal",ia.ArrayExpression="ArrayExpression",ia.Property="Property",ia.ObjectExpression="ObjectExpression",ia.ThisExpression="ThisExpression",ia.NGValueParameter="NGValueParameter",ia.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:ia.Program,body:t}},expressionStatement:function(){return{type:ia.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t,e=this.expression();t=this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();return this.expect("=")&&(t={type:ia.AssignmentExpression,left:t,right:this.assignment(),operator:"="}),t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:ia.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:ia.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:ia.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:ia.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:ia.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:ia.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:ia.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:ia.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.constants.hasOwnProperty(this.peek().text)?t=H(this.constants[this.consume().text]):this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(var e;e=this.expect("(","[",".");)"("===e.text?(t={type:ia.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:ia.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:ia.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:ia.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do t.push(this.expression());while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:ia.Identifier,name:t.text}},constant:function(){return{type:ia.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:ia.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:ia.Property,kind:"init"},this.peek().constant?t.key=this.constant():this.peek().identifier?t.key=this.identifier():this.throwError("invalid key",this.peek()),this.consume(":"),t.value=this.expression(),e.push(t)}while(this.expect(","));return this.consume("}"),{type:ia.ObjectExpression,properties:e}},throwError:function(t,e){throw Ki("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))},consume:function(t){if(0===this.tokens.length)throw Ki("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw Ki("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var a=this.tokens[t],o=a.text;if(o===e||o===n||o===r||o===i||!e&&!n&&!r&&!i)return a}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return i?(this.tokens.shift(),i):!1},constants:{"true":{type:ia.Literal,value:!0},"false":{type:ia.Literal,value:!1},"null":{type:ia.Literal,value:null},undefined:{type:ia.Literal,value:n},"this":{type:ia.ThisExpression}}},ln.prototype={compile:function(t,e){var r=this,i=this.astBuilder.ast(t);this.state={nextId:0,filters:{},expensiveChecks:e,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},nn(i,r.$filter);var o,s="";if(this.stage="assign",o=on(i)){this.state.computing="assign";var u=this.nextId();this.recurse(o,u),this.return_(u),s="fn.assign="+this.generateFunction("assign","s,v,l")}var l=rn(i.body);r.stage="inputs",a(l,function(t,e){var n="fn"+e;r.state[n]={vars:[],body:[],own:{}},r.state.computing=n;var i=r.nextId();r.recurse(t,i),r.return_(i),r.state.inputs.push(n),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(i);var c='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+s+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",c)(this.$filter,Ge,Ze,Ke,Xe,Je,Qe,tn,t);return this.state=this.stage=n,f.literal=sn(i),f.constant=un(i),f},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return a(e,function(e){t.push("var "+e+"="+n.generateFunction(e,"s"))}),e.length&&t.push("fn.inputs=["+e.join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return a(this.state.filters,function(n,r){t.push(n+"=$filter("+e.escape(r)+")")}),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,r,i,o,s){var u,l,c,f,d=this;if(i=i||g,!s&&x(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,r,i,o,!0));switch(t.type){case ia.Program:a(t.body,function(e,r){d.recurse(e.expression,n,n,function(t){l=t}),r!==t.body.length-1?d.current().body.push(l,";"):d.return_(l)});break;case ia.Literal:f=this.escape(t.value),this.assign(e,f),i(f);break;case ia.UnaryExpression:this.recurse(t.argument,n,n,function(t){l=t}),f=t.operator+"("+this.ifDefined(l,0)+")",this.assign(e,f),i(f);break;case ia.BinaryExpression:this.recurse(t.left,n,n,function(t){u=t}),this.recurse(t.right,n,n,function(t){l=t}),f="+"===t.operator?this.plus(u,l):"-"===t.operator?this.ifDefined(u,0)+t.operator+this.ifDefined(l,0):"("+u+")"+t.operator+"("+l+")",this.assign(e,f),i(f);break;case ia.LogicalExpression:e=e||this.nextId(),d.recurse(t.left,e),d.if_("&&"===t.operator?e:d.not(e),d.lazyRecurse(t.right,e)),i(e);break;case ia.ConditionalExpression:e=e||this.nextId(),d.recurse(t.test,e),d.if_(e,d.lazyRecurse(t.alternate,e),d.lazyRecurse(t.consequent,e)),i(e);break;case ia.Identifier:e=e||this.nextId(),r&&(r.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),r.computed=!1,r.name=t.name),Ge(t.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",t.name)),function(){d.if_("inputs"===d.stage||"s",function(){o&&1!==o&&d.if_(d.not(d.nonComputedMember("s",t.name)),d.lazyAssign(d.nonComputedMember("s",t.name),"{}")),d.assign(e,d.nonComputedMember("s",t.name))})},e&&d.lazyAssign(e,d.nonComputedMember("l",t.name))),(d.state.expensiveChecks||fn(t.name))&&d.addEnsureSafeObject(e),i(e);break;case ia.MemberExpression:u=r&&(r.context=this.nextId())||this.nextId(),e=e||this.nextId(),d.recurse(t.object,u,n,function(){d.if_(d.notNull(u),function(){t.computed?(l=d.nextId(),d.recurse(t.property,l),d.getStringValue(l),d.addEnsureSafeMemberName(l),o&&1!==o&&d.if_(d.not(d.computedMember(u,l)),d.lazyAssign(d.computedMember(u,l),"{}")),f=d.ensureSafeObject(d.computedMember(u,l)),d.assign(e,f),r&&(r.computed=!0,r.name=l)):(Ge(t.property.name),o&&1!==o&&d.if_(d.not(d.nonComputedMember(u,t.property.name)),d.lazyAssign(d.nonComputedMember(u,t.property.name),"{}")),f=d.nonComputedMember(u,t.property.name),(d.state.expensiveChecks||fn(t.property.name))&&(f=d.ensureSafeObject(f)),d.assign(e,f),r&&(r.computed=!1,r.name=t.property.name))},function(){d.assign(e,"undefined")}),i(e)},!!o);break;case ia.CallExpression:e=e||this.nextId(),t.filter?(l=d.filter(t.callee.name),c=[],a(t.arguments,function(t){var e=d.nextId();d.recurse(t,e),c.push(e)}),f=l+"("+c.join(",")+")",d.assign(e,f),i(e)):(l=d.nextId(),u={},c=[],d.recurse(t.callee,l,u,function(){d.if_(d.notNull(l),function(){d.addEnsureSafeFunction(l),a(t.arguments,function(t){d.recurse(t,d.nextId(),n,function(t){c.push(d.ensureSafeObject(t))})}),u.name?(d.state.expensiveChecks||d.addEnsureSafeObject(u.context),f=d.member(u.context,u.name,u.computed)+"("+c.join(",")+")"):f=l+"("+c.join(",")+")",f=d.ensureSafeObject(f),d.assign(e,f)},function(){d.assign(e,"undefined")}),i(e)}));break;case ia.AssignmentExpression:if(l=this.nextId(),u={},!an(t.left))throw Ki("lval","Trying to assing a value to a non l-value");this.recurse(t.left,n,u,function(){d.if_(d.notNull(u.context),function(){d.recurse(t.right,l),d.addEnsureSafeObject(d.member(u.context,u.name,u.computed)),d.addEnsureSafeAssignContext(u.context),f=d.member(u.context,u.name,u.computed)+t.operator+l,d.assign(e,f),i(e||f)})},1);break;case ia.ArrayExpression:c=[],a(t.elements,function(t){d.recurse(t,d.nextId(),n,function(t){c.push(t)})}),f="["+c.join(",")+"]",this.assign(e,f),i(f);break;case ia.ObjectExpression:c=[],a(t.properties,function(t){d.recurse(t.value,d.nextId(),n,function(e){c.push(d.escape(t.key.type===ia.Identifier?t.key.name:""+t.key.value)+":"+e)})}),f="{"+c.join(",")+"}",this.assign(e,f),i(f);break;case ia.ThisExpression:this.assign(e,"s"),i("s");break;case ia.NGValueParameter:this.assign(e,"v"),i("v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){return t?(this.current().body.push(t,"=",e,";"),t):void 0},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(t===!0)e();else{var r=this.current().body;r.push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(t){return"!("+t+")"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return t+"."+e},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},addEnsureSafeObject:function(t){this.current().body.push(this.ensureSafeObject(t),";")},addEnsureSafeMemberName:function(t){this.current().body.push(this.ensureSafeMemberName(t),";")},addEnsureSafeFunction:function(t){this.current().body.push(this.ensureSafeFunction(t),";")},addEnsureSafeAssignContext:function(t){this.current().body.push(this.ensureSafeAssignContext(t),";")},ensureSafeObject:function(t){return"ensureSafeObject("+t+",text)"},ensureSafeMemberName:function(t){return"ensureSafeMemberName("+t+",text)"},ensureSafeFunction:function(t){return"ensureSafeFunction("+t+",text)"},getStringValue:function(t){this.assign(t,"getStringValue("+t+",text)")},ensureSafeAssignContext:function(t){return"ensureSafeAssignContext("+t+",text)"},lazyRecurse:function(t,e,n,r,i,a){var o=this;return function(){o.recurse(t,e,n,r,i,a)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(k(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(M(t))return t.toString();if(t===!0)return"true";if(t===!1)return"false";if(null===t)return"null";if("undefined"==typeof t)return"undefined";throw Ki("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},cn.prototype={compile:function(t,e){var n=this,r=this.astBuilder.ast(t);this.expression=t,this.expensiveChecks=e,nn(r,n.$filter);var i,o;(i=on(r))&&(o=this.recurse(i));var s,u=rn(r.body);u&&(s=[],a(u,function(t,e){var r=n.recurse(t);t.input=r,s.push(r),t.watchId=e}));var l=[];a(r.body,function(t){l.push(n.recurse(t.expression))});var c=0===r.body.length?function(){}:1===r.body.length?l[0]:function(t,e){var n;return a(l,function(r){n=r(t,e)}),n};return o&&(c.assign=function(t,e,n){return o(t,n,e)}),s&&(c.inputs=s),c.literal=sn(r),c.constant=un(r),c},recurse:function(t,e,r){var i,o,s,u=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case ia.Literal:return this.value(t.value,e);case ia.UnaryExpression:return o=this.recurse(t.argument),this["unary"+t.operator](o,e);case ia.BinaryExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case ia.LogicalExpression:return i=this.recurse(t.left),o=this.recurse(t.right),this["binary"+t.operator](i,o,e);case ia.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case ia.Identifier:return Ge(t.name,u.expression),u.identifier(t.name,u.expensiveChecks||fn(t.name),e,r,u.expression);case ia.MemberExpression:return i=this.recurse(t.object,!1,!!r),t.computed||(Ge(t.property.name,u.expression),o=t.property.name),t.computed&&(o=this.recurse(t.property)),t.computed?this.computedMember(i,o,e,r,u.expression):this.nonComputedMember(i,o,u.expensiveChecks,e,r,u.expression);case ia.CallExpression:return s=[],a(t.arguments,function(t){s.push(u.recurse(t))}),t.filter&&(o=this.$filter(t.callee.name)),t.filter||(o=this.recurse(t.callee,!0)),t.filter?function(t,r,i,a){for(var u=[],l=0;l<s.length;++l)u.push(s[l](t,r,i,a));var c=o.apply(n,u,a);return e?{context:n,name:n,value:c}:c}:function(t,n,r,i){var a,l=o(t,n,r,i);if(null!=l.value){Ze(l.context,u.expression),Ke(l.value,u.expression);for(var c=[],f=0;f<s.length;++f)c.push(Ze(s[f](t,n,r,i),u.expression));a=Ze(l.value.apply(l.context,c),u.expression)}return e?{value:a}:a};case ia.AssignmentExpression:return i=this.recurse(t.left,!0,1),o=this.recurse(t.right),function(t,n,r,a){var s=i(t,n,r,a),l=o(t,n,r,a);return Ze(s.value,u.expression),Je(s.context),s.context[s.name]=l,e?{value:l}:l};case ia.ArrayExpression:return s=[],a(t.elements,function(t){s.push(u.recurse(t))}),function(t,n,r,i){for(var a=[],o=0;o<s.length;++o)a.push(s[o](t,n,r,i));return e?{value:a}:a};case ia.ObjectExpression:return s=[],a(t.properties,function(t){s.push({key:t.key.type===ia.Identifier?t.key.name:""+t.key.value,value:u.recurse(t.value)})}),function(t,n,r,i){for(var a={},o=0;o<s.length;++o)a[s[o].key]=s[o].value(t,n,r,i);return e?{value:a}:a};case ia.ThisExpression:return function(t){return e?{value:t}:t};case ia.NGValueParameter:return function(t,n,r,i){return e?{value:r}:r}}},"unary+":function(t,e){return function(n,r,i,a){var o=t(n,r,i,a);return o=x(o)?+o:0,e?{value:o}:o}},"unary-":function(t,e){return function(n,r,i,a){var o=t(n,r,i,a);return o=x(o)?-o:0,e?{value:o}:o}},"unary!":function(t,e){return function(n,r,i,a){var o=!t(n,r,i,a);return e?{value:o}:o}},"binary+":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o),u=e(r,i,a,o),l=tn(s,u);return n?{value:l}:l}},"binary-":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o),u=e(r,i,a,o),l=(x(s)?s:0)-(x(u)?u:0);return n?{value:l}:l}},"binary*":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)*e(r,i,a,o);return n?{value:s}:s}},"binary/":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)/e(r,i,a,o);return n?{value:s}:s}},"binary%":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)%e(r,i,a,o);return n?{value:s}:s}},"binary===":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)===e(r,i,a,o);return n?{value:s}:s}},"binary!==":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)!==e(r,i,a,o);return n?{value:s}:s}},"binary==":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)==e(r,i,a,o);return n?{value:s}:s}},"binary!=":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)!=e(r,i,a,o);return n?{value:s}:s}},"binary<":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)<e(r,i,a,o);return n?{value:s}:s}},"binary>":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)>e(r,i,a,o);return n?{value:s}:s}},"binary<=":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)<=e(r,i,a,o);return n?{value:s}:s}},"binary>=":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)>=e(r,i,a,o);return n?{value:s}:s}},"binary&&":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)&&e(r,i,a,o);return n?{value:s}:s}},"binary||":function(t,e,n){return function(r,i,a,o){var s=t(r,i,a,o)||e(r,i,a,o);return n?{value:s}:s}},"ternary?:":function(t,e,n,r){return function(i,a,o,s){var u=t(i,a,o,s)?e(i,a,o,s):n(i,a,o,s);return r?{value:u}:u}},value:function(t,e){return function(){return e?{context:n,name:n,value:t}:t}},identifier:function(t,e,r,i,a){return function(o,s,u,l){var c=s&&t in s?s:o;i&&1!==i&&c&&!c[t]&&(c[t]={});var f=c?c[t]:n;return e&&Ze(f,a),r?{context:c,name:t,value:f}:f}},computedMember:function(t,e,n,r,i){return function(a,o,s,u){var l,c,f=t(a,o,s,u);return null!=f&&(l=e(a,o,s,u),l=Xe(l),Ge(l,i),r&&1!==r&&f&&!f[l]&&(f[l]={}),c=f[l],Ze(c,i)),n?{context:f,name:l,value:c}:c}},nonComputedMember:function(t,e,r,i,a,o){return function(s,u,l,c){var f=t(s,u,l,c);a&&1!==a&&f&&!f[e]&&(f[e]={});var d=null!=f?f[e]:n;return(r||fn(e))&&Ze(d,o),i?{context:f,name:e,value:d}:d}},inputs:function(t,e){return function(n,r,i,a){
|
||
return a?a[e]:t(n,r,i)}}};var aa=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n,this.ast=new ia(this.lexer),this.astCompiler=n.csp?new cn(this.ast,e):new ln(this.ast,e)};aa.prototype={constructor:aa,parse:function(t){return this.astCompiler.compile(t,this.options.expensiveChecks)}};var oa=(mt(),mt(),Object.prototype.valueOf),sa=r("$sce"),ua={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Pi=r("$compile"),la=e.createElement("a"),ca=En(t.location.href);Tn.$inject=["$document"],Nn.$inject=["$provide"],Ln.$inject=["$locale"],qn.$inject=["$locale"];var fa=".",da={yyyy:Rn("FullYear",4),yy:Rn("FullYear",2,0,!0),y:Rn("FullYear",1),MMMM:Wn("Month"),MMM:Wn("Month",!0),MM:Rn("Month",2,1),M:Rn("Month",1,1),dd:Rn("Date",2),d:Rn("Date",1),HH:Rn("Hours",2),H:Rn("Hours",1),hh:Rn("Hours",2,-12),h:Rn("Hours",1,-12),mm:Rn("Minutes",2),m:Rn("Minutes",1),ss:Rn("Seconds",2),s:Rn("Seconds",1),sss:Rn("Milliseconds",3),EEEE:Wn("Day"),EEE:Wn("Day",!0),a:Gn,Z:zn,ww:Bn(2),w:Bn(1),G:Xn,GG:Xn,GGG:Xn,GGGG:Zn},pa=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,ha=/^\-?\d+$/;Kn.$inject=["$locale"];var ga=v(kr),ma=v(Cr);tr.$inject=["$parse"];var va=v({restrict:"E",compile:function(t,e){return e.href||e.xlinkHref?void 0:function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===Fr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),ya={};a(yi,function(t,e){function n(t,n,i){t.$watch(i[r],function(t){i.$set(e,!!t)})}if("multiple"!=t){var r=fe("ng-"+e),i=n;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,e,i)}),ya[r]=function(){return{restrict:"A",priority:100,link:i}}}}),a(xi,function(t,e){ya[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match($r);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),a(["src","srcset","href"],function(t){var e=fe("ng-"+t);ya[e]=function(){return{priority:99,link:function(n,r,i){var a=t,o=t;"href"===t&&"[object SVGAnimatedString]"===Fr.call(r.prop("href"))&&(o="xlinkHref",i.$attr[o]="xlink:href",a=null),i.$observe(e,function(e){return e?(i.$set(o,e),void(Er&&a&&r.prop(a,i[o]))):void("href"===t&&i.$set(o,null))})}}}});var ba={$addControl:g,$$renameControl:nr,$removeControl:g,$setValidity:g,$setDirty:g,$setPristine:g,$setSubmitted:g},xa="ng-submitted";rr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var $a=function(t){return["$timeout","$parse",function(e,r){function i(t){return""===t?r('this[""]').assign:r(t).assign||g}var a={name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:rr,compile:function(r,a){r.addClass(eo).addClass(Qa);var o=a.name?"name":t&&a.ngForm?"ngForm":!1;return{pre:function(t,r,a,s){var u=s[0];if(!("action"in a)){var l=function(e){t.$apply(function(){u.$commitViewValue(),u.$setSubmitted()}),e.preventDefault()};ai(r[0],"submit",l),r.on("$destroy",function(){e(function(){oi(r[0],"submit",l)},0,!1)})}var c=s[1]||u.$$parentForm;c.$addControl(u);var d=o?i(u.$name):g;o&&(d(t,u),a.$observe(o,function(e){u.$name!==e&&(d(t,n),u.$$parentForm.$$renameControl(u,e),(d=i(u.$name))(t,u))})),r.on("$destroy",function(){u.$$parentForm.$removeControl(u),d(t,n),f(u,ba)})}}}};return a}]},wa=$a(),ka=$a(!0),Ma=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ca=/^[A-Za-z][A-Za-z\d.+-]*:\/*(?:\w+(?::\w+)?@)?[^\s\/]+(?::\d+)?(?:\/[\w#!:.?+=&%@\-\/]*)?$/,Sa=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Aa=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ea=/^(\d{4})-(\d{2})-(\d{2})$/,Da=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,_a=/^(\d{4})-W(\d\d)$/,Ta=/^(\d{4})-(\d\d)$/,Oa=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Na={text:ar,date:lr("date",Ea,ur(Ea,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":lr("datetimelocal",Da,ur(Da,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:lr("time",Oa,ur(Oa,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:lr("week",_a,sr,"yyyy-Www"),month:lr("month",Ta,ur(Ta,["yyyy","MM"]),"yyyy-MM"),number:fr,url:dr,email:pr,radio:hr,checkbox:mr,hidden:g,button:g,submit:g,reset:g,file:g},Pa=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,a,o,s){s[0]&&(Na[kr(o.type)]||Na.text)(i,a,o,s[0],e,t,n,r)}}}}],Fa=/^(true|false|\d+)$/,ja=function(){return{restrict:"A",priority:100,compile:function(t,e){return Fa.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)})}}}},Ia=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,r){t.$$addBindingInfo(n,r.ngBind),n=n[0],e.$watch(r.ngBind,function(t){n.textContent=b(t)?"":t})}}}}],La=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,r,i){var a=t(r.attr(i.$attr.ngBindTemplate));e.$$addBindingInfo(r,a.expressions),r=r[0],i.$observe("ngBindTemplate",function(t){r.textContent=b(t)?"":t})}}}}],qa=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var a=e(i.ngBindHtml),o=e(i.ngBindHtml,function(t){return(t||"").toString()});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(o,function(){r.html(t.getTrustedHtml(a(e))||"")})}}}}],Ha=v({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Va=vr("",!0),Ra=vr("Odd",0),Wa=vr("Even",1),za=er({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),Ua=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Ya={},Ba={blur:!0,focus:!0};a("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=fe("ng-"+t);Ya[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,a){var o=n(a[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){o(e,{$event:n})};Ba[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var Ga=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,a,o){var s,u,l;n.$watch(i.ngIf,function(n){n?u||o(function(n,a){u=a,n[n.length++]=e.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},t.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=gt(s.clone),t.leave(l).then(function(){l=null}),s=null))})}}}],Xa=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Lr.noop,compile:function(r,i){var a=i.ngInclude||i.src,o=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,d,p,h=0,g=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).then(function(){d=null}),d=p,p=null)};r.$watch(a,function(a){var u=function(){!x(s)||s&&!r.$eval(s)||e()},d=++h;a?(t(a,!0).then(function(t){if(d===h){var e=r.$new();l.template=t;var s=c(e,function(t){g(),n.enter(t,null,i).then(u)});f=e,p=s,f.$emit("$includeContentLoaded",a),r.$eval(o)}},function(){d===h&&(g(),r.$emit("$includeContentError",a))}),r.$emit("$includeContentRequested",a)):(g(),l.template=null)})}}}}],Za=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,a){return/SVG/.test(r[0].toString())?(r.empty(),void t(St(a.template,e).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(a.template),void t(r.contents())(n))}}}],Ka=er({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Ja=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,r,i){var o=e.attr(r.$attr.ngList)||", ",s="false"!==r.ngTrim,u=s?Wr(o):o,l=function(t){if(!b(t)){var e=[];return t&&a(t.split(u),function(t){t&&e.push(s?Wr(t):t)}),e}};i.$parsers.push(l),i.$formatters.push(function(t){return Vr(t)?t.join(o):n}),i.$isEmpty=function(t){return!t||!t.length}}}},Qa="ng-valid",to="ng-invalid",eo="ng-pristine",no="ng-dirty",ro="ng-untouched",io="ng-touched",ao="ng-pending",oo=r("ngModel"),so=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,r,i,o,s,u,l,c,f){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=n,this.$name=f(r.name||"",!1)(t),this.$$parentForm=ba;var d,p=o(r.ngModel),h=p.assign,m=p,v=h,y=null,$=this;this.$$setOptions=function(t){if($.$options=t,t&&t.getterSetter){var e=o(r.ngModel+"()"),n=o(r.ngModel+"($$$p)");m=function(t){var n=p(t);return S(n)&&(n=e(t)),n},v=function(t,e){S(p(t))?n(t,{$$$p:$.$modelValue}):h(t,$.$modelValue)}}else if(!p.assign)throw oo("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,J(i))},this.$render=g,this.$isEmpty=function(t){return b(t)||""===t||null===t||t!==t};var w=0;yr({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},$animate:s}),this.$setPristine=function(){$.$dirty=!1,$.$pristine=!0,s.removeClass(i,no),s.addClass(i,eo)},this.$setDirty=function(){$.$dirty=!0,$.$pristine=!1,s.removeClass(i,eo),s.addClass(i,no),$.$$parentForm.$setDirty()},this.$setUntouched=function(){$.$touched=!1,$.$untouched=!0,s.setClass(i,ro,io)},this.$setTouched=function(){$.$touched=!0,$.$untouched=!1,s.setClass(i,io,ro)},this.$rollbackViewValue=function(){u.cancel(y),$.$viewValue=$.$$lastCommittedViewValue,$.$render()},this.$validate=function(){if(!M($.$modelValue)||!isNaN($.$modelValue)){var t=$.$$lastCommittedViewValue,e=$.$$rawModelValue,r=$.$valid,i=$.$modelValue,a=$.$options&&$.$options.allowInvalid;$.$$runValidators(e,t,function(t){a||r===t||($.$modelValue=t?e:n,$.$modelValue!==i&&$.$$writeModelToScope())})}},this.$$runValidators=function(t,e,r){function i(){var t=$.$$parserName||"parse";return b(d)?(u(t,null),!0):(d||(a($.$validators,function(t,e){u(e,null)}),a($.$asyncValidators,function(t,e){u(e,null)})),u(t,d),d)}function o(){var n=!0;return a($.$validators,function(r,i){var a=r(t,e);n=n&&a,u(i,a)}),n?!0:(a($.$asyncValidators,function(t,e){u(e,null)}),!1)}function s(){var r=[],i=!0;a($.$asyncValidators,function(a,o){var s=a(t,e);if(!P(s))throw oo("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",s);u(o,n),r.push(s.then(function(){u(o,!0)},function(t){i=!1,u(o,!1)}))}),r.length?c.all(r).then(function(){l(i)},g):l(!0)}function u(t,e){f===w&&$.$setValidity(t,e)}function l(t){f===w&&r(t)}w++;var f=w;return i()&&o()?void s():void l(!1)},this.$commitViewValue=function(){var t=$.$viewValue;u.cancel(y),($.$$lastCommittedViewValue!==t||""===t&&$.$$hasNativeValidators)&&($.$$lastCommittedViewValue=t,$.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){$.$modelValue!==o&&$.$$writeModelToScope()}var r=$.$$lastCommittedViewValue,i=r;if(d=b(i)?n:!0)for(var a=0;a<$.$parsers.length;a++)if(i=$.$parsers[a](i),b(i)){d=!1;break}M($.$modelValue)&&isNaN($.$modelValue)&&($.$modelValue=m(t));var o=$.$modelValue,s=$.$options&&$.$options.allowInvalid;$.$$rawModelValue=i,s&&($.$modelValue=i,e()),$.$$runValidators(i,$.$$lastCommittedViewValue,function(t){s||($.$modelValue=t?i:n,e())})},this.$$writeModelToScope=function(){v(t,$.$modelValue),a($.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})},this.$setViewValue=function(t,e){$.$viewValue=t,(!$.$options||$.$options.updateOnDefault)&&$.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=$.$options;i&&x(i.debounce)&&(n=i.debounce,M(n)?r=n:M(n[e])?r=n[e]:M(n["default"])&&(r=n["default"])),u.cancel(y),r?y=u(function(){$.$commitViewValue()},r):l.$$phase?$.$commitViewValue():t.$apply(function(){$.$commitViewValue()})},t.$watch(function(){var e=m(t);if(e!==$.$modelValue&&($.$modelValue===$.$modelValue||e===e)){$.$modelValue=$.$$rawModelValue=e,d=n;for(var r=$.$formatters,i=r.length,a=e;i--;)a=r[i](a);$.$viewValue!==a&&($.$viewValue=$.$$lastCommittedViewValue=a,$.$render(),$.$$runValidators(e,a,g))}return e})}],uo=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:so,priority:1,compile:function(e){return e.addClass(eo).addClass(ro).addClass(Qa),{pre:function(t,e,n,r){var i=r[0],a=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),a.$addControl(i),n.$observe("name",function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(e,n,r,i){var a=i[0];a.$options&&a.$options.updateOn&&n.on(a.$options.updateOn,function(t){a.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(n){a.$touched||(t.$$phase?e.$evalAsync(a.$setTouched):e.$apply(a.$setTouched))})}}}}}],lo=/(\s+|^)default(\s+|$)/,co=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=H(t.$eval(e.ngModelOptions)),x(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=Wr(this.$options.updateOn.replace(lo,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},fo=er({terminal:!0,priority:1e3}),po=r("ngOptions"),ho=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\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]+?))?$/,go=["$compile","$parse",function(t,n){function r(t,e,r){function a(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function o(t){var e;if(!l&&i(t))e=t;else{e=[];for(var n in t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n)}return e}var s=t.match(ho);if(!s)throw po("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,J(e));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],d=n(s[2]?s[1]:u),p=c&&n(c),h=p||d,g=f&&n(f),m=f?function(t,e){return g(r,e)}:function(t){return Zt(t)},v=function(t,e){return m(t,k(t,e))},y=n(s[2]||s[1]),b=n(s[3]||""),x=n(s[4]||""),$=n(s[8]),w={},k=l?function(t,e){return w[l]=e,w[u]=t,w}:function(t){return w[u]=t,w};return{trackBy:f,getTrackByValue:v,getWatchables:n($,function(t){var e=[];t=t||[];for(var n=o(t),i=n.length,a=0;i>a;a++){var u=t===n?a:n[a],l=(t[u],k(t[u],u)),c=m(t[u],l);if(e.push(c),s[2]||s[1]){var f=y(r,l);e.push(f)}if(s[4]){var d=x(r,l);e.push(d)}}return e}),getOptions:function(){for(var t=[],e={},n=$(r)||[],i=o(n),s=i.length,u=0;s>u;u++){var l=n===i?u:i[u],c=n[l],d=k(c,l),p=h(r,d),g=m(p,d),w=y(r,d),M=b(r,d),C=x(r,d),S=new a(g,p,w,M,C);t.push(S),e[g]=S}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[v(t)]},getViewValueFromOption:function(t){return f?Lr.copy(t.viewValue):t.viewValue}}}}}function o(e,n,i,o){function l(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),t.value!==e.value&&(e.value=t.selectValue)}function c(t,e,n,r){var i;return e&&kr(e.nodeName)===n?i=e:(i=r.cloneNode(!1),e?t.insertBefore(i,e):t.appendChild(i)),i}function f(t){for(var e;t;)e=t.nextSibling,Rt(t),t=e}function d(t){var e=g&&g[0],n=w&&w[0];if(e||n)for(;t&&(t===e||t===n||t.nodeType===Qr||""===t.value);)t=t.nextSibling;return t}function p(){var t=k&&m.readValue();k=M.getOptions();var e={},r=n[0].firstChild;if($&&n.prepend(g),r=d(r),k.items.forEach(function(t){var i,a,o;t.group?(i=e[t.group],i||(a=c(n[0],r,"optgroup",u),r=a.nextSibling,a.label=t.group,i=e[t.group]={groupElement:a,currentOptionElement:a.firstChild}),o=c(i.groupElement,i.currentOptionElement,"option",s),l(t,o),i.currentOptionElement=o.nextSibling):(o=c(n[0],r,"option",s),l(t,o),r=o.nextSibling)}),Object.keys(e).forEach(function(t){f(e[t].currentOptionElement)}),f(r),h.$render(),!h.$isEmpty(t)){var i=m.readValue();(M.trackBy?R(t,i):t===i)||(h.$setViewValue(i),h.$render())}}var h=o[1];if(h){for(var g,m=o[0],v=i.multiple,y=0,b=n.children(),x=b.length;x>y;y++)if(""===b[y].value){g=b.eq(y);break}var $=!!g,w=Dr(s.cloneNode(!1));w.val("?");var k,M=r(i.ngOptions,n,e),C=function(){$||n.prepend(g),n.val(""),g.prop("selected",!0),g.attr("selected",!0)},S=function(){$||g.remove()},A=function(){n.prepend(w),n.val("?"),w.prop("selected",!0),w.attr("selected",!0)},E=function(){w.remove()};v?(h.$isEmpty=function(t){return!t||0===t.length},m.writeValue=function(t){k.items.forEach(function(t){t.element.selected=!1}),t&&t.forEach(function(t){var e=k.getOptionFromViewValue(t);e&&!e.disabled&&(e.element.selected=!0)})},m.readValue=function(){var t=n.val()||[],e=[];return a(t,function(t){var n=k.selectValueMap[t];n&&!n.disabled&&e.push(k.getViewValueFromOption(n))}),e},M.trackBy&&e.$watchCollection(function(){return Vr(h.$viewValue)?h.$viewValue.map(function(t){return M.getTrackByValue(t)}):void 0},function(){h.$render()})):(m.writeValue=function(t){var e=k.getOptionFromViewValue(t);e&&!e.disabled?n[0].value!==e.selectValue&&(E(),S(),n[0].value=e.selectValue,e.element.selected=!0,e.element.setAttribute("selected","selected")):null===t||$?(E(),C()):(S(),A())},m.readValue=function(){var t=k.selectValueMap[n.val()];return t&&!t.disabled?(S(),E(),k.getViewValueFromOption(t)):null},M.trackBy&&e.$watch(function(){return M.getTrackByValue(h.$viewValue)},function(){h.$render()})),$?(g.remove(),t(g)(e),g.removeClass("ng-scope")):g=Dr(s.cloneNode(!1)),p(),e.$watchCollection(M.getWatchables,p)}}var s=e.createElement("option"),u=e.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=g},post:o}}}],mo=["$locale","$interpolate","$log",function(t,e,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(o,s,u){function l(t){s.text(t||"")}var c,f=u.count,d=u.$attr.when&&s.attr(u.$attr.when),p=u.offset||0,h=o.$eval(d)||{},m={},v=e.startSymbol(),y=e.endSymbol(),x=v+f+"-"+p+y,$=Lr.noop;a(u,function(t,e){var n=i.exec(e);if(n){var r=(n[1]?"-":"")+kr(n[2]);h[r]=s.attr(u.$attr[e])}}),a(h,function(t,n){m[n]=e(t.replace(r,x))}),o.$watch(f,function(e){var r=parseFloat(e),i=isNaN(r);if(i||r in h||(r=t.pluralCat(r-p)),r!==c&&!(i&&M(c)&&isNaN(c))){$();var a=m[r];b(a)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+d),$=g,l()):$=o.$watch(a,l),c=r}})}}}],vo=["$parse","$animate",function(t,o){var s="$$NG_REMOVED",u=r("ngRepeat"),l=function(t,e,n,r,i,a,o){t[n]=r,i&&(t[i]=a),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))},c=function(t){return t.clone[0]},f=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,d){var p=d.ngRepeat,h=e.createComment(" end ngRepeat: "+p+" "),g=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!g)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var m=g[1],v=g[2],y=g[3],b=g[4];if(g=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!g)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var x=g[3]||g[1],$=g[2];if(y&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",y);var w,k,M,C,S={$id:Zt};return b?w=t(b):(M=function(t,e){return Zt(e)},C=function(t){return t}),function(t,e,r,d,g){w&&(k=function(e,n,r){return $&&(S[$]=e),S[x]=n,S.$index=r,w(t,S)});var m=mt();t.$watchCollection(v,function(r){var d,v,b,w,S,A,E,D,_,T,O,N,P=e[0],F=mt();if(y&&(t[y]=r),i(r))_=r,D=k||M;else{D=k||C,_=[];for(var j in r)Mr.call(r,j)&&"$"!==j.charAt(0)&&_.push(j)}for(w=_.length,O=new Array(w),d=0;w>d;d++)if(S=r===_?d:_[d],A=r[S],E=D(S,A,d),m[E])T=m[E],delete m[E],F[E]=T,O[d]=T;else{if(F[E])throw a(O,function(t){t&&t.scope&&(m[t.id]=t)}),u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,E,A);O[d]={id:E,scope:n,clone:n},F[E]=!0}for(var I in m){if(T=m[I],N=gt(T.clone),o.leave(N),N[0].parentNode)for(d=0,v=N.length;v>d;d++)N[d][s]=!0;T.scope.$destroy()}for(d=0;w>d;d++)if(S=r===_?d:_[d],A=r[S],T=O[d],T.scope){b=P;do b=b.nextSibling;while(b&&b[s]);c(T)!=b&&o.move(gt(T.clone),null,Dr(P)),P=f(T),l(T.scope,d,x,A,$,S,w)}else g(function(t,e){T.scope=e;var n=h.cloneNode(!1);t[t.length++]=n,o.enter(t,null,Dr(P)),P=n,T.clone=t,F[T.id]=T,l(T.scope,d,x,A,$,S,w)});m=F})}}}}],yo="ng-hide",bo="ng-hide-animate",xo=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,yo,{tempClasses:bo})})}}}],$o=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,yo,{tempClasses:bo})})}}}],wo=er(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&a(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),ko=["$animate",function(t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var s=i.ngSwitch||i.on,u=[],l=[],c=[],f=[],d=function(t,e){return function(){t.splice(e,1)}};n.$watch(s,function(n){var r,i;for(r=0,i=c.length;i>r;++r)t.cancel(c[r]);for(c.length=0,r=0,i=f.length;i>r;++r){var s=gt(l[r].clone);f[r].$destroy();var p=c[r]=t.leave(s);p.then(d(c,r))}l.length=0,f.length=0,(u=o.cases["!"+n]||o.cases["?"])&&a(u,function(n){n.transclude(function(r,i){f.push(i);var a=n.element;r[r.length++]=e.createComment(" end ngSwitchWhen: ");var o={clone:r};l.push(o),t.enter(r,a.parent(),a)})})})}}}],Mo=er({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Co=er({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),So=er({restrict:"EAC",link:function(t,e,n,i,a){if(!a)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",J(e));a(function(t){e.empty(),e.append(t)})}}),Ao=["$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)}}}}],Eo={$setViewValue:g,$render:g},Do=["$element","$scope","$attrs",function(t,r,i){var a=this,o=new Kt;a.ngModelCtrl=Eo,a.unknownOption=Dr(e.createElement("option")),a.renderUnknownOption=function(e){var n="? "+Zt(e)+" ?";a.unknownOption.val(n),t.prepend(a.unknownOption),t.val(n)},r.$on("$destroy",function(){a.renderUnknownOption=g}),a.removeUnknownOption=function(){a.unknownOption.parent()&&a.unknownOption.remove()},a.readValue=function(){return a.removeUnknownOption(),t.val()},a.writeValue=function(e){a.hasOption(e)?(a.removeUnknownOption(),t.val(e),""===e&&a.emptyOption.prop("selected",!0)):null==e&&a.emptyOption?(a.removeUnknownOption(),t.val("")):a.renderUnknownOption(e)},a.addOption=function(t,e){pt(t,'"option value"'),""===t&&(a.emptyOption=e);var n=o.get(t)||0;o.put(t,n+1),a.ngModelCtrl.$render(),xr(e)},a.removeOption=function(t){var e=o.get(t);e&&(1===e?(o.remove(t),""===t&&(a.emptyOption=n)):o.put(t,e-1))},a.hasOption=function(t){return!!o.get(t)},a.registerOption=function(t,e,n,r,i){if(r){var o;n.$observe("value",function(t){x(o)&&a.removeOption(o),o=t,a.addOption(t,e)})}else i?t.$watch(i,function(t,r){n.$set("value",t),r!==t&&a.removeOption(r),a.addOption(t,e)}):a.addOption(n.value,e);e.on("$destroy",function(){a.removeOption(n.value),a.ngModelCtrl.$render()})}}],_o=function(){function t(t,e,n,r){var i=r[1];if(i){var o=r[0];if(o.ngModelCtrl=i,i.$render=function(){o.writeValue(i.$viewValue)},e.on("change",function(){t.$apply(function(){i.$setViewValue(o.readValue())})}),n.multiple){o.readValue=function(){var t=[];return a(e.find("option"),function(e){e.selected&&t.push(e.value)}),t},o.writeValue=function(t){var n=new Kt(t);a(e.find("option"),function(t){t.selected=x(n.get(t.value))})};var s,u=NaN;t.$watch(function(){u!==i.$viewValue||R(s,i.$viewValue)||(s=V(i.$viewValue),i.$render()),u=i.$viewValue}),i.$isEmpty=function(t){return!t||0===t.length}}}}return{restrict:"E",require:["select","?ngModel"],controller:Do,priority:1,link:{pre:t}}},To=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){if(x(n.value))var r=t(n.value,!0);else{var i=t(e.text(),!0);i||n.$set("value",e.text())}return function(t,e,n){var a="$selectController",o=e.parent(),s=o.data(a)||o.parent().data(a);s&&s.registerOption(t,e,n,r,i)}}}}],Oo=v({restrict:"E",terminal:!1}),No=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},Po=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,i,a){if(a){var o,s=i.ngPattern||i.pattern;i.$observe("pattern",function(t){if(k(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,t,J(e));o=t||n,a.$validate()}),a.$validators.pattern=function(t,e){return a.$isEmpty(e)||b(o)||o.test(e)}}}}},Fo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=p(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return 0>i||r.$isEmpty(e)||e.length<=i}}}}},jo=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=p(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};return t.angular.bootstrap?void console.log("WARNING: Tried to load angular more than once."):(ct(),xt(Lr),Lr.module("ngLocale",[],["$provide",function(t){function e(t){t+="";var e=t.indexOf(".");return-1==e?0:t.length-e-1}function r(t,r){var i=r;n===i&&(i=Math.min(e(t),3));var a=Math.pow(10,i),o=(t*a|0)%a;return{v:i,f:o}}var i={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",pluralCat:function(t,e){var n=0|t,a=r(t,e);return 1==n&&0==a.v?i.ONE:i.OTHER}})}]),void Dr(e).ready(function(){at(e,ot)}))}(window,document),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.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:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),/**
|
||
* @license AngularJS v1.4.8
|
||
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
* License: MIT
|
||
*/
|
||
function(t,e,n){"use strict";function r(t,e,n){if(!t)throw ngMinErr("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function i(t,e){return t||e?t?e?(R(t)&&(t=t.join(" ")),R(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function a(t){var e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}function o(t,e,n){var r="";return t=R(t)?t:t&&W(t)&&t.length?t.split(/\s+/):[],V(t,function(t,i){t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)}),r}function s(t,e){var n=t.indexOf(e);e>=0&&t.splice(n,1)}function u(t){if(t instanceof H)switch(t.length){case 0:return[];case 1:if(t[0].nodeType===X)return t;break;default:return H(l(t))}return t.nodeType===X?H(t):void 0}function l(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType==X)return n}}function c(t,e,n){V(e,function(e){t.addClass(e,n)})}function f(t,e,n){V(e,function(e){t.removeClass(e,n)})}function d(t){return function(e,n){n.addClass&&(c(t,e,n.addClass),n.addClass=null),n.removeClass&&(f(t,e,n.removeClass),n.removeClass=null)}}function p(t){if(t=t||{},!t.$$prepared){var e=t.domOperation||L;t.domOperation=function(){t.$$domOperationFired=!0,e(),e=L},t.$$prepared=!0}return t}function h(t,e){g(t,e),m(t,e)}function g(t,e){e.from&&(t.css(e.from),e.from=null)}function m(t,e){e.to&&(t.css(e.to),e.to=null)}function v(t,e,n){var r=(e.addClass||"")+" "+(n.addClass||""),i=(e.removeClass||"")+" "+(n.removeClass||""),a=y(t.attr("class"),r,i);n.preparationClasses&&(e.preparationClasses=C(n.preparationClasses,e.preparationClasses),delete n.preparationClasses);var o=e.domOperation!==L?e.domOperation:null;return q(e,n),o&&(e.domOperation=o),a.addClass?e.addClass=a.addClass:e.addClass=null,a.removeClass?e.removeClass=a.removeClass:e.removeClass=null,e}function y(t,e,n){function r(t){W(t)&&(t=t.split(" "));var e={};return V(t,function(t){t.length&&(e[t]=!0)}),e}var i=1,a=-1,o={};t=r(t),e=r(e),V(e,function(t,e){o[e]=i}),n=r(n),V(n,function(t,e){o[e]=o[e]===i?null:a});var s={addClass:"",removeClass:""};return V(o,function(e,n){var r,o;e===i?(r="addClass",o=!t[n]):e===a&&(r="removeClass",o=t[n]),o&&(s[r].length&&(s[r]+=" "),s[r]+=n)}),s}function b(t){return t instanceof e.element?t[0]:t}function x(t,e,n){var r="";e&&(r=o(e,J,!0)),n.addClass&&(r=C(r,o(n.addClass,Z))),n.removeClass&&(r=C(r,o(n.removeClass,K))),r.length&&(n.preparationClasses=r,t.addClass(r))}function $(t,e){e.preparationClasses&&(t.removeClass(e.preparationClasses),e.preparationClasses=null),e.activeClasses&&(t.removeClass(e.activeClasses),e.activeClasses=null)}function w(t,e){var n=e?"-"+e+"s":"";return M(t,[dt,n]),[dt,n]}function k(t,e){var n=e?"paused":"",r=j+ut;return M(t,[r,n]),[r,n]}function M(t,e){var n=e[0],r=e[1];t.style[n]=r}function C(t,e){return t?e?t+" "+e:t:e}function S(t){return[ft,t+"s"]}function A(t,e){var n=e?ct:dt;return[n,t+"s"]}function E(t,e,n){var r=Object.create(null),i=t.getComputedStyle(e)||{};return V(n,function(t,e){var n=i[t];if(n){var a=n.charAt(0);("-"===a||"+"===a||a>=0)&&(n=D(n)),0===n&&(n=null),r[e]=n}}),r}function D(t){var e=0,n=t.split(/\s*,\s*/);return V(n,function(t){"s"==t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}function _(t){return 0===t||null!=t}function T(t,e){var n=P,r=t+"s";return e?n+=rt:r+=" linear all",[n,r]}function O(){var t=Object.create(null);return{flush:function(){t=Object.create(null)},count:function(e){var n=t[e];return n?n.total:0},get:function(e){var n=t[e];return n&&n.value},put:function(e,n){t[e]?t[e].total++:t[e]={total:1,value:n}}}}function N(t,e,n){V(n,function(n){t[n]=Y(t[n])?t[n]:e.style.getPropertyValue(n)})}var P,F,j,I,L=e.noop,q=e.extend,H=e.element,V=e.forEach,R=e.isArray,W=e.isString,z=e.isObject,U=e.isUndefined,Y=e.isDefined,B=e.isFunction,G=e.isElement,X=1,Z="-add",K="-remove",J="ng-",Q="-active",tt="ng-animate",et="$$ngAnimateChildren",nt="";U(t.ontransitionend)&&Y(t.onwebkittransitionend)?(nt="-webkit-",P="WebkitTransition",F="webkitTransitionEnd transitionend"):(P="transition",F="transitionend"),U(t.onanimationend)&&Y(t.onwebkitanimationend)?(nt="-webkit-",j="WebkitAnimation",I="webkitAnimationEnd animationend"):(j="animation",I="animationend");var rt="Duration",it="Property",at="Delay",ot="TimingFunction",st="IterationCount",ut="PlayState",lt=9999,ct=j+at,ft=j+rt,dt=P+at,pt=P+rt,ht=["$$rAF",function(t){function e(t){r=r.concat(t),n()}function n(){if(r.length){for(var e=r.shift(),a=0;a<e.length;a++)e[a]();i||t(function(){i||n()})}}var r,i;return r=e.queue=[],e.waitUntilQuiet=function(e){i&&i(),i=t(function(){i=null,e(),n()})},e}],gt=[function(){return function(t,n,r){var i=r.ngAnimateChildren;e.isString(i)&&0===i.length?n.data(et,!0):r.$observe("ngAnimateChildren",function(t){t="on"===t||"true"===t,n.data(et,t)})}}],mt="$$animateCss",vt=1e3,yt=3,bt=1.5,xt={transitionDuration:pt,transitionDelay:dt,transitionProperty:P+it,animationDuration:ft,animationDelay:ct,animationIterationCount:j+st},$t={transitionDuration:pt,transitionDelay:dt,animationDuration:ft,animationDelay:ct},wt=["$animateProvider",function(t){var e=O(),n=O();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$animate",function(t,r,i,u,l,c,f,v){function y(t,e){var n="$$ngAnimateParentKey",r=t.parentNode,i=r[n]||(r[n]=++q);return i+"-"+t.getAttribute("class")+"-"+e}function x(n,r,i,a){var o=e.get(i);return o||(o=E(t,n,a),"infinite"===o.animationIterationCount&&(o.animationIterationCount=1)),e.put(i,o),o}function $(i,a,s,u){var l;if(e.count(s)>0&&(l=n.get(s),!l)){var c=o(a,"-stagger");r.addClass(i,c),l=E(t,i,u),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,c),n.put(s,l)}return l||{}}function C(t){H.push(t),f.waitUntilQuiet(function(){e.flush(),n.flush();for(var t=l(),r=0;r<H.length;r++)H[r](t);H.length=0})}function D(t,e,n){var r=x(t,e,n,xt),i=r.animationDelay,a=r.transitionDelay;return r.maxDelay=i&&a?Math.max(i,a):i||a,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var O=d(r),q=0,H=[];return function(t,n){function l(){d()}function f(){d(!0)}function d(e){z||Y&&U||(z=!0,U=!1,n.$$skipPreparationClasses||r.removeClass(t,pt),r.removeClass(t,gt),k(W,!1),w(W,!1),V(rt,function(t){W.style[t[0]]=""}),O(t,n),h(t,n),Object.keys(H).length&&V(H,function(t,e){t?W.style.setProperty(e,t):W.style.removeProperty(e)}),n.onDone&&n.onDone(),B&&B.complete(!e))}function x(t){Pt.blockTransition&&w(W,t),Pt.blockKeyframeAnimation&&k(W,!!t)}function E(){return B=new i({end:l,cancel:f}),C(L),d(),{$$willAnimate:!1,start:function(){return B},end:l}}function q(){function e(){if(!z){if(x(!1),V(rt,function(t){var e=t[0],n=t[1];W.style[e]=n}),O(t,n),r.addClass(t,gt),Pt.recalculateTimingStyles){if(ht=W.className+" "+pt,kt=y(W,ht),Ot=D(W,ht,kt),Nt=Ot.maxDelay,X=Math.max(Nt,0),et=Ot.maxDuration,0===et)return void d();Pt.hasTransitions=Ot.transitionDuration>0,Pt.hasAnimations=Ot.animationDuration>0}if(Pt.applyAnimationDelay&&(Nt="boolean"!=typeof n.delay&&_(n.delay)?parseFloat(n.delay):Nt,X=Math.max(Nt,0),Ot.animationDelay=Nt,Ft=A(Nt,!0),rt.push(Ft),W.style[Ft[0]]=Ft[1]),tt=X*vt,nt=et*vt,n.easing){var e,s=n.easing;Pt.hasTransitions&&(e=P+ot,rt.push([e,s]),W.style[e]=s),Pt.hasAnimations&&(e=j+ot,rt.push([e,s]),W.style[e]=s)}Ot.transitionDuration&&l.push(F),Ot.animationDuration&&l.push(I),o=Date.now();var c=tt+bt*nt,f=o+c,p=t.data(mt)||[],h=!0;if(p.length){var g=p[0];h=f>g.expectedEndTime,h?u.cancel(g.timer):p.push(d)}if(h){var v=u(i,c,!1);p[0]={timer:v,expectedEndTime:f},p.push(d),t.data(mt,p)}t.on(l.join(" "),a),n.to&&(n.cleanupStyles&&N(H,W,Object.keys(n.to)),m(t,n))}}function i(){var e=t.data(mt);if(e){for(var n=1;n<e.length;n++)e[n]();t.removeData(mt)}}function a(t){t.stopPropagation();var e=t.originalEvent||t,n=e.$manualTimeStamp||e.timeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(yt));Math.max(n-o,0)>=tt&&r>=et&&(Y=!0,d())}if(!z){if(!W.parentNode)return void d();var o,l=[],c=function(t){if(Y)U&&t&&(U=!1,d());else if(U=!t,Ot.animationDuration){var e=k(W,U);U?rt.push(e):s(rt,e)}},f=_t>0&&(Ot.transitionDuration&&0===Mt.transitionDuration||Ot.animationDuration&&0===Mt.animationDuration)&&Math.max(Mt.animationDelay,Mt.transitionDelay);f?u(e,Math.floor(f*_t*vt),!1):e(),G.resume=function(){c(!0)},G.pause=function(){c(!1)}}}var H={},W=b(t);if(!W||!W.parentNode||!v.enabled())return E();n=p(n);var z,U,Y,B,G,X,tt,et,nt,rt=[],at=t.attr("class"),st=a(n);if(0===n.duration||!c.animations&&!c.transitions)return E();var ut=n.event&&R(n.event)?n.event.join(" "):n.event,ct=ut&&n.structural,ft="",dt="";ct?ft=o(ut,J,!0):ut&&(ft=ut),n.addClass&&(dt+=o(n.addClass,Z)),n.removeClass&&(dt.length&&(dt+=" "),dt+=o(n.removeClass,K)),n.applyClassesEarly&&dt.length&&O(t,n);var pt=[ft,dt].join(" ").trim(),ht=at+" "+pt,gt=o(pt,Q),xt=st.to&&Object.keys(st.to).length>0,wt=(n.keyframeStyle||"").length>0;if(!wt&&!xt&&!pt)return E();var kt,Mt;if(n.stagger>0){var Ct=parseFloat(n.stagger);Mt={transitionDelay:Ct,animationDelay:Ct,transitionDuration:0,animationDuration:0}}else kt=y(W,ht),Mt=$(W,pt,kt,$t);n.$$skipPreparationClasses||r.addClass(t,pt);var St;if(n.transitionStyle){var At=[P,n.transitionStyle];M(W,At),rt.push(At)}if(n.duration>=0){St=W.style[P].length>0;var Et=T(n.duration,St);M(W,Et),rt.push(Et)}if(n.keyframeStyle){var Dt=[j,n.keyframeStyle];M(W,Dt),rt.push(Dt)}var _t=Mt?n.staggerIndex>=0?n.staggerIndex:e.count(kt):0,Tt=0===_t;Tt&&!n.skipBlocking&&w(W,lt);var Ot=D(W,ht,kt),Nt=Ot.maxDelay;X=Math.max(Nt,0),et=Ot.maxDuration;var Pt={};if(Pt.hasTransitions=Ot.transitionDuration>0,Pt.hasAnimations=Ot.animationDuration>0,Pt.hasTransitionAll=Pt.hasTransitions&&"all"==Ot.transitionProperty,Pt.applyTransitionDuration=xt&&(Pt.hasTransitions&&!Pt.hasTransitionAll||Pt.hasAnimations&&!Pt.hasTransitions),Pt.applyAnimationDuration=n.duration&&Pt.hasAnimations,Pt.applyTransitionDelay=_(n.delay)&&(Pt.applyTransitionDuration||Pt.hasTransitions),Pt.applyAnimationDelay=_(n.delay)&&Pt.hasAnimations,Pt.recalculateTimingStyles=dt.length>0,(Pt.applyTransitionDuration||Pt.applyAnimationDuration)&&(et=n.duration?parseFloat(n.duration):et,Pt.applyTransitionDuration&&(Pt.hasTransitions=!0,Ot.transitionDuration=et,St=W.style[P+it].length>0,rt.push(T(et,St))),Pt.applyAnimationDuration&&(Pt.hasAnimations=!0,Ot.animationDuration=et,rt.push(S(et)))),0===et&&!Pt.recalculateTimingStyles)return E();if(null!=n.delay){var Ft=parseFloat(n.delay);Pt.applyTransitionDelay&&rt.push(A(Ft)),Pt.applyAnimationDelay&&rt.push(A(Ft,!0))}return null==n.duration&&Ot.transitionDuration>0&&(Pt.recalculateTimingStyles=Pt.recalculateTimingStyles||Tt),tt=X*vt,nt=et*vt,n.skipBlocking||(Pt.blockTransition=Ot.transitionDuration>0,Pt.blockKeyframeAnimation=Ot.animationDuration>0&&Mt.animationDelay>0&&0===Mt.animationDuration),n.from&&(n.cleanupStyles&&N(H,W,Object.keys(n.from)),g(t,n)),Pt.blockTransition||Pt.blockKeyframeAnimation?x(et):n.skipBlocking||w(W,!1),{$$willAnimate:!0,end:l,start:function(){return z?void 0:(G={end:l,cancel:f,resume:null,pause:null},B=new i(G),C(q),B)}}}}]}],kt=["$$animationProvider",function(t){function e(t){return t.parentNode&&11===t.parentNode.nodeType}t.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor",i="ng-anchor-out",a="ng-anchor-in";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(t,o,s,u,l,c,f){function p(t){return t.replace(/\bng-\S+\b/g,"")}function h(t,e){return W(t)&&(t=t.split(" ")),W(e)&&(e=e.split(" ")),t.filter(function(t){return-1===e.indexOf(t)}).join(" ")}function g(e,o,u){function l(t){var e={},n=b(t).getBoundingClientRect();return V(["width","height","top","left"],function(t){var r=n[t];switch(t){case"top":r+=y.scrollTop;break;case"left":r+=y.scrollLeft}e[t]=Math.floor(r)+"px"}),e}function c(){var e=t(m,{addClass:i,delay:!0,from:l(o)});return e.$$willAnimate?e:null}function f(t){return t.attr("class")||""}function d(){var e=p(f(u)),n=h(e,v),r=h(v,e),o=t(m,{to:l(u),addClass:a+" "+n,removeClass:i+" "+r,delay:!0});return o.$$willAnimate?o:null}function g(){m.remove(),o.removeClass(n),u.removeClass(n)}var m=H(b(o).cloneNode(!0)),v=p(f(m));o.addClass(n),u.addClass(n),m.addClass(r),$.append(m);var x,w=c();if(!w&&(x=d(),!x))return g();var k=w||x;return{start:function(){function t(){n&&n.end()}var e,n=k.start();return n.done(function(){return n=null,!x&&(x=d())?(n=x.start(),n.done(function(){n=null,g(),e.complete()}),n):(g(),void e.complete())}),e=new s({end:t,cancel:t})}}}function m(t,e,n,r){var i=v(t,L),a=v(e,L),o=[];return V(r,function(t){var e=t.out,r=t["in"],i=g(n,e,r);i&&o.push(i)}),i||a||0!==o.length?{start:function(){function t(){V(e,function(t){t.end()})}var e=[];i&&e.push(i.start()),a&&e.push(a.start()),V(o,function(t){e.push(t.start())});var n=new s({end:t,cancel:t});return s.all(e,function(t){n.complete(t)}),n}}:void 0}function v(e){var n=e.element,r=e.options||{};e.structural&&(r.event=e.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===e.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=C(r.event,r.preparationClasses));var i=t(n,r);return i.$$willAnimate?i:null}if(!l.animations&&!l.transitions)return L;var y=f[0].body,x=b(u),$=H(e(x)||y.contains(x)?x:y);d(c);return function(t){return t.from&&t.to?m(t.from,t.to,t.classes,t.anchors):v(t)}}]}],Mt=["$animateProvider",function(t){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(e,n,r){function i(n){n=R(n)?n:n.split(" ");for(var r=[],i={},a=0;a<n.length;a++){var o=n[a],s=t.$$registeredAnimations[o];s&&!i[o]&&(r.push(e.get(s)),i[o]=!0)}return r}var a=d(r);return function(t,e,r,o){function s(){o.domOperation(),a(t,o)}function u(t,e,r,i,a){var o;switch(r){case"animate":o=[e,i.from,i.to,a];break;case"setClass":o=[e,g,m,a];break;case"addClass":o=[e,g,a];break;case"removeClass":o=[e,m,a];break;default:o=[e,a]}o.push(i);var s=t.apply(t,o);if(s)if(B(s.start)&&(s=s.start()),s instanceof n)s.done(a);else if(B(s))return s;return L}function l(t,e,r,i,a){var o=[];return V(i,function(i){var s=i[a];s&&o.push(function(){var i,a,o=!1,l=function(t){o||(o=!0,(a||L)(t),i.complete(!t))};return i=new n({end:function(){l()},cancel:function(){l(!0)}}),a=u(s,t,e,r,function(t){var e=t===!1;l(e)}),i})}),o}function c(t,e,r,i,a){var o=l(t,e,r,i,a);if(0===o.length){var s,u;"beforeSetClass"===a?(s=l(t,"removeClass",r,i,"beforeRemoveClass"),u=l(t,"addClass",r,i,"beforeAddClass")):"setClass"===a&&(s=l(t,"removeClass",r,i,"removeClass"),u=l(t,"addClass",r,i,"addClass")),s&&(o=o.concat(s)),u&&(o=o.concat(u))}if(0!==o.length)return function(t){var e=[];return o.length&&V(o,function(t){e.push(t())}),e.length?n.all(e,t):t(),function(t){V(e,function(e){t?e.cancel():e.end()})}}}3===arguments.length&&z(r)&&(o=r,r=null),o=p(o),r||(r=t.attr("class")||"",o.addClass&&(r+=" "+o.addClass),o.removeClass&&(r+=" "+o.removeClass));var f,d,g=o.addClass,m=o.removeClass,v=i(r);if(v.length){var y,b;"leave"==e?(b="leave",y="afterLeave"):(b="before"+e.charAt(0).toUpperCase()+e.substr(1),y=e),"enter"!==e&&"move"!==e&&(f=c(t,e,o,v,b)),d=c(t,e,o,v,y)}return f||d?{start:function(){function e(e){u=!0,s(),h(t,o),l.complete(e)}function r(t){u||((i||L)(t),e(t))}var i,a=[];f&&a.push(function(t){i=f(t)}),a.length?a.push(function(t){s(),t(!0)}):s(),d&&a.push(function(t){i=d(t)});var u=!1,l=new n({end:function(){r()},cancel:function(){r(!0)}});return n.chain(a,e),l}}:void 0}}]}],Ct=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){function n(e){var n=e.element,r=e.event,i=e.options,a=e.classes;return t(n,r,a,i)}return function(t){if(t.from&&t.to){var r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start:function(){function t(){return function(){V(a,function(t){t.end()})}}function n(t){o.complete(t)}var a=[];r&&a.push(r.start()),i&&a.push(i.start()),e.all(a,n);var o=new e({end:t(),cancel:t()});return o}}}return n(t)}}]}],St="data-ng-animate",At="$ngAnimatePin",Et=["$animateProvider",function(t){function e(t,e,n,r){return o[t].some(function(t){return t(e,n,r)})}function n(t,e){t=t||{};var n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}var i=1,a=2,o=this.rules={skip:[],cancel:[],join:[]};o.join.push(function(t,e,r){return!e.structural&&n(e.options)}),o.skip.push(function(t,e,r){return!e.structural&&!n(e.options)}),o.skip.push(function(t,e,n){return"leave"==n.event&&e.structural}),o.skip.push(function(t,e,n){return n.structural&&n.state===a&&!e.structural}),o.cancel.push(function(t,e,n){return n.structural&&e.structural}),o.cancel.push(function(t,e,n){return n.state===a&&e.structural}),o.cancel.push(function(t,e,n){var r=e.options,i=n.options;return r.addClass&&r.addClass===i.removeClass||r.removeClass&&r.removeClass===i.addClass}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(o,s,c,f,g,m,y,w,k,M){function C(){var t=!1;return function(e){t?e():s.$$postDigest(function(){t=!0,e()})}}function S(t,e){return v(t,e,{})}function A(t,e,n){var r=b(e),i=b(t),a=[],o=L[n];return o&&V(o,function(t){t.node.contains(r)?a.push(t.callback):"leave"===n&&t.node.contains(i)&&a.push(t.callback)}),a}function E(t,r,l){function c(e,n,r,i){k(function(){var e=A(g,t,n);e.length&&o(function(){V(e,function(e){e(t,r,i)})})}),e.progress(n,r,i)}function f(e){$(t,l),K(t,l),h(t,l),l.domOperation(),w.complete(!e)}var d,g;t=u(t),t&&(d=b(t),g=t.parent()),l=p(l);var w=new y,k=C();if(R(l.addClass)&&(l.addClass=l.addClass.join(" ")),l.addClass&&!W(l.addClass)&&(l.addClass=null),R(l.removeClass)&&(l.removeClass=l.removeClass.join(" ")),l.removeClass&&!W(l.removeClass)&&(l.removeClass=null),l.from&&!z(l.from)&&(l.from=null),l.to&&!z(l.to)&&(l.to=null),!d)return f(),w;var M=[d.className,l.addClass,l.removeClass].join(" ");if(!Z(M))return f(),w;var E=["enter","move","leave"].indexOf(r)>=0,T=!j||F.get(d),I=!T&&P.get(d)||{},L=!!I.state;if(T||L&&I.state==i||(T=!O(t,g,r)),T)return f(),w;E&&D(t);var q={structural:E,element:t,event:r,close:f,options:l,runner:w};if(L){var H=e("skip",t,q,I);if(H)return I.state===a?(f(),w):(v(t,I.options,l),I.runner);var U=e("cancel",t,q,I);if(U)if(I.state===a)I.runner.end();else{if(!I.structural)return v(t,I.options,q.options),I.runner;I.close()}else{var Y=e("join",t,q,I);if(Y){if(I.state!==a)return x(t,E?r:null,l),r=q.event=I.event,l=v(t,I.options,q.options),I.runner;S(t,l)}}}else S(t,l);var B=q.structural;if(B||(B="animate"===q.event&&Object.keys(q.options.to||{}).length>0||n(q.options)),!B)return f(),_(t),w;var G=(I.counter||0)+1;return q.counter=G,N(t,i,q),s.$$postDigest(function(){var e=P.get(d),i=!e;e=e||{};var o=t.parent()||[],s=o.length>0&&("animate"===e.event||e.structural||n(e.options));if(i||e.counter!==G||!s)return i&&(K(t,l),h(t,l)),(i||E&&e.event!==r)&&(l.domOperation(),w.end()),void(s||_(t));r=!e.structural&&n(e.options,!0)?"setClass":e.event,N(t,a);var u=m(t,r,e.options);u.done(function(e){f(!e);var n=P.get(d);n&&n.counter===G&&_(b(t)),c(w,r,"close",{})}),w.setHost(u),c(w,r,"start",{})}),w}function D(t){var e=b(t),n=e.querySelectorAll("["+St+"]");V(n,function(t){var e=parseInt(t.getAttribute(St)),n=P.get(t);switch(e){case a:n.runner.end();case i:n&&P.remove(t)}})}function _(t){var e=b(t);e.removeAttribute(St),P.remove(e)}function T(t,e){return b(t)===b(e)}function O(t,e,n){var r,i=H(f[0].body),a=T(t,i)||"HTML"===t[0].nodeName,o=T(t,c),s=!1,u=t.data(At);for(u&&(e=u);e&&e.length;){o||(o=T(e,c));var l=e[0];if(l.nodeType!==X)break;var d=P.get(l)||{};if(s||(s=d.structural||F.get(l)),U(r)||r===!0){var p=e.data(et);Y(p)&&(r=p)}if(s&&r===!1)break;o||(o=T(e,c),o||(u=e.data(At),u&&(e=u))),a||(a=T(e,i)),e=e.parent()}var h=!s||r;return h&&o&&a}function N(t,e,n){n=n||{},n.state=e;var r=b(t);r.setAttribute(St,e);var i=P.get(r),a=i?q(i,n):n;P.put(r,a)}var P=new g,F=new g,j=null,I=s.$watch(function(){return 0===w.totalPendingRequests},function(t){t&&(I(),s.$$postDigest(function(){s.$$postDigest(function(){null===j&&(j=!0)})}))}),L={},B=t.classNameFilter(),Z=B?function(t){return B.test(t)}:function(){return!0},K=d(k);return{on:function(t,e,n){var r=l(e);L[t]=L[t]||[],L[t].push({node:r,callback:n})},off:function(t,e,n){function r(t,e,n){var r=l(e);return t.filter(function(t){var e=t.node===r&&(!n||t.callback===n);return!e})}var i=L[t];i&&(L[t]=1===arguments.length?null:r(i,e,n))},pin:function(t,e){r(G(t),"element","not an element"),r(G(e),"parentElement","not an element"),t.data(At,e)},push:function(t,e,n,r){return n=n||{},n.domOperation=r,E(t,e,n)},enabled:function(t,e){var n=arguments.length;if(0===n)e=!!j;else{var r=G(t);if(r){var i=b(t),a=F.get(i);1===n?e=!a:(e=!!e,e?a&&F.remove(i):F.put(i,!0))}else e=j=!!t}return e}}}]}],Dt=["$$rAF",function(t){function e(e){n.push(e),n.length>1||t(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}var n=[];return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}],_t=["$q","$sniffer","$$animateAsyncRun",function(t,e,n){function r(t){this.setHost(t),this._doneCallbacks=[],this._runInAnimationFrame=n(),this._state=0}var i=0,a=1,o=2;return r.chain=function(t,e){function n(){return r===t.length?void e(!0):void t[r](function(t){return t===!1?void e(!1):(r++,void n())})}var r=0;n()},r.all=function(t,e){function n(n){i=i&&n,++r===t.length&&e(i)}var r=0,i=!0;V(t,function(t){t.done(n)})},r.prototype={setHost:function(t){this.host=t||{}},done:function(t){this._state===o?t():this._doneCallbacks.push(t)},progress:L,getPromise:function(){if(!this.promise){var e=this;this.promise=t(function(t,n){e.done(function(e){e===!1?n():t()})})}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},"catch":function(t){return this.getPromise()["catch"](t)},"finally":function(t){return this.getPromise()["finally"](t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;e._state===i&&(e._state=a,e._runInAnimationFrame(function(){e._resolve(t)}))},_resolve:function(t){this._state!==o&&(V(this._doneCallbacks,function(e){e(t)}),this._doneCallbacks.length=0,this._state=o)}},r}],Tt=["$animateProvider",function(t){function e(t,e){t.data(s,e)}function n(t){t.removeData(s)}function r(t){return t.data(s)}var a="ng-animate-ref",o=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(t,s,u,l,c,f){function g(t){function e(t){if(t.processed)return t;t.processed=!0;var n=t.domNode,r=n.parentNode;a.put(n,t);for(var o;r;){if(o=a.get(r)){o.processed||(o=e(o));break}r=r.parentNode}return(o||i).children.push(t),t}function n(t){var e,n=[],r=[];for(e=0;e<t.children.length;e++)r.push(t.children[e]);var i=r.length,a=0,o=[];for(e=0;e<r.length;e++){var s=r[e];0>=i&&(i=a,a=0,n.push(o),o=[]),o.push(s.fn),s.children.forEach(function(t){a++,r.push(t)}),i--}return o.length&&n.push(o),n}var r,i={children:[]},a=new c;for(r=0;r<t.length;r++){var o=t[r];a.put(o.domNode,t[r]={domNode:o.domNode,fn:o.fn,children:[]})}for(r=0;r<t.length;r++)e(t[r]);return n(i)}var m=[],v=d(t);return function(c,d,y){function x(t){var e="["+a+"]",n=t.hasAttribute(a)?[t]:t.querySelectorAll(e),r=[];return V(n,function(t){var e=t.getAttribute(a);e&&e.length&&r.push(t)}),r}function $(t){var e=[],n={};V(t,function(t,r){var i=t.element,o=b(i),s=t.event,u=["enter","move"].indexOf(s)>=0,l=t.structural?x(o):[];if(l.length){var c=u?"to":"from";V(l,function(t){var e=t.getAttribute(a);n[e]=n[e]||{},n[e][c]={animationID:r,element:H(t)}})}else e.push(t)});var r={},i={};return V(n,function(n,a){var o=n.from,s=n.to;if(!o||!s){var u=o?o.animationID:s.animationID,l=u.toString();return void(r[l]||(r[l]=!0,e.push(t[u])))}var c=t[o.animationID],f=t[s.animationID],d=o.animationID.toString();if(!i[d]){var p=i[d]={structural:!0,beforeStart:function(){c.beforeStart(),f.beforeStart()},close:function(){c.close(),f.close()},classes:w(c.classes,f.classes),from:c,to:f,anchors:[]};p.classes.length?e.push(p):(e.push(c),e.push(f))}i[d].anchors.push({out:o.element,"in":s.element})}),e}function w(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],r=0;r<t.length;r++){var i=t[r];if("ng-"!==i.substring(0,3))for(var a=0;a<e.length;a++)if(i===e[a]){n.push(i);break}}return n.join(" ")}function k(t){for(var e=o.length-1;e>=0;e--){var n=o[e];if(u.has(n)){var r=u.get(n),i=r(t);if(i)return i}}}function M(){c.addClass(tt),T&&t.addClass(c,T)}function C(t,e){function n(t){r(t).setHost(e)}t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element)}function S(){var t=r(c);!t||"leave"===d&&y.$$domOperationFired||t.end()}function A(e){c.off("$destroy",S),n(c),v(c,y),h(c,y),y.domOperation(),T&&t.removeClass(c,T),c.removeClass(tt),D.complete(!e)}y=p(y);var E=["enter","move","leave"].indexOf(d)>=0,D=new l({end:function(){A()},cancel:function(){A(!0)}});if(!o.length)return A(),D;e(c,D);var _=i(c.attr("class"),i(y.addClass,y.removeClass)),T=y.tempClasses;return T&&(_+=" "+T,y.tempClasses=null),m.push({element:c,classes:_,event:d,structural:E,options:y,beforeStart:M,close:A}),c.on("$destroy",S),m.length>1?D:(s.$$postDigest(function(){var t=[];V(m,function(e){r(e.element)?t.push(e):e.close()}),m.length=0;var e=$(t),n=[];V(e,function(t){n.push({domNode:b(t.from?t.from.element:t.element),fn:function(){t.beforeStart();var e,n=t.close,i=t.anchors?t.from.element||t.to.element:t.element;if(r(i)){var a=k(t);a&&(e=a.start)}if(e){var o=e();o.done(function(t){n(!t)}),C(t,o)}else n()}})}),f(g(n))}),D)}}]}];e.module("ngAnimate",[]).directive("ngAnimateChildren",gt).factory("$$rAFScheduler",ht).factory("$$AnimateRunner",_t).factory("$$animateAsyncRun",Dt).provider("$$animateQueue",Et).provider("$$animation",Tt).provider("$animateCss",wt).provider("$$animateCssDriver",kt).provider("$$animateJs",Mt).provider("$$animateJsDriver",Ct)}(window,window.angular),/**
|
||
* @license AngularJS v1.4.8
|
||
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
* License: MIT
|
||
*/
|
||
function(t,e,n){"use strict";function r(t,n,r){function i(t,r,i){var o,s;i=i||{},s=i.expires,o=e.isDefined(i.path)?i.path:a,e.isUndefined(r)&&(s="Thu, 01 Jan 1970 00:00:00 GMT",r=""),e.isString(s)&&(s=new Date(s));var u=encodeURIComponent(t)+"="+encodeURIComponent(r);u+=o?";path="+o:"",u+=i.domain?";domain="+i.domain:"",u+=s?";expires="+s.toUTCString():"",u+=i.secure?";secure":"";var l=u.length+1;return l>4096&&n.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+l+" > 4096 bytes)!"),u}var a=r.baseHref(),o=t[0];return function(t,e,n){o.cookie=i(t,e,n)}}e.module("ngCookies",["ng"]).provider("$cookies",[function(){function t(t){return t?e.extend({},r,t):r}var r=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(r,i){return{get:function(t){return r()[t]},getObject:function(t){var n=this.get(t);return n?e.fromJson(n):n},getAll:function(){return r()},put:function(e,n,r){i(e,n,t(r))},putObject:function(t,n,r){this.put(t,e.toJson(n),r)},remove:function(e,r){i(e,n,t(r))}}}]}]),e.module("ngCookies").factory("$cookieStore",["$cookies",function(t){return{get:function(e){return t.getObject(e)},put:function(e,n){t.putObject(e,n)},remove:function(e){t.remove(e)}}}]),r.$inject=["$document","$log","$browser"],e.module("ngCookies").provider("$$cookieWriter",function(){this.$get=r})}(window,window.angular),/**
|
||
* @license AngularJS v1.4.8
|
||
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
* License: MIT
|
||
*/
|
||
function(t,e,n){"use strict";/*
|
||
* HTML Parser By Misko Hevery (misko@hevery.com)
|
||
* based on: HTML Parser By John Resig (ejohn.org)
|
||
* Original code by Erik Arvidsson, Mozilla Public License
|
||
* http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
|
||
*
|
||
* // Use like so:
|
||
* htmlParser(htmlString, {
|
||
* start: function(tag, attrs, unary) {},
|
||
* end: function(tag) {},
|
||
* chars: function(text) {},
|
||
* comment: function(text) {}
|
||
* });
|
||
*
|
||
*/
|
||
function r(){this.$get=["$$sanitizeUri",function(t){return function(e){var n=[];return o(e,l(n,function(e,n){return!/^unsafe/.test(t(e,n))})),n.join("")}}]}function i(t){var n=[],r=l(n,e.noop);return r.chars(t),n.join("")}function a(t,n){var r,i={},a=t.split(",");for(r=0;r<a.length;r++)i[n?e.lowercase(a[r]):a[r]]=!0;return i}function o(t,n){function r(t,r,a,o){if(r=e.lowercase(r),C[r])for(;b.last()&&S[b.last()];)i("",b.last());M[r]&&b.last()==r&&i("",r),o=$[r]||!!o,o||b.push(r);var u={};a.replace(p,function(t,e,n,r,i){var a=n||r||i||"";u[e]=s(a)}),n.start&&n.start(r,u,o)}function i(t,r){var i,a=0;if(r=e.lowercase(r))for(a=b.length-1;a>=0&&b[a]!=r;a--);if(a>=0){for(i=b.length-1;i>=a;i--)n.end&&n.end(b[i]);b.length=a}}"string"!=typeof t&&(t=null===t||"undefined"==typeof t?"":""+t);var a,o,u,l,b=[],x=t;for(b.last=function(){return b[b.length-1]};t;){if(l="",o=!0,b.last()&&E[b.last()]?(t=t.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+b.last()+"[^>]*>","i"),function(t,e){return e=e.replace(m,"$1").replace(y,"$1"),n.chars&&n.chars(s(e)),""}),i("",b.last())):(0===t.indexOf("<!--")?(a=t.indexOf("--",4),a>=0&&t.lastIndexOf("-->",a)===a&&(n.comment&&n.comment(t.substring(4,a)),t=t.substring(a+3),o=!1)):v.test(t)?(u=t.match(v),u&&(t=t.replace(u[0],""),o=!1)):g.test(t)?(u=t.match(d),u&&(t=t.substring(u[0].length),u[0].replace(d,i),o=!1)):h.test(t)&&(u=t.match(f),u?(u[4]&&(t=t.substring(u[0].length),u[0].replace(f,r)),o=!1):(l+="<",t=t.substring(1))),o&&(a=t.indexOf("<"),l+=0>a?t:t.substring(0,a),t=0>a?"":t.substring(a),n.chars&&n.chars(s(l)))),t==x)throw c("badparse","The sanitizer was unable to parse the following block of html: {0}",t);x=t}i()}function s(t){return t?(P.innerHTML=t.replace(/</g,"<"),P.textContent):""}function u(t){return t.replace(/&/g,"&").replace(b,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(x,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function l(t,n){var r=!1,i=e.bind(t,t.push);return{start:function(t,a,o){t=e.lowercase(t),!r&&E[t]&&(r=t),r||D[t]!==!0||(i("<"),i(t),e.forEach(a,function(r,a){var o=e.lowercase(a),s="img"===t&&"src"===o||"background"===o;N[o]!==!0||_[o]===!0&&!n(r,s)||(i(" "),i(a),i('="'),i(u(r)),i('"'))}),i(o?"/>":">"))},end:function(t){t=e.lowercase(t),r||D[t]!==!0||(i("</"),i(t),i(">")),t==r&&(r=!1)},chars:function(t){r||i(u(t))}}}var c=e.$$minErr("$sanitize"),f=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,d=/^<\/\s*([\w:-]+)[^>]*>/,p=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,h=/^</,g=/^<\//,m=/<!--(.*?)-->/g,v=/<!DOCTYPE([^>]*?)>/i,y=/<!\[CDATA\[(.*?)]]>/g,b=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x=/([^\#-~| |!])/g,$=a("area,br,col,hr,img,wbr"),w=a("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),k=a("rp,rt"),M=e.extend({},k,w),C=e.extend({},w,a("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),S=e.extend({},k,a("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),A=a("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan,use"),E=a("script,style"),D=e.extend({},$,C,S,M,A),_=a("background,cite,href,longdesc,src,usemap,xlink:href"),T=a("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),O=a("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),N=e.extend({},_,O,T),P=document.createElement("pre");e.module("ngSanitize",[]).provider("$sanitize",r),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i;return function(a,o){function s(t){t&&p.push(i(t))}function u(t,n){p.push("<a "),e.isDefined(o)&&p.push('target="',o,'" '),p.push('href="',t.replace(/"/g,"""),'">'),s(n),p.push("</a>")}if(!a)return a;for(var l,c,f,d=a,p=[];l=d.match(n);)c=l[0],l[2]||l[4]||(c=(l[3]?"http://":"mailto:")+c),f=l.index,s(d.substr(0,f)),u(c,l[0].replace(r,"")),d=d.substring(f+l[0].length);return s(d),t(p.join(""))}}])}(window,window.angular),/**
|
||
* @license AngularJS v1.4.8
|
||
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
* License: MIT
|
||
*/
|
||
function(t,e,n){"use strict";function r(t){function e(t,e){return t?i(t)?t.indexOf(e)>=0:t.hasOwnProperty(e):void 0}return["$animate",function(t){return{restrict:"AE",transclude:"element",terminal:!0,require:"^^ngMessages",link:function(n,r,a,o,s){var u,l=r[0],c=a.ngMessage||a.when,f=a.ngMessageExp||a.whenExp,d=function(t){u=t?i(t)?t:t.split(/[\s,]+/):null,o.reRender()};f?(d(n.$eval(f)),n.$watchCollection(f,d)):d(c);var p,h;o.register(l,h={test:function(t){return e(u,t)},attach:function(){p||s(n,function(e){t.enter(e,null,r),p=e;var n=p.$$attachId=o.getAttachId();p.on("$destroy",function(){p&&p.$$attachId===n&&(o.deregister(l),h.detach())})})},detach:function(){if(p){var e=p;p=null,t.leave(e)}}})}}}]}var i=e.isArray,a=e.forEach,o=e.isString,s=e.element;e.module("ngMessages",[]).directive("ngMessages",["$animate",function(t){function e(t,e){return o(e)&&0===e.length||n(t.$eval(e))}function n(t){return o(t)?t.length:!!t}var r="ng-active",i="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(o,s,u){function l(t,e){for(var n=e,r=[];n&&n!==t;){var i=n.$$ngMessageNode;if(i&&i.length)return v[i];n.childNodes.length&&-1==r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n=n.previousSibling||n.parentNode}}function c(t,e,n){var r=v[n];if(d.head){var i=l(t,e);i?(r.next=i.next,i.next=r):(r.next=d.head,d.head=r)}else d.head=r}function f(t,e,n){var r=v[n],i=l(t,e);i?i.next=r.next:d.head=r.next}var d=this,p=0,h=0;this.getAttachId=function(){return h++};var g,m,v=this.messages={};this.render=function(l){l=l||{},g=!1,m=l;for(var c=e(s,u.ngMessagesMultiple)||e(s,u.multiple),f=[],p={},h=d.head,v=!1,y=0;null!=h;){y++;var b=h.message,x=!1;v||a(l,function(t,e){if(!x&&n(t)&&b.test(e)){if(p[e])return;p[e]=!0,x=!0,b.attach()}}),x?v=!c:f.push(b),h=h.next}a(f,function(t){t.detach()}),f.length!==y?t.setClass(o,r,i):t.setClass(o,i,r)},s.$watchCollection(u.ngMessages||u["for"],d.render),this.reRender=function(){g||(g=!0,s.$evalAsync(function(){g&&m&&d.render(m)}))},this.register=function(t,e){var n=p.toString();v[n]={message:e},c(o[0],t,n),t.$$ngMessageNode=n,p++,d.reRender()},this.deregister=function(t){var e=t.$$ngMessageNode;delete t.$$ngMessageNode,f(o[0],t,e),delete v[e],d.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(t,e,n){return{restrict:"AE",require:"^^ngMessages",link:function(r,i,a){var o=a.ngMessagesInclude||a.src;t(o).then(function(t){n(t)(r,function(t){i.after(t);var n=s(e[0].createComment(" ngMessagesInclude: "+o+" "));i.after(n),i.remove()})})}}}]).directive("ngMessage",r("AE")).directive("ngMessageExp",r("A"))}(window,window.angular),/**
|
||
* @license AngularJS v1.4.8
|
||
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
* License: MIT
|
||
*/
|
||
function(t,e,n){"use strict";function r(){function t(t,e,r,i){return function(a,s,u){var l=u.$normalize(e);!n[l]||o(s,r)||u[l]||a.$watch(u[t],function(t){t=i?!t:!!t,s.attr(e,t)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaMultiline:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(t){n=e.extend(n,t)},this.$get=function(){return{config:function(t){return n[t]},$$watchExpr:t}}}var i=e.module("ngAria",["ng"]).provider("$aria",r),a=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],o=function(t,e){return-1!==e.indexOf(t[0].nodeName)?!0:void 0};i.directive("ngShow",["$aria",function(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngModel",["$aria",function(t){function e(e,n,r){return t.config(n)&&!r.attr(e)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&"INPUT"!==e[0].nodeName}function r(t,e){var n=t.type,r=t.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":"textbox"===(n||r)||"TEXTAREA"===e[0].nodeName?"multiline":""}return{restrict:"A",require:"?ngModel",priority:200,compile:function(i,s){var u=r(s,i);return{pre:function(t,e,n,r){"checkbox"===u&&"checkbox"!==n.type&&(r.$isEmpty=function(t){return t===!1})},post:function(r,i,s,l){function c(){return l.$modelValue}function f(){return p?(p=!1,function(t){var e=s.value==l.$viewValue;i.attr("aria-checked",e),i.attr("tabindex",0-!e)}):function(t){i.attr("aria-checked",s.value==l.$viewValue)}}function d(){i.attr("aria-checked",!l.$isEmpty(l.$viewValue))}var p=e("tabindex","tabindex",i)&&!o(i,a);switch(u){case"radio":case"checkbox":n(u,i)&&i.attr("role",u),e("aria-checked","ariaChecked",i)&&r.$watch(c,"radio"===u?f():d),p&&i.attr("tabindex",0);break;case"range":if(n(u,i)&&i.attr("role","slider"),t.config("ariaValue")){var h=!i.attr("aria-valuemin")&&(s.hasOwnProperty("min")||s.hasOwnProperty("ngMin")),g=!i.attr("aria-valuemax")&&(s.hasOwnProperty("max")||s.hasOwnProperty("ngMax")),m=!i.attr("aria-valuenow");h&&s.$observe("min",function(t){i.attr("aria-valuemin",t)}),g&&s.$observe("max",function(t){i.attr("aria-valuemax",t)}),m&&r.$watch(c,function(t){i.attr("aria-valuenow",t)})}p&&i.attr("tabindex",0);break;case"multiline":e("aria-multiline","ariaMultiline",i)&&i.attr("aria-multiline",!0)}l.$validators.required&&e("aria-required","ariaRequired",i)&&r.$watch(function(){return l.$error.required},function(t){i.attr("aria-required",!!t)}),e("aria-invalid","ariaInvalid",i)&&r.$watch(function(){return l.$invalid},function(t){i.attr("aria-invalid",!!t)})}}}}}]).directive("ngDisabled",["$aria",function(t){return t.$$watchExpr("ngDisabled","aria-disabled",[])}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(t,e,n,r){e.attr("aria-live")||e.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(t,e){return{restrict:"A",compile:function(n,r){var i=e(r.ngClick,null,!0);return function(e,n,r){o(n,a)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),t.config("bindKeypress")&&!r.ngKeypress&&n.on("keypress",function(t){function n(){i(e,{$event:t})}var r=t.which||t.keyCode;(32===r||13===r)&&e.$apply(n)}))}}}}]).directive("ngDblclick",["$aria",function(t){return function(e,n,r){!t.config("tabindex")||n.attr("tabindex")||o(n,a)||n.attr("tabindex",0)}}])}(window,window.angular),/**
|
||
* @license AngularJS v1.4.8
|
||
* (c) 2010-2015 Google, Inc. http://angularjs.org
|
||
* License: MIT
|
||
*/
|
||
function(t,e,n){"use strict";function r(t){return null!=t&&""!==t&&"hasOwnProperty"!==t&&s.test("."+t)}function i(t,i){if(!r(i))throw o("badmember",'Dotted member path "@{0}" is invalid.',i);for(var a=i.split("."),s=0,u=a.length;u>s&&e.isDefined(t);s++){var l=a[s];t=null!==t?t[l]:n}return t}function a(t,n){n=n||{},e.forEach(n,function(t,e){delete n[e]});for(var r in t)!t.hasOwnProperty(r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(n[r]=t[r]);return n}var o=e.$$minErr("$resource"),s=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;e.module("ngResource",["ng"]).provider("$resource",function(){var t=/^https?:\/\/[^\/]*/,r=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}},this.$get=["$http","$q",function(s,u){function l(t){return c(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function c(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,e?"%20":"+")}function f(t,e){this.template=t,this.defaults=g({},r.defaults,e),this.urlParams={}}function d(t,l,c,y){function b(t,e){var n={};return e=g({},l,e),h(e,function(e,r){v(e)&&(e=e()),n[r]=e&&e.charAt&&"@"==e.charAt(0)?i(t,e.substr(1)):e}),n}function x(t){return t.resource}function $(t){a(t||{},this)}var w=new f(t,y);return c=g({},r.defaults.actions,c),$.prototype.toJSON=function(){var t=g({},this);return delete t.$promise,delete t.$resolved,t},h(c,function(t,r){var i=/^(POST|PUT|PATCH)$/i.test(t.method);$[r]=function(l,c,f,d){var y,k,M,C={};switch(arguments.length){case 4:M=d,k=f;case 3:case 2:if(!v(c)){C=l,y=c,k=f;break}if(v(l)){k=l,M=c;break}k=c,M=f;case 1:v(l)?k=l:i?y=l:C=l;break;case 0:break;default:throw o("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var S=this instanceof $,A=S?y:t.isArray?[]:new $(y),E={},D=t.interceptor&&t.interceptor.response||x,_=t.interceptor&&t.interceptor.responseError||n;h(t,function(t,e){switch(e){default:E[e]=m(t);break;case"params":case"isArray":case"interceptor":break;case"timeout":E[e]=t}}),i&&(E.data=y),w.setUrlParams(E,g({},b(y,t.params||{}),C),t.url);var T=s(E).then(function(n){var i=n.data,s=A.$promise;if(i){if(e.isArray(i)!==!!t.isArray)throw o("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",r,t.isArray?"array":"object",e.isArray(i)?"array":"object",E.method,E.url);t.isArray?(A.length=0,h(i,function(t){"object"==typeof t?A.push(new $(t)):A.push(t)})):(a(i,A),A.$promise=s)}return A.$resolved=!0,n.resource=A,n},function(t){return A.$resolved=!0,(M||p)(t),u.reject(t)});return T=T.then(function(t){var e=D(t);return(k||p)(e,t.headers),e},_),S?T:(A.$promise=T,A.$resolved=!1,A)},$.prototype["$"+r]=function(t,e,n){v(t)&&(n=e,e=t,t={});var i=$[r].call(this,t,this,e,n);return i.$promise||i}}),$.bind=function(e){return d(t,g({},l,e),c)},$}var p=e.noop,h=e.forEach,g=e.extend,m=e.copy,v=e.isFunction;return f.prototype={setUrlParams:function(n,r,i){var a,s,u=this,c=i||u.template,f="",d=u.urlParams={};h(c.split(/\W/),function(t){if("hasOwnProperty"===t)throw o("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(t)&&t&&new RegExp("(^|[^\\\\]):"+t+"(\\W|$)").test(c)&&(d[t]=!0)}),c=c.replace(/\\:/g,":"),c=c.replace(t,function(t){return f=t,""}),r=r||{},h(u.urlParams,function(t,n){a=r.hasOwnProperty(n)?r[n]:u.defaults[n],e.isDefined(a)&&null!==a?(s=l(a),c=c.replace(new RegExp(":"+n+"(\\W|$)","g"),function(t,e){return s+e})):c=c.replace(new RegExp("(/?):"+n+"(\\W|$)","g"),function(t,e,n){return"/"==n.charAt(0)?n:e+n})}),u.defaults.stripTrailingSlashes&&(c=c.replace(/\/+$/,"")||"/"),c=c.replace(/\/\.(?=\w+($|\?))/,"."),n.url=f+c.replace(/\/\\\./,"/."),h(r,function(t,e){u.urlParams[e]||(n.params=n.params||{},n.params[e]=t)})}},d}]})}(window,window.angular),/**
|
||
* State-based routing for AngularJS
|
||
* @version v0.2.15
|
||
* @link http://angular-ui.github.com/
|
||
* @license MIT License, http://www.opensource.org/licenses/MIT
|
||
*/
|
||
"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(t,e,n){"use strict";function r(t,e){return q(new(q(function(){},{prototype:t})),e)}function i(t){return L(arguments,function(e){e!==t&&L(e,function(e,n){t.hasOwnProperty(n)||(t[n]=e)})}),t}function a(t,e){var n=[];for(var r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}function o(t){if(Object.keys)return Object.keys(t);var e=[];return L(t,function(t,n){e.push(n)}),e}function s(t,e){if(Array.prototype.indexOf)return t.indexOf(e,Number(arguments[2])||0);var n=t.length>>>0,r=Number(arguments[2])||0;for(r=0>r?Math.ceil(r):Math.floor(r),0>r&&(r+=n);n>r;r++)if(r in t&&t[r]===e)return r;return-1}function u(t,e,n,r){var i,u=a(n,r),l={},c=[];for(var f in u)if(u[f].params&&(i=o(u[f].params),i.length))for(var d in i)s(c,i[d])>=0||(c.push(i[d]),l[i[d]]=t[i[d]]);return q({},l,e)}function l(t,e,n){if(!n){n=[];for(var r in t)n.push(r)}for(var i=0;i<n.length;i++){var a=n[i];if(t[a]!=e[a])return!1}return!0}function c(t,e){var n={};return L(t,function(t){n[t]=e[t]}),n}function f(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return L(n,function(n){n in t&&(e[n]=t[n])}),e}function d(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var r in t)-1==s(n,r)&&(e[r]=t[r]);return e}function p(t,e){var n=I(t),r=n?[]:{};return L(t,function(t,i){e(t,i)&&(r[n?r.length:i]=t)}),r}function h(t,e){var n=I(t)?[]:{};return L(t,function(t,r){n[r]=e(t,r)}),n}function g(t,e){var r=1,a=2,u={},l=[],c=u,f=q(t.when(u),{$$promises:u,$$values:u});this.study=function(u){function p(t,n){if(y[n]!==a){if(v.push(n),y[n]===r)throw v.splice(0,s(v,n)),new Error("Cyclic dependency: "+v.join(" -> "));if(y[n]=r,F(t))m.push(n,[function(){return e.get(t)}],l);else{var i=e.annotate(t);L(i,function(t){t!==n&&u.hasOwnProperty(t)&&p(u[t],t)}),m.push(n,t,i)}v.pop(),y[n]=a}}function h(t){return j(t)&&t.then&&t.$$promises}if(!j(u))throw new Error("'invocables' must be an object");var g=o(u||{}),m=[],v=[],y={};return L(u,p),u=v=y=null,function(r,a,o){function s(){--x||($||i(b,a.$$values),v.$$values=b,v.$$promises=v.$$promises||!0,delete v.$$inheritedValues,p.resolve(b))}function u(t){v.$$failure=t,p.reject(t)}function l(n,i,a){function l(t){f.reject(t),u(t)}function c(){if(!N(v.$$failure))try{f.resolve(e.invoke(i,o,b)),f.promise.then(function(t){b[n]=t,s()},l)}catch(t){l(t)}}var f=t.defer(),d=0;L(a,function(t){y.hasOwnProperty(t)&&!r.hasOwnProperty(t)&&(d++,y[t].then(function(e){b[t]=e,--d||c()},l))}),d||c(),y[n]=f.promise}if(h(r)&&o===n&&(o=a,a=r,r=null),r){if(!j(r))throw new Error("'locals' must be an object")}else r=c;if(a){if(!h(a))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else a=f;var p=t.defer(),v=p.promise,y=v.$$promises={},b=q({},r),x=1+m.length/3,$=!1;if(N(a.$$failure))return u(a.$$failure),v;a.$$inheritedValues&&i(b,d(a.$$inheritedValues,g)),q(y,a.$$promises),a.$$values?($=i(b,d(a.$$values,g)),v.$$inheritedValues=d(a.$$values,g),s()):(a.$$inheritedValues&&(v.$$inheritedValues=d(a.$$inheritedValues,g)),a.then(s,u));for(var w=0,k=m.length;k>w;w+=3)r.hasOwnProperty(m[w])?s():l(m[w],m[w+1],m[w+2]);return v}},this.resolve=function(t,e,n,r){return this.study(t)(e,n,r)}}function m(t,e,n){this.fromConfig=function(t,e,n){return N(t.template)?this.fromString(t.template,e):N(t.templateUrl)?this.fromUrl(t.templateUrl,e):N(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},this.fromString=function(t,e){return P(t)?t(e):t},this.fromUrl=function(n,r){return P(n)&&(n=n(r)),null==n?null:t.get(n,{cache:e,headers:{Accept:"text/html"}}).then(function(t){return t.data})},this.fromProvider=function(t,e,r){return n.invoke(t,null,r||{params:e})}}function v(t,e,i){function a(e,n,r,i){if(m.push(e),h[e])return h[e];if(!/^\w+(-+\w+)*(?:\[\])?$/.test(e))throw new Error("Invalid parameter name '"+e+"' in pattern '"+t+"'");if(g[e])throw new Error("Duplicate parameter name '"+e+"' in pattern '"+t+"'");return g[e]=new V.Param(e,n,r,i),g[e]}function o(t,e,n,r){var i=["",""],a=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return a;switch(n){case!1:i=["(",")"+(r?"?":"")];break;case!0:i=["?(",")?"];break;default:i=["("+n+"|",")?"]}return a+i[0]+e+i[1]}function s(i,a){var o,s,u,l,c;return o=i[2]||i[3],c=e.params[o],u=t.substring(d,i.index),s=a?i[4]:i[4]||("*"==i[1]?".*":null),l=V.type(s||"string")||r(V.type("string"),{pattern:new RegExp(s,e.caseInsensitive?"i":n)}),{id:o,regexp:s,segment:u,type:l,cfg:c}}e=q({params:{}},j(e)?e:{});var u,l=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,c=/([:]?)([\w\[\]-]+)|\{([\w\[\]-]+)(?:\:((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,f="^",d=0,p=this.segments=[],h=i?i.params:{},g=this.params=i?i.params.$$new():new V.ParamSet,m=[];this.source=t;for(var v,y,b;(u=l.exec(t))&&(v=s(u,!1),!(v.segment.indexOf("?")>=0));)y=a(v.id,v.type,v.cfg,"path"),f+=o(v.segment,y.type.pattern.source,y.squash,y.isOptional),p.push(v.segment),d=l.lastIndex;b=t.substring(d);var x=b.indexOf("?");if(x>=0){var $=this.sourceSearch=b.substring(x);if(b=b.substring(0,x),this.sourcePath=t.substring(0,d+x),$.length>0)for(d=0;u=c.exec($);)v=s(u,!0),y=a(v.id,v.type,v.cfg,"search"),d=l.lastIndex}else this.sourcePath=t,this.sourceSearch="";f+=o(b)+(e.strict===!1?"/?":"")+"$",p.push(b),this.regexp=new RegExp(f,e.caseInsensitive?"i":n),this.prefix=p[0],this.$$paramNames=m}function y(t){q(this,t)}function b(){function t(t){return null!=t?t.toString().replace(/\//g,"%2F"):t}function i(t){return null!=t?t.toString().replace(/%2F/g,"/"):t}function a(){return{strict:g,caseInsensitive:d}}function u(t){return P(t)||I(t)&&P(t[t.length-1])}function l(){for(;w.length;){var t=w.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");e.extend(x[t.name],f.invoke(t.def))}}function c(t){q(this,t||{})}V=this;var f,d=!1,g=!0,m=!1,x={},$=!0,w=[],k={string:{encode:t,decode:i,is:function(t){return null==t||!N(t)||"string"==typeof t},pattern:/[^\/]*/},"int":{encode:t,decode:function(t){return parseInt(t,10)},is:function(t){return N(t)&&this.decode(t.toString())===t},pattern:/\d+/},bool:{encode:function(t){return t?1:0},decode:function(t){return 0!==parseInt(t,10)},is:function(t){return t===!0||t===!1},pattern:/0|1/},date:{encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):n},decode:function(t){if(this.is(t))return t;var e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):n},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return this.is(t)&&this.is(e)&&t.toISOString()===e.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:e.toJson,decode:e.fromJson,is:e.isObject,equals:e.equals,pattern:/[^\/]*/},any:{encode:e.identity,decode:e.identity,equals:e.equals,pattern:/.*/}};b.$$getDefaultValue=function(t){if(!u(t.value))return t.value;if(!f)throw new Error("Injectable functions cannot be called at configuration time");return f.invoke(t.value)},this.caseInsensitive=function(t){return N(t)&&(d=t),d},this.strictMode=function(t){return N(t)&&(g=t),g},this.defaultSquashPolicy=function(t){if(!N(t))return m;if(t!==!0&&t!==!1&&!F(t))throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");return m=t,t},this.compile=function(t,e){return new v(t,q(a(),e))},this.isMatcher=function(t){if(!j(t))return!1;var e=!0;return L(v.prototype,function(n,r){P(n)&&(e=e&&N(t[r])&&P(t[r]))}),e},this.type=function(t,e,n){if(!N(e))return x[t];if(x.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return x[t]=new y(q({name:t},e)),n&&(w.push({name:t,def:n}),$||l()),this},L(k,function(t,e){x[e]=new y(q({name:e},t))}),x=r(x,{}),this.$get=["$injector",function(t){return f=t,$=!1,l(),L(k,function(t,e){x[e]||(x[e]=new y(t))}),this}],this.Param=function(t,e,r,i){function a(t){var e=j(t)?o(t):[],n=-1===s(e,"value")&&-1===s(e,"type")&&-1===s(e,"squash")&&-1===s(e,"array");return n&&(t={value:t}),t.$$fn=u(t.value)?t.value:function(){return t.value},t}function l(e,n,r){if(e.type&&n)throw new Error("Param '"+t+"' has two type configurations.");return n?n:e.type?e.type instanceof y?e.type:new y(e.type):"config"===r?x.any:x.string}function c(){var e={array:"search"===i?"auto":!1},n=t.match(/\[\]$/)?{array:!0}:{};return q(e,n,r).array}function d(t,e){var n=t.squash;if(!e||n===!1)return!1;if(!N(n)||null==n)return m;if(n===!0||F(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}function g(t,e,r,i){var a,o,u=[{from:"",to:r||e?n:""},{from:null,to:r||e?n:""}];return a=I(t.replace)?t.replace:[],F(i)&&a.push({from:i,to:n}),o=h(a,function(t){return t.from}),p(u,function(t){return-1===s(o,t.from)}).concat(a)}function v(){if(!f)throw new Error("Injectable functions cannot be called at configuration time");var t=f.invoke(r.$$fn);if(null!==t&&t!==n&&!w.type.is(t))throw new Error("Default value ("+t+") for parameter '"+w.id+"' is not an instance of Type ("+w.type.name+")");return t}function b(t){function e(t){return function(e){return e.from===t}}function n(t){var n=h(p(w.replace,e(t)),function(t){return t.to});return n.length?n[0]:t}return t=n(t),N(t)?w.type.$normalize(t):v()}function $(){return"{Param:"+t+" "+e+" squash: '"+C+"' optional: "+M+"}"}var w=this;r=a(r),e=l(r,e,i);var k=c();e=k?e.$asArray(k,"search"===i):e,"string"!==e.name||k||"path"!==i||r.value!==n||(r.value="");var M=r.value!==n,C=d(r,M),S=g(r,k,M,C);q(this,{id:t,type:e,location:i,array:k,squash:C,replace:S,isOptional:M,value:b,dynamic:n,config:r,toString:$})},c.prototype={$$new:function(){return r(this,q(new c,{$$parent:this}))},$$keys:function(){for(var t=[],e=[],n=this,r=o(c.prototype);n;)e.push(n),n=n.$$parent;return e.reverse(),L(e,function(e){L(o(e),function(e){-1===s(t,e)&&-1===s(r,e)&&t.push(e)})}),t},$$values:function(t){var e={},n=this;return L(n.$$keys(),function(r){e[r]=n[r].value(t&&t[r])}),e},$$equals:function(t,e){var n=!0,r=this;return L(r.$$keys(),function(i){var a=t&&t[i],o=e&&e[i];r[i].type.equals(a,o)||(n=!1)}),n},$$validates:function(t){var r,i,a,o,s,u=this.$$keys();for(r=0;r<u.length&&(i=this[u[r]],a=t[u[r]],a!==n&&null!==a||!i.isOptional);r++){if(o=i.type.$normalize(a),!i.type.is(o))return!1;if(s=i.type.encode(o),e.isString(s)&&!i.type.pattern.exec(s))return!1}return!0},$$parent:n},this.ParamSet=c}function x(t,r){function i(t){var e=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(t.source);return null!=e?e[1].replace(/\\(.)/g,"$1"):""}function a(t,e){return t.replace(/\$(\$|\d{1,2})/,function(t,n){return e["$"===n?0:Number(n)]})}function o(t,e,n){if(!n)return!1;var r=t.invoke(e,e,{$match:n});return N(r)?r:!0}function s(r,i,a,o){function s(t,e,n){return"/"===g?t:e?g.slice(0,-1)+t:n?g.slice(1)+t:t}function d(t){function e(t){var e=t(a,r);return e?(F(e)&&r.replace().url(e),!0):!1}if(!t||!t.defaultPrevented){h&&r.url()===h;h=n;var i,o=l.length;for(i=0;o>i;i++)if(e(l[i]))return;c&&e(c)}}function p(){return u=u||i.$on("$locationChangeSuccess",d)}var h,g=o.baseHref(),m=r.url();return f||p(),{sync:function(){d()},listen:function(){return p()},update:function(t){return t?void(m=r.url()):void(r.url()!==m&&(r.url(m),r.replace()))},push:function(t,e,i){var a=t.format(e||{});null!==a&&e&&e["#"]&&(a+="#"+e["#"]),r.url(a),h=i&&i.$$avoidResync?r.url():n,i&&i.replace&&r.replace()},href:function(n,i,a){if(!n.validates(i))return null;var o=t.html5Mode();e.isObject(o)&&(o=o.enabled);var u=n.format(i);if(a=a||{},o||null===u||(u="#"+t.hashPrefix()+u),null!==u&&i&&i["#"]&&(u+="#"+i["#"]),u=s(u,o,a.absolute),!a.absolute||!u)return u;var l=!o&&u?"/":"",c=r.port();return c=80===c||443===c?"":":"+c,[r.protocol(),"://",r.host(),c,l,u].join("")}}}var u,l=[],c=null,f=!1;this.rule=function(t){if(!P(t))throw new Error("'rule' must be a function");return l.push(t),this},this.otherwise=function(t){if(F(t)){var e=t;t=function(){return e}}else if(!P(t))throw new Error("'rule' must be a function");return c=t,this},this.when=function(t,e){var n,s=F(e);if(F(t)&&(t=r.compile(t)),!s&&!P(e)&&!I(e))throw new Error("invalid 'handler' in when()");var u={matcher:function(t,e){return s&&(n=r.compile(e),e=["$match",function(t){return n.format(t)}]),q(function(n,r){return o(n,e,t.exec(r.path(),r.search()))},{prefix:F(t.prefix)?t.prefix:""})},regex:function(t,e){if(t.global||t.sticky)throw new Error("when() RegExp must not be global or sticky");return s&&(n=e,e=["$match",function(t){return a(n,t)}]),q(function(n,r){return o(n,e,t.exec(r.path()))},{prefix:i(t)})}},l={matcher:r.isMatcher(t),regex:t instanceof RegExp};for(var c in l)if(l[c])return this.rule(u[c](t,e));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(t){t===n&&(t=!0),f=t},this.$get=s,s.$inject=["$location","$rootScope","$injector","$browser"]}function $(t,i){function a(t){return 0===t.indexOf(".")||0===t.indexOf("^")}function d(t,e){if(!t)return n;var r=F(t),i=r?t:t.name,o=a(i);if(o){if(!e)throw new Error("No reference point given for path '"+i+"'");e=d(e);for(var s=i.split("."),u=0,l=s.length,c=e;l>u;u++)if(""!==s[u]||0!==u){if("^"!==s[u])break;if(!c.parent)throw new Error("Path '"+i+"' not valid for state '"+e.name+"'");c=c.parent}else c=e;s=s.slice(u).join("."),i=c.name+(c.name&&s?".":"")+s}var f=C[i];return!f||!r&&(r||f!==t&&f.self!==t)?n:f}function p(t,e){S[t]||(S[t]=[]),S[t].push(e)}function g(t){for(var e=S[t]||[];e.length;)m(e.shift())}function m(e){e=r(e,{self:e,resolve:e.resolve||{},toString:function(){return this.name}});var n=e.name;if(!F(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(C.hasOwnProperty(n))throw new Error("State '"+n+"'' is already defined");var i=-1!==n.indexOf(".")?n.substring(0,n.lastIndexOf(".")):F(e.parent)?e.parent:j(e.parent)&&F(e.parent.name)?e.parent.name:"";if(i&&!C[i])return p(i,e.self);for(var a in E)P(E[a])&&(e[a]=E[a](e,E.$delegates[a]));return C[n]=e,!e[A]&&e.url&&t.when(e.url,["$match","$stateParams",function(t,n){M.$current.navigable==e&&l(t,n)||M.transitionTo(e,t,{inherit:!0,location:!1})}]),g(n),e}function v(t){return t.indexOf("*")>-1}function y(t){for(var e=t.split("."),n=M.$current.name.split("."),r=0,i=e.length;i>r;r++)"*"===e[r]&&(n[r]="*");return"**"===e[0]&&(n=n.slice(s(n,e[1])),n.unshift("**")),"**"===e[e.length-1]&&(n.splice(s(n,e[e.length-2])+1,Number.MAX_VALUE),n.push("**")),e.length!=n.length?!1:n.join("")===e.join("")}function b(t,e){return F(t)&&!N(e)?E[t]:P(e)&&F(t)?(E[t]&&!E.$delegates[t]&&(E.$delegates[t]=E[t]),E[t]=e,this):this}function x(t,e){return j(t)?e=t:e.name=t,m(e),this}function $(t,i,a,s,f,p,g,m,b){function x(e,n,r,a){var o=t.$broadcast("$stateNotFound",e,n,r);if(o.defaultPrevented)return g.update(),D;if(!o.retry)return null;if(a.$retry)return g.update(),_;var s=M.transition=i.when(o.retry);return s.then(function(){return s!==M.transition?S:(e.options.$retry=!0,M.transitionTo(e.to,e.toParams,e.options))},function(){return D}),g.update(),s}function $(t,n,r,o,u,l){function d(){var n=[];return L(t.views,function(r,i){var o=r.resolve&&r.resolve!==t.resolve?r.resolve:{};o.$template=[function(){return a.load(i,{view:r,locals:u.globals,params:p,notify:l.notify})||""}],n.push(f.resolve(o,u.globals,u.resolve,t).then(function(n){if(P(r.controllerProvider)||I(r.controllerProvider)){var a=e.extend({},o,u.globals);n.$$controller=s.invoke(r.controllerProvider,null,a)}else n.$$controller=r.controller;n.$$state=t,n.$$controllerAs=r.controllerAs,u[i]=n}))}),i.all(n).then(function(){return u.globals})}var p=r?n:c(t.params.$$keys(),n),h={$stateParams:p};u.resolve=f.resolve(t.resolve,h,u.resolve,t);var g=[u.resolve.then(function(t){u.globals=t})];return o&&g.push(o),i.all(g).then(d).then(function(t){return u})}var S=i.reject(new Error("transition superseded")),E=i.reject(new Error("transition prevented")),D=i.reject(new Error("transition aborted")),_=i.reject(new Error("transition failed"));return k.locals={resolve:null,globals:{$stateParams:{}}},M={params:{},current:k.self,$current:k,transition:null},M.reload=function(t){return M.transitionTo(M.current,p,{reload:t||!0,inherit:!1,notify:!0})},M.go=function(t,e,n){return M.transitionTo(t,e,q({inherit:!0,relative:M.$current},n))},M.transitionTo=function(e,n,a){n=n||{},a=q({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},a||{});var o,l=M.$current,f=M.params,h=l.path,m=d(e,a.relative),v=n["#"];if(!N(m)){var y={to:e,toParams:n,options:a},b=x(y,l.self,f,a);if(b)return b;if(e=y.to,n=y.toParams,a=y.options,m=d(e,a.relative),!N(m)){if(!a.relative)throw new Error("No such state '"+e+"'");throw new Error("Could not resolve '"+e+"' from state '"+a.relative+"'")}}if(m[A])throw new Error("Cannot transition to abstract state '"+e+"'");if(a.inherit&&(n=u(p,n||{},M.$current,m)),!m.params.$$validates(n))return _;n=m.params.$$values(n),e=m;var C=e.path,D=0,T=C[D],O=k.locals,P=[];if(a.reload){if(F(a.reload)||j(a.reload)){if(j(a.reload)&&!a.reload.name)throw new Error("Invalid reload state object");var I=a.reload===!0?h[0]:d(a.reload);if(a.reload&&!I)throw new Error("No such reload state '"+(F(a.reload)?a.reload:a.reload.name)+"'");for(;T&&T===h[D]&&T!==I;)O=P[D]=T.locals,D++,T=C[D]}}else for(;T&&T===h[D]&&T.ownParams.$$equals(n,f);)O=P[D]=T.locals,D++,T=C[D];if(w(e,n,l,f,O,a))return v&&(n["#"]=v),M.params=n,H(M.params,p),a.location&&e.navigable&&e.navigable.url&&(g.push(e.navigable.url,n,{$$avoidResync:!0,replace:"replace"===a.location}),g.update(!0)),M.transition=null,i.when(M.current);if(n=c(e.params.$$keys(),n||{}),a.notify&&t.$broadcast("$stateChangeStart",e.self,n,l.self,f).defaultPrevented)return t.$broadcast("$stateChangeCancel",e.self,n,l.self,f),g.update(),E;for(var L=i.when(O),V=D;V<C.length;V++,T=C[V])O=P[V]=r(O),L=$(T,n,T===e,L,O,a);var R=M.transition=L.then(function(){var r,i,o;if(M.transition!==R)return S;for(r=h.length-1;r>=D;r--)o=h[r],o.self.onExit&&s.invoke(o.self.onExit,o.self,o.locals.globals),o.locals=null;for(r=D;r<C.length;r++)i=C[r],i.locals=P[r],i.self.onEnter&&s.invoke(i.self.onEnter,i.self,i.locals.globals);return v&&(n["#"]=v),M.transition!==R?S:(M.$current=e,M.current=e.self,M.params=n,H(M.params,p),M.transition=null,a.location&&e.navigable&&g.push(e.navigable.url,e.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===a.location}),a.notify&&t.$broadcast("$stateChangeSuccess",e.self,n,l.self,f),g.update(!0),M.current)},function(r){return M.transition!==R?S:(M.transition=null,o=t.$broadcast("$stateChangeError",e.self,n,l.self,f,r),o.defaultPrevented||g.update(),i.reject(r))});return R},M.is=function(t,e,r){r=q({relative:M.$current},r||{});var i=d(t,r.relative);return N(i)?M.$current!==i?!1:e?l(i.params.$$values(e),p):!0:n},M.includes=function(t,e,r){if(r=q({relative:M.$current},r||{}),F(t)&&v(t)){if(!y(t))return!1;t=M.$current.name}var i=d(t,r.relative);return N(i)?N(M.$current.includes[i.name])?e?l(i.params.$$values(e),p,o(e)):!0:!1:n},M.href=function(t,e,r){r=q({lossy:!0,inherit:!0,absolute:!1,relative:M.$current},r||{});var i=d(t,r.relative);if(!N(i))return null;r.inherit&&(e=u(p,e||{},M.$current,i));var a=i&&r.lossy?i.navigable:i;return a&&a.url!==n&&null!==a.url?g.href(a.url,c(i.params.$$keys().concat("#"),e||{}),{absolute:r.absolute}):null},M.get=function(t,e){if(0===arguments.length)return h(o(C),function(t){return C[t].self});var n=d(t,e||M.$current);return n&&n.self?n.self:null},M}function w(t,e,n,r,i,a){function o(t,e,n){function r(e){return"search"!=t.params[e].location}var i=t.params.$$keys().filter(r),a=f.apply({},[t.params].concat(i)),o=new V.ParamSet(a);return o.$$equals(e,n)}return!a.reload&&t===n&&(i===n.locals||t.self.reloadOnSearch===!1&&o(n,r,e))?!0:void 0}var k,M,C={},S={},A="abstract",E={parent:function(t){if(N(t.parent)&&t.parent)return d(t.parent);var e=/^(.+)\.[^.]+$/.exec(t.name);return e?d(e[1]):k},data:function(t){return t.parent&&t.parent.data&&(t.data=t.self.data=q({},t.parent.data,t.data)),t.data},url:function(t){var e=t.url,n={params:t.params||{}};if(F(e))return"^"==e.charAt(0)?i.compile(e.substring(1),n):(t.parent.navigable||k).url.concat(e,n);if(!e||i.isMatcher(e))return e;throw new Error("Invalid url '"+e+"' in state '"+t+"'")},navigable:function(t){return t.url?t:t.parent?t.parent.navigable:null},ownParams:function(t){var e=t.url&&t.url.params||new V.ParamSet;return L(t.params||{},function(t,n){e[n]||(e[n]=new V.Param(n,null,t,"config"))}),e},params:function(t){return t.parent&&t.parent.params?q(t.parent.params.$$new(),t.ownParams):new V.ParamSet},views:function(t){var e={};return L(N(t.views)?t.views:{"":t},function(n,r){r.indexOf("@")<0&&(r+="@"+t.parent.name),e[r]=n}),e},path:function(t){return t.parent?t.parent.path.concat(t):[]},includes:function(t){var e=t.parent?q({},t.parent.includes):{};return e[t.name]=!0,e},$delegates:{}};k=m({name:"",url:"^",views:null,"abstract":!0}),k.navigable=null,this.decorator=b,this.state=x,this.$get=$,$.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function w(){function t(t,e){return{load:function(n,r){var i,a={template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}};return r=q(a,r),r.view&&(i=e.fromConfig(r.view,r.params,r.locals)),i&&r.notify&&t.$broadcast("$viewContentLoading",r),i}}}this.$get=t,t.$inject=["$rootScope","$templateFactory"]}function k(){var t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n(function(){t[0].scrollIntoView()},0,!1)}}]}function M(t,n,r,i){function a(){return n.has?function(t){return n.has(t)?n.get(t):null}:function(t){try{return n.get(t)}catch(e){return null}}}function o(t,e){var n=function(){return{enter:function(t,e,n){e.after(t),n()},leave:function(t,e){t.remove(),e()}}};if(l)return{enter:function(t,e,n){var r=l.enter(t,null,e,n);r&&r.then&&r.then(n)},leave:function(t,e){var n=l.leave(t,e);n&&n.then&&n.then(e)}};if(u){var r=u&&u(e,t);return{enter:function(t,e,n){r.enter(t,null,e),n()},leave:function(t,e){r.leave(t),e()}}}return n()}var s=a(),u=s("$animator"),l=s("$animate"),c={restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,a,s){return function(n,a,u){function l(){f&&(f.remove(),f=null),p&&(p.$destroy(),p=null),d&&(v.leave(d,function(){f=null}),f=d,d=null)}function c(o){var c,f=S(n,u,a,i),y=f&&t.$current&&t.$current.locals[f];if(o||y!==h){c=n.$new(),h=t.$current.locals[f];var b=s(c,function(t){v.enter(t,a,function(){p&&p.$emit("$viewContentAnimationEnded"),(e.isDefined(m)&&!m||n.$eval(m))&&r(t)}),l()});d=b,p=c,p.$emit("$viewContentLoaded"),p.$eval(g)}}var f,d,p,h,g=u.onload||"",m=u.autoscroll,v=o(u,n);n.$on("$stateChangeSuccess",function(){c(!1)}),n.$on("$viewContentLoading",function(){c(!1)}),c(!0)}}};return c}function C(t,e,n,r){return{restrict:"ECA",priority:-400,compile:function(i){var a=i.html();return function(i,o,s){var u=n.$current,l=S(i,s,o,r),c=u&&u.locals[l];if(c){o.data("$uiView",{name:l,state:c.$$state}),o.html(c.$template?c.$template:a);var f=t(o.contents());if(c.$$controller){c.$scope=i,c.$element=o;var d=e(c.$$controller,c);c.$$controllerAs&&(i[c.$$controllerAs]=d),o.data("$ngControllerController",d),o.children().data("$ngControllerController",d)}f(i)}}}}}function S(t,e,n,r){var i=r(e.uiView||e.name||"")(t),a=n.inheritedData("$uiView");return i.indexOf("@")>=0?i:i+"@"+(a?a.state.name:"")}function A(t,e){var n,r=t.match(/^\s*({[^}]*})\s*$/);if(r&&(t=e+"("+r[1]+")"),n=t.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/),!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1],paramExpr:n[3]||null}}function E(t){var e=t.parent().inheritedData("$uiView");return e&&e.state&&e.state.name?e.state:void 0}function D(t,n){var r=["location","inherit","reload","absolute"];return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(i,a,o,s){var u=A(o.uiSref,t.current.name),l=null,c=E(a)||t.$current,f="[object SVGAnimatedString]"===Object.prototype.toString.call(a.prop("href"))?"xlink:href":"href",d=null,p="A"===a.prop("tagName").toUpperCase(),h="FORM"===a[0].nodeName,g=h?"action":f,m=!0,v={relative:c,inherit:!0},y=i.$eval(o.uiSrefOpts)||{};e.forEach(r,function(t){t in y&&(v[t]=y[t])});var b=function(n){if(n&&(l=e.copy(n)),m){d=t.href(u.state,l,v);var r=s[1]||s[0];return r&&r.$$addStateInfo(u.state,l),null===d?(m=!1,!1):void o.$set(g,d)}};u.paramExpr&&(i.$watch(u.paramExpr,function(t,e){t!==l&&b(t)},!0),l=e.copy(i.$eval(u.paramExpr))),b(),h||a.bind("click",function(e){var r=e.which||e.button;if(!(r>1||e.ctrlKey||e.metaKey||e.shiftKey||a.attr("target"))){var i=n(function(){t.go(u.state,l,v)});e.preventDefault();var o=p&&!d?1:0;e.preventDefault=function(){o--<=0&&n.cancel(i)}}})}}}function _(t,e,n){return{restrict:"A",controller:["$scope","$element","$attrs",function(e,r,i){function a(){o()?r.addClass(u):r.removeClass(u)}function o(){for(var t=0;t<l.length;t++)if(s(l[t].state,l[t].params))return!0;return!1}function s(e,n){return"undefined"!=typeof i.uiSrefActiveEq?t.is(e.name,n):t.includes(e.name,n)}var u,l=[];u=n(i.uiSrefActiveEq||i.uiSrefActive||"",!1)(e),this.$$addStateInfo=function(e,n){var i=t.get(e,E(r));l.push({state:i||{name:e},params:n}),a()},e.$on("$stateChangeSuccess",a)}]}}function T(t){var e=function(e){return t.is(e)};return e.$stateful=!0,e}function O(t){var e=function(e){return t.includes(e)};return e.$stateful=!0,e}var N=e.isDefined,P=e.isFunction,F=e.isString,j=e.isObject,I=e.isArray,L=e.forEach,q=e.extend,H=e.copy;e.module("ui.router.util",["ng"]),e.module("ui.router.router",["ui.router.util"]),e.module("ui.router.state",["ui.router.router","ui.router.util"]),e.module("ui.router",["ui.router.state"]),e.module("ui.router.compat",["ui.router"]),g.$inject=["$q","$injector"],e.module("ui.router.util").service("$resolve",g),m.$inject=["$http","$templateCache","$injector"],e.module("ui.router.util").service("$templateFactory",m);var V;v.prototype.concat=function(t,e){var n={caseInsensitive:V.caseInsensitive(),strict:V.strictMode(),squash:V.defaultSquashPolicy()};return new v(this.sourcePath+t+this.sourceSearch,q(n,e),this)},v.prototype.toString=function(){return this.source},v.prototype.exec=function(t,e){function n(t){function e(t){return t.split("").reverse().join("")}function n(t){return t.replace(/\\-/g,"-")}var r=e(t).split(/-(?!\\)/),i=h(r,e);return h(i,n).reverse()}var r=this.regexp.exec(t);if(!r)return null;e=e||{};var i,a,o,s=this.parameters(),u=s.length,l=this.segments.length-1,c={};if(l!==r.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");for(i=0;l>i;i++){o=s[i];var f=this.params[o],d=r[i+1];for(a=0;a<f.replace;a++)f.replace[a].from===d&&(d=f.replace[a].to);d&&f.array===!0&&(d=n(d)),c[o]=f.value(d)}for(;u>i;i++)o=s[i],c[o]=this.params[o].value(e[o]);return c},v.prototype.parameters=function(t){return N(t)?this.params[t]||null:this.$$paramNames},v.prototype.validates=function(t){return this.params.$$validates(t)},v.prototype.format=function(t){function e(t){return encodeURIComponent(t).replace(/-/g,function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()})}t=t||{};var n=this.segments,r=this.parameters(),i=this.params;if(!this.validates(t))return null;var a,o=!1,s=n.length-1,u=r.length,l=n[0];for(a=0;u>a;a++){var c=s>a,f=r[a],d=i[f],p=d.value(t[f]),g=d.isOptional&&d.type.equals(d.value(),p),m=g?d.squash:!1,v=d.type.encode(p);if(c){var y=n[a+1];if(m===!1)null!=v&&(l+=I(v)?h(v,e).join("-"):encodeURIComponent(v)),l+=y;else if(m===!0){var b=l.match(/\/$/)?/\/?(.*)/:/(.*)/;l+=y.match(b)[1]}else F(m)&&(l+=m+y)}else{if(null==v||g&&m!==!1)continue;I(v)||(v=[v]),v=h(v,encodeURIComponent).join("&"+f+"="),l+=(o?"&":"?")+(f+"="+v),o=!0}}return l},y.prototype.is=function(t,e){return!0},y.prototype.encode=function(t,e){return t},y.prototype.decode=function(t,e){return t},y.prototype.equals=function(t,e){return t==e},y.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},y.prototype.pattern=/.*/,y.prototype.toString=function(){return"{Type:"+this.name+"}"},y.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},y.prototype.$asArray=function(t,e){function r(t,e){function r(t,e){return function(){return t[e].apply(t,arguments)}}function i(t){return I(t)?t:N(t)?[t]:[]}function a(t){switch(t.length){case 0:return n;case 1:return"auto"===e?t[0]:t;default:return t}}function o(t){return!t}function s(t,e){return function(n){n=i(n);var r=h(n,t);return e===!0?0===p(r,o).length:a(r)}}function u(t){return function(e,n){var r=i(e),a=i(n);if(r.length!==a.length)return!1;for(var o=0;o<r.length;o++)if(!t(r[o],a[o]))return!1;return!0}}this.encode=s(r(t,"encode")),this.decode=s(r(t,"decode")),this.is=s(r(t,"is"),!0),this.equals=u(r(t,"equals")),this.pattern=t.pattern,this.$normalize=s(r(t,"$normalize")),this.name=t.name,this.$arrayMode=e}if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new r(this,t)},e.module("ui.router.util").provider("$urlMatcherFactory",b),e.module("ui.router.util").run(["$urlMatcherFactory",function(t){}]),x.$inject=["$locationProvider","$urlMatcherFactoryProvider"],e.module("ui.router.router").provider("$urlRouter",x),$.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],e.module("ui.router.state").value("$stateParams",{}).provider("$state",$),w.$inject=[],e.module("ui.router.state").provider("$view",w),e.module("ui.router.state").provider("$uiViewScroll",k),M.$inject=["$state","$injector","$uiViewScroll","$interpolate"],C.$inject=["$compile","$controller","$state","$interpolate"],e.module("ui.router.state").directive("uiView",M),e.module("ui.router.state").directive("uiView",C),D.$inject=["$state","$timeout"],_.$inject=["$state","$stateParams","$interpolate"],e.module("ui.router.state").directive("uiSref",D).directive("uiSrefActive",_).directive("uiSrefActiveEq",_),T.$inject=["$state"],O.$inject=["$state"],e.module("ui.router.state").filter("isState",T).filter("includedByState",O)}(window,window.angular),/*
|
||
* angular-ui-bootstrap
|
||
* http://angular-ui.github.io/bootstrap/
|
||
|
||
* Version: 0.13.4 - 2015-09-03
|
||
* License: MIT
|
||
*/
|
||
angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.transition","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-popup.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/popover/popover-html.html","template/popover/popover-template.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("collapse",["$animate",function(t){return{link:function(e,n,r){function i(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),t.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(a)}function a(){n.removeClass("collapsing"),n.css({height:"auto"})}function o(){return n.hasClass("collapse")||n.hasClass("in")?(n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),void t.removeClass(n,"in",{to:{height:"0"}}).then(s)):s()}function s(){n.css({height:"0"}),n.removeClass("collapsing"),n.addClass("collapse")}e.$watch(r.collapse,function(t){t?o():i()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(t,e,n){this.groups=[],this.closeOthers=function(r){var i=angular.isDefined(e.closeOthers)?t.$eval(e.closeOthers):n.closeOthers;i&&angular.forEach(this.groups,function(t){t!==r&&(t.isOpen=!1)})},this.addGroup=function(t){var e=this;this.groups.push(t),t.$on("$destroy",function(n){e.removeGroup(t)})},this.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",controllerAs:"accordion",transclude:!0,replace:!1,templateUrl:function(t,e){return e.templateUrl||"template/accordion/accordion.html"}}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(t,e,n,r){r.addGroup(t),t.openClass=n.openClass||"panel-open",t.panelClass=n.panelClass,t.$watch("isOpen",function(n){e.toggleClass(t.openClass,n),n&&r.closeOthers(t)}),t.toggleOpen=function(e){t.isDisabled||e&&32!==e.which||(t.isOpen=!t.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(t,e,n,r,i){r.setHeading(i(t,angular.noop))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(t,e,n,r){t.$watch(function(){return r[n.accordionTransclude]},function(t){t&&(e.find("span").html(""),e.find("span").append(t))})}}}),angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(t,e){t.closeable=!!e.close,this.close=t.close}]).directive("alert",function(){return{controller:"AlertController",controllerAs:"alert",templateUrl:function(t,e){return e.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(t){return{require:"alert",link:function(e,n,r,i){t(function(){i.close()},parseInt(r.dismissOnTimeout,10))}}}]),angular.module("ui.bootstrap.bindHtml",[]).value("$bindHtmlUnsafeSuppressDeprecated",!1).directive("bindHtmlUnsafe",["$log","$bindHtmlUnsafeSuppressDeprecated",function(t,e){return function(n,r,i){e||t.warn("bindHtmlUnsafe is now deprecated. Use ngBindHtml instead"),r.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe),n.$watch(i.bindHtmlUnsafe,function(t){r.html(t||"")})}}]),angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(t){this.activeClass=t.activeClass||"active",this.toggleEvent=t.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",controllerAs:"buttons",link:function(t,e,n,r){var i=r[0],a=r[1];e.find("input").css({display:"none"}),a.$render=function(){e.toggleClass(i.activeClass,angular.equals(a.$modelValue,t.$eval(n.btnRadio)))},e.bind(i.toggleEvent,function(){if(!n.disabled){var r=e.hasClass(i.activeClass);(!r||angular.isDefined(n.uncheckable))&&t.$apply(function(){a.$setViewValue(r?null:t.$eval(n.btnRadio)),a.$render()})}})}}}).directive("btnCheckbox",["$document",function(t){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",controllerAs:"button",link:function(e,n,r,i){function a(){return s(r.btnCheckboxTrue,!0)}function o(){return s(r.btnCheckboxFalse,!1)}function s(t,n){var r=e.$eval(t);return angular.isDefined(r)?r:n}var u=i[0],l=i[1];n.find("input").css({display:"none"}),l.$render=function(){n.toggleClass(u.activeClass,angular.equals(l.$modelValue,a()))},n.bind(u.toggleEvent,function(){r.disabled||e.$apply(function(){l.$setViewValue(n.hasClass(u.activeClass)?o():a()),l.$render()})}),n.on("keypress",function(i){r.disabled||32!==i.which||t[0].activeElement!==n[0]||e.$apply(function(){l.$setViewValue(n.hasClass(u.activeClass)?o():a()),l.$render()})})}}}]),angular.module("ui.bootstrap.carousel",[]).controller("CarouselController",["$scope","$element","$interval","$animate",function(t,e,n,r){function i(e,n,i){v||(angular.extend(e,{direction:i,active:!0}),angular.extend(f.currentSlide||{},{direction:i,active:!1}),r.enabled()&&!t.noTransition&&!t.$currentTransition&&e.$element&&f.slides.length>1&&(e.$element.data(g,e.direction),f.currentSlide&&f.currentSlide.$element&&f.currentSlide.$element.data(g,e.direction),t.$currentTransition=!0,p?r.on("addClass",e.$element,function(e,n){"close"===n&&(t.$currentTransition=null,r.off("addClass",e))}):e.$element.one("$animate:close",function(){t.$currentTransition=null})),f.currentSlide=e,m=n,o())}function a(t){if(angular.isUndefined(d[t].index))return d[t];var e;d.length;for(e=0;e<d.length;++e)if(d[e].index==t)return d[e]}function o(){s();var e=+t.interval;!isNaN(e)&&e>0&&(l=n(u,e))}function s(){l&&(n.cancel(l),l=null)}function u(){var e=+t.interval;c&&!isNaN(e)&&e>0&&d.length?t.next():t.pause()}var l,c,f=this,d=f.slides=t.slides=[],p=angular.version.minor>=4,h="uib-noTransition",g="uib-slideDirection",m=-1;f.currentSlide=null;var v=!1;f.select=t.select=function(e,n){var r=t.indexOfSlide(e);void 0===n&&(n=r>f.getCurrentIndex()?"next":"prev"),e&&e!==f.currentSlide&&!t.$currentTransition&&i(e,r,n)},t.$on("$destroy",function(){v=!0}),f.getCurrentIndex=function(){return f.currentSlide&&angular.isDefined(f.currentSlide.index)?+f.currentSlide.index:m},t.indexOfSlide=function(t){return angular.isDefined(t.index)?+t.index:d.indexOf(t)},t.next=function(){var e=(f.getCurrentIndex()+1)%d.length;return 0===e&&t.noWrap()?void t.pause():f.select(a(e),"next")},t.prev=function(){var e=f.getCurrentIndex()-1<0?d.length-1:f.getCurrentIndex()-1;return t.noWrap()&&e===d.length-1?void t.pause():f.select(a(e),"prev")},t.isActive=function(t){return f.currentSlide===t},t.$watch("interval",o),t.$on("$destroy",s),t.play=function(){c||(c=!0,o())},t.pause=function(){t.noPause||(c=!1,s())},f.addSlide=function(e,n){e.$element=n,d.push(e),1===d.length||e.active?(f.select(d[d.length-1]),1==d.length&&t.play()):e.active=!1},f.removeSlide=function(t){angular.isDefined(t.index)&&d.sort(function(t,e){return+t.index>+e.index});var e=d.indexOf(t);d.splice(e,1),d.length>0&&t.active?e>=d.length?f.select(d[e-1]):f.select(d[e]):m>e&&m--,0===d.length&&(f.currentSlide=null)},t.$watch("noTransition",function(t){e.data(h,t)})}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(t,e){return e.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(t,e,n,r){r.addSlide(t,e),t.$on("$destroy",function(){r.removeSlide(t)}),t.$watch("active",function(e){e&&r.select(t)})}}}).animation(".item",["$injector","$animate",function(t,e){function n(t,e,n){t.removeClass(e),n&&n()}var r="uib-noTransition",i="uib-slideDirection",a=null;return t.has("$animateCss")&&(a=t.get("$animateCss")),{beforeAddClass:function(t,o,s){if("active"==o&&t.parent()&&!t.parent().data(r)){var u=!1,l=t.data(i),c="next"==l?"left":"right",f=n.bind(this,t,c+" "+l,s);return t.addClass(l),a?a(t,{addClass:c}).start().done(f):e.addClass(t,c).then(function(){u||f(),s()}),function(){u=!0}}s()},beforeRemoveClass:function(t,o,s){if("active"===o&&t.parent()&&!t.parent().data(r)){var u=!1,l=t.data(i),c="next"==l?"left":"right",f=n.bind(this,t,c,s);return a?a(t,{addClass:c}).start().done(f):e.addClass(t,c).then(function(){u||f(),s()}),function(){u=!0}}s()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$log","$locale","orderByFilter",function(t,e,n){function r(t){var e=[],r=t.split("");return angular.forEach(o,function(n,i){var a=t.indexOf(i);if(a>-1){t=t.split(""),r[a]="("+n.regex+")",t[a]="$";for(var o=a+1,s=a+i.length;s>o;o++)r[o]="",t[o]="$";t=t.join(""),e.push({index:a,apply:n.apply})}}),{regex:new RegExp("^"+r.join("")+"$"),map:n(e,"index")}}function i(t,e,n){return 1>n?!1:1===e&&n>28?29===n&&(t%4===0&&t%100!==0||t%400===0):3===e||5===e||8===e||10===e?31>n:!0}var a=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.parsers={};var o={yyyy:{regex:"\\d{4}",apply:function(t){this.year=+t}},yy:{regex:"\\d{2}",apply:function(t){this.year=+t+2e3}},y:{regex:"\\d{1,4}",apply:function(t){this.year=+t}},MMMM:{regex:e.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=e.DATETIME_FORMATS.MONTH.indexOf(t)}},MMM:{regex:e.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=e.DATETIME_FORMATS.SHORTMONTH.indexOf(t)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(t){this.month=t-1}},M:{regex:"[1-9]|1[0-2]",apply:function(t){this.month=t-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t}},EEEE:{regex:e.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:e.DATETIME_FORMATS.SHORTDAY.join("|")},HH:{regex:"(?:0|1)[0-9]|2[0-3]",apply:function(t){this.hours=+t}},hh:{regex:"0[0-9]|1[0-2]",apply:function(t){this.hours=+t}},H:{regex:"1?[0-9]|2[0-3]",apply:function(t){this.hours=+t}},h:{regex:"[0-9]|1[0-2]",apply:function(t){this.hours=+t}},mm:{regex:"[0-5][0-9]",apply:function(t){this.minutes=+t}},m:{regex:"[0-9]|[1-5][0-9]",apply:function(t){this.minutes=+t}},sss:{regex:"[0-9][0-9][0-9]",apply:function(t){this.milliseconds=+t}},ss:{regex:"[0-5][0-9]",apply:function(t){this.seconds=+t}},s:{regex:"[0-9]|[1-5][0-9]",apply:function(t){this.seconds=+t}},a:{regex:e.DATETIME_FORMATS.AMPMS.join("|"),apply:function(t){12===this.hours&&(this.hours=0),"PM"===t&&(this.hours+=12)}}};this.parse=function(n,o,s){if(!angular.isString(n)||!o)return n;o=e.DATETIME_FORMATS[o]||o,o=o.replace(a,"\\$&"),this.parsers[o]||(this.parsers[o]=r(o));var u=this.parsers[o],l=u.regex,c=u.map,f=n.match(l);if(f&&f.length){var d,p;angular.isDate(s)&&!isNaN(s.getTime())?d={year:s.getFullYear(),month:s.getMonth(),date:s.getDate(),hours:s.getHours(),minutes:s.getMinutes(),seconds:s.getSeconds(),milliseconds:s.getMilliseconds()}:(s&&t.warn("dateparser:","baseDate is not a valid date"),d={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var h=1,g=f.length;g>h;h++){var m=c[h-1];m.apply&&m.apply.call(d,f[h])}return i(d.year,d.month,d.date)&&(p=new Date(d.year,d.month,d.date,d.hours,d.minutes,d.seconds,d.milliseconds||0)),p}}}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(t,e){function n(t,n){return t.currentStyle?t.currentStyle[n]:e.getComputedStyle?e.getComputedStyle(t)[n]:t.style[n]}function r(t){return"static"===(n(t,"position")||"static")}var i=function(e){for(var n=t[0],i=e.offsetParent||n;i&&i!==n&&r(i);)i=i.offsetParent;return i||n};return{position:function(e){var n=this.offset(e),r={top:0,left:0},a=i(e[0]);a!=t[0]&&(r=this.offset(angular.element(a)),r.top+=a.clientTop-a.scrollTop,r.left+=a.clientLeft-a.scrollLeft);var o=e[0].getBoundingClientRect();return{width:o.width||e.prop("offsetWidth"),height:o.height||e.prop("offsetHeight"),top:n.top-r.top,left:n.left-r.left}},offset:function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(e.pageYOffset||t[0].documentElement.scrollTop),left:r.left+(e.pageXOffset||t[0].documentElement.scrollLeft)}},positionElements:function(t,e,n,r){var i,a,o,s,u=n.split("-"),l=u[0],c=u[1]||"center";i=r?this.offset(t):this.position(t),a=e.prop("offsetWidth"),o=e.prop("offsetHeight");var f={center:function(){return i.left+i.width/2-a/2},left:function(){return i.left},right:function(){return i.left+i.width}},d={center:function(){return i.top+i.height/2-o/2},top:function(){return i.top},bottom:function(){return i.top+i.height}};switch(l){case"right":s={top:d[c](),left:f[l]()};break;case"left":s={top:d[c](),left:i.left-a};break;case"bottom":s={top:d[l](),left:f[c]()};break;default:s={top:i.top-o,left:f[c]()}}return s}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).value("$datepickerSuppressError",!1).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null,shortcutPropagation:!1}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","datepickerConfig","$datepickerSuppressError",function(t,e,n,r,i,a,o,s){var u=this,l={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],function(n,i){u[n]=angular.isDefined(e[n])?6>i?r(e[n])(t.$parent):t.$parent.$eval(e[n]):o[n]}),angular.forEach(["minDate","maxDate"],function(r){e[r]?t.$parent.$watch(n(e[r]),function(t){u[r]=t?new Date(t):null,u.refreshView()}):u[r]=o[r]?new Date(o[r]):null}),angular.forEach(["minMode","maxMode"],function(r){e[r]?t.$parent.$watch(n(e[r]),function(n){u[r]=angular.isDefined(n)?n:e[r],t[r]=u[r],("minMode"==r&&u.modes.indexOf(t.datepickerMode)<u.modes.indexOf(u[r])||"maxMode"==r&&u.modes.indexOf(t.datepickerMode)>u.modes.indexOf(u[r]))&&(t.datepickerMode=u[r])}):(u[r]=o[r]||null,t[r]=u[r])}),t.datepickerMode=t.datepickerMode||o.datepickerMode,t.uniqueId="datepicker-"+t.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(e.initDate)?(this.activeDate=t.$parent.$eval(e.initDate)||new Date,t.$parent.$watch(e.initDate,function(t){t&&(l.$isEmpty(l.$modelValue)||l.$invalid)&&(u.activeDate=t,u.refreshView())})):this.activeDate=new Date,t.isActive=function(e){return 0===u.compare(e.date,u.activeDate)?(t.activeDateId=e.uid,!0):!1},this.init=function(t){l=t,l.$render=function(){u.render()}},this.render=function(){if(l.$viewValue){var t=new Date(l.$viewValue),e=!isNaN(t);e?this.activeDate=t:s||i.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var t=l.$viewValue?new Date(l.$viewValue):null;l.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,e){var n=l.$viewValue?new Date(l.$viewValue):null;return{date:t,label:a(t,e),selected:n&&0===this.compare(t,n),disabled:this.isDisabled(t),current:0===this.compare(t,new Date),customClass:this.customClass(t)}},this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||e.dateDisabled&&t.dateDisabled({date:n,mode:t.datepickerMode})},this.customClass=function(e){return t.customClass({date:e,mode:t.datepickerMode})},this.split=function(t,e){for(var n=[];t.length>0;)n.push(t.splice(0,e));return n},this.fixTimeZone=function(t){var e=t.getHours();t.setHours(23===e?e+2:0)},t.select=function(e){if(t.datepickerMode===u.minMode){var n=l.$viewValue?new Date(l.$viewValue):new Date(0,0,0,0,0,0,0);n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),l.$setViewValue(n),l.$render()}else u.activeDate=e,t.datepickerMode=u.modes[u.modes.indexOf(t.datepickerMode)-1]},t.move=function(t){var e=u.activeDate.getFullYear()+t*(u.step.years||0),n=u.activeDate.getMonth()+t*(u.step.months||0);u.activeDate.setFullYear(e,n,1),u.refreshView()},t.toggleMode=function(e){e=e||1,t.datepickerMode===u.maxMode&&1===e||t.datepickerMode===u.minMode&&-1===e||(t.datepickerMode=u.modes[u.modes.indexOf(t.datepickerMode)+e])},t.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var c=function(){u.element[0].focus()};t.$on("datepicker.focus",c),t.keydown=function(e){var n=t.keys[e.which];if(n&&!e.shiftKey&&!e.altKey)if(e.preventDefault(),u.shortcutPropagation||e.stopPropagation(),"enter"===n||"space"===n){if(u.isDisabled(u.activeDate))return;t.select(u.activeDate),c()}else!e.ctrlKey||"up"!==n&&"down"!==n?(u.handleKeyDown(n,e),u.refreshView()):(t.toggleMode("up"===n?1:-1),c())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["datepicker","^ngModel"],controller:"DatepickerController",controllerAs:"datepicker",link:function(t,e,n,r){var i=r[0],a=r[1];i.init(a)}}}).directive("daypicker",["dateFilter",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(e,n,r,i){function a(t,e){return 1!==e||t%4!==0||t%100===0&&t%400!==0?u[e]:29}function o(t,e){for(var n,r=new Array(e),a=new Date(t),o=0;e>o;)n=new Date(a),i.fixTimeZone(n),r[o++]=n,a.setDate(a.getDate()+1);return r}function s(t){var e=new Date(t);e.setDate(e.getDate()+4-(e.getDay()||7));var n=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((n-e)/864e5)/7)+1}e.showWeeks=i.showWeeks,i.step={months:1},i.element=n;var u=[31,28,31,30,31,30,31,31,30,31,30,31];i._refreshView=function(){var n=i.activeDate.getFullYear(),r=i.activeDate.getMonth(),a=new Date(n,r,1),u=i.startingDay-a.getDay(),l=u>0?7-u:-u,c=new Date(a);l>0&&c.setDate(-l+1);for(var f=o(c,42),d=0;42>d;d++)f[d]=angular.extend(i.createDateObject(f[d],i.formatDay),{secondary:f[d].getMonth()!==r,uid:e.uniqueId+"-"+d});e.labels=new Array(7);for(var p=0;7>p;p++)e.labels[p]={abbr:t(f[p].date,i.formatDayHeader),full:t(f[p].date,"EEEE")};if(e.title=t(i.activeDate,i.formatDayTitle),e.rows=i.split(f,7),e.showWeeks){e.weekNumbers=[];for(var h=(11-i.startingDay)%7,g=e.rows.length,m=0;g>m;m++)e.weekNumbers.push(s(e.rows[m][h].date))}},i.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())},i.handleKeyDown=function(t,e){var n=i.activeDate.getDate();if("left"===t)n-=1;else if("up"===t)n-=7;else if("right"===t)n+=1;else if("down"===t)n+=7;else if("pageup"===t||"pagedown"===t){var r=i.activeDate.getMonth()+("pageup"===t?-1:1);i.activeDate.setMonth(r,1),n=Math.min(a(i.activeDate.getFullYear(),i.activeDate.getMonth()),n)}else"home"===t?n=1:"end"===t&&(n=a(i.activeDate.getFullYear(),i.activeDate.getMonth()));i.activeDate.setDate(n)},i.refreshView()}}}]).directive("monthpicker",["dateFilter",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(e,n,r,i){i.step={years:1},i.element=n,i._refreshView=function(){for(var n,r=new Array(12),a=i.activeDate.getFullYear(),o=0;12>o;o++)n=new Date(a,o,1),i.fixTimeZone(n),r[o]=angular.extend(i.createDateObject(n,i.formatMonth),{uid:e.uniqueId+"-"+o});e.title=t(i.activeDate,i.formatMonthTitle),e.rows=i.split(r,3)},i.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth())-new Date(e.getFullYear(),e.getMonth())},i.handleKeyDown=function(t,e){var n=i.activeDate.getMonth();if("left"===t)n-=1;else if("up"===t)n-=3;else if("right"===t)n+=1;else if("down"===t)n+=3;else if("pageup"===t||"pagedown"===t){var r=i.activeDate.getFullYear()+("pageup"===t?-1:1);i.activeDate.setFullYear(r)}else"home"===t?n=0:"end"===t&&(n=11);i.activeDate.setMonth(n)},i.refreshView()}}}]).directive("yearpicker",["dateFilter",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(t,e,n,r){function i(t){return parseInt((t-1)/a,10)*a+1}var a=r.yearRange;r.step={years:a},r.element=e,r._refreshView=function(){for(var e,n=new Array(a),o=0,s=i(r.activeDate.getFullYear());a>o;o++)e=new Date(s+o,0,1),r.fixTimeZone(e),n[o]=angular.extend(r.createDateObject(e,r.formatYear),{uid:t.uniqueId+"-"+o});t.title=[n[0].label,n[a-1].label].join(" - "),t.rows=r.split(n,5)},r.compare=function(t,e){return t.getFullYear()-e.getFullYear()},r.handleKeyDown=function(t,e){var n=r.activeDate.getFullYear();"left"===t?n-=1:"up"===t?n-=5:"right"===t?n+=1:"down"===t?n+=5:"pageup"===t||"pagedown"===t?n+=("pageup"===t?-1:1)*r.step.years:"home"===t?n=i(r.activeDate.getFullYear()):"end"===t&&(n=i(r.activeDate.getFullYear())+a-1),r.activeDate.setFullYear(n)},r.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"template/datepicker/popup.html",datepickerTemplateUrl:"template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0,onOpenFocus:!0}).directive("datepickerPopup",["$compile","$parse","$document","$rootScope","$position","dateFilter","dateParser","datepickerPopupConfig","$timeout",function(t,e,n,r,i,a,o,s,u){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(l,c,f,d){function p(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function h(t){if(angular.isNumber(t)&&(t=new Date(t)),t){if(angular.isDate(t)&&!isNaN(t))return t;if(angular.isString(t)){var e=o.parse(t,m,l.date);return isNaN(e)?void 0:e}return void 0}return null}function g(t,e){var n=t||e;if(!f.ngRequired&&!n)return!0;if(angular.isNumber(n)&&(n=new Date(n)),n){if(angular.isDate(n)&&!isNaN(n))return!0;if(angular.isString(n)){var r=o.parse(n,m);return!isNaN(r)}return!1}return!0}var m,v=angular.isDefined(f.closeOnDateSelection)?l.$parent.$eval(f.closeOnDateSelection):s.closeOnDateSelection,y=angular.isDefined(f.datepickerAppendToBody)?l.$parent.$eval(f.datepickerAppendToBody):s.appendToBody,b=angular.isDefined(f.onOpenFocus)?l.$parent.$eval(f.onOpenFocus):s.onOpenFocus,x=angular.isDefined(f.datepickerPopupTemplateUrl)?f.datepickerPopupTemplateUrl:s.datepickerPopupTemplateUrl,$=angular.isDefined(f.datepickerTemplateUrl)?f.datepickerTemplateUrl:s.datepickerTemplateUrl,w={};l.showButtonBar=angular.isDefined(f.showButtonBar)?l.$parent.$eval(f.showButtonBar):s.showButtonBar,l.getText=function(t){return l[t+"Text"]||s[t+"Text"]},l.isDisabled=function(t){return"today"===t&&(t=new Date),l.watchData.minDate&&l.compare(t,w.minDate)<0||l.watchData.maxDate&&l.compare(t,w.maxDate)>0},l.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())};var k=!1;if(s.html5Types[f.type]?(m=s.html5Types[f.type],k=!0):(m=f.datepickerPopup||s.datepickerPopup,f.$observe("datepickerPopup",function(t,e){var n=t||s.datepickerPopup;if(n!==m&&(m=n,d.$modelValue=null,!m))throw new Error("datepickerPopup must have a date format specified.")})),!m)throw new Error("datepickerPopup must have a date format specified.");if(k&&f.datepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");var M=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");M.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":x});var C=angular.element(M.children()[0]);if(C.attr("template-url",$),k&&"month"===f.type&&(C.attr("datepicker-mode",'"month"'),C.attr("min-mode","month")),f.datepickerOptions){var S=l.$parent.$eval(f.datepickerOptions);S&&S.initDate&&(l.initDate=S.initDate,C.attr("init-date","initDate"),delete S.initDate),angular.forEach(S,function(t,e){C.attr(p(e),t)})}l.watchData={},angular.forEach(["minMode","maxMode","minDate","maxDate","datepickerMode","initDate","shortcutPropagation"],function(t){if(f[t]){var n=e(f[t]);if(l.$parent.$watch(n,function(e){l.watchData[t]=e,("minDate"===t||"maxDate"===t)&&(w[t]=new Date(e))}),C.attr(p(t),"watchData."+t),"datepickerMode"===t){var r=n.assign;l.$watch("watchData."+t,function(t,e){angular.isFunction(r)&&t!==e&&r(l.$parent,t)})}}}),f.dateDisabled&&C.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),f.showWeeks&&C.attr("show-weeks",f.showWeeks),f.customClass&&C.attr("custom-class","customClass({ date: date, mode: mode })"),k?d.$formatters.push(function(t){return l.date=t,t}):(d.$$parserName="date",d.$validators.date=g,d.$parsers.unshift(h),d.$formatters.push(function(t){return l.date=t,d.$isEmpty(t)?t:a(t,m)})),l.dateSelection=function(t){angular.isDefined(t)&&(l.date=t);var e=l.date?a(l.date,m):null;c.val(e),d.$setViewValue(e),v&&(l.isOpen=!1,c[0].focus())},d.$viewChangeListeners.push(function(){l.date=o.parse(d.$viewValue,m,l.date)});var A=function(t){!l.isOpen||c[0].contains(t.target)||M[0].contains(t.target)||l.$apply(function(){l.isOpen=!1})},E=function(t){27===t.which&&l.isOpen?(t.preventDefault(),t.stopPropagation(),l.$apply(function(){l.isOpen=!1}),c[0].focus()):40!==t.which||l.isOpen||(t.preventDefault(),t.stopPropagation(),l.$apply(function(){l.isOpen=!0}))};c.bind("keydown",E),l.keydown=function(t){27===t.which&&(l.isOpen=!1,c[0].focus())},l.$watch("isOpen",function(t){t?(l.position=y?i.offset(c):i.position(c),l.position.top=l.position.top+c.prop("offsetHeight"),u(function(){b&&l.$broadcast("datepicker.focus"),n.bind("click",A)},0,!1)):n.unbind("click",A)}),l.select=function(t){if("today"===t){var e=new Date;angular.isDate(l.date)?(t=new Date(l.date),t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate())):t=new Date(e.setHours(0,0,0,0))}l.dateSelection(t)},l.close=function(){l.isOpen=!1,c[0].focus()};var D=t(M)(l);M.remove(),y?n.find("body").append(D):c.after(D),l.$on("$destroy",function(){l.isOpen===!0&&(r.$$phase||l.$apply(function(){l.isOpen=!1})),D.remove(),c.unbind("keydown",E),n.unbind("click",A)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/datepicker/popup.html"}}}),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document","$rootScope",function(t,e){var n=null;this.open=function(e){n||(t.bind("click",r),t.bind("keydown",i)),n&&n!==e&&(n.isOpen=!1),n=e},this.close=function(e){n===e&&(n=null,t.unbind("click",r),t.unbind("keydown",i))};var r=function(t){if(n&&(!t||"disabled"!==n.getAutoClose())){var r=n.getToggleElement();if(!(t&&r&&r[0].contains(t.target))){var i=n.getDropdownElement();t&&"outsideClick"===n.getAutoClose()&&i&&i[0].contains(t.target)||(n.isOpen=!1,e.$$phase||n.$apply())}}},i=function(t){27===t.which?(n.focusToggleElement(),r()):n.isKeynavEnabled()&&/(38|40)/.test(t.which)&&n.isOpen&&(t.preventDefault(),t.stopPropagation(),n.focusDropdownEntry(t.which))}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate","$position","$document","$compile","$templateRequest",function(t,e,n,r,i,a,o,s,u,l){var c,f,d=this,p=t.$new(),h=r.openClass,g=angular.noop,m=e.onToggle?n(e.onToggle):angular.noop,v=!1,y=!1,b=s.find("body");this.init=function(r){d.$element=r,e.isOpen&&(f=n(e.isOpen),g=f.assign,t.$watch(f,function(t){p.isOpen=!!t})),v=angular.isDefined(e.dropdownAppendToBody),y=angular.isDefined(e.keyboardNav),v&&d.dropdownMenu&&(b.append(d.dropdownMenu),b.addClass("dropdown"),r.on("$destroy",function(){d.dropdownMenu.remove()}))},this.toggle=function(t){return p.isOpen=arguments.length?!!t:!p.isOpen},this.isOpen=function(){return p.isOpen},p.getToggleElement=function(){return d.toggleElement},p.getAutoClose=function(){return e.autoClose||"always"},p.getElement=function(){return d.$element},p.isKeynavEnabled=function(){return y},p.focusDropdownEntry=function(t){var e=d.dropdownMenu?angular.element(d.dropdownMenu).find("a"):angular.element(d.$element).find("ul").eq(0).find("a");switch(t){case 40:angular.isNumber(d.selectedOption)?d.selectedOption=d.selectedOption===e.length-1?d.selectedOption:d.selectedOption+1:d.selectedOption=0;break;case 38:angular.isNumber(d.selectedOption)?d.selectedOption=0===d.selectedOption?0:d.selectedOption-1:d.selectedOption=e.length-1}e[d.selectedOption].focus()},p.getDropdownElement=function(){return d.dropdownMenu},p.focusToggleElement=function(){d.toggleElement&&d.toggleElement[0].focus()},p.$watch("isOpen",function(e,n){if(v&&d.dropdownMenu){var r=o.positionElements(d.$element,d.dropdownMenu,"bottom-left",!0),s={top:r.top+"px",display:e?"block":"none"},f=d.dropdownMenu.hasClass("dropdown-menu-right");f?(s.left="auto",s.right=window.innerWidth-(r.left+d.$element.prop("offsetWidth"))+"px"):(s.left=r.left+"px",s.right="auto"),d.dropdownMenu.css(s)}var y=v?b:d.$element;if(a[e?"addClass":"removeClass"](y,h).then(function(){angular.isDefined(e)&&e!==n&&m(t,{open:!!e})}),e)d.dropdownMenuTemplateUrl&&l(d.dropdownMenuTemplateUrl).then(function(t){c=p.$new(),u(t.trim())(c,function(t){var e=t;d.dropdownMenu.replaceWith(e),d.dropdownMenu=e})}),p.focusToggleElement(),i.open(p);else{if(d.dropdownMenuTemplateUrl){c&&c.$destroy();var x=angular.element('<ul class="dropdown-menu"></ul>');d.dropdownMenu.replaceWith(x),d.dropdownMenu=x}i.close(p),d.selectedOption=null}angular.isFunction(g)&&g(t,e)}),t.$on("$locationChangeSuccess",function(){"disabled"!==p.getAutoClose()&&(p.isOpen=!1)});var x=t.$on("$destroy",function(){
|
||
p.$destroy()});p.$on("$destroy",x)}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(t,e,n,r){r.init(e),e.addClass("dropdown")}}}).directive("dropdownMenu",function(){return{restrict:"AC",require:"?^dropdown",link:function(t,e,n,r){if(r){var i=n.templateUrl;i&&(r.dropdownMenuTemplateUrl=i),r.dropdownMenu||(r.dropdownMenu=e)}}}}).directive("keyboardNav",function(){return{restrict:"A",require:"?^dropdown",link:function(t,e,n,r){e.bind("keydown",function(t){if(-1!==[38,40].indexOf(t.which)){t.preventDefault(),t.stopPropagation();var e=r.dropdownMenu.find("a");switch(t.which){case 40:angular.isNumber(r.selectedOption)?r.selectedOption=r.selectedOption===e.length-1?r.selectedOption:r.selectedOption+1:r.selectedOption=0;break;case 38:angular.isNumber(r.selectedOption)?r.selectedOption=0===r.selectedOption?0:r.selectedOption-1:r.selectedOption=e.length-1}e[r.selectedOption].focus()}})}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(t,e,n,r){if(r){e.addClass("dropdown-toggle"),r.toggleElement=e;var i=function(i){i.preventDefault(),e.hasClass("disabled")||n.disabled||t.$apply(function(){r.toggle()})};e.bind("click",i),e.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(r.isOpen,function(t){e.attr("aria-expanded",!!t)}),t.$on("$destroy",function(){e.unbind("click",i)})}}}}),angular.module("ui.bootstrap.modal",[]).factory("$$stackedMap",function(){return{createNew:function(){var t=[];return{add:function(e,n){t.push({key:e,value:n})},get:function(e){for(var n=0;n<t.length;n++)if(e==t[n].key)return t[n]},keys:function(){for(var e=[],n=0;n<t.length;n++)e.push(t[n].key);return e},top:function(){return t[t.length-1]},remove:function(e){for(var n=-1,r=0;r<t.length;r++)if(e==t[r].key){n=r;break}return t.splice(n,1)[0]},removeTop:function(){return t.splice(t.length-1,1)[0]},length:function(){return t.length}}}}}).factory("$$multiMap",function(){return{createNew:function(){var t={};return{entries:function(){return Object.keys(t).map(function(e){return{key:e,value:t[e]}})},get:function(e){return t[e]},hasKey:function(e){return!!t[e]},keys:function(){return Object.keys(t)},put:function(e,n){t[e]||(t[e]=[]),t[e].push(n)},remove:function(e,n){var r=t[e];if(r){var i=r.indexOf(n);-1!==i&&r.splice(i,1),r.length||delete t[e]}}}}}}).directive("modalBackdrop",["$animate","$injector","$modalStack",function(t,e,n){function r(e,r,a){a.modalInClass&&(i?i(r,{addClass:a.modalInClass}).start():t.addClass(r,a.modalInClass),e.$on(n.NOW_CLOSING_EVENT,function(e,n){var o=n();i?i(r,{removeClass:a.modalInClass}).start().then(o):t.removeClass(r,a.modalInClass).then(o)}))}var i=null;return e.has("$animateCss")&&(i=e.get("$animateCss")),{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(t,e){return t.addClass(e.backdropClass),r}}}]).directive("modalWindow",["$modalStack","$q","$animate","$injector",function(t,e,n,r){var i=null;return r.has("$animateCss")&&(i=r.get("$animateCss")),{restrict:"EA",scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/modal/window.html"},link:function(r,a,o){a.addClass(o.windowClass||""),r.size=o.size,r.close=function(e){var n=t.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),t.dismiss(n.key,"backdrop click"))},r.$isRendered=!0;var s=e.defer();o.$observe("modalRender",function(t){"true"==t&&s.resolve()}),s.promise.then(function(){var s=null;o.modalInClass&&(s=i?i(a,{addClass:o.modalInClass}).start():n.addClass(a,o.modalInClass),r.$on(t.NOW_CLOSING_EVENT,function(t,e){var r=e();i?i(a,{removeClass:o.modalInClass}).start().then(r):n.removeClass(a,o.modalInClass).then(r)})),e.when(s).then(function(){var t=a[0].querySelectorAll("[autofocus]");t.length?t[0].focus():a[0].focus()});var u=t.getTop();u&&t.modalRendered(u.key)})}}}]).directive("modalAnimationClass",[function(){return{compile:function(t,e){e.modalAnimation&&t.addClass(e.modalAnimationClass)}}}]).directive("modalTransclude",function(){return{link:function(t,e,n,r,i){i(t.$parent,function(t){e.empty(),e.append(t)})}}}).factory("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap",function(t,e,n,r,i,a,o,s,u){function l(){for(var t=-1,e=b.keys(),n=0;n<e.length;n++)b.get(e[n]).value.backdrop&&(t=n);return t}function c(t,e){var r=n.find("body").eq(0),i=b.get(t).value;b.remove(t),d(i.modalDomEl,i.modalScope,function(){var e=i.openedClass||y;x.remove(e,t),r.toggleClass(e,x.hasKey(e))}),f(),e&&e.focus?e.focus():r.focus()}function f(){if(g&&-1==l()){var t=m;d(g,m,function(){t=null}),g=void 0,m=void 0}}function d(e,n,r){function i(){i.done||(i.done=!0,h?h(e,{event:"leave"}).start().then(function(){e.remove()}):t.leave(e),n.$destroy(),r&&r())}var o,s=null,u=function(){return o||(o=a.defer(),s=o.promise),function(){o.resolve()}};return n.$broadcast($.NOW_CLOSING_EVENT,u),a.when(s).then(i)}function p(t,e,n){return!t.value.modalScope.$broadcast("modal.closing",e,n).defaultPrevented}var h=null;o.has("$animateCss")&&(h=o.get("$animateCss"));var g,m,v,y="modal-open",b=u.createNew(),x=s.createNew(),$={NOW_CLOSING_EVENT:"modal.stack.now-closing"},w=0,k="a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]";return i.$watch(l,function(t){m&&(m.index=t)}),n.bind("keydown",function(t){if(t.isDefaultPrevented())return t;var e=b.top();if(e&&e.value.keyboard)switch(t.which){case 27:t.preventDefault(),i.$apply(function(){$.dismiss(e.key,"escape key press")});break;case 9:$.loadFocusElementList(e);var n=!1;t.shiftKey?$.isFocusInFirstItem(t)&&(n=$.focusLastFocusableElement()):$.isFocusInLastItem(t)&&(n=$.focusFirstFocusableElement()),n&&(t.preventDefault(),t.stopPropagation())}}),$.open=function(t,e){var a=n[0].activeElement,o=e.openedClass||y;b.add(t,{deferred:e.deferred,renderDeferred:e.renderDeferred,modalScope:e.scope,backdrop:e.backdrop,keyboard:e.keyboard,openedClass:e.openedClass}),x.put(o,t);var s=n.find("body").eq(0),u=l();if(u>=0&&!g){m=i.$new(!0),m.index=u;var c=angular.element('<div modal-backdrop="modal-backdrop"></div>');c.attr("backdrop-class",e.backdropClass),e.animation&&c.attr("modal-animation","true"),g=r(c)(m),s.append(g)}var f=angular.element('<div modal-window="modal-window"></div>');f.attr({"template-url":e.windowTemplateUrl,"window-class":e.windowClass,size:e.size,index:b.length()-1,animate:"animate"}).html(e.content),e.animation&&f.attr("modal-animation","true");var d=r(f)(e.scope);b.top().value.modalDomEl=d,b.top().value.modalOpener=a,s.append(d),s.addClass(o),$.clearFocusListCache()},$.close=function(t,e){var n=b.get(t);return n&&p(n,e,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(e),c(t,n.value.modalOpener),!0):!n},$.dismiss=function(t,e){var n=b.get(t);return n&&p(n,e,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(e),c(t,n.value.modalOpener),!0):!n},$.dismissAll=function(t){for(var e=this.getTop();e&&this.dismiss(e.key,t);)e=this.getTop()},$.getTop=function(){return b.top()},$.modalRendered=function(t){var e=b.get(t);e&&e.value.renderDeferred.resolve()},$.focusFirstFocusableElement=function(){return v.length>0?(v[0].focus(),!0):!1},$.focusLastFocusableElement=function(){return v.length>0?(v[v.length-1].focus(),!0):!1},$.isFocusInFirstItem=function(t){return v.length>0?(t.target||t.srcElement)==v[0]:!1},$.isFocusInLastItem=function(t){return v.length>0?(t.target||t.srcElement)==v[v.length-1]:!1},$.clearFocusListCache=function(){v=[],w=0},$.loadFocusElementList=function(t){if((void 0===v||!v.length0)&&t){var e=t.value.modalDomEl;e&&e.length&&(v=e[0].querySelectorAll(k))}},$}]).provider("$modal",function(){var t={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$modalStack",function(e,n,r,i,a,o){function s(t){return t.template?r.when(t.template):i(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl)}function u(t){var n=[];return angular.forEach(t,function(t){angular.isFunction(t)||angular.isArray(t)?n.push(r.when(e.invoke(t))):angular.isString(t)?n.push(r.when(e.get(t))):n.push(r.when(t))}),n}var l={},c=null;return l.getPromiseChain=function(){return c},l.open=function(e){var i=r.defer(),l=r.defer(),f=r.defer(),d={result:i.promise,opened:l.promise,rendered:f.promise,close:function(t){return o.close(d,t)},dismiss:function(t){return o.dismiss(d,t)}};if(e=angular.extend({},t.options,e),e.resolve=e.resolve||{},!e.template&&!e.templateUrl)throw new Error("One of template or templateUrl options is required.");var p,h=r.all([s(e)].concat(u(e.resolve)));return p=c=r.all([c]).then(function(){return h},function(){return h}).then(function(t){var r=(e.scope||n).$new();r.$close=d.close,r.$dismiss=d.dismiss,r.$on("$destroy",function(){r.$$uibDestructionScheduled||r.$dismiss("$uibUnscheduledDestruction")});var s,u={},c=1;e.controller&&(u.$scope=r,u.$modalInstance=d,angular.forEach(e.resolve,function(e,n){u[n]=t[c++]}),s=a(e.controller,u),e.controllerAs&&(e.bindToController&&angular.extend(s,r),r[e.controllerAs]=s)),o.open(d,{scope:r,deferred:i,renderDeferred:f,content:t[0],animation:e.animation,backdrop:e.backdrop,keyboard:e.keyboard,backdropClass:e.backdropClass,windowClass:e.windowClass,windowTemplateUrl:e.windowTemplateUrl,size:e.size,openedClass:e.openedClass}),l.resolve(!0)},function(t){l.reject(t),i.reject(t)})["finally"](function(){c===p&&(c=null)}),d},l}]};return t}),angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(t,e,n){var r=this,i={$setViewValue:angular.noop},a=e.numPages?n(e.numPages).assign:angular.noop;this.init=function(o,s){i=o,this.config=s,i.$render=function(){r.render()},e.itemsPerPage?t.$parent.$watch(n(e.itemsPerPage),function(e){r.itemsPerPage=parseInt(e,10),t.totalPages=r.calculateTotalPages()}):this.itemsPerPage=s.itemsPerPage,t.$watch("totalItems",function(){t.totalPages=r.calculateTotalPages()}),t.$watch("totalPages",function(e){a(t.$parent,e),t.page>e?t.selectPage(e):i.$render()})},this.calculateTotalPages=function(){var e=this.itemsPerPage<1?1:Math.ceil(t.totalItems/this.itemsPerPage);return Math.max(e||0,1)},this.render=function(){t.page=parseInt(i.$viewValue,10)||1},t.selectPage=function(e,n){n&&n.preventDefault();var r=!t.ngDisabled||!n;r&&t.page!==e&&e>0&&e<=t.totalPages&&(n&&n.target&&n.target.blur(),i.$setViewValue(e),i.$render())},t.getText=function(e){return t[e+"Text"]||r.config[e+"Text"]},t.noPrevious=function(){return 1===t.page},t.noNext=function(){return t.page===t.totalPages}}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(t,e){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["pagination","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(t,e){return e.templateUrl||"template/pagination/pagination.html"},replace:!0,link:function(n,r,i,a){function o(t,e,n){return{number:t,text:e,active:n}}function s(t,e){var n=[],r=1,i=e,a=angular.isDefined(c)&&e>c;a&&(f?(r=Math.max(t-Math.floor(c/2),1),i=r+c-1,i>e&&(i=e,r=i-c+1)):(r=(Math.ceil(t/c)-1)*c+1,i=Math.min(r+c-1,e)));for(var s=r;i>=s;s++){var u=o(s,s,s===t);n.push(u)}if(a&&!f){if(r>1){var l=o(r-1,"...",!1);n.unshift(l)}if(e>i){var d=o(i+1,"...",!1);n.push(d)}}return n}var u=a[0],l=a[1];if(l){var c=angular.isDefined(i.maxSize)?n.$parent.$eval(i.maxSize):e.maxSize,f=angular.isDefined(i.rotate)?n.$parent.$eval(i.rotate):e.rotate;n.boundaryLinks=angular.isDefined(i.boundaryLinks)?n.$parent.$eval(i.boundaryLinks):e.boundaryLinks,n.directionLinks=angular.isDefined(i.directionLinks)?n.$parent.$eval(i.directionLinks):e.directionLinks,u.init(l,e),i.maxSize&&n.$parent.$watch(t(i.maxSize),function(t){c=parseInt(t,10),u.render()});var d=u.render;u.render=function(){d(),n.page>0&&n.page<=n.totalPages&&(n.pages=s(n.page,n.totalPages))}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(t){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["pager","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(t,e){return e.templateUrl||"template/pagination/pager.html"},replace:!0,link:function(e,n,r,i){var a=i[0],o=i[1];o&&(e.align=angular.isDefined(r.align)?e.$parent.$eval(r.align):t.align,a.init(o,t))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function t(t){var e=/[A-Z]/g,n="-";return t.replace(e,function(t,e){return(e?n:"")+t.toLowerCase()})}var e={placement:"top",animation:!0,popupDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",focus:"blur",none:""},r={};this.options=function(t){angular.extend(r,t)},this.setTriggers=function(t){angular.extend(n,t)},this.$get=["$window","$compile","$timeout","$document","$position","$interpolate","$rootScope","$parse",function(i,a,o,s,u,l,c,f){return function(i,d,p,h){function g(t){var e=(t||h.trigger||p).split(" "),r=e.map(function(t){return n[t]||t});return{show:e,hide:r}}h=angular.extend({},e,r,h);var m=t(i),v=l.startSymbol(),y=l.endSymbol(),b="<div "+m+'-popup title="'+v+"title"+y+'" '+(h.useContentExp?'content-exp="contentExp()" ':'content="'+v+"content"+y+'" ')+'placement="'+v+"placement"+y+'" popup-class="'+v+"popupClass"+y+'" animation="animation" is-open="isOpen"origin-scope="origScope" ></div>';return{restrict:"EA",compile:function(t,e){var n=a(b);return function(t,e,r,a){function l(){P.isOpen?m():p()}function p(){(!N||t.$eval(r[d+"Enable"]))&&($(),P.popupDelay?D||(D=o(v,P.popupDelay,!1)):v())}function m(){y(),c.$$phase||c.$digest()}function v(){return D=null,E&&(o.cancel(E),E=null),(h.useContentExp?P.contentExp():P.content)?(b(),P.isOpen=!0,j&&j.assign(P.origScope,P.isOpen),c.$$phase||P.$apply(),S.css({display:"block"}),void I()):angular.noop}function y(){P.isOpen=!1,j&&j.assign(P.origScope,P.isOpen),o.cancel(D),D=null,o.cancel(_),_=null,P.animation?E||(E=o(x,500)):x()}function b(){S&&x(),A=P.$new(),S=n(A,function(t){T?s.find("body").append(t):e.after(t)}),h.useContentExp&&(A.$watch("contentExp()",function(t){!t&&P.isOpen&&y()}),A.$watch(function(){F||(F=!0,A.$$postDigest(function(){F=!1,P.isOpen&&I()}))}))}function x(){E=null,S&&(S.remove(),S=null),A&&(A.$destroy(),A=null)}function $(){w(),k(),M()}function w(){P.popupClass=r[d+"Class"]}function k(){var t=r[d+"Placement"];P.placement=angular.isDefined(t)?t:h.placement}function M(){var t=r[d+"PopupDelay"],e=parseInt(t,10);P.popupDelay=isNaN(e)?h.popupDelay:e}function C(){var t=r[d+"Trigger"];L(),O=g(t),"none"!==O.show&&O.show.forEach(function(t,n){t===O.hide[n]?e[0].addEventListener(t,l):t&&(e[0].addEventListener(t,p),e[0].addEventListener(O.hide[n],m))})}var S,A,E,D,_,T=angular.isDefined(h.appendToBody)?h.appendToBody:!1,O=g(void 0),N=angular.isDefined(r[d+"Enable"]),P=t.$new(!0),F=!1,j=angular.isDefined(r[d+"IsOpen"])?f(r[d+"IsOpen"]):!1,I=function(){S&&(_||(_=o(function(){S.css({top:0,left:0,width:"auto",height:"auto"});var t=u.position(S),n=u.positionElements(e,S,P.placement,T);n.top+="px",n.left+="px",n.width=t.width+"px",n.height=t.height+"px",S.css(n),_=null},0,!1)))};P.origScope=t,P.isOpen=!1,P.contentExp=function(){return t.$eval(r[i])},h.useContentExp||r.$observe(i,function(t){P.content=t,!t&&P.isOpen?y():I()}),r.$observe("disabled",function(t){D&&t&&(o.cancel(D),D=null),t&&P.isOpen&&y()}),r.$observe(d+"Title",function(t){P.title=t,I()}),r.$observe(d+"Placement",function(){P.isOpen&&(k(),I())}),j&&t.$watch(j,function(t){t!==P.isOpen&&l()});var L=function(){O.show.forEach(function(t){e.unbind(t,p)}),O.hide.forEach(function(t){e.unbind(t,m)})};C();var q=t.$eval(r[d+"Animation"]);P.animation=angular.isDefined(q)?!!q:h.animation;var H=t.$eval(r[d+"AppendToBody"]);T=angular.isDefined(H)?H:T,T&&t.$on("$locationChangeSuccess",function(){P.isOpen&&y()}),t.$on("$destroy",function(){o.cancel(E),o.cancel(D),o.cancel(_),L(),x(),P=null})}}}}}]}).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(t,e,n,r){return{link:function(i,a,o){var s,u,l,c=i.$eval(o.tooltipTemplateTranscludeScope),f=0,d=function(){u&&(u.remove(),u=null),s&&(s.$destroy(),s=null),l&&(t.leave(l).then(function(){u=null}),u=l,l=null)};i.$watch(e.parseAsResourceUrl(o.tooltipTemplateTransclude),function(e){var o=++f;e?(r(e,!0).then(function(r){if(o===f){var i=c.$new(),u=r,p=n(u)(i,function(e){d(),t.enter(e,a)});s=i,l=p,s.$emit("$includeContentLoaded",e)}},function(){o===f&&(d(),i.$emit("$includeContentError",e))}),i.$emit("$includeContentRequested",e)):d()}),i.$on("$destroy",d)}}}]).directive("tooltipClasses",function(){return{restrict:"A",link:function(t,e,n){t.placement&&e.addClass(t.placement),t.popupClass&&e.addClass(t.popupClass),t.animation()&&e.addClass(n.tooltipAnimationClass)}}}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(t){return t("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html"}}).directive("tooltipTemplate",["$tooltip",function(t){return t("tooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlPopup",function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html"}}).directive("tooltipHtml",["$tooltip",function(t){return t("tooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).value("tooltipHtmlUnsafeSuppressDeprecated",!1).directive("tooltipHtmlUnsafe",["$tooltip","tooltipHtmlUnsafeSuppressDeprecated","$log",function(t,e,n){return e||n.warn("tooltip-html-unsafe is now deprecated. Use tooltip-html or tooltip-template instead."),t("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverTemplatePopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html"}}).directive("popoverTemplate",["$tooltip",function(t){return t("popoverTemplate","popover","click",{useContentExp:!0})}]).directive("popoverHtmlPopup",function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html"}}).directive("popoverHtml",["$tooltip",function(t){return t("popoverHtml","popover","click",{useContentExp:!0})}]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(t){return t("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).value("$progressSuppressWarning",!1).controller("ProgressController",["$scope","$attrs","progressConfig",function(t,e,n){var r=this,i=angular.isDefined(e.animate)?t.$parent.$eval(e.animate):n.animate;this.bars=[],t.max=angular.isDefined(t.max)?t.max:n.max,this.addBar=function(e,n){i||n.css({transition:"none"}),this.bars.push(e),e.max=t.max,e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){e.percent=+(100*e.value/e.max).toFixed(2);var t=r.bars.reduce(function(t,e){return t+e.percent},0);t>100&&(e.percent-=t-100)},e.$on("$destroy",function(){n=null,r.removeBar(e)})},this.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1)},t.$watch("max",function(e){r.bars.forEach(function(e){e.max=t.max,e.recalculatePercentage()})})}]).directive("uibProgress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"uibProgress",scope:{max:"=?"},templateUrl:"template/progressbar/progress.html"}}).directive("progress",["$log","$progressSuppressWarning",function(t,e){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{max:"=?"},templateUrl:"template/progressbar/progress.html",link:function(){e&&t.warn("progress is now deprecated. Use uib-progress instead")}}}]).directive("uibBar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(t,e,n,r){r.addBar(t,e)}}}).directive("bar",["$log","$progressSuppressWarning",function(t,e){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(n,r,i,a){e&&t.warn("bar is now deprecated. Use uib-bar instead"),a.addBar(n,r)}}}]).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(t,e,n,r){r.addBar(t,angular.element(e.children()[0]))}}}),angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null,titles:["one","two","three","four","five"]}).controller("RatingController",["$scope","$attrs","ratingConfig",function(t,e,n){var r={$setViewValue:angular.noop};this.init=function(i){r=i,r.$render=this.render,r.$formatters.push(function(t){return angular.isNumber(t)&&t<<0!==t&&(t=Math.round(t)),t}),this.stateOn=angular.isDefined(e.stateOn)?t.$parent.$eval(e.stateOn):n.stateOn,this.stateOff=angular.isDefined(e.stateOff)?t.$parent.$eval(e.stateOff):n.stateOff;var a=angular.isDefined(e.titles)?t.$parent.$eval(e.titles):n.titles;this.titles=angular.isArray(a)&&a.length>0?a:n.titles;var o=angular.isDefined(e.ratingStates)?t.$parent.$eval(e.ratingStates):new Array(angular.isDefined(e.max)?t.$parent.$eval(e.max):n.max);t.range=this.buildTemplateObjects(o)},this.buildTemplateObjects=function(t){for(var e=0,n=t.length;n>e;e++)t[e]=angular.extend({index:e},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(e)},t[e]);return t},this.getTitle=function(t){return t>=this.titles.length?t+1:this.titles[t]},t.rate=function(e){!t.readonly&&e>=0&&e<=t.range.length&&(r.$setViewValue(r.$viewValue===e?0:e),r.$render())},t.enter=function(e){t.readonly||(t.value=e),t.onHover({value:e})},t.reset=function(){t.value=r.$viewValue,t.onLeave()},t.onKeydown=function(e){/(37|38|39|40)/.test(e.which)&&(e.preventDefault(),e.stopPropagation(),t.rate(t.value+(38===e.which||39===e.which?1:-1)))},this.render=function(){t.value=r.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(t,e,n,r){var i=r[0],a=r[1];i.init(a)}}}),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(t){var e=this,n=e.tabs=t.tabs=[];e.select=function(t){angular.forEach(n,function(e){e.active&&e!==t&&(e.active=!1,e.onDeselect(),t.selectCalled=!1)}),t.active=!0,t.selectCalled||(t.onSelect(),t.selectCalled=!0)},e.addTab=function(t){n.push(t),1===n.length&&t.active!==!1?t.active=!0:t.active?e.select(t):t.active=!1},e.removeTab=function(t){var i=n.indexOf(t);if(t.active&&n.length>1&&!r){var a=i==n.length-1?i-1:i+1;e.select(n[a])}n.splice(i,1)};var r;t.$on("$destroy",function(){r=!0})}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(t,e,n){t.vertical=angular.isDefined(n.vertical)?t.$parent.$eval(n.vertical):!1,t.justified=angular.isDefined(n.justified)?t.$parent.$eval(n.justified):!1}}}).directive("tab",["$parse","$log",function(t,e){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(n,r,i,a,o){n.$watch("active",function(t){t&&a.select(n)}),n.disabled=!1,i.disable&&n.$parent.$watch(t(i.disable),function(t){n.disabled=!!t}),i.disabled&&(e.warn('Use of "disabled" attribute has been deprecated, please use "disable"'),n.$parent.$watch(t(i.disabled),function(t){n.disabled=!!t})),n.select=function(){n.disabled||(n.active=!0)},a.addTab(n),n.$on("$destroy",function(){a.removeTab(n)}),n.$transcludeFn=o}}}]).directive("tabHeadingTransclude",function(){return{restrict:"A",require:"^tab",link:function(t,e,n,r){t.$watch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}).directive("tabContentTransclude",function(){function t(t){return t.tagName&&(t.hasAttribute("tab-heading")||t.hasAttribute("data-tab-heading")||t.hasAttribute("x-tab-heading")||"tab-heading"===t.tagName.toLowerCase()||"data-tab-heading"===t.tagName.toLowerCase()||"x-tab-heading"===t.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(e,n,r){var i=e.$eval(r.tabContentTransclude);i.$transcludeFn(i.$parent,function(e){angular.forEach(e,function(e){t(e)?i.headingElement=e:n.append(e)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(t,e,n,r,i,a){function o(){var e=parseInt(t.hours,10),n=t.showMeridian?e>0&&13>e:e>=0&&24>e;return n?(t.showMeridian&&(12===e&&(e=0),t.meridian===m[1]&&(e+=12)),e):void 0}function s(){var e=parseInt(t.minutes,10);return e>=0&&60>e?e:void 0}function u(t){return angular.isDefined(t)&&t.toString().length<2?"0"+t:t.toString()}function l(t){c(),g.$setViewValue(new Date(h)),f(t)}function c(){g.$setValidity("time",!0),t.invalidHours=!1,t.invalidMinutes=!1}function f(e){var n=h.getHours(),r=h.getMinutes();t.showMeridian&&(n=0===n||12===n?12:n%12),t.hours="h"===e?n:u(n),"m"!==e&&(t.minutes=u(r)),t.meridian=h.getHours()<12?m[0]:m[1]}function d(t,e){var n=new Date(t.getTime()+6e4*e),r=new Date(t);return r.setHours(n.getHours(),n.getMinutes()),r}function p(t){h=d(h,t),l()}var h=new Date,g={$setViewValue:angular.noop},m=angular.isDefined(e.meridians)?t.$parent.$eval(e.meridians):a.meridians||i.DATETIME_FORMATS.AMPMS;this.init=function(n,r){g=n,g.$render=this.render,g.$formatters.unshift(function(t){return t?new Date(t):null});var i=r.eq(0),o=r.eq(1),s=angular.isDefined(e.mousewheel)?t.$parent.$eval(e.mousewheel):a.mousewheel;s&&this.setupMousewheelEvents(i,o);var u=angular.isDefined(e.arrowkeys)?t.$parent.$eval(e.arrowkeys):a.arrowkeys;u&&this.setupArrowkeyEvents(i,o),t.readonlyInput=angular.isDefined(e.readonlyInput)?t.$parent.$eval(e.readonlyInput):a.readonlyInput,this.setupInputEvents(i,o)};var v=a.hourStep;e.hourStep&&t.$parent.$watch(n(e.hourStep),function(t){v=parseInt(t,10)});var y=a.minuteStep;e.minuteStep&&t.$parent.$watch(n(e.minuteStep),function(t){y=parseInt(t,10)});var b;t.$parent.$watch(n(e.min),function(t){var e=new Date(t);b=isNaN(e)?void 0:e});var x;t.$parent.$watch(n(e.max),function(t){var e=new Date(t);x=isNaN(e)?void 0:e}),t.noIncrementHours=function(){var t=d(h,60*v);return t>x||h>t&&b>t},t.noDecrementHours=function(){var t=d(h,60*-v);return b>t||t>h&&t>x},t.noIncrementMinutes=function(){var t=d(h,y);return t>x||h>t&&b>t},t.noDecrementMinutes=function(){var t=d(h,-y);return b>t||t>h&&t>x},t.noToggleMeridian=function(){return h.getHours()<13?d(h,720)>x:d(h,-720)<b},t.showMeridian=a.showMeridian,e.showMeridian&&t.$parent.$watch(n(e.showMeridian),function(e){if(t.showMeridian=!!e,g.$error.time){var n=o(),r=s();angular.isDefined(n)&&angular.isDefined(r)&&(h.setHours(n),l())}else f()}),this.setupMousewheelEvents=function(e,n){var r=function(t){t.originalEvent&&(t=t.originalEvent);var e=t.wheelDelta?t.wheelDelta:-t.deltaY;return t.detail||e>0};e.bind("mousewheel wheel",function(e){t.$apply(r(e)?t.incrementHours():t.decrementHours()),e.preventDefault()}),n.bind("mousewheel wheel",function(e){t.$apply(r(e)?t.incrementMinutes():t.decrementMinutes()),e.preventDefault()})},this.setupArrowkeyEvents=function(e,n){e.bind("keydown",function(e){38===e.which?(e.preventDefault(),t.incrementHours(),t.$apply()):40===e.which&&(e.preventDefault(),t.decrementHours(),t.$apply())}),n.bind("keydown",function(e){38===e.which?(e.preventDefault(),t.incrementMinutes(),t.$apply()):40===e.which&&(e.preventDefault(),t.decrementMinutes(),t.$apply())})},this.setupInputEvents=function(e,n){if(t.readonlyInput)return t.updateHours=angular.noop,void(t.updateMinutes=angular.noop);var r=function(e,n){g.$setViewValue(null),g.$setValidity("time",!1),angular.isDefined(e)&&(t.invalidHours=e),angular.isDefined(n)&&(t.invalidMinutes=n)};t.updateHours=function(){var t=o(),e=s();angular.isDefined(t)&&angular.isDefined(e)?(h.setHours(t),b>h||h>x?r(!0):l("h")):r(!0)},e.bind("blur",function(e){!t.invalidHours&&t.hours<10&&t.$apply(function(){t.hours=u(t.hours)})}),t.updateMinutes=function(){var t=s(),e=o();angular.isDefined(t)&&angular.isDefined(e)?(h.setMinutes(t),b>h||h>x?r(void 0,!0):l("m")):r(void 0,!0)},n.bind("blur",function(e){!t.invalidMinutes&&t.minutes<10&&t.$apply(function(){t.minutes=u(t.minutes)})})},this.render=function(){var e=g.$viewValue;isNaN(e)?(g.$setValidity("time",!1),r.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(e&&(h=e),b>h||h>x?(g.$setValidity("time",!1),t.invalidHours=!0,t.invalidMinutes=!0):c(),f())},t.showSpinners=angular.isDefined(e.showSpinners)?t.$parent.$eval(e.showSpinners):a.showSpinners,t.incrementHours=function(){t.noIncrementHours()||p(60*v)},t.decrementHours=function(){t.noDecrementHours()||p(60*-v)},t.incrementMinutes=function(){t.noIncrementMinutes()||p(y)},t.decrementMinutes=function(){t.noDecrementMinutes()||p(-y)},t.toggleMeridian=function(){t.noToggleMeridian()||p(720*(h.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(t,e){return e.templateUrl||"template/timepicker/timepicker.html"},link:function(t,e,n,r){var i=r[0],a=r[1];a&&i.init(a,e.find("input"))}}}),angular.module("ui.bootstrap.transition",[]).value("$transitionSuppressDeprecated",!1).factory("$transition",["$q","$timeout","$rootScope","$log","$transitionSuppressDeprecated",function(t,e,n,r,i){function a(t){for(var e in t)if(void 0!==s.style[e])return t[e]}i||r.warn("$transition is now deprecated. Use $animate from ngAnimate instead.");var o=function(r,i,a){a=a||{};var s=t.defer(),u=o[a.animation?"animationEndEventName":"transitionEndEventName"],l=function(t){n.$apply(function(){r.unbind(u,l),s.resolve(r)})};return u&&r.bind(u,l),e(function(){angular.isString(i)?r.addClass(i):angular.isFunction(i)?i(r):angular.isObject(i)&&r.css(i),u||s.resolve(r)}),s.promise.cancel=function(){
|
||
u&&r.unbind(u,l),s.reject("Transition cancelled")},s.promise},s=document.createElement("trans"),u={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},l={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return o.transitionEndEventName=a(u),o.animationEndEventName=a(l),o}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position"]).factory("typeaheadParser",["$parse",function(t){var e=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var r=n.match(e);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:r[3],source:t(r[4]),viewMapper:t(r[2]||r[1]),modelMapper:t(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$window","$rootScope","$position","typeaheadParser",function(t,e,n,r,i,a,o,s,u){var l=[9,13,27,38,40],c=200;return{require:["ngModel","^?ngModelOptions"],link:function(f,d,p,h){function g(){j.moveInProgress||(j.moveInProgress=!0,j.$digest()),z&&r.cancel(z),z=r(function(){j.matches.length&&m(),j.moveInProgress=!1,j.$digest()},c)}function m(){j.position=D?s.offset(d):s.position(d),j.position.top+=d.prop("offsetHeight")}var v=h[0],y=h[1],b=f.$eval(p.typeaheadMinLength);b||0===b||(b=1);var x,$,w=f.$eval(p.typeaheadWaitMs)||0,k=f.$eval(p.typeaheadEditable)!==!1,M=e(p.typeaheadLoading).assign||angular.noop,C=e(p.typeaheadOnSelect),S=angular.isDefined(p.typeaheadSelectOnBlur)?f.$eval(p.typeaheadSelectOnBlur):!1,A=e(p.typeaheadNoResults).assign||angular.noop,E=p.typeaheadInputFormatter?e(p.typeaheadInputFormatter):void 0,D=p.typeaheadAppendToBody?f.$eval(p.typeaheadAppendToBody):!1,_=f.$eval(p.typeaheadFocusFirst)!==!1,T=p.typeaheadSelectOnExact?f.$eval(p.typeaheadSelectOnExact):!1,O=e(p.ngModel),N=e(p.ngModel+"($$$p)"),P=function(t,e){return angular.isFunction(O(f))&&y&&y.$options&&y.$options.getterSetter?N(t,{$$$p:e}):O.assign(t,e)},F=u.parse(p.typeahead),j=f.$new(),I=f.$on("$destroy",function(){j.$destroy()});j.$on("$destroy",I);var L="typeahead-"+j.$id+"-"+Math.floor(1e4*Math.random());d.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":L});var q=angular.element("<div typeahead-popup></div>");q.attr({id:L,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(p.typeaheadTemplateUrl)&&q.attr("template-url",p.typeaheadTemplateUrl),angular.isDefined(p.typeaheadPopupTemplateUrl)&&q.attr("popup-template-url",p.typeaheadPopupTemplateUrl);var H=function(){j.matches=[],j.activeIdx=-1,d.attr("aria-expanded",!1)},V=function(t){return L+"-option-"+t};j.$watch("activeIdx",function(t){0>t?d.removeAttr("aria-activedescendant"):d.attr("aria-activedescendant",V(t))});var R=function(t,e){return j.matches.length>e&&t?t.toUpperCase()===j.matches[e].label.toUpperCase():!1},W=function(t){var e={$viewValue:t};M(f,!0),A(f,!1),n.when(F.source(f,e)).then(function(n){var r=t===v.$viewValue;if(r&&x)if(n&&n.length>0){j.activeIdx=_?0:-1,A(f,!1),j.matches.length=0;for(var i=0;i<n.length;i++)e[F.itemName]=n[i],j.matches.push({id:V(i),label:F.viewMapper(j,e),model:n[i]});j.query=t,m(),d.attr("aria-expanded",!0),T&&1===j.matches.length&&R(t,0)&&j.select(0)}else H(),A(f,!0);r&&M(f,!1)},function(){H(),M(f,!1),A(f,!0)})};D&&(angular.element(a).bind("resize",g),i.find("body").bind("scroll",g));var z;j.moveInProgress=!1,H(),j.query=void 0;var U,Y=function(t){U=r(function(){W(t)},w)},B=function(){U&&r.cancel(U)};v.$parsers.unshift(function(t){return x=!0,0===b||t&&t.length>=b?w>0?(B(),Y(t)):W(t):(M(f,!1),B(),H()),k?t:t?void v.$setValidity("editable",!1):(v.$setValidity("editable",!0),null)}),v.$formatters.push(function(t){var e,n,r={};return k||v.$setValidity("editable",!0),E?(r.$model=t,E(f,r)):(r[F.itemName]=t,e=F.viewMapper(f,r),r[F.itemName]=void 0,n=F.viewMapper(f,r),e!==n?e:t)}),j.select=function(t){var e,n,i={};$=!0,i[F.itemName]=n=j.matches[t].model,e=F.modelMapper(f,i),P(f,e),v.$setValidity("editable",!0),v.$setValidity("parse",!0),C(f,{$item:n,$model:e,$label:F.viewMapper(f,i)}),H(),j.$eval(p.typeaheadFocusOnSelect)!==!1&&r(function(){d[0].focus()},0,!1)},d.bind("keydown",function(t){if(0!==j.matches.length&&-1!==l.indexOf(t.which)){if(-1===j.activeIdx&&(9===t.which||13===t.which))return H(),void j.$digest();t.preventDefault(),40===t.which?(j.activeIdx=(j.activeIdx+1)%j.matches.length,j.$digest()):38===t.which?(j.activeIdx=(j.activeIdx>0?j.activeIdx:j.matches.length)-1,j.$digest()):13===t.which||9===t.which?j.$apply(function(){j.select(j.activeIdx)}):27===t.which&&(t.stopPropagation(),H(),j.$digest())}}),d.bind("blur",function(){S&&j.matches.length&&-1!==j.activeIdx&&!$&&($=!0,j.$apply(function(){j.select(j.activeIdx)})),x=!1,$=!1});var G=function(t){d[0]!==t.target&&3!==t.which&&0!==j.matches.length&&(H(),o.$$phase||j.$digest())};i.bind("click",G),f.$on("$destroy",function(){i.unbind("click",G),D&&X.remove(),q.remove()});var X=t(q)(j);D?i.find("body").append(X):d.after(X)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:!0,templateUrl:function(t,e){return e.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(t,e,n){t.templateUrl=n.templateUrl,t.isOpen=function(){return t.matches.length>0},t.isActive=function(e){return t.active==e},t.selectActive=function(e){t.active=e},t.selectMatch=function(e){t.select({activeIdx:e})}}}}).directive("typeaheadMatch",["$templateRequest","$compile","$parse",function(t,e,n){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(r,i,a){var o=n(a.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";t(o).then(function(t){e(t.trim())(r,function(t){i.replaceWith(t)})})}}}]).filter("typeaheadHighlight",["$sce","$injector","$log",function(t,e,n){function r(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}function i(t){return/<.*>/g.test(t)}var a;return a=e.has("$sanitize"),function(e,o){return!a&&i(e)&&n.warn("Unsafe use of typeahead please use ngSanitize"),e=o?(""+e).replace(new RegExp(r(o),"gi"),"<strong>$&</strong>"):e,a||(e=t.trustAsHtml(e)),e}}]),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion-group.html",'<div class="panel {{panelClass || \'panel-default\'}}">\n <div class="panel-heading" ng-keypress="toggleOpen($event)">\n <h4 class="panel-title">\n <a href tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n </div>\n <div class="panel-collapse collapse" collapse="!isOpen">\n <div class="panel-body" ng-transclude></div>\n </div>\n</div>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close($event)">\n <span aria-hidden="true">×</span>\n <span class="sr-only">Close</span>\n </button>\n <div ng-transclude></div>\n</div>\n')}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(t){t.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"></li>\n </ol>\n <div class="carousel-inner" ng-transclude></div>\n <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"></span></a>\n <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"></span></a>\n</div>\n')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(t){t.put("template/carousel/slide.html",'<div ng-class="{\n \'active\': active\n }" class="item text-center" ng-transclude></div>\n')}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n <daypicker ng-switch-when="day" tabindex="0"></daypicker>\n <monthpicker ng-switch-when="month" tabindex="0"></monthpicker>\n <yearpicker ng-switch-when="year" tabindex="0"></yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n <tr>\n <th ng-if="showWeeks" class="text-center"></th>\n <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-if="isOpen" style="display: block" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n <li ng-transclude></li>\n <li ng-if="showButtonBar" style="padding:10px 9px 2px">\n <span class="btn-group pull-left">\n <button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n <button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n </span>\n <button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n </li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="3"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}">\n <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(t){t.put("template/modal/backdrop.html",'<div class="modal-backdrop"\n modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(t){t.put("template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n <div class="modal-dialog" ng-class="size ? \'modal-\' + size : \'\'"><div class="modal-content" modal-transclude></div></div>\n</div>\n')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pager.html",'<ul class="pager">\n <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>\n')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pagination.html",'<ul class="pagination">\n <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),angular.module("template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("template/popover/popover-html.html",[]).run(["$templateCache",function(t){t.put("template/popover/popover-html.html",'<div class="popover"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind-html="contentExp()"></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover-template.html",[]).run(["$templateCache",function(t){t.put("template/popover/popover-template.html",'<div class="popover"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content"\n tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("template/popover/popover.html",'<div class="popover"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n <div class="popover-content" ng-bind="content"></div>\n </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" style="min-width: 0;" ng-transclude></div>\n')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progress.html",'<div class="progress" ng-transclude></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" style="min-width: 0;" ng-transclude></div>\n</div>\n')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}" ></i>\n</span>\n')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n <a href ng-click="select()" tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane" \n ng-repeat="tab in tabs" \n ng-class="{active: tab.active}"\n tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(t){t.put("template/timepicker/timepicker.html",'<table>\n <tbody>\n <tr class="text-center" ng-show="::showSpinners">\n <td><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td> </td>\n <td><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n <tr>\n <td class="form-group" ng-class="{\'has-error\': invalidHours}">\n <input style="width:50px;" type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2">\n </td>\n <td>:</td>\n <td class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n <input style="width:50px;" type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2">\n </td>\n <td ng-show="showMeridian"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n </tr>\n <tr class="text-center" ng-show="::showSpinners">\n <td><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td> </td>\n <td><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-match.html",'<a href tabindex="-1" ng-bind-html="match.label | typeaheadHighlight:query"></a>\n')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{::match.id}}">\n <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}]),!angular.$$csp()&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),
|
||
//! license : MIT
|
||
//! momentjs.com
|
||
function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Pn.apply(null,arguments)}function e(t){Pn=t}function n(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function i(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t,e){for(var n in e)a(e,n)&&(t[n]=e[n]);return a(e,"toString")&&(t.toString=e.toString),a(e,"valueOf")&&(t.valueOf=e.valueOf),t}function s(t,e,n,r){return Et(t,e,n,r,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function l(t){return null==t._pf&&(t._pf=u()),t._pf}function c(t){if(null==t._isValid){var e=l(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function f(t){var e=s(NaN);return null!=t?o(l(e),t):l(e).userInvalidated=!0,e}function d(t,e){var n,r,i;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=l(e)),"undefined"!=typeof e._locale&&(t._locale=e._locale),jn.length>0)for(n in jn)r=jn[n],i=e[r],"undefined"!=typeof i&&(t[r]=i);return t}function p(e){d(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),In===!1&&(In=!0,t.updateOffset(this),In=!1)}function h(t){return t instanceof p||null!=t&&null!=t._isAMomentObject}function g(t){return 0>t?Math.ceil(t):Math.floor(t)}function m(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=g(e)),n}function v(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(r=0;i>r;r++)(n&&t[r]!==e[r]||!n&&m(t[r])!==m(e[r]))&&o++;return o+a}function y(){}function b(t){return t?t.toLowerCase().replace("_","-"):t}function x(t){for(var e,n,r,i,a=0;a<t.length;){for(i=b(t[a]).split("-"),e=i.length,n=b(t[a+1]),n=n?n.split("-"):null;e>0;){if(r=$(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&v(i,n,!0)>=e-1)break;e--}a++}return null}function $(t){var e=null;if(!Ln[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=Fn._abbr,require("./locale/"+t),w(e)}catch(n){}return Ln[t]}function w(t,e){var n;return t&&(n="undefined"==typeof e?M(t):k(t,e),n&&(Fn=n)),Fn._abbr}function k(t,e){return null!==e?(e.abbr=t,Ln[t]=Ln[t]||new y,Ln[t].set(e),w(t),Ln[t]):(delete Ln[t],null)}function M(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Fn;if(!n(t)){if(e=$(t))return e;t=[t]}return x(t)}function C(t,e){var n=t.toLowerCase();qn[n]=qn[n+"s"]=qn[e]=t}function S(t){return"string"==typeof t?qn[t]||qn[t.toLowerCase()]:void 0}function A(t){var e,n,r={};for(n in t)a(t,n)&&(e=S(n),e&&(r[e]=t[n]));return r}function E(e,n){return function(r){return null!=r?(_(this,e,r),t.updateOffset(this,n),this):D(this,e)}}function D(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function _(t,e,n){return t._d["set"+(t._isUTC?"UTC":"")+e](n)}function T(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=S(t),"function"==typeof this[t])return this[t](e);return this}function O(t,e,n){var r=""+Math.abs(t),i=e-r.length,a=t>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function N(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(Wn[t]=i),e&&(Wn[e[0]]=function(){return O(i.apply(this,arguments),e[1],e[2])}),n&&(Wn[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function P(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function F(t){var e,n,r=t.match(Hn);for(e=0,n=r.length;n>e;e++)Wn[r[e]]?r[e]=Wn[r[e]]:r[e]=P(r[e]);return function(i){var a="";for(e=0;n>e;e++)a+=r[e]instanceof Function?r[e].call(i,t):r[e];return a}}function j(t,e){return t.isValid()?(e=I(e,t.localeData()),Rn[e]=Rn[e]||F(e),Rn[e](t)):t.localeData().invalidDate()}function I(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for(Vn.lastIndex=0;r>=0&&Vn.test(t);)t=t.replace(Vn,n),Vn.lastIndex=0,r-=1;return t}function L(t){return"function"==typeof t&&"[object Function]"===Object.prototype.toString.call(t)}function q(t,e,n){ir[t]=L(e)?e:function(t){return t&&n?n:e}}function H(t,e){return a(ir,t)?ir[t](e._strict,e._locale):new RegExp(V(t))}function V(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function R(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(r=function(t,n){n[e]=m(t)}),n=0;n<t.length;n++)ar[t[n]]=r}function W(t,e){R(t,function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)})}function z(t,e,n){null!=e&&a(ar,t)&&ar[t](e,n._a,n,t)}function U(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function Y(t){return this._months[t.month()]}function B(t){return this._monthsShort[t.month()]}function G(t,e,n){var r,i,a;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(i=s([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function X(t,e){var n;return"string"==typeof e&&(e=t.localeData().monthsParse(e),"number"!=typeof e)?t:(n=Math.min(t.date(),U(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function Z(e){return null!=e?(X(this,e),t.updateOffset(this,!0),this):D(this,"Month")}function K(){return U(this.year(),this.month())}function J(t){var e,n=t._a;return n&&-2===l(t).overflow&&(e=n[sr]<0||n[sr]>11?sr:n[ur]<1||n[ur]>U(n[or],n[sr])?ur:n[lr]<0||n[lr]>24||24===n[lr]&&(0!==n[cr]||0!==n[fr]||0!==n[dr])?lr:n[cr]<0||n[cr]>59?cr:n[fr]<0||n[fr]>59?fr:n[dr]<0||n[dr]>999?dr:-1,l(t)._overflowDayOfYear&&(or>e||e>ur)&&(e=ur),l(t).overflow=e),t}function Q(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function tt(t,e){var n=!0;return o(function(){return n&&(Q(t+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)},e)}function et(t,e){gr[t]||(Q(e),gr[t]=!0)}function nt(t){var e,n,r=t._i,i=mr.exec(r);if(i){for(l(t).iso=!0,e=0,n=vr.length;n>e;e++)if(vr[e][1].exec(r)){t._f=vr[e][0];break}for(e=0,n=yr.length;n>e;e++)if(yr[e][1].exec(r)){t._f+=(i[6]||" ")+yr[e][0];break}r.match(er)&&(t._f+="Z"),$t(t)}else t._isValid=!1}function rt(e){var n=br.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(nt(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function it(t,e,n,r,i,a,o){var s=new Date(t,e,n,r,i,a,o);return 1970>t&&s.setFullYear(t),s}function at(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function ot(t){return st(t)?366:365}function st(t){return t%4===0&&t%100!==0||t%400===0}function ut(){return st(this.year())}function lt(t,e,n){var r,i=n-e,a=n-t.day();return a>i&&(a-=7),i-7>a&&(a+=7),r=Dt(t).add(a,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function ct(t){return lt(t,this._week.dow,this._week.doy).week}function ft(){return this._week.dow}function dt(){return this._week.doy}function pt(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function ht(t){var e=lt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function gt(t,e,n,r,i){var a,o=6+i-r,s=at(t,0,1+o),u=s.getUTCDay();return i>u&&(u+=7),n=null!=n?1*n:i,a=1+o+7*(e-1)-u+n,{year:a>0?t:t-1,dayOfYear:a>0?a:ot(t-1)+a}}function mt(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function vt(t,e,n){return null!=t?t:null!=e?e:n}function yt(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function bt(t){var e,n,r,i,a=[];if(!t._d){for(r=yt(t),t._w&&null==t._a[ur]&&null==t._a[sr]&&xt(t),t._dayOfYear&&(i=vt(t._a[or],r[or]),t._dayOfYear>ot(i)&&(l(t)._overflowDayOfYear=!0),n=at(i,0,t._dayOfYear),t._a[sr]=n.getUTCMonth(),t._a[ur]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;7>e;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[lr]&&0===t._a[cr]&&0===t._a[fr]&&0===t._a[dr]&&(t._nextDay=!0,t._a[lr]=0),t._d=(t._useUTC?at:it).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[lr]=24)}}function xt(t){var e,n,r,i,a,o,s;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(a=1,o=4,n=vt(e.GG,t._a[or],lt(Dt(),1,4).year),r=vt(e.W,1),i=vt(e.E,1)):(a=t._locale._week.dow,o=t._locale._week.doy,n=vt(e.gg,t._a[or],lt(Dt(),a,o).year),r=vt(e.w,1),null!=e.d?(i=e.d,a>i&&++r):i=null!=e.e?e.e+a:a),s=gt(n,r,i,o,a),t._a[or]=s.year,t._dayOfYear=s.dayOfYear}function $t(e){if(e._f===t.ISO_8601)return void nt(e);e._a=[],l(e).empty=!0;var n,r,i,a,o,s=""+e._i,u=s.length,c=0;for(i=I(e._f,e._locale).match(Hn)||[],n=0;n<i.length;n++)a=i[n],r=(s.match(H(a,e))||[])[0],r&&(o=s.substr(0,s.indexOf(r)),o.length>0&&l(e).unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),c+=r.length),Wn[a]?(r?l(e).empty=!1:l(e).unusedTokens.push(a),z(a,r,e)):e._strict&&!r&&l(e).unusedTokens.push(a);l(e).charsLeftOver=u-c,s.length>0&&l(e).unusedInput.push(s),l(e).bigHour===!0&&e._a[lr]<=12&&e._a[lr]>0&&(l(e).bigHour=void 0),e._a[lr]=wt(e._locale,e._a[lr],e._meridiem),bt(e),J(e)}function wt(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&12>e&&(e+=12),r||12!==e||(e=0),e):e}function kt(t){var e,n,r,i,a;if(0===t._f.length)return l(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)a=0,e=d({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],$t(e),c(e)&&(a+=l(e).charsLeftOver,a+=10*l(e).unusedTokens.length,l(e).score=a,(null==r||r>a)&&(r=a,n=e));o(t,n||e)}function Mt(t){if(!t._d){var e=A(t._i);t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],bt(t)}}function Ct(t){var e=new p(J(St(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function St(t){var e=t._i,i=t._f;return t._locale=t._locale||M(t._l),null===e||void 0===i&&""===e?f({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),h(e)?new p(J(e)):(n(i)?kt(t):i?$t(t):r(e)?t._d=e:At(t),t))}function At(e){var a=e._i;void 0===a?e._d=new Date:r(a)?e._d=new Date(+a):"string"==typeof a?rt(e):n(a)?(e._a=i(a.slice(0),function(t){return parseInt(t,10)}),bt(e)):"object"==typeof a?Mt(e):"number"==typeof a?e._d=new Date(a):t.createFromInputFallback(e)}function Et(t,e,n,r,i){var a={};return"boolean"==typeof n&&(r=n,n=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=t,a._f=e,a._strict=r,Ct(a)}function Dt(t,e,n,r){return Et(t,e,n,r,!1)}function _t(t,e){var r,i;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Dt();for(r=e[0],i=1;i<e.length;++i)(!e[i].isValid()||e[i][t](r))&&(r=e[i]);return r}function Tt(){var t=[].slice.call(arguments,0);return _t("isBefore",t)}function Ot(){var t=[].slice.call(arguments,0);return _t("isAfter",t)}function Nt(t){var e=A(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||0,o=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+36e5*s,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=M(),this._bubble()}function Pt(t){return t instanceof Nt}function Ft(t,e){N(t,0,0,function(){var t=this.utcOffset(),n="+";return 0>t&&(t=-t,n="-"),n+O(~~(t/60),2)+e+O(~~t%60,2)})}function jt(t){var e=(t||"").match(er)||[],n=e[e.length-1]||[],r=(n+"").match(Mr)||["-",0,0],i=+(60*r[1])+m(r[2]);return"+"===r[0]?i:-i}function It(e,n){var i,a;return n._isUTC?(i=n.clone(),a=(h(e)||r(e)?+e:+Dt(e))-+i,i._d.setTime(+i._d+a),t.updateOffset(i,!1),i):Dt(e).local()}function Lt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function qt(e,n){var r,i=this._offset||0;return null!=e?("string"==typeof e&&(e=jt(e)),Math.abs(e)<16&&(e=60*e),!this._isUTC&&n&&(r=Lt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!n||this._changeInProgress?ee(this,Zt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:Lt(this)}function Ht(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Vt(t){return this.utcOffset(0,t)}function Rt(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Lt(this),"m")),this}function Wt(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(jt(this._i)),this}function zt(t){return t=t?Dt(t).utcOffset():0,(this.utcOffset()-t)%60===0}function Ut(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Yt(){if("undefined"!=typeof this._isDSTShifted)return this._isDSTShifted;var t={};if(d(t,this),t=St(t),t._a){var e=t._isUTC?s(t._a):Dt(t._a);this._isDSTShifted=this.isValid()&&v(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Bt(){return!this._isUTC}function Gt(){return this._isUTC}function Xt(){return this._isUTC&&0===this._offset}function Zt(t,e){var n,r,i,o=t,s=null;return Pt(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(o={},e?o[e]=t:o.milliseconds=t):(s=Cr.exec(t))?(n="-"===s[1]?-1:1,o={y:0,d:m(s[ur])*n,h:m(s[lr])*n,m:m(s[cr])*n,s:m(s[fr])*n,ms:m(s[dr])*n}):(s=Sr.exec(t))?(n="-"===s[1]?-1:1,o={y:Kt(s[2],n),M:Kt(s[3],n),d:Kt(s[4],n),h:Kt(s[5],n),m:Kt(s[6],n),s:Kt(s[7],n),w:Kt(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Qt(Dt(o.from),Dt(o.to)),o={},o.ms=i.milliseconds,o.M=i.months),r=new Nt(o),Pt(t)&&a(t,"_locale")&&(r._locale=t._locale),r}function Kt(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Jt(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Qt(t,e){var n;return e=It(e,t),t.isBefore(e)?n=Jt(t,e):(n=Jt(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function te(t,e){return function(n,r){var i,a;return null===r||isNaN(+r)||(et(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),a=n,n=r,r=a),n="string"==typeof n?+n:n,i=Zt(n,r),ee(this,i,t),this}}function ee(e,n,r,i){var a=n._milliseconds,o=n._days,s=n._months;i=null==i?!0:i,a&&e._d.setTime(+e._d+a*r),o&&_(e,"Date",D(e,"Date")+o*r),s&&X(e,D(e,"Month")+s*r),i&&t.updateOffset(e,o||s)}function ne(t,e){var n=t||Dt(),r=It(n,this).startOf("day"),i=this.diff(r,"days",!0),a=-6>i?"sameElse":-1>i?"lastWeek":0>i?"lastDay":1>i?"sameDay":2>i?"nextDay":7>i?"nextWeek":"sameElse";return this.format(e&&e[a]||this.localeData().calendar(a,this,Dt(n)))}function re(){return new p(this)}function ie(t,e){var n;return e=S("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=h(t)?t:Dt(t),+this>+t):(n=h(t)?+t:+Dt(t),n<+this.clone().startOf(e))}function ae(t,e){var n;return e=S("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=h(t)?t:Dt(t),+t>+this):(n=h(t)?+t:+Dt(t),+this.clone().endOf(e)<n)}function oe(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)}function se(t,e){var n;return e=S(e||"millisecond"),"millisecond"===e?(t=h(t)?t:Dt(t),+this===+t):(n=+Dt(t),+this.clone().startOf(e)<=n&&n<=+this.clone().endOf(e))}function ue(t,e,n){var r,i,a=It(t,this),o=6e4*(a.utcOffset()-this.utcOffset());return e=S(e),"year"===e||"month"===e||"quarter"===e?(i=le(this,a),"quarter"===e?i/=3:"year"===e&&(i/=12)):(r=this-a,i="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-o)/864e5:"week"===e?(r-o)/6048e5:r),n?i:g(i)}function le(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(i,"months");return 0>e-a?(n=t.clone().add(i-1,"months"),r=(e-a)/(a-n)):(n=t.clone().add(i+1,"months"),r=(e-a)/(n-a)),-(i+r)}function ce(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fe(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():j(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):j(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function de(e){var n=j(this,e||t.defaultFormat);return this.localeData().postformat(n)}function pe(t,e){return this.isValid()?Zt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function he(t){return this.from(Dt(),t)}function ge(t,e){return this.isValid()?Zt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function me(t){return this.to(Dt(),t)}function ve(t){var e;return void 0===t?this._locale._abbr:(e=M(t),null!=e&&(this._locale=e),this)}function ye(){return this._locale}function be(t){switch(t=S(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function xe(t){return t=S(t),void 0===t||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")}function $e(){return+this._d-6e4*(this._offset||0)}function we(){return Math.floor(+this/1e3)}function ke(){return this._offset?new Date(+this):this._d}function Me(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Ce(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Se(){return c(this)}function Ae(){return o({},l(this))}function Ee(){return l(this).overflow}function De(t,e){N(0,[t,t.length],0,e)}function _e(t,e,n){return lt(Dt([t,11,31+e-n]),e,n).week}function Te(t){var e=lt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")}function Oe(t){var e=lt(this,1,4).year;return null==t?e:this.add(t-e,"y")}function Ne(){return _e(this.year(),1,4)}function Pe(){var t=this.localeData()._week;return _e(this.year(),t.dow,t.doy)}function Fe(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function je(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Ie(t){return this._weekdays[t.day()]}function Le(t){return this._weekdaysShort[t.day()]}function qe(t){return this._weekdaysMin[t.day()]}function He(t){var e,n,r;for(this._weekdaysParse=this._weekdaysParse||[],e=0;7>e;e++)if(this._weekdaysParse[e]||(n=Dt([2e3,1]).day(e),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e}function Ve(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=je(t,this.localeData()),this.add(t-e,"d")):e}function Re(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function We(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)}function ze(t,e){N(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Ue(t,e){return e._meridiemParse}function Ye(t){return"p"===(t+"").toLowerCase().charAt(0)}function Be(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Ge(t,e){e[dr]=m(1e3*("0."+t))}function Xe(){return this._isUTC?"UTC":""}function Ze(){return this._isUTC?"Coordinated Universal Time":""}function Ke(t){return Dt(1e3*t)}function Je(){return Dt.apply(null,arguments).parseZone()}function Qe(t,e,n){var r=this._calendar[t];return"function"==typeof r?r.call(e,n):r}function tn(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function en(){return this._invalidDate}function nn(t){return this._ordinal.replace("%d",t)}function rn(t){return t}function an(t,e,n,r){var i=this._relativeTime[n];return"function"==typeof i?i(t,e,n,r):i.replace(/%d/i,t)}function on(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)}function sn(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function un(t,e,n,r){var i=M(),a=s().set(r,e);return i[n](a,t)}function ln(t,e,n,r,i){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return un(t,e,n,i);var a,o=[];for(a=0;r>a;a++)o[a]=un(t,a,n,i);return o}function cn(t,e){return ln(t,e,"months",12,"month")}function fn(t,e){return ln(t,e,"monthsShort",12,"month")}function dn(t,e){return ln(t,e,"weekdays",7,"day")}function pn(t,e){return ln(t,e,"weekdaysShort",7,"day")}function hn(t,e){return ln(t,e,"weekdaysMin",7,"day")}function gn(){var t=this._data;return this._milliseconds=Xr(this._milliseconds),this._days=Xr(this._days),this._months=Xr(this._months),t.milliseconds=Xr(t.milliseconds),t.seconds=Xr(t.seconds),t.minutes=Xr(t.minutes),t.hours=Xr(t.hours),t.months=Xr(t.months),t.years=Xr(t.years),this}function mn(t,e,n,r){var i=Zt(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function vn(t,e){return mn(this,t,e,1)}function yn(t,e){return mn(this,t,e,-1)}function bn(t){return 0>t?Math.floor(t):Math.ceil(t)}function xn(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||0>=a&&0>=o&&0>=s||(a+=864e5*bn(wn(s)+o),o=0,s=0),u.milliseconds=a%1e3,t=g(a/1e3),u.seconds=t%60,e=g(t/60),u.minutes=e%60,n=g(e/60),u.hours=n%24,o+=g(n/24),i=g($n(o)),s+=i,o-=bn(wn(i)),r=g(s/12),s%=12,u.days=o,u.months=s,u.years=r,this}function $n(t){return 4800*t/146097}function wn(t){return 146097*t/4800}function kn(t){var e,n,r=this._milliseconds;if(t=S(t),"month"===t||"year"===t)return e=this._days+r/864e5,n=this._months+$n(e),"month"===t?n:n/12;switch(e=this._days+Math.round(wn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Mn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12)}function Cn(t){return function(){return this.as(t)}}function Sn(t){return t=S(t),this[t+"s"]()}function An(t){return function(){return this._data[t]}}function En(){return g(this.days()/7)}function Dn(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function _n(t,e,n){var r=Zt(t).abs(),i=fi(r.as("s")),a=fi(r.as("m")),o=fi(r.as("h")),s=fi(r.as("d")),u=fi(r.as("M")),l=fi(r.as("y")),c=i<di.s&&["s",i]||1===a&&["m"]||a<di.m&&["mm",a]||1===o&&["h"]||o<di.h&&["hh",o]||1===s&&["d"]||s<di.d&&["dd",s]||1===u&&["M"]||u<di.M&&["MM",u]||1===l&&["y"]||["yy",l];return c[2]=e,c[3]=+t>0,c[4]=n,Dn.apply(null,c)}function Tn(t,e){return void 0===di[t]?!1:void 0===e?di[t]:(di[t]=e,!0)}function On(t){var e=this.localeData(),n=_n(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Nn(){var t,e,n,r=pi(this._milliseconds)/1e3,i=pi(this._days),a=pi(this._months);t=g(r/60),e=g(t/60),r%=60,t%=60,n=g(a/12),a%=12;var o=n,s=a,u=i,l=e,c=t,f=r,d=this.asSeconds();return d?(0>d?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||c||f?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(f?f+"S":""):"P0D"}var Pn,Fn,jn=t.momentProperties=[],In=!1,Ln={},qn={},Hn=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Vn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Rn={},Wn={},zn=/\d/,Un=/\d\d/,Yn=/\d{3}/,Bn=/\d{4}/,Gn=/[+-]?\d{6}/,Xn=/\d\d?/,Zn=/\d{1,3}/,Kn=/\d{1,4}/,Jn=/[+-]?\d{1,6}/,Qn=/\d+/,tr=/[+-]?\d+/,er=/Z|[+-]\d\d:?\d\d/gi,nr=/[+-]?\d+(\.\d{1,3})?/,rr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ir={},ar={},or=0,sr=1,ur=2,lr=3,cr=4,fr=5,dr=6;N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),N("MMMM",0,0,function(t){return this.localeData().months(this,t)}),C("month","M"),q("M",Xn),q("MM",Xn,Un),q("MMM",rr),q("MMMM",rr),R(["M","MM"],function(t,e){e[sr]=m(t)-1}),R(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[sr]=i:l(n).invalidMonth=t});var pr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),hr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),gr={};t.suppressDeprecationWarnings=!1;var mr=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],yr=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],br=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=tt("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),C("year","y"),q("Y",tr),q("YY",Xn,Un),q("YYYY",Kn,Bn),q("YYYYY",Jn,Gn),q("YYYYYY",Jn,Gn),R(["YYYYY","YYYYYY"],or),R("YYYY",function(e,n){n[or]=2===e.length?t.parseTwoDigitYear(e):m(e)}),R("YY",function(e,n){n[or]=t.parseTwoDigitYear(e)}),t.parseTwoDigitYear=function(t){return m(t)+(m(t)>68?1900:2e3)};var xr=E("FullYear",!1);N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),C("week","w"),C("isoWeek","W"),q("w",Xn),q("ww",Xn,Un),q("W",Xn),q("WW",Xn,Un),W(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=m(t)});var $r={dow:0,doy:6};N("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),q("DDD",Zn),q("DDDD",Yn),R(["DDD","DDDD"],function(t,e,n){n._dayOfYear=m(t)}),t.ISO_8601=function(){};var wr=tt("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Dt.apply(null,arguments);return this>t?this:t}),kr=tt("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Dt.apply(null,arguments);return t>this?this:t});Ft("Z",":"),Ft("ZZ",""),q("Z",er),q("ZZ",er),R(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=jt(t)});var Mr=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Cr=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Sr=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Zt.fn=Nt.prototype;var Ar=te(1,"add"),Er=te(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Dr=tt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),De("gggg","weekYear"),De("ggggg","weekYear"),De("GGGG","isoWeekYear"),De("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),q("G",tr),q("g",tr),q("GG",Xn,Un),q("gg",Xn,Un),q("GGGG",Kn,Bn),q("gggg",Kn,Bn),q("GGGGG",Jn,Gn),q("ggggg",Jn,Gn),W(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=m(t)}),W(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),N("Q",0,0,"quarter"),C("quarter","Q"),q("Q",zn),R("Q",function(t,e){e[sr]=3*(m(t)-1)}),N("D",["DD",2],"Do","date"),C("date","D"),q("D",Xn),q("DD",Xn,Un),q("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),R(["D","DD"],ur),R("Do",function(t,e){e[ur]=m(t.match(Xn)[0],10)});var _r=E("Date",!0);N("d",0,"do","day"),N("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),N("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),N("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),C("day","d"),C("weekday","e"),C("isoWeekday","E"),q("d",Xn),q("e",Xn),q("E",Xn),q("dd",rr),q("ddd",rr),q("dddd",rr),W(["dd","ddd","dddd"],function(t,e,n){var r=n._locale.weekdaysParse(t);null!=r?e.d=r:l(n).invalidWeekday=t}),W(["d","e","E"],function(t,e,n,r){e[r]=m(t)});var Tr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Or="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nr="Su_Mo_Tu_We_Th_Fr_Sa".split("_");N("H",["HH",2],0,"hour"),N("h",["hh",2],0,function(){return this.hours()%12||12}),ze("a",!0),ze("A",!1),C("hour","h"),q("a",Ue),q("A",Ue),q("H",Xn),q("h",Xn),q("HH",Xn,Un),q("hh",Xn,Un),R(["H","HH"],lr),R(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),R(["h","hh"],function(t,e,n){e[lr]=m(t),l(n).bigHour=!0});var Pr=/[ap]\.?m?\.?/i,Fr=E("Hours",!0);N("m",["mm",2],0,"minute"),C("minute","m"),q("m",Xn),q("mm",Xn,Un),R(["m","mm"],cr);var jr=E("Minutes",!1);N("s",["ss",2],0,"second"),C("second","s"),q("s",Xn),q("ss",Xn,Un),R(["s","ss"],fr);var Ir=E("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),q("S",Zn,zn),q("SS",Zn,Un),q("SSS",Zn,Yn);var Lr;for(Lr="SSSS";Lr.length<=9;Lr+="S")q(Lr,Qn);for(Lr="S";Lr.length<=9;Lr+="S")R(Lr,Ge);var qr=E("Milliseconds",!1);N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var Hr=p.prototype;Hr.add=Ar,Hr.calendar=ne,Hr.clone=re,Hr.diff=ue,Hr.endOf=xe,Hr.format=de,Hr.from=pe,Hr.fromNow=he,Hr.to=ge,Hr.toNow=me,Hr.get=T,Hr.invalidAt=Ee,Hr.isAfter=ie,Hr.isBefore=ae,Hr.isBetween=oe,Hr.isSame=se,Hr.isValid=Se,Hr.lang=Dr,Hr.locale=ve,Hr.localeData=ye,Hr.max=kr,Hr.min=wr,Hr.parsingFlags=Ae,Hr.set=T,Hr.startOf=be,Hr.subtract=Er,Hr.toArray=Me,Hr.toObject=Ce,Hr.toDate=ke,Hr.toISOString=fe,Hr.toJSON=fe,Hr.toString=ce,Hr.unix=we,Hr.valueOf=$e,Hr.year=xr,Hr.isLeapYear=ut,Hr.weekYear=Te,Hr.isoWeekYear=Oe,Hr.quarter=Hr.quarters=Fe,Hr.month=Z,Hr.daysInMonth=K,Hr.week=Hr.weeks=pt,Hr.isoWeek=Hr.isoWeeks=ht,Hr.weeksInYear=Pe,Hr.isoWeeksInYear=Ne,Hr.date=_r,Hr.day=Hr.days=Ve,Hr.weekday=Re,Hr.isoWeekday=We,Hr.dayOfYear=mt,Hr.hour=Hr.hours=Fr,Hr.minute=Hr.minutes=jr,Hr.second=Hr.seconds=Ir,
|
||
Hr.millisecond=Hr.milliseconds=qr,Hr.utcOffset=qt,Hr.utc=Vt,Hr.local=Rt,Hr.parseZone=Wt,Hr.hasAlignedHourOffset=zt,Hr.isDST=Ut,Hr.isDSTShifted=Yt,Hr.isLocal=Bt,Hr.isUtcOffset=Gt,Hr.isUtc=Xt,Hr.isUTC=Xt,Hr.zoneAbbr=Xe,Hr.zoneName=Ze,Hr.dates=tt("dates accessor is deprecated. Use date instead.",_r),Hr.months=tt("months accessor is deprecated. Use month instead",Z),Hr.years=tt("years accessor is deprecated. Use year instead",xr),Hr.zone=tt("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Ht);var Vr=Hr,Rr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Wr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},zr="Invalid date",Ur="%d",Yr=/\d{1,2}/,Br={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Gr=y.prototype;Gr._calendar=Rr,Gr.calendar=Qe,Gr._longDateFormat=Wr,Gr.longDateFormat=tn,Gr._invalidDate=zr,Gr.invalidDate=en,Gr._ordinal=Ur,Gr.ordinal=nn,Gr._ordinalParse=Yr,Gr.preparse=rn,Gr.postformat=rn,Gr._relativeTime=Br,Gr.relativeTime=an,Gr.pastFuture=on,Gr.set=sn,Gr.months=Y,Gr._months=pr,Gr.monthsShort=B,Gr._monthsShort=hr,Gr.monthsParse=G,Gr.week=ct,Gr._week=$r,Gr.firstDayOfYear=dt,Gr.firstDayOfWeek=ft,Gr.weekdays=Ie,Gr._weekdays=Tr,Gr.weekdaysMin=qe,Gr._weekdaysMin=Nr,Gr.weekdaysShort=Le,Gr._weekdaysShort=Or,Gr.weekdaysParse=He,Gr.isPM=Ye,Gr._meridiemParse=Pr,Gr.meridiem=Be,w("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===m(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),t.lang=tt("moment.lang is deprecated. Use moment.locale instead.",w),t.langData=tt("moment.langData is deprecated. Use moment.localeData instead.",M);var Xr=Math.abs,Zr=Cn("ms"),Kr=Cn("s"),Jr=Cn("m"),Qr=Cn("h"),ti=Cn("d"),ei=Cn("w"),ni=Cn("M"),ri=Cn("y"),ii=An("milliseconds"),ai=An("seconds"),oi=An("minutes"),si=An("hours"),ui=An("days"),li=An("months"),ci=An("years"),fi=Math.round,di={s:45,m:45,h:22,d:26,M:11},pi=Math.abs,hi=Nt.prototype;hi.abs=gn,hi.add=vn,hi.subtract=yn,hi.as=kn,hi.asMilliseconds=Zr,hi.asSeconds=Kr,hi.asMinutes=Jr,hi.asHours=Qr,hi.asDays=ti,hi.asWeeks=ei,hi.asMonths=ni,hi.asYears=ri,hi.valueOf=Mn,hi._bubble=xn,hi.get=Sn,hi.milliseconds=ii,hi.seconds=ai,hi.minutes=oi,hi.hours=si,hi.days=ui,hi.weeks=En,hi.months=li,hi.years=ci,hi.humanize=On,hi.toISOString=Nn,hi.toString=Nn,hi.toJSON=Nn,hi.locale=ve,hi.localeData=ye,hi.toIsoString=tt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Nn),hi.lang=Dr,N("X",0,0,"unix"),N("x",0,0,"valueOf"),q("x",tr),q("X",nr),R("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),R("x",function(t,e,n){n._d=new Date(m(t))}),t.version="2.10.6",e(Dt),t.fn=Vr,t.min=Tt,t.max=Ot,t.utc=s,t.unix=Ke,t.months=cn,t.isDate=r,t.locale=w,t.invalid=f,t.duration=Zt,t.isMoment=h,t.weekdays=dn,t.parseZone=Je,t.localeData=M,t.isDuration=Pt,t.monthsShort=fn,t.weekdaysMin=hn,t.defineLocale=k,t.weekdaysShort=pn,t.normalizeUnits=S,t.relativeTimeThreshold=Tn;var gi=t;return gi}),!function(){function t(t){return t&&(t.ownerDocument||t.document||t).documentElement}function e(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function n(t,e){return e>t?-1:t>e?1:t>=e?0:NaN}function r(t){return null===t?NaN:+t}function i(t){return!isNaN(t)}function a(t){return{left:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var a=r+i>>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=e.length);i>r;){var a=r+i>>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}function o(t){return t.length}function s(t){for(var e=1;t*e%1;)e*=10;return e}function u(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function l(){this._=Object.create(null)}function c(t){return(t+="")===$o||t[0]===wo?wo+t:t}function f(t){return(t+="")[0]===wo?t.slice(1):t}function d(t){return c(t)in this._}function p(t){return(t=c(t))in this._&&delete this._[t]}function h(){var t=[];for(var e in this._)t.push(f(e));return t}function g(){var t=0;for(var e in this._)++t;return t}function m(){for(var t in this._)return!1;return!0}function v(){this._=Object.create(null)}function y(t){return t}function b(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function x(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=ko.length;r>n;++n){var i=ko[n]+e;if(i in t)return i}}function $(){}function w(){}function k(t){function e(){for(var e,r=n,i=-1,a=r.length;++i<a;)(e=r[i].on)&&e.apply(this,arguments);return t}var n=[],r=new l;return e.on=function(e,i){var a,o=r.get(e);return arguments.length<2?o&&o.on:(o&&(o.on=null,n=n.slice(0,a=n.indexOf(o)).concat(n.slice(a+1)),r.remove(e)),i&&n.push(r.set(e,{on:i})),t)},e}function M(){so.event.preventDefault()}function C(){for(var t,e=so.event;t=e.sourceEvent;)e=t;return e}function S(t){for(var e=new w,n=0,r=arguments.length;++n<r;)e[arguments[n]]=k(e);return e.of=function(n,r){return function(i){try{var a=i.sourceEvent=so.event;i.target=t,so.event=i,e[i.type].apply(n,r)}finally{so.event=a}}},e}function A(t){return Co(t,Do),t}function E(t){return"function"==typeof t?t:function(){return So(t,this)}}function D(t){return"function"==typeof t?t:function(){return Ao(t,this)}}function _(t,e){function n(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,e)}function a(){this.setAttributeNS(t.space,t.local,e)}function o(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}function s(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}return t=so.ns.qualify(t),null==e?t.local?r:n:"function"==typeof e?t.local?s:o:t.local?a:i}function T(t){return t.trim().replace(/\s+/g," ")}function O(t){return new RegExp("(?:^|\\s+)"+so.requote(t)+"(?:\\s+|$)","g")}function N(t){return(t+"").trim().split(/^|\s+/)}function P(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=N(t).map(F);var i=t.length;return"function"==typeof e?r:n}function F(t){var e=O(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",T(i+" "+t))):n.setAttribute("class",T(i.replace(e," ")))}}function j(t,e,n){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,e,n)}function a(){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?a:i}function I(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 L(t){function e(){var e=this.ownerDocument,n=this.namespaceURI;return n?e.createElementNS(n,t):e.createElement(t)}function n(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"==typeof t?t:(t=so.ns.qualify(t)).local?n:e}function q(){var t=this.parentNode;t&&t.removeChild(this)}function H(t){return{__data__:t}}function V(t){return function(){return Eo(this,t)}}function R(t){return arguments.length||(t=n),function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}function W(t,e){for(var n=0,r=t.length;r>n;n++)for(var i,a=t[n],o=0,s=a.length;s>o;o++)(i=a[o])&&e(i,o,n);return t}function z(t){return Co(t,To),t}function U(t){var e,n;return function(r,i,a){var o,s=t[a].update,u=s.length;for(a!=n&&(n=a,e=0),i>=e&&(e=i+1);!(o=s[e])&&++e<u;);return o}}function Y(t,e,n){function r(){var e=this[o];e&&(this.removeEventListener(t,e,e.$),delete this[o])}function i(){var i=u(e,lo(arguments));r.call(this),this.addEventListener(t,this[o]=i,i.$=n),i._=e}function a(){var e,n=new RegExp("^__on([^.]+)"+so.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 o="__on"+t,s=t.indexOf("."),u=B;s>0&&(t=t.slice(0,s));var l=Oo.get(t);return l&&(t=l,u=G),s?e?i:r:e?$:a}function B(t,e){return function(n){var r=so.event;so.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{so.event=r}}}function G(t,e){var n=B(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function X(n){var r=".dragsuppress-"+ ++Po,i="click"+r,a=so.select(e(n)).on("touchmove"+r,M).on("dragstart"+r,M).on("selectstart"+r,M);if(null==No&&(No="onselectstart"in n?!1:x(n.style,"userSelect")),No){var o=t(n).style,s=o[No];o[No]="none"}return function(t){if(a.on(r,null),No&&(o[No]=s),t){var e=function(){a.on(i,null)};a.on(i,function(){M(),e()},!0),setTimeout(e,0)}}}function Z(t,n){n.changedTouches&&(n=n.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var i=r.createSVGPoint();if(0>Fo){var a=e(t);if(a.scrollX||a.scrollY){r=so.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();Fo=!(o.f||o.e),r.remove()}}return Fo?(i.x=n.pageX,i.y=n.pageY):(i.x=n.clientX,i.y=n.clientY),i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}var s=t.getBoundingClientRect();return[n.clientX-s.left-t.clientLeft,n.clientY-s.top-t.clientTop]}function K(){return so.event.changedTouches[0].identifier}function J(t){return t>0?1:0>t?-1:0}function Q(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function tt(t){return t>1?0:-1>t?Lo:Math.acos(t)}function et(t){return t>1?Vo:-1>t?-Vo:Math.asin(t)}function nt(t){return((t=Math.exp(t))-1/t)/2}function rt(t){return((t=Math.exp(t))+1/t)/2}function it(t){return((t=Math.exp(2*t))-1)/(t+1)}function at(t){return(t=Math.sin(t/2))*t}function ot(){}function st(t,e,n){return this instanceof st?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof st?new st(t.h,t.s,t.l):$t(""+t,wt,st):new st(t,e,n)}function ut(t,e,n){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?a+(o-a)*t/60:180>t?o:240>t?a+(o-a)*(240-t)/60:a}function i(t){return Math.round(255*r(t))}var a,o;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,o=.5>=n?n*(1+e):n+e-n*e,a=2*n-o,new vt(i(t+120),i(t),i(t-120))}function lt(t,e,n){return this instanceof lt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof lt?new lt(t.h,t.c,t.l):t instanceof ft?pt(t.l,t.a,t.b):pt((t=kt((t=so.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new lt(t,e,n)}function ct(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new ft(n,Math.cos(t*=Ro)*e,Math.sin(t)*e)}function ft(t,e,n){return this instanceof ft?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof ft?new ft(t.l,t.a,t.b):t instanceof lt?ct(t.h,t.c,t.l):kt((t=vt(t)).r,t.g,t.b):new ft(t,e,n)}function dt(t,e,n){var r=(t+16)/116,i=r+e/500,a=r-n/200;return i=ht(i)*Qo,r=ht(r)*ts,a=ht(a)*es,new vt(mt(3.2404542*i-1.5371385*r-.4985314*a),mt(-.969266*i+1.8760108*r+.041556*a),mt(.0556434*i-.2040259*r+1.0572252*a))}function pt(t,e,n){return t>0?new lt(Math.atan2(n,e)*Wo,Math.sqrt(e*e+n*n),t):new lt(NaN,NaN,t)}function ht(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function gt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function mt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function vt(t,e,n){return this instanceof vt?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof vt?new vt(t.r,t.g,t.b):$t(""+t,vt,ut):new vt(t,e,n)}function yt(t){return new vt(t>>16,t>>8&255,255&t)}function bt(t){return yt(t)+""}function xt(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function $t(t,e,n){var r,i,a,o=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))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(Ct(i[0]),Ct(i[1]),Ct(i[2]))}return(a=is.get(t))?e(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o=o>>4|o,s=240&a,s=s>>4|s,u=15&a,u=u<<4|u):7===t.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,u=255&a)),e(o,s,u))}function wt(t,e,n){var r,i,a=Math.min(t/=255,e/=255,n/=255),o=Math.max(t,e,n),s=o-a,u=(o+a)/2;return s?(i=.5>u?s/(o+a):s/(2-o-a),r=t==o?(e-n)/s+(n>e?6:0):e==o?(n-t)/s+2:(t-e)/s+4,r*=60):(r=NaN,i=u>0&&1>u?0:r),new st(r,i,u)}function kt(t,e,n){t=Mt(t),e=Mt(e),n=Mt(n);var r=gt((.4124564*t+.3575761*e+.1804375*n)/Qo),i=gt((.2126729*t+.7151522*e+.072175*n)/ts),a=gt((.0193339*t+.119192*e+.9503041*n)/es);return ft(116*i-16,500*(r-i),200*(i-a))}function Mt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ct(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function St(t){return"function"==typeof t?t:function(){return t}}function At(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Et(e,n,t,r)}}function Et(t,e,n,r){function i(){var t,e=u.status;if(!e&&_t(u)||e>=200&&300>e||304===e){try{t=n.call(a,u)}catch(r){return void o.error.call(a,r)}o.load.call(a,t)}else o.error.call(a,u)}var a={},o=so.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,l=null;return!this.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(t)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=i:u.onreadystatechange=function(){u.readyState>3&&i()},u.onprogress=function(t){var e=so.event;so.event=t;try{o.progress.call(a,u)}finally{so.event=e}},a.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?s[t]:(null==e?delete s[t]:s[t]=e+"",a)},a.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",a):e},a.responseType=function(t){return arguments.length?(l=t,a):l},a.response=function(t){return n=t,a},["get","post"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(lo(arguments)))}}),a.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),u.open(n,t,!0),null==e||"accept"in s||(s.accept=e+",*/*"),u.setRequestHeader)for(var c in s)u.setRequestHeader(c,s[c]);return null!=e&&u.overrideMimeType&&u.overrideMimeType(e),null!=l&&(u.responseType=l),null!=i&&a.on("error",i).on("load",function(t){i(null,t)}),o.beforesend.call(a,u),u.send(null==r?null:r),a},a.abort=function(){return u.abort(),a},so.rebind(a,o,"on"),null==r?a:a.get(Dt(r))}function Dt(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function _t(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Tt(t,e,n){var r=arguments.length;2>r&&(e=0),3>r&&(n=Date.now());var i=n+e,a={c:t,t:i,n:null};return os?os.n=a:as=a,os=a,ss||(us=clearTimeout(us),ss=1,ls(Ot)),a}function Ot(){var t=Nt(),e=Pt()-t;e>24?(isFinite(e)&&(clearTimeout(us),us=setTimeout(Ot,e)),ss=0):(ss=1,ls(Ot))}function Nt(){for(var t=Date.now(),e=as;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Pt(){for(var t,e=as,n=1/0;e;)e.c?(e.t<n&&(n=e.t),e=(t=e).n):e=t?t.n=e.n:as=e.n;return os=t,n}function Ft(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function jt(t,e){var n=Math.pow(10,3*xo(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function It(t){var e=t.decimal,n=t.thousands,r=t.grouping,i=t.currency,a=r&&n?function(t,e){for(var i=t.length,a=[],o=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>e&&(s=Math.max(1,e-u)),a.push(t.substring(i-=s,i+s)),!((u+=s+1)>e));)s=r[o=(o+1)%r.length];return a.reverse().join(n)}:y;return function(t){var n=fs.exec(t),r=n[1]||" ",o=n[2]||">",s=n[3]||"-",u=n[4]||"",l=n[5],c=+n[6],f=n[7],d=n[8],p=n[9],h=1,g="",m="",v=!1,y=!0;switch(d&&(d=+d.substring(1)),(l||"0"===r&&"="===o)&&(l=r="0",o="="),p){case"n":f=!0,p="g";break;case"%":h=100,m="%",p="f";break;case"p":h=100,m="%",p="r";break;case"b":case"o":case"x":case"X":"#"===u&&(g="0"+p.toLowerCase());case"c":y=!1;case"d":v=!0,d=0;break;case"s":h=-1,p="r"}"$"===u&&(g=i[0],m=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=ds.get(p)||Lt;var b=l&&f;return function(t){var n=m;if(v&&t%1)return"";var i=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===s?"":s;if(0>h){var u=so.formatPrefix(t,d);t=u.scale(t),n=u.symbol+m}else t*=h;t=p(t,d);var x,$,w=t.lastIndexOf(".");if(0>w){var k=y?t.lastIndexOf("e"):-1;0>k?(x=t,$=""):(x=t.substring(0,k),$=t.substring(k))}else x=t.substring(0,w),$=e+t.substring(w+1);!l&&f&&(x=a(x,1/0));var M=g.length+x.length+$.length+(b?0:i.length),C=c>M?new Array(M=c-M+1).join(r):"";return b&&(x=a(C+x,C.length?c-$.length:1/0)),i+=g,t=x+$,("<"===o?i+t+C:">"===o?C+i+t:"^"===o?C.substring(0,M>>=1)+i+t+C.substring(M):i+(b?t:C+t))+n}}}function Lt(t){return t+""}function qt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ht(t,e,n){function r(e){var n=t(e),r=a(n,1);return r-e>e-n?n:r}function i(n){return e(n=t(new hs(n-1)),1),n}function a(t,n){return e(t=new hs(+t),n),t}function o(t,r,a){var o=i(t),s=[];if(a>1)for(;r>o;)n(o)%a||s.push(new Date(+o)),e(o,1);else for(;r>o;)s.push(new Date(+o)),e(o,1);return s}function s(t,e,n){try{hs=qt;var r=new qt;return r._=t,o(r,e,n)}finally{hs=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=a,t.range=o;var u=t.utc=Vt(t);return u.floor=u,u.round=Vt(r),u.ceil=Vt(i),u.offset=Vt(a),u.range=s,t}function Vt(t){return function(e,n){try{hs=qt;var r=new qt;return r._=e,t(r,n)._}finally{hs=Date}}}function Rt(t){function e(t){function e(e){for(var n,i,a,o=[],s=-1,u=0;++s<r;)37===t.charCodeAt(s)&&(o.push(t.slice(u,s)),null!=(i=ms[n=t.charAt(++s)])&&(n=t.charAt(++s)),(a=E[n])&&(n=a(e,null==i?"e"===n?" ":"0":i)),o.push(n),u=s+1);return o.push(t.slice(u,s)),o.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 a=null!=r.Z&&hs!==qt,o=new(a?qt:hs);return"j"in r?o.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),o.setFullYear(r.y,0,1),o.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(o.getDay()+5)%7:r.w+7*r.U-(o.getDay()+6)%7)):o.setFullYear(r.y,r.m,r.d),o.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),a?o._:o},e.toString=function(){return t},e}function n(t,e,n,r){for(var i,a,o,s=0,u=e.length,l=n.length;u>s;){if(r>=l)return-1;if(i=e.charCodeAt(s++),37===i){if(o=e.charAt(s++),a=D[o in ms?e.charAt(s++):o],!a||(r=a(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.slice(n));return r?(t.w=k.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){x.lastIndex=0;var r=x.exec(e.slice(n));return r?(t.w=$.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){S.lastIndex=0;var r=S.exec(e.slice(n));return r?(t.m=A.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){M.lastIndex=0;var r=M.exec(e.slice(n));return r?(t.m=C.get(r[0].toLowerCase()),n+r[0].length):-1}function s(t,e,r){return n(t,E.c.toString(),e,r)}function u(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.slice(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,g=t.days,m=t.shortDays,v=t.months,y=t.shortMonths;e.utc=function(t){function n(t){try{hs=qt;var e=new hs;return e._=t,r(e)}finally{hs=Date}}var r=e(t);return n.parse=function(t){try{hs=qt;var e=r.parse(t);return e&&e._}finally{hs=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=ue;var b=so.map(),x=zt(g),$=Ut(g),w=zt(m),k=Ut(m),M=zt(v),C=Ut(v),S=zt(y),A=Ut(y);h.forEach(function(t,e){b.set(t.toLowerCase(),e)});var E={a:function(t){return m[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return v[t.getMonth()]},c:e(f),d:function(t,e){return Wt(t.getDate(),e,2)},e:function(t,e){return Wt(t.getDate(),e,2)},H:function(t,e){return Wt(t.getHours(),e,2)},I:function(t,e){return Wt(t.getHours()%12||12,e,2)},j:function(t,e){return Wt(1+ps.dayOfYear(t),e,3)},L:function(t,e){return Wt(t.getMilliseconds(),e,3)},m:function(t,e){return Wt(t.getMonth()+1,e,2)},M:function(t,e){return Wt(t.getMinutes(),e,2)},p:function(t){return h[+(t.getHours()>=12)]},S:function(t,e){return Wt(t.getSeconds(),e,2)},U:function(t,e){return Wt(ps.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Wt(ps.mondayOfYear(t),e,2)},x:e(d),X:e(p),y:function(t,e){return Wt(t.getFullYear()%100,e,2)},Y:function(t,e){return Wt(t.getFullYear()%1e4,e,4)},Z:oe,"%":function(){return"%"}},D={a:r,A:i,b:a,B:o,c:s,d:te,e:te,H:ne,I:ne,j:ee,L:ae,m:Qt,M:re,p:c,S:ie,U:Bt,w:Yt,W:Gt,x:u,X:l,y:Zt,Y:Xt,Z:Kt,"%":se};return e}function Wt(t,e,n){var r=0>t?"-":"",i=(r?-t:t)+"",a=i.length;return r+(n>a?new Array(n-a+1).join(e)+i:i)}function zt(t){return new RegExp("^(?:"+t.map(so.requote).join("|")+")","i")}function Ut(t){for(var e=new l,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function Yt(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Bt(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function Gt(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function Xt(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Zt(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n,n+2));return r?(t.y=Jt(+r[0]),n+r[0].length):-1}function Kt(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function Jt(t){return t+(t>68?1900:2e3)}function Qt(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function te(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ee(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function ne(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function re(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ie(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ae(t,e,n){vs.lastIndex=0;var r=vs.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function oe(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=xo(e)/60|0,i=xo(e)%60;return n+Wt(r,"0",2)+Wt(i,"0",2)}function se(t,e,n){ys.lastIndex=0;var r=ys.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function ue(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 le(){}function ce(t,e,n){var r=n.s=t+e,i=r-t,a=r-i;n.t=t-a+(e-i)}function fe(t,e){t&&ws.hasOwnProperty(t.type)&&ws[t.type](t,e)}function de(t,e,n){var r,i=-1,a=t.length-n;for(e.lineStart();++i<a;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function pe(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)de(t[n],e,1);e.polygonEnd()}function he(){function t(t,e){t*=Ro,e=e*Ro/2+Lo/4;var n=t-r,o=n>=0?1:-1,s=o*n,u=Math.cos(e),l=Math.sin(e),c=a*l,f=i*u+c*Math.cos(s),d=c*o*Math.sin(s);Ms.add(Math.atan2(d,f)),r=t,i=u,a=l}var e,n,r,i,a;Cs.point=function(o,s){Cs.point=t,r=(e=o)*Ro,i=Math.cos(s=(n=s)*Ro/2+Lo/4),a=Math.sin(s)},Cs.lineEnd=function(){t(e,n)}}function ge(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 me(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ve(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 ye(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function be(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function xe(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 $e(t){return[Math.atan2(t[1],t[0]),et(t[2])]}function we(t,e){return xo(t[0]-e[0])<jo&&xo(t[1]-e[1])<jo}function ke(t,e){t*=Ro;var n=Math.cos(e*=Ro);Me(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function Me(t,e,n){++Ss,Es+=(t-Es)/Ss,Ds+=(e-Ds)/Ss,_s+=(n-_s)/Ss}function Ce(){function t(t,i){t*=Ro;var a=Math.cos(i*=Ro),o=a*Math.cos(t),s=a*Math.sin(t),u=Math.sin(i),l=Math.atan2(Math.sqrt((l=n*u-r*s)*l+(l=r*o-e*u)*l+(l=e*s-n*o)*l),e*o+n*s+r*u);As+=l,Ts+=l*(e+(e=o)),Os+=l*(n+(n=s)),Ns+=l*(r+(r=u)),Me(e,n,r)}var e,n,r;Is.point=function(i,a){i*=Ro;var o=Math.cos(a*=Ro);e=o*Math.cos(i),n=o*Math.sin(i),r=Math.sin(a),Is.point=t,Me(e,n,r)}}function Se(){Is.point=ke}function Ae(){function t(t,e){t*=Ro;var n=Math.cos(e*=Ro),o=n*Math.cos(t),s=n*Math.sin(t),u=Math.sin(e),l=i*u-a*s,c=a*o-r*u,f=r*s-i*o,d=Math.sqrt(l*l+c*c+f*f),p=r*o+i*s+a*u,h=d&&-tt(p)/d,g=Math.atan2(d,p);Ps+=h*l,Fs+=h*c,js+=h*f,As+=g,Ts+=g*(r+(r=o)),Os+=g*(i+(i=s)),Ns+=g*(a+(a=u)),Me(r,i,a)}var e,n,r,i,a;Is.point=function(o,s){e=o,n=s,Is.point=t,o*=Ro;var u=Math.cos(s*=Ro);r=u*Math.cos(o),i=u*Math.sin(o),a=Math.sin(s),Me(r,i,a)},Is.lineEnd=function(){t(e,n),Is.lineEnd=Se,Is.point=ke}}function Ee(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 De(){return!0}function _e(t,e,n,r,i){var a=[],o=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(we(n,r)){i.lineStart();for(var s=0;e>s;++s)i.point((n=t[s])[0],n[1]);return void i.lineEnd()}var u=new Oe(n,t,null,!0),l=new Oe(n,null,u,!1);u.o=l,a.push(u),o.push(l),u=new Oe(r,t,null,!1),l=new Oe(r,null,u,!0),u.o=l,a.push(u),o.push(l)}}),o.sort(e),Te(a),Te(o),a.length){for(var s=0,u=n,l=o.length;l>s;++s)o[s].e=u=!u;for(var c,f,d=a[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 s=0,l=c.length;l>s;++s)i.point((f=c[s])[0],f[1]);else r(p.x,p.n.x,1,i);p=p.n}else{if(h){c=p.p.z;for(var s=c.length-1;s>=0;--s)i.point((f=c[s])[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 Te(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 Oe(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 Ne(t,e,n,r){return function(i,a){function o(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&a.point(e,n)}function s(t,e){var n=i(t,e);m.point(n[0],n[1])}function u(){y.point=s,m.lineStart()}function l(){y.point=o,m.lineEnd()}function c(t,e){g.push([t,e]);var n=i(t,e);x.point(n[0],n[1])}function f(){x.lineStart(),g=[]}function d(){c(g[0][0],g[0][1]),x.lineEnd();var t,e=x.clean(),n=b.buffer(),r=n.length;if(g.pop(),h.push(g),g=null,r)if(1&e){t=n[0];var i,r=t.length-1,o=-1;if(r>0){for($||(a.polygonStart(),$=!0),a.lineStart();++o<r;)a.point((i=t[o])[0],i[1]);a.lineEnd()}}else r>1&&2&e&&n.push(n.pop().concat(n.shift())),p.push(n.filter(Pe))}var p,h,g,m=e(a),v=i.invert(r[0],r[1]),y={point:o,lineStart:u,lineEnd:l,polygonStart:function(){y.point=c,y.lineStart=f,y.lineEnd=d,p=[],h=[]},polygonEnd:function(){y.point=o,y.lineStart=u,y.lineEnd=l,p=so.merge(p);var t=He(v,h);p.length?($||(a.polygonStart(),$=!0),_e(p,je,t,n,a)):t&&($||(a.polygonStart(),$=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),$&&(a.polygonEnd(),$=!1),p=h=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}},b=Fe(),x=e(b),$=!1;return y}}function Pe(t){return t.length>1}function Fe(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:$,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function je(t,e){return((t=t.x)[0]<0?t[1]-Vo-jo:Vo-t[1])-((e=e.x)[0]<0?e[1]-Vo-jo:Vo-e[1])}function Ie(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?Lo:-Lo,u=xo(a-n);xo(u-Lo)<jo?(t.point(n,r=(r+o)/2>0?Vo:-Vo),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(a,r),e=0):i!==s&&u>=Lo&&(xo(n-i)<jo&&(n-=i*jo),xo(a-s)<jo&&(a-=s*jo),r=Le(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=a,r=o),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}function Le(t,e,n,r){var i,a,o=Math.sin(t-n);return xo(o)>jo?Math.atan((Math.sin(e)*(a=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+r)/2}function qe(t,e,n,r){var i;if(null==t)i=n*Vo,r.point(-Lo,i),r.point(0,i),r.point(Lo,i),r.point(Lo,0),r.point(Lo,-i),r.point(0,-i),r.point(-Lo,-i),r.point(-Lo,0),r.point(-Lo,i);else if(xo(t[0]-e[0])>jo){var a=t[0]<e[0]?Lo:-Lo;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(e[0],e[1])}function He(t,e){var n=t[0],r=t[1],i=[Math.sin(n),-Math.cos(n),0],a=0,o=0;Ms.reset();for(var s=0,u=e.length;u>s;++s){var l=e[s],c=l.length;if(c)for(var f=l[0],d=f[0],p=f[1]/2+Lo/4,h=Math.sin(p),g=Math.cos(p),m=1;;){m===c&&(m=0),t=l[m];var v=t[0],y=t[1]/2+Lo/4,b=Math.sin(y),x=Math.cos(y),$=v-d,w=$>=0?1:-1,k=w*$,M=k>Lo,C=h*b;if(Ms.add(Math.atan2(C*w*Math.sin(k),g*x+C*Math.cos(k))),a+=M?$+w*qo:$,M^d>=n^v>=n){var S=ve(ge(f),ge(t));xe(S);var A=ve(i,S);xe(A);var E=(M^$>=0?-1:1)*et(A[2]);(r>E||r===E&&(S[0]||S[1]))&&(o+=M^$>=0?1:-1)}if(!m++)break;d=v,h=b,g=x,f=t}}return(-jo>a||jo>a&&0>Ms)^1&o}function Ve(t){function e(t,e){return Math.cos(t)*Math.cos(e)>a}function n(t){var n,a,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(f,d){var p,h=[f,d],g=e(f,d),m=o?g?0:i(f,d):g?i(f+(0>f?Lo:-Lo),d):0;if(!n&&(l=u=g)&&t.lineStart(),g!==u&&(p=r(n,h),(we(n,p)||we(h,p))&&(h[0]+=jo,h[1]+=jo,g=e(h[0],h[1]))),g!==u)c=0,g?(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(s&&n&&o^g){var v;m&a||!(v=r(h,n,!0))||(c=0,o?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||n&&we(n,h)||t.point(h[0],h[1]),n=h,u=g,a=m},lineEnd:function(){u&&t.lineEnd(),n=null},clean:function(){return c|(l&&u)<<1}}}function r(t,e,n){var r=ge(t),i=ge(e),o=[1,0,0],s=ve(r,i),u=me(s,s),l=s[0],c=u-l*l;if(!c)return!n&&t;var f=a*u/c,d=-a*l/c,p=ve(o,s),h=be(o,f),g=be(s,d);ye(h,g);var m=p,v=me(h,m),y=me(m,m),b=v*v-y*(me(h,h)-1);if(!(0>b)){var x=Math.sqrt(b),$=be(m,(-v-x)/y);if(ye($,h),$=$e($),!n)return $;var w,k=t[0],M=e[0],C=t[1],S=e[1];k>M&&(w=k,k=M,M=w);var A=M-k,E=xo(A-Lo)<jo,D=E||jo>A;if(!E&&C>S&&(w=C,C=S,S=w),D?E?C+S>0^$[1]<(xo($[0]-k)<jo?C:S):C<=$[1]&&$[1]<=S:A>Lo^(k<=$[0]&&$[0]<=M)){var _=be(m,(-v+x)/y);return ye(_,h),[$,$e(_)]}}}function i(e,n){var r=o?t:Lo-t,i=0;return-r>e?i|=1:e>r&&(i|=2),-r>n?i|=4:n>r&&(i|=8),i}var a=Math.cos(t),o=a>0,s=xo(a)>jo,u=gn(t,6*Ro);return Ne(e,n,u,o?[0,-t]:[-Lo,t-Lo])}function Re(t,e,n,r){return function(i){var a,o=i.a,s=i.b,u=o.x,l=o.y,c=s.x,f=s.y,d=0,p=1,h=c-u,g=f-l;if(a=t-u,h||!(a>0)){if(a/=h,0>h){if(d>a)return;p>a&&(p=a)}else if(h>0){if(a>p)return;a>d&&(d=a)}if(a=n-u,h||!(0>a)){if(a/=h,0>h){if(a>p)return;a>d&&(d=a)}else if(h>0){if(d>a)return;p>a&&(p=a)}if(a=e-l,g||!(a>0)){if(a/=g,0>g){if(d>a)return;p>a&&(p=a)}else if(g>0){if(a>p)return;a>d&&(d=a)}if(a=r-l,g||!(0>a)){if(a/=g,0>g){if(a>p)return;a>d&&(d=a)}else if(g>0){if(d>a)return;p>a&&(p=a)}return d>0&&(i.a={x:u+d*h,y:l+d*g}),1>p&&(i.b={x:u+p*h,y:l+p*g}),i}}}}}}function We(t,e,n,r){function i(r,i){return xo(r[0]-t)<jo?i>0?0:3:xo(r[0]-n)<jo?i>0?2:1:xo(r[1]-e)<jo?i>0?1:0:i>0?3:2}function a(t,e){return o(t.x,e.x)}function o(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(s){function u(t){for(var e=0,n=m.length,r=t[1],i=0;n>i;++i)for(var a,o=1,s=m[i],u=s.length,l=s[0];u>o;++o)a=s[o],l[1]<=r?a[1]>r&&Q(l,a,t)>0&&++e:a[1]<=r&&Q(l,a,t)<0&&--e,l=a;return 0!==e}function l(a,s,u,l){var c=0,f=0;if(null==a||(c=i(a,u))!==(f=i(s,u))||o(a,s)<0^u>0){do l.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+u+4)%4)!==f)}else l.point(s[0],s[1])}function c(i,a){return i>=t&&n>=i&&a>=e&&r>=a}function f(t,e){c(t,e)&&s.point(t,e)}function d(){D.point=h,
|
||
m&&m.push(v=[]),M=!0,k=!1,$=w=NaN}function p(){g&&(h(y,b),x&&k&&A.rejoin(),g.push(A.buffer())),D.point=f,k&&s.lineEnd()}function h(t,e){t=Math.max(-qs,Math.min(qs,t)),e=Math.max(-qs,Math.min(qs,e));var n=c(t,e);if(m&&v.push([t,e]),M)y=t,b=e,x=n,M=!1,n&&(s.lineStart(),s.point(t,e));else if(n&&k)s.point(t,e);else{var r={a:{x:$,y:w},b:{x:t,y:e}};E(r)?(k||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),C=!1):n&&(s.lineStart(),s.point(t,e),C=!1)}$=t,w=e,k=n}var g,m,v,y,b,x,$,w,k,M,C,S=s,A=Fe(),E=Re(t,e,n,r),D={point:f,lineStart:d,lineEnd:p,polygonStart:function(){s=A,g=[],m=[],C=!0},polygonEnd:function(){s=S,g=so.merge(g);var e=u([t,r]),n=C&&e,i=g.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),l(null,null,1,s),s.lineEnd()),i&&_e(g,a,e,l,s),s.polygonEnd()),g=m=v=null}};return D}}function ze(t){var e=0,n=Lo/3,r=sn(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Lo/180,n=t[1]*Lo/180):[e/Lo*180,n/Lo*180]},i}function Ue(t,e){function n(t,e){var n=Math.sqrt(a-2*i*Math.sin(e))/i;return[n*Math.sin(t*=i),o-n*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(e))/2,a=1+r*(2*i-r),o=Math.sqrt(a)/i;return n.invert=function(t,e){var n=o-e;return[Math.atan2(t,n)/i,et((a-(t*t+n*n)*i*i)/(2*i))]},n}function Ye(){function t(t,e){Vs+=i*t-r*e,r=t,i=e}var e,n,r,i;Ys.point=function(a,o){Ys.point=t,e=r=a,n=i=o},Ys.lineEnd=function(){t(e,n)}}function Be(t,e){Rs>t&&(Rs=t),t>zs&&(zs=t),Ws>e&&(Ws=e),e>Us&&(Us=e)}function Ge(){function t(t,e){o.push("M",t,",",e,a)}function e(t,e){o.push("M",t,",",e),s.point=n}function n(t,e){o.push("L",t,",",e)}function r(){s.point=t}function i(){o.push("Z")}var a=Xe(4.5),o=[],s={point:t,lineStart:function(){s.point=e},lineEnd:r,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=r,s.point=t},pointRadius:function(t){return a=Xe(t),s},result:function(){if(o.length){var t=o.join("");return o=[],t}}};return s}function Xe(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Ze(t,e){Es+=t,Ds+=e,++_s}function Ke(){function t(t,r){var i=t-e,a=r-n,o=Math.sqrt(i*i+a*a);Ts+=o*(e+t)/2,Os+=o*(n+r)/2,Ns+=o,Ze(e=t,n=r)}var e,n;Gs.point=function(r,i){Gs.point=t,Ze(e=r,n=i)}}function Je(){Gs.point=Ze}function Qe(){function t(t,e){var n=t-r,a=e-i,o=Math.sqrt(n*n+a*a);Ts+=o*(r+t)/2,Os+=o*(i+e)/2,Ns+=o,o=i*t-r*e,Ps+=o*(r+t),Fs+=o*(i+e),js+=3*o,Ze(r=t,i=e)}var e,n,r,i;Gs.point=function(a,o){Gs.point=t,Ze(e=r=a,n=i=o)},Gs.lineEnd=function(){t(e,n)}}function tn(t){function e(e,n){t.moveTo(e+o,n),t.arc(e,n,o,0,qo)}function n(e,n){t.moveTo(e,n),s.point=r}function r(e,n){t.lineTo(e,n)}function i(){s.point=e}function a(){t.closePath()}var o=4.5,s={point:e,lineStart:function(){s.point=n},lineEnd:i,polygonStart:function(){s.lineEnd=a},polygonEnd:function(){s.lineEnd=i,s.point=e},pointRadius:function(t){return o=t,s},result:$};return s}function en(t){function e(t){return(s?r:n)(t)}function n(e){return an(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=NaN,M.point=a,e.lineStart()}function a(n,r){var a=ge([n,r]),o=t(n,r);i(b,x,y,$,w,k,b=o[0],x=o[1],y=n,$=a[0],w=a[1],k=a[2],s,e),e.point(b,x)}function o(){M.point=n,e.lineEnd()}function u(){r(),M.point=l,M.lineEnd=c}function l(t,e){a(f=t,d=e),p=b,h=x,g=$,m=w,v=k,M.point=a}function c(){i(b,x,y,$,w,k,p,h,f,g,m,v,s,e),M.lineEnd=o,o()}var f,d,p,h,g,m,v,y,b,x,$,w,k,M={point:n,lineStart:r,lineEnd:o,polygonStart:function(){e.polygonStart(),M.lineStart=u},polygonEnd:function(){e.polygonEnd(),M.lineStart=r}};return M}function i(e,n,r,s,u,l,c,f,d,p,h,g,m,v){var y=c-e,b=f-n,x=y*y+b*b;if(x>4*a&&m--){var $=s+p,w=u+h,k=l+g,M=Math.sqrt($*$+w*w+k*k),C=Math.asin(k/=M),S=xo(xo(k)-1)<jo||xo(r-d)<jo?(r+d)/2:Math.atan2(w,$),A=t(S,C),E=A[0],D=A[1],_=E-e,T=D-n,O=b*_-y*T;(O*O/x>a||xo((y*_+b*T)/x-.5)>.3||o>s*p+u*h+l*g)&&(i(e,n,r,s,u,l,E,D,S,$/=M,w/=M,k,m,v),v.point(E,D),i(E,D,S,$,w,k,c,f,d,p,h,g,m,v))}}var a=.5,o=Math.cos(30*Ro),s=16;return e.precision=function(t){return arguments.length?(s=(a=t*t)>0&&16,e):Math.sqrt(a)},e}function nn(t){var e=en(function(e,n){return t([e*Wo,n*Wo])});return function(t){return un(e(t))}}function rn(t){this.stream=t}function an(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 on(t){return sn(function(){return t})()}function sn(t){function e(t){return t=s(t[0]*Ro,t[1]*Ro),[t[0]*d+u,l-t[1]*d]}function n(t){return t=s.invert((t[0]-u)/d,(l-t[1])/d),t&&[t[0]*Wo,t[1]*Wo]}function r(){s=Ee(o=fn(v,b,x),a);var t=a(g,m);return u=p-t[0]*d,l=h+t[1]*d,i()}function i(){return c&&(c.valid=!1,c=null),e}var a,o,s,u,l,c,f=en(function(t,e){return t=a(t,e),[t[0]*d+u,l-t[1]*d]}),d=150,p=480,h=250,g=0,m=0,v=0,b=0,x=0,$=Ls,w=y,k=null,M=null;return e.stream=function(t){return c&&(c.valid=!1),c=un($(o,f(w(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?($=null==t?(k=t,Ls):Ve((k=+t)*Ro),i()):k},e.clipExtent=function(t){return arguments.length?(M=t,w=t?We(t[0][0],t[0][1],t[1][0],t[1][1]):y,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?(g=t[0]%360*Ro,m=t[1]%360*Ro,r()):[g*Wo,m*Wo]},e.rotate=function(t){return arguments.length?(v=t[0]%360*Ro,b=t[1]%360*Ro,x=t.length>2?t[2]%360*Ro:0,r()):[v*Wo,b*Wo,x*Wo]},so.rebind(e,f,"precision"),function(){return a=t.apply(this,arguments),e.invert=a.invert&&n,r()}}function un(t){return an(t,function(e,n){t.point(e*Ro,n*Ro)})}function ln(t,e){return[t,e]}function cn(t,e){return[t>Lo?t-qo:-Lo>t?t+qo:t,e]}function fn(t,e,n){return t?e||n?Ee(pn(t),hn(e,n)):pn(t):e||n?hn(e,n):cn}function dn(t){return function(e,n){return e+=t,[e>Lo?e-qo:-Lo>e?e+qo:e,n]}}function pn(t){var e=dn(t);return e.invert=dn(-t),e}function hn(t,e){function n(t,e){var n=Math.cos(e),s=Math.cos(t)*n,u=Math.sin(t)*n,l=Math.sin(e),c=l*r+s*i;return[Math.atan2(u*a-c*o,s*r-l*i),et(c*a+u*o)]}var r=Math.cos(t),i=Math.sin(t),a=Math.cos(e),o=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),s=Math.cos(t)*n,u=Math.sin(t)*n,l=Math.sin(e),c=l*a-u*o;return[Math.atan2(u*a+l*o,s*r+c*i),et(c*r-s*i)]},n}function gn(t,e){var n=Math.cos(t),r=Math.sin(t);return function(i,a,o,s){var u=o*e;null!=i?(i=mn(n,i),a=mn(n,a),(o>0?a>i:i>a)&&(i+=o*qo)):(i=t+o*qo,a=t-.5*u);for(var l,c=i;o>0?c>a:a>c;c-=u)s.point((l=$e([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],l[1])}}function mn(t,e){var n=ge(e);n[0]-=t,xe(n);var r=tt(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-jo)%(2*Math.PI)}function vn(t,e,n){var r=so.range(t,e-jo,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function yn(t,e,n){var r=so.range(t,e-jo,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function bn(t){return t.source}function xn(t){return t.target}function $n(t,e,n,r){var i=Math.cos(e),a=Math.sin(e),o=Math.cos(r),s=Math.sin(r),u=i*Math.cos(t),l=i*Math.sin(t),c=o*Math.cos(n),f=o*Math.sin(n),d=2*Math.asin(Math.sqrt(at(r-e)+i*o*at(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*u+e*c,i=n*l+e*f,o=n*a+e*s;return[Math.atan2(i,r)*Wo,Math.atan2(o,Math.sqrt(r*r+i*i))*Wo]}:function(){return[t*Wo,e*Wo]};return h.distance=d,h}function wn(){function t(t,i){var a=Math.sin(i*=Ro),o=Math.cos(i),s=xo((t*=Ro)-e),u=Math.cos(s);Xs+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=r*a-n*o*u)*s),n*a+r*o*u),e=t,n=a,r=o}var e,n,r;Zs.point=function(i,a){e=i*Ro,n=Math.sin(a*=Ro),r=Math.cos(a),Zs.point=t},Zs.lineEnd=function(){Zs.point=Zs.lineEnd=$}}function kn(t,e){function n(e,n){var r=Math.cos(e),i=Math.cos(n),a=t(r*i);return[a*i*Math.sin(e),a*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),i=e(r),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,r*o),Math.asin(r&&n*a/r)]},n}function Mn(t,e){function n(t,e){o>0?-Vo+jo>e&&(e=-Vo+jo):e>Vo-jo&&(e=Vo-jo);var n=o/Math.pow(i(e),a);return[n*Math.sin(a*t),o-n*Math.cos(a*t)]}var r=Math.cos(t),i=function(t){return Math.tan(Lo/4+t/2)},a=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(i(e)/i(t)),o=r*Math.pow(i(t),a)/a;return a?(n.invert=function(t,e){var n=o-e,r=J(a)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/a,2*Math.atan(Math.pow(o/r,1/a))-Vo]},n):Sn}function Cn(t,e){function n(t,e){var n=a-e;return[n*Math.sin(i*t),a-n*Math.cos(i*t)]}var r=Math.cos(t),i=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),a=r/i+t;return xo(i)<jo?ln:(n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/i,a-J(i)*Math.sqrt(t*t+n*n)]},n)}function Sn(t,e){return[t,Math.log(Math.tan(Lo/4+e/2))]}function An(t){var e,n=on(t),r=n.scale,i=n.translate,a=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 o=a.apply(n,arguments);if(o===n){if(e=null==t){var s=Lo*r(),u=i();a([[u[0]-s,u[1]-s],[u[0]+s,u[1]+s]])}}else e&&(o=null);return o},n.clipExtent(null)}function En(t,e){return[Math.log(Math.tan(Lo/4+e/2)),-t]}function Dn(t){return t[0]}function _n(t){return t[1]}function Tn(t){for(var e=t.length,n=[0,1],r=2,i=2;e>i;i++){for(;r>1&&Q(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function On(t,e){return t[0]-e[0]||t[1]-e[1]}function Nn(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Pn(t,e,n,r){var i=t[0],a=n[0],o=e[0]-i,s=r[0]-a,u=t[1],l=n[1],c=e[1]-u,f=r[1]-l,d=(s*(u-l)-f*(i-a))/(f*o-s*c);return[i+d*o,u+d*c]}function Fn(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function jn(){rr(this),this.edge=this.site=this.circle=null}function In(t){var e=uu.pop()||new jn;return e.site=t,e}function Ln(t){Gn(t),au.remove(t),uu.push(t),rr(t)}function qn(t){var e=t.circle,n=e.x,r=e.cy,i={x:n,y:r},a=t.P,o=t.N,s=[t];Ln(t);for(var u=a;u.circle&&xo(n-u.circle.x)<jo&&xo(r-u.circle.cy)<jo;)a=u.P,s.unshift(u),Ln(u),u=a;s.unshift(u),Gn(u);for(var l=o;l.circle&&xo(n-l.circle.x)<jo&&xo(r-l.circle.cy)<jo;)o=l.N,s.push(l),Ln(l),l=o;s.push(l),Gn(l);var c,f=s.length;for(c=1;f>c;++c)l=s[c],u=s[c-1],tr(l.edge,u.site,l.site,i);u=s[0],l=s[f-1],l.edge=Jn(u.site,l.site,null,i),Bn(u),Bn(l)}function Hn(t){for(var e,n,r,i,a=t.x,o=t.y,s=au._;s;)if(r=Vn(s,o)-a,r>jo)s=s.L;else{if(i=a-Rn(s,o),!(i>jo)){r>-jo?(e=s.P,n=s):i>-jo?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}var u=In(t);if(au.insert(e,u),e||n){if(e===n)return Gn(e),n=In(e.site),au.insert(u,n),u.edge=n.edge=Jn(e.site,u.site),Bn(e),void Bn(n);if(!n)return void(u.edge=Jn(e.site,u.site));Gn(e),Gn(n);var l=e.site,c=l.x,f=l.y,d=t.x-c,p=t.y-f,h=n.site,g=h.x-c,m=h.y-f,v=2*(d*m-p*g),y=d*d+p*p,b=g*g+m*m,x={x:(m*y-p*b)/v+c,y:(d*b-g*y)/v+f};tr(n.edge,l,h,x),u.edge=Jn(l,t,null,x),n.edge=Jn(t,h,null,x),Bn(e),Bn(n)}}function Vn(t,e){var n=t.site,r=n.x,i=n.y,a=i-e;if(!a)return r;var o=t.P;if(!o)return-(1/0);n=o.site;var s=n.x,u=n.y,l=u-e;if(!l)return s;var c=s-r,f=1/a-1/l,d=c/l;return f?(-d+Math.sqrt(d*d-2*f*(c*c/(-2*l)-u+l/2+i-a/2)))/f+r:(r+s)/2}function Rn(t,e){var n=t.N;if(n)return Vn(n,e);var r=t.site;return r.y===e?r.x:1/0}function Wn(t){this.site=t,this.edges=[]}function zn(t){for(var e,n,r,i,a,o,s,u,l,c,f=t[0][0],d=t[1][0],p=t[0][1],h=t[1][1],g=iu,m=g.length;m--;)if(a=g[m],a&&a.prepare())for(s=a.edges,u=s.length,o=0;u>o;)c=s[o].end(),r=c.x,i=c.y,l=s[++o%u].start(),e=l.x,n=l.y,(xo(r-e)>jo||xo(i-n)>jo)&&(s.splice(o,0,new er(Qn(a.site,c,xo(r-f)<jo&&h-i>jo?{x:f,y:xo(e-f)<jo?n:h}:xo(i-h)<jo&&d-r>jo?{x:xo(n-h)<jo?e:d,y:h}:xo(r-d)<jo&&i-p>jo?{x:d,y:xo(e-d)<jo?n:p}:xo(i-p)<jo&&r-f>jo?{x:xo(n-p)<jo?e:f,y:p}:null),a.site,null)),++u)}function Un(t,e){return e.angle-t.angle}function Yn(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Bn(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,i=t.site,a=n.site;if(r!==a){var o=i.x,s=i.y,u=r.x-o,l=r.y-s,c=a.x-o,f=a.y-s,d=2*(u*f-l*c);if(!(d>=-Io)){var p=u*u+l*l,h=c*c+f*f,g=(f*p-l*h)/d,m=(u*h-c*p)/d,f=m+s,v=lu.pop()||new Yn;v.arc=t,v.site=i,v.x=g+o,v.y=f+Math.sqrt(g*g+m*m),v.cy=f,t.circle=v;for(var y=null,b=su._;b;)if(v.y<b.y||v.y===b.y&&v.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}su.insert(y,v),y||(ou=v)}}}}function Gn(t){var e=t.circle;e&&(e.P||(ou=e.N),su.remove(e),lu.push(e),rr(e),t.circle=null)}function Xn(t){for(var e,n=ru,r=Re(t[0][0],t[0][1],t[1][0],t[1][1]),i=n.length;i--;)e=n[i],(!Zn(e,t)||!r(e)||xo(e.a.x-e.b.x)<jo&&xo(e.a.y-e.b.y)<jo)&&(e.a=e.b=null,n.splice(i,1))}function Zn(t,e){var n=t.b;if(n)return!0;var r,i,a=t.a,o=e[0][0],s=e[1][0],u=e[0][1],l=e[1][1],c=t.l,f=t.r,d=c.x,p=c.y,h=f.x,g=f.y,m=(d+h)/2,v=(p+g)/2;if(g===p){if(o>m||m>=s)return;if(d>h){if(a){if(a.y>=l)return}else a={x:m,y:u};n={x:m,y:l}}else{if(a){if(a.y<u)return}else a={x:m,y:l};n={x:m,y:u}}}else if(r=(d-h)/(g-p),i=v-r*m,-1>r||r>1)if(d>h){if(a){if(a.y>=l)return}else a={x:(u-i)/r,y:u};n={x:(l-i)/r,y:l}}else{if(a){if(a.y<u)return}else a={x:(l-i)/r,y:l};n={x:(u-i)/r,y:u}}else if(g>p){if(a){if(a.x>=s)return}else a={x:o,y:r*o+i};n={x:s,y:r*s+i}}else{if(a){if(a.x<o)return}else a={x:s,y:r*s+i};n={x:o,y:r*o+i}}return t.a=a,t.b=n,!0}function Kn(t,e){this.l=t,this.r=e,this.a=this.b=null}function Jn(t,e,n,r){var i=new Kn(t,e);return ru.push(i),n&&tr(i,t,e,n),r&&tr(i,e,t,r),iu[t.i].edges.push(new er(i,t,e)),iu[e.i].edges.push(new er(i,e,t)),i}function Qn(t,e,n){var r=new Kn(t,null);return r.a=e,r.b=n,ru.push(r),r}function tr(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 er(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 nr(){this._=null}function rr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ir(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 ar(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 or(t){for(;t.L;)t=t.L;return t}function sr(t,e){var n,r,i,a=t.sort(ur).pop();for(ru=[],iu=new Array(t.length),au=new nr,su=new nr;;)if(i=ou,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))(a.x!==n||a.y!==r)&&(iu[a.i]=new Wn(a),Hn(a),n=a.x,r=a.y),a=t.pop();else{if(!i)break;qn(i.arc)}e&&(Xn(e),zn(e));var o={cells:iu,edges:ru};return au=su=ru=iu=null,o}function ur(t,e){return e.y-t.y||e.x-t.x}function lr(t,e,n){return(t.x-n.x)*(e.y-t.y)-(t.x-e.x)*(n.y-t.y)}function cr(t){return t.x}function fr(t){return t.y}function dr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function pr(t,e,n,r,i,a){if(!t(e,n,r,i,a)){var o=.5*(n+i),s=.5*(r+a),u=e.nodes;u[0]&&pr(t,u[0],n,r,o,s),u[1]&&pr(t,u[1],o,r,i,s),u[2]&&pr(t,u[2],n,s,o,a),u[3]&&pr(t,u[3],o,s,i,a)}}function hr(t,e,n,r,i,a,o){var s,u=1/0;return function l(t,c,f,d,p){if(!(c>a||f>o||r>d||i>p)){if(h=t.point){var h,g=e-t.x,m=n-t.y,v=g*g+m*m;if(u>v){var y=Math.sqrt(u=v);r=e-y,i=n-y,a=e+y,o=n+y,s=h}}for(var b=t.nodes,x=.5*(c+d),$=.5*(f+p),w=e>=x,k=n>=$,M=k<<1|w,C=M+4;C>M;++M)if(t=b[3&M])switch(3&M){case 0:l(t,c,f,x,$);break;case 1:l(t,x,f,d,$);break;case 2:l(t,c,$,x,p);break;case 3:l(t,x,$,d,p)}}}(t,r,i,a,o),s}function gr(t,e){t=so.rgb(t),e=so.rgb(e);var n=t.r,r=t.g,i=t.b,a=e.r-n,o=e.g-r,s=e.b-i;return function(t){return"#"+xt(Math.round(n+a*t))+xt(Math.round(r+o*t))+xt(Math.round(i+s*t))}}function mr(t,e){var n,r={},i={};for(n in t)n in e?r[n]=br(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 vr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function yr(t,e){var n,r,i,a=fu.lastIndex=du.lastIndex=0,o=-1,s=[],u=[];for(t+="",e+="";(n=fu.exec(t))&&(r=du.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,u.push({i:o,x:vr(n,r)})),a=du.lastIndex;return a<e.length&&(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?u[0]?(e=u[0].x,function(t){return e(t)+""}):function(){return e}:(e=u.length,function(t){for(var n,r=0;e>r;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})}function br(t,e){for(var n,r=so.interpolators.length;--r>=0&&!(n=so.interpolators[r](t,e)););return n}function xr(t,e){var n,r=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(n=0;s>n;++n)r.push(br(t[n],e[n]));for(;a>n;++n)i[n]=t[n];for(;o>n;++n)i[n]=e[n];return function(t){for(n=0;s>n;++n)i[n]=r[n](t);return i}}function $r(t){return function(e){return 0>=e?0:e>=1?1:t(e)}}function wr(t){return function(e){return 1-t(1-e)}}function kr(t){return function(e){return.5*(.5>e?t(2*e):2-t(2-2*e))}}function Mr(t){return t*t}function Cr(t){return t*t*t}function Sr(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 Ar(t){return function(e){return Math.pow(e,t)}}function Er(t){return 1-Math.cos(t*Vo)}function Dr(t){return Math.pow(2,10*(t-1))}function _r(t){return 1-Math.sqrt(1-t*t)}function Tr(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/qo*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*qo/e)}}function Or(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function Nr(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 Pr(t,e){t=so.hcl(t),e=so.hcl(e);var n=t.h,r=t.c,i=t.l,a=e.h-n,o=e.c-r,s=e.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?e.c:r),isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:-180>a&&(a+=360),function(t){return ct(n+a*t,r+o*t,i+s*t)+""}}function Fr(t,e){t=so.hsl(t),e=so.hsl(e);var n=t.h,r=t.s,i=t.l,a=e.h-n,o=e.s-r,s=e.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?e.s:r),isNaN(a)?(a=0,n=isNaN(n)?e.h:n):a>180?a-=360:-180>a&&(a+=360),function(t){return ut(n+a*t,r+o*t,i+s*t)+""}}function jr(t,e){t=so.lab(t),e=so.lab(e);var n=t.l,r=t.a,i=t.b,a=e.l-n,o=e.a-r,s=e.b-i;return function(t){return dt(n+a*t,r+o*t,i+s*t)+""}}function Ir(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function Lr(t){var e=[t.a,t.b],n=[t.c,t.d],r=Hr(e),i=qr(e,n),a=Hr(Vr(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]))*Wo,this.translate=[t.e,t.f],this.scale=[r,a],this.skew=a?Math.atan2(i,a)*Wo:0}function qr(t,e){return t[0]*e[0]+t[1]*e[1]}function Hr(t){var e=Math.sqrt(qr(t,t));return e&&(t[0]/=e,t[1]/=e),e}function Vr(t,e,n){return t[0]+=n*e[0],t[1]+=n*e[1],t}function Rr(t){return t.length?t.pop()+",":""}function Wr(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:vr(t[0],e[0])},{i:i-2,x:vr(t[1],e[1])})}else(e[0]||e[1])&&n.push("translate("+e+")")}function zr(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(Rr(n)+"rotate(",null,")")-2,x:vr(t,e)})):e&&n.push(Rr(n)+"rotate("+e+")")}function Ur(t,e,n,r){t!==e?r.push({i:n.push(Rr(n)+"skewX(",null,")")-2,x:vr(t,e)}):e&&n.push(Rr(n)+"skewX("+e+")")}function Yr(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var i=n.push(Rr(n)+"scale(",null,",",null,")");r.push({i:i-4,x:vr(t[0],e[0])},{i:i-2,x:vr(t[1],e[1])})}else(1!==e[0]||1!==e[1])&&n.push(Rr(n)+"scale("+e+")")}function Br(t,e){var n=[],r=[];return t=so.transform(t),e=so.transform(e),Wr(t.translate,e.translate,n,r),zr(t.rotate,e.rotate,n,r),Ur(t.skew,e.skew,n,r),Yr(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,i=-1,a=r.length;++i<a;)n[(e=r[i]).i]=e.x(t);return n.join("")}}function Gr(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function Xr(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function Zr(t){for(var e=t.source,n=t.target,r=Jr(e,n),i=[e];e!==r;)e=e.parent,i.push(e);for(var a=i.length;n!==r;)i.splice(a,0,n),n=n.parent;return i}function Kr(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function Jr(t,e){if(t===e)return t;for(var n=Kr(t),r=Kr(e),i=n.pop(),a=r.pop(),o=null;i===a;)o=i,i=n.pop(),a=r.pop();return o}function Qr(t){t.fixed|=2}function ti(t){t.fixed&=-7}function ei(t){t.fixed|=4,t.px=t.x,t.py=t.y}function ni(t){t.fixed&=-5}function ri(t,e,n){var r=0,i=0;if(t.charge=0,!t.leaf)for(var a,o=t.nodes,s=o.length,u=-1;++u<s;)a=o[u],null!=a&&(ri(a,e,n),t.charge+=a.charge,r+=a.charge*a.cx,i+=a.charge*a.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 ii(t,e){return so.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=ci,t}function ai(t,e){for(var n=[t];null!=(t=n.pop());)if(e(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function oi(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)n.push(a[o]);for(;null!=(t=r.pop());)e(t)}function si(t){return t.children}function ui(t){return t.value}function li(t,e){return e.value-t.value}function ci(t){return so.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function fi(t){return t.x}function di(t){return t.y}function pi(t,e,n){t.y0=e,t.y=n}function hi(t){return so.range(t.length)}function gi(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function mi(t){for(var e,n=1,r=0,i=t[0][1],a=t.length;a>n;++n)(e=t[n][1])>i&&(r=n,i=e);return r}function vi(t){return t.reduce(yi,0)}function yi(t,e){return t+e[1]}function bi(t,e){return xi(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function xi(t,e){for(var n=-1,r=+t[0],i=(t[1]-r)/e,a=[];++n<=e;)a[n]=i*n+r;return a}function $i(t){return[so.min(t),so.max(t)]}function wi(t,e){return t.value-e.value}function ki(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function Mi(t,e){t._pack_next=e,e._pack_prev=t}function Ci(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 Si(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,a,o,s,u,l,c=1/0,f=-(1/0),d=1/0,p=-(1/0);if(n.forEach(Ai),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(a=n[2],_i(r,i,a),e(a),ki(r,a),r._pack_prev=a,ki(a,i),i=r._pack_next,o=3;l>o;o++){_i(r,i,a=n[o]);var h=0,g=1,m=1;for(s=i._pack_next;s!==i;s=s._pack_next,g++)if(Ci(s,a)){h=1;break}if(1==h)for(u=r._pack_prev;u!==s._pack_prev&&!Ci(u,a);u=u._pack_prev,m++);h?(m>g||g==m&&i.r<r.r?Mi(r,i=s):Mi(r=u,i),o--):(ki(r,a),i=a,e(a))}var v=(c+f)/2,y=(d+p)/2,b=0;for(o=0;l>o;o++)a=n[o],a.x-=v,a.y-=y,b=Math.max(b,a.r+Math.sqrt(a.x*a.x+a.y*a.y));t.r=b,n.forEach(Ei)}}function Ai(t){t._pack_next=t._pack_prev=t}function Ei(t){delete t._pack_next,delete t._pack_prev}function Di(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 a=-1,o=i.length;++a<o;)Di(i[a],e,n,r)}function _i(t,e,n){var r=t.r+n.r,i=e.x-t.x,a=e.y-t.y;if(r&&(i||a)){var o=e.r+n.r,s=i*i+a*a;o*=o,r*=r;var u=.5+(r-o)/(2*s),l=Math.sqrt(Math.max(0,2*o*(r+s)-(r-=s)*r-o*o))/(2*s);n.x=t.x+u*i+l*a,n.y=t.y+u*a-l*i}else n.x=t.x+r,n.y=t.y}function Ti(t,e){return t.parent==e.parent?1:2}function Oi(t){var e=t.children;return e.length?e[0]:t.t}function Ni(t){var e,n=t.children;return(e=n.length)?n[e-1]:t.t}function Pi(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Fi(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)e=i[a],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function ji(t,e,n){return t.a.parent===e.parent?t.a:n}function Ii(t){return 1+so.max(t,function(t){return t.y})}function Li(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function qi(t){var e=t.children;return e&&e.length?qi(e[0]):t}function Hi(t){var e,n=t.children;return n&&(e=n.length)?Hi(n[e-1]):t}function Vi(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Ri(t,e){var n=t.x+e[3],r=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return 0>i&&(n+=i/2,i=0),0>a&&(r+=a/2,a=0),{x:n,y:r,dx:i,dy:a}}function Wi(t){var e=t[0],n=t[t.length-1];return n>e?[e,n]:[n,e]}function zi(t){return t.rangeExtent?t.rangeExtent():Wi(t.range())}function Ui(t,e,n,r){var i=n(t[0],t[1]),a=r(e[0],e[1]);return function(t){return a(i(t))}}function Yi(t,e){var n,r=0,i=t.length-1,a=t[r],o=t[i];return a>o&&(n=r,r=i,i=n,n=a,a=o,o=n),t[r]=e.floor(a),t[i]=e.ceil(o),t}function Bi(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:ku}function Gi(t,e,n,r){var i=[],a=[],o=0,s=Math.min(t.length,e.length)-1;for(t[s]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<=s;)i.push(n(t[o-1],t[o])),a.push(r(e[o-1],e[o]));return function(e){var n=so.bisect(t,e,1,s)-1;return a[n](i[n](e))}}function Xi(t,e,n,r){function i(){var i=Math.min(t.length,e.length)>2?Gi:Ui,u=r?Xr:Gr;return o=i(t,e,u,n),s=i(e,t,u,br),a}function a(t){return o(t)}var o,s;return a.invert=function(t){return s(t)},a.domain=function(e){return arguments.length?(t=e.map(Number),i()):t},a.range=function(t){return arguments.length?(e=t,i()):e},a.rangeRound=function(t){return a.range(t).interpolate(Ir)},a.clamp=function(t){return arguments.length?(r=t,i()):r},a.interpolate=function(t){return arguments.length?(n=t,i()):n},a.ticks=function(e){return Qi(t,e)},a.tickFormat=function(e,n){return ta(t,e,n)},a.nice=function(e){return Ki(t,e),i()},a.copy=function(){return Xi(t,e,n,r)},i()}function Zi(t,e){return so.rebind(t,e,"range","rangeRound","interpolate","clamp")}function Ki(t,e){return Yi(t,Bi(Ji(t,e)[2])),Yi(t,Bi(Ji(t,e)[2])),t}function Ji(t,e){null==e&&(e=10);var n=Wi(t),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),a=e/r*i;return.15>=a?i*=10:.35>=a?i*=5:.75>=a&&(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 Qi(t,e){return so.range.apply(so,Ji(t,e))}function ta(t,e,n){var r=Ji(t,e);if(n){var i=fs.exec(n);if(i.shift(),"s"===i[8]){var a=so.formatPrefix(Math.max(xo(r[0]),xo(r[1])));return i[7]||(i[7]="."+ea(a.scale(r[2]))),i[8]="f",n=so.format(i.join("")),function(t){return n(a.scale(t))+a.symbol}}i[7]||(i[7]="."+na(i[8],r)),n=i.join("")}else n=",."+ea(r[2])+"f";return so.format(n)}function ea(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function na(t,e){var n=ea(e[2]);return t in Mu?Math.abs(n-ea(Math.max(xo(e[0]),xo(e[1]))))+ +("e"!==t):n-2*("%"===t)}function ra(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 a(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function o(e){return t(i(e))}return o.invert=function(e){return a(t.invert(e))},o.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(i)),o):r},o.base=function(n){return arguments.length?(e=+n,t.domain(r.map(i)),o):e},o.nice=function(){var e=Yi(r.map(i),n?Math:Su);return t.domain(e),r=e.map(a),o},o.ticks=function(){var t=Wi(r),o=[],s=t[0],u=t[1],l=Math.floor(i(s)),c=Math.ceil(i(u)),f=e%1?2:e;if(isFinite(c-l)){if(n){for(;c>l;l++)for(var d=1;f>d;d++)o.push(a(l)*d);o.push(a(l))}else for(o.push(a(l));l++<c;)for(var d=f-1;d>0;d--)o.push(a(l)*d);for(l=0;o[l]<s;l++);for(c=o.length;o[c-1]>u;c--);o=o.slice(l,c)}return o},o.tickFormat=function(t,n){if(!arguments.length)return Cu;arguments.length<2?n=Cu:"function"!=typeof n&&(n=so.format(n));var r=Math.max(1,e*t/o.ticks().length);return function(t){var o=t/a(Math.round(i(t)));return e-.5>o*e&&(o*=e),r>=o?n(t):""}},o.copy=function(){return ra(t.copy(),e,n,r)},Zi(o,t)}function ia(t,e,n){function r(e){return t(i(e))}var i=aa(e),a=aa(1/e);return r.invert=function(e){return a(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 Qi(n,t)},r.tickFormat=function(t,e){return ta(n,t,e)},r.nice=function(t){return r.domain(Ki(n,t))},r.exponent=function(o){return arguments.length?(i=aa(e=o),a=aa(1/e),t.domain(n.map(i)),r):e},r.copy=function(){return ia(t.copy(),e,n)},Zi(r,t)}function aa(t){return function(e){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}}function oa(t,e){function n(n){return a[((i.get(n)||("range"===e.t?i.set(n,t.push(n)):NaN))-1)%a.length]}function r(e,n){return so.range(t.length).map(function(t){return e+n*t})}var i,a,o;return n.domain=function(r){if(!arguments.length)return t;t=[],i=new l;for(var a,o=-1,s=r.length;++o<s;)i.has(a=r[o])||i.set(a,t.push(a));return n[e.t].apply(n,e.a)},n.range=function(t){return arguments.length?(a=t,o=0,e={t:"range",a:arguments},n):a},n.rangePoints=function(i,s){arguments.length<2&&(s=0);var u=i[0],l=i[1],c=t.length<2?(u=(u+l)/2,0):(l-u)/(t.length-1+s);return a=r(u+c*s/2,c),o=0,e={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(i,s){arguments.length<2&&(s=0);var u=i[0],l=i[1],c=t.length<2?(u=l=Math.round((u+l)/2),0):(l-u)/(t.length-1+s)|0;return a=r(u+Math.round(c*s/2+(l-u-(t.length-1+s)*c)/2),c),o=0,e={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(i,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var l=i[1]<i[0],c=i[l-0],f=i[1-l],d=(f-c)/(t.length-s+2*u);return a=r(c+d*u,d),l&&a.reverse(),o=d*(1-s),e={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(i,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var l=i[1]<i[0],c=i[l-0],f=i[1-l],d=Math.floor((f-c)/(t.length-s+2*u));return a=r(c+Math.round((f-c-(t.length-s)*d)/2),d),l&&a.reverse(),o=Math.round(d*(1-s)),e={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return o},n.rangeExtent=function(){return Wi(e.a[0])},n.copy=function(){return oa(t,e)},n.domain(t)}function sa(t,e){function a(){var n=0,r=e.length;for(s=[];++n<r;)s[n-1]=so.quantile(t,n/r);return o}function o(t){return isNaN(t=+t)?void 0:e[so.bisect(s,t)]}var s;return o.domain=function(e){return arguments.length?(t=e.map(r).filter(i).sort(n),a()):t},o.range=function(t){return arguments.length?(e=t,a()):e},o.quantiles=function(){return s},o.invertExtent=function(n){return n=e.indexOf(n),0>n?[NaN,NaN]:[n>0?s[n-1]:t[0],n<s.length?s[n]:t[t.length-1]]},o.copy=function(){return sa(t,e)},a()}function ua(t,e,n){function r(e){return n[Math.max(0,Math.min(o,Math.floor(a*(e-t))))]}function i(){return a=n.length/(e-t),o=n.length-1,r}var a,o;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?NaN:e/a+t,[e,e+1/a]},r.copy=function(){return ua(t,e,n)},i()}function la(t,e){function n(n){return n>=n?e[so.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 la(t,e)},n}function ca(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 Qi(t,e)},e.tickFormat=function(e,n){return ta(t,e,n)},e.copy=function(){return ca(t)},e}function fa(){return 0}function da(t){return t.innerRadius}function pa(t){return t.outerRadius}function ha(t){return t.startAngle}function ga(t){return t.endAngle}function ma(t){return t&&t.padAngle}function va(t,e,n,r){return(t-n)*e-(e-r)*t>0?0:1}function ya(t,e,n,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?r:-r)/Math.sqrt(a*a+o*o),u=s*o,l=-s*a,c=t[0]+u,f=t[1]+l,d=e[0]+u,p=e[1]+l,h=(c+d)/2,g=(f+p)/2,m=d-c,v=p-f,y=m*m+v*v,b=n-r,x=c*p-d*f,$=(0>v?-1:1)*Math.sqrt(Math.max(0,b*b*y-x*x)),w=(x*v-m*$)/y,k=(-x*m-v*$)/y,M=(x*v+m*$)/y,C=(-x*m+v*$)/y,S=w-h,A=k-g,E=M-h,D=C-g;return S*S+A*A>E*E+D*D&&(w=M,k=C),[[w-u,k-l],[w*n/b,k*n/b]]}function ba(t){function e(e){function o(){l.push("M",a(t(c),s))}for(var u,l=[],c=[],f=-1,d=e.length,p=St(n),h=St(r);++f<d;)i.call(this,u=e[f],f)?c.push([+p.call(this,u,f),+h.call(this,u,f)]):c.length&&(o(),c=[]);return c.length&&o(),l.length?l.join(""):null}var n=Dn,r=_n,i=De,a=xa,o=a.key,s=.7;return e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e.defined=function(t){return arguments.length?(i=t,e):i},e.interpolate=function(t){return arguments.length?(o="function"==typeof t?a=t:(a=Ou.get(t)||xa).key,e):o},e.tension=function(t){return arguments.length?(s=t,e):s},e}function xa(t){return t.length>1?t.join("L"):t+"Z";
|
||
}function $a(t){return t.join("L")+"Z"}function wa(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 ka(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 Ma(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 Ca(t,e){return t.length<4?xa(t):t[1]+Ea(t.slice(1,-1),Da(t,e))}function Sa(t,e){return t.length<3?$a(t):t[0]+Ea((t.push(t[0]),t),Da([t[t.length-2]].concat(t,[t[1]]),e))}function Aa(t,e){return t.length<3?xa(t):t[0]+Ea(t,Da(t,e))}function Ea(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return xa(t);var n=t.length!=e.length,r="",i=t[0],a=t[1],o=e[0],s=o,u=1;if(n&&(r+="Q"+(a[0]-2*o[0]/3)+","+(a[1]-2*o[1]/3)+","+a[0]+","+a[1],i=t[1],u=2),e.length>1){s=e[1],a=t[u],u++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var l=2;l<e.length;l++,u++)a=t[u],s=e[l],r+="S"+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1]}if(n){var c=t[u];r+="Q"+(a[0]+2*s[0]/3)+","+(a[1]+2*s[1]/3)+","+c[0]+","+c[1]}return r}function Da(t,e){for(var n,r=[],i=(1-e)/2,a=t[0],o=t[1],s=1,u=t.length;++s<u;)n=a,a=o,o=t[s],r.push([i*(o[0]-n[0]),i*(o[1]-n[1])]);return r}function _a(t){if(t.length<3)return xa(t);var e=1,n=t.length,r=t[0],i=r[0],a=r[1],o=[i,i,i,(r=t[1])[0]],s=[a,a,a,r[1]],u=[i,",",a,"L",Pa(Fu,o),",",Pa(Fu,s)];for(t.push(t[n-1]);++e<=n;)r=t[e],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),Fa(u,o,s);return t.pop(),u.push("L",r),u.join("")}function Ta(t){if(t.length<4)return xa(t);for(var e,n=[],r=-1,i=t.length,a=[0],o=[0];++r<3;)e=t[r],a.push(e[0]),o.push(e[1]);for(n.push(Pa(Fu,a)+","+Pa(Fu,o)),--r;++r<i;)e=t[r],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),Fa(n,a,o);return n.join("")}function Oa(t){for(var e,n,r=-1,i=t.length,a=i+4,o=[],s=[];++r<4;)n=t[r%i],o.push(n[0]),s.push(n[1]);for(e=[Pa(Fu,o),",",Pa(Fu,s)],--r;++r<a;)n=t[r%i],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),Fa(e,o,s);return e.join("")}function Na(t,e){var n=t.length-1;if(n)for(var r,i,a=t[0][0],o=t[0][1],s=t[n][0]-a,u=t[n][1]-o,l=-1;++l<=n;)r=t[l],i=l/n,r[0]=e*r[0]+(1-e)*(a+i*s),r[1]=e*r[1]+(1-e)*(o+i*u);return _a(t)}function Pa(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function Fa(t,e,n){t.push("C",Pa(Nu,e),",",Pa(Nu,n),",",Pa(Pu,e),",",Pa(Pu,n),",",Pa(Fu,e),",",Pa(Fu,n))}function ja(t,e){return(e[1]-t[1])/(e[0]-t[0])}function Ia(t){for(var e=0,n=t.length-1,r=[],i=t[0],a=t[1],o=r[0]=ja(i,a);++e<n;)r[e]=(o+(o=ja(i=a,a=t[e+1])))/2;return r[e]=o,r}function La(t){for(var e,n,r,i,a=[],o=Ia(t),s=-1,u=t.length-1;++s<u;)e=ja(t[s],t[s+1]),xo(e)<jo?o[s]=o[s+1]=0:(n=o[s]/e,r=o[s+1]/e,i=n*n+r*r,i>9&&(i=3*e/Math.sqrt(i),o[s]=i*n,o[s+1]=i*r));for(s=-1;++s<=u;)i=(t[Math.min(u,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}function qa(t){return t.length<3?xa(t):t[0]+Ea(t,La(t))}function Ha(t){for(var e,n,r,i=-1,a=t.length;++i<a;)e=t[i],n=e[0],r=e[1]-Vo,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function Va(t){function e(e){function u(){g.push("M",s(t(v),f),c,l(t(m.reverse()),f),"Z")}for(var d,p,h,g=[],m=[],v=[],y=-1,b=e.length,x=St(n),$=St(i),w=n===r?function(){return p}:St(r),k=i===a?function(){return h}:St(a);++y<b;)o.call(this,d=e[y],y)?(m.push([p=+x.call(this,d,y),h=+$.call(this,d,y)]),v.push([+w.call(this,d,y),+k.call(this,d,y)])):m.length&&(u(),m=[],v=[]);return m.length&&u(),g.length?g.join(""):null}var n=Dn,r=Dn,i=0,a=_n,o=De,s=xa,u=s.key,l=s,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=a=t,e):a},e.y0=function(t){return arguments.length?(i=t,e):i},e.y1=function(t){return arguments.length?(a=t,e):a},e.defined=function(t){return arguments.length?(o=t,e):o},e.interpolate=function(t){return arguments.length?(u="function"==typeof t?s=t:(s=Ou.get(t)||xa).key,l=s.reverse||s,c=s.closed?"M":"L",e):u},e.tension=function(t){return arguments.length?(f=t,e):f},e}function Ra(t){return t.radius}function Wa(t){return[t.x,t.y]}function za(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]-Vo;return[n*Math.cos(r),n*Math.sin(r)]}}function Ua(){return 64}function Ya(){return"circle"}function Ba(t){var e=Math.sqrt(t/Lo);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function Ga(t){return function(){var e,n,r;(e=this[t])&&(r=e[n=e.active])&&(r.timer.c=null,r.timer.t=NaN,--e.count?delete e[n]:delete this[t],e.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Xa(t,e,n){return Co(t,Ru),t.namespace=e,t.id=n,t}function Za(t,e,n,r){var i=t.id,a=t.namespace;return W(t,"function"==typeof n?function(t,o,s){t[a][i].tween.set(e,r(n.call(t,t.__data__,o,s)))}:(n=r(n),function(t){t[a][i].tween.set(e,n)}))}function Ka(t){return null==t&&(t=""),function(){this.textContent=t}}function Ja(t){return null==t?"__transition__":"__transition_"+t+"__"}function Qa(t,e,n,r,i){function a(t){var e=g.delay;return c.t=e+u,t>=e?o(t-e):void(c.c=o)}function o(n){var i=h.active,a=h[i];a&&(a.timer.c=null,a.timer.t=NaN,--h.count,delete h[i],a.event&&a.event.interrupt.call(t,t.__data__,a.index));for(var o in h)if(r>+o){var l=h[o];l.timer.c=null,l.timer.t=NaN,--h.count,delete h[o]}c.c=s,Tt(function(){return c.c&&s(n||1)&&(c.c=null,c.t=NaN),1},0,u),h.active=r,g.event&&g.event.start.call(t,t.__data__,e),p=[],g.tween.forEach(function(n,r){(r=r.call(t,t.__data__,e))&&p.push(r)}),d=g.ease,f=g.duration}function s(i){for(var a=i/f,o=d(a),s=p.length;s>0;)p[--s].call(t,o);return a>=1?(g.event&&g.event.end.call(t,t.__data__,e),--h.count?delete h[r]:delete t[n],1):void 0}var u,c,f,d,p,h=t[n]||(t[n]={active:0,count:0}),g=h[r];g||(u=i.time,c=Tt(a,0,u),g=h[r]={tween:new l,time:u,timer:c,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++h.count)}function to(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function eo(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}function no(t){return t.toISOString()}function ro(t,e,n){function r(e){return t(e)}function i(t,n){var r=t[1]-t[0],i=r/n,a=so.bisect(Ku,i);return a==Ku.length?[e.year,Ji(t.map(function(t){return t/31536e6}),n)[2]]:a?e[i/Ku[a-1]<Ku[a]/i?a-1:a]:[tl,Ji(t,n)[2]]}return r.invert=function(e){return io(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(io)},r.nice=function(t,e){function n(n){return!isNaN(n)&&!t.range(n,io(+n+1),e).length}var a=r.domain(),o=Wi(a),s=null==t?i(o,10):"number"==typeof t&&i(o,t);return s&&(t=s[0],e=s[1]),r.domain(Yi(a,e>1?{floor:function(e){for(;n(e=t.floor(e));)e=io(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=io(+e+1);return e}}:t))},r.ticks=function(t,e){var n=Wi(r.domain()),a=null==t?i(n,10):"number"==typeof t?i(n,t):!t.range&&[{range:t},e];return a&&(t=a[0],e=a[1]),t.range(n[0],io(+n[1]+1),1>e?1:e)},r.tickFormat=function(){return n},r.copy=function(){return ro(t.copy(),e,n)},Zi(r,t)}function io(t){return new Date(t)}function ao(t){return JSON.parse(t.responseText)}function oo(t){var e=co.createRange();return e.selectNode(co.body),e.createContextualFragment(t.responseText)}var so={version:"3.5.12"},uo=[].slice,lo=function(t){return uo.call(t)},co=this.document;if(co)try{lo(co.documentElement.childNodes)[0].nodeType}catch(fo){lo=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),co)try{co.createElement("DIV").style.setProperty("opacity",0,"")}catch(po){var ho=this.Element.prototype,go=ho.setAttribute,mo=ho.setAttributeNS,vo=this.CSSStyleDeclaration.prototype,yo=vo.setProperty;ho.setAttribute=function(t,e){go.call(this,t,e+"")},ho.setAttributeNS=function(t,e,n){mo.call(this,t,e,n+"")},vo.setProperty=function(t,e,n){yo.call(this,t,e+"",n)}}so.ascending=n,so.descending=function(t,e){return t>e?-1:e>t?1:e>=t?0:NaN},so.min=function(t,e){var n,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<a;)null!=(r=t[i])&&n>r&&(n=r)}else{for(;++i<a;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<a;)null!=(r=e.call(t,t[i],i))&&n>r&&(n=r)}return n},so.max=function(t,e){var n,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=t[i])&&r>=r){n=r;break}for(;++i<a;)null!=(r=t[i])&&r>n&&(n=r)}else{for(;++i<a;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=r;break}for(;++i<a;)null!=(r=e.call(t,t[i],i))&&r>n&&(n=r)}return n},so.extent=function(t,e){var n,r,i,a=-1,o=t.length;if(1===arguments.length){for(;++a<o;)if(null!=(r=t[a])&&r>=r){n=i=r;break}for(;++a<o;)null!=(r=t[a])&&(n>r&&(n=r),r>i&&(i=r))}else{for(;++a<o;)if(null!=(r=e.call(t,t[a],a))&&r>=r){n=i=r;break}for(;++a<o;)null!=(r=e.call(t,t[a],a))&&(n>r&&(n=r),r>i&&(i=r))}return[n,i]},so.sum=function(t,e){var n,r=0,a=t.length,o=-1;if(1===arguments.length)for(;++o<a;)i(n=+t[o])&&(r+=n);else for(;++o<a;)i(n=+e.call(t,t[o],o))&&(r+=n);return r},so.mean=function(t,e){var n,a=0,o=t.length,s=-1,u=o;if(1===arguments.length)for(;++s<o;)i(n=r(t[s]))?a+=n:--u;else for(;++s<o;)i(n=r(e.call(t,t[s],s)))?a+=n:--u;return u?a/u:void 0},so.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],a=n-r;return a?i+a*(t[r]-i):i},so.median=function(t,e){var a,o=[],s=t.length,u=-1;if(1===arguments.length)for(;++u<s;)i(a=r(t[u]))&&o.push(a);else for(;++u<s;)i(a=r(e.call(t,t[u],u)))&&o.push(a);return o.length?so.quantile(o.sort(n),.5):void 0},so.variance=function(t,e){var n,a,o=t.length,s=0,u=0,l=-1,c=0;if(1===arguments.length)for(;++l<o;)i(n=r(t[l]))&&(a=n-s,s+=a/++c,u+=a*(n-s));else for(;++l<o;)i(n=r(e.call(t,t[l],l)))&&(a=n-s,s+=a/++c,u+=a*(n-s));return c>1?u/(c-1):void 0},so.deviation=function(){var t=so.variance.apply(this,arguments);return t?Math.sqrt(t):t};var bo=a(n);so.bisectLeft=bo.left,so.bisect=so.bisectRight=bo.right,so.bisector=function(t){return a(1===t.length?function(e,r){return n(t(e),r)}:t)},so.shuffle=function(t,e,n){(a=arguments.length)<3&&(n=t.length,2>a&&(e=0));for(var r,i,a=n-e;a;)i=Math.random()*a--|0,r=t[a+e],t[a+e]=t[i+e],t[i+e]=r;return t},so.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},so.pairs=function(t){for(var e,n=0,r=t.length-1,i=t[0],a=new Array(0>r?0:r);r>n;)a[n]=[e=i,i=t[++n]];return a},so.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,e=so.min(arguments,o),n=new Array(e);++t<e;)for(var r,i=-1,a=n[t]=new Array(r);++i<r;)a[i]=arguments[i][t];return n},so.transpose=function(t){return so.zip.apply(so,t)},so.keys=function(t){var e=[];for(var n in t)e.push(n);return e},so.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},so.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},so.merge=function(t){for(var e,n,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(n=new Array(o);--i>=0;)for(r=t[i],e=r.length;--e>=0;)n[--o]=r[e];return n};var xo=Math.abs;so.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n===1/0)throw new Error("infinite range");var r,i=[],a=s(xo(n)),o=-1;if(t*=a,e*=a,n*=a,0>n)for(;(r=t+n*++o)>e;)i.push(r/a);else for(;(r=t+n*++o)<e;)i.push(r/a);return i},so.map=function(t,e){var n=new l;if(t instanceof l)t.forEach(function(t,e){n.set(t,e)});else if(Array.isArray(t)){var r,i=-1,a=t.length;if(1===arguments.length)for(;++i<a;)n.set(i,t[i]);else for(;++i<a;)n.set(e.call(t,r=t[i],i),r)}else for(var o in t)n.set(o,t[o]);return n};var $o="__proto__",wo="\x00";u(l,{has:d,get:function(t){return this._[c(t)]},set:function(t,e){return this._[c(t)]=e},remove:p,keys:h,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:f(e),value:this._[e]});return t},size:g,empty:m,forEach:function(t){for(var e in this._)t.call(this,f(e),this._[e])}}),so.nest=function(){function t(e,o,s){if(s>=a.length)return r?r.call(i,o):n?o.sort(n):o;for(var u,c,f,d,p=-1,h=o.length,g=a[s++],m=new l;++p<h;)(d=m.get(u=g(c=o[p])))?d.push(c):m.set(u,[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)}),m.forEach(f),c}function e(t,n){if(n>=a.length)return t;var r=[],i=o[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,i={},a=[],o=[];return i.map=function(e,n){return t(n,e,0)},i.entries=function(n){return e(t(so.map,n,0),0)},i.key=function(t){return a.push(t),i},i.sortKeys=function(t){return o[a.length-1]=t,i},i.sortValues=function(t){return n=t,i},i.rollup=function(t){return r=t,i},i},so.set=function(t){var e=new v;if(t)for(var n=0,r=t.length;r>n;++n)e.add(t[n]);return e},u(v,{has:d,add:function(t){return this._[c(t+="")]=!0,t},remove:p,values:h,size:g,empty:m,forEach:function(t){for(var e in this._)t.call(this,f(e))}}),so.behavior={},so.rebind=function(t,e){for(var n,r=1,i=arguments.length;++r<i;)t[n=arguments[r]]=b(t,e,e[n]);return t};var ko=["webkit","ms","moz","Moz","o","O"];so.dispatch=function(){for(var t=new w,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=k(t);return t},w.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(n>=0&&(r=t.slice(n+1),t=t.slice(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}},so.event=null,so.requote=function(t){return t.replace(Mo,"\\$&")};var Mo=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Co={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},So=function(t,e){return e.querySelector(t)},Ao=function(t,e){return e.querySelectorAll(t)},Eo=function(t,e){var n=t.matches||t[x(t,"matchesSelector")];return(Eo=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(So=function(t,e){return Sizzle(t,e)[0]||null},Ao=Sizzle,Eo=Sizzle.matchesSelector),so.selection=function(){return so.select(co.documentElement)};var Do=so.selection.prototype=[];Do.select=function(t){var e,n,r,i,a=[];t=E(t);for(var o=-1,s=this.length;++o<s;){a.push(e=[]),e.parentNode=(r=this[o]).parentNode;for(var u=-1,l=r.length;++u<l;)(i=r[u])?(e.push(n=t.call(i,i.__data__,u,o)),n&&"__data__"in i&&(n.__data__=i.__data__)):e.push(null)}return A(a)},Do.selectAll=function(t){var e,n,r=[];t=D(t);for(var i=-1,a=this.length;++i<a;)for(var o=this[i],s=-1,u=o.length;++s<u;)(n=o[s])&&(r.push(e=lo(t.call(n,n.__data__,s,i))),e.parentNode=n);return A(r)};var _o={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/"};so.ns={prefix:_o,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),_o.hasOwnProperty(n)?{space:_o[n],local:t}:t}},Do.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=so.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(_(e,t[e]));return this}return this.each(_(t,e))},Do.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=N(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(!O(t[i]).test(e))return!1;return!0}for(e in t)this.each(P(e,t[e]));return this}return this.each(P(t,e))},Do.style=function(t,n,r){var i=arguments.length;if(3>i){if("string"!=typeof t){2>i&&(n="");for(r in t)this.each(j(r,t[r],n));return this}if(2>i){var a=this.node();return e(a).getComputedStyle(a,null).getPropertyValue(t)}r=""}return this.each(j(t,n,r))},Do.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(I(e,t[e]));return this}return this.each(I(t,e))},Do.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},Do.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},Do.append=function(t){return t=L(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Do.insert=function(t,e){return t=L(t),e=E(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},Do.remove=function(){return this.each(q)},Do.data=function(t,e){function n(t,n){var r,i,a,o=t.length,f=n.length,d=Math.min(o,f),p=new Array(f),h=new Array(f),g=new Array(o);if(e){var m,v=new l,y=new Array(o);for(r=-1;++r<o;)(i=t[r])&&(v.has(m=e.call(i,i.__data__,r))?g[r]=i:v.set(m,i),y[r]=m);for(r=-1;++r<f;)(i=v.get(m=e.call(n,a=n[r],r)))?i!==!0&&(p[r]=i,i.__data__=a):h[r]=H(a),v.set(m,!0);for(r=-1;++r<o;)r in y&&v.get(y[r])!==!0&&(g[r]=t[r])}else{for(r=-1;++r<d;)i=t[r],a=n[r],i?(i.__data__=a,p[r]=i):h[r]=H(a);for(;f>r;++r)h[r]=H(n[r]);for(;o>r;++r)g[r]=t[r]}h.update=p,h.parentNode=p.parentNode=g.parentNode=t.parentNode,s.push(h),u.push(p),c.push(g)}var r,i,a=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(r=this[0]).length);++a<o;)(i=r[a])&&(t[a]=i.__data__);return t}var s=z([]),u=A([]),c=A([]);if("function"==typeof t)for(;++a<o;)n(r=this[a],t.call(r,r.parentNode.__data__,a));else for(;++a<o;)n(r=this[a],t);return u.enter=function(){return s},u.exit=function(){return c},u},Do.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},Do.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=V(t));for(var a=0,o=this.length;o>a;a++){i.push(e=[]),e.parentNode=(n=this[a]).parentNode;for(var s=0,u=n.length;u>s;s++)(r=n[s])&&t.call(r,r.__data__,s,a)&&e.push(r)}return A(i)},Do.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,r=this[t],i=r.length-1,a=r[i];--i>=0;)(n=r[i])&&(a&&a!==n.nextSibling&&a.parentNode.insertBefore(n,a),a=n);return this},Do.sort=function(t){t=R.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},Do.each=function(t){return W(this,function(e,n,r){t.call(e,e.__data__,n,r)})},Do.call=function(t){var e=lo(arguments);return t.apply(e[0]=this,e),this},Do.empty=function(){return!this.node()},Do.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 a=n[r];if(a)return a}return null},Do.size=function(){var t=0;return W(this,function(){++t}),t};var To=[];so.selection.enter=z,so.selection.enter.prototype=To,To.append=Do.append,To.empty=Do.empty,To.node=Do.node,To.call=Do.call,To.size=Do.size,To.select=function(t){for(var e,n,r,i,a,o=[],s=-1,u=this.length;++s<u;){r=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var l=-1,c=i.length;++l<c;)(a=i[l])?(e.push(r[l]=n=t.call(i.parentNode,a.__data__,l,s)),n.__data__=a.__data__):e.push(null)}return A(o)},To.insert=function(t,e){return arguments.length<2&&(e=U(this)),Do.insert.call(this,t,e)},so.select=function(e){var n;return"string"==typeof e?(n=[So(e,co)],n.parentNode=co.documentElement):(n=[e],n.parentNode=t(e)),A([n])},so.selectAll=function(t){var e;return"string"==typeof t?(e=lo(Ao(t,co)),e.parentNode=co.documentElement):(e=lo(t),e.parentNode=null),A([e])},Do.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(Y(n,t[n],e));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each(Y(t,e,n))};var Oo=so.map({mouseenter:"mouseover",mouseleave:"mouseout"});co&&Oo.forEach(function(t){"on"+t in co&&Oo.remove(t)});var No,Po=0;so.mouse=function(t){return Z(t,C())};var Fo=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;so.touch=function(t,e,n){if(arguments.length<3&&(n=e,e=C().changedTouches),e)for(var r,i=0,a=e.length;a>i;++i)if((r=e[i]).identifier===n)return Z(t,r)},so.behavior.drag=function(){function t(){this.on("mousedown.drag",a).on("touchstart.drag",o)}function n(t,e,n,a,o){return function(){function s(){var t,n,r=e(d,g);r&&(t=r[0]-b[0],n=r[1]-b[1],h|=t|n,b=r,p({type:"drag",x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:n}))}function u(){e(d,g)&&(v.on(a+m,null).on(o+m,null),y(h),p({type:"dragend"}))}var l,c=this,f=so.event.target,d=c.parentNode,p=r.of(c,arguments),h=0,g=t(),m=".drag"+(null==g?"":"-"+g),v=so.select(n(f)).on(a+m,s).on(o+m,u),y=X(f),b=e(d,g);i?(l=i.apply(c,arguments),l=[l.x-b[0],l.y-b[1]]):l=[0,0],p({type:"dragstart"})}}var r=S(t,"drag","dragstart","dragend"),i=null,a=n($,so.mouse,e,"mousemove","mouseup"),o=n(K,so.touch,y,"touchmove","touchend");return t.origin=function(e){return arguments.length?(i=e,t):i},so.rebind(t,r,"on")},so.touches=function(t,e){return arguments.length<2&&(e=C().touches),e?lo(e).map(function(e){var n=Z(t,e);return n.identifier=e.identifier,n}):[]};var jo=1e-6,Io=jo*jo,Lo=Math.PI,qo=2*Lo,Ho=qo-jo,Vo=Lo/2,Ro=Lo/180,Wo=180/Lo,zo=Math.SQRT2,Uo=2,Yo=4;so.interpolateZoom=function(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],u=e[1],l=e[2],c=s-i,f=u-a,d=c*c+f*f;if(Io>d)r=Math.log(l/o)/zo,n=function(t){return[i+t*c,a+t*f,o*Math.exp(zo*t*r)]};else{var p=Math.sqrt(d),h=(l*l-o*o+Yo*d)/(2*o*Uo*p),g=(l*l-o*o-Yo*d)/(2*l*Uo*p),m=Math.log(Math.sqrt(h*h+1)-h),v=Math.log(Math.sqrt(g*g+1)-g);r=(v-m)/zo,n=function(t){var e=t*r,n=rt(m),s=o/(Uo*p)*(n*it(zo*e+m)-nt(m));return[i+s*c,a+s*f,o*n/rt(zo*e+m)]}}return n.duration=1e3*r,n},so.behavior.zoom=function(){function t(t){t.on(T,f).on(Go+".zoom",p).on("dblclick.zoom",h).on(P,d)}function n(t){return[(t[0]-C.x)/C.k,(t[1]-C.y)/C.k]}function r(t){return[t[0]*C.k+C.x,t[1]*C.k+C.y]}function i(t){C.k=Math.max(E[0],Math.min(E[1],t))}function a(t,e){e=r(e),C.x+=t[0]-e[0],C.y+=t[1]-e[1]}function o(e,n,r,o){e.__chart__={x:C.x,y:C.y,k:C.k},i(Math.pow(2,o)),a(m=n,r),e=so.select(e),D>0&&(e=e.transition().duration(D)),e.call(t.event)}function s(){$&&$.domain(x.range().map(function(t){return(t-C.x)/C.k}).map(x.invert)),k&&k.domain(w.range().map(function(t){return(t-C.y)/C.k}).map(w.invert))}function u(t){_++||t({type:"zoomstart"})}function l(t){s(),t({type:"zoom",scale:C.k,translate:[C.x,C.y]})}function c(t){--_||(t({type:"zoomend"}),m=null)}function f(){function t(){s=1,a(so.mouse(i),d),l(o)}function r(){f.on(O,null).on(N,null),p(s),c(o)}var i=this,o=F.of(i,arguments),s=0,f=so.select(e(i)).on(O,t).on(N,r),d=n(so.mouse(i)),p=X(i);Vu.call(i),u(o)}function d(){function t(){var t=so.touches(h);return p=C.k,t.forEach(function(t){t.identifier in m&&(m[t.identifier]=n(t))}),t}function e(){var e=so.event.target;so.select(e).on(x,r).on($,s),w.push(e);for(var n=so.event.changedTouches,i=0,a=n.length;a>i;++i)m[n[i].identifier]=null;var u=t(),l=Date.now();if(1===u.length){if(500>l-b){var c=u[0];o(h,c,m[c.identifier],Math.floor(Math.log(C.k)/Math.LN2)+1),M()}b=l}else if(u.length>1){var c=u[0],f=u[1],d=c[0]-f[0],p=c[1]-f[1];v=d*d+p*p}}function r(){var t,e,n,r,o=so.touches(h);Vu.call(h);for(var s=0,u=o.length;u>s;++s,r=null)if(n=o[s],r=m[n.identifier]){if(e)break;t=n,e=r}if(r){var c=(c=n[0]-t[0])*c+(c=n[1]-t[1])*c,f=v&&Math.sqrt(c/v);t=[(t[0]+n[0])/2,(t[1]+n[1])/2],e=[(e[0]+r[0])/2,(e[1]+r[1])/2],i(f*p)}b=null,a(t,e),l(g)}function s(){if(so.event.touches.length){for(var e=so.event.changedTouches,n=0,r=e.length;r>n;++n)delete m[e[n].identifier];for(var i in m)return void t()}so.selectAll(w).on(y,null),k.on(T,f).on(P,d),S(),c(g)}var p,h=this,g=F.of(h,arguments),m={},v=0,y=".zoom-"+so.event.changedTouches[0].identifier,x="touchmove"+y,$="touchend"+y,w=[],k=so.select(h),S=X(h);e(),u(g),k.on(T,null).on(P,e)}function p(){var t=F.of(this,arguments);y?clearTimeout(y):(Vu.call(this),g=n(m=v||so.mouse(this)),u(t)),y=setTimeout(function(){y=null,c(t)},50),M(),i(Math.pow(2,.002*Bo())*C.k),a(m,g),l(t)}function h(){var t=so.mouse(this),e=Math.log(C.k)/Math.LN2;o(this,t,n(t),so.event.shiftKey?Math.ceil(e)-1:Math.floor(e)+1)}var g,m,v,y,b,x,$,w,k,C={x:0,y:0,k:1},A=[960,500],E=Xo,D=250,_=0,T="mousedown.zoom",O="mousemove.zoom",N="mouseup.zoom",P="touchstart.zoom",F=S(t,"zoomstart","zoom","zoomend");return Go||(Go="onwheel"in co?(Bo=function(){return-so.event.deltaY*(so.event.deltaMode?120:1)},"wheel"):"onmousewheel"in co?(Bo=function(){return so.event.wheelDelta},"mousewheel"):(Bo=function(){return-so.event.detail},"MozMousePixelScroll")),t.event=function(t){t.each(function(){var t=F.of(this,arguments),e=C;qu?so.select(this).transition().each("start.zoom",function(){C=this.__chart__||{x:0,y:0,k:1},u(t)}).tween("zoom:zoom",function(){var n=A[0],r=A[1],i=m?m[0]:n/2,a=m?m[1]:r/2,o=so.interpolateZoom([(i-C.x)/C.k,(a-C.y)/C.k,n/C.k],[(i-e.x)/e.k,(a-e.y)/e.k,n/e.k]);return function(e){var r=o(e),s=n/r[2];this.__chart__=C={x:i-r[0]*s,y:a-r[1]*s,k:s},l(t)}}).each("interrupt.zoom",function(){c(t)}).each("end.zoom",function(){c(t)}):(this.__chart__=C,u(t),l(t),c(t))})},t.translate=function(e){return arguments.length?(C={x:+e[0],y:+e[1],k:C.k},s(),t):[C.x,C.y]},t.scale=function(e){return arguments.length?(C={x:C.x,y:C.y,k:null},i(+e),s(),t):C.k},t.scaleExtent=function(e){return arguments.length?(E=null==e?Xo:[+e[0],+e[1]],t):E},t.center=function(e){return arguments.length?(v=e&&[+e[0],+e[1]],t):v},t.size=function(e){return arguments.length?(A=e&&[+e[0],+e[1]],t):A},t.duration=function(e){return arguments.length?(D=+e,t):D},t.x=function(e){return arguments.length?($=e,x=e.copy(),C={x:0,y:0,k:1},t):$},t.y=function(e){return arguments.length?(k=e,w=e.copy(),C={x:0,y:0,k:1},t):k},so.rebind(t,F,"on")};var Bo,Go,Xo=[0,1/0];so.color=ot,ot.prototype.toString=function(){return this.rgb()+""},so.hsl=st;var Zo=st.prototype=new ot;Zo.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new st(this.h,this.s,this.l/t)},Zo.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new st(this.h,this.s,t*this.l)},Zo.rgb=function(){return ut(this.h,this.s,this.l)},so.hcl=lt;var Ko=lt.prototype=new ot;Ko.brighter=function(t){return new lt(this.h,this.c,Math.min(100,this.l+Jo*(arguments.length?t:1)))},Ko.darker=function(t){return new lt(this.h,this.c,Math.max(0,this.l-Jo*(arguments.length?t:1)))},Ko.rgb=function(){return ct(this.h,this.c,this.l).rgb()},so.lab=ft;var Jo=18,Qo=.95047,ts=1,es=1.08883,ns=ft.prototype=new ot;ns.brighter=function(t){return new ft(Math.min(100,this.l+Jo*(arguments.length?t:1)),this.a,this.b)},ns.darker=function(t){return new ft(Math.max(0,this.l-Jo*(arguments.length?t:1)),this.a,this.b)},ns.rgb=function(){return dt(this.l,this.a,this.b)},so.rgb=vt;var rs=vt.prototype=new ot;rs.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),new vt(Math.min(255,e/t),Math.min(255,n/t),Math.min(255,r/t))):new vt(i,i,i)},rs.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new vt(t*this.r,t*this.g,t*this.b)},rs.hsl=function(){return wt(this.r,this.g,this.b)},rs.toString=function(){return"#"+xt(this.r)+xt(this.g)+xt(this.b)};var is=so.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,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});is.forEach(function(t,e){is.set(t,yt(e))}),so.functor=St,so.xhr=At(y),so.dsv=function(t,e){function n(t,n,a){arguments.length<3&&(a=n,n=null);var o=Et(t,e,null==n?r:i(n),a);return o.row=function(t){return arguments.length?o.response(null==(n=t)?r:i(t)):n},o}function r(t){return n.parse(t.responseText)}function i(t){return function(e){return n.parse(e.responseText,t)}}function a(e){return e.map(o).join(t)}function o(t){return s.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var s=new RegExp('["'+t+"\n]"),u=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 o;if(i)return i=!1,a;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.slice(e+1,n).replace(/""/g,'"')}for(;l>c;){var r=t.charCodeAt(c++),s=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(c)&&(++c,++s);else if(r!==u)continue;return t.slice(e,c-s)}return t.slice(e)}for(var r,i,a={},o={},s=[],l=t.length,c=0,f=0;(r=n())!==o;){for(var d=[];r!==a&&r!==o;)d.push(r),r=n();e&&null==(d=e(d,f++))||s.push(d)}return s},n.format=function(e){if(Array.isArray(e[0]))return n.formatRows(e);var r=new v,i=[];return e.forEach(function(t){for(var e in t)r.has(e)||i.push(r.add(e))}),[i.map(o).join(t)].concat(e.map(function(e){return i.map(function(t){return o(e[t])}).join(t)})).join("\n")},n.formatRows=function(t){return t.map(a).join("\n")},n},so.csv=so.dsv(",","text/csv"),so.tsv=so.dsv(" ","text/tab-separated-values");var as,os,ss,us,ls=this[x(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};so.timer=function(){Tt.apply(this,arguments)},so.timer.flush=function(){Nt(),Pt()},so.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var cs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(jt);so.formatPrefix=function(t,e){var n=0;return(t=+t)&&(0>t&&(t*=-1),
|
||
e&&(t=so.round(t,Ft(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),cs[8+n/3]};var fs=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ds=so.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=so.round(t,Ft(t,e))).toFixed(Math.max(0,Math.min(20,Ft(t*(1+1e-15),e))))}}),ps=so.time={},hs=Date;qt.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(){gs.setUTCDate.apply(this._,arguments)},setDay:function(){gs.setUTCDay.apply(this._,arguments)},setFullYear:function(){gs.setUTCFullYear.apply(this._,arguments)},setHours:function(){gs.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){gs.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){gs.setUTCMinutes.apply(this._,arguments)},setMonth:function(){gs.setUTCMonth.apply(this._,arguments)},setSeconds:function(){gs.setUTCSeconds.apply(this._,arguments)},setTime:function(){gs.setTime.apply(this._,arguments)}};var gs=Date.prototype;ps.year=Ht(function(t){return t=ps.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),ps.years=ps.year.range,ps.years.utc=ps.year.utc.range,ps.day=Ht(function(t){var e=new hs(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}),ps.days=ps.day.range,ps.days.utc=ps.day.utc.range,ps.dayOfYear=function(t){var e=ps.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=ps[t]=Ht(function(t){return(t=ps.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=ps.year(t).getDay();return Math.floor((ps.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});ps[t+"s"]=n.range,ps[t+"s"].utc=n.utc.range,ps[t+"OfYear"]=function(t){var n=ps.year(t).getDay();return Math.floor((ps.dayOfYear(t)+(n+e)%7)/7)}}),ps.week=ps.sunday,ps.weeks=ps.sunday.range,ps.weeks.utc=ps.sunday.utc.range,ps.weekOfYear=ps.sundayOfYear;var ms={"-":"",_:" ",0:"0"},vs=/^\s*\d+/,ys=/^%/;so.locale=function(t){return{numberFormat:It(t),timeFormat:Rt(t)}};var bs=so.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"]});so.format=bs.numberFormat,so.geo={},le.prototype={s:0,t:0,add:function(t){ce(t,this.t,xs),ce(xs.s,this.s,this),this.s?this.t+=xs.t:this.s=xs.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var xs=new le;so.geo.stream=function(t,e){t&&$s.hasOwnProperty(t.type)?$s[t.type](t,e):fe(t,e)};var $s={Feature:function(t,e){fe(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)fe(n[r].geometry,e)}},ws={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){de(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)de(n[r],e,0)},Polygon:function(t,e){pe(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)pe(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)fe(n[r],e)}};so.geo.area=function(t){return ks=0,so.geo.stream(t,Cs),ks};var ks,Ms=new le,Cs={sphere:function(){ks+=4*Lo},point:$,lineStart:$,lineEnd:$,polygonStart:function(){Ms.reset(),Cs.lineStart=he},polygonEnd:function(){var t=2*Ms;ks+=0>t?4*Lo+t:t,Cs.lineStart=Cs.lineEnd=Cs.point=$}};so.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=ge([e*Ro,n*Ro]);if(v){var i=ve(v,r),a=[i[1],-i[0],0],o=ve(a,i);xe(o),o=$e(o);var u=e-h,l=u>0?1:-1,g=o[0]*Wo*l,m=xo(u)>180;if(m^(g>l*h&&l*e>g)){var y=o[1]*Wo;y>p&&(p=y)}else if(g=(g+360)%360-180,m^(g>l*h&&l*e>g)){var y=-o[1]*Wo;f>y&&(f=y)}else f>n&&(f=n),n>p&&(p=n);m?h>e?s(c,e)>s(c,d)&&(d=e):s(e,d)>s(c,d)&&(c=e):d>=c?(c>e&&(c=e),e>d&&(d=e)):e>h?s(c,e)>s(c,d)&&(d=e):s(e,d)>s(c,d)&&(c=e)}else t(e,n);v=r,h=e}function n(){$.point=e}function r(){x[0]=c,x[1]=d,$.point=t,v=null}function i(t,n){if(v){var r=t-h;y+=xo(r)>180?r+(r>0?360:-360):r}else g=t,m=n;Cs.point(t,n),e(t,n)}function a(){Cs.lineStart()}function o(){i(g,m),Cs.lineEnd(),xo(y)>jo&&(c=-(d=180)),x[0]=c,x[1]=d,v=null}function s(t,e){return(e-=t)<0?e+360:e}function u(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,g,m,v,y,b,x,$={point:t,lineStart:n,lineEnd:r,polygonStart:function(){$.point=i,$.lineStart=a,$.lineEnd=o,y=0,Cs.polygonStart()},polygonEnd:function(){Cs.polygonEnd(),$.point=t,$.lineStart=n,$.lineEnd=r,0>Ms?(c=-(d=180),f=-(p=90)):y>jo?p=90:-jo>y&&(f=-90),x[0]=c,x[1]=d}};return function(t){p=d=-(c=f=1/0),b=[],so.geo.stream(t,$);var e=b.length;if(e){b.sort(u);for(var n,r=1,i=b[0],a=[i];e>r;++r)n=b[r],l(n[0],i)||l(n[1],i)?(s(i[0],n[1])>s(i[0],i[1])&&(i[1]=n[1]),s(n[0],i[1])>s(i[0],i[1])&&(i[0]=n[0])):a.push(i=n);for(var o,n,h=-(1/0),e=a.length-1,r=0,i=a[e];e>=r;i=n,++r)n=a[r],(o=s(i[1],n[0]))>h&&(h=o,c=n[0],d=i[1])}return b=x=null,c===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,f],[d,p]]}}(),so.geo.centroid=function(t){Ss=As=Es=Ds=_s=Ts=Os=Ns=Ps=Fs=js=0,so.geo.stream(t,Is);var e=Ps,n=Fs,r=js,i=e*e+n*n+r*r;return Io>i&&(e=Ts,n=Os,r=Ns,jo>As&&(e=Es,n=Ds,r=_s),i=e*e+n*n+r*r,Io>i)?[NaN,NaN]:[Math.atan2(n,e)*Wo,et(r/Math.sqrt(i))*Wo]};var Ss,As,Es,Ds,_s,Ts,Os,Ns,Ps,Fs,js,Is={sphere:$,point:ke,lineStart:Ce,lineEnd:Se,polygonStart:function(){Is.lineStart=Ae},polygonEnd:function(){Is.lineStart=Ce}},Ls=Ne(De,Ie,qe,[-Lo,-Lo/2]),qs=1e9;so.geo.clipExtent=function(){var t,e,n,r,i,a,o={stream:function(t){return i&&(i.valid=!1),i=a(t),i.valid=!0,i},extent:function(s){return arguments.length?(a=We(t=+s[0][0],e=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),o):[[t,e],[n,r]]}};return o.extent([[0,0],[960,500]])},(so.geo.conicEqualArea=function(){return ze(Ue)}).raw=Ue,so.geo.albers=function(){return so.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},so.geo.albersUsa=function(){function t(t){var a=t[0],o=t[1];return e=null,n(a,o),e||(r(a,o),e)||i(a,o),e}var e,n,r,i,a=so.geo.albers(),o=so.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=so.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,n){e=[t,n]}};return t.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?o:i>=.166&&.234>i&&r>=-.214&&-.115>r?s:a).invert(t)},t.stream=function(t){var e=a.stream(t),n=o.stream(t),r=s.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?(a.precision(e),o.precision(e),s.precision(e),t):a.precision()},t.scale=function(e){return arguments.length?(a.scale(e),o.scale(.35*e),s.scale(e),t.translate(a.translate())):a.scale()},t.translate=function(e){if(!arguments.length)return a.translate();var l=a.scale(),c=+e[0],f=+e[1];return n=a.translate(e).clipExtent([[c-.455*l,f-.238*l],[c+.455*l,f+.238*l]]).stream(u).point,r=o.translate([c-.307*l,f+.201*l]).clipExtent([[c-.425*l+jo,f+.12*l+jo],[c-.214*l-jo,f+.234*l-jo]]).stream(u).point,i=s.translate([c-.205*l,f+.212*l]).clipExtent([[c-.214*l+jo,f+.166*l+jo],[c-.115*l-jo,f+.234*l-jo]]).stream(u).point,t},t.scale(1070)};var Hs,Vs,Rs,Ws,zs,Us,Ys={point:$,lineStart:$,lineEnd:$,polygonStart:function(){Vs=0,Ys.lineStart=Ye},polygonEnd:function(){Ys.lineStart=Ys.lineEnd=Ys.point=$,Hs+=xo(Vs/2)}},Bs={point:Be,lineStart:$,lineEnd:$,polygonStart:$,polygonEnd:$},Gs={point:Ze,lineStart:Ke,lineEnd:Je,polygonStart:function(){Gs.lineStart=Qe},polygonEnd:function(){Gs.point=Ze,Gs.lineStart=Ke,Gs.lineEnd=Je}};so.geo.path=function(){function t(t){return t&&("function"==typeof s&&a.pointRadius(+s.apply(this,arguments)),o&&o.valid||(o=i(a)),so.geo.stream(t,o)),a.result()}function e(){return o=null,t}var n,r,i,a,o,s=4.5;return t.area=function(t){return Hs=0,so.geo.stream(t,i(Ys)),Hs},t.centroid=function(t){return Es=Ds=_s=Ts=Os=Ns=Ps=Fs=js=0,so.geo.stream(t,i(Gs)),js?[Ps/js,Fs/js]:Ns?[Ts/Ns,Os/Ns]:_s?[Es/_s,Ds/_s]:[NaN,NaN]},t.bounds=function(t){return zs=Us=-(Rs=Ws=1/0),so.geo.stream(t,i(Bs)),[[Rs,Ws],[zs,Us]]},t.projection=function(t){return arguments.length?(i=(n=t)?t.stream||nn(t):y,e()):n},t.context=function(t){return arguments.length?(a=null==(r=t)?new Ge:new tn(t),"function"!=typeof s&&a.pointRadius(s),e()):r},t.pointRadius=function(e){return arguments.length?(s="function"==typeof e?e:(a.pointRadius(+e),+e),t):s},t.projection(so.geo.albersUsa()).context(null)},so.geo.transform=function(t){return{stream:function(e){var n=new rn(e);for(var r in t)n[r]=t[r];return n}}},rn.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()}},so.geo.projection=on,so.geo.projectionMutator=sn,(so.geo.equirectangular=function(){return on(ln)}).raw=ln.invert=ln,so.geo.rotation=function(t){function e(e){return e=t(e[0]*Ro,e[1]*Ro),e[0]*=Wo,e[1]*=Wo,e}return t=fn(t[0]%360*Ro,t[1]*Ro,t.length>2?t[2]*Ro:0),e.invert=function(e){return e=t.invert(e[0]*Ro,e[1]*Ro),e[0]*=Wo,e[1]*=Wo,e},e},cn.invert=ln,so.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=fn(-t[0]*Ro,-t[1]*Ro,0).invert,i=[];return n(null,null,1,{point:function(t,n){i.push(t=e(t,n)),t[0]*=Wo,t[1]*=Wo}}),{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=gn((e=+r)*Ro,i*Ro),t):e},t.precision=function(r){return arguments.length?(n=gn(e*Ro,(i=+r)*Ro),t):i},t.angle(90)},so.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Ro,i=t[1]*Ro,a=e[1]*Ro,o=Math.sin(r),s=Math.cos(r),u=Math.sin(i),l=Math.cos(i),c=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((n=f*o)*n+(n=l*c-u*f*s)*n),u*c+l*f*s)},so.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return so.range(Math.ceil(a/m)*m,i,m).map(d).concat(so.range(Math.ceil(l/v)*v,u,v).map(p)).concat(so.range(Math.ceil(r/h)*h,n,h).filter(function(t){return xo(t%m)>jo}).map(c)).concat(so.range(Math.ceil(s/g)*g,o,g).filter(function(t){return xo(t%v)>jo}).map(f))}var n,r,i,a,o,s,u,l,c,f,d,p,h=10,g=h,m=90,v=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(a).concat(p(u).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?(a=+e[0][0],i=+e[1][0],l=+e[0][1],u=+e[1][1],a>i&&(e=a,a=i,i=e),l>u&&(e=l,l=u,u=e),t.precision(y)):[[a,l],[i,u]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],o=+e[1][1],r>n&&(e=r,r=n,n=e),s>o&&(e=s,s=o,o=e),t.precision(y)):[[r,s],[n,o]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(m=+e[0],v=+e[1],t):[m,v]},t.minorStep=function(e){return arguments.length?(h=+e[0],g=+e[1],t):[h,g]},t.precision=function(e){return arguments.length?(y=+e,c=vn(s,o,90),f=yn(r,n,y),d=vn(l,u,90),p=yn(a,i,y),t):y},t.majorExtent([[-180,-90+jo],[180,90-jo]]).minorExtent([[-180,-80-jo],[180,80+jo]])},so.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||i.apply(this,arguments)]}}var e,n,r=bn,i=xn;return t.distance=function(){return so.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},so.geo.interpolate=function(t,e){return $n(t[0]*Ro,t[1]*Ro,e[0]*Ro,e[1]*Ro)},so.geo.length=function(t){return Xs=0,so.geo.stream(t,Zs),Xs};var Xs,Zs={sphere:$,point:$,lineStart:wn,lineEnd:$,polygonStart:$,polygonEnd:$},Ks=kn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(so.geo.azimuthalEqualArea=function(){return on(Ks)}).raw=Ks;var Js=kn(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},y);(so.geo.azimuthalEquidistant=function(){return on(Js)}).raw=Js,(so.geo.conicConformal=function(){return ze(Mn)}).raw=Mn,(so.geo.conicEquidistant=function(){return ze(Cn)}).raw=Cn;var Qs=kn(function(t){return 1/t},Math.atan);(so.geo.gnomonic=function(){return on(Qs)}).raw=Qs,Sn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Vo]},(so.geo.mercator=function(){return An(Sn)}).raw=Sn;var tu=kn(function(){return 1},Math.asin);(so.geo.orthographic=function(){return on(tu)}).raw=tu;var eu=kn(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(so.geo.stereographic=function(){return on(eu)}).raw=eu,En.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Vo]},(so.geo.transverseMercator=function(){var t=An(En),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])},n([0,0,90])}).raw=En,so.geom={},so.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,i=St(n),a=St(r),o=t.length,s=[],u=[];for(e=0;o>e;e++)s.push([+i.call(this,t[e],e),+a.call(this,t[e],e),e]);for(s.sort(On),e=0;o>e;e++)u.push([s[e][0],-s[e][1]]);var l=Tn(s),c=Tn(u),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[s[l[e]][2]]);for(e=+f;e<c.length-d;++e)p.push(t[s[c[e]][2]]);return p}var n=Dn,r=_n;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)},so.geom.polygon=function(t){return Co(t,nu),t};var nu=so.geom.polygon.prototype=[];nu.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},nu.centroid=function(t){var e,n,r=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)e=s,s=this[r],n=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*n,o+=(e[1]+s[1])*n;return[a*t,o*t]},nu.clip=function(t){for(var e,n,r,i,a,o,s=Fn(t),u=-1,l=this.length-Fn(this),c=this[l-1];++u<l;){for(e=t.slice(),t.length=0,i=this[u],a=e[(r=e.length-s)-1],n=-1;++n<r;)o=e[n],Nn(o,c,i)?(Nn(a,c,i)||t.push(Pn(a,o,c,i)),t.push(o)):Nn(a,c,i)&&t.push(Pn(a,o,c,i)),a=o;s&&t.push(t[0]),c=i}return t};var ru,iu,au,ou,su,uu=[],lu=[];Wn.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(Un),e.length},er.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}},nr.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=or(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&&(ir(this,n),t=n,n=t.U),n.C=!1,r.C=!0,ar(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(ar(this,n),t=n,n=t.U),n.C=!1,r.C=!0,ir(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,a=t.L,o=t.R;if(n=a?o?or(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.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,ir(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,ar(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,ir(this,i),t=this._;break}}else if(e=i.L,e.C&&(e.C=!1,i.C=!0,ar(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,ir(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,ar(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},so.geom.voronoi=function(t){function e(t){var e=new Array(t.length),r=s[0][0],i=s[0][1],a=s[1][0],o=s[1][1];return sr(n(t),s).cells.forEach(function(n,s){var u=n.edges,l=n.site,c=e[s]=u.length?u.map(function(t){var e=t.start();return[e.x,e.y]}):l.x>=r&&l.x<=a&&l.y>=i&&l.y<=o?[[r,o],[a,o],[a,i],[r,i]]:[];c.point=t[s]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(a(t,e)/jo)*jo,y:Math.round(o(t,e)/jo)*jo,i:e}})}var r=Dn,i=_n,a=r,o=i,s=cu;return t?e(t):(e.links=function(t){return sr(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 sr(n(t)).cells.forEach(function(n,r){for(var i,a,o=n.site,s=n.edges.sort(Un),u=-1,l=s.length,c=s[l-1].edge,f=c.l===o?c.r:c.l;++u<l;)i=c,a=f,c=s[u].edge,f=c.l===o?c.r:c.l,r<a.i&&r<f.i&&lr(o,a,f)<0&&e.push([t[r],t[a.i],t[f.i]])}),e},e.x=function(t){return arguments.length?(a=St(r=t),e):r},e.y=function(t){return arguments.length?(o=St(i=t),e):i},e.clipExtent=function(t){return arguments.length?(s=null==t?cu:t,e):s===cu?null:s},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):s===cu?null:s&&s[1]},e)};var cu=[[-1e6,-1e6],[1e6,1e6]];so.geom.delaunay=function(t){return so.geom.voronoi().triangles(t)},so.geom.quadtree=function(t,e,n,r,i){function a(t){function a(t,e,n,r,i,a,o,s){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var u=t.x,c=t.y;if(null!=u)if(xo(u-n)+xo(c-r)<.01)l(t,e,n,r,i,a,o,s);else{var f=t.point;t.x=t.y=t.point=null,l(t,f,u,c,i,a,o,s),l(t,e,n,r,i,a,o,s)}else t.x=n,t.y=r,t.point=e}else l(t,e,n,r,i,a,o,s)}function l(t,e,n,r,i,o,s,u){var l=.5*(i+s),c=.5*(o+u),f=n>=l,d=r>=c,p=d<<1|f;t.leaf=!1,t=t.nodes[p]||(t.nodes[p]=dr()),f?i=l:s=l,d?o=c:u=c,a(t,e,n,r,i,o,s,u)}var c,f,d,p,h,g,m,v,y,b=St(s),x=St(u);if(null!=e)g=e,m=n,v=r,y=i;else if(v=y=-(g=m=1/0),f=[],d=[],h=t.length,o)for(p=0;h>p;++p)c=t[p],c.x<g&&(g=c.x),c.y<m&&(m=c.y),c.x>v&&(v=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);g>$&&(g=$),m>w&&(m=w),$>v&&(v=$),w>y&&(y=w),f.push($),d.push(w)}var k=v-g,M=y-m;k>M?y=m+k:v=g+M;var C=dr();if(C.add=function(t){a(C,t,+b(t,++p),+x(t,p),g,m,v,y)},C.visit=function(t){pr(t,C,g,m,v,y)},C.find=function(t){return hr(C,t[0],t[1],g,m,v,y)},p=-1,null==e){for(;++p<h;)a(C,t[p],f[p],d[p],g,m,v,y);--p}else t.forEach(C.add);return f=d=t=c=null,C}var o,s=Dn,u=_n;return(o=arguments.length)?(s=cr,u=fr,3===o&&(i=n,r=e,n=e=0),a(t)):(a.x=function(t){return arguments.length?(s=t,a):s},a.y=function(t){return arguments.length?(u=t,a):u},a.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]),a):null==e?null:[[e,n],[r,i]]},a.size=function(t){return arguments.length?(null==t?e=n=r=i=null:(e=n=0,r=+t[0],i=+t[1]),a):null==e?null:[r-e,i-n]},a)},so.interpolateRgb=gr,so.interpolateObject=mr,so.interpolateNumber=vr,so.interpolateString=yr;var fu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,du=new RegExp(fu.source,"g");so.interpolate=br,so.interpolators=[function(t,e){var n=typeof e;return("string"===n?is.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?gr:yr:e instanceof ot?gr:Array.isArray(e)?xr:"object"===n&&isNaN(e)?mr:vr)(t,e)}],so.interpolateArray=xr;var pu=function(){return y},hu=so.map({linear:pu,poly:Ar,quad:function(){return Mr},cubic:function(){return Cr},sin:function(){return Er},exp:function(){return Dr},circle:function(){return _r},elastic:Tr,back:Or,bounce:function(){return Nr}}),gu=so.map({"in":y,out:wr,"in-out":kr,"out-in":function(t){return kr(wr(t))}});so.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=hu.get(n)||pu,r=gu.get(r)||y,$r(r(n.apply(null,uo.call(arguments,1))))},so.interpolateHcl=Pr,so.interpolateHsl=Fr,so.interpolateLab=jr,so.interpolateRound=Ir,so.transform=function(t){var e=co.createElementNS(so.ns.prefix.svg,"g");return(so.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new Lr(n?n.matrix:mu)})(t)},Lr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var mu={a:1,b:0,c:0,d:1,e:0,f:0};so.interpolateTransform=Br,so.layout={},so.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(Zr(t[n]));return e}},so.layout.chord=function(){function t(){var t,l,f,d,p,h={},g=[],m=so.range(a),v=[];for(n=[],r=[],t=0,d=-1;++d<a;){for(l=0,p=-1;++p<a;)l+=i[d][p];g.push(l),v.push(so.range(a)),t+=l}for(o&&m.sort(function(t,e){return o(g[t],g[e])}),s&&v.forEach(function(t,e){t.sort(function(t,n){return s(i[e][t],i[e][n])})}),t=(qo-c*a)/t,l=0,d=-1;++d<a;){for(f=l,p=-1;++p<a;){var y=m[d],b=v[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:g[y]},l+=c}for(d=-1;++d<a;)for(p=d-1;++p<a;){var k=h[d+"-"+p],M=h[p+"-"+d];(k.value||M.value)&&n.push(k.value<M.value?{source:M,target:k}:{source:k,target:M})}u&&e()}function e(){n.sort(function(t,e){return u((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var n,r,i,a,o,s,u,l={},c=0;return l.matrix=function(t){return arguments.length?(a=(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?(o=t,n=r=null,l):o},l.sortSubgroups=function(t){return arguments.length?(s=t,n=null,l):s},l.sortChords=function(t){return arguments.length?(u=t,n&&e(),l):u},l.chords=function(){return n||t(),n},l.groups=function(){return r||t(),r},l},so.layout.force=function(){function t(t){return function(e,n,r,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-n,u=a*a+o*o;if(u>s*s/v){if(g>u){var l=e.charge/u;t.px-=a*l,t.py-=o*l}return!0}if(e.point&&u&&g>u){var l=e.pointCharge/u;t.px-=a*l,t.py-=o*l}}return!e.charge}}function e(t){t.px=so.event.x,t.py=so.event.y,u.resume()}var n,r,i,a,o,s,u={},l=so.dispatch("start","tick","end"),c=[1,1],f=.9,d=vu,p=yu,h=-30,g=bu,m=.1,v=.64,b=[],x=[];return u.tick=function(){if((i*=.99)<.005)return n=null,l.end({type:"end",alpha:i=0}),!0;var e,r,u,d,p,g,v,y,$,w=b.length,k=x.length;for(r=0;k>r;++r)u=x[r],d=u.source,p=u.target,y=p.x-d.x,$=p.y-d.y,(g=y*y+$*$)&&(g=i*o[r]*((g=Math.sqrt(g))-a[r])/g,y*=g,$*=g,p.x-=y*(v=d.weight+p.weight?d.weight/(d.weight+p.weight):.5),p.y-=$*v,d.x+=y*(v=1-v),d.y+=$*v);if((v=i*m)&&(y=c[0]/2,$=c[1]/2,r=-1,v))for(;++r<w;)u=b[r],u.x+=(y-u.x)*v,u.y+=($-u.y)*v;if(h)for(ri(e=so.geom.quadtree(b),i,s),r=-1;++r<w;)(u=b[r]).fixed||e.visit(t(u));for(r=-1;++r<w;)u=b[r],u.fixed?(u.x=u.px,u.y=u.py):(u.x-=(u.px-(u.px=u.x))*f,u.y-=(u.py-(u.py=u.y))*f);l.tick({type:"tick",alpha:i})},u.nodes=function(t){return arguments.length?(b=t,u):b},u.links=function(t){return arguments.length?(x=t,u):x},u.size=function(t){return arguments.length?(c=t,u):c},u.linkDistance=function(t){return arguments.length?(d="function"==typeof t?t:+t,u):d},u.distance=u.linkDistance,u.linkStrength=function(t){return arguments.length?(p="function"==typeof t?t:+t,u):p},u.friction=function(t){return arguments.length?(f=+t,u):f},u.charge=function(t){return arguments.length?(h="function"==typeof t?t:+t,u):h},u.chargeDistance=function(t){return arguments.length?(g=t*t,u):Math.sqrt(g)},u.gravity=function(t){return arguments.length?(m=+t,u):m},u.theta=function(t){return arguments.length?(v=t*t,u):Math.sqrt(v)},u.alpha=function(t){return arguments.length?(t=+t,i?t>0?i=t:(n.c=null,n.t=NaN,n=null,l.end({type:"end",alpha:i=0})):t>0&&(l.start({type:"start",alpha:i=t}),n=Tt(u.tick)),u):i},u.start=function(){function t(t,r){if(!n){for(n=new Array(i),u=0;i>u;++u)n[u]=[];for(u=0;l>u;++u){var a=x[u];n[a.source.index].push(a.target),n[a.target.index].push(a.source)}}for(var o,s=n[e],u=-1,c=s.length;++u<c;)if(!isNaN(o=s[u][t]))return o;return Math.random()*r}var e,n,r,i=b.length,l=x.length,f=c[0],g=c[1];for(e=0;i>e;++e)(r=b[e]).index=e,r.weight=0;for(e=0;l>e;++e)r=x[e],"number"==typeof r.source&&(r.source=b[r.source]),"number"==typeof r.target&&(r.target=b[r.target]),++r.source.weight,++r.target.weight;for(e=0;i>e;++e)r=b[e],isNaN(r.x)&&(r.x=t("x",f)),isNaN(r.y)&&(r.y=t("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(a=[],"function"==typeof d)for(e=0;l>e;++e)a[e]=+d.call(this,x[e],e);else for(e=0;l>e;++e)a[e]=d;if(o=[],"function"==typeof p)for(e=0;l>e;++e)o[e]=+p.call(this,x[e],e);else for(e=0;l>e;++e)o[e]=p;if(s=[],"function"==typeof h)for(e=0;i>e;++e)s[e]=+h.call(this,b[e],e);else for(e=0;i>e;++e)s[e]=h;return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){return r||(r=so.behavior.drag().origin(y).on("dragstart.force",Qr).on("drag.force",e).on("dragend.force",ti)),arguments.length?void this.on("mouseover.force",ei).on("mouseout.force",ni).call(r):r},so.rebind(u,l,"on")};var vu=20,yu=1,bu=1/0;so.layout.hierarchy=function(){function t(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(l=n.call(t,a,a.depth))&&(u=l.length)){for(var u,l,c;--u>=0;)o.push(c=l[u]),c.parent=a,c.depth=a.depth+1;r&&(a.value=0),a.children=l}else r&&(a.value=+r.call(t,a,a.depth)||0),delete a.children;return oi(i,function(t){var n,i;e&&(n=t.children)&&n.sort(e),r&&(i=t.parent)&&(i.value+=t.value)}),s}var e=li,n=si,r=ui;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return r&&(ai(e,function(t){t.children&&(t.value=0)}),oi(e,function(e){var n;e.children||(e.value=+r.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},so.layout.partition=function(){function t(e,n,r,i){var a=e.children;if(e.x=n,e.y=e.depth*i,e.dx=r,e.dy=i,a&&(o=a.length)){var o,s,u,l=-1;for(r=e.value?r/e.value:0;++l<o;)t(s=a[l],n,u=s.value*r,i),n+=u}}function e(t){var n=t.children,r=0;if(n&&(i=n.length))for(var i,a=-1;++a<i;)r=Math.max(r,e(n[a]));return 1+r}function n(n,a){var o=r.call(this,n,a);return t(o[0],0,i[0],i[1]/e(o[0])),o}var r=so.layout.hierarchy(),i=[1,1];return n.size=function(t){return arguments.length?(i=t,n):i},ii(n,r)},so.layout.pie=function(){function t(o){var s,u=o.length,l=o.map(function(n,r){return+e.call(t,n,r)}),c=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof i?i.apply(this,arguments):i)-c,d=Math.min(Math.abs(f)/u,+("function"==typeof a?a.apply(this,arguments):a)),p=d*(0>f?-1:1),h=so.sum(l),g=h?(f-u*p)/h:0,m=so.range(u),v=[];return null!=n&&m.sort(n===xu?function(t,e){return l[e]-l[t]}:function(t,e){return n(o[t],o[e])}),m.forEach(function(t){v[t]={data:o[t],value:s=l[t],startAngle:c,endAngle:c+=s*g+p,padAngle:d}}),v}var e=Number,n=xu,r=0,i=qo,a=0;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.padAngle=function(e){return arguments.length?(a=e,t):a},t};var xu={};so.layout.stack=function(){function t(s,u){if(!(d=s.length))return s;var l=s.map(function(n,r){return e.call(t,n,r)}),c=l.map(function(e){return e.map(function(e,n){return[a.call(t,e,n),o.call(t,e,n)]})}),f=n.call(t,c,u);l=so.permute(l,f),c=so.permute(c,f);var d,p,h,g,m=r.call(t,c,u),v=l[0].length;for(h=0;v>h;++h)for(i.call(t,l[0][h],g=m[h],c[0][h][1]),p=1;d>p;++p)i.call(t,l[p][h],g+=c[p-1][h][1],c[p][h][1]);return s}var e=y,n=hi,r=gi,i=pi,a=fi,o=di;return t.values=function(n){return arguments.length?(e=n,t):e},t.order=function(e){return arguments.length?(n="function"==typeof e?e:$u.get(e)||hi,t):n},t.offset=function(e){return arguments.length?(r="function"==typeof e?e:wu.get(e)||gi,t):r},t.x=function(e){return arguments.length?(a=e,t):a},t.y=function(e){return arguments.length?(o=e,t):o},t.out=function(e){return arguments.length?(i=e,t):i},t};var $u=so.map({"inside-out":function(t){var e,n,r=t.length,i=t.map(mi),a=t.map(vi),o=so.range(r).sort(function(t,e){return i[t]-i[e]}),s=0,u=0,l=[],c=[];for(e=0;r>e;++e)n=o[e],u>s?(s+=a[n],l.push(n)):(u+=a[n],c.push(n));return c.reverse().concat(l)},reverse:function(t){return so.range(t.length).reverse()},"default":hi}),wu=so.map({silhouette:function(t){var e,n,r,i=t.length,a=t[0].length,o=[],s=0,u=[];for(n=0;a>n;++n){for(e=0,r=0;i>e;e++)r+=t[e][n][1];r>s&&(s=r),o.push(r)}for(n=0;a>n;++n)u[n]=(s-o[n])/2;return u},wiggle:function(t){var e,n,r,i,a,o,s,u,l,c=t.length,f=t[0],d=f.length,p=[];for(p[0]=u=l=0,n=1;d>n;++n){for(e=0,i=0;c>e;++e)i+=t[e][n][1];for(e=0,a=0,s=f[n][0]-f[n-1][0];c>e;++e){for(r=0,o=(t[e][n][1]-t[e][n-1][1])/(2*s);e>r;++r)o+=(t[r][n][1]-t[r][n-1][1])/s;a+=o*t[e][n][1]}p[n]=u-=i?a/i*s:0,l>u&&(l=u)}for(n=0;d>n;++n)p[n]-=l;return p},expand:function(t){var e,n,r,i=t.length,a=t[0].length,o=1/i,s=[];for(n=0;a>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]=o}for(n=0;a>n;++n)s[n]=0;return s},zero:gi});so.layout.histogram=function(){function t(t,a){for(var o,s,u=[],l=t.map(n,this),c=r.call(this,l,a),f=i.call(this,c,l,a),a=-1,d=l.length,p=f.length-1,h=e?1:1/d;++a<p;)o=u[a]=[],o.dx=f[a+1]-(o.x=f[a]),o.y=0;if(p>0)for(a=-1;++a<d;)s=l[a],s>=c[0]&&s<=c[1]&&(o=u[so.bisect(f,s,1,p)-1],o.y+=h,o.push(t[a]));return u}var e=!0,n=Number,r=$i,i=bi;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=St(e),t):r},t.bins=function(e){return arguments.length?(i="number"==typeof e?function(t){return xi(t,e)}:St(e),t):i},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},so.layout.pack=function(){function t(t,a){var o=n.call(this,t,a),s=o[0],u=i[0],l=i[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(s.x=s.y=0,oi(s,function(t){t.r=+c(t.value)}),oi(s,Si),r){var f=r*(e?1:Math.max(2*s.r/u,2*s.r/l))/2;oi(s,function(t){t.r+=f}),oi(s,Si),oi(s,function(t){t.r-=f})}return Di(s,u/2,l/2,e?1:1/Math.max(2*s.r/u,2*s.r/l)),o}var e,n=so.layout.hierarchy().sort(wi),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},ii(t,n)},so.layout.tree=function(){function t(t,i){var c=o.call(this,t,i),f=c[0],d=e(f);if(oi(d,n),d.parent.m=-d.z,ai(d,r),l)ai(f,a);else{var p=f,h=f,g=f;ai(f,function(t){t.x<p.x&&(p=t),t.x>h.x&&(h=t),t.depth>g.depth&&(g=t)});var m=s(p,h)/2-p.x,v=u[0]/(h.x+s(h,p)/2+m),y=u[1]/(g.depth||1);ai(f,function(t){t.x=(t.x+m)*v,t.y=t.depth*y})}return c}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var i,a=e.children,o=0,s=a.length;s>o;++o)r.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e.length){Fi(t);var a=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+s(t._,r._),t.m=t.z-a):t.z=a}else r&&(t.z=r.z+s(t._,r._));t.parent.A=i(t,r,t.parent.A||n[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,e,n){if(e){for(var r,i=t,a=t,o=e,u=i.parent.children[0],l=i.m,c=a.m,f=o.m,d=u.m;o=Ni(o),i=Oi(i),o&&i;)u=Oi(u),a=Ni(a),a.a=t,r=o.z+f-i.z-l+s(o._,i._),r>0&&(Pi(ji(o,t,n),t,r),l+=r,c+=r),f+=o.m,l+=i.m,d+=u.m,c+=a.m;o&&!Ni(a)&&(a.t=o,a.m+=f-c),i&&!Oi(u)&&(u.t=i,u.m+=l-d,n=t)}return n}function a(t){t.x*=u[0],t.y=t.depth*u[1]}var o=so.layout.hierarchy().sort(null).value(null),s=Ti,u=[1,1],l=null;return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(l=null==(u=e)?a:null,t):l?null:u},t.nodeSize=function(e){return arguments.length?(l=null==(u=e)?null:a,t):l?u:null},ii(t,o)},so.layout.cluster=function(){function t(t,a){var o,s=e.call(this,t,a),u=s[0],l=0;oi(u,function(t){var e=t.children;e&&e.length?(t.x=Li(e),t.y=Ii(e)):(t.x=o?l+=n(t,o):0,t.y=0,o=t)});var c=qi(u),f=Hi(u),d=c.x-n(c,f)/2,p=f.x+n(f,c)/2;return oi(u,i?function(t){t.x=(t.x-u.x)*r[0],t.y=(u.y-t.y)*r[1]}:function(t){t.x=(t.x-d)/(p-d)*r[0],t.y=(1-(u.y?t.y/u.y:1))*r[1]}),s}var e=so.layout.hierarchy().sort(null).value(null),n=Ti,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},ii(t,e)},so.layout.treemap=function(){function t(t,e){for(var n,r,i=-1,a=t.length;++i<a;)r=(n=t[i]).value*(0>e?0:e),n.area=isNaN(r)||0>=r?0:r}function e(n){var a=n.children;if(a&&a.length){var o,s,u,l=f(n),c=[],d=a.slice(),h=1/0,g="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;(u=d.length)>0;)c.push(o=d[u-1]),c.area+=o.area,"squarify"!==p||(s=r(c,g))<=h?(d.pop(),h=s):(c.area-=c.pop().area,i(c,g,l,!1),g=Math.min(l.dx,l.dy),c.length=c.area=0,h=1/0);c.length&&(i(c,g,l,!0),c.length=c.area=0),a.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var a,o=f(e),s=r.slice(),u=[];for(t(s,o.dx*o.dy/e.value),u.area=0;a=s.pop();)u.push(a),u.area+=a.area,null!=a.z&&(i(u,a.z?o.dx:o.dy,o,!s.length),u.length=u.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,i=0,a=1/0,o=-1,s=t.length;++o<s;)(n=t[o].area)&&(a>n&&(a=n),n>i&&(i=n));return r*=r,e*=e,r?Math.max(e*i*h/r,r/(e*a*h)):1/0}function i(t,e,n,r){var i,a=-1,o=t.length,s=n.x,l=n.y,c=e?u(t.area/e):0;if(e==n.dx){for((r||c>n.dy)&&(c=n.dy);++a<o;)i=t[a],i.x=s,i.y=l,i.dy=c,s+=i.dx=Math.min(n.x+n.dx-s,c?u(i.area/c):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=c,n.dy-=c}else{for((r||c>n.dx)&&(c=n.dx);++a<o;)i=t[a],i.x=s,i.y=l,i.dx=c,l+=i.dy=Math.min(n.y+n.dy-l,c?u(i.area/c):0);i.z=!1,i.dy+=n.y+n.dy-l,n.x+=c,n.dx-=c}}function a(r){var i=o||s(r),a=i[0];return a.x=a.y=0,a.value?(a.dx=l[0],a.dy=l[1]):a.dx=a.dy=0,o&&s.revalue(a),t([a],a.dx*a.dy/a.value),(o?n:e)(a),d&&(o=i),i}var o,s=so.layout.hierarchy(),u=Math.round,l=[1,1],c=null,f=Vi,d=!1,p="squarify",h=.5*(1+Math.sqrt(5));return a.size=function(t){return arguments.length?(l=t,a):l},a.padding=function(t){function e(e){var n=t.call(a,e,e.depth);return null==n?Vi(e):Ri(e,"number"==typeof n?[n,n,n,n]:n)}function n(e){return Ri(e,t)}if(!arguments.length)return c;var r;return f=null==(c=t)?Vi:"function"==(r=typeof t)?e:"number"===r?(t=[t,t,t,t],n):n,a},a.round=function(t){return arguments.length?(u=t?Math.round:Number,a):u!=Number},a.sticky=function(t){return arguments.length?(d=t,o=null,a):d},a.ratio=function(t){return arguments.length?(h=t,a):h},a.mode=function(t){return arguments.length?(p=t+"",a):p},ii(a,s)},so.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=so.random.normal.apply(so,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=so.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}}},so.scale={};var ku={floor:y,ceil:y};so.scale.linear=function(){return Xi([0,1],[0,1],br,!1)};var Mu={s:1,g:1,p:1,r:1,e:1};so.scale.log=function(){return ra(so.scale.linear().domain([0,1]),10,!0,[1,10])};var Cu=so.format(".0e"),Su={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};so.scale.pow=function(){return ia(so.scale.linear(),1,[0,1])},so.scale.sqrt=function(){return so.scale.pow().exponent(.5)},so.scale.ordinal=function(){return oa([],{t:"range",a:[[]]})},so.scale.category10=function(){return so.scale.ordinal().range(Au)},so.scale.category20=function(){return so.scale.ordinal().range(Eu)},so.scale.category20b=function(){return so.scale.ordinal().range(Du)},so.scale.category20c=function(){return so.scale.ordinal().range(_u)};var Au=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(bt),Eu=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(bt),Du=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(bt),_u=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(bt);so.scale.quantile=function(){return sa([],[])},so.scale.quantize=function(){return ua(0,1,[0,1])},so.scale.threshold=function(){return la([.5],[0,1])},so.scale.identity=function(){return ca([0,1])},so.svg={},so.svg.arc=function(){function t(){var t=Math.max(0,+n.apply(this,arguments)),l=Math.max(0,+r.apply(this,arguments)),c=o.apply(this,arguments)-Vo,f=s.apply(this,arguments)-Vo,d=Math.abs(f-c),p=c>f?0:1;if(t>l&&(h=l,l=t,t=h),d>=Ho)return e(l,p)+(t?e(t,1-p):"")+"Z";var h,g,m,v,y,b,x,$,w,k,M,C,S=0,A=0,E=[];if((v=(+u.apply(this,arguments)||0)/2)&&(m=a===Tu?Math.sqrt(t*t+l*l):+a.apply(this,arguments),p||(A*=-1),l&&(A=et(m/l*Math.sin(v))),t&&(S=et(m/t*Math.sin(v)))),l){y=l*Math.cos(c+A),b=l*Math.sin(c+A),x=l*Math.cos(f-A),$=l*Math.sin(f-A);var D=Math.abs(f-c-2*A)<=Lo?0:1;if(A&&va(y,b,x,$)===p^D){var _=(c+f)/2;y=l*Math.cos(_),b=l*Math.sin(_),x=$=null}}else y=b=0;if(t){w=t*Math.cos(f-S),k=t*Math.sin(f-S),M=t*Math.cos(c+S),C=t*Math.sin(c+S);var T=Math.abs(c-f+2*S)<=Lo?0:1;if(S&&va(w,k,M,C)===1-p^T){var O=(c+f)/2;w=t*Math.cos(O),k=t*Math.sin(O),M=C=null}}else w=k=0;if(d>jo&&(h=Math.min(Math.abs(l-t)/2,+i.apply(this,arguments)))>.001){g=l>t^p?0:1;var N=h,P=h;if(Lo>d){var F=null==M?[w,k]:null==x?[y,b]:Pn([y,b],[M,C],[x,$],[w,k]),j=y-F[0],I=b-F[1],L=x-F[0],q=$-F[1],H=1/Math.sin(Math.acos((j*L+I*q)/(Math.sqrt(j*j+I*I)*Math.sqrt(L*L+q*q)))/2),V=Math.sqrt(F[0]*F[0]+F[1]*F[1]);P=Math.min(h,(t-V)/(H-1)),N=Math.min(h,(l-V)/(H+1))}if(null!=x){var R=ya(null==M?[w,k]:[M,C],[y,b],l,N,p),W=ya([x,$],[w,k],l,N,p);h===N?E.push("M",R[0],"A",N,",",N," 0 0,",g," ",R[1],"A",l,",",l," 0 ",1-p^va(R[1][0],R[1][1],W[1][0],W[1][1]),",",p," ",W[1],"A",N,",",N," 0 0,",g," ",W[0]):E.push("M",R[0],"A",N,",",N," 0 1,",g," ",W[0])}else E.push("M",y,",",b);if(null!=M){var z=ya([y,b],[M,C],t,-P,p),U=ya([w,k],null==x?[y,b]:[x,$],t,-P,p);h===P?E.push("L",U[0],"A",P,",",P," 0 0,",g," ",U[1],"A",t,",",t," 0 ",p^va(U[1][0],U[1][1],z[1][0],z[1][1]),",",1-p," ",z[1],"A",P,",",P," 0 0,",g," ",z[0]):E.push("L",U[0],"A",P,",",P," 0 0,",g," ",z[0])}else E.push("L",w,",",k)}else E.push("M",y,",",b),null!=x&&E.push("A",l,",",l," 0 ",D,",",p," ",x,",",$),E.push("L",w,",",k),null!=M&&E.push("A",t,",",t," 0 ",T,",",1-p," ",M,",",C);return E.push("Z"),E.join("")}function e(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}var n=da,r=pa,i=fa,a=Tu,o=ha,s=ga,u=ma;return t.innerRadius=function(e){return arguments.length?(n=St(e),t):n},t.outerRadius=function(e){return arguments.length?(r=St(e),t):r},t.cornerRadius=function(e){return arguments.length?(i=St(e),t):i},t.padRadius=function(e){return arguments.length?(a=e==Tu?Tu:St(e),t):a},t.startAngle=function(e){return arguments.length?(o=St(e),t):o},t.endAngle=function(e){return arguments.length?(s=St(e),t):s},t.padAngle=function(e){return arguments.length?(u=St(e),t):u},t.centroid=function(){var t=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,e=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-Vo;return[Math.cos(e)*t,Math.sin(e)*t]},t};var Tu="auto";so.svg.line=function(){return ba(y)};var Ou=so.map({linear:xa,"linear-closed":$a,step:wa,"step-before":ka,"step-after":Ma,basis:_a,"basis-open":Ta,"basis-closed":Oa,bundle:Na,cardinal:Aa,"cardinal-open":Ca,"cardinal-closed":Sa,monotone:qa});Ou.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var Nu=[0,2/3,1/3,0],Pu=[0,1/3,2/3,0],Fu=[0,1/6,2/3,1/6];so.svg.line.radial=function(){var t=ba(Ha);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},ka.reverse=Ma,Ma.reverse=ka,so.svg.area=function(){return Va(y)},so.svg.area.radial=function(){var t=Va(Ha);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},so.svg.chord=function(){function t(t,s){var u=e(this,a,t,s),l=e(this,o,t,s);return"M"+u.p0+r(u.r,u.p1,u.a1-u.a0)+(n(u,l)?i(u.r,u.p1,u.r,u.p0):i(u.r,u.p1,l.r,l.p0)+r(l.r,l.p1,l.a1-l.a0)+i(l.r,l.p1,u.r,u.p0))+"Z"}function e(t,e,n,r){var i=e.call(t,n,r),a=s.call(t,i,r),o=u.call(t,i,r)-Vo,c=l.call(t,i,r)-Vo;return{r:a,a0:o,a1:c,p0:[a*Math.cos(o),a*Math.sin(o)],p1:[a*Math.cos(c),a*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>Lo)+",1 "+e}function i(t,e,n,r){return"Q 0,0 "+r}var a=bn,o=xn,s=Ra,u=ha,l=ga;return t.radius=function(e){return arguments.length?(s=St(e),t):s},t.source=function(e){return arguments.length?(a=St(e),t):a},t.target=function(e){return arguments.length?(o=St(e),t):o},t.startAngle=function(e){return arguments.length?(u=St(e),t):u},t.endAngle=function(e){return arguments.length?(l=St(e),t):l},t},so.svg.diagonal=function(){function t(t,i){var a=e.call(this,t,i),o=n.call(this,t,i),s=(a.y+o.y)/2,u=[a,{x:a.x,y:s},{x:o.x,y:s},o];return u=u.map(r),"M"+u[0]+"C"+u[1]+" "+u[2]+" "+u[3]}var e=bn,n=xn,r=Wa;return t.source=function(n){return arguments.length?(e=St(n),t):e},t.target=function(e){return arguments.length?(n=St(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},so.svg.diagonal.radial=function(){var t=so.svg.diagonal(),e=Wa,n=t.projection;return t.projection=function(t){return arguments.length?n(za(e=t)):e},t},so.svg.symbol=function(){function t(t,r){return(ju.get(e.call(this,t,r))||Ba)(n.call(this,t,r))}var e=Ya,n=Ua;return t.type=function(n){return arguments.length?(e=St(n),t):e},t.size=function(e){return arguments.length?(n=St(e),t):n},t};var ju=so.map({circle:Ba,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*Lu)),n=e*Lu;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/Iu),n=e*Iu/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/Iu),n=e*Iu/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});so.svg.symbolTypes=ju.keys();var Iu=Math.sqrt(3),Lu=Math.tan(30*Ro);Do.transition=function(t){for(var e,n,r=qu||++Wu,i=Ja(t),a=[],o=Hu||{time:Date.now(),ease:Sr,delay:0,duration:250},s=-1,u=this.length;++s<u;){a.push(e=[]);for(var l=this[s],c=-1,f=l.length;++c<f;)(n=l[c])&&Qa(n,c,i,r,o),e.push(n)}return Xa(a,i,r)},Do.interrupt=function(t){return this.each(null==t?Vu:Ga(Ja(t)))};var qu,Hu,Vu=Ga(Ja()),Ru=[],Wu=0;Ru.call=Do.call,Ru.empty=Do.empty,Ru.node=Do.node,Ru.size=Do.size,so.transition=function(t,e){return t&&t.transition?qu?t.transition(e):t:so.selection().transition(t)},so.transition.prototype=Ru,Ru.select=function(t){var e,n,r,i=this.id,a=this.namespace,o=[];t=E(t);for(var s=-1,u=this.length;++s<u;){o.push(e=[]);for(var l=this[s],c=-1,f=l.length;++c<f;)(r=l[c])&&(n=t.call(r,r.__data__,c,s))?("__data__"in r&&(n.__data__=r.__data__),Qa(n,c,a,i,r[a][i]),e.push(n)):e.push(null)}return Xa(o,a,i)},Ru.selectAll=function(t){var e,n,r,i,a,o=this.id,s=this.namespace,u=[];t=D(t);for(var l=-1,c=this.length;++l<c;)for(var f=this[l],d=-1,p=f.length;++d<p;)if(r=f[d]){a=r[s][o],n=t.call(r,r.__data__,d,l),u.push(e=[]);for(var h=-1,g=n.length;++h<g;)(i=n[h])&&Qa(i,h,s,o,a),e.push(i)}return Xa(u,s,o)},Ru.filter=function(t){var e,n,r,i=[];"function"!=typeof t&&(t=V(t));for(var a=0,o=this.length;o>a;a++){i.push(e=[]);for(var n=this[a],s=0,u=n.length;u>s;s++)(r=n[s])&&t.call(r,r.__data__,s,a)&&e.push(r)}return Xa(i,this.namespace,this.id)},Ru.tween=function(t,e){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(t):W(this,null==e?function(e){e[r][n].tween.remove(t)}:function(i){i[r][n].tween.set(t,e)})},Ru.attr=function(t,e){function n(){this.removeAttribute(s)}function r(){this.removeAttributeNS(s.space,s.local)}function i(t){return null==t?n:(t+="",function(){var e,n=this.getAttribute(s);return n!==t&&(e=o(n,t),function(t){this.setAttribute(s,e(t))})})}function a(t){return null==t?r:(t+="",function(){var e,n=this.getAttributeNS(s.space,s.local);return n!==t&&(e=o(n,t),function(t){this.setAttributeNS(s.space,s.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var o="transform"==t?Br:br,s=so.ns.qualify(t);return Za(this,"attr."+t,e,s.local?a:i)},Ru.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=so.ns.qualify(t);return this.tween("attr."+t,i.local?r:n)},Ru.style=function(t,n,r){function i(){this.style.removeProperty(t)}function a(n){return null==n?i:(n+="",function(){var i,a=e(this).getComputedStyle(this,null).getPropertyValue(t);return a!==n&&(i=br(a,n),function(e){this.style.setProperty(t,i(e),r)})})}var o=arguments.length;if(3>o){if("string"!=typeof t){2>o&&(n="");for(r in t)this.style(r,t[r],n);return this}r=""}return Za(this,"style."+t,n,a)},Ru.styleTween=function(t,n,r){function i(i,a){var o=n.call(this,i,a,e(this).getComputedStyle(this,null).getPropertyValue(t));return o&&function(e){this.style.setProperty(t,o(e),r)}}return arguments.length<3&&(r=""),this.tween("style."+t,i)},Ru.text=function(t){return Za(this,"text",t,Ka)},Ru.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},Ru.ease=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].ease:("function"!=typeof t&&(t=so.ease.apply(so,arguments)),W(this,function(r){r[n][e].ease=t}))},Ru.delay=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].delay:W(this,"function"==typeof t?function(r,i,a){r[n][e].delay=+t.call(r,r.__data__,i,a)}:(t=+t,function(r){r[n][e].delay=t}))},Ru.duration=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].duration:W(this,"function"==typeof t?function(r,i,a){r[n][e].duration=Math.max(1,t.call(r,r.__data__,i,a))}:(t=Math.max(1,t),function(r){r[n][e].duration=t}))},Ru.each=function(t,e){var n=this.id,r=this.namespace;if(arguments.length<2){var i=Hu,a=qu;try{qu=n,W(this,function(e,i,a){Hu=e[r][n],t.call(e,e.__data__,i,a)})}finally{Hu=i,qu=a}}else W(this,function(i){var a=i[r][n];(a.event||(a.event=so.dispatch("start","end","interrupt"))).on(t,e)});return this},Ru.transition=function(){for(var t,e,n,r,i=this.id,a=++Wu,o=this.namespace,s=[],u=0,l=this.length;l>u;u++){s.push(t=[]);for(var e=this[u],c=0,f=e.length;f>c;c++)(n=e[c])&&(r=n[o][i],Qa(n,c,o,a,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(n)}return Xa(s,o,a)},so.svg.axis=function(){function t(t){t.each(function(){var t,l=so.select(this),c=this.__chart__||n,f=this.__chart__=n.copy(),d=null==u?f.ticks?f.ticks.apply(f,s):f.domain():u,p=null==e?f.tickFormat?f.tickFormat.apply(f,s):y:e,h=l.selectAll(".tick").data(d,f),g=h.enter().insert("g",".domain").attr("class","tick").style("opacity",jo),m=so.transition(h.exit()).style("opacity",jo).remove(),v=so.transition(h.order()).style("opacity",1),b=Math.max(i,0)+o,x=zi(f),$=l.selectAll(".domain").data([0]),w=($.enter().append("path").attr("class","domain"),so.transition($));g.append("line"),g.append("text");var k,M,C,S,A=g.select("line"),E=v.select("line"),D=h.select("text").text(p),_=g.select("text"),T=v.select("text"),O="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=to,k="x",C="y",M="x2",S="y2",D.attr("dy",0>O?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+x[0]+","+O*a+"V0H"+x[1]+"V"+O*a)):(t=eo,k="y",C="x",M="y2",S="x2",D.attr("dy",".32em").style("text-anchor",0>O?"end":"start"),w.attr("d","M"+O*a+","+x[0]+"H0V"+x[1]+"H"+O*a)),A.attr(S,O*i),_.attr(C,O*b),E.attr(M,0).attr(S,O*i),T.attr(k,0).attr(C,O*b),f.rangeBand){var N=f,P=N.rangeBand()/2;c=f=function(t){return N(t)+P}}else c.rangeBand?c=f:m.call(t,f,c);g.call(t,c,f),v.call(t,f,f)})}var e,n=so.scale.linear(),r=zu,i=6,a=6,o=3,s=[10],u=null;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(r=e in Uu?e+"":zu,t):r},t.ticks=function(){return arguments.length?(s=lo(arguments),t):s},t.tickValues=function(e){return arguments.length?(u=e,t):u},t.tickFormat=function(n){return arguments.length?(e=n,t):e},t.tickSize=function(e){var n=arguments.length;return n?(i=+e,a=+arguments[n-1],t):i},t.innerTickSize=function(e){return arguments.length?(i=+e,t):i},t.outerTickSize=function(e){return arguments.length?(a=+e,t):a},t.tickPadding=function(e){return arguments.length?(o=+e,t):o},t.tickSubdivide=function(){return arguments.length&&t},t};var zu="bottom",Uu={top:1,right:1,bottom:1,left:1};so.svg.brush=function(){function t(e){e.each(function(){var e=so.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",a).on("touchstart.brush",a),o=e.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=e.selectAll(".resize").data(g,y);s.exit().remove(),s.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Yu[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"),s.style("display",t.empty()?"none":null);var u,f=so.transition(e),d=so.transition(o);l&&(u=zi(l),d.attr("x",u[0]).attr("width",u[1]-u[0]),r(f)),c&&(u=zi(c),d.attr("y",u[0]).attr("height",u[1]-u[0]),i(f)),n(f)})}function n(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+f[+/e$/.test(t)]+","+d[+/^s/.test(t)]+")"})}function r(t){t.select(".extent").attr("x",f[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function i(t){t.select(".extent").attr("y",d[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",d[1]-d[0])}function a(){function a(){32==so.event.keyCode&&(D||(b=null,T[0]-=f[1],T[1]-=d[1],D=2),M())}function g(){32==so.event.keyCode&&2==D&&(T[0]+=f[1],T[1]+=d[1],D=0,M())}function m(){var t=so.mouse($),e=!1;x&&(t[0]+=x[0],t[1]+=x[1]),D||(so.event.altKey?(b||(b=[(f[0]+f[1])/2,(d[0]+d[1])/2]),T[0]=f[+(t[0]<b[0])],T[1]=d[+(t[1]<b[1])]):b=null),A&&v(t,l,0)&&(r(C),e=!0),E&&v(t,c,1)&&(i(C),e=!0),e&&(n(C),k({type:"brush",mode:D?"move":"resize"}))}function v(t,e,n){var r,i,a=zi(e),u=a[0],l=a[1],c=T[n],g=n?d:f,m=g[1]-g[0];return D&&(u-=c,l-=m+c),r=(n?h:p)?Math.max(u,Math.min(l,t[n])):t[n],D?i=(r+=c)+m:(b&&(c=Math.max(u,Math.min(l,2*b[n]-r))),r>c?(i=r,r=c):i=c),g[0]!=r||g[1]!=i?(n?s=null:o=null,g[0]=r,g[1]=i,!0):void 0}function y(){m(),C.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),so.select("body").style("cursor",null),O.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),_(),k({type:"brushend"})}var b,x,$=this,w=so.select(so.event.target),k=u.of($,arguments),C=so.select($),S=w.datum(),A=!/^(n|s)$/.test(S)&&l,E=!/^(e|w)$/.test(S)&&c,D=w.classed("extent"),_=X($),T=so.mouse($),O=so.select(e($)).on("keydown.brush",a).on("keyup.brush",g);if(so.event.changedTouches?O.on("touchmove.brush",m).on("touchend.brush",y):O.on("mousemove.brush",m).on("mouseup.brush",y),C.interrupt().selectAll("*").interrupt(),D)T[0]=f[0]-T[0],T[1]=d[0]-T[1];else if(S){var N=+/w$/.test(S),P=+/^n/.test(S);x=[f[1-N]-T[0],d[1-P]-T[1]],T[0]=f[N],T[1]=d[P]}else so.event.altKey&&(b=T.slice());C.style("pointer-events","none").selectAll(".resize").style("display",null),so.select("body").style("cursor",w.style("cursor")),k({type:"brushstart"}),m()}var o,s,u=S(t,"brushstart","brush","brushend"),l=null,c=null,f=[0,0],d=[0,0],p=!0,h=!0,g=Bu[0];return t.event=function(t){t.each(function(){var t=u.of(this,arguments),e={x:f,y:d,i:o,j:s},n=this.__chart__||e;this.__chart__=e,qu?so.select(this).transition().each("start.brush",function(){o=n.i,s=n.j,f=n.x,d=n.y,t({type:"brushstart"})}).tween("brush:brush",function(){var n=xr(f,e.x),r=xr(d,e.y);return o=s=null,function(i){f=e.x=n(i),d=e.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=e.i,s=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?(l=e,g=Bu[!l<<1|!c],t):l},t.y=function(e){return arguments.length?(c=e,g=Bu[!l<<1|!c],t):c},t.clamp=function(e){return arguments.length?(l&&c?(p=!!e[0],h=!!e[1]):l?p=!!e:c&&(h=!!e),t):l&&c?[p,h]:l?p:c?h:null},t.extent=function(e){var n,r,i,a,u;return arguments.length?(l&&(n=e[0],r=e[1],c&&(n=n[0],r=r[0]),o=[n,r],l.invert&&(n=l(n),r=l(r)),n>r&&(u=n,n=r,r=u),(n!=f[0]||r!=f[1])&&(f=[n,r])),c&&(i=e[0],a=e[1],l&&(i=i[1],a=a[1]),s=[i,a],c.invert&&(i=c(i),a=c(a)),i>a&&(u=i,i=a,a=u),(i!=d[0]||a!=d[1])&&(d=[i,a])),t):(l&&(o?(n=o[0],r=o[1]):(n=f[0],r=f[1],l.invert&&(n=l.invert(n),r=l.invert(r)),n>r&&(u=n,n=r,r=u))),c&&(s?(i=s[0],a=s[1]):(i=d[0],a=d[1],c.invert&&(i=c.invert(i),a=c.invert(a)),i>a&&(u=i,i=a,a=u))),l&&c?[[n,i],[r,a]]:l?[n,r]:c&&[i,a])},t.clear=function(){return t.empty()||(f=[0,0],d=[0,0],o=s=null),t},t.empty=function(){return!!l&&f[0]==f[1]||!!c&&d[0]==d[1]},so.rebind(t,u,"on")};var Yu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Bu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Gu=ps.format=bs.timeFormat,Xu=Gu.utc,Zu=Xu("%Y-%m-%dT%H:%M:%S.%LZ");Gu.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?no:Zu,no.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},no.toString=Zu.toString,ps.second=Ht(function(t){return new hs(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),ps.seconds=ps.second.range,ps.seconds.utc=ps.second.utc.range,ps.minute=Ht(function(t){return new hs(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),ps.minutes=ps.minute.range,ps.minutes.utc=ps.minute.utc.range,ps.hour=Ht(function(t){var e=t.getTimezoneOffset()/60;return new hs(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),ps.hours=ps.hour.range,ps.hours.utc=ps.hour.utc.range,ps.month=Ht(function(t){return t=ps.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),ps.months=ps.month.range,ps.months.utc=ps.month.utc.range;var Ku=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ju=[[ps.second,1],[ps.second,5],[ps.second,15],[ps.second,30],[ps.minute,1],[ps.minute,5],[ps.minute,15],[ps.minute,30],[ps.hour,1],[ps.hour,3],[ps.hour,6],[ps.hour,12],[ps.day,1],[ps.day,2],[ps.week,1],[ps.month,1],[ps.month,3],[ps.year,1]],Qu=Gu.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",De]]),tl={range:function(t,e,n){return so.range(Math.ceil(t/n)*n,+e,n).map(io)},floor:y,ceil:y};Ju.year=ps.year,ps.scale=function(){return ro(so.scale.linear(),Ju,Qu)};var el=Ju.map(function(t){return[t[0].utc,t[1]]}),nl=Xu.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",De]]);el.year=ps.year.utc,ps.scale.utc=function(){return ro(so.scale.linear(),el,nl)},so.text=At(function(t){return t.responseText}),so.json=function(t,e){return Et(t,"application/json",ao,e)},so.html=function(t,e){return Et(t,"text/html",oo,e)},so.xml=At(function(t){return t.responseXML}),"function"==typeof define&&define.amd?(this.d3=so,define(so)):"object"==typeof module&&module.exports?module.exports=so:this.d3=so}(),function(){var t={};t.dev=!1,t.tooltip=t.tooltip||{},t.utils=t.utils||{},t.models=t.models||{},t.charts={},t.logs={},t.dom={},t.dispatch=d3.dispatch("render_start","render_end"),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&t?this:t,e.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),t.dev&&(t.dispatch.on("render_start",function(e){t.logs.startTime=+new Date}),t.dispatch.on("render_end",function(e){t.logs.endTime=+new Date,t.logs.totalTime=t.logs.endTime-t.logs.startTime,t.log("total",t.logs.totalTime)})),t.log=function(){if(t.dev&&window.console&&console.log&&console.log.apply)console.log.apply(console,arguments);else if(t.dev&&window.console&&"function"==typeof console.log&&Function.prototype.bind){var e=Function.prototype.bind.call(console.log,console);e.apply(console,arguments)}return arguments[arguments.length-1]},t.deprecated=function(t,e){console&&console.warn&&console.warn("nvd3 warning: `"+t+"` has been deprecated. ",e||"")},t.render=function(e){e=e||1,t.render.active=!0,t.dispatch.render_start();var n=function(){for(var r,i,a=0;e>a&&(i=t.render.queue[a]);a++)r=i.generate(),typeof i.callback==typeof Function&&i.callback(r);t.render.queue.splice(0,a),t.render.queue.length?setTimeout(n):(t.dispatch.render_end(),t.render.active=!1)};setTimeout(n)},t.render.active=!1,t.render.queue=[],t.addGraph=function(e){typeof arguments[0]==typeof Function&&(e={generate:arguments[0],callback:arguments[1]}),t.render.queue.push(e),t.render.active||t.render()},"undefined"!=typeof module&&"undefined"!=typeof exports&&(module.exports=t),"undefined"!=typeof window&&(window.nv=t),t.dom.write=function(t){return void 0!==window.fastdom?fastdom.write(t):t()},t.dom.read=function(t){return void 0!==window.fastdom?fastdom.read(t):t()},t.interactiveGuideline=function(){"use strict";function e(f){f.each(function(f){function d(){var t=d3.mouse(this),r=t[0],i=t[1],u=!0,l=!1;if(c&&(r=d3.event.offsetX,i=d3.event.offsetY,"svg"!==d3.event.target.tagName&&(u=!1),d3.event.target.className.baseVal.match("nv-legend")&&(l=!0)),u&&(r-=a.left,i-=a.top),0>r||0>i||r>h||i>g||d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement||l){if(c&&d3.event.relatedTarget&&void 0===d3.event.relatedTarget.ownerSVGElement&&(void 0===d3.event.relatedTarget.className||d3.event.relatedTarget.className.match(n.nvPointerEventsClass)))return;return s.elementMouseout({mouseX:r,mouseY:i}),e.renderGuideLine(null),void n.hidden(!0)}n.hidden(!1);var f=o.invert(r);s.elementMousemove({mouseX:r,mouseY:i,pointXValue:f}),"dblclick"===d3.event.type&&s.elementDblclick({mouseX:r,mouseY:i,pointXValue:f}),"click"===d3.event.type&&s.elementClick({mouseX:r,mouseY:i,pointXValue:f})}var p=d3.select(this),h=r||960,g=i||400,m=p.selectAll("g.nv-wrap.nv-interactiveLineLayer").data([f]),v=m.enter().append("g").attr("class"," nv-wrap nv-interactiveLineLayer");v.append("g").attr("class","nv-interactiveGuideLine"),l&&(l.on("touchmove",d).on("mousemove",d,!0).on("mouseout",d,!0).on("dblclick",d).on("click",d),e.guideLine=null,e.renderGuideLine=function(n){u&&(e.guideLine&&e.guideLine.attr("x1")===n||t.dom.write(function(){var e=m.select(".nv-interactiveGuideLine").selectAll("line").data(null!=n?[t.utils.NaNtoZero(n)]:[],String);e.enter().append("line").attr("class","nv-guideline").attr("x1",function(t){return t}).attr("x2",function(t){return t}).attr("y1",g).attr("y2",0),e.exit().remove()}))})})}var n=t.models.tooltip();n.duration(0).hideDelay(0)._isInteractiveLayer(!0).hidden(!1);var r=null,i=null,a={left:0,top:0},o=d3.scale.linear(),s=d3.dispatch("elementMousemove","elementMouseout","elementClick","elementDblclick"),u=!0,l=null,c="ActiveXObject"in window;return e.dispatch=s,e.tooltip=n,e.margin=function(t){return arguments.length?(a.top="undefined"!=typeof t.top?t.top:a.top,a.left="undefined"!=typeof t.left?t.left:a.left,e):a},e.width=function(t){return arguments.length?(r=t,e):r},e.height=function(t){return arguments.length?(i=t,e):i},e.xScale=function(t){return arguments.length?(o=t,e):o},e.showGuideLine=function(t){return arguments.length?(u=t,e):u},e.svgContainer=function(t){return arguments.length?(l=t,e):l},e},t.interactiveBisect=function(t,e,n){"use strict";if(!(t instanceof Array))return null;var r;r="function"!=typeof n?function(t){return t.x}:n;var i=function(t,e){return r(t)-e},a=d3.bisector(i).left,o=d3.max([0,a(t,e)-1]),s=r(t[o]);if("undefined"==typeof s&&(s=o),s===e)return o;var u=d3.min([o+1,t.length-1]),l=r(t[u]);return"undefined"==typeof l&&(l=u),Math.abs(l-e)>=Math.abs(s-e)?o:u},t.nearestValueIndex=function(t,e,n){"use strict";var r=1/0,i=null;return t.forEach(function(t,a){var o=Math.abs(e-t);null!=t&&r>=o&&n>o&&(r=o,i=a)}),i},function(){"use strict";t.models.tooltip=function(){function e(){if(c){var t=d3.select(c);"svg"!==t.node().tagName&&(t=t.select("svg"));var e=t.node()?t.attr("viewBox"):null;
|
||
if(e){e=e.split(" ");var n=parseInt(t.style("width"),10)/e[2];g.left=g.left*n,g.top=g.top*n}}}function n(){if(!p){var t;t=c?c:document.body,p=d3.select(t).append("div").attr("class","nvtooltip "+(l?l:"xy-tooltip")).attr("id",$),p.style("top",0).style("left",0),p.style("opacity",0),p.selectAll("div, table, td, tr").classed(w,!0),p.classed(w,!0),h=p.node()}}function r(){if(v&&A(i)){e();var a=g.left,o=null!==u?u:g.top;return t.dom.write(function(){n();var e=S(i);e&&(h.innerHTML=e),c&&x?t.dom.read(function(){var t=c.getElementsByTagName("svg")[0],e={left:0,top:0};if(t){var n=t.getBoundingClientRect(),r=c.getBoundingClientRect(),i=n.top;if(0>i){var u=c.getBoundingClientRect();i=Math.abs(i)>u.height?0:i}e.top=Math.abs(i-r.top),e.left=Math.abs(n.left-r.left)}a+=c.offsetLeft+e.left-2*c.scrollLeft,o+=c.offsetTop+e.top-2*c.scrollTop,s&&s>0&&(o=Math.floor(o/s)*s),E([a,o])}):E([a,o])}),r}}var i=null,a="w",o=25,s=0,u=null,l=null,c=null,f=!0,d=400,p=null,h=null,g={left:null,top:null},m={left:0,top:0},v=!0,y=100,b=!0,x=!1,$="nvtooltip-"+Math.floor(1e5*Math.random()),w="nv-pointer-events-none",k=function(t,e){return t},M=function(t){return t},C=function(t,e){return t},S=function(t){if(null===t)return"";var e=d3.select(document.createElement("table"));if(b){var n=e.selectAll("thead").data([t]).enter().append("thead");n.append("tr").append("td").attr("colspan",3).append("strong").classed("x-value",!0).html(M(t.value))}var r=e.selectAll("tbody").data([t]).enter().append("tbody"),i=r.selectAll("tr").data(function(t){return t.series}).enter().append("tr").classed("highlight",function(t){return t.highlight});i.append("td").classed("legend-color-guide",!0).append("div").style("background-color",function(t){return t.color}),i.append("td").classed("key",!0).html(function(t,e){return C(t.key,e)}),i.append("td").classed("value",!0).html(function(t,e){return k(t.value,e)}),i.selectAll("td").each(function(t){if(t.highlight){var e=d3.scale.linear().domain([0,1]).range(["#fff",t.color]),n=.6;d3.select(this).style("border-bottom-color",e(n)).style("border-top-color",e(n))}});var a=e.node().outerHTML;return void 0!==t.footer&&(a+="<div class='footer'>"+t.footer+"</div>"),a},A=function(t){if(t&&t.series){if(t.series instanceof Array)return!!t.series.length;if(t.series instanceof Object)return t.series=[t.series],!0}return!1},E=function(e){h&&t.dom.read(function(){var n,r,i=parseInt(h.offsetHeight,10),s=parseInt(h.offsetWidth,10),u=t.utils.windowSize().width,l=t.utils.windowSize().height,c=window.pageYOffset,g=window.pageXOffset;l=window.innerWidth>=document.body.scrollWidth?l:l-16,u=window.innerHeight>=document.body.scrollHeight?u:u-16;var v,b,x=function(t){var e=r;do isNaN(t.offsetTop)||(e+=t.offsetTop),t=t.offsetParent;while(t);return e},$=function(t){var e=n;do isNaN(t.offsetLeft)||(e+=t.offsetLeft),t=t.offsetParent;while(t);return e};switch(a){case"e":n=e[0]-s-o,r=e[1]-i/2,v=$(h),b=x(h),g>v&&(n=e[0]+o>g?e[0]+o:g-v+n),c>b&&(r=c-b+r),b+i>c+l&&(r=c+l-b+r-i);break;case"w":n=e[0]+o,r=e[1]-i/2,v=$(h),b=x(h),v+s>u&&(n=e[0]-s-o),c>b&&(r=c+5),b+i>c+l&&(r=c+l-b+r-i);break;case"n":n=e[0]-s/2-5,r=e[1]+o,v=$(h),b=x(h),g>v&&(n=g+5),v+s>u&&(n=n-s/2+5),b+i>c+l&&(r=c+l-b+r-i);break;case"s":n=e[0]-s/2,r=e[1]-i-o,v=$(h),b=x(h),g>v&&(n=g+5),v+s>u&&(n=n-s/2+5),c>b&&(r=c);break;case"none":n=e[0],r=e[1]-o,v=$(h),b=x(h)}n-=m.left,r-=m.top;var w=h.getBoundingClientRect(),c=window.pageYOffset||document.documentElement.scrollTop,g=window.pageXOffset||document.documentElement.scrollLeft,k="translate("+(w.left+g)+"px, "+(w.top+c)+"px)",M="translate("+n+"px, "+r+"px)",C=d3.interpolateString(k,M),S=p.style("opacity")<.1;f?p.transition().delay(d).duration(0).style("opacity",0):p.interrupt().transition().duration(S?0:y).styleTween("transform",function(t){return C},"important").style("-webkit-transform",M).style("opacity",1)})};return r.nvPointerEventsClass=w,r.options=t.utils.optionsFunc.bind(r),r._options=Object.create({},{duration:{get:function(){return y},set:function(t){y=t}},gravity:{get:function(){return a},set:function(t){a=t}},distance:{get:function(){return o},set:function(t){o=t}},snapDistance:{get:function(){return s},set:function(t){s=t}},classes:{get:function(){return l},set:function(t){l=t}},chartContainer:{get:function(){return c},set:function(t){c=t}},fixedTop:{get:function(){return u},set:function(t){u=t}},enabled:{get:function(){return v},set:function(t){v=t}},hideDelay:{get:function(){return d},set:function(t){d=t}},contentGenerator:{get:function(){return S},set:function(t){S=t}},valueFormatter:{get:function(){return k},set:function(t){k=t}},headerFormatter:{get:function(){return M},set:function(t){M=t}},keyFormatter:{get:function(){return C},set:function(t){C=t}},headerEnabled:{get:function(){return b},set:function(t){b=t}},_isInteractiveLayer:{get:function(){return x},set:function(t){x=!!t}},position:{get:function(){return g},set:function(t){g.left=void 0!==t.left?t.left:g.left,g.top=void 0!==t.top?t.top:g.top}},offset:{get:function(){return m},set:function(t){m.left=void 0!==t.left?t.left:m.left,m.top=void 0!==t.top?t.top:m.top}},hidden:{get:function(){return f},set:function(t){f!=t&&(f=!!t,r())}},data:{get:function(){return i},set:function(t){t.point&&(t.value=t.point.x,t.series=t.series||{},t.series.value=t.point.y,t.series.color=t.point.color||t.series.color),i=t}},tooltipElem:{get:function(){return h},set:function(t){}},id:{get:function(){return $},set:function(t){}}}),t.utils.initOptions(r),r}}(),t.utils.windowSize=function(){var t={width:640,height:480};return window.innerWidth&&window.innerHeight?(t.width=window.innerWidth,t.height=window.innerHeight,t):"CSS1Compat"==document.compatMode&&document.documentElement&&document.documentElement.offsetWidth?(t.width=document.documentElement.offsetWidth,t.height=document.documentElement.offsetHeight,t):document.body&&document.body.offsetWidth?(t.width=document.body.offsetWidth,t.height=document.body.offsetHeight,t):t},t.utils.windowResize=function(e){return window.addEventListener?window.addEventListener("resize",e):t.log("ERROR: Failed to bind to window.resize with: ",e),{callback:e,clear:function(){window.removeEventListener("resize",e)}}},t.utils.getColor=function(e){if(void 0===e)return t.utils.defaultColor();if(Array.isArray(e)){var n=d3.scale.ordinal().range(e);return function(t,e){var r=void 0===e?t:e;return t.color||n(r)}}return e},t.utils.defaultColor=function(){return t.utils.getColor(d3.scale.category20().range())},t.utils.customTheme=function(t,e,n){e=e||function(t){return t.key},n=n||d3.scale.category20().range();var r=n.length;return function(i,a){var o=e(i);return"function"==typeof t[o]?t[o]():void 0!==t[o]?t[o]:(r||(r=n.length),r-=1,n[r])}},t.utils.pjax=function(e,n){var r=function(r){d3.html(r,function(r){var i=d3.select(n).node();i.parentNode.replaceChild(d3.select(r).select(n).node(),i),t.utils.pjax(e,n)})};d3.selectAll(e).on("click",function(){history.pushState(this.href,this.textContent,this.href),r(this.href),d3.event.preventDefault()}),d3.select(window).on("popstate",function(){d3.event.state&&r(d3.event.state)})},t.utils.calcApproxTextWidth=function(t){if("function"==typeof t.style&&"function"==typeof t.text){var e=parseInt(t.style("font-size").replace("px",""),10),n=t.text().length;return n*e*.5}return 0},t.utils.NaNtoZero=function(t){return"number"!=typeof t||isNaN(t)||null===t||t===1/0||t===-(1/0)?0:t},d3.selection.prototype.watchTransition=function(t){var e=[this].concat([].slice.call(arguments,1));return t.transition.apply(t,e)},t.utils.renderWatch=function(e,n){if(!(this instanceof t.utils.renderWatch))return new t.utils.renderWatch(e,n);var r=void 0!==n?n:250,i=[],a=this;this.models=function(t){return t=[].slice.call(arguments,0),t.forEach(function(t){t.__rendered=!1,function(t){t.dispatch.on("renderEnd",function(e){t.__rendered=!0,a.renderEnd("model")})}(t),i.indexOf(t)<0&&i.push(t)}),this},this.reset=function(t){void 0!==t&&(r=t),i=[]},this.transition=function(t,e,n){if(e=arguments.length>1?[].slice.call(arguments,1):[],n=e.length>1?e.pop():void 0!==r?r:250,t.__rendered=!1,i.indexOf(t)<0&&i.push(t),0===n)return t.__rendered=!0,t.delay=function(){return this},t.duration=function(){return this},t;0===t.length?t.__rendered=!0:t.every(function(t){return!t.length})?t.__rendered=!0:t.__rendered=!1;var o=0;return t.transition().duration(n).each(function(){++o}).each("end",function(n,r){0===--o&&(t.__rendered=!0,a.renderEnd.apply(this,e))})},this.renderEnd=function(){i.every(function(t){return t.__rendered})&&(i.forEach(function(t){t.__rendered=!1}),e.renderEnd.apply(this,arguments))}},t.utils.deepExtend=function(e){var n=arguments.length>1?[].slice.call(arguments,1):[];n.forEach(function(n){for(var r in n){var i=e[r]instanceof Array,a="object"==typeof e[r],o="object"==typeof n[r];a&&!i&&o?t.utils.deepExtend(e[r],n[r]):e[r]=n[r]}})},t.utils.state=function(){if(!(this instanceof t.utils.state))return new t.utils.state;var e={},n=function(){},r=function(){return{}},i=null,a=null;this.dispatch=d3.dispatch("change","set"),this.dispatch.on("set",function(t){n(t,!0)}),this.getter=function(t){return r=t,this},this.setter=function(t,e){return e||(e=function(){}),n=function(n,r){t(n),r&&e()},this},this.init=function(e){i=i||{},t.utils.deepExtend(i,e)};var o=function(){var t=r();if(JSON.stringify(t)===JSON.stringify(e))return!1;for(var n in t)void 0===e[n]&&(e[n]={}),e[n]=t[n],a=!0;return!0};this.update=function(){i&&(n(i,!1),i=null),o.call(this)&&this.dispatch.change(e)}},t.utils.optionsFunc=function(t){return t&&d3.map(t).forEach(function(t,e){"function"==typeof this[t]&&this[t](e)}.bind(this)),this},t.utils.calcTicksX=function(e,n){var r=1,i=0;for(i;i<n.length;i+=1){var a=n[i]&&n[i].values?n[i].values.length:0;r=a>r?a:r}return t.log("Requested number of ticks: ",e),t.log("Calculated max values to be: ",r),e=e>r?e=r-1:e,e=1>e?1:e,e=Math.floor(e),t.log("Calculating tick count as: ",e),e},t.utils.calcTicksY=function(e,n){return t.utils.calcTicksX(e,n)},t.utils.initOption=function(t,e){t._calls&&t._calls[e]?t[e]=t._calls[e]:(t[e]=function(n){return arguments.length?(t._overrides[e]=!0,t._options[e]=n,t):t._options[e]},t["_"+e]=function(n){return arguments.length?(t._overrides[e]||(t._options[e]=n),t):t._options[e]})},t.utils.initOptions=function(e){e._overrides=e._overrides||{};var n=Object.getOwnPropertyNames(e._options||{}),r=Object.getOwnPropertyNames(e._calls||{});n=n.concat(r);for(var i in n)t.utils.initOption(e,n[i])},t.utils.inheritOptionsD3=function(t,e,n){t._d3options=n.concat(t._d3options||[]),n.unshift(e),n.unshift(t),d3.rebind.apply(this,n)},t.utils.arrayUnique=function(t){return t.sort().filter(function(e,n){return!n||e!=t[n-1]})},t.utils.symbolMap=d3.map(),t.utils.symbol=function(){function e(e,i){var a=n.call(this,e,i),o=r.call(this,e,i);return-1!==d3.svg.symbolTypes.indexOf(a)?d3.svg.symbol().type(a).size(o)():t.utils.symbolMap.get(a)(o)}var n,r=64;return e.type=function(t){return arguments.length?(n=d3.functor(t),e):n},e.size=function(t){return arguments.length?(r=d3.functor(t),e):r},e},t.utils.inheritOptions=function(e,n){var r=Object.getOwnPropertyNames(n._options||{}),i=Object.getOwnPropertyNames(n._calls||{}),a=n._inherited||[],o=n._d3options||[],s=r.concat(i).concat(a).concat(o);s.unshift(n),s.unshift(e),d3.rebind.apply(this,s),e._inherited=t.utils.arrayUnique(r.concat(i).concat(a).concat(r).concat(e._inherited||[])),e._d3options=t.utils.arrayUnique(o.concat(e._d3options||[]))},t.utils.initSVG=function(t){t.classed({"nvd3-svg":!0})},t.utils.sanitizeHeight=function(t,e){return t||parseInt(e.style("height"),10)||400},t.utils.sanitizeWidth=function(t,e){return t||parseInt(e.style("width"),10)||960},t.utils.availableHeight=function(e,n,r){return t.utils.sanitizeHeight(e,n)-r.top-r.bottom},t.utils.availableWidth=function(e,n,r){return t.utils.sanitizeWidth(e,n)-r.left-r.right},t.utils.noData=function(e,n){var r=e.options(),i=r.margin(),a=r.noData(),o=null==a?["No Data Available."]:[a],s=t.utils.availableHeight(r.height(),n,i),u=t.utils.availableWidth(r.width(),n,i),l=i.left+u/2,c=i.top+s/2;n.selectAll("g").remove();var f=n.selectAll(".nv-noData").data(o);f.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),f.attr("x",l).attr("y",c).text(function(t){return t})},t.models.axis=function(){"use strict";function e(o){return y.reset(),o.each(function(e){var o=d3.select(this);t.utils.initSVG(o);var g=o.selectAll("g.nv-wrap.nv-axis").data([e]),m=g.enter().append("g").attr("class","nvd3 nv-wrap nv-axis"),b=(m.append("g"),g.select("g"));null!==p?n.ticks(p):("top"==n.orient()||"bottom"==n.orient())&&n.ticks(Math.abs(r.range()[1]-r.range()[0])/100),b.watchTransition(y,"axis").call(n),v=v||n.scale();var x=n.tickFormat();null==x&&(x=v.tickFormat());var $=b.selectAll("text.nv-axislabel").data([s||null]);$.exit().remove();var w,k,M;switch(n.orient()){case"top":$.enter().append("text").attr("class","nv-axislabel"),M=r.range().length<2?0:2===r.range().length?r.range()[1]:r.range()[r.range().length-1]+(r.range()[1]-r.range()[0]),$.attr("text-anchor","middle").attr("y",0).attr("x",M/2),u&&(k=g.selectAll("g.nv-axisMaxMin").data(r.domain()),k.enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-x",0==e?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),k.exit().remove(),k.attr("transform",function(e,n){return"translate("+t.utils.NaNtoZero(r(e))+",0)"}).select("text").attr("dy","-0.5em").attr("y",-n.tickPadding()).attr("text-anchor","middle").text(function(t,e){var n=x(t);return(""+n).match("NaN")?"":n}),k.watchTransition(y,"min-max top").attr("transform",function(e,n){return"translate("+t.utils.NaNtoZero(r.range()[n])+",0)"}));break;case"bottom":w=h+36;var C=30,S=0,A=b.selectAll("g").select("text"),E="";if(l%360){A.each(function(t,e){var n=this.getBoundingClientRect(),r=n.width;S=n.height,r>C&&(C=r)}),E="rotate("+l+" 0,"+(S/2+n.tickPadding())+")";var D=Math.abs(Math.sin(l*Math.PI/180));w=(D?D*C:C)+30,A.attr("transform",E).style("text-anchor",l%360>0?"start":"end")}$.enter().append("text").attr("class","nv-axislabel"),M=r.range().length<2?0:2===r.range().length?r.range()[1]:r.range()[r.range().length-1]+(r.range()[1]-r.range()[0]),$.attr("text-anchor","middle").attr("y",w).attr("x",M/2),u&&(k=g.selectAll("g.nv-axisMaxMin").data([r.domain()[0],r.domain()[r.domain().length-1]]),k.enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-x",0==e?"nv-axisMin-x":"nv-axisMax-x"].join(" ")}).append("text"),k.exit().remove(),k.attr("transform",function(e,n){return"translate("+t.utils.NaNtoZero(r(e)+(d?r.rangeBand()/2:0))+",0)"}).select("text").attr("dy",".71em").attr("y",n.tickPadding()).attr("transform",E).style("text-anchor",l?l%360>0?"start":"end":"middle").text(function(t,e){var n=x(t);return(""+n).match("NaN")?"":n}),k.watchTransition(y,"min-max bottom").attr("transform",function(e,n){return"translate("+t.utils.NaNtoZero(r(e)+(d?r.rangeBand()/2:0))+",0)"})),f&&A.attr("transform",function(t,e){return"translate(0,"+(e%2==0?"0":"12")+")"});break;case"right":$.enter().append("text").attr("class","nv-axislabel"),$.style("text-anchor",c?"middle":"begin").attr("transform",c?"rotate(90)":"").attr("y",c?-Math.max(i.right,a)+12:-10).attr("x",c?d3.max(r.range())/2:n.tickPadding()),u&&(k=g.selectAll("g.nv-axisMaxMin").data(r.domain()),k.enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-y",0==e?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),k.exit().remove(),k.attr("transform",function(e,n){return"translate(0,"+t.utils.NaNtoZero(r(e))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",n.tickPadding()).style("text-anchor","start").text(function(t,e){var n=x(t);return(""+n).match("NaN")?"":n}),k.watchTransition(y,"min-max right").attr("transform",function(e,n){return"translate(0,"+t.utils.NaNtoZero(r.range()[n])+")"}).select("text").style("opacity",1));break;case"left":$.enter().append("text").attr("class","nv-axislabel"),$.style("text-anchor",c?"middle":"end").attr("transform",c?"rotate(-90)":"").attr("y",c?-Math.max(i.left,a)+25-(h||0):-10).attr("x",c?-d3.max(r.range())/2:-n.tickPadding()),u&&(k=g.selectAll("g.nv-axisMaxMin").data(r.domain()),k.enter().append("g").attr("class",function(t,e){return["nv-axisMaxMin","nv-axisMaxMin-y",0==e?"nv-axisMin-y":"nv-axisMax-y"].join(" ")}).append("text").style("opacity",0),k.exit().remove(),k.attr("transform",function(e,n){return"translate(0,"+t.utils.NaNtoZero(v(e))+")"}).select("text").attr("dy",".32em").attr("y",0).attr("x",-n.tickPadding()).attr("text-anchor","end").text(function(t,e){var n=x(t);return(""+n).match("NaN")?"":n}),k.watchTransition(y,"min-max right").attr("transform",function(e,n){return"translate(0,"+t.utils.NaNtoZero(r.range()[n])+")"}).select("text").style("opacity",1))}if($.text(function(t){return t}),!u||"left"!==n.orient()&&"right"!==n.orient()||(b.selectAll("g").each(function(t,e){d3.select(this).select("text").attr("opacity",1),(r(t)<r.range()[1]+10||r(t)>r.range()[0]-10)&&((t>1e-10||-1e-10>t)&&d3.select(this).attr("opacity",0),d3.select(this).select("text").attr("opacity",0))}),r.domain()[0]==r.domain()[1]&&0==r.domain()[0]&&g.selectAll("g.nv-axisMaxMin").style("opacity",function(t,e){return e?0:1})),u&&("top"===n.orient()||"bottom"===n.orient())){var _=[];g.selectAll("g.nv-axisMaxMin").each(function(t,e){try{e?_.push(r(t)-this.getBoundingClientRect().width-4):_.push(r(t)+this.getBoundingClientRect().width+4)}catch(n){e?_.push(r(t)-4):_.push(r(t)+4)}}),b.selectAll("g").each(function(t,e){(r(t)<_[0]||r(t)>_[1])&&(t>1e-10||-1e-10>t?d3.select(this).remove():d3.select(this).select("text").remove())})}b.selectAll(".tick").filter(function(t){return!parseFloat(Math.round(1e5*t)/1e6)&&void 0!==t}).classed("zero",!0),v=r.copy()}),y.renderEnd("axis immediate"),e}var n=d3.svg.axis(),r=d3.scale.linear(),i={top:0,right:0,bottom:0,left:0},a=75,o=60,s=null,u=!0,l=0,c=!0,f=!1,d=!1,p=null,h=0,g=250,m=d3.dispatch("renderEnd");n.scale(r).orient("bottom").tickFormat(function(t){return t});var v,y=t.utils.renderWatch(m,g);return e.axis=n,e.dispatch=m,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{axisLabelDistance:{get:function(){return h},set:function(t){h=t}},staggerLabels:{get:function(){return f},set:function(t){f=t}},rotateLabels:{get:function(){return l},set:function(t){l=t}},rotateYLabel:{get:function(){return c},set:function(t){c=t}},showMaxMin:{get:function(){return u},set:function(t){u=t}},axisLabel:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return o},set:function(t){o=t}},ticks:{get:function(){return p},set:function(t){p=t}},width:{get:function(){return a},set:function(t){a=t}},margin:{get:function(){return i},set:function(t){i.top=void 0!==t.top?t.top:i.top,i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}},duration:{get:function(){return g},set:function(t){g=t,y.reset(g)}},scale:{get:function(){return r},set:function(i){r=i,n.scale(r),d="function"==typeof r.rangeBands,t.utils.inheritOptionsD3(e,r,["domain","range","rangeBand","rangeBands"])}}}),t.utils.initOptions(e),t.utils.inheritOptionsD3(e,n,["orient","tickValues","tickSubdivide","tickSize","tickPadding","tickFormat"]),t.utils.inheritOptionsD3(e,r,["domain","range","rangeBand","rangeBands"]),e},t.models.boxPlot=function(){"use strict";function e(f){return $.reset(),f.each(function(e){var f=l-u.left-u.right,g=c-u.top-u.bottom;v=d3.select(this),t.utils.initSVG(v),d.domain(n||e.map(function(t,e){return h(t,e)})).rangeBands(i||[0,f],.1);var w=[];if(!r){var k=d3.min(e.map(function(t){var e=[];return e.push(t.values.Q1),t.values.hasOwnProperty("whisker_low")&&null!==t.values.whisker_low&&e.push(t.values.whisker_low),t.values.hasOwnProperty("outliers")&&null!==t.values.outliers&&(e=e.concat(t.values.outliers)),d3.min(e)})),M=d3.max(e.map(function(t){var e=[];return e.push(t.values.Q3),t.values.hasOwnProperty("whisker_high")&&null!==t.values.whisker_high&&e.push(t.values.whisker_high),t.values.hasOwnProperty("outliers")&&null!==t.values.outliers&&(e=e.concat(t.values.outliers)),d3.max(e)}));w=[k,M]}p.domain(r||w),p.range(a||[g,0]),o=o||d,s=s||p.copy().range([p(0),p(0)]);var C=v.selectAll("g.nv-wrap").data([e]);C.enter().append("g").attr("class","nvd3 nv-wrap");C.attr("transform","translate("+u.left+","+u.top+")");var S=C.selectAll(".nv-boxplot").data(function(t){return t}),A=S.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);S.attr("class","nv-boxplot").attr("transform",function(t,e,n){return"translate("+(d(h(t,e))+.05*d.rangeBand())+", 0)"}).classed("hover",function(t){return t.hover}),S.watchTransition($,"nv-boxplot: boxplots").style("stroke-opacity",1).style("fill-opacity",.75).delay(function(t,n){return n*b/e.length}).attr("transform",function(t,e){return"translate("+(d(h(t,e))+.05*d.rangeBand())+", 0)"}),S.exit().remove(),A.each(function(t,e){var n=d3.select(this);["low","high"].forEach(function(r){t.values.hasOwnProperty("whisker_"+r)&&null!==t.values["whisker_"+r]&&(n.append("line").style("stroke",t.color?t.color:m(t,e)).attr("class","nv-boxplot-whisker nv-boxplot-"+r),n.append("line").style("stroke",t.color?t.color:m(t,e)).attr("class","nv-boxplot-tick nv-boxplot-"+r))})});var E=S.selectAll(".nv-boxplot-outlier").data(function(t){return t.values.hasOwnProperty("outliers")&&null!==t.values.outliers?t.values.outliers:[]});E.enter().append("circle").style("fill",function(t,e,n){return m(t,n)}).style("stroke",function(t,e,n){return m(t,n)}).on("mouseover",function(t,e,n){d3.select(this).classed("hover",!0),y.elementMouseover({series:{key:t,color:m(t,n)},e:d3.event})}).on("mouseout",function(t,e,n){d3.select(this).classed("hover",!1),y.elementMouseout({series:{key:t,color:m(t,n)},e:d3.event})}).on("mousemove",function(t,e){y.elementMousemove({e:d3.event})}),E.attr("class","nv-boxplot-outlier"),E.watchTransition($,"nv-boxplot: nv-boxplot-outlier").attr("cx",.45*d.rangeBand()).attr("cy",function(t,e,n){return p(t)}).attr("r","3"),E.exit().remove();var D=function(){return null===x?.9*d.rangeBand():Math.min(75,.9*d.rangeBand())},_=function(){return.45*d.rangeBand()-D()/2},T=function(){return.45*d.rangeBand()+D()/2};["low","high"].forEach(function(t){var e="low"===t?"Q1":"Q3";S.select("line.nv-boxplot-whisker.nv-boxplot-"+t).watchTransition($,"nv-boxplot: boxplots").attr("x1",.45*d.rangeBand()).attr("y1",function(e,n){return p(e.values["whisker_"+t])}).attr("x2",.45*d.rangeBand()).attr("y2",function(t,n){return p(t.values[e])}),S.select("line.nv-boxplot-tick.nv-boxplot-"+t).watchTransition($,"nv-boxplot: boxplots").attr("x1",_).attr("y1",function(e,n){return p(e.values["whisker_"+t])}).attr("x2",T).attr("y2",function(e,n){return p(e.values["whisker_"+t])})}),["low","high"].forEach(function(t){A.selectAll(".nv-boxplot-"+t).on("mouseover",function(e,n,r){d3.select(this).classed("hover",!0),y.elementMouseover({series:{key:e.values["whisker_"+t],color:m(e,r)},e:d3.event})}).on("mouseout",function(e,n,r){d3.select(this).classed("hover",!1),y.elementMouseout({series:{key:e.values["whisker_"+t],color:m(e,r)},e:d3.event})}).on("mousemove",function(t,e){y.elementMousemove({e:d3.event})})}),A.append("rect").attr("class","nv-boxplot-box").on("mouseover",function(t,e){d3.select(this).classed("hover",!0),y.elementMouseover({key:t.label,value:t.label,series:[{key:"Q3",value:t.values.Q3,color:t.color||m(t,e)},{key:"Q2",value:t.values.Q2,color:t.color||m(t,e)},{key:"Q1",value:t.values.Q1,color:t.color||m(t,e)}],data:t,index:e,e:d3.event})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),y.elementMouseout({key:t.label,value:t.label,series:[{key:"Q3",value:t.values.Q3,color:t.color||m(t,e)},{key:"Q2",value:t.values.Q2,color:t.color||m(t,e)},{key:"Q1",value:t.values.Q1,color:t.color||m(t,e)}],data:t,index:e,e:d3.event})}).on("mousemove",function(t,e){y.elementMousemove({e:d3.event})}),S.select("rect.nv-boxplot-box").watchTransition($,"nv-boxplot: boxes").attr("y",function(t,e){return p(t.values.Q3)}).attr("width",D).attr("x",_).attr("height",function(t,e){return Math.abs(p(t.values.Q3)-p(t.values.Q1))||1}).style("fill",function(t,e){return t.color||m(t,e)}).style("stroke",function(t,e){return t.color||m(t,e)}),A.append("line").attr("class","nv-boxplot-median"),S.select("line.nv-boxplot-median").watchTransition($,"nv-boxplot: boxplots line").attr("x1",_).attr("y1",function(t,e){return p(t.values.Q2)}).attr("x2",T).attr("y2",function(t,e){return p(t.values.Q2)}),o=d.copy(),s=p.copy()}),$.renderEnd("nv-boxplot immediate"),e}var n,r,i,a,o,s,u={top:0,right:0,bottom:0,left:0},l=960,c=500,f=Math.floor(1e4*Math.random()),d=d3.scale.ordinal(),p=d3.scale.linear(),h=function(t){return t.x},g=function(t){return t.y},m=t.utils.defaultColor(),v=null,y=d3.dispatch("elementMouseover","elementMouseout","elementMousemove","renderEnd"),b=250,x=null,$=t.utils.renderWatch(y,b);return e.dispatch=y,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return l},set:function(t){l=t}},height:{get:function(){return c},set:function(t){c=t}},maxBoxWidth:{get:function(){return x},set:function(t){x=t}},x:{get:function(){return h},set:function(t){h=t}},y:{get:function(){return g},set:function(t){g=t}},xScale:{get:function(){return d},set:function(t){d=t}},yScale:{get:function(){return p},set:function(t){p=t}},xDomain:{get:function(){return n},set:function(t){n=t}},yDomain:{get:function(){return r},set:function(t){r=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},id:{get:function(){return f},set:function(t){f=t}},margin:{get:function(){return u},set:function(t){u.top=void 0!==t.top?t.top:u.top,u.right=void 0!==t.right?t.right:u.right,u.bottom=void 0!==t.bottom?t.bottom:u.bottom,u.left=void 0!==t.left?t.left:u.left}},color:{get:function(){return m},set:function(e){m=t.utils.getColor(e)}},duration:{get:function(){return b},set:function(t){b=t,$.reset(b)}}}),t.utils.initOptions(e),e},t.models.boxPlotChart=function(){"use strict";function e(c){return b.reset(),b.models(i),f&&b.models(a),d&&b.models(o),c.each(function(c){var g=d3.select(this);t.utils.initSVG(g);var b=(u||parseInt(g.style("width"))||960)-s.left-s.right,x=(l||parseInt(g.style("height"))||400)-s.top-s.bottom;if(e.update=function(){v.beforeUpdate(),g.transition().duration(y).call(e)},e.container=this,!(c&&c.length&&c.filter(function(t){return t.values.hasOwnProperty("Q1")&&t.values.hasOwnProperty("Q2")&&t.values.hasOwnProperty("Q3")}).length)){var $=g.selectAll(".nv-noData").data([m]);return $.enter().append("text").attr("class","nvd3 nv-noData").attr("dy","-.7em").style("text-anchor","middle"),$.attr("x",s.left+b/2).attr("y",s.top+x/2).text(function(t){return t}),e}g.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale().clamp(!0);var w=g.selectAll("g.nv-wrap.nv-boxPlotWithAxes").data([c]),k=w.enter().append("g").attr("class","nvd3 nv-wrap nv-boxPlotWithAxes").append("g"),M=k.append("defs"),C=w.select("g");k.append("g").attr("class","nv-x nv-axis"),k.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),k.append("g").attr("class","nv-barsWrap"),C.attr("transform","translate("+s.left+","+s.top+")"),p&&C.select(".nv-y.nv-axis").attr("transform","translate("+b+",0)"),i.width(b).height(x);var S=C.select(".nv-barsWrap").datum(c.filter(function(t){return!t.disabled}));if(S.transition().call(i),M.append("clipPath").attr("id","nv-x-label-clip-"+i.id()).append("rect"),C.select("#nv-x-label-clip-"+i.id()+" rect").attr("width",n.rangeBand()*(h?2:1)).attr("height",16).attr("x",-n.rangeBand()/(h?1:2)),f){a.scale(n).ticks(t.utils.calcTicksX(b/100,c)).tickSize(-x,0),C.select(".nv-x.nv-axis").attr("transform","translate(0,"+r.range()[0]+")"),C.select(".nv-x.nv-axis").call(a);var A=C.select(".nv-x.nv-axis").selectAll("g");h&&A.selectAll("text").attr("transform",function(t,e,n){return"translate(0,"+(n%2==0?"5":"17")+")"})}d&&(o.scale(r).ticks(Math.floor(x/36)).tickSize(-b,0),C.select(".nv-y.nv-axis").call(o)),C.select(".nv-zeroLine line").attr("x1",0).attr("x2",b).attr("y1",r(0)).attr("y2",r(0))}),b.renderEnd("nv-boxplot chart immediate"),e}var n,r,i=t.models.boxPlot(),a=t.models.axis(),o=t.models.axis(),s={top:15,right:10,bottom:50,left:60},u=null,l=null,c=t.utils.getColor(),f=!0,d=!0,p=!1,h=!1,g=t.models.tooltip(),m="No Data Available.",v=d3.dispatch("tooltipShow","tooltipHide","beforeUpdate","renderEnd"),y=250;a.orient("bottom").showMaxMin(!1).tickFormat(function(t){return t}),o.orient(p?"right":"left").tickFormat(d3.format(",.1f")),g.duration(0);var b=t.utils.renderWatch(v,y);return i.dispatch.on("elementMouseover.tooltip",function(t){g.data(t).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(t){g.data(t).hidden(!0)}),i.dispatch.on("elementMousemove.tooltip",function(t){g.position({top:d3.event.pageY,left:d3.event.pageX})()}),e.dispatch=v,e.boxplot=i,e.xAxis=a,e.yAxis=o,e.tooltip=g,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return u},set:function(t){u=t}},height:{get:function(){return l},set:function(t){l=t}},staggerLabels:{get:function(){return h},set:function(t){h=t}},showXAxis:{get:function(){return f},set:function(t){f=t}},showYAxis:{get:function(){return d},set:function(t){d=t}},tooltips:{get:function(){return tooltips},set:function(t){tooltips=t}},tooltipContent:{get:function(){return g},set:function(t){g=t}},noData:{get:function(){return m},set:function(t){m=t}},margin:{get:function(){return s},set:function(t){s.top=void 0!==t.top?t.top:s.top,s.right=void 0!==t.right?t.right:s.right,s.bottom=void 0!==t.bottom?t.bottom:s.bottom,s.left=void 0!==t.left?t.left:s.left}},duration:{get:function(){return y},set:function(t){y=t,b.reset(y),i.duration(y),a.duration(y),o.duration(y)}},color:{get:function(){return c},set:function(e){c=t.utils.getColor(e),i.color(c)}},rightAlignYAxis:{get:function(){return p},set:function(t){p=t,o.orient(t?"right":"left")}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.bullet=function(){"use strict";function e(r){return r.each(function(e,r){var g=d-n.left-n.right,y=p-n.top-n.bottom;h=d3.select(this),t.utils.initSVG(h);var b=a.call(this,e,r).slice().sort(d3.descending),x=o.call(this,e,r).slice().sort(d3.descending),$=s.call(this,e,r).slice().sort(d3.descending),w=u.call(this,e,r).slice(),k=l.call(this,e,r).slice(),M=c.call(this,e,r).slice(),C=d3.scale.linear().domain(d3.extent(d3.merge([f,b]))).range(i?[g,0]:[0,g]);this.__chart__||d3.scale.linear().domain([0,1/0]).range(C.range());this.__chart__=C;var S=d3.min(b),A=d3.max(b),E=b[1],D=h.selectAll("g.nv-wrap.nv-bullet").data([e]),_=D.enter().append("g").attr("class","nvd3 nv-wrap nv-bullet"),T=_.append("g"),O=D.select("g");T.append("rect").attr("class","nv-range nv-rangeMax"),T.append("rect").attr("class","nv-range nv-rangeAvg"),T.append("rect").attr("class","nv-range nv-rangeMin"),T.append("rect").attr("class","nv-measure"),D.attr("transform","translate("+n.left+","+n.top+")");var N=function(t){return Math.abs(C(t)-C(0))},P=function(t){return C(0>t?t:0)};O.select("rect.nv-rangeMax").attr("height",y).attr("width",N(A>0?A:S)).attr("x",P(A>0?A:S)).datum(A>0?A:S),O.select("rect.nv-rangeAvg").attr("height",y).attr("width",N(E)).attr("x",P(E)).datum(E),O.select("rect.nv-rangeMin").attr("height",y).attr("width",N(A)).attr("x",P(A)).attr("width",N(A>0?S:A)).attr("x",P(A>0?S:A)).datum(A>0?S:A),O.select("rect.nv-measure").style("fill",m).attr("height",y/3).attr("y",y/3).attr("width",0>$?C(0)-C($[0]):C($[0])-C(0)).attr("x",P($)).on("mouseover",function(){v.elementMouseover({value:$[0],label:M[0]||"Current",color:d3.select(this).style("fill")})}).on("mousemove",function(){v.elementMousemove({value:$[0],label:M[0]||"Current",color:d3.select(this).style("fill")})}).on("mouseout",function(){v.elementMouseout({value:$[0],label:M[0]||"Current",color:d3.select(this).style("fill")
|
||
})});var F=y/6,j=x.map(function(t,e){return{value:t,label:k[e]}});T.selectAll("path.nv-markerTriangle").data(j).enter().append("path").attr("class","nv-markerTriangle").attr("transform",function(t){return"translate("+C(t.value)+","+y/2+")"}).attr("d","M0,"+F+"L"+F+","+-F+" "+-F+","+-F+"Z").on("mouseover",function(t){v.elementMouseover({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill"),pos:[C(t.value),y/2]})}).on("mousemove",function(t){v.elementMousemove({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){v.elementMouseout({value:t.value,label:t.label||"Previous",color:d3.select(this).style("fill")})}),D.selectAll(".nv-range").on("mouseover",function(t,e){var n=w[e]||(e?1==e?"Mean":"Minimum":"Maximum");v.elementMouseover({value:t,label:n,color:d3.select(this).style("fill")})}).on("mousemove",function(){v.elementMousemove({value:$[0],label:M[0]||"Previous",color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){var n=w[e]||(e?1==e?"Mean":"Minimum":"Maximum");v.elementMouseout({value:t,label:n,color:d3.select(this).style("fill")})})}),e}var n={top:0,right:0,bottom:0,left:0},r="left",i=!1,a=function(t){return t.ranges},o=function(t){return t.markers?t.markers:[0]},s=function(t){return t.measures},u=function(t){return t.rangeLabels?t.rangeLabels:[]},l=function(t){return t.markerLabels?t.markerLabels:[]},c=function(t){return t.measureLabels?t.measureLabels:[]},f=[0],d=380,p=30,h=null,g=null,m=t.utils.getColor(["#1f77b4"]),v=d3.dispatch("elementMouseover","elementMouseout","elementMousemove");return e.dispatch=v,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{ranges:{get:function(){return a},set:function(t){a=t}},markers:{get:function(){return o},set:function(t){o=t}},measures:{get:function(){return s},set:function(t){s=t}},forceX:{get:function(){return f},set:function(t){f=t}},width:{get:function(){return d},set:function(t){d=t}},height:{get:function(){return p},set:function(t){p=t}},tickFormat:{get:function(){return g},set:function(t){g=t}},margin:{get:function(){return n},set:function(t){n.top=void 0!==t.top?t.top:n.top,n.right=void 0!==t.right?t.right:n.right,n.bottom=void 0!==t.bottom?t.bottom:n.bottom,n.left=void 0!==t.left?t.left:n.left}},orient:{get:function(){return r},set:function(t){r=t,i="right"==r||"bottom"==r}},color:{get:function(){return m},set:function(e){m=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.bulletChart=function(){"use strict";function e(r){return r.each(function(i,h){var g=d3.select(this);t.utils.initSVG(g);var m=t.utils.availableWidth(c,g,o),v=f-o.top-o.bottom;if(e.update=function(){e(r)},e.container=this,!i||!s.call(this,i,h))return t.utils.noData(e,g),e;g.selectAll(".nv-noData").remove();var y=s.call(this,i,h).slice().sort(d3.descending),b=u.call(this,i,h).slice().sort(d3.descending),x=l.call(this,i,h).slice().sort(d3.descending),$=g.selectAll("g.nv-wrap.nv-bulletChart").data([i]),w=$.enter().append("g").attr("class","nvd3 nv-wrap nv-bulletChart"),k=w.append("g"),M=$.select("g");k.append("g").attr("class","nv-bulletWrap"),k.append("g").attr("class","nv-titles"),$.attr("transform","translate("+o.left+","+o.top+")");var C=d3.scale.linear().domain([0,Math.max(y[0],b[0],x[0])]).range(a?[m,0]:[0,m]),S=this.__chart__||d3.scale.linear().domain([0,1/0]).range(C.range());this.__chart__=C;var A=k.select(".nv-titles").append("g").attr("text-anchor","end").attr("transform","translate(-6,"+(f-o.top-o.bottom)/2+")");A.append("text").attr("class","nv-title").text(function(t){return t.title}),A.append("text").attr("class","nv-subtitle").attr("dy","1em").text(function(t){return t.subtitle}),n.width(m).height(v);var E=M.select(".nv-bulletWrap");d3.transition(E).call(n);var D=d||C.tickFormat(m/100),_=M.selectAll("g.nv-tick").data(C.ticks(p?p:m/50),function(t){return this.textContent||D(t)}),T=_.enter().append("g").attr("class","nv-tick").attr("transform",function(t){return"translate("+S(t)+",0)"}).style("opacity",1e-6);T.append("line").attr("y1",v).attr("y2",7*v/6),T.append("text").attr("text-anchor","middle").attr("dy","1em").attr("y",7*v/6).text(D);var O=d3.transition(_).attr("transform",function(t){return"translate("+C(t)+",0)"}).style("opacity",1);O.select("line").attr("y1",v).attr("y2",7*v/6),O.select("text").attr("y",7*v/6),d3.transition(_.exit()).attr("transform",function(t){return"translate("+C(t)+",0)"}).style("opacity",1e-6).remove()}),d3.timer.flush(),e}var n=t.models.bullet(),r=t.models.tooltip(),i="left",a=!1,o={top:5,right:40,bottom:20,left:120},s=function(t){return t.ranges},u=function(t){return t.markers?t.markers:[0]},l=function(t){return t.measures},c=null,f=55,d=null,p=null,h=null,g=d3.dispatch("tooltipShow","tooltipHide");return r.duration(0).headerEnabled(!1),n.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:t.label,value:t.value,color:t.color},r.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){r.hidden(!0)}),n.dispatch.on("elementMousemove.tooltip",function(t){r.position({top:d3.event.pageY,left:d3.event.pageX})()}),e.bullet=n,e.dispatch=g,e.tooltip=r,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{ranges:{get:function(){return s},set:function(t){s=t}},markers:{get:function(){return u},set:function(t){u=t}},measures:{get:function(){return l},set:function(t){l=t}},width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return f},set:function(t){f=t}},tickFormat:{get:function(){return d},set:function(t){d=t}},ticks:{get:function(){return p},set:function(t){p=t}},noData:{get:function(){return h},set:function(t){h=t}},tooltips:{get:function(){return r.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),r.enabled(!!e)}},tooltipContent:{get:function(){return r.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),r.contentGenerator(e)}},margin:{get:function(){return o},set:function(t){o.top=void 0!==t.top?t.top:o.top,o.right=void 0!==t.right?t.right:o.right,o.bottom=void 0!==t.bottom?t.bottom:o.bottom,o.left=void 0!==t.left?t.left:o.left}},orient:{get:function(){return i},set:function(t){i=t,a="right"==i||"bottom"==i}}}),t.utils.inheritOptions(e,n),t.utils.initOptions(e),e},t.models.candlestickBar=function(){"use strict";function e(k){return k.each(function(e){n=d3.select(this);var k=t.utils.availableWidth(u,n,s),M=t.utils.availableHeight(l,n,s);t.utils.initSVG(n);var S=k/e[0].values.length*.45;f.domain(r||d3.extent(e[0].values.map(p).concat(b))),$?f.range(a||[.5*k/e[0].values.length,k*(e[0].values.length-.5)/e[0].values.length]):f.range(a||[5+S/2,k-S/2-5]),d.domain(i||[d3.min(e[0].values.map(y).concat(x)),d3.max(e[0].values.map(v).concat(x))]).range(o||[M,0]),f.domain()[0]===f.domain()[1]&&(f.domain()[0]?f.domain([f.domain()[0]-.01*f.domain()[0],f.domain()[1]+.01*f.domain()[1]]):f.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var A=d3.select(this).selectAll("g.nv-wrap.nv-candlestickBar").data([e[0].values]),E=A.enter().append("g").attr("class","nvd3 nv-wrap nv-candlestickBar"),D=E.append("defs"),_=E.append("g"),T=A.select("g");_.append("g").attr("class","nv-ticks"),A.attr("transform","translate("+s.left+","+s.top+")"),n.on("click",function(t,e){C.chartClick({data:t,index:e,pos:d3.event,id:c})}),D.append("clipPath").attr("id","nv-chart-clip-path-"+c).append("rect"),A.select("#nv-chart-clip-path-"+c+" rect").attr("width",k).attr("height",M),T.attr("clip-path",w?"url(#nv-chart-clip-path-"+c+")":"");var O=A.select(".nv-ticks").selectAll(".nv-tick").data(function(t){return t});O.exit().remove();var N=O.enter().append("g").attr("class",function(t,e,n){return(g(t,e)>m(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e});N.append("line").attr("class","nv-candlestick-lines").attr("transform",function(t,e){return"translate("+f(p(t,e))+",0)"}).attr("x1",0).attr("y1",function(t,e){return d(v(t,e))}).attr("x2",0).attr("y2",function(t,e){return d(y(t,e))}),N.append("rect").attr("class","nv-candlestick-rects nv-bars").attr("transform",function(t,e){return"translate("+(f(p(t,e))-S/2)+","+(d(h(t,e))-(g(t,e)>m(t,e)?d(m(t,e))-d(g(t,e)):0))+")"}).attr("x",0).attr("y",0).attr("width",S).attr("height",function(t,e){var n=g(t,e),r=m(t,e);return n>r?d(r)-d(n):d(n)-d(r)});n.selectAll(".nv-candlestick-lines").transition().attr("transform",function(t,e){return"translate("+f(p(t,e))+",0)"}).attr("x1",0).attr("y1",function(t,e){return d(v(t,e))}).attr("x2",0).attr("y2",function(t,e){return d(y(t,e))}),n.selectAll(".nv-candlestick-rects").transition().attr("transform",function(t,e){return"translate("+(f(p(t,e))-S/2)+","+(d(h(t,e))-(g(t,e)>m(t,e)?d(m(t,e))-d(g(t,e)):0))+")"}).attr("x",0).attr("y",0).attr("width",S).attr("height",function(t,e){var n=g(t,e),r=m(t,e);return n>r?d(r)-d(n):d(n)-d(r)})}),e}var n,r,i,a,o,s={top:0,right:0,bottom:0,left:0},u=null,l=null,c=Math.floor(1e4*Math.random()),f=d3.scale.linear(),d=d3.scale.linear(),p=function(t){return t.x},h=function(t){return t.y},g=function(t){return t.open},m=function(t){return t.close},v=function(t){return t.high},y=function(t){return t.low},b=[],x=[],$=!1,w=!0,k=t.utils.defaultColor(),M=!1,C=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");return e.highlightPoint=function(t,r){e.clearHighlights(),n.select(".nv-candlestickBar .nv-tick-0-"+t).classed("hover",r)},e.clearHighlights=function(){n.select(".nv-candlestickBar .nv-tick.hover").classed("hover",!1)},e.dispatch=C,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return u},set:function(t){u=t}},height:{get:function(){return l},set:function(t){l=t}},xScale:{get:function(){return f},set:function(t){f=t}},yScale:{get:function(){return d},set:function(t){d=t}},xDomain:{get:function(){return r},set:function(t){r=t}},yDomain:{get:function(){return i},set:function(t){i=t}},xRange:{get:function(){return a},set:function(t){a=t}},yRange:{get:function(){return o},set:function(t){o=t}},forceX:{get:function(){return b},set:function(t){b=t}},forceY:{get:function(){return x},set:function(t){x=t}},padData:{get:function(){return $},set:function(t){$=t}},clipEdge:{get:function(){return w},set:function(t){w=t}},id:{get:function(){return c},set:function(t){c=t}},interactive:{get:function(){return M},set:function(t){M=t}},x:{get:function(){return p},set:function(t){p=t}},y:{get:function(){return h},set:function(t){h=t}},open:{get:function(){return g()},set:function(t){g=t}},close:{get:function(){return m()},set:function(t){m=t}},high:{get:function(){return v},set:function(t){v=t}},low:{get:function(){return y},set:function(t){y=t}},margin:{get:function(){return s},set:function(t){s.top=void 0!=t.top?t.top:s.top,s.right=void 0!=t.right?t.right:s.right,s.bottom=void 0!=t.bottom?t.bottom:s.bottom,s.left=void 0!=t.left?t.left:s.left}},color:{get:function(){return k},set:function(e){k=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.cumulativeLineChart=function(){"use strict";function e(f){return N.reset(),N.models(a),v&&N.models(o),y&&N.models(s),f.each(function(f){function S(t,n){d3.select(e.container).style("cursor","ew-resize")}function _(t,e){O.x=d3.event.x,O.i=Math.round(T.invert(O.x)),j()}function N(t,n){d3.select(e.container).style("cursor","auto"),M.index=O.i,E.stateChange(M)}function j(){et.data([O]);var t=e.duration();e.duration(0),e.update(),e.duration(t)}var I=d3.select(this);t.utils.initSVG(I),I.classed("nv-chart-"+k,!0);var L=this,q=t.utils.availableWidth(h,I,d),H=t.utils.availableHeight(g,I,d);if(e.update=function(){0===D?I.call(e):I.transition().duration(D).call(e)},e.container=this,M.setter(F(f),e.update).getter(P(f)).update(),M.disabled=f.map(function(t){return!!t.disabled}),!C){var V;C={};for(V in M)M[V]instanceof Array?C[V]=M[V].slice(0):C[V]=M[V]}var R=d3.behavior.drag().on("dragstart",S).on("drag",_).on("dragend",N);if(!(f&&f.length&&f.filter(function(t){return t.values.length}).length))return t.utils.noData(e,I),e;if(I.selectAll(".nv-noData").remove(),r=a.xScale(),i=a.yScale(),w)a.yDomain(null);else{var W=f.filter(function(t){return!t.disabled}).map(function(t,e){var n=d3.extent(t.values,a.y());return n[0]<-.95&&(n[0]=-.95),[(n[0]-n[1])/(1+n[1]),(n[1]-n[0])/(1+n[0])]}),z=[d3.min(W,function(t){return t[0]}),d3.max(W,function(t){return t[1]})];a.yDomain(z)}T.domain([0,f[0].values.length-1]).range([0,q]).clamp(!0);var f=n(O.i,f),U=$?"none":"all",Y=I.selectAll("g.nv-wrap.nv-cumulativeLine").data([f]),B=Y.enter().append("g").attr("class","nvd3 nv-wrap nv-cumulativeLine").append("g"),G=Y.select("g");if(B.append("g").attr("class","nv-interactive"),B.append("g").attr("class","nv-x nv-axis").style("pointer-events","none"),B.append("g").attr("class","nv-y nv-axis"),B.append("g").attr("class","nv-background"),B.append("g").attr("class","nv-linesWrap").style("pointer-events",U),B.append("g").attr("class","nv-avgLinesWrap").style("pointer-events","none"),B.append("g").attr("class","nv-legendWrap"),B.append("g").attr("class","nv-controlsWrap"),m&&(u.width(q),G.select(".nv-legendWrap").datum(f).call(u),d.top!=u.height()&&(d.top=u.height(),H=t.utils.availableHeight(g,I,d)),G.select(".nv-legendWrap").attr("transform","translate(0,"+-d.top+")")),x){var X=[{key:"Re-scale y-axis",disabled:!w}];l.width(140).color(["#444","#444","#444"]).rightAlign(!1).margin({top:5,right:0,bottom:5,left:20}),G.select(".nv-controlsWrap").datum(X).attr("transform","translate(0,"+-d.top+")").call(l)}Y.attr("transform","translate("+d.left+","+d.top+")"),b&&G.select(".nv-y.nv-axis").attr("transform","translate("+q+",0)");var Z=f.filter(function(t){return t.tempDisabled});Y.select(".tempDisabled").remove(),Z.length&&Y.append("text").attr("class","tempDisabled").attr("x",q/2).attr("y","-.71em").style("text-anchor","end").text(Z.map(function(t){return t.key}).join(", ")+" values cannot be calculated for this time period."),$&&(c.width(q).height(H).margin({left:d.left,top:d.top}).svgContainer(I).xScale(r),Y.select(".nv-interactive").call(c)),B.select(".nv-background").append("rect"),G.select(".nv-background rect").attr("width",q).attr("height",H),a.y(function(t){return t.display.y}).width(q).height(H).color(f.map(function(t,e){return t.color||p(t,e)}).filter(function(t,e){return!f[e].disabled&&!f[e].tempDisabled}));var K=G.select(".nv-linesWrap").datum(f.filter(function(t){return!t.disabled&&!t.tempDisabled}));K.call(a),f.forEach(function(t,e){t.seriesIndex=e});var J=f.filter(function(t){return!t.disabled&&!!A(t)}),Q=G.select(".nv-avgLinesWrap").selectAll("line").data(J,function(t){return t.key}),tt=function(t){var e=i(A(t));return 0>e?0:e>H?H:e};Q.enter().append("line").style("stroke-width",2).style("stroke-dasharray","10,10").style("stroke",function(t,e){return a.color()(t,t.seriesIndex)}).attr("x1",0).attr("x2",q).attr("y1",tt).attr("y2",tt),Q.style("stroke-opacity",function(t){var e=i(A(t));return 0>e||e>H?0:1}).attr("x1",0).attr("x2",q).attr("y1",tt).attr("y2",tt),Q.exit().remove();var et=K.selectAll(".nv-indexLine").data([O]);et.enter().append("rect").attr("class","nv-indexLine").attr("width",3).attr("x",-2).attr("fill","red").attr("fill-opacity",.5).style("pointer-events","all").call(R),et.attr("transform",function(t){return"translate("+T(t.i)+",0)"}).attr("height",H),v&&(o.scale(r)._ticks(t.utils.calcTicksX(q/70,f)).tickSize(-H,0),G.select(".nv-x.nv-axis").attr("transform","translate(0,"+i.range()[0]+")"),G.select(".nv-x.nv-axis").call(o)),y&&(s.scale(i)._ticks(t.utils.calcTicksY(H/36,f)).tickSize(-q,0),G.select(".nv-y.nv-axis").call(s)),G.select(".nv-background rect").on("click",function(){O.x=d3.mouse(this)[0],O.i=Math.round(T.invert(O.x)),M.index=O.i,E.stateChange(M),j()}),a.dispatch.on("elementClick",function(t){O.i=t.pointIndex,O.x=T(O.i),M.index=O.i,E.stateChange(M),j()}),l.dispatch.on("legendClick",function(t,n){t.disabled=!t.disabled,w=!t.disabled,M.rescaleY=w,E.stateChange(M),e.update()}),u.dispatch.on("stateChange",function(t){for(var n in t)M[n]=t[n];E.stateChange(M),e.update()}),c.dispatch.on("elementMousemove",function(n){a.clearHighlights();var r,i,u,l=[];if(f.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(o,s){i=t.interactiveBisect(o.values,n.pointXValue,e.x()),a.highlightPoint(s,i,!0);var c=o.values[i];"undefined"!=typeof c&&("undefined"==typeof r&&(r=c),"undefined"==typeof u&&(u=e.xScale()(e.x()(c,i))),l.push({key:o.key,value:e.y()(c,i),color:p(o,o.seriesIndex)}))}),l.length>2){var h=e.yScale().invert(n.mouseY),g=Math.abs(e.yScale().domain()[0]-e.yScale().domain()[1]),m=.03*g,v=t.nearestValueIndex(l.map(function(t){return t.value}),h,m);null!==v&&(l[v].highlight=!0)}var y=o.tickFormat()(e.x()(r,i),i);c.tooltip.position({left:u+d.left,top:n.mouseY+d.top}).chartContainer(L.parentNode).valueFormatter(function(t,e){return s.tickFormat()(t)}).data({value:y,series:l})(),c.renderGuideLine(u)}),c.dispatch.on("elementMouseout",function(t){a.clearHighlights()}),E.on("changeState",function(t){"undefined"!=typeof t.disabled&&(f.forEach(function(e,n){e.disabled=t.disabled[n]}),M.disabled=t.disabled),"undefined"!=typeof t.index&&(O.i=t.index,O.x=T(O.i),M.index=t.index,et.data([O])),"undefined"!=typeof t.rescaleY&&(w=t.rescaleY),e.update()})}),N.renderEnd("cumulativeLineChart immediate"),e}function n(t,e){return j||(j=a.y()),e.map(function(e,n){if(!e.values)return e;var r=e.values[t];if(null==r)return e;var i=j(r,t);return-.95>i&&!_?(e.tempDisabled=!0,e):(e.tempDisabled=!1,e.values=e.values.map(function(t,e){return t.display={y:(j(t,e)-i)/(1+i)},t}),e)})}var r,i,a=t.models.line(),o=t.models.axis(),s=t.models.axis(),u=t.models.legend(),l=t.models.legend(),c=t.interactiveGuideline(),f=t.models.tooltip(),d={top:30,right:30,bottom:50,left:60},p=t.utils.defaultColor(),h=null,g=null,m=!0,v=!0,y=!0,b=!1,x=!0,$=!1,w=!0,k=a.id(),M=t.utils.state(),C=null,S=null,A=function(t){return t.average},E=d3.dispatch("stateChange","changeState","renderEnd"),D=250,_=!1;M.index=0,M.rescaleY=w,o.orient("bottom").tickPadding(7),s.orient(b?"right":"left"),f.valueFormatter(function(t,e){return s.tickFormat()(t,e)}).headerFormatter(function(t,e){return o.tickFormat()(t,e)}),l.updateState(!1);var T=d3.scale.linear(),O={i:0,x:0},N=t.utils.renderWatch(E,D),P=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),index:O.i,rescaleY:w}}},F=function(t){return function(e){void 0!==e.index&&(O.i=e.index),void 0!==e.rescaleY&&(w=e.rescaleY),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};a.dispatch.on("elementMouseover.tooltip",function(t){var n={x:e.x()(t.point),y:e.y()(t.point),color:t.point.color};t.point=n,f.data(t).position(t.pos).hidden(!1)}),a.dispatch.on("elementMouseout.tooltip",function(t){f.hidden(!0)});var j=null;return e.dispatch=E,e.lines=a,e.legend=u,e.controls=l,e.xAxis=o,e.yAxis=s,e.interactiveLayer=c,e.state=M,e.tooltip=f,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return h},set:function(t){h=t}},height:{get:function(){return g},set:function(t){g=t}},rescaleY:{get:function(){return w},set:function(t){w=t}},showControls:{get:function(){return x},set:function(t){x=t}},showLegend:{get:function(){return m},set:function(t){m=t}},average:{get:function(){return A},set:function(t){A=t}},defaultState:{get:function(){return C},set:function(t){C=t}},noData:{get:function(){return S},set:function(t){S=t}},showXAxis:{get:function(){return v},set:function(t){v=t}},showYAxis:{get:function(){return y},set:function(t){y=t}},noErrorCheck:{get:function(){return _},set:function(t){_=t}},tooltips:{get:function(){return f.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),f.enabled(!!e)}},tooltipContent:{get:function(){return f.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),f.contentGenerator(e)}},margin:{get:function(){return d},set:function(t){d.top=void 0!==t.top?t.top:d.top,d.right=void 0!==t.right?t.right:d.right,d.bottom=void 0!==t.bottom?t.bottom:d.bottom,d.left=void 0!==t.left?t.left:d.left}},color:{get:function(){return p},set:function(e){p=t.utils.getColor(e),u.color(p)}},useInteractiveGuideline:{get:function(){return $},set:function(t){$=t,t===!0&&(e.interactive(!1),e.useVoronoi(!1))}},rightAlignYAxis:{get:function(){return b},set:function(t){b=t,s.orient(t?"right":"left")}},duration:{get:function(){return D},set:function(t){D=t,a.duration(D),o.duration(D),s.duration(D),N.reset(D)}}}),t.utils.inheritOptions(e,a),t.utils.initOptions(e),e},t.models.discreteBar=function(){"use strict";function e(d){return M.reset(),d.each(function(e){var d=c-l.left-l.right,k=f-l.top-l.bottom;n=d3.select(this),t.utils.initSVG(n),e.forEach(function(t,e){t.values.forEach(function(t){t.series=e})});var C=r&&i?[]:e.map(function(t){return t.values.map(function(t,e){return{x:g(t,e),y:m(t,e),y0:t.y0}})});p.domain(r||d3.merge(C).map(function(t){return t.x})).rangeBands(a||[0,d],.1),h.domain(i||d3.extent(d3.merge(C).map(function(t){return t.y}).concat(v))),b?h.range(o||[k-(h.domain()[0]<0?12:0),h.domain()[1]>0?12:0]):h.range(o||[k,0]),s=s||p,u=u||h.copy().range([h(0),h(0)]);var S=n.selectAll("g.nv-wrap.nv-discretebar").data([e]),A=S.enter().append("g").attr("class","nvd3 nv-wrap nv-discretebar"),E=A.append("g");S.select("g");E.append("g").attr("class","nv-groups"),S.attr("transform","translate("+l.left+","+l.top+")");var D=S.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});D.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),D.exit().watchTransition(M,"discreteBar: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),D.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}),D.watchTransition(M,"discreteBar: groups").style("stroke-opacity",1).style("fill-opacity",.75);var _=D.selectAll("g.nv-bar").data(function(t){return t.values});_.exit().remove();var T=_.enter().append("g").attr("transform",function(t,e,n){return"translate("+(p(g(t,e))+.05*p.rangeBand())+", "+h(0)+")"}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0),$.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),$.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){$.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){$.elementClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}).on("dblclick",function(t,e){$.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()});T.append("rect").attr("height",0).attr("width",.9*p.rangeBand()/e.length),b?(T.append("text").attr("text-anchor","middle"),_.select("text").text(function(t,e){return x(m(t,e))}).watchTransition(M,"discreteBar: bars text").attr("x",.9*p.rangeBand()/2).attr("y",function(t,e){return m(t,e)<0?h(m(t,e))-h(0)+12:-4})):_.selectAll("text").remove(),_.attr("class",function(t,e){return m(t,e)<0?"nv-bar negative":"nv-bar positive"}).style("fill",function(t,e){return t.color||y(t,e)}).style("stroke",function(t,e){return t.color||y(t,e)}).select("rect").attr("class",w).watchTransition(M,"discreteBar: bars rect").attr("width",.9*p.rangeBand()/e.length),_.watchTransition(M,"discreteBar: bars").attr("transform",function(t,e){var n=p(g(t,e))+.05*p.rangeBand(),r=m(t,e)<0?h(0):h(0)-h(m(t,e))<1?h(0)-1:h(m(t,e));return"translate("+n+", "+r+")"}).select("rect").attr("height",function(t,e){return Math.max(Math.abs(h(m(t,e))-h(i&&i[0]||0))||1)}),s=p.copy(),u=h.copy()}),M.renderEnd("discreteBar immediate"),e}var n,r,i,a,o,s,u,l={top:0,right:0,bottom:0,left:0},c=960,f=500,d=Math.floor(1e4*Math.random()),p=d3.scale.ordinal(),h=d3.scale.linear(),g=function(t){return t.x},m=function(t){return t.y},v=[0],y=t.utils.defaultColor(),b=!1,x=d3.format(",.2f"),$=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),w="discreteBar",k=250,M=t.utils.renderWatch($,k);return e.dispatch=$,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return f},set:function(t){f=t}},forceY:{get:function(){return v},set:function(t){v=t}},showValues:{get:function(){return b},set:function(t){b=t}},x:{get:function(){return g},set:function(t){g=t}},y:{get:function(){return m},set:function(t){m=t}},xScale:{get:function(){return p},set:function(t){p=t}},yScale:{get:function(){return h},set:function(t){h=t}},xDomain:{get:function(){return r},set:function(t){r=t}},yDomain:{get:function(){return i},set:function(t){i=t}},xRange:{get:function(){return a},set:function(t){a=t}},yRange:{get:function(){return o},set:function(t){o=t}},valueFormat:{get:function(){return x},set:function(t){x=t}},id:{get:function(){return d},set:function(t){d=t}},rectClass:{get:function(){return w},set:function(t){w=t}},margin:{get:function(){return l},set:function(t){l.top=void 0!==t.top?t.top:l.top,l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},color:{get:function(){return y},set:function(e){y=t.utils.getColor(e)}},duration:{get:function(){return k},set:function(t){k=t,M.reset(k)}}}),t.utils.initOptions(e),e},t.models.discreteBarChart=function(){"use strict";function e(s){return b.reset(),b.models(i),d&&b.models(a),p&&b.models(o),s.each(function(s){var f=d3.select(this);t.utils.initSVG(f);var m=t.utils.availableWidth(l,f,u),b=t.utils.availableHeight(c,f,u);if(e.update=function(){v.beforeUpdate(),f.transition().duration(y).call(e)},e.container=this,!(s&&s.length&&s.filter(function(t){return t.values.length}).length))return t.utils.noData(e,f),e;f.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale().clamp(!0);var x=f.selectAll("g.nv-wrap.nv-discreteBarWithAxes").data([s]),$=x.enter().append("g").attr("class","nvd3 nv-wrap nv-discreteBarWithAxes").append("g"),w=$.append("defs"),k=x.select("g");$.append("g").attr("class","nv-x nv-axis"),$.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),$.append("g").attr("class","nv-barsWrap"),k.attr("transform","translate("+u.left+","+u.top+")"),h&&k.select(".nv-y.nv-axis").attr("transform","translate("+m+",0)"),i.width(m).height(b);var M=k.select(".nv-barsWrap").datum(s.filter(function(t){return!t.disabled}));if(M.transition().call(i),w.append("clipPath").attr("id","nv-x-label-clip-"+i.id()).append("rect"),k.select("#nv-x-label-clip-"+i.id()+" rect").attr("width",n.rangeBand()*(g?2:1)).attr("height",16).attr("x",-n.rangeBand()/(g?1:2)),d){a.scale(n)._ticks(t.utils.calcTicksX(m/100,s)).tickSize(-b,0),k.select(".nv-x.nv-axis").attr("transform","translate(0,"+(r.range()[0]+(i.showValues()&&r.domain()[0]<0?16:0))+")"),k.select(".nv-x.nv-axis").call(a);var C=k.select(".nv-x.nv-axis").selectAll("g");g&&C.selectAll("text").attr("transform",function(t,e,n){return"translate(0,"+(n%2==0?"5":"17")+")"})}p&&(o.scale(r)._ticks(t.utils.calcTicksY(b/36,s)).tickSize(-m,0),k.select(".nv-y.nv-axis").call(o)),k.select(".nv-zeroLine line").attr("x1",0).attr("x2",m).attr("y1",r(0)).attr("y2",r(0))}),b.renderEnd("discreteBar chart immediate"),e}var n,r,i=t.models.discreteBar(),a=t.models.axis(),o=t.models.axis(),s=t.models.tooltip(),u={top:15,right:10,bottom:50,left:60},l=null,c=null,f=t.utils.getColor(),d=!0,p=!0,h=!1,g=!1,m=null,v=d3.dispatch("beforeUpdate","renderEnd"),y=250;a.orient("bottom").showMaxMin(!1).tickFormat(function(t){return t}),o.orient(h?"right":"left").tickFormat(d3.format(",.1f")),s.duration(0).headerEnabled(!1).valueFormatter(function(t,e){return o.tickFormat()(t,e)}).keyFormatter(function(t,e){return a.tickFormat()(t,e)});var b=t.utils.renderWatch(v,y);return i.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:e.x()(t.data),value:e.y()(t.data),color:t.color},s.data(t).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(t){s.hidden(!0)}),i.dispatch.on("elementMousemove.tooltip",function(t){s.position({top:d3.event.pageY,left:d3.event.pageX})()}),e.dispatch=v,e.discretebar=i,e.xAxis=a,e.yAxis=o,e.tooltip=s,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return l},set:function(t){l=t}},height:{get:function(){return c},set:function(t){c=t}},staggerLabels:{get:function(){return g},set:function(t){g=t}},showXAxis:{get:function(){return d},set:function(t){d=t}},showYAxis:{get:function(){return p},set:function(t){p=t}},noData:{get:function(){return m},set:function(t){m=t}},tooltips:{get:function(){return s.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),s.enabled(!!e)}},tooltipContent:{get:function(){return s.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),s.contentGenerator(e)}},margin:{get:function(){return u},set:function(t){u.top=void 0!==t.top?t.top:u.top,u.right=void 0!==t.right?t.right:u.right,u.bottom=void 0!==t.bottom?t.bottom:u.bottom,u.left=void 0!==t.left?t.left:u.left}},duration:{get:function(){return y},set:function(t){y=t,b.reset(y),i.duration(y),a.duration(y),o.duration(y)}},color:{get:function(){return f},set:function(e){f=t.utils.getColor(e),i.color(f)}},rightAlignYAxis:{get:function(){return h},set:function(t){h=t,o.orient(t?"right":"left")}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.distribution=function(){"use strict";function e(c){return d.reset(),c.each(function(e){var c=(i-("x"===o?r.left+r.right:r.top+r.bottom),"x"==o?"y":"x"),f=d3.select(this);t.utils.initSVG(f),n=n||l;var p=f.selectAll("g.nv-distribution").data([e]),h=p.enter().append("g").attr("class","nvd3 nv-distribution"),g=(h.append("g"),p.select("g"));p.attr("transform","translate("+r.left+","+r.top+")");var m=g.selectAll("g.nv-dist").data(function(t){return t},function(t){return t.key});m.enter().append("g"),m.attr("class",function(t,e){return"nv-dist nv-series-"+e}).style("stroke",function(t,e){return u(t,e)});var v=m.selectAll("line.nv-dist"+o).data(function(t){return t.values});v.enter().append("line").attr(o+"1",function(t,e){return n(s(t,e))}).attr(o+"2",function(t,e){return n(s(t,e))}),d.transition(m.exit().selectAll("line.nv-dist"+o),"dist exit").attr(o+"1",function(t,e){return l(s(t,e))}).attr(o+"2",function(t,e){return l(s(t,e))}).style("stroke-opacity",0).remove(),v.attr("class",function(t,e){return"nv-dist"+o+" nv-dist"+o+"-"+e}).attr(c+"1",0).attr(c+"2",a),d.transition(v,"dist").attr(o+"1",function(t,e){return l(s(t,e))}).attr(o+"2",function(t,e){return l(s(t,e))}),n=l.copy()}),d.renderEnd("distribution immediate"),e}var n,r={top:0,right:0,bottom:0,left:0},i=400,a=8,o="x",s=function(t){return t[o]},u=t.utils.defaultColor(),l=d3.scale.linear(),c=250,f=d3.dispatch("renderEnd"),d=t.utils.renderWatch(f,c);return e.options=t.utils.optionsFunc.bind(e),e.dispatch=f,e.margin=function(t){return arguments.length?(r.top="undefined"!=typeof t.top?t.top:r.top,r.right="undefined"!=typeof t.right?t.right:r.right,r.bottom="undefined"!=typeof t.bottom?t.bottom:r.bottom,r.left="undefined"!=typeof t.left?t.left:r.left,e):r},e.width=function(t){return arguments.length?(i=t,e):i},e.axis=function(t){return arguments.length?(o=t,e):o},e.size=function(t){return arguments.length?(a=t,e):a},e.getData=function(t){return arguments.length?(s=d3.functor(t),e):s},e.scale=function(t){return arguments.length?(l=t,e):l},e.color=function(n){return arguments.length?(u=t.utils.getColor(n),e):u},e.duration=function(t){return arguments.length?(c=t,
|
||
d.reset(c),e):c},e},t.models.furiousLegend=function(){"use strict";function e(g){function m(t,e){return"furious"!=h?"#000":d?t.disengaged?o(t,e):"#fff":d?void 0:t.disabled?o(t,e):"#fff"}function v(t,e){return d&&"furious"==h?t.disengaged?"#fff":o(t,e):t.disabled?"#fff":o(t,e)}return g.each(function(e){var g=r-n.left-n.right,y=d3.select(this);t.utils.initSVG(y);var b=y.selectAll("g.nv-legend").data([e]),x=(b.enter().append("g").attr("class","nvd3 nv-legend").append("g"),b.select("g"));b.attr("transform","translate("+n.left+","+n.top+")");var $,w=x.selectAll(".nv-series").data(function(t){return"furious"!=h?t:t.filter(function(t){return d?!0:!t.disengaged})}),k=w.enter().append("g").attr("class","nv-series");if("classic"==h)k.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),$=w.select("circle");else if("furious"==h){k.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),$=w.select("rect"),k.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)");var M=w.select(".nv-check-box");M.each(function(t,e){d3.select(this).selectAll("path").attr("stroke",m(t,e))})}k.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var C=w.select("text.nv-legend-text");w.on("mouseover",function(t,e){p.legendMouseover(t,e)}).on("mouseout",function(t,e){p.legendMouseout(t,e)}).on("click",function(t,e){p.legendClick(t,e);var n=w.data();if(c){if("classic"==h)f?(n.forEach(function(t){t.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,n.every(function(t){return t.disabled})&&n.forEach(function(t){t.disabled=!1}));else if("furious"==h)if(d)t.disengaged=!t.disengaged,t.userDisabled=void 0==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled;else if(!d){t.disabled=!t.disabled,t.userDisabled=t.disabled;var r=n.filter(function(t){return!t.disengaged});r.every(function(t){return t.userDisabled})&&n.forEach(function(t){t.disabled=t.userDisabled=!1})}p.stateChange({disabled:n.map(function(t){return!!t.disabled}),disengaged:n.map(function(t){return!!t.disengaged})})}}).on("dblclick",function(t,e){if(("furious"!=h||!d)&&(p.legendDblclick(t,e),c)){var n=w.data();n.forEach(function(t){t.disabled=!0,"furious"==h&&(t.userDisabled=t.disabled)}),t.disabled=!1,"furious"==h&&(t.userDisabled=t.disabled),p.stateChange({disabled:n.map(function(t){return!!t.disabled})})}}),w.classed("nv-disabled",function(t){return t.userDisabled}),w.exit().remove(),C.attr("fill",m).text(a);var S;switch(h){case"furious":S=23;break;case"classic":S=20}if(s){var A=[];w.each(function(e,n){var r,i=d3.select(this).select("text");try{if(r=i.node().getComputedTextLength(),0>=r)throw Error()}catch(a){r=t.utils.calcApproxTextWidth(i)}A.push(r+u)});for(var E=0,D=0,_=[];g>D&&E<A.length;)_[E]=A[E],D+=A[E++];for(0===E&&(E=1);D>g&&E>1;){_=[],E--;for(var T=0;T<A.length;T++)A[T]>(_[T%E]||0)&&(_[T%E]=A[T]);D=_.reduce(function(t,e,n,r){return t+e})}for(var O=[],N=0,P=0;E>N;N++)O[N]=P,P+=_[N];w.attr("transform",function(t,e){return"translate("+O[e%E]+","+(5+Math.floor(e/E)*S)+")"}),l?x.attr("transform","translate("+(r-n.right-D)+","+n.top+")"):x.attr("transform","translate(0,"+n.top+")"),i=n.top+n.bottom+Math.ceil(A.length/E)*S}else{var F,j=5,I=5,L=0;w.attr("transform",function(t,e){var i=d3.select(this).select("text").node().getComputedTextLength()+u;return F=I,r<n.left+n.right+F+i&&(I=F=5,j+=S),I+=i,I>L&&(L=I),"translate("+F+","+j+")"}),x.attr("transform","translate("+(r-n.right-L)+","+n.top+")"),i=n.top+n.bottom+j+15}"furious"==h&&$.attr("width",function(t,e){return C[0][e].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),$.style("fill",v).style("stroke",function(t,e){return t.color||o(t,e)})}),e}var n={top:5,right:0,bottom:5,left:0},r=400,i=20,a=function(t){return t.key},o=t.utils.getColor(),s=!0,u=28,l=!0,c=!0,f=!1,d=!1,p=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),h="classic";return e.dispatch=p,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return r},set:function(t){r=t}},height:{get:function(){return i},set:function(t){i=t}},key:{get:function(){return a},set:function(t){a=t}},align:{get:function(){return s},set:function(t){s=t}},rightAlign:{get:function(){return l},set:function(t){l=t}},padding:{get:function(){return u},set:function(t){u=t}},updateState:{get:function(){return c},set:function(t){c=t}},radioButtonMode:{get:function(){return f},set:function(t){f=t}},expanded:{get:function(){return d},set:function(t){d=t}},vers:{get:function(){return h},set:function(t){h=t}},margin:{get:function(){return n},set:function(t){n.top=void 0!==t.top?t.top:n.top,n.right=void 0!==t.right?t.right:n.right,n.bottom=void 0!==t.bottom?t.bottom:n.bottom,n.left=void 0!==t.left?t.left:n.left}},color:{get:function(){return o},set:function(e){o=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.historicalBar=function(){"use strict";function e(k){return k.each(function(e){w.reset(),c=d3.select(this);var k=t.utils.availableWidth(s,c,o),M=t.utils.availableHeight(u,c,o);t.utils.initSVG(c),f.domain(n||d3.extent(e[0].values.map(p).concat(g))),v?f.range(i||[.5*k/e[0].values.length,k*(e[0].values.length-.5)/e[0].values.length]):f.range(i||[0,k]),d.domain(r||d3.extent(e[0].values.map(h).concat(m))).range(a||[M,0]),f.domain()[0]===f.domain()[1]&&(f.domain()[0]?f.domain([f.domain()[0]-.01*f.domain()[0],f.domain()[1]+.01*f.domain()[1]]):f.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var C=c.selectAll("g.nv-wrap.nv-historicalBar-"+l).data([e[0].values]),S=C.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBar-"+l),A=S.append("defs"),E=S.append("g"),D=C.select("g");E.append("g").attr("class","nv-bars"),C.attr("transform","translate("+o.left+","+o.top+")"),c.on("click",function(t,e){x.chartClick({data:t,index:e,pos:d3.event,id:l})}),A.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect"),C.select("#nv-chart-clip-path-"+l+" rect").attr("width",k).attr("height",M),D.attr("clip-path",y?"url(#nv-chart-clip-path-"+l+")":"");var _=C.select(".nv-bars").selectAll(".nv-bar").data(function(t){return t},function(t,e){return p(t,e)});_.exit().remove(),_.enter().append("rect").attr("x",0).attr("y",function(e,n){return t.utils.NaNtoZero(d(Math.max(0,h(e,n))))}).attr("height",function(e,n){return t.utils.NaNtoZero(Math.abs(d(h(e,n))-d(0)))}).attr("transform",function(t,n){return"translate("+(f(p(t,n))-k/e[0].values.length*.45)+",0)"}).on("mouseover",function(t,e){$&&(d3.select(this).classed("hover",!0),x.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")}))}).on("mouseout",function(t,e){$&&(d3.select(this).classed("hover",!1),x.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")}))}).on("mousemove",function(t,e){$&&x.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){$&&(x.elementClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation())}).on("dblclick",function(t,e){$&&(x.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation())}),_.attr("fill",function(t,e){return b(t,e)}).attr("class",function(t,e,n){return(h(t,e)<0?"nv-bar negative":"nv-bar positive")+" nv-bar-"+n+"-"+e}).watchTransition(w,"bars").attr("transform",function(t,n){return"translate("+(f(p(t,n))-k/e[0].values.length*.45)+",0)"}).attr("width",k/e[0].values.length*.9),_.watchTransition(w,"bars").attr("y",function(e,n){var r=h(e,n)<0?d(0):d(0)-d(h(e,n))<1?d(0)-1:d(h(e,n));return t.utils.NaNtoZero(r)}).attr("height",function(e,n){return t.utils.NaNtoZero(Math.max(Math.abs(d(h(e,n))-d(0)),1))})}),w.renderEnd("historicalBar immediate"),e}var n,r,i,a,o={top:0,right:0,bottom:0,left:0},s=null,u=null,l=Math.floor(1e4*Math.random()),c=null,f=d3.scale.linear(),d=d3.scale.linear(),p=function(t){return t.x},h=function(t){return t.y},g=[],m=[0],v=!1,y=!0,b=t.utils.defaultColor(),x=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),$=!0,w=t.utils.renderWatch(x,0);return e.highlightPoint=function(t,e){c.select(".nv-bars .nv-bar-0-"+t).classed("hover",e)},e.clearHighlights=function(){c.select(".nv-bars .nv-bar.hover").classed("hover",!1)},e.dispatch=x,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return u},set:function(t){u=t}},forceX:{get:function(){return g},set:function(t){g=t}},forceY:{get:function(){return m},set:function(t){m=t}},padData:{get:function(){return v},set:function(t){v=t}},x:{get:function(){return p},set:function(t){p=t}},y:{get:function(){return h},set:function(t){h=t}},xScale:{get:function(){return f},set:function(t){f=t}},yScale:{get:function(){return d},set:function(t){d=t}},xDomain:{get:function(){return n},set:function(t){n=t}},yDomain:{get:function(){return r},set:function(t){r=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},clipEdge:{get:function(){return y},set:function(t){y=t}},id:{get:function(){return l},set:function(t){l=t}},interactive:{get:function(){return $},set:function(t){$=t}},margin:{get:function(){return o},set:function(t){o.top=void 0!==t.top?t.top:o.top,o.right=void 0!==t.right?t.right:o.right,o.bottom=void 0!==t.bottom?t.bottom:o.bottom,o.left=void 0!==t.left?t.left:o.left}},color:{get:function(){return b},set:function(e){b=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.historicalBarChart=function(e){"use strict";function n(e){return e.each(function(c){C.reset(),C.models(a),m&&C.models(o),v&&C.models(s);var w=d3.select(this),S=this;t.utils.initSVG(w);var A=t.utils.availableWidth(p,w,f),E=t.utils.availableHeight(h,w,f);if(n.update=function(){w.transition().duration(M).call(n)},n.container=this,x.disabled=c.map(function(t){return!!t.disabled}),!$){var D;$={};for(D in x)x[D]instanceof Array?$[D]=x[D].slice(0):$[D]=x[D]}if(!(c&&c.length&&c.filter(function(t){return t.values.length}).length))return t.utils.noData(n,w),n;w.selectAll(".nv-noData").remove(),r=a.xScale(),i=a.yScale();var _=w.selectAll("g.nv-wrap.nv-historicalBarChart").data([c]),T=_.enter().append("g").attr("class","nvd3 nv-wrap nv-historicalBarChart").append("g"),O=_.select("g");T.append("g").attr("class","nv-x nv-axis"),T.append("g").attr("class","nv-y nv-axis"),T.append("g").attr("class","nv-barsWrap"),T.append("g").attr("class","nv-legendWrap"),T.append("g").attr("class","nv-interactive"),g&&(u.width(A),O.select(".nv-legendWrap").datum(c).call(u),f.top!=u.height()&&(f.top=u.height(),E=t.utils.availableHeight(h,w,f)),_.select(".nv-legendWrap").attr("transform","translate(0,"+-f.top+")")),_.attr("transform","translate("+f.left+","+f.top+")"),y&&O.select(".nv-y.nv-axis").attr("transform","translate("+A+",0)"),b&&(l.width(A).height(E).margin({left:f.left,top:f.top}).svgContainer(w).xScale(r),_.select(".nv-interactive").call(l)),a.width(A).height(E).color(c.map(function(t,e){return t.color||d(t,e)}).filter(function(t,e){return!c[e].disabled}));var N=O.select(".nv-barsWrap").datum(c.filter(function(t){return!t.disabled}));N.transition().call(a),m&&(o.scale(r)._ticks(t.utils.calcTicksX(A/100,c)).tickSize(-E,0),O.select(".nv-x.nv-axis").attr("transform","translate(0,"+i.range()[0]+")"),O.select(".nv-x.nv-axis").transition().call(o)),v&&(s.scale(i)._ticks(t.utils.calcTicksY(E/36,c)).tickSize(-A,0),O.select(".nv-y.nv-axis").transition().call(s)),l.dispatch.on("elementMousemove",function(e){a.clearHighlights();var r,i,u,p=[];c.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(o,s){i=t.interactiveBisect(o.values,e.pointXValue,n.x()),a.highlightPoint(i,!0);var l=o.values[i];void 0!==l&&(void 0===r&&(r=l),void 0===u&&(u=n.xScale()(n.x()(l,i))),p.push({key:o.key,value:n.y()(l,i),color:d(o,o.seriesIndex),data:o.values[i]}))});var h=o.tickFormat()(n.x()(r,i));l.tooltip.position({left:u+f.left,top:e.mouseY+f.top}).chartContainer(S.parentNode).valueFormatter(function(t,e){return s.tickFormat()(t)}).data({value:h,index:i,series:p})(),l.renderGuideLine(u)}),l.dispatch.on("elementMouseout",function(t){k.tooltipHide(),a.clearHighlights()}),u.dispatch.on("legendClick",function(t,r){t.disabled=!t.disabled,c.filter(function(t){return!t.disabled}).length||c.map(function(t){return t.disabled=!1,_.selectAll(".nv-series").classed("disabled",!1),t}),x.disabled=c.map(function(t){return!!t.disabled}),k.stateChange(x),e.transition().call(n)}),u.dispatch.on("legendDblclick",function(t){c.forEach(function(t){t.disabled=!0}),t.disabled=!1,x.disabled=c.map(function(t){return!!t.disabled}),k.stateChange(x),n.update()}),k.on("changeState",function(t){"undefined"!=typeof t.disabled&&(c.forEach(function(e,n){e.disabled=t.disabled[n]}),x.disabled=t.disabled),n.update()})}),C.renderEnd("historicalBarChart immediate"),n}var r,i,a=e||t.models.historicalBar(),o=t.models.axis(),s=t.models.axis(),u=t.models.legend(),l=t.interactiveGuideline(),c=t.models.tooltip(),f={top:30,right:90,bottom:50,left:90},d=t.utils.defaultColor(),p=null,h=null,g=!1,m=!0,v=!0,y=!1,b=!1,x={},$=null,w=null,k=d3.dispatch("tooltipHide","stateChange","changeState","renderEnd"),M=250;o.orient("bottom").tickPadding(7),s.orient(y?"right":"left"),c.duration(0).headerEnabled(!1).valueFormatter(function(t,e){return s.tickFormat()(t,e)}).headerFormatter(function(t,e){return o.tickFormat()(t,e)});var C=t.utils.renderWatch(k,0);return a.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:n.x()(t.data),value:n.y()(t.data),color:t.color},c.data(t).hidden(!1)}),a.dispatch.on("elementMouseout.tooltip",function(t){c.hidden(!0)}),a.dispatch.on("elementMousemove.tooltip",function(t){c.position({top:d3.event.pageY,left:d3.event.pageX})()}),n.dispatch=k,n.bars=a,n.legend=u,n.xAxis=o,n.yAxis=s,n.interactiveLayer=l,n.tooltip=c,n.options=t.utils.optionsFunc.bind(n),n._options=Object.create({},{width:{get:function(){return p},set:function(t){p=t}},height:{get:function(){return h},set:function(t){h=t}},showLegend:{get:function(){return g},set:function(t){g=t}},showXAxis:{get:function(){return m},set:function(t){m=t}},showYAxis:{get:function(){return v},set:function(t){v=t}},defaultState:{get:function(){return $},set:function(t){$=t}},noData:{get:function(){return w},set:function(t){w=t}},tooltips:{get:function(){return c.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),c.enabled(!!e)}},tooltipContent:{get:function(){return c.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),c.contentGenerator(e)}},margin:{get:function(){return f},set:function(t){f.top=void 0!==t.top?t.top:f.top,f.right=void 0!==t.right?t.right:f.right,f.bottom=void 0!==t.bottom?t.bottom:f.bottom,f.left=void 0!==t.left?t.left:f.left}},color:{get:function(){return d},set:function(e){d=t.utils.getColor(e),u.color(d),a.color(d)}},duration:{get:function(){return M},set:function(t){M=t,C.reset(M),s.duration(M),o.duration(M)}},rightAlignYAxis:{get:function(){return y},set:function(t){y=t,s.orient(t?"right":"left")}},useInteractiveGuideline:{get:function(){return b},set:function(t){b=t,t===!0&&n.interactive(!1)}}}),t.utils.inheritOptions(n,a),t.utils.initOptions(n),n},t.models.ohlcBarChart=function(){var e=t.models.historicalBarChart(t.models.ohlcBar());return e.useInteractiveGuideline(!0),e.interactiveLayer.tooltip.contentGenerator(function(t){var n=t.series[0].data,r=n.open<n.close?"2ca02c":"d62728";return'<h3 style="color: #'+r+'">'+t.value+"</h3><table><tr><td>open:</td><td>"+e.yAxis.tickFormat()(n.open)+"</td></tr><tr><td>close:</td><td>"+e.yAxis.tickFormat()(n.close)+"</td></tr><tr><td>high</td><td>"+e.yAxis.tickFormat()(n.high)+"</td></tr><tr><td>low:</td><td>"+e.yAxis.tickFormat()(n.low)+"</td></tr></table>"}),e},t.models.candlestickBarChart=function(){var e=t.models.historicalBarChart(t.models.candlestickBar());return e.useInteractiveGuideline(!0),e.interactiveLayer.tooltip.contentGenerator(function(t){var n=t.series[0].data,r=n.open<n.close?"2ca02c":"d62728";return'<h3 style="color: #'+r+'">'+t.value+"</h3><table><tr><td>open:</td><td>"+e.yAxis.tickFormat()(n.open)+"</td></tr><tr><td>close:</td><td>"+e.yAxis.tickFormat()(n.close)+"</td></tr><tr><td>high</td><td>"+e.yAxis.tickFormat()(n.high)+"</td></tr><tr><td>low:</td><td>"+e.yAxis.tickFormat()(n.low)+"</td></tr></table>"}),e},t.models.legend=function(){"use strict";function e(g){function m(t,e){return"furious"!=h?"#000":d?t.disengaged?"#000":"#fff":d?void 0:(t.color||(t.color=o(t,e)),t.disabled?t.color:"#fff")}function v(t,e){return d&&"furious"==h&&t.disengaged?"#eee":t.color||o(t,e)}function y(t,e){return d&&"furious"==h?1:t.disabled?0:1}return g.each(function(e){var o=r-n.left-n.right,g=d3.select(this);t.utils.initSVG(g);var b=g.selectAll("g.nv-legend").data([e]),x=b.enter().append("g").attr("class","nvd3 nv-legend").append("g"),$=b.select("g");b.attr("transform","translate("+n.left+","+n.top+")");var w,k,M=$.selectAll(".nv-series").data(function(t){return"furious"!=h?t:t.filter(function(t){return d?!0:!t.disengaged})}),C=M.enter().append("g").attr("class","nv-series");switch(h){case"furious":k=23;break;case"classic":k=20}if("classic"==h)C.append("circle").style("stroke-width",2).attr("class","nv-legend-symbol").attr("r",5),w=M.select("circle");else if("furious"==h){C.append("rect").style("stroke-width",2).attr("class","nv-legend-symbol").attr("rx",3).attr("ry",3),w=M.select(".nv-legend-symbol"),C.append("g").attr("class","nv-check-box").property("innerHTML",'<path d="M0.5,5 L22.5,5 L22.5,26.5 L0.5,26.5 L0.5,5 Z" class="nv-box"></path><path d="M5.5,12.8618467 L11.9185089,19.2803556 L31,0.198864511" class="nv-check"></path>').attr("transform","translate(-10,-8)scale(0.5)");var S=M.select(".nv-check-box");S.each(function(t,e){d3.select(this).selectAll("path").attr("stroke",m(t,e))})}C.append("text").attr("text-anchor","start").attr("class","nv-legend-text").attr("dy",".32em").attr("dx","8");var A=M.select("text.nv-legend-text");M.on("mouseover",function(t,e){p.legendMouseover(t,e)}).on("mouseout",function(t,e){p.legendMouseout(t,e)}).on("click",function(t,e){p.legendClick(t,e);var n=M.data();if(c){if("classic"==h)f?(n.forEach(function(t){t.disabled=!0}),t.disabled=!1):(t.disabled=!t.disabled,n.every(function(t){return t.disabled})&&n.forEach(function(t){t.disabled=!1}));else if("furious"==h)if(d)t.disengaged=!t.disengaged,t.userDisabled=void 0==t.userDisabled?!!t.disabled:t.userDisabled,t.disabled=t.disengaged||t.userDisabled;else if(!d){t.disabled=!t.disabled,t.userDisabled=t.disabled;var r=n.filter(function(t){return!t.disengaged});r.every(function(t){return t.userDisabled})&&n.forEach(function(t){t.disabled=t.userDisabled=!1})}p.stateChange({disabled:n.map(function(t){return!!t.disabled}),disengaged:n.map(function(t){return!!t.disengaged})})}}).on("dblclick",function(t,e){if(("furious"!=h||!d)&&(p.legendDblclick(t,e),c)){var n=M.data();n.forEach(function(t){t.disabled=!0,"furious"==h&&(t.userDisabled=t.disabled)}),t.disabled=!1,"furious"==h&&(t.userDisabled=t.disabled),p.stateChange({disabled:n.map(function(t){return!!t.disabled})})}}),M.classed("nv-disabled",function(t){return t.userDisabled}),M.exit().remove(),A.attr("fill",m).text(a);var E=0;if(s){var D=[];M.each(function(e,n){var r,i=d3.select(this).select("text");try{if(r=i.node().getComputedTextLength(),0>=r)throw Error()}catch(a){r=t.utils.calcApproxTextWidth(i)}D.push(r+u)});var _=0,T=[];for(E=0;o>E&&_<D.length;)T[_]=D[_],E+=D[_++];for(0===_&&(_=1);E>o&&_>1;){T=[],_--;for(var O=0;O<D.length;O++)D[O]>(T[O%_]||0)&&(T[O%_]=D[O]);E=T.reduce(function(t,e,n,r){return t+e})}for(var N=[],P=0,F=0;_>P;P++)N[P]=F,F+=T[P];M.attr("transform",function(t,e){return"translate("+N[e%_]+","+(5+Math.floor(e/_)*k)+")"}),l?$.attr("transform","translate("+(r-n.right-E)+","+n.top+")"):$.attr("transform","translate(0,"+n.top+")"),i=n.top+n.bottom+Math.ceil(D.length/_)*k}else{var j,I=5,L=5,q=0;M.attr("transform",function(t,e){var i=d3.select(this).select("text").node().getComputedTextLength()+u;return j=L,r<n.left+n.right+j+i&&(L=j=5,I+=k),L+=i,L>q&&(q=L),j+q>E&&(E=j+q),"translate("+j+","+I+")"}),$.attr("transform","translate("+(r-n.right-q)+","+n.top+")"),i=n.top+n.bottom+I+15}if("furious"==h){w.attr("width",function(t,e){return A[0][e].getComputedTextLength()+27}).attr("height",18).attr("y",-9).attr("x",-15),x.insert("rect",":first-child").attr("class","nv-legend-bg").attr("fill","#eee").attr("opacity",0);var H=$.select(".nv-legend-bg");H.transition().duration(300).attr("x",-k).attr("width",E+k-12).attr("height",i+10).attr("y",-n.top-10).attr("opacity",d?1:0)}w.style("fill",v).style("fill-opacity",y).style("stroke",v)}),e}var n={top:5,right:0,bottom:5,left:0},r=400,i=20,a=function(t){return t.key},o=t.utils.getColor(),s=!0,u=32,l=!0,c=!0,f=!1,d=!1,p=d3.dispatch("legendClick","legendDblclick","legendMouseover","legendMouseout","stateChange"),h="classic";return e.dispatch=p,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return r},set:function(t){r=t}},height:{get:function(){return i},set:function(t){i=t}},key:{get:function(){return a},set:function(t){a=t}},align:{get:function(){return s},set:function(t){s=t}},rightAlign:{get:function(){return l},set:function(t){l=t}},padding:{get:function(){return u},set:function(t){u=t}},updateState:{get:function(){return c},set:function(t){c=t}},radioButtonMode:{get:function(){return f},set:function(t){f=t}},expanded:{get:function(){return d},set:function(t){d=t}},vers:{get:function(){return h},set:function(t){h=t}},margin:{get:function(){return n},set:function(t){n.top=void 0!==t.top?t.top:n.top,n.right=void 0!==t.right?t.right:n.right,n.bottom=void 0!==t.bottom?t.bottom:n.bottom,n.left=void 0!==t.left?t.left:n.left}},color:{get:function(){return o},set:function(e){o=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.line=function(){"use strict";function e(v){return $.reset(),$.models(i),v.each(function(e){u=d3.select(this);var v=t.utils.availableWidth(o,u,a),y=t.utils.availableHeight(s,u,a);t.utils.initSVG(u),n=i.xScale(),r=i.yScale(),b=b||n,x=x||r;var w=u.selectAll("g.nv-wrap.nv-line").data([e]),k=w.enter().append("g").attr("class","nvd3 nv-wrap nv-line"),M=k.append("defs"),C=k.append("g"),S=w.select("g");C.append("g").attr("class","nv-groups"),C.append("g").attr("class","nv-scatterWrap"),w.attr("transform","translate("+a.left+","+a.top+")"),i.width(v).height(y);var A=w.select(".nv-scatterWrap");A.call(i),M.append("clipPath").attr("id","nv-edge-clip-"+i.id()).append("rect"),w.select("#nv-edge-clip-"+i.id()+" rect").attr("width",v).attr("height",y>0?y:0),S.attr("clip-path",g?"url(#nv-edge-clip-"+i.id()+")":""),A.attr("clip-path",g?"url(#nv-edge-clip-"+i.id()+")":"");var E=w.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});E.enter().append("g").style("stroke-opacity",1e-6).style("stroke-width",function(t){return t.strokeWidth||l}).style("fill-opacity",1e-6),E.exit().remove(),E.attr("class",function(t,e){return(t.classed||"")+" nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return c(t,e)}).style("stroke",function(t,e){return c(t,e)}),E.watchTransition($,"line: groups").style("stroke-opacity",1).style("fill-opacity",function(t){return t.fillOpacity||.5});var D=E.selectAll("path.nv-area").data(function(t){return h(t)?[t]:[]});D.enter().append("path").attr("class","nv-area").attr("d",function(e){return d3.svg.area().interpolate(m).defined(p).x(function(e,n){return t.utils.NaNtoZero(b(f(e,n)))}).y0(function(e,n){return t.utils.NaNtoZero(x(d(e,n)))}).y1(function(t,e){return x(r.domain()[0]<=0?r.domain()[1]>=0?0:r.domain()[1]:r.domain()[0])}).apply(this,[e.values])}),E.exit().selectAll("path.nv-area").remove(),D.watchTransition($,"line: areaPaths").attr("d",function(e){return d3.svg.area().interpolate(m).defined(p).x(function(e,r){return t.utils.NaNtoZero(n(f(e,r)))}).y0(function(e,n){return t.utils.NaNtoZero(r(d(e,n)))}).y1(function(t,e){return r(r.domain()[0]<=0?r.domain()[1]>=0?0:r.domain()[1]:r.domain()[0])}).apply(this,[e.values])});var _=E.selectAll("path.nv-line").data(function(t){return[t.values]});_.enter().append("path").attr("class","nv-line").attr("d",d3.svg.line().interpolate(m).defined(p).x(function(e,n){return t.utils.NaNtoZero(b(f(e,n)))}).y(function(e,n){return t.utils.NaNtoZero(x(d(e,n)))})),_.watchTransition($,"line: linePaths").attr("d",d3.svg.line().interpolate(m).defined(p).x(function(e,r){return t.utils.NaNtoZero(n(f(e,r)))}).y(function(e,n){return t.utils.NaNtoZero(r(d(e,n)))})),b=n.copy(),x=r.copy()}),$.renderEnd("line immediate"),e}var n,r,i=t.models.scatter(),a={top:0,right:0,bottom:0,left:0},o=960,s=500,u=null,l=1.5,c=t.utils.defaultColor(),f=function(t){return t.x},d=function(t){return t.y},p=function(t,e){return!isNaN(d(t,e))&&null!==d(t,e)},h=function(t){return t.area},g=!1,m="linear",v=250,y=d3.dispatch("elementClick","elementMouseover","elementMouseout","renderEnd");i.pointSize(16).pointDomain([16,256]);var b,x,$=t.utils.renderWatch(y,v);return e.dispatch=y,e.scatter=i,i.dispatch.on("elementClick",function(){y.elementClick.apply(this,arguments)}),i.dispatch.on("elementMouseover",function(){y.elementMouseover.apply(this,arguments)}),i.dispatch.on("elementMouseout",function(){y.elementMouseout.apply(this,arguments)}),e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},defined:{get:function(){return p},set:function(t){p=t}},interpolate:{get:function(){return m},set:function(t){m=t}},clipEdge:{get:function(){return g},set:function(t){g=t}},margin:{get:function(){return a},set:function(t){a.top=void 0!==t.top?t.top:a.top,a.right=void 0!==t.right?t.right:a.right,a.bottom=void 0!==t.bottom?t.bottom:a.bottom,a.left=void 0!==t.left?t.left:a.left}},duration:{get:function(){return v},set:function(t){v=t,$.reset(v),i.duration(v)}},isArea:{get:function(){return h},set:function(t){h=d3.functor(t)}},x:{get:function(){return f},set:function(t){f=t,i.x(t)}},y:{get:function(){return d},set:function(t){d=t,i.y(t)}},color:{get:function(){return c},set:function(e){c=t.utils.getColor(e),i.color(c)}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.lineChart=function(){"use strict";function e(l){return M.reset(),M.models(i),g&&M.models(a),m&&M.models(o),l.each(function(l){var $=d3.select(this),M=this;t.utils.initSVG($);var A=t.utils.availableWidth(d,$,c),E=t.utils.availableHeight(p,$,c);if(e.update=function(){0===k?$.call(e):$.transition().duration(k).call(e)},e.container=this,b.setter(S(l),e.update).getter(C(l)).update(),b.disabled=l.map(function(t){return!!t.disabled}),!x){var D;x={};for(D in b)b[D]instanceof Array?x[D]=b[D].slice(0):x[D]=b[D]}if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return t.utils.noData(e,$),e;$.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale();var _=$.selectAll("g.nv-wrap.nv-lineChart").data([l]),T=_.enter().append("g").attr("class","nvd3 nv-wrap nv-lineChart").append("g"),O=_.select("g");T.append("rect").style("opacity",0),T.append("g").attr("class","nv-x nv-axis"),T.append("g").attr("class","nv-y nv-axis"),T.append("g").attr("class","nv-linesWrap"),T.append("g").attr("class","nv-legendWrap"),T.append("g").attr("class","nv-interactive"),O.select("rect").attr("width",A).attr("height",E>0?E:0),h&&(s.width(A),O.select(".nv-legendWrap").datum(l).call(s),c.top!=s.height()&&(c.top=s.height(),E=t.utils.availableHeight(p,$,c)),_.select(".nv-legendWrap").attr("transform","translate(0,"+-c.top+")")),_.attr("transform","translate("+c.left+","+c.top+")"),v&&O.select(".nv-y.nv-axis").attr("transform","translate("+A+",0)"),y&&(u.width(A).height(E).margin({left:c.left,top:c.top}).svgContainer($).xScale(n),_.select(".nv-interactive").call(u)),i.width(A).height(E).color(l.map(function(t,e){return t.color||f(t,e)}).filter(function(t,e){return!l[e].disabled}));var N=O.select(".nv-linesWrap").datum(l.filter(function(t){return!t.disabled}));N.call(i),g&&(a.scale(n)._ticks(t.utils.calcTicksX(A/100,l)).tickSize(-E,0),O.select(".nv-x.nv-axis").attr("transform","translate(0,"+r.range()[0]+")"),O.select(".nv-x.nv-axis").call(a)),m&&(o.scale(r)._ticks(t.utils.calcTicksY(E/36,l)).tickSize(-A,0),O.select(".nv-y.nv-axis").call(o)),s.dispatch.on("stateChange",function(t){for(var n in t)b[n]=t[n];w.stateChange(b),e.update()}),u.dispatch.on("elementMousemove",function(n){i.clearHighlights();var r,s,d,p=[];if(l.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(a,o){s=t.interactiveBisect(a.values,n.pointXValue,e.x());var u=a.values[s],l=e.y()(u,s);null!=l&&i.highlightPoint(o,s,!0),void 0!==u&&(void 0===r&&(r=u),void 0===d&&(d=e.xScale()(e.x()(u,s))),p.push({key:a.key,value:l,color:f(a,a.seriesIndex)}))}),p.length>2){var h=e.yScale().invert(n.mouseY),g=Math.abs(e.yScale().domain()[0]-e.yScale().domain()[1]),m=.03*g,v=t.nearestValueIndex(p.map(function(t){return t.value}),h,m);null!==v&&(p[v].highlight=!0)}var y=a.tickFormat()(e.x()(r,s));u.tooltip.position({left:n.mouseX+c.left,top:n.mouseY+c.top}).chartContainer(M.parentNode).valueFormatter(function(t,e){return null==t?"N/A":o.tickFormat()(t)}).data({value:y,index:s,series:p})(),u.renderGuideLine(d)}),u.dispatch.on("elementClick",function(n){var r,a=[];l.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(i){var o=t.interactiveBisect(i.values,n.pointXValue,e.x()),s=i.values[o];if("undefined"!=typeof s){"undefined"==typeof r&&(r=e.xScale()(e.x()(s,o)));var u=e.yScale()(e.y()(s,o));a.push({point:s,pointIndex:o,pos:[r,u],seriesIndex:i.seriesIndex,series:i})}}),i.dispatch.elementClick(a)}),u.dispatch.on("elementMouseout",function(t){i.clearHighlights()}),w.on("changeState",function(t){"undefined"!=typeof t.disabled&&l.length===t.disabled.length&&(l.forEach(function(e,n){e.disabled=t.disabled[n]}),b.disabled=t.disabled),e.update()})}),M.renderEnd("lineChart immediate"),e}var n,r,i=t.models.line(),a=t.models.axis(),o=t.models.axis(),s=t.models.legend(),u=t.interactiveGuideline(),l=t.models.tooltip(),c={top:30,right:20,bottom:50,left:60},f=t.utils.defaultColor(),d=null,p=null,h=!0,g=!0,m=!0,v=!1,y=!1,b=t.utils.state(),x=null,$=null,w=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd"),k=250;a.orient("bottom").tickPadding(7),o.orient(v?"right":"left"),l.valueFormatter(function(t,e){return o.tickFormat()(t,e)}).headerFormatter(function(t,e){return a.tickFormat()(t,e)});var M=t.utils.renderWatch(w,k),C=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},S=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};return i.dispatch.on("elementMouseover.tooltip",function(t){l.data(t).position(t.pos).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(t){l.hidden(!0)}),e.dispatch=w,e.lines=i,e.legend=s,e.xAxis=a,e.yAxis=o,e.interactiveLayer=u,e.tooltip=l,e.dispatch=w,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return d},set:function(t){d=t}},height:{get:function(){return p},set:function(t){p=t}},showLegend:{get:function(){return h},set:function(t){h=t}},showXAxis:{get:function(){return g},set:function(t){g=t}},showYAxis:{get:function(){return m},set:function(t){m=t}},defaultState:{get:function(){return x},set:function(t){x=t}},noData:{
|
||
get:function(){return $},set:function(t){$=t}},tooltips:{get:function(){return l.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),l.enabled(!!e)}},tooltipContent:{get:function(){return l.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),l.contentGenerator(e)}},margin:{get:function(){return c},set:function(t){c.top=void 0!==t.top?t.top:c.top,c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},duration:{get:function(){return k},set:function(t){k=t,M.reset(k),i.duration(k),a.duration(k),o.duration(k)}},color:{get:function(){return f},set:function(e){f=t.utils.getColor(e),s.color(f),i.color(f)}},rightAlignYAxis:{get:function(){return v},set:function(t){v=t,o.orient(v?"right":"left")}},useInteractiveGuideline:{get:function(){return y},set:function(t){y=t,y&&(i.interactive(!1),i.useVoronoi(!1))}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.linePlusBarChart=function(){"use strict";function e($){return $.each(function($){function F(t){var e=+("e"==t),n=e?1:-1,r=X/3;return"M"+.5*n+","+r+"A6,6 0 0 "+e+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+e+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}function z(){x.empty()||x.extent(P),ct.data([x.empty()?i.domain():P]).each(function(t,e){var n=i(t[0])-i.range()[0],r=i.range()[1]-i(t[1]);d3.select(this).select(".left").attr("width",0>n?0:n),d3.select(this).select(".right").attr("x",i(t[1])).attr("width",0>r?0:r)})}function U(){P=x.empty()?null:x.extent(),n=x.empty()?i.domain():x.extent(),j.brush({extent:n,brush:x}),z(),f.width(B).height(G).color($.map(function(t,e){return t.color||E(t,e)}).filter(function(t,e){return!$[e].disabled&&$[e].bar})),l.width(B).height(G).color($.map(function(t,e){return t.color||E(t,e)}).filter(function(t,e){return!$[e].disabled&&!$[e].bar}));var e=rt.select(".nv-focus .nv-barsWrap").datum(K.length?K.map(function(t,e){return{key:t.key,values:t.values.filter(function(t,e){return f.x()(t,e)>=n[0]&&f.x()(t,e)<=n[1]})}}):[{values:[]}]),s=rt.select(".nv-focus .nv-linesWrap").datum(J[0].disabled?[{values:[]}]:J.map(function(t,e){return{area:t.area,fillOpacity:t.fillOpacity,key:t.key,values:t.values.filter(function(t,e){return l.x()(t,e)>=n[0]&&l.x()(t,e)<=n[1]})}}));r=K.length?f.xScale():l.xScale(),p.scale(r)._ticks(t.utils.calcTicksX(B/100,$)).tickSize(-G,0),p.domain([Math.ceil(n[0]),Math.floor(n[1])]),rt.select(".nv-x.nv-axis").transition().duration(I).call(p),e.transition().duration(I).call(f),s.transition().duration(I).call(l),rt.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+a.range()[0]+")"),g.scale(a)._ticks(t.utils.calcTicksY(G/36,$)).tickSize(-B,0),m.scale(o)._ticks(t.utils.calcTicksY(G/36,$)).tickSize(K.length?0:-B,0),rt.select(".nv-focus .nv-y1.nv-axis").style("opacity",K.length?1:0),rt.select(".nv-focus .nv-y2.nv-axis").style("opacity",J.length&&!J[0].disabled?1:0).attr("transform","translate("+r.range()[1]+",0)"),rt.select(".nv-focus .nv-y1.nv-axis").transition().duration(I).call(g),rt.select(".nv-focus .nv-y2.nv-axis").transition().duration(I).call(m)}var Y=d3.select(this);t.utils.initSVG(Y);var B=t.utils.availableWidth(M,Y,w),G=t.utils.availableHeight(C,Y,w)-(_?N:0),X=N-k.top-k.bottom;if(e.update=function(){Y.transition().duration(I).call(e)},e.container=this,L.setter(W($),e.update).getter(R($)).update(),L.disabled=$.map(function(t){return!!t.disabled}),!q){var Z;q={};for(Z in L)L[Z]instanceof Array?q[Z]=L[Z].slice(0):q[Z]=L[Z]}if(!($&&$.length&&$.filter(function(t){return t.values.length}).length))return t.utils.noData(e,Y),e;Y.selectAll(".nv-noData").remove();var K=$.filter(function(t){return!t.disabled&&t.bar}),J=$.filter(function(t){return!t.bar});r=f.xScale(),i=h.scale(),a=f.yScale(),o=l.yScale(),s=d.yScale(),u=c.yScale();var Q=$.filter(function(t){return!t.disabled&&t.bar}).map(function(t){return t.values.map(function(t,e){return{x:S(t,e),y:A(t,e)}})}),tt=$.filter(function(t){return!t.disabled&&!t.bar}).map(function(t){return t.values.map(function(t,e){return{x:S(t,e),y:A(t,e)}})});r.range([0,B]),i.domain(d3.extent(d3.merge(Q.concat(tt)),function(t){return t.x})).range([0,B]);var et=Y.selectAll("g.nv-wrap.nv-linePlusBar").data([$]),nt=et.enter().append("g").attr("class","nvd3 nv-wrap nv-linePlusBar").append("g"),rt=et.select("g");nt.append("g").attr("class","nv-legendWrap");var it=nt.append("g").attr("class","nv-focus");it.append("g").attr("class","nv-x nv-axis"),it.append("g").attr("class","nv-y1 nv-axis"),it.append("g").attr("class","nv-y2 nv-axis"),it.append("g").attr("class","nv-barsWrap"),it.append("g").attr("class","nv-linesWrap");var at=nt.append("g").attr("class","nv-context");if(at.append("g").attr("class","nv-x nv-axis"),at.append("g").attr("class","nv-y1 nv-axis"),at.append("g").attr("class","nv-y2 nv-axis"),at.append("g").attr("class","nv-barsWrap"),at.append("g").attr("class","nv-linesWrap"),at.append("g").attr("class","nv-brushBackground"),at.append("g").attr("class","nv-x nv-brush"),D){var ot=b.align()?B/2:B,st=b.align()?ot:0;b.width(ot),rt.select(".nv-legendWrap").datum($.map(function(t){return t.originalKey=void 0===t.originalKey?t.key:t.originalKey,t.key=t.originalKey+(t.bar?H:V),t})).call(b),w.top!=b.height()&&(w.top=b.height(),G=t.utils.availableHeight(C,Y,w)-N),rt.select(".nv-legendWrap").attr("transform","translate("+st+","+-w.top+")")}et.attr("transform","translate("+w.left+","+w.top+")"),rt.select(".nv-context").style("display",_?"initial":"none"),d.width(B).height(X).color($.map(function(t,e){return t.color||E(t,e)}).filter(function(t,e){return!$[e].disabled&&$[e].bar})),c.width(B).height(X).color($.map(function(t,e){return t.color||E(t,e)}).filter(function(t,e){return!$[e].disabled&&!$[e].bar}));var ut=rt.select(".nv-context .nv-barsWrap").datum(K.length?K:[{values:[]}]),lt=rt.select(".nv-context .nv-linesWrap").datum(J[0].disabled?[{values:[]}]:J);rt.select(".nv-context").attr("transform","translate(0,"+(G+w.bottom+k.top)+")"),ut.transition().call(d),lt.transition().call(c),O&&(h._ticks(t.utils.calcTicksX(B/100,$)).tickSize(-X,0),rt.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+s.range()[0]+")"),rt.select(".nv-context .nv-x.nv-axis").transition().call(h)),T&&(v.scale(s)._ticks(X/36).tickSize(-B,0),y.scale(u)._ticks(X/36).tickSize(K.length?0:-B,0),rt.select(".nv-context .nv-y3.nv-axis").style("opacity",K.length?1:0).attr("transform","translate(0,"+i.range()[0]+")"),rt.select(".nv-context .nv-y2.nv-axis").style("opacity",J.length?1:0).attr("transform","translate("+i.range()[1]+",0)"),rt.select(".nv-context .nv-y1.nv-axis").transition().call(v),rt.select(".nv-context .nv-y2.nv-axis").transition().call(y)),x.x(i).on("brush",U),P&&x.extent(P);var ct=rt.select(".nv-brushBackground").selectAll("g").data([P||x.extent()]),ft=ct.enter().append("g");ft.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",X),ft.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",X);var dt=rt.select(".nv-x.nv-brush").call(x);dt.selectAll("rect").attr("height",X),dt.selectAll(".resize").append("path").attr("d",F),b.dispatch.on("stateChange",function(t){for(var n in t)L[n]=t[n];j.stateChange(L),e.update()}),j.on("changeState",function(t){"undefined"!=typeof t.disabled&&($.forEach(function(e,n){e.disabled=t.disabled[n]}),L.disabled=t.disabled),e.update()}),U()}),e}var n,r,i,a,o,s,u,l=t.models.line(),c=t.models.line(),f=t.models.historicalBar(),d=t.models.historicalBar(),p=t.models.axis(),h=t.models.axis(),g=t.models.axis(),m=t.models.axis(),v=t.models.axis(),y=t.models.axis(),b=t.models.legend(),x=d3.svg.brush(),$=t.models.tooltip(),w={top:30,right:30,bottom:30,left:60},k={top:0,right:30,bottom:20,left:60},M=null,C=null,S=function(t){return t.x},A=function(t){return t.y},E=t.utils.defaultColor(),D=!0,_=!0,T=!1,O=!0,N=50,P=null,F=null,j=d3.dispatch("brush","stateChange","changeState"),I=0,L=t.utils.state(),q=null,H=" (left axis)",V=" (right axis)";l.clipEdge(!0),c.interactive(!1),p.orient("bottom").tickPadding(5),g.orient("left"),m.orient("right"),h.orient("bottom").tickPadding(5),v.orient("left"),y.orient("right"),$.headerEnabled(!0).headerFormatter(function(t,e){return p.tickFormat()(t,e)});var R=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},W=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};return l.dispatch.on("elementMouseover.tooltip",function(t){$.duration(100).valueFormatter(function(t,e){return m.tickFormat()(t,e)}).data(t).position(t.pos).hidden(!1)}),l.dispatch.on("elementMouseout.tooltip",function(t){$.hidden(!0)}),f.dispatch.on("elementMouseover.tooltip",function(t){t.value=e.x()(t.data),t.series={value:e.y()(t.data),color:t.color},$.duration(0).valueFormatter(function(t,e){return g.tickFormat()(t,e)}).data(t).hidden(!1)}),f.dispatch.on("elementMouseout.tooltip",function(t){$.hidden(!0)}),f.dispatch.on("elementMousemove.tooltip",function(t){$.position({top:d3.event.pageY,left:d3.event.pageX})()}),e.dispatch=j,e.legend=b,e.lines=l,e.lines2=c,e.bars=f,e.bars2=d,e.xAxis=p,e.x2Axis=h,e.y1Axis=g,e.y2Axis=m,e.y3Axis=v,e.y4Axis=y,e.tooltip=$,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return M},set:function(t){M=t}},height:{get:function(){return C},set:function(t){C=t}},showLegend:{get:function(){return D},set:function(t){D=t}},brushExtent:{get:function(){return P},set:function(t){P=t}},noData:{get:function(){return F},set:function(t){F=t}},focusEnable:{get:function(){return _},set:function(t){_=t}},focusHeight:{get:function(){return N},set:function(t){N=t}},focusShowAxisX:{get:function(){return O},set:function(t){O=t}},focusShowAxisY:{get:function(){return T},set:function(t){T=t}},legendLeftAxisHint:{get:function(){return H},set:function(t){H=t}},legendRightAxisHint:{get:function(){return V},set:function(t){V=t}},tooltips:{get:function(){return $.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),$.enabled(!!e)}},tooltipContent:{get:function(){return $.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),$.contentGenerator(e)}},margin:{get:function(){return w},set:function(t){w.top=void 0!==t.top?t.top:w.top,w.right=void 0!==t.right?t.right:w.right,w.bottom=void 0!==t.bottom?t.bottom:w.bottom,w.left=void 0!==t.left?t.left:w.left}},duration:{get:function(){return I},set:function(t){I=t}},color:{get:function(){return E},set:function(e){E=t.utils.getColor(e),b.color(E)}},x:{get:function(){return S},set:function(t){S=t,l.x(t),c.x(t),f.x(t),d.x(t)}},y:{get:function(){return A},set:function(t){A=t,l.y(t),c.y(t),f.y(t),d.y(t)}}}),t.utils.inheritOptions(e,l),t.utils.initOptions(e),e},t.models.lineWithFocusChart=function(){"use strict";function e(h){return h.each(function(h){function C(t){var e=+("e"==t),n=e?1:-1,r=L/3;return"M"+.5*n+","+r+"A6,6 0 0 "+e+" "+6.5*n+","+(r+6)+"V"+(2*r-6)+"A6,6 0 0 "+e+" "+.5*n+","+2*r+"ZM"+2.5*n+","+(r+8)+"V"+(2*r-8)+"M"+4.5*n+","+(r+8)+"V"+(2*r-8)}function O(){p.empty()||p.extent(M),Y.data([p.empty()?i.domain():M]).each(function(t,e){var r=i(t[0])-n.range()[0],a=j-i(t[1]);d3.select(this).select(".left").attr("width",0>r?0:r),d3.select(this).select(".right").attr("x",i(t[1])).attr("width",0>a?0:a)})}function N(){M=p.empty()?null:p.extent();var t=p.empty()?i.domain():p.extent();if(!(Math.abs(t[0]-t[1])<=1)){S.brush({extent:t,brush:p}),O();var e=R.select(".nv-focus .nv-linesWrap").datum(h.filter(function(t){return!t.disabled}).map(function(e,n){return{key:e.key,area:e.area,values:e.values.filter(function(e,n){return o.x()(e,n)>=t[0]&&o.x()(e,n)<=t[1]})}}));e.transition().duration(A).call(o),R.select(".nv-focus .nv-x.nv-axis").transition().duration(A).call(u),R.select(".nv-focus .nv-y.nv-axis").transition().duration(A).call(l)}}var P=d3.select(this),F=this;t.utils.initSVG(P);var j=t.utils.availableWidth(b,P,m),I=t.utils.availableHeight(x,P,m)-$,L=$-v.top-v.bottom;if(e.update=function(){P.transition().duration(A).call(e)},e.container=this,E.setter(T(h),e.update).getter(_(h)).update(),E.disabled=h.map(function(t){return!!t.disabled}),!D){var q;D={};for(q in E)E[q]instanceof Array?D[q]=E[q].slice(0):D[q]=E[q]}if(!(h&&h.length&&h.filter(function(t){return t.values.length}).length))return t.utils.noData(e,P),e;P.selectAll(".nv-noData").remove(),n=o.xScale(),r=o.yScale(),i=s.xScale(),a=s.yScale();var H=P.selectAll("g.nv-wrap.nv-lineWithFocusChart").data([h]),V=H.enter().append("g").attr("class","nvd3 nv-wrap nv-lineWithFocusChart").append("g"),R=H.select("g");V.append("g").attr("class","nv-legendWrap");var W=V.append("g").attr("class","nv-focus");W.append("g").attr("class","nv-x nv-axis"),W.append("g").attr("class","nv-y nv-axis"),W.append("g").attr("class","nv-linesWrap"),W.append("g").attr("class","nv-interactive");var z=V.append("g").attr("class","nv-context");z.append("g").attr("class","nv-x nv-axis"),z.append("g").attr("class","nv-y nv-axis"),z.append("g").attr("class","nv-linesWrap"),z.append("g").attr("class","nv-brushBackground"),z.append("g").attr("class","nv-x nv-brush"),k&&(d.width(j),R.select(".nv-legendWrap").datum(h).call(d),m.top!=d.height()&&(m.top=d.height(),I=t.utils.availableHeight(x,P,m)-$),R.select(".nv-legendWrap").attr("transform","translate(0,"+-m.top+")")),H.attr("transform","translate("+m.left+","+m.top+")"),w&&(g.width(j).height(I).margin({left:m.left,top:m.top}).svgContainer(P).xScale(n),H.select(".nv-interactive").call(g)),o.width(j).height(I).color(h.map(function(t,e){return t.color||y(t,e)}).filter(function(t,e){return!h[e].disabled})),s.defined(o.defined()).width(j).height(L).color(h.map(function(t,e){return t.color||y(t,e)}).filter(function(t,e){return!h[e].disabled})),R.select(".nv-context").attr("transform","translate(0,"+(I+m.bottom+v.top)+")");var U=R.select(".nv-context .nv-linesWrap").datum(h.filter(function(t){return!t.disabled}));d3.transition(U).call(s),u.scale(n)._ticks(t.utils.calcTicksX(j/100,h)).tickSize(-I,0),l.scale(r)._ticks(t.utils.calcTicksY(I/36,h)).tickSize(-j,0),R.select(".nv-focus .nv-x.nv-axis").attr("transform","translate(0,"+I+")"),p.x(i).on("brush",function(){N()}),M&&p.extent(M);var Y=R.select(".nv-brushBackground").selectAll("g").data([M||p.extent()]),B=Y.enter().append("g");B.append("rect").attr("class","left").attr("x",0).attr("y",0).attr("height",L),B.append("rect").attr("class","right").attr("x",0).attr("y",0).attr("height",L);var G=R.select(".nv-x.nv-brush").call(p);G.selectAll("rect").attr("height",L),G.selectAll(".resize").append("path").attr("d",C),N(),c.scale(i)._ticks(t.utils.calcTicksX(j/100,h)).tickSize(-L,0),R.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+a.range()[0]+")"),d3.transition(R.select(".nv-context .nv-x.nv-axis")).call(c),f.scale(a)._ticks(t.utils.calcTicksY(L/36,h)).tickSize(-j,0),d3.transition(R.select(".nv-context .nv-y.nv-axis")).call(f),R.select(".nv-context .nv-x.nv-axis").attr("transform","translate(0,"+a.range()[0]+")"),d.dispatch.on("stateChange",function(t){for(var n in t)E[n]=t[n];S.stateChange(E),e.update()}),g.dispatch.on("elementMousemove",function(n){o.clearHighlights();var r,a,s,c=[];if(h.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(u,l){var f=p.empty()?i.domain():p.extent(),d=u.values.filter(function(t,e){return o.x()(t,e)>=f[0]&&o.x()(t,e)<=f[1]});a=t.interactiveBisect(d,n.pointXValue,o.x());var h=d[a],g=e.y()(h,a);null!=g&&o.highlightPoint(l,a,!0),void 0!==h&&(void 0===r&&(r=h),void 0===s&&(s=e.xScale()(e.x()(h,a))),c.push({key:u.key,value:e.y()(h,a),color:y(u,u.seriesIndex)}))}),c.length>2){var f=e.yScale().invert(n.mouseY),d=Math.abs(e.yScale().domain()[0]-e.yScale().domain()[1]),v=.03*d,b=t.nearestValueIndex(c.map(function(t){return t.value}),f,v);null!==b&&(c[b].highlight=!0)}var x=u.tickFormat()(e.x()(r,a));g.tooltip.position({left:n.mouseX+m.left,top:n.mouseY+m.top}).chartContainer(F.parentNode).valueFormatter(function(t,e){return null==t?"N/A":l.tickFormat()(t)}).data({value:x,index:a,series:c})(),g.renderGuideLine(s)}),g.dispatch.on("elementMouseout",function(t){o.clearHighlights()}),S.on("changeState",function(t){"undefined"!=typeof t.disabled&&h.forEach(function(e,n){e.disabled=t.disabled[n]}),e.update()})}),e}var n,r,i,a,o=t.models.line(),s=t.models.line(),u=t.models.axis(),l=t.models.axis(),c=t.models.axis(),f=t.models.axis(),d=t.models.legend(),p=d3.svg.brush(),h=t.models.tooltip(),g=t.interactiveGuideline(),m={top:30,right:30,bottom:30,left:60},v={top:0,right:30,bottom:20,left:60},y=t.utils.defaultColor(),b=null,x=null,$=50,w=!1,k=!0,M=null,C=null,S=d3.dispatch("brush","stateChange","changeState"),A=250,E=t.utils.state(),D=null;o.clipEdge(!0).duration(0),s.interactive(!1),u.orient("bottom").tickPadding(5),l.orient("left"),c.orient("bottom").tickPadding(5),f.orient("left"),h.valueFormatter(function(t,e){return l.tickFormat()(t,e)}).headerFormatter(function(t,e){return u.tickFormat()(t,e)});var _=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},T=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};return o.dispatch.on("elementMouseover.tooltip",function(t){h.data(t).position(t.pos).hidden(!1)}),o.dispatch.on("elementMouseout.tooltip",function(t){h.hidden(!0)}),e.dispatch=S,e.legend=d,e.lines=o,e.lines2=s,e.xAxis=u,e.yAxis=l,e.x2Axis=c,e.y2Axis=f,e.interactiveLayer=g,e.tooltip=h,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return b},set:function(t){b=t}},height:{get:function(){return x},set:function(t){x=t}},focusHeight:{get:function(){return $},set:function(t){$=t}},showLegend:{get:function(){return k},set:function(t){k=t}},brushExtent:{get:function(){return M},set:function(t){M=t}},defaultState:{get:function(){return D},set:function(t){D=t}},noData:{get:function(){return C},set:function(t){C=t}},tooltips:{get:function(){return h.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),h.enabled(!!e)}},tooltipContent:{get:function(){return h.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),h.contentGenerator(e)}},margin:{get:function(){return m},set:function(t){m.top=void 0!==t.top?t.top:m.top,m.right=void 0!==t.right?t.right:m.right,m.bottom=void 0!==t.bottom?t.bottom:m.bottom,m.left=void 0!==t.left?t.left:m.left}},color:{get:function(){return y},set:function(e){y=t.utils.getColor(e),d.color(y)}},interpolate:{get:function(){return o.interpolate()},set:function(t){o.interpolate(t),s.interpolate(t)}},xTickFormat:{get:function(){return u.tickFormat()},set:function(t){u.tickFormat(t),c.tickFormat(t)}},yTickFormat:{get:function(){return l.tickFormat()},set:function(t){l.tickFormat(t),f.tickFormat(t)}},duration:{get:function(){return A},set:function(t){A=t,l.duration(A),f.duration(A),u.duration(A),c.duration(A)}},x:{get:function(){return o.x()},set:function(t){o.x(t),s.x(t)}},y:{get:function(){return o.y()},set:function(t){o.y(t),s.y(t)}},useInteractiveGuideline:{get:function(){return w},set:function(t){w=t,w&&(o.interactive(!1),o.useVoronoi(!1))}}}),t.utils.inheritOptions(e,o),t.utils.initOptions(e),e},t.models.multiBar=function(){"use strict";function e(_){return E.reset(),_.each(function(e){var _=c-l.left-l.right,T=f-l.top-l.bottom;g=d3.select(this),t.utils.initSVG(g);var O=0;if(k&&e.length&&(k=[{values:e[0].values.map(function(t){return{x:t.x,y:0,series:t.series,size:.01}})}]),x){var N=d3.layout.stack().offset($).values(function(t){return t.values}).y(v)(!e.length&&k?k:e);N.forEach(function(t,n){t.nonStackable?(e[n].nonStackableSeries=O++,N[n]=e[n]):n>0&&N[n-1].nonStackable&&N[n].values.map(function(t,e){t.y0-=N[n-1].values[e].y,t.y1=t.y0+t.y})}),e=N}e.forEach(function(t,e){t.values.forEach(function(n){n.series=e,n.key=t.key})}),x&&e[0].values.map(function(t,n){var r=0,i=0;e.map(function(t,a){if(!e[a].nonStackable){var o=t.values[n];o.size=Math.abs(o.y),o.y<0?(o.y1=i,i-=o.size):(o.y1=o.size+r,r+=o.size)}})});var P=r&&i?[]:e.map(function(t,e){return t.values.map(function(t,n){return{x:m(t,n),y:v(t,n),y0:t.y0,y1:t.y1,idx:e}})});d.domain(r||d3.merge(P).map(function(t){return t.x})).rangeBands(a||[0,_],S),p.domain(i||d3.extent(d3.merge(P).map(function(t){var n=t.y;return x&&!e[t.idx].nonStackable&&(n=t.y>0?t.y1:t.y1+t.y),n}).concat(y))).range(o||[T,0]),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]-.01*d.domain()[0],d.domain()[1]+.01*d.domain()[1]]):d.domain([-1,1])),p.domain()[0]===p.domain()[1]&&(p.domain()[0]?p.domain([p.domain()[0]+.01*p.domain()[0],p.domain()[1]-.01*p.domain()[1]]):p.domain([-1,1])),s=s||d,u=u||p;var F=g.selectAll("g.nv-wrap.nv-multibar").data([e]),j=F.enter().append("g").attr("class","nvd3 nv-wrap nv-multibar"),I=j.append("defs"),L=j.append("g"),q=F.select("g");L.append("g").attr("class","nv-groups"),F.attr("transform","translate("+l.left+","+l.top+")"),I.append("clipPath").attr("id","nv-edge-clip-"+h).append("rect"),F.select("#nv-edge-clip-"+h+" rect").attr("width",_).attr("height",T),q.attr("clip-path",b?"url(#nv-edge-clip-"+h+")":"");var H=F.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e});H.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6);var V=E.transition(H.exit().selectAll("rect.nv-bar"),"multibarExit",Math.min(100,C)).attr("y",function(t,n,r){var i=u(0)||0;return x&&e[t.series]&&!e[t.series].nonStackable&&(i=u(t.y0)),i}).attr("height",0).remove();V.delay&&V.delay(function(t,e){var n=e*(C/(D+1))-e;return n}),H.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return w(t,e)}).style("stroke",function(t,e){return w(t,e)}),H.style("stroke-opacity",1).style("fill-opacity",.75);var R=H.selectAll("rect.nv-bar").data(function(t){return k&&!e.length?k.values:t.values});R.exit().remove();R.enter().append("rect").attr("class",function(t,e){return v(t,e)<0?"nv-bar negative":"nv-bar positive"}).attr("x",function(t,n,r){return x&&!e[r].nonStackable?0:r*d.rangeBand()/e.length}).attr("y",function(t,n,r){return u(x&&!e[r].nonStackable?t.y0:0)||0}).attr("height",0).attr("width",function(t,n,r){return d.rangeBand()/(x&&!e[r].nonStackable?1:e.length)}).attr("transform",function(t,e){return"translate("+d(m(t,e))+",0)"});R.style("fill",function(t,e,n){return w(t,n,e)}).style("stroke",function(t,e,n){return w(t,n,e)}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0),A.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),A.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){A.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){A.elementClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}).on("dblclick",function(t,e){A.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}),R.attr("class",function(t,e){return v(t,e)<0?"nv-bar negative":"nv-bar positive"}).attr("transform",function(t,e){return"translate("+d(m(t,e))+",0)"}),M&&(n||(n=e.map(function(){return!0})),R.style("fill",function(t,e,r){return d3.rgb(M(t,e)).darker(n.map(function(t,e){return e}).filter(function(t,e){return!n[e]})[r]).toString()}).style("stroke",function(t,e,r){return d3.rgb(M(t,e)).darker(n.map(function(t,e){return e}).filter(function(t,e){return!n[e]})[r]).toString()}));var W=R.watchTransition(E,"multibar",Math.min(250,C)).delay(function(t,n){return n*C/e[0].values.length});x?W.attr("y",function(t,n,r){var i=0;return i=e[r].nonStackable?v(t,n)<0?p(0):p(0)-p(v(t,n))<-1?p(0)-1:p(v(t,n))||0:p(t.y1)}).attr("height",function(t,n,r){return e[r].nonStackable?Math.max(Math.abs(p(v(t,n))-p(0)),1)||0:Math.max(Math.abs(p(t.y+t.y0)-p(t.y0)),1)}).attr("x",function(t,n,r){var i=0;return e[r].nonStackable&&(i=t.series*d.rangeBand()/e.length,e.length!==O&&(i=e[r].nonStackableSeries*d.rangeBand()/(2*O))),i}).attr("width",function(t,n,r){if(e[r].nonStackable){var i=d.rangeBand()/O;return e.length!==O&&(i=d.rangeBand()/(2*O)),i}return d.rangeBand()}):W.attr("x",function(t,n){return t.series*d.rangeBand()/e.length}).attr("width",d.rangeBand()/e.length).attr("y",function(t,e){return v(t,e)<0?p(0):p(0)-p(v(t,e))<1?p(0)-1:p(v(t,e))||0}).attr("height",function(t,e){return Math.max(Math.abs(p(v(t,e))-p(0)),1)||0}),s=d.copy(),u=p.copy(),e[0]&&e[0].values&&(D=e[0].values.length)}),E.renderEnd("multibar immediate"),e}var n,r,i,a,o,s,u,l={top:0,right:0,bottom:0,left:0},c=960,f=500,d=d3.scale.ordinal(),p=d3.scale.linear(),h=Math.floor(1e4*Math.random()),g=null,m=function(t){return t.x},v=function(t){return t.y},y=[0],b=!0,x=!1,$="zero",w=t.utils.defaultColor(),k=!1,M=null,C=500,S=.1,A=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),E=t.utils.renderWatch(A,C),D=0;return e.dispatch=A,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return f},set:function(t){f=t}},x:{get:function(){return m},set:function(t){m=t}},y:{get:function(){return v},set:function(t){v=t}},xScale:{get:function(){return d},set:function(t){d=t}},yScale:{get:function(){return p},set:function(t){p=t}},xDomain:{get:function(){return r},set:function(t){r=t}},yDomain:{get:function(){return i},set:function(t){i=t}},xRange:{get:function(){return a},set:function(t){a=t}},yRange:{get:function(){return o},set:function(t){o=t}},forceY:{get:function(){return y},set:function(t){y=t}},stacked:{get:function(){return x},set:function(t){x=t}},stackOffset:{get:function(){return $},set:function(t){$=t}},clipEdge:{get:function(){return b},set:function(t){b=t}},disabled:{get:function(){return n},set:function(t){n=t}},id:{get:function(){return h},set:function(t){h=t}},hideable:{get:function(){return k},set:function(t){k=t}},groupSpacing:{get:function(){return S},set:function(t){S=t}},margin:{get:function(){return l},set:function(t){l.top=void 0!==t.top?t.top:l.top,l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},duration:{get:function(){return C},set:function(t){C=t,E.reset(C)}},color:{get:function(){return w},set:function(e){w=t.utils.getColor(e)}},barColor:{get:function(){return M},set:function(e){M=e?t.utils.getColor(e):null}}}),t.utils.initOptions(e),e},t.models.multiBarChart=function(){"use strict";function e(l){return D.reset(),D.models(i),v&&D.models(a),y&&D.models(o),l.each(function(l){var C=d3.select(this);t.utils.initSVG(C);var D=t.utils.availableWidth(f,C,c),N=t.utils.availableHeight(d,C,c);if(e.update=function(){0===E?C.call(e):C.transition().duration(E).call(e)},e.container=this,k.setter(O(l),e.update).getter(T(l)).update(),k.disabled=l.map(function(t){return!!t.disabled}),!M){var P;M={};for(P in k)k[P]instanceof Array?M[P]=k[P].slice(0):M[P]=k[P]}if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return t.utils.noData(e,C),e;C.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale();var F=C.selectAll("g.nv-wrap.nv-multiBarWithLegend").data([l]),j=F.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarWithLegend").append("g"),I=F.select("g");if(j.append("g").attr("class","nv-x nv-axis"),j.append("g").attr("class","nv-y nv-axis"),j.append("g").attr("class","nv-barsWrap"),j.append("g").attr("class","nv-legendWrap"),j.append("g").attr("class","nv-controlsWrap"),m&&(s.width(D-A()),I.select(".nv-legendWrap").datum(l).call(s),c.top!=s.height()&&(c.top=s.height(),N=t.utils.availableHeight(d,C,c)),I.select(".nv-legendWrap").attr("transform","translate("+A()+","+-c.top+")")),h){var L=[{key:g.grouped||"Grouped",disabled:i.stacked()},{key:g.stacked||"Stacked",disabled:!i.stacked()}];u.width(A()).color(["#444","#444","#444"]),I.select(".nv-controlsWrap").datum(L).attr("transform","translate(0,"+-c.top+")").call(u)}F.attr("transform","translate("+c.left+","+c.top+")"),b&&I.select(".nv-y.nv-axis").attr("transform","translate("+D+",0)"),i.disabled(l.map(function(t){return t.disabled})).width(D).height(N).color(l.map(function(t,e){return t.color||p(t,e)}).filter(function(t,e){return!l[e].disabled}));var q=I.select(".nv-barsWrap").datum(l.filter(function(t){return!t.disabled}));if(q.call(i),v){a.scale(n)._ticks(t.utils.calcTicksX(D/100,l)).tickSize(-N,0),I.select(".nv-x.nv-axis").attr("transform","translate(0,"+r.range()[0]+")"),I.select(".nv-x.nv-axis").call(a);var H=I.select(".nv-x.nv-axis > g").selectAll("g");if(H.selectAll("line, text").style("opacity",1),$){var V=function(t,e){return"translate("+t+","+e+")"},R=5,W=17;H.selectAll("text").attr("transform",function(t,e,n){return V(0,n%2==0?R:W)});var z=d3.selectAll(".nv-x.nv-axis .nv-wrap g g text")[0].length;I.selectAll(".nv-x.nv-axis .nv-axisMaxMin text").attr("transform",function(t,e){return V(0,0===e||z%2!==0?W:R)})}x&&H.filter(function(t,e){return e%Math.ceil(l[0].values.length/(D/100))!==0}).selectAll("text, line").style("opacity",0),w&&H.selectAll(".tick text").attr("transform","rotate("+w+" 0,0)").style("text-anchor",w>0?"start":"end"),I.select(".nv-x.nv-axis").selectAll("g.nv-axisMaxMin text").style("opacity",1)}y&&(o.scale(r)._ticks(t.utils.calcTicksY(N/36,l)).tickSize(-D,0),I.select(".nv-y.nv-axis").call(o)),s.dispatch.on("stateChange",function(t){for(var n in t)k[n]=t[n];S.stateChange(k),e.update()}),u.dispatch.on("legendClick",function(t,n){if(t.disabled){switch(L=L.map(function(t){return t.disabled=!0,t}),t.disabled=!1,t.key){case"Grouped":case g.grouped:i.stacked(!1);break;case"Stacked":case g.stacked:i.stacked(!0)}k.stacked=i.stacked(),S.stateChange(k),e.update()}}),S.on("changeState",function(t){"undefined"!=typeof t.disabled&&(l.forEach(function(e,n){e.disabled=t.disabled[n]}),k.disabled=t.disabled),"undefined"!=typeof t.stacked&&(i.stacked(t.stacked),k.stacked=t.stacked,_=t.stacked),e.update()})}),D.renderEnd("multibarchart immediate"),e}var n,r,i=t.models.multiBar(),a=t.models.axis(),o=t.models.axis(),s=t.models.legend(),u=t.models.legend(),l=t.models.tooltip(),c={top:30,right:20,bottom:50,left:60},f=null,d=null,p=t.utils.defaultColor(),h=!0,g={},m=!0,v=!0,y=!0,b=!1,x=!0,$=!1,w=0,k=t.utils.state(),M=null,C=null,S=d3.dispatch("stateChange","changeState","renderEnd"),A=function(){return h?180:0},E=250;k.stacked=!1,i.stacked(!1),a.orient("bottom").tickPadding(7).showMaxMin(!1).tickFormat(function(t){return t}),o.orient(b?"right":"left").tickFormat(d3.format(",.1f")),l.duration(0).valueFormatter(function(t,e){return o.tickFormat()(t,e)}).headerFormatter(function(t,e){return a.tickFormat()(t,e)}),u.updateState(!1);var D=t.utils.renderWatch(S),_=!1,T=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),stacked:_}}},O=function(t){return function(e){void 0!==e.stacked&&(_=e.stacked),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};return i.dispatch.on("elementMouseover.tooltip",function(t){t.value=e.x()(t.data),t.series={key:t.data.key,value:e.y()(t.data),color:t.color},l.data(t).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(t){l.hidden(!0)}),i.dispatch.on("elementMousemove.tooltip",function(t){l.position({top:d3.event.pageY,left:d3.event.pageX})()}),e.dispatch=S,e.multibar=i,e.legend=s,e.controls=u,e.xAxis=a,e.yAxis=o,e.state=k,e.tooltip=l,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return f},set:function(t){f=t}},height:{get:function(){return d},set:function(t){d=t}},showLegend:{get:function(){return m},set:function(t){m=t}},showControls:{get:function(){return h},set:function(t){h=t}},
|
||
controlLabels:{get:function(){return g},set:function(t){g=t}},showXAxis:{get:function(){return v},set:function(t){v=t}},showYAxis:{get:function(){return y},set:function(t){y=t}},defaultState:{get:function(){return M},set:function(t){M=t}},noData:{get:function(){return C},set:function(t){C=t}},reduceXTicks:{get:function(){return x},set:function(t){x=t}},rotateLabels:{get:function(){return w},set:function(t){w=t}},staggerLabels:{get:function(){return $},set:function(t){$=t}},tooltips:{get:function(){return l.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),l.enabled(!!e)}},tooltipContent:{get:function(){return l.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),l.contentGenerator(e)}},margin:{get:function(){return c},set:function(t){c.top=void 0!==t.top?t.top:c.top,c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},duration:{get:function(){return E},set:function(t){E=t,i.duration(E),a.duration(E),o.duration(E),D.reset(E)}},color:{get:function(){return p},set:function(e){p=t.utils.getColor(e),s.color(p)}},rightAlignYAxis:{get:function(){return b},set:function(t){b=t,o.orient(b?"right":"left")}},barColor:{get:function(){return i.barColor},set:function(t){i.barColor(t),s.color(function(t,e){return d3.rgb("#ccc").darker(1.5*e).toString()})}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.multiBarHorizontal=function(){"use strict";function e(d){return _.reset(),d.each(function(e){var d=c-l.left-l.right,E=f-l.top-l.bottom;p=d3.select(this),t.utils.initSVG(p),w&&(e=d3.layout.stack().offset("zero").values(function(t){return t.values}).y(v)(e)),e.forEach(function(t,e){t.values.forEach(function(n){n.series=e,n.key=t.key})}),w&&e[0].values.map(function(t,n){var r=0,i=0;e.map(function(t){var e=t.values[n];e.size=Math.abs(e.y),e.y<0?(e.y1=i-e.size,i-=e.size):(e.y1=r,r+=e.size)})});var T=r&&i?[]:e.map(function(t){return t.values.map(function(t,e){return{x:m(t,e),y:v(t,e),y0:t.y0,y1:t.y1}})});h.domain(r||d3.merge(T).map(function(t){return t.x})).rangeBands(a||[0,E],S),g.domain(i||d3.extent(d3.merge(T).map(function(t){return w?t.y>0?t.y1+t.y:t.y1:t.y}).concat(b))),k&&!w?g.range(o||[g.domain()[0]<0?C:0,d-(g.domain()[1]>0?C:0)]):g.range(o||[0,d]),s=s||h,u=u||d3.scale.linear().domain(g.domain()).range([g(0),g(0)]);var O=d3.select(this).selectAll("g.nv-wrap.nv-multibarHorizontal").data([e]),N=O.enter().append("g").attr("class","nvd3 nv-wrap nv-multibarHorizontal"),P=(N.append("defs"),N.append("g"));O.select("g");P.append("g").attr("class","nv-groups"),O.attr("transform","translate("+l.left+","+l.top+")");var F=O.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t,e){return e});F.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),F.exit().watchTransition(_,"multibarhorizontal: exit groups").style("stroke-opacity",1e-6).style("fill-opacity",1e-6).remove(),F.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}).style("fill",function(t,e){return x(t,e)}).style("stroke",function(t,e){return x(t,e)}),F.watchTransition(_,"multibarhorizontal: groups").style("stroke-opacity",1).style("fill-opacity",.75);var j=F.selectAll("g.nv-bar").data(function(t){return t.values});j.exit().remove();var I=j.enter().append("g").attr("transform",function(t,n,r){return"translate("+u(w?t.y0:0)+","+(w?0:r*h.rangeBand()/e.length+h(m(t,n)))+")"});I.append("rect").attr("width",0).attr("height",h.rangeBand()/(w?1:e.length)),j.on("mouseover",function(t,e){d3.select(this).classed("hover",!0),D.elementMouseover({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),D.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){D.elementMouseout({data:t,index:e,color:d3.select(this).style("fill")})}).on("mousemove",function(t,e){D.elementMousemove({data:t,index:e,color:d3.select(this).style("fill")})}).on("click",function(t,e){D.elementClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}).on("dblclick",function(t,e){D.elementDblClick({data:t,index:e,color:d3.select(this).style("fill")}),d3.event.stopPropagation()}),y(e[0],0)&&(I.append("polyline"),j.select("polyline").attr("fill","none").attr("points",function(t,n){var r=y(t,n),i=.8*h.rangeBand()/(2*(w?1:e.length));r=r.length?r:[-Math.abs(r),Math.abs(r)],r=r.map(function(t){return g(t)-g(0)});var a=[[r[0],-i],[r[0],i],[r[0],0],[r[1],0],[r[1],-i],[r[1],i]];return a.map(function(t){return t.join(",")}).join(" ")}).attr("transform",function(t,n){var r=h.rangeBand()/(2*(w?1:e.length));return"translate("+(v(t,n)<0?0:g(v(t,n))-g(0))+", "+r+")"})),I.append("text"),k&&!w?(j.select("text").attr("text-anchor",function(t,e){return v(t,e)<0?"end":"start"}).attr("y",h.rangeBand()/(2*e.length)).attr("dy",".32em").text(function(t,e){var n=A(v(t,e)),r=y(t,e);return void 0===r?n:r.length?n+"+"+A(Math.abs(r[1]))+"-"+A(Math.abs(r[0])):n+"±"+A(Math.abs(r))}),j.watchTransition(_,"multibarhorizontal: bars").select("text").attr("x",function(t,e){return v(t,e)<0?-4:g(v(t,e))-g(0)+4})):j.selectAll("text").text(""),M&&!w?(I.append("text").classed("nv-bar-label",!0),j.select("text.nv-bar-label").attr("text-anchor",function(t,e){return v(t,e)<0?"start":"end"}).attr("y",h.rangeBand()/(2*e.length)).attr("dy",".32em").text(function(t,e){return m(t,e)}),j.watchTransition(_,"multibarhorizontal: bars").select("text.nv-bar-label").attr("x",function(t,e){return v(t,e)<0?g(0)-g(v(t,e))+4:-4})):j.selectAll("text.nv-bar-label").text(""),j.attr("class",function(t,e){return v(t,e)<0?"nv-bar negative":"nv-bar positive"}),$&&(n||(n=e.map(function(){return!0})),j.style("fill",function(t,e,r){return d3.rgb($(t,e)).darker(n.map(function(t,e){return e}).filter(function(t,e){return!n[e]})[r]).toString()}).style("stroke",function(t,e,r){return d3.rgb($(t,e)).darker(n.map(function(t,e){return e}).filter(function(t,e){return!n[e]})[r]).toString()})),w?j.watchTransition(_,"multibarhorizontal: bars").attr("transform",function(t,e){return"translate("+g(t.y1)+","+h(m(t,e))+")"}).select("rect").attr("width",function(t,e){return Math.abs(g(v(t,e)+t.y0)-g(t.y0))}).attr("height",h.rangeBand()):j.watchTransition(_,"multibarhorizontal: bars").attr("transform",function(t,n){return"translate("+g(v(t,n)<0?v(t,n):0)+","+(t.series*h.rangeBand()/e.length+h(m(t,n)))+")"}).select("rect").attr("height",h.rangeBand()/e.length).attr("width",function(t,e){return Math.max(Math.abs(g(v(t,e))-g(0)),1)}),s=h.copy(),u=g.copy()}),_.renderEnd("multibarHorizontal immediate"),e}var n,r,i,a,o,s,u,l={top:0,right:0,bottom:0,left:0},c=960,f=500,d=Math.floor(1e4*Math.random()),p=null,h=d3.scale.ordinal(),g=d3.scale.linear(),m=function(t){return t.x},v=function(t){return t.y},y=function(t){return t.yErr},b=[0],x=t.utils.defaultColor(),$=null,w=!1,k=!1,M=!1,C=60,S=.1,A=d3.format(",.2f"),E=250,D=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),_=t.utils.renderWatch(D,E);return e.dispatch=D,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return f},set:function(t){f=t}},x:{get:function(){return m},set:function(t){m=t}},y:{get:function(){return v},set:function(t){v=t}},yErr:{get:function(){return y},set:function(t){y=t}},xScale:{get:function(){return h},set:function(t){h=t}},yScale:{get:function(){return g},set:function(t){g=t}},xDomain:{get:function(){return r},set:function(t){r=t}},yDomain:{get:function(){return i},set:function(t){i=t}},xRange:{get:function(){return a},set:function(t){a=t}},yRange:{get:function(){return o},set:function(t){o=t}},forceY:{get:function(){return b},set:function(t){b=t}},stacked:{get:function(){return w},set:function(t){w=t}},showValues:{get:function(){return k},set:function(t){k=t}},disabled:{get:function(){return n},set:function(t){n=t}},id:{get:function(){return d},set:function(t){d=t}},valueFormat:{get:function(){return A},set:function(t){A=t}},valuePadding:{get:function(){return C},set:function(t){C=t}},groupSpacing:{get:function(){return S},set:function(t){S=t}},margin:{get:function(){return l},set:function(t){l.top=void 0!==t.top?t.top:l.top,l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},duration:{get:function(){return E},set:function(t){E=t,_.reset(E)}},color:{get:function(){return x},set:function(e){x=t.utils.getColor(e)}},barColor:{get:function(){return $},set:function(e){$=e?t.utils.getColor(e):null}}}),t.utils.initOptions(e),e},t.models.multiBarHorizontalChart=function(){"use strict";function e(l){return E.reset(),E.models(i),v&&E.models(a),y&&E.models(o),l.each(function(l){var w=d3.select(this);t.utils.initSVG(w);var E=t.utils.availableWidth(f,w,c),D=t.utils.availableHeight(d,w,c);if(e.update=function(){w.transition().duration(C).call(e)},e.container=this,b=i.stacked(),x.setter(A(l),e.update).getter(S(l)).update(),x.disabled=l.map(function(t){return!!t.disabled}),!$){var _;$={};for(_ in x)x[_]instanceof Array?$[_]=x[_].slice(0):$[_]=x[_]}if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return t.utils.noData(e,w),e;w.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale();var T=w.selectAll("g.nv-wrap.nv-multiBarHorizontalChart").data([l]),O=T.enter().append("g").attr("class","nvd3 nv-wrap nv-multiBarHorizontalChart").append("g"),N=T.select("g");if(O.append("g").attr("class","nv-x nv-axis"),O.append("g").attr("class","nv-y nv-axis").append("g").attr("class","nv-zeroLine").append("line"),O.append("g").attr("class","nv-barsWrap"),O.append("g").attr("class","nv-legendWrap"),O.append("g").attr("class","nv-controlsWrap"),m&&(s.width(E-M()),N.select(".nv-legendWrap").datum(l).call(s),c.top!=s.height()&&(c.top=s.height(),D=t.utils.availableHeight(d,w,c)),N.select(".nv-legendWrap").attr("transform","translate("+M()+","+-c.top+")")),h){var P=[{key:g.grouped||"Grouped",disabled:i.stacked()},{key:g.stacked||"Stacked",disabled:!i.stacked()}];u.width(M()).color(["#444","#444","#444"]),N.select(".nv-controlsWrap").datum(P).attr("transform","translate(0,"+-c.top+")").call(u)}T.attr("transform","translate("+c.left+","+c.top+")"),i.disabled(l.map(function(t){return t.disabled})).width(E).height(D).color(l.map(function(t,e){return t.color||p(t,e)}).filter(function(t,e){return!l[e].disabled}));var F=N.select(".nv-barsWrap").datum(l.filter(function(t){return!t.disabled}));if(F.transition().call(i),v){a.scale(n)._ticks(t.utils.calcTicksY(D/24,l)).tickSize(-E,0),N.select(".nv-x.nv-axis").call(a);var j=N.select(".nv-x.nv-axis").selectAll("g");j.selectAll("line, text")}y&&(o.scale(r)._ticks(t.utils.calcTicksX(E/100,l)).tickSize(-D,0),N.select(".nv-y.nv-axis").attr("transform","translate(0,"+D+")"),N.select(".nv-y.nv-axis").call(o)),N.select(".nv-zeroLine line").attr("x1",r(0)).attr("x2",r(0)).attr("y1",0).attr("y2",-D),s.dispatch.on("stateChange",function(t){for(var n in t)x[n]=t[n];k.stateChange(x),e.update()}),u.dispatch.on("legendClick",function(t,n){if(t.disabled){switch(P=P.map(function(t){return t.disabled=!0,t}),t.disabled=!1,t.key){case"Grouped":i.stacked(!1);break;case"Stacked":i.stacked(!0)}x.stacked=i.stacked(),k.stateChange(x),b=i.stacked(),e.update()}}),k.on("changeState",function(t){"undefined"!=typeof t.disabled&&(l.forEach(function(e,n){e.disabled=t.disabled[n]}),x.disabled=t.disabled),"undefined"!=typeof t.stacked&&(i.stacked(t.stacked),x.stacked=t.stacked,b=t.stacked),e.update()})}),E.renderEnd("multibar horizontal chart immediate"),e}var n,r,i=t.models.multiBarHorizontal(),a=t.models.axis(),o=t.models.axis(),s=t.models.legend().height(30),u=t.models.legend().height(30),l=t.models.tooltip(),c={top:30,right:20,bottom:50,left:60},f=null,d=null,p=t.utils.defaultColor(),h=!0,g={},m=!0,v=!0,y=!0,b=!1,x=t.utils.state(),$=null,w=null,k=d3.dispatch("stateChange","changeState","renderEnd"),M=function(){return h?180:0},C=250;x.stacked=!1,i.stacked(b),a.orient("left").tickPadding(5).showMaxMin(!1).tickFormat(function(t){return t}),o.orient("bottom").tickFormat(d3.format(",.1f")),l.duration(0).valueFormatter(function(t,e){return o.tickFormat()(t,e)}).headerFormatter(function(t,e){return a.tickFormat()(t,e)}),u.updateState(!1);var S=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),stacked:b}}},A=function(t){return function(e){void 0!==e.stacked&&(b=e.stacked),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}},E=t.utils.renderWatch(k,C);return i.dispatch.on("elementMouseover.tooltip",function(t){t.value=e.x()(t.data),t.series={key:t.data.key,value:e.y()(t.data),color:t.color},l.data(t).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(t){l.hidden(!0)}),i.dispatch.on("elementMousemove.tooltip",function(t){l.position({top:d3.event.pageY,left:d3.event.pageX})()}),e.dispatch=k,e.multibar=i,e.legend=s,e.controls=u,e.xAxis=a,e.yAxis=o,e.state=x,e.tooltip=l,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return f},set:function(t){f=t}},height:{get:function(){return d},set:function(t){d=t}},showLegend:{get:function(){return m},set:function(t){m=t}},showControls:{get:function(){return h},set:function(t){h=t}},controlLabels:{get:function(){return g},set:function(t){g=t}},showXAxis:{get:function(){return v},set:function(t){v=t}},showYAxis:{get:function(){return y},set:function(t){y=t}},defaultState:{get:function(){return $},set:function(t){$=t}},noData:{get:function(){return w},set:function(t){w=t}},tooltips:{get:function(){return l.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),l.enabled(!!e)}},tooltipContent:{get:function(){return l.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),l.contentGenerator(e)}},margin:{get:function(){return c},set:function(t){c.top=void 0!==t.top?t.top:c.top,c.right=void 0!==t.right?t.right:c.right,c.bottom=void 0!==t.bottom?t.bottom:c.bottom,c.left=void 0!==t.left?t.left:c.left}},duration:{get:function(){return C},set:function(t){C=t,E.reset(C),i.duration(C),a.duration(C),o.duration(C)}},color:{get:function(){return p},set:function(e){p=t.utils.getColor(e),s.color(p)}},barColor:{get:function(){return i.barColor},set:function(t){i.barColor(t),s.color(function(t,e){return d3.rgb("#ccc").darker(1.5*e).toString()})}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.multiChart=function(){"use strict";function e(l){return l.each(function(l){function c(t){var e=2===l[t.seriesIndex].yAxis?C:M;t.value=t.point.x,t.series={value:t.point.y,color:t.point.color},A.duration(100).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).position(t.pos).hidden(!1)}function f(t){var e=2===l[t.seriesIndex].yAxis?C:M;t.point.x=$.x()(t.point),t.point.y=$.y()(t.point),A.duration(100).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).position(t.pos).hidden(!1)}function p(t){var e=2===l[t.data.series].yAxis?C:M;t.value=b.x()(t.data),t.series={value:b.y()(t.data),color:t.color},A.duration(0).valueFormatter(function(t,n){return e.tickFormat()(t,n)}).data(t).hidden(!1)}var E=d3.select(this);t.utils.initSVG(E),e.update=function(){E.transition().call(e)},e.container=this;var D=t.utils.availableWidth(o,E,i),_=t.utils.availableHeight(s,E,i),T=l.filter(function(t){return"line"==t.type&&1==t.yAxis}),O=l.filter(function(t){return"line"==t.type&&2==t.yAxis}),N=l.filter(function(t){return"bar"==t.type&&1==t.yAxis}),P=l.filter(function(t){return"bar"==t.type&&2==t.yAxis}),F=l.filter(function(t){return"area"==t.type&&1==t.yAxis}),j=l.filter(function(t){return"area"==t.type&&2==t.yAxis});if(!(l&&l.length&&l.filter(function(t){return t.values.length}).length))return t.utils.noData(e,E),e;E.selectAll(".nv-noData").remove();var I=l.filter(function(t){return!t.disabled&&1==t.yAxis}).map(function(t){return t.values.map(function(t,e){return{x:t.x,y:t.y}})}),L=l.filter(function(t){return!t.disabled&&2==t.yAxis}).map(function(t){return t.values.map(function(t,e){return{x:t.x,y:t.y}})});h.domain(d3.extent(d3.merge(I.concat(L)),function(t){return t.x})).range([0,D]);var q=E.selectAll("g.wrap.multiChart").data([l]),H=q.enter().append("g").attr("class","wrap nvd3 multiChart").append("g");H.append("g").attr("class","nv-x nv-axis"),H.append("g").attr("class","nv-y1 nv-axis"),H.append("g").attr("class","nv-y2 nv-axis"),H.append("g").attr("class","lines1Wrap"),H.append("g").attr("class","lines2Wrap"),H.append("g").attr("class","bars1Wrap"),H.append("g").attr("class","bars2Wrap"),H.append("g").attr("class","stack1Wrap"),H.append("g").attr("class","stack2Wrap"),H.append("g").attr("class","legendWrap");var V=q.select("g"),R=l.map(function(t,e){return l[e].color||a(t,e)});if(u){var W=S.align()?D/2:D,z=S.align()?W:0;S.width(W),S.color(R),V.select(".legendWrap").datum(l.map(function(t){return t.originalKey=void 0===t.originalKey?t.key:t.originalKey,t.key=t.originalKey+(1==t.yAxis?"":" (right axis)"),t})).call(S),i.top!=S.height()&&(i.top=S.height(),_=t.utils.availableHeight(s,E,i)),V.select(".legendWrap").attr("transform","translate("+z+","+-i.top+")")}v.width(D).height(_).interpolate(d).color(R.filter(function(t,e){return!l[e].disabled&&1==l[e].yAxis&&"line"==l[e].type})),y.width(D).height(_).interpolate(d).color(R.filter(function(t,e){return!l[e].disabled&&2==l[e].yAxis&&"line"==l[e].type})),b.width(D).height(_).color(R.filter(function(t,e){return!l[e].disabled&&1==l[e].yAxis&&"bar"==l[e].type})),x.width(D).height(_).color(R.filter(function(t,e){return!l[e].disabled&&2==l[e].yAxis&&"bar"==l[e].type})),$.width(D).height(_).color(R.filter(function(t,e){return!l[e].disabled&&1==l[e].yAxis&&"area"==l[e].type})),w.width(D).height(_).color(R.filter(function(t,e){return!l[e].disabled&&2==l[e].yAxis&&"area"==l[e].type})),V.attr("transform","translate("+i.left+","+i.top+")");var U=V.select(".lines1Wrap").datum(T.filter(function(t){return!t.disabled})),Y=V.select(".bars1Wrap").datum(N.filter(function(t){return!t.disabled})),B=V.select(".stack1Wrap").datum(F.filter(function(t){return!t.disabled})),G=V.select(".lines2Wrap").datum(O.filter(function(t){return!t.disabled})),X=V.select(".bars2Wrap").datum(P.filter(function(t){return!t.disabled})),Z=V.select(".stack2Wrap").datum(j.filter(function(t){return!t.disabled})),K=F.length?F.map(function(t){return t.values}).reduce(function(t,e){return t.map(function(t,n){return{x:t.x,y:t.y+e[n].y}})}).concat([{x:0,y:0}]):[],J=j.length?j.map(function(t){return t.values}).reduce(function(t,e){return t.map(function(t,n){return{x:t.x,y:t.y+e[n].y}})}).concat([{x:0,y:0}]):[];g.domain(n||d3.extent(d3.merge(I).concat(K),function(t){return t.y})).range([0,_]),m.domain(r||d3.extent(d3.merge(L).concat(J),function(t){return t.y})).range([0,_]),v.yDomain(g.domain()),b.yDomain(g.domain()),$.yDomain(g.domain()),y.yDomain(m.domain()),x.yDomain(m.domain()),w.yDomain(m.domain()),F.length&&d3.transition(B).call($),j.length&&d3.transition(Z).call(w),N.length&&d3.transition(Y).call(b),P.length&&d3.transition(X).call(x),T.length&&d3.transition(U).call(v),O.length&&d3.transition(G).call(y),k._ticks(t.utils.calcTicksX(D/100,l)).tickSize(-_,0),V.select(".nv-x.nv-axis").attr("transform","translate(0,"+_+")"),d3.transition(V.select(".nv-x.nv-axis")).call(k),M._ticks(t.utils.calcTicksY(_/36,l)).tickSize(-D,0),d3.transition(V.select(".nv-y1.nv-axis")).call(M),C._ticks(t.utils.calcTicksY(_/36,l)).tickSize(-D,0),d3.transition(V.select(".nv-y2.nv-axis")).call(C),V.select(".nv-y1.nv-axis").classed("nv-disabled",I.length?!1:!0).attr("transform","translate("+h.range()[0]+",0)"),V.select(".nv-y2.nv-axis").classed("nv-disabled",L.length?!1:!0).attr("transform","translate("+h.range()[1]+",0)"),S.dispatch.on("stateChange",function(t){e.update()}),v.dispatch.on("elementMouseover.tooltip",c),y.dispatch.on("elementMouseover.tooltip",c),v.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),y.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),$.dispatch.on("elementMouseover.tooltip",f),w.dispatch.on("elementMouseover.tooltip",f),$.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),w.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),b.dispatch.on("elementMouseover.tooltip",p),x.dispatch.on("elementMouseover.tooltip",p),b.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),x.dispatch.on("elementMouseout.tooltip",function(t){A.hidden(!0)}),b.dispatch.on("elementMousemove.tooltip",function(t){A.position({top:d3.event.pageY,left:d3.event.pageX})()}),x.dispatch.on("elementMousemove.tooltip",function(t){A.position({top:d3.event.pageY,left:d3.event.pageX})()})}),e}var n,r,i={top:30,right:20,bottom:50,left:60},a=t.utils.defaultColor(),o=null,s=null,u=!0,l=null,c=function(t){return t.x},f=function(t){return t.y},d="monotone",p=!0,h=d3.scale.linear(),g=d3.scale.linear(),m=d3.scale.linear(),v=t.models.line().yScale(g),y=t.models.line().yScale(m),b=t.models.multiBar().stacked(!1).yScale(g),x=t.models.multiBar().stacked(!1).yScale(m),$=t.models.stackedArea().yScale(g),w=t.models.stackedArea().yScale(m),k=t.models.axis().scale(h).orient("bottom").tickPadding(5),M=t.models.axis().scale(g).orient("left"),C=t.models.axis().scale(m).orient("right"),S=t.models.legend().height(30),A=t.models.tooltip(),E=d3.dispatch();return e.dispatch=E,e.lines1=v,e.lines2=y,e.bars1=b,e.bars2=x,e.stack1=$,e.stack2=w,e.xAxis=k,e.yAxis1=M,e.yAxis2=C,e.tooltip=A,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},showLegend:{get:function(){return u},set:function(t){u=t}},yDomain1:{get:function(){return n},set:function(t){n=t}},yDomain2:{get:function(){return r},set:function(t){r=t}},noData:{get:function(){return l},set:function(t){l=t}},interpolate:{get:function(){return d},set:function(t){d=t}},tooltips:{get:function(){return A.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),A.enabled(!!e)}},tooltipContent:{get:function(){return A.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),A.contentGenerator(e)}},margin:{get:function(){return i},set:function(t){i.top=void 0!==t.top?t.top:i.top,i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}},color:{get:function(){return a},set:function(e){a=t.utils.getColor(e)}},x:{get:function(){return c},set:function(t){c=t,v.x(t),y.x(t),b.x(t),x.x(t),$.x(t),w.x(t)}},y:{get:function(){return f},set:function(t){f=t,v.y(t),y.y(t),$.y(t),w.y(t),b.y(t),x.y(t)}},useVoronoi:{get:function(){return p},set:function(t){p=t,v.useVoronoi(t),y.useVoronoi(t),$.useVoronoi(t),w.useVoronoi(t)}}}),t.utils.initOptions(e),e},t.models.ohlcBar=function(){"use strict";function e(M){return M.each(function(e){c=d3.select(this);var M=t.utils.availableWidth(s,c,o),S=t.utils.availableHeight(u,c,o);t.utils.initSVG(c);var A=M/e[0].values.length*.9;f.domain(n||d3.extent(e[0].values.map(p).concat(b))),$?f.range(i||[.5*M/e[0].values.length,M*(e[0].values.length-.5)/e[0].values.length]):f.range(i||[5+A/2,M-A/2-5]),d.domain(r||[d3.min(e[0].values.map(y).concat(x)),d3.max(e[0].values.map(v).concat(x))]).range(a||[S,0]),f.domain()[0]===f.domain()[1]&&(f.domain()[0]?f.domain([f.domain()[0]-.01*f.domain()[0],f.domain()[1]+.01*f.domain()[1]]):f.domain([-1,1])),d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]+.01*d.domain()[0],d.domain()[1]-.01*d.domain()[1]]):d.domain([-1,1]));var E=d3.select(this).selectAll("g.nv-wrap.nv-ohlcBar").data([e[0].values]),D=E.enter().append("g").attr("class","nvd3 nv-wrap nv-ohlcBar"),_=D.append("defs"),T=D.append("g"),O=E.select("g");T.append("g").attr("class","nv-ticks"),E.attr("transform","translate("+o.left+","+o.top+")"),c.on("click",function(t,e){C.chartClick({data:t,index:e,pos:d3.event,id:l})}),_.append("clipPath").attr("id","nv-chart-clip-path-"+l).append("rect"),E.select("#nv-chart-clip-path-"+l+" rect").attr("width",M).attr("height",S),O.attr("clip-path",w?"url(#nv-chart-clip-path-"+l+")":"");var N=E.select(".nv-ticks").selectAll(".nv-tick").data(function(t){return t});N.exit().remove(),N.enter().append("path").attr("class",function(t,e,n){return(g(t,e)>m(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}).attr("d",function(t,e){return"m0,0l0,"+(d(g(t,e))-d(v(t,e)))+"l"+-A/2+",0l"+A/2+",0l0,"+(d(y(t,e))-d(g(t,e)))+"l0,"+(d(m(t,e))-d(y(t,e)))+"l"+A/2+",0l"+-A/2+",0z"}).attr("transform",function(t,e){return"translate("+f(p(t,e))+","+d(v(t,e))+")"}).attr("fill",function(t,e){return k[0]}).attr("stroke",function(t,e){return k[0]}).attr("x",0).attr("y",function(t,e){return d(Math.max(0,h(t,e)))}).attr("height",function(t,e){return Math.abs(d(h(t,e))-d(0))}),N.attr("class",function(t,e,n){return(g(t,e)>m(t,e)?"nv-tick negative":"nv-tick positive")+" nv-tick-"+n+"-"+e}),d3.transition(N).attr("transform",function(t,e){return"translate("+f(p(t,e))+","+d(v(t,e))+")"}).attr("d",function(t,n){var r=M/e[0].values.length*.9;return"m0,0l0,"+(d(g(t,n))-d(v(t,n)))+"l"+-r/2+",0l"+r/2+",0l0,"+(d(y(t,n))-d(g(t,n)))+"l0,"+(d(m(t,n))-d(y(t,n)))+"l"+r/2+",0l"+-r/2+",0z"})}),e}var n,r,i,a,o={top:0,right:0,bottom:0,left:0},s=null,u=null,l=Math.floor(1e4*Math.random()),c=null,f=d3.scale.linear(),d=d3.scale.linear(),p=function(t){return t.x},h=function(t){return t.y},g=function(t){return t.open},m=function(t){return t.close},v=function(t){return t.high},y=function(t){return t.low},b=[],x=[],$=!1,w=!0,k=t.utils.defaultColor(),M=!1,C=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd","chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove");return e.highlightPoint=function(t,n){e.clearHighlights(),c.select(".nv-ohlcBar .nv-tick-0-"+t).classed("hover",n)},e.clearHighlights=function(){c.select(".nv-ohlcBar .nv-tick.hover").classed("hover",!1)},e.dispatch=C,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return u},set:function(t){u=t}},xScale:{get:function(){return f},set:function(t){f=t}},yScale:{get:function(){return d},set:function(t){d=t}},xDomain:{get:function(){return n},set:function(t){n=t}},yDomain:{get:function(){return r},set:function(t){r=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},forceX:{get:function(){return b},set:function(t){b=t}},forceY:{get:function(){return x},set:function(t){x=t}},padData:{get:function(){return $},set:function(t){$=t}},clipEdge:{get:function(){return w},set:function(t){w=t}},id:{get:function(){return l},set:function(t){l=t}},interactive:{get:function(){return M},set:function(t){M=t}},x:{get:function(){return p},set:function(t){p=t}},y:{get:function(){return h},set:function(t){h=t}},open:{get:function(){return g()},set:function(t){g=t}},close:{get:function(){return m()},set:function(t){m=t}},high:{get:function(){return v},set:function(t){v=t}},low:{get:function(){return y},set:function(t){y=t}},margin:{get:function(){return o},set:function(t){o.top=void 0!=t.top?t.top:o.top,o.right=void 0!=t.right?t.right:o.right,o.bottom=void 0!=t.bottom?t.bottom:o.bottom,o.left=void 0!=t.left?t.left:o.left}},color:{get:function(){return k},set:function(e){k=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.parallelCoordinates=function(){"use strict";function e(g){return g.each(function(e){function g(t){return T(s.map(function(e){if(isNaN(t[e])||isNaN(parseFloat(t[e]))){var n=o[e].domain(),r=o[e].range(),i=n[0]-(n[1]-n[0])/9;if(F.indexOf(e)<0){var s=d3.scale.linear().domain([i,n[1]]).range([k-12,r[1]]);o[e].brush.y(s),F.push(e)}return[a(e),o[e](i)]}return F.length>0?(D.style("display","inline"),_.style("display","inline")):(D.style("display","none"),_.style("display","none")),[a(e),o[e](t[e])]}))}function m(){var t=s.filter(function(t){return!o[t].brush.empty()}),e=t.map(function(t){return o[t].brush.extent()});c=[],t.forEach(function(t,n){c[n]={dimension:t,extent:e[n]}}),f=[],L.style("display",function(n){var r=t.every(function(t,r){return isNaN(n[t])&&e[r][0]==o[t].brush.y().domain()[0]?!0:e[r][0]<=n[t]&&n[t]<=e[r][1]});return r&&f.push(n),r?null:"none"}),h.brush({filters:c,active:f})}function v(t,e){d[t]=this.parentNode.__origin__=a(t),I.attr("visibility","hidden")}function y(t,e){d[t]=Math.min(w,Math.max(0,this.parentNode.__origin__+=d3.event.x)),L.attr("d",g),s.sort(function(t,e){return x(t)-x(e)}),a.domain(s),q.attr("transform",function(t){return"translate("+x(t)+")"})}function b(t,e){delete this.parentNode.__origin__,delete d[t],d3.select(this.parentNode).attr("transform","translate("+a(t)+")"),L.attr("d",g),I.attr("d",g).attr("visibility",null)}function x(t){var e=d[t];return null==e?a(t):e}var $=d3.select(this),w=t.utils.availableWidth(r,$,n),k=t.utils.availableHeight(i,$,n);t.utils.initSVG($),f=e,a.rangePoints([0,w],1).domain(s);var M={};s.forEach(function(t){var n=d3.extent(e,function(e){return+e[t]});return M[t]=!1,void 0===n[0]&&(M[t]=!0,n[0]=0,n[1]=0),n[0]===n[1]&&(n[0]=n[0]-1,n[1]=n[1]+1),o[t]=d3.scale.linear().domain(n).range([.9*(k-12),0]),o[t].brush=d3.svg.brush().y(o[t]).on("brush",m),"name"!=t});var C=$.selectAll("g.nv-wrap.nv-parallelCoordinates").data([e]),S=C.enter().append("g").attr("class","nvd3 nv-wrap nv-parallelCoordinates"),A=S.append("g"),E=C.select("g");A.append("g").attr("class","nv-parallelCoordinates background"),A.append("g").attr("class","nv-parallelCoordinates foreground"),A.append("g").attr("class","nv-parallelCoordinates missingValuesline"),C.attr("transform","translate("+n.left+","+n.top+")");var D,_,T=d3.svg.line().interpolate("cardinal").tension(p),O=d3.svg.axis().orient("left"),N=d3.behavior.drag().on("dragstart",v).on("drag",y).on("dragend",b),P=a.range()[1]-a.range()[0],F=[],j=[0+P/2,k-12,w-P/2,k-12];D=C.select(".missingValuesline").selectAll("line").data([j]),D.enter().append("line"),D.exit().remove(),D.attr("x1",function(t){return t[0]}).attr("y1",function(t){return t[1]}).attr("x2",function(t){return t[2]}).attr("y2",function(t){return t[3]}),_=C.select(".missingValuesline").selectAll("text").data(["undefined values"]),_.append("text").data(["undefined values"]),_.enter().append("text"),_.exit().remove(),_.attr("y",k).attr("x",w-92-P/2).text(function(t){return t});var I=C.select(".background").selectAll("path").data(e);I.enter().append("path"),I.exit().remove(),I.attr("d",g);var L=C.select(".foreground").selectAll("path").data(e);L.enter().append("path"),L.exit().remove(),L.attr("d",g).attr("stroke",l),L.on("mouseover",function(t,e){d3.select(this).classed("hover",!0),h.elementMouseover({label:t.name,data:t.data,index:e,pos:[d3.mouse(this.parentNode)[0],d3.mouse(this.parentNode)[1]]})}),L.on("mouseout",function(t,e){d3.select(this).classed("hover",!1),h.elementMouseout({label:t.name,data:t.data,index:e})});var q=E.selectAll(".dimension").data(s),H=q.enter().append("g").attr("class","nv-parallelCoordinates dimension");H.append("g").attr("class","nv-parallelCoordinates nv-axis"),H.append("g").attr("class","nv-parallelCoordinates-brush"),H.append("text").attr("class","nv-parallelCoordinates nv-label"),q.attr("transform",function(t){return"translate("+a(t)+",0)"}),q.exit().remove(),q.select(".nv-label").style("cursor","move").attr("dy","-1em").attr("text-anchor","middle").text(String).on("mouseover",function(t,e){h.elementMouseover({dim:t,pos:[d3.mouse(this.parentNode.parentNode)[0],d3.mouse(this.parentNode.parentNode)[1]]})}).on("mouseout",function(t,e){h.elementMouseout({dim:t})}).call(N),q.select(".nv-axis").each(function(t,e){
|
||
d3.select(this).call(O.scale(o[t]).tickFormat(d3.format(u[e])))}),q.select(".nv-parallelCoordinates-brush").each(function(t){d3.select(this).call(o[t].brush)}).selectAll("rect").attr("x",-8).attr("width",16)}),e}var n={top:30,right:0,bottom:10,left:0},r=null,i=null,a=d3.scale.ordinal(),o={},s=[],u=[],l=t.utils.defaultColor(),c=[],f=[],d=[],p=1,h=d3.dispatch("brush","elementMouseover","elementMouseout");return e.dispatch=h,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return r},set:function(t){r=t}},height:{get:function(){return i},set:function(t){i=t}},dimensionNames:{get:function(){return s},set:function(t){s=t}},dimensionFormats:{get:function(){return u},set:function(t){u=t}},lineTension:{get:function(){return p},set:function(t){p=t}},dimensions:{get:function(){return s},set:function(e){t.deprecated("dimensions","use dimensionNames instead"),s=e}},margin:{get:function(){return n},set:function(t){n.top=void 0!==t.top?t.top:n.top,n.right=void 0!==t.right?t.right:n.right,n.bottom=void 0!==t.bottom?t.bottom:n.bottom,n.left=void 0!==t.left?t.left:n.left}},color:{get:function(){return l},set:function(e){l=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.pie=function(){"use strict";function e(_){return D.reset(),_.each(function(e){function _(t,e){t.endAngle=isNaN(t.endAngle)?0:t.endAngle,t.startAngle=isNaN(t.startAngle)?0:t.startAngle,g||(t.innerRadius=0);var n=d3.interpolate(this._current,t);return this._current=n(0),function(t){return A[e](n(t))}}var T=r-n.left-n.right,O=i-n.top-n.bottom,N=Math.min(T,O)/2,P=[],F=[];if(u=d3.select(this),0===C.length)for(var j=N-N/5,I=M*N,L=0;L<e[0].length;L++)P.push(j),F.push(I);else P=C.map(function(t){return(t.outer-t.outer/5)*N}),F=C.map(function(t){return(t.inner-t.inner/5)*N}),M=d3.min(C.map(function(t){return t.inner-t.inner/5}));t.utils.initSVG(u);var q=u.selectAll(".nv-wrap.nv-pie").data(e),H=q.enter().append("g").attr("class","nvd3 nv-wrap nv-pie nv-chart-"+s),V=H.append("g"),R=q.select("g"),W=V.append("g").attr("class","nv-pie");V.append("g").attr("class","nv-pieLabels"),q.attr("transform","translate("+n.left+","+n.top+")"),R.select(".nv-pie").attr("transform","translate("+T/2+","+O/2+")"),R.select(".nv-pieLabels").attr("transform","translate("+T/2+","+O/2+")"),u.on("click",function(t,e){S.chartClick({data:t,index:e,pos:d3.event,id:s})}),A=[],E=[];for(var L=0;L<e[0].length;L++){var z=d3.svg.arc().outerRadius(P[L]),U=d3.svg.arc().outerRadius(P[L]+5);x!==!1&&(z.startAngle(x),U.startAngle(x)),w!==!1&&(z.endAngle(w),U.endAngle(w)),g&&(z.innerRadius(F[L]),U.innerRadius(F[L])),z.cornerRadius&&k&&(z.cornerRadius(k),U.cornerRadius(k)),A.push(z),E.push(U)}var Y=d3.layout.pie().sort(null).value(function(t){return t.disabled?0:o(t)});Y.padAngle&&$&&Y.padAngle($),g&&m&&(W.append("text").attr("class","nv-pie-title"),q.select(".nv-pie-title").style("text-anchor","middle").text(function(t){return m}).style("font-size",Math.min(T,O)*M*2/(m.length+2)+"px").attr("dy","0.35em").attr("transform",function(t,e){return"translate(0, "+y+")"}));var B=q.select(".nv-pie").selectAll(".nv-slice").data(Y),G=q.select(".nv-pieLabels").selectAll(".nv-label").data(Y);B.exit().remove(),G.exit().remove();var X=B.enter().append("g");X.attr("class","nv-slice"),X.on("mouseover",function(t,e){d3.select(this).classed("hover",!0),v&&d3.select(this).select("path").transition().duration(70).attr("d",E[e]),S.elementMouseover({data:t.data,index:e,color:d3.select(this).style("fill")})}),X.on("mouseout",function(t,e){d3.select(this).classed("hover",!1),v&&d3.select(this).select("path").transition().duration(50).attr("d",A[e]),S.elementMouseout({data:t.data,index:e})}),X.on("mousemove",function(t,e){S.elementMousemove({data:t.data,index:e})}),X.on("click",function(t,e){S.elementClick({data:t.data,index:e,color:d3.select(this).style("fill")})}),X.on("dblclick",function(t,e){S.elementDblClick({data:t.data,index:e,color:d3.select(this).style("fill")})}),B.attr("fill",function(t,e){return l(t.data,e)}),B.attr("stroke",function(t,e){return l(t.data,e)});X.append("path").each(function(t){this._current=t});if(B.select("path").transition().attr("d",function(t,e){return A[e](t)}).attrTween("d",_),f){for(var Z=[],L=0;L<e[0].length;L++)Z.push(A[L]),d?g&&(Z[L]=d3.svg.arc().outerRadius(A[L].outerRadius()),x!==!1&&Z[L].startAngle(x),w!==!1&&Z[L].endAngle(w)):g||Z[L].innerRadius(0);G.enter().append("g").classed("nv-label",!0).each(function(t,e){var n=d3.select(this);n.attr("transform",function(t,e){if(b){t.outerRadius=P[e]+10,t.innerRadius=P[e]+15;var n=(t.startAngle+t.endAngle)/2*(180/Math.PI);return(t.startAngle+t.endAngle)/2<Math.PI?n-=90:n+=90,"translate("+Z[e].centroid(t)+") rotate("+n+")"}return t.outerRadius=N+10,t.innerRadius=N+15,"translate("+Z[e].centroid(t)+")"}),n.append("rect").style("stroke","#fff").style("fill","#fff").attr("rx",3).attr("ry",3),n.append("text").style("text-anchor",b?(t.startAngle+t.endAngle)/2<Math.PI?"start":"end":"middle").style("fill","#000")});var K={},J=14,Q=140,tt=function(t){return Math.floor(t[0]/Q)*Q+","+Math.floor(t[1]/J)*J};G.watchTransition(D,"pie labels").attr("transform",function(t,e){if(b){t.outerRadius=P[e]+10,t.innerRadius=P[e]+15;var n=(t.startAngle+t.endAngle)/2*(180/Math.PI);return(t.startAngle+t.endAngle)/2<Math.PI?n-=90:n+=90,"translate("+Z[e].centroid(t)+") rotate("+n+")"}t.outerRadius=N+10,t.innerRadius=N+15;var r=Z[e].centroid(t);if(t.value){var i=tt(r);K[i]&&(r[1]-=J),K[tt(r)]=!0}return"translate("+r+")"}),G.select(".nv-label text").style("text-anchor",function(t,e){return b?(t.startAngle+t.endAngle)/2<Math.PI?"start":"end":"middle"}).text(function(t,e){var n=(t.endAngle-t.startAngle)/(2*Math.PI),r="";if(!t.value||h>n)return"";if("function"==typeof p)r=p(t,e,{key:a(t.data),value:o(t.data),percent:c(n)});else switch(p){case"key":r=a(t.data);break;case"value":r=c(o(t.data));break;case"percent":r=d3.format("%")(n)}return r})}}),D.renderEnd("pie immediate"),e}var n={top:0,right:0,bottom:0,left:0},r=500,i=500,a=function(t){return t.x},o=function(t){return t.y},s=Math.floor(1e4*Math.random()),u=null,l=t.utils.defaultColor(),c=d3.format(",.2f"),f=!0,d=!1,p="key",h=.02,g=!1,m=!1,v=!0,y=0,b=!1,x=!1,$=!1,w=!1,k=0,M=.5,C=[],S=d3.dispatch("chartClick","elementClick","elementDblClick","elementMouseover","elementMouseout","elementMousemove","renderEnd"),A=[],E=[],D=t.utils.renderWatch(S);return e.dispatch=S,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{arcsRadius:{get:function(){return C},set:function(t){C=t}},width:{get:function(){return r},set:function(t){r=t}},height:{get:function(){return i},set:function(t){i=t}},showLabels:{get:function(){return f},set:function(t){f=t}},title:{get:function(){return m},set:function(t){m=t}},titleOffset:{get:function(){return y},set:function(t){y=t}},labelThreshold:{get:function(){return h},set:function(t){h=t}},valueFormat:{get:function(){return c},set:function(t){c=t}},x:{get:function(){return a},set:function(t){a=t}},id:{get:function(){return s},set:function(t){s=t}},endAngle:{get:function(){return w},set:function(t){w=t}},startAngle:{get:function(){return x},set:function(t){x=t}},padAngle:{get:function(){return $},set:function(t){$=t}},cornerRadius:{get:function(){return k},set:function(t){k=t}},donutRatio:{get:function(){return M},set:function(t){M=t}},labelsOutside:{get:function(){return d},set:function(t){d=t}},labelSunbeamLayout:{get:function(){return b},set:function(t){b=t}},donut:{get:function(){return g},set:function(t){g=t}},growOnHover:{get:function(){return v},set:function(t){v=t}},pieLabelsOutside:{get:function(){return d},set:function(e){d=e,t.deprecated("pieLabelsOutside","use labelsOutside instead")}},donutLabelsOutside:{get:function(){return d},set:function(e){d=e,t.deprecated("donutLabelsOutside","use labelsOutside instead")}},labelFormat:{get:function(){return c},set:function(e){c=e,t.deprecated("labelFormat","use valueFormat instead")}},margin:{get:function(){return n},set:function(t){n.top="undefined"!=typeof t.top?t.top:n.top,n.right="undefined"!=typeof t.right?t.right:n.right,n.bottom="undefined"!=typeof t.bottom?t.bottom:n.bottom,n.left="undefined"!=typeof t.left?t.left:n.left}},y:{get:function(){return o},set:function(t){o=d3.functor(t)}},color:{get:function(){return l},set:function(e){l=t.utils.getColor(e)}},labelType:{get:function(){return p},set:function(t){p=t||"key"}}}),t.utils.initOptions(e),e},t.models.pieChart=function(){"use strict";function e(i){return m.reset(),m.models(n),i.each(function(i){var c=d3.select(this);t.utils.initSVG(c);var p=t.utils.availableWidth(o,c,a),h=t.utils.availableHeight(s,c,a);if(e.update=function(){c.transition().call(e)},e.container=this,f.setter(y(i),e.update).getter(v(i)).update(),f.disabled=i.map(function(t){return!!t.disabled}),!d){var m;d={};for(m in f)f[m]instanceof Array?d[m]=f[m].slice(0):d[m]=f[m]}if(!i||!i.length)return t.utils.noData(e,c),e;c.selectAll(".nv-noData").remove();var b=c.selectAll("g.nv-wrap.nv-pieChart").data([i]),x=b.enter().append("g").attr("class","nvd3 nv-wrap nv-pieChart").append("g"),$=b.select("g");if(x.append("g").attr("class","nv-pieWrap"),x.append("g").attr("class","nv-legendWrap"),u)if("top"===l)r.width(p).key(n.x()),b.select(".nv-legendWrap").datum(i).call(r),a.top!=r.height()&&(a.top=r.height(),h=t.utils.availableHeight(s,c,a)),b.select(".nv-legendWrap").attr("transform","translate(0,"+-a.top+")");else if("right"===l){var w=t.models.legend().width();w>p/2&&(w=p/2),r.height(h).key(n.x()),r.width(w),p-=r.width(),b.select(".nv-legendWrap").datum(i).call(r).attr("transform","translate("+p+",0)")}b.attr("transform","translate("+a.left+","+a.top+")"),n.width(p).height(h);var k=$.select(".nv-pieWrap").datum([i]);d3.transition(k).call(n),r.dispatch.on("stateChange",function(t){for(var n in t)f[n]=t[n];g.stateChange(f),e.update()}),g.on("changeState",function(t){"undefined"!=typeof t.disabled&&(i.forEach(function(e,n){e.disabled=t.disabled[n]}),f.disabled=t.disabled),e.update()})}),m.renderEnd("pieChart immediate"),e}var n=t.models.pie(),r=t.models.legend(),i=t.models.tooltip(),a={top:30,right:20,bottom:20,left:20},o=null,s=null,u=!0,l="top",c=t.utils.defaultColor(),f=t.utils.state(),d=null,p=null,h=250,g=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd");i.headerEnabled(!1).duration(0).valueFormatter(function(t,e){return n.valueFormat()(t,e)});var m=t.utils.renderWatch(g),v=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},y=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};return n.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:e.x()(t.data),value:e.y()(t.data),color:t.color},i.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){i.hidden(!0)}),n.dispatch.on("elementMousemove.tooltip",function(t){i.position({top:d3.event.pageY,left:d3.event.pageX})()}),e.legend=r,e.dispatch=g,e.pie=n,e.tooltip=i,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{noData:{get:function(){return p},set:function(t){p=t}},showLegend:{get:function(){return u},set:function(t){u=t}},legendPosition:{get:function(){return l},set:function(t){l=t}},defaultState:{get:function(){return d},set:function(t){d=t}},tooltips:{get:function(){return i.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),i.enabled(!!e)}},tooltipContent:{get:function(){return i.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),i.contentGenerator(e)}},color:{get:function(){return c},set:function(t){c=t,r.color(c),n.color(c)}},duration:{get:function(){return h},set:function(t){h=t,m.reset(h)}},margin:{get:function(){return a},set:function(t){a.top=void 0!==t.top?t.top:a.top,a.right=void 0!==t.right?t.right:a.right,a.bottom=void 0!==t.bottom?t.bottom:a.bottom,a.left=void 0!==t.left?t.left:a.left}}}),t.utils.inheritOptions(e,n),t.utils.initOptions(e),e},t.models.scatter=function(){"use strict";function e(q){return V.reset(),q.each(function(e){function q(){if(H=!1,!w)return!1;if(L===!0){var t=d3.merge(e.map(function(t,e){return t.values.map(function(t,n){var r=g(t,n),i=m(t,n);return[d(r)+1e-4*Math.random(),p(i)+1e-4*Math.random(),e,n,t]}).filter(function(t,e){return k(t[4],e)})}));if(0==t.length)return!1;t.length<3&&(t.push([d.range()[0]-20,p.range()[0]-20,null,null]),t.push([d.range()[1]+20,p.range()[1]+20,null,null]),t.push([d.range()[0]-20,p.range()[0]+20,null,null]),t.push([d.range()[1]+20,p.range()[1]-20,null,null]));var n=d3.geom.polygon([[-10,-10],[-10,u+10],[s+10,u+10],[s+10,-10]]),r=d3.geom.voronoi(t).map(function(e,r){return{data:n.clip(e),series:t[r][2],point:t[r][3]}});Y.select(".nv-point-paths").selectAll("path").remove();var i=Y.select(".nv-point-paths").selectAll("path").data(r),a=i.enter().append("svg:path").attr("d",function(t){return t&&t.data&&0!==t.data.length?"M"+t.data.join(",")+"Z":"M 0 0"}).attr("id",function(t,e){return"nv-path-"+e}).attr("clip-path",function(t,e){return"url(#nv-clip-"+e+")"});E&&a.style("fill",d3.rgb(230,230,230)).style("fill-opacity",.4).style("stroke-opacity",1).style("stroke",d3.rgb(200,200,200)),A&&(Y.select(".nv-point-clips").selectAll("clipPath").remove(),Y.select(".nv-point-clips").selectAll("clipPath").data(t).enter().append("svg:clipPath").attr("id",function(t,e){return"nv-clip-"+e}).append("svg:circle").attr("cx",function(t){return t[0]}).attr("cy",function(t){return t[1]}).attr("r",D));var c=function(t,n){if(H)return 0;var r=e[t.series];if(void 0!==r){var i=r.values[t.point];i.color=l(r,t.series),i.x=g(i),i.y=m(i);var a=f.node().getBoundingClientRect(),s=window.pageYOffset||document.documentElement.scrollTop,u=window.pageXOffset||document.documentElement.scrollLeft,c={left:d(g(i,t.point))+a.left+u+o.left+10,top:p(m(i,t.point))+a.top+s+o.top+10};n({point:i,series:r,pos:c,seriesIndex:t.series,pointIndex:t.point})}};i.on("click",function(t){c(t,I.elementClick)}).on("dblclick",function(t){c(t,I.elementDblClick)}).on("mouseover",function(t){c(t,I.elementMouseover)}).on("mouseout",function(t,e){c(t,I.elementMouseout)})}else Y.select(".nv-groups").selectAll(".nv-group").selectAll(".nv-point").on("click",function(t,n){if(H||!e[t.series])return 0;var r=e[t.series],i=r.values[n];I.elementClick({point:i,series:r,pos:[d(g(i,n))+o.left,p(m(i,n))+o.top],seriesIndex:t.series,pointIndex:n})}).on("dblclick",function(t,n){if(H||!e[t.series])return 0;var r=e[t.series],i=r.values[n];I.elementDblClick({point:i,series:r,pos:[d(g(i,n))+o.left,p(m(i,n))+o.top],seriesIndex:t.series,pointIndex:n})}).on("mouseover",function(t,n){if(H||!e[t.series])return 0;var r=e[t.series],i=r.values[n];I.elementMouseover({point:i,series:r,pos:[d(g(i,n))+o.left,p(m(i,n))+o.top],seriesIndex:t.series,pointIndex:n,color:l(t,n)})}).on("mouseout",function(t,n){if(H||!e[t.series])return 0;var r=e[t.series],i=r.values[n];I.elementMouseout({point:i,series:r,seriesIndex:t.series,pointIndex:n,color:l(t,n)})})}f=d3.select(this);var W=t.utils.availableWidth(s,f,o),z=t.utils.availableHeight(u,f,o);t.utils.initSVG(f),e.forEach(function(t,e){t.values.forEach(function(t){t.series=e})});var U=_&&T&&P?[]:d3.merge(e.map(function(t){return t.values.map(function(t,e){return{x:g(t,e),y:m(t,e),size:v(t,e)}})}));d.domain(_||d3.extent(U.map(function(t){return t.x}).concat(b))),M&&e[0]?d.range(O||[(W*C+W)/(2*e[0].values.length),W-W*(1+C)/(2*e[0].values.length)]):d.range(O||[0,W]),p.domain(T||d3.extent(U.map(function(t){return t.y}).concat(x))).range(N||[z,0]),h.domain(P||d3.extent(U.map(function(t){return t.size}).concat($))).range(F||R),j=d.domain()[0]===d.domain()[1]||p.domain()[0]===p.domain()[1],d.domain()[0]===d.domain()[1]&&(d.domain()[0]?d.domain([d.domain()[0]-.01*d.domain()[0],d.domain()[1]+.01*d.domain()[1]]):d.domain([-1,1])),p.domain()[0]===p.domain()[1]&&(p.domain()[0]?p.domain([p.domain()[0]-.01*p.domain()[0],p.domain()[1]+.01*p.domain()[1]]):p.domain([-1,1])),isNaN(d.domain()[0])&&d.domain([-1,1]),isNaN(p.domain()[0])&&p.domain([-1,1]),n=n||d,r=r||p,i=i||h;var Y=f.selectAll("g.nv-wrap.nv-scatter").data([e]),B=Y.enter().append("g").attr("class","nvd3 nv-wrap nv-scatter nv-chart-"+c),G=B.append("defs"),X=B.append("g"),Z=Y.select("g");Y.classed("nv-single-point",j),X.append("g").attr("class","nv-groups"),X.append("g").attr("class","nv-point-paths"),B.append("g").attr("class","nv-point-clips"),Y.attr("transform","translate("+o.left+","+o.top+")"),G.append("clipPath").attr("id","nv-edge-clip-"+c).append("rect"),Y.select("#nv-edge-clip-"+c+" rect").attr("width",W).attr("height",z>0?z:0),Z.attr("clip-path",S?"url(#nv-edge-clip-"+c+")":""),H=!0;var K=Y.select(".nv-groups").selectAll(".nv-group").data(function(t){return t},function(t){return t.key});K.enter().append("g").style("stroke-opacity",1e-6).style("fill-opacity",1e-6),K.exit().remove(),K.attr("class",function(t,e){return"nv-group nv-series-"+e}).classed("hover",function(t){return t.hover}),K.watchTransition(V,"scatter: groups").style("fill",function(t,e){return l(t,e)}).style("stroke",function(t,e){return l(t,e)}).style("stroke-opacity",1).style("fill-opacity",.5);var J=K.selectAll("path.nv-point").data(function(t){return t.values.map(function(t,e){return[t,e]}).filter(function(t,e){return k(t[0],e)})});J.enter().append("path").style("fill",function(t){return t.color}).style("stroke",function(t){return t.color}).attr("transform",function(t){return"translate("+n(g(t[0],t[1]))+","+r(m(t[0],t[1]))+")"}).attr("d",t.utils.symbol().type(function(t){return y(t[0])}).size(function(t){return h(v(t[0],t[1]))})),J.exit().remove(),K.exit().selectAll("path.nv-point").watchTransition(V,"scatter exit").attr("transform",function(t){return"translate("+d(g(t[0],t[1]))+","+p(m(t[0],t[1]))+")"}).remove(),J.each(function(t){d3.select(this).classed("nv-point",!0).classed("nv-point-"+t[1],!0).classed("nv-noninteractive",!w).classed("hover",!1)}),J.watchTransition(V,"scatter points").attr("transform",function(t){return"translate("+d(g(t[0],t[1]))+","+p(m(t[0],t[1]))+")"}).attr("d",t.utils.symbol().type(function(t){return y(t[0])}).size(function(t){return h(v(t[0],t[1]))})),clearTimeout(a),a=setTimeout(q,300),n=d.copy(),r=p.copy(),i=h.copy()}),V.renderEnd("scatter immediate"),e}var n,r,i,a,o={top:0,right:0,bottom:0,left:0},s=null,u=null,l=t.utils.defaultColor(),c=Math.floor(1e5*Math.random()),f=null,d=d3.scale.linear(),p=d3.scale.linear(),h=d3.scale.linear(),g=function(t){return t.x},m=function(t){return t.y},v=function(t){return t.size||1},y=function(t){return t.shape||"circle"},b=[],x=[],$=[],w=!0,k=function(t){return!t.notActive},M=!1,C=.1,S=!1,A=!0,E=!1,D=function(){return 25},_=null,T=null,O=null,N=null,P=null,F=null,j=!1,I=d3.dispatch("elementClick","elementDblClick","elementMouseover","elementMouseout","renderEnd"),L=!0,q=250,H=!1,V=t.utils.renderWatch(I,q),R=[16,256];return e.dispatch=I,e.options=t.utils.optionsFunc.bind(e),e._calls=new function(){this.clearHighlights=function(){return t.dom.write(function(){f.selectAll(".nv-point.hover").classed("hover",!1)}),null},this.highlightPoint=function(e,n,r){t.dom.write(function(){f.select(" .nv-series-"+e+" .nv-point-"+n).classed("hover",r)})}},I.on("elementMouseover.point",function(t){w&&e._calls.highlightPoint(t.seriesIndex,t.pointIndex,!0)}),I.on("elementMouseout.point",function(t){w&&e._calls.highlightPoint(t.seriesIndex,t.pointIndex,!1)}),e._options=Object.create({},{width:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return u},set:function(t){u=t}},xScale:{get:function(){return d},set:function(t){d=t}},yScale:{get:function(){return p},set:function(t){p=t}},pointScale:{get:function(){return h},set:function(t){h=t}},xDomain:{get:function(){return _},set:function(t){_=t}},yDomain:{get:function(){return T},set:function(t){T=t}},pointDomain:{get:function(){return P},set:function(t){P=t}},xRange:{get:function(){return O},set:function(t){O=t}},yRange:{get:function(){return N},set:function(t){N=t}},pointRange:{get:function(){return F},set:function(t){F=t}},forceX:{get:function(){return b},set:function(t){b=t}},forceY:{get:function(){return x},set:function(t){x=t}},forcePoint:{get:function(){return $},set:function(t){$=t}},interactive:{get:function(){return w},set:function(t){w=t}},pointActive:{get:function(){return k},set:function(t){k=t}},padDataOuter:{get:function(){return C},set:function(t){C=t}},padData:{get:function(){return M},set:function(t){M=t}},clipEdge:{get:function(){return S},set:function(t){S=t}},clipVoronoi:{get:function(){return A},set:function(t){A=t}},clipRadius:{get:function(){return D},set:function(t){D=t}},showVoronoi:{get:function(){return E},set:function(t){E=t}},id:{get:function(){return c},set:function(t){c=t}},x:{get:function(){return g},set:function(t){g=d3.functor(t)}},y:{get:function(){return m},set:function(t){m=d3.functor(t)}},pointSize:{get:function(){return v},set:function(t){v=d3.functor(t)}},pointShape:{get:function(){return y},set:function(t){y=d3.functor(t)}},margin:{get:function(){return o},set:function(t){o.top=void 0!==t.top?t.top:o.top,o.right=void 0!==t.right?t.right:o.right,o.bottom=void 0!==t.bottom?t.bottom:o.bottom,o.left=void 0!==t.left?t.left:o.left}},duration:{get:function(){return q},set:function(t){q=t,V.reset(q)}},color:{get:function(){return l},set:function(e){l=t.utils.getColor(e)}},useVoronoi:{get:function(){return L},set:function(t){L=t,L===!1&&(A=!1)}}}),t.utils.initOptions(e),e},t.models.scatterChart=function(){"use strict";function e(C){return D.reset(),D.models(n),b&&D.models(r),x&&D.models(i),m&&D.models(o),v&&D.models(s),C.each(function(C){d=d3.select(this),t.utils.initSVG(d);var O=t.utils.availableWidth(c,d,l),N=t.utils.availableHeight(f,d,l);if(e.update=function(){0===S?d.call(e):d.transition().duration(S).call(e)},e.container=this,w.setter(T(C),e.update).getter(_(C)).update(),w.disabled=C.map(function(t){return!!t.disabled}),!k){var P;k={};for(P in w)w[P]instanceof Array?k[P]=w[P].slice(0):k[P]=w[P]}if(!(C&&C.length&&C.filter(function(t){return t.values.length}).length))return t.utils.noData(e,d),D.renderEnd("scatter immediate"),e;d.selectAll(".nv-noData").remove(),h=n.xScale(),g=n.yScale();var F=d.selectAll("g.nv-wrap.nv-scatterChart").data([C]),j=F.enter().append("g").attr("class","nvd3 nv-wrap nv-scatterChart nv-chart-"+n.id()),I=j.append("g"),L=F.select("g");if(I.append("rect").attr("class","nvd3 nv-background").style("pointer-events","none"),I.append("g").attr("class","nv-x nv-axis"),I.append("g").attr("class","nv-y nv-axis"),I.append("g").attr("class","nv-scatterWrap"),I.append("g").attr("class","nv-regressionLinesWrap"),I.append("g").attr("class","nv-distWrap"),I.append("g").attr("class","nv-legendWrap"),$&&L.select(".nv-y.nv-axis").attr("transform","translate("+O+",0)"),y){var q=O;a.width(q),F.select(".nv-legendWrap").datum(C).call(a),l.top!=a.height()&&(l.top=a.height(),N=t.utils.availableHeight(f,d,l)),F.select(".nv-legendWrap").attr("transform","translate(0,"+-l.top+")")}F.attr("transform","translate("+l.left+","+l.top+")"),n.width(O).height(N).color(C.map(function(t,e){return t.color=t.color||p(t,e),t.color}).filter(function(t,e){return!C[e].disabled})),F.select(".nv-scatterWrap").datum(C.filter(function(t){return!t.disabled})).call(n),F.select(".nv-regressionLinesWrap").attr("clip-path","url(#nv-edge-clip-"+n.id()+")");var H=F.select(".nv-regressionLinesWrap").selectAll(".nv-regLines").data(function(t){return t});H.enter().append("g").attr("class","nv-regLines");var V=H.selectAll(".nv-regLine").data(function(t){return[t]});V.enter().append("line").attr("class","nv-regLine").style("stroke-opacity",0),V.filter(function(t){return t.intercept&&t.slope}).watchTransition(D,"scatterPlusLineChart: regline").attr("x1",h.range()[0]).attr("x2",h.range()[1]).attr("y1",function(t,e){return g(h.domain()[0]*t.slope+t.intercept)}).attr("y2",function(t,e){return g(h.domain()[1]*t.slope+t.intercept)}).style("stroke",function(t,e,n){return p(t,n)}).style("stroke-opacity",function(t,e){return t.disabled||"undefined"==typeof t.slope||"undefined"==typeof t.intercept?0:1}),b&&(r.scale(h)._ticks(t.utils.calcTicksX(O/100,C)).tickSize(-N,0),L.select(".nv-x.nv-axis").attr("transform","translate(0,"+g.range()[0]+")").call(r)),x&&(i.scale(g)._ticks(t.utils.calcTicksY(N/36,C)).tickSize(-O,0),L.select(".nv-y.nv-axis").call(i)),m&&(o.getData(n.x()).scale(h).width(O).color(C.map(function(t,e){return t.color||p(t,e)}).filter(function(t,e){return!C[e].disabled})),I.select(".nv-distWrap").append("g").attr("class","nv-distributionX"),L.select(".nv-distributionX").attr("transform","translate(0,"+g.range()[0]+")").datum(C.filter(function(t){return!t.disabled})).call(o)),v&&(s.getData(n.y()).scale(g).width(N).color(C.map(function(t,e){return t.color||p(t,e)}).filter(function(t,e){return!C[e].disabled})),I.select(".nv-distWrap").append("g").attr("class","nv-distributionY"),L.select(".nv-distributionY").attr("transform","translate("+($?O:-s.size())+",0)").datum(C.filter(function(t){return!t.disabled})).call(s)),a.dispatch.on("stateChange",function(t){for(var n in t)w[n]=t[n];M.stateChange(w),e.update()}),M.on("changeState",function(t){"undefined"!=typeof t.disabled&&(C.forEach(function(e,n){e.disabled=t.disabled[n]}),w.disabled=t.disabled),e.update()}),n.dispatch.on("elementMouseout.tooltip",function(t){u.hidden(!0),d.select(".nv-chart-"+n.id()+" .nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",0),d.select(".nv-chart-"+n.id()+" .nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",s.size())}),n.dispatch.on("elementMouseover.tooltip",function(t){d.select(".nv-series-"+t.seriesIndex+" .nv-distx-"+t.pointIndex).attr("y1",t.pos.top-N-l.top),d.select(".nv-series-"+t.seriesIndex+" .nv-disty-"+t.pointIndex).attr("x2",t.pos.left+o.size()-l.left),u.position(t.pos).data(t).hidden(!1)}),A=h.copy(),E=g.copy()}),D.renderEnd("scatter with line immediate"),e}var n=t.models.scatter(),r=t.models.axis(),i=t.models.axis(),a=t.models.legend(),o=t.models.distribution(),s=t.models.distribution(),u=t.models.tooltip(),l={top:30,right:20,bottom:50,left:75},c=null,f=null,d=null,p=t.utils.defaultColor(),h=n.xScale(),g=n.yScale(),m=!1,v=!1,y=!0,b=!0,x=!0,$=!1,w=t.utils.state(),k=null,M=d3.dispatch("stateChange","changeState","renderEnd"),C=null,S=250;n.xScale(h).yScale(g),r.orient("bottom").tickPadding(10),i.orient($?"right":"left").tickPadding(10),o.axis("x"),s.axis("y"),u.headerFormatter(function(t,e){return r.tickFormat()(t,e)}).valueFormatter(function(t,e){return i.tickFormat()(t,e)});var A,E,D=t.utils.renderWatch(M,S),_=function(t){return function(){return{active:t.map(function(t){return!t.disabled})}}},T=function(t){return function(e){void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}};return e.dispatch=M,e.scatter=n,e.legend=a,e.xAxis=r,e.yAxis=i,e.distX=o,e.distY=s,e.tooltip=u,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return c},set:function(t){c=t}},height:{get:function(){return f},set:function(t){f=t}},container:{get:function(){return d},set:function(t){d=t}},showDistX:{get:function(){return m},set:function(t){m=t}},showDistY:{get:function(){return v},set:function(t){v=t}},showLegend:{get:function(){return y},set:function(t){y=t}},showXAxis:{get:function(){return b},set:function(t){b=t}},showYAxis:{get:function(){return x},set:function(t){x=t}},defaultState:{get:function(){return k},set:function(t){k=t}},noData:{get:function(){return C},set:function(t){C=t}},duration:{get:function(){return S},set:function(t){S=t}},tooltips:{get:function(){return u.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),u.enabled(!!e)}},tooltipContent:{get:function(){return u.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),u.contentGenerator(e)}},tooltipXContent:{get:function(){return u.contentGenerator()},set:function(e){t.deprecated("tooltipContent","This option is removed, put values into main tooltip.")}},tooltipYContent:{get:function(){return u.contentGenerator()},set:function(e){t.deprecated("tooltipContent","This option is removed, put values into main tooltip.")}},margin:{get:function(){return l},set:function(t){l.top=void 0!==t.top?t.top:l.top,l.right=void 0!==t.right?t.right:l.right,l.bottom=void 0!==t.bottom?t.bottom:l.bottom,l.left=void 0!==t.left?t.left:l.left}},rightAlignYAxis:{get:function(){return $},set:function(t){$=t,i.orient(t?"right":"left")}},color:{get:function(){return p},set:function(e){p=t.utils.getColor(e),a.color(p),o.color(p),s.color(p)}}}),t.utils.inheritOptions(e,n),t.utils.initOptions(e),e},t.models.sparkline=function(){"use strict";function e(c){return c.each(function(e){var c=s-o.left-o.right,m=u-o.top-o.bottom;l=d3.select(this),t.utils.initSVG(l),f.domain(n||d3.extent(e,p)).range(i||[0,c]),d.domain(r||d3.extent(e,h)).range(a||[m,0]);var v=l.selectAll("g.nv-wrap.nv-sparkline").data([e]),y=v.enter().append("g").attr("class","nvd3 nv-wrap nv-sparkline");y.append("g"),v.select("g");v.attr("transform","translate("+o.left+","+o.top+")");var b=v.selectAll("path").data(function(t){return[t]});b.enter().append("path"),b.exit().remove(),b.style("stroke",function(t,e){return t.color||g(t,e)}).attr("d",d3.svg.line().x(function(t,e){return f(p(t,e))}).y(function(t,e){return d(h(t,e))}));var x=v.selectAll("circle.nv-point").data(function(t){function e(e){if(-1!=e){var n=t[e];return n.pointIndex=e,n}return null}var n=t.map(function(t,e){return h(t,e)}),r=e(n.lastIndexOf(d.domain()[1])),i=e(n.indexOf(d.domain()[0])),a=e(n.length-1);return[i,r,a].filter(function(t){return null!=t})});x.enter().append("circle"),x.exit().remove(),x.attr("cx",function(t,e){return f(p(t,t.pointIndex))}).attr("cy",function(t,e){return d(h(t,t.pointIndex))}).attr("r",2).attr("class",function(t,e){return p(t,t.pointIndex)==f.domain()[1]?"nv-point nv-currentValue":h(t,t.pointIndex)==d.domain()[0]?"nv-point nv-minValue":"nv-point nv-maxValue"})}),e}var n,r,i,a,o={top:2,right:0,bottom:2,left:0},s=400,u=32,l=null,c=!0,f=d3.scale.linear(),d=d3.scale.linear(),p=function(t){return t.x},h=function(t){return t.y},g=t.utils.getColor(["#000"]);return e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return s},set:function(t){s=t}},height:{get:function(){return u},set:function(t){u=t}},xDomain:{get:function(){return n},set:function(t){n=t}},yDomain:{get:function(){return r},set:function(t){r=t}},xRange:{get:function(){return i},set:function(t){i=t}},yRange:{get:function(){return a},set:function(t){a=t}},xScale:{get:function(){return f},set:function(t){f=t}},yScale:{get:function(){return d},set:function(t){d=t}},animate:{get:function(){return c},set:function(t){c=t}},x:{get:function(){return p},set:function(t){p=d3.functor(t)}},y:{get:function(){return h},set:function(t){h=d3.functor(t)}},margin:{get:function(){return o},set:function(t){o.top=void 0!==t.top?t.top:o.top,o.right=void 0!==t.right?t.right:o.right,o.bottom=void 0!==t.bottom?t.bottom:o.bottom,o.left=void 0!==t.left?t.left:o.left}},color:{get:function(){return g},set:function(e){g=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.sparklinePlus=function(){"use strict";function e(g){return g.each(function(g){function m(){if(!l){var t=C.selectAll(".nv-hoverValue").data(u),e=t.enter().append("g").attr("class","nv-hoverValue").style("stroke-opacity",0).style("fill-opacity",0);t.exit().transition().duration(250).style("stroke-opacity",0).style("fill-opacity",0).remove(),t.attr("transform",function(t){return"translate("+n(i.x()(g[t],t))+",0)"}).transition().duration(250).style("stroke-opacity",1).style("fill-opacity",1),u.length&&(e.append("line").attr("x1",0).attr("y1",-a.top).attr("x2",0).attr("y2",x),e.append("text").attr("class","nv-xValue").attr("x",-6).attr("y",-a.top).attr("text-anchor","end").attr("dy",".9em"),C.select(".nv-hoverValue .nv-xValue").text(c(i.x()(g[u[0]],u[0]))),e.append("text").attr("class","nv-yValue").attr("x",6).attr("y",-a.top).attr("text-anchor","start").attr("dy",".9em"),
|
||
C.select(".nv-hoverValue .nv-yValue").text(f(i.y()(g[u[0]],u[0]))))}}function v(){function t(t,e){for(var n=Math.abs(i.x()(t[0],0)-e),r=0,a=0;a<t.length;a++)Math.abs(i.x()(t[a],a)-e)<n&&(n=Math.abs(i.x()(t[a],a)-e),r=a);return r}if(!l){var e=d3.mouse(this)[0]-a.left;u=[t(g,Math.round(n.invert(e)))],m()}}var y=d3.select(this);t.utils.initSVG(y);var b=t.utils.availableWidth(o,y,a),x=t.utils.availableHeight(s,y,a);if(e.update=function(){y.call(e)},e.container=this,!g||!g.length)return t.utils.noData(e,y),e;y.selectAll(".nv-noData").remove();var $=i.y()(g[g.length-1],g.length-1);n=i.xScale(),r=i.yScale();var w=y.selectAll("g.nv-wrap.nv-sparklineplus").data([g]),k=w.enter().append("g").attr("class","nvd3 nv-wrap nv-sparklineplus"),M=k.append("g"),C=w.select("g");M.append("g").attr("class","nv-sparklineWrap"),M.append("g").attr("class","nv-valueWrap"),M.append("g").attr("class","nv-hoverArea"),w.attr("transform","translate("+a.left+","+a.top+")");var S=C.select(".nv-sparklineWrap");if(i.width(b).height(x),S.call(i),d){var A=C.select(".nv-valueWrap"),E=A.selectAll(".nv-currentValue").data([$]);E.enter().append("text").attr("class","nv-currentValue").attr("dx",h?-8:8).attr("dy",".9em").style("text-anchor",h?"end":"start"),E.attr("x",b+(h?a.right:0)).attr("y",p?function(t){return r(t)}:0).style("fill",i.color()(g[g.length-1],g.length-1)).text(f($))}M.select(".nv-hoverArea").append("rect").on("mousemove",v).on("click",function(){l=!l}).on("mouseout",function(){u=[],m()}),C.select(".nv-hoverArea rect").attr("transform",function(t){return"translate("+-a.left+","+-a.top+")"}).attr("width",b+a.left+a.right).attr("height",x+a.top)}),e}var n,r,i=t.models.sparkline(),a={top:15,right:100,bottom:10,left:50},o=null,s=null,u=[],l=!1,c=d3.format(",r"),f=d3.format(",.2f"),d=!0,p=!0,h=!1,g=null;return e.sparkline=i,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},xTickFormat:{get:function(){return c},set:function(t){c=t}},yTickFormat:{get:function(){return f},set:function(t){f=t}},showLastValue:{get:function(){return d},set:function(t){d=t}},alignValue:{get:function(){return p},set:function(t){p=t}},rightAlignValue:{get:function(){return h},set:function(t){h=t}},noData:{get:function(){return g},set:function(t){g=t}},margin:{get:function(){return a},set:function(t){a.top=void 0!==t.top?t.top:a.top,a.right=void 0!==t.right?t.right:a.right,a.bottom=void 0!==t.bottom?t.bottom:a.bottom,a.left=void 0!==t.left?t.left:a.left}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.stackedArea=function(){"use strict";function e(d){return x.reset(),x.models(v),d.each(function(d){var y=a-i.left-i.right,$=o-i.top-i.bottom;l=d3.select(this),t.utils.initSVG(l),n=v.xScale(),r=v.yScale();var w=d;d.forEach(function(t,e){t.seriesIndex=e,t.values=t.values.map(function(t,n){return t.index=n,t.seriesIndex=e,t})});var k=d.filter(function(t){return!t.disabled});d=d3.layout.stack().order(h).offset(p).values(function(t){return t.values}).x(c).y(f).out(function(t,e,n){t.display={y:n,y0:e}})(k);var M=l.selectAll("g.nv-wrap.nv-stackedarea").data([d]),C=M.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedarea"),S=C.append("defs"),A=C.append("g"),E=M.select("g");A.append("g").attr("class","nv-areaWrap"),A.append("g").attr("class","nv-scatterWrap"),M.attr("transform","translate("+i.left+","+i.top+")"),0==v.forceY().length&&v.forceY().push(0),v.width(y).height($).x(c).y(function(t){return t.display.y+t.display.y0}).forceY([0]).color(d.map(function(t,e){return t.color||s(t,t.seriesIndex)}));var D=E.select(".nv-scatterWrap").datum(d);D.call(v),S.append("clipPath").attr("id","nv-edge-clip-"+u).append("rect"),M.select("#nv-edge-clip-"+u+" rect").attr("width",y).attr("height",$),E.attr("clip-path",m?"url(#nv-edge-clip-"+u+")":"");var _=d3.svg.area().x(function(t,e){return n(c(t,e))}).y0(function(t){return r(t.display.y0)}).y1(function(t){return r(t.display.y+t.display.y0)}).interpolate(g),T=d3.svg.area().x(function(t,e){return n(c(t,e))}).y0(function(t){return r(t.display.y0)}).y1(function(t){return r(t.display.y0)}),O=E.select(".nv-areaWrap").selectAll("path.nv-area").data(function(t){return t});O.enter().append("path").attr("class",function(t,e){return"nv-area nv-area-"+e}).attr("d",function(t,e){return T(t.values,t.seriesIndex)}).on("mouseover",function(t,e){d3.select(this).classed("hover",!0),b.areaMouseover({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1),b.areaMouseout({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}).on("click",function(t,e){d3.select(this).classed("hover",!1),b.areaClick({point:t,series:t.key,pos:[d3.event.pageX,d3.event.pageY],seriesIndex:t.seriesIndex})}),O.exit().remove(),O.style("fill",function(t,e){return t.color||s(t,t.seriesIndex)}).style("stroke",function(t,e){return t.color||s(t,t.seriesIndex)}),O.watchTransition(x,"stackedArea path").attr("d",function(t,e){return _(t.values,e)}),v.dispatch.on("elementMouseover.area",function(t){E.select(".nv-chart-"+u+" .nv-area-"+t.seriesIndex).classed("hover",!0)}),v.dispatch.on("elementMouseout.area",function(t){E.select(".nv-chart-"+u+" .nv-area-"+t.seriesIndex).classed("hover",!1)}),e.d3_stackedOffset_stackPercent=function(t){var e,n,r,i=t.length,a=t[0].length,o=[];for(n=0;a>n;++n){for(e=0,r=0;e<w.length;e++)r+=f(w[e].values[n]);if(r)for(e=0;i>e;e++)t[e][n][1]/=r;else for(e=0;i>e;e++)t[e][n][1]=0}for(n=0;a>n;++n)o[n]=0;return o}}),x.renderEnd("stackedArea immediate"),e}var n,r,i={top:0,right:0,bottom:0,left:0},a=960,o=500,s=t.utils.defaultColor(),u=Math.floor(1e5*Math.random()),l=null,c=function(t){return t.x},f=function(t){return t.y},d="stack",p="zero",h="default",g="linear",m=!1,v=t.models.scatter(),y=250,b=d3.dispatch("areaClick","areaMouseover","areaMouseout","renderEnd","elementClick","elementMouseover","elementMouseout");v.pointSize(2.2).pointDomain([2.2,2.2]);var x=t.utils.renderWatch(b,y);return e.dispatch=b,e.scatter=v,v.dispatch.on("elementClick",function(){b.elementClick.apply(this,arguments)}),v.dispatch.on("elementMouseover",function(){b.elementMouseover.apply(this,arguments)}),v.dispatch.on("elementMouseout",function(){b.elementMouseout.apply(this,arguments)}),e.interpolate=function(t){return arguments.length?(g=t,e):g},e.duration=function(t){return arguments.length?(y=t,x.reset(y),v.duration(y),e):y},e.dispatch=b,e.scatter=v,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return a},set:function(t){a=t}},height:{get:function(){return o},set:function(t){o=t}},clipEdge:{get:function(){return m},set:function(t){m=t}},offset:{get:function(){return p},set:function(t){p=t}},order:{get:function(){return h},set:function(t){h=t}},interpolate:{get:function(){return g},set:function(t){g=t}},x:{get:function(){return c},set:function(t){c=d3.functor(t)}},y:{get:function(){return f},set:function(t){f=d3.functor(t)}},margin:{get:function(){return i},set:function(t){i.top=void 0!==t.top?t.top:i.top,i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}},color:{get:function(){return s},set:function(e){s=t.utils.getColor(e)}},style:{get:function(){return d},set:function(t){switch(d=t){case"stack":e.offset("zero"),e.order("default");break;case"stream":e.offset("wiggle"),e.order("inside-out");break;case"stream-center":e.offset("silhouette"),e.order("inside-out");break;case"expand":e.offset("expand"),e.order("default");break;case"stack_percent":e.offset(e.d3_stackedOffset_stackPercent),e.order("default")}}},duration:{get:function(){return y},set:function(t){y=t,x.reset(y),v.duration(y)}}}),t.utils.inheritOptions(e,v),t.utils.initOptions(e),e},t.models.stackedAreaChart=function(){"use strict";function e(c){return T.reset(),T.models(i),v&&T.models(a),y&&T.models(o),c.each(function(c){var k=d3.select(this),T=this;t.utils.initSVG(k);var j=t.utils.availableWidth(d,k,f),I=t.utils.availableHeight(p,k,f);if(e.update=function(){k.transition().duration(E).call(e)},e.container=this,$.setter(P(c),e.update).getter(N(c)).update(),$.disabled=c.map(function(t){return!!t.disabled}),!w){var L;w={};for(L in $)$[L]instanceof Array?w[L]=$[L].slice(0):w[L]=$[L]}if(!(c&&c.length&&c.filter(function(t){return t.values.length}).length))return t.utils.noData(e,k),e;k.selectAll(".nv-noData").remove(),n=i.xScale(),r=i.yScale();var q=k.selectAll("g.nv-wrap.nv-stackedAreaChart").data([c]),H=q.enter().append("g").attr("class","nvd3 nv-wrap nv-stackedAreaChart").append("g"),V=q.select("g");if(H.append("rect").style("opacity",0),H.append("g").attr("class","nv-x nv-axis"),H.append("g").attr("class","nv-y nv-axis"),H.append("g").attr("class","nv-stackedWrap"),H.append("g").attr("class","nv-legendWrap"),H.append("g").attr("class","nv-controlsWrap"),H.append("g").attr("class","nv-interactive"),V.select("rect").attr("width",j).attr("height",I),m){var R=g?j-C:j;s.width(R),V.select(".nv-legendWrap").datum(c).call(s),f.top!=s.height()&&(f.top=s.height(),I=t.utils.availableHeight(p,k,f)),V.select(".nv-legendWrap").attr("transform","translate("+(j-R)+","+-f.top+")")}if(g){var W=[{key:A.stacked||"Stacked",metaKey:"Stacked",disabled:"stack"!=i.style(),style:"stack"},{key:A.stream||"Stream",metaKey:"Stream",disabled:"stream"!=i.style(),style:"stream"},{key:A.expanded||"Expanded",metaKey:"Expanded",disabled:"expand"!=i.style(),style:"expand"},{key:A.stack_percent||"Stack %",metaKey:"Stack_Percent",disabled:"stack_percent"!=i.style(),style:"stack_percent"}];C=S.length/3*260,W=W.filter(function(t){return-1!==S.indexOf(t.metaKey)}),u.width(C).color(["#444","#444","#444"]),V.select(".nv-controlsWrap").datum(W).call(u),f.top!=Math.max(u.height(),s.height())&&(f.top=Math.max(u.height(),s.height()),I=t.utils.availableHeight(p,k,f)),V.select(".nv-controlsWrap").attr("transform","translate(0,"+-f.top+")")}q.attr("transform","translate("+f.left+","+f.top+")"),b&&V.select(".nv-y.nv-axis").attr("transform","translate("+j+",0)"),x&&(l.width(j).height(I).margin({left:f.left,top:f.top}).svgContainer(k).xScale(n),q.select(".nv-interactive").call(l)),i.width(j).height(I);var z=V.select(".nv-stackedWrap").datum(c);if(z.transition().call(i),v&&(a.scale(n)._ticks(t.utils.calcTicksX(j/100,c)).tickSize(-I,0),V.select(".nv-x.nv-axis").attr("transform","translate(0,"+I+")"),V.select(".nv-x.nv-axis").transition().duration(0).call(a)),y){var U;if(U="wiggle"===i.offset()?0:t.utils.calcTicksY(I/36,c),o.scale(r)._ticks(U).tickSize(-j,0),"expand"===i.style()||"stack_percent"===i.style()){var Y=o.tickFormat();D&&Y===F||(D=Y),o.tickFormat(F)}else D&&(o.tickFormat(D),D=null);V.select(".nv-y.nv-axis").transition().duration(0).call(o)}i.dispatch.on("areaClick.toggle",function(t){1===c.filter(function(t){return!t.disabled}).length?c.forEach(function(t){t.disabled=!1}):c.forEach(function(e,n){e.disabled=n!=t.seriesIndex}),$.disabled=c.map(function(t){return!!t.disabled}),M.stateChange($),e.update()}),s.dispatch.on("stateChange",function(t){for(var n in t)$[n]=t[n];M.stateChange($),e.update()}),u.dispatch.on("legendClick",function(t,n){t.disabled&&(W=W.map(function(t){return t.disabled=!0,t}),t.disabled=!1,i.style(t.style),$.style=i.style(),M.stateChange($),e.update())}),l.dispatch.on("elementMousemove",function(n){i.clearHighlights();var r,o,s,u=[];if(c.filter(function(t,e){return t.seriesIndex=e,!t.disabled}).forEach(function(a,l){o=t.interactiveBisect(a.values,n.pointXValue,e.x());var c=a.values[o],f=e.y()(c,o);if(null!=f&&i.highlightPoint(l,o,!0),"undefined"!=typeof c){"undefined"==typeof r&&(r=c),"undefined"==typeof s&&(s=e.xScale()(e.x()(c,o)));var d="expand"==i.style()?c.display.y:e.y()(c,o);u.push({key:a.key,value:d,color:h(a,a.seriesIndex),stackedValue:c.display})}}),u.reverse(),u.length>2){var d=e.yScale().invert(n.mouseY),p=null;u.forEach(function(t,e){d=Math.abs(d);var n=Math.abs(t.stackedValue.y0),r=Math.abs(t.stackedValue.y);return d>=n&&r+n>=d?void(p=e):void 0}),null!=p&&(u[p].highlight=!0)}var g=a.tickFormat()(e.x()(r,o)),m=l.tooltip.valueFormatter();"expand"===i.style()||"stack_percent"===i.style()?(_||(_=m),m=d3.format(".1%")):_&&(m=_,_=null),l.tooltip.position({left:s+f.left,top:n.mouseY+f.top}).chartContainer(T.parentNode).valueFormatter(m).data({value:g,series:u})(),l.renderGuideLine(s)}),l.dispatch.on("elementMouseout",function(t){i.clearHighlights()}),M.on("changeState",function(t){"undefined"!=typeof t.disabled&&c.length===t.disabled.length&&(c.forEach(function(e,n){e.disabled=t.disabled[n]}),$.disabled=t.disabled),"undefined"!=typeof t.style&&(i.style(t.style),O=t.style),e.update()})}),T.renderEnd("stacked Area chart immediate"),e}var n,r,i=t.models.stackedArea(),a=t.models.axis(),o=t.models.axis(),s=t.models.legend(),u=t.models.legend(),l=t.interactiveGuideline(),c=t.models.tooltip(),f={top:30,right:25,bottom:50,left:60},d=null,p=null,h=t.utils.defaultColor(),g=!0,m=!0,v=!0,y=!0,b=!1,x=!1,$=t.utils.state(),w=null,k=null,M=d3.dispatch("stateChange","changeState","renderEnd"),C=250,S=["Stacked","Stream","Expanded"],A={},E=250;$.style=i.style(),a.orient("bottom").tickPadding(7),o.orient(b?"right":"left"),c.headerFormatter(function(t,e){return a.tickFormat()(t,e)}).valueFormatter(function(t,e){return o.tickFormat()(t,e)}),l.tooltip.headerFormatter(function(t,e){return a.tickFormat()(t,e)}).valueFormatter(function(t,e){return o.tickFormat()(t,e)});var D=null,_=null;u.updateState(!1);var T=t.utils.renderWatch(M),O=i.style(),N=function(t){return function(){return{active:t.map(function(t){return!t.disabled}),style:i.style()}}},P=function(t){return function(e){void 0!==e.style&&(O=e.style),void 0!==e.active&&t.forEach(function(t,n){t.disabled=!e.active[n]})}},F=d3.format("%");return i.dispatch.on("elementMouseover.tooltip",function(t){t.point.x=i.x()(t.point),t.point.y=i.y()(t.point),c.data(t).position(t.pos).hidden(!1)}),i.dispatch.on("elementMouseout.tooltip",function(t){c.hidden(!0)}),e.dispatch=M,e.stacked=i,e.legend=s,e.controls=u,e.xAxis=a,e.yAxis=o,e.interactiveLayer=l,e.tooltip=c,e.dispatch=M,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return d},set:function(t){d=t}},height:{get:function(){return p},set:function(t){p=t}},showLegend:{get:function(){return m},set:function(t){m=t}},showXAxis:{get:function(){return v},set:function(t){v=t}},showYAxis:{get:function(){return y},set:function(t){y=t}},defaultState:{get:function(){return w},set:function(t){w=t}},noData:{get:function(){return k},set:function(t){k=t}},showControls:{get:function(){return g},set:function(t){g=t}},controlLabels:{get:function(){return A},set:function(t){A=t}},controlOptions:{get:function(){return S},set:function(t){S=t}},tooltips:{get:function(){return c.enabled()},set:function(e){t.deprecated("tooltips","use chart.tooltip.enabled() instead"),c.enabled(!!e)}},tooltipContent:{get:function(){return c.contentGenerator()},set:function(e){t.deprecated("tooltipContent","use chart.tooltip.contentGenerator() instead"),c.contentGenerator(e)}},margin:{get:function(){return f},set:function(t){f.top=void 0!==t.top?t.top:f.top,f.right=void 0!==t.right?t.right:f.right,f.bottom=void 0!==t.bottom?t.bottom:f.bottom,f.left=void 0!==t.left?t.left:f.left}},duration:{get:function(){return E},set:function(t){E=t,T.reset(E),i.duration(E),a.duration(E),o.duration(E)}},color:{get:function(){return h},set:function(e){h=t.utils.getColor(e),s.color(h),i.color(h)}},rightAlignYAxis:{get:function(){return b},set:function(t){b=t,o.orient(b?"right":"left")}},useInteractiveGuideline:{get:function(){return x},set:function(t){x=!!t,e.interactive(!t),e.useVoronoi(!t),i.scatter.interactive(!t)}}}),t.utils.inheritOptions(e,i),t.utils.initOptions(e),e},t.models.sunburst=function(){"use strict";function e(x){return b.reset(),x.each(function(e){function b(t){t.x0=t.x,t.dx0=t.dx}function x(t){var e=d3.interpolate(g.domain(),[t.x,t.x+t.dx]),n=d3.interpolate(m.domain(),[t.y,1]),r=d3.interpolate(m.range(),[t.y?20:0,M]);return function(t,i){return i?function(e){return y(t)}:function(i){return g.domain(e(i)),m.domain(n(i)).range(r(i)),y(t)}}}f=d3.select(this);var $,w=t.utils.availableWidth(o,f,a),k=t.utils.availableHeight(s,f,a),M=Math.min(w,k)/2;t.utils.initSVG(f);var C=f.selectAll(".nv-wrap.nv-sunburst").data(e),S=C.enter().append("g").attr("class","nvd3 nv-wrap nv-sunburst nv-chart-"+c),A=S.selectAll("nv-sunburst");C.attr("transform","translate("+w/2+","+k/2+")"),f.on("click",function(t,e){h.chartClick({data:t,index:e,pos:d3.event,id:c})}),m.range([0,M]),n=n||e,i=e[0],v.value(l[u]||l.count),$=A.data(v.nodes).enter().append("path").attr("d",y).style("fill",function(t){return d((t.children?t:t.parent).name)}).style("stroke","#FFF").on("click",function(t){r!==n&&n!==t&&(r=n),n=t,$.transition().duration(p).attrTween("d",x(t))}).each(b).on("dblclick",function(t){r.parent==t&&$.transition().duration(p).attrTween("d",x(i))}).each(b).on("mouseover",function(t,e){d3.select(this).classed("hover",!0).style("opacity",.8),h.elementMouseover({data:t,color:d3.select(this).style("fill")})}).on("mouseout",function(t,e){d3.select(this).classed("hover",!1).style("opacity",1),h.elementMouseout({data:t})}).on("mousemove",function(t,e){h.elementMousemove({data:t})})}),b.renderEnd("sunburst immediate"),e}var n,r,i,a={top:0,right:0,bottom:0,left:0},o=null,s=null,u="count",l={count:function(t){return 1},size:function(t){return t.size}},c=Math.floor(1e4*Math.random()),f=null,d=t.utils.defaultColor(),p=500,h=d3.dispatch("chartClick","elementClick","elementDblClick","elementMousemove","elementMouseover","elementMouseout","renderEnd"),g=d3.scale.linear().range([0,2*Math.PI]),m=d3.scale.sqrt(),v=d3.layout.partition().sort(null).value(function(t){return 1}),y=d3.svg.arc().startAngle(function(t){return Math.max(0,Math.min(2*Math.PI,g(t.x)))}).endAngle(function(t){return Math.max(0,Math.min(2*Math.PI,g(t.x+t.dx)))}).innerRadius(function(t){return Math.max(0,m(t.y))}).outerRadius(function(t){return Math.max(0,m(t.y+t.dy))}),b=t.utils.renderWatch(h);return e.dispatch=h,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{width:{get:function(){return o},set:function(t){o=t}},height:{get:function(){return s},set:function(t){s=t}},mode:{get:function(){return u},set:function(t){u=t}},id:{get:function(){return c},set:function(t){c=t}},duration:{get:function(){return p},set:function(t){p=t}},margin:{get:function(){return a},set:function(t){a.top=void 0!=t.top?t.top:a.top,a.right=void 0!=t.right?t.right:a.right,a.bottom=void 0!=t.bottom?t.bottom:a.bottom,a.left=void 0!=t.left?t.left:a.left}},color:{get:function(){return d},set:function(e){d=t.utils.getColor(e)}}}),t.utils.initOptions(e),e},t.models.sunburstChart=function(){"use strict";function e(r){return d.reset(),d.models(n),r.each(function(r){var s=d3.select(this);t.utils.initSVG(s);var u=t.utils.availableWidth(a,s,i),l=t.utils.availableHeight(o,s,i);if(e.update=function(){0===c?s.call(e):s.transition().duration(c).call(e)},e.container=this,!r||!r.length)return t.utils.noData(e,s),e;s.selectAll(".nv-noData").remove();var f=s.selectAll("g.nv-wrap.nv-sunburstChart").data(r),d=f.enter().append("g").attr("class","nvd3 nv-wrap nv-sunburstChart").append("g"),p=f.select("g");d.append("g").attr("class","nv-sunburstWrap"),f.attr("transform","translate("+i.left+","+i.top+")"),n.width(u).height(l);var h=p.select(".nv-sunburstWrap").datum(r);d3.transition(h).call(n)}),d.renderEnd("sunburstChart immediate"),e}var n=t.models.sunburst(),r=t.models.tooltip(),i={top:30,right:20,bottom:20,left:20},a=null,o=null,s=t.utils.defaultColor(),u=(Math.round(1e5*Math.random()),null),l=null,c=250,f=d3.dispatch("tooltipShow","tooltipHide","stateChange","changeState","renderEnd"),d=t.utils.renderWatch(f);return r.headerEnabled(!1).duration(0).valueFormatter(function(t,e){return t}),n.dispatch.on("elementMouseover.tooltip",function(t){t.series={key:t.data.name,value:t.data.size,color:t.color},r.data(t).hidden(!1)}),n.dispatch.on("elementMouseout.tooltip",function(t){r.hidden(!0)}),n.dispatch.on("elementMousemove.tooltip",function(t){r.position({top:d3.event.pageY,left:d3.event.pageX})()}),e.dispatch=f,e.sunburst=n,e.tooltip=r,e.options=t.utils.optionsFunc.bind(e),e._options=Object.create({},{noData:{get:function(){return l},set:function(t){l=t}},defaultState:{get:function(){return u},set:function(t){u=t}},color:{get:function(){return s},set:function(t){s=t,n.color(s)}},duration:{get:function(){return c},set:function(t){c=t,d.reset(c),n.duration(c)}},margin:{get:function(){return i},set:function(t){i.top=void 0!==t.top?t.top:i.top,i.right=void 0!==t.right?t.right:i.right,i.bottom=void 0!==t.bottom?t.bottom:i.bottom,i.left=void 0!==t.left?t.left:i.left}}}),t.utils.inheritOptions(e,n),t.utils.initOptions(e),e},t.version="1.8.1"}(),/**************************************************************************
|
||
* AngularJS-nvD3, v1.0.5; MIT License; 03/12/2015 08:27
|
||
* http://krispo.github.io/angular-nvd3
|
||
**************************************************************************/
|
||
function(){"use strict";angular.module("nvd3",[]).directive("nvd3",["nvd3Utils",function(t){return{restrict:"AE",scope:{data:"=",options:"=",api:"=?",events:"=?",config:"=?",onReady:"&?"},link:function(e,n,r){function i(t,n,r){t&&n&&angular.forEach(t,function(o,s){"_"===s[0]||("dispatch"===s?((void 0===n[s]||null===n[s])&&e._config.extended&&(n[s]={}),a(o,n[s])):"tooltip"===s?((void 0===n[s]||null===n[s])&&e._config.extended&&(n[s]={}),i(t[s],n[s],r)):"contentGenerator"===s?n[s]&&t[s](n[s]):-1===["axis","clearHighlights","defined","highlightPoint","nvPointerEventsClass","options","rangeBand","rangeBands","scatter","open","close"].indexOf(s)&&(void 0===n[s]||null===n[s]?e._config.extended&&(n[s]=o()):t[s](n[s])))})}function a(t,n){t&&n&&angular.forEach(t,function(r,i){void 0===n[i]||null===n[i]?e._config.extended&&(n[i]=r.on):t.on(i+"._",n[i])})}function o(r){var i=t.deepExtend(u(r),e.options[r]||{});e._config.extended&&(e.options[r]=i);var a=angular.element("<div></div>").html(i.html||"").addClass(r).addClass(i.className).removeAttr("style").css(i.css);i.html||a.text(i.text),i.enable&&("title"===r?n.prepend(a):"subtitle"===r?angular.element(n[0].querySelector(".title")).after(a):"caption"===r&&n.append(a))}function s(){var r=t.deepExtend(l(),e.options.styles||{});e._config.extended&&(e.options.styles=r),angular.forEach(r.classes,function(t,e){t?n.addClass(e):n.removeClass(e)}),n.removeAttr("style").css(r.css)}function u(t){switch(t){case"title":return{enable:!1,text:"Write Your Title",className:"h4",css:{width:e.options.chart.width+"px",textAlign:"center"}};case"subtitle":return{enable:!1,text:"Write Your Subtitle",css:{width:e.options.chart.width+"px",textAlign:"center"}};case"caption":return{enable:!1,text:"Figure 1. Write Your Caption text.",css:{width:e.options.chart.width+"px",textAlign:"center"}}}}function l(){return{classes:{"with-3d-shadow":!0,"with-transitions":!0,gallery:!1},css:{}}}function c(t,n){t!==n&&(e._config.disabled||(e._config.refreshDataOnly?e.api.update():e.api.refresh()))}var f={extended:!1,visible:!0,disabled:!1,refreshDataOnly:!0,deepWatchOptions:!0,deepWatchData:!0,deepWatchDataDepth:2,debounce:10};e.isReady=!1,e._config=angular.extend(f,e.config),e.api={refresh:function(){e.api.updateWithOptions(e.options),e.isReady=!0},refreshWithTimeout:function(t){setTimeout(function(){e.api.refresh()},t)},update:function(){e.chart&&e.svg?e.svg.datum(e.data).call(e.chart):e.api.refresh()},updateWithTimeout:function(t){setTimeout(function(){e.api.update()},t)},updateWithOptions:function(n){e.api.clearElement(),angular.isDefined(n)!==!1&&e._config.visible&&(e.chart=nv.models[n.chart.type](),e.chart.id=Math.random().toString(36).substr(2,15),angular.forEach(e.chart,function(t,r){"_"===r[0]||["clearHighlights","highlightPoint","id","options","resizeHandler","state","open","close","tooltipContent"].indexOf(r)>=0||("dispatch"===r?((void 0===n.chart[r]||null===n.chart[r])&&e._config.extended&&(n.chart[r]={}),a(e.chart[r],n.chart[r])):["bars","bars1","bars2","boxplot","bullet","controls","discretebar","distX","distY","interactiveLayer","legend","lines","lines1","lines2","multibar","pie","scatter","sparkline","stack1","stack2","sunburst","tooltip","x2Axis","xAxis","y1Axis","y2Axis","y3Axis","y4Axis","yAxis","yAxis1","yAxis2"].indexOf(r)>=0||"stacked"===r&&"stackedAreaChart"===n.chart.type?((void 0===n.chart[r]||null===n.chart[r])&&e._config.extended&&(n.chart[r]={}),i(e.chart[r],n.chart[r],n.chart.type)):("xTickFormat"!==r&&"yTickFormat"!==r||"lineWithFocusChart"!==n.chart.type)&&("tooltips"===r&&"boxPlotChart"===n.chart.type||("tooltipXContent"!==r&&"tooltipYContent"!==r||"scatterChart"!==n.chart.type)&&(void 0===n.chart[r]||null===n.chart[r]?e._config.extended&&("barColor"===r?n.chart[r]=t()():n.chart[r]=t()):e.chart[r](n.chart[r]))))}),"sunburstChart"===n.chart.type?e.api.updateWithData(angular.copy(e.data)):e.api.updateWithData(e.data),(n.title||e._config.extended)&&o("title"),(n.subtitle||e._config.extended)&&o("subtitle"),(n.caption||e._config.extended)&&o("caption"),(n.styles||e._config.extended)&&s(),nv.addGraph(function(){return e.chart?(e.chart.resizeHandler&&e.chart.resizeHandler.clear(),e.chart.resizeHandler=nv.utils.windowResize(function(){e.chart&&e.chart.update&&e.chart.update()}),void 0!==n.chart.zoom&&["scatterChart","lineChart","candlestickBarChart","cumulativeLineChart","historicalBarChart","ohlcBarChart","stackedAreaChart"].indexOf(n.chart.type)>-1&&t.zoom(e,n),e.chart):void 0},n.chart.callback))},updateWithData:function(t){if(t){d3.select(n[0]).select("svg").remove();var r,i;e.svg=d3.select(n[0]).append("svg"),(r=e.options.chart.height)&&(isNaN(+r)||(r+="px"),e.svg.attr("height",r).style({height:r})),(i=e.options.chart.width)?(isNaN(+i)||(i+="px"),e.svg.attr("width",i).style({width:i})):e.svg.attr("width","100%").style({width:"100%"}),e.svg.datum(t).call(e.chart)}},clearElement:function(){if(n.find(".title").remove(),n.find(".subtitle").remove(),n.find(".caption").remove(),n.empty(),e.chart&&e.chart.tooltip&&e.chart.tooltip.id&&d3.select("#"+e.chart.tooltip.id()).remove(),nv.graphs&&e.chart)for(var t=nv.graphs.length-1;t>=0;t--)nv.graphs[t]&&nv.graphs[t].id===e.chart.id&&nv.graphs.splice(t,1);nv.tooltip&&nv.tooltip.cleanup&&nv.tooltip.cleanup(),e.chart&&e.chart.resizeHandler&&e.chart.resizeHandler.clear(),e.chart=null},getScope:function(){return e},getElement:function(){return n}},e._config.deepWatchOptions&&e.$watch("options",t.debounce(function(t){e._config.disabled||e.api.refresh()},e._config.debounce,!0),!0),e._config.deepWatchData&&(1===e._config.deepWatchDataDepth?e.$watchCollection("data",c):e.$watch("data",c,2===e._config.deepWatchDataDepth)),e.$watch("config",function(t,n){t!==n&&(e._config=angular.extend(f,t),e.api.refresh())},!0),e._config.deepWatchOptions||e._config.deepWatchData||e.api.refresh(),angular.forEach(e.events,function(t,n){e.$on(n,function(n,r){return t(n,e,r)})}),n.on("$destroy",function(){e.api.clearElement()}),e.$watch("isReady",function(t){t&&e.onReady&&"function"==typeof e.onReady()&&e.onReady()(e,n)})}}}]).factory("nvd3Utils",function(){return{debounce:function(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}},deepExtend:function(t){var e=this;return angular.forEach(arguments,function(n){n!==t&&angular.forEach(n,function(n,r){t[r]&&t[r].constructor&&t[r].constructor===Object?e.deepExtend(t[r],n):t[r]=n})}),t},zoom:function(t,e){var n=e.chart.zoom,r="undefined"==typeof n.enabled||null===n.enabled?!0:n.enabled;if(r){var i,a,o,s,u=t.chart.xAxis.scale(),l=t.chart.yAxis.scale(),c=t.chart.xDomain||u.domain,f=t.chart.yDomain||l.domain,d=u.domain().slice(),p=l.domain().slice(),h=n.scale||1,g=n.translate||[0,0],m=n.scaleExtent||[1,10],v=n.useFixedDomain||!1,y=n.useNiceScale||!1,b=n.horizontalOff||!1,x=n.verticalOff||!1,$=n.unzoomEventType||"dblclick.zoom";y&&(u.nice(),l.nice()),i=function(t,e){return t[0]=Math.min(Math.max(t[0],e[0]),e[1]-e[1]/m[1]),t[1]=Math.max(e[0]+e[1]/m[1],Math.min(t[1],e[1])),t},o=function(){if(void 0!==n.zoomed){var e=n.zoomed(u.domain(),l.domain());b||c([e.x1,e.x2]),x||f([e.y1,e.y2])}else b||c(v?i(u.domain(),d):u.domain()),x||f(v?i(l.domain(),p):l.domain());t.chart.update()},s=function(){if(void 0!==n.unzoomed){var e=n.unzoomed(u.domain(),l.domain());b||c([e.x1,e.x2]),x||f([e.y1,e.y2])}else b||c(d),x||f(p);a.scale(h).translate(g),t.chart.update()},a=d3.behavior.zoom().x(u).y(l).scaleExtent(m).on("zoom",o),t.svg.call(a),a.scale(h).translate(g).event(t.svg),"none"!==$&&t.svg.on($,s)}}}})}();
|
||
//# sourceMappingURL=../maps/scripts/vendor-c7571dee7e.js.map
|