text: "bundle";System.registerDynamic("github:github/fetch@1.0.0/fetch.js",[],!1,function(a,b,c){var d=System.get("@@global-helpers").prepareGlobal(c.id,null,null);return function(a){!function(a){"use strict";function b(a){if("string"!=typeof a&&(a=String(a)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(a))throw new TypeError("Invalid character in header field name");return a.toLowerCase()}function c(a){return"string"!=typeof a&&(a=String(a)),a}function d(a){var b={next:function(){var b=a.shift();return{done:void 0===b,value:b}}};return p.iterable&&(b[Symbol.iterator]=function(){return b}),b}function e(a){this.map={},a instanceof e?a.forEach(function(a,b){this.append(b,a)},this):a&&Object.getOwnPropertyNames(a).forEach(function(b){this.append(b,a[b])},this)}function f(a){return a.bodyUsed?Promise.reject(new TypeError("Already read")):void(a.bodyUsed=!0)}function g(a){return new Promise(function(b,c){a.onload=function(){b(a.result)},a.onerror=function(){c(a.error)}})}function h(a){var b=new FileReader;return b.readAsArrayBuffer(a),g(b)}function i(a){var b=new FileReader;return b.readAsText(a),g(b)}function j(){return this.bodyUsed=!1,this._initBody=function(a){if(this._bodyInit=a,"string"==typeof a)this._bodyText=a;else if(p.blob&&Blob.prototype.isPrototypeOf(a))this._bodyBlob=a;else if(p.formData&&FormData.prototype.isPrototypeOf(a))this._bodyFormData=a;else if(p.searchParams&&URLSearchParams.prototype.isPrototypeOf(a))this._bodyText=a.toString();else if(a){if(!p.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(a))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof a?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):p.searchParams&&URLSearchParams.prototype.isPrototypeOf(a)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p.blob?(this.blob=function(){var a=f(this);if(a)return a;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(h)},this.text=function(){var a=f(this);if(a)return a;if(this._bodyBlob)return i(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var a=f(this);return a?a:Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}function k(a){var b=a.toUpperCase();return q.indexOf(b)>-1?b:a}function l(a,b){b=b||{};var c=b.body;if(l.prototype.isPrototypeOf(a)){if(a.bodyUsed)throw new TypeError("Already read");this.url=a.url,this.credentials=a.credentials,b.headers||(this.headers=new e(a.headers)),this.method=a.method,this.mode=a.mode,c||(c=a._bodyInit,a.bodyUsed=!0)}else this.url=a;if(this.credentials=b.credentials||this.credentials||"omit",!b.headers&&this.headers||(this.headers=new e(b.headers)),this.method=k(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&c)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(c)}function m(a){var b=new FormData;return a.trim().split("&").forEach(function(a){if(a){var c=a.split("="),d=c.shift().replace(/\+/g," "),e=c.join("=").replace(/\+/g," ");b.append(decodeURIComponent(d),decodeURIComponent(e))}}),b}function n(a){var b=new e,c=(a.getAllResponseHeaders()||"").trim().split("\n");return c.forEach(function(a){var c=a.trim().split(":"),d=c.shift().trim(),e=c.join(":").trim();b.append(d,e)}),b}function o(a,b){b||(b={}),this.type="default",this.status=b.status,this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText,this.headers=b.headers instanceof e?b.headers:new e(b.headers),this.url=b.url||"",this._initBody(a)}if(!a.fetch){var p={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(a){return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};e.prototype.append=function(a,d){a=b(a),d=c(d);var e=this.map[a];e||(e=[],this.map[a]=e),e.push(d)},e.prototype["delete"]=function(a){delete this.map[b(a)]},e.prototype.get=function(a){var c=this.map[b(a)];return c?c[0]:null},e.prototype.getAll=function(a){return this.map[b(a)]||[]},e.prototype.has=function(a){return this.map.hasOwnProperty(b(a))},e.prototype.set=function(a,d){this.map[b(a)]=[c(d)]},e.prototype.forEach=function(a,b){Object.getOwnPropertyNames(this.map).forEach(function(c){this.map[c].forEach(function(d){a.call(b,d,c,this)},this)},this)},e.prototype.keys=function(){var a=[];return this.forEach(function(b,c){a.push(c)}),d(a)},e.prototype.values=function(){var a=[];return this.forEach(function(b){a.push(b)}),d(a)},e.prototype.entries=function(){var a=[];return this.forEach(function(b,c){a.push([c,b])}),d(a)},p.iterable&&(e.prototype[Symbol.iterator]=e.prototype.entries);var q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];l.prototype.clone=function(){return new l(this)},j.call(l.prototype),j.call(o.prototype),o.prototype.clone=function(){return new o(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new e(this.headers),url:this.url})},o.error=function(){var a=new o(null,{status:0,statusText:""});return a.type="error",a};var r=[301,302,303,307,308];o.redirect=function(a,b){if(-1===r.indexOf(b))throw new RangeError("Invalid status code");return new o(null,{status:b,headers:{location:a}})},a.Headers=e,a.Request=l,a.Response=o,a.fetch=function(a,b){return new Promise(function(c,d){function e(){return"responseURL"in g?g.responseURL:/^X-Request-URL:/m.test(g.getAllResponseHeaders())?g.getResponseHeader("X-Request-URL"):void 0}var f;f=l.prototype.isPrototypeOf(a)&&!b?a:new l(a,b);var g=new XMLHttpRequest;g.onload=function(){var a={status:g.status,statusText:g.statusText,headers:n(g),url:e()},b="response"in g?g.response:g.responseText;c(new o(b,a))},g.onerror=function(){d(new TypeError("Network request failed"))},g.ontimeout=function(){d(new TypeError("Network request failed"))},g.open(f.method,f.url,!0),"include"===f.credentials&&(g.withCredentials=!0),"responseType"in g&&p.blob&&(g.responseType="blob"),f.headers.forEach(function(a,b){g.setRequestHeader(b,a)}),g.send("undefined"==typeof f._bodyInit?null:f._bodyInit)})},a.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)}(this),d()}),System.registerDynamic("github:github/fetch@1.0.0.js",["github:github/fetch@1.0.0/fetch"],!0,function(a,b,c){this||self;return c.exports=a("github:github/fetch@1.0.0/fetch"),c.exports}),function(){var a=System.amdDefine;a("npm:aurelia-animator-css@1.0.0/aurelia-animator-css.js",["exports","aurelia-templating","aurelia-pal"],function(a,b,c){"use strict";function d(a,c){var d=a.container.get(e);a.container.get(b.TemplatingEngine).configureAnimator(d),"function"==typeof c&&c(d)}Object.defineProperty(a,"__esModule",{value:!0}),a.CssAnimator=void 0,a.configure=d;var e=a.CssAnimator=function(){function a(){this.useAnimationDoneClasses=!1,this.animationEnteredClass="au-entered",this.animationLeftClass="au-left",this.isAnimating=!1,this.verifyKeyframesExist=!0}return a.prototype._addMultipleEventListener=function(a,b,c){for(var d=b.split(" "),e=0,f=d.length;f>e;++e)a.addEventListener(d[e],c,!1)},a.prototype._getElementAnimationDelay=function(a){var b=c.DOM.getComputedStyle(a),d=void 0,e=void 0;if(b.getPropertyValue("animation-delay"))d="animation-delay";else if(b.getPropertyValue("-webkit-animation-delay"))d="-webkit-animation-delay";else{if(!b.getPropertyValue("-moz-animation-delay"))return 0;d="-moz-animation-delay"}return e=b.getPropertyValue(d),e=Number(e.replace(/[^\d\.]/g,"")),1e3*e},a.prototype._getElementAnimationNames=function(a){var b=c.DOM.getComputedStyle(a),d=void 0;if(b.getPropertyValue("animation-name"))d="";else if(b.getPropertyValue("-webkit-animation-name"))d="-webkit-";else{if(!b.getPropertyValue("-moz-animation-name"))return[];d="-moz-"}var e=b.getPropertyValue(d+"animation-name");return e?e.split(" "):[]},a.prototype._performSingleAnimate=function(a,c){var d=this;return this._triggerDOMEvent(b.animationEvent.animateBegin,a),this.addClass(a,c,!0).then(function(e){return d._triggerDOMEvent(b.animationEvent.animateActive,a),e!==!1?d.removeClass(a,c,!0).then(function(){d._triggerDOMEvent(b.animationEvent.animateDone,a)}):!1})["catch"](function(){d._triggerDOMEvent(b.animationEvent.animateTimeout,a)})},a.prototype._triggerDOMEvent=function(a,b){var d=c.DOM.createCustomEvent(a,{bubbles:!0,cancelable:!0,detail:b});c.DOM.dispatchEvent(d)},a.prototype._animationChangeWithValidKeyframe=function(a,b){var c=a.filter(function(a){return-1===b.indexOf(a)});if(0===c.length)return!1;if(!this.verifyKeyframesExist)return!0;var d=window.CSSRule.KEYFRAMES_RULE||window.CSSRule.MOZ_KEYFRAMES_RULE||window.CSSRule.WEBKIT_KEYFRAMES_RULE,e=document.styleSheets;try{for(var f=0;f<e.length;++f){var g=e[f].cssRules;if(g)for(var h=0;h<g.length;++h){var i=g[h];if(i.type===d&&-1!==c.indexOf(i.name))return!0}}}catch(j){}return!1},a.prototype.animate=function(a,b){var c=this;return Array.isArray(a)?Promise.all(a.map(function(a){return c._performSingleAnimate(a,b)})):this._performSingleAnimate(a,b)},a.prototype.runSequence=function(a){var c=this;return this._triggerDOMEvent(b.animationEvent.sequenceBegin,null),a.reduce(function(a,b){return a.then(function(){return c.animate(b.element,b.className)})},Promise.resolve(!0)).then(function(){c._triggerDOMEvent(b.animationEvent.sequenceDone,null)})},a.prototype.enter=function(a){var c=this;return new Promise(function(d,e){var f=a.classList;c._triggerDOMEvent(b.animationEvent.enterBegin,a),c.useAnimationDoneClasses&&(f.remove(c.animationEnteredClass),f.remove(c.animationLeftClass)),f.add("au-enter");var g=c._getElementAnimationNames(a),h=void 0,i=!1;c._addMultipleEventListener(a,"webkitAnimationStart animationstart",h=function(d){i=!0,c.isAnimating=!0,c._triggerDOMEvent(b.animationEvent.enterActive,a),d.stopPropagation(),d.target.removeEventListener(d.type,h)},!1);var j=void 0;c._addMultipleEventListener(a,"webkitAnimationEnd animationend",j=function(e){i&&(e.stopPropagation(),f.remove("au-enter-active"),f.remove("au-enter"),e.target.removeEventListener(e.type,j),c.useAnimationDoneClasses&&void 0!==c.animationEnteredClass&&null!==c.animationEnteredClass&&f.add(c.animationEnteredClass),c.isAnimating=!1,c._triggerDOMEvent(b.animationEvent.enterDone,a),d(!0))},!1);var k=a.parentElement,l=0,m=function(){var e=c._getElementAnimationNames(a);c._animationChangeWithValidKeyframe(e,g)||(f.remove("au-enter-active"),f.remove("au-enter"),c._triggerDOMEvent(b.animationEvent.enterTimeout,a),d(!1))};if(null!==k&&void 0!==k&&(k.classList.contains("au-stagger")||k.classList.contains("au-stagger-enter"))){var n=Array.prototype.indexOf.call(k.children,a);l=c._getElementAnimationDelay(k)*n,c._triggerDOMEvent(b.animationEvent.staggerNext,a),setTimeout(function(){f.add("au-enter-active"),m()},l)}else f.add("au-enter-active"),m()})},a.prototype.leave=function(a){var c=this;return new Promise(function(d,e){var f=a.classList;c._triggerDOMEvent(b.animationEvent.leaveBegin,a),c.useAnimationDoneClasses&&(f.remove(c.animationEnteredClass),f.remove(c.animationLeftClass)),f.add("au-leave");var g=c._getElementAnimationNames(a),h=void 0,i=!1;c._addMultipleEventListener(a,"webkitAnimationStart animationstart",h=function(d){i=!0,c.isAnimating=!0,c._triggerDOMEvent(b.animationEvent.leaveActive,a),d.stopPropagation(),d.target.removeEventListener(d.type,h)},!1);var j=void 0;c._addMultipleEventListener(a,"webkitAnimationEnd animationend",j=function(e){i&&(e.stopPropagation(),f.remove("au-leave-active"),f.remove("au-leave"),e.target.removeEventListener(e.type,j),c.useAnimationDoneClasses&&void 0!==c.animationLeftClass&&null!==c.animationLeftClass&&f.add(c.animationLeftClass),c.isAnimating=!1,c._triggerDOMEvent(b.animationEvent.leaveDone,a),d(!0))},!1);var k=a.parentElement,l=0,m=function(){var e=c._getElementAnimationNames(a);c._animationChangeWithValidKeyframe(e,g)||(f.remove("au-leave-active"),f.remove("au-leave"),c._triggerDOMEvent(b.animationEvent.leaveTimeout,a),d(!1))};if(null!==k&&void 0!==k&&(k.classList.contains("au-stagger")||k.classList.contains("au-stagger-leave"))){var n=Array.prototype.indexOf.call(k.children,a);l=c._getElementAnimationDelay(k)*n,c._triggerDOMEvent(b.animationEvent.staggerNext,a),setTimeout(function(){f.add("au-leave-active"),m()},l)}else f.add("au-leave-active"),m()})},a.prototype.removeClass=function(a,c){var d=this,e=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return new Promise(function(f,g){var h=a.classList;if(!h.contains(c)&&!h.contains(c+"-add"))return void f(!1);e!==!0&&d._triggerDOMEvent(b.animationEvent.removeClassBegin,a),h.remove(c);var i=d._getElementAnimationNames(a),j=void 0,k=!1;d._addMultipleEventListener(a,"webkitAnimationStart animationstart",j=function(c){k=!0,d.isAnimating=!0,e!==!0&&d._triggerDOMEvent(b.animationEvent.removeClassActive,a),c.stopPropagation(),c.target.removeEventListener(c.type,j)},!1);var l=void 0;d._addMultipleEventListener(a,"webkitAnimationEnd animationend",l=function(g){k&&(g.stopPropagation(),h.remove(c+"-remove"),g.target.removeEventListener(g.type,l),d.isAnimating=!1,e!==!0&&d._triggerDOMEvent(b.animationEvent.removeClassDone,a),f(!0))},!1),h.add(c+"-remove");var m=d._getElementAnimationNames(a);d._animationChangeWithValidKeyframe(m,i)||(h.remove(c+"-remove"),h.remove(c),e!==!0&&d._triggerDOMEvent(b.animationEvent.removeClassTimeout,a),f(!1))})},a.prototype.addClass=function(a,c){var d=this,e=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return new Promise(function(f,g){var h=a.classList;e!==!0&&d._triggerDOMEvent(b.animationEvent.addClassBegin,a);var i=void 0,j=!1;d._addMultipleEventListener(a,"webkitAnimationStart animationstart",i=function(c){j=!0,d.isAnimating=!0,e!==!0&&d._triggerDOMEvent(b.animationEvent.addClassActive,a),c.stopPropagation(),c.target.removeEventListener(c.type,i)},!1);var k=void 0;d._addMultipleEventListener(a,"webkitAnimationEnd animationend",k=function(g){j&&(g.stopPropagation(),h.add(c),h.remove(c+"-add"),g.target.removeEventListener(g.type,k),d.isAnimating=!1,e!==!0&&d._triggerDOMEvent(b.animationEvent.addClassDone,a),f(!0))},!1);var l=d._getElementAnimationNames(a);h.add(c+"-add");var m=d._getElementAnimationNames(a);d._animationChangeWithValidKeyframe(m,l)||(h.remove(c+"-add"),h.add(c),e!==!0&&d._triggerDOMEvent(b.animationEvent.addClassTimeout,a),f(!1))})},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-animator-css@1.0.0.js",["npm:aurelia-animator-css@1.0.0/aurelia-animator-css"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-pal-browser@1.0.0/aurelia-pal-browser.js",["exports","aurelia-pal"],function(a,b){"use strict";function c(){function a(){}a.name||Object.defineProperty(Function.prototype,"name",{get:function(){var a=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:a}),a}})}function d(){if("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))){var a=document.createElement("_");if(a.classList.add("c1","c2"),!a.classList.contains("c2")){var b=function(a){var b=DOMTokenList.prototype[a];DOMTokenList.prototype[a]=function(a){for(var c=0,d=arguments.length;d>c;++c)a=arguments[c],b.call(this,a)}};b("add"),b("remove")}a.classList.toggle("c3",!1),a.classList.contains("c3")&&!function(){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(b,c){return 1 in arguments&&!this.contains(b)==!c?c:a.call(this,b)}}(),a=null}else!function(){var a="prototype",b=String.prototype.trim,c=Array.prototype.indexOf,d=[],e=function(a,b){this.name=a,this.code=DOMException[a],this.message=b},f=function(a,b){if(""===b)throw new e("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(b))throw new e("INVALID_CHARACTER_ERR","String contains an invalid character");return c.call(a,b)},g=function(a){for(var c=b.call(a.getAttribute("class")||""),e=c?c.split(/\s+/):d,f=0,g=e.length;g>f;++f)this.push(e[f]);this._updateClassName=function(){a.setAttribute("class",this.toString())}},h=g[a]=[];e[a]=Error[a],h.item=function(a){return this[a]||null},h.contains=function(a){return a+="",-1!==f(this,a)},h.add=function(){var a=arguments,b=0,c=a.length,d=void 0,e=!1;do d=a[b]+"",-1===f(this,d)&&(this.push(d),e=!0);while(++b<c);e&&this._updateClassName()},h.remove=function(){var a=arguments,b=0,c=a.length,d=void 0,e=!1,g=void 0;do for(d=a[b]+"",g=f(this,d);-1!==g;)this.splice(g,1),e=!0,g=f(this,d);while(++b<c);e&&this._updateClassName()},h.toggle=function(a,b){a+="";var c=this.contains(a),d=c?b!==!0&&"remove":b!==!1&&"add";return d&&this[d](a),b===!0||b===!1?b:!c},h.toString=function(){return this.join(" ")},Object.defineProperty(Element.prototype,"classList",{get:function(){return new g(this)},enumerable:!0,configurable:!0})}()}function e(){"performance"in window==!1&&(window.performance={}),"now"in window.performance==!1&&!function(){var a=Date.now();performance.timing&&performance.timing.navigationStart&&(a=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-a}}(),k.performance=window.performance}function f(){if(!window.CustomEvent||"function"!=typeof window.CustomEvent){var a=function(a,b){b=b||{bubbles:!1,cancelable:!1,detail:void 0};var c=document.createEvent("CustomEvent");return c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c};a.prototype=window.Event.prototype,window.CustomEvent=a}}function g(){if(Element&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}}function h(){function a(a){return"template"===a.tagName&&"http://www.w3.org/2000/svg"===a.namespaceURI}function b(a){var b=a.ownerDocument.createElement("template"),d=a.attributes,e=d.length,f=void 0;for(a.parentNode.insertBefore(b,a);e-- >0;)f=d[e],b.setAttribute(f.name,f.value),a.removeAttribute(f.name);return a.parentNode.removeChild(a),c(b)}function c(a){for(var b=a.content=document.createDocumentFragment(),c=void 0;c=a.firstChild;)b.appendChild(c);return a}function d(d){for(var e=c(d).content,f=e.querySelectorAll("template"),g=0,h=f.length;h>g;++g){var i=f[g];a(i)?b(i):c(i)}return d}l.htmlTemplateElement?l.ensureHTMLTemplateElement=function(a){return a}:l.ensureHTMLTemplateElement=d}function i(){o||(o=!0,f(),c(),h(),g(),d(),e(),(0,b.initializePAL)(function(a,b,c){Object.assign(a,k),Object.assign(b,l),Object.assign(c,n),function(a){a.console=a.console||{};for(var b=a.console,c=void 0,d=void 0,e={},f=function(){},g="memory".split(","),h="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");c=g.pop();)b[c]||(b[c]=e);for(;d=h.pop();)b[d]||(b[d]=f)}(a.global),a.global.console&&"object"===j(console.log)&&["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(a){console[a]=this.bind(console[a],console)},Function.prototype.call),Object.defineProperty(c,"title",{get:function(){return document.title},set:function(a){document.title=a}}),Object.defineProperty(c,"activeElement",{get:function(){return document.activeElement}}),Object.defineProperty(a,"XMLHttpRequest",{get:function(){return a.global.XMLHttpRequest}})}))}Object.defineProperty(a,"__esModule",{value:!0}),a._DOM=a._FEATURE=a._PLATFORM=void 0,a._ensureFunctionName=c,a._ensureClassList=d,a._ensurePerformance=e,a._ensureCustomEvent=f,a._ensureElementMatches=g,a._ensureHTMLTemplateElement=h,a.initialize=i;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a},k=a._PLATFORM={location:window.location,history:window.history,addEventListener:function(a,b,c){this.global.addEventListener(a,b,c)},removeEventListener:function(a,b,c){this.global.removeEventListener(a,b,c)},performance:window.performance,requestAnimationFrame:function(a){return this.global.requestAnimationFrame(a)}},l=a._FEATURE={};l.shadowDOM=function(){return!!HTMLElement.prototype.attachShadow}(),l.scopedCSS=function(){return"scoped"in document.createElement("style")}(),l.htmlTemplateElement=function(){return"content"in document.createElement("template")}(),l.mutationObserver=function(){return!(!window.MutationObserver&&!window.WebKitMutationObserver)}();var m=window.ShadowDOMPolyfill||null,n=a._DOM={Element:Element,SVGElement:SVGElement,boundary:"aurelia-dom-boundary",addEventListener:function(a,b,c){document.addEventListener(a,b,c)},removeEventListener:function(a,b,c){document.removeEventListener(a,b,c)},adoptNode:function(a){return document.adoptNode(a,!0)},createElement:function(a){return document.createElement(a)},createTextNode:function(a){return document.createTextNode(a)},createComment:function(a){return document.createComment(a)},createDocumentFragment:function(){return document.createDocumentFragment()},createMutationObserver:function(a){return new(window.MutationObserver||window.WebKitMutationObserver)(a)},createCustomEvent:function(a,b){return new window.CustomEvent(a,b)},dispatchEvent:function(a){document.dispatchEvent(a)},getComputedStyle:function(a){return window.getComputedStyle(a)},getElementById:function(a){return document.getElementById(a)},querySelectorAll:function(a){return document.querySelectorAll(a)},nextElementSibling:function(a){if(a.nextElementSibling)return a.nextElementSibling;do a=a.nextSibling;while(a&&1!==a.nodeType);return a},createTemplateFromMarkup:function(a){var b=document.createElement("div");b.innerHTML=a;var c=b.firstElementChild;if(!c||"TEMPLATE"!==c.nodeName)throw new Error("Template markup must be wrapped in a <template> element e.g. <template> <!-- markup here --> </template>");return l.ensureHTMLTemplateElement(c)},appendNode:function(a,b){(b||document.body).appendChild(a)},replaceNode:function(a,b,c){b.parentNode?b.parentNode.replaceChild(a,b):null!==m?m.unwrap(c).replaceChild(m.unwrap(a),m.unwrap(b)):c.replaceChild(a,b)},removeNode:function(a,b){a.parentNode?a.parentNode.removeChild(a):b&&(null!==m?m.unwrap(b).removeChild(m.unwrap(a)):b.removeChild(a))},injectStyles:function(a,b,c){var d=document.createElement("style");return d.innerHTML=a,d.type="text/css",b=b||document.head,c&&b.childNodes.length>0?b.insertBefore(d,b.childNodes[0]):b.appendChild(d),d}},o=!1})}(),function(){var a=System.amdDefine;a("npm:aurelia-pal-browser@1.0.0.js",["npm:aurelia-pal-browser@1.0.0/aurelia-pal-browser"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-polyfills@1.0.0/aurelia-polyfills.js",["aurelia-pal"],function(a){"use strict";var b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a};!function(b,c){if(!(c in b)){var d,e=a.PLATFORM.global,f=0,g=""+Math.random(),h="__symbol:",i=h.length,j="__symbol@@"+g,k="defineProperty",l="defineProperties",m="getOwnPropertyNames",n="getOwnPropertyDescriptor",o="propertyIsEnumerable",p=b[m],q=b[n],r=b.create,s=b.keys,t=b[k],u=b[l],v=q(b,m),w=b.prototype,x=w.hasOwnProperty,y=w[o],z=w.toString,A=(Array.prototype.indexOf||function(a){for(var b=this.length;b--&&this[b]!==a;);return b},function(a,b,c){x.call(a,j)||t(a,j,{enumerable:!1,configurable:!1,writable:!1,value:{}}),a[j]["@@"+b]=c}),B=function(a,b){var c=r(a);return p(b).forEach(function(a){G.call(b,a)&&M(c,a,b[a])}),c},C=function(a){var b=r(a);return b.enumerable=!1,b},D=function(){},E=function(a){return a!=j&&!x.call(J,a)},F=function(a){return a!=j&&x.call(J,a)},G=function(a){var b=""+a;return F(b)?x.call(this,b)&&this[j]["@@"+b]:y.call(this,a)},H=function(a){var c={enumerable:!1,configurable:!0,get:D,set:function(b){d(this,a,{enumerable:!1,configurable:!0,writable:!0,value:b}),A(this,a,!0)}};return t(w,a,c),J[a]=t(b(a),"constructor",K)},I=function(a){if(this&&this!==e)throw new TypeError("Symbol is not a constructor");return H(h.concat(a||"",g,++f))},J=r(null),K={value:I},L=function(a){return J[a]},M=function(a,b,c){var e=""+b;return F(e)?(d(a,e,c.enumerable?C(c):c),A(a,e,!!c.enumerable)):t(a,b,c),a},N=function(a){var c=z.call(a);return a="[object String]"===c?a.split(""):b(a),p(a).filter(F).map(L)};v.value=M,t(b,k,v),v.value=N,t(b,c,v),v.value=function(a){return p(a).filter(E)},t(b,m,v),v.value=function(a,b){var c=N(b);return c.length?s(b).concat(c).forEach(function(c){G.call(b,c)&&M(a,c,b[c])}):u(a,b),a},t(b,l,v),v.value=G,t(w,o,v),v.value=I,t(e,"Symbol",v),v.value=function(a){var b=h.concat(h,a,g);return b in w?J[b]:H(b)},t(I,"for",v),v.value=function(a){return x.call(J,a)?a.slice(2*i,-g.length):void 0},t(I,"keyFor",v),v.value=function(a,b){var c=q(a,b);return c&&F(b)&&(c.enumerable=G.call(a,b)),c},t(b,n,v),v.value=function(a,b){return 1===arguments.length?r(a):B(a,b)},t(b,"create",v),v.value=function(){var a=z.call(this);return"[object String]"===a&&F(this)?"[object Symbol]":a},t(w,"toString",v);try{d=r(t({},h,{get:function(){return t(this,h,{value:!1})[h]}}))[h]||t}catch(O){d=function(a,b,c){var d=q(w,b);delete w[b],t(a,b,c),t(w,b,d)}}}}(Object,"getOwnPropertySymbols"),function(a,b){var c,d=a.defineProperty,e=a.prototype,f=e.toString,g="toStringTag";["iterator","match","replace","search","split","hasInstance","isConcatSpreadable","unscopables","species","toPrimitive",g].forEach(function(b){if(!(b in Symbol))switch(d(Symbol,b,{value:Symbol(b)}),b){case g:c=a.getOwnPropertyDescriptor(e,"toString"),c.value=function(){var a=f.call(this),b="undefined"==typeof this||null===this?void 0:this[Symbol.toStringTag];return"undefined"==typeof b?a:"[object "+b+"]"},d(e,"toString",c)}})}(Object,Symbol),function(a,b,c){function d(){return this}b[a]||(b[a]=function(){var b=0,c=this,e={next:function(){var a=c.length<=b;return a?{done:a}:{done:a,value:c[b++]}}};return e[a]=d,e}),c[a]||(c[a]=function(){var b=String.fromCodePoint,c=this,e=0,f=c.length,g={next:function(){var a=e>=f,d=a?"":b(c.codePointAt(e));return e+=d.length,a?{done:a}:{done:a,value:d}}};return g[a]=d,g})}(Symbol.iterator,Array.prototype,String.prototype),Number.isNaN=Number.isNaN||function(a){return a!==a},Number.isFinite=Number.isFinite||function(a){return"number"==typeof a&&isFinite(a)},String.prototype.endsWith&&!function(){try{return!"ab".endsWith("a",1)}catch(a){return!0}}()||(String.prototype.endsWith=function(a,b){var c=this.toString();("number"!=typeof b||!isFinite(b)||Math.floor(b)!==b||b>c.length)&&(b=c.length),b-=a.length;var d=c.indexOf(a,b);return-1!==d&&d===b}),String.prototype.startsWith&&!function(){try{return!"ab".startsWith("b",1)}catch(a){return!0}}()||(String.prototype.startsWith=function(a,b){return b=b||0,this.substr(b,a.length)===a}),Array.from||(Array.from=function(){var a=function(a){return isNaN(a=+a)?0:(a>0?Math.floor:Math.ceil)(a)},b=function(b){return b>0?Math.min(a(b),9007199254740991):0},c=function(a,b,c,d){try{b(c,d)}catch(e){throw"function"==typeof a["return"]&&a["return"](),e}};return function(a){var d,e,f,g,h=Object(a),i="function"==typeof this?this:Array,j=arguments.length,k=j>1?arguments[1]:void 0,l=void 0!==k,m=0,n=h[Symbol.iterator];if(l&&(k=k.bind(j>2?arguments[2]:void 0)),void 0==n||Array.isArray(a))for(d=b(h.length),e=new i(d);d>m;m++)e[m]=l?k(h[m],m):h[m];else for(g=n.call(h),e=new i;!(f=g.next()).done;m++)e[m]=l?c(k,f.value,m):f.value;return e.length=m,e}}()),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{configurable:!0,writable:!0,enumerable:!1,value:function f(a){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof a)throw new TypeError("predicate must be a function");for(var f,b=Object(this),c=b.length>>>0,d=arguments[1],e=0;c>e;e++)if(f=b[e],a.call(d,f,e,b))return f}}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{configurable:!0,writable:!0,enumerable:!1,value:function g(a){if(null===this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof a)throw new TypeError("predicate must be a function");for(var g,b=Object(this),c=b.length>>>0,d=arguments[1],e=0;c>e;e++)if(g=b[e],a.call(d,g,e,b))return e;return-1}}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{configurable:!0,writable:!0,enumerable:!1,value:function(a){var b=Object(this),c=parseInt(b.length)||0;if(0===c)return!1;var d,e=parseInt(arguments[1])||0;e>=0?d=e:(d=c+e,0>d&&(d=0));for(var f;c>d;){if(f=b[d],a===f||a!==a&&f!==f)return!0;d++}return!1}}),function(){var a=!1;try{var b=Object.keys("a");a=1!==b.length||"0"!==b[0]}catch(c){a=!0}a&&(Object.keys=function(){var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=c.length;return function(e){if(void 0===e||null===e)throw TypeError("Cannot convert undefined or null to object");e=Object(e);var f,g,h=[];for(f in e)a.call(e,f)&&h.push(f);if(b)for(g=0;d>g;g++)a.call(e,c[g])&&h.push(c[g]);return h}}())}(),function(a){"assign"in a||a.defineProperty(a,"assign",{configurable:!0,writable:!0,value:function(){var b=a.getOwnPropertySymbols,c=a.propertyIsEnumerable,d=b?function(a){return b(a).filter(c,a)}:function(){return Array.prototype};return function(c){function e(a){c[a]=h[a]}!b||c instanceof a||console.warn("problematic Symbols",c);for(var f=1,g=arguments.length;g>f;++f){var h=arguments[f];null!==h&&void 0!==h&&a.keys(h).concat(d(h)).forEach(e)}return c}}()})}(Object),function(a){function b(a,b){function d(a){return this&&this.constructor===d?(this._keys=[],this._values=[],this._itp=[],this.objectOnly=b,void(a&&c.call(this,a))):new d(a)}return b||t(a,"size",{get:q}),a.constructor=d,d.prototype=a,d}function c(a){this.add?a.forEach(this.add,this):a.forEach(function(a){this.set(a[0],a[1])},this)}function d(a){return this.has(a)&&(this._keys.splice(s,1),this._values.splice(s,1),this._itp.forEach(function(a){s<a[0]&&a[0]--})),s>-1}function e(a){return this.has(a)?this._values[s]:void 0}function f(a,b){if(this.objectOnly&&b!==Object(b))throw new TypeError("Invalid value used as weak collection key");if(b!=b||0===b)for(s=a.length;s--&&!u(a[s],b););else s=a.indexOf(b);return s>-1}function g(a){return f.call(this,this._values,a)}function h(a){return f.call(this,this._keys,a)}function i(a,b){return this.has(a)?this._values[s]=b:this._values[this._keys.push(a)-1]=b,this}function j(a){return this.has(a)||this._values.push(a),this}function k(){(this._keys||0).length=this._values.length=0}function l(){return p(this._itp,this._keys)}function m(){return p(this._itp,this._values)}function n(){return p(this._itp,this._keys,this._values)}function o(){return p(this._itp,this._values,this._values)}function p(a,b,c){var d,e=[0],f=!1;return a.push(e),d={},d[Symbol.iterator]=function(){return this},d.next=function(){var d,g=e[0];return!f&&g<b.length?(d=c?[b[g],c[g]]:b[g],e[0]++):(f=!0,a.splice(a.indexOf(e),1)),{done:f,value:d}},d}function q(){return this._values.length}function r(a,b){for(var c=this.entries();;){var d=c.next();if(d.done)break;a.call(b,d.value[1],d.value[0],this)}}var s,t=Object.defineProperty,u=function(a,b){return a===b||a!==a&&b!==b};if("undefined"==typeof WeakMap&&(a.WeakMap=b({"delete":d,clear:k,get:e,has:h,set:i},!0)),"undefined"==typeof Map||"function"!=typeof(new Map).values||!(new Map).values().next){var v;a.Map=b((v={"delete":d,has:h,get:e,set:i,keys:l,values:m,
  entries:n,forEach:r,clear:k},v[Symbol.iterator]=n,v))}if("undefined"==typeof Set||"function"!=typeof(new Set).values||!(new Set).values().next){var w;a.Set=b((w={has:g,add:j,"delete":d,clear:k,keys:m,values:m,entries:o,forEach:r},w[Symbol.iterator]=m,w))}"undefined"==typeof WeakSet&&(a.WeakSet=b({"delete":d,add:j,clear:k,has:g},!0))}(a.PLATFORM.global);var c=Object.freeze({}),d="__metadata__",e=Function.prototype.bind;"undefined"==typeof a.PLATFORM.global.Reflect&&(a.PLATFORM.global.Reflect={}),"function"!=typeof Reflect.getOwnMetadata&&(Reflect.getOwnMetadata=function(a,b,e){return b.hasOwnProperty(d)?(b[d][e]||c)[a]:void 0}),"function"!=typeof Reflect.defineMetadata&&(Reflect.defineMetadata=function(a,b,c,e){var f=c.hasOwnProperty(d)?c[d]:c[d]={},g=f[e]||(f[e]={});g[a]=b}),"function"!=typeof Reflect.metadata&&(Reflect.metadata=function(a,b){return function(c,d){Reflect.defineMetadata(a,b,c,d)}}),"function"!=typeof Reflect.defineProperty&&(Reflect.defineProperty=function(a,c,d){if("object"===("undefined"==typeof a?"undefined":b(a))?null===a:"function"!=typeof a)throw new TypeError("Reflect.defineProperty called on non-object");try{return Object.defineProperty(a,c,d),!0}catch(e){return!1}}),"function"!=typeof Reflect.construct&&(Reflect.construct=function(a,b){if(b)switch(b.length){case 0:return new a;case 1:return new a(b[0]);case 2:return new a(b[0],b[1]);case 3:return new a(b[0],b[1],b[2]);case 4:return new a(b[0],b[1],b[2],b[3])}var c=[null];return c.push.apply(c,b),new(e.apply(a,c))})})}(),function(){var a=System.amdDefine;a("npm:aurelia-polyfills@1.0.0.js",["npm:aurelia-polyfills@1.0.0/aurelia-polyfills"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-bootstrapper@1.0.0/aurelia-bootstrapper.js",["exports","aurelia-pal","aurelia-pal-browser","aurelia-polyfills"],function(a,b,c){"use strict";function d(a){return new Promise(function(b,c){m?b(a(m)):l.push(function(){try{b(a(m))}catch(d){c(d)}})})}function e(a){return new Promise(function(b,c){function d(){a.document.removeEventListener("DOMContentLoaded",d),a.removeEventListener("load",d),b(a.document)}"complete"===a.document.readyState?b(a.document):(a.document.addEventListener("DOMContentLoaded",d),a.addEventListener("load",d))})}function f(){return b.PLATFORM.Loader?Promise.resolve(new b.PLATFORM.Loader):window.System&&"function"==typeof window.System["import"]?System.normalize("aurelia-bootstrapper").then(function(a){return System.normalize("aurelia-loader-default",a)}).then(function(a){return System["import"](a).then(function(a){return new a.DefaultLoader})}):"function"==typeof window.require?new Promise(function(a,b){return require(["aurelia-loader-default"],function(b){return a(new b.DefaultLoader)},b)}):Promise.reject("No PLATFORM.Loader is defined and there is neither a System API (ES6) or a Require API (AMD) globally available to load your app.")}function g(a){return a.normalize("aurelia-bootstrapper").then(function(b){return a.normalize("aurelia-framework",b).then(function(c){return a.map("aurelia-framework",c),Promise.all([a.normalize("aurelia-dependency-injection",c).then(function(b){return a.map("aurelia-dependency-injection",b)}),a.normalize("aurelia-router",b).then(function(b){return a.map("aurelia-router",b)}),a.normalize("aurelia-logging-console",b).then(function(b){return a.map("aurelia-logging-console",b)})]).then(function(){return a.loadModule(c).then(function(a){return n=a.Aurelia})})})})}function h(a,b){var c=b.getAttribute("aurelia-app")||b.getAttribute("data-aurelia-app");return i(a,b,c)}function i(a,b,c){var d=new n(a);return d.host=b,d.configModuleId=c||null,c?a.loadModule(c).then(function(a){return a.configure(d)}):(d.use.standardConfiguration().developmentLogging(),d.start().then(function(){return d.setRoot()}))}function j(){return e(window).then(function(a){(0,c.initialize)();var b=a.querySelectorAll("[aurelia-app],[data-aurelia-app]");return f().then(function(a){return g(a).then(function(){for(var c=0,d=b.length;d>c;++c)h(a,b[c])["catch"](console.error.bind(console));m=a;for(var e=0,f=l.length;f>e;++e)l[e]();l=null})})})}function k(a){return d(function(b){var c=new n(b);return a(c)})}Object.defineProperty(a,"__esModule",{value:!0}),a.bootstrap=k;var l=[],m=null,n=null;j()})}(),function(){var a=System.amdDefine;a("npm:aurelia-bootstrapper@1.0.0.js",["npm:aurelia-bootstrapper@1.0.0/aurelia-bootstrapper"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-fetch-client@1.0.0/aurelia-fetch-client.js",["exports"],function(a){"use strict";function b(a){return new Blob([JSON.stringify(a)],{type:"application/json"})}function c(a){if(!a.ok)throw a;return a}function d(){this.isRequesting=!!++this.activeRequestCount}function e(){this.isRequesting=!!--this.activeRequestCount}function f(a){var b=e.bind(this);return a.then(b,b),a}function g(a){var b={};for(var c in a||{})a.hasOwnProperty(c)&&(b[c]="function"==typeof a[c]?a[c]():a[c]);return b}function h(a,b){var c=this.defaults||{},d=void 0,e=void 0,f=void 0,h=g(c.headers);if(Request.prototype.isPrototypeOf(a))d=a,f=new Headers(d.headers).get("Content-Type");else{b||(b={}),e=b.body;var k=e?{body:e}:null,l=Object.assign({},c,{headers:{}},b,k);f=new Headers(l.headers).get("Content-Type"),d=new Request(i(this.baseUrl,a),l)}return!f&&new Headers(h).has("content-type")&&d.headers.set("Content-Type",new Headers(h).get("content-type")),j(d.headers,h),e&&Blob.prototype.isPrototypeOf(e)&&e.type&&d.headers.set("Content-Type",e.type),d}function i(a,b){return r.test(b)?b:(a||"")+b}function j(a,b){for(var c in b||{})b.hasOwnProperty(c)&&!a.has(c)&&a.set(c,b[c])}function k(a,b){return m(a,b,"request","requestError")}function l(a,b,c){return m(a,b,"response","responseError",c)}function m(a,b,c,d){for(var e=arguments.length,f=Array(e>4?e-4:0),g=4;e>g;g++)f[g-4]=arguments[g];return(b||[]).reduce(function(a,b){var e=b[c],g=b[d];return a.then(e&&function(a){return e.call.apply(e,[b,a].concat(f))}||n,g&&function(a){return g.call.apply(g,[b,a].concat(f))}||o)},Promise.resolve(a))}function n(a){return a}function o(a){throw a}Object.defineProperty(a,"__esModule",{value:!0}),a.json=b;var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a},q=a.HttpClientConfiguration=function(){function a(){this.baseUrl="",this.defaults={},this.interceptors=[]}return a.prototype.withBaseUrl=function(a){return this.baseUrl=a,this},a.prototype.withDefaults=function(a){return this.defaults=a,this},a.prototype.withInterceptor=function(a){return this.interceptors.push(a),this},a.prototype.useStandardConfiguration=function(){var a={credentials:"same-origin"};return Object.assign(this.defaults,a,this.defaults),this.rejectErrorResponses()},a.prototype.rejectErrorResponses=function(){return this.withInterceptor({response:c})},a}(),r=(a.HttpClient=function(){function a(){if(this.activeRequestCount=0,this.isRequesting=!1,this.isConfigured=!1,this.baseUrl="",this.defaults=null,this.interceptors=[],"undefined"==typeof fetch)throw new Error("HttpClient requires a Fetch API implementation, but the current environment doesn't support it. You may need to load a polyfill such as https://github.com/github/fetch.")}return a.prototype.configure=function(a){var b,c=void 0;if("object"===("undefined"==typeof a?"undefined":p(a)))c={defaults:a};else{if("function"!=typeof a)throw new Error("invalid config");c=new q;var d=a(c);q.prototype.isPrototypeOf(d)&&(c=d)}var e=c.defaults;if(e&&Headers.prototype.isPrototypeOf(e.headers))throw new Error("Default headers must be a plain object.");return this.baseUrl=c.baseUrl,this.defaults=e,(b=this.interceptors).push.apply(b,c.interceptors||[]),this.isConfigured=!0,this},a.prototype.fetch=function(a){function b(b,c){return a.apply(this,arguments)}return b.toString=function(){return a.toString()},b}(function(a,b){var c=this;d.call(this);var e=Promise.resolve().then(function(){return h.call(c,a,b,c.defaults)}),g=k(e,this.interceptors).then(function(a){var b=null;if(Response.prototype.isPrototypeOf(a))b=a;else{if(!Request.prototype.isPrototypeOf(a))throw new Error("An invalid result was returned by the interceptor chain. Expected a Request or Response instance, but got ["+a+"]");e=Promise.resolve(a),b=fetch(a)}return e.then(function(a){return l(b,c.interceptors,a)})});return f.call(this,g)}),a}(),/^([a-z][a-z0-9+\-.]*:)?\/\//i)})}(),function(){var a=System.amdDefine;a("npm:aurelia-fetch-client@1.0.0.js",["npm:aurelia-fetch-client@1.0.0/aurelia-fetch-client"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-framework@1.0.0/aurelia-framework.js",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-metadata","aurelia-templating","aurelia-loader","aurelia-task-queue","aurelia-path","aurelia-pal","aurelia-logging"],function(a,b,c,d,e,f,g,h,i,j){"use strict";function k(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function l(){i.DOM.addEventListener("submit",function(a){var b=a.target,c=b.action;"form"!==b.tagName.toLowerCase()||c||a.preventDefault()})}function m(a,b){var c=void 0,d=function e(){return c=b.shift(),c?Promise.resolve(c(a)).then(e):Promise.resolve()};return d()}function n(a,b,c){function d(d){return b.loadModule(d).then(function(b){return"configure"in b?Promise.resolve(b.configure(a,c.config||{})).then(function(){a.resourcesRelativeTo=null,s.debug("Configured plugin "+c.moduleId+".")}):(a.resourcesRelativeTo=null,void s.debug("Loaded plugin "+c.moduleId+"."))})}s.debug("Loading plugin "+c.moduleId+"."),a.resourcesRelativeTo=c.resourcesRelativeTo;var e=c.moduleId;return c.resourcesRelativeTo.length>1?b.normalize(c.moduleId,c.resourcesRelativeTo[1]).then(function(a){return d(a)}):d(e)}function o(a,b,c){function d(b){var c=b.moduleId,d=p(c);return f(c)&&(c=g(c)),a.loader.normalize(c,b.relativeTo).then(function(a){return{name:b.moduleId,importId:f(b.moduleId)?h(a,d):a}})}function f(a){var b=p(a);return b?""===b?!1:".js"!==b&&".ts"!==b:!1}function g(a){return a.replace(t,"")}function h(a,b){return g(a)+"."+b}var i=a.container.get(e.ViewEngine);return Promise.all(Object.keys(b).map(function(a){return d(b[a])})).then(function(a){var b=[],d=[];return a.forEach(function(a){b.push(void 0),d.push(a.importId)}),i.importViewResources(d,b,c)})}function p(a){var b=a.match(t);return b&&b.length>0?b[0].split(".")[1]:void 0}function q(a){if(a.processed)throw new Error("This config instance has already been applied. To load more plugins or global resources, create a new FrameworkConfiguration instance.")}Object.defineProperty(a,"__esModule",{value:!0}),a.LogManager=a.FrameworkConfiguration=a.Aurelia=void 0,Object.keys(b).forEach(function(c){"default"!==c&&"__esModule"!==c&&Object.defineProperty(a,c,{enumerable:!0,get:function(){return b[c]}})}),Object.keys(c).forEach(function(b){"default"!==b&&"__esModule"!==b&&Object.defineProperty(a,b,{enumerable:!0,get:function(){return c[b]}})}),Object.keys(d).forEach(function(b){"default"!==b&&"__esModule"!==b&&Object.defineProperty(a,b,{enumerable:!0,get:function(){return d[b]}})}),Object.keys(e).forEach(function(b){"default"!==b&&"__esModule"!==b&&Object.defineProperty(a,b,{enumerable:!0,get:function(){return e[b]}})}),Object.keys(f).forEach(function(b){"default"!==b&&"__esModule"!==b&&Object.defineProperty(a,b,{enumerable:!0,get:function(){return f[b]}})}),Object.keys(g).forEach(function(b){"default"!==b&&"__esModule"!==b&&Object.defineProperty(a,b,{enumerable:!0,get:function(){return g[b]}})}),Object.keys(h).forEach(function(b){"default"!==b&&"__esModule"!==b&&Object.defineProperty(a,b,{enumerable:!0,get:function(){return h[b]}})}),Object.keys(i).forEach(function(b){"default"!==b&&"__esModule"!==b&&Object.defineProperty(a,b,{enumerable:!0,get:function(){return i[b]}})});var r=k(j),s=(a.Aurelia=function(){function a(c,d,g){this.loader=c||new i.PLATFORM.Loader,this.container=d||(new b.Container).makeGlobal(),this.resources=g||new e.ViewResources,this.use=new u(this),this.logger=r.getLogger("aurelia"),this.hostConfigured=!1,this.host=null,this.use.instance(a,this),this.use.instance(f.Loader,this.loader),this.use.instance(e.ViewResources,this.resources)}return a.prototype.start=function(){var a=this;return this.started?Promise.resolve(this):(this.started=!0,this.logger.info("Aurelia Starting"),this.use.apply().then(function(){if(l(),!a.container.hasResolver(e.BindingLanguage)){var b="You must configure Aurelia with a BindingLanguage implementation.";throw a.logger.error(b),new Error(b)}a.logger.info("Aurelia Started");var c=i.DOM.createCustomEvent("aurelia-started",{bubbles:!0,cancelable:!0});return i.DOM.dispatchEvent(c),a}))},a.prototype.enhance=function(){var a=this,b=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],c=arguments.length<=1||void 0===arguments[1]?null:arguments[1];return this._configureHost(c||i.DOM.querySelectorAll("body")[0]),new Promise(function(c){var d=a.container.get(e.TemplatingEngine);a.root=d.enhance({container:a.container,element:a.host,resources:a.resources,bindingContext:b}),a.root.attached(),a._onAureliaComposed(),c(a)})},a.prototype.setRoot=function(){var a=this,b=arguments.length<=0||void 0===arguments[0]?null:arguments[0],c=arguments.length<=1||void 0===arguments[1]?null:arguments[1],d={};this.root&&this.root.viewModel&&this.root.viewModel.router&&(this.root.viewModel.router.deactivate(),this.root.viewModel.router.reset()),this._configureHost(c);var f=this.container.get(e.TemplatingEngine),g=this.container.get(e.CompositionTransaction);return delete g.initialComposition,b||(b=this.configModuleId?(0,h.relativeToFile)("./app",this.configModuleId):"app"),d.viewModel=b,d.container=d.childContainer=this.container,d.viewSlot=this.hostSlot,d.host=this.host,f.compose(d).then(function(b){return a.root=b,d.viewSlot.attached(),a._onAureliaComposed(),a})},a.prototype._configureHost=function(a){if(!this.hostConfigured){if(a=a||this.host,a&&"string"!=typeof a?this.host=a:this.host=i.DOM.getElementById(a||"applicationHost"),!this.host)throw new Error("No applicationHost was specified.");this.hostConfigured=!0,this.host.aurelia=this,this.hostSlot=new e.ViewSlot(this.host,!0),this.hostSlot.transformChildNodesIntoView(),this.container.registerInstance(i.DOM.boundary,this.host)}},a.prototype._onAureliaComposed=function(){var a=i.DOM.createCustomEvent("aurelia-composed",{bubbles:!0,cancelable:!0});setTimeout(function(){return i.DOM.dispatchEvent(a)},1)},a}(),r.getLogger("aurelia")),t=/\.[^\/.]+$/,u=function(){function a(a){var b=this;this.aurelia=a,this.container=a.container,this.info=[],this.processed=!1,this.preTasks=[],this.postTasks=[],this.resourcesToLoad={},this.preTask(function(){return a.loader.normalize("aurelia-bootstrapper").then(function(a){return b.bootstrapperName=a})}),this.postTask(function(){return o(a,b.resourcesToLoad,a.resources)})}return a.prototype.instance=function(a,b){return this.container.registerInstance(a,b),this},a.prototype.singleton=function(a,b){return this.container.registerSingleton(a,b),this},a.prototype["transient"]=function(a,b){return this.container.registerTransient(a,b),this},a.prototype.preTask=function(a){return q(this),this.preTasks.push(a),this},a.prototype.postTask=function(a){return q(this),this.postTasks.push(a),this},a.prototype.feature=function(a,b){return p(a)?this.plugin({moduleId:a,resourcesRelativeTo:[a,""],config:b||{}}):this.plugin({moduleId:a+"/index",resourcesRelativeTo:[a,""],config:b||{}})},a.prototype.globalResources=function(a){q(this);for(var b=Array.isArray(a)?a:arguments,c=void 0,d=this.resourcesRelativeTo||["",""],e=0,f=b.length;f>e;++e){if(c=b[e],"string"!=typeof c)throw new Error("Invalid resource path ["+c+"]. Resources must be specified as relative module IDs.");var g=d[0],i=d[1],j=c;(c.startsWith("./")||c.startsWith("../"))&&""!==g&&(j=(0,h.join)(g,c)),this.resourcesToLoad[j]={moduleId:j,relativeTo:i}}return this},a.prototype.globalName=function(a,b){return q(this),this.resourcesToLoad[a]={moduleId:b,relativeTo:""},this},a.prototype.plugin=function(a,b){return q(this),"string"==typeof a?this.plugin({moduleId:a,resourcesRelativeTo:[a,""],config:b||{}}):(this.info.push(a),this)},a.prototype._addNormalizedPlugin=function(a,b){var c=this,d={moduleId:a,resourcesRelativeTo:[a,""],config:b||{}};return this.plugin(d),this.preTask(function(){var b=[a,c.bootstrapperName];return d.moduleId=a,d.resourcesRelativeTo=b,Promise.resolve()}),this},a.prototype.defaultBindingLanguage=function(){return this._addNormalizedPlugin("aurelia-templating-binding")},a.prototype.router=function(){return this._addNormalizedPlugin("aurelia-templating-router")},a.prototype.history=function(){return this._addNormalizedPlugin("aurelia-history-browser")},a.prototype.defaultResources=function(){return this._addNormalizedPlugin("aurelia-templating-resources")},a.prototype.eventAggregator=function(){return this._addNormalizedPlugin("aurelia-event-aggregator")},a.prototype.basicConfiguration=function(){return this.defaultBindingLanguage().defaultResources().eventAggregator()},a.prototype.standardConfiguration=function(){return this.basicConfiguration().history().router()},a.prototype.developmentLogging=function(){var a=this;return this.preTask(function(){return a.aurelia.loader.normalize("aurelia-logging-console",a.bootstrapperName).then(function(b){return a.aurelia.loader.loadModule(b).then(function(a){r.addAppender(new a.ConsoleAppender),r.setLevel(r.logLevel.debug)})})}),this},a.prototype.apply=function(){var a=this;return this.processed?Promise.resolve():m(this,this.preTasks).then(function(){var b=a.aurelia.loader,c=a.info,d=void 0,e=function f(){return(d=c.shift())?n(a,b,d).then(f):(a.processed=!0,Promise.resolve())};return e().then(function(){return m(a,a.postTasks)})})},a}();a.FrameworkConfiguration=u;a.LogManager=r})}(),function(){var a=System.amdDefine;a("npm:aurelia-framework@1.0.0.js",["npm:aurelia-framework@1.0.0/aurelia-framework"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-history-browser@1.0.0/aurelia-history-browser.js",["exports","aurelia-pal","aurelia-history"],function(a,b,c){"use strict";function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function f(a){a.singleton(c.History,m),a["transient"](k,l)}function g(a,b,c){if(c){var d=a.href.replace(/(javascript:|#).*$/,"");a.replace(d+"#"+b)}else a.hash="#"+b}function h(a,b,c){return a+"//"+b+(c?":"+c:"")}Object.defineProperty(a,"__esModule",{value:!0}),a.BrowserHistory=a.DefaultLinkHandler=a.LinkHandler=void 0,a.configure=f;var i,j,k=a.LinkHandler=function(){function a(){}return a.prototype.activate=function(a){},a.prototype.deactivate=function(){},a}(),l=a.DefaultLinkHandler=function(a){function c(){var b=d(this,a.call(this));return b.handler=function(a){var d=c.getEventInfo(a),e=d.shouldHandleEvent,f=d.href;e&&(a.preventDefault(),b.history.navigate(f))},b}return e(c,a),c.prototype.activate=function(a){a._hasPushState&&(this.history=a,b.DOM.addEventListener("click",this.handler,!0))},c.prototype.deactivate=function(){b.DOM.removeEventListener("click",this.handler)},c.getEventInfo=function(a){var b={shouldHandleEvent:!1,href:null,anchor:null},d=c.findClosestAnchor(a.target);if(!d||!c.targetIsThisWindow(d))return b;if(a.altKey||a.ctrlKey||a.metaKey||a.shiftKey)return b;var e=d.getAttribute("href");b.anchor=d,b.href=e;var f=1===a.which,g=e&&!("#"===e.charAt(0)||/^[a-z]+:/i.test(e));return b.shouldHandleEvent=f&&g,b},c.findClosestAnchor=function(a){for(;a;){if("A"===a.tagName)return a;a=a.parentNode}},c.targetIsThisWindow=function(a){var c=a.getAttribute("target"),d=b.PLATFORM.global;return!c||c===d.name||"_self"===c||"top"===c&&d===d.top},c}(k),m=a.BrowserHistory=(j=i=function(a){function c(c){var e=d(this,a.call(this));return e._isActive=!1,e._checkUrlCallback=e._checkUrl.bind(e),e.location=b.PLATFORM.location,e.history=b.PLATFORM.history,e.linkHandler=c,e}return e(c,a),c.prototype.activate=function(a){if(this._isActive)throw new Error("History has already been activated.");var c=!!a.pushState;this._isActive=!0,this.options=Object.assign({},{root:"/"},this.options,a),this.root=("/"+this.options.root+"/").replace(o,"/"),this._wantsHashChange=this.options.hashChange!==!1,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var d=void 0;if(this._hasPushState?d="popstate":this._wantsHashChange&&(d="hashchange"),b.PLATFORM.addEventListener(d,this._checkUrlCallback),this._wantsHashChange&&c){var e=this.location,f=e.pathname.replace(/[^\/]$/,"$&/")===this.root;if(!this._hasPushState&&!f)return this.fragment=this._getFragment(null,!0),this.location.replace(this.root+this.location.search+"#"+this.fragment),!0;this._hasPushState&&f&&e.hash&&(this.fragment=this._getHash().replace(n,""),this.history.replaceState({},b.DOM.title,this.root+this.fragment+e.search))}return this.fragment||(this.fragment=this._getFragment()),this.linkHandler.activate(this),this.options.silent?void 0:this._loadUrl()},c.prototype.deactivate=function(){b.PLATFORM.removeEventListener("popstate",this._checkUrlCallback),b.PLATFORM.removeEventListener("hashchange",this._checkUrlCallback),this._isActive=!1,this.linkHandler.deactivate()},c.prototype.getAbsoluteRoot=function(){var a=h(this.location.protocol,this.location.hostname,this.location.port);return""+a+this.root},c.prototype.navigate=function(a){var c=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],d=c.trigger,e=void 0===d?!0:d,f=c.replace,h=void 0===f?!1:f;if(a&&q.test(a))return this.location.href=a,!0;if(!this._isActive)return!1;if(a=this._getFragment(a||""),this.fragment===a&&!h)return!1;this.fragment=a;var i=this.root+a;if(""===a&&"/"!==i&&(i=i.slice(0,-1)),this._hasPushState)i=i.replace("//","/"),this.history[h?"replaceState":"pushState"]({},b.DOM.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);g(this.location,a,h)}return e?this._loadUrl(a):void 0},c.prototype.navigateBack=function(){this.history.back()},c.prototype.setTitle=function(a){b.DOM.title=a},c.prototype._getHash=function(){return this.location.hash.substr(1)},c.prototype._getFragment=function(a,b){var c=void 0;return a||(this._hasPushState||!this._wantsHashChange||b?(a=this.location.pathname+this.location.search,c=this.root.replace(p,""),a.indexOf(c)||(a=a.substr(c.length))):a=this._getHash()),"/"+a.replace(n,"")},c.prototype._checkUrl=function(){var a=this._getFragment();a!==this.fragment&&this._loadUrl()},c.prototype._loadUrl=function(a){var b=this.fragment=this._getFragment(a);return this.options.routeHandler?this.options.routeHandler(b):!1},c}(c.History),i.inject=[k],j),n=/^#?\/*|\s+$/g,o=/^\/+|\/+$/g,p=/\/$/,q=/^([a-z][a-z0-9+\-.]*:)?\/\//i})}(),function(){var a=System.amdDefine;a("npm:aurelia-history-browser@1.0.0.js",["npm:aurelia-history-browser@1.0.0/aurelia-history-browser"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-loader-default@1.0.0/aurelia-loader-default.js",["exports","aurelia-loader","aurelia-pal","aurelia-metadata"],function(b,c,d,e){"use strict";function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function h(a,b){var c=a,d=void 0,f=void 0;c.__useDefault&&(c=c["default"]),e.Origin.set(c,new e.Origin(b,"default"));for(d in c)f=c[d],"function"==typeof f&&e.Origin.set(f,new e.Origin(b,d));return a}Object.defineProperty(b,"__esModule",{value:!0}),b.DefaultLoader=b.TextTemplateLoader=void 0;var i=b.TextTemplateLoader=function(){function a(){}return a.prototype.loadTemplate=function(a,b){return a.loadText(b.address).then(function(a){b.template=d.DOM.createTemplateFromMarkup(a)})},a}(),j=b.DefaultLoader=function(a){function b(){var b=f(this,a.call(this));b.textPluginName="text",b.moduleRegistry=Object.create(null),b.useTemplateLoader(new i);var c=b;return b.addPlugin("template-registry-entry",{fetch:function(a){var b=c.getOrCreateTemplateRegistryEntry(a);return b.templateIsLoaded?b:c.templateLoader.loadTemplate(c,b).then(function(a){return b})}}),b}return g(b,a),b.prototype.useTemplateLoader=function(a){this.templateLoader=a},b.prototype.loadAllModules=function(a){for(var b=[],c=0,d=a.length;d>c;++c)b.push(this.loadModule(a[c]));return Promise.all(b)},b.prototype.loadTemplate=function(a){return this._import(this.applyPluginToUrl(a,"template-registry-entry"))},b.prototype.loadText=function(a){return this._import(this.applyPluginToUrl(a,this.textPluginName)).then(function(a){return"string"==typeof a?a:a["default"]})},b}(c.Loader);d.PLATFORM.Loader=j,d.PLATFORM.global.System&&d.PLATFORM.global.System["import"]?(d.PLATFORM.eachModule=function(a){var b=System._loader.modules;for(var c in b)try{if(a(c,b[c].module))return}catch(d){}},System.set("text",System.newModule({translate:function(a){return'module.exports = "'+a.source.replace(/(["\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")+'";'}})),j.prototype._import=function(a){return System["import"](a)},j.prototype.loadModule=function(a){var b=this;return System.normalize(a).then(function(a){var c=b.moduleRegistry[a];return void 0!==c?Promise.resolve(c):System["import"](a).then(function(c){return b.moduleRegistry[a]=c,h(c,a)})})},j.prototype.map=function(a,b){System.map[a]=b},j.prototype.normalizeSync=function(a,b){return System.normalizeSync(a,b)},j.prototype.normalize=function(a,b){return System.normalize(a,b)},j.prototype.applyPluginToUrl=function(a,b){return a+"!"+b},j.prototype.addPlugin=function(a,b){System.set(a,System.newModule({fetch:function(a,c){var d=b.fetch(a.address);return Promise.resolve(d).then(function(b){return a.metadata.result=b,""})},instantiate:function(a){return a.metadata.result}}))}):(d.PLATFORM.global.requirejs&&requirejs.s&&requirejs.s.contexts&&requirejs.s.contexts._&&requirejs.s.contexts._.defined?d.PLATFORM.eachModule=function(a){var b=requirejs.s.contexts._.defined;for(var c in b)try{if(a(c,b[c]))return}catch(d){}}:d.PLATFORM.eachModule=function(a){},j.prototype._import=function(a){return new Promise(function(b,c){require([a],b,c)})},j.prototype.loadModule=function(a){var b=this,c=this.moduleRegistry[a];return void 0!==c?Promise.resolve(c):new Promise(function(c,d){require([a],function(d){b.moduleRegistry[a]=d,c(h(d,a))},d)})},j.prototype.map=function(a,b){},j.prototype.normalize=function(a,b){return Promise.resolve(a)},j.prototype.normalizeSync=function(a,b){return a},j.prototype.applyPluginToUrl=function(a,b){return b+"!"+a},j.prototype.addPlugin=function(b,c){var d=a;d(b,[],{load:function(a,b,d){var e=c.fetch(a);Promise.resolve(e).then(d)}})})})}(),function(){var a=System.amdDefine;a("npm:aurelia-loader-default@1.0.0.js",["npm:aurelia-loader-default@1.0.0/aurelia-loader-default"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-logging-console@1.0.0/aurelia-logging-console.js",["exports","aurelia-logging"],function(a,b){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ConsoleAppender=void 0;a.ConsoleAppender=function(){function a(){}return a.prototype.debug=function(a){for(var b,c=arguments.length,d=Array(c>1?c-1:0),e=1;c>e;e++)d[e-1]=arguments[e];(b=console).debug.apply(b,["DEBUG ["+a.id+"]"].concat(d))},a.prototype.info=function(a){for(var b,c=arguments.length,d=Array(c>1?c-1:0),e=1;c>e;e++)d[e-1]=arguments[e];(b=console).info.apply(b,["INFO ["+a.id+"]"].concat(d))},a.prototype.warn=function(a){for(var b,c=arguments.length,d=Array(c>1?c-1:0),e=1;c>e;e++)d[e-1]=arguments[e];(b=console).warn.apply(b,["WARN ["+a.id+"]"].concat(d))},a.prototype.error=function(a){for(var b,c=arguments.length,d=Array(c>1?c-1:0),e=1;c>e;e++)d[e-1]=arguments[e];(b=console).error.apply(b,["ERROR ["+a.id+"]"].concat(d))},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-logging-console@1.0.0.js",["npm:aurelia-logging-console@1.0.0/aurelia-logging-console"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-binding@1.0.0/aurelia-templating-binding.js",["exports","aurelia-logging","aurelia-binding","aurelia-templating"],function(a,b,c,d){"use strict";function e(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function h(a,b){if("style"===b)r.getLogger("templating-binding").info('Internet Explorer does not support interpolation in "style" attributes.  Use the style attribute\'s alias, "css" instead.');else if(a.parentElement&&"TEXTAREA"===a.parentElement.nodeName&&"textContent"===b)throw new Error('Interpolation binding cannot be used in the content of a textarea element.  Use <textarea value.bind="expression"></textarea> instead.')}function i(a){a.container.registerSingleton(d.BindingLanguage,y),a.container.registerAlias(d.BindingLanguage,y)}Object.defineProperty(a,"__esModule",{value:!0}),a.TemplatingBindingLanguage=a.SyntaxInterpreter=a.ChildInterpolationBinding=a.InterpolationBinding=a.InterpolationBindingExpression=a.AttributeMap=void 0,a.configure=i;var j,k,l,m,n,o,p,q,r=e(b),s=a.AttributeMap=(k=j=function(){function a(a){this.elements=Object.create(null),this.allElements=Object.create(null),this.svg=a,this.registerUniversal("accesskey","accessKey"),this.registerUniversal("contenteditable","contentEditable"),this.registerUniversal("tabindex","tabIndex"),this.registerUniversal("textcontent","textContent"),this.registerUniversal("innerhtml","innerHTML"),this.registerUniversal("scrolltop","scrollTop"),this.registerUniversal("scrollleft","scrollLeft"),this.registerUniversal("readonly","readOnly"),this.register("label","for","htmlFor"),this.register("input","maxlength","maxLength"),this.register("input","minlength","minLength"),this.register("input","formaction","formAction"),this.register("input","formenctype","formEncType"),this.register("input","formmethod","formMethod"),this.register("input","formnovalidate","formNoValidate"),this.register("input","formtarget","formTarget"),this.register("textarea","maxlength","maxLength"),this.register("td","rowspan","rowSpan"),this.register("td","colspan","colSpan"),this.register("th","rowspan","rowSpan"),this.register("th","colspan","colSpan")}return a.prototype.register=function(a,b,c){a=a.toLowerCase(),b=b.toLowerCase();var d=this.elements[a]=this.elements[a]||Object.create(null);d[b]=c},a.prototype.registerUniversal=function(a,b){a=a.toLowerCase(),this.allElements[a]=b},a.prototype.map=function(a,b){if(this.svg.isStandardSvgAttribute(a,b))return b;a=a.toLowerCase(),b=b.toLowerCase();var d=this.elements[a];
  return void 0!==d&&b in d?d[b]:b in this.allElements?this.allElements[b]:/(^data-)|(^aria-)|:/.test(b)?b:(0,c.camelCase)(b)},a}(),j.inject=[c.SVGAnalyzer],k),t=a.InterpolationBindingExpression=function(){function a(a,b,c,d,e,f){this.observerLocator=a,this.targetProperty=b,this.parts=c,this.mode=d,this.lookupFunctions=e,this.attribute=this.attrToRemove=f,this.discrete=!1}return a.prototype.createBinding=function(a){return 3===this.parts.length?new v(a,this.observerLocator,this.parts[1],this.mode,this.lookupFunctions,this.targetProperty,this.parts[0],this.parts[2]):new u(this.observerLocator,this.parts,a,this.targetProperty,this.mode,this.lookupFunctions)},a}(),u=a.InterpolationBinding=function(){function a(a,b,c,d,e,f){h(c,d),this.observerLocator=a,this.parts=b,this.target=c,this.targetProperty=d,this.targetAccessor=a.getAccessor(c,d),this.mode=e,this.lookupFunctions=f}return a.prototype.interpolate=function(){if(this.isBound){for(var a="",b=this.parts,c=0,d=b.length;d>c;c++)a+=c%2===0?b[c]:this["childBinding"+c].value;this.targetAccessor.setValue(a,this.target,this.targetProperty)}},a.prototype.updateOneTimeBindings=function(){for(var a=1,b=this.parts.length;b>a;a+=2){var d=this["childBinding"+a];d.mode===c.bindingMode.oneTime&&d.call()}},a.prototype.bind=function(a){if(this.isBound){if(this.source===a)return;this.unbind()}this.source=a;for(var b=this.parts,c=1,d=b.length;d>c;c+=2){var e=new v(this,this.observerLocator,b[c],this.mode,this.lookupFunctions);e.bind(a),this["childBinding"+c]=e}this.isBound=!0,this.interpolate()},a.prototype.unbind=function(){if(this.isBound){this.isBound=!1,this.source=null;for(var a=this.parts,b=1,c=a.length;c>b;b+=2){var d="childBinding"+b;this[d].unbind()}}},a}(),v=a.ChildInterpolationBinding=(l=(0,c.connectable)(),l(m=function(){function a(a,b,c,d,e,f,g,i){a instanceof u?this.parent=a:(h(a,f),this.target=a,this.targetProperty=f,this.targetAccessor=b.getAccessor(a,f)),this.observerLocator=b,this.sourceExpression=c,this.mode=d,this.lookupFunctions=e,this.left=g,this.right=i}return a.prototype.updateTarget=function(a){a=null===a||void 0===a?"":a.toString(),a!==this.value&&(this.value=a,this.parent?this.parent.interpolate():this.targetAccessor.setValue(this.left+a+this.right,this.target,this.targetProperty))},a.prototype.call=function(){this.isBound&&(this.rawValue=this.sourceExpression.evaluate(this.source,this.lookupFunctions),this.updateTarget(this.rawValue),this.mode!==c.bindingMode.oneTime&&(this._version++,this.sourceExpression.connect(this,this.source),this.rawValue instanceof Array&&this.observeArray(this.rawValue),this.unobserve(!1)))},a.prototype.bind=function(a){if(this.isBound){if(this.source===a)return;this.unbind()}this.isBound=!0,this.source=a;var b=this.sourceExpression;b.bind&&b.bind(this,a,this.lookupFunctions),this.rawValue=b.evaluate(a,this.lookupFunctions),this.updateTarget(this.rawValue),this.mode===c.bindingMode.oneWay&&(0,c.enqueueBindingConnect)(this)},a.prototype.unbind=function(){if(this.isBound){this.isBound=!1;var a=this.sourceExpression;a.unbind&&a.unbind(this,this.source),this.source=null,this.value=null,this.rawValue=null,this.unobserve(!0)}},a.prototype.connect=function(a){this.isBound&&(a&&(this.rawValue=this.sourceExpression.evaluate(this.source,this.lookupFunctions),this.updateTarget(this.rawValue)),this.sourceExpression.connect(this,this.source),this.rawValue instanceof Array&&this.observeArray(this.rawValue))},a}())||m),w=a.SyntaxInterpreter=(o=n=function(){function a(a,b,c,d){this.parser=a,this.observerLocator=b,this.eventManager=c,this.attributeMap=d}return a.prototype.interpret=function(a,b,c,d,e){return c.command in this?this[c.command](a,b,c,d,e):this.handleUnknownCommand(a,b,c,d,e)},a.prototype.handleUnknownCommand=function(a,b,c,d,e){return r.getLogger("templating-binding").warn("Unknown binding command.",c),d},a.prototype.determineDefaultBindingMode=function(a,b,d){var e=a.tagName.toLowerCase();return"input"===e&&("value"===b||"files"===b)&&"checkbox"!==a.type&&"radio"!==a.type||"input"===e&&"checked"===b&&("checkbox"===a.type||"radio"===a.type)||("textarea"===e||"select"===e)&&"value"===b||("textcontent"===b||"innerhtml"===b)&&"true"===a.contentEditable||"scrolltop"===b||"scrollleft"===b?c.bindingMode.twoWay:d&&b in d.attributes&&d.attributes[b]&&d.attributes[b].defaultBindingMode>=c.bindingMode.oneTime?d.attributes[b].defaultBindingMode:c.bindingMode.oneWay},a.prototype.bind=function(a,b,e,f,g){var h=f||d.BehaviorInstruction.attribute(e.attrName);return h.attributes[e.attrName]=new c.BindingExpression(this.observerLocator,this.attributeMap.map(b.tagName,e.attrName),this.parser.parse(e.attrValue),e.defaultBindingMode||this.determineDefaultBindingMode(b,e.attrName,g),a.lookupFunctions),h},a.prototype.trigger=function(a,b,d){return new c.ListenerExpression(this.eventManager,d.attrName,this.parser.parse(d.attrValue),!1,!0,a.lookupFunctions)},a.prototype.delegate=function(a,b,d){return new c.ListenerExpression(this.eventManager,d.attrName,this.parser.parse(d.attrValue),!0,!0,a.lookupFunctions)},a.prototype.call=function(a,b,e,f){var g=f||d.BehaviorInstruction.attribute(e.attrName);return g.attributes[e.attrName]=new c.CallExpression(this.observerLocator,e.attrName,this.parser.parse(e.attrValue),a.lookupFunctions),g},a.prototype.options=function(a,b,c,e,f){var g=e||d.BehaviorInstruction.attribute(c.attrName),h=c.attrValue,i=this.language,j=null,k="",l=void 0,m=void 0,n=void 0,o=!1,p=!1;for(m=0,n=h.length;n>m;++m){if(l=h[m],";"!==l||o)if(":"===l&&null===j)j=k.trim(),k="";else{if("\\"===l){k+=l,p=!0;continue}k+=l,null!==j&&p===!1&&"'"===l&&(o=!o)}else c=i.inspectAttribute(a,"?",j,k.trim()),i.createAttributeInstruction(a,b,c,g,f),g.attributes[c.attrName]||(g.attributes[c.attrName]=c.attrValue),k="",j=null;p=!1}return null!==j&&(c=i.inspectAttribute(a,"?",j,k.trim()),i.createAttributeInstruction(a,b,c,g,f),g.attributes[c.attrName]||(g.attributes[c.attrName]=c.attrValue)),g},a.prototype["for"]=function(a,b,e,f){var g=void 0,h=void 0,i=void 0,j=void 0,k=void 0;if(j=e.attrValue,k=j.match(/^ *[[].+[\]]/),g=k?j.split("of "):j.split(" of "),2!==g.length)throw new Error('Incorrect syntax for "for". The form is: "$local of $items" or "[$key, $value] of $items".');return i=f||d.BehaviorInstruction.attribute(e.attrName),k?(h=g[0].replace(/[[\]]/g,"").replace(/,/g," ").replace(/\s+/g," ").trim().split(" "),i.attributes.key=h[0],i.attributes.value=h[1]):i.attributes.local=g[0],i.attributes.items=new c.BindingExpression(this.observerLocator,"items",this.parser.parse(g[1]),c.bindingMode.oneWay,a.lookupFunctions),i},a.prototype["two-way"]=function(a,b,e,f){var g=f||d.BehaviorInstruction.attribute(e.attrName);return g.attributes[e.attrName]=new c.BindingExpression(this.observerLocator,this.attributeMap.map(b.tagName,e.attrName),this.parser.parse(e.attrValue),c.bindingMode.twoWay,a.lookupFunctions),g},a.prototype["one-way"]=function(a,b,e,f){var g=f||d.BehaviorInstruction.attribute(e.attrName);return g.attributes[e.attrName]=new c.BindingExpression(this.observerLocator,this.attributeMap.map(b.tagName,e.attrName),this.parser.parse(e.attrValue),c.bindingMode.oneWay,a.lookupFunctions),g},a.prototype["one-time"]=function(a,b,e,f){var g=f||d.BehaviorInstruction.attribute(e.attrName);return g.attributes[e.attrName]=new c.BindingExpression(this.observerLocator,this.attributeMap.map(b.tagName,e.attrName),this.parser.parse(e.attrValue),c.bindingMode.oneTime,a.lookupFunctions),g},a}(),n.inject=[c.Parser,c.ObserverLocator,c.EventManager,s],o),x={},y=a.TemplatingBindingLanguage=(q=p=function(a){function b(b,c,d,e){var g=f(this,a.call(this));return g.parser=b,g.observerLocator=c,g.syntaxInterpreter=d,g.emptyStringExpression=g.parser.parse("''"),d.language=g,g.attributeMap=e,g}return g(b,a),b.prototype.inspectAttribute=function(a,b,d,e){var f=d.split(".");if(x.defaultBindingMode=null,2===f.length)x.attrName=f[0].trim(),x.attrValue=e,x.command=f[1].trim(),"ref"===x.command?(x.expression=new c.NameExpression(this.parser.parse(e),x.attrName,a.lookupFunctions),x.command=null,x.attrName="ref"):x.expression=null;else if("ref"===d)x.attrName=d,x.attrValue=e,x.command=null,x.expression=new c.NameExpression(this.parser.parse(e),"element",a.lookupFunctions);else{x.attrName=d,x.attrValue=e,x.command=null;var g=this.parseInterpolation(a,e);null===g?x.expression=null:x.expression=new t(this.observerLocator,this.attributeMap.map(b,d),g,c.bindingMode.oneWay,a.lookupFunctions,d)}return x},b.prototype.createAttributeInstruction=function(a,b,c,e,f){var g=void 0;if(c.expression){if("ref"===c.attrName)return c.expression;g=e||d.BehaviorInstruction.attribute(c.attrName),g.attributes[c.attrName]=c.expression}else c.command&&(g=this.syntaxInterpreter.interpret(a,b,c,e,f));return g},b.prototype.inspectTextContent=function(a,b){var d=this.parseInterpolation(a,b);return null===d?null:new t(this.observerLocator,"textContent",d,c.bindingMode.oneWay,a.lookupFunctions,"textContent")},b.prototype.parseInterpolation=function(a,b){for(var c=b.indexOf("${",0),d=b.length,e=void 0,f=0,g=0,h=null,i=void 0,j=void 0,k=0;c>=0&&d-2>c;){g=1,i=c,c+=2;do e=b[c],c++,"'"!==e&&'"'!==e?"\\"!==e?null===h&&("{"===e?g++:"}"===e&&g--):c++:null===h?h=e:h===e&&(h=null);while(g>0&&d>c);if(0!==g)break;j=j||[],"\\"===b[i-1]&&"\\"!==b[i-2]?(j[k]=b.substring(f,i-1)+b.substring(i,c),k++,j[k]=this.emptyStringExpression,k++):(j[k]=b.substring(f,i),k++,j[k]=this.parser.parse(b.substring(i+2,c-1)),k++),f=c,c=b.indexOf("${",c)}return 0===k?null:(j[k]=b.substr(f),j)},b}(d.BindingLanguage),p.inject=[c.Parser,c.ObserverLocator,w,s],q)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-binding@1.0.0.js",["npm:aurelia-templating-binding@1.0.0/aurelia-templating-binding"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/compose.js",["exports","aurelia-dependency-injection","aurelia-task-queue","aurelia-templating","aurelia-pal"],function(a,b,c,d,e){"use strict";function f(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}function h(a,b){return Object.assign(b,{bindingContext:a.bindingContext,overrideContext:a.overrideContext,owningView:a.owningView,container:a.container,viewSlot:a.viewSlot,viewResources:a.viewResources,currentController:a.currentController,host:a.element})}function i(a,b){a.currentInstruction=null,a.compositionEngine.compose(b).then(function(b){a.currentController=b,a.currentViewModel=b?b.viewModel:null})}Object.defineProperty(a,"__esModule",{value:!0}),a.Compose=void 0;var j,k,l,m,n,o,p;a.Compose=(j=(0,d.customElement)("compose"),k=(0,b.inject)(e.DOM.Element,b.Container,d.CompositionEngine,d.ViewSlot,d.ViewResources,c.TaskQueue),j(l=(0,d.noView)(l=k((m=function(){function a(a,b,c,d,e,g){f(this,"model",n,this),f(this,"view",o,this),f(this,"viewModel",p,this),this.element=a,this.container=b,this.compositionEngine=c,this.viewSlot=d,this.viewResources=e,this.taskQueue=g,this.currentController=null,this.currentViewModel=null}return a.prototype.created=function(a){this.owningView=a},a.prototype.bind=function(a,b){this.bindingContext=a,this.overrideContext=b,i(this,h(this,{view:this.view,viewModel:this.viewModel,model:this.model}))},a.prototype.unbind=function(a,b){this.bindingContext=null,this.overrideContext=null;var c=!0,d=!0;this.viewSlot.removeAll(c,d)},a.prototype.modelChanged=function(a,b){var c=this;return this.currentInstruction?void(this.currentInstruction.model=a):void this.taskQueue.queueMicroTask(function(){if(c.currentInstruction)return void(c.currentInstruction.model=a);var b=c.currentViewModel;b&&"function"==typeof b.activate&&b.activate(a)})},a.prototype.viewChanged=function(a,b){var c=this,d=h(this,{view:a,viewModel:this.currentViewModel||this.viewModel,model:this.model});return this.currentInstruction?void(this.currentInstruction=d):(this.currentInstruction=d,void this.taskQueue.queueMicroTask(function(){return i(c,c.currentInstruction)}))},a.prototype.viewModelChanged=function(a,b){var c=this,d=h(this,{viewModel:a,view:this.view,model:this.model});return this.currentInstruction?void(this.currentInstruction=d):(this.currentInstruction=d,void this.taskQueue.queueMicroTask(function(){return i(c,c.currentInstruction)}))},a}(),n=g(m.prototype,"model",[d.bindable],{enumerable:!0,initializer:null}),o=g(m.prototype,"view",[d.bindable],{enumerable:!0,initializer:null}),p=g(m.prototype,"viewModel",[d.bindable],{enumerable:!0,initializer:null}),l=m))||l)||l)||l)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/if.js",["exports","aurelia-templating","aurelia-dependency-injection"],function(a,b,c){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.If=void 0;var d,e,f;a.If=(d=(0,b.customAttribute)("if"),e=(0,c.inject)(b.BoundViewFactory,b.ViewSlot),d(f=(0,b.templateController)(f=e(f=function(){function a(a,b){this.viewFactory=a,this.viewSlot=b,this.showing=!1,this.view=null,this.bindingContext=null,this.overrideContext=null}return a.prototype.bind=function(a,b){this.bindingContext=a,this.overrideContext=b,this.valueChanged(this.value)},a.prototype.valueChanged=function(a){var b=this;if(this.__queuedChanges)return void this.__queuedChanges.push(a);var c=this._runValueChanged(a);c instanceof Promise&&!function(){var a=b.__queuedChanges=[],d=function e(){if(!a.length)return void(b.__queuedChanges=void 0);var c=b._runValueChanged(a.shift())||Promise.resolve();c.then(e)};c.then(d)}()},a.prototype._runValueChanged=function(a){var b=this;if(!a){var c=void 0;return null!==this.view&&this.showing&&(c=this.viewSlot.remove(this.view),c instanceof Promise?c.then(function(){return b.view.unbind()}):this.view.unbind()),this.showing=!1,c}return null===this.view&&(this.view=this.viewFactory.create()),this.view.isBound||this.view.bind(this.bindingContext,this.overrideContext),this.showing?void 0:(this.showing=!0,this.viewSlot.add(this.view))},a.prototype.unbind=function(){null!==this.view&&(this.view.unbind(),this.viewFactory.isCaching&&(this.showing&&(this.showing=!1,this.viewSlot.remove(this.view,!0,!0)),this.view.returnToCache(),this.view=null))},a}())||f)||f)||f)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/with.js",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-binding"],function(a,b,c,d){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.With=void 0;var e,f,g;a.With=(e=(0,c.customAttribute)("with"),f=(0,b.inject)(c.BoundViewFactory,c.ViewSlot),e(g=(0,c.templateController)(g=f(g=function(){function a(a,b){this.viewFactory=a,this.viewSlot=b,this.parentOverrideContext=null,this.view=null}return a.prototype.bind=function(a,b){this.parentOverrideContext=b,this.valueChanged(this.value)},a.prototype.valueChanged=function(a){var b=(0,d.createOverrideContext)(a,this.parentOverrideContext);this.view?this.view.bind(a,b):(this.view=this.viewFactory.create(),this.view.bind(a,b),this.viewSlot.add(this.view))},a.prototype.unbind=function(){this.parentOverrideContext=null,this.view&&this.view.unbind()},a}())||g)||g)||g)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/repeat.js",["exports","aurelia-dependency-injection","aurelia-binding","aurelia-templating","./repeat-strategy-locator","./repeat-utilities","./analyze-view-factory","./abstract-repeater"],function(a,b,c,d,e,f,g,h){"use strict";function i(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function j(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function k(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function l(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}Object.defineProperty(a,"__esModule",{value:!0}),a.Repeat=void 0;var m,n,o,p,q,r,s,t;a.Repeat=(m=(0,d.customAttribute)("repeat"),n=(0,b.inject)(d.BoundViewFactory,d.TargetInstruction,d.ViewSlot,d.ViewResources,c.ObserverLocator,e.RepeatStrategyLocator),m(o=(0,d.templateController)(o=n((p=function(a){function b(b,c,d,e,h,k){var l=j(this,a.call(this,{local:"item",viewsRequireLifecycle:(0,g.viewsRequireLifecycle)(b)}));return i(l,"items",q,l),i(l,"local",r,l),i(l,"key",s,l),i(l,"value",t,l),l.viewFactory=b,l.instruction=c,l.viewSlot=d,l.lookupFunctions=e.lookupFunctions,l.observerLocator=h,l.key="key",l.value="value",l.strategyLocator=k,l.ignoreMutation=!1,l.sourceExpression=(0,f.getItemsSourceExpression)(l.instruction,"repeat.for"),l.isOneTime=(0,f.isOneTime)(l.sourceExpression),l.viewsRequireLifecycle=(0,g.viewsRequireLifecycle)(b),l}return k(b,a),b.prototype.call=function(a,b){this[a](this.items,b)},b.prototype.bind=function(a,b){this.scope={bindingContext:a,overrideContext:b},this.matcherBinding=this._captureAndRemoveMatcherBinding(),this.itemsChanged()},b.prototype.unbind=function(){this.scope=null,this.items=null,this.matcherBinding=null,this.viewSlot.removeAll(!0),this._unsubscribeCollection()},b.prototype._unsubscribeCollection=function(){this.collectionObserver&&(this.collectionObserver.unsubscribe(this.callContext,this),this.collectionObserver=null,this.callContext=null)},b.prototype.itemsChanged=function(){if(this._unsubscribeCollection(),this.scope){var a=this.items;if(this.strategy=this.strategyLocator.getStrategy(a),!this.strategy)throw new Error("Value for '"+this.sourceExpression+"' is non-repeatable");this.isOneTime||this._observeInnerCollection()||this._observeCollection(),this.strategy.instanceChanged(this,a)}},b.prototype._getInnerCollection=function(){var a=(0,f.unwrapExpression)(this.sourceExpression);return a?a.evaluate(this.scope,null):null},b.prototype.handleCollectionMutated=function(a,b){this.collectionObserver&&this.strategy.instanceMutated(this,a,b)},b.prototype.handleInnerCollectionMutated=function(a,b){var c=this;if(this.collectionObserver&&!this.ignoreMutation){this.ignoreMutation=!0;var d=this.sourceExpression.evaluate(this.scope,this.lookupFunctions);this.observerLocator.taskQueue.queueMicroTask(function(){return c.ignoreMutation=!1}),d===this.items?this.itemsChanged():this.items=d}},b.prototype._observeInnerCollection=function(){var a=this._getInnerCollection(),b=this.strategyLocator.getStrategy(a);return b?(this.collectionObserver=b.getCollectionObserver(this.observerLocator,a),this.collectionObserver?(this.callContext="handleInnerCollectionMutated",this.collectionObserver.subscribe(this.callContext,this),!0):!1):!1},b.prototype._observeCollection=function(){var a=this.items;this.collectionObserver=this.strategy.getCollectionObserver(this.observerLocator,a),this.collectionObserver&&(this.callContext="handleCollectionMutated",this.collectionObserver.subscribe(this.callContext,this))},b.prototype._captureAndRemoveMatcherBinding=function(){if(this.viewFactory.viewFactory)for(var a=this.viewFactory.viewFactory.instructions,b=Object.keys(a),c=0;c<b.length;c++){var d=a[b[c]].expressions;if(d)for(var e=0;c<d.length;c++)if("matcher"===d[e].targetProperty){var f=d[e];return d.splice(e,1),f}}},b.prototype.viewCount=function(){return this.viewSlot.children.length},b.prototype.views=function(){return this.viewSlot.children},b.prototype.view=function(a){return this.viewSlot.children[a]},b.prototype.matcher=function(){return this.matcherBinding?this.matcherBinding.sourceExpression.evaluate(this.scope,this.matcherBinding.lookupFunctions):null},b.prototype.addView=function(a,b){var c=this.viewFactory.create();c.bind(a,b),this.viewSlot.add(c)},b.prototype.insertView=function(a,b,c){var d=this.viewFactory.create();d.bind(b,c),this.viewSlot.insert(a,d)},b.prototype.moveView=function(a,b){this.viewSlot.move(a,b)},b.prototype.removeAllViews=function(a,b){return this.viewSlot.removeAll(a,b)},b.prototype.removeViews=function(a,b,c){return this.viewSlot.removeMany(a,b,c)},b.prototype.removeView=function(a,b,c){return this.viewSlot.removeAt(a,b,c)},b.prototype.updateBindings=function(a){for(var b=a.bindings.length;b--;)(0,f.updateOneTimeBinding)(a.bindings[b]);for(b=a.controllers.length;b--;)for(var c=a.controllers[b].boundProperties.length;c--;){var d=a.controllers[b].boundProperties[c].binding;(0,f.updateOneTimeBinding)(d)}},b}(h.AbstractRepeater),q=l(p.prototype,"items",[d.bindable],{enumerable:!0,initializer:null}),r=l(p.prototype,"local",[d.bindable],{enumerable:!0,initializer:null}),s=l(p.prototype,"key",[d.bindable],{enumerable:!0,initializer:null}),t=l(p.prototype,"value",[d.bindable],{enumerable:!0,initializer:null}),o=p))||o)||o)||o)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/show.js",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-pal","./aurelia-hide-style"],function(a,b,c,d,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Show=void 0;var f,g,h;a.Show=(f=(0,c.customAttribute)("show"),g=(0,b.inject)(d.DOM.Element,c.Animator,b.Optional.of(d.DOM.boundary,!0)),f(h=g(h=function(){function a(a,b,c){this.element=a,this.animator=b,this.domBoundary=c}return a.prototype.created=function(){(0,e.injectAureliaHideStyleAtBoundary)(this.domBoundary)},a.prototype.valueChanged=function(a){a?this.animator.removeClass(this.element,e.aureliaHideClassName):this.animator.addClass(this.element,e.aureliaHideClassName)},a.prototype.bind=function(a){this.valueChanged(this.value)},a}())||h)||h)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/hide.js",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-pal","./aurelia-hide-style"],function(a,b,c,d,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Hide=void 0;var f,g,h;a.Hide=(f=(0,c.customAttribute)("hide"),g=(0,b.inject)(d.DOM.Element,c.Animator,b.Optional.of(d.DOM.boundary,!0)),f(h=g(h=function(){function a(a,b,c){this.element=a,this.animator=b,this.domBoundary=c}return a.prototype.created=function(){(0,e.injectAureliaHideStyleAtBoundary)(this.domBoundary)},a.prototype.valueChanged=function(a){a?this.animator.addClass(this.element,e.aureliaHideClassName):this.animator.removeClass(this.element,e.aureliaHideClassName)},a.prototype.bind=function(a){this.valueChanged(this.value)},a}())||h)||h)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/sanitize-html.js",["exports","aurelia-binding","aurelia-dependency-injection","./html-sanitizer"],function(a,b,c,d){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SanitizeHTMLValueConverter=void 0;var e,f,g;a.SanitizeHTMLValueConverter=(e=(0,b.valueConverter)("sanitizeHTML"),f=(0,c.inject)(d.HTMLSanitizer),e(g=f(g=function(){function a(a){this.sanitizer=a}return a.prototype.toView=function(a){return null===a||void 0===a?null:this.sanitizer.sanitize(a)},a}())||g)||g)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/replaceable.js",["exports","aurelia-dependency-injection","aurelia-templating"],function(a,b,c){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Replaceable=void 0;var d,e,f;a.Replaceable=(d=(0,c.customAttribute)("replaceable"),e=(0,b.inject)(c.BoundViewFactory,c.ViewSlot),d(f=(0,c.templateController)(f=e(f=function(){function a(a,b){this.viewFactory=a,this.viewSlot=b,this.view=null}return a.prototype.bind=function(a,b){null===this.view&&(this.view=this.viewFactory.create(),this.viewSlot.add(this.view)),this.view.bind(a,b)},a.prototype.unbind=function(){this.view.unbind()},a}())||f)||f)||f)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/focus.js",["exports","aurelia-templating","aurelia-binding","aurelia-dependency-injection","aurelia-task-queue","aurelia-pal"],function(a,b,c,d,e,f){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Focus=void 0;var g,h,i;a.Focus=(g=(0,b.customAttribute)("focus",c.bindingMode.twoWay),h=(0,d.inject)(f.DOM.Element,e.TaskQueue),g(i=h(i=function(){function a(a,b){var c=this;this.element=a,this.taskQueue=b,this.isAttached=!1,this.needsApply=!1,this.focusListener=function(a){c.value=!0},this.blurListener=function(a){f.DOM.activeElement!==c.element&&(c.value=!1)}}return a.prototype.valueChanged=function(a){this.isAttached?this._apply():this.needsApply=!0},a.prototype._apply=function(){var a=this;this.value?this.taskQueue.queueMicroTask(function(){a.value&&a.element.focus()}):this.element.blur()},a.prototype.attached=function(){this.isAttached=!0,this.needsApply&&(this.needsApply=!1,this._apply()),this.element.addEventListener("focus",this.focusListener),this.element.addEventListener("blur",this.blurListener)},a.prototype.detached=function(){this.isAttached=!1,this.element.removeEventListener("focus",this.focusListener),this.element.removeEventListener("blur",this.blurListener)},a}())||i)||i)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/css-resource.js",["exports","aurelia-templating","aurelia-loader","aurelia-dependency-injection","aurelia-path","aurelia-pal"],function(a,b,c,d,e,f){"use strict";function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function i(a,b){if("string"!=typeof b)throw new Error("Failed loading required CSS file: "+a);return b.replace(k,function(b,c){var d=c.charAt(0);return"'"!==d&&'"'!==d||(c=c.substr(1,c.length-2)),"url('"+(0,e.relativeToFile)(c,a)+"')"})}function j(a){var c,d,e=(c=(0,b.resource)(new l(a)),c(d=function(a){function b(){return g(this,a.apply(this,arguments))}return h(b,a),b}(m))||d);return e}Object.defineProperty(a,"__esModule",{value:!0}),a._createCSSResource=j;var k=/url\((?!['"]data)([^)]+)\)/gi,l=function(){function a(a){this.address=a,this._scoped=null,this._global=!1,this._alreadyGloballyInjected=!1}return a.prototype.initialize=function(a,b){this._scoped=new b(this)},a.prototype.register=function(a,b){"scoped"===b?a.registerViewEngineHooks(this._scoped):this._global=!0},a.prototype.load=function(a){var b=this;return a.get(c.Loader).loadText(this.address)["catch"](function(a){return null}).then(function(a){a=i(b.address,a),b._scoped.css=a,b._global&&(b._alreadyGloballyInjected=!0,f.DOM.injectStyles(a))})},a}(),m=function(){function a(a){this.owner=a,this.css=null}return a.prototype.beforeCompile=function(a,b,c){if(c.targetShadowDOM)f.DOM.injectStyles(this.css,a,!0);else if(f.FEATURE.scopedCSS){var d=f.DOM.injectStyles(this.css,a,!0);d.setAttribute("scoped","scoped")}else this.owner._alreadyGloballyInjected||(f.DOM.injectStyles(this.css),this.owner._alreadyGloballyInjected=!0)},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/html-sanitizer.js",["exports"],function(a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var b=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;a.HTMLSanitizer=function(){function a(){}return a.prototype.sanitize=function(a){return a.replace(b,"")},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/binding-mode-behaviors.js",["exports","aurelia-binding","aurelia-metadata"],function(a,b,c){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.TwoWayBindingBehavior=a.OneWayBindingBehavior=a.OneTimeBindingBehavior=void 0;var d,e,f,g,h,i,j={bind:function(a,b,c){a.originalMode=a.mode,a.mode=this.mode},unbind:function(a,b){a.mode=a.originalMode,a.originalMode=null}};a.OneTimeBindingBehavior=(d=(0,c.mixin)(j),d(e=function(){this.mode=b.bindingMode.oneTime})||e),a.OneWayBindingBehavior=(f=(0,c.mixin)(j),f(g=function(){this.mode=b.bindingMode.oneWay})||g),a.TwoWayBindingBehavior=(h=(0,c.mixin)(j),h(i=function(){this.mode=b.bindingMode.twoWay})||i)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/throttle-binding-behavior.js",["exports","aurelia-binding"],function(a,b){"use strict";function c(a){var b=this,c=this.throttleState,d=+new Date-c.last;return d>=c.delay?(clearTimeout(c.timeoutId),c.timeoutId=null,c.last=+new Date,void this.throttledMethod(a)):(c.newValue=a,void(null===c.timeoutId&&(c.timeoutId=setTimeout(function(){c.timeoutId=null,c.last=+new Date,b.throttledMethod(c.newValue)},c.delay-d))))}Object.defineProperty(a,"__esModule",{value:!0}),a.ThrottleBindingBehavior=void 0;a.ThrottleBindingBehavior=function(){function a(){}return a.prototype.bind=function(a,d){var e=arguments.length<=2||void 0===arguments[2]?200:arguments[2],f="updateTarget";a.callSource?f="callSource":a.updateSource&&a.mode===b.bindingMode.twoWay&&(f="updateSource"),a.throttledMethod=a[f],a.throttledMethod.originalName=f,a[f]=c,a.throttleState={delay:e,last:0,timeoutId:null}},a.prototype.unbind=function(a,b){var c=a.throttledMethod.originalName;a[c]=a.throttledMethod,a.throttledMethod=null,clearTimeout(a.throttleState.timeoutId),a.throttleState=null},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/debounce-binding-behavior.js",["exports","aurelia-binding"],function(a,b){"use strict";function c(a){var b=this,c=this.debounceState;return c.immediate?(c.immediate=!1,void this.debouncedMethod(a)):(clearTimeout(c.timeoutId),void(c.timeoutId=setTimeout(function(){return b.debouncedMethod(a)},c.delay)))}Object.defineProperty(a,"__esModule",{value:!0}),a.DebounceBindingBehavior=void 0;a.DebounceBindingBehavior=function(){function a(){}return a.prototype.bind=function(a,d){var e=arguments.length<=2||void 0===arguments[2]?200:arguments[2],f="updateTarget";a.callSource?f="callSource":a.updateSource&&a.mode===b.bindingMode.twoWay&&(f="updateSource"),a.debouncedMethod=a[f],a.debouncedMethod.originalName=f,a[f]=c,a.debounceState={delay:e,timeoutId:null,immediate:"updateTarget"===f}},a.prototype.unbind=function(a,b){var c=a.debouncedMethod.originalName;a[c]=a.debouncedMethod,a.debouncedMethod=null,clearTimeout(a.debounceState.timeoutId),a.debounceState=null},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/signal-binding-behavior.js",["exports","./binding-signaler"],function(a,b){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SignalBindingBehavior=void 0;a.SignalBindingBehavior=function(){function a(a){this.signals=a.signals}return a.inject=function(){return[b.BindingSignaler]},a.prototype.bind=function(a,b){if(!a.updateTarget)throw new Error("Only property bindings and string interpolation bindings can be signaled.  Trigger, delegate and call bindings cannot be signaled.");if(3===arguments.length){var c=arguments[2],d=this.signals[c]||(this.signals[c]=[]);
  d.push(a),a.signalName=c}else{if(!(arguments.length>3))throw new Error("Signal name is required.");for(var e=Array.prototype.slice.call(arguments,2),f=e.length;f--;){var g=e[f],h=this.signals[g]||(this.signals[g]=[]);h.push(a)}a.signalName=e}},a.prototype.unbind=function(a,b){var c=a.signalName;if(a.signalName=null,Array.isArray(c))for(var d=c,e=d.length;e--;){var f=d[e],g=this.signals[f];g.splice(g.indexOf(a),1)}else{var h=this.signals[c];h.splice(h.indexOf(a),1)}},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/binding-signaler.js",["exports","aurelia-binding"],function(a,b){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.BindingSignaler=void 0;a.BindingSignaler=function(){function a(){this.signals={}}return a.prototype.signal=function(a){var c=this.signals[a];if(c)for(var d=c.length;d--;)c[d].call(b.sourceContext)},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/update-trigger-binding-behavior.js",["exports","aurelia-binding"],function(a,b){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.UpdateTriggerBindingBehavior=void 0;var c,d,e="The updateTrigger binding behavior requires at least one event name argument: eg <input value.bind=\"firstName & updateTrigger:'blur'\">",f="The updateTrigger binding behavior can only be applied to two-way bindings on input/select elements.";a.UpdateTriggerBindingBehavior=(d=c=function(){function a(a){this.eventManager=a}return a.prototype.bind=function(a,c){for(var d=arguments.length,g=Array(d>2?d-2:0),h=2;d>h;h++)g[h-2]=arguments[h];if(0===g.length)throw new Error(e);if(a.mode!==b.bindingMode.twoWay)throw new Error(f);var i=a.observerLocator.getObserver(a.target,a.targetProperty);if(!i.handler)throw new Error(f);a.targetObserver=i,i.originalHandler=a.targetObserver.handler;var j=this.eventManager.createElementHandler(g);i.handler=j},a.prototype.unbind=function(a,b){a.targetObserver.handler=a.targetObserver.originalHandler,a.targetObserver.originalHandler=null},a}(),c.inject=[b.EventManager],d)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/abstract-repeater.js",["exports"],function(a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.AbstractRepeater=function(){function a(a){Object.assign(this,{local:"items",viewsRequireLifecycle:!0},a)}return a.prototype.viewCount=function(){throw new Error("subclass must implement `viewCount`")},a.prototype.views=function(){throw new Error("subclass must implement `views`")},a.prototype.view=function(a){throw new Error("subclass must implement `view`")},a.prototype.matcher=function(){throw new Error("subclass must implement `matcher`")},a.prototype.addView=function(a,b){throw new Error("subclass must implement `addView`")},a.prototype.insertView=function(a,b,c){throw new Error("subclass must implement `insertView`")},a.prototype.moveView=function(a,b){throw new Error("subclass must implement `moveView`")},a.prototype.removeAllViews=function(a,b){throw new Error("subclass must implement `removeAllViews`")},a.prototype.removeViews=function(a,b,c){throw new Error("subclass must implement `removeView`")},a.prototype.removeView=function(a,b,c){throw new Error("subclass must implement `removeView`")},a.prototype.updateBindings=function(a){throw new Error("subclass must implement `updateBindings`")},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/repeat-strategy-locator.js",["exports","./null-repeat-strategy","./array-repeat-strategy","./map-repeat-strategy","./set-repeat-strategy","./number-repeat-strategy"],function(a,b,c,d,e,f){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.RepeatStrategyLocator=void 0;a.RepeatStrategyLocator=function(){function a(){this.matchers=[],this.strategies=[],this.addStrategy(function(a){return null===a||void 0===a},new b.NullRepeatStrategy),this.addStrategy(function(a){return a instanceof Array},new c.ArrayRepeatStrategy),this.addStrategy(function(a){return a instanceof Map},new d.MapRepeatStrategy),this.addStrategy(function(a){return a instanceof Set},new e.SetRepeatStrategy),this.addStrategy(function(a){return"number"==typeof a},new f.NumberRepeatStrategy)}return a.prototype.addStrategy=function(a,b){this.matchers.push(a),this.strategies.push(b)},a.prototype.getStrategy=function(a){for(var b=this.matchers,c=0,d=b.length;d>c;++c)if(b[c](a))return this.strategies[c];return null},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/dynamic-element.js",["exports","aurelia-templating"],function(a,b){"use strict";function c(a,c,d){for(var e,f,g,h=(e=(0,b.customElement)(a),f=(0,b.useView)(c),e(g=f(g=function(){function a(){}return a.prototype.bind=function(a){this.$parent=a},a}())||g)||g),i=0,j=d.length;j>i;++i)(0,b.bindable)(d[i])(h);return h}Object.defineProperty(a,"__esModule",{value:!0}),a._createDynamicElement=c})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/html-resource-plugin.js",["exports","aurelia-templating","./dynamic-element"],function(a,b,c){"use strict";function d(a){return/([^\/^\?]+)\.html/i.exec(a)[1].toLowerCase()}function e(a){var e=a.container.get(b.ViewEngine),f=a.aurelia.loader;e.addResourcePlugin(".html",{fetch:function(a){return f.loadTemplate(a).then(function(b){var e,f=b.template.getAttribute("bindable"),g=d(a);return f?(f=f.split(",").map(function(a){return a.trim()}),b.template.removeAttribute("bindable")):f=[],e={},e[g]=(0,c._createDynamicElement)(g,a,f),e})}})}Object.defineProperty(a,"__esModule",{value:!0}),a.getElementName=d,a.configure=e})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/null-repeat-strategy.js",["exports"],function(a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.NullRepeatStrategy=function(){function a(){}return a.prototype.instanceChanged=function(a,b){a.removeAllViews(!0)},a.prototype.getCollectionObserver=function(a,b){},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/array-repeat-strategy.js",["exports","./repeat-utilities","aurelia-binding"],function(a,b,c){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.ArrayRepeatStrategy=void 0;a.ArrayRepeatStrategy=function(){function a(){}return a.prototype.getCollectionObserver=function(a,b){return a.getArrayObserver(b)},a.prototype.instanceChanged=function(a,c){var d=this,e=c.length;if(!c||0===e)return void a.removeAllViews(!0,!a.viewsRequireLifecycle);var f=a.views(),g=f.length;return 0===g?void this._standardProcessInstanceChanged(a,c):void(a.viewsRequireLifecycle?!function(){for(var h=f.slice(0),i=a.local,j=a.matcher(),k=[],l=[],m=0;g>m;m++){var n=h[m],o=n.bindingContext[i];-1===(0,b.indexOf)(c,o,j)?l.push(n):k.push(o)}var p=void 0,q=void 0;k.length>0?(q=a.removeViews(l,!0,!a.viewsRequireLifecycle),p=function(){for(var g=0;e>g;g++){var h=c[g],i=(0,b.indexOf)(k,h,j,g),l=void 0;if(-1===i){var m=(0,b.createFullOverrideContext)(a,c[g],g,e);a.insertView(g,m.bindingContext,m),k.splice(g,0,void 0)}else i===g?(l=f[i],k[i]=void 0):(l=f[i],a.moveView(i,g),k.splice(i,1),k.splice(g,0,void 0));l&&(0,b.updateOverrideContext)(l.overrideContext,g,e)}d._inPlaceProcessItems(a,c)}):(q=a.removeAllViews(!0,!a.viewsRequireLifecycle),p=function(){return d._standardProcessInstanceChanged(a,c)}),q instanceof Promise?q.then(p):p()}():this._inPlaceProcessItems(a,c))},a.prototype._standardProcessInstanceChanged=function(a,c){for(var d=0,e=c.length;e>d;d++){var f=(0,b.createFullOverrideContext)(a,c[d],d,e);a.addView(f.bindingContext,f)}},a.prototype._inPlaceProcessItems=function(a,c){for(var d=c.length,e=a.viewCount();e>d;)e--,a.removeView(e,!0,!a.viewsRequireLifecycle);for(var f=a.local,g=0;e>g;g++){var h=a.view(g),i=g===d-1,j=0!==g&&!i;h.bindingContext[f]===c[g]&&h.overrideContext.$middle===j&&h.overrideContext.$last===i||(h.bindingContext[f]=c[g],h.overrideContext.$middle=j,h.overrideContext.$last=i,a.updateBindings(h))}for(var k=e;d>k;k++){var l=(0,b.createFullOverrideContext)(a,c[k],k,d);a.addView(l.bindingContext,l)}},a.prototype.instanceMutated=function(a,b,d){var e=this;if(a.__queuedSplices){for(var f=0,g=d.length;g>f;++f){var h=d[f],i=h.index,j=h.removed,k=h.addedCount;(0,c.mergeSplice)(a.__queuedSplices,i,j,k)}return void(a.__array=b.slice(0))}var l=this._runSplices(a,b.slice(0),d);l instanceof Promise&&!function(){var b=a.__queuedSplices=[],c=function d(){if(!b.length)return a.__queuedSplices=void 0,void(a.__array=void 0);var c=e._runSplices(a,a.__array,b)||Promise.resolve();b=a.__queuedSplices=[],c.then(d)};l.then(c)}()},a.prototype._runSplices=function(a,c,d){for(var e=this,f=0,g=[],h=0,i=d.length;i>h;++h){for(var j=d[h],k=j.removed,l=0,m=k.length;m>l;++l){var n=a.removeView(j.index+f+g.length,!0);n instanceof Promise&&g.push(n)}f-=j.addedCount}if(g.length>0)return Promise.all(g).then(function(){var f=e._handleAddedSplices(a,c,d);(0,b.updateOverrideContexts)(a.views(),f)});var o=this._handleAddedSplices(a,c,d);(0,b.updateOverrideContexts)(a.views(),o)},a.prototype._handleAddedSplices=function(a,c,d){for(var e=void 0,f=void 0,g=c.length,h=0,i=d.length;i>h;++h){var j=d[h],k=e=j.index,l=j.index+j.addedCount;for(("undefined"==typeof f||null===f||f>j.index)&&(f=e);l>k;++k){var m=(0,b.createFullOverrideContext)(a,c[k],k,g);a.insertView(k,m.bindingContext,m)}}return f},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/map-repeat-strategy.js",["exports","./repeat-utilities"],function(a,b){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.MapRepeatStrategy=void 0;a.MapRepeatStrategy=function(){function a(){}return a.prototype.getCollectionObserver=function(a,b){return a.getMapObserver(b)},a.prototype.instanceChanged=function(a,b){var c=this,d=a.removeAllViews(!0,!a.viewsRequireLifecycle);return d instanceof Promise?void d.then(function(){return c._standardProcessItems(a,b)}):void this._standardProcessItems(a,b)},a.prototype._standardProcessItems=function(a,c){var d=0,e=void 0;c.forEach(function(f,g){e=(0,b.createFullOverrideContext)(a,f,d,c.size,g),a.addView(e.bindingContext,e),++d})},a.prototype.instanceMutated=function(a,c,d){var e=void 0,f=void 0,g=void 0,h=void 0,i=void 0,j=void 0,k=[],l=void 0;for(f=0,g=d.length;g>f;++f)switch(j=d[f],e=j.key,j.type){case"update":i=this._getViewIndexByKey(a,e),l=a.removeView(i,!0,!a.viewsRequireLifecycle),l instanceof Promise&&k.push(l),h=(0,b.createFullOverrideContext)(a,c.get(e),i,c.size,e),a.insertView(i,h.bindingContext,h);break;case"add":h=(0,b.createFullOverrideContext)(a,c.get(e),c.size-1,c.size,e),a.insertView(c.size-1,h.bindingContext,h);break;case"delete":if(void 0===j.oldValue)return;i=this._getViewIndexByKey(a,e),l=a.removeView(i,!0,!a.viewsRequireLifecycle),l instanceof Promise&&k.push(l);break;case"clear":a.removeAllViews(!0,!a.viewsRequireLifecycle);break;default:continue}k.length>0?Promise.all(k).then(function(){(0,b.updateOverrideContexts)(a.views(),0)}):(0,b.updateOverrideContexts)(a.views(),0)},a.prototype._getViewIndexByKey=function(a,b){var c=void 0,d=void 0,e=void 0;for(c=0,d=a.viewCount();d>c;++c)if(e=a.view(c),e.bindingContext[a.key]===b)return c},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/set-repeat-strategy.js",["exports","./repeat-utilities"],function(a,b){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.SetRepeatStrategy=void 0;a.SetRepeatStrategy=function(){function a(){}return a.prototype.getCollectionObserver=function(a,b){return a.getSetObserver(b)},a.prototype.instanceChanged=function(a,b){var c=this,d=a.removeAllViews(!0,!a.viewsRequireLifecycle);return d instanceof Promise?void d.then(function(){return c._standardProcessItems(a,b)}):void this._standardProcessItems(a,b)},a.prototype._standardProcessItems=function(a,c){var d=0,e=void 0;c.forEach(function(f){e=(0,b.createFullOverrideContext)(a,f,d,c.size),a.addView(e.bindingContext,e),++d})},a.prototype.instanceMutated=function(a,c,d){var e=void 0,f=void 0,g=void 0,h=void 0,i=void 0,j=void 0,k=[],l=void 0;for(f=0,g=d.length;g>f;++f)switch(j=d[f],e=j.value,j.type){case"add":h=(0,b.createFullOverrideContext)(a,e,c.size-1,c.size),a.insertView(c.size-1,h.bindingContext,h);break;case"delete":i=this._getViewIndexByValue(a,e),l=a.removeView(i,!0,!a.viewsRequireLifecycle),l instanceof Promise&&k.push(l);break;case"clear":a.removeAllViews(!0,!a.viewsRequireLifecycle);break;default:continue}k.length>0?Promise.all(k).then(function(){(0,b.updateOverrideContexts)(a.views(),0)}):(0,b.updateOverrideContexts)(a.views(),0)},a.prototype._getViewIndexByValue=function(a,b){var c=void 0,d=void 0,e=void 0;for(c=0,d=a.viewCount();d>c;++c)if(e=a.view(c),e.bindingContext[a.local]===b)return c},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/number-repeat-strategy.js",["exports","./repeat-utilities"],function(a,b){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.NumberRepeatStrategy=void 0;a.NumberRepeatStrategy=function(){function a(){}return a.prototype.getCollectionObserver=function(){return null},a.prototype.instanceChanged=function(a,b){var c=this,d=a.removeAllViews(!0,!a.viewsRequireLifecycle);return d instanceof Promise?void d.then(function(){return c._standardProcessItems(a,b)}):void this._standardProcessItems(a,b)},a.prototype._standardProcessItems=function(a,c){var d=a.viewCount(),e=void 0,f=void 0,g=void 0,h=void 0;if(c=Math.floor(c),h=d-c,h>0)for(h>d&&(h=d),e=0,f=h;f>e;++e)a.removeView(d-(e+1),!0,!a.viewsRequireLifecycle);else{for(e=d,f=c;f>e;++e)g=(0,b.createFullOverrideContext)(a,e,e,f),a.addView(g.bindingContext,g);(0,b.updateOverrideContexts)(a.views(),0)}},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/repeat-utilities.js",["exports","aurelia-binding"],function(a,b){"use strict";function c(a,b){var c=a.length;for(b>0&&(b-=1);c>b;++b)e(a[b].overrideContext,b,c)}function d(a,c,d,f,g){var h={},i=(0,b.createOverrideContext)(h,a.scope.overrideContext);return"undefined"!=typeof g?(h[a.key]=g,h[a.value]=c):h[a.local]=c,e(i,d,f),i}function e(a,b,c){var d=0===b,e=b===c-1,f=b%2===0;a.$index=b,a.$first=d,a.$last=e,a.$middle=!(d||e),a.$odd=!f,a.$even=f}function f(a,b){return a.behaviorInstructions.filter(function(a){return a.originalAttrName===b})[0].attributes.items.sourceExpression}function g(a){for(var c=!1;a instanceof b.BindingBehavior;)a=a.expression;for(;a instanceof b.ValueConverter;)a=a.expression,c=!0;return c?a:null}function h(a){for(;a instanceof b.BindingBehavior;){if("oneTime"===a.name)return!0;a=a.expression}return!1}function i(a){a.call&&a.mode===k?a.call(b.sourceContext):a.updateOneTimeBindings&&a.updateOneTimeBindings()}function j(a,b,c,d){if(!c)return a.indexOf(b);for(var e=a.length,f=d||0;e>f;f++)if(c(a[f],b))return f;return-1}Object.defineProperty(a,"__esModule",{value:!0}),a.updateOverrideContexts=c,a.createFullOverrideContext=d,a.updateOverrideContext=e,a.getItemsSourceExpression=f,a.unwrapExpression=g,a.isOneTime=h,a.updateOneTimeBinding=i,a.indexOf=j;var k=b.bindingMode.oneTime})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/analyze-view-factory.js",["exports"],function(a){"use strict";function b(a){var b=a.type,c=null!==b.elementName?b.elementName:b.attributeName;return-1===e.indexOf(c)&&(b.handlesAttached||b.handlesBind||b.handlesCreated||b.handlesDetached||b.handlesUnbind)||b.viewFactory&&d(b.viewFactory)||a.viewFactory&&d(a.viewFactory)}function c(a){var c=a.behaviorInstructions;if(c)for(var e=c.length;e--;)if(b(c[e]))return!0;return a.viewFactory&&d(a.viewFactory)}function d(a){if("_viewsRequireLifecycle"in a)return a._viewsRequireLifecycle;if(a._viewsRequireLifecycle=!1,a.viewFactory)return a._viewsRequireLifecycle=d(a.viewFactory),a._viewsRequireLifecycle;if(a.template.querySelector(".au-animate"))return a._viewsRequireLifecycle=!0,!0;for(var b in a.instructions)if(c(a.instructions[b]))return a._viewsRequireLifecycle=!0,!0;return a._viewsRequireLifecycle=!1,!1}Object.defineProperty(a,"__esModule",{value:!0}),a.viewsRequireLifecycle=d;var e=a.lifecycleOptionalBehaviors=["focus","if","repeat","show","with"]})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/aurelia-hide-style.js",["exports","aurelia-pal"],function(a,b){"use strict";function c(){b.DOM.injectStyles(f)}function d(a){b.FEATURE.shadowDOM&&a&&!a.hasAureliaHideStyle&&(a.hasAureliaHideStyle=!0,b.DOM.injectStyles(f,a))}Object.defineProperty(a,"__esModule",{value:!0}),a.aureliaHideClassName=void 0,a.injectAureliaHideStyleAtHead=c,a.injectAureliaHideStyleAtBoundary=d;var e=a.aureliaHideClassName="aurelia-hide",f="."+e+" { display:none !important; }"})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0/aurelia-templating-resources.js",["exports","./compose","./if","./with","./repeat","./show","./hide","./sanitize-html","./replaceable","./focus","aurelia-templating","./css-resource","./html-sanitizer","./binding-mode-behaviors","./throttle-binding-behavior","./debounce-binding-behavior","./signal-binding-behavior","./binding-signaler","./update-trigger-binding-behavior","./abstract-repeater","./repeat-strategy-locator","./html-resource-plugin","./null-repeat-strategy","./array-repeat-strategy","./map-repeat-strategy","./set-repeat-strategy","./number-repeat-strategy","./repeat-utilities","./analyze-view-factory","./aurelia-hide-style"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D){"use strict";function E(a){(0,D.injectAureliaHideStyleAtHead)(),a.globalResources("./compose","./if","./with","./repeat","./show","./hide","./replaceable","./sanitize-html","./focus","./binding-mode-behaviors","./throttle-binding-behavior","./debounce-binding-behavior","./signal-binding-behavior","./update-trigger-binding-behavior"),(0,v.configure)(a);var b=a.container.get(k.ViewEngine);b.addResourcePlugin(".css",{fetch:function(a){var b;return b={},b[a]=(0,l._createCSSResource)(a),b}})}Object.defineProperty(a,"__esModule",{value:!0}),a.viewsRequireLifecycle=a.unwrapExpression=a.updateOneTimeBinding=a.isOneTime=a.getItemsSourceExpression=a.updateOverrideContext=a.createFullOverrideContext=a.NumberRepeatStrategy=a.SetRepeatStrategy=a.MapRepeatStrategy=a.ArrayRepeatStrategy=a.NullRepeatStrategy=a.RepeatStrategyLocator=a.AbstractRepeater=a.UpdateTriggerBindingBehavior=a.BindingSignaler=a.SignalBindingBehavior=a.DebounceBindingBehavior=a.ThrottleBindingBehavior=a.TwoWayBindingBehavior=a.OneWayBindingBehavior=a.OneTimeBindingBehavior=a.configure=a.Focus=a.Replaceable=a.SanitizeHTMLValueConverter=a.HTMLSanitizer=a.Hide=a.Show=a.Repeat=a.With=a.If=a.Compose=void 0,a.Compose=b.Compose,a.If=c.If,a.With=d.With,a.Repeat=e.Repeat,a.Show=f.Show,a.Hide=g.Hide,a.HTMLSanitizer=m.HTMLSanitizer,a.SanitizeHTMLValueConverter=h.SanitizeHTMLValueConverter,a.Replaceable=i.Replaceable,a.Focus=j.Focus,a.configure=E,a.OneTimeBindingBehavior=n.OneTimeBindingBehavior,a.OneWayBindingBehavior=n.OneWayBindingBehavior,a.TwoWayBindingBehavior=n.TwoWayBindingBehavior,a.ThrottleBindingBehavior=o.ThrottleBindingBehavior,a.DebounceBindingBehavior=p.DebounceBindingBehavior,a.SignalBindingBehavior=q.SignalBindingBehavior,a.BindingSignaler=r.BindingSignaler,a.UpdateTriggerBindingBehavior=s.UpdateTriggerBindingBehavior,a.AbstractRepeater=t.AbstractRepeater,a.RepeatStrategyLocator=u.RepeatStrategyLocator,a.NullRepeatStrategy=w.NullRepeatStrategy,a.ArrayRepeatStrategy=x.ArrayRepeatStrategy,a.MapRepeatStrategy=y.MapRepeatStrategy,a.SetRepeatStrategy=z.SetRepeatStrategy,a.NumberRepeatStrategy=A.NumberRepeatStrategy,a.createFullOverrideContext=B.createFullOverrideContext,a.updateOverrideContext=B.updateOverrideContext,a.getItemsSourceExpression=B.getItemsSourceExpression,a.isOneTime=B.isOneTime,a.updateOneTimeBinding=B.updateOneTimeBinding,a.unwrapExpression=B.unwrapExpression,a.viewsRequireLifecycle=C.viewsRequireLifecycle})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-resources@1.0.0.js",["npm:aurelia-templating-resources@1.0.0/aurelia-templating-resources"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-router@1.0.0/route-loader.js",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-router","aurelia-path","aurelia-metadata"],function(a,b,c,d,e,f){"use strict";function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}Object.defineProperty(a,"__esModule",{value:!0}),a.TemplatingRouteLoader=void 0;var i,j;a.TemplatingRouteLoader=(i=(0,b.inject)(c.CompositionEngine),i(j=function(a){function b(b){var c=g(this,a.call(this));return c.compositionEngine=b,c}return h(b,a),b.prototype.loadRoute=function(a,b){var c=a.container.createChild(),g={viewModel:(0,e.relativeToFile)(b.moduleId,f.Origin.get(a.container.viewModel.constructor).moduleId),childContainer:c,view:b.view||b.viewStrategy,router:a};return c.getChildRouter=function(){var b=void 0;return c.registerHandler(d.Router,function(d){return b||(b=a.createChild(c))}),c.get(d.Router)},this.compositionEngine.ensureViewModel(g)},b}(d.RouteLoader))||j)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-router@1.0.0/router-view.js",["exports","aurelia-dependency-injection","aurelia-templating","aurelia-router","aurelia-metadata","aurelia-pal"],function(a,b,c,d,e,f){"use strict";function g(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function h(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}Object.defineProperty(a,"__esModule",{value:!0}),a.RouterView=void 0;var i,j,k,l,m,n,o,p,q=function(){function a(){}return a.prototype.before=function(a,b,c){var d=Promise.resolve(c());return void 0!==b?d.then(function(){return a.remove(b,!0)}):d},a.prototype["with"]=function(a,b,c){var d=Promise.resolve(c());return void 0!==b?Promise.all([a.remove(b,!0),d]):d},a.prototype.after=function(a,b,c){return Promise.resolve(a.removeAll(!0)).then(c)},a}(),r=new q;a.RouterView=(i=(0,c.customElement)("router-view"),j=(0,b.inject)(f.DOM.Element,b.Container,c.ViewSlot,d.Router,c.ViewLocator,c.CompositionTransaction,c.CompositionEngine),i(k=(0,c.noView)(k=j((l=function(){function a(a,b,c,d,e,f,h){g(this,"swapOrder",m,this),g(this,"layoutView",n,this),g(this,"layoutViewModel",o,this),g(this,"layoutModel",p,this),this.element=a,this.container=b,this.viewSlot=c,this.router=d,this.viewLocator=e,this.compositionTransaction=f,this.compositionEngine=h,this.router.registerViewPort(this,this.element.getAttribute("name")),"initialComposition"in f||(f.initialComposition=!0,this.compositionTransactionNotifier=f.enlist())}return a.prototype.created=function(a){this.owningView=a},a.prototype.bind=function(a,b){this.container.viewModel=a,this.overrideContext=b},a.prototype.process=function(a,b){var d=this,f=a.component,g=f.childContainer,h=f.viewModel,i=f.viewModelResource,j=i.metadata,k=f.router.currentInstruction.config,l=k.viewPorts?k.viewPorts[a.name]:{},m={viewModel:l.layoutViewModel||k.layoutViewModel||this.layoutViewModel,view:l.layoutView||k.layoutView||this.layoutView,model:l.layoutModel||k.layoutModel||this.layoutModel,router:a.component.router,childContainer:g,viewSlot:this.viewSlot},n=this.viewLocator.getViewStrategy(f.view||h);return n&&f.view&&n.makeRelativeTo(e.Origin.get(f.router.container.viewModel.constructor).moduleId),j.load(g,i.value,null,n,!0).then(function(e){d.compositionTransactionNotifier||(d.compositionTransactionOwnershipToken=d.compositionTransaction.tryCapture()),(m.viewModel||m.view)&&(a.layoutInstruction=m),a.controller=j.create(g,c.BehaviorInstruction.dynamic(d.element,h,e)),b||d.swap(a)})},a.prototype.swap=function(a){var b=this,d=function(){var d=b.view,e=void 0,f=b.viewSlot,g=a.layoutInstruction;(e=b.swapOrder in r?r[b.swapOrder]:r.after)(f,d,function(){var d=void 0;return g?(g.viewModel||(g.viewModel={}),d=b.compositionEngine.createController(g).then(function(b){return c.ShadowDOM.distributeView(a.controller.view,b.slots||b.view.slots),b.view||b})):d=Promise.resolve(a.controller.view),d.then(function(a){return b.view=a,f.add(a)}).then(function(){b._notify()})})};return a.controller.automate(this.overrideContext,this.owningView),this.compositionTransactionOwnershipToken?this.compositionTransactionOwnershipToken.waitForCompositionComplete().then(function(){return b.compositionTransactionOwnershipToken=null,d()}):d()},a.prototype._notify=function(){this.compositionTransactionNotifier&&(this.compositionTransactionNotifier.done(),this.compositionTransactionNotifier=null)},a}(),m=h(l.prototype,"swapOrder",[c.bindable],{enumerable:!0,initializer:null}),n=h(l.prototype,"layoutView",[c.bindable],{enumerable:!0,initializer:null}),o=h(l.prototype,"layoutViewModel",[c.bindable],{enumerable:!0,initializer:null}),p=h(l.prototype,"layoutModel",[c.bindable],{enumerable:!0,initializer:null}),k=l))||k)||k)||k)})}(),function(){var a=System.amdDefine;a("npm:aurelia-loader@1.0.0/aurelia-loader.js",["exports","aurelia-path","aurelia-metadata"],function(a,b,c){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Loader=a.TemplateRegistryEntry=a.TemplateDependency=void 0;var d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),e=a.TemplateDependency=function(a,b){this.src=a,this.name=b},f=a.TemplateRegistryEntry=function(){function a(a){this.templateIsLoaded=!1,this.factoryIsReady=!1,this.resources=null,this.dependencies=null,this.address=a,this.onReady=null,this._template=null,this._factory=null}return a.prototype.addDependency=function(a,d){var f="string"==typeof a?(0,b.relativeToFile)(a,this.address):c.Origin.get(a).moduleId;this.dependencies.push(new e(f,d))},d(a,[{key:"template",get:function(){return this._template},set:function(a){var c=this.address,d=void 0,f=void 0,g=void 0,h=void 0;this._template=a,this.templateIsLoaded=!0,d=a.content.querySelectorAll("require"),h=this.dependencies=new Array(d.length);for(var i=0,j=d.length;j>i;++i){if(f=d[i],g=f.getAttribute("from"),!g)throw new Error("<require> element in "+c+' has no "from" attribute.');h[i]=new e((0,b.relativeToFile)(g,c),f.getAttribute("as")),f.parentNode&&f.parentNode.removeChild(f)}}},{key:"factory",get:function(){return this._factory},set:function(a){this._factory=a,this.factoryIsReady=!0}}]),a}();a.Loader=function(){function a(){this.templateRegistry={}}return a.prototype.map=function(a,b){throw new Error("Loaders must implement map(id, source).")},a.prototype.normalizeSync=function(a,b){throw new Error("Loaders must implement normalizeSync(moduleId, relativeTo).")},a.prototype.normalize=function(a,b){throw new Error("Loaders must implement normalize(moduleId: string, relativeTo: string): Promise<string>.")},a.prototype.loadModule=function(a){throw new Error("Loaders must implement loadModule(id).")},a.prototype.loadAllModules=function(a){throw new Error("Loader must implement loadAllModules(ids).")},a.prototype.loadTemplate=function(a){throw new Error("Loader must implement loadTemplate(url).")},a.prototype.loadText=function(a){throw new Error("Loader must implement loadText(url).")},a.prototype.applyPluginToUrl=function(a,b){throw new Error("Loader must implement applyPluginToUrl(url, pluginName).")},a.prototype.addPlugin=function(a,b){throw new Error("Loader must implement addPlugin(pluginName, implementation).")},a.prototype.getOrCreateTemplateRegistryEntry=function(a){return this.templateRegistry[a]||(this.templateRegistry[a]=new f(a))},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-loader@1.0.0.js",["npm:aurelia-loader@1.0.0/aurelia-loader"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-binding@1.0.0/aurelia-binding.js",["exports","aurelia-logging","aurelia-pal","aurelia-task-queue","aurelia-metadata"],function(a,b,c,d,e){"use strict";function f(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function i(a){if(a in Ka)return Ka[a];var b=a.charAt(0).toLowerCase()+a.slice(1).replace(/[_.-](\w|$)/g,function(a,b){return b.toUpperCase()});return Ka[a]=b,b}function j(a,b){return{bindingContext:a,parentOverrideContext:b||null}}function k(a,b,c){var d=b.overrideContext;if(c){for(;c&&d;)c--,d=d.parentOverrideContext;if(c||!d)return;return a in d?d:d.bindingContext}for(;d&&!(a in d)&&!(d.bindingContext&&a in d.bindingContext);)d=d.parentOverrideContext;return d?a in d?d:d.bindingContext:b.bindingContext||b.overrideContext}function l(a,b){return b?{bindingContext:a,overrideContext:j(a,j(b))}:{bindingContext:a,overrideContext:j(a)}}function m(a){for(var b=void 0===this._observerSlots?0:this._observerSlots,c=b;c--&&this[Ma[c]]!==a;);if(-1===c){for(c=0;this[Ma[c]];)c++;this[Ma[c]]=a,a.subscribe(La,this),c===b&&(this._observerSlots=c+1)}void 0===this._version&&(this._version=0),this[Na[c]]=this._version}function n(a,b){var c=this.observerLocator.getObserver(a,b);m.call(this,c)}function o(a){var b=this.observerLocator.getArrayObserver(a);m.call(this,b)}function p(a){for(var b=this._observerSlots;b--;)if(a||this[Na[b]]!==this._version){var c=this[Ma[b]];this[Ma[b]]=null,c&&c.unsubscribe(La,this)}}function q(){return function(a){a.prototype.observeProperty=n,a.prototype.observeArray=o,a.prototype.unobserve=p,a.prototype.addObserver=m}}function r(a){for(var b=0,d=Pa.keys(),e=void 0;(e=d.next())&&!e.done;){var f=e.value;if(Pa["delete"](f),f.connect(!0),b++,b%100===0&&c.PLATFORM.performance.now()-a>Ra)break}Pa.size?c.PLATFORM.requestAnimationFrame(r):(Sa=!1,Ta=0)}function s(a){Qa>Ta?(Ta++,a.connect(!1)):Pa.set(a),Sa||(Sa=!0,c.PLATFORM.requestAnimationFrame(r))}function t(a,b){return this.hasSubscriber(a,b)?!1:this._context0?this._context1?this._context2?this._contextsRest?(this._contextsRest.push(a),this._callablesRest.push(b),!0):(this._contextsRest=[a],this._callablesRest=[b],!0):(this._context2=a,this._callable2=b,!0):(this._context1=a,this._callable1=b,!0):(this._context0=a,this._callable0=b,!0)}function u(a,b){if(this._context0===a&&this._callable0===b)return this._context0=null,this._callable0=null,!0;if(this._context1===a&&this._callable1===b)return this._context1=null,this._callable1=null,!0;if(this._context2===a&&this._callable2===b)return this._context2=null,this._callable2=null,!0;var c=this._contextsRest,d=void 0;return c&&c.length&&-1!==(d=c.indexOf(a))&&this._callablesRest[d]===b?(c.splice(d,1),this._callablesRest.splice(d,1),!0):!1}function v(a,b){var c=this._context0,d=this._callable0,e=this._context1,f=this._callable1,g=this._context2,h=this._callable2,i=this._contextsRest?this._contextsRest.length:0,j=void 0,k=void 0,l=void 0,m=void 0;
  if(i){for(l=Wa.length;l--&&Wa[l];);for(0>l?(l=Wa.length,j=[],k=[],Wa.push(!0),Ua.push(j),Va.push(k)):(Wa[l]=!0,j=Ua[l],k=Va[l]),m=i;m--;)j[m]=this._contextsRest[m],k[m]=this._callablesRest[m]}if(c&&(d?d.call(c,a,b):c(a,b)),e&&(f?f.call(e,a,b):e(a,b)),g&&(h?h.call(g,a,b):g(a,b)),i){for(m=0;i>m;m++){var n=k[m],o=j[m];n?n.call(o,a,b):o(a,b),j[m]=null,k[m]=null}Wa[l]=!1}}function w(){return!!(this._context0||this._context1||this._context2||this._contextsRest&&this._contextsRest.length)}function x(a,b){var c=this._context0===a&&this._callable0===b||this._context1===a&&this._callable1===b||this._context2===a&&this._callable2===b;if(c)return!0;var d=void 0,e=this._contextsRest;if(!e||0===(d=e.length))return!1;for(var f=this._callablesRest;d--;)if(e[d]===a&&f[d]===b)return!0;return!1}function y(){return function(a){a.prototype.addSubscriber=t,a.prototype.removeSubscriber=u,a.prototype.callSubscribers=v,a.prototype.hasSubscribers=w,a.prototype.hasSubscriber=x}}function z(a){return+a===a>>>0}function A(a){return+a}function B(a,b,c){return{index:a,removed:b,addedCount:c}}function C(){}function D(a,b,c,d,e,f){return ab.calcSplices(a,b,c,d,e,f)}function E(a,b,c,d){return c>b||a>d?-1:b===c||d===a?0:c>a?d>b?b-c:d-c:b>d?d-a:b-a}function F(a,b,c,d){for(var e=B(b,c,d),f=!1,g=0,h=0;h<a.length;h++){var i=a[h];if(i.index+=g,!f){var j=E(e.index,e.index+e.removed.length,i.index,i.index+i.addedCount);if(j>=0){a.splice(h,1),h--,g-=i.addedCount-i.removed.length,e.addedCount+=i.addedCount-j;var k=e.removed.length+i.removed.length-j;if(e.addedCount||k){var l=i.removed;if(e.index<i.index){var m=e.removed.slice(0,i.index-e.index);Array.prototype.push.apply(m,l),l=m}if(e.index+e.removed.length>i.index+i.addedCount){var n=e.removed.slice(i.index+i.addedCount-e.index);Array.prototype.push.apply(l,n)}e.removed=l,i.index<e.index&&(e.index=i.index)}else f=!0}else if(e.index<i.index){f=!0,a.splice(h,0,e),h++;var o=e.addedCount-e.removed.length;i.index+=o,g+=o}}}f||a.push(e)}function G(a,b){for(var c=[],d=0;d<b.length;d++){var e=b[d];switch(e.type){case"splice":F(c,e.index,e.removed.slice(),e.addedCount);break;case"add":case"update":case"delete":if(!z(e.name))continue;var f=A(e.name);if(0>f)continue;F(c,f,[e.oldValue],"delete"===e.type?0:1);break;default:console.error("Unexpected record type: "+JSON.stringify(e))}}return c}function H(a,b){var c=[];return G(a,b).forEach(function(b){return 1===b.addedCount&&1===b.removed.length?void(b.removed[0]!==a[b.index]&&c.push(b)):void(c=c.concat(D(a,b.index,b.index+b.addedCount,b.removed,0,b.removed.length)))}),c}function I(a,b,c,d){return{type:a,object:b,key:c,oldValue:d}}function J(a){for(var b=new Array(a.size),c=a.keys(),d=0,e=void 0;(e=c.next())&&!e.done;)b[d]=I("added",a,e.value),d++;return b}function K(a,b){return kb["for"](a,b)}function L(a,b,c){for(var d=b.length,e=Eb.length;d>=e;++e)Eb.push([]);for(var f=Eb[d],g=0;d>g;++g)f[g]=b[g].evaluate(a,c);return f}function M(a,b){return null!==a&&null!==b?"string"==typeof a&&"string"!=typeof b?a+b.toString():"string"!=typeof a&&"string"==typeof b?a.toString()+b:a+b:null!==a?a:null!==b?b:0}function N(a,b,c){var d=null===a||void 0===a?null:a[b];if("function"==typeof d)return d;if(!c&&(null===d||void 0===d))return null;throw new Error(b+" is not a function")}function O(a,b){if(Array.isArray(a))return a[parseInt(b,10)];if(a)return a[b];if(null!==a&&void 0!==a)return a[b]}function P(a,b,c){if(Array.isArray(a)){var d=parseInt(b,10);a.length<=d&&(a.length=d+1),a[d]=c}else a[b]=c;return c}function Q(a){var b=new Gb;return a.accept(b)}function R(a){return a>=Nb&&Sb>=a||a===Hc}function S(a){return a>=vc&&Dc>=a||a>=nc&&pc>=a||a===uc||a===Vb}function T(a){return a>=vc&&Dc>=a||a>=nc&&pc>=a||a>=lc&&mc>=a||a===uc||a===Vb}function U(a){return a>=lc&&mc>=a}function V(a){return a===wc||a===oc}function W(a){return a===cc||a===ac}function X(a){switch(a){case yc:return Ob;case xc:return Qb;case zc:return Rb;case Ac:return Nb;case Cc:return Pb;default:return a}}function Y(a,b){if(!a)throw b||"Assertion failed"}function Z(a,b){return Mc["for"](a,b)}function $(a){return a.path&&a.path[0]||a.deepPath&&a.deepPath[0]||a.target}function _(a){for(var b=$(a);b;){if(b.delegatedCallbacks){var c=b.delegatedCallbacks[a.type];c&&c(a)}b=b.parentNode}}function aa(a){return!!(a&&a.get&&a.get.dependencies)}function ba(a,b,c){var d=Object.getOwnPropertyDescriptor(a.prototype,b);d.get.dependencies=c}function ca(){for(var a=arguments.length,b=Array(a),c=0;a>c;c++)b[c]=arguments[c];return function(a,c,d){return d.get.dependencies=b,d}}function da(a,b,c,d){var e=c.get.dependencies;if(!(e instanceof fd)){for(var f=e.length;f--;)e[f]=d.parser.parse(e[f]);e=c.get.dependencies=new fd(b,e)}var g={bindingContext:a,overrideContext:j(a)};return new Xa(g,e,d)}function ea(a){var b=c.DOM.createElement("div");return b.innerHTML=a,b.firstChild}function fa(a){return void 0===a||"string"==typeof a?function(b){e.metadata.define(e.metadata.resource,new pd(a),b)}:void e.metadata.define(e.metadata.resource,new pd,a)}function ga(a){return void 0===a||"string"==typeof a?function(b){e.metadata.define(e.metadata.resource,new qd(a),b)}:void e.metadata.define(e.metadata.resource,new qd,a)}function ha(a){var b=a.au;if(void 0===b)throw new Error('No Aurelia APIs are defined for the element: "'+a.tagName+'".');return b}function ia(a,b){return vd["for"](a,b)}function ja(a,b,c){function d(a,b,c,d){void 0===b&&(a=a.prototype,b="string"==typeof d?d:d.name);var e="_"+b,f=d&&d.changeHandler||b+"Changed";c?"function"==typeof c.initializer&&(a[e]=c.initializer()):c={},delete c.writable,delete c.initializer,c.get=function(){return this[e]},c.set=function(a){var b=this[e];this[e]=a,this[f]&&this[f](a,b)},c.get.dependencies=[e],Reflect.defineProperty(a,b,c)}return void 0===b?function(b,c,e){return d(b,c,e,a)}:d(a,b,c)}Object.defineProperty(a,"__esModule",{value:!0}),a.getSetObserver=a.BindingEngine=a.NameExpression=a.Listener=a.ListenerExpression=a.BindingBehaviorResource=a.ValueConverterResource=a.Call=a.CallExpression=a.Binding=a.BindingExpression=a.ObjectObservationAdapter=a.ObserverLocator=a.SVGAnalyzer=a.presentationAttributes=a.presentationElements=a.elements=a.ComputedExpression=a.ClassObserver=a.SelectValueObserver=a.CheckedObserver=a.ValueAttributeObserver=a.StyleObserver=a.DataAttributeObserver=a.dataAttributeAccessor=a.XLinkAttributeObserver=a.SetterObserver=a.PrimitiveObserver=a.propertyAccessor=a.DirtyCheckProperty=a.DirtyChecker=a.EventManager=a.getMapObserver=a.ParserImplementation=a.Parser=a.Scanner=a.Lexer=a.Token=a.bindingMode=a.ExpressionCloner=a.Unparser=a.LiteralObject=a.LiteralArray=a.LiteralString=a.LiteralPrimitive=a.PrefixNot=a.Binary=a.CallFunction=a.CallMember=a.CallScope=a.AccessKeyed=a.AccessMember=a.AccessScope=a.AccessThis=a.Conditional=a.Assign=a.ValueConverter=a.BindingBehavior=a.Chain=a.Expression=a.getArrayObserver=a.CollectionLengthObserver=a.ModifyCollectionObserver=a.ExpressionObserver=a.sourceContext=void 0,a.camelCase=i,a.createOverrideContext=j,a.getContextFor=k,a.createScopeForTest=l,a.connectable=q,a.enqueueBindingConnect=s,a.subscriberCollection=y,a.calcSplices=D,a.mergeSplice=F,a.projectArraySplices=H,a.getChangeRecords=J,a.cloneExpression=Q,a.hasDeclaredDependencies=aa,a.declarePropertyDependencies=ba,a.computedFrom=ca,a.createComputedObserver=da,a.valueConverter=fa,a.bindingBehavior=ga,a.observable=ja;for(var ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha=f(b),Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a},Ja=(function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}()),Ka=Object.create(null),La=a.sourceContext="Binding:source",Ma=[],Na=[],Oa=0;100>Oa;Oa++)Ma.push("_observer"+Oa),Na.push("_observerVersion"+Oa);var Pa=new Map,Qa=100,Ra=15,Sa=!1,Ta=0,Ua=[],Va=[],Wa=[],Xa=a.ExpressionObserver=(ka=q(),la=y(),ka(ma=la(ma=function(){function a(a,b,c,d){this.scope=a,this.expression=b,this.observerLocator=c,this.lookupFunctions=d}return a.prototype.getValue=function(){return this.expression.evaluate(this.scope,this.lookupFunctions)},a.prototype.setValue=function(a){this.expression.assign(this.scope,a)},a.prototype.subscribe=function(a,b){var c=this;return this.hasSubscribers()||(this.oldValue=this.expression.evaluate(this.scope,this.lookupFunctions),this.expression.connect(this,this.scope)),this.addSubscriber(a,b),1===arguments.length&&a instanceof Function?{dispose:function(){c.unsubscribe(a,b)}}:void 0},a.prototype.unsubscribe=function(a,b){this.removeSubscriber(a,b)&&!this.hasSubscribers()&&(this.unobserve(!0),this.oldValue=void 0)},a.prototype.call=function(){var a=this.expression.evaluate(this.scope,this.lookupFunctions),b=this.oldValue;a!==b&&(this.oldValue=a,this.callSubscribers(a,b)),this._version++,this.expression.connect(this,this.scope),this.unobserve(!1)},a}())||ma)||ma),Ya=0,Za=1,$a=2,_a=3;C.prototype={calcEditDistances:function(a,b,c,d,e,f){for(var g=f-e+1,h=c-b+1,i=new Array(g),j=void 0,k=void 0,l=0;g>l;++l)i[l]=new Array(h),i[l][0]=l;for(var m=0;h>m;++m)i[0][m]=m;for(var n=1;g>n;++n)for(var o=1;h>o;++o)this.equals(a[b+o-1],d[e+n-1])?i[n][o]=i[n-1][o-1]:(j=i[n-1][o]+1,k=i[n][o-1]+1,i[n][o]=k>j?j:k);return i},spliceOperationsFromEditDistances:function(a){for(var b=a.length-1,c=a[0].length-1,d=a[b][c],e=[];b>0||c>0;)if(0!==b)if(0!==c){var f=a[b-1][c-1],g=a[b-1][c],h=a[b][c-1],i=void 0;i=h>g?f>g?g:f:f>h?h:f,i===f?(f===d?e.push(Ya):(e.push(Za),d=f),b--,c--):i===g?(e.push(_a),b--,d=g):(e.push($a),c--,d=h)}else e.push(_a),b--;else e.push($a),c--;return e.reverse(),e},calcSplices:function(a,b,c,d,e,f){var g=0,h=0,i=Math.min(c-b,f-e);if(0===b&&0===e&&(g=this.sharedPrefix(a,d,i)),c===a.length&&f===d.length&&(h=this.sharedSuffix(a,d,i-g)),b+=g,e+=g,c-=h,f-=h,c-b===0&&f-e===0)return[];if(b===c){for(var j=B(b,[],0);f>e;)j.removed.push(d[e++]);return[j]}if(e===f)return[B(b,[],c-b)];for(var k=this.spliceOperationsFromEditDistances(this.calcEditDistances(a,b,c,d,e,f)),l=void 0,m=[],n=b,o=e,p=0;p<k.length;++p)switch(k[p]){case Ya:l&&(m.push(l),l=void 0),n++,o++;break;case Za:l||(l=B(n,[],0)),l.addedCount++,n++,l.removed.push(d[o]),o++;break;case $a:l||(l=B(n,[],0)),l.addedCount++,n++;break;case _a:l||(l=B(n,[],0)),l.removed.push(d[o]),o++}return l&&m.push(l),m},sharedPrefix:function(a,b,c){for(var d=0;c>d;++d)if(!this.equals(a[d],b[d]))return d;return c},sharedSuffix:function(a,b,c){for(var d=a.length,e=b.length,f=0;c>f&&this.equals(a[--d],b[--e]);)f++;return f},calculateSplices:function(a,b){return this.calcSplices(a,0,a.length,b,0,b.length)},equals:function(a,b){return a===b}};var ab=new C,bb=a.ModifyCollectionObserver=(na=y(),na(oa=function(){function a(a,b){this.taskQueue=a,this.queued=!1,this.changeRecords=null,this.oldCollection=null,this.collection=b,this.lengthPropertyName=b instanceof Map||b instanceof Set?"size":"length"}return a.prototype.subscribe=function(a,b){this.addSubscriber(a,b)},a.prototype.unsubscribe=function(a,b){this.removeSubscriber(a,b)},a.prototype.addChangeRecord=function(a){if(this.hasSubscribers()||this.lengthObserver){if("splice"===a.type){var b=a.index,c=a.object.length;b>c?b=c-a.addedCount:0>b&&(b=c+a.removed.length+b-a.addedCount),0>b&&(b=0),a.index=b}null===this.changeRecords?this.changeRecords=[a]:this.changeRecords.push(a),this.queued||(this.queued=!0,this.taskQueue.queueMicroTask(this))}},a.prototype.flushChangeRecords=function(){(this.changeRecords&&this.changeRecords.length||this.oldCollection)&&this.call()},a.prototype.reset=function(a){this.oldCollection=a,this.hasSubscribers()&&!this.queued&&(this.queued=!0,this.taskQueue.queueMicroTask(this))},a.prototype.getLengthObserver=function(){return this.lengthObserver||(this.lengthObserver=new cb(this.collection))},a.prototype.call=function(){var a=this.changeRecords,b=this.oldCollection,c=void 0;this.queued=!1,this.changeRecords=[],this.oldCollection=null,this.hasSubscribers()&&(c=b?this.collection instanceof Map||this.collection instanceof Set?J(b):D(this.collection,0,this.collection.length,b,0,b.length):this.collection instanceof Map||this.collection instanceof Set?a:H(this.collection,a),this.callSubscribers(c)),this.lengthObserver&&this.lengthObserver.call(this.collection[this.lengthPropertyName])},a}())||oa),cb=a.CollectionLengthObserver=(pa=y(),pa(qa=function(){function a(a){this.collection=a,this.lengthPropertyName=a instanceof Map||a instanceof Set?"size":"length",this.currentValue=a[this.lengthPropertyName]}return a.prototype.getValue=function(){return this.collection[this.lengthPropertyName]},a.prototype.setValue=function(a){this.collection[this.lengthPropertyName]=a},a.prototype.subscribe=function(a,b){this.addSubscriber(a,b)},a.prototype.unsubscribe=function(a,b){this.removeSubscriber(a,b)},a.prototype.call=function(a){var b=this.currentValue;this.callSubscribers(a,b),this.currentValue=a},a}())||qa),db=Array.prototype.pop,eb=Array.prototype.push,fb=Array.prototype.reverse,gb=Array.prototype.shift,hb=Array.prototype.sort,ib=Array.prototype.splice,jb=Array.prototype.unshift;Array.prototype.pop=function(){var a=this.length>0,b=db.apply(this,arguments);return a&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:this.length,oldValue:b}),b},Array.prototype.push=function(){var a=eb.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:this.length-arguments.length,removed:[],addedCount:arguments.length}),a},Array.prototype.reverse=function(){var a=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),a=this.slice());var b=fb.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(a),b},Array.prototype.shift=function(){var a=this.length>0,b=gb.apply(this,arguments);return a&&void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"delete",object:this,name:0,oldValue:b}),b},Array.prototype.sort=function(){var a=void 0;void 0!==this.__array_observer__&&(this.__array_observer__.flushChangeRecords(),a=this.slice());var b=hb.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.reset(a),b},Array.prototype.splice=function(){var a=ib.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:arguments[0],removed:a,addedCount:arguments.length>2?arguments.length-2:0}),a},Array.prototype.unshift=function(){var a=jb.apply(this,arguments);return void 0!==this.__array_observer__&&this.__array_observer__.addChangeRecord({type:"splice",object:this,index:0,removed:[],addedCount:arguments.length}),a},a.getArrayObserver=K;var kb=function(a){function b(b,c){return g(this,a.call(this,b,c))}return h(b,a),b["for"]=function(a,c){return"__array_observer__"in c||Reflect.defineProperty(c,"__array_observer__",{value:b.create(a,c),enumerable:!1,configurable:!1}),c.__array_observer__},b.create=function(a,c){return new b(a,c)},b}(bb),lb=a.Expression=function(){function a(){this.isChain=!1,this.isAssignable=!1}return a.prototype.evaluate=function(a,b,c){throw new Error('Binding expression "'+this+'" cannot be evaluated.')},a.prototype.assign=function(a,b,c){throw new Error('Binding expression "'+this+'" cannot be assigned to.')},a.prototype.toString=function(){return Fb.unparse(this)},a}(),mb=a.Chain=function(a){function b(b){var c=g(this,a.call(this));return c.expressions=b,c.isChain=!0,c}return h(b,a),b.prototype.evaluate=function(a,b){for(var c=void 0,d=this.expressions,e=void 0,f=0,g=d.length;g>f;++f)e=d[f].evaluate(a,b),null!==e&&(c=e);return c},b.prototype.accept=function(a){return a.visitChain(this)},b}(lb),nb=a.BindingBehavior=function(a){function b(b,c,d){var e=g(this,a.call(this));return e.expression=b,e.name=c,e.args=d,e}return h(b,a),b.prototype.evaluate=function(a,b){return this.expression.evaluate(a,b)},b.prototype.assign=function(a,b,c){return this.expression.assign(a,b,c)},b.prototype.accept=function(a){return a.visitBindingBehavior(this)},b.prototype.connect=function(a,b){this.expression.connect(a,b)},b.prototype.bind=function(a,b,c){this.expression.expression&&this.expression.bind&&this.expression.bind(a,b,c);var d=c.bindingBehaviors(this.name);if(!d)throw new Error('No BindingBehavior named "'+this.name+'" was found!');var e="behavior-"+this.name;if(a[e])throw new Error('A binding behavior named "'+this.name+'" has already been applied to "'+this.expression+'"');a[e]=d,d.bind.apply(d,[a,b].concat(L(b,this.args,a.lookupFunctions)))},b.prototype.unbind=function(a,b){var c="behavior-"+this.name;a[c].unbind(a,b),a[c]=null,this.expression.expression&&this.expression.unbind&&this.expression.unbind(a,b)},b}(lb),ob=a.ValueConverter=function(a){function b(b,c,d,e){var f=g(this,a.call(this));return f.expression=b,f.name=c,f.args=d,f.allArgs=e,f}return h(b,a),b.prototype.evaluate=function(a,b){var c=b.valueConverters(this.name);if(!c)throw new Error('No ValueConverter named "'+this.name+'" was found!');return"toView"in c?c.toView.apply(c,L(a,this.allArgs,b)):this.allArgs[0].evaluate(a,b)},b.prototype.assign=function(a,b,c){var d=c.valueConverters(this.name);if(!d)throw new Error('No ValueConverter named "'+this.name+'" was found!');return"fromView"in d&&(b=d.fromView.apply(d,[b].concat(L(a,this.args,c)))),this.allArgs[0].assign(a,b,c)},b.prototype.accept=function(a){return a.visitValueConverter(this)},b.prototype.connect=function(a,b){for(var c=this.allArgs,d=c.length;d--;)c[d].connect(a,b)},b}(lb),pb=a.Assign=function(a){function b(b,c){var d=g(this,a.call(this));return d.target=b,d.value=c,d}return h(b,a),b.prototype.evaluate=function(a,b){return this.target.assign(a,this.value.evaluate(a,b))},b.prototype.accept=function(a){a.visitAssign(this)},b.prototype.connect=function(a,b){},b}(lb),qb=a.Conditional=function(a){function b(b,c,d){var e=g(this,a.call(this));return e.condition=b,e.yes=c,e.no=d,e}return h(b,a),b.prototype.evaluate=function(a,b){return this.condition.evaluate(a)?this.yes.evaluate(a):this.no.evaluate(a)},b.prototype.accept=function(a){return a.visitConditional(this)},b.prototype.connect=function(a,b){this.condition.connect(a,b),this.condition.evaluate(b)?this.yes.connect(a,b):this.no.connect(a,b)},b}(lb),rb=a.AccessThis=function(a){function b(b){var c=g(this,a.call(this));return c.ancestor=b,c}return h(b,a),b.prototype.evaluate=function(a,b){for(var c=a.overrideContext,d=this.ancestor;d--&&c;)c=c.parentOverrideContext;return 1>d&&c?c.bindingContext:void 0},b.prototype.accept=function(a){return a.visitAccessThis(this)},b.prototype.connect=function(a,b){},b}(lb),sb=a.AccessScope=function(a){function b(b,c){var d=g(this,a.call(this));return d.name=b,d.ancestor=c,d.isAssignable=!0,d}return h(b,a),b.prototype.evaluate=function(a,b){var c=k(this.name,a,this.ancestor);return c[this.name]},b.prototype.assign=function(a,b){var c=k(this.name,a,this.ancestor);return c?c[this.name]=b:void 0},b.prototype.accept=function(a){return a.visitAccessScope(this)},b.prototype.connect=function(a,b){var c=k(this.name,b,this.ancestor);a.observeProperty(c,this.name)},b}(lb),tb=a.AccessMember=function(a){function b(b,c){var d=g(this,a.call(this));return d.object=b,d.name=c,d.isAssignable=!0,d}return h(b,a),b.prototype.evaluate=function(a,b){var c=this.object.evaluate(a,b);return null===c||void 0===c?c:c[this.name]},b.prototype.assign=function(a,b){var c=this.object.evaluate(a);return null!==c&&void 0!==c||(c={},this.object.assign(a,c)),c[this.name]=b,b},b.prototype.accept=function(a){return a.visitAccessMember(this)},b.prototype.connect=function(a,b){this.object.connect(a,b);var c=this.object.evaluate(b);c&&a.observeProperty(c,this.name)},b}(lb),ub=a.AccessKeyed=function(a){function b(b,c){var d=g(this,a.call(this));return d.object=b,d.key=c,d.isAssignable=!0,d}return h(b,a),b.prototype.evaluate=function(a,b){var c=this.object.evaluate(a,b),d=this.key.evaluate(a,b);return O(c,d)},b.prototype.assign=function(a,b){var c=this.object.evaluate(a),d=this.key.evaluate(a);return P(c,d,b)},b.prototype.accept=function(a){return a.visitAccessKeyed(this)},b.prototype.connect=function(a,b){this.object.connect(a,b);var c=this.object.evaluate(b);if(c instanceof Object){this.key.connect(a,b);var d=this.key.evaluate(b);null===d||void 0===d||Array.isArray(c)&&"number"==typeof d||a.observeProperty(c,d)}},b}(lb),vb=a.CallScope=function(a){function b(b,c,d){var e=g(this,a.call(this));return e.name=b,e.args=c,e.ancestor=d,e}return h(b,a),b.prototype.evaluate=function(a,b,c){var d=L(a,this.args,b),e=k(this.name,a,this.ancestor),f=N(e,this.name,c);return f?f.apply(e,d):void 0},b.prototype.accept=function(a){return a.visitCallScope(this)},b.prototype.connect=function(a,b){for(var c=this.args,d=c.length;d--;)c[d].connect(a,b)},b}(lb),wb=a.CallMember=function(a){function b(b,c,d){var e=g(this,a.call(this));return e.object=b,e.name=c,e.args=d,e}return h(b,a),b.prototype.evaluate=function(a,b,c){var d=this.object.evaluate(a,b),e=L(a,this.args,b),f=N(d,this.name,c);return f?f.apply(d,e):void 0},b.prototype.accept=function(a){return a.visitCallMember(this)},b.prototype.connect=function(a,b){this.object.connect(a,b);var c=this.object.evaluate(b);if(N(c,this.name,!1))for(var d=this.args,e=d.length;e--;)d[e].connect(a,b)},b}(lb),xb=a.CallFunction=function(a){function b(b,c){var d=g(this,a.call(this));return d.func=b,d.args=c,d}return h(b,a),b.prototype.evaluate=function(a,b,c){var d=this.func.evaluate(a,b);if("function"==typeof d)return d.apply(null,L(a,this.args,b));if(c||null!==d&&void 0!==d)throw new Error(this.func+" is not a function")},b.prototype.accept=function(a){return a.visitCallFunction(this)},b.prototype.connect=function(a,b){this.func.connect(a,b);var c=this.func.evaluate(b);if("function"==typeof c)for(var d=this.args,e=d.length;e--;)d[e].connect(a,b)},b}(lb),yb=a.Binary=function(a){function b(b,c,d){var e=g(this,a.call(this));return e.operation=b,e.left=c,e.right=d,e}return h(b,a),b.prototype.evaluate=function(a,b){var c=this.left.evaluate(a);switch(this.operation){case"&&":return c&&this.right.evaluate(a);case"||":return c||this.right.evaluate(a)}var d=this.right.evaluate(a);switch(this.operation){case"==":return c==d;case"===":return c===d;case"!=":return c!=d;case"!==":return c!==d}if(null===c||null===d||void 0===c||void 0===d){switch(this.operation){case"+":return null!==c&&void 0!==c?c:null!==d&&void 0!==d?d:0;case"-":return null!==c&&void 0!==c?c:null!==d&&void 0!==d?0-d:0}return null}switch(this.operation){case"+":return M(c,d);case"-":return c-d;case"*":return c*d;case"/":return c/d;case"%":return c%d;case"<":return d>c;case">":return c>d;case"<=":return d>=c;case">=":return c>=d;case"^":return c^d}throw new Error("Internal error ["+this.operation+"] not handled")},b.prototype.accept=function(a){return a.visitBinary(this)},b.prototype.connect=function(a,b){this.left.connect(a,b);var c=this.left.evaluate(b);"&&"===this.operation&&!c||"||"===this.operation&&c||this.right.connect(a,b)},b}(lb),zb=a.PrefixNot=function(a){function b(b,c){var d=g(this,a.call(this));return d.operation=b,d.expression=c,d}return h(b,a),b.prototype.evaluate=function(a,b){return!this.expression.evaluate(a)},b.prototype.accept=function(a){return a.visitPrefix(this)},b.prototype.connect=function(a,b){this.expression.connect(a,b)},b}(lb),Ab=a.LiteralPrimitive=function(a){function b(b){var c=g(this,a.call(this));return c.value=b,c}return h(b,a),b.prototype.evaluate=function(a,b){return this.value},b.prototype.accept=function(a){return a.visitLiteralPrimitive(this)},b.prototype.connect=function(a,b){},b}(lb),Bb=a.LiteralString=function(a){function b(b){var c=g(this,a.call(this));return c.value=b,c}return h(b,a),b.prototype.evaluate=function(a,b){return this.value},b.prototype.accept=function(a){return a.visitLiteralString(this)},b.prototype.connect=function(a,b){},b}(lb),Cb=a.LiteralArray=function(a){function b(b){var c=g(this,a.call(this));return c.elements=b,c}return h(b,a),b.prototype.evaluate=function(a,b){for(var c=this.elements,d=[],e=0,f=c.length;f>e;++e)d[e]=c[e].evaluate(a,b);return d},b.prototype.accept=function(a){return a.visitLiteralArray(this)},b.prototype.connect=function(a,b){for(var c=this.elements.length,d=0;c>d;d++)this.elements[d].connect(a,b)},b}(lb),Db=a.LiteralObject=function(a){function b(b,c){var d=g(this,a.call(this));return d.keys=b,d.values=c,d}return h(b,a),b.prototype.evaluate=function(a,b){for(var c={},d=this.keys,e=this.values,f=0,g=d.length;g>f;++f)c[d[f]]=e[f].evaluate(a,b);return c},b.prototype.accept=function(a){return a.visitLiteralObject(this)},b.prototype.connect=function(a,b){for(var c=this.keys.length,d=0;c>d;d++)this.values[d].connect(a,b)},b}(lb),Eb=[[],[0],[0,0],[0,0,0],[0,0,0,0],[0,0,0,0,0]],Fb=a.Unparser=function(){function a(a){this.buffer=a}return a.unparse=function(b){var c=[],d=new a(c);return b.accept(d),c.join("")},a.prototype.write=function(a){this.buffer.push(a)},a.prototype.writeArgs=function(a){this.write("(");for(var b=0,c=a.length;c>b;++b)0!==b&&this.write(","),a[b].accept(this);this.write(")")},a.prototype.visitChain=function(a){for(var b=a.expressions,c=0,d=expression.length;d>c;++c)0!==c&&this.write(";"),b[c].accept(this)},a.prototype.visitBindingBehavior=function(a){var b=a.args;a.expression.accept(this),this.write("&"+a.name);for(var c=0,d=b.length;d>c;++c)this.write(":"),b[c].accept(this)},a.prototype.visitValueConverter=function(a){var b=a.args;a.expression.accept(this),this.write("|"+a.name);for(var c=0,d=b.length;d>c;++c)this.write(":"),b[c].accept(this)},a.prototype.visitAssign=function(a){a.target.accept(this),this.write("="),a.value.accept(this)},a.prototype.visitConditional=function(a){a.condition.accept(this),this.write("?"),a.yes.accept(this),this.write(":"),a.no.accept(this)},a.prototype.visitAccessThis=function(a){if(0===a.ancestor)return void this.write("$this");this.write("$parent");for(var b=a.ancestor-1;b--;)this.write(".$parent")},a.prototype.visitAccessScope=function(a){for(var b=a.ancestor;b--;)this.write("$parent.");this.write(a.name)},a.prototype.visitAccessMember=function(a){a.object.accept(this),this.write("."+a.name)},a.prototype.visitAccessKeyed=function(a){a.object.accept(this),this.write("["),a.key.accept(this),this.write("]")},a.prototype.visitCallScope=function(a){for(var b=a.ancestor;b--;)this.write("$parent.");this.write(a.name),this.writeArgs(a.args)},a.prototype.visitCallFunction=function(a){a.func.accept(this),this.writeArgs(a.args)},a.prototype.visitCallMember=function(a){a.object.accept(this),this.write("."+a.name),this.writeArgs(a.args)},a.prototype.visitPrefix=function(a){this.write("("+a.operation),a.expression.accept(this),this.write(")")},a.prototype.visitBinary=function(a){a.left.accept(this),this.write(a.operation),a.right.accept(this)},a.prototype.visitLiteralPrimitive=function(a){this.write(""+a.value)},a.prototype.visitLiteralArray=function(a){var b=a.elements;this.write("[");for(var c=0,d=b.length;d>c;++c)0!==c&&this.write(","),b[c].accept(this);this.write("]")},a.prototype.visitLiteralObject=function(a){var b=a.keys,c=a.values;this.write("{");for(var d=0,e=b.length;e>d;++d)0!==d&&this.write(","),this.write("'"+b[d]+"':"),c[d].accept(this);this.write("}")},a.prototype.visitLiteralString=function(a){var b=a.value.replace(/'/g,"'");this.write("'"+b+"'")},a}(),Gb=a.ExpressionCloner=function(){function a(){}return a.prototype.cloneExpressionArray=function(a){for(var b=[],c=a.length;c--;)b[c]=a[c].accept(this);return b},a.prototype.visitChain=function(a){return new mb(this.cloneExpressionArray(a.expressions))},a.prototype.visitBindingBehavior=function(a){return new nb(a.expression.accept(this),a.name,this.cloneExpressionArray(a.args))},a.prototype.visitValueConverter=function(a){return new ob(a.expression.accept(this),a.name,this.cloneExpressionArray(a.args))},a.prototype.visitAssign=function(a){return new pb(a.target.accept(this),a.value.accept(this))},a.prototype.visitConditional=function(a){return new qb(a.condition.accept(this),a.yes.accept(this),a.no.accept(this))},a.prototype.visitAccessThis=function(a){return new rb(a.ancestor)},a.prototype.visitAccessScope=function(a){return new sb(a.name,a.ancestor)},a.prototype.visitAccessMember=function(a){return new tb(a.object.accept(this),a.name)},a.prototype.visitAccessKeyed=function(a){return new ub(a.object.accept(this),a.key.accept(this))},a.prototype.visitCallScope=function(a){return new vb(a.name,this.cloneExpressionArray(a.args),a.ancestor)},a.prototype.visitCallFunction=function(a){return new xb(a.func.accept(this),this.cloneExpressionArray(a.args))},a.prototype.visitCallMember=function(a){return new wb(a.object.accept(this),a.name,this.cloneExpressionArray(a.args))},a.prototype.visitPrefix=function(a){return new zb(a.operation,a.expression.accept(this))},a.prototype.visitBinary=function(a){return new yb(a.operation,a.left.accept(this),a.right.accept(this))},a.prototype.visitLiteralPrimitive=function(a){return new Ab(a)},a.prototype.visitLiteralArray=function(a){return new Cb(this.cloneExpressionArray(a.elements))},a.prototype.visitLiteralObject=function(a){return new Db(a.keys,this.cloneExpressionArray(a.values))},a.prototype.visitLiteralString=function(a){return new Bb(a.value)},a}(),Hb=a.bindingMode={oneTime:0,oneWay:1,twoWay:2},Ib=a.Token=function(){function a(a,b){this.index=a,this.text=b}return a.prototype.withOp=function(a){return this.opKey=a,this},a.prototype.withGetterSetter=function(a){return this.key=a,this},a.prototype.withValue=function(a){return this.value=a,this},a.prototype.toString=function(){return"Token("+this.text+")"},a}(),Jb=a.Lexer=function(){function a(){}return a.prototype.lex=function(a){for(var b=new Kb(a),c=[],d=b.scanToken();d;)c.push(d),d=b.scanToken();return c},a}(),Kb=a.Scanner=function(){function a(a){this.input=a,this.length=a.length,this.peek=0,this.index=-1,this.advance()}return a.prototype.scanToken=function(){for(;this.peek<=Sb;){if(++this.index>=this.length)return this.peek=Mb,null;this.peek=this.input.charCodeAt(this.index)}if(S(this.peek))return this.scanIdentifier();if(U(this.peek))return this.scanNumber(this.index);var a=this.index;switch(this.peek){case dc:return this.advance(),U(this.peek)?this.scanNumber(a):new Ib(a,".");case Zb:case $b:case Ec:case Gc:case qc:case sc:case bc:case fc:case gc:return this.scanCharacter(a,String.fromCharCode(this.peek));case Yb:case Ub:return this.scanString();case ac:case cc:case _b:case ec:case Wb:case tc:case kc:return this.scanOperator(a,String.fromCharCode(this.peek));case hc:case jc:case Tb:case ic:return this.scanComplexOperator(a,ic,String.fromCharCode(this.peek),"=");case Xb:return this.scanComplexOperator(a,Xb,"&","&");case Fc:return this.scanComplexOperator(a,Fc,"|","|");case Hc:for(;R(this.peek);)this.advance();return this.scanToken()}var b=String.fromCharCode(this.peek);return this.error("Unexpected character ["+b+"]"),null},a.prototype.scanCharacter=function(a,b){return Y(this.peek===b.charCodeAt(0)),this.advance(),new Ib(a,b)},a.prototype.scanOperator=function(a,b){return Y(this.peek===b.charCodeAt(0)),Y(-1!==Lb.indexOf(b)),this.advance(),new Ib(a,b).withOp(b)},a.prototype.scanComplexOperator=function(a,b,c,d){Y(this.peek===c.charCodeAt(0)),this.advance();var e=c;return this.peek===b&&(this.advance(),e+=d),this.peek===b&&(this.advance(),e+=d),Y(-1!==Lb.indexOf(e)),new Ib(a,e).withOp(e)},a.prototype.scanIdentifier=function(){Y(S(this.peek));var a=this.index;for(this.advance();T(this.peek);)this.advance();var b=this.input.substring(a,this.index),c=new Ib(a,b);return-1!==Lb.indexOf(b)?c.withOp(b):c.withGetterSetter(b),c},a.prototype.scanNumber=function(a){Y(U(this.peek));var b=this.index===a;for(this.advance();;){if(!U(this.peek))if(this.peek===dc)b=!1;else{
  if(!V(this.peek))break;this.advance(),W(this.peek)&&this.advance(),U(this.peek)||this.error("Invalid exponent",-1),b=!1}this.advance()}var c=this.input.substring(a,this.index),d=b?parseInt(c,10):parseFloat(c);return new Ib(a,c).withValue(d)},a.prototype.scanString=function(){Y(this.peek===Yb||this.peek===Ub);var a=this.index,b=this.peek;this.advance();for(var c=void 0,d=this.index;this.peek!==b;)if(this.peek===rc){c||(c=[]),c.push(this.input.substring(d,this.index)),this.advance();var e=void 0;if(this.peek===Bc){var f=this.input.substring(this.index+1,this.index+5);/[A-Z0-9]{4}/.test(f)||this.error("Invalid unicode escape [\\u"+f+"]"),e=parseInt(f,16);for(var g=0;5>g;++g)this.advance()}else e=X(this.peek),this.advance();c.push(String.fromCharCode(e)),d=this.index}else this.peek===Mb?this.error("Unterminated quote"):this.advance();var h=this.input.substring(d,this.index);this.advance();var i=this.input.substring(a,this.index),j=h;return null!==c&&void 0!==c&&(c.push(h),j=c.join("")),new Ib(a,i).withValue(j)},a.prototype.advance=function(){++this.index>=this.length?this.peek=Mb:this.peek=this.input.charCodeAt(this.index)},a.prototype.error=function(a){var b=arguments.length<=1||void 0===arguments[1]?0:arguments[1],c=this.index+b;throw new Error("Lexer Error: "+a+" at column "+c+" in expression ["+this.input+"]")},a}(),Lb=["undefined","null","true","false","+","-","*","/","%","^","=","==","===","!=","!==","<",">","<=",">=","&&","||","&","|","!","?"],Mb=0,Nb=9,Ob=10,Pb=11,Qb=12,Rb=13,Sb=32,Tb=33,Ub=34,Vb=36,Wb=37,Xb=38,Yb=39,Zb=40,$b=41,_b=42,ac=43,bc=44,cc=45,dc=46,ec=47,fc=58,gc=59,hc=60,ic=61,jc=62,kc=63,lc=48,mc=57,nc=65,oc=69,pc=90,qc=91,rc=92,sc=93,tc=94,uc=95,vc=97,wc=101,xc=102,yc=110,zc=114,Ac=116,Bc=117,Cc=118,Dc=122,Ec=123,Fc=124,Gc=125,Hc=160,Ic=new Ib(-1,null),Jc=a.Parser=function(){function a(){this.cache={},this.lexer=new Jb}return a.prototype.parse=function(a){return a=a||"",this.cache[a]||(this.cache[a]=new Kc(this.lexer,a).parseChain())},a}(),Kc=a.ParserImplementation=function(){function a(a,b){this.index=0,this.input=b,this.tokens=a.lex(b)}return a.prototype.parseChain=function(){for(var a=!1,b=[];this.optional(";");)a=!0;for(;this.index<this.tokens.length;){")"!==this.peek.text&&"}"!==this.peek.text&&"]"!==this.peek.text||this.error("Unconsumed token "+this.peek.text);var c=this.parseBindingBehavior();for(b.push(c);this.optional(";");)a=!0;a&&this.error("Multiple expressions are not allowed.")}return 1===b.length?b[0]:new mb(b)},a.prototype.parseBindingBehavior=function(){for(var a=this.parseValueConverter();this.optional("&");){var b=this.peek.text,c=[];for(this.advance();this.optional(":");)c.push(this.parseExpression());a=new nb(a,b,c)}return a},a.prototype.parseValueConverter=function(){for(var a=this.parseExpression();this.optional("|");){var b=this.peek.text,c=[];for(this.advance();this.optional(":");)c.push(this.parseExpression());a=new ob(a,b,c,[a].concat(c))}return a},a.prototype.parseExpression=function(){for(var a=this.peek.index,b=this.parseConditional();"="===this.peek.text;){if(!b.isAssignable){var c=this.index<this.tokens.length?this.peek.index:this.input.length,d=this.input.substring(a,c);this.error("Expression "+d+" is not assignable")}this.expect("="),b=new pb(b,this.parseConditional())}return b},a.prototype.parseConditional=function(){var a=this.peek.index,b=this.parseLogicalOr();if(this.optional("?")){var c=this.parseExpression();if(!this.optional(":")){var d=this.index<this.tokens.length?this.peek.index:this.input.length,e=this.input.substring(a,d);this.error("Conditional expression "+e+" requires all 3 expressions")}var f=this.parseExpression();b=new qb(b,c,f)}return b},a.prototype.parseLogicalOr=function(){for(var a=this.parseLogicalAnd();this.optional("||");)a=new yb("||",a,this.parseLogicalAnd());return a},a.prototype.parseLogicalAnd=function(){for(var a=this.parseEquality();this.optional("&&");)a=new yb("&&",a,this.parseEquality());return a},a.prototype.parseEquality=function(){for(var a=this.parseRelational();;)if(this.optional("=="))a=new yb("==",a,this.parseRelational());else if(this.optional("!="))a=new yb("!=",a,this.parseRelational());else if(this.optional("==="))a=new yb("===",a,this.parseRelational());else{if(!this.optional("!=="))return a;a=new yb("!==",a,this.parseRelational())}},a.prototype.parseRelational=function(){for(var a=this.parseAdditive();;)if(this.optional("<"))a=new yb("<",a,this.parseAdditive());else if(this.optional(">"))a=new yb(">",a,this.parseAdditive());else if(this.optional("<="))a=new yb("<=",a,this.parseAdditive());else{if(!this.optional(">="))return a;a=new yb(">=",a,this.parseAdditive())}},a.prototype.parseAdditive=function(){for(var a=this.parseMultiplicative();;)if(this.optional("+"))a=new yb("+",a,this.parseMultiplicative());else{if(!this.optional("-"))return a;a=new yb("-",a,this.parseMultiplicative())}},a.prototype.parseMultiplicative=function(){for(var a=this.parsePrefix();;)if(this.optional("*"))a=new yb("*",a,this.parsePrefix());else if(this.optional("%"))a=new yb("%",a,this.parsePrefix());else{if(!this.optional("/"))return a;a=new yb("/",a,this.parsePrefix())}},a.prototype.parsePrefix=function(){return this.optional("+")?this.parsePrefix():this.optional("-")?new yb("-",new Ab(0),this.parsePrefix()):this.optional("!")?new zb("!",this.parsePrefix()):this.parseAccessOrCallMember()},a.prototype.parseAccessOrCallMember=function(){for(var a=this.parsePrimary();;)if(this.optional(".")){var b=this.peek.text;if(this.advance(),this.optional("(")){var c=this.parseExpressionList(")");this.expect(")"),a=a instanceof rb?new vb(b,c,a.ancestor):new wb(a,b,c)}else a=a instanceof rb?new sb(b,a.ancestor):new tb(a,b)}else if(this.optional("[")){var d=this.parseExpression();this.expect("]"),a=new ub(a,d)}else{if(!this.optional("("))return a;var e=this.parseExpressionList(")");this.expect(")"),a=new xb(a,e)}},a.prototype.parsePrimary=function(){if(this.optional("(")){var a=this.parseExpression();return this.expect(")"),a}if(this.optional("null"))return new Ab(null);if(this.optional("undefined"))return new Ab(void 0);if(this.optional("true"))return new Ab(!0);if(this.optional("false"))return new Ab(!1);if(this.optional("[")){var b=this.parseExpressionList("]");return this.expect("]"),new Cb(b)}if("{"===this.peek.text)return this.parseObject();if(null!==this.peek.key&&void 0!==this.peek.key)return this.parseAccessOrCallScope();if(null!==this.peek.value&&void 0!==this.peek.value){var c=this.peek.value;return this.advance(),c instanceof String||"string"==typeof c?new Bb(c):new Ab(c)}if(this.index>=this.tokens.length)throw new Error("Unexpected end of expression: "+this.input);this.error("Unexpected token "+this.peek.text)},a.prototype.parseAccessOrCallScope=function(){var a=this.peek.key;if(this.advance(),"$this"===a)return new rb(0);for(var b=0;"$parent"===a;)if(b++,this.optional("."))a=this.peek.key,this.advance();else{if(this.peek===Ic||"("===this.peek.text||"["===this.peek.text||"}"===this.peek.text)return new rb(b);this.error("Unexpected token "+this.peek.text)}if(this.optional("(")){var c=this.parseExpressionList(")");return this.expect(")"),new vb(a,c,b)}return new sb(a,b)},a.prototype.parseObject=function(){var a=[],b=[];if(this.expect("{"),"}"!==this.peek.text)do{var c=this.peek,d=c.value;a.push("string"==typeof d?d:c.text),this.advance(),!c.key||","!==this.peek.text&&"}"!==this.peek.text?(this.expect(":"),b.push(this.parseExpression())):(--this.index,b.push(this.parseAccessOrCallScope()))}while(this.optional(","));return this.expect("}"),new Db(a,b)},a.prototype.parseExpressionList=function(a){var b=[];if(this.peek.text!==a)do b.push(this.parseExpression());while(this.optional(","));return b},a.prototype.optional=function(a){return this.peek.text===a?(this.advance(),!0):!1},a.prototype.expect=function(a){this.peek.text===a?this.advance():this.error("Missing expected "+a)},a.prototype.advance=function(){this.index++},a.prototype.error=function(a){var b=this.index<this.tokens.length?"at column "+(this.tokens[this.index].index+1)+" in":"at the end of the expression";throw new Error("Parser Error: "+a+" "+b+" ["+this.input+"]")},Ja(a,[{key:"peek",get:function(){return this.index<this.tokens.length?this.tokens[this.index]:Ic}}]),a}(),Lc=Map.prototype;a.getMapObserver=Z;var Mc=function(a){function b(b,c){return g(this,a.call(this,b,c))}return h(b,a),b["for"]=function(a,c){return"__map_observer__"in c||Reflect.defineProperty(c,"__map_observer__",{value:b.create(a,c),enumerable:!1,configurable:!1}),c.__map_observer__},b.create=function(a,c){var d=new b(a,c),e=Lc;return e.add===c.add&&e["delete"]===c["delete"]&&e.clear===c.clear||(e={add:c.add,"delete":c["delete"],clear:c.clear}),c.set=function(){var a=c.has(arguments[0]),b=a?"update":"add",f=c.get(arguments[0]),g=e.set.apply(c,arguments);return a&&f===c.get(arguments[0])||d.addChangeRecord({type:b,object:c,key:arguments[0],oldValue:f}),g},c["delete"]=function(){var a=c.has(arguments[0]),b=c.get(arguments[0]),f=e["delete"].apply(c,arguments);return a&&d.addChangeRecord({type:"delete",object:c,key:arguments[0],oldValue:b}),f},c.clear=function(){var a=e.clear.apply(c,arguments);return d.addChangeRecord({type:"clear",object:c}),a},d},b}(bb),Nc=function(){function a(a){this.eventName=a,this.count=0}return a.prototype.increment=function(){this.count++,1===this.count&&c.DOM.addEventListener(this.eventName,_,!1)},a.prototype.decrement=function(){this.count--,0===this.count&&c.DOM.removeEventListener(this.eventName,_)},a}(),Oc=function(){function a(){this.delegatedHandlers={}}return a.prototype.subscribe=function(a,b,c,d){var e=this;if(d){var f=function(){var d=e.delegatedHandlers,f=d[b]||(d[b]=new Nc(b)),g=a.delegatedCallbacks||(a.delegatedCallbacks={});return f.increment(),g[b]=c,{v:function(){f.decrement(),g[b]=null}}}();if("object"===("undefined"==typeof f?"undefined":Ia(f)))return f.v}return a.addEventListener(b,c,!1),function(){a.removeEventListener(b,c)}},a}(),Pc=a.EventManager=function(){function a(){this.elementHandlerLookup={},this.eventStrategyLookup={},this.registerElementConfig({tagName:"input",properties:{value:["change","input"],checked:["change","input"],files:["change","input"]}}),this.registerElementConfig({tagName:"textarea",properties:{value:["change","input"]}}),this.registerElementConfig({tagName:"select",properties:{value:["change"]}}),this.registerElementConfig({tagName:"content editable",properties:{value:["change","input","blur","keyup","paste"]}}),this.registerElementConfig({tagName:"scrollable element",properties:{scrollTop:["scroll"],scrollLeft:["scroll"]}}),this.defaultEventStrategy=new Oc}return a.prototype.registerElementConfig=function(a){var b=a.tagName.toLowerCase(),c=a.properties,d=void 0;this.elementHandlerLookup[b]={};for(d in c)c.hasOwnProperty(d)&&this.registerElementPropertyConfig(b,d,c[d])},a.prototype.registerElementPropertyConfig=function(a,b,c){this.elementHandlerLookup[a][b]=this.createElementHandler(c)},a.prototype.createElementHandler=function(a){return{subscribe:function(b,c){return a.forEach(function(a){b.addEventListener(a,c,!1)}),function(){a.forEach(function(a){b.removeEventListener(a,c)})}}}},a.prototype.registerElementHandler=function(a,b){this.elementHandlerLookup[a.toLowerCase()]=b},a.prototype.registerEventStrategy=function(a,b){this.eventStrategyLookup[a]=b},a.prototype.getElementHandler=function(a,b){var c=void 0,d=this.elementHandlerLookup;if(a.tagName){if(c=a.tagName.toLowerCase(),d[c]&&d[c][b])return d[c][b];if("textContent"===b||"innerHTML"===b)return d["content editable"].value;if("scrollTop"===b||"scrollLeft"===b)return d["scrollable element"][b]}return null},a.prototype.addEventListener=function(a,b,c,d){return(this.eventStrategyLookup[b]||this.defaultEventStrategy).subscribe(a,b,c,d)},a}(),Qc=a.DirtyChecker=function(){function a(){this.tracked=[],this.checkDelay=120}return a.prototype.addProperty=function(a){var b=this.tracked;b.push(a),1===b.length&&this.scheduleDirtyCheck()},a.prototype.removeProperty=function(a){var b=this.tracked;b.splice(b.indexOf(a),1)},a.prototype.scheduleDirtyCheck=function(){var a=this;setTimeout(function(){return a.check()},this.checkDelay)},a.prototype.check=function(){for(var a=this.tracked,b=a.length;b--;){var c=a[b];c.isDirty()&&c.call()}a.length&&this.scheduleDirtyCheck()},a}(),Rc=a.DirtyCheckProperty=(ra=y(),ra(sa=function(){function a(a,b,c){this.dirtyChecker=a,this.obj=b,this.propertyName=c}return a.prototype.getValue=function(){return this.obj[this.propertyName]},a.prototype.setValue=function(a){this.obj[this.propertyName]=a},a.prototype.call=function(){var a=this.oldValue,b=this.getValue();this.callSubscribers(b,a),this.oldValue=b},a.prototype.isDirty=function(){return this.oldValue!==this.obj[this.propertyName]},a.prototype.subscribe=function(a,b){this.hasSubscribers()||(this.oldValue=this.getValue(),this.dirtyChecker.addProperty(this)),this.addSubscriber(a,b)},a.prototype.unsubscribe=function(a,b){this.removeSubscriber(a,b)&&!this.hasSubscribers()&&this.dirtyChecker.removeProperty(this)},a}())||sa),Sc=Ha.getLogger("property-observation"),Tc=a.propertyAccessor={getValue:function(a,b){return a[b]},setValue:function(a,b,c){b[c]=a}},Uc=a.PrimitiveObserver=function(){function a(a,b){this.doNotCache=!0,this.primitive=a,this.propertyName=b}return a.prototype.getValue=function(){return this.primitive[this.propertyName]},a.prototype.setValue=function(){var a=Ia(this.primitive);throw new Error("The "+this.propertyName+" property of a "+a+" ("+this.primitive+") cannot be assigned.")},a.prototype.subscribe=function(){},a.prototype.unsubscribe=function(){},a}(),Vc=a.SetterObserver=(ta=y(),ta(ua=function(){function a(a,b,c){this.taskQueue=a,this.obj=b,this.propertyName=c,this.queued=!1,this.observing=!1}return a.prototype.getValue=function(){return this.obj[this.propertyName]},a.prototype.setValue=function(a){this.obj[this.propertyName]=a},a.prototype.getterValue=function(){return this.currentValue},a.prototype.setterValue=function(a){var b=this.currentValue;b!==a&&(this.queued||(this.oldValue=b,this.queued=!0,this.taskQueue.queueMicroTask(this)),this.currentValue=a)},a.prototype.call=function(){var a=this.oldValue,b=this.currentValue;this.queued=!1,this.callSubscribers(b,a)},a.prototype.subscribe=function(a,b){this.observing||this.convertProperty(),this.addSubscriber(a,b)},a.prototype.unsubscribe=function(a,b){this.removeSubscriber(a,b)},a.prototype.convertProperty=function(){this.observing=!0,this.currentValue=this.obj[this.propertyName],this.setValue=this.setterValue,this.getValue=this.getterValue,Reflect.defineProperty(this.obj,this.propertyName,{configurable:!0,enumerable:this.propertyName in this.obj?this.obj.propertyIsEnumerable(this.propertyName):!0,get:this.getValue.bind(this),set:this.setValue.bind(this)})||Sc.warn("Cannot observe property '"+this.propertyName+"' of object",this.obj)},a}())||ua),Wc=a.XLinkAttributeObserver=function(){function a(a,b,c){this.element=a,this.propertyName=b,this.attributeName=c}return a.prototype.getValue=function(){return this.element.getAttributeNS("http://www.w3.org/1999/xlink",this.attributeName)},a.prototype.setValue=function(a){return this.element.setAttributeNS("http://www.w3.org/1999/xlink",this.attributeName,a)},a.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},a}(),Xc=a.dataAttributeAccessor={getValue:function(a,b){return a.getAttribute(b)},setValue:function(a,b,c){return b.setAttribute(c,a)}},Yc=a.DataAttributeObserver=function(){function a(a,b){this.element=a,this.propertyName=b}return a.prototype.getValue=function(){return this.element.getAttribute(this.propertyName)},a.prototype.setValue=function(a){return this.element.setAttribute(this.propertyName,a)},a.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},a}(),Zc=a.StyleObserver=function(){function a(a,b){this.element=a,this.propertyName=b,this.styles=null,this.version=0}return a.prototype.getValue=function(){return this.element.style.cssText},a.prototype.setValue=function(a){var b=this.styles||{},c=void 0,d=this.version;if(null!==a&&void 0!==a)if(a instanceof Object)for(c in a)a.hasOwnProperty(c)&&(b[c]=d,this.element.style[c]=a[c]);else if(a.length)for(var e=a.split(/(?:;|:(?!\/))\s*/),f=0,g=e.length;g>f;f++)c=e[f].trim(),c&&(b[c]=d,this.element.style[c]=e[++f]);if(this.styles=b,this.version+=1,0!==d){d-=1;for(c in b)b.hasOwnProperty(c)&&b[c]===d&&(this.element.style[c]="")}},a.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "'+this.propertyName+'" property is not supported.')},a}(),$c=a.ValueAttributeObserver=(va=y(),va(wa=function(){function a(a,b,c){this.element=a,this.propertyName=b,this.handler=c,"files"===b&&(this.setValue=function(){})}return a.prototype.getValue=function(){return this.element[this.propertyName]},a.prototype.setValue=function(a){a=void 0===a||null===a?"":a,this.element[this.propertyName]!==a&&(this.element[this.propertyName]=a,this.notify())},a.prototype.notify=function(){var a=this.oldValue,b=this.getValue();this.callSubscribers(b,a),this.oldValue=b},a.prototype.subscribe=function(a,b){this.hasSubscribers()||(this.oldValue=this.getValue(),this.disposeHandler=this.handler.subscribe(this.element,this.notify.bind(this))),this.addSubscriber(a,b)},a.prototype.unsubscribe=function(a,b){this.removeSubscriber(a,b)&&!this.hasSubscribers()&&(this.disposeHandler(),this.disposeHandler=null)},a}())||wa),_c="CheckedObserver:array",ad="CheckedObserver:value",bd=a.CheckedObserver=(xa=y(),xa(ya=function(){function a(a,b,c){this.element=a,this.handler=b,this.observerLocator=c}return a.prototype.getValue=function(){return this.value},a.prototype.setValue=function(a){this.value!==a&&(this.arrayObserver&&(this.arrayObserver.unsubscribe(_c,this),this.arrayObserver=null),"checkbox"===this.element.type&&Array.isArray(a)&&(this.arrayObserver=this.observerLocator.getArrayObserver(a),this.arrayObserver.subscribe(_c,this)),this.oldValue=this.value,this.value=a,this.synchronizeElement(),this.notify(),this.initialSync||(this.initialSync=!0,this.observerLocator.taskQueue.queueMicroTask(this)))},a.prototype.call=function(a,b){this.synchronizeElement(),this.valueObserver||(this.valueObserver=this.element.__observers__.model||this.element.__observers__.value,this.valueObserver&&this.valueObserver.subscribe(ad,this))},a.prototype.synchronizeElement=function(){var a=this.value,b=this.element,c=b.hasOwnProperty("model")?b.model:b.value,d="radio"===b.type,e=b.matcher||function(a,b){return a===b};b.checked=d&&!!e(a,c)||!d&&a===!0||!d&&Array.isArray(a)&&-1!==a.findIndex(function(a){return!!e(a,c)})},a.prototype.synchronizeValue=function(){var a=this.value,b=this.element,c=b.hasOwnProperty("model")?b.model:b.value,d=void 0,e=b.matcher||function(a,b){return a===b};if("checkbox"===b.type){if(Array.isArray(a))return d=a.findIndex(function(a){return!!e(a,c)}),void(b.checked&&-1===d?a.push(c):b.checked||-1===d||a.splice(d,1));a=b.checked}else{if(!b.checked)return;a=c}this.oldValue=this.value,this.value=a,this.notify()},a.prototype.notify=function(){var a=this.oldValue,b=this.value;this.callSubscribers(b,a)},a.prototype.subscribe=function(a,b){this.hasSubscribers()||(this.disposeHandler=this.handler.subscribe(this.element,this.synchronizeValue.bind(this,!1))),this.addSubscriber(a,b)},a.prototype.unsubscribe=function(a,b){this.removeSubscriber(a,b)&&!this.hasSubscribers()&&(this.disposeHandler(),this.disposeHandler=null)},a.prototype.unbind=function(){this.arrayObserver&&(this.arrayObserver.unsubscribe(_c,this),this.arrayObserver=null),this.valueObserver&&this.valueObserver.unsubscribe(ad,this)},a}())||ya),cd="SelectValueObserver:array",dd=a.SelectValueObserver=(za=y(),za(Aa=function(){function a(a,b,c){this.element=a,this.handler=b,this.observerLocator=c}return a.prototype.getValue=function(){return this.value},a.prototype.setValue=function(a){if(null!==a&&void 0!==a&&this.element.multiple&&!Array.isArray(a))throw new Error("Only null or Array instances can be bound to a multi-select.");this.value!==a&&(this.arrayObserver&&(this.arrayObserver.unsubscribe(cd,this),this.arrayObserver=null),Array.isArray(a)&&(this.arrayObserver=this.observerLocator.getArrayObserver(a),this.arrayObserver.subscribe(cd,this)),this.oldValue=this.value,this.value=a,this.synchronizeOptions(),this.notify(),this.initialSync||(this.initialSync=!0,this.observerLocator.taskQueue.queueMicroTask(this)))},a.prototype.call=function(a,b){this.synchronizeOptions()},a.prototype.synchronizeOptions=function(){var a=this.value,b=void 0,c=void 0;null===a||void 0===a?b=!0:Array.isArray(a)&&(c=!0);for(var d=this.element.options,e=d.length,f=this.element.matcher||function(a,b){return a===b},g=function(){var g=d.item(e);if(b)return g.selected=!1,"continue";var h=g.hasOwnProperty("model")?g.model:g.value;return c?(g.selected=-1!==a.findIndex(function(a){return!!f(h,a)}),"continue"):void(g.selected=!!f(h,a))};e--;){g()}},a.prototype.synchronizeValue=function(){for(var a=this,b=this.element.options,c=0,d=[],e=0,f=b.length;f>e;e++){var g=b.item(e);g.selected&&(d.push(g.hasOwnProperty("model")?g.model:g.value),c++)}if(this.element.multiple){if(Array.isArray(this.value)){var h=function(){for(var b=a.element.matcher||function(a,b){return a===b},c=0,e=function(){var e=a.value[c];-1===d.findIndex(function(a){return b(e,a)})?a.value.splice(c,1):c++};c<a.value.length;)e();c=0;for(var f=function(){var e=d[c];-1===a.value.findIndex(function(a){return b(e,a)})&&a.value.push(e),c++};c<d.length;)f();return{v:void 0}}();if("object"===("undefined"==typeof h?"undefined":Ia(h)))return h.v}}else d=0===c?null:d[0];d!==this.value&&(this.oldValue=this.value,this.value=d,this.notify())},a.prototype.notify=function(){var a=this.oldValue,b=this.value;this.callSubscribers(b,a)},a.prototype.subscribe=function(a,b){this.hasSubscribers()||(this.disposeHandler=this.handler.subscribe(this.element,this.synchronizeValue.bind(this,!1))),this.addSubscriber(a,b)},a.prototype.unsubscribe=function(a,b){this.removeSubscriber(a,b)&&!this.hasSubscribers()&&(this.disposeHandler(),this.disposeHandler=null)},a.prototype.bind=function(){var a=this;this.domObserver=c.DOM.createMutationObserver(function(){a.synchronizeOptions(),a.synchronizeValue()}),this.domObserver.observe(this.element,{childList:!0,subtree:!0})},a.prototype.unbind=function(){this.domObserver.disconnect(),this.domObserver=null,this.arrayObserver&&(this.arrayObserver.unsubscribe(cd,this),this.arrayObserver=null)},a}())||Aa),ed=a.ClassObserver=function(){function a(a){this.element=a,this.doNotCache=!0,this.value="",this.version=0}return a.prototype.getValue=function(){return this.value},a.prototype.setValue=function(a){var b=this.nameIndex||{},c=this.version,d=void 0,e=void 0;if(null!==a&&void 0!==a&&a.length){d=a.split(/\s+/);for(var f=0,g=d.length;g>f;f++)e=d[f],""!==e&&(b[e]=c,this.element.classList.add(e))}if(this.value=a,this.nameIndex=b,this.version+=1,0!==c){c-=1;for(e in b)b.hasOwnProperty(e)&&b[e]===c&&this.element.classList.remove(e)}},a.prototype.subscribe=function(){throw new Error('Observation of a "'+this.element.nodeName+'" element\'s "class" property is not supported.')},a}(),fd=a.ComputedExpression=function(a){function b(b,c){var d=g(this,a.call(this));return d.name=b,d.dependencies=c,d.isAssignable=!0,d}return h(b,a),b.prototype.evaluate=function(a,b){return a.bindingContext[this.name]},b.prototype.assign=function(a,b){a.bindingContext[this.name]=b},b.prototype.accept=function(a){throw new Error("not implemented")},b.prototype.connect=function(a,b){for(var c=this.dependencies,d=c.length;d--;)c[d].connect(a,b)},b}(lb),gd=a.elements={a:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","target","transform","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],altGlyph:["class","dx","dy","externalResourcesRequired","format","glyphRef","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],altGlyphDef:["id","xml:base","xml:lang","xml:space"],altGlyphItem:["id","xml:base","xml:lang","xml:space"],animate:["accumulate","additive","attributeName","attributeType","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],animateColor:["accumulate","additive","attributeName","attributeType","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],animateMotion:["accumulate","additive","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keyPoints","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","origin","path","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","rotate","systemLanguage","to","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],animateTransform:["accumulate","additive","attributeName","attributeType","begin","by","calcMode","dur","end","externalResourcesRequired","fill","from","id","keySplines","keyTimes","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","type","values","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],circle:["class","cx","cy","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","r","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],clipPath:["class","clipPathUnits","externalResourcesRequired","id","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],"color-profile":["id","local","name","rendering-intent","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],cursor:["externalResourcesRequired","id","requiredExtensions","requiredFeatures","systemLanguage","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],defs:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],desc:["class","id","style","xml:base","xml:lang","xml:space"],ellipse:["class","cx","cy","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rx","ry","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],feBlend:["class","height","id","in","in2","mode","result","style","width","x","xml:base","xml:lang","xml:space","y"],feColorMatrix:["class","height","id","in","result","style","type","values","width","x","xml:base","xml:lang","xml:space","y"],feComponentTransfer:["class","height","id","in","result","style","width","x","xml:base","xml:lang","xml:space","y"],feComposite:["class","height","id","in","in2","k1","k2","k3","k4","operator","result","style","width","x","xml:base","xml:lang","xml:space","y"],feConvolveMatrix:["bias","class","divisor","edgeMode","height","id","in","kernelMatrix","kernelUnitLength","order","preserveAlpha","result","style","targetX","targetY","width","x","xml:base","xml:lang","xml:space","y"],feDiffuseLighting:["class","diffuseConstant","height","id","in","kernelUnitLength","result","style","surfaceScale","width","x","xml:base","xml:lang","xml:space","y"],feDisplacementMap:["class","height","id","in","in2","result","scale","style","width","x","xChannelSelector","xml:base","xml:lang","xml:space","y","yChannelSelector"],feDistantLight:["azimuth","elevation","id","xml:base","xml:lang","xml:space"],feFlood:["class","height","id","result","style","width","x","xml:base","xml:lang","xml:space","y"],feFuncA:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feFuncB:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feFuncG:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feFuncR:["amplitude","exponent","id","intercept","offset","slope","tableValues","type","xml:base","xml:lang","xml:space"],feGaussianBlur:["class","height","id","in","result","stdDeviation","style","width","x","xml:base","xml:lang","xml:space","y"],feImage:["class","externalResourcesRequired","height","id","preserveAspectRatio","result","style","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],feMerge:["class","height","id","result","style","width","x","xml:base","xml:lang","xml:space","y"],feMergeNode:["id","xml:base","xml:lang","xml:space"],feMorphology:["class","height","id","in","operator","radius","result","style","width","x","xml:base","xml:lang","xml:space","y"],feOffset:["class","dx","dy","height","id","in","result","style","width","x","xml:base","xml:lang","xml:space","y"],fePointLight:["id","x","xml:base","xml:lang","xml:space","y","z"],feSpecularLighting:["class","height","id","in","kernelUnitLength","result","specularConstant","specularExponent","style","surfaceScale","width","x","xml:base","xml:lang","xml:space","y"],feSpotLight:["id","limitingConeAngle","pointsAtX","pointsAtY","pointsAtZ","specularExponent","x","xml:base","xml:lang","xml:space","y","z"],feTile:["class","height","id","in","result","style","width","x","xml:base","xml:lang","xml:space","y"],feTurbulence:["baseFrequency","class","height","id","numOctaves","result","seed","stitchTiles","style","type","width","x","xml:base","xml:lang","xml:space","y"],filter:["class","externalResourcesRequired","filterRes","filterUnits","height","id","primitiveUnits","style","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],font:["class","externalResourcesRequired","horiz-adv-x","horiz-origin-x","horiz-origin-y","id","style","vert-adv-y","vert-origin-x","vert-origin-y","xml:base","xml:lang","xml:space"],"font-face":["accent-height","alphabetic","ascent","bbox","cap-height","descent","font-family","font-size","font-stretch","font-style","font-variant","font-weight","hanging","id","ideographic","mathematical","overline-position","overline-thickness","panose-1","slope","stemh","stemv","strikethrough-position","strikethrough-thickness","underline-position","underline-thickness","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","widths","x-height","xml:base","xml:lang","xml:space"],
  "font-face-format":["id","string","xml:base","xml:lang","xml:space"],"font-face-name":["id","name","xml:base","xml:lang","xml:space"],"font-face-src":["id","xml:base","xml:lang","xml:space"],"font-face-uri":["id","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],foreignObject:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","width","x","xml:base","xml:lang","xml:space","y"],g:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],glyph:["arabic-form","class","d","glyph-name","horiz-adv-x","id","lang","orientation","style","unicode","vert-adv-y","vert-origin-x","vert-origin-y","xml:base","xml:lang","xml:space"],glyphRef:["class","dx","dy","format","glyphRef","id","style","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],hkern:["g1","g2","id","k","u1","u2","xml:base","xml:lang","xml:space"],image:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","preserveAspectRatio","requiredExtensions","requiredFeatures","style","systemLanguage","transform","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],line:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","x1","x2","xml:base","xml:lang","xml:space","y1","y2"],linearGradient:["class","externalResourcesRequired","gradientTransform","gradientUnits","id","spreadMethod","style","x1","x2","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y1","y2"],marker:["class","externalResourcesRequired","id","markerHeight","markerUnits","markerWidth","orient","preserveAspectRatio","refX","refY","style","viewBox","xml:base","xml:lang","xml:space"],mask:["class","externalResourcesRequired","height","id","maskContentUnits","maskUnits","requiredExtensions","requiredFeatures","style","systemLanguage","width","x","xml:base","xml:lang","xml:space","y"],metadata:["id","xml:base","xml:lang","xml:space"],"missing-glyph":["class","d","horiz-adv-x","id","style","vert-adv-y","vert-origin-x","vert-origin-y","xml:base","xml:lang","xml:space"],mpath:["externalResourcesRequired","id","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],path:["class","d","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","pathLength","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],pattern:["class","externalResourcesRequired","height","id","patternContentUnits","patternTransform","patternUnits","preserveAspectRatio","requiredExtensions","requiredFeatures","style","systemLanguage","viewBox","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],polygon:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","points","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],polyline:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","points","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],radialGradient:["class","cx","cy","externalResourcesRequired","fx","fy","gradientTransform","gradientUnits","id","r","spreadMethod","style","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],rect:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rx","ry","style","systemLanguage","transform","width","x","xml:base","xml:lang","xml:space","y"],script:["externalResourcesRequired","id","type","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],set:["attributeName","attributeType","begin","dur","end","externalResourcesRequired","fill","id","max","min","onbegin","onend","onload","onrepeat","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","systemLanguage","to","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],stop:["class","id","offset","style","xml:base","xml:lang","xml:space"],style:["id","media","title","type","xml:base","xml:lang","xml:space"],svg:["baseProfile","class","contentScriptType","contentStyleType","externalResourcesRequired","height","id","onabort","onactivate","onclick","onerror","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onresize","onscroll","onunload","onzoom","preserveAspectRatio","requiredExtensions","requiredFeatures","style","systemLanguage","version","viewBox","width","x","xml:base","xml:lang","xml:space","y","zoomAndPan"],"switch":["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","xml:base","xml:lang","xml:space"],symbol:["class","externalResourcesRequired","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","preserveAspectRatio","style","viewBox","xml:base","xml:lang","xml:space"],text:["class","dx","dy","externalResourcesRequired","id","lengthAdjust","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","textLength","transform","x","xml:base","xml:lang","xml:space","y"],textPath:["class","externalResourcesRequired","id","lengthAdjust","method","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","spacing","startOffset","style","systemLanguage","textLength","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space"],title:["class","id","style","xml:base","xml:lang","xml:space"],tref:["class","dx","dy","externalResourcesRequired","id","lengthAdjust","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","textLength","x","xlink:arcrole","xlink:href","xlink:role","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],tspan:["class","dx","dy","externalResourcesRequired","id","lengthAdjust","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","rotate","style","systemLanguage","textLength","x","xml:base","xml:lang","xml:space","y"],use:["class","externalResourcesRequired","height","id","onactivate","onclick","onfocusin","onfocusout","onload","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","requiredExtensions","requiredFeatures","style","systemLanguage","transform","width","x","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y"],view:["externalResourcesRequired","id","preserveAspectRatio","viewBox","viewTarget","xml:base","xml:lang","xml:space","zoomAndPan"],vkern:["g1","g2","id","k","u1","u2","xml:base","xml:lang","xml:space"]},hd=a.presentationElements={a:!0,altGlyph:!0,animate:!0,animateColor:!0,circle:!0,clipPath:!0,defs:!0,ellipse:!0,feBlend:!0,feColorMatrix:!0,feComponentTransfer:!0,feComposite:!0,feConvolveMatrix:!0,feDiffuseLighting:!0,feDisplacementMap:!0,feFlood:!0,feGaussianBlur:!0,feImage:!0,feMerge:!0,feMorphology:!0,feOffset:!0,feSpecularLighting:!0,feTile:!0,feTurbulence:!0,filter:!0,font:!0,foreignObject:!0,g:!0,glyph:!0,glyphRef:!0,image:!0,line:!0,linearGradient:!0,marker:!0,mask:!0,"missing-glyph":!0,path:!0,pattern:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,svg:!0,"switch":!0,symbol:!0,text:!0,textPath:!0,tref:!0,tspan:!0,use:!0},id=a.presentationAttributes={"alignment-baseline":!0,"baseline-shift":!0,"clip-path":!0,"clip-rule":!0,clip:!0,"color-interpolation-filters":!0,"color-interpolation":!0,"color-profile":!0,"color-rendering":!0,color:!0,cursor:!0,direction:!0,display:!0,"dominant-baseline":!0,"enable-background":!0,"fill-opacity":!0,"fill-rule":!0,fill:!0,filter:!0,"flood-color":!0,"flood-opacity":!0,"font-family":!0,"font-size-adjust":!0,"font-size":!0,"font-stretch":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,"glyph-orientation-horizontal":!0,"glyph-orientation-vertical":!0,"image-rendering":!0,kerning:!0,"letter-spacing":!0,"lighting-color":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,mask:!0,opacity:!0,overflow:!0,"pointer-events":!0,"shape-rendering":!0,"stop-color":!0,"stop-opacity":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-miterlimit":!0,"stroke-opacity":!0,"stroke-width":!0,stroke:!0,"text-anchor":!0,"text-decoration":!0,"text-rendering":!0,"unicode-bidi":!0,visibility:!0,"word-spacing":!0,"writing-mode":!0},jd=a.SVGAnalyzer=function(){function a(){"altglyph"===ea("<svg><altGlyph /></svg>").firstElementChild.nodeName&&gd.altGlyph&&(gd.altglyph=gd.altGlyph,delete gd.altGlyph,gd.altglyphdef=gd.altGlyphDef,delete gd.altGlyphDef,gd.altglyphitem=gd.altGlyphItem,delete gd.altGlyphItem,gd.glyphref=gd.glyphRef,delete gd.glyphRef)}return a.prototype.isStandardSvgAttribute=function(a,b){return hd[a]&&id[b]||gd[a]&&-1!==gd[a].indexOf(b)},a}(),kd=a.ObserverLocator=(Ca=Ba=function(){function a(a,b,c,d,e){this.taskQueue=a,this.eventManager=b,this.dirtyChecker=c,this.svgAnalyzer=d,this.parser=e,this.adapters=[],this.logger=Ha.getLogger("observer-locator")}return a.prototype.getObserver=function(a,b){var c=a.__observers__,d=void 0;return c&&b in c?c[b]:(d=this.createPropertyObserver(a,b),d.doNotCache||(void 0===c&&(c=this.getOrCreateObserversLookup(a)),c[b]=d),d)},a.prototype.getOrCreateObserversLookup=function(a){return a.__observers__||this.createObserversLookup(a)},a.prototype.createObserversLookup=function(a){var b={};return Reflect.defineProperty(a,"__observers__",{enumerable:!1,configurable:!1,writable:!1,value:b})||this.logger.warn("Cannot add observers to object",a),b},a.prototype.addAdapter=function(a){this.adapters.push(a)},a.prototype.getAdapterObserver=function(a,b,c){for(var d=0,e=this.adapters.length;e>d;d++){var f=this.adapters[d],g=f.getObserver(a,b,c);if(g)return g}return null},a.prototype.createPropertyObserver=function(a,b){var d=void 0,e=void 0,f=void 0;if(!(a instanceof Object))return new Uc(a,b);if(a instanceof c.DOM.Element){if("class"===b)return new ed(a);if("style"===b||"css"===b)return new Zc(a,b);if(e=this.eventManager.getElementHandler(a,b),"value"===b&&"select"===a.tagName.toLowerCase())return new dd(a,e,this);if("checked"===b&&"input"===a.tagName.toLowerCase())return new bd(a,e,this);if(e)return new $c(a,b,e);if(f=/^xlink:(.+)$/.exec(b))return new Wc(a,b,f[1]);if(/^\w+:|^data-|^aria-/.test(b)||a instanceof c.DOM.SVGElement&&this.svgAnalyzer.isStandardSvgAttribute(a.nodeName,b))return new Yc(a,b)}if(d=Object.getPropertyDescriptor(a,b),aa(d))return da(a,b,d,this);if(d){var g=d.get||d.set;if(g){if(g.getObserver)return g.getObserver(a);var h=this.getAdapterObserver(a,b,d);return h?h:new Rc(this.dirtyChecker,a,b)}}return a instanceof Array?"length"===b?this.getArrayObserver(a).getLengthObserver():new Rc(this.dirtyChecker,a,b):a instanceof Map?"size"===b?this.getMapObserver(a).getLengthObserver():new Rc(this.dirtyChecker,a,b):a instanceof Set?"size"===b?this.getSetObserver(a).getLengthObserver():new Rc(this.dirtyChecker,a,b):new Vc(this.taskQueue,a,b)},a.prototype.getAccessor=function(a,b){if(a instanceof c.DOM.Element){if("class"===b||"style"===b||"css"===b||"value"===b&&("input"===a.tagName.toLowerCase()||"select"===a.tagName.toLowerCase())||"checked"===b&&"input"===a.tagName.toLowerCase()||"model"===b&&"input"===a.tagName.toLowerCase()||/^xlink:.+$/.exec(b))return this.getObserver(a,b);if(/^\w+:|^data-|^aria-/.test(b)||a instanceof c.DOM.SVGElement&&this.svgAnalyzer.isStandardSvgAttribute(a.nodeName,b))return Xc}return Tc},a.prototype.getArrayObserver=function(a){return K(this.taskQueue,a)},a.prototype.getMapObserver=function(a){return Z(this.taskQueue,a)},a.prototype.getSetObserver=function(a){return ia(this.taskQueue,a)},a}(),Ba.inject=[d.TaskQueue,Pc,Qc,jd,Jc],Ca),ld=(a.ObjectObservationAdapter=function(){function a(){}return a.prototype.getObserver=function(a,b,c){throw new Error("BindingAdapters must implement getObserver(object, propertyName).")},a}(),a.BindingExpression=function(){function a(a,b,c,d,e,f){this.observerLocator=a,this.targetProperty=b,this.sourceExpression=c,this.mode=d,this.lookupFunctions=e,this.attribute=f,this.discrete=!1}return a.prototype.createBinding=function(a){return new nd(this.observerLocator,this.sourceExpression,a,this.targetProperty,this.mode,this.lookupFunctions)},a}()),md="Binding:target",nd=a.Binding=(Da=q(),Da(Ea=function(){function a(a,b,c,d,e,f){this.observerLocator=a,this.sourceExpression=b,this.target=c,this.targetProperty=d,this.mode=e,this.lookupFunctions=f}return a.prototype.updateTarget=function(a){this.targetObserver.setValue(a,this.target,this.targetProperty)},a.prototype.updateSource=function(a){this.sourceExpression.assign(this.source,a,this.lookupFunctions)},a.prototype.call=function(a,b,c){if(this.isBound){if(a===La)return c=this.targetObserver.getValue(this.target,this.targetProperty),b=this.sourceExpression.evaluate(this.source,this.lookupFunctions),b!==c&&this.updateTarget(b),void(this.mode!==Hb.oneTime&&(this._version++,this.sourceExpression.connect(this,this.source),this.unobserve(!1)));if(a===md)return void(b!==this.sourceExpression.evaluate(this.source,this.lookupFunctions)&&this.updateSource(b));throw new Error("Unexpected call context "+a)}},a.prototype.bind=function(a){if(this.isBound){if(this.source===a)return;this.unbind()}this.isBound=!0,this.source=a,this.sourceExpression.bind&&this.sourceExpression.bind(this,a,this.lookupFunctions);var b=this.mode;if(!this.targetObserver){var c=b===Hb.twoWay?"getObserver":"getAccessor";this.targetObserver=this.observerLocator[c](this.target,this.targetProperty)}"bind"in this.targetObserver&&this.targetObserver.bind();var d=this.sourceExpression.evaluate(a,this.lookupFunctions);this.updateTarget(d),b===Hb.oneWay?s(this):b===Hb.twoWay&&(this.sourceExpression.connect(this,a),this.targetObserver.subscribe(md,this))},a.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,"unbind"in this.targetObserver&&this.targetObserver.unbind(),this.targetObserver.unsubscribe&&this.targetObserver.unsubscribe(md,this),this.unobserve(!0))},a.prototype.connect=function(a){if(this.isBound){if(a){var b=this.sourceExpression.evaluate(this.source,this.lookupFunctions);this.updateTarget(b)}this.sourceExpression.connect(this,this.source)}},a}())||Ea),od=(a.CallExpression=function(){function a(a,b,c,d){this.observerLocator=a,this.targetProperty=b,this.sourceExpression=c,this.lookupFunctions=d}return a.prototype.createBinding=function(a){return new od(this.observerLocator,this.sourceExpression,a,this.targetProperty,this.lookupFunctions)},a}(),a.Call=function(){function a(a,b,c,d,e){this.sourceExpression=b,this.target=c,this.targetProperty=a.getObserver(c,d),this.lookupFunctions=e}return a.prototype.callSource=function(a){var b=this.source.overrideContext;Object.assign(b,a),b.$event=a;var c=!0,d=this.sourceExpression.evaluate(this.source,this.lookupFunctions,c);delete b.$event;for(var e in a)delete b[e];return d},a.prototype.bind=function(a){var b=this;if(this.isBound){if(this.source===a)return;this.unbind()}this.isBound=!0,this.source=a,this.sourceExpression.bind&&this.sourceExpression.bind(this,a,this.lookupFunctions),this.targetProperty.setValue(function(a){return b.callSource(a)})},a.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,this.targetProperty.setValue(null))},a}()),pd=a.ValueConverterResource=function(){function a(a){this.name=a}return a.convention=function(b){return b.endsWith("ValueConverter")?new a(i(b.substring(0,b.length-14))):void 0},a.prototype.initialize=function(a,b){this.instance=a.get(b)},a.prototype.register=function(a,b){a.registerValueConverter(b||this.name,this.instance)},a.prototype.load=function(a,b){},a}(),qd=a.BindingBehaviorResource=function(){function a(a){this.name=a}return a.convention=function(b){return b.endsWith("BindingBehavior")?new a(i(b.substring(0,b.length-15))):void 0},a.prototype.initialize=function(a,b){this.instance=a.get(b)},a.prototype.register=function(a,b){a.registerBindingBehavior(b||this.name,this.instance)},a.prototype.load=function(a,b){},a}(),rd=(a.ListenerExpression=function(){function a(a,b,c,d,e,f){this.eventManager=a,this.targetEvent=b,this.sourceExpression=c,this.delegate=d,this.discrete=!0,this.preventDefault=e,this.lookupFunctions=f}return a.prototype.createBinding=function(a){return new rd(this.eventManager,this.targetEvent,this.delegate,this.sourceExpression,a,this.preventDefault,this.lookupFunctions)},a}(),a.Listener=function(){function a(a,b,c,d,e,f,g){this.eventManager=a,this.targetEvent=b,this.delegate=c,this.sourceExpression=d,this.target=e,this.preventDefault=f,this.lookupFunctions=g}return a.prototype.callSource=function(a){var b=this.source.overrideContext;b.$event=a;var c=!0,d=this.sourceExpression.evaluate(this.source,this.lookupFunctions,c);return delete b.$event,d!==!0&&this.preventDefault&&a.preventDefault(),d},a.prototype.bind=function(a){var b=this;if(this.isBound){if(this.source===a)return;this.unbind()}this.isBound=!0,this.source=a,this.sourceExpression.bind&&this.sourceExpression.bind(this,a,this.lookupFunctions),this._disposeListener=this.eventManager.addEventListener(this.target,this.targetEvent,function(a){return b.callSource(a)},this.delegate)},a.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null,this._disposeListener(),this._disposeListener=null)},a}()),sd=(a.NameExpression=function(){function a(a,b,c){this.sourceExpression=a,this.apiName=b,this.lookupFunctions=c,this.discrete=!0}return a.prototype.createBinding=function(b){return new sd(this.sourceExpression,a.locateAPI(b,this.apiName),this.lookupFunctions)},a.locateAPI=function(a,b){switch(b){case"element":return a;case"controller":return ha(a).controller;case"view-model":return ha(a).controller.viewModel;case"view":return ha(a).controller.view;default:var c=ha(a)[b];if(void 0===c)throw new Error('Attempted to reference "'+b+"\", but it was not found amongst the target's API.");return c.viewModel}},a}(),function(){function a(a,b,c){this.sourceExpression=a,this.target=b,this.lookupFunctions=c}return a.prototype.bind=function(a){if(this.isBound){if(this.source===a)return;this.unbind()}this.isBound=!0,this.source=a,this.sourceExpression.bind&&this.sourceExpression.bind(this,a,this.lookupFunctions),this.sourceExpression.assign(this.source,this.target,this.lookupFunctions)},a.prototype.unbind=function(){this.isBound&&(this.isBound=!1,this.sourceExpression.assign(this.source,null,this.lookupFunctions),this.sourceExpression.unbind&&this.sourceExpression.unbind(this,this.source),this.source=null)},a}()),td={bindingBehaviors:function(a){return null},valueConverters:function(a){return null}},ud=(a.BindingEngine=(Ga=Fa=function(){function a(a,b){this.observerLocator=a,this.parser=b}return a.prototype.createBindingExpression=function(a,b){var c=arguments.length<=2||void 0===arguments[2]?Hb.oneWay:arguments[2],d=arguments.length<=3||void 0===arguments[3]?td:arguments[3];return new ld(this.observerLocator,a,this.parser.parse(b),c,d)},a.prototype.propertyObserver=function(a,b){var c=this;return{subscribe:function(d){var e=c.observerLocator.getObserver(a,b);return e.subscribe(d),{dispose:function(){return e.unsubscribe(d)}}}}},a.prototype.collectionObserver=function(a){var b=this;return{subscribe:function(c){var d=void 0;if(a instanceof Array)d=b.observerLocator.getArrayObserver(a);else if(a instanceof Map)d=b.observerLocator.getMapObserver(a);else{if(!(a instanceof Set))throw new Error("collection must be an instance of Array, Map or Set.");d=b.observerLocator.getSetObserver(a)}return d.subscribe(c),{dispose:function(){return d.unsubscribe(c)}}}}},a.prototype.expressionObserver=function(a,b){var c={bindingContext:a,overrideContext:j(a)};return new Xa(c,this.parser.parse(b),this.observerLocator,td)},a.prototype.parseExpression=function(a){return this.parser.parse(a)},a.prototype.registerAdapter=function(a){this.observerLocator.addAdapter(a)},a}(),Fa.inject=[kd,Jc],Ga),Set.prototype);a.getSetObserver=ia;var vd=function(a){function b(b,c){return g(this,a.call(this,b,c))}return h(b,a),b["for"]=function(a,c){return"__set_observer__"in c||Reflect.defineProperty(c,"__set_observer__",{value:b.create(a,c),enumerable:!1,configurable:!1}),c.__set_observer__},b.create=function(a,c){var d=new b(a,c),e=ud;return e.add===c.add&&e["delete"]===c["delete"]&&e.clear===c.clear||(e={add:c.add,"delete":c["delete"],clear:c.clear}),c.add=function(){var a="add",b=c.size,f=e.add.apply(c,arguments),g=c.size===b;return g||d.addChangeRecord({type:a,object:c,value:Array.from(c).pop()}),f},c["delete"]=function(){var a=c.has(arguments[0]),b=e["delete"].apply(c,arguments);return a&&d.addChangeRecord({type:"delete",object:c,value:arguments[0]}),b},c.clear=function(){var a=e.clear.apply(c,arguments);return d.addChangeRecord({type:"clear",object:c}),a},d},b}(bb)})}(),function(){var a=System.amdDefine;a("npm:aurelia-binding@1.0.0.js",["npm:aurelia-binding@1.0.0/aurelia-binding"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-task-queue@1.0.0/aurelia-task-queue.js",["exports","aurelia-pal"],function(a,b){"use strict";function c(a){var c=1,d=b.DOM.createMutationObserver(a),e=b.DOM.createTextNode("");return d.observe(e,{characterData:!0}),function(){c=-c,e.data=c}}function d(a){return function(){function b(){clearTimeout(c),clearInterval(d),a()}var c=setTimeout(b,0),d=setInterval(b,50)}}function e(a,b){"onError"in b?b.onError(a):f?setImmediate(function(){throw a}):setTimeout(function(){throw a},0)}Object.defineProperty(a,"__esModule",{value:!0}),a.TaskQueue=void 0;var f="function"==typeof setImmediate;a.TaskQueue=function(){function a(){var a=this;this.microTaskQueue=[],this.microTaskQueueCapacity=1024,this.taskQueue=[],b.FEATURE.mutationObserver?this.requestFlushMicroTaskQueue=c(function(){return a.flushMicroTaskQueue()}):this.requestFlushMicroTaskQueue=d(function(){return a.flushMicroTaskQueue()}),this.requestFlushTaskQueue=d(function(){return a.flushTaskQueue()})}return a.prototype.queueMicroTask=function(a){this.microTaskQueue.length<1&&this.requestFlushMicroTaskQueue(),this.microTaskQueue.push(a)},a.prototype.queueTask=function(a){this.taskQueue.length<1&&this.requestFlushTaskQueue(),this.taskQueue.push(a)},a.prototype.flushTaskQueue=function(){var a=this.taskQueue,b=0,c=void 0;this.taskQueue=[];try{for(;b<a.length;)c=a[b],c.call(),b++}catch(d){e(d,c)}},a.prototype.flushMicroTaskQueue=function(){var a=this.microTaskQueue,b=this.microTaskQueueCapacity,c=0,d=void 0;try{for(;c<a.length;)if(d=a[c],d.call(),c++,c>b){for(var f=0,g=a.length-c;g>f;f++)a[f]=a[f+c];a.length-=c,c=0}}catch(h){e(h,d)}a.length=0},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-task-queue@1.0.0.js",["npm:aurelia-task-queue@1.0.0/aurelia-task-queue"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating@1.0.0/aurelia-templating.js",["exports","aurelia-logging","aurelia-metadata","aurelia-pal","aurelia-path","aurelia-loader","aurelia-dependency-injection","aurelia-binding","aurelia-task-queue"],function(a,b,c,d,e,f,g,h,i){"use strict";function j(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function k(a){return"-"+a.toLowerCase()}function l(a){return(a.charAt(0).toLowerCase()+a.slice(1)).replace(Ra,k)}function m(a){return!(a.auInterpolationTarget||/[^\t\n\r ]/.test(a.textContent))}function n(a){var b=function(a){c.metadata.define(c.metadata.resource,new Sa,a)};return a?b(a):b}function o(a){throw new Error("BindingLanguage must implement "+a+"().")}function p(a,b,c,d){if(b){var e=a[b];if(e){if(e!==c)throw new Error("Attempted to register "+d+" when one with the same name already exists. Name: "+b+".")}else a[b]=c}}function q(a){if(void 0!==a.animatableElement)return a.animatableElement;for(var b=a.firstChild;b&&1!==b.nodeType;)b=b.nextSibling;return b&&1===b.nodeType?a.animatableElement=b.classList.contains("au-animate")?b:null:a.animatableElement=null}function r(a){if(a===d.DOM.Element)return this.element;if(a===ob){if(this.boundViewFactory)return this.boundViewFactory;var b=this.instruction.viewFactory,c=this.partReplacements;return c&&(b=c[b.part]||b),this.boundViewFactory=new ob(this,b,c),this.boundViewFactory}return a===lb?(void 0===this.viewSlot&&(this.viewSlot=new lb(this.element,this.instruction.anchorIsContainer),this.element.isContentProjectionSource=this.instruction.lifting,this.children.push(this.viewSlot)),this.viewSlot):a===Ta?this.elementEvents||(this.elementEvents=new Ta(this.element)):a===Qa?this.compositionTransaction||(this.compositionTransaction=this.parent.get(a)):a===jb?this.viewResources:a===Xa?this.instruction:this.superGet(a)}function s(a,b,c,d,e,f){var g=a.createChild(),h=void 0,i=void 0;for(g.element=b,g.instruction=c,g.children=d,g.viewResources=f,g.partReplacements=e,h=c.providers,i=h.length;i--;)g._resolvers.set(h[i],nb);return g.superGet=g.get,g.get=r,g}function t(a,b){var c=d.DOM.createComment("anchor");if(b){var e=a.firstChild;e&&"AU-CONTENT"===e.tagName&&(c.contentElement=e),c.hasAttribute=function(b){return a.hasAttribute(b)},c.getAttribute=function(b){return a.getAttribute(b)},c.setAttribute=function(b,c){a.setAttribute(b,c)}}return d.DOM.replaceNode(c,a),c}function u(a,b,c,e,f,g,h,i,j){var k=c.behaviorInstructions,l=c.expressions,m=void 0,n=void 0,o=void 0,p=void 0,q=void 0;if(c.contentExpression)return f.push(c.contentExpression.createBinding(b.nextSibling)),b.nextSibling.auInterpolationTarget=!0,void b.parentNode.removeChild(b);if(c.shadowSlot){var r=d.DOM.createComment("slot"),u=void 0;return u=c.slotDestination?new gb(r,c.slotName,c.slotDestination,c.slotFallbackFactory):new hb(r,c.slotName,c.slotFallbackFactory),d.DOM.replaceNode(r,b),h[c.slotName]=u,void e.push(u)}if(k.length)for(c.anchorIsContainer||(b=t(b,c.elementInstruction)),a[c.injectorId]=m=s(a[c.parentInjectorId],b,c,g,i,j),n=0,o=k.length;o>n;++n)p=k[n],q=p.type.create(m,p,b,f),e.push(q);for(n=0,o=l.length;o>n;++n)f.push(l[n].createBinding(b))}function v(a,b){var c=a.split(";"),d=void 0,e=void 0,f=void 0,g=void 0,h=void 0;for(b=b||{},e=0;e<c.length;e++)f=c[e],d=f.indexOf(":"),g=f.substring(0,d).trim(),h=f.substring(d+1).trim(),b[g]=h;return b}function w(a){var b="";for(var c in a)b+=c+":"+a[c]+";";return b}function x(a,b,c,d,e,f){var g=c.behaviorInstructions,h=c.expressions,i=c.providers,j=c.values,k=void 0,l=void 0,m=void 0,n=void 0,o=void 0;for(k=i.length;k--;)a._resolvers.set(i[k],nb);for(var p in j)if(o=b.getAttribute(p)){if("class"===p)b.setAttribute("class",o+" "+j[p]);else if("style"===p){var q=v(j[p]);v(o,q),b.setAttribute("style",w(q))}}else b.setAttribute(p,j[p]);if(g.length)for(k=0,l=g.length;l>k;++k)m=g[k],n=m.type.create(a,m,b,e),n.contentView&&f.push(n.contentView),d.push(n);for(k=0,l=h.length;l>k;++k)e.push(h[k].createBinding(b))}function y(){return++qb}function z(a,b){var c=a.type,d=a.attrName,e=a.attributes,f=void 0,g=void 0,h=void 0,i=b.mapAttribute(d);i&&d in e&&i!==d&&(e[i]=e[d],delete e[d]);for(g in e)h=e[g],null!==h&&"object"===("undefined"==typeof h?"undefined":Ma(h))&&(f=c.attributes[g],void 0!==f?h.targetProperty=f.name:h.targetProperty=g)}function A(){return(++rb).toString()}function B(a){var b=a.getAttribute("class"),c=A();return a.setAttribute("class",b?b+=" au-target":"au-target"),a.setAttribute("au-target-id",c),c}function C(a,b,c,e,f){var g=d.DOM.createElement("au-shadow-slot");d.DOM.replaceNode(g,c);var h=B(g),i=Xa.shadowSlot(f);if(i.slotName=c.getAttribute("name")||ib.defaultSlotKey,i.slotDestination=c.getAttribute("slot"),c.innerHTML.trim()){for(var j=d.DOM.createDocumentFragment(),k=void 0;k=c.firstChild;)j.appendChild(k);i.slotFallbackFactory=a.compile(j,b)}return e[h]=i,g}function D(a,b){return b instanceof f.TemplateRegistryEntry?Promise.resolve(b):a.loadTemplate(b)}function E(a,b,c){var d=b.__observers__;return void 0===d&&(a.isInitialized||a.initialize(g.Container.instance||new g.Container,b.constructor),d=a.observerLocator.getOrCreateObserversLookup(b),a._ensurePropertiesDefined(b,d)),d[c]}function F(){return++Cb}function G(){return!0}function H(){}function I(a,b){return function(d,e,f){var g="string"==typeof e?d.constructor:d,h=c.metadata.getOrCreateOwn(c.metadata.resource,Db,g);"string"==typeof a&&(a={selector:a,name:e}),f&&(f.writable=!0),a.all=b,h.addChildBinding(new Eb(a))}}function J(a){return I(a,!0)}function K(a){return I(a,!1)}function L(a,b,c){var d=a.get(b);d||(d=[],a.set(b,d)),d.push(c)}function M(a,b){for(var c=b.binders,d=c.length,e=new Map,f=0,g=a.length;g>f;++f){for(var h=a[f],i=h.addedNodes,j=h.removedNodes,k=0,l=j.length;l>k;++k){var m=j[k];if(1===m.nodeType)for(var n=0;d>n;++n){var o=c[n];o.onRemove(m)&&L(e,o,h)}}for(var p=0,q=i.length;q>p;++p){var r=i[p];if(1===r.nodeType)for(var s=0;d>s;++s){var t=c[s];t.onAdd(r)&&L(e,t,h)}}}e.forEach(function(a,b){null!==b.changeHandler&&b.viewModel[b.changeHandler](a)})}function N(a){return a.skipActivation||"function"!=typeof a.viewModel.activate?Promise.resolve():a.viewModel.activate(a.model)||Promise.resolve()}function O(a,b){if(/[A-Z]/.test(a)){var c=l(a);return Ka.getLogger("templating").warn("'"+a+"' is not a valid "+b+" name and has been converted to '"+c+"'. Upper-case letters are not allowed because the DOM is not case-sensitive."),c}return a}function P(a){return function(b){c.metadata.define(c.metadata.resource,a,b)}}function Q(a){return function(b){if(a instanceof Db)c.metadata.define(c.metadata.resource,a,b);else{var d=c.metadata.getOrCreateOwn(c.metadata.resource,Db,b);Object.assign(d,a)}}}function R(a){return function(b){var d=c.metadata.getOrCreateOwn(c.metadata.resource,Db,b);
  d.elementName=O(a,"custom element")}}function S(a,b){return function(d){var e=c.metadata.getOrCreateOwn(c.metadata.resource,Db,d);e.attributeName=O(a,"custom attribute"),e.attributeDefaultBindingMode=b}}function T(a){var b=function(a){var b=c.metadata.getOrCreateOwn(c.metadata.resource,Db,a);b.liftsContent=!0};return a?b(a):b}function U(a,b,d){var e=function(b,d,e){var f=d?b.constructor:b,g=c.metadata.getOrCreateOwn(c.metadata.resource,Db,f),h=void 0;return d&&(a=a||{},a.name=d),h=new Bb(a),h.registerWith(f,g,e)};if(!a)return e;if(b){var f=a;return a=null,e(f,b,d)}return e}function V(a){var b=function(a){var b=c.metadata.getOrCreateOwn(c.metadata.resource,Db,a);b.hasDynamicOptions=!0};return a?b(a):b}function W(a){var b="function"!=typeof a&&a?a:Jb,d=function(a){var d=c.metadata.getOrCreateOwn(c.metadata.resource,Db,a);d.targetShadowDOM=!0,d.shadowDOMOptions=b};return"function"==typeof a?d(a):d}function X(a){return function(b){var d=c.metadata.getOrCreateOwn(c.metadata.resource,Db,b);d.processAttributes=function(b,c,d,e,f){try{a(b,c,d,e,f)}catch(g){Ka.getLogger("templating").error(g)}}}}function Y(){return!1}function Z(a){return function(b){var d=c.metadata.getOrCreateOwn(c.metadata.resource,Db,b);d.processContent=a?function(b,c,d,e){try{return a(b,c,d,e)}catch(f){return Ka.getLogger("templating").error(f),!1}}:Y}}function $(a){var b=function(a){var b=c.metadata.getOrCreateOwn(c.metadata.resource,Db,a);b.containerless=!0};return a?b(a):b}function _(a){return function(b){c.metadata.define(cb.viewStrategyMetadataKey,a,b)}}function aa(a){return _(new Za(a))}function ba(a,b,c){return _(new bb(a,b,c))}function ca(a,b){var d=void 0,e=void 0;"function"==typeof a?d=a:(e=a,d=void 0);var f=function(a){c.metadata.define(cb.viewStrategyMetadataKey,new _a(e,b),a)};return d?f(d):f}function da(a){var b=function(a){c.metadata.define(c.metadata.resource,new Ib,a)};return a?b(a):b}function ea(){return function(a){c.metadata.define(yb.viewModelRequireMetadataKey,resources,a)}}Object.defineProperty(a,"__esModule",{value:!0}),a.TemplatingEngine=a.ElementConfigResource=a.CompositionEngine=a.HtmlBehaviorResource=a.BindableProperty=a.BehaviorPropertyObserver=a.Controller=a.ViewEngine=a.ModuleAnalyzer=a.ResourceDescription=a.ResourceModule=a.ViewCompiler=a.ViewFactory=a.BoundViewFactory=a.ViewSlot=a.View=a.ViewResources=a.ShadowDOM=a.ShadowSlot=a.PassThroughSlot=a.SlotCustomAttribute=a.BindingLanguage=a.ViewLocator=a.InlineViewStrategy=a.TemplateRegistryViewStrategy=a.NoViewStrategy=a.ConventionalViewStrategy=a.RelativeViewStrategy=a.viewStrategy=a.TargetInstruction=a.BehaviorInstruction=a.ViewCompileInstruction=a.ResourceLoadContext=a.ElementEvents=a.ViewEngineHooksResource=a.CompositionTransaction=a.CompositionTransactionOwnershipToken=a.CompositionTransactionNotifier=a.Animator=a.animationEvent=void 0,a._hyphenate=l,a._isAllWhitespace=m,a.viewEngineHooks=n,a.children=J,a.child=K,a.resource=P,a.behavior=Q,a.customElement=R,a.customAttribute=S,a.templateController=T,a.bindable=U,a.dynamicOptions=V,a.useShadowDOM=W,a.processAttributes=X,a.processContent=Z,a.containerless=$,a.useViewStrategy=_,a.useView=aa,a.inlineView=ba,a.noView=ca,a.elementConfig=da,a.viewResources=ea;var fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha,Ia,Ja,Ka=j(b),La=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a},Na=(a.animationEvent={enterBegin:"animation:enter:begin",enterActive:"animation:enter:active",enterDone:"animation:enter:done",enterTimeout:"animation:enter:timeout",leaveBegin:"animation:leave:begin",leaveActive:"animation:leave:active",leaveDone:"animation:leave:done",leaveTimeout:"animation:leave:timeout",staggerNext:"animation:stagger:next",removeClassBegin:"animation:remove-class:begin",removeClassActive:"animation:remove-class:active",removeClassDone:"animation:remove-class:done",removeClassTimeout:"animation:remove-class:timeout",addClassBegin:"animation:add-class:begin",addClassActive:"animation:add-class:active",addClassDone:"animation:add-class:done",addClassTimeout:"animation:add-class:timeout",animateBegin:"animation:animate:begin",animateActive:"animation:animate:active",animateDone:"animation:animate:done",animateTimeout:"animation:animate:timeout",sequenceBegin:"animation:sequence:begin",sequenceDone:"animation:sequence:done"},a.Animator=function(){function a(){}return a.prototype.enter=function(a){return Promise.resolve(!1)},a.prototype.leave=function(a){return Promise.resolve(!1)},a.prototype.removeClass=function(a,b){return a.classList.remove(b),Promise.resolve(!1)},a.prototype.addClass=function(a,b){return a.classList.add(b),Promise.resolve(!1)},a.prototype.animate=function(a,b){return Promise.resolve(!1)},a.prototype.runSequence=function(a){},a.prototype.registerEffect=function(a,b){},a.prototype.unregisterEffect=function(a){},a}()),Oa=a.CompositionTransactionNotifier=function(){function a(a){this.owner=a,this.owner._compositionCount++}return a.prototype.done=function(){this.owner._compositionCount--,this.owner._tryCompleteTransaction()},a}(),Pa=a.CompositionTransactionOwnershipToken=function(){function a(a){this.owner=a,this.owner._ownershipToken=this,this.thenable=this._createThenable()}return a.prototype.waitForCompositionComplete=function(){return this.owner._tryCompleteTransaction(),this.thenable},a.prototype.resolve=function(){this._resolveCallback()},a.prototype._createThenable=function(){var a=this;return new Promise(function(b,c){a._resolveCallback=b})},a}(),Qa=a.CompositionTransaction=function(){function a(){this._ownershipToken=null,this._compositionCount=0}return a.prototype.tryCapture=function(){return null===this._ownershipToken?new Pa(this):null},a.prototype.enlist=function(){return new Oa(this)},a.prototype._tryCompleteTransaction=function(){if(this._compositionCount<=0&&(this._compositionCount=0,null!==this._ownershipToken)){var a=this._ownershipToken;this._ownershipToken=null,a.resolve()}},a}(),Ra=/([A-Z])/g,Sa=a.ViewEngineHooksResource=function(){function a(){}return a.prototype.initialize=function(a,b){this.instance=a.get(b)},a.prototype.register=function(a,b){a.registerViewEngineHooks(this.instance)},a.prototype.load=function(a,b){},a.convention=function(b){return b.endsWith("ViewEngineHooks")?new a:void 0},a}(),Ta=a.ElementEvents=function(){function a(a){this.element=a,this.subscriptions={}}return a.prototype._enqueueHandler=function(a){this.subscriptions[a.eventName]=this.subscriptions[a.eventName]||[],this.subscriptions[a.eventName].push(a)},a.prototype._dequeueHandler=function(a){var b=void 0,c=this.subscriptions[a.eventName];return c&&(b=c.indexOf(a),b>-1&&c.splice(b,1)),a},a.prototype.publish=function(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],c=arguments.length<=2||void 0===arguments[2]?!0:arguments[2],e=arguments.length<=3||void 0===arguments[3]?!0:arguments[3],f=d.DOM.createCustomEvent(a,{cancelable:e,bubbles:c,detail:b});this.element.dispatchEvent(f)},a.prototype.subscribe=function(a,b){var c=this,d=arguments.length<=2||void 0===arguments[2]?!0:arguments[2];return b&&"function"==typeof b?(b.eventName=a,b.handler=b,b.bubbles=d,b.dispose=function(){c.element.removeEventListener(a,b,d),c._dequeueHandler(b)},this.element.addEventListener(a,b,d),this._enqueueHandler(b),b):void 0},a.prototype.subscribeOnce=function(a,b){var c=this,d=arguments.length<=2||void 0===arguments[2]?!0:arguments[2];if(b&&"function"==typeof b){var e=function(){var e=function f(a){b(a),f.dispose()};return{v:c.subscribe(a,e,d)}}();if("object"===("undefined"==typeof e?"undefined":Ma(e)))return e.v}},a.prototype.dispose=function(a){if(a&&"string"==typeof a){var b=this.subscriptions[a];if(b)for(;b.length;){var c=b.pop();c&&c.dispose()}}else this.disposeAll()},a.prototype.disposeAll=function(){for(var a in this.subscriptions)this.dispose(a)},a}(),Ua=a.ResourceLoadContext=function(){function a(){this.dependencies={}}return a.prototype.addDependency=function(a){this.dependencies[a]=!0},a.prototype.hasDependency=function(a){return a in this.dependencies},a}(),Va=a.ViewCompileInstruction=function(){var a=arguments.length<=0||void 0===arguments[0]?!1:arguments[0],b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];this.targetShadowDOM=a,this.compileSurrogate=b,this.associatedModuleId=null};Va.normal=new Va;var Wa=a.BehaviorInstruction=function(){function a(){this.initiatedByBehavior=!1,this.enhance=!1,this.partReplacements=null,this.viewFactory=null,this.originalAttrName=null,this.skipContentProcessing=!1,this.contentFactory=null,this.viewModel=null,this.anchorIsContainer=!1,this.host=null,this.attributes=null,this.type=null,this.attrName=null,this.inheritBindingContext=!1}return a.enhance=function(){var b=new a;return b.enhance=!0,b},a.unitTest=function(b,c){var d=new a;return d.type=b,d.attributes=c||{},d},a.element=function(b,c){var d=new a;return d.type=c,d.attributes={},d.anchorIsContainer=!(b.hasAttribute("containerless")||c.containerless),d.initiatedByBehavior=!0,d},a.attribute=function(b,c){var d=new a;return d.attrName=b,d.type=c||null,d.attributes={},d},a.dynamic=function(b,c,d){var e=new a;return e.host=b,e.viewModel=c,e.viewFactory=d,e.inheritBindingContext=!0,e},a}();Wa.normal=new Wa;var Xa=a.TargetInstruction=(ga=fa=function(){function a(){this.injectorId=null,this.parentInjectorId=null,this.shadowSlot=!1,this.slotName=null,this.slotFallbackFactory=null,this.contentExpression=null,this.expressions=null,this.behaviorInstructions=null,this.providers=null,this.viewFactory=null,this.anchorIsContainer=!1,this.elementInstruction=null,this.lifting=!1,this.values=null}return a.shadowSlot=function(b){var c=new a;return c.parentInjectorId=b,c.shadowSlot=!0,c},a.contentExpression=function(b){var c=new a;return c.contentExpression=b,c},a.lifting=function(b,c){var d=new a;return d.parentInjectorId=b,d.expressions=a.noExpressions,d.behaviorInstructions=[c],d.viewFactory=c.viewFactory,d.providers=[c.type.target],d.lifting=!0,d},a.normal=function(b,c,d,e,f,g){var h=new a;return h.injectorId=b,h.parentInjectorId=c,h.providers=d,h.behaviorInstructions=e,h.expressions=f,h.anchorIsContainer=g?g.anchorIsContainer:!0,h.elementInstruction=g,h},a.surrogate=function(b,c,d,e){var f=new a;return f.expressions=d,f.behaviorInstructions=c,f.providers=b,f.values=e,f},a}(),fa.noExpressions=Object.freeze([]),ga),Ya=a.viewStrategy=c.protocol.create("aurelia:view-strategy",{validate:function(a){return"function"!=typeof a.loadViewFactory?"View strategies must implement: loadViewFactory(viewEngine: ViewEngine, compileInstruction: ViewCompileInstruction, loadContext?: ResourceLoadContext): Promise<ViewFactory>":!0},compose:function(a){"function"!=typeof a.makeRelativeTo&&(a.makeRelativeTo=d.PLATFORM.noop)}}),Za=a.RelativeViewStrategy=(ha=Ya(),ha(ia=function(){function a(a){this.path=a,this.absolutePath=null}return a.prototype.loadViewFactory=function(a,b,c,d){return null===this.absolutePath&&this.moduleId&&(this.absolutePath=(0,e.relativeToFile)(this.path,this.moduleId)),b.associatedModuleId=this.moduleId,a.loadViewFactory(this.absolutePath||this.path,b,c,d)},a.prototype.makeRelativeTo=function(a){null===this.absolutePath&&(this.absolutePath=(0,e.relativeToFile)(this.path,a))},a}())||ia),$a=a.ConventionalViewStrategy=(ja=Ya(),ja(ka=function(){function a(a,b){this.moduleId=b.moduleId,this.viewUrl=a.convertOriginToViewUrl(b)}return a.prototype.loadViewFactory=function(a,b,c,d){return b.associatedModuleId=this.moduleId,a.loadViewFactory(this.viewUrl,b,c,d)},a}())||ka),_a=a.NoViewStrategy=(la=Ya(),la(ma=function(){function a(a,b){this.dependencies=a||null,this.dependencyBaseUrl=b||""}return a.prototype.loadViewFactory=function(a,b,c,d){var e=this.entry,g=this.dependencies;if(e&&e.factoryIsReady)return Promise.resolve(null);if(this.entry=e=new f.TemplateRegistryEntry(this.moduleId||this.dependencyBaseUrl),e.dependencies=[],e.templateIsLoaded=!0,null!==g)for(var h=0,i=g.length;i>h;++h){var j=g[h];"string"==typeof j||"function"==typeof j?e.addDependency(j):e.addDependency(j.from,j.as)}return b.associatedModuleId=this.moduleId,a.loadViewFactory(e,b,c,d)},a}())||ma),ab=a.TemplateRegistryViewStrategy=(na=Ya(),na(oa=function(){function a(a,b){this.moduleId=a,this.entry=b}return a.prototype.loadViewFactory=function(a,b,c,d){var e=this.entry;return e.factoryIsReady?Promise.resolve(e.factory):(b.associatedModuleId=this.moduleId,a.loadViewFactory(e,b,c,d))},a}())||oa),bb=a.InlineViewStrategy=(pa=Ya(),pa(qa=function(){function a(a,b,c){this.markup=a,this.dependencies=b||null,this.dependencyBaseUrl=c||""}return a.prototype.loadViewFactory=function(a,b,c,e){var g=this.entry,h=this.dependencies;if(g&&g.factoryIsReady)return Promise.resolve(g.factory);if(this.entry=g=new f.TemplateRegistryEntry(this.moduleId||this.dependencyBaseUrl),g.template=d.DOM.createTemplateFromMarkup(this.markup),null!==h)for(var i=0,j=h.length;j>i;++i){var k=h[i];"string"==typeof k||"function"==typeof k?g.addDependency(k):g.addDependency(k.from,k.as)}return b.associatedModuleId=this.moduleId,a.loadViewFactory(g,b,c,e)},a}())||qa),cb=a.ViewLocator=(sa=ra=function(){function a(){}return a.prototype.getViewStrategy=function(b){if(!b)return null;if("object"===("undefined"==typeof b?"undefined":Ma(b))&&"getViewStrategy"in b){var d=c.Origin.get(b.constructor);return b=b.getViewStrategy(),"string"==typeof b&&(b=new Za(b)),Ya.assert(b),d.moduleId&&b.makeRelativeTo(d.moduleId),b}if("string"==typeof b&&(b=new Za(b)),Ya.validate(b))return b;"function"!=typeof b&&(b=b.constructor);var e=c.Origin.get(b),f=c.metadata.get(a.viewStrategyMetadataKey,b);if(f)e.moduleId&&(f.moduleId=e.moduleId);else{if(!e.moduleId)throw new Error("Cannot determine default view strategy for object.",b);f=this.createFallbackViewStrategy(e)}return f},a.prototype.createFallbackViewStrategy=function(a){return new $a(this,a)},a.prototype.convertOriginToViewUrl=function(a){var b=a.moduleId,c=b.endsWith(".js")||b.endsWith(".ts")?b.substring(0,b.length-3):b;return c+".html"},a}(),ra.viewStrategyMetadataKey="aurelia:view-strategy",sa),db=a.BindingLanguage=function(){function a(){}return a.prototype.inspectAttribute=function(a,b,c,d){o("inspectAttribute")},a.prototype.createAttributeInstruction=function(a,b,c,d){o("createAttributeInstruction")},a.prototype.inspectTextContent=function(a,b){o("inspectTextContent")},a}(),eb=Object.freeze([]),fb=a.SlotCustomAttribute=(ta=(0,g.inject)(d.DOM.Element),ta(ua=function(){function a(a){this.element=a,this.element.auSlotAttribute=this}return a.prototype.valueChanged=function(a,b){},a}())||ua),gb=a.PassThroughSlot=function(){function a(a,b,c,d){this.anchor=a,this.anchor.viewSlot=this,this.name=b,this.destinationName=c,this.fallbackFactory=d,this.destinationSlot=null,this.projections=0,this.contentView=null;var e=new fb(this.anchor);e.value=this.destinationName}return a.prototype.renderFallbackContent=function(a,b,c,d){if(null===this.contentView){this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext);var e=Object.create(null);e[this.destinationSlot.name]=this.destinationSlot,ib.distributeView(this.contentView,e,c,d,this.destinationSlot.name)}},a.prototype.passThroughTo=function(a){this.destinationSlot=a},a.prototype.addNode=function(b,c,d,e){return null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),c.viewSlot instanceof a?void c.viewSlot.passThroughTo(this):(this.projections++,void this.destinationSlot.addNode(b,c,d,e))},a.prototype.removeView=function(a,b){this.projections--,this.destinationSlot.removeView(a,b),this.needsFallbackRendering&&this.renderFallbackContent(null,eb,b)},a.prototype.removeAll=function(a){this.projections=0,this.destinationSlot.removeAll(a),this.needsFallbackRendering&&this.renderFallbackContent(null,eb,a)},a.prototype.projectFrom=function(a,b){this.destinationSlot.projectFrom(a,b)},a.prototype.created=function(a){this.ownerView=a},a.prototype.bind=function(a){this.contentView&&this.contentView.bind(a.bindingContext,a.overrideContext)},a.prototype.attached=function(){this.contentView&&this.contentView.attached()},a.prototype.detached=function(){this.contentView&&this.contentView.detached()},a.prototype.unbind=function(){this.contentView&&this.contentView.unbind()},La(a,[{key:"needsFallbackRendering",get:function(){return this.fallbackFactory&&0===this.projections}}]),a}(),hb=a.ShadowSlot=function(){function a(a,b,c){this.anchor=a,this.anchor.isContentProjectionSource=!0,this.anchor.viewSlot=this,this.name=b,this.fallbackFactory=c,this.contentView=null,this.projections=0,this.children=[],this.projectFromAnchors=null,this.destinationSlots=null}return a.prototype.addNode=function(a,b,c,d,e){if(null!==this.contentView&&(this.contentView.removeNodes(),this.contentView.detached(),this.contentView.unbind(),this.contentView=null),b.viewSlot instanceof gb)return void b.viewSlot.passThroughTo(this);if(null!==this.destinationSlots)ib.distributeNodes(a,[b],this.destinationSlots,this,d);else{b.auOwnerView=a,b.auProjectionSource=c,b.auAssignedSlot=this;var f=this._findAnchor(a,b,c,d),g=f.parentNode;g.insertBefore(b,f),this.children.push(b),this.projections++}},a.prototype.removeView=function(a,b){if(null!==this.destinationSlots)ib.undistributeView(a,this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)ib.undistributeView(a,this.contentView.slots,b);else{var c=this.children.find(function(a){return a.auSlotProjectFrom===b});if(c){for(var d=c.auProjectionChildren,e=0,f=d.length;f>e;++e){var g=d[e];g.auOwnerView===a&&(d.splice(e,1),a.fragment.appendChild(g),e--,f--,this.projections--)}this.needsFallbackRendering&&this.renderFallbackContent(a,eb,b)}}},a.prototype.removeAll=function(a){if(null!==this.destinationSlots)ib.undistributeAll(this.destinationSlots,this);else if(this.contentView&&this.contentView.hasSlots)ib.undistributeAll(this.contentView.slots,a);else{var b=this.children.find(function(b){return b.auSlotProjectFrom===a});if(b){for(var c=b.auProjectionChildren,d=0,e=c.length;e>d;++d){var f=c[d];f.auOwnerView.fragment.appendChild(f),this.projections--}b.auProjectionChildren=[],this.needsFallbackRendering&&this.renderFallbackContent(null,eb,a)}}},a.prototype._findAnchor=function(a,b,c,d){if(c){var e=this.children.find(function(a){return a.auSlotProjectFrom===c});if(e){if(void 0!==d)for(var f=e.auProjectionChildren,g=-1,h=void 0,i=0,j=f.length;j>i;++i){var k=f[i];if(k.auOwnerView!==h&&(g++,h=k.auOwnerView,g>=d&&h!==a))return f.splice(i,0,b),k}return e.auProjectionChildren.push(b),e}}return this.anchor},a.prototype.projectTo=function(a){this.destinationSlots=a},a.prototype.projectFrom=function(a,b){var c=d.DOM.createComment("anchor"),e=this.anchor.parentNode;c.auSlotProjectFrom=b,c.auOwnerView=a,c.auProjectionChildren=[],e.insertBefore(c,this.anchor),this.children.push(c),null===this.projectFromAnchors&&(this.projectFromAnchors=[]),this.projectFromAnchors.push(c)},a.prototype.renderFallbackContent=function(a,b,c,d){if(null===this.contentView&&(this.contentView=this.fallbackFactory.create(this.ownerView.container),this.contentView.bind(this.ownerView.bindingContext,this.ownerView.overrideContext),this.contentView.insertNodesBefore(this.anchor)),this.contentView.hasSlots){var e=this.contentView.slots,f=this.projectFromAnchors;if(null!==f)for(var g in e)for(var h=e[g],i=0,j=f.length;j>i;++i){var k=f[i];h.projectFrom(k.auOwnerView,k.auSlotProjectFrom)}this.fallbackSlots=e,ib.distributeNodes(a,b,e,c,d)}},a.prototype.created=function(a){this.ownerView=a},a.prototype.bind=function(a){this.contentView&&this.contentView.bind(a.bindingContext,a.overrideContext)},a.prototype.attached=function(){this.contentView&&this.contentView.attached()},a.prototype.detached=function(){this.contentView&&this.contentView.detached()},a.prototype.unbind=function(){this.contentView&&this.contentView.unbind()},La(a,[{key:"needsFallbackRendering",get:function(){return this.fallbackFactory&&0===this.projections}}]),a}(),ib=a.ShadowDOM=(wa=va=function(){function a(){}return a.getSlotName=function(b){return void 0===b.auSlotAttribute?a.defaultSlotKey:b.auSlotAttribute.value},a.distributeView=function(b,c,d,e,f){var g=void 0;if(null===b)g=eb;else{var h=b.fragment.childNodes,i=h.length;g=new Array(i);for(var j=0;i>j;++j)g[j]=h[j]}a.distributeNodes(b,g,c,d,e,f)},a.undistributeView=function(a,b,c){for(var d in b)b[d].removeView(a,c)},a.undistributeAll=function(a,b){for(var c in a)a[c].removeAll(b)},a.distributeNodes=function(b,c,d,e,f,g){for(var h=0,i=c.length;i>h;++h){var j=c[h],k=j.nodeType;if(j.isContentProjectionSource){j.viewSlot.projectTo(d);for(var l in d)d[l].projectFrom(b,j.viewSlot);c.splice(h,1),i--,h--}else if(1===k||3===k||j.viewSlot instanceof gb)if(3===k&&m(j))c.splice(h,1),i--,h--;else{var n=d[g||a.getSlotName(j)];n&&(n.addNode(b,j,e,f),c.splice(h,1),i--,h--)}else c.splice(h,1),i--,h--}for(var o in d){var p=d[o];p.needsFallbackRendering&&p.renderFallbackContent(b,c,e,f)}},a}(),va.defaultSlotKey="__au-default-slot-key__",wa),jb=a.ViewResources=function(){function a(a,b){this.bindingLanguage=null,this.parent=a||null,this.hasParent=null!==this.parent,this.viewUrl=b||"",this.lookupFunctions={valueConverters:this.getValueConverter.bind(this),bindingBehaviors:this.getBindingBehavior.bind(this)},this.attributes=Object.create(null),this.elements=Object.create(null),this.valueConverters=Object.create(null),this.bindingBehaviors=Object.create(null),this.attributeMap=Object.create(null),this.values=Object.create(null),this.beforeCompile=this.afterCompile=this.beforeCreate=this.afterCreate=this.beforeBind=this.beforeUnbind=!1}return a.prototype._tryAddHook=function(a,b){if("function"==typeof a[b]){for(var c=a[b].bind(a),d=1,e=void 0;void 0!==this[e=b+d.toString()];)d++;this[b]=!0,this[e]=c}},a.prototype._invokeHook=function(a,b,c,d,e){if(this.hasParent&&this.parent._invokeHook(a,b,c,d,e),this[a]){this[a+"1"](b,c,d,e);var f=a+"2";if(this[f]&&(this[f](b,c,d,e),f=a+"3",this[f])){this[f](b,c,d,e);for(var g=4;void 0!==this[f=a+g.toString()];)this[f](b,c,d,e),g++}}},a.prototype.registerViewEngineHooks=function(a){this._tryAddHook(a,"beforeCompile"),this._tryAddHook(a,"afterCompile"),this._tryAddHook(a,"beforeCreate"),this._tryAddHook(a,"afterCreate"),this._tryAddHook(a,"beforeBind"),this._tryAddHook(a,"beforeUnbind")},a.prototype.getBindingLanguage=function(a){return this.bindingLanguage||(this.bindingLanguage=a)},a.prototype.patchInParent=function(a){var b=this.parent;this.parent=a||null,this.hasParent=null!==this.parent,null===a.parent&&(a.parent=b,a.hasParent=null!==b)},a.prototype.relativeToView=function(a){return(0,e.relativeToFile)(a,this.viewUrl)},a.prototype.registerElement=function(a,b){p(this.elements,a,b,"an Element")},a.prototype.getElement=function(a){return this.elements[a]||(this.hasParent?this.parent.getElement(a):null)},a.prototype.mapAttribute=function(a){return this.attributeMap[a]||(this.hasParent?this.parent.mapAttribute(a):null)},a.prototype.registerAttribute=function(a,b,c){this.attributeMap[a]=c,p(this.attributes,a,b,"an Attribute")},a.prototype.getAttribute=function(a){return this.attributes[a]||(this.hasParent?this.parent.getAttribute(a):null)},a.prototype.registerValueConverter=function(a,b){p(this.valueConverters,a,b,"a ValueConverter")},a.prototype.getValueConverter=function(a){return this.valueConverters[a]||(this.hasParent?this.parent.getValueConverter(a):null)},a.prototype.registerBindingBehavior=function(a,b){p(this.bindingBehaviors,a,b,"a BindingBehavior")},a.prototype.getBindingBehavior=function(a){return this.bindingBehaviors[a]||(this.hasParent?this.parent.getBindingBehavior(a):null)},a.prototype.registerValue=function(a,b){p(this.values,a,b,"a value")},a.prototype.getValue=function(a){return this.values[a]||(this.hasParent?this.parent.getValue(a):null)},a}(),kb=a.View=function(){function a(a,b,c,d,e,f,g){this.container=a,this.viewFactory=b,this.resources=b.resources,this.fragment=c,this.firstChild=c.firstChild,this.lastChild=c.lastChild,this.controllers=d,this.bindings=e,this.children=f,this.slots=g,this.hasSlots=!1,this.fromCache=!1,this.isBound=!1,this.isAttached=!1,this.bindingContext=null,this.overrideContext=null,this.controller=null,this.viewModelScope=null,this.animatableElement=void 0,this._isUserControlled=!1,this.contentView=null;for(var h in g){this.hasSlots=!0;break}}return a.prototype.returnToCache=function(){this.viewFactory.returnViewToCache(this)},a.prototype.created=function(){var a=void 0,b=void 0,c=this.controllers;for(a=0,b=c.length;b>a;++a)c[a].created(this)},a.prototype.bind=function(a,b,c){var d=void 0,e=void 0,f=void 0,g=void 0,i=void 0;if(!c||!this._isUserControlled){if(this.isBound){if(this.bindingContext===a)return;this.unbind()}for(this.isBound=!0,this.bindingContext=a,this.overrideContext=b||(0,h.createOverrideContext)(a),this.resources._invokeHook("beforeBind",this),e=this.bindings,g=0,i=e.length;i>g;++g)e[g].bind(this);for(null!==this.viewModelScope&&(a.bind(this.viewModelScope.bindingContext,this.viewModelScope.overrideContext),this.viewModelScope=null),d=this.controllers,g=0,i=d.length;i>g;++g)d[g].bind(this);for(f=this.children,g=0,i=f.length;i>g;++g)f[g].bind(a,b,!0);this.hasSlots&&ib.distributeView(this.contentView,this.slots)}},a.prototype.addBinding=function(a){this.bindings.push(a),this.isBound&&a.bind(this)},a.prototype.unbind=function(){var a=void 0,b=void 0,c=void 0,d=void 0,e=void 0;if(this.isBound){for(this.isBound=!1,this.resources._invokeHook("beforeUnbind",this),null!==this.controller&&this.controller.unbind(),b=this.bindings,d=0,e=b.length;e>d;++d)b[d].unbind();for(a=this.controllers,d=0,e=a.length;e>d;++d)a[d].unbind();for(c=this.children,d=0,e=c.length;e>d;++d)c[d].unbind();this.bindingContext=null,this.overrideContext=null}},a.prototype.insertNodesBefore=function(a){a.parentNode.insertBefore(this.fragment,a)},a.prototype.appendNodesTo=function(a){a.appendChild(this.fragment)},a.prototype.removeNodes=function(){for(var a=this.fragment,b=this.firstChild,c=this.lastChild,d=void 0;b&&(d=b.nextSibling,a.appendChild(b),b!==c);)b=d},a.prototype.attached=function(){var a=void 0,b=void 0,c=void 0,d=void 0;if(!this.isAttached){for(this.isAttached=!0,null!==this.controller&&this.controller.attached(),a=this.controllers,c=0,d=a.length;d>c;++c)a[c].attached();for(b=this.children,c=0,d=b.length;d>c;++c)b[c].attached()}},a.prototype.detached=function(){var a=void 0,b=void 0,c=void 0,d=void 0;if(this.isAttached){for(this.isAttached=!1,null!==this.controller&&this.controller.detached(),a=this.controllers,c=0,d=a.length;d>c;++c)a[c].detached();for(b=this.children,c=0,d=b.length;d>c;++c)b[c].detached()}},a}(),lb=a.ViewSlot=function(){function a(a,b){var c=arguments.length<=2||void 0===arguments[2]?Na.instance:arguments[2];this.anchor=a,this.anchorIsContainer=b,this.bindingContext=null,this.overrideContext=null,this.animator=c,this.children=[],this.isBound=!1,this.isAttached=!1,this.contentSelectors=null,a.viewSlot=this,a.isContentProjectionSource=!1}return a.prototype.animateView=function(a){var b=arguments.length<=1||void 0===arguments[1]?"enter":arguments[1],c=q(a);if(null!==c)switch(b){case"enter":return this.animator.enter(c);case"leave":return this.animator.leave(c);default:throw new Error("Invalid animation direction: "+b)}},a.prototype.transformChildNodesIntoView=function(){var a=this.anchor;this.children.push({fragment:a,firstChild:a.firstChild,lastChild:a.lastChild,returnToCache:function(){},removeNodes:function(){for(var b=void 0;b=a.lastChild;)a.removeChild(b)},created:function(){},bind:function(){},unbind:function(){},attached:function(){},detached:function(){}})},a.prototype.bind=function(a,b){var c=void 0,d=void 0,e=void 0;if(this.isBound){if(this.bindingContext===a)return;this.unbind()}for(this.isBound=!0,this.bindingContext=a=a||this.bindingContext,this.overrideContext=b=b||this.overrideContext,e=this.children,c=0,d=e.length;d>c;++c)e[c].bind(a,b,!0)},a.prototype.unbind=function(){if(this.isBound){var a=void 0,b=void 0,c=this.children;for(this.isBound=!1,this.bindingContext=null,this.overrideContext=null,a=0,b=c.length;b>a;++a)c[a].unbind()}},a.prototype.add=function(a){return this.anchorIsContainer?a.appendNodesTo(this.anchor):a.insertNodesBefore(this.anchor),this.children.push(a),this.isAttached?(a.attached(),this.animateView(a,"enter")):void 0},a.prototype.insert=function(a,b){var c=this.children,d=c.length;return 0===a&&0===d||a>=d?this.add(b):(b.insertNodesBefore(c[a].firstChild),c.splice(a,0,b),this.isAttached?(b.attached(),this.animateView(b,"enter")):void 0)},a.prototype.move=function(a,b){if(a!==b){var c=this.children,d=c[a];d.removeNodes(),d.insertNodesBefore(c[b].firstChild),c.splice(a,1),c.splice(b,0,d)}},a.prototype.remove=function(a,b,c){return this.removeAt(this.children.indexOf(a),b,c)},a.prototype.removeMany=function(a,b,c){var d=this,e=this.children,f=a.length,g=void 0,h=[];a.forEach(function(a){if(c)return void a.removeNodes();var b=d.animateView(a,"leave");b?h.push(b.then(function(){return a.removeNodes()})):a.removeNodes()});var i=function(){if(d.isAttached)for(g=0;f>g;++g)a[g].detached();if(b)for(g=0;f>g;++g)a[g].returnToCache();for(g=0;f>g;++g){var c=e.indexOf(a[g]);c>=0&&e.splice(c,1)}};return h.length>0?Promise.all(h).then(function(){return i()}):i()},a.prototype.removeAt=function(a,b,c){var d=this,e=this.children[a],f=function(){return a=d.children.indexOf(e),e.removeNodes(),d.children.splice(a,1),d.isAttached&&e.detached(),b&&e.returnToCache(),e};if(!c){var g=this.animateView(e,"leave");if(g)return g.then(function(){return f()})}return f()},a.prototype.removeAll=function(a,b){var c=this,d=this.children,e=d.length,f=void 0,g=[];d.forEach(function(a){if(b)return void a.removeNodes();var d=c.animateView(a,"leave");d?g.push(d.then(function(){return a.removeNodes()})):a.removeNodes()});var h=function(){if(c.isAttached)for(f=0;e>f;++f)d[f].detached();if(a)for(f=0;e>f;++f)d[f].returnToCache();c.children=[]};return g.length>0?Promise.all(g).then(function(){return h()}):h()},a.prototype.attached=function(){var a=void 0,b=void 0,c=void 0,d=void 0;if(!this.isAttached)for(this.isAttached=!0,c=this.children,a=0,b=c.length;b>a;++a)d=c[a],d.attached(),this.animateView(d,"enter")},a.prototype.detached=function(){var a=void 0,b=void 0,c=void 0;if(this.isAttached)for(this.isAttached=!1,c=this.children,a=0,b=c.length;b>a;++a)c[a].detached()},a.prototype.projectTo=function(a){var b=this;this.projectToSlots=a,this.add=this._projectionAdd,this.insert=this._projectionInsert,this.move=this._projectionMove,this.remove=this._projectionRemove,this.removeAt=this._projectionRemoveAt,this.removeMany=this._projectionRemoveMany,this.removeAll=this._projectionRemoveAll,this.children.forEach(function(c){return ib.distributeView(c,a,b)})},a.prototype._projectionAdd=function(a){ib.distributeView(a,this.projectToSlots,this),this.children.push(a),this.isAttached&&a.attached()},a.prototype._projectionInsert=function(a,b){0===a&&!this.children.length||a>=this.children.length?this.add(b):(ib.distributeView(b,this.projectToSlots,this,a),this.children.splice(a,0,b),this.isAttached&&b.attached())},a.prototype._projectionMove=function(a,b){if(a!==b){var c=this.children,d=c[a];ib.undistributeView(d,this.projectToSlots,this),ib.distributeView(d,this.projectToSlots,this,b),c.splice(a,1),c.splice(b,0,d)}},a.prototype._projectionRemove=function(a,b){ib.undistributeView(a,this.projectToSlots,this),this.children.splice(this.children.indexOf(a),1),this.isAttached&&a.detached()},a.prototype._projectionRemoveAt=function(a,b){
  var c=this.children[a];ib.undistributeView(c,this.projectToSlots,this),this.children.splice(a,1),this.isAttached&&c.detached()},a.prototype._projectionRemoveMany=function(a,b){var c=this;a.forEach(function(a){return c.remove(a,b)})},a.prototype._projectionRemoveAll=function(a){ib.undistributeAll(this.projectToSlots,this);var b=this.children;if(this.isAttached)for(var c=0,d=b.length;d>c;++c)b[c].detached();this.children=[]},a}(),mb=(0,g.resolver)(xa=function(){function a(){}return a.prototype.get=function(a,b){var c=b.__providerId__;return c in a?a[c]:a[c]=a.invoke(b)},a}())||xa,nb=new mb,ob=a.BoundViewFactory=function(){function a(a,b,c){this.parentContainer=a,this.viewFactory=b,this.factoryCreateInstruction={partReplacements:c}}return a.prototype.create=function(){var a=this.viewFactory.create(this.parentContainer.createChild(),this.factoryCreateInstruction);return a._isUserControlled=!0,a},a.prototype.setCacheSize=function(a,b){this.viewFactory.setCacheSize(a,b)},a.prototype.getCachedView=function(){return this.viewFactory.getCachedView()},a.prototype.returnViewToCache=function(a){this.viewFactory.returnViewToCache(a)},La(a,[{key:"isCaching",get:function(){return this.viewFactory.isCaching}}]),a}(),pb=a.ViewFactory=function(){function a(a,b,c){this.isCaching=!1,this.template=a,this.instructions=b,this.resources=c,this.cacheSize=-1,this.cache=null}return a.prototype.setCacheSize=function(a,b){a&&("*"===a?a=Number.MAX_VALUE:"string"==typeof a&&(a=parseInt(a,10))),-1!==this.cacheSize&&b||(this.cacheSize=a),this.cacheSize>0?this.cache=[]:this.cache=null,this.isCaching=this.cacheSize>0},a.prototype.getCachedView=function(){return null!==this.cache?this.cache.pop()||null:null},a.prototype.returnViewToCache=function(a){a.isAttached&&a.detached(),a.isBound&&a.unbind(),null!==this.cache&&this.cache.length<this.cacheSize&&(a.fromCache=!0,this.cache.push(a))},a.prototype.create=function(a,b,c){b=b||Wa.normal;var d=this.getCachedView();if(null!==d)return d;var e=b.enhance?this.template:this.template.cloneNode(!0),f=e.querySelectorAll(".au-target"),g=this.instructions,h=this.resources,i=[],j=[],k=[],l=Object.create(null),m={root:a},n=b.partReplacements,o=void 0,p=void 0,q=void 0,r=void 0,s=void 0;for(this.resources._invokeHook("beforeCreate",this,a,e,b),c&&null!==this.surrogateInstruction&&x(a,c,this.surrogateInstruction,i,j,k),b.enhance&&e.hasAttribute("au-target-id")&&(r=e,s=g[r.getAttribute("au-target-id")],u(m,r,s,i,j,k,l,n,h)),o=0,p=f.length;p>o;++o)r=f[o],s=g[r.getAttribute("au-target-id")],u(m,r,s,i,j,k,l,n,h);return q=new kb(a,this,e,i,j,k,l),b.initiatedByBehavior||q.created(),this.resources._invokeHook("afterCreate",q),q},a}(),qb=0,rb=0,sb=a.ViewCompiler=(ya=(0,g.inject)(db,jb),ya(za=function(){function a(a,b){this.bindingLanguage=a,this.resources=b}return a.prototype.compile=function(a,b,c){b=b||this.resources,c=c||Va.normal,a="string"==typeof a?d.DOM.createTemplateFromMarkup(a):a;var e=void 0,f=void 0,g=void 0;a.content?(f=a.getAttribute("part"),g=a.getAttribute("view-cache"),e=d.DOM.adoptNode(a.content)):e=a,c.targetShadowDOM=c.targetShadowDOM&&d.FEATURE.shadowDOM,b._invokeHook("beforeCompile",e,b,c);var h={};this._compileNode(e,b,h,a,"root",!c.targetShadowDOM);var i=e.firstChild;if(i&&1===i.nodeType){var j=i.getAttribute("au-target-id");if(j){var k=h[j];(k.shadowSlot||k.lifting)&&e.insertBefore(d.DOM.createComment("view"),i)}}var l=new pb(e,h,b);return l.surrogateInstruction=c.compileSurrogate?this._compileSurrogate(a,b):null,l.part=f,g&&l.setCacheSize(g),b._invokeHook("afterCompile",l),l},a.prototype._compileNode=function(a,b,c,e,f,g){switch(a.nodeType){case 1:return this._compileElement(a,b,c,e,f,g);case 3:var h=b.getBindingLanguage(this.bindingLanguage).inspectTextContent(b,a.wholeText);if(h){var i=d.DOM.createElement("au-marker"),j=B(i);for((a.parentNode||e).insertBefore(i,a),a.textContent=" ",c[j]=Xa.contentExpression(h);a.nextSibling&&3===a.nextSibling.nodeType;)(a.parentNode||e).removeChild(a.nextSibling)}else for(;a.nextSibling&&3===a.nextSibling.nodeType;)a=a.nextSibling;return a.nextSibling;case 11:for(var k=a.firstChild;k;)k=this._compileNode(k,b,c,a,f,g)}return a.nextSibling},a.prototype._compileSurrogate=function(a,b){var c=a.tagName.toLowerCase(),d=a.attributes,e=b.getBindingLanguage(this.bindingLanguage),f=void 0,g=void 0,h=void 0,i=void 0,j=void 0,k=void 0,l=void 0,m=void 0,n=void 0,o=void 0,p=[],q=void 0,r=[],s={},t=!1,u=[];for(i=0,j=d.length;j>i;++i)if(k=d[i],l=k.name,m=k.value,n=e.inspectAttribute(b,c,l,m),o=b.getAttribute(n.attrName),o&&(f=b.mapAttribute(n.attrName),f&&(g=o.attributes[f],g&&(n.defaultBindingMode=g.defaultBindingMode,n.command||n.expression||(n.command=g.hasOptions?"options":null)))),h=e.createAttributeInstruction(b,a,n,void 0,o))if(h.alteredAttr&&(o=b.getAttribute(h.attrName)),h.discrete)p.push(h);else if(o){if(h.type=o,z(h,b),o.liftsContent)throw new Error("You cannot place a template controller on a surrogate element.");r.push(h)}else p.push(h.attributes[h.attrName]);else if(o){if(h=Wa.attribute(l,o),h.attributes[b.mapAttribute(l)]=m,o.liftsContent)throw new Error("You cannot place a template controller on a surrogate element.");r.push(h)}else"id"!==l&&"part"!==l&&"replace-part"!==l&&(t=!0,s[l]=m);if(p.length||r.length||t){for(i=0,j=r.length;j>i;++i)h=r[i],h.type.compile(this,b,a,h),u.push(h.type.target);for(i=0,j=p.length;j>i;++i)q=p[i],void 0!==q.attrToRemove&&a.removeAttribute(q.attrToRemove);return Xa.surrogate(u,r,p,s)}return null},a.prototype._compileElement=function(a,b,c,d,e,f){var g=a.tagName.toLowerCase(),h=a.attributes,i=[],j=void 0,k=[],l=[],m=b.getBindingLanguage(this.bindingLanguage),n=void 0,o=void 0,p=void 0,q=void 0,r=void 0,s=void 0,t=void 0,u=void 0,v=void 0,w=void 0,x=void 0,A=void 0,D=void 0,E=void 0,F=void 0,G=void 0;if("slot"===g)return f&&(a=C(this,b,a,c,e)),a.nextSibling;for("template"===g?(o=this.compile(a,b),o.part=a.getAttribute("part")):(p=b.getElement(a.getAttribute("as-element")||g),p&&(q=Wa.element(a,p),p.processAttributes(this,b,a,h,q),k.push(q))),s=0,t=h.length;t>s;++s)if(u=h[s],v=u.name,w=u.value,A=m.inspectAttribute(b,g,v,w),f&&"slot"===A.attrName&&(A.attrName=v="au-slot"),p=b.getAttribute(A.attrName),r=null,p?(E=b.mapAttribute(A.attrName),E&&(D=p.attributes[E],D&&(A.defaultBindingMode=D.defaultBindingMode,A.command||A.expression||(A.command=D.hasOptions?"options":null)))):q&&(r=q.type.attributes[A.attrName],r&&(A.defaultBindingMode=r.defaultBindingMode)),x=r?m.createAttributeInstruction(b,a,A,q):m.createAttributeInstruction(b,a,A,void 0,p))if(x.alteredAttr&&(p=b.getAttribute(x.attrName)),x.discrete)i.push(x);else if(p){if(x.type=p,z(x,b),p.liftsContent){x.originalAttrName=v,n=x;break}k.push(x)}else r?q.attributes[A.attrName].targetProperty=r.name:i.push(x.attributes[x.attrName]);else if(p){if(x=Wa.attribute(v,p),x.attributes[b.mapAttribute(v)]=w,p.liftsContent){x.originalAttrName=v,n=x;break}k.push(x)}else r&&(q.attributes[v]=w);if(n)n.viewFactory=o,a=n.type.compile(this,b,a,n,d),F=B(a),c[F]=Xa.lifting(e,n);else{if(i.length||k.length){for(G=k.length?y():!1,s=0,t=k.length;t>s;++s)x=k[s],x.type.compile(this,b,a,x,d),l.push(x.type.target);for(s=0,t=i.length;t>s;++s)j=i[s],void 0!==j.attrToRemove&&a.removeAttribute(j.attrToRemove);F=B(a),c[F]=Xa.normal(G,e,l,k,i,q)}if(q&&q.skipContentProcessing)return a.nextSibling;for(var H=a.firstChild;H;)H=this._compileNode(H,b,c,a,G||e,f)}return a.nextSibling},a}())||za),tb=a.ResourceModule=function(){function a(a){this.id=a,this.moduleInstance=null,this.mainResource=null,this.resources=null,this.viewStrategy=null,this.isInitialized=!1,this.onLoaded=null,this.loadContext=null}return a.prototype.initialize=function(a){var b=this.mainResource,c=this.resources,d=this.viewStrategy;if(!this.isInitialized){this.isInitialized=!0,void 0!==b&&(b.metadata.viewStrategy=d,b.initialize(a));for(var e=0,f=c.length;f>e;++e)b=c[e],b.metadata.viewStrategy=d,b.initialize(a)}},a.prototype.register=function(a,b){var c=this.mainResource,d=this.resources;void 0!==c&&(c.register(a,b),b=null);for(var e=0,f=d.length;f>e;++e)d[e].register(a,b),b=null},a.prototype.load=function(a,b){if(null!==this.onLoaded)return this.loadContext===b?Promise.resolve():this.onLoaded;var c=this.mainResource,d=this.resources,e=void 0;if(void 0!==c){e=new Array(d.length+1),e[0]=c.load(a,b);for(var f=0,g=d.length;g>f;++f)e[f+1]=d[f].load(a,b)}else{e=new Array(d.length);for(var h=0,i=d.length;i>h;++h)e[h]=d[h].load(a,b)}return this.loadContext=b,this.onLoaded=Promise.all(e),this.onLoaded},a}(),ub=a.ResourceDescription=function(){function a(a,b,d){d||(d=c.metadata.get(c.metadata.resource,b),d||(d=new Db,d.elementName=l(a),c.metadata.define(c.metadata.resource,d,b))),d instanceof Db?void 0===d.elementName?d.elementName=l(a):void 0===d.attributeName?d.attributeName=l(a):null===d.attributeName&&null===d.elementName&&Db.convention(a,d):d.name||(d.name=l(a)),this.metadata=d,this.value=b}return a.prototype.initialize=function(a){this.metadata.initialize(a,this.value)},a.prototype.register=function(a,b){this.metadata.register(a,b)},a.prototype.load=function(a,b){return this.metadata.load(a,this.value,b)},a}(),vb=a.ModuleAnalyzer=function(){function a(){this.cache=Object.create(null)}return a.prototype.getAnalysis=function(a){return this.cache[a]},a.prototype.analyze=function(a,b,d){var e=void 0,g=void 0,i=void 0,j=void 0,k=void 0,m=void 0,n=[],o=void 0,p=void 0,q=void 0;if(q=this.cache[a])return q;q=new tb(a),this.cache[a]=q,"function"==typeof b&&(b={"default":b}),d&&(e=new ub(d,b[d]));for(k in b)m=b[k],k!==d&&"function"==typeof m&&(j=c.metadata.get(c.metadata.resource,m),j?(null===j.attributeName&&null===j.elementName&&Db.convention(k,j),null===j.attributeName&&null===j.elementName&&(j.elementName=l(k)),!e&&j instanceof Db&&null!==j.elementName?e=new ub(k,m,j):n.push(new ub(k,m,j))):Ya.decorates(m)?p=m:m instanceof f.TemplateRegistryEntry?p=new ab(a,m):(o=Db.convention(k))?(null===o.elementName||e?n.push(new ub(k,m,o)):e=new ub(k,m,o),c.metadata.define(c.metadata.resource,o,m)):(o=h.ValueConverterResource.convention(k)||h.BindingBehaviorResource.convention(k)||Sa.convention(k))?(n.push(new ub(k,m,o)),c.metadata.define(c.metadata.resource,o,m)):g||(g=m,i=k));return!e&&g&&(e=new ub(i,g)),q.moduleInstance=b,q.mainResource=e,q.resources=n,q.viewStrategy=p,q},a}(),wb=Ka.getLogger("templating"),xb=function(){function a(a){var b=this;a.then(function(a){return b.viewFactory=a})}return a.prototype.create=function(a,b,c,d){return this.viewFactory.create(a,b,c,d)},a.prototype.setCacheSize=function(a,b){this.viewFactory.setCacheSize(a,b)},a.prototype.getCachedView=function(){return this.viewFactory.getCachedView()},a.prototype.returnViewToCache=function(a){this.viewFactory.returnViewToCache(a)},La(a,[{key:"isCaching",get:function(){return this.viewFactory.isCaching}}]),a}(),yb=a.ViewEngine=(Aa=(0,g.inject)(f.Loader,g.Container,sb,vb,jb),Aa((Da=Ca=function(){function a(a,b,c,d,e){this.loader=a,this.container=b,this.viewCompiler=c,this.moduleAnalyzer=d,this.appResources=e,this._pluginMap={};var f=new Db;f.attributeName="au-slot",f.initialize(b,fb),f.register(e)}return a.prototype.addResourcePlugin=function(a,b){var c=a.replace(".","")+"-resource-plugin";this._pluginMap[a]=c,this.loader.addPlugin(c,b)},a.prototype.loadViewFactory=function(a,b,c,d){var e=this;return c=c||new Ua,D(this.loader,a).then(function(f){return f.onReady?c.hasDependency(a)?null===f.template?f.onReady:Promise.resolve(new xb(f.onReady)):(c.addDependency(a),f.onReady):(c.addDependency(a),f.onReady=e.loadTemplateResources(f,b,c,d).then(function(a){if(f.resources=a,null===f.template)return f.factory=null;var c=e.viewCompiler.compile(f.template,a,b);return f.factory=c}),f.onReady)})},a.prototype.loadTemplateResources=function(b,d,f,g){var h=new jb(this.appResources,b.address),i=b.dependencies,j=void 0,k=void 0;if(d=d||Va.normal,0===i.length&&!d.associatedModuleId)return Promise.resolve(h);if(j=i.map(function(a){return a.src}),k=i.map(function(a){return a.name}),wb.debug("importing resources for "+b.address,j),g){var l=c.metadata.get(a.viewModelRequireMetadataKey,g);if(l){for(var m=j.length,n=0,o=l.length;o>n;++n){var p=l[n],q="function"==typeof p?c.Origin.get(p).moduleId:(0,e.relativeToFile)(p.src||p,b.address);-1===j.indexOf(q)&&(j.push(q),k.push(p.as))}wb.debug("importing ViewModel resources for "+d.associatedModuleId,j.slice(m))}}return this.importViewResources(j,k,h,d,f)},a.prototype.importViewModelResource=function(a,b){var d=this;return this.loader.loadModule(a).then(function(e){var f=c.Origin.get(e).moduleId,g=d.moduleAnalyzer.analyze(f,e,b);if(!g.mainResource)throw new Error('No view model found in module "'+a+'".');return g.initialize(d.container),g.mainResource})},a.prototype.importViewResources=function(a,b,d,e,f){var g=this;return f=f||new Ua,e=e||Va.normal,a=a.map(function(a){return g._applyLoaderPlugin(a)}),this.loader.loadAllModules(a).then(function(a){var h=void 0,i=void 0,j=void 0,k=void 0,l=void 0,m=void 0,n=g.container,o=g.moduleAnalyzer,p=new Array(a.length);for(h=0,i=a.length;i>h;++h)l=a[h],k=c.Origin.get(l).moduleId,j=o.analyze(k,l),j.initialize(n),j.register(d,b[h]),p[h]=j;for(e.associatedModuleId&&(m=o.getAnalysis(e.associatedModuleId),m&&m.register(d)),h=0,i=p.length;i>h;++h)p[h]=p[h].load(n,f);return Promise.all(p).then(function(){return d})})},a.prototype._applyLoaderPlugin=function(a){var b=a.lastIndexOf(".");if(-1!==b){var c=a.substring(b),d=this._pluginMap[c];return void 0===d?a:this.loader.applyPluginToUrl(a,d)}return a},a}(),Ca.viewModelRequireMetadataKey="aurelia:view-model-require",Ba=Da))||Ba),zb=a.Controller=function(){function a(a,b,c,d){this.behavior=a,this.instruction=b,this.viewModel=c,this.isAttached=!1,this.view=null,this.isBound=!1,this.scope=null,this.elementEvents=d||null;var e=a.observerLocator.getOrCreateObserversLookup(c),f=a.handlesBind,g=b.attributes,h=this.boundProperties=[],i=a.properties,j=void 0,k=void 0;for(a._ensurePropertiesDefined(c,e),j=0,k=i.length;k>j;++j)i[j]._initialize(c,e,g,f,h)}return a.prototype.created=function(a){this.behavior.handlesCreated&&this.viewModel.created(a,this.view)},a.prototype.automate=function(a,b){this.view.bindingContext=this.viewModel,this.view.overrideContext=a||(0,h.createOverrideContext)(this.viewModel),this.view._isUserControlled=!0,this.behavior.handlesCreated&&this.viewModel.created(b||null,this.view),this.bind(this.view)},a.prototype.bind=function(a){var b=this.behavior.handlesBind,c=this.boundProperties,d=void 0,e=void 0,f=void 0,g=void 0,i=void 0;if(this.isBound){if(this.scope===a)return;this.unbind()}for(this.isBound=!0,this.scope=a,d=0,e=c.length;e>d;++d)f=c[d],g=f.observer,i=g.selfSubscriber,g.publishing=!1,b&&(g.selfSubscriber=null),f.binding.bind(a),g.call(),g.publishing=!0,g.selfSubscriber=i;var j=void 0;null!==this.view?(b&&(this.view.viewModelScope=a),this.viewModel===a.overrideContext.bindingContext?j=a.overrideContext:this.instruction.inheritBindingContext?j=(0,h.createOverrideContext)(this.viewModel,a.overrideContext):(j=(0,h.createOverrideContext)(this.viewModel),j.__parentOverrideContext=a.overrideContext),this.view.bind(this.viewModel,j)):b&&(j=a.overrideContext,void 0!==a.overrideContext.__parentOverrideContext&&this.viewModel.viewFactory&&this.viewModel.viewFactory.factoryCreateInstruction.partReplacements&&(j=Object.assign({},a.overrideContext),j.parentOverrideContext=a.overrideContext.__parentOverrideContext),this.viewModel.bind(a.bindingContext,j))},a.prototype.unbind=function(){if(this.isBound){var a=this.boundProperties,b=void 0,c=void 0;for(this.isBound=!1,this.scope=null,null!==this.view&&this.view.unbind(),this.behavior.handlesUnbind&&this.viewModel.unbind(),null!==this.elementEvents&&this.elementEvents.disposeAll(),b=0,c=a.length;c>b;++b)a[b].binding.unbind()}},a.prototype.attached=function(){this.isAttached||(this.isAttached=!0,this.behavior.handlesAttached&&this.viewModel.attached(),null!==this.view&&this.view.attached())},a.prototype.detached=function(){this.isAttached&&(this.isAttached=!1,null!==this.view&&this.view.detached(),this.behavior.handlesDetached&&this.viewModel.detached())},a}(),Ab=a.BehaviorPropertyObserver=(Ea=(0,h.subscriberCollection)(),Ea(Fa=function(){function a(a,b,c,d,e){this.taskQueue=a,this.obj=b,this.propertyName=c,this.notqueued=!0,this.publishing=!1,this.selfSubscriber=d,this.currentValue=this.oldValue=e}return a.prototype.getValue=function(){return this.currentValue},a.prototype.setValue=function(a){var b=this.currentValue;b!==a&&(this.publishing&&this.notqueued&&(this.notqueued=!1,this.taskQueue.queueMicroTask(this)),this.oldValue=b,this.currentValue=a)},a.prototype.call=function(){var a=this.oldValue,b=this.currentValue;this.notqueued=!0,b!==a&&(this.selfSubscriber&&this.selfSubscriber(b,a),this.callSubscribers(b,a),this.oldValue=b)},a.prototype.subscribe=function(a,b){this.addSubscriber(a,b)},a.prototype.unsubscribe=function(a,b){this.removeSubscriber(a,b)},a}())||Fa),Bb=a.BindableProperty=function(){function a(a){"string"==typeof a?this.name=a:Object.assign(this,a),this.attribute=this.attribute||l(this.name),null!==this.defaultBindingMode&&void 0!==this.defaultBindingMode||(this.defaultBindingMode=h.bindingMode.oneWay),this.changeHandler=this.changeHandler||null,this.owner=null,this.descriptor=null}return a.prototype.registerWith=function(a,b,c){return b.properties.push(this),b.attributes[this.attribute]=this,this.owner=b,c?(this.descriptor=c,this._configureDescriptor(b,c)):void 0},a.prototype._configureDescriptor=function(a,b){var c=this.name;return b.configurable=!0,b.enumerable=!0,"initializer"in b&&(this.defaultValue=b.initializer,delete b.initializer,delete b.writable),"value"in b&&(this.defaultValue=b.value,delete b.value,delete b.writable),b.get=function(){return E(a,this,c).getValue()},b.set=function(b){E(a,this,c).setValue(b)},b.get.getObserver=function(b){return E(a,b,c)},b},a.prototype.defineOn=function(a,b){var c=this.name,d=void 0;null===this.changeHandler&&(d=c+"Changed",d in a.prototype&&(this.changeHandler=d)),null===this.descriptor&&Object.defineProperty(a.prototype,c,this._configureDescriptor(b,{}))},a.prototype.createObserver=function(a){var b=null,c=this.defaultValue,d=this.changeHandler,e=this.name,f=void 0;if(!this.hasOptions){if(d in a)b="propertyChanged"in a?function(b,c){a[d](b,c),a.propertyChanged(e,b,c)}:function(b,c){return a[d](b,c)};else if("propertyChanged"in a)b=function(b,c){return a.propertyChanged(e,b,c)};else if(null!==d)throw new Error("Change handler "+d+" was specified but not declared on the class.");return void 0!==c&&(f="function"==typeof c?c.call(a):c),new Ab(this.owner.taskQueue,a,this.name,b,f)}},a.prototype._initialize=function(a,b,c,d,e){var f=void 0,g=void 0,h=void 0,i=this.defaultValue;if(this.isDynamic)for(var j in c)this._createDynamicProperty(a,b,d,j,c[j],e);else this.hasOptions||(g=b[this.name],null!==c&&(f=g.selfSubscriber,h=c[this.attribute],d&&(g.selfSubscriber=null),"string"==typeof h?(a[this.name]=h,g.call()):h?e.push({observer:g,binding:h.createBinding(a)}):void 0!==i&&g.call(),g.selfSubscriber=f),g.publishing=!0)},a.prototype._createDynamicProperty=function(a,b,c,d,e,f){var g=d+"Changed",h=null,i=void 0,j=void 0;g in a?h="propertyChanged"in a?function(b,c){a[g](b,c),a.propertyChanged(d,b,c)}:function(b,c){return a[g](b,c)}:"propertyChanged"in a&&(h=function(b,c){return a.propertyChanged(d,b,c)}),i=b[d]=new Ab(this.owner.taskQueue,a,d,h),Object.defineProperty(a,d,{configurable:!0,enumerable:!0,get:i.getValue.bind(i),set:i.setValue.bind(i)}),c&&(i.selfSubscriber=null),"string"==typeof e?(a[d]=e,i.call()):e&&(j={observer:i,binding:e.createBinding(a)},f.push(j)),i.publishing=!0,i.selfSubscriber=h},a}(),Cb=0,Db=a.HtmlBehaviorResource=function(){function a(){this.elementName=null,this.attributeName=null,this.attributeDefaultBindingMode=void 0,this.liftsContent=!1,this.targetShadowDOM=!1,this.shadowDOMOptions=null,this.processAttributes=H,this.processContent=G,this.usesShadowDOM=!1,this.childBindings=null,this.hasDynamicOptions=!1,this.containerless=!1,this.properties=[],this.attributes={},this.isInitialized=!1}return a.convention=function(b,c){var d=void 0;return b.endsWith("CustomAttribute")&&(d=c||new a,d.attributeName=l(b.substring(0,b.length-15))),b.endsWith("CustomElement")&&(d=c||new a,d.elementName=l(b.substring(0,b.length-13))),d},a.prototype.addChildBinding=function(a){null===this.childBindings&&(this.childBindings=[]),this.childBindings.push(a)},a.prototype.initialize=function(a,b){var c=b.prototype,e=this.properties,f=this.attributeName,g=this.attributeDefaultBindingMode,j=void 0,k=void 0,l=void 0;if(!this.isInitialized)if(this.isInitialized=!0,b.__providerId__=F(),this.observerLocator=a.get(h.ObserverLocator),this.taskQueue=a.get(i.TaskQueue),this.target=b,this.usesShadowDOM=this.targetShadowDOM&&d.FEATURE.shadowDOM,this.handlesCreated="created"in c,this.handlesBind="bind"in c,this.handlesUnbind="unbind"in c,this.handlesAttached="attached"in c,this.handlesDetached="detached"in c,this.htmlName=this.elementName||this.attributeName,null!==f)if(0===e.length&&new Bb({name:"value",changeHandler:"valueChanged"in c?"valueChanged":null,attribute:f,defaultBindingMode:g}).registerWith(b,this),l=e[0],1===e.length&&"value"===l.name)l.isDynamic=l.hasOptions=this.hasDynamicOptions,l.defineOn(b,this);else{for(j=0,k=e.length;k>j;++j)e[j].defineOn(b,this);l=new Bb({name:"value",changeHandler:"valueChanged"in c?"valueChanged":null,attribute:f,defaultBindingMode:g}),l.hasOptions=!0,l.registerWith(b,this)}else for(j=0,k=e.length;k>j;++j)e[j].defineOn(b,this)},a.prototype.register=function(a,b){null!==this.attributeName&&a.registerAttribute(b||this.attributeName,this,this.attributeName),null!==this.elementName&&a.registerElement(b||this.elementName,this)},a.prototype.load=function(a,b,d,e,f){var g=this,h=void 0;return null!==this.elementName?(e=a.get(cb).getViewStrategy(e||this.viewStrategy||b),h=new Va(this.targetShadowDOM,!0),e.moduleId||(e.moduleId=c.Origin.get(b).moduleId),e.loadViewFactory(a.get(yb),h,d,b).then(function(a){return f&&g.viewFactory||(g.viewFactory=a),a})):Promise.resolve(this)},a.prototype.compile=function(a,b,c,e,f){if(this.liftsContent){if(!e.viewFactory){var g=d.DOM.createElement("template"),h=d.DOM.createDocumentFragment(),i=c.getAttribute("view-cache"),j=c.getAttribute("part");c.removeAttribute(e.originalAttrName),d.DOM.replaceNode(g,c,f),h.appendChild(c),e.viewFactory=a.compile(h,b),j&&(e.viewFactory.part=j,c.removeAttribute("part")),i&&(e.viewFactory.setCacheSize(i),c.removeAttribute("view-cache")),c=g}}else if(null!==this.elementName){var k={};if(this.processContent(a,b,c,e)&&c.hasChildNodes()){for(var l=c.firstChild,n=this.usesShadowDOM?null:d.DOM.createElement("au-content"),o=void 0,p=void 0;l;)o=l.nextSibling,"TEMPLATE"===l.tagName&&(p=l.getAttribute("replace-part"))?(k[p]=a.compile(l,b),d.DOM.removeNode(l,f),e.partReplacements=k):null!==n&&(3===l.nodeType&&m(l)?d.DOM.removeNode(l,f):n.appendChild(l)),l=o;null!==n&&n.hasChildNodes()&&c.appendChild(n),e.skipContentProcessing=!1}else e.skipContentProcessing=!0}return c},a.prototype.create=function(a,b,c,e){var f=void 0,g=null;b=b||Wa.normal,c=c||null,e=e||null,null!==this.elementName&&c&&(this.usesShadowDOM?(f=c.attachShadow(this.shadowDOMOptions),a.registerInstance(d.DOM.boundary,f)):(f=c,this.targetShadowDOM&&a.registerInstance(d.DOM.boundary,f))),null!==c&&(c.au=g=c.au||{});var h=b.viewModel||a.get(this.target),i=new zb(this,b,h,a.elementEvents),j=this.childBindings,k=void 0;if(this.liftsContent)g.controller=i;else if(null!==this.elementName){if(k=b.viewFactory||this.viewFactory,a.viewModel=h,k&&(i.view=k.create(a,b,c)),null!==c){if(g.controller=i,i.view){if(!this.usesShadowDOM&&(1===c.childNodes.length||c.contentElement)){var l=c.childNodes[0]||c.contentElement;i.view.contentView={fragment:l},l.parentNode&&d.DOM.removeNode(l)}if(b.anchorIsContainer){if(null!==j)for(var m=0,n=j.length;n>m;++m)i.view.addBinding(j[m].create(c,h,i));i.view.appendNodesTo(f)}else i.view.insertNodesBefore(f)}else if(null!==j)for(var o=0,p=j.length;p>o;++o)e.push(j[o].create(c,h,i))}else if(i.view){if(i.view.controller=i,null!==j)for(var q=0,r=j.length;r>q;++q)i.view.addBinding(j[q].create(b.host,h,i))}else if(null!==j)for(var s=0,t=j.length;t>s;++s)e.push(j[s].create(b.host,h,i))}else if(null!==j)for(var u=0,v=j.length;v>u;++u)e.push(j[u].create(c,h,i));return null!==g&&(g[this.htmlName]=i),b.initiatedByBehavior&&k&&i.view.created(),i},a.prototype._ensurePropertiesDefined=function(a,b){var c=void 0,d=void 0,e=void 0,f=void 0;if(!("__propertiesDefined__"in b))for(b.__propertiesDefined__=!0,c=this.properties,d=0,e=c.length;e>d;++d)f=c[d].createObserver(a),void 0!==f&&(b[f.propertyName]=f)},a}(),Eb=function(){function a(a){this.name=a.name,this.changeHandler=a.changeHandler||this.name+"Changed",this.selector=a.selector,this.all=a.all}return a.prototype.create=function(a,b,c){return new Gb(this.selector,a,this.name,b,c,this.changeHandler,this.all)},a}(),Fb=[],Gb=function(){function a(a,b,c,d,e,f,g){this.selector=a,this.viewHost=b,this.property=c,this.viewModel=d,this.controller=e,this.changeHandler=f in d?f:null,this.usesShadowDOM=e.behavior.usesShadowDOM,this.all=g,!this.usesShadowDOM&&e.view&&e.view.contentView?this.contentView=e.view.contentView:this.contentView=null}return a.prototype.matches=function(a){if(a.matches(this.selector)){if(null===this.contentView)return!0;var b=this.contentView,c=a.auAssignedSlot;if(c&&c.projectFromAnchors){for(var d=c.projectFromAnchors,e=0,f=d.length;f>e;++e)if(d[e].auOwnerView===b)return!0;return!1}return a.auOwnerView===b}return!1},a.prototype.bind=function(a){var b=this.viewHost,c=this.viewModel,e=b.__childObserver__;if(!e){e=b.__childObserver__=d.DOM.createMutationObserver(M);var f={childList:!0,subtree:!this.usesShadowDOM};e.observe(b,f),e.binders=[]}if(e.binders.push(this),this.usesShadowDOM){var g=b.firstElementChild;if(this.all){var h=c[this.property];for(h?h.length=0:h=c[this.property]=[];g;)this.matches(g)&&h.push(g.au&&g.au.controller?g.au.controller.viewModel:g),g=g.nextElementSibling;null!==this.changeHandler&&this.viewModel[this.changeHandler](Fb)}else for(;g;){if(this.matches(g)){var i=g.au&&g.au.controller?g.au.controller.viewModel:g;this.viewModel[this.property]=i,null!==this.changeHandler&&this.viewModel[this.changeHandler](i);break}g=g.nextElementSibling}}},a.prototype.onRemove=function(a){if(this.matches(a)){var b=a.au&&a.au.controller?a.au.controller.viewModel:a;if(this.all){var c=this.viewModel[this.property]||(this.viewModel[this.property]=[]),d=c.indexOf(b);return-1!==d&&c.splice(d,1),!0}return!1}return!1},a.prototype.onAdd=function(a){if(this.matches(a)){var b=a.au&&a.au.controller?a.au.controller.viewModel:a;if(this.all){for(var c=this.viewModel[this.property]||(this.viewModel[this.property]=[]),d=0,e=a.previousElementSibling;e;)this.matches(e)&&d++,e=e.previousElementSibling;return c.splice(d,0,b),!0}this.viewModel[this.property]=b,null!==this.changeHandler&&this.viewModel[this.changeHandler](b)}return!1},a.prototype.unbind=function(){this.viewHost.__childObserver__&&(this.viewHost.__childObserver__.disconnect(),this.viewHost.__childObserver__=null)},a}(),Hb=a.CompositionEngine=(Ga=(0,g.inject)(yb,cb),Ga(Ha=function(){function a(a,b){this.viewEngine=a,this.viewLocator=b}return a.prototype._createControllerAndSwap=function(a){function b(b){return Promise.resolve(a.viewSlot.removeAll(!0)).then(function(){return a.currentController&&a.currentController.unbind(),a.viewSlot.add(b.view),a.compositionTransactionNotifier&&a.compositionTransactionNotifier.done(),b})}return this.createController(a).then(function(c){return c.automate(a.overrideContext,a.owningView),a.compositionTransactionOwnershipToken?a.compositionTransactionOwnershipToken.waitForCompositionComplete().then(function(){return b(c)}):b(c)})},a.prototype.createController=function(a){var b=this,c=void 0,d=void 0,e=void 0,f=void 0;return this.ensureViewModel(a).then(N).then(function(){c=a.childContainer,d=a.viewModel,e=a.viewModelResource,f=e.metadata;var g=b.viewLocator.getViewStrategy(a.view||d);return a.viewResources&&g.makeRelativeTo(a.viewResources.viewUrl),f.load(c,e.value,null,g,!0)}).then(function(b){return f.create(c,Wa.dynamic(a.host,d,b))})},a.prototype.ensureViewModel=function(a){var b=a.childContainer=a.childContainer||a.container.createChild();if("string"==typeof a.viewModel)return a.viewModel=a.viewResources?a.viewResources.relativeToView(a.viewModel):a.viewModel,this.viewEngine.importViewModelResource(a.viewModel).then(function(c){return b.autoRegister(c.value),a.host&&b.registerInstance(d.DOM.Element,a.host),a.viewModel=b.viewModel=b.get(c.value),a.viewModelResource=c,a});var e=c.metadata.getOrCreateOwn(c.metadata.resource,Db,a.viewModel.constructor);return e.elementName=e.elementName||"dynamic-element",e.initialize(a.container||b,a.viewModel.constructor),a.viewModelResource={metadata:e,value:a.viewModel.constructor},b.viewModel=a.viewModel,Promise.resolve(a)},a.prototype.compose=function(a){a.childContainer=a.childContainer||a.container.createChild(),a.view=this.viewLocator.getViewStrategy(a.view);var b=a.childContainer.get(Qa),c=b.tryCapture();return c?a.compositionTransactionOwnershipToken=c:a.compositionTransactionNotifier=b.enlist(),a.viewModel?this._createControllerAndSwap(a):a.view?(a.viewResources&&a.view.makeRelativeTo(a.viewResources.viewUrl),a.view.loadViewFactory(this.viewEngine,new Va).then(function(b){var c=b.create(a.childContainer);c.bind(a.bindingContext,a.overrideContext);var d=function(){return Promise.resolve(a.viewSlot.removeAll(!0)).then(function(){return a.viewSlot.add(c),a.compositionTransactionNotifier&&a.compositionTransactionNotifier.done(),c})};return a.compositionTransactionOwnershipToken?a.compositionTransactionOwnershipToken.waitForCompositionComplete().then(d):d()})):a.viewSlot?(a.viewSlot.removeAll(),a.compositionTransactionNotifier&&a.compositionTransactionNotifier.done(),Promise.resolve(null)):Promise.resolve(null)},a}())||Ha),Ib=a.ElementConfigResource=function(){function a(){}return a.prototype.initialize=function(a,b){},a.prototype.register=function(a,b){},a.prototype.load=function(a,b){var c=new b,d=a.get(h.EventManager);d.registerElementConfig(c)},a}(),Jb={mode:"open"};a.TemplatingEngine=(Ia=(0,g.inject)(g.Container,vb,sb,Hb),Ia(Ja=function(){function a(a,b,c,d){this._container=a,this._moduleAnalyzer=b,this._viewCompiler=c,this._compositionEngine=d,a.registerInstance(Na,Na.instance=new Na)}return a.prototype.configureAnimator=function(a){this._container.unregister(Na),this._container.registerInstance(Na,Na.instance=a)},a.prototype.compose=function(a){return this._compositionEngine.compose(a)},a.prototype.enhance=function(a){a instanceof d.DOM.Element&&(a={element:a});var b={},c=a.resources||this._container.get(jb);this._viewCompiler._compileNode(a.element,c,b,a.element.parentNode,"root",!0);var e=new pb(a.element,b,c),f=a.container||this._container.createChild(),g=e.create(f,Wa.enhance());return g.bind(a.bindingContext||{},a.overrideContext),g},a}())||Ja)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating@1.0.0.js",["npm:aurelia-templating@1.0.0/aurelia-templating"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-path@1.0.0/aurelia-path.js",["exports"],function(a){"use strict";function b(a){for(var b=0;b<a.length;++b){var c=a[b];if("."===c)a.splice(b,1),b-=1;else if(".."===c){if(0===b||1===b&&".."===a[2]||".."===a[b-1])continue;b>0&&(a.splice(b-1,2),b-=2)}}}function c(a,c){var d=c&&c.split("/"),e=a.trim().split("/");if("."===e[0].charAt(0)&&d){var f=d.slice(0,d.length-1);e.unshift.apply(e,f)}return b(e),e.join("/")}function d(a,b){if(!a)return b;if(!b)return a;var c=a.match(/^([^\/]*?:)\//),d=c&&c.length>0?c[1]:"";a=a.substr(d.length);var e=void 0;e=0===a.indexOf("///")&&"file:"===d?"///":0===a.indexOf("//")?"//":0===a.indexOf("/")?"/":"";for(var f="/"===b.slice(-1)?"/":"",g=a.split("/"),h=b.split("/"),i=[],j=0,k=g.length;k>j;++j)if(".."===g[j])i.pop();else{
  if("."===g[j]||""===g[j])continue;i.push(g[j])}for(var l=0,m=h.length;m>l;++l)if(".."===h[l])i.pop();else{if("."===h[l]||""===h[l])continue;i.push(h[l])}return d+e+i.join("/")+f}function e(a,b){var c=[];if(null===b||void 0===b)return c;if(Array.isArray(b))for(var d=0,f=b.length;f>d;d++){var g=a+"["+("object"===j(b[d])&&null!==b[d]?d:"")+"]";c=c.concat(e(g,b[d]))}else if("object"===("undefined"==typeof b?"undefined":j(b)))for(var h in b)c=c.concat(e(a+"["+h+"]",b[h]));else c.push(l(a)+"="+k(b));return c}function f(a){for(var b=[],c=Object.keys(a||{}).sort(),d=0,f=c.length;f>d;d++){var g=c[d];b=b.concat(e(g,a[g]))}return 0===b.length?"":b.join("&")}function g(a,b,c){return Array.isArray(a)?(a.push(b),a):void 0!==a?c?b:[a,b]:b}function h(a,b,c){for(var d=a,e=b.length-1,f=0;e>=f;f++){var g=""===b[f]?d.length:b[f];d=e>f?d[g]=d[g]||(isNaN(b[f+1])?{}:[]):d[g]=c}}function i(a){var b={};if(!a||"string"!=typeof a)return b;var c=a;"?"===c.charAt(0)&&(c=c.substr(1));for(var d=c.replace(/\+/g," ").split("&"),e=0;e<d.length;e++){var f=d[e].split("="),i=decodeURIComponent(f[0]),j=!1;if(i){var k=i.split("]["),l=k.length-1;if(/\[/.test(k[0])&&/\]$/.test(k[l])?(k[l]=k[l].replace(/\]$/,""),k=k.shift().split("[").concat(k),l=k.length-1):(j=!0,l=0),f.length>=2){var m=f[1]?decodeURIComponent(f[1]):"";l?h(b,k,m):b[i]=g(b[i],m,j)}else b[i]=!0}}return b}Object.defineProperty(a,"__esModule",{value:!0}),a.relativeToFile=c,a.join=d,a.buildQueryString=f,a.parseQueryString=i;var j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a},k=encodeURIComponent,l=function(a){return k(a).replace("%24","$")}})}(),function(){var a=System.amdDefine;a("npm:aurelia-path@1.0.0.js",["npm:aurelia-path@1.0.0/aurelia-path"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-route-recognizer@1.0.0/aurelia-route-recognizer.js",["exports","aurelia-path"],function(a,b){"use strict";function c(a,b,c,d){var e=a;"/"===a.charAt(0)&&(e=a.substr(1));for(var f=[],g=e.split("/"),h=0,i=g.length;i>h;++h){var j=g[h],o=j.match(/^:([^\/]+)$/);o?(f.push(new l(o[1])),b.push(o[1]),c.dynamics++):(o=j.match(/^\*([^\/]+)$/),o?(f.push(new m(o[1])),b.push(o[1]),c.stars++):""===j?f.push(new n):(f.push(new k(j,d)),c.statics++))}return f}function d(a){return a.sort(function(a,b){if(a.types.stars!==b.types.stars)return a.types.stars-b.types.stars;if(a.types.stars){if(a.types.statics!==b.types.statics)return b.types.statics-a.types.statics;if(a.types.dynamics!==b.types.dynamics)return b.types.dynamics-a.types.dynamics}return a.types.dynamics!==b.types.dynamics?a.types.dynamics-b.types.dynamics:a.types.statics!==b.types.statics?b.types.statics-a.types.statics:0})}function e(a,b){for(var c=[],d=0,e=a.length;e>d;d++){var f=a[d];c.push.apply(c,f.match(b))}return c}function f(a,b,c){for(var d=a.handlers,e=a.regex,f=b.match(e),g=1,h=new o(c),i=0,j=d.length;j>i;i++){for(var k=d[i],l=k.names,m={},n=0,p=l.length;p>n;n++)m[l[n]]=f[g++];h.push({handler:k.handler,params:m,isDynamic:!!l.length})}return h}function g(a,b){var c=a;return b.eachChar(function(a){c=c.put(a)}),c}Object.defineProperty(a,"__esModule",{value:!0}),a.RouteRecognizer=a.EpsilonSegment=a.StarSegment=a.DynamicSegment=a.StaticSegment=a.State=void 0;var h=a.State=function(){function a(a){this.charSpec=a,this.nextStates=[]}return a.prototype.get=function(a){for(var b=this.nextStates,c=Array.isArray(b),d=0,b=c?b:b[Symbol.iterator]();;){var e;if(c){if(d>=b.length)break;e=b[d++]}else{if(d=b.next(),d.done)break;e=d.value}var f=e,g=f.charSpec.validChars===a.validChars&&f.charSpec.invalidChars===a.invalidChars;if(g)return f}},a.prototype.put=function(b){var c=this.get(b);return c?c:(c=new a(b),this.nextStates.push(c),b.repeat&&c.nextStates.push(c),c)},a.prototype.match=function(a){for(var b=this.nextStates,c=[],d=0,e=b.length;e>d;d++){var f=b[d],g=f.charSpec;void 0!==g.validChars?-1!==g.validChars.indexOf(a)&&c.push(f):void 0!==g.invalidChars&&-1===g.invalidChars.indexOf(a)&&c.push(f)}return c},a}(),i=["/",".","*","+","?","|","(",")","[","]","{","}","\\"],j=new RegExp("(\\"+i.join("|\\")+")","g"),k=a.StaticSegment=function(){function a(a,b){this.string=a,this.caseSensitive=b}return a.prototype.eachChar=function(a){for(var b=this.string,c=0,d=b.length;d>c;++c){var e=b[c];a({validChars:this.caseSensitive?e:e.toUpperCase()+e.toLowerCase()})}},a.prototype.regex=function(){return this.string.replace(j,"\\$1")},a.prototype.generate=function(){return this.string},a}(),l=a.DynamicSegment=function(){function a(a){this.name=a}return a.prototype.eachChar=function(a){a({invalidChars:"/",repeat:!0})},a.prototype.regex=function(){return"([^/]+)"},a.prototype.generate=function(a,b){return b[this.name]=!0,a[this.name]},a}(),m=a.StarSegment=function(){function a(a){this.name=a}return a.prototype.eachChar=function(a){a({invalidChars:"",repeat:!0})},a.prototype.regex=function(){return"(.+)"},a.prototype.generate=function(a,b){return b[this.name]=!0,a[this.name]},a}(),n=a.EpsilonSegment=function(){function a(){}return a.prototype.eachChar=function(){},a.prototype.regex=function(){return""},a.prototype.generate=function(){return""},a}(),o=(a.RouteRecognizer=function(){function a(){this.rootState=new h,this.names={}}return a.prototype.add=function(a){var b=this;if(Array.isArray(a))return void a.forEach(function(a){return b.add(a)});for(var d=this.rootState,e="^",f={statics:0,dynamics:0,stars:0},h=[],i=a.handler.name,j=!0,k=c(a.path,h,f,a.caseSensitive),l=0,m=k.length;m>l;l++){var o=k[l];o instanceof n||(j=!1,d=d.put({validChars:"/"}),e+="/",d=g(d,o),e+=o.regex())}j&&(d=d.put({validChars:"/"}),e+="/");var p=[{handler:a.handler,names:h}];if(i)for(var q=Array.isArray(i)?i:[i],r=0;r<q.length;r++)this.names[q[r]]={segments:k,handlers:p};return d.handlers=p,d.regex=new RegExp(e+"$",a.caseSensitive?"":"i"),d.types=f,d},a.prototype.handlersFor=function(a){var b=this.names[a];if(!b)throw new Error("There is no route named "+a);return[].concat(b.handlers)},a.prototype.hasRoute=function(a){return!!this.names[a]},a.prototype.generate=function(a,c){var d=this.names[a];if(!d)throw new Error("There is no route named "+a);var e=d.handlers[0].handler;if(e.generationUsesHref)return e.href;for(var f=Object.assign({},c),g=d.segments,h={},i="",j=0,k=g.length;k>j;j++){var l=g[j];if(!(l instanceof n)){i+="/";var m=l.generate(f,h);if(null===m||void 0===m)throw new Error("A value is required for route parameter '"+l.name+"' in route '"+a+"'.");i+=m}}"/"!==i.charAt(0)&&(i="/"+i);for(var o in h)delete f[o];var p=(0,b.buildQueryString)(f);return i+=p?"?"+p:""},a.prototype.recognize=function(a){var c=[this.rootState],g={},h=!1,i=a,j=i.indexOf("?");if(-1!==j){var k=i.substr(j+1,i.length);i=i.substr(0,j),g=(0,b.parseQueryString)(k)}i=decodeURI(i),"/"!==i.charAt(0)&&(i="/"+i);var l=i.length;l>1&&"/"===i.charAt(l-1)&&(i=i.substr(0,l-1),h=!0);for(var m=0,n=i.length;n>m&&(c=e(c,i.charAt(m)),c.length);m++);for(var o=[],p=0,q=c.length;q>p;p++)c[p].handlers&&o.push(c[p]);c=d(o);var r=o[0];return r&&r.handlers?(h&&"(.+)$"===r.regex.source.slice(-5)&&(i+="/"),f(r,i,g)):void 0},a}(),function(a){this.splice=Array.prototype.splice,this.slice=Array.prototype.slice,this.push=Array.prototype.push,this.length=0,this.queryParams=a||{}})})}(),function(){var a=System.amdDefine;a("npm:aurelia-route-recognizer@1.0.0.js",["npm:aurelia-route-recognizer@1.0.0/aurelia-route-recognizer"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-metadata@1.0.0/aurelia-metadata.js",["exports","aurelia-pal"],function(a,b){"use strict";function c(){for(var a=arguments.length,b=Array(a),c=0;a>c;c++)b[c]=arguments[c];var d=function(a,c,d){var e=b.length;if(c){for(d=d||{value:a[c],writable:!0,configurable:!0,enumerable:!0};e--;)d=b[e](a,c,d)||d;Object.defineProperty(a,c,d)}else for(;e--;)a=b[e](a)||a;return a};return d.on=d,d}function d(a,b,c){function d(c,d,e){var f=c.constructor.name+"#"+d,g=b?{}:a||{},h="DEPRECATION - "+f;if("function"!=typeof e.value)throw new SyntaxError("Only methods can be marked as deprecated.");return g.message&&(h+=" - "+g.message),l({},e,{value:function(){if(g.error)throw new Error(h);return console.warn(h),e.value.apply(this,arguments)}})}return b?d(a,b,c):d}function e(a){function b(b){var d=function(b){for(var d="function"==typeof b?b.prototype:b,e=c.length;e--;){var f=c[e];Object.defineProperty(d,f,{value:a[f],writable:!0})}};return b?d(b):d}var c=Object.keys(a);return b}function f(){return!0}function g(){}function h(a){return void 0===a?a={}:"function"==typeof a&&(a={validate:a}),a.validate||(a.validate=f),a.compose||(a.compose=g),a}function i(a){return function(b){var c=a(b);return c===!0}}function j(a,b){return function(c){var d=b(c);if(d!==!0)throw new Error(d||a+" was not correctly implemented.")}}function k(a,b){b=h(b);var c=function d(c){var e="function"==typeof c?c.prototype:c;b.compose(e),d.assert(e),Object.defineProperty(e,"protocol:"+a,{enumerable:!1,configurable:!1,writable:!1,value:!0})};return c.validate=i(b.validate),c.assert=j(a,b.validate),c}Object.defineProperty(a,"__esModule",{value:!0}),a.Origin=a.metadata=void 0,a.decorators=c,a.deprecated=d,a.mixin=e,a.protocol=k;var l=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},m=a.metadata={resource:"aurelia:resource",paramTypes:"design:paramtypes",propertyType:"design:type",properties:"design:properties",get:function(a,b,c){if(b){var d=m.getOwn(a,b,c);return void 0===d?m.get(a,Object.getPrototypeOf(b),c):d}},getOwn:function(a,b,c){return b?Reflect.getOwnMetadata(a,b,c):void 0},define:function(a,b,c,d){Reflect.defineMetadata(a,b,c,d)},getOrCreateOwn:function(a,b,c,d){var e=m.getOwn(a,c,d);return void 0===e&&(e=new b,Reflect.defineMetadata(a,e,c,d)),e}},n=new Map,o=Object.freeze({moduleId:void 0,moduleMember:void 0});a.Origin=function(){function a(a,b){this.moduleId=a,this.moduleMember=b}return a.get=function(c){var d=n.get(c);return void 0===d&&b.PLATFORM.eachModule(function(b,e){for(var f in e){var g=e[f];if(g===c)return n.set(c,d=new a(b,f)),!0}return e===c?(n.set(c,d=new a(b,"default")),!0):!1}),d||o},a.set=function(a,b){n.set(a,b)},a}();k.create=function(a,b){b=h(b);var c="protocol:"+a,d=function(c){var d=k(a,b);return c?d(c):d};return d.decorates=function(a){return a[c]===!0},d.validate=i(b.validate),d.assert=j(a,b.validate),d}})}(),function(){var a=System.amdDefine;a("npm:aurelia-metadata@1.0.0.js",["npm:aurelia-metadata@1.0.0/aurelia-metadata"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-dependency-injection@1.0.0/aurelia-dependency-injection.js",["exports","aurelia-metadata","aurelia-pal"],function(a,b,c){"use strict";function d(a,c){var d=a.inject;if("function"==typeof d)throw new Error("Decorator "+c+' cannot be used with "inject()".  Please use an array instead.');return d||(d=b.metadata.getOwn(b.metadata.paramTypes,a).slice(),a.inject=d),d}function e(a){return function(b,c,e){var f=d(b,"lazy");f[e]=I.of(a)}}function f(a){return function(b,c,e){var f=d(b,"all");f[e]=J.of(a)}}function g(){var a=arguments.length<=0||void 0===arguments[0]?!0:arguments[0],b=function(a){return function(b,c,e){var f=d(b,"optional");f[e]=K.of(f[e],a)}};return b("boolean"==typeof a?a:!0)}function h(a,b,c){var e=d(a,"parent");e[c]=L.of(e[c])}function i(a,b){return function(c,e,f){var g=d(c,"factory"),h=N.of(a);g[f]=b?h.as(b):h}}function j(a){var b=function(a){return function(b,c,e){var f=d(b,"newInstance");f[e]=O.of(f[e]),a&&f[e].as(a)}};return 1===arguments.length?b(a):b()}function k(a){return function(c){b.metadata.define(b.metadata.invoker,a,c)}}function i(a){var c=function(a){b.metadata.define(b.metadata.invoker,P.instance,a)};return a?c(a):c}function l(a){return function(c){b.metadata.define(b.metadata.registration,a,c)}}function m(a){return l(new Q(a))}function n(a){var b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];return l(new R(a,b))}function o(a,b,c,d){for(var e=c.length,f=new Array(e);e--;)f[e]=a.get(c[e]);return void 0!==d&&(f=f.concat(d)),Reflect.construct(b,f)}function p(a){return a.hasOwnProperty("inject")?"function"==typeof a.inject?a.inject():a.inject:[]}function q(a){var c=function(a){var c=a.inject,d=b.metadata.getOwn(b.metadata.paramTypes,a)||T;if(c)for(var e=0;e++;e<d.length)c[e]||(c[e]=d[e]);else a.inject=d};return a?c(a):c}function r(){for(var a=arguments.length,c=Array(a),d=0;a>d;d++)c[d]=arguments[d];return function(a,d,e){if("number"==typeof e&&1===c.length){var f=a.inject;if("function"==typeof f)throw new Error('Decorator inject cannot be used with "inject()".  Please use an array instead.');return f||(f=b.metadata.getOwn(b.metadata.paramTypes,a).slice(),a.inject=f),void(f[e]=c[0])}if(e){var g=e.value;g.inject=c}else a.inject=c}}Object.defineProperty(a,"__esModule",{value:!0}),a.Container=a.InvocationHandler=a._emptyParameters=a.SingletonRegistration=a.TransientRegistration=a.FactoryInvoker=a.NewInstance=a.Factory=a.StrategyResolver=a.Parent=a.Optional=a.All=a.Lazy=a.resolver=void 0,a.getDecoratorDependencies=d,a.lazy=e,a.all=f,a.optional=g,a.parent=h,a.factory=i,a.newInstance=j,a.invoker=k,a.factory=i,a.registration=l,a["transient"]=m,a.singleton=n,a.autoinject=q,a.inject=r;var s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H=a.resolver=b.protocol.create("aurelia:resolver",function(a){return"function"!=typeof a.get?"Resolvers must implement: get(container: Container, key: any): any":!0}),I=a.Lazy=(s=H(),s(t=function(){function a(a){this._key=a}return a.prototype.get=function(a){var b=this;return function(){return a.get(b._key)}},a.of=function(b){return new a(b)},a}())||t),J=a.All=(u=H(),u(v=function(){function a(a){this._key=a}return a.prototype.get=function(a){return a.getAll(this._key)},a.of=function(b){return new a(b)},a}())||v),K=a.Optional=(w=H(),w(x=function(){function a(a){var b=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];this._key=a,this._checkParent=b}return a.prototype.get=function(a){return a.hasResolver(this._key,this._checkParent)?a.get(this._key):null},a.of=function(b){var c=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return new a(b,c)},a}())||x),L=a.Parent=(y=H(),y(z=function(){function a(a){this._key=a}return a.prototype.get=function(a){return a.parent?a.parent.get(this._key):null},a.of=function(b){return new a(b)},a}())||z),M=a.StrategyResolver=(A=H(),A(B=function(){function a(a,b){this.strategy=a,this.state=b}return a.prototype.get=function(a,b){switch(this.strategy){case 0:return this.state;case 1:var c=a.invoke(this.state);return this.state=c,this.strategy=0,c;case 2:return a.invoke(this.state);case 3:return this.state(a,b,this);case 4:return this.state[0].get(a,b);case 5:return a.get(this.state);default:throw new Error("Invalid strategy: "+this.strategy)}},a}())||B),N=a.Factory=(C=H(),C(D=function(){function a(a){this._key=a}return a.prototype.get=function(a){var b=this;return function(){for(var c=arguments.length,d=Array(c),e=0;c>e;e++)d[e]=arguments[e];return a.invoke(b._key,d)}},a.of=function(b){return new a(b)},a}())||D),O=a.NewInstance=(E=H(),E(F=function(){function a(a){this.key=a,this.asKey=a}return a.prototype.get=function(a){var b=a.invoke(this.key);return a.registerInstance(this.asKey,b),b},a.prototype.as=function(a){return this.asKey=a,this},a.of=function(b){return new a(b)},a}())||F),P=a.FactoryInvoker=function(){function a(){}return a.prototype.invoke=function(a,b,c){for(var d=c.length,e=new Array(d);d--;)e[d]=a.get(c[d]);return b.apply(void 0,e)},a.prototype.invokeWithDynamicDependencies=function(a,b,c,d){for(var e=c.length,f=new Array(e);e--;)f[e]=a.get(c[e]);return void 0!==d&&(f=f.concat(d)),b.apply(void 0,f)},a}();P.instance=new P;var Q=a.TransientRegistration=function(){function a(a){this._key=a}return a.prototype.registerResolver=function(a,b,c){return a.registerTransient(this._key||b,c)},a}(),R=a.SingletonRegistration=function(){function a(a){var b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];"boolean"==typeof a?this._registerInChild=a:(this._key=a,this._registerInChild=b)}return a.prototype.registerResolver=function(a,b,c){return this._registerInChild?a.registerSingleton(this._key||b,c):a.root.registerSingleton(this._key||b,c)},a}(),S="key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?",T=a._emptyParameters=Object.freeze([]);b.metadata.registration="aurelia:registration",b.metadata.invoker="aurelia:invoker";var U=H.decorates,V=a.InvocationHandler=function(){function a(a,b,c){this.fn=a,this.invoker=b,this.dependencies=c}return a.prototype.invoke=function(a,b){return void 0!==b?this.invoker.invokeWithDynamicDependencies(a,this.fn,this.dependencies,b):this.invoker.invoke(a,this.fn,this.dependencies)},a}(),W=(G={},G[0]={invoke:function(a,b){return new b},invokeWithDynamicDependencies:o},G[1]={invoke:function(a,b,c){return new b(a.get(c[0]))},invokeWithDynamicDependencies:o},G[2]={invoke:function(a,b,c){return new b(a.get(c[0]),a.get(c[1]))},invokeWithDynamicDependencies:o},G[3]={invoke:function(a,b,c){return new b(a.get(c[0]),a.get(c[1]),a.get(c[2]))},invokeWithDynamicDependencies:o},G[4]={invoke:function(a,b,c){return new b(a.get(c[0]),a.get(c[1]),a.get(c[2]),a.get(c[3]))},invokeWithDynamicDependencies:o},G[5]={invoke:function(a,b,c){return new b(a.get(c[0]),a.get(c[1]),a.get(c[2]),a.get(c[3]),a.get(c[4]))},invokeWithDynamicDependencies:o},G.fallback={invoke:o,invokeWithDynamicDependencies:o},G);a.Container=function(){function a(a){void 0===a&&(a={}),this._configuration=a,this._onHandlerCreated=a.onHandlerCreated,this._handlers=a.handlers||(a.handlers=new Map),this._resolvers=new Map,this.root=this,this.parent=null}return a.prototype.makeGlobal=function(){return a.instance=this,this},a.prototype.setHandlerCreatedCallback=function(a){this._onHandlerCreated=a,this._configuration.onHandlerCreated=a},a.prototype.registerInstance=function(a,b){return this.registerResolver(a,new M(0,void 0===b?a:b))},a.prototype.registerSingleton=function(a,b){return this.registerResolver(a,new M(1,void 0===b?a:b))},a.prototype.registerTransient=function(a,b){return this.registerResolver(a,new M(2,void 0===b?a:b))},a.prototype.registerHandler=function(a,b){return this.registerResolver(a,new M(3,b))},a.prototype.registerAlias=function(a,b){return this.registerResolver(b,new M(5,a))},a.prototype.registerResolver=function(a,b){if(null===a||void 0===a)throw new Error(S);var c=this._resolvers,d=c.get(a);return void 0===d?c.set(a,b):4===d.strategy?d.state.push(b):c.set(a,new M(4,[d,b])),b},a.prototype.autoRegister=function(a,c){if(c=void 0===c?a:c,"function"==typeof c){var d=b.metadata.get(b.metadata.registration,c);return void 0===d?this.registerResolver(a,new M(1,c)):d.registerResolver(this,a,c)}return this.registerResolver(a,new M(0,c))},a.prototype.autoRegisterAll=function(a){for(var b=a.length;b--;)this.autoRegister(a[b])},a.prototype.unregister=function(a){this._resolvers["delete"](a)},a.prototype.hasResolver=function(a){var b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];if(null===a||void 0===a)throw new Error(S);return this._resolvers.has(a)||b&&null!==this.parent&&this.parent.hasResolver(a,b)},a.prototype.get=function(b){if(null===b||void 0===b)throw new Error(S);if(b===a)return this;if(U(b))return b.get(this,b);var c=this._resolvers.get(b);return void 0===c?null===this.parent?this.autoRegister(b).get(this,b):this.parent._get(b):c.get(this,b)},a.prototype._get=function(a){var b=this._resolvers.get(a);return void 0===b?null===this.parent?this.autoRegister(a).get(this,a):this.parent._get(a):b.get(this,a)},a.prototype.getAll=function(a){if(null===a||void 0===a)throw new Error(S);var b=this._resolvers.get(a);if(void 0===b)return null===this.parent?T:this.parent.getAll(a);if(4===b.strategy){for(var c=b.state,d=c.length,e=new Array(d);d--;)e[d]=c[d].get(this,a);return e}return[b.get(this,a)]},a.prototype.createChild=function(){var b=new a(this._configuration);return b.root=this.root,b.parent=this,b},a.prototype.invoke=function(a,b){try{var d=this._handlers.get(a);return void 0===d&&(d=this._createInvocationHandler(a),this._handlers.set(a,d)),d.invoke(this,b)}catch(e){throw new c.AggregateError("Error invoking "+a.name+". Check the inner error for details.",e,!0)}},a.prototype._createInvocationHandler=function(a){var c=void 0;if(void 0===a.inject)c=b.metadata.getOwn(b.metadata.paramTypes,a)||T;else{c=[];for(var d=a;"function"==typeof d;){var e;(e=c).push.apply(e,p(d)),d=Object.getPrototypeOf(d)}}var f=b.metadata.getOwn(b.metadata.invoker,a)||W[c.length]||W.fallback,g=new V(a,f,c);return void 0!==this._onHandlerCreated?this._onHandlerCreated(g):g},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-dependency-injection@1.0.0.js",["npm:aurelia-dependency-injection@1.0.0/aurelia-dependency-injection"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-history@1.0.0/aurelia-history.js",["exports"],function(a){"use strict";function b(a){throw new Error("History must implement "+a+"().")}Object.defineProperty(a,"__esModule",{value:!0});a.History=function(){function a(){}return a.prototype.activate=function(a){b("activate")},a.prototype.deactivate=function(){b("deactivate")},a.prototype.getAbsoluteRoot=function(){b("getAbsoluteRoot")},a.prototype.navigate=function(a,c){b("navigate")},a.prototype.navigateBack=function(){b("navigateBack")},a.prototype.setTitle=function(a){b("setTitle")},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-history@1.0.0.js",["npm:aurelia-history@1.0.0/aurelia-history"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-event-aggregator@1.0.0/aurelia-event-aggregator.js",["exports","aurelia-logging"],function(a,b){"use strict";function c(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function d(a){var b=new i;return a.subscribeOnce=function(a,c){return b.subscribeOnce(a,c)},a.subscribe=function(a,c){return b.subscribe(a,c)},a.publish=function(a,c){b.publish(a,c)},b}function e(a){a.instance(i,d(a.aurelia))}Object.defineProperty(a,"__esModule",{value:!0}),a.EventAggregator=void 0,a.includeEventsIn=d,a.configure=e;var f=c(b),g=f.getLogger("event-aggregator"),h=function(){function a(a,b){this.messageType=a,this.callback=b}return a.prototype.handle=function(a){a instanceof this.messageType&&this.callback.call(null,a)},a}(),i=a.EventAggregator=function(){function a(){this.eventLookup={},this.messageHandlers=[]}return a.prototype.publish=function(a,b){var c=void 0,d=void 0;if(!a)throw new Error("Event was invalid.");if("string"==typeof a){if(c=this.eventLookup[a]){c=c.slice(),d=c.length;try{for(;d--;)c[d](b,a)}catch(e){g.error(e)}}}else{c=this.messageHandlers.slice(),d=c.length;try{for(;d--;)c[d].handle(a)}catch(e){g.error(e)}}},a.prototype.subscribe=function(a,b){var c=void 0,d=void 0;if(!a)throw new Error("Event channel/type was invalid.");return"string"==typeof a?(c=b,d=this.eventLookup[a]||(this.eventLookup[a]=[])):(c=new h(a,b),d=this.messageHandlers),d.push(c),{dispose:function(){var a=d.indexOf(c);-1!==a&&d.splice(a,1)}}},a.prototype.subscribeOnce=function(a,b){var c=this.subscribe(a,function(a,d){return c.dispose(),b(a,d)});return c},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-event-aggregator@1.0.0.js",["npm:aurelia-event-aggregator@1.0.0/aurelia-event-aggregator"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-router@1.0.2/aurelia-router.js",["exports","aurelia-logging","aurelia-route-recognizer","aurelia-dependency-injection","aurelia-history","aurelia-event-aggregator"],function(a,b,c,d,e,f){"use strict";function g(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}function h(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function i(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function j(a,b){var c=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return b||"#"===a[0]||(a="#"+a),b&&c&&(a=a.substring(1,a.length)),a}function k(a,b,c,d){if(M.test(a))return a;var e="";return b.length&&"/"!==b[0]&&(e+="/"),e+=b,e.length&&"/"===e[e.length-1]||"/"===a[0]||(e+="/"),e.length&&"/"===e[e.length-1]&&"/"===a[0]&&(e=e.substring(0,e.length-1)),j(e+a,c,d)}function l(a,b,c){return L.test(a)?j(a,c):k(a,b,c)}function m(a,b){return function(a){return Promise.resolve({status:b,output:a,completed:b===N.completed})}}function n(a){a.previousInstruction=null,a.plan=null}function o(a){return a&&"function"==typeof a.navigate}function p(a,b){var c=a.previousInstruction,d=a.config,e={};if("redirect"in d){var f=l(d.redirect,r(a));return a.queryString&&(f+="?"+a.queryString),Promise.reject(new S(f))}if(c){var g=q(c,a),h=[],i=function(f){var i=c.viewPortInstructions[f],j=d.viewPorts[f];if(!j)throw new Error('Invalid Route Config: Configuration for viewPort "'+f+'" was not found for route: "'+a.config.route+'."');var k=e[f]={name:f,config:j,prevComponent:i.component,prevModuleId:i.moduleId};if(i.moduleId!==j.moduleId)k.strategy=U.replace;else if("determineActivationStrategy"in i.component.viewModel){var l;k.strategy=(l=i.component.viewModel).determineActivationStrategy.apply(l,a.lifecycleArgs)}else d.activationStrategy?k.strategy=d.activationStrategy:g||b?k.strategy=U.invokeLifecycle:k.strategy=U.noChange;if(k.strategy!==U.replace&&i.childRouter){var m=a.getWildcardPath(),n=i.childRouter._createNavigationInstruction(m,a).then(function(a){return k.childNavigationInstruction=a,p(a,k.strategy===U.invokeLifecycle).then(function(b){a.plan=b})});h.push(n)}};for(var j in c.viewPortInstructions)i(j);return Promise.all(h).then(function(){return e})}for(var k in d.viewPorts)e[k]={name:k,strategy:U.replace,config:a.config.viewPorts[k]};return Promise.resolve(e)}function q(a,b){var c=a.params,d=b.params,e=b.config.hasChildRouter?b.getWildCardName():null;for(var f in d)if(f!==e&&c[f]!==d[f])return!0;for(var g in c)if(g!==e&&c[g]!==d[g])return!0;if(!b.options.compareQueryParams)return!1;var h=a.queryParams,i=b.queryParams;for(var j in i)if(h[j]!==i[j])return!0;for(var k in h)if(h[k]!==i[k])return!0;return!1}function r(a){var b=[];for(a=a.parentInstruction;a;)b.unshift(a.getBaseUrl()),a=a.parentInstruction;return b.unshift("/"),b.join("")}function s(a,b){if("object"!==("undefined"==typeof a?"undefined":J(a)))throw new Error("Invalid Route Config");if("string"!=typeof a.route){var c=a.name||"(no name)";throw new Error('Invalid Route Config for "'+c+'": You must specify a "route:" pattern.')}if(!("redirect"in a||a.moduleId||a.navigationStrategy||a.viewPorts))throw new Error('Invalid Route Config for "'+a.route+'": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".')}function t(a,b,c){return Promise.resolve(b.call(c,a)).then(function(){return"viewPorts"in a.config||(a.config.viewPorts={"default":{moduleId:a.config.moduleId}}),a})}function u(a,b,c,d){function e(a){return d||z(a)?f():c.cancel(a)}function f(){if(h--)try{var a=g[h],d=a[b]();return A(d,e,c.cancel)}catch(f){return c.cancel(f)}return c()}var g=v(a,b),h=g.length;return f()}function v(a,b){var c=arguments.length<=2||void 0===arguments[2]?[]:arguments[2];for(var d in a){var e=a[d],f=e.prevComponent;if((e.strategy===U.invokeLifecycle||e.strategy===U.replace)&&f){var g=f.viewModel;b in g&&c.push(g)}e.childNavigationInstruction?v(e.childNavigationInstruction.plan,b,c):f&&w(f,b,c)}return c}function w(a,b,c){var d=a.childRouter;if(d&&d.currentInstruction){var e=d.currentInstruction.viewPortInstructions;for(var f in e){var g=e[f],h=g.component,i=h.viewModel;b in i&&c.push(i),w(h,b,c)}}}function x(a,b,c,d){function e(a,b){return d||z(a,b)?f():c.cancel(a)}function f(){if(i++,h>i)try{var a=function(){var a,d=g[i],f=(a=d.viewModel)[b].apply(a,d.lifecycleArgs);return{v:A(f,function(a){return e(a,d.router)},c.cancel)}}();if("object"===("undefined"==typeof a?"undefined":J(a)))return a.v}catch(d){return c.cancel(d)}return c()}var g=y(a,b),h=g.length,i=-1;return f()}function y(a,b){var c=arguments.length<=2||void 0===arguments[2]?[]:arguments[2],d=arguments[3],e=a.plan;return Object.keys(e).filter(function(f){var g=e[f],h=a.viewPortInstructions[f],i=h.component.viewModel;(g.strategy===U.invokeLifecycle||g.strategy===U.replace)&&b in i&&c.push({viewModel:i,lifecycleArgs:h.lifecycleArgs,router:d}),g.childNavigationInstruction&&y(g.childNavigationInstruction,b,c,h.component.childRouter||d)}),c}function z(a,b){return a instanceof Error?!1:o(a)?("function"==typeof a.setRouter&&a.setRouter(b),!!a.shouldContinueProcessing):void 0===a?!0:a}function A(a,b,c){if(a&&"function"==typeof a.then)return Promise.resolve(a).then(b)["catch"](c);if(a&&"function"==typeof a.subscribe){var d=function(){var d=a;return{v:new _(function(e){return d.subscribe({next:function(){e.subscribed&&(e.unsubscribe(),b(a))},error:function(a){e.subscribed&&(e.unsubscribe(),c(a))},complete:function(){e.subscribed&&(e.unsubscribe(),b(a))}})})}}();if("object"===("undefined"==typeof d?"undefined":J(d)))return d.v}try{return b(a)}catch(e){return c(e)}}function B(a,b){var c=C(b),d=c.map(function(b){return D(a,b.navigationInstruction,b.viewPortPlan)});return Promise.all(d)}function C(a){var b=arguments.length<=1||void 0===arguments[1]?[]:arguments[1],c=a.plan;for(var d in c){var e=c[d];if(e.strategy===U.replace)b.push({viewPortPlan:e,navigationInstruction:a}),e.childNavigationInstruction&&C(e.childNavigationInstruction,b);else{var f=a.addViewPortInstruction(d,e.strategy,e.prevModuleId,e.prevComponent);e.childNavigationInstruction&&(f.childNavigationInstruction=e.childNavigationInstruction,C(e.childNavigationInstruction,b))}}return b}function D(a,b,c){var d=c.config.moduleId;return E(a,b,c.config).then(function(e){var f=b.addViewPortInstruction(c.name,c.strategy,d,e),g=e.childRouter;if(g){var h=b.getWildcardPath();return g._createNavigationInstruction(h,b).then(function(b){return c.childNavigationInstruction=b,p(b).then(function(c){return b.plan=c,f.childNavigationInstruction=b,B(a,b)})})}})}function E(a,b,c){var d=b.router,e=b.lifecycleArgs;return a.loadRoute(d,c,b).then(function(a){var b=a.viewModel,f=a.childContainer;if(a.router=d,a.config=c,"configureRouter"in b){var g=function(){var c=f.getChildRouter();return a.childRouter=c,{v:c.configure(function(a){return b.configureRouter.apply(b,[a,c].concat(e))}).then(function(){return a})}}();if("object"===("undefined"==typeof g?"undefined":J(g)))return g.v}return a})}function F(a,b,c,d){b&&"completed"in b&&"output"in b||(b=b||{},b.output=new Error("Expected router pipeline to return a navigation result, but got ["+JSON.stringify(b)+"] instead."));var e=null;return o(b.output)?b.output.navigate(d):(e=b,b.completed||(b.output instanceof Error&&ea.error(b.output),H(d))),d._dequeueInstruction(c+1).then(function(a){return e||a||b})}function G(a,b,c,d){if(a.resolve(b),!c){d.isNavigating=!1;var e={instruction:a,result:b},f=void 0;if(b.output instanceof Error)f="error";else if(b.completed){var g=a.queryString?"?"+a.queryString:"";d.history.previousLocation=a.fragment+g,f="success"}else f="canceled";d.events.publish("router:navigation:"+f,e),d.events.publish("router:navigation:complete",e)}return b}function H(a){var b=a.history.previousLocation;b?a.navigate(a.history.previousLocation,{trigger:!1,replace:!0}):ea.error("Router navigation failed, and no previous location could be restored.")}Object.defineProperty(a,"__esModule",{value:!0}),a.AppRouter=a.PipelineProvider=a.LoadRouteStep=a.RouteLoader=a.ActivateNextStep=a.DeactivatePreviousStep=a.CanActivateNextStep=a.CanDeactivatePreviousStep=a.Router=a.BuildNavigationPlanStep=a.activationStrategy=a.RouterConfiguration=a.RedirectToRoute=a.Redirect=a.NavModel=a.NavigationInstruction=a.CommitChangesStep=a.Pipeline=a.pipelineStatus=void 0,
  a._normalizeAbsolutePath=j,a._createRootedPath=k,a._resolveUrl=l,a.isNavigationCommand=o,a._buildNavigationPlan=p;var I=g(b),J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a},K=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),L=/^#?\//,M=/^([a-z][a-z0-9+\-.]*:)?\/\//i,N=a.pipelineStatus={completed:"completed",canceled:"canceled",rejected:"rejected",running:"running"},O=a.Pipeline=function(){function a(){this.steps=[]}return a.prototype.addStep=function(a){var b=void 0;if("function"==typeof a)b=a;else{if("function"==typeof a.getSteps){for(var c=a.getSteps(),d=0,e=c.length;e>d;d++)this.addStep(c[d]);return this}b=a.run.bind(a)}return this.steps.push(b),this},a.prototype.run=function(a){function b(){if(c++,!(c<d.length))return b.complete();var e=d[c];try{return e(a,b)}catch(f){return b.reject(f)}}var c=-1,d=this.steps;return b.complete=m(b,N.completed),b.cancel=m(b,N.canceled),b.reject=m(b,N.rejected),b()},a}(),P=a.CommitChangesStep=function(){function a(){}return a.prototype.run=function(a,b){return a._commitChanges(!0).then(function(){return a._updateTitle(),b()})},a}(),Q=a.NavigationInstruction=function(){function a(a){this.plan=null,this.options={},Object.assign(this,a),this.params=this.params||{},this.viewPortInstructions={};var b=[],c=this;do{var d=Object.assign({},c.params);c.config&&c.config.hasChildRouter&&delete d[c.getWildCardName()],b.unshift(d),c=c.parentInstruction}while(c);var e=Object.assign.apply(Object,[{},this.queryParams].concat(b));this.lifecycleArgs=[e,this.config,this]}return a.prototype.getAllInstructions=function(){var a=[this];for(var b in this.viewPortInstructions){var c=this.viewPortInstructions[b].childNavigationInstruction;c&&a.push.apply(a,c.getAllInstructions())}return a},a.prototype.getAllPreviousInstructions=function(){return this.getAllInstructions().map(function(a){return a.previousInstruction}).filter(function(a){return a})},a.prototype.addViewPortInstruction=function(a,b,c,d){var e=this.viewPortInstructions[a]={name:a,strategy:b,moduleId:c,component:d,childRouter:d.childRouter,lifecycleArgs:this.lifecycleArgs.slice()};return e},a.prototype.getWildCardName=function(){var a=this.config.route.lastIndexOf("*");return this.config.route.substr(a+1)},a.prototype.getWildcardPath=function(){var a=this.getWildCardName(),b=this.params[a]||"";return this.queryString&&(b+="?"+this.queryString),b},a.prototype.getBaseUrl=function(){if(!this.params)return this.fragment;var a=this.getWildCardName(),b=this.params[a]||"";return b?(b=encodeURI(b),this.fragment.substr(0,this.fragment.lastIndexOf(b))):this.fragment},a.prototype._commitChanges=function(a){var b=this,c=this.router;c.currentInstruction=this,this.previousInstruction&&(this.previousInstruction.config.navModel.isActive=!1),this.config.navModel.isActive=!0,c._refreshBaseUrl(),c.refreshNavigation();var d=[],e=[],f=function(f){var g=b.viewPortInstructions[f],h=c.viewPorts[f];if(!h)throw new Error("There was no router-view found in the view for "+g.moduleId+".");g.strategy===U.replace?(a&&e.push({viewPort:h,viewPortInstruction:g}),d.push(h.process(g,a).then(function(a){return g.childNavigationInstruction?g.childNavigationInstruction._commitChanges():void 0}))):g.childNavigationInstruction&&d.push(g.childNavigationInstruction._commitChanges(a))};for(var g in this.viewPortInstructions)f(g);return Promise.all(d).then(function(){return e.forEach(function(a){return a.viewPort.swap(a.viewPortInstruction)}),null}).then(function(){return n(b)})},a.prototype._updateTitle=function(){var a=this._buildTitle();a&&this.router.history.setTitle(a)},a.prototype._buildTitle=function(){var a=arguments.length<=0||void 0===arguments[0]?" | ":arguments[0],b=this.config.navModel.title||"",c=[];for(var d in this.viewPortInstructions){var e=this.viewPortInstructions[d];if(e.childNavigationInstruction){var f=e.childNavigationInstruction._buildTitle(a);f&&c.push(f)}}return c.length&&(b=c.join(a)+(b?a:"")+b),this.router.title&&(b+=(b?a:"")+this.router.title),b},a}(),R=a.NavModel=function(){function a(a,b){this.isActive=!1,this.title=null,this.href=null,this.relativeHref=null,this.settings={},this.config=null,this.router=a,this.relativeHref=b}return a.prototype.setTitle=function(a){this.title=a,this.isActive&&this.router.updateTitle()},a}(),S=a.Redirect=function(){function a(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];this.url=a,this.options=Object.assign({trigger:!0,replace:!0},b),this.shouldContinueProcessing=!1}return a.prototype.setRouter=function(a){this.router=a},a.prototype.navigate=function(a){var b=this.options.useAppRouter?a:this.router||a;b.navigate(this.url,this.options)},a}(),T=(a.RedirectToRoute=function(){function a(a){var b=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],c=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];this.route=a,this.params=b,this.options=Object.assign({trigger:!0,replace:!0},c),this.shouldContinueProcessing=!1}return a.prototype.setRouter=function(a){this.router=a},a.prototype.navigate=function(a){var b=this.options.useAppRouter?a:this.router||a;b.navigateToRoute(this.route,this.params,this.options)},a}(),a.RouterConfiguration=function(){function a(){this.instructions=[],this.options={},this.pipelineSteps=[]}return a.prototype.addPipelineStep=function(a,b){return this.pipelineSteps.push({name:a,step:b}),this},a.prototype.addAuthorizeStep=function(a){return this.addPipelineStep("authorize",a)},a.prototype.addPreActivateStep=function(a){return this.addPipelineStep("preActivate",a)},a.prototype.addPreRenderStep=function(a){return this.addPipelineStep("preRender",a)},a.prototype.addPostRenderStep=function(a){return this.addPipelineStep("postRender",a)},a.prototype.map=function(a){return Array.isArray(a)?(a.forEach(this.map.bind(this)),this):this.mapRoute(a)},a.prototype.mapRoute=function(a){return this.instructions.push(function(b){var c=[];if(Array.isArray(a.route))for(var d=0,e=a.route.length;e>d;++d){var f=Object.assign({},a);f.route=a.route[d],c.push(f)}else c.push(Object.assign({},a));for(var g=void 0,h=0,i=c.length;i>h;++h){var j=c[h];j.settings=j.settings||{},g||(g=b.createNavModel(j)),b.addRoute(j,g)}}),this},a.prototype.mapUnknownRoutes=function(a){return this.unknownRouteConfig=a,this},a.prototype.exportToRouter=function(a){for(var b=this.instructions,c=0,d=b.length;d>c;++c)b[c](a);this.title&&(a.title=this.title),this.unknownRouteConfig&&a.handleUnknownRoutes(this.unknownRouteConfig),a.options=this.options;var e=this.pipelineSteps;if(e.length){if(!a.isRoot)throw new Error("Pipeline steps can only be added to the root router");for(var f=a.pipelineProvider,g=0,h=e.length;h>g;++g){var i=e[g],j=i.name,k=i.step;f.addStep(j,k)}}},a}()),U=a.activationStrategy={noChange:"no-change",invokeLifecycle:"invoke-lifecycle",replace:"replace"},V=a.BuildNavigationPlanStep=function(){function a(){}return a.prototype.run=function(a,b){return p(a).then(function(c){return a.plan=c,b()})["catch"](b.cancel)},a}(),W=a.Router=function(){function a(a,b){this.parent=null,this.options={},this.container=a,this.history=b,this.reset()}return a.prototype.reset=function(){var a=this;this.viewPorts={},this.routes=[],this.baseUrl="",this.isConfigured=!1,this.isNavigating=!1,this.navigation=[],this.currentInstruction=null,this._fallbackOrder=100,this._recognizer=new c.RouteRecognizer,this._childRecognizer=new c.RouteRecognizer,this._configuredPromise=new Promise(function(b){a._resolveConfiguredPromise=b})},a.prototype.registerViewPort=function(a,b){b=b||"default",this.viewPorts[b]=a},a.prototype.ensureConfigured=function(){return this._configuredPromise},a.prototype.configure=function(a){var b=this;this.isConfigured=!0;var c=a,d=void 0;return"function"==typeof a&&(d=new T,c=a(d)),Promise.resolve(c).then(function(a){a&&a.exportToRouter&&(d=a),d.exportToRouter(b),b.isConfigured=!0,b._resolveConfiguredPromise()})},a.prototype.navigate=function(a,b){return!this.isConfigured&&this.parent?this.parent.navigate(a,b):this.history.navigate(l(a,this.baseUrl,this.history._hasPushState),b)},a.prototype.navigateToRoute=function(a,b,c){var d=this.generate(a,b);return this.navigate(d,c)},a.prototype.navigateBack=function(){this.history.navigateBack()},a.prototype.createChild=function(b){var c=new a(b||this.container.createChild(),this.history);return c.parent=this,c},a.prototype.generate=function(a,b){var c=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],d=this._recognizer.hasRoute(a);if((!this.isConfigured||!d)&&this.parent)return this.parent.generate(a,b);if(!d)throw new Error("A route with name '"+a+"' could not be found. Check that `name: '"+a+"'` was specified in the route's config.");var e=this._recognizer.generate(a,b),f=k(e,this.baseUrl,this.history._hasPushState,c.absolute);return c.absolute?""+this.history.getAbsoluteRoot()+f:f},a.prototype.createNavModel=function(a){var b=new R(this,"href"in a?a.href:a.route);return b.title=a.title,b.order=a.nav,b.href=a.href,b.settings=a.settings,b.config=a,b},a.prototype.addRoute=function(a,b){s(a,this.routes),"viewPorts"in a||a.navigationStrategy||(a.viewPorts={"default":{moduleId:a.moduleId,view:a.view}}),b||(b=this.createNavModel(a)),this.routes.push(a);var c=a.route;"/"===c.charAt(0)&&(c=c.substr(1));var d=a.caseSensitive===!0,e=this._recognizer.add({path:c,handler:a,caseSensitive:d});if(c){var f=a.settings;delete a.settings;var g=JSON.parse(JSON.stringify(a));a.settings=f,g.route=c+"/*childRoute",g.hasChildRouter=!0,this._childRecognizer.add({path:g.route,handler:g,caseSensitive:d}),g.navModel=b,g.settings=a.settings}if(a.navModel=b,(b.order||0===b.order)&&-1===this.navigation.indexOf(b)){if(!b.href&&""!==b.href&&(e.types.dynamics||e.types.stars))throw new Error('Invalid route config for "'+a.route+'" : dynamic routes must specify an "href:" to be included in the navigation model.');"number"!=typeof b.order&&(b.order=++this._fallbackOrder),this.navigation.push(b),this.navigation=this.navigation.sort(function(a,b){return a.order-b.order})}},a.prototype.hasRoute=function(a){return!!(this._recognizer.hasRoute(a)||this.parent&&this.parent.hasRoute(a))},a.prototype.hasOwnRoute=function(a){return this._recognizer.hasRoute(a)},a.prototype.handleUnknownRoutes=function(a){var b=this;if(!a)throw new Error("Invalid unknown route handler");this.catchAllHandler=function(c){return b._createRouteConfig(a,c).then(function(a){return c.config=a,c})}},a.prototype.updateTitle=function(){return this.parent?this.parent.updateTitle():void this.currentInstruction._updateTitle()},a.prototype.refreshNavigation=function(){for(var a=this.navigation,b=0,c=a.length;c>b;b++){var d=a[b];d.config.href?d.href=j(d.config.href,this.history._hasPushState):d.href=k(d.relativeHref,this.baseUrl,this.history._hasPushState)}},a.prototype._refreshBaseUrl=function(){if(this.parent){var a=this.parent.currentInstruction.getBaseUrl();this.baseUrl=this.parent.baseUrl+a}},a.prototype._createNavigationInstruction=function(){var a=arguments.length<=0||void 0===arguments[0]?"":arguments[0],b=arguments.length<=1||void 0===arguments[1]?null:arguments[1],c=a,d="",e=a.indexOf("?");-1!==e&&(c=a.substr(0,e),d=a.substr(e+1));var f=this._recognizer.recognize(a);f&&f.length||(f=this._childRecognizer.recognize(a));var g={fragment:c,queryString:d,config:null,parentInstruction:b,previousInstruction:this.currentInstruction,router:this,options:{compareQueryParams:this.options.compareQueryParams}};if(f&&f.length){var h=f[0],i=new Q(Object.assign({},g,{params:h.params,queryParams:h.queryParams||f.queryParams,config:h.config||h.handler}));return"function"==typeof h.handler?t(i,h.handler,h):h.handler&&"navigationStrategy"in h.handler?t(i,h.handler.navigationStrategy,h.handler):Promise.resolve(i)}if(this.catchAllHandler){var j=new Q(Object.assign({},g,{params:{path:c},queryParams:f&&f.queryParams,config:null}));return t(j,this.catchAllHandler)}return Promise.reject(new Error("Route not found: "+a))},a.prototype._createRouteConfig=function(a,b){var c=this;return Promise.resolve(a).then(function(a){return"string"==typeof a?{moduleId:a}:"function"==typeof a?a(b):a}).then(function(a){return"string"==typeof a?{moduleId:a}:a}).then(function(a){return a.route=b.params.path,s(a,c.routes),a.navModel||(a.navModel=c.createNavModel(a)),a})},K(a,[{key:"isRoot",get:function(){return!this.parent}}]),a}(),X=a.CanDeactivatePreviousStep=function(){function a(){}return a.prototype.run=function(a,b){return u(a.plan,"canDeactivate",b)},a}(),Y=a.CanActivateNextStep=function(){function a(){}return a.prototype.run=function(a,b){return x(a,"canActivate",b)},a}(),Z=a.DeactivatePreviousStep=function(){function a(){}return a.prototype.run=function(a,b){return u(a.plan,"deactivate",b,!0)},a}(),$=a.ActivateNextStep=function(){function a(){}return a.prototype.run=function(a,b){return x(a,"activate",b,!0)},a}(),_=function(){function a(a){this._subscribed=!0,this._subscription=a(this),this._subscribed||this.unsubscribe()}return a.prototype.unsubscribe=function(){this._subscribed&&this._subscription&&this._subscription.unsubscribe(),this._subscribed=!1},K(a,[{key:"subscribed",get:function(){return this._subscribed}}]),a}(),aa=a.RouteLoader=function(){function a(){}return a.prototype.loadRoute=function(a,b,c){throw Error('Route loaders must implement "loadRoute(router, config, navigationInstruction)".')},a}(),ba=a.LoadRouteStep=function(){function a(a){this.routeLoader=a}return a.inject=function(){return[aa]},a.prototype.run=function(a,b){return B(this.routeLoader,a).then(b)["catch"](b.cancel)},a}(),ca=function(){function a(a,b,c){this.steps=[],this.container=a,this.slotName=b,this.slotAlias=c}return a.prototype.getSteps=function(){var a=this;return this.steps.map(function(b){return a.container.get(b)})},a}(),da=a.PipelineProvider=function(){function a(a){this.container=a,this.steps=[V,X,ba,this._createPipelineSlot("authorize"),Y,this._createPipelineSlot("preActivate","modelbind"),Z,$,this._createPipelineSlot("preRender","precommit"),P,this._createPipelineSlot("postRender","postcomplete")]}return a.inject=function(){return[d.Container]},a.prototype.createPipeline=function(){var a=this,b=new O;return this.steps.forEach(function(c){return b.addStep(a.container.get(c))}),b},a.prototype._findStep=function(a){return this.steps.find(function(b){return b.slotName===a||b.slotAlias===a})},a.prototype.addStep=function(a,b){var c=this._findStep(a);if(!c)throw new Error("Invalid pipeline slot name: "+a+".");c.steps.includes(b)||c.steps.push(b)},a.prototype.removeStep=function(a,b){var c=this._findStep(a);c&&c.steps.splice(c.steps.indexOf(b),1)},a.prototype._clearSteps=function(){var a=arguments.length<=0||void 0===arguments[0]?"":arguments[0],b=this._findStep(a);b&&(b.steps=[])},a.prototype.reset=function(){this._clearSteps("authorize"),this._clearSteps("preActivate"),this._clearSteps("preRender"),this._clearSteps("postRender")},a.prototype._createPipelineSlot=function(a,b){return new ca(this.container,a,b)},a}(),ea=I.getLogger("app-router");a.AppRouter=function(a){function b(b,c,d,e){var f=h(this,a.call(this,b,c));return f.pipelineProvider=d,f.events=e,f}return i(b,a),b.inject=function(){return[d.Container,e.History,da,f.EventAggregator]},b.prototype.reset=function(){a.prototype.reset.call(this),this.maxInstructionCount=10,this._queue?this._queue.length=0:this._queue=[]},b.prototype.loadUrl=function(a){var b=this;return this._createNavigationInstruction(a).then(function(a){return b._queueInstruction(a)})["catch"](function(a){ea.error(a),H(b)})},b.prototype.registerViewPort=function(b,c){var d=this;if(a.prototype.registerViewPort.call(this,b,c),this.isActive)this._dequeueInstruction();else{var e=function(){var a=d._findViewModel(b);if("configureRouter"in a){if(!d.isConfigured){var c=function(){var b=d._resolveConfiguredPromise;return d._resolveConfiguredPromise=function(){},{v:{v:d.configure(function(b){return a.configureRouter(b,d)}).then(function(){d.activate(),b()})}}}();if("object"===("undefined"==typeof c?"undefined":J(c)))return c.v}}else d.activate()}();if("object"===("undefined"==typeof e?"undefined":J(e)))return e.v}return Promise.resolve()},b.prototype.activate=function(a){this.isActive||(this.isActive=!0,this.options=Object.assign({routeHandler:this.loadUrl.bind(this)},this.options,a),this.history.activate(this.options),this._dequeueInstruction())},b.prototype.deactivate=function(){this.isActive=!1,this.history.deactivate()},b.prototype._queueInstruction=function(a){var b=this;return new Promise(function(c){a.resolve=c,b._queue.unshift(a),b._dequeueInstruction()})},b.prototype._dequeueInstruction=function(){var a=this,b=arguments.length<=0||void 0===arguments[0]?0:arguments[0];return Promise.resolve().then(function(){if(!a.isNavigating||b){var c=a._queue.shift();if(a._queue.length=0,c){if(a.isNavigating=!0,c.previousInstruction=a.currentInstruction,b){if(b===a.maxInstructionCount-1)return ea.error(b+1+" navigation instructions have been attempted without success. Restoring last known good location."),H(a),a._dequeueInstruction(b+1);if(b>a.maxInstructionCount)throw new Error("Maximum navigation attempts exceeded. Giving up.")}else a.events.publish("router:navigation:processing",{instruction:c});var d=a.pipelineProvider.createPipeline();return d.run(c).then(function(d){return F(c,d,b,a)})["catch"](function(a){return{output:a instanceof Error?a:new Error(a)}}).then(function(d){return G(c,d,!!b,a)})}}})},b.prototype._findViewModel=function(a){if(this.container.viewModel)return this.container.viewModel;if(a.container)for(var b=a.container;b;){if(b.viewModel)return this.container.viewModel=b.viewModel,b.viewModel;b=b.parent}},b}(W)})}(),function(){var a=System.amdDefine;a("npm:aurelia-router@1.0.2.js",["npm:aurelia-router@1.0.2/aurelia-router"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-pal@1.0.0/aurelia-pal.js",["exports"],function(a){"use strict";function b(a,b,c){if(b){if(b.innerError&&c)return b;var d="\n------------------------------------------------\n";a+=d+"Inner Error:\n","string"==typeof b?a+="Message: "+b:(a+=b.message?"Message: "+b.message:"Unknown Inner Error Type. Displaying Inner Error as JSON:\n "+JSON.stringify(b,null,"  "),b.stack&&(a+="\nInner Error Stack:\n"+b.stack,a+="\nEnd Inner Error Stack")),a+=d}var e=new Error(a);return b&&(e.innerError=b),e}function c(a){"function"!=typeof Object.getPropertyDescriptor&&(Object.getPropertyDescriptor=function(a,b){for(var c=Object.getOwnPropertyDescriptor(a,b),d=Object.getPrototypeOf(a);"undefined"==typeof c&&null!==d;)c=Object.getOwnPropertyDescriptor(d,b),d=Object.getPrototypeOf(d);return c}),a(e,d,f)}Object.defineProperty(a,"__esModule",{value:!0}),a.AggregateError=b,a.initializePAL=c;var d=a.FEATURE={},e=a.PLATFORM={noop:function(){},eachModule:function(){}};e.global=function(){return"undefined"!=typeof self?self:"undefined"!=typeof global?global:new Function("return this")()}();var f=a.DOM={}})}(),function(){var a=System.amdDefine;a("npm:aurelia-pal@1.0.0.js",["npm:aurelia-pal@1.0.0/aurelia-pal"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-logging@1.0.0/aurelia-logging.js",["exports"],function(a){"use strict";function b(a,b,c){var d=o.length,e=void 0;for(c=p.call(c),c.unshift(a);d--;)e=o[d],e[b].apply(e,c)}function c(){4>n||b(this,"debug",arguments)}function d(){3>n||b(this,"info",arguments)}function e(){2>n||b(this,"warn",arguments)}function f(){1>n||b(this,"error",arguments)}function g(a){a.debug=c,a.info=d,a.warn=e,a.error=f}function h(a){var b=new r(a,q);return o.length&&g(b),b}function i(a){return m[a]||(m[a]=h(a))}function j(a){if(o.push(a),1===o.length)for(var b in m)g(m[b])}function k(a){n=a}Object.defineProperty(a,"__esModule",{value:!0}),a.getLogger=i,a.addAppender=j,a.setLevel=k;var l=a.logLevel={none:0,error:1,warn:2,info:3,debug:4},m={},n=l.none,o=[],p=Array.prototype.slice,q={},r=a.Logger=function(){function a(a,b){if(b!==q)throw new Error('Cannot instantiate "Logger". Use "getLogger" instead.');this.id=a}return a.prototype.debug=function(a){},a.prototype.info=function(a){},a.prototype.warn=function(a){},a.prototype.error=function(a){},a}()})}(),function(){var a=System.amdDefine;a("npm:aurelia-logging@1.0.0.js",["npm:aurelia-logging@1.0.0/aurelia-logging"],function(a){return a})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-router@1.0.0/route-href.js",["exports","aurelia-templating","aurelia-dependency-injection","aurelia-router","aurelia-pal","aurelia-logging"],function(a,b,c,d,e,f){"use strict";function g(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);return b["default"]=a,b}Object.defineProperty(a,"__esModule",{value:!0}),a.RouteHref=void 0;var h,i,j,k,l,m,n=g(f),o=n.getLogger("route-href");a.RouteHref=(h=(0,b.customAttribute)("route-href"),i=(0,b.bindable)({name:"route",changeHandler:"processChange"}),j=(0,b.bindable)({name:"params",changeHandler:"processChange"}),k=(0,b.bindable)({name:"attribute",defaultValue:"href"}),l=(0,c.inject)(d.Router,e.DOM.Element),h(m=i(m=j(m=k(m=l(m=function(){function a(a,b){this.router=a,this.element=b}return a.prototype.bind=function(){this.isActive=!0,this.processChange()},a.prototype.unbind=function(){this.isActive=!1},a.prototype.attributeChanged=function(a,b){b&&this.element.removeAttribute(b),this.processChange()},a.prototype.processChange=function(){var a=this;return this.router.ensureConfigured().then(function(){if(!a.isActive)return null;var b=a.router.generate(a.route,a.params);return a.element.setAttribute(a.attribute,b),null})["catch"](function(a){o.error(a)})},a}())||m)||m)||m)||m)||m)})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-router@1.0.0/aurelia-templating-router.js",["exports","aurelia-router","./route-loader","./router-view","./route-href"],function(a,b,c,d,e){"use strict";function f(a){a.singleton(b.RouteLoader,c.TemplatingRouteLoader).singleton(b.Router,b.AppRouter).globalResources("./router-view","./route-href"),a.container.registerAlias(b.Router,b.AppRouter)}Object.defineProperty(a,"__esModule",{value:!0}),a.configure=a.RouteHref=a.RouterView=a.TemplatingRouteLoader=void 0,a.TemplatingRouteLoader=c.TemplatingRouteLoader,a.RouterView=d.RouterView,a.RouteHref=e.RouteHref,a.configure=f})}(),function(){var a=System.amdDefine;a("npm:aurelia-templating-router@1.0.0.js",["npm:aurelia-templating-router@1.0.0/aurelia-templating-router"],function(a){return a})}(),System.registerDynamic("npm:bibtex-parser-js@0.0.2/bibtexParse.js",[],!0,function(a,b,c){this||self;return function(a){function b(){this.pos=0,this.input="",this.entries=new Array,this.strings={JAN:"January",FEB:"February",MAR:"March",APR:"April",MAY:"May",JUN:"June",JUL:"July",AUG:"August",SEP:"September",OCT:"October",NOV:"November",DEC:"December"},this.currentEntry="",this.setInput=function(a){this.input=a},this.getEntries=function(){return this.entries},this.isWhitespace=function(a){return" "==a||"\r"==a||"	"==a||"\n"==a},this.match=function(a){if(this.skipWhitespace(),this.input.substring(this.pos,this.pos+a.length)!=a)throw"Token mismatch, expected "+a+", found "+this.input.substring(this.pos);this.pos+=a.length,this.skipWhitespace()},this.tryMatch=function(a){return this.skipWhitespace(),this.input.substring(this.pos,this.pos+a.length)==a},this.matchAt=function(){for(;this.input.length>this.pos&&"@"!=this.input[this.pos];)this.pos++;return"@"==this.input[this.pos]},this.skipWhitespace=function(){for(;this.isWhitespace(this.input[this.pos]);)this.pos++;if("%"==this.input[this.pos]){for(;"\n"!=this.input[this.pos];)this.pos++;this.skipWhitespace()}},this.value_braces=function(){var a=0;this.match("{");for(var b=this.pos;;){if("}"==this.input[this.pos]&&"\\"!=this.input[this.pos-1]){if(!(a>0)){var c=this.pos;return this.match("}"),this.input.substring(b,c)}a--}else if("{"==this.input[this.pos])a++;else if(this.pos==this.input.length-1)throw"Unterminated value";this.pos++}},this.value_quotes=function(){this.match('"');for(var a=this.pos;;){if('"'==this.input[this.pos]&&"\\"!=this.input[this.pos-1]){var b=this.pos;return this.match('"'),this.input.substring(a,b)}if(this.pos==this.input.length-1)throw"Unterminated value:"+this.input.substring(a);this.pos++}},this.single_value=function(){var a=this.pos;if(this.tryMatch("{"))return this.value_braces();if(this.tryMatch('"'))return this.value_quotes();var b=this.key();if(this.strings[b.toUpperCase()])return this.strings[b];if(b.match("^[0-9]+$"))return b;throw"Value expected:"+this.input.substring(a)},this.value=function(){var a=[];for(a.push(this.single_value());this.tryMatch("#");)this.match("#"),a.push(this.single_value());return a.join("")},this.key=function(){for(var a=this.pos;;){if(this.pos==this.input.length)throw"Runaway key";if(!this.input[this.pos].match("[a-zA-Z0-9_:\\./-]"))return this.input.substring(a,this.pos).toUpperCase();this.pos++}},this.key_equals_value=function(){var a=this.key();if(this.tryMatch("=")){this.match("=");var b=this.value();return[a,b]}throw"... = value expected, equals sign missing:"+this.input.substring(this.pos)},this.key_value_list=function(){var a=this.key_equals_value();for(this.currentEntry.entryTags={},this.currentEntry.entryTags[a[0]]=a[1];this.tryMatch(",")&&(this.match(","),!this.tryMatch("}"));)a=this.key_equals_value(),this.currentEntry.entryTags[a[0]]=a[1]},this.entry_body=function(a){this.currentEntry={},this.currentEntry.citationKey=this.key(),this.currentEntry.entryType=a.substring(1),this.match(","),this.key_value_list(),this.entries.push(this.currentEntry)},this.directive=function(){return this.match("@"),"@"+this.key()},this.string=function(){var a=this.key_equals_value();this.strings[a[0].toUpperCase()]=a[1]},this.preamble=function(){this.value()},this.comment=function(){this.single_value()},this.entry=function(a){this.entry_body(a)},this.bibtex=function(){for(;this.matchAt();){var a=this.directive().toUpperCase();this.match("{"),"@STRING"==a?this.string():"@PREAMBLE"==a?this.preamble():"@COMMENT"==a?this.comment():this.entry(a),this.match("}")}}}a.toJSON=function(a){var c=new b;return c.setInput(a),c.bibtex(),c.entries}}("undefined"==typeof b?this.bibtexParse={}:b),c.exports}),System.registerDynamic("npm:bibtex-parser-js@0.0.2.js",["npm:bibtex-parser-js@0.0.2/bibtexParse.js"],!0,function(a,b,c){this||self;return c.exports=a("npm:bibtex-parser-js@0.0.2/bibtexParse.js"),c.exports}),System.registerDynamic("npm:base64-js@0.0.8/lib/b64.js",[],!0,function(a,b,c){var d=(this||self,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");return function(a){"use strict";function b(a){var b=a.charCodeAt(0);return b===g||b===l?62:b===h||b===m?63:i>b?-1:i+10>b?b-i+26+26:k+26>b?b-k:j+26>b?b-j+26:void 0}function c(a){function c(a){j[l++]=a}var d,e,g,h,i,j;if(a.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=a.length;i="="===a.charAt(k-2)?2:"="===a.charAt(k-1)?1:0,j=new f(3*a.length/4-i),g=i>0?a.length-4:a.length;var l=0;for(d=0,e=0;g>d;d+=4,e+=3)h=b(a.charAt(d))<<18|b(a.charAt(d+1))<<12|b(a.charAt(d+2))<<6|b(a.charAt(d+3)),c((16711680&h)>>16),c((65280&h)>>8),c(255&h);return 2===i?(h=b(a.charAt(d))<<2|b(a.charAt(d+1))>>4,c(255&h)):1===i&&(h=b(a.charAt(d))<<10|b(a.charAt(d+1))<<4|b(a.charAt(d+2))>>2,c(h>>8&255),c(255&h)),j}function e(a){function b(a){return d.charAt(a)}function c(a){return b(a>>18&63)+b(a>>12&63)+b(a>>6&63)+b(63&a)}var e,f,g,h=a.length%3,i="";for(e=0,g=a.length-h;g>e;e+=3)f=(a[e]<<16)+(a[e+1]<<8)+a[e+2],i+=c(f);switch(h){case 1:f=a[a.length-1],i+=b(f>>2),i+=b(f<<4&63),i+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],i+=b(f>>10),i+=b(f>>4&63),i+=b(f<<2&63),i+="="}return i}var f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="+".charCodeAt(0),h="/".charCodeAt(0),i="0".charCodeAt(0),j="a".charCodeAt(0),k="A".charCodeAt(0),l="-".charCodeAt(0),m="_".charCodeAt(0);a.toByteArray=c,a.fromByteArray=e}("undefined"==typeof b?this.base64js={}:b),c.exports}),System.registerDynamic("npm:base64-js@0.0.8.js",["npm:base64-js@0.0.8/lib/b64.js"],!0,function(a,b,c){this||self;return c.exports=a("npm:base64-js@0.0.8/lib/b64.js"),c.exports}),System.registerDynamic("npm:ieee754@1.1.8/index.js",[],!0,function(a,b,c){this||self;return b.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<<h)-1,j=i>>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},b.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<<j)-1,l=k>>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=0>b||0===b&&0>1/b?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<<e|h,j+=e;j>0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p},c.exports}),System.registerDynamic("npm:ieee754@1.1.8.js",["npm:ieee754@1.1.8/index.js"],!0,function(a,b,c){this||self;return c.exports=a("npm:ieee754@1.1.8/index.js"),c.exports}),System.registerDynamic("npm:isarray@1.0.0/index.js",[],!0,function(a,b,c){var d=(this||self,{}.toString);return c.exports=Array.isArray||function(a){return"[object Array]"==d.call(a)},c.exports}),System.registerDynamic("npm:isarray@1.0.0.js",["npm:isarray@1.0.0/index.js"],!0,function(a,b,c){this||self;return c.exports=a("npm:isarray@1.0.0/index.js"),c.exports}),System.registerDynamic("npm:buffer@3.6.0/index.js",["base64-js","ieee754","isarray"],!0,function(a,b,c){"use strict";function d(){function a(){}try{var b=new Uint8Array(1);return b.foo=function(){return 42},b.constructor=a,42===b.foo()&&b.constructor===a&&"function"==typeof b.subarray&&0===b.subarray(1,1).byteLength}catch(c){return!1}}function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}function g(a,b){if(a=p(a,0>b?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;b>c;c++)a[c]=0;return a}function h(a,b,c){"string"==typeof c&&""!==c||(c="utf8");var d=0|s(b,c);return a=p(a,d),a.write(b,c),a}function i(a,b){if(f.isBuffer(b))return j(a,b);if(Z(b))return k(a,b);if(null==b)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}function j(a,b){var c=0|q(b.length);return a=p(a,c),b.copy(a,0,0,c),a}function k(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function l(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function m(a,b){return f.TYPED_ARRAY_SUPPORT?(b.byteLength,a=f._augment(new Uint8Array(b))):a=l(a,new Uint8Array(b)),a}function n(a,b){var c=0|q(b.length);a=p(a,c);for(var d=0;c>d;d+=1)a[d]=255&b[d];return a}function o(a,b){var c,d=0;"Buffer"===b.type&&Z(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);for(var e=0;d>e;e+=1)a[e]=255&c[e];return a}function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=f._augment(new Uint8Array(b)),a.__proto__=f.prototype):(a.length=b,a._isBuffer=!0);var c=0!==b&&b<=f.poolSize>>>1;return c&&(a.parent=$),a}function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");
  return 0|a}function r(a,b){if(!(this instanceof r))return new r(a,b);var c=new f(a,b);return delete c.parent,c}function s(a,b){"string"!=typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var d=!1;;)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;case"utf8":case"utf-8":return R(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;case"hex":return c>>>1;case"base64":return U(a).length;default:if(d)return R(a).length;b=(""+b).toLowerCase(),d=!0}}function t(a,b,c){var d=!1;if(b=0|b,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),0>b&&(b=0),c>this.length&&(c=this.length),b>=c)return"";for(;;)switch(a){case"hex":return F(this,b,c);case"utf8":case"utf-8":return B(this,b,c);case"ascii":return D(this,b,c);case"binary":return E(this,b,c);case"base64":return A(this,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),d=!0}}function u(a,b,c,d){c=Number(c)||0;var e=a.length-c;d?(d=Number(d),d>e&&(d=e)):d=e;var f=b.length;if(f%2!==0)throw new Error("Invalid hex string");d>f/2&&(d=f/2);for(var g=0;d>g;g++){var h=parseInt(b.substr(2*g,2),16);if(isNaN(h))throw new Error("Invalid hex string");a[c+g]=h}return g}function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}function w(a,b,c,d){return V(S(b),a,c,d)}function x(a,b,c,d){return w(a,b,c,d)}function y(a,b,c,d){return V(U(b),a,c,d)}function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}function A(a,b,c){return 0===b&&c===a.length?X.fromByteArray(a):X.fromByteArray(a.slice(b,c))}function B(a,b,c){c=Math.min(a.length,c);for(var d=[],e=b;c>e;){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;if(c>=e+h){var i,j,k,l;switch(h){case 1:128>f&&(g=f);break;case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));break;case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(55296>l||l>57343)&&(g=l));break;case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&1114112>l&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return C(d)}function C(a){var b=a.length;if(_>=b)return String.fromCharCode.apply(String,a);for(var c="",d=0;b>d;)c+=String.fromCharCode.apply(String,a.slice(d,d+=_));return c}function D(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(127&a[e]);return d}function E(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function F(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=Q(a[f]);return e}function G(a,b,c){for(var d=a.slice(b,c),e="",f=0;f<d.length;f+=2)e+=String.fromCharCode(d[f]+256*d[f+1]);return e}function H(a,b,c){if(a%1!==0||0>a)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}function I(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");if(b>e||g>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range")}function J(a,b,c,d){0>b&&(b=65535+b+1);for(var e=0,f=Math.min(a.length-c,2);f>e;e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}function K(a,b,c,d){0>b&&(b=4294967295+b+1);for(var e=0,f=Math.min(a.length-c,4);f>e;e++)a[c+e]=b>>>8*(d?e:3-e)&255}function L(a,b,c,d,e,f){if(b>e||f>b)throw new RangeError("value is out of bounds");if(c+d>a.length)throw new RangeError("index out of range");if(0>c)throw new RangeError("index out of range")}function M(a,b,c,d,e){return e||L(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),Y.write(a,b,c,d,23,4),c+4}function N(a,b,c,d,e){return e||L(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),Y.write(a,b,c,d,52,8),c+8}function O(a){if(a=P(a).replace(ba,""),a.length<2)return"";for(;a.length%4!==0;)a+="=";return a}function P(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function Q(a){return 16>a?"0"+a.toString(16):a.toString(16)}function R(a,b){b=b||1/0;for(var c,d=a.length,e=null,f=[],g=0;d>g;g++){if(c=a.charCodeAt(g),c>55295&&57344>c){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);continue}e=c;continue}if(56320>c){(b-=3)>-1&&f.push(239,191,189),e=c;continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);if(e=null,128>c){if((b-=1)<0)break;f.push(c)}else if(2048>c){if((b-=2)<0)break;f.push(c>>6|192,63&c|128)}else if(65536>c){if((b-=3)<0)break;f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(1114112>c))throw new Error("Invalid code point");if((b-=4)<0)break;f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}function S(a){for(var b=[],c=0;c<a.length;c++)b.push(255&a.charCodeAt(c));return b}function T(a,b){for(var c,d,e,f=[],g=0;g<a.length&&!((b-=2)<0);g++)c=a.charCodeAt(g),d=c>>8,e=c%256,f.push(e),f.push(d);return f}function U(a){return X.toByteArray(O(a))}function V(a,b,c,d){for(var e=0;d>e&&!(e+c>=b.length||e>=a.length);e++)b[e+c]=a[e];return e}var W=this||self,X=a("base64-js"),Y=a("ieee754"),Z=a("isarray");b.Buffer=f,b.SlowBuffer=r,b.INSPECT_MAX_BYTES=50,f.poolSize=8192;var $={};f.TYPED_ARRAY_SUPPORT=void 0!==W.TYPED_ARRAY_SUPPORT?W.TYPED_ARRAY_SUPPORT:d(),f.TYPED_ARRAY_SUPPORT?(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array):(f.prototype.length=void 0,f.prototype.parent=void 0),f.isBuffer=function(a){return!(null==a||!a._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);g>e&&a[e]===b[e];)++e;return e!==g&&(c=a[e],d=b[e]),d>c?-1:c>d?1:0},f.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(a,b){if(!Z(a))throw new TypeError("list argument must be an Array of Buffers.");if(0===a.length)return new f(0);var c;if(void 0===b)for(b=0,c=0;c<a.length;c++)b+=a[c].length;var d=new f(b),e=0;for(c=0;c<a.length;c++){var g=a[c];g.copy(d,e),e+=g.length}return d},f.byteLength=s,f.prototype.toString=function(){var a=0|this.length;return 0===a?"":0===arguments.length?B(this,0,a):t.apply(this,arguments)},f.prototype.equals=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?!0:0===f.compare(this,a)},f.prototype.inspect=function(){var a="",c=b.INSPECT_MAX_BYTES;return this.length>0&&(a=this.toString("hex",0,c).match(/.{2}/g).join(" "),this.length>c&&(a+=" ... ")),"<Buffer "+a+">"},f.prototype.compare=function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a?0:f.compare(this,a)},f.prototype.indexOf=function(a,b){function c(a,b,c){for(var d=-1,e=0;c+e<a.length;e++)if(a[c+e]===b[-1===d?0:e-d]){if(-1===d&&(d=e),e-d+1===b.length)return c+d}else d=-1;return-1}if(b>2147483647?b=2147483647:-2147483648>b&&(b=-2147483648),b>>=0,0===this.length)return-1;if(b>=this.length)return-1;if(0>b&&(b=Math.max(this.length+b,0)),"string"==typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,b);if(f.isBuffer(a))return c(this,a,b);if("number"==typeof a)return f.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,a,b):c(this,[a],b);throw new TypeError("val must be string, number or Buffer")},f.prototype.get=function(a){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(a)},f.prototype.set=function(a,b){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(a,b)},f.prototype.write=function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;else if(isFinite(b))b=0|b,isFinite(c)?(c=0|c,void 0===d&&(d="utf8")):(d=c,c=void 0);else{var e=d;d=b,b=0|c,c=e}var f=this.length-b;if((void 0===c||c>f)&&(c=f),a.length>0&&(0>c||0>b)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");d||(d="utf8");for(var g=!1;;)switch(d){case"hex":return u(this,a,b,c);case"utf8":case"utf-8":return v(this,a,b,c);case"ascii":return w(this,a,b,c);case"binary":return x(this,a,b,c);case"base64":return y(this,a,b,c);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);default:if(g)throw new TypeError("Unknown encoding: "+d);d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;f.prototype.slice=function(a,b){var c=this.length;a=~~a,b=void 0===b?c:~~b,0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c),0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c),a>b&&(b=a);var d;if(f.TYPED_ARRAY_SUPPORT)d=f._augment(this.subarray(a,b));else{var e=b-a;d=new f(e,void 0);for(var g=0;e>g;g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return d},f.prototype.readUIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a+--b],e=1;b>0&&(e*=256);)d+=this[a+--b]*e;return d},f.prototype.readUInt8=function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=this[a],e=1,f=0;++f<b&&(e*=256);)d+=this[a+f]*e;return e*=128,d>=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=function(a,b,c){a=0|a,b=0|b,c||H(a,b,this.length);for(var d=b,e=1,f=this[a+--d];d>0&&(e*=256);)f+=this[a+--d]*e;return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=function(a,b){return b||H(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},f.prototype.readInt16LE=function(a,b){b||H(a,2,this.length);var c=this[a]|this[a+1]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt16BE=function(a,b){b||H(a,2,this.length);var c=this[a+1]|this[a]<<8;return 32768&c?4294901760|c:c},f.prototype.readInt32LE=function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),Y.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),Y.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),Y.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),Y.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f<c&&(e*=256);)this[b+f]=a/e&255;return b+c},f.prototype.writeUIntBE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=c-1,f=1;for(this[b+e]=255&a;--e>=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f<c&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c);var e,g=d-c;if(this===a&&b>c&&d>b)for(e=g-1;e>=0;e--)a[e+b]=this[e+c];else if(1e3>g||!f.TYPED_ARRAY_SUPPORT)for(e=0;g>e;e++)a[e+b]=this[e+c];else a._set(this.subarray(c,c+g),b);return g},f.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new RangeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new RangeError("start out of bounds");if(0>c||c>this.length)throw new RangeError("end out of bounds");var d;if("number"==typeof a)for(d=b;c>d;d++)this[d]=a;else{var e=R(a.toString()),f=e.length;for(d=b;c>d;d++)this[d]=e[d%f]}return this}},f.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(f.TYPED_ARRAY_SUPPORT)return new f(this).buffer;for(var a=new Uint8Array(this.length),b=0,c=a.length;c>b;b+=1)a[b]=this[b];return a.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var aa=f.prototype;f._augment=function(a){return a.constructor=f,a._isBuffer=!0,a._set=a.set,a.get=aa.get,a.set=aa.set,a.write=aa.write,a.toString=aa.toString,a.toLocaleString=aa.toString,a.toJSON=aa.toJSON,a.equals=aa.equals,a.compare=aa.compare,a.indexOf=aa.indexOf,a.copy=aa.copy,a.slice=aa.slice,a.readUIntLE=aa.readUIntLE,a.readUIntBE=aa.readUIntBE,a.readUInt8=aa.readUInt8,a.readUInt16LE=aa.readUInt16LE,a.readUInt16BE=aa.readUInt16BE,a.readUInt32LE=aa.readUInt32LE,a.readUInt32BE=aa.readUInt32BE,a.readIntLE=aa.readIntLE,a.readIntBE=aa.readIntBE,a.readInt8=aa.readInt8,a.readInt16LE=aa.readInt16LE,a.readInt16BE=aa.readInt16BE,a.readInt32LE=aa.readInt32LE,a.readInt32BE=aa.readInt32BE,a.readFloatLE=aa.readFloatLE,a.readFloatBE=aa.readFloatBE,a.readDoubleLE=aa.readDoubleLE,a.readDoubleBE=aa.readDoubleBE,a.writeUInt8=aa.writeUInt8,a.writeUIntLE=aa.writeUIntLE,a.writeUIntBE=aa.writeUIntBE,a.writeUInt16LE=aa.writeUInt16LE,a.writeUInt16BE=aa.writeUInt16BE,a.writeUInt32LE=aa.writeUInt32LE,a.writeUInt32BE=aa.writeUInt32BE,a.writeIntLE=aa.writeIntLE,a.writeIntBE=aa.writeIntBE,a.writeInt8=aa.writeInt8,a.writeInt16LE=aa.writeInt16LE,a.writeInt16BE=aa.writeInt16BE,a.writeInt32LE=aa.writeInt32LE,a.writeInt32BE=aa.writeInt32BE,a.writeFloatLE=aa.writeFloatLE,a.writeFloatBE=aa.writeFloatBE,a.writeDoubleLE=aa.writeDoubleLE,a.writeDoubleBE=aa.writeDoubleBE,a.fill=aa.fill,a.inspect=aa.inspect,a.toArrayBuffer=aa.toArrayBuffer,a};var ba=/[^+\/0-9A-Za-z-_]/g;return c.exports}),System.registerDynamic("npm:buffer@3.6.0.js",["npm:buffer@3.6.0/index.js"],!0,function(a,b,c){this||self;return c.exports=a("npm:buffer@3.6.0/index.js"),c.exports}),System.registerDynamic("github:jspm/nodelibs-buffer@0.1.0/index.js",["buffer"],!0,function(a,b,c){this||self;return c.exports=System._nodeRequire?System._nodeRequire("buffer"):a("buffer"),c.exports}),System.registerDynamic("github:jspm/nodelibs-buffer@0.1.0.js",["github:jspm/nodelibs-buffer@0.1.0/index"],!0,function(a,b,c){this||self;return c.exports=a("github:jspm/nodelibs-buffer@0.1.0/index"),c.exports}),System.registerDynamic("npm:process@0.11.9/browser.js",[],!0,function(a,b,c){function d(){throw new Error("setTimeout has not been defined")}function e(){throw new Error("clearTimeout has not been defined")}function f(a){if(l===setTimeout)return setTimeout(a,0);if((l===d||!l)&&setTimeout)return l=setTimeout,setTimeout(a,0);try{return l(a,0)}catch(b){try{return l.call(null,a,0)}catch(b){return l.call(this,a,0)}}}function g(a){if(m===clearTimeout)return clearTimeout(a);if((m===e||!m)&&clearTimeout)return m=clearTimeout,clearTimeout(a);try{return m(a)}catch(b){try{return m.call(null,a)}catch(b){return m.call(this,a)}}}function h(){q&&o&&(q=!1,o.length?p=o.concat(p):r=-1,p.length&&i())}function i(){if(!q){var a=f(h);q=!0;for(var b=p.length;b;){for(o=p,p=[];++r<b;)o&&o[r].run();r=-1,b=p.length}o=null,q=!1,g(a)}}function j(a,b){this.fun=a,this.array=b}function k(){}var l,m,n=(this||self,c.exports={});!function(){try{l="function"==typeof setTimeout?setTimeout:d}catch(a){l=d}try{m="function"==typeof clearTimeout?clearTimeout:e}catch(a){m=e}}();var o,p=[],q=!1,r=-1;return n.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];p.push(new j(a,b)),1!==p.length||q||f(i)},j.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=k,n.addListener=k,n.once=k,n.off=k,n.removeListener=k,n.removeAllListeners=k,n.emit=k,n.binding=function(a){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(a){throw new Error("process.chdir is not supported")},n.umask=function(){return 0},c.exports}),System.registerDynamic("npm:process@0.11.9.js",["npm:process@0.11.9/browser.js"],!0,function(a,b,c){this||self;return c.exports=a("npm:process@0.11.9/browser.js"),c.exports}),System.registerDynamic("github:jspm/nodelibs-process@0.1.2/index.js",["process"],!0,function(a,b,c){this||self;return c.exports=System._nodeRequire?process:a("process"),c.exports}),System.registerDynamic("github:jspm/nodelibs-process@0.1.2.js",["github:jspm/nodelibs-process@0.1.2/index"],!0,function(a,b,c){this||self;return c.exports=a("github:jspm/nodelibs-process@0.1.2/index"),c.exports}),System.registerDynamic("npm:d3@4.4.1/build/d3.js",["buffer","process"],!0,function(a,b,c){"format cjs";var d;this||self;return function(a,e){!function(a,e){"object"==typeof b&&"undefined"!=typeof c?e(b):"function"==typeof d&&d.amd?d(["exports"],e):e(a.d3=a.d3||{})}(this,function(a){"use strict";function b(a){return function(b,c){return wj(a(b),c)}}function c(a,b,c){var d=Math.abs(b-a)/Math.max(0,c),e=Math.pow(10,Math.floor(Math.log(d)/Math.LN10)),f=d/e;return f>=Mj?e*=10:f>=Nj?e*=5:f>=Oj&&(e*=2),a>b?-e:e}function d(a){return a.length}function e(){}function f(a,b){var c=new e;if(a instanceof e)a.each(function(a,b){c.set(b,a)});else if(Array.isArray(a)){var d,f=-1,g=a.length;if(null==b)for(;++f<g;)c.set(f,a[f]);else for(;++f<g;)c.set(b(d=a[f],f,a),d)}else if(a)for(var h in a)c.set(h,a[h]);return c}function g(){return{}}function h(a,b,c){a[b]=c}function i(){return f()}function j(a,b,c){a.set(b,c)}function k(){}function l(a,b){var c=new k;if(a instanceof k)a.each(function(a){c.add(a)});else if(a){var d=-1,e=a.length;if(null==b)for(;++d<e;)c.add(a[d]);else for(;++d<e;)c.add(b(a[d],d,a))}return c}function m(a){return+a}function n(a){return a*a}function o(a){return a*(2-a)}function p(a){return((a*=2)<=1?a*a:--a*(2-a)+1)/2}function q(a){return a*a*a}function r(a){return--a*a*a+1}function s(a){return((a*=2)<=1?a*a*a:(a-=2)*a*a+2)/2}function t(a){return 1-Math.cos(a*wk)}function u(a){return Math.sin(a*wk)}function v(a){return(1-Math.cos(vk*a))/2}function w(a){return Math.pow(2,10*a-10)}function x(a){return 1-Math.pow(2,-10*a)}function y(a){return((a*=2)<=1?Math.pow(2,10*a-10):2-Math.pow(2,10-10*a))/2}function z(a){return 1-Math.sqrt(1-a*a)}function A(a){return Math.sqrt(1- --a*a)}function B(a){return((a*=2)<=1?1-Math.sqrt(1-a*a):Math.sqrt(1-(a-=2)*a)+1)/2}function C(a){return 1-D(1-a)}function D(a){return(a=+a)<xk?Gk*a*a:zk>a?Gk*(a-=yk)*a+Ak:Ck>a?Gk*(a-=Bk)*a+Dk:Gk*(a-=Ek)*a+Fk}function E(a){return((a*=2)<=1?1-D(1-a):D(a-1)+1)/2}function F(a,b){return a[0]-b[0]||a[1]-b[1]}function G(a){for(var b=a.length,c=[0,1],d=2,e=2;b>e;++e){for(;d>1&&Tk(a[c[d-2]],a[c[d-1]],a[e])<=0;)--d;c[d++]=e}return c.slice(0,d)}function H(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function I(){return new H}function J(a,b,c,d){if(isNaN(b)||isNaN(c))return a;var e,f,g,h,i,j,k,l,m,n=a._root,o={data:d},p=a._x0,q=a._y0,r=a._x1,s=a._y1;if(!n)return a._root=o,a;for(;n.length;)if((j=b>=(f=(p+r)/2))?p=f:r=f,(k=c>=(g=(q+s)/2))?q=g:s=g,e=n,!(n=n[l=k<<1|j]))return e[l]=o,a;if(h=+a._x.call(null,n.data),i=+a._y.call(null,n.data),b===h&&c===i)return o.next=n,e?e[l]=o:a._root=o,a;do e=e?e[l]=new Array(4):a._root=new Array(4),(j=b>=(f=(p+r)/2))?p=f:r=f,(k=c>=(g=(q+s)/2))?q=g:s=g;while((l=k<<1|j)===(m=(i>=g)<<1|h>=f));return e[m]=n,e[l]=o,a}function K(a){var b,c,d,e,f=a.length,g=new Array(f),h=new Array(f),i=1/0,j=1/0,k=-(1/0),l=-(1/0);for(c=0;f>c;++c)isNaN(d=+this._x.call(null,b=a[c]))||isNaN(e=+this._y.call(null,b))||(g[c]=d,h[c]=e,i>d&&(i=d),d>k&&(k=d),j>e&&(j=e),e>l&&(l=e));for(i>k&&(i=this._x0,k=this._x1),j>l&&(j=this._y0,l=this._y1),this.cover(i,j).cover(k,l),c=0;f>c;++c)J(this,g[c],h[c],a[c]);return this}function L(a){for(var b=0,c=a.length;c>b;++b)this.remove(a[b]);return this}function M(a){return a[0]}function N(a){return a[1]}function O(a,b,c){var d=new P(null==b?M:b,null==c?N:c,NaN,NaN,NaN,NaN);return null==a?d:d.addAll(a)}function P(a,b,c,d,e,f){this._x=a,this._y=b,this._x0=c,this._y0=d,this._x1=e,this._y1=f,this._root=void 0}function Q(a){for(var b={data:a.data},c=b;a=a.next;)c=c.next={data:a.data};return b}function R(a){if(!(a>=1))throw new Error;this._size=a,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function S(a){if(!a._start)try{T(a)}catch(b){if(a._tasks[a._ended+a._active-1])V(a,b);else if(!a._data)throw b}}function T(a){for(;a._start=a._waiting&&a._active<a._size;){var b=a._ended+a._active,c=a._tasks[b],d=c.length-1,e=c[d];c[d]=U(a,b),--a._waiting,++a._active,c=e.apply(null,c),a._tasks[b]&&(a._tasks[b]=c||ol)}}function U(a,b){return function(c,d){a._tasks[b]&&(--a._active,++a._ended,a._tasks[b]=null,null==a._error&&(null!=c?V(a,c):(a._data[b]=d,a._waiting?S(a):W(a))))}}function V(a,b){var c,d=a._tasks.length;for(a._error=b,a._data=void 0,a._waiting=NaN;--d>=0;)if((c=a._tasks[d])&&(a._tasks[d]=null,c.abort))try{c.abort()}catch(b){}a._active=NaN,W(a)}function W(a){if(!a._active&&a._call){var b=a._data;a._data=void 0,a._call(a._error,b)}}function X(a){return new R(arguments.length?+a:1/0)}function Y(a){return a.innerRadius}function Z(a){return a.outerRadius}function $(a){return a.startAngle}function _(a){return a.endAngle}function aa(a){return a&&a.padAngle}function ba(a){return a>=1?sl:-1>=a?-sl:Math.asin(a)}function ca(a,b,c,d,e,f,g,h){var i=c-a,j=d-b,k=g-e,l=h-f,m=(k*(b-f)-l*(a-e))/(l*i-k*j);return[a+m*i,b+m*j]}function da(a,b,c,d,e,f,g){var h=a-c,i=b-d,j=(g?f:-f)/Math.sqrt(h*h+i*i),k=j*i,l=-j*h,m=a+k,n=b+l,o=c+k,p=d+l,q=(m+o)/2,r=(n+p)/2,s=o-m,t=p-n,u=s*s+t*t,v=e-f,w=m*p-o*n,x=(0>t?-1:1)*Math.sqrt(Math.max(0,v*v*u-w*w)),y=(w*t-s*x)/u,z=(-w*s-t*x)/u,A=(w*t+s*x)/u,B=(-w*s+t*x)/u,C=y-q,D=z-r,E=A-q,F=B-r;return C*C+D*D>E*E+F*F&&(y=A,z=B),{cx:y,cy:z,x01:-k,y01:-l,x11:y*(e/v-1),y11:z*(e/v-1)}}function ea(a){this._context=a}function fa(a){return a[0]}function ga(a){return a[1]}function ha(a){this._curve=a}function ia(a){function b(b){return new ha(a(b))}return b._curve=a,b}function ja(a){var b=a.curve;return a.angle=a.x,delete a.x,a.radius=a.y,delete a.y,a.curve=function(a){return arguments.length?b(ia(a)):b()._curve},a}function ka(a,b,c){a._context.bezierCurveTo((2*a._x0+a._x1)/3,(2*a._y0+a._y1)/3,(a._x0+2*a._x1)/3,(a._y0+2*a._y1)/3,(a._x0+4*a._x1+b)/6,(a._y0+4*a._y1+c)/6)}function la(a){this._context=a}function ma(a){this._context=a}function na(a){this._context=a}function oa(a,b){this._basis=new la(a),this._beta=b}function pa(a,b,c){a._context.bezierCurveTo(a._x1+a._k*(a._x2-a._x0),a._y1+a._k*(a._y2-a._y0),a._x2+a._k*(a._x1-b),a._y2+a._k*(a._y1-c),a._x2,a._y2)}function qa(a,b){this._context=a,this._k=(1-b)/6}function ra(a,b){this._context=a,this._k=(1-b)/6}function sa(a,b){this._context=a,this._k=(1-b)/6}function ta(a,b,c){var d=a._x1,e=a._y1,f=a._x2,g=a._y2;if(a._l01_a>ql){var h=2*a._l01_2a+3*a._l01_a*a._l12_a+a._l12_2a,i=3*a._l01_a*(a._l01_a+a._l12_a);d=(d*h-a._x0*a._l12_2a+a._x2*a._l01_2a)/i,e=(e*h-a._y0*a._l12_2a+a._y2*a._l01_2a)/i}if(a._l23_a>ql){var j=2*a._l23_2a+3*a._l23_a*a._l12_a+a._l12_2a,k=3*a._l23_a*(a._l23_a+a._l12_a);f=(f*j+a._x1*a._l23_2a-b*a._l12_2a)/k,g=(g*j+a._y1*a._l23_2a-c*a._l12_2a)/k}a._context.bezierCurveTo(d,e,f,g,a._x2,a._y2)}function ua(a,b){this._context=a,this._alpha=b}function va(a,b){this._context=a,this._alpha=b}function wa(a,b){this._context=a,this._alpha=b}function xa(a){this._context=a}function ya(a){return 0>a?-1:1}function za(a,b,c){var d=a._x1-a._x0,e=b-a._x1,f=(a._y1-a._y0)/(d||0>e&&-0),g=(c-a._y1)/(e||0>d&&-0),h=(f*e+g*d)/(d+e);return(ya(f)+ya(g))*Math.min(Math.abs(f),Math.abs(g),.5*Math.abs(h))||0}function Aa(a,b){var c=a._x1-a._x0;return c?(3*(a._y1-a._y0)/c-b)/2:b}function Ba(a,b,c){var d=a._x0,e=a._y0,f=a._x1,g=a._y1,h=(f-d)/3;a._context.bezierCurveTo(d+h,e+h*b,f-h,g-h*c,f,g)}function Ca(a){this._context=a}function Da(a){this._context=new Ea(a)}function Ea(a){this._context=a}function Fa(a){return new Ca(a)}function Ga(a){return new Da(a)}function Ha(a){this._context=a}function Ia(a){var b,c,d=a.length-1,e=new Array(d),f=new Array(d),g=new Array(d);for(e[0]=0,f[0]=2,g[0]=a[0]+2*a[1],b=1;d-1>b;++b)e[b]=1,f[b]=4,g[b]=4*a[b]+2*a[b+1];for(e[d-1]=2,f[d-1]=7,g[d-1]=8*a[d-1]+a[d],b=1;d>b;++b)c=e[b]/f[b-1],f[b]-=c,g[b]-=c*g[b-1];for(e[d-1]=g[d-1]/f[d-1],b=d-2;b>=0;--b)e[b]=(g[b]-e[b+1])/f[b];for(f[d-1]=(a[d]+e[d-1])/2,b=0;d-1>b;++b)f[b]=2*a[b+1]-e[b+1];return[e,f]}function Ja(a,b){this._context=a,this._t=b}function Ka(a){return new Ja(a,0)}function La(a){return new Ja(a,1)}function Ma(a,b){return a[b]}function Na(a){for(var b,c=0,d=-1,e=a.length;++d<e;)(b=+a[d][1])&&(c+=b);return c}function Oa(a,b){var c=Object.create(a.prototype);for(var d in b)c[d]=b[d];return c}function Pa(){}function Qa(a){var b;return a=(a+"").trim().toLowerCase(),(b=Bm.exec(a))?(b=parseInt(b[1],16),new Va(b>>8&15|b>>4&240,b>>4&15|240&b,(15&b)<<4|15&b,1)):(b=Cm.exec(a))?Ra(parseInt(b[1],16)):(b=Dm.exec(a))?new Va(b[1],b[2],b[3],1):(b=Em.exec(a))?new Va(255*b[1]/100,255*b[2]/100,255*b[3]/100,1):(b=Fm.exec(a))?Sa(b[1],b[2],b[3],b[4]):(b=Gm.exec(a))?Sa(255*b[1]/100,255*b[2]/100,255*b[3]/100,b[4]):(b=Hm.exec(a))?Wa(b[1],b[2]/100,b[3]/100,1):(b=Im.exec(a))?Wa(b[1],b[2]/100,b[3]/100,b[4]):Jm.hasOwnProperty(a)?Ra(Jm[a]):"transparent"===a?new Va(NaN,NaN,NaN,0):null}function Ra(a){return new Va(a>>16&255,a>>8&255,255&a,1)}function Sa(a,b,c,d){return 0>=d&&(a=b=c=NaN),new Va(a,b,c,d)}function Ta(a){return a instanceof Pa||(a=Qa(a)),a?(a=a.rgb(),new Va(a.r,a.g,a.b,a.opacity)):new Va}function Ua(a,b,c,d){return 1===arguments.length?Ta(a):new Va(a,b,c,null==d?1:d)}function Va(a,b,c,d){this.r=+a,this.g=+b,this.b=+c,this.opacity=+d}function Wa(a,b,c,d){return 0>=d?a=b=c=NaN:0>=c||c>=1?a=b=NaN:0>=b&&(a=NaN),new Za(a,b,c,d)}function Xa(a){if(a instanceof Za)return new Za(a.h,a.s,a.l,a.opacity);if(a instanceof Pa||(a=Qa(a)),!a)return new Za;if(a instanceof Za)return a;a=a.rgb();var b=a.r/255,c=a.g/255,d=a.b/255,e=Math.min(b,c,d),f=Math.max(b,c,d),g=NaN,h=f-e,i=(f+e)/2;return h?(g=b===f?(c-d)/h+6*(d>c):c===f?(d-b)/h+2:(b-c)/h+4,h/=.5>i?f+e:2-f-e,g*=60):h=i>0&&1>i?0:g,new Za(g,h,i,a.opacity)}function Ya(a,b,c,d){return 1===arguments.length?Xa(a):new Za(a,b,c,null==d?1:d)}function Za(a,b,c,d){this.h=+a,this.s=+b,this.l=+c,this.opacity=+d}function $a(a,b,c){return 255*(60>a?b+(c-b)*a/60:180>a?c:240>a?b+(c-b)*(240-a)/60:b)}function _a(a){if(a instanceof bb)return new bb(a.l,a.a,a.b,a.opacity);if(a instanceof ib){var b=a.h*Km;return new bb(a.l,Math.cos(b)*a.c,Math.sin(b)*a.c,a.opacity)}a instanceof Va||(a=Ta(a));var c=fb(a.r),d=fb(a.g),e=fb(a.b),f=cb((.4124564*c+.3575761*d+.1804375*e)/Nm),g=cb((.2126729*c+.7151522*d+.072175*e)/Om),h=cb((.0193339*c+.119192*d+.9503041*e)/Pm);return new bb(116*g-16,500*(f-g),200*(g-h),a.opacity)}function ab(a,b,c,d){return 1===arguments.length?_a(a):new bb(a,b,c,null==d?1:d)}function bb(a,b,c,d){this.l=+a,this.a=+b,this.b=+c,this.opacity=+d}function cb(a){return a>Tm?Math.pow(a,1/3):a/Sm+Qm}function db(a){return a>Rm?a*a*a:Sm*(a-Qm)}function eb(a){return 255*(.0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055)}function fb(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}function gb(a){if(a instanceof ib)return new ib(a.h,a.c,a.l,a.opacity);a instanceof bb||(a=_a(a));var b=Math.atan2(a.b,a.a)*Lm;return new ib(0>b?b+360:b,Math.sqrt(a.a*a.a+a.b*a.b),a.l,a.opacity)}function hb(a,b,c,d){return 1===arguments.length?gb(a):new ib(a,b,c,null==d?1:d)}function ib(a,b,c,d){this.h=+a,this.c=+b,this.l=+c,this.opacity=+d}function jb(a){if(a instanceof lb)return new lb(a.h,a.s,a.l,a.opacity);a instanceof Va||(a=Ta(a));var b=a.r/255,c=a.g/255,d=a.b/255,e=(_m*d+Zm*b-$m*c)/(_m+Zm-$m),f=d-e,g=(Ym*(c-e)-Wm*f)/Xm,h=Math.sqrt(g*g+f*f)/(Ym*e*(1-e)),i=h?Math.atan2(g,f)*Lm-120:NaN;return new lb(0>i?i+360:i,h,e,a.opacity)}function kb(a,b,c,d){return 1===arguments.length?jb(a):new lb(a,b,c,null==d?1:d)}function lb(a,b,c,d){this.h=+a,this.s=+b,this.l=+c,this.opacity=+d}function mb(a,b,c,d,e){var f=a*a,g=f*a;return((1-3*a+3*f-g)*b+(4-6*f+3*g)*c+(1+3*a+3*f-3*g)*d+g*e)/6}function nb(a,b){return function(c){return a+c*b}}function ob(a,b,c){return a=Math.pow(a,c),b=Math.pow(b,c)-a,c=1/c,function(d){return Math.pow(a+d*b,c)}}function pb(a,b){var c=b-a;return c?nb(a,c>180||-180>c?c-360*Math.round(c/360):c):gn(isNaN(a)?b:a)}function qb(a){return 1===(a=+a)?rb:function(b,c){return c-b?ob(b,c,a):gn(isNaN(b)?c:b)}}function rb(a,b){var c=b-a;return c?nb(a,c):gn(isNaN(a)?b:a)}function sb(a){return function(b){var c,d,e=b.length,f=new Array(e),g=new Array(e),h=new Array(e);for(c=0;e>c;++c)d=Ua(b[c]),f[c]=d.r||0,g[c]=d.g||0,h[c]=d.b||0;return f=a(f),g=a(g),h=a(h),d.opacity=1,function(a){return d.r=f(a),d.g=g(a),d.b=h(a),d+""}}}function tb(a){return function(){return a}}function ub(a){return function(b){return a(b)+""}}function vb(a){return"none"===a?vn:(an||(an=document.createElement("DIV"),bn=document.documentElement,cn=document.defaultView),an.style.transform=a,a=cn.getComputedStyle(bn.appendChild(an),null).getPropertyValue("transform"),bn.removeChild(an),a=a.slice(7,-1).split(","),wn(+a[0],+a[1],+a[2],+a[3],+a[4],+a[5]))}function wb(a){return null==a?vn:(dn||(dn=document.createElementNS("http://www.w3.org/2000/svg","g")),
  dn.setAttribute("transform",a),(a=dn.transform.baseVal.consolidate())?(a=a.matrix,wn(a.a,a.b,a.c,a.d,a.e,a.f)):vn)}function xb(a,b,c,d){function e(a){return a.length?a.pop()+" ":""}function f(a,d,e,f,g,h){if(a!==e||d!==f){var i=g.push("translate(",null,b,null,c);h.push({i:i-4,x:nn(a,e)},{i:i-2,x:nn(d,f)})}else(e||f)&&g.push("translate("+e+b+f+c)}function g(a,b,c,f){a!==b?(a-b>180?b+=360:b-a>180&&(a+=360),f.push({i:c.push(e(c)+"rotate(",null,d)-2,x:nn(a,b)})):b&&c.push(e(c)+"rotate("+b+d)}function h(a,b,c,f){a!==b?f.push({i:c.push(e(c)+"skewX(",null,d)-2,x:nn(a,b)}):b&&c.push(e(c)+"skewX("+b+d)}function i(a,b,c,d,f,g){if(a!==c||b!==d){var h=f.push(e(f)+"scale(",null,",",null,")");g.push({i:h-4,x:nn(a,c)},{i:h-2,x:nn(b,d)})}else 1===c&&1===d||f.push(e(f)+"scale("+c+","+d+")")}return function(b,c){var d=[],e=[];return b=a(b),c=a(c),f(b.translateX,b.translateY,c.translateX,c.translateY,d,e),g(b.rotate,c.rotate,d,e),h(b.skewX,c.skewX,d,e),i(b.scaleX,b.scaleY,c.scaleX,c.scaleY,d,e),b=c=null,function(a){for(var b,c=-1,f=e.length;++c<f;)d[(b=e[c]).i]=b.x(a);return d.join("")}}}function yb(a){return((a=Math.exp(a))+1/a)/2}function zb(a){return((a=Math.exp(a))-1/a)/2}function Ab(a){return((a=Math.exp(2*a))-1)/(a+1)}function Bb(a){return function(b,c){var d=a((b=Ya(b)).h,(c=Ya(c)).h),e=rb(b.s,c.s),f=rb(b.l,c.l),g=rb(b.opacity,c.opacity);return function(a){return b.h=d(a),b.s=e(a),b.l=f(a),b.opacity=g(a),b+""}}}function Cb(a,b){var c=rb((a=ab(a)).l,(b=ab(b)).l),d=rb(a.a,b.a),e=rb(a.b,b.b),f=rb(a.opacity,b.opacity);return function(b){return a.l=c(b),a.a=d(b),a.b=e(b),a.opacity=f(b),a+""}}function Db(a){return function(b,c){var d=a((b=hb(b)).h,(c=hb(c)).h),e=rb(b.c,c.c),f=rb(b.l,c.l),g=rb(b.opacity,c.opacity);return function(a){return b.h=d(a),b.c=e(a),b.l=f(a),b.opacity=g(a),b+""}}}function Eb(a){return function b(c){function d(b,d){var e=a((b=kb(b)).h,(d=kb(d)).h),f=rb(b.s,d.s),g=rb(b.l,d.l),h=rb(b.opacity,d.opacity);return function(a){return b.h=e(a),b.s=f(a),b.l=g(Math.pow(a,c)),b.opacity=h(a),b+""}}return c=+c,d.gamma=b,d}(1)}function Fb(){for(var a,b=0,c=arguments.length,d={};c>b;++b){if(!(a=arguments[b]+"")||a in d)throw new Error("illegal type: "+a);d[a]=[]}return new Gb(d)}function Gb(a){this._=a}function Hb(a,b){return a.trim().split(/^|\s+/).map(function(a){var c="",d=a.indexOf(".");if(d>=0&&(c=a.slice(d+1),a=a.slice(0,d)),a&&!b.hasOwnProperty(a))throw new Error("unknown type: "+a);return{type:a,name:c}})}function Ib(a,b){for(var c,d=0,e=a.length;e>d;++d)if((c=a[d]).name===b)return c.value}function Jb(a,b,c){for(var d=0,e=a.length;e>d;++d)if(a[d].name===b){a[d]=Ln,a=a.slice(0,d).concat(a.slice(d+1));break}return null!=c&&a.push({name:b,value:c}),a}function Kb(a){return new Function("d","return {"+a.map(function(a,b){return JSON.stringify(a)+": d["+b+"]"}).join(",")+"}")}function Lb(a,b){var c=Kb(a);return function(d,e){return b(c(d),e,a)}}function Mb(a){var b=Object.create(null),c=[];return a.forEach(function(a){for(var d in a)d in b||c.push(b[d]=d)}),c}function Nb(a){return function(b,c){a(null==b?c:null)}}function Ob(a){var b=a.responseType;return b&&"text"!==b?a.response:a.responseText}function Pb(a,b){return function(c){return a(c.responseText,b)}}function Qb(){return mo||(po(Rb),mo=oo.now()+no)}function Rb(){mo=0}function Sb(){this._call=this._time=this._next=null}function Tb(a,b,c){var d=new Sb;return d.restart(a,b,c),d}function Ub(){Qb(),++ho;for(var a,b=Mn;b;)(a=mo-b._time)>=0&&b._call.call(null,a),b=b._next;--ho}function Vb(){mo=(lo=oo.now())+no,ho=io=0;try{Ub()}finally{ho=0,Xb(),mo=0}}function Wb(){var a=oo.now(),b=a-lo;b>ko&&(no-=b,lo=a)}function Xb(){for(var a,b,c=Mn,d=1/0;c;)c._call?(d>c._time&&(d=c._time),a=c,c=c._next):(b=c._next,c._next=null,c=a?a._next=b:Mn=b);Nn=a,Yb(d)}function Yb(a){if(!ho){io&&(io=clearTimeout(io));var b=a-mo;b>24?(1/0>a&&(io=setTimeout(Vb,b)),jo&&(jo=clearInterval(jo))):(jo||(jo=setInterval(Wb,ko)),ho=1,po(Vb))}}function Zb(a,b,c,d){function e(b){return a(b=new Date(+b)),b}return e.floor=e,e.ceil=function(c){return a(c=new Date(c-1)),b(c,1),a(c),c},e.round=function(a){var b=e(a),c=e.ceil(a);return c-a>a-b?b:c},e.offset=function(a,c){return b(a=new Date(+a),null==c?1:Math.floor(c)),a},e.range=function(c,d,f){var g=[];if(c=e.ceil(c),f=null==f?1:Math.floor(f),!(d>c&&f>0))return g;do g.push(new Date(+c));while(b(c,f),a(c),d>c);return g},e.filter=function(c){return Zb(function(b){if(b>=b)for(;a(b),!c(b);)b.setTime(b-1)},function(a,d){if(a>=a)for(;--d>=0;)for(;b(a,1),!c(a););})},c&&(e.count=function(b,d){return so.setTime(+b),to.setTime(+d),a(so),a(to),Math.floor(c(so,to))},e.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?e.filter(d?function(b){return d(b)%a===0}:function(b){return e.count(0,b)%a===0}):e:null}),e}function $b(a){return Zb(function(b){b.setDate(b.getDate()-(b.getDay()+7-a)%7),b.setHours(0,0,0,0)},function(a,b){a.setDate(a.getDate()+7*b)},function(a,b){return(b-a-(b.getTimezoneOffset()-a.getTimezoneOffset())*xo)/Ao})}function _b(a){return Zb(function(b){b.setUTCDate(b.getUTCDate()-(b.getUTCDay()+7-a)%7),b.setUTCHours(0,0,0,0)},function(a,b){a.setUTCDate(a.getUTCDate()+7*b)},function(a,b){return(b-a)/Ao})}function ac(a){if(!(b=Fp.exec(a)))throw new Error("invalid format: "+a);var b,c=b[1]||" ",d=b[2]||">",e=b[3]||"-",f=b[4]||"",g=!!b[5],h=b[6]&&+b[6],i=!!b[7],j=b[8]&&+b[8].slice(1),k=b[9]||"";"n"===k?(i=!0,k="g"):Ep[k]||(k=""),(g||"0"===c&&"="===d)&&(g=!0,c="0",d="="),this.fill=c,this.align=d,this.sign=e,this.symbol=f,this.zero=g,this.width=h,this.comma=i,this.precision=j,this.type=k}function bc(a){return a}function cc(b){return Hp=Jp(b),a.format=Hp.format,a.formatPrefix=Hp.formatPrefix,Hp}function dc(a){if(0<=a.y&&a.y<100){var b=new Date(-1,a.m,a.d,a.H,a.M,a.S,a.L);return b.setFullYear(a.y),b}return new Date(a.y,a.m,a.d,a.H,a.M,a.S,a.L)}function ec(a){if(0<=a.y&&a.y<100){var b=new Date(Date.UTC(-1,a.m,a.d,a.H,a.M,a.S,a.L));return b.setUTCFullYear(a.y),b}return new Date(Date.UTC(a.y,a.m,a.d,a.H,a.M,a.S,a.L))}function fc(a){return{y:a,m:0,d:1,H:0,M:0,S:0,L:0}}function gc(a){function b(a,b){return function(c){var d,e,f,g=[],h=-1,i=0,j=a.length;for(c instanceof Date||(c=new Date(+c));++h<j;)37===a.charCodeAt(h)&&(g.push(a.slice(i,h)),null!=(e=Op[d=a.charAt(++h)])?d=a.charAt(++h):e="e"===d?" ":"0",(f=b[d])&&(d=f(c,e)),g.push(d),i=h+1);return g.push(a.slice(i,h)),g.join("")}}function c(a,b){return function(c){var e=fc(1900),f=d(e,a,c+="",0);if(f!=c.length)return null;if("p"in e&&(e.H=e.H%12+12*e.p),"W"in e||"U"in e){"w"in e||(e.w="W"in e?1:0);var g="Z"in e?ec(fc(e.y)).getUTCDay():b(fc(e.y)).getDay();e.m=0,e.d="W"in e?(e.w+6)%7+7*e.W-(g+5)%7:e.w+7*e.U-(g+6)%7}return"Z"in e?(e.H+=e.Z/100|0,e.M+=e.Z%100,ec(e)):b(e)}}function d(a,b,c,d){for(var e,f,g=0,h=b.length,i=c.length;h>g;){if(d>=i)return-1;if(e=b.charCodeAt(g++),37===e){if(e=b.charAt(g++),f=Q[e in Op?b.charAt(g++):e],!f||(d=f(a,c,d))<0)return-1}else if(e!=c.charCodeAt(d++))return-1}return d}function e(a,b,c){var d=E.exec(b.slice(c));return d?(a.p=F[d[0].toLowerCase()],c+d[0].length):-1}function f(a,b,c){var d=I.exec(b.slice(c));return d?(a.w=J[d[0].toLowerCase()],c+d[0].length):-1}function g(a,b,c){var d=G.exec(b.slice(c));return d?(a.w=H[d[0].toLowerCase()],c+d[0].length):-1}function h(a,b,c){var d=M.exec(b.slice(c));return d?(a.m=N[d[0].toLowerCase()],c+d[0].length):-1}function i(a,b,c){var d=K.exec(b.slice(c));return d?(a.m=L[d[0].toLowerCase()],c+d[0].length):-1}function j(a,b,c){return d(a,w,b,c)}function k(a,b,c){return d(a,x,b,c)}function l(a,b,c){return d(a,y,b,c)}function m(a){return B[a.getDay()]}function n(a){return A[a.getDay()]}function o(a){return D[a.getMonth()]}function p(a){return C[a.getMonth()]}function q(a){return z[+(a.getHours()>=12)]}function r(a){return B[a.getUTCDay()]}function s(a){return A[a.getUTCDay()]}function t(a){return D[a.getUTCMonth()]}function u(a){return C[a.getUTCMonth()]}function v(a){return z[+(a.getUTCHours()>=12)]}var w=a.dateTime,x=a.date,y=a.time,z=a.periods,A=a.days,B=a.shortDays,C=a.months,D=a.shortMonths,E=jc(z),F=kc(z),G=jc(A),H=kc(A),I=jc(B),J=kc(B),K=jc(C),L=kc(C),M=jc(D),N=kc(D),O={a:m,A:n,b:o,B:p,c:null,d:zc,e:zc,H:Ac,I:Bc,j:Cc,L:Dc,m:Ec,M:Fc,p:q,S:Gc,U:Hc,w:Ic,W:Jc,x:null,X:null,y:Kc,Y:Lc,Z:Mc,"%":_c},P={a:r,A:s,b:t,B:u,c:null,d:Nc,e:Nc,H:Oc,I:Pc,j:Qc,L:Rc,m:Sc,M:Tc,p:v,S:Uc,U:Vc,w:Wc,W:Xc,x:null,X:null,y:Yc,Y:Zc,Z:$c,"%":_c},Q={a:f,A:g,b:h,B:i,c:j,d:sc,e:sc,H:uc,I:uc,j:tc,L:xc,m:rc,M:vc,p:e,S:wc,U:mc,w:lc,W:nc,x:k,X:l,y:pc,Y:oc,Z:qc,"%":yc};return O.x=b(x,O),O.X=b(y,O),O.c=b(w,O),P.x=b(x,P),P.X=b(y,P),P.c=b(w,P),{format:function(a){var c=b(a+="",O);return c.toString=function(){return a},c},parse:function(a){var b=c(a+="",dc);return b.toString=function(){return a},b},utcFormat:function(a){var c=b(a+="",P);return c.toString=function(){return a},c},utcParse:function(a){var b=c(a,ec);return b.toString=function(){return a},b}}}function hc(a,b,c){var d=0>a?"-":"",e=(d?-a:a)+"",f=e.length;return d+(c>f?new Array(c-f+1).join(b)+e:e)}function ic(a){return a.replace(Rp,"\\$&")}function jc(a){return new RegExp("^(?:"+a.map(ic).join("|")+")","i")}function kc(a){for(var b={},c=-1,d=a.length;++c<d;)b[a[c].toLowerCase()]=c;return b}function lc(a,b,c){var d=Pp.exec(b.slice(c,c+1));return d?(a.w=+d[0],c+d[0].length):-1}function mc(a,b,c){var d=Pp.exec(b.slice(c));return d?(a.U=+d[0],c+d[0].length):-1}function nc(a,b,c){var d=Pp.exec(b.slice(c));return d?(a.W=+d[0],c+d[0].length):-1}function oc(a,b,c){var d=Pp.exec(b.slice(c,c+4));return d?(a.y=+d[0],c+d[0].length):-1}function pc(a,b,c){var d=Pp.exec(b.slice(c,c+2));return d?(a.y=+d[0]+(+d[0]>68?1900:2e3),c+d[0].length):-1}function qc(a,b,c){var d=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(b.slice(c,c+6));return d?(a.Z=d[1]?0:-(d[2]+(d[3]||"00")),c+d[0].length):-1}function rc(a,b,c){var d=Pp.exec(b.slice(c,c+2));return d?(a.m=d[0]-1,c+d[0].length):-1}function sc(a,b,c){var d=Pp.exec(b.slice(c,c+2));return d?(a.d=+d[0],c+d[0].length):-1}function tc(a,b,c){var d=Pp.exec(b.slice(c,c+3));return d?(a.m=0,a.d=+d[0],c+d[0].length):-1}function uc(a,b,c){var d=Pp.exec(b.slice(c,c+2));return d?(a.H=+d[0],c+d[0].length):-1}function vc(a,b,c){var d=Pp.exec(b.slice(c,c+2));return d?(a.M=+d[0],c+d[0].length):-1}function wc(a,b,c){var d=Pp.exec(b.slice(c,c+2));return d?(a.S=+d[0],c+d[0].length):-1}function xc(a,b,c){var d=Pp.exec(b.slice(c,c+3));return d?(a.L=+d[0],c+d[0].length):-1}function yc(a,b,c){var d=Qp.exec(b.slice(c,c+1));return d?c+d[0].length:-1}function zc(a,b){return hc(a.getDate(),b,2)}function Ac(a,b){return hc(a.getHours(),b,2)}function Bc(a,b){return hc(a.getHours()%12||12,b,2)}function Cc(a,b){return hc(1+Ho.count(Zo(a),a),b,3)}function Dc(a,b){return hc(a.getMilliseconds(),b,3)}function Ec(a,b){return hc(a.getMonth()+1,b,2)}function Fc(a,b){return hc(a.getMinutes(),b,2)}function Gc(a,b){return hc(a.getSeconds(),b,2)}function Hc(a,b){return hc(Jo.count(Zo(a),a),b,2)}function Ic(a){return a.getDay()}function Jc(a,b){return hc(Ko.count(Zo(a),a),b,2)}function Kc(a,b){return hc(a.getFullYear()%100,b,2)}function Lc(a,b){return hc(a.getFullYear()%1e4,b,4)}function Mc(a){var b=a.getTimezoneOffset();return(b>0?"-":(b*=-1,"+"))+hc(b/60|0,"0",2)+hc(b%60,"0",2)}function Nc(a,b){return hc(a.getUTCDate(),b,2)}function Oc(a,b){return hc(a.getUTCHours(),b,2)}function Pc(a,b){return hc(a.getUTCHours()%12||12,b,2)}function Qc(a,b){return hc(1+dp.count(vp(a),a),b,3)}function Rc(a,b){return hc(a.getUTCMilliseconds(),b,3)}function Sc(a,b){return hc(a.getUTCMonth()+1,b,2)}function Tc(a,b){return hc(a.getUTCMinutes(),b,2)}function Uc(a,b){return hc(a.getUTCSeconds(),b,2)}function Vc(a,b){return hc(fp.count(vp(a),a),b,2)}function Wc(a){return a.getUTCDay()}function Xc(a,b){return hc(gp.count(vp(a),a),b,2)}function Yc(a,b){return hc(a.getUTCFullYear()%100,b,2)}function Zc(a,b){return hc(a.getUTCFullYear()%1e4,b,4)}function $c(){return"+0000"}function _c(){return"%"}function ad(b){return Kp=gc(b),a.timeFormat=Kp.format,a.timeParse=Kp.parse,a.utcFormat=Kp.utcFormat,a.utcParse=Kp.utcParse,Kp}function bd(a){return a.toISOString()}function cd(a){var b=new Date(a);return isNaN(b)?null:b}function dd(a){function b(b){var f=b+"",g=c.get(f);if(!g){if(e!==Yp)return e;c.set(f,g=d.push(b))}return a[(g-1)%a.length]}var c=f(),d=[],e=Yp;return a=null==a?[]:Xp.call(a),b.domain=function(a){if(!arguments.length)return d.slice();d=[],c=f();for(var e,g,h=-1,i=a.length;++h<i;)c.has(g=(e=a[h])+"")||c.set(g,d.push(e));return b},b.range=function(c){return arguments.length?(a=Xp.call(c),b):a.slice()},b.unknown=function(a){return arguments.length?(e=a,b):e},b.copy=function(){return dd().domain(d).range(a).unknown(e)},b}function ed(){function a(){var a=e().length,d=g[1]<g[0],l=g[d-0],m=g[1-d];b=(m-l)/Math.max(1,a-i+2*j),h&&(b=Math.floor(b)),l+=(m-l-b*(a-i))*k,c=b*(1-i),h&&(l=Math.round(l),c=Math.round(c));var n=Lj(a).map(function(a){return l+b*a});return f(d?n.reverse():n)}var b,c,d=dd().unknown(void 0),e=d.domain,f=d.range,g=[0,1],h=!1,i=0,j=0,k=.5;return delete d.unknown,d.domain=function(b){return arguments.length?(e(b),a()):e()},d.range=function(b){return arguments.length?(g=[+b[0],+b[1]],a()):g.slice()},d.rangeRound=function(b){return g=[+b[0],+b[1]],h=!0,a()},d.bandwidth=function(){return c},d.step=function(){return b},d.round=function(b){return arguments.length?(h=!!b,a()):h},d.padding=function(b){return arguments.length?(i=j=Math.max(0,Math.min(1,b)),a()):i},d.paddingInner=function(b){return arguments.length?(i=Math.max(0,Math.min(1,b)),a()):i},d.paddingOuter=function(b){return arguments.length?(j=Math.max(0,Math.min(1,b)),a()):j},d.align=function(b){return arguments.length?(k=Math.max(0,Math.min(1,b)),a()):k},d.copy=function(){return ed().domain(e()).range(g).round(h).paddingInner(i).paddingOuter(j).align(k)},a()}function fd(a){var b=a.copy;return a.padding=a.paddingOuter,delete a.paddingInner,delete a.paddingOuter,a.copy=function(){return fd(b())},a}function gd(){return fd(ed().paddingInner(1))}function hd(a,b){return(b-=a=+a)?function(c){return(c-a)/b}:Zp(b)}function id(a){return function(b,c){var d=a(b=+b,c=+c);return function(a){return b>=a?0:a>=c?1:d(a)}}}function jd(a){return function(b,c){var d=a(b=+b,c=+c);return function(a){return 0>=a?b:a>=1?c:d(a)}}}function kd(a,b,c,d){var e=a[0],f=a[1],g=b[0],h=b[1];return e>f?(e=c(f,e),g=d(h,g)):(e=c(e,f),g=d(g,h)),function(a){return g(e(a))}}function ld(a,b,c,d){var e=Math.min(a.length,b.length)-1,f=new Array(e),g=new Array(e),h=-1;for(a[e]<a[0]&&(a=a.slice().reverse(),b=b.slice().reverse());++h<e;)f[h]=c(a[h],a[h+1]),g[h]=d(b[h],b[h+1]);return function(b){var c=zj(a,b,1,e)-1;return g[c](f[c](b))}}function md(a,b){return b.domain(a.domain()).range(a.range()).interpolate(a.interpolate()).clamp(a.clamp())}function nd(a,b){function c(){return e=Math.min(h.length,i.length)>2?ld:kd,f=g=null,d}function d(b){return(f||(f=e(h,i,k?id(a):a,j)))(+b)}var e,f,g,h=_p,i=_p,j=sn,k=!1;return d.invert=function(a){return(g||(g=e(i,h,hd,k?jd(b):b)))(+a)},d.domain=function(a){return arguments.length?(h=Wp.call(a,$p),c()):h.slice()},d.range=function(a){return arguments.length?(i=Xp.call(a),c()):i.slice()},d.rangeRound=function(a){return i=Xp.call(a),j=tn,c()},d.clamp=function(a){return arguments.length?(k=!!a,c()):k},d.interpolate=function(a){return arguments.length?(j=a,c()):j},c()}function od(a){var b=a.domain;return a.ticks=function(a){var c=b();return Pj(c[0],c[c.length-1],null==a?10:a)},a.tickFormat=function(a,c){return aq(b(),a,c)},a.nice=function(d){var e=b(),f=e.length-1,g=null==d?10:d,h=e[0],i=e[f],j=c(h,i,g);return j&&(j=c(Math.floor(h/j)*j,Math.ceil(i/j)*j,g),e[0]=Math.floor(h/j)*j,e[f]=Math.ceil(i/j)*j,b(e)),a},a}function pd(){var a=nd(hd,nn);return a.copy=function(){return md(a,pd())},od(a)}function qd(){function a(a){return+a}var b=[0,1];return a.invert=a,a.domain=a.range=function(c){return arguments.length?(b=Wp.call(c,$p),a):b.slice()},a.copy=function(){return qd().domain(b)},od(a)}function rd(a,b){return(b=Math.log(b/a))?function(c){return Math.log(c/a)/b}:Zp(b)}function sd(a,b){return 0>a?function(c){return-Math.pow(-b,c)*Math.pow(-a,1-c)}:function(c){return Math.pow(b,c)*Math.pow(a,1-c)}}function td(a){return isFinite(a)?+("1e"+a):0>a?0:a}function ud(a){return 10===a?td:a===Math.E?Math.exp:function(b){return Math.pow(a,b)}}function vd(a){return a===Math.E?Math.log:10===a&&Math.log10||2===a&&Math.log2||(a=Math.log(a),function(b){return Math.log(b)/a})}function wd(a){return function(b){return-a(-b)}}function xd(){function b(){return f=vd(e),g=ud(e),d()[0]<0&&(f=wd(f),g=wd(g)),c}var c=nd(rd,sd).domain([1,10]),d=c.domain,e=10,f=vd(10),g=ud(10);return c.base=function(a){return arguments.length?(e=+a,b()):e},c.domain=function(a){return arguments.length?(d(a),b()):d()},c.ticks=function(a){var b,c=d(),h=c[0],i=c[c.length-1];(b=h>i)&&(m=h,h=i,i=m);var j,k,l,m=f(h),n=f(i),o=null==a?10:+a,p=[];if(!(e%1)&&o>n-m){if(m=Math.round(m)-1,n=Math.round(n)+1,h>0){for(;n>m;++m)for(k=1,j=g(m);e>k;++k)if(l=j*k,!(h>l)){if(l>i)break;p.push(l)}}else for(;n>m;++m)for(k=e-1,j=g(m);k>=1;--k)if(l=j*k,!(h>l)){if(l>i)break;p.push(l)}}else p=Pj(m,n,Math.min(n-m,o)).map(g);return b?p.reverse():p},c.tickFormat=function(b,d){if(null==d&&(d=10===e?".0e":","),"function"!=typeof d&&(d=a.format(d)),b===1/0)return d;null==b&&(b=10);var h=Math.max(1,e*b/c.ticks().length);return function(a){var b=a/g(Math.round(f(a)));return e-.5>b*e&&(b*=e),h>=b?d(a):""}},c.nice=function(){return d(bq(d(),{floor:function(a){return g(Math.floor(f(a)))},ceil:function(a){return g(Math.ceil(f(a)))}}))},c.copy=function(){return md(c,xd().base(e))},c}function yd(a,b){return 0>a?-Math.pow(-a,b):Math.pow(a,b)}function zd(){function a(a,b){return(b=yd(b,c)-(a=yd(a,c)))?function(d){return(yd(d,c)-a)/b}:Zp(b)}function b(a,b){return b=yd(b,c)-(a=yd(a,c)),function(d){return yd(a+b*d,1/c)}}var c=1,d=nd(a,b),e=d.domain;return d.exponent=function(a){return arguments.length?(c=+a,e(e())):c},d.copy=function(){return md(d,zd().exponent(c))},od(d)}function Ad(){return zd().exponent(.5)}function Bd(){function a(){var a=0,f=Math.max(1,d.length);for(e=new Array(f-1);++a<f;)e[a-1]=Sj(c,a/f);return b}function b(a){return isNaN(a=+a)?void 0:d[zj(e,a)]}var c=[],d=[],e=[];return b.invertExtent=function(a){var b=d.indexOf(a);return 0>b?[NaN,NaN]:[b>0?e[b-1]:c[0],b<e.length?e[b]:c[c.length-1]]},b.domain=function(b){if(!arguments.length)return c.slice();c=[];for(var d,e=0,f=b.length;f>e;++e)d=b[e],null==d||isNaN(d=+d)||c.push(d);return c.sort(wj),a()},b.range=function(b){return arguments.length?(d=Xp.call(b),a()):d.slice()},b.quantiles=function(){return e.slice()},b.copy=function(){return Bd().domain(c).range(d)},b}function Cd(){function a(a){return a>=a?g[zj(f,a,0,e)]:void 0}function b(){var b=-1;for(f=new Array(e);++b<e;)f[b]=((b+1)*d-(b-e)*c)/(e+1);return a}var c=0,d=1,e=1,f=[.5],g=[0,1];return a.domain=function(a){return arguments.length?(c=+a[0],d=+a[1],b()):[c,d]},a.range=function(a){return arguments.length?(e=(g=Xp.call(a)).length-1,b()):g.slice()},a.invertExtent=function(a){var b=g.indexOf(a);return 0>b?[NaN,NaN]:1>b?[c,f[0]]:b>=e?[f[e-1],d]:[f[b-1],f[b]]},a.copy=function(){return Cd().domain([c,d]).range(g)},od(a)}function Dd(){function a(a){return a>=a?c[zj(b,a,0,d)]:void 0}var b=[.5],c=[0,1],d=1;return a.domain=function(e){return arguments.length?(b=Xp.call(e),d=Math.min(b.length,c.length-1),a):b.slice()},a.range=function(e){return arguments.length?(c=Xp.call(e),d=Math.min(b.length,c.length-1),a):c.slice()},a.invertExtent=function(a){var d=c.indexOf(a);return[b[d-1],b[d]]},a.copy=function(){return Dd().domain(b).range(c)},a}function Ed(a){return new Date(a)}function Fd(a){return a instanceof Date?+a:+new Date(+a)}function Gd(a,b,d,e,f,g,h,i,j){function k(c){return(h(c)<c?p:g(c)<c?q:f(c)<c?r:e(c)<c?s:b(c)<c?d(c)<c?t:u:a(c)<c?v:w)(c)}function l(b,d,e,f){if(null==b&&(b=10),"number"==typeof b){var g=Math.abs(e-d)/b,h=xj(function(a){return a[2]}).right(x,g);h===x.length?(f=c(d/iq,e/iq,b),b=a):h?(h=x[g/x[h-1][2]<x[h][2]/g?h-1:h],f=h[1],b=h[0]):(f=c(d,e,b),b=i)}return null==f?b:b.every(f)}var m=nd(hd,nn),n=m.invert,o=m.domain,p=j(".%L"),q=j(":%S"),r=j("%I:%M"),s=j("%I %p"),t=j("%a %d"),u=j("%b %d"),v=j("%B"),w=j("%Y"),x=[[h,1,cq],[h,5,5*cq],[h,15,15*cq],[h,30,30*cq],[g,1,dq],[g,5,5*dq],[g,15,15*dq],[g,30,30*dq],[f,1,eq],[f,3,3*eq],[f,6,6*eq],[f,12,12*eq],[e,1,fq],[e,2,2*fq],[d,1,gq],[b,1,hq],[b,3,3*hq],[a,1,iq]];return m.invert=function(a){return new Date(n(a))},m.domain=function(a){return arguments.length?o(Wp.call(a,Fd)):o().map(Ed)},m.ticks=function(a,b){var c,d=o(),e=d[0],f=d[d.length-1],g=e>f;return g&&(c=e,e=f,f=c),c=l(a,e,f,b),c=c?c.range(e,f+1):[],g?c.reverse():c},m.tickFormat=function(a,b){return null==b?k:j(b)},m.nice=function(a,b){var c=o();return(a=l(a,c[0],c[c.length-1],b))?o(bq(c,a)):m},m.copy=function(){return md(m,Gd(a,b,d,e,f,g,h,i,j))},m}function Hd(a){var b=a.length;return function(c){return a[Math.max(0,Math.min(b-1,Math.floor(c*b)))]}}function Id(a){function b(b){var f=(b-c)/(d-c);return a(e?Math.max(0,Math.min(1,f)):f)}var c=0,d=1,e=!1;return b.domain=function(a){return arguments.length?(c=+a[0],d=+a[1],b):[c,d]},b.clamp=function(a){return arguments.length?(e=!!a,b):e},b.interpolator=function(c){return arguments.length?(a=c,b):a},b.copy=function(){return Id(a).domain([c,d]).clamp(e)},od(b)}function Jd(a){return function(){var b=this.ownerDocument,c=this.namespaceURI;return c===zq&&b.documentElement.namespaceURI===zq?b.createElement(a):b.createElementNS(c,a)}}function Kd(a){return function(){return this.ownerDocument.createElementNS(a.space,a.local)}}function Ld(){return new Md}function Md(){this._="@"+(++Dq).toString(36)}function Nd(a,b,c){return a=Od(a,b,c),function(b){var c=b.relatedTarget;c&&(c===this||8&c.compareDocumentPosition(this))||a.call(this,b)}}function Od(b,c,d){return function(e){var f=a.event;a.event=e;try{b.call(this,this.__data__,c,d)}finally{a.event=f}}}function Pd(a){return a.trim().split(/^|\s+/).map(function(a){var b="",c=a.indexOf(".");return c>=0&&(b=a.slice(c+1),a=a.slice(0,c)),{type:a,name:b}})}function Qd(a){return function(){var b=this.__on;if(b){for(var c,d=0,e=-1,f=b.length;f>d;++d)c=b[d],a.type&&c.type!==a.type||c.name!==a.name?b[++e]=c:this.removeEventListener(c.type,c.listener,c.capture);++e?b.length=e:delete this.__on}}}function Rd(a,b,c){var d=Iq.hasOwnProperty(a.type)?Nd:Od;return function(e,f,g){var h,i=this.__on,j=d(b,f,g);if(i)for(var k=0,l=i.length;l>k;++k)if((h=i[k]).type===a.type&&h.name===a.name)return this.removeEventListener(h.type,h.listener,h.capture),this.addEventListener(h.type,h.listener=j,h.capture=c),void(h.value=b);this.addEventListener(a.type,j,c),h={type:a.type,name:a.name,value:b,listener:j,capture:c},i?i.push(h):this.__on=[h]}}function Sd(b,c,d,e){var f=a.event;b.sourceEvent=a.event,a.event=b;try{return c.apply(d,e)}finally{a.event=f}}function Td(){}function Ud(){return[]}function Vd(a,b){this.ownerDocument=a.ownerDocument,this.namespaceURI=a.namespaceURI,this._next=null,this._parent=a,this.__data__=b}function Wd(a,b,c,d,e,f){for(var g,h=0,i=b.length,j=f.length;j>h;++h)(g=b[h])?(g.__data__=f[h],d[h]=g):c[h]=new Vd(a,f[h]);for(;i>h;++h)(g=b[h])&&(e[h]=g)}function Xd(a,b,c,d,e,f,g){var h,i,j,k={},l=b.length,m=f.length,n=new Array(l);for(h=0;l>h;++h)(i=b[h])&&(n[h]=j=Wq+g.call(i,i.__data__,h,b),j in k?e[h]=i:k[j]=i);for(h=0;m>h;++h)j=Wq+g.call(a,f[h],h,f),(i=k[j])?(d[h]=i,i.__data__=f[h],k[j]=null):c[h]=new Vd(a,f[h]);for(h=0;l>h;++h)(i=b[h])&&k[n[h]]===i&&(e[h]=i)}function Yd(a,b){return b>a?-1:a>b?1:a>=b?0:NaN}function Zd(a){return function(){this.removeAttribute(a)}}function $d(a){return function(){this.removeAttributeNS(a.space,a.local)}}function _d(a,b){return function(){this.setAttribute(a,b)}}function ae(a,b){return function(){this.setAttributeNS(a.space,a.local,b)}}function be(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttribute(a):this.setAttribute(a,c)}}function ce(a,b){return function(){var c=b.apply(this,arguments);null==c?this.removeAttributeNS(a.space,a.local):this.setAttributeNS(a.space,a.local,c)}}function de(a){return function(){this.style.removeProperty(a)}}function ee(a,b,c){return function(){this.style.setProperty(a,b,c)}}function fe(a,b,c){return function(){var d=b.apply(this,arguments);null==d?this.style.removeProperty(a):this.style.setProperty(a,d,c)}}function ge(a){return function(){delete this[a]}}function he(a,b){return function(){this[a]=b}}function ie(a,b){return function(){var c=b.apply(this,arguments);null==c?delete this[a]:this[a]=c}}function je(a){return a.trim().split(/^|\s+/)}function ke(a){return a.classList||new le(a)}function le(a){this._node=a,this._names=je(a.getAttribute("class")||"")}function me(a,b){for(var c=ke(a),d=-1,e=b.length;++d<e;)c.add(b[d])}function ne(a,b){for(var c=ke(a),d=-1,e=b.length;++d<e;)c.remove(b[d])}function oe(a){return function(){me(this,a)}}function pe(a){return function(){ne(this,a)}}function qe(a,b){return function(){(b.apply(this,arguments)?me:ne)(this,a)}}function re(){this.textContent=""}function se(a){return function(){this.textContent=a}}function te(a){return function(){var b=a.apply(this,arguments);this.textContent=null==b?"":b}}function ue(){this.innerHTML=""}function ve(a){return function(){this.innerHTML=a}}function we(a){return function(){var b=a.apply(this,arguments);this.innerHTML=null==b?"":b}}function xe(){this.nextSibling&&this.parentNode.appendChild(this)}function ye(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ze(){return null}function Ae(){var a=this.parentNode;a&&a.removeChild(this)}function Be(a,b,c){var d=hr(a),e=d.CustomEvent;e?e=new e(b,c):(e=d.document.createEvent("Event"),c?(e.initEvent(b,c.bubbles,c.cancelable),e.detail=c.detail):e.initEvent(b,!1,!1)),a.dispatchEvent(e)}function Ce(a,b){return function(){return Be(this,a,b)}}function De(a,b){return function(){return Be(this,a,b.apply(this,arguments))}}function Ee(a,b){this._groups=a,this._parents=b}function Fe(){return new Ee([[document.documentElement]],ur)}function Ge(a,b){var c=a.__transition;if(!c||!(c=c[b])||c.state>Br)throw new Error("too late");return c}function He(a,b){var c=a.__transition;if(!c||!(c=c[b])||c.state>Dr)throw new Error("too late");return c}function Ie(a,b){var c=a.__transition;if(!c||!(c=c[b]))throw new Error("too late");return c}function Je(a,b,c){function d(a){c.state=Cr,c.timer.restart(e,c.delay,c.time),c.delay<=a&&e(a-c.delay)}function e(d){var j,k,l,m;if(c.state!==Cr)return g();for(j in i)if(m=i[j],m.name===c.name){if(m.state===Er)return qo(e);m.state===Fr?(m.state=Hr,m.timer.stop(),m.on.call("interrupt",a,a.__data__,m.index,m.group),delete i[j]):b>+j&&(m.state=Hr,m.timer.stop(),delete i[j])}if(qo(function(){c.state===Er&&(c.state=Fr,c.timer.restart(f,c.delay,c.time),f(d))}),c.state=Dr,c.on.call("start",a,a.__data__,c.index,c.group),c.state===Dr){for(c.state=Er,h=new Array(l=c.tween.length),j=0,k=-1;l>j;++j)(m=c.tween[j].value.call(a,a.__data__,c.index,c.group))&&(h[++k]=m);h.length=k+1}}function f(b){for(var d=b<c.duration?c.ease.call(null,b/c.duration):(c.timer.restart(g),c.state=Gr,1),e=-1,f=h.length;++e<f;)h[e].call(null,d);c.state===Gr&&(c.on.call("end",a,a.__data__,c.index,c.group),g())}function g(){c.state=Hr,c.timer.stop(),delete i[b];for(var d in i)return;delete a.__transition}var h,i=a.__transition;i[b]=c,c.timer=Tb(d,0,c.time)}function Ke(a,b){var c,d;return function(){var e=He(this,a),f=e.tween;if(f!==c){d=c=f;for(var g=0,h=d.length;h>g;++g)if(d[g].name===b){d=d.slice(),d.splice(g,1);break}}e.tween=d}}function Le(a,b,c){var d,e;if("function"!=typeof c)throw new Error;return function(){var f=He(this,a),g=f.tween;if(g!==d){e=(d=g).slice();for(var h={name:b,value:c},i=0,j=e.length;j>i;++i)if(e[i].name===b){e[i]=h;break}i===j&&e.push(h)}f.tween=e}}function Me(a,b,c){var d=a._id;return a.each(function(){var a=He(this,d);(a.value||(a.value={}))[b]=c.apply(this,arguments)}),function(a){return Ie(a,d).value[b]}}function Ne(a){return function(){this.removeAttribute(a)}}function Oe(a){return function(){this.removeAttributeNS(a.space,a.local)}}function Pe(a,b,c){var d,e;return function(){var f=this.getAttribute(a);return f===c?null:f===d?e:e=b(d=f,c)}}function Qe(a,b,c){var d,e;return function(){var f=this.getAttributeNS(a.space,a.local);return f===c?null:f===d?e:e=b(d=f,c)}}function Re(a,b,c){var d,e,f;return function(){var g,h=c(this);return null==h?void this.removeAttribute(a):(g=this.getAttribute(a),g===h?null:g===d&&h===e?f:f=b(d=g,e=h))}}function Se(a,b,c){var d,e,f;return function(){var g,h=c(this);return null==h?void this.removeAttributeNS(a.space,a.local):(g=this.getAttributeNS(a.space,a.local),g===h?null:g===d&&h===e?f:f=b(d=g,e=h))}}function Te(a,b){function c(){var c=this,d=b.apply(c,arguments);return d&&function(b){c.setAttributeNS(a.space,a.local,d(b))}}return c._value=b,c}function Ue(a,b){function c(){var c=this,d=b.apply(c,arguments);return d&&function(b){c.setAttribute(a,d(b))}}return c._value=b,c}function Ve(a,b){return function(){Ge(this,a).delay=+b.apply(this,arguments)}}function We(a,b){return b=+b,function(){Ge(this,a).delay=b}}function Xe(a,b){return function(){He(this,a).duration=+b.apply(this,arguments)}}function Ye(a,b){return b=+b,function(){He(this,a).duration=b}}function Ze(a,b){if("function"!=typeof b)throw new Error;return function(){He(this,a).ease=b}}function $e(a){return(a+"").trim().split(/^|\s+/).every(function(a){var b=a.indexOf(".");return b>=0&&(a=a.slice(0,b)),!a||"start"===a})}function _e(a,b,c){var d,e,f=$e(b)?Ge:He;return function(){var g=f(this,a),h=g.on;h!==d&&(e=(d=h).copy()).on(b,c),g.on=e}}function af(a){return function(){var b=this.parentNode;for(var c in this.__transition)if(+c!==a)return;b&&b.removeChild(this)}}function bf(a,b){var c,d,e;return function(){var f=hr(this).getComputedStyle(this,null),g=f.getPropertyValue(a),h=(this.style.removeProperty(a),f.getPropertyValue(a));return g===h?null:g===c&&h===d?e:e=b(c=g,d=h)}}function cf(a){return function(){this.style.removeProperty(a)}}function df(a,b,c){var d,e;return function(){var f=hr(this).getComputedStyle(this,null).getPropertyValue(a);return f===c?null:f===d?e:e=b(d=f,c)}}function ef(a,b,c){var d,e,f;return function(){var g=hr(this).getComputedStyle(this,null),h=g.getPropertyValue(a),i=c(this);return null==i&&(this.style.removeProperty(a),i=g.getPropertyValue(a)),h===i?null:h===d&&i===e?f:f=b(d=h,e=i)}}function ff(a,b,c){function d(){var d=this,e=b.apply(d,arguments);return e&&function(b){d.style.setProperty(a,e(b),c)}}return d._value=b,d}function gf(a){return function(){this.textContent=a}}function hf(a){return function(){var b=a(this);this.textContent=null==b?"":b}}function jf(a,b,c,d){this._groups=a,this._parents=b,this._name=c,this._id=d}function kf(a){return Fe().transition(a)}function lf(){return++cs}function mf(a,b){for(var c;!(c=a.__transition)||!(c=c[b]);)if(!(a=a.parentNode))return es.time=Qb(),es;return c}function nf(a,b,c){var d=a(c);return"translate("+(isFinite(d)?d:b(c))+",0)"}function of(a,b,c){var d=a(c);return"translate(0,"+(isFinite(d)?d:b(c))+")"}function pf(a){var b=a.bandwidth()/2;return a.round()&&(b=Math.round(b)),function(c){return a(c)+b}}function qf(){return!this.__axis}function rf(a,b){function c(c){var j,k=null==e?b.ticks?b.ticks.apply(b,d):b.domain():e,l=null==f?b.tickFormat?b.tickFormat.apply(b,d):js:f,m=Math.max(g,0)+i,n=a===ks||a===ms?nf:of,o=b.range(),p=o[0]+.5,q=o[o.length-1]+.5,r=(b.bandwidth?pf:js)(b.copy()),s=c.selection?c.selection():c,t=s.selectAll(".domain").data([null]),u=s.selectAll(".tick").data(k,b).order(),v=u.exit(),w=u.enter().append("g").attr("class","tick"),x=u.select("line"),y=u.select("text"),z=a===ks||a===ns?-1:1,A=a===ns||a===ls?(j="x","y"):(j="y","x");t=t.merge(t.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),u=u.merge(w),x=x.merge(w.append("line").attr("stroke","#000").attr(j+"2",z*g).attr(A+"1",.5).attr(A+"2",.5)),y=y.merge(w.append("text").attr("fill","#000").attr(j,z*m).attr(A,.5).attr("dy",a===ks?"0em":a===ms?"0.71em":"0.32em")),c!==s&&(t=t.transition(c),u=u.transition(c),
  x=x.transition(c),y=y.transition(c),v=v.transition(c).attr("opacity",os).attr("transform",function(a){return n(r,this.parentNode.__axis||r,a)}),w.attr("opacity",os).attr("transform",function(a){return n(this.parentNode.__axis||r,r,a)})),v.remove(),t.attr("d",a===ns||a==ls?"M"+z*h+","+p+"H0.5V"+q+"H"+z*h:"M"+p+","+z*h+"V0.5H"+q+"V"+z*h),u.attr("opacity",1).attr("transform",function(a){return n(r,r,a)}),x.attr(j+"2",z*g),y.attr(j,z*m).text(l),s.filter(qf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",a===ls?"start":a===ns?"end":"middle"),s.each(function(){this.__axis=r})}var d=[],e=null,f=null,g=6,h=6,i=3;return c.scale=function(a){return arguments.length?(b=a,c):b},c.ticks=function(){return d=is.call(arguments),c},c.tickArguments=function(a){return arguments.length?(d=null==a?[]:is.call(a),c):d.slice()},c.tickValues=function(a){return arguments.length?(e=null==a?null:is.call(a),c):e&&e.slice()},c.tickFormat=function(a){return arguments.length?(f=a,c):f},c.tickSize=function(a){return arguments.length?(g=h=+a,c):g},c.tickSizeInner=function(a){return arguments.length?(g=+a,c):g},c.tickSizeOuter=function(a){return arguments.length?(h=+a,c):h},c.tickPadding=function(a){return arguments.length?(i=+a,c):i},c}function sf(a){return rf(ks,a)}function tf(a){return rf(ls,a)}function uf(a){return rf(ms,a)}function vf(a){return rf(ns,a)}function wf(a,b){return a.parent===b.parent?1:2}function xf(a){return a.reduce(yf,0)/a.length}function yf(a,b){return a+b.x}function zf(a){return 1+a.reduce(Af,0)}function Af(a,b){return Math.max(a,b.y)}function Bf(a){for(var b;b=a.children;)a=b[0];return a}function Cf(a){for(var b;b=a.children;)a=b[b.length-1];return a}function Df(a,b){if(a===b)return a;var c=a.ancestors(),d=b.ancestors(),e=null;for(a=c.pop(),b=d.pop();a===b;)e=a,a=c.pop(),b=d.pop();return e}function Ef(a,b){var c,d,e,f,g,h=new Jf(a),i=+a.value&&(h.value=a.value),j=[h];for(null==b&&(b=Gf);c=j.pop();)if(i&&(c.value=+c.data.value),(e=b(c.data))&&(g=e.length))for(c.children=new Array(g),f=g-1;f>=0;--f)j.push(d=c.children[f]=new Jf(e[f])),d.parent=c,d.depth=c.depth+1;return h.eachBefore(If)}function Ff(){return Ef(this).eachBefore(Hf)}function Gf(a){return a.children}function Hf(a){a.data=a.data.data}function If(a){var b=0;do a.height=b;while((a=a.parent)&&a.height<++b)}function Jf(a){this.data=a,this.depth=this.height=0,this.parent=null}function Kf(a){this._=a,this.next=null}function Lf(a,b){var c=b.x-a.x,d=b.y-a.y,e=a.r-b.r;return e*e+1e-6>c*c+d*d}function Mf(a,b){var c,d,e,f=null,g=a.head;switch(b.length){case 1:c=Nf(b[0]);break;case 2:c=Of(b[0],b[1]);break;case 3:c=Pf(b[0],b[1],b[2])}for(;g;)e=g._,d=g.next,c&&Lf(c,e)?f=g:(f?(a.tail=f,f.next=null):a.head=a.tail=null,b.push(e),c=Mf(a,b),b.pop(),a.head?(g.next=a.head,a.head=g):(g.next=null,a.head=a.tail=g),f=a.tail,f.next=d),g=d;return a.tail=f,c}function Nf(a){return{x:a.x,y:a.y,r:a.r}}function Of(a,b){var c=a.x,d=a.y,e=a.r,f=b.x,g=b.y,h=b.r,i=f-c,j=g-d,k=h-e,l=Math.sqrt(i*i+j*j);return{x:(c+f+i/l*k)/2,y:(d+g+j/l*k)/2,r:(l+e+h)/2}}function Pf(a,b,c){var d=a.x,e=a.y,f=a.r,g=b.x,h=b.y,i=b.r,j=c.x,k=c.y,l=c.r,m=2*(d-g),n=2*(e-h),o=2*(i-f),p=d*d+e*e-f*f-g*g-h*h+i*i,q=2*(d-j),r=2*(e-k),s=2*(l-f),t=d*d+e*e-f*f-j*j-k*k+l*l,u=q*n-m*r,v=(n*t-r*p)/u-d,w=(r*o-n*s)/u,x=(q*p-m*t)/u-e,y=(m*s-q*o)/u,z=w*w+y*y-1,A=2*(v*w+x*y+f),B=v*v+x*x-f*f,C=(-A-Math.sqrt(A*A-4*z*B))/(2*z);return{x:v+w*C+d,y:x+y*C+e,r:C}}function Qf(a,b,c){var d=a.x,e=a.y,f=b.r+c.r,g=a.r+c.r,h=b.x-d,i=b.y-e,j=h*h+i*i;if(j){var k=.5+((g*=g)-(f*=f))/(2*j),l=Math.sqrt(Math.max(0,2*f*(g+j)-(g-=j)*g-f*f))/(2*j);c.x=d+k*h+l*i,c.y=e+k*i-l*h}else c.x=d+g,c.y=e}function Rf(a,b){var c=b.x-a.x,d=b.y-a.y,e=a.r+b.r;return e*e>c*c+d*d}function Sf(a,b,c){var d=a.x-b,e=a.y-c;return d*d+e*e}function Tf(a){this._=a,this.next=null,this.previous=null}function Uf(a){if(!(e=a.length))return 0;var b,c,d,e;if(b=a[0],b.x=0,b.y=0,!(e>1))return b.r;if(c=a[1],b.x=-c.r,c.x=b.r,c.y=0,!(e>2))return b.r+c.r;Qf(c,b,d=a[2]);var f,g,h,i,j,k,l,m=b.r*b.r,n=c.r*c.r,o=d.r*d.r,p=m+n+o,q=m*b.x+n*c.x+o*d.x,r=m*b.y+n*c.y+o*d.y;b=new Tf(b),c=new Tf(c),d=new Tf(d),b.next=d.previous=c,c.next=b.previous=d,d.next=c.previous=b;a:for(h=3;e>h;++h){if(Qf(b._,c._,d=a[h]),d=new Tf(d),(j=b.previous)===(i=c.next)){if(Rf(i._,d._)){b=c,c=i,--h;continue a}}else{k=i._.r,l=j._.r;do if(l>=k){if(Rf(i._,d._)){c=i,b.next=c,c.previous=b,--h;continue a}i=i.next,k+=i._.r}else{if(Rf(j._,d._)){b=j,b.next=c,c.previous=b,--h;continue a}j=j.previous,l+=j._.r}while(i!==j.next)}for(d.previous=b,d.next=c,b.next=c.previous=c=d,p+=o=d._.r*d._.r,q+=o*d._.x,r+=o*d._.y,m=Sf(b._,f=q/p,g=r/p);(d=d.next)!==c;)(o=Sf(d._,f,g))<m&&(b=d,m=o);c=b.next}for(b=[c._],d=c;(d=d.next)!==c;)b.push(d._);for(d=Bs(b),h=0;e>h;++h)b=a[h],b.x-=d.x,b.y-=d.y;return d.r}function Vf(a){return null==a?null:Wf(a)}function Wf(a){if("function"!=typeof a)throw new Error;return a}function Xf(){return 0}function Yf(a){return Math.sqrt(a.value)}function Zf(a){return function(b){b.children||(b.r=Math.max(0,+a(b)||0))}}function $f(a,b){return function(c){if(d=c.children){var d,e,f,g=d.length,h=a(c)*b||0;if(h)for(e=0;g>e;++e)d[e].r+=h;if(f=Uf(d),h)for(e=0;g>e;++e)d[e].r-=h;c.r=f+h}}}function _f(a){return function(b){var c=b.parent;b.r*=a,c&&(b.x=c.x+a*b.x,b.y=c.y+a*b.y)}}function ag(a){return a.id}function bg(a){return a.parentId}function cg(a,b){return a.parent===b.parent?1:2}function dg(a){var b=a.children;return b?b[0]:a.t}function eg(a){var b=a.children;return b?b[b.length-1]:a.t}function fg(a,b,c){var d=c/(b.i-a.i);b.c-=d,b.s+=c,a.c+=d,b.z+=c,b.m+=c}function gg(a){for(var b,c=0,d=0,e=a.children,f=e.length;--f>=0;)b=e[f],b.z+=c,b.m+=c,c+=b.s+(d+=b.c)}function hg(a,b,c){return a.a.parent===b.parent?a.a:c}function ig(a,b){this._=a,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=b}function jg(a){for(var b,c,d,e,f,g=new ig(a,0),h=[g];b=h.pop();)if(d=b._.children)for(b.children=new Array(f=d.length),e=f-1;e>=0;--e)h.push(c=b.children[e]=new ig(d[e],e)),c.parent=b;return(g.parent=new ig(null,0)).children=[g],g}function kg(a,b,c,d,e,f){for(var g,h,i,j,k,l,m,n,o,p,q,r=[],s=b.children,t=0,u=0,v=s.length,w=b.value;v>t;){i=e-c,j=f-d;do k=s[u++].value;while(!k&&v>u);for(l=m=k,p=Math.max(j/i,i/j)/(w*a),q=k*k*p,o=Math.max(m/q,q/l);v>u;++u){if(k+=h=s[u].value,l>h&&(l=h),h>m&&(m=h),q=k*k*p,n=Math.max(m/q,q/l),n>o){k-=h;break}o=n}r.push(g={value:k,dice:j>i,children:s.slice(t,u)}),g.dice?Gs(g,c,d,e,w?d+=j*k/w:f):Ns(g,c,d,w?c+=i*k/w:e,f),w-=k,t=u}return r}function lg(a){return a.x+a.vx}function mg(a){return a.y+a.vy}function ng(a){return a.index}function og(a,b){var c=a.get(b);if(!c)throw new Error("missing: "+b);return c}function pg(a){return a.x}function qg(a){return a.y}function rg(){a.event.stopImmediatePropagation()}function sg(a,b){var c=a.document.documentElement,d=vr(a).on("dragstart.drag",null);b&&(d.on("click.drag",dt,!0),setTimeout(function(){d.on("click.drag",null)},0)),"onselectstart"in c?d.on("selectstart.drag",null):(c.style.MozUserSelect=c.__noselect,delete c.__noselect)}function tg(a,b,c,d,e,f,g,h,i,j){this.target=a,this.type=b,this.subject=c,this.identifier=d,this.active=e,this.x=f,this.y=g,this.dx=h,this.dy=i,this._=j}function ug(){return!a.event.button}function vg(){return this.parentNode}function wg(b){return null==b?{x:a.event.x,y:a.event.y}:b}function xg(a){return a[0]}function yg(a){return a[1]}function zg(){this._=null}function Ag(a){a.U=a.C=a.L=a.R=a.P=a.N=null}function Bg(a,b){var c=b,d=b.R,e=c.U;e?e.L===c?e.L=d:e.R=d:a._=d,d.U=e,c.U=d,c.R=d.L,c.R&&(c.R.U=c),d.L=c}function Cg(a,b){var c=b,d=b.L,e=c.U;e?e.L===c?e.L=d:e.R=d:a._=d,d.U=e,c.U=d,c.L=d.R,c.L&&(c.L.U=c),d.R=c}function Dg(a){for(;a.L;)a=a.L;return a}function Eg(a,b,c,d){var e=[null,null],f=mt.push(e)-1;return e.left=a,e.right=b,c&&Gg(e,a,b,c),d&&Gg(e,b,a,d),kt[a.index].halfedges.push(f),kt[b.index].halfedges.push(f),e}function Fg(a,b,c){var d=[b,c];return d.left=a,d}function Gg(a,b,c,d){a[0]||a[1]?a.left===c?a[1]=d:a[0]=d:(a[0]=d,a.left=b,a.right=c)}function Hg(a,b,c,d,e){var f,g=a[0],h=a[1],i=g[0],j=g[1],k=h[0],l=h[1],m=0,n=1,o=k-i,p=l-j;if(f=b-i,o||!(f>0)){if(f/=o,0>o){if(m>f)return;n>f&&(n=f)}else if(o>0){if(f>n)return;f>m&&(m=f)}if(f=d-i,o||!(0>f)){if(f/=o,0>o){if(f>n)return;f>m&&(m=f)}else if(o>0){if(m>f)return;n>f&&(n=f)}if(f=c-j,p||!(f>0)){if(f/=p,0>p){if(m>f)return;n>f&&(n=f)}else if(p>0){if(f>n)return;f>m&&(m=f)}if(f=e-j,p||!(0>f)){if(f/=p,0>p){if(f>n)return;f>m&&(m=f)}else if(p>0){if(m>f)return;n>f&&(n=f)}return m>0||1>n?(m>0&&(a[0]=[i+m*o,j+m*p]),1>n&&(a[1]=[i+n*o,j+n*p]),!0):!0}}}}}function Ig(a,b,c,d,e){var f=a[1];if(f)return!0;var g,h,i=a[0],j=a.left,k=a.right,l=j[0],m=j[1],n=k[0],o=k[1],p=(l+n)/2,q=(m+o)/2;if(o===m){if(b>p||p>=d)return;if(l>n){if(i){if(i[1]>=e)return}else i=[p,c];f=[p,e]}else{if(i){if(i[1]<c)return}else i=[p,e];f=[p,c]}}else if(g=(l-n)/(o-m),h=q-g*p,-1>g||g>1)if(l>n){if(i){if(i[1]>=e)return}else i=[(c-h)/g,c];f=[(e-h)/g,e]}else{if(i){if(i[1]<c)return}else i=[(e-h)/g,e];f=[(c-h)/g,c]}else if(o>m){if(i){if(i[0]>=d)return}else i=[b,g*b+h];f=[d,g*d+h]}else{if(i){if(i[0]<b)return}else i=[d,g*d+h];f=[b,g*b+h]}return a[0]=i,a[1]=f,!0}function Jg(a,b,c,d){for(var e,f=mt.length;f--;)Ig(e=mt[f],a,b,c,d)&&Hg(e,a,b,c,d)&&(Math.abs(e[0][0]-e[1][0])>pt||Math.abs(e[0][1]-e[1][1])>pt)||delete mt[f]}function Kg(a){return kt[a.index]={site:a,halfedges:[]}}function Lg(a,b){var c=a.site,d=b.left,e=b.right;return c===e&&(e=d,d=c),e?Math.atan2(e[1]-d[1],e[0]-d[0]):(c===d?(d=b[1],e=b[0]):(d=b[0],e=b[1]),Math.atan2(d[0]-e[0],e[1]-d[1]))}function Mg(a,b){return b[+(b.left!==a.site)]}function Ng(a,b){return b[+(b.left===a.site)]}function Og(){for(var a,b,c,d,e=0,f=kt.length;f>e;++e)if((a=kt[e])&&(d=(b=a.halfedges).length)){var g=new Array(d),h=new Array(d);for(c=0;d>c;++c)g[c]=c,h[c]=Lg(a,mt[b[c]]);for(g.sort(function(a,b){return h[b]-h[a]}),c=0;d>c;++c)h[c]=b[g[c]];for(c=0;d>c;++c)b[c]=h[c]}}function Pg(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q=kt.length,r=!0;for(e=0;q>e;++e)if(f=kt[e]){for(g=f.site,i=f.halfedges,h=i.length;h--;)mt[i[h]]||i.splice(h,1);for(h=0,j=i.length;j>h;)n=Ng(f,mt[i[h]]),o=n[0],p=n[1],k=Mg(f,mt[i[++h%j]]),l=k[0],m=k[1],(Math.abs(o-l)>pt||Math.abs(p-m)>pt)&&(i.splice(h,0,mt.push(Fg(g,n,Math.abs(o-a)<pt&&d-p>pt?[a,Math.abs(l-a)<pt?m:d]:Math.abs(p-d)<pt&&c-o>pt?[Math.abs(m-d)<pt?l:c,d]:Math.abs(o-c)<pt&&p-b>pt?[c,Math.abs(l-c)<pt?m:b]:Math.abs(p-b)<pt&&o-a>pt?[Math.abs(m-b)<pt?l:a,b]:null))-1),++j);j&&(r=!1)}if(r){var s,t,u,v=1/0;for(e=0,r=null;q>e;++e)(f=kt[e])&&(g=f.site,s=g[0]-a,t=g[1]-b,u=s*s+t*t,v>u&&(v=u,r=f));if(r){var w=[a,b],x=[a,d],y=[c,d],z=[c,b];r.halfedges.push(mt.push(Fg(g=r.site,w,x))-1,mt.push(Fg(g,x,y))-1,mt.push(Fg(g,y,z))-1,mt.push(Fg(g,z,w))-1)}}for(e=0;q>e;++e)(f=kt[e])&&(f.halfedges.length||delete kt[e])}function Qg(){Ag(this),this.x=this.y=this.arc=this.site=this.cy=null}function Rg(a){var b=a.P,c=a.N;if(b&&c){var d=b.site,e=a.site,f=c.site;if(d!==f){var g=e[0],h=e[1],i=d[0]-g,j=d[1]-h,k=f[0]-g,l=f[1]-h,m=2*(i*l-j*k);if(!(m>=-qt)){var n=i*i+j*j,o=k*k+l*l,p=(l*n-j*o)/m,q=(i*o-k*n)/m,r=nt.pop()||new Qg;r.arc=a,r.site=e,r.x=p+g,r.y=(r.cy=q+h)+Math.sqrt(p*p+q*q),a.circle=r;for(var s=null,t=lt._;t;)if(r.y<t.y||r.y===t.y&&r.x<=t.x){if(!t.L){s=t.P;break}t=t.L}else{if(!t.R){s=t;break}t=t.R}lt.insert(s,r),s||(it=r)}}}}function Sg(a){var b=a.circle;b&&(b.P||(it=b.N),lt.remove(b),nt.push(b),Ag(b),a.circle=null)}function Tg(){Ag(this),this.edge=this.site=this.circle=null}function Ug(a){var b=ot.pop()||new Tg;return b.site=a,b}function Vg(a){Sg(a),jt.remove(a),ot.push(a),Ag(a)}function Wg(a){var b=a.circle,c=b.x,d=b.cy,e=[c,d],f=a.P,g=a.N,h=[a];Vg(a);for(var i=f;i.circle&&Math.abs(c-i.circle.x)<pt&&Math.abs(d-i.circle.cy)<pt;)f=i.P,h.unshift(i),Vg(i),i=f;h.unshift(i),Sg(i);for(var j=g;j.circle&&Math.abs(c-j.circle.x)<pt&&Math.abs(d-j.circle.cy)<pt;)g=j.N,h.push(j),Vg(j),j=g;h.push(j),Sg(j);var k,l=h.length;for(k=1;l>k;++k)j=h[k],i=h[k-1],Gg(j.edge,i.site,j.site,e);i=h[0],j=h[l-1],j.edge=Eg(i.site,j.site,null,e),Rg(i),Rg(j)}function Xg(a){for(var b,c,d,e,f=a[0],g=a[1],h=jt._;h;)if(d=Yg(h,g)-f,d>pt)h=h.L;else{if(e=f-Zg(h,g),!(e>pt)){d>-pt?(b=h.P,c=h):e>-pt?(b=h,c=h.N):b=c=h;break}if(!h.R){b=h;break}h=h.R}Kg(a);var i=Ug(a);if(jt.insert(b,i),b||c){if(b===c)return Sg(b),c=Ug(b.site),jt.insert(i,c),i.edge=c.edge=Eg(b.site,i.site),Rg(b),void Rg(c);if(!c)return void(i.edge=Eg(b.site,i.site));Sg(b),Sg(c);var j=b.site,k=j[0],l=j[1],m=a[0]-k,n=a[1]-l,o=c.site,p=o[0]-k,q=o[1]-l,r=2*(m*q-n*p),s=m*m+n*n,t=p*p+q*q,u=[(q*s-n*t)/r+k,(m*t-p*s)/r+l];Gg(c.edge,j,o,u),i.edge=Eg(j,a,null,u),c.edge=Eg(a,o,null,u),Rg(b),Rg(c)}}function Yg(a,b){var c=a.site,d=c[0],e=c[1],f=e-b;if(!f)return d;var g=a.P;if(!g)return-(1/0);c=g.site;var h=c[0],i=c[1],j=i-b;if(!j)return h;var k=h-d,l=1/f-1/j,m=k/j;return l?(-m+Math.sqrt(m*m-2*l*(k*k/(-2*j)-i+j/2+e-f/2)))/l+d:(d+h)/2}function Zg(a,b){var c=a.N;if(c)return Yg(c,b);var d=a.site;return d[1]===b?d[0]:1/0}function $g(a,b,c){return(a[0]-c[0])*(b[1]-a[1])-(a[0]-b[0])*(c[1]-a[1])}function _g(a,b){return b[1]-a[1]||b[0]-a[0]}function ah(a,b){var c,d,e,f=a.sort(_g).pop();for(mt=[],kt=new Array(a.length),jt=new zg,lt=new zg;;)if(e=it,f&&(!e||f[1]<e.y||f[1]===e.y&&f[0]<e.x))f[0]===c&&f[1]===d||(Xg(f),c=f[0],d=f[1]),f=a.pop();else{if(!e)break;Wg(e.arc)}if(Og(),b){var g=+b[0][0],h=+b[0][1],i=+b[1][0],j=+b[1][1];Jg(g,h,i,j),Pg(g,h,i,j)}this.edges=mt,this.cells=kt,jt=lt=mt=kt=null}function bh(a,b,c){this.target=a,this.type=b,this.transform=c}function ch(a,b,c){this.k=a,this.x=b,this.y=c}function dh(a){return a.__zoom||tt}function eh(){a.event.stopImmediatePropagation()}function fh(){return!a.event.button}function gh(){var a,b,c=this;return c instanceof SVGElement?(c=c.ownerSVGElement||c,a=c.width.baseVal.value,b=c.height.baseVal.value):(a=c.clientWidth,b=c.clientHeight),[[0,0],[a,b]]}function hh(){return this.__zoom||tt}function ih(){a.event.stopImmediatePropagation()}function jh(a){return{type:a}}function kh(){return!a.event.button}function lh(){var a=this.ownerSVGElement||this;return[[0,0],[a.width.baseVal.value,a.height.baseVal.value]]}function mh(a){for(;!a.__brush;)if(!(a=a.parentNode))return;return a.__brush}function nh(a){return a[0][0]===a[1][0]||a[0][1]===a[1][1]}function oh(a){var b=a.__brush;return b?b.dim.output(b.selection):null}function ph(){return rh(Dt)}function qh(){return rh(Et)}function rh(b){function c(a){var c=a.property("__brush",h).selectAll(".overlay").data([jh("overlay")]);c.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Gt.overlay).merge(c).each(function(){var a=mh(this).extent;vr(this).attr("x",a[0][0]).attr("y",a[0][1]).attr("width",a[1][0]-a[0][0]).attr("height",a[1][1]-a[0][1])}),a.selectAll(".selection").data([jh("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Gt.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var e=a.selectAll(".handle").data(b.handles,function(a){return a.type});e.exit().remove(),e.enter().append("rect").attr("class",function(a){return"handle handle--"+a.type}).attr("cursor",function(a){return Gt[a.type]}),a.each(d).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",g)}function d(){var a=vr(this),b=mh(this).selection;b?(a.selectAll(".selection").style("display",null).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1]),a.selectAll(".handle").style("display",null).attr("x",function(a){return"e"===a.type[a.type.length-1]?b[1][0]-m/2:b[0][0]-m/2}).attr("y",function(a){return"s"===a.type[0]?b[1][1]-m/2:b[0][1]-m/2}).attr("width",function(a){return"n"===a.type||"s"===a.type?b[1][0]-b[0][0]+m:m}).attr("height",function(a){return"e"===a.type||"w"===a.type?b[1][1]-b[0][1]+m:m})):a.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function e(a,b){return a.__brush.emitter||new f(a,b)}function f(a,b){this.that=a,this.args=b,this.state=a.__brush,this.active=0}function g(){function c(){var a=Nq(y);!K||w||x||(Math.abs(a[0]-M[0])>Math.abs(a[1]-M[1])?x=!0:w=!0),M=a,v=!0,yt(),f()}function f(){var a;switch(t=M[0]-L[0],u=M[1]-L[1],A){case At:case zt:B&&(t=Math.max(G-l,Math.min(I-p,t)),m=l+t,q=p+t),C&&(u=Math.max(H-n,Math.min(J-r,u)),o=n+u,s=r+u);break;case Bt:0>B?(t=Math.max(G-l,Math.min(I-l,t)),m=l+t,q=p):B>0&&(t=Math.max(G-p,Math.min(I-p,t)),m=l,q=p+t),0>C?(u=Math.max(H-n,Math.min(J-n,u)),o=n+u,s=r):C>0&&(u=Math.max(H-r,Math.min(J-r,u)),o=n,s=r+u);break;case Ct:B&&(m=Math.max(G,Math.min(I,l-t*B)),q=Math.max(G,Math.min(I,p+t*B))),C&&(o=Math.max(H,Math.min(J,n-u*C)),s=Math.max(H,Math.min(J,r+u*C)))}m>q&&(B*=-1,a=l,l=p,p=a,a=m,m=q,q=a,z in Ht&&P.attr("cursor",Gt[z=Ht[z]])),o>s&&(C*=-1,a=n,n=r,r=a,a=o,o=s,s=a,z in It&&P.attr("cursor",Gt[z=It[z]])),D.selection&&(F=D.selection),w&&(m=F[0][0],q=F[1][0]),x&&(o=F[0][1],s=F[1][1]),F[0][0]===m&&F[0][1]===o&&F[1][0]===q&&F[1][1]===s||(D.selection=[[m,o],[q,s]],d.call(y),N.brush())}function g(){if(ih(),a.event.touches){if(a.event.touches.length)return;i&&clearTimeout(i),i=setTimeout(function(){i=null},500),O.on("touchmove.brush touchend.brush touchcancel.brush",null)}else sg(a.event.view,v),Q.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);O.attr("pointer-events","all"),P.attr("cursor",Gt.overlay),D.selection&&(F=D.selection),nh(F)&&(D.selection=null,d.call(y)),N.end()}function h(){switch(a.event.keyCode){case 16:K=B&&C;break;case 18:A===Bt&&(B&&(p=q-t*B,l=m+t*B),C&&(r=s-u*C,n=o+u*C),A=Ct,f());break;case 32:A!==Bt&&A!==Ct||(0>B?p=q-t:B>0&&(l=m-t),0>C?r=s-u:C>0&&(n=o-u),A=At,P.attr("cursor",Gt.selection),f());break;default:return}yt()}function j(){switch(a.event.keyCode){case 16:K&&(w=x=K=!1,f());break;case 18:A===Ct&&(0>B?p=q:B>0&&(l=m),0>C?r=s:C>0&&(n=o),A=Bt,f());break;case 32:A===At&&(a.event.altKey?(B&&(p=q-t*B,l=m+t*B),C&&(r=s-u*C,n=o+u*C),A=Ct):(0>B?p=q:B>0&&(l=m),0>C?r=s:C>0&&(n=o),A=Bt),P.attr("cursor",Gt[z]),f());break;default:return}yt()}if(a.event.touches){if(a.event.changedTouches.length<a.event.touches.length)return yt()}else if(i)return;if(k.apply(this,arguments)){var l,m,n,o,p,q,r,s,t,u,v,w,x,y=this,z=a.event.target.__data__.type,A="selection"===(a.event.metaKey?z="overlay":z)?zt:a.event.altKey?Ct:Bt,B=b===Et?null:Jt[z],C=b===Dt?null:Kt[z],D=mh(y),E=D.extent,F=D.selection,G=E[0][0],H=E[0][1],I=E[1][0],J=E[1][1],K=B&&C&&a.event.shiftKey,L=Nq(y),M=L,N=e(y,arguments).beforestart();"overlay"===z?D.selection=F=[[l=b===Et?G:L[0],n=b===Dt?H:L[1]],[p=b===Et?I:l,r=b===Dt?J:n]]:(l=F[0][0],n=F[0][1],p=F[1][0],r=F[1][1]),m=l,o=n,q=p,s=r;var O=vr(y).attr("pointer-events","none"),P=O.selectAll(".overlay").attr("cursor",Gt[z]);if(a.event.touches)O.on("touchmove.brush",c,!0).on("touchend.brush touchcancel.brush",g,!0);else{var Q=vr(a.event.view).on("keydown.brush",h,!0).on("keyup.brush",j,!0).on("mousemove.brush",c,!0).on("mouseup.brush",g,!0);et(a.event.view)}ih(),Jr(y),d.call(y),N.start()}}function h(){var a=this.__brush||{selection:null};return a.extent=j.apply(this,arguments),a.dim=b,a}var i,j=lh,k=kh,l=Fb(c,"start","brush","end"),m=6;return c.move=function(a,c){a.selection?a.on("start.brush",function(){e(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){e(this,arguments).end()}).tween("brush",function(){function a(a){g.selection=1===a&&nh(j)?null:k(a),d.call(f),h.brush()}var f=this,g=f.__brush,h=e(f,arguments),i=g.selection,j=b.input("function"==typeof c?c.apply(this,arguments):c,g.extent),k=sn(i,j);return i&&j?a:a(1)}):a.each(function(){var a=this,f=arguments,g=a.__brush,h=b.input("function"==typeof c?c.apply(a,f):c,g.extent),i=e(a,f).beforestart();Jr(a),g.selection=null==h||nh(h)?null:h,d.call(a),i.start().brush().end()})},f.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(a){Sd(new xt(c,a,b.output(this.state.selection)),l.apply,l,[a,this.that,this.args])}},c.extent=function(a){return arguments.length?(j="function"==typeof a?a:wt([[+a[0][0],+a[0][1]],[+a[1][0],+a[1][1]]]),c):j},c.filter=function(a){return arguments.length?(k="function"==typeof a?a:wt(!!a),c):k},c.handleSize=function(a){return arguments.length?(m=+a,c):m},c.on=function(){var a=l.on.apply(l,arguments);return a===l?c:a},c}function sh(a){return function(b,c){return a(b.source.value+b.target.value,c.source.value+c.target.value)}}function th(a){return a.source}function uh(a){return a.target}function vh(a){return a.radius}function wh(a){return a.startAngle}function xh(a){return a.endAngle}function yh(){this.reset()}function zh(a,b,c){var d=a.s=b+c,e=d-b,f=d-e;a.t=b-f+(c-e)}function Ah(a){return a>1?0:-1>a?Du:Math.acos(a)}function Bh(a){return a>1?Eu:-1>a?-Eu:Math.asin(a)}function Ch(a){return(a=Ru(a/2))*a}function Dh(){}function Eh(a,b){a&&Wu.hasOwnProperty(a.type)&&Wu[a.type](a,b)}function Fh(a,b,c){var d,e=-1,f=a.length-c;for(b.lineStart();++e<f;)d=a[e],b.point(d[0],d[1],d[2]);b.lineEnd()}function Gh(a,b){var c=-1,d=a.length;for(b.polygonStart();++c<d;)Fh(a[c],b,1);b.polygonEnd()}function Hh(){$u.point=Jh}function Ih(){Kh(Xt,Yt)}function Jh(a,b){$u.point=Kh,Xt=a,Yt=b,a*=Iu,b*=Iu,Zt=a,$t=Mu(b=b/2+Fu),_t=Ru(b)}function Kh(a,b){a*=Iu,b*=Iu,b=b/2+Fu;var c=a-Zt,d=c>=0?1:-1,e=d*c,f=Mu(b),g=Ru(b),h=_t*g,i=$t*f+h*Mu(e),j=h*d*Ru(e);Yu.add(Lu(j,i)),Zt=a,$t=f,_t=g}function Lh(a){return[Lu(a[1],a[0]),Bh(a[2])]}function Mh(a){var b=a[0],c=a[1],d=Mu(c);return[d*Mu(b),d*Ru(b),Ru(c)]}function Nh(a,b){return a[0]*b[0]+a[1]*b[1]+a[2]*b[2]}function Oh(a,b){return[a[1]*b[2]-a[2]*b[1],a[2]*b[0]-a[0]*b[2],a[0]*b[1]-a[1]*b[0]]}function Ph(a,b){a[0]+=b[0],a[1]+=b[1],a[2]+=b[2]}function Qh(a,b){return[a[0]*b,a[1]*b,a[2]*b]}function Rh(a){var b=Tu(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]);a[0]/=b,a[1]/=b,a[2]/=b}function Sh(a,b){iu.push(ju=[au=a,cu=a]),bu>b&&(bu=b),b>du&&(du=b)}function Th(a,b){var c=Mh([a*Iu,b*Iu]);if(hu){var d=Oh(hu,c),e=[d[1],-d[0],0],f=Oh(e,d);Rh(f),f=Lh(f);var g,h=a-eu,i=h>0?1:-1,j=f[0]*Hu*i,k=Ju(h)>180;k^(j>i*eu&&i*a>j)?(g=f[1]*Hu,g>du&&(du=g)):(j=(j+360)%360-180,k^(j>i*eu&&i*a>j)?(g=-f[1]*Hu,bu>g&&(bu=g)):(bu>b&&(bu=b),b>du&&(du=b))),k?eu>a?Zh(au,a)>Zh(au,cu)&&(cu=a):Zh(a,cu)>Zh(au,cu)&&(au=a):cu>=au?(au>a&&(au=a),a>cu&&(cu=a)):a>eu?Zh(au,a)>Zh(au,cu)&&(cu=a):Zh(a,cu)>Zh(au,cu)&&(au=a)}else Sh(a,b);hu=c,eu=a}function Uh(){bv.point=Th}function Vh(){ju[0]=au,ju[1]=cu,bv.point=Sh,hu=null}function Wh(a,b){if(hu){var c=a-eu;av.add(Ju(c)>180?c+(c>0?360:-360):c)}else fu=a,gu=b;$u.point(a,b),Th(a,b)}function Xh(){$u.lineStart()}function Yh(){Wh(fu,gu),$u.lineEnd(),Ju(av)>Bu&&(au=-(cu=180)),ju[0]=au,ju[1]=cu,hu=null}function Zh(a,b){return(b-=a)<0?b+360:b}function $h(a,b){return a[0]-b[0]}function _h(a,b){return a[0]<=a[1]?a[0]<=b&&b<=a[1]:b<a[0]||a[1]<b}function ai(a,b){a*=Iu,b*=Iu;var c=Mu(b);bi(c*Mu(a),c*Ru(a),Ru(b))}function bi(a,b,c){++ku,mu+=(a-mu)/ku,nu+=(b-nu)/ku,ou+=(c-ou)/ku}function ci(){dv.point=di}function di(a,b){a*=Iu,b*=Iu;var c=Mu(b);xu=c*Mu(a),yu=c*Ru(a),zu=Ru(b),dv.point=ei,bi(xu,yu,zu)}function ei(a,b){a*=Iu,b*=Iu;var c=Mu(b),d=c*Mu(a),e=c*Ru(a),f=Ru(b),g=Lu(Tu((g=yu*f-zu*e)*g+(g=zu*d-xu*f)*g+(g=xu*e-yu*d)*g),xu*d+yu*e+zu*f);lu+=g,pu+=g*(xu+(xu=d)),qu+=g*(yu+(yu=e)),ru+=g*(zu+(zu=f)),bi(xu,yu,zu)}function fi(){dv.point=ai}function gi(){dv.point=ii}function hi(){ji(vu,wu),dv.point=ai}function ii(a,b){vu=a,wu=b,a*=Iu,b*=Iu,dv.point=ji;var c=Mu(b);xu=c*Mu(a),yu=c*Ru(a),zu=Ru(b),bi(xu,yu,zu)}function ji(a,b){a*=Iu,b*=Iu;var c=Mu(b),d=c*Mu(a),e=c*Ru(a),f=Ru(b),g=yu*f-zu*e,h=zu*d-xu*f,i=xu*e-yu*d,j=Tu(g*g+h*h+i*i),k=xu*d+yu*e+zu*f,l=j&&-Ah(k)/j,m=Lu(j,k);su+=l*g,tu+=l*h,uu+=l*i,lu+=m,pu+=m*(xu+(xu=d)),qu+=m*(yu+(yu=e)),ru+=m*(zu+(zu=f)),bi(xu,yu,zu)}function ki(a,b){return[a>Du?a-Gu:-Du>a?a+Gu:a,b]}function li(a,b,c){return(a%=Gu)?b||c?gv(ni(a),oi(b,c)):ni(a):b||c?oi(b,c):ki}function mi(a){return function(b,c){return b+=a,[b>Du?b-Gu:-Du>b?b+Gu:b,c]}}function ni(a){var b=mi(a);return b.invert=mi(-a),b}function oi(a,b){function c(a,b){var c=Mu(b),h=Mu(a)*c,i=Ru(a)*c,j=Ru(b),k=j*d+h*e;return[Lu(i*f-k*g,h*d-j*e),Bh(k*f+i*g)]}var d=Mu(a),e=Ru(a),f=Mu(b),g=Ru(b);return c.invert=function(a,b){var c=Mu(b),h=Mu(a)*c,i=Ru(a)*c,j=Ru(b),k=j*f-i*g;return[Lu(i*f+j*g,h*d+k*e),Bh(k*d-h*e)]},c}function pi(a,b,c,d,e,f){if(c){var g=Mu(b),h=Ru(b),i=d*c;null==e?(e=b+d*Gu,f=b-i/2):(e=qi(g,e),f=qi(g,f),(d>0?f>e:e>f)&&(e+=d*Gu));for(var j,k=e;d>0?k>f:f>k;k-=i)j=Lh([g,-h*Mu(k),-h*Ru(k)]),a.point(j[0],j[1])}}function qi(a,b){b=Mh(b),b[0]-=a,Rh(b);var c=Ah(-b[1]);return((-b[2]<0?-c:c)+Gu-Bu)%Gu}function ri(a,b,c,d){this.x=a,this.z=b,this.o=c,this.e=d,this.v=!1,this.n=this.p=null}function si(a){if(b=a.length){for(var b,c,d=0,e=a[0];++d<b;)e.n=c=a[d],c.p=e,e=c;e.n=c=a[0],c.p=e}}function ti(a,b,c,d){function e(e,f){return e>=a&&c>=e&&f>=b&&d>=f}function f(e,f,h,j){var k=0,l=0;if(null==e||(k=g(e,h))!==(l=g(f,h))||i(e,f)<0^h>0){do j.point(0===k||3===k?a:c,k>1?d:b);while((k=(k+h+4)%4)!==l)}else j.point(f[0],f[1])}function g(d,e){return Ju(d[0]-a)<Bu?e>0?0:3:Ju(d[0]-c)<Bu?e>0?2:1:Ju(d[1]-b)<Bu?e>0?1:0:e>0?3:2}function h(a,b){return i(a.x,b.x)}function i(a,b){var c=g(a,1),d=g(b,1);return c!==d?c-d:0===c?b[1]-a[1]:1===c?a[0]-b[0]:2===c?a[1]-b[1]:b[0]-a[0]}return function(g){function i(a,b){e(a,b)&&A.point(a,b)}function j(){for(var b=0,c=0,e=q.length;e>c;++c)for(var f,g,h=q[c],i=1,j=h.length,k=h[0],l=k[0],m=k[1];j>i;++i)f=l,g=m,k=h[i],l=k[0],m=k[1],d>=g?m>d&&(l-f)*(d-g)>(m-g)*(a-f)&&++b:d>=m&&(m-g)*(a-f)>(l-f)*(d-g)&&--b;return b}function k(){A=B,p=[],q=[],z=!0}function l(){var a=j(),b=z&&a,c=(p=Yj(p)).length;(b||c)&&(g.polygonStart(),b&&(g.lineStart(),f(null,null,1,g),g.lineEnd()),c&&xv(p,h,a,f,g),g.polygonEnd()),A=g,p=q=r=null}function m(){C.point=o,q&&q.push(r=[]),y=!0,x=!1,v=w=NaN}function n(){p&&(o(s,t),u&&x&&B.rejoin(),p.push(B.result())),C.point=i,x&&A.lineEnd()}function o(f,g){var h=e(f,g);if(q&&r.push([f,g]),y)s=f,t=g,u=h,y=!1,h&&(A.lineStart(),A.point(f,g));else if(h&&x)A.point(f,g);else{var i=[v=Math.max(zv,Math.min(yv,v)),w=Math.max(zv,Math.min(yv,w))],j=[f=Math.max(zv,Math.min(yv,f)),g=Math.max(zv,Math.min(yv,g))];vv(i,j,a,b,c,d)?(x||(A.lineStart(),A.point(i[0],i[1])),A.point(j[0],j[1]),h||A.lineEnd(),z=!1):h&&(A.lineStart(),A.point(f,g),z=!1)}v=f,w=g,x=h}var p,q,r,s,t,u,v,w,x,y,z,A=g,B=uv(),C={point:i,lineStart:m,lineEnd:n,polygonStart:k,polygonEnd:l};return C}}function ui(){Cv.point=wi,Cv.lineEnd=vi}function vi(){Cv.point=Cv.lineEnd=Dh}function wi(a,b){a*=Iu,b*=Iu,hv=a,iv=Ru(b),jv=Mu(b),Cv.point=xi}function xi(a,b){a*=Iu,b*=Iu;var c=Ru(b),d=Mu(b),e=Ju(a-hv),f=Mu(e),g=Ru(e),h=d*g,i=jv*c-iv*d*f,j=iv*c+jv*d*f;Bv.add(Lu(Tu(h*h+i*i),j)),hv=a,iv=c,jv=d}function yi(a,b,c){var d=Lj(a,b-Bu,c).concat(b);return function(a){return d.map(function(b){return[a,b]})}}function zi(a,b,c){var d=Lj(a,b-Bu,c).concat(b);return function(a){return d.map(function(b){return[b,a]})}}function Ai(){function a(){return{type:"MultiLineString",coordinates:b()}}function b(){return Lj(Nu(f/q)*q,e,q).map(m).concat(Lj(Nu(j/r)*r,i,r).map(n)).concat(Lj(Nu(d/o)*o,c,o).filter(function(a){return Ju(a%q)>Bu}).map(k)).concat(Lj(Nu(h/p)*p,g,p).filter(function(a){return Ju(a%r)>Bu}).map(l))}var c,d,e,f,g,h,i,j,k,l,m,n,o=10,p=o,q=90,r=360,s=2.5;return a.lines=function(){return b().map(function(a){return{type:"LineString",coordinates:a}})},a.outline=function(){return{type:"Polygon",coordinates:[m(f).concat(n(i).slice(1),m(e).reverse().slice(1),n(j).reverse().slice(1))]}},a.extent=function(b){return arguments.length?a.extentMajor(b).extentMinor(b):a.extentMinor()},a.extentMajor=function(b){return arguments.length?(f=+b[0][0],e=+b[1][0],j=+b[0][1],i=+b[1][1],f>e&&(b=f,f=e,e=b),j>i&&(b=j,j=i,i=b),a.precision(s)):[[f,j],[e,i]]},a.extentMinor=function(b){return arguments.length?(d=+b[0][0],c=+b[1][0],h=+b[0][1],g=+b[1][1],d>c&&(b=d,d=c,c=b),h>g&&(b=h,h=g,g=b),a.precision(s)):[[d,h],[c,g]]},a.step=function(b){return arguments.length?a.stepMajor(b).stepMinor(b):a.stepMinor()},a.stepMajor=function(b){return arguments.length?(q=+b[0],r=+b[1],a):[q,r]},a.stepMinor=function(b){return arguments.length?(o=+b[0],p=+b[1],a):[o,p]},a.precision=function(b){return arguments.length?(s=+b,k=yi(h,g,90),l=zi(d,c,s),m=yi(j,i,90),n=zi(f,e,s),a):s},a.extentMajor([[-180,-90+Bu],[180,90-Bu]]).extentMinor([[-180,-80-Bu],[180,80+Bu]])}function Bi(){return Ai()()}function Ci(){Lv.point=Di}function Di(a,b){Lv.point=Ei,kv=mv=a,lv=nv=b}function Ei(a,b){Kv.add(nv*a-mv*b),mv=a,nv=b}function Fi(){Ei(kv,lv)}function Gi(a,b){Mv>a&&(Mv=a),a>Ov&&(Ov=a),Nv>b&&(Nv=b),b>Pv&&(Pv=b)}function Hi(a,b){Rv+=a,Sv+=b,++Tv}function Ii(){$v.point=Ji}function Ji(a,b){$v.point=Ki,Hi(qv=a,rv=b)}function Ki(a,b){var c=a-qv,d=b-rv,e=Tu(c*c+d*d);Uv+=e*(qv+a)/2,Vv+=e*(rv+b)/2,Wv+=e,Hi(qv=a,rv=b)}function Li(){$v.point=Hi}function Mi(){$v.point=Oi}function Ni(){Pi(ov,pv)}function Oi(a,b){$v.point=Pi,Hi(ov=qv=a,pv=rv=b)}function Pi(a,b){var c=a-qv,d=b-rv,e=Tu(c*c+d*d);Uv+=e*(qv+a)/2,Vv+=e*(rv+b)/2,Wv+=e,e=rv*a-qv*b,Xv+=e*(qv+a),Yv+=e*(rv+b),Zv+=3*e,Hi(qv=a,rv=b)}function Qi(a){this._context=a}function Ri(){this._string=[]}function Si(a){return"m0,"+a+"a"+a+","+a+" 0 1,1 0,"+-2*a+"a"+a+","+a+" 0 1,1 0,"+2*a+"z"}function Ti(a){return a.length>1}function Ui(a,b){return((a=a.x)[0]<0?a[1]-Eu-Bu:Eu-a[1])-((b=b.x)[0]<0?b[1]-Eu-Bu:Eu-b[1])}function Vi(a){var b,c=NaN,d=NaN,e=NaN;return{lineStart:function(){a.lineStart(),b=1},point:function(f,g){var h=f>0?Du:-Du,i=Ju(f-c);Ju(i-Du)<Bu?(a.point(c,d=(d+g)/2>0?Eu:-Eu),a.point(e,d),a.lineEnd(),a.lineStart(),a.point(h,d),a.point(f,d),b=0):e!==h&&i>=Du&&(Ju(c-e)<Bu&&(c-=e*Bu),Ju(f-h)<Bu&&(f-=h*Bu),d=Wi(c,d,f,g),a.point(e,d),a.lineEnd(),a.lineStart(),a.point(h,d),b=0),a.point(c=f,d=g),e=h},lineEnd:function(){a.lineEnd(),c=d=NaN},clean:function(){return 2-b}}}function Wi(a,b,c,d){var e,f,g=Ru(a-c);return Ju(g)>Bu?Ku((Ru(b)*(f=Mu(d))*Ru(c)-Ru(d)*(e=Mu(b))*Ru(a))/(e*f*g)):(b+d)/2}function Xi(a,b,c,d){var e;if(null==a)e=c*Eu,d.point(-Du,e),d.point(0,e),d.point(Du,e),d.point(Du,0),d.point(Du,-e),d.point(0,-e),d.point(-Du,-e),d.point(-Du,0),d.point(-Du,e);else if(Ju(a[0]-b[0])>Bu){var f=a[0]<b[0]?Du:-Du;e=c*f/2,d.point(-f,e),d.point(0,e),d.point(f,e)}else d.point(b[0],b[1])}function Yi(a){return function(b){var c=new Zi;for(var d in a)c[d]=a[d];return c.stream=b,c}}function Zi(){}function $i(a,b,c){var d=b[1][0]-b[0][0],e=b[1][1]-b[0][1],f=a.clipExtent&&a.clipExtent();a.scale(150).translate([0,0]),null!=f&&a.clipExtent(null),Xu(c,a.stream(Qv));var g=Qv.result(),h=Math.min(d/(g[1][0]-g[0][0]),e/(g[1][1]-g[0][1])),i=+b[0][0]+(d-h*(g[1][0]+g[0][0]))/2,j=+b[0][1]+(e-h*(g[1][1]+g[0][1]))/2;return null!=f&&a.clipExtent(f),a.scale(150*h).translate([i,j])}function _i(a,b,c){return $i(a,[[0,0],b],c)}function aj(a){return Yi({point:function(b,c){b=a(b,c),this.stream.point(b[0],b[1])}})}function bj(a,b){function c(d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r=j-d,s=k-e,t=r*r+s*s;if(t>4*b&&p--){var u=g+m,v=h+n,w=i+o,x=Tu(u*u+v*v+w*w),y=Bh(w/=x),z=Ju(Ju(w)-1)<Bu||Ju(f-l)<Bu?(f+l)/2:Lu(v,u),A=a(z,y),B=A[0],C=A[1],D=B-d,E=C-e,F=s*D-r*E;(F*F/t>b||Ju((r*D+s*E)/t-.5)>.3||hw>g*m+h*n+i*o)&&(c(d,e,f,g,h,i,B,C,z,u/=x,v/=x,w,p,q),q.point(B,C),c(B,C,z,u,v,w,j,k,l,m,n,o,p,q))}}return function(b){function d(c,d){c=a(c,d),b.point(c[0],c[1])}function e(){r=NaN,w.point=f,b.lineStart()}function f(d,e){var f=Mh([d,e]),g=a(d,e);c(r,s,q,t,u,v,r=g[0],s=g[1],q=d,t=f[0],u=f[1],v=f[2],gw,b),b.point(r,s)}function g(){w.point=d,b.lineEnd()}function h(){e(),w.point=i,w.lineEnd=j}function i(a,b){f(k=a,b),l=r,m=s,n=t,o=u,p=v,w.point=f}function j(){c(r,s,q,t,u,v,l,m,k,n,o,p,gw,b),w.lineEnd=g,g()}var k,l,m,n,o,p,q,r,s,t,u,v,w={point:d,lineStart:e,lineEnd:g,polygonStart:function(){b.polygonStart(),w.lineStart=h},polygonEnd:function(){b.polygonEnd(),
  w.lineStart=e}};return w}}function cj(a){return dj(function(){return a})()}function dj(a){function b(a){return a=k(a[0]*Iu,a[1]*Iu),[a[0]*q+h,i-a[1]*q]}function c(a){return a=k.invert((a[0]-h)/q,(i-a[1])/q),a&&[a[0]*Hu,a[1]*Hu]}function d(a,b){return a=g(a,b),[a[0]*q+h,i-a[1]*q]}function e(){k=gv(j=li(v,w,x),g);var a=g(t,u);return h=r-a[0]*q,i=s+a[1]*q,f()}function f(){return o=p=null,b}var g,h,i,j,k,l,m,n,o,p,q=150,r=480,s=250,t=0,u=0,v=0,w=0,x=0,y=null,z=dw,A=null,B=Iv,C=.5,D=iw(d,C);return b.stream=function(a){return o&&p===a?o:o=jw(z(j,D(B(p=a))))},b.clipAngle=function(a){return arguments.length?(z=+a?ew(y=a*Iu,6*Iu):(y=null,dw),f()):y*Hu},b.clipExtent=function(a){return arguments.length?(B=null==a?(A=l=m=n=null,Iv):ti(A=+a[0][0],l=+a[0][1],m=+a[1][0],n=+a[1][1]),f()):null==A?null:[[A,l],[m,n]]},b.scale=function(a){return arguments.length?(q=+a,e()):q},b.translate=function(a){return arguments.length?(r=+a[0],s=+a[1],e()):[r,s]},b.center=function(a){return arguments.length?(t=a[0]%360*Iu,u=a[1]%360*Iu,e()):[t*Hu,u*Hu]},b.rotate=function(a){return arguments.length?(v=a[0]%360*Iu,w=a[1]%360*Iu,x=a.length>2?a[2]%360*Iu:0,e()):[v*Hu,w*Hu,x*Hu]},b.precision=function(a){return arguments.length?(D=iw(d,C=a*a),f()):Tu(C)},b.fitExtent=function(a,c){return $i(b,a,c)},b.fitSize=function(a,c){return _i(b,a,c)},function(){return g=a.apply(this,arguments),b.invert=g.invert&&c,e()}}function ej(a){var b=0,c=Du/3,d=dj(a),e=d(b,c);return e.parallels=function(a){return arguments.length?d(b=a[0]*Iu,c=a[1]*Iu):[b*Hu,c*Hu]},e}function fj(a){function b(a,b){return[a*c,Ru(b)/c]}var c=Mu(a);return b.invert=function(a,b){return[a/c,Bh(b*c)]},b}function gj(a,b){function c(a,b){var c=Tu(f-2*e*Ru(b))/e;return[c*Ru(a*=e),g-c*Mu(a)]}var d=Ru(a),e=(d+Ru(b))/2;if(Ju(e)<Bu)return fj(a);var f=1+d*(2*e-d),g=Tu(f)/e;return c.invert=function(a,b){var c=g-b;return[Lu(a,Ju(c))/e*Su(c),Bh((f-(a*a+c*c)*e*e)/(2*e))]},c}function hj(a){var b=a.length;return{point:function(c,d){for(var e=-1;++e<b;)a[e].point(c,d)},sphere:function(){for(var c=-1;++c<b;)a[c].sphere()},lineStart:function(){for(var c=-1;++c<b;)a[c].lineStart()},lineEnd:function(){for(var c=-1;++c<b;)a[c].lineEnd()},polygonStart:function(){for(var c=-1;++c<b;)a[c].polygonStart()},polygonEnd:function(){for(var c=-1;++c<b;)a[c].polygonEnd()}}}function ij(a){return function(b,c){var d=Mu(b),e=Mu(c),f=a(d*e);return[f*e*Ru(b),f*Ru(c)]}}function jj(a){return function(b,c){var d=Tu(b*b+c*c),e=a(d),f=Ru(e),g=Mu(e);return[Lu(b*f,d*g),Bh(d&&c*f/d)]}}function kj(a,b){return[a,Pu(Uu((Eu+b)/2))]}function lj(a){var b,c=cj(a),d=c.scale,e=c.translate,f=c.clipExtent;return c.scale=function(a){return arguments.length?(d(a),b&&c.clipExtent(null),c):d()},c.translate=function(a){return arguments.length?(e(a),b&&c.clipExtent(null),c):e()},c.clipExtent=function(a){if(!arguments.length)return b?null:f();if(b=null==a){var g=Du*d(),h=e();a=[[h[0]-g,h[1]-g],[h[0]+g,h[1]+g]]}return f(a),c},c.clipExtent(null)}function mj(a){return Uu((Eu+a)/2)}function nj(a,b){function c(a,b){f>0?-Eu+Bu>b&&(b=-Eu+Bu):b>Eu-Bu&&(b=Eu-Bu);var c=f/Qu(mj(b),e);return[c*Ru(e*a),f-c*Mu(e*a)]}var d=Mu(a),e=a===b?Ru(a):Pu(d/Mu(b))/Pu(mj(b)/mj(a)),f=d*Qu(mj(a),e)/e;return e?(c.invert=function(a,b){var c=f-b,d=Su(e)*Tu(a*a+c*c);return[Lu(a,Ju(c))/e*Su(c),2*Ku(Qu(f/d,1/e))-Eu]},c):kj}function oj(a,b){return[a,b]}function pj(a,b){function c(a,b){var c=f-b,d=e*a;return[c*Ru(d),f-c*Mu(d)]}var d=Mu(a),e=a===b?Ru(a):(d-Mu(b))/(b-a),f=d/e+a;return Ju(e)<Bu?oj:(c.invert=function(a,b){var c=f-b;return[Lu(a,Ju(c))/e*Su(c),f-Su(e)*Tu(a*a+c*c)]},c)}function qj(a,b){var c=Mu(b),d=Mu(a)*c;return[c*Ru(a)/d,Ru(b)/d]}function rj(a,b,c,d){return 1===a&&1===b&&0===c&&0===d?Iv:Yi({point:function(e,f){this.stream.point(e*a+c,f*b+d)}})}function sj(a,b){return[Mu(b)*Ru(a),Ru(b)]}function tj(a,b){var c=Mu(b),d=1+Mu(a)*c;return[c*Ru(a)/d,Ru(b)/d]}function uj(a,b){return[Pu(Uu((Eu+b)/2)),-a]}var vj="4.4.1",wj=function(a,b){return b>a?-1:a>b?1:a>=b?0:NaN},xj=function(a){return 1===a.length&&(a=b(a)),{left:function(b,c,d,e){for(null==d&&(d=0),null==e&&(e=b.length);e>d;){var f=d+e>>>1;a(b[f],c)<0?d=f+1:e=f}return d},right:function(b,c,d,e){for(null==d&&(d=0),null==e&&(e=b.length);e>d;){var f=d+e>>>1;a(b[f],c)>0?e=f:d=f+1}return d}}},yj=xj(wj),zj=yj.right,Aj=yj.left,Bj=function(a,b){return a>b?-1:b>a?1:b>=a?0:NaN},Cj=function(a){return null===a?NaN:+a},Dj=function(a,b){var c,d,e=a.length,f=0,g=0,h=-1,i=0;if(null==b)for(;++h<e;)isNaN(c=Cj(a[h]))||(d=c-f,f+=d/++i,g+=d*(c-f));else for(;++h<e;)isNaN(c=Cj(b(a[h],h,a)))||(d=c-f,f+=d/++i,g+=d*(c-f));return i>1?g/(i-1):void 0},Ej=function(a,b){var c=Dj(a,b);return c?Math.sqrt(c):c},Fj=function(a,b){var c,d,e,f=-1,g=a.length;if(null==b){for(;++f<g;)if(null!=(d=a[f])&&d>=d){c=e=d;break}for(;++f<g;)null!=(d=a[f])&&(c>d&&(c=d),d>e&&(e=d))}else{for(;++f<g;)if(null!=(d=b(a[f],f,a))&&d>=d){c=e=d;break}for(;++f<g;)null!=(d=b(a[f],f,a))&&(c>d&&(c=d),d>e&&(e=d))}return[c,e]},Gj=Array.prototype,Hj=Gj.slice,Ij=Gj.map,Jj=function(a){return function(){return a}},Kj=function(a){return a},Lj=function(a,b,c){a=+a,b=+b,c=(e=arguments.length)<2?(b=a,a=0,1):3>e?1:+c;for(var d=-1,e=0|Math.max(0,Math.ceil((b-a)/c)),f=new Array(e);++d<e;)f[d]=a+d*c;return f},Mj=Math.sqrt(50),Nj=Math.sqrt(10),Oj=Math.sqrt(2),Pj=function(a,b,d){var e=c(a,b,d);return Lj(Math.ceil(a/e)*e,Math.floor(b/e)*e+e/2,e)},Qj=function(a){return Math.ceil(Math.log(a.length)/Math.LN2)+1},Rj=function(){function a(a){var e,f,g=a.length,h=new Array(g);for(e=0;g>e;++e)h[e]=b(a[e],e,a);var i=c(h),j=i[0],k=i[1],l=d(h,j,k);Array.isArray(l)||(l=Pj(j,k,l));for(var m=l.length;l[0]<=j;)l.shift(),--m;for(;l[m-1]>=k;)l.pop(),--m;var n,o=new Array(m+1);for(e=0;m>=e;++e)n=o[e]=[],n.x0=e>0?l[e-1]:j,n.x1=m>e?l[e]:k;for(e=0;g>e;++e)f=h[e],f>=j&&k>=f&&o[zj(l,f,0,m)].push(a[e]);return o}var b=Kj,c=Fj,d=Qj;return a.value=function(c){return arguments.length?(b="function"==typeof c?c:Jj(c),a):b},a.domain=function(b){return arguments.length?(c="function"==typeof b?b:Jj([b[0],b[1]]),a):c},a.thresholds=function(b){return arguments.length?(d="function"==typeof b?b:Jj(Array.isArray(b)?Hj.call(b):b),a):d},a},Sj=function(a,b,c){if(null==c&&(c=Cj),d=a.length){if((b=+b)<=0||2>d)return+c(a[0],0,a);if(b>=1)return+c(a[d-1],d-1,a);var d,e=(d-1)*b,f=Math.floor(e),g=+c(a[f],f,a),h=+c(a[f+1],f+1,a);return g+(h-g)*(e-f)}},Tj=function(a,b,c){return a=Ij.call(a,Cj).sort(wj),Math.ceil((c-b)/(2*(Sj(a,.75)-Sj(a,.25))*Math.pow(a.length,-1/3)))},Uj=function(a,b,c){return Math.ceil((c-b)/(3.5*Ej(a)*Math.pow(a.length,-1/3)))},Vj=function(a,b){var c,d,e=-1,f=a.length;if(null==b){for(;++e<f;)if(null!=(d=a[e])&&d>=d){c=d;break}for(;++e<f;)null!=(d=a[e])&&d>c&&(c=d)}else{for(;++e<f;)if(null!=(d=b(a[e],e,a))&&d>=d){c=d;break}for(;++e<f;)null!=(d=b(a[e],e,a))&&d>c&&(c=d)}return c},Wj=function(a,b){var c,d=0,e=a.length,f=-1,g=e;if(null==b)for(;++f<e;)isNaN(c=Cj(a[f]))?--g:d+=c;else for(;++f<e;)isNaN(c=Cj(b(a[f],f,a)))?--g:d+=c;return g?d/g:void 0},Xj=function(a,b){var c,d=[],e=a.length,f=-1;if(null==b)for(;++f<e;)isNaN(c=Cj(a[f]))||d.push(c);else for(;++f<e;)isNaN(c=Cj(b(a[f],f,a)))||d.push(c);return Sj(d.sort(wj),.5)},Yj=function(a){for(var b,c,d,e=a.length,f=-1,g=0;++f<e;)g+=a[f].length;for(c=new Array(g);--e>=0;)for(d=a[e],b=d.length;--b>=0;)c[--g]=d[b];return c},Zj=function(a,b){var c,d,e=-1,f=a.length;if(null==b){for(;++e<f;)if(null!=(d=a[e])&&d>=d){c=d;break}for(;++e<f;)null!=(d=a[e])&&c>d&&(c=d)}else{for(;++e<f;)if(null!=(d=b(a[e],e,a))&&d>=d){c=d;break}for(;++e<f;)null!=(d=b(a[e],e,a))&&c>d&&(c=d)}return c},$j=function(a){for(var b=0,c=a.length-1,d=a[0],e=new Array(0>c?0:c);c>b;)e[b]=[d,d=a[++b]];return e},_j=function(a,b){for(var c=b.length,d=new Array(c);c--;)d[c]=a[b[c]];return d},ak=function(a,b){if(c=a.length){var c,d,e=0,f=0,g=a[f];for(b||(b=wj);++e<c;)(b(d=a[e],g)<0||0!==b(g,g))&&(g=d,f=e);return 0===b(g,g)?f:void 0}},bk=function(a,b,c){for(var d,e,f=(null==c?a.length:c)-(b=null==b?0:+b);f;)e=Math.random()*f--|0,d=a[f+b],a[f+b]=a[e+b],a[e+b]=d;return a},ck=function(a,b){var c,d=0,e=a.length,f=-1;if(null==b)for(;++f<e;)(c=+a[f])&&(d+=c);else for(;++f<e;)(c=+b(a[f],f,a))&&(d+=c);return d},dk=function(a){if(!(f=a.length))return[];for(var b=-1,c=Zj(a,d),e=new Array(c);++b<c;)for(var f,g=-1,h=e[b]=new Array(f);++g<f;)h[g]=a[g][b];return e},ek=function(){return dk(arguments)},fk="$";e.prototype=f.prototype={constructor:e,has:function(a){return fk+a in this},get:function(a){return this[fk+a]},set:function(a,b){return this[fk+a]=b,this},remove:function(a){var b=fk+a;return b in this&&delete this[b]},clear:function(){for(var a in this)a[0]===fk&&delete this[a]},keys:function(){var a=[];for(var b in this)b[0]===fk&&a.push(b.slice(1));return a},values:function(){var a=[];for(var b in this)b[0]===fk&&a.push(this[b]);return a},entries:function(){var a=[];for(var b in this)b[0]===fk&&a.push({key:b.slice(1),value:this[b]});return a},size:function(){var a=0;for(var b in this)b[0]===fk&&++a;return a},empty:function(){for(var a in this)if(a[0]===fk)return!1;return!0},each:function(a){for(var b in this)b[0]===fk&&a(this[b],b.slice(1),this)}};var gk=function(){function a(b,e,g,h){if(e>=k.length)return null!=d?d(b):null!=c?b.sort(c):b;for(var i,j,l,m=-1,n=b.length,o=k[e++],p=f(),q=g();++m<n;)(l=p.get(i=o(j=b[m])+""))?l.push(j):p.set(i,[j]);return p.each(function(b,c){h(q,c,a(b,e,g,h))}),q}function b(a,c){if(++c>k.length)return a;var e,f=l[c-1];return null!=d&&c>=k.length?e=a.entries():(e=[],a.each(function(a,d){e.push({key:d,values:b(a,c)})})),null!=f?e.sort(function(a,b){return f(a.key,b.key)}):e}var c,d,e,k=[],l=[];return e={object:function(b){return a(b,0,g,h)},map:function(b){return a(b,0,i,j)},entries:function(c){return b(a(c,0,i,j),0)},key:function(a){return k.push(a),e},sortKeys:function(a){return l[k.length-1]=a,e},sortValues:function(a){return c=a,e},rollup:function(a){return d=a,e}}},hk=f.prototype;k.prototype=l.prototype={constructor:k,has:hk.has,add:function(a){return a+="",this[fk+a]=a,this},remove:hk.remove,clear:hk.clear,values:hk.keys,size:hk.size,empty:hk.empty,each:hk.each};var ik=function(a){var b=[];for(var c in a)b.push(c);return b},jk=function(a){var b=[];for(var c in a)b.push(a[c]);return b},kk=function(a){var b=[];for(var c in a)b.push({key:c,value:a[c]});return b},lk=function(a,b){return a=null==a?0:+a,b=null==b?1:+b,1===arguments.length?(b=a,a=0):b-=a,function(){return Math.random()*b+a}},mk=function(a,b){var c,d;return a=null==a?0:+a,b=null==b?1:+b,function(){var e;if(null!=c)e=c,c=null;else do c=2*Math.random()-1,e=2*Math.random()-1,d=c*c+e*e;while(!d||d>1);return a+b*e*Math.sqrt(-2*Math.log(d)/d)}},nk=function(){var a=mk.apply(this,arguments);return function(){return Math.exp(a())}},ok=function(a){return function(){for(var b=0,c=0;a>c;++c)b+=Math.random();return b}},pk=function(a){var b=ok(a);return function(){return b()/a}},qk=function(a){return function(){return-Math.log(1-Math.random())/a}},rk=3,sk=function Aw(a){function b(b){return Math.pow(b,a)}return a=+a,b.exponent=Aw,b}(rk),tk=function Bw(a){function b(b){return 1-Math.pow(1-b,a)}return a=+a,b.exponent=Bw,b}(rk),uk=function Cw(a){function b(b){return((b*=2)<=1?Math.pow(b,a):2-Math.pow(2-b,a))/2}return a=+a,b.exponent=Cw,b}(rk),vk=Math.PI,wk=vk/2,xk=4/11,yk=6/11,zk=8/11,Ak=.75,Bk=9/11,Ck=10/11,Dk=.9375,Ek=21/22,Fk=63/64,Gk=1/xk/xk,Hk=1.70158,Ik=function Dw(a){function b(b){return b*b*((a+1)*b-a)}return a=+a,b.overshoot=Dw,b}(Hk),Jk=function Ew(a){function b(b){return--b*b*((a+1)*b+a)+1}return a=+a,b.overshoot=Ew,b}(Hk),Kk=function Fw(a){function b(b){return((b*=2)<1?b*b*((a+1)*b-a):(b-=2)*b*((a+1)*b+a)+2)/2}return a=+a,b.overshoot=Fw,b}(Hk),Lk=2*Math.PI,Mk=1,Nk=.3,Ok=function Gw(a,b){function c(c){return a*Math.pow(2,10*--c)*Math.sin((d-c)/b)}var d=Math.asin(1/(a=Math.max(1,a)))*(b/=Lk);return c.amplitude=function(a){return Gw(a,b*Lk)},c.period=function(b){return Gw(a,b)},c}(Mk,Nk),Pk=function Hw(a,b){function c(c){return 1-a*Math.pow(2,-10*(c=+c))*Math.sin((c+d)/b)}var d=Math.asin(1/(a=Math.max(1,a)))*(b/=Lk);return c.amplitude=function(a){return Hw(a,b*Lk)},c.period=function(b){return Hw(a,b)},c}(Mk,Nk),Qk=function Iw(a,b){function c(c){return((c=2*c-1)<0?a*Math.pow(2,10*c)*Math.sin((d-c)/b):2-a*Math.pow(2,-10*c)*Math.sin((d+c)/b))/2}var d=Math.asin(1/(a=Math.max(1,a)))*(b/=Lk);return c.amplitude=function(a){return Iw(a,b*Lk)},c.period=function(b){return Iw(a,b)},c}(Mk,Nk),Rk=function(a){for(var b,c=-1,d=a.length,e=a[d-1],f=0;++c<d;)b=e,e=a[c],f+=b[1]*e[0]-b[0]*e[1];return f/2},Sk=function(a){for(var b,c,d=-1,e=a.length,f=0,g=0,h=a[e-1],i=0;++d<e;)b=h,h=a[d],i+=c=b[0]*h[1]-h[0]*b[1],f+=(b[0]+h[0])*c,g+=(b[1]+h[1])*c;return i*=3,[f/i,g/i]},Tk=function(a,b,c){return(b[0]-a[0])*(c[1]-a[1])-(b[1]-a[1])*(c[0]-a[0])},Uk=function(a){if((c=a.length)<3)return null;var b,c,d=new Array(c),e=new Array(c);for(b=0;c>b;++b)d[b]=[+a[b][0],+a[b][1],b];for(d.sort(F),b=0;c>b;++b)e[b]=[d[b][0],-d[b][1]];var f=G(d),g=G(e),h=g[0]===f[0],i=g[g.length-1]===f[f.length-1],j=[];for(b=f.length-1;b>=0;--b)j.push(a[d[f[b]][2]]);for(b=+h;b<g.length-i;++b)j.push(a[d[g[b]][2]]);return j},Vk=function(a,b){for(var c,d,e=a.length,f=a[e-1],g=b[0],h=b[1],i=f[0],j=f[1],k=!1,l=0;e>l;++l)f=a[l],c=f[0],d=f[1],d>h!=j>h&&(i-c)*(h-d)/(j-d)+c>g&&(k=!k),i=c,j=d;return k},Wk=function(a){for(var b,c,d=-1,e=a.length,f=a[e-1],g=f[0],h=f[1],i=0;++d<e;)b=g,c=h,f=a[d],g=f[0],h=f[1],b-=g,c-=h,i+=Math.sqrt(b*b+c*c);return i},Xk=Math.PI,Yk=2*Xk,Zk=1e-6,$k=Yk-Zk;H.prototype=I.prototype={constructor:H,moveTo:function(a,b){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(a,b){this._+="L"+(this._x1=+a)+","+(this._y1=+b)},quadraticCurveTo:function(a,b,c,d){this._+="Q"+ +a+","+ +b+","+(this._x1=+c)+","+(this._y1=+d)},bezierCurveTo:function(a,b,c,d,e,f){this._+="C"+ +a+","+ +b+","+ +c+","+ +d+","+(this._x1=+e)+","+(this._y1=+f)},arcTo:function(a,b,c,d,e){a=+a,b=+b,c=+c,d=+d,e=+e;var f=this._x1,g=this._y1,h=c-a,i=d-b,j=f-a,k=g-b,l=j*j+k*k;if(0>e)throw new Error("negative radius: "+e);if(null===this._x1)this._+="M"+(this._x1=a)+","+(this._y1=b);else if(l>Zk)if(Math.abs(k*h-i*j)>Zk&&e){var m=c-f,n=d-g,o=h*h+i*i,p=m*m+n*n,q=Math.sqrt(o),r=Math.sqrt(l),s=e*Math.tan((Xk-Math.acos((o+l-p)/(2*q*r)))/2),t=s/r,u=s/q;Math.abs(t-1)>Zk&&(this._+="L"+(a+t*j)+","+(b+t*k)),this._+="A"+e+","+e+",0,0,"+ +(k*m>j*n)+","+(this._x1=a+u*h)+","+(this._y1=b+u*i)}else this._+="L"+(this._x1=a)+","+(this._y1=b);else;},arc:function(a,b,c,d,e,f){a=+a,b=+b,c=+c;var g=c*Math.cos(d),h=c*Math.sin(d),i=a+g,j=b+h,k=1^f,l=f?d-e:e-d;if(0>c)throw new Error("negative radius: "+c);null===this._x1?this._+="M"+i+","+j:(Math.abs(this._x1-i)>Zk||Math.abs(this._y1-j)>Zk)&&(this._+="L"+i+","+j),c&&(l>$k?this._+="A"+c+","+c+",0,1,"+k+","+(a-g)+","+(b-h)+"A"+c+","+c+",0,1,"+k+","+(this._x1=i)+","+(this._y1=j):(0>l&&(l=l%Yk+Yk),this._+="A"+c+","+c+",0,"+ +(l>=Xk)+","+k+","+(this._x1=a+c*Math.cos(e))+","+(this._y1=b+c*Math.sin(e))))},rect:function(a,b,c,d){this._+="M"+(this._x0=this._x1=+a)+","+(this._y0=this._y1=+b)+"h"+ +c+"v"+ +d+"h"+-c+"Z"},toString:function(){return this._}};var _k=function(a){var b=+this._x.call(null,a),c=+this._y.call(null,a);return J(this.cover(b,c),b,c,a)},al=function(a,b){if(isNaN(a=+a)||isNaN(b=+b))return this;var c=this._x0,d=this._y0,e=this._x1,f=this._y1;if(isNaN(c))e=(c=Math.floor(a))+1,f=(d=Math.floor(b))+1;else{if(!(c>a||a>e||d>b||b>f))return this;var g,h,i=e-c,j=this._root;switch(h=((d+f)/2>b)<<1|(c+e)/2>a){case 0:do g=new Array(4),g[h]=j,j=g;while(i*=2,e=c+i,f=d+i,a>e||b>f);break;case 1:do g=new Array(4),g[h]=j,j=g;while(i*=2,c=e-i,f=d+i,c>a||b>f);break;case 2:do g=new Array(4),g[h]=j,j=g;while(i*=2,e=c+i,d=f-i,a>e||d>b);break;case 3:do g=new Array(4),g[h]=j,j=g;while(i*=2,c=e-i,d=f-i,c>a||d>b)}this._root&&this._root.length&&(this._root=j)}return this._x0=c,this._y0=d,this._x1=e,this._y1=f,this},bl=function(){var a=[];return this.visit(function(b){if(!b.length)do a.push(b.data);while(b=b.next)}),a},cl=function(a){return arguments.length?this.cover(+a[0][0],+a[0][1]).cover(+a[1][0],+a[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},dl=function(a,b,c,d,e){this.node=a,this.x0=b,this.y0=c,this.x1=d,this.y1=e},el=function(a,b,c){var d,e,f,g,h,i,j,k=this._x0,l=this._y0,m=this._x1,n=this._y1,o=[],p=this._root;for(p&&o.push(new dl(p,k,l,m,n)),null==c?c=1/0:(k=a-c,l=b-c,m=a+c,n=b+c,c*=c);i=o.pop();)if(!(!(p=i.node)||(e=i.x0)>m||(f=i.y0)>n||(g=i.x1)<k||(h=i.y1)<l))if(p.length){var q=(e+g)/2,r=(f+h)/2;o.push(new dl(p[3],q,r,g,h),new dl(p[2],e,r,q,h),new dl(p[1],q,f,g,r),new dl(p[0],e,f,q,r)),(j=(b>=r)<<1|a>=q)&&(i=o[o.length-1],o[o.length-1]=o[o.length-1-j],o[o.length-1-j]=i)}else{var s=a-+this._x.call(null,p.data),t=b-+this._y.call(null,p.data),u=s*s+t*t;if(c>u){var v=Math.sqrt(c=u);k=a-v,l=b-v,m=a+v,n=b+v,d=p.data}}return d},fl=function(a){if(isNaN(f=+this._x.call(null,a))||isNaN(g=+this._y.call(null,a)))return this;var b,c,d,e,f,g,h,i,j,k,l,m,n=this._root,o=this._x0,p=this._y0,q=this._x1,r=this._y1;if(!n)return this;if(n.length)for(;;){if((j=f>=(h=(o+q)/2))?o=h:q=h,(k=g>=(i=(p+r)/2))?p=i:r=i,b=n,!(n=n[l=k<<1|j]))return this;if(!n.length)break;(b[l+1&3]||b[l+2&3]||b[l+3&3])&&(c=b,m=l)}for(;n.data!==a;)if(d=n,!(n=n.next))return this;return(e=n.next)&&delete n.next,d?(e?d.next=e:delete d.next,this):b?(e?b[l]=e:delete b[l],(n=b[0]||b[1]||b[2]||b[3])&&n===(b[3]||b[2]||b[1]||b[0])&&!n.length&&(c?c[m]=n:this._root=n),this):(this._root=e,this)},gl=function(){return this._root},hl=function(){var a=0;return this.visit(function(b){if(!b.length)do++a;while(b=b.next)}),a},il=function(a){var b,c,d,e,f,g,h=[],i=this._root;for(i&&h.push(new dl(i,this._x0,this._y0,this._x1,this._y1));b=h.pop();)if(!a(i=b.node,d=b.x0,e=b.y0,f=b.x1,g=b.y1)&&i.length){var j=(d+f)/2,k=(e+g)/2;(c=i[3])&&h.push(new dl(c,j,k,f,g)),(c=i[2])&&h.push(new dl(c,d,k,j,g)),(c=i[1])&&h.push(new dl(c,j,e,f,k)),(c=i[0])&&h.push(new dl(c,d,e,j,k))}return this},jl=function(a){var b,c=[],d=[];for(this._root&&c.push(new dl(this._root,this._x0,this._y0,this._x1,this._y1));b=c.pop();){var e=b.node;if(e.length){var f,g=b.x0,h=b.y0,i=b.x1,j=b.y1,k=(g+i)/2,l=(h+j)/2;(f=e[0])&&c.push(new dl(f,g,h,k,l)),(f=e[1])&&c.push(new dl(f,k,h,i,l)),(f=e[2])&&c.push(new dl(f,g,l,k,j)),(f=e[3])&&c.push(new dl(f,k,l,i,j))}d.push(b)}for(;b=d.pop();)a(b.node,b.x0,b.y0,b.x1,b.y1);return this},kl=function(a){return arguments.length?(this._x=a,this):this._x},ll=function(a){return arguments.length?(this._y=a,this):this._y},ml=O.prototype=P.prototype;ml.copy=function(){var a,b,c=new P(this._x,this._y,this._x0,this._y0,this._x1,this._y1),d=this._root;if(!d)return c;if(!d.length)return c._root=Q(d),c;for(a=[{source:d,target:c._root=new Array(4)}];d=a.pop();)for(var e=0;4>e;++e)(b=d.source[e])&&(b.length?a.push({source:b,target:d.target[e]=new Array(4)}):d.target[e]=Q(b));return c},ml.add=_k,ml.addAll=K,ml.cover=al,ml.data=bl,ml.extent=cl,ml.find=el,ml.remove=fl,ml.removeAll=L,ml.root=gl,ml.size=hl,ml.visit=il,ml.visitAfter=jl,ml.x=kl,ml.y=ll;var nl=[].slice,ol={};R.prototype=X.prototype={constructor:R,defer:function(a){if("function"!=typeof a||this._call)throw new Error;if(null!=this._error)return this;var b=nl.call(arguments,1);return b.push(a),++this._waiting,this._tasks.push(b),S(this),this},abort:function(){return null==this._error&&V(this,new Error("abort")),this},await:function(a){if("function"!=typeof a||this._call)throw new Error;return this._call=function(b,c){a.apply(null,[b].concat(c))},W(this),this},awaitAll:function(a){if("function"!=typeof a||this._call)throw new Error;return this._call=a,W(this),this}};var pl=function(a){return function(){return a}},ql=1e-12,rl=Math.PI,sl=rl/2,tl=2*rl,ul=function(){function a(){var a,j,k=+b.apply(this,arguments),l=+c.apply(this,arguments),m=f.apply(this,arguments)-sl,n=g.apply(this,arguments)-sl,o=Math.abs(n-m),p=n>m;if(i||(i=a=I()),k>l&&(j=l,l=k,k=j),l>ql)if(o>tl-ql)i.moveTo(l*Math.cos(m),l*Math.sin(m)),i.arc(0,0,l,m,n,!p),k>ql&&(i.moveTo(k*Math.cos(n),k*Math.sin(n)),i.arc(0,0,k,n,m,p));else{var q,r,s=m,t=n,u=m,v=n,w=o,x=o,y=h.apply(this,arguments)/2,z=y>ql&&(e?+e.apply(this,arguments):Math.sqrt(k*k+l*l)),A=Math.min(Math.abs(l-k)/2,+d.apply(this,arguments)),B=A,C=A;if(z>ql){var D=ba(z/k*Math.sin(y)),E=ba(z/l*Math.sin(y));(w-=2*D)>ql?(D*=p?1:-1,u+=D,v-=D):(w=0,u=v=(m+n)/2),(x-=2*E)>ql?(E*=p?1:-1,s+=E,t-=E):(x=0,s=t=(m+n)/2)}var F=l*Math.cos(s),G=l*Math.sin(s),H=k*Math.cos(v),J=k*Math.sin(v);if(A>ql){var K=l*Math.cos(t),L=l*Math.sin(t),M=k*Math.cos(u),N=k*Math.sin(u);if(rl>o){var O=w>ql?ca(F,G,M,N,K,L,H,J):[H,J],P=F-O[0],Q=G-O[1],R=K-O[0],S=L-O[1],T=1/Math.sin(Math.acos((P*R+Q*S)/(Math.sqrt(P*P+Q*Q)*Math.sqrt(R*R+S*S)))/2),U=Math.sqrt(O[0]*O[0]+O[1]*O[1]);B=Math.min(A,(k-U)/(T-1)),C=Math.min(A,(l-U)/(T+1))}}x>ql?C>ql?(q=da(M,N,F,G,l,C,p),r=da(K,L,H,J,l,C,p),i.moveTo(q.cx+q.x01,q.cy+q.y01),A>C?i.arc(q.cx,q.cy,C,Math.atan2(q.y01,q.x01),Math.atan2(r.y01,r.x01),!p):(i.arc(q.cx,q.cy,C,Math.atan2(q.y01,q.x01),Math.atan2(q.y11,q.x11),!p),i.arc(0,0,l,Math.atan2(q.cy+q.y11,q.cx+q.x11),Math.atan2(r.cy+r.y11,r.cx+r.x11),!p),i.arc(r.cx,r.cy,C,Math.atan2(r.y11,r.x11),Math.atan2(r.y01,r.x01),!p))):(i.moveTo(F,G),i.arc(0,0,l,s,t,!p)):i.moveTo(F,G),k>ql&&w>ql?B>ql?(q=da(H,J,K,L,k,-B,p),r=da(F,G,M,N,k,-B,p),i.lineTo(q.cx+q.x01,q.cy+q.y01),A>B?i.arc(q.cx,q.cy,B,Math.atan2(q.y01,q.x01),Math.atan2(r.y01,r.x01),!p):(i.arc(q.cx,q.cy,B,Math.atan2(q.y01,q.x01),Math.atan2(q.y11,q.x11),!p),i.arc(0,0,k,Math.atan2(q.cy+q.y11,q.cx+q.x11),Math.atan2(r.cy+r.y11,r.cx+r.x11),p),i.arc(r.cx,r.cy,B,Math.atan2(r.y11,r.x11),Math.atan2(r.y01,r.x01),!p))):i.arc(0,0,k,v,u,p):i.lineTo(H,J)}else i.moveTo(0,0);return i.closePath(),a?(i=null,a+""||null):void 0}var b=Y,c=Z,d=pl(0),e=null,f=$,g=_,h=aa,i=null;return a.centroid=function(){var a=(+b.apply(this,arguments)+ +c.apply(this,arguments))/2,d=(+f.apply(this,arguments)+ +g.apply(this,arguments))/2-rl/2;return[Math.cos(d)*a,Math.sin(d)*a]},a.innerRadius=function(c){return arguments.length?(b="function"==typeof c?c:pl(+c),a):b},a.outerRadius=function(b){return arguments.length?(c="function"==typeof b?b:pl(+b),a):c},a.cornerRadius=function(b){return arguments.length?(d="function"==typeof b?b:pl(+b),a):d},a.padRadius=function(b){return arguments.length?(e=null==b?null:"function"==typeof b?b:pl(+b),a):e},a.startAngle=function(b){return arguments.length?(f="function"==typeof b?b:pl(+b),a):f},a.endAngle=function(b){return arguments.length?(g="function"==typeof b?b:pl(+b),a):g},a.padAngle=function(b){return arguments.length?(h="function"==typeof b?b:pl(+b),a):h},a.context=function(b){return arguments.length?(i=null==b?null:b,a):i},a};ea.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;default:this._context.lineTo(a,b)}}};var vl=function(a){return new ea(a)},wl=function(){function a(a){var h,i,j,k=a.length,l=!1;for(null==e&&(g=f(j=I())),h=0;k>=h;++h)!(k>h&&d(i=a[h],h,a))===l&&((l=!l)?g.lineStart():g.lineEnd()),l&&g.point(+b(i,h,a),+c(i,h,a));return j?(g=null,j+""||null):void 0}var b=fa,c=ga,d=pl(!0),e=null,f=vl,g=null;return a.x=function(c){return arguments.length?(b="function"==typeof c?c:pl(+c),a):b},a.y=function(b){return arguments.length?(c="function"==typeof b?b:pl(+b),a):c},a.defined=function(b){return arguments.length?(d="function"==typeof b?b:pl(!!b),a):d},a.curve=function(b){return arguments.length?(f=b,null!=e&&(g=f(e)),a):f},a.context=function(b){return arguments.length?(null==b?e=g=null:g=f(e=b),a):e},a},xl=function(){function a(a){var b,k,l,m,n,o=a.length,p=!1,q=new Array(o),r=new Array(o);for(null==h&&(j=i(n=I())),b=0;o>=b;++b){if(!(o>b&&g(m=a[b],b,a))===p)if(p=!p)k=b,j.areaStart(),j.lineStart();else{for(j.lineEnd(),j.lineStart(),l=b-1;l>=k;--l)j.point(q[l],r[l]);j.lineEnd(),j.areaEnd()}p&&(q[b]=+c(m,b,a),r[b]=+e(m,b,a),j.point(d?+d(m,b,a):q[b],f?+f(m,b,a):r[b]))}return n?(j=null,n+""||null):void 0}function b(){return wl().defined(g).curve(i).context(h)}var c=fa,d=null,e=pl(0),f=ga,g=pl(!0),h=null,i=vl,j=null;return a.x=function(b){return arguments.length?(c="function"==typeof b?b:pl(+b),d=null,a):c},a.x0=function(b){return arguments.length?(c="function"==typeof b?b:pl(+b),a):c},a.x1=function(b){return arguments.length?(d=null==b?null:"function"==typeof b?b:pl(+b),a):d},a.y=function(b){return arguments.length?(e="function"==typeof b?b:pl(+b),f=null,a):e},a.y0=function(b){return arguments.length?(e="function"==typeof b?b:pl(+b),a):e},a.y1=function(b){return arguments.length?(f=null==b?null:"function"==typeof b?b:pl(+b),a):f},a.lineX0=a.lineY0=function(){return b().x(c).y(e)},a.lineY1=function(){return b().x(c).y(f)},a.lineX1=function(){return b().x(d).y(e)},a.defined=function(b){return arguments.length?(g="function"==typeof b?b:pl(!!b),a):g},a.curve=function(b){return arguments.length?(i=b,null!=h&&(j=i(h)),a):i},a.context=function(b){return arguments.length?(null==b?h=j=null:j=i(h=b),a):h},a},yl=function(a,b){return a>b?-1:b>a?1:b>=a?0:NaN},zl=function(a){return a},Al=function(){function a(a){var h,i,j,k,l,m=a.length,n=0,o=new Array(m),p=new Array(m),q=+e.apply(this,arguments),r=Math.min(tl,Math.max(-tl,f.apply(this,arguments)-q)),s=Math.min(Math.abs(r)/m,g.apply(this,arguments)),t=s*(0>r?-1:1);for(h=0;m>h;++h)(l=p[o[h]=h]=+b(a[h],h,a))>0&&(n+=l);for(null!=c?o.sort(function(a,b){return c(p[a],p[b])}):null!=d&&o.sort(function(b,c){return d(a[b],a[c])}),h=0,j=n?(r-m*t)/n:0;m>h;++h,q=k)i=o[h],l=p[i],k=q+(l>0?l*j:0)+t,p[i]={data:a[i],index:h,value:l,startAngle:q,endAngle:k,padAngle:s};return p}var b=zl,c=yl,d=null,e=pl(0),f=pl(tl),g=pl(0);return a.value=function(c){return arguments.length?(b="function"==typeof c?c:pl(+c),a):b},a.sortValues=function(b){return arguments.length?(c=b,d=null,a):c},a.sort=function(b){return arguments.length?(d=b,c=null,a):d},a.startAngle=function(b){return arguments.length?(e="function"==typeof b?b:pl(+b),a):e},a.endAngle=function(b){return arguments.length?(f="function"==typeof b?b:pl(+b),a):f},a.padAngle=function(b){return arguments.length?(g="function"==typeof b?b:pl(+b),a):g},a},Bl=ia(vl);ha.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(a,b){this._curve.point(b*Math.sin(a),b*-Math.cos(a))}};var Cl=function(){return ja(wl().curve(Bl))},Dl=function(){var a=xl().curve(Bl),b=a.curve,c=a.lineX0,d=a.lineX1,e=a.lineY0,f=a.lineY1;return a.angle=a.x,delete a.x,a.startAngle=a.x0,delete a.x0,a.endAngle=a.x1,delete a.x1,a.radius=a.y,delete a.y,a.innerRadius=a.y0,delete a.y0,a.outerRadius=a.y1,delete a.y1,a.lineStartAngle=function(){return ja(c())},delete a.lineX0,a.lineEndAngle=function(){return ja(d())},delete a.lineX1,a.lineInnerRadius=function(){return ja(e())},delete a.lineY0,a.lineOuterRadius=function(){return ja(f())},delete a.lineY1,a.curve=function(a){return arguments.length?b(ia(a)):b()._curve},a},El={draw:function(a,b){var c=Math.sqrt(b/rl);a.moveTo(c,0),a.arc(0,0,c,0,tl)}},Fl={draw:function(a,b){var c=Math.sqrt(b/5)/2;a.moveTo(-3*c,-c),a.lineTo(-c,-c),a.lineTo(-c,-3*c),a.lineTo(c,-3*c),a.lineTo(c,-c),a.lineTo(3*c,-c),a.lineTo(3*c,c),a.lineTo(c,c),a.lineTo(c,3*c),a.lineTo(-c,3*c),a.lineTo(-c,c),a.lineTo(-3*c,c),a.closePath()}},Gl=Math.sqrt(1/3),Hl=2*Gl,Il={draw:function(a,b){var c=Math.sqrt(b/Hl),d=c*Gl;a.moveTo(0,-c),a.lineTo(d,0),a.lineTo(0,c),a.lineTo(-d,0),a.closePath()}},Jl=.8908130915292852,Kl=Math.sin(rl/10)/Math.sin(7*rl/10),Ll=Math.sin(tl/10)*Kl,Ml=-Math.cos(tl/10)*Kl,Nl={draw:function(a,b){var c=Math.sqrt(b*Jl),d=Ll*c,e=Ml*c;a.moveTo(0,-c),a.lineTo(d,e);for(var f=1;5>f;++f){var g=tl*f/5,h=Math.cos(g),i=Math.sin(g);a.lineTo(i*c,-h*c),a.lineTo(h*d-i*e,i*d+h*e)}a.closePath()}},Ol={draw:function(a,b){var c=Math.sqrt(b),d=-c/2;a.rect(d,d,c,c)}},Pl=Math.sqrt(3),Ql={draw:function(a,b){var c=-Math.sqrt(b/(3*Pl));a.moveTo(0,2*c),a.lineTo(-Pl*c,-c),a.lineTo(Pl*c,-c),a.closePath()}},Rl=-.5,Sl=Math.sqrt(3)/2,Tl=1/Math.sqrt(12),Ul=3*(Tl/2+1),Vl={draw:function(a,b){var c=Math.sqrt(b/Ul),d=c/2,e=c*Tl,f=d,g=c*Tl+c,h=-f,i=g;a.moveTo(d,e),a.lineTo(f,g),a.lineTo(h,i),a.lineTo(Rl*d-Sl*e,Sl*d+Rl*e),a.lineTo(Rl*f-Sl*g,Sl*f+Rl*g),a.lineTo(Rl*h-Sl*i,Sl*h+Rl*i),a.lineTo(Rl*d+Sl*e,Rl*e-Sl*d),a.lineTo(Rl*f+Sl*g,Rl*g-Sl*f),a.lineTo(Rl*h+Sl*i,Rl*i-Sl*h),a.closePath()}},Wl=[El,Fl,Il,Ol,Nl,Ql,Vl],Xl=function(){function a(){var a;return d||(d=a=I()),b.apply(this,arguments).draw(d,+c.apply(this,arguments)),a?(d=null,a+""||null):void 0}var b=pl(El),c=pl(64),d=null;return a.type=function(c){return arguments.length?(b="function"==typeof c?c:pl(c),a):b},a.size=function(b){return arguments.length?(c="function"==typeof b?b:pl(+b),a):c},a.context=function(b){return arguments.length?(d=null==b?null:b,a):d},a},Yl=function(){};la.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ka(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ka(this,a,b)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b}};var Zl=function(a){return new la(a)};ma.prototype={areaStart:Yl,areaEnd:Yl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._x2=a,this._y2=b;break;case 1:this._point=2,this._x3=a,this._y3=b;break;case 2:this._point=3,this._x4=a,this._y4=b,this._context.moveTo((this._x0+4*this._x1+a)/6,(this._y0+4*this._y1+b)/6);break;default:ka(this,a,b)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b}};var $l=function(a){return new ma(a)};na.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var c=(this._x0+4*this._x1+a)/6,d=(this._y0+4*this._y1+b)/6;this._line?this._context.lineTo(c,d):this._context.moveTo(c,d);break;case 3:this._point=4;default:ka(this,a,b)}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b}};var _l=function(a){return new na(a)};oa.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var a=this._x,b=this._y,c=a.length-1;if(c>0)for(var d,e=a[0],f=b[0],g=a[c]-e,h=b[c]-f,i=-1;++i<=c;)d=i/c,this._basis.point(this._beta*a[i]+(1-this._beta)*(e+d*g),this._beta*b[i]+(1-this._beta)*(f+d*h));this._x=this._y=null,this._basis.lineEnd()},point:function(a,b){this._x.push(+a),this._y.push(+b)}};var am=function Jw(a){function b(b){return 1===a?new la(b):new oa(b,a)}return b.beta=function(a){return Jw(+a)},b}(.85);qa.prototype={areaStart:function(){this._line=0;
  },areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:pa(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2,this._x1=a,this._y1=b;break;case 2:this._point=3;default:pa(this,a,b)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var bm=function Kw(a){function b(b){return new qa(b,a)}return b.tension=function(a){return Kw(+a)},b}(0);ra.prototype={areaStart:Yl,areaEnd:Yl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._x3=a,this._y3=b;break;case 1:this._point=2,this._context.moveTo(this._x4=a,this._y4=b);break;case 2:this._point=3,this._x5=a,this._y5=b;break;default:pa(this,a,b)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var cm=function Lw(a){function b(b){return new ra(b,a)}return b.tension=function(a){return Lw(+a)},b}(0);sa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pa(this,a,b)}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var dm=function Mw(a){function b(b){return new sa(b,a)}return b.tension=function(a){return Mw(+a)},b}(0);ua.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){if(a=+a,b=+b,this._point){var c=this._x2-a,d=this._y2-b;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+d*d,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;break;case 2:this._point=3;default:ta(this,a,b)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var em=function Nw(a){function b(b){return a?new ua(b,a):new qa(b,0)}return b.alpha=function(a){return Nw(+a)},b}(.5);va.prototype={areaStart:Yl,areaEnd:Yl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(a,b){if(a=+a,b=+b,this._point){var c=this._x2-a,d=this._y2-b;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+d*d,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=a,this._y3=b;break;case 1:this._point=2,this._context.moveTo(this._x4=a,this._y4=b);break;case 2:this._point=3,this._x5=a,this._y5=b;break;default:ta(this,a,b)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var fm=function Ow(a){function b(b){return a?new va(b,a):new ra(b,0)}return b.alpha=function(a){return Ow(+a)},b}(.5);wa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){if(a=+a,b=+b,this._point){var c=this._x2-a,d=this._y2-b;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(c*c+d*d,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ta(this,a,b)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=b}};var gm=function Pw(a){function b(b){return a?new wa(b,a):new sa(b,0)}return b.alpha=function(a){return Pw(+a)},b}(.5);xa.prototype={areaStart:Yl,areaEnd:Yl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(a,b){a=+a,b=+b,this._point?this._context.lineTo(a,b):(this._point=1,this._context.moveTo(a,b))}};var hm=function(a){return new xa(a)};Ca.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ba(this,this._t0,Aa(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(a,b){var c=NaN;if(a=+a,b=+b,a!==this._x1||b!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;break;case 2:this._point=3,Ba(this,Aa(this,c=za(this,a,b)),c);break;default:Ba(this,this._t0,c=za(this,a,b))}this._x0=this._x1,this._x1=a,this._y0=this._y1,this._y1=b,this._t0=c}}},(Da.prototype=Object.create(Ca.prototype)).point=function(a,b){Ca.prototype.point.call(this,b,a)},Ea.prototype={moveTo:function(a,b){this._context.moveTo(b,a)},closePath:function(){this._context.closePath()},lineTo:function(a,b){this._context.lineTo(b,a)},bezierCurveTo:function(a,b,c,d,e,f){this._context.bezierCurveTo(b,a,d,c,f,e)}},Ha.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var a=this._x,b=this._y,c=a.length;if(c)if(this._line?this._context.lineTo(a[0],b[0]):this._context.moveTo(a[0],b[0]),2===c)this._context.lineTo(a[1],b[1]);else for(var d=Ia(a),e=Ia(b),f=0,g=1;c>g;++f,++g)this._context.bezierCurveTo(d[0][f],e[0][f],d[1][f],e[1][f],a[g],b[g]);(this._line||0!==this._line&&1===c)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(a,b){this._x.push(+a),this._y.push(+b)}};var im=function(a){return new Ha(a)};Ja.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(a,b){switch(a=+a,b=+b,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,b):this._context.moveTo(a,b);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,b),this._context.lineTo(a,b);else{var c=this._x*(1-this._t)+a*this._t;this._context.lineTo(c,this._y),this._context.lineTo(c,b)}}this._x=a,this._y=b}};var jm=function(a){return new Ja(a,.5)},km=Array.prototype.slice,lm=function(a,b){if((d=a.length)>1)for(var c,d,e=1,f=a[b[0]],g=f.length;d>e;++e){c=f,f=a[b[e]];for(var h=0;g>h;++h)f[h][1]+=f[h][0]=isNaN(c[h][1])?c[h][0]:c[h][1]}},mm=function(a){for(var b=a.length,c=new Array(b);--b>=0;)c[b]=b;return c},nm=function(){function a(a){var f,g,h=b.apply(this,arguments),i=a.length,j=h.length,k=new Array(j);for(f=0;j>f;++f){for(var l,m=h[f],n=k[f]=new Array(i),o=0;i>o;++o)n[o]=l=[0,+e(a[o],m,o,a)],l.data=a[o];n.key=m}for(f=0,g=c(k);j>f;++f)k[g[f]].index=f;return d(k,g),k}var b=pl([]),c=mm,d=lm,e=Ma;return a.keys=function(c){return arguments.length?(b="function"==typeof c?c:pl(km.call(c)),a):b},a.value=function(b){return arguments.length?(e="function"==typeof b?b:pl(+b),a):e},a.order=function(b){return arguments.length?(c=null==b?mm:"function"==typeof b?b:pl(km.call(b)),a):c},a.offset=function(b){return arguments.length?(d=null==b?lm:b,a):d},a},om=function(a,b){if((d=a.length)>0){for(var c,d,e,f=0,g=a[0].length;g>f;++f){for(e=c=0;d>c;++c)e+=a[c][f][1]||0;if(e)for(c=0;d>c;++c)a[c][f][1]/=e}lm(a,b)}},pm=function(a,b){if((c=a.length)>0){for(var c,d=0,e=a[b[0]],f=e.length;f>d;++d){for(var g=0,h=0;c>g;++g)h+=a[g][d][1]||0;e[d][1]+=e[d][0]=-h/2}lm(a,b)}},qm=function(a,b){if((e=a.length)>0&&(d=(c=a[b[0]]).length)>0){for(var c,d,e,f=0,g=1;d>g;++g){for(var h=0,i=0,j=0;e>h;++h){for(var k=a[b[h]],l=k[g][1]||0,m=k[g-1][1]||0,n=(l-m)/2,o=0;h>o;++o){var p=a[b[o]],q=p[g][1]||0,r=p[g-1][1]||0;n+=q-r}i+=l,j+=n*l}c[g-1][1]+=c[g-1][0]=f,i&&(f-=j/i)}c[g-1][1]+=c[g-1][0]=f,lm(a,b)}},rm=function(a){var b=a.map(Na);return mm(a).sort(function(a,c){return b[a]-b[c]})},sm=function(a){return rm(a).reverse()},tm=function(a){var b,c,d=a.length,e=a.map(Na),f=mm(a).sort(function(a,b){return e[b]-e[a]}),g=0,h=0,i=[],j=[];for(b=0;d>b;++b)c=f[b],h>g?(g+=e[c],i.push(c)):(h+=e[c],j.push(c));return j.reverse().concat(i)},um=function(a){return mm(a).reverse()},vm=function(a,b,c){a.prototype=b.prototype=c,c.constructor=a},wm=.7,xm=1/wm,ym="\\s*([+-]?\\d+)\\s*",zm="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Am="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bm=/^#([0-9a-f]{3})$/,Cm=/^#([0-9a-f]{6})$/,Dm=new RegExp("^rgb\\("+[ym,ym,ym]+"\\)$"),Em=new RegExp("^rgb\\("+[Am,Am,Am]+"\\)$"),Fm=new RegExp("^rgba\\("+[ym,ym,ym,zm]+"\\)$"),Gm=new RegExp("^rgba\\("+[Am,Am,Am,zm]+"\\)$"),Hm=new RegExp("^hsl\\("+[zm,Am,Am]+"\\)$"),Im=new RegExp("^hsla\\("+[zm,Am,Am,zm]+"\\)$"),Jm={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};vm(Pa,Qa,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),vm(Va,Ua,Oa(Pa,{brighter:function(a){return a=null==a?xm:Math.pow(xm,a),new Va(this.r*a,this.g*a,this.b*a,this.opacity)},darker:function(a){return a=null==a?wm:Math.pow(wm,a),new Va(this.r*a,this.g*a,this.b*a,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var a=this.opacity;return a=isNaN(a)?1:Math.max(0,Math.min(1,a)),(1===a?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===a?")":", "+a+")")}})),vm(Za,Ya,Oa(Pa,{brighter:function(a){return a=null==a?xm:Math.pow(xm,a),new Za(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=null==a?wm:Math.pow(wm,a),new Za(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=this.h%360+360*(this.h<0),b=isNaN(a)||isNaN(this.s)?0:this.s,c=this.l,d=c+(.5>c?c:1-c)*b,e=2*c-d;return new Va($a(a>=240?a-240:a+120,e,d),$a(a,e,d),$a(120>a?a+240:a-120,e,d),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Km=Math.PI/180,Lm=180/Math.PI,Mm=18,Nm=.95047,Om=1,Pm=1.08883,Qm=4/29,Rm=6/29,Sm=3*Rm*Rm,Tm=Rm*Rm*Rm;vm(bb,ab,Oa(Pa,{brighter:function(a){return new bb(this.l+Mm*(null==a?1:a),this.a,this.b,this.opacity)},darker:function(a){return new bb(this.l-Mm*(null==a?1:a),this.a,this.b,this.opacity)},rgb:function(){var a=(this.l+16)/116,b=isNaN(this.a)?a:a+this.a/500,c=isNaN(this.b)?a:a-this.b/200;return a=Om*db(a),b=Nm*db(b),c=Pm*db(c),new Va(eb(3.2404542*b-1.5371385*a-.4985314*c),eb(-.969266*b+1.8760108*a+.041556*c),eb(.0556434*b-.2040259*a+1.0572252*c),this.opacity)}})),vm(ib,hb,Oa(Pa,{brighter:function(a){return new ib(this.h,this.c,this.l+Mm*(null==a?1:a),this.opacity)},darker:function(a){return new ib(this.h,this.c,this.l-Mm*(null==a?1:a),this.opacity)},rgb:function(){return _a(this).rgb()}}));var Um=-.14861,Vm=1.78277,Wm=-.29227,Xm=-.90649,Ym=1.97294,Zm=Ym*Xm,$m=Ym*Vm,_m=Vm*Wm-Xm*Um;vm(lb,kb,Oa(Pa,{brighter:function(a){return a=null==a?xm:Math.pow(xm,a),new lb(this.h,this.s,this.l*a,this.opacity)},darker:function(a){return a=null==a?wm:Math.pow(wm,a),new lb(this.h,this.s,this.l*a,this.opacity)},rgb:function(){var a=isNaN(this.h)?0:(this.h+120)*Km,b=+this.l,c=isNaN(this.s)?0:this.s*b*(1-b),d=Math.cos(a),e=Math.sin(a);return new Va(255*(b+c*(Um*d+Vm*e)),255*(b+c*(Wm*d+Xm*e)),255*(b+c*(Ym*d)),this.opacity)}}));var an,bn,cn,dn,en=function(a){var b=a.length-1;return function(c){var d=0>=c?c=0:c>=1?(c=1,b-1):Math.floor(c*b),e=a[d],f=a[d+1],g=d>0?a[d-1]:2*e-f,h=b-1>d?a[d+2]:2*f-e;return mb((c-d/b)*b,g,e,f,h)}},fn=function(a){var b=a.length;return function(c){var d=Math.floor(((c%=1)<0?++c:c)*b),e=a[(d+b-1)%b],f=a[d%b],g=a[(d+1)%b],h=a[(d+2)%b];return mb((c-d/b)*b,e,f,g,h)}},gn=function(a){return function(){return a}},hn=function Qw(a){function b(a,b){var d=c((a=Ua(a)).r,(b=Ua(b)).r),e=c(a.g,b.g),f=c(a.b,b.b),g=c(a.opacity,b.opacity);return function(b){return a.r=d(b),a.g=e(b),a.b=f(b),a.opacity=g(b),a+""}}var c=qb(a);return b.gamma=Qw,b}(1),jn=sb(en),kn=sb(fn),ln=function(a,b){var c,d=b?b.length:0,e=a?Math.min(d,a.length):0,f=new Array(d),g=new Array(d);for(c=0;e>c;++c)f[c]=sn(a[c],b[c]);for(;d>c;++c)g[c]=b[c];return function(a){for(c=0;e>c;++c)g[c]=f[c](a);return g}},mn=function(a,b){var c=new Date;return a=+a,b-=a,function(d){return c.setTime(a+b*d),c}},nn=function(a,b){return a=+a,b-=a,function(c){return a+b*c}},on=function(a,b){var c,d={},e={};null!==a&&"object"==typeof a||(a={}),null!==b&&"object"==typeof b||(b={});for(c in b)c in a?d[c]=sn(a[c],b[c]):e[c]=b[c];return function(a){for(c in d)e[c]=d[c](a);return e}},pn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qn=new RegExp(pn.source,"g"),rn=function(a,b){var c,d,e,f=pn.lastIndex=qn.lastIndex=0,g=-1,h=[],i=[];for(a+="",b+="";(c=pn.exec(a))&&(d=qn.exec(b));)(e=d.index)>f&&(e=b.slice(f,e),h[g]?h[g]+=e:h[++g]=e),(c=c[0])===(d=d[0])?h[g]?h[g]+=d:h[++g]=d:(h[++g]=null,i.push({i:g,x:nn(c,d)})),f=qn.lastIndex;return f<b.length&&(e=b.slice(f),h[g]?h[g]+=e:h[++g]=e),h.length<2?i[0]?ub(i[0].x):tb(b):(b=i.length,function(a){for(var c,d=0;b>d;++d)h[(c=i[d]).i]=c.x(a);return h.join("")})},sn=function(a,b){var c,d=typeof b;return null==b||"boolean"===d?gn(b):("number"===d?nn:"string"===d?(c=Qa(b))?(b=c,hn):rn:b instanceof Qa?hn:b instanceof Date?mn:Array.isArray(b)?ln:isNaN(b)?on:nn)(a,b)},tn=function(a,b){return a=+a,b-=a,function(c){return Math.round(a+b*c)}},un=180/Math.PI,vn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},wn=function(a,b,c,d,e,f){var g,h,i;return(g=Math.sqrt(a*a+b*b))&&(a/=g,b/=g),(i=a*c+b*d)&&(c-=a*i,d-=b*i),(h=Math.sqrt(c*c+d*d))&&(c/=h,d/=h,i/=h),b*c>a*d&&(a=-a,b=-b,i=-i,g=-g),{translateX:e,translateY:f,rotate:Math.atan2(b,a)*un,skewX:Math.atan(i)*un,scaleX:g,scaleY:h}},xn=xb(vb,"px, ","px)","deg)"),yn=xb(wb,", ",")",")"),zn=Math.SQRT2,An=2,Bn=4,Cn=1e-12,Dn=function(a,b){var c,d,e=a[0],f=a[1],g=a[2],h=b[0],i=b[1],j=b[2],k=h-e,l=i-f,m=k*k+l*l;if(Cn>m)d=Math.log(j/g)/zn,c=function(a){return[e+a*k,f+a*l,g*Math.exp(zn*a*d)]};else{var n=Math.sqrt(m),o=(j*j-g*g+Bn*m)/(2*g*An*n),p=(j*j-g*g-Bn*m)/(2*j*An*n),q=Math.log(Math.sqrt(o*o+1)-o),r=Math.log(Math.sqrt(p*p+1)-p);d=(r-q)/zn,c=function(a){var b=a*d,c=yb(q),h=g/(An*n)*(c*Ab(zn*b+q)-zb(q));return[e+h*k,f+h*l,g*c/yb(zn*b+q)]}}return c.duration=1e3*d,c},En=Bb(pb),Fn=Bb(rb),Gn=Db(pb),Hn=Db(rb),In=Eb(pb),Jn=Eb(rb),Kn=function(a,b){for(var c=new Array(b),d=0;b>d;++d)c[d]=a(d/(b-1));return c},Ln={value:function(){}};Gb.prototype=Fb.prototype={constructor:Gb,on:function(a,b){var c,d=this._,e=Hb(a+"",d),f=-1,g=e.length;{if(!(arguments.length<2)){if(null!=b&&"function"!=typeof b)throw new Error("invalid callback: "+b);for(;++f<g;)if(c=(a=e[f]).type)d[c]=Jb(d[c],a.name,b);else if(null==b)for(c in d)d[c]=Jb(d[c],a.name,null);return this}for(;++f<g;)if((c=(a=e[f]).type)&&(c=Ib(d[c],a.name)))return c}},copy:function(){var a={},b=this._;for(var c in b)a[c]=b[c].slice();return new Gb(a)},call:function(a,b){if((c=arguments.length-2)>0)for(var c,d,e=new Array(c),f=0;c>f;++f)e[f]=arguments[f+2];if(!this._.hasOwnProperty(a))throw new Error("unknown type: "+a);for(d=this._[a],f=0,c=d.length;c>f;++f)d[f].value.apply(b,e)},apply:function(a,b,c){if(!this._.hasOwnProperty(a))throw new Error("unknown type: "+a);for(var d=this._[a],e=0,f=d.length;f>e;++e)d[e].value.apply(b,c)}};var Mn,Nn,On=function(a){function b(a,b){var d,e,f=c(a,function(a,c){return d?d(a,c-1):(e=a,void(d=b?Lb(a,b):Kb(a)))});return f.columns=e,f}function c(a,b){function c(){if(k>=j)return g;if(e)return e=!1,f;var b,c=k;if(34===a.charCodeAt(c)){for(var d=c;d++<j;)if(34===a.charCodeAt(d)){if(34!==a.charCodeAt(d+1))break;++d}return k=d+2,b=a.charCodeAt(d+1),13===b?(e=!0,10===a.charCodeAt(d+2)&&++k):10===b&&(e=!0),a.slice(c+1,d).replace(/""/g,'"')}for(;j>k;){var h=1;if(b=a.charCodeAt(k++),10===b)e=!0;else if(13===b)e=!0,10===a.charCodeAt(k)&&(++k,++h);else if(b!==i)continue;return a.slice(c,k-h)}return a.slice(c)}for(var d,e,f={},g={},h=[],j=a.length,k=0,l=0;(d=c())!==g;){for(var m=[];d!==f&&d!==g;)m.push(d),d=c();b&&null==(m=b(m,l++))||h.push(m)}return h}function d(b,c){return null==c&&(c=Mb(b)),[c.map(g).join(a)].concat(b.map(function(b){return c.map(function(a){return g(b[a])}).join(a)})).join("\n")}function e(a){return a.map(f).join("\n")}function f(b){return b.map(g).join(a)}function g(a){return null==a?"":h.test(a+="")?'"'+a.replace(/\"/g,'""')+'"':a}var h=new RegExp('["'+a+"\n]"),i=a.charCodeAt(0);return{parse:b,parseRows:c,format:d,formatRows:e}},Pn=On(","),Qn=Pn.parse,Rn=Pn.parseRows,Sn=Pn.format,Tn=Pn.formatRows,Un=On("	"),Vn=Un.parse,Wn=Un.parseRows,Xn=Un.format,Yn=Un.formatRows,Zn=function(a,b){function c(a){var b,c=k.status;if(!c&&Ob(k)||c>=200&&300>c||304===c){if(g)try{b=g.call(d,k)}catch(e){return void i.call("error",d,e)}else b=k;i.call("load",d,b)}else i.call("error",d,a)}var d,e,g,h,i=Fb("beforesend","progress","load","error"),j=f(),k=new XMLHttpRequest,l=null,m=null,n=0;if("undefined"==typeof XDomainRequest||"withCredentials"in k||!/^(http(s)?:)?\/\//.test(a)||(k=new XDomainRequest),"onload"in k?k.onload=k.onerror=k.ontimeout=c:k.onreadystatechange=function(a){k.readyState>3&&c(a)},k.onprogress=function(a){i.call("progress",d,a)},d={header:function(a,b){return a=(a+"").toLowerCase(),arguments.length<2?j.get(a):(null==b?j.remove(a):j.set(a,b+""),d)},mimeType:function(a){return arguments.length?(e=null==a?null:a+"",d):e},responseType:function(a){return arguments.length?(h=a,d):h},timeout:function(a){return arguments.length?(n=+a,d):n},user:function(a){return arguments.length<1?l:(l=null==a?null:a+"",d)},password:function(a){return arguments.length<1?m:(m=null==a?null:a+"",d)},response:function(a){return g=a,d},get:function(a,b){return d.send("GET",a,b)},post:function(a,b){return d.send("POST",a,b)},send:function(b,c,f){return k.open(b,a,!0,l,m),null==e||j.has("accept")||j.set("accept",e+",*/*"),k.setRequestHeader&&j.each(function(a,b){k.setRequestHeader(b,a)}),null!=e&&k.overrideMimeType&&k.overrideMimeType(e),null!=h&&(k.responseType=h),n>0&&(k.timeout=n),null==f&&"function"==typeof c&&(f=c,c=null),null!=f&&1===f.length&&(f=Nb(f)),null!=f&&d.on("error",f).on("load",function(a){f(null,a)}),i.call("beforesend",d,k),k.send(null==c?null:c),d},abort:function(){return k.abort(),d},on:function(){var a=i.on.apply(i,arguments);return a===i?d:a}},null!=b){if("function"!=typeof b)throw new Error("invalid callback: "+b);return d.get(b)}return d},$n=function(a,b){return function(c,d){var e=Zn(c).mimeType(a).response(b);if(null!=d){if("function"!=typeof d)throw new Error("invalid callback: "+d);return e.get(d)}return e}},_n=$n("text/html",function(a){return document.createRange().createContextualFragment(a.responseText)}),ao=$n("application/json",function(a){return JSON.parse(a.responseText)}),bo=$n("text/plain",function(a){return a.responseText}),co=$n("application/xml",function(a){var b=a.responseXML;if(!b)throw new Error("parse error");return b}),eo=function(a,b){return function(c,d,e){arguments.length<3&&(e=d,d=null);var f=Zn(c).mimeType(a);return f.row=function(a){return arguments.length?f.response(Pb(b,d=a)):d},f.row(d),e?f.get(e):f}},fo=eo("text/csv",Qn),go=eo("text/tab-separated-values",Vn),ho=0,io=0,jo=0,ko=1e3,lo=0,mo=0,no=0,oo="object"==typeof performance&&performance.now?performance:Date,po="function"==typeof requestAnimationFrame?requestAnimationFrame:function(a){setTimeout(a,17)};Sb.prototype=Tb.prototype={constructor:Sb,restart:function(a,b,c){if("function"!=typeof a)throw new TypeError("callback is not a function");c=(null==c?Qb():+c)+(null==b?0:+b),this._next||Nn===this||(Nn?Nn._next=this:Mn=this,Nn=this),this._call=a,this._time=c,Yb()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yb())}};var qo=function(a,b,c){var d=new Sb;return b=null==b?0:+b,d.restart(function(c){d.stop(),a(c+b)},b,c),d},ro=function(a,b,c){var d=new Sb,e=b;return null==b?(d.restart(a,b,c),d):(b=+b,c=null==c?Qb():+c,d.restart(function f(g){g+=e,d.restart(f,e+=b,c),a(g)},b,c),d)},so=new Date,to=new Date,uo=Zb(function(){},function(a,b){a.setTime(+a+b)},function(a,b){return b-a});uo.every=function(a){return a=Math.floor(a),isFinite(a)&&a>0?a>1?Zb(function(b){b.setTime(Math.floor(b/a)*a)},function(b,c){b.setTime(+b+c*a)},function(b,c){return(c-b)/a}):uo:null};var vo=uo.range,wo=1e3,xo=6e4,yo=36e5,zo=864e5,Ao=6048e5,Bo=Zb(function(a){a.setTime(Math.floor(a/wo)*wo)},function(a,b){a.setTime(+a+b*wo)},function(a,b){return(b-a)/wo},function(a){return a.getUTCSeconds()}),Co=Bo.range,Do=Zb(function(a){a.setTime(Math.floor(a/xo)*xo)},function(a,b){a.setTime(+a+b*xo)},function(a,b){return(b-a)/xo},function(a){return a.getMinutes()}),Eo=Do.range,Fo=Zb(function(a){var b=a.getTimezoneOffset()*xo%yo;0>b&&(b+=yo),a.setTime(Math.floor((+a-b)/yo)*yo+b)},function(a,b){a.setTime(+a+b*yo)},function(a,b){return(b-a)/yo},function(a){return a.getHours()}),Go=Fo.range,Ho=Zb(function(a){a.setHours(0,0,0,0)},function(a,b){a.setDate(a.getDate()+b)},function(a,b){return(b-a-(b.getTimezoneOffset()-a.getTimezoneOffset())*xo)/zo},function(a){return a.getDate()-1}),Io=Ho.range,Jo=$b(0),Ko=$b(1),Lo=$b(2),Mo=$b(3),No=$b(4),Oo=$b(5),Po=$b(6),Qo=Jo.range,Ro=Ko.range,So=Lo.range,To=Mo.range,Uo=No.range,Vo=Oo.range,Wo=Po.range,Xo=Zb(function(a){a.setDate(1),a.setHours(0,0,0,0)},function(a,b){a.setMonth(a.getMonth()+b)},function(a,b){return b.getMonth()-a.getMonth()+12*(b.getFullYear()-a.getFullYear())},function(a){return a.getMonth()}),Yo=Xo.range,Zo=Zb(function(a){a.setMonth(0,1),a.setHours(0,0,0,0)},function(a,b){a.setFullYear(a.getFullYear()+b)},function(a,b){return b.getFullYear()-a.getFullYear()},function(a){return a.getFullYear()});Zo.every=function(a){return isFinite(a=Math.floor(a))&&a>0?Zb(function(b){b.setFullYear(Math.floor(b.getFullYear()/a)*a),b.setMonth(0,1),b.setHours(0,0,0,0)},function(b,c){b.setFullYear(b.getFullYear()+c*a)}):null};var $o=Zo.range,_o=Zb(function(a){a.setUTCSeconds(0,0)},function(a,b){a.setTime(+a+b*xo)},function(a,b){return(b-a)/xo},function(a){return a.getUTCMinutes()}),ap=_o.range,bp=Zb(function(a){a.setUTCMinutes(0,0,0)},function(a,b){a.setTime(+a+b*yo)},function(a,b){return(b-a)/yo},function(a){return a.getUTCHours()}),cp=bp.range,dp=Zb(function(a){a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCDate(a.getUTCDate()+b)},function(a,b){return(b-a)/zo},function(a){return a.getUTCDate()-1}),ep=dp.range,fp=_b(0),gp=_b(1),hp=_b(2),ip=_b(3),jp=_b(4),kp=_b(5),lp=_b(6),mp=fp.range,np=gp.range,op=hp.range,pp=ip.range,qp=jp.range,rp=kp.range,sp=lp.range,tp=Zb(function(a){a.setUTCDate(1),a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCMonth(a.getUTCMonth()+b)},function(a,b){return b.getUTCMonth()-a.getUTCMonth()+12*(b.getUTCFullYear()-a.getUTCFullYear())},function(a){return a.getUTCMonth()}),up=tp.range,vp=Zb(function(a){a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0)},function(a,b){a.setUTCFullYear(a.getUTCFullYear()+b)},function(a,b){return b.getUTCFullYear()-a.getUTCFullYear()},function(a){return a.getUTCFullYear()});vp.every=function(a){return isFinite(a=Math.floor(a))&&a>0?Zb(function(b){b.setUTCFullYear(Math.floor(b.getUTCFullYear()/a)*a),b.setUTCMonth(0,1),b.setUTCHours(0,0,0,0)},function(b,c){b.setUTCFullYear(b.getUTCFullYear()+c*a)}):null};var wp,xp=vp.range,yp=function(a,b){if((c=(a=b?a.toExponential(b-1):a.toExponential()).indexOf("e"))<0)return null;var c,d=a.slice(0,c);return[d.length>1?d[0]+d.slice(2):d,+a.slice(c+1)]},zp=function(a){return a=yp(Math.abs(a)),a?a[1]:NaN},Ap=function(a,b){return function(c,d){for(var e=c.length,f=[],g=0,h=a[0],i=0;e>0&&h>0&&(i+h+1>d&&(h=Math.max(1,d-i)),f.push(c.substring(e-=h,e+h)),!((i+=h+1)>d));)h=a[g=(g+1)%a.length];return f.reverse().join(b)}},Bp=function(a,b){a=a.toPrecision(b);a:for(var c,d=a.length,e=1,f=-1;d>e;++e)switch(a[e]){case".":f=c=e;break;case"0":0===f&&(f=e),c=e;break;case"e":break a;default:f>0&&(f=0)}return f>0?a.slice(0,f)+a.slice(c+1):a},Cp=function(a,b){var c=yp(a,b);if(!c)return a+"";var d=c[0],e=c[1],f=e-(wp=3*Math.max(-8,Math.min(8,Math.floor(e/3))))+1,g=d.length;return f===g?d:f>g?d+new Array(f-g+1).join("0"):f>0?d.slice(0,f)+"."+d.slice(f):"0."+new Array(1-f).join("0")+yp(a,Math.max(0,b+f-1))[0]},Dp=function(a,b){var c=yp(a,b);if(!c)return a+"";var d=c[0],e=c[1];return 0>e?"0."+new Array(-e).join("0")+d:d.length>e+1?d.slice(0,e+1)+"."+d.slice(e+1):d+new Array(e-d.length+2).join("0")},Ep={"":Bp,"%":function(a,b){return(100*a).toFixed(b)},b:function(a){return Math.round(a).toString(2)},c:function(a){return a+""},d:function(a){return Math.round(a).toString(10)},e:function(a,b){return a.toExponential(b)},f:function(a,b){return a.toFixed(b)},g:function(a,b){return a.toPrecision(b)},o:function(a){return Math.round(a).toString(8)},p:function(a,b){return Dp(100*a,b)},r:Dp,s:Cp,X:function(a){return Math.round(a).toString(16).toUpperCase()},x:function(a){return Math.round(a).toString(16)}},Fp=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i,Gp=function(a){return new ac(a)};ac.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Hp,Ip=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Jp=function(a){function b(a){function b(a){var b,e,i,s=o,t=p;if("c"===n)t=q(a)+t,a="";else{a=+a;var u=(0>a||0>1/a)&&(a*=-1,!0);if(a=q(a,m),u)for(b=-1,e=a.length,u=!1;++b<e;)if(i=a.charCodeAt(b),i>48&&58>i||"x"===n&&i>96&&103>i||"X"===n&&i>64&&71>i){u=!0;break}if(s=(u?"("===h?h:"-":"-"===h||"("===h?"":h)+s,t=t+("s"===n?Ip[8+wp/3]:"")+(u&&"("===h?")":""),r)for(b=-1,e=a.length;++b<e;)if(i=a.charCodeAt(b),48>i||i>57){t=(46===i?f+a.slice(b+1):a.slice(b))+t,a=a.slice(0,b);break}}l&&!j&&(a=d(a,1/0));var v=s.length+a.length+t.length,w=k>v?new Array(k-v+1).join(c):"";switch(l&&j&&(a=d(w+a,w.length?k-t.length:1/0),w=""),g){case"<":return s+a+t+w;case"=":return s+w+a+t;case"^":return w.slice(0,v=w.length>>1)+s+a+t+w.slice(v)}return w+s+a+t}a=Gp(a);var c=a.fill,g=a.align,h=a.sign,i=a.symbol,j=a.zero,k=a.width,l=a.comma,m=a.precision,n=a.type,o="$"===i?e[0]:"#"===i&&/[boxX]/.test(n)?"0"+n.toLowerCase():"",p="$"===i?e[1]:/[%p]/.test(n)?"%":"",q=Ep[n],r=!n||/[defgprs%]/.test(n);return m=null==m?n?6:12:/[gprs]/.test(n)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),b.toString=function(){return a+""},b}function c(a,c){var d=b((a=Gp(a),a.type="f",a)),e=3*Math.max(-8,Math.min(8,Math.floor(zp(c)/3))),f=Math.pow(10,-e),g=Ip[8+e/3];return function(a){return d(f*a)+g}}var d=a.grouping&&a.thousands?Ap(a.grouping,a.thousands):bc,e=a.currency,f=a.decimal;return{format:b,formatPrefix:c}};cc({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Kp,Lp=function(a){return Math.max(0,-zp(Math.abs(a)))},Mp=function(a,b){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(zp(b)/3)))-zp(Math.abs(a)))},Np=function(a,b){return a=Math.abs(a),b=Math.abs(b)-a,
  Math.max(0,zp(b)-zp(a))+1},Op={"-":"",_:" ",0:"0"},Pp=/^\s*\d+/,Qp=/^%/,Rp=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;ad({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Sp="%Y-%m-%dT%H:%M:%S.%LZ",Tp=Date.prototype.toISOString?bd:a.utcFormat(Sp),Up=+new Date("2000-01-01T00:00:00.000Z")?cd:a.utcParse(Sp),Vp=Array.prototype,Wp=Vp.map,Xp=Vp.slice,Yp={name:"implicit"},Zp=function(a){return function(){return a}},$p=function(a){return+a},_p=[0,1],aq=function(b,d,e){var f,g=b[0],h=b[b.length-1],i=c(g,h,null==d?10:d);switch(e=Gp(null==e?",f":e),e.type){case"s":var j=Math.max(Math.abs(g),Math.abs(h));return null!=e.precision||isNaN(f=Mp(i,j))||(e.precision=f),a.formatPrefix(e,j);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(f=Np(i,Math.max(Math.abs(g),Math.abs(h))))||(e.precision=f-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(f=Lp(i))||(e.precision=f-2*("%"===e.type))}return a.format(e)},bq=function(a,b){a=a.slice();var c,d=0,e=a.length-1,f=a[d],g=a[e];return f>g&&(c=d,d=e,e=c,c=f,f=g,g=c),a[d]=b.floor(f),a[e]=b.ceil(g),a},cq=1e3,dq=60*cq,eq=60*dq,fq=24*eq,gq=7*fq,hq=30*fq,iq=365*fq,jq=function(){return Gd(Zo,Xo,Jo,Ho,Fo,Do,Bo,uo,a.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},kq=function(){return Gd(vp,tp,fp,dp,bp,_o,Bo,uo,a.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},lq=function(a){return a.match(/.{6}/g).map(function(a){return"#"+a})},mq=lq("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),nq=lq("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),oq=lq("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),pq=lq("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),qq=Jn(kb(300,.5,0),kb(-240,.5,1)),rq=Jn(kb(-100,.75,.35),kb(80,1.5,.8)),sq=Jn(kb(260,.75,.35),kb(80,1.5,.8)),tq=kb(),uq=function(a){(0>a||a>1)&&(a-=Math.floor(a));var b=Math.abs(a-.5);return tq.h=360*a-100,tq.s=1.5-1.5*b,tq.l=.8-.9*b,tq+""},vq=Hd(lq("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),wq=Hd(lq("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),xq=Hd(lq("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),yq=Hd(lq("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),zq="http://www.w3.org/1999/xhtml",Aq={svg:"http://www.w3.org/2000/svg",xhtml:zq,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Bq=function(a){var b=a+="",c=b.indexOf(":");return c>=0&&"xmlns"!==(b=a.slice(0,c))&&(a=a.slice(c+1)),Aq.hasOwnProperty(b)?{space:Aq[b],local:a}:a},Cq=function(a){var b=Bq(a);return(b.local?Kd:Jd)(b)},Dq=0;Md.prototype=Ld.prototype={constructor:Md,get:function(a){for(var b=this._;!(b in a);)if(!(a=a.parentNode))return;return a[b]},set:function(a,b){return a[this._]=b},remove:function(a){return this._ in a&&delete a[this._]},toString:function(){return this._}};var Eq=function(a){return function(){return this.matches(a)}};if("undefined"!=typeof document){var Fq=document.documentElement;if(!Fq.matches){var Gq=Fq.webkitMatchesSelector||Fq.msMatchesSelector||Fq.mozMatchesSelector||Fq.oMatchesSelector;Eq=function(a){return function(){return Gq.call(this,a)}}}}var Hq=Eq,Iq={};if(a.event=null,"undefined"!=typeof document){var Jq=document.documentElement;"onmouseenter"in Jq||(Iq={mouseenter:"mouseover",mouseleave:"mouseout"})}var Kq=function(a,b,c){var d,e,f=Pd(a+""),g=f.length;{if(!(arguments.length<2)){for(h=b?Rd:Qd,null==c&&(c=!1),d=0;g>d;++d)this.each(h(f[d],b,c));return this}var h=this.node().__on;if(h)for(var i,j=0,k=h.length;k>j;++j)for(d=0,i=h[j];g>d;++d)if((e=f[d]).type===i.type&&e.name===i.name)return i.value}},Lq=function(){for(var b,c=a.event;b=c.sourceEvent;)c=b;return c},Mq=function(a,b){var c=a.ownerSVGElement||a;if(c.createSVGPoint){var d=c.createSVGPoint();return d.x=b.clientX,d.y=b.clientY,d=d.matrixTransform(a.getScreenCTM().inverse()),[d.x,d.y]}var e=a.getBoundingClientRect();return[b.clientX-e.left-a.clientLeft,b.clientY-e.top-a.clientTop]},Nq=function(a){var b=Lq();return b.changedTouches&&(b=b.changedTouches[0]),Mq(a,b)},Oq=function(a){return null==a?Td:function(){return this.querySelector(a)}},Pq=function(a){"function"!=typeof a&&(a=Oq(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;c>e;++e)for(var f,g,h=b[e],i=h.length,j=d[e]=new Array(i),k=0;i>k;++k)(f=h[k])&&(g=a.call(f,f.__data__,k,h))&&("__data__"in f&&(g.__data__=f.__data__),j[k]=g);return new Ee(d,this._parents)},Qq=function(a){return null==a?Ud:function(){return this.querySelectorAll(a)}},Rq=function(a){"function"!=typeof a&&(a=Qq(a));for(var b=this._groups,c=b.length,d=[],e=[],f=0;c>f;++f)for(var g,h=b[f],i=h.length,j=0;i>j;++j)(g=h[j])&&(d.push(a.call(g,g.__data__,j,h)),e.push(g));return new Ee(d,e)},Sq=function(a){"function"!=typeof a&&(a=Hq(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;c>e;++e)for(var f,g=b[e],h=g.length,i=d[e]=[],j=0;h>j;++j)(f=g[j])&&a.call(f,f.__data__,j,g)&&i.push(f);return new Ee(d,this._parents)},Tq=function(a){return new Array(a.length)},Uq=function(){return new Ee(this._enter||this._groups.map(Tq),this._parents)};Vd.prototype={constructor:Vd,appendChild:function(a){return this._parent.insertBefore(a,this._next)},insertBefore:function(a,b){return this._parent.insertBefore(a,b)},querySelector:function(a){return this._parent.querySelector(a)},querySelectorAll:function(a){return this._parent.querySelectorAll(a)}};var Vq=function(a){return function(){return a}},Wq="$",Xq=function(a,b){if(!a)return n=new Array(this.size()),j=-1,this.each(function(a){n[++j]=a}),n;var c=b?Xd:Wd,d=this._parents,e=this._groups;"function"!=typeof a&&(a=Vq(a));for(var f=e.length,g=new Array(f),h=new Array(f),i=new Array(f),j=0;f>j;++j){var k=d[j],l=e[j],m=l.length,n=a.call(k,k&&k.__data__,j,d),o=n.length,p=h[j]=new Array(o),q=g[j]=new Array(o),r=i[j]=new Array(m);c(k,l,p,q,r,n,b);for(var s,t,u=0,v=0;o>u;++u)if(s=p[u]){for(u>=v&&(v=u+1);!(t=q[v])&&++v<o;);s._next=t||null}}return g=new Ee(g,d),g._enter=h,g._exit=i,g},Yq=function(){return new Ee(this._exit||this._groups.map(Tq),this._parents)},Zq=function(a){for(var b=this._groups,c=a._groups,d=b.length,e=c.length,f=Math.min(d,e),g=new Array(d),h=0;f>h;++h)for(var i,j=b[h],k=c[h],l=j.length,m=g[h]=new Array(l),n=0;l>n;++n)(i=j[n]||k[n])&&(m[n]=i);for(;d>h;++h)g[h]=b[h];return new Ee(g,this._parents)},$q=function(){for(var a=this._groups,b=-1,c=a.length;++b<c;)for(var d,e=a[b],f=e.length-1,g=e[f];--f>=0;)(d=e[f])&&(g&&g!==d.nextSibling&&g.parentNode.insertBefore(d,g),g=d);return this},_q=function(a){function b(b,c){return b&&c?a(b.__data__,c.__data__):!b-!c}a||(a=Yd);for(var c=this._groups,d=c.length,e=new Array(d),f=0;d>f;++f){for(var g,h=c[f],i=h.length,j=e[f]=new Array(i),k=0;i>k;++k)(g=h[k])&&(j[k]=g);j.sort(b)}return new Ee(e,this._parents).order()},ar=function(){var a=arguments[0];return arguments[0]=this,a.apply(null,arguments),this},br=function(){var a=new Array(this.size()),b=-1;return this.each(function(){a[++b]=this}),a},cr=function(){for(var a=this._groups,b=0,c=a.length;c>b;++b)for(var d=a[b],e=0,f=d.length;f>e;++e){var g=d[e];if(g)return g}return null},dr=function(){var a=0;return this.each(function(){++a}),a},er=function(){return!this.node()},fr=function(a){for(var b=this._groups,c=0,d=b.length;d>c;++c)for(var e,f=b[c],g=0,h=f.length;h>g;++g)(e=f[g])&&a.call(e,e.__data__,g,f);return this},gr=function(a,b){var c=Bq(a);if(arguments.length<2){var d=this.node();return c.local?d.getAttributeNS(c.space,c.local):d.getAttribute(c)}return this.each((null==b?c.local?$d:Zd:"function"==typeof b?c.local?ce:be:c.local?ae:_d)(c,b))},hr=function(a){return a.ownerDocument&&a.ownerDocument.defaultView||a.document&&a||a.defaultView},ir=function(a,b,c){var d;return arguments.length>1?this.each((null==b?de:"function"==typeof b?fe:ee)(a,b,null==c?"":c)):hr(d=this.node()).getComputedStyle(d,null).getPropertyValue(a)},jr=function(a,b){return arguments.length>1?this.each((null==b?ge:"function"==typeof b?ie:he)(a,b)):this.node()[a]};le.prototype={add:function(a){var b=this._names.indexOf(a);0>b&&(this._names.push(a),this._node.setAttribute("class",this._names.join(" ")))},remove:function(a){var b=this._names.indexOf(a);b>=0&&(this._names.splice(b,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(a){return this._names.indexOf(a)>=0}};var kr=function(a,b){var c=je(a+"");if(arguments.length<2){for(var d=ke(this.node()),e=-1,f=c.length;++e<f;)if(!d.contains(c[e]))return!1;return!0}return this.each(("function"==typeof b?qe:b?oe:pe)(c,b))},lr=function(a){return arguments.length?this.each(null==a?re:("function"==typeof a?te:se)(a)):this.node().textContent},mr=function(a){return arguments.length?this.each(null==a?ue:("function"==typeof a?we:ve)(a)):this.node().innerHTML},nr=function(){return this.each(xe)},or=function(){return this.each(ye)},pr=function(a){var b="function"==typeof a?a:Cq(a);return this.select(function(){return this.appendChild(b.apply(this,arguments))})},qr=function(a,b){var c="function"==typeof a?a:Cq(a),d=null==b?ze:"function"==typeof b?b:Oq(b);return this.select(function(){return this.insertBefore(c.apply(this,arguments),d.apply(this,arguments)||null)})},rr=function(){return this.each(Ae)},sr=function(a){return arguments.length?this.property("__data__",a):this.node().__data__},tr=function(a,b){return this.each(("function"==typeof b?De:Ce)(a,b))},ur=[null];Ee.prototype=Fe.prototype={constructor:Ee,select:Pq,selectAll:Rq,filter:Sq,data:Xq,enter:Uq,exit:Yq,merge:Zq,order:$q,sort:_q,call:ar,nodes:br,node:cr,size:dr,empty:er,each:fr,attr:gr,style:ir,property:jr,classed:kr,text:lr,html:mr,raise:nr,lower:or,append:pr,insert:qr,remove:rr,datum:sr,on:Kq,dispatch:tr};var vr=function(a){return"string"==typeof a?new Ee([[document.querySelector(a)]],[document.documentElement]):new Ee([[a]],ur)},wr=function(a){return"string"==typeof a?new Ee([document.querySelectorAll(a)],[document.documentElement]):new Ee([null==a?[]:a],ur)},xr=function(a,b,c){arguments.length<3&&(c=b,b=Lq().changedTouches);for(var d,e=0,f=b?b.length:0;f>e;++e)if((d=b[e]).identifier===c)return Mq(a,d);return null},yr=function(a,b){null==b&&(b=Lq().touches);for(var c=0,d=b?b.length:0,e=new Array(d);d>c;++c)e[c]=Mq(a,b[c]);return e},zr=Fb("start","end","interrupt"),Ar=[],Br=0,Cr=1,Dr=2,Er=3,Fr=4,Gr=5,Hr=6,Ir=function(a,b,c,d,e,f){var g=a.__transition;if(g){if(c in g)return}else a.__transition={};Je(a,c,{name:b,index:d,group:e,on:zr,tween:Ar,time:f.time,delay:f.delay,duration:f.duration,ease:f.ease,timer:null,state:Br})},Jr=function(a,b){var c,d,e,f=a.__transition,g=!0;if(f){b=null==b?null:b+"";for(e in f)(c=f[e]).name===b?(d=c.state>Dr&&c.state<Gr,c.state=Hr,c.timer.stop(),d&&c.on.call("interrupt",a,a.__data__,c.index,c.group),delete f[e]):g=!1;g&&delete a.__transition}},Kr=function(a){return this.each(function(){Jr(this,a)})},Lr=function(a,b){var c=this._id;if(a+="",arguments.length<2){for(var d,e=Ie(this.node(),c).tween,f=0,g=e.length;g>f;++f)if((d=e[f]).name===a)return d.value;return null}return this.each((null==b?Ke:Le)(c,a,b))},Mr=function(a,b){var c;return("number"==typeof b?nn:b instanceof Qa?hn:(c=Qa(b))?(b=c,hn):rn)(a,b)},Nr=function(a,b){var c=Bq(a),d="transform"===c?yn:Mr;return this.attrTween(a,"function"==typeof b?(c.local?Se:Re)(c,d,Me(this,"attr."+a,b)):null==b?(c.local?Oe:Ne)(c):(c.local?Qe:Pe)(c,d,b))},Or=function(a,b){var c="attr."+a;if(arguments.length<2)return(c=this.tween(c))&&c._value;if(null==b)return this.tween(c,null);if("function"!=typeof b)throw new Error;var d=Bq(a);return this.tween(c,(d.local?Te:Ue)(d,b))},Pr=function(a){var b=this._id;return arguments.length?this.each(("function"==typeof a?Ve:We)(b,a)):Ie(this.node(),b).delay},Qr=function(a){var b=this._id;return arguments.length?this.each(("function"==typeof a?Xe:Ye)(b,a)):Ie(this.node(),b).duration},Rr=function(a){var b=this._id;return arguments.length?this.each(Ze(b,a)):Ie(this.node(),b).ease},Sr=function(a){"function"!=typeof a&&(a=Hq(a));for(var b=this._groups,c=b.length,d=new Array(c),e=0;c>e;++e)for(var f,g=b[e],h=g.length,i=d[e]=[],j=0;h>j;++j)(f=g[j])&&a.call(f,f.__data__,j,g)&&i.push(f);return new jf(d,this._parents,this._name,this._id)},Tr=function(a){if(a._id!==this._id)throw new Error;for(var b=this._groups,c=a._groups,d=b.length,e=c.length,f=Math.min(d,e),g=new Array(d),h=0;f>h;++h)for(var i,j=b[h],k=c[h],l=j.length,m=g[h]=new Array(l),n=0;l>n;++n)(i=j[n]||k[n])&&(m[n]=i);for(;d>h;++h)g[h]=b[h];return new jf(g,this._parents,this._name,this._id)},Ur=function(a,b){var c=this._id;return arguments.length<2?Ie(this.node(),c).on.on(a):this.each(_e(c,a,b))},Vr=function(){return this.on("end.remove",af(this._id))},Wr=function(a){var b=this._name,c=this._id;"function"!=typeof a&&(a=Oq(a));for(var d=this._groups,e=d.length,f=new Array(e),g=0;e>g;++g)for(var h,i,j=d[g],k=j.length,l=f[g]=new Array(k),m=0;k>m;++m)(h=j[m])&&(i=a.call(h,h.__data__,m,j))&&("__data__"in h&&(i.__data__=h.__data__),l[m]=i,Ir(l[m],b,c,m,l,Ie(h,c)));return new jf(f,this._parents,b,c)},Xr=function(a){var b=this._name,c=this._id;"function"!=typeof a&&(a=Qq(a));for(var d=this._groups,e=d.length,f=[],g=[],h=0;e>h;++h)for(var i,j=d[h],k=j.length,l=0;k>l;++l)if(i=j[l]){for(var m,n=a.call(i,i.__data__,l,j),o=Ie(i,c),p=0,q=n.length;q>p;++p)(m=n[p])&&Ir(m,b,c,p,n,o);f.push(n),g.push(i)}return new jf(f,g,b,c)},Yr=Fe.prototype.constructor,Zr=function(){return new Yr(this._groups,this._parents)},$r=function(a,b,c){var d="transform"==(a+="")?xn:Mr;return null==b?this.styleTween(a,bf(a,d)).on("end.style."+a,cf(a)):this.styleTween(a,"function"==typeof b?ef(a,d,Me(this,"style."+a,b)):df(a,d,b),c)},_r=function(a,b,c){var d="style."+(a+="");if(arguments.length<2)return(d=this.tween(d))&&d._value;if(null==b)return this.tween(d,null);if("function"!=typeof b)throw new Error;return this.tween(d,ff(a,b,null==c?"":c))},as=function(a){return this.tween("text","function"==typeof a?hf(Me(this,"text",a)):gf(null==a?"":a+""))},bs=function(){for(var a=this._name,b=this._id,c=lf(),d=this._groups,e=d.length,f=0;e>f;++f)for(var g,h=d[f],i=h.length,j=0;i>j;++j)if(g=h[j]){var k=Ie(g,b);Ir(g,a,c,j,h,{time:k.time+k.delay+k.duration,delay:0,duration:k.duration,ease:k.ease})}return new jf(d,this._parents,a,c)},cs=0,ds=Fe.prototype;jf.prototype=kf.prototype={constructor:jf,select:Wr,selectAll:Xr,filter:Sr,merge:Tr,selection:Zr,transition:bs,call:ds.call,nodes:ds.nodes,node:ds.node,size:ds.size,empty:ds.empty,each:ds.each,on:Ur,attr:Nr,attrTween:Or,style:$r,styleTween:_r,text:as,remove:Vr,tween:Lr,delay:Pr,duration:Qr,ease:Rr};var es={time:null,delay:0,duration:250,ease:s},fs=function(a){var b,c;a instanceof jf?(b=a._id,a=a._name):(b=lf(),(c=es).time=Qb(),a=null==a?null:a+"");for(var d=this._groups,e=d.length,f=0;e>f;++f)for(var g,h=d[f],i=h.length,j=0;i>j;++j)(g=h[j])&&Ir(g,a,b,j,h,c||mf(g,b));return new jf(d,this._parents,a,b)};Fe.prototype.interrupt=Kr,Fe.prototype.transition=fs;var gs=[null],hs=function(a,b){var c,d,e=a.__transition;if(e){b=null==b?null:b+"";for(d in e)if((c=e[d]).state>Cr&&c.name===b)return new jf([[a]],gs,b,+d)}return null},is=Array.prototype.slice,js=function(a){return a},ks=1,ls=2,ms=3,ns=4,os=1e-6,ps=function(){function a(a){var f,g=0;a.eachAfter(function(a){var c=a.children;c?(a.x=xf(c),a.y=zf(c)):(a.x=f?g+=b(a,f):0,a.y=0,f=a)});var h=Bf(a),i=Cf(a),j=h.x-b(h,i)/2,k=i.x+b(i,h)/2;return a.eachAfter(e?function(b){b.x=(b.x-a.x)*c,b.y=(a.y-b.y)*d}:function(b){b.x=(b.x-j)/(k-j)*c,b.y=(1-(a.y?b.y/a.y:1))*d})}var b=wf,c=1,d=1,e=!1;return a.separation=function(c){return arguments.length?(b=c,a):b},a.size=function(b){return arguments.length?(e=!1,c=+b[0],d=+b[1],a):e?null:[c,d]},a.nodeSize=function(b){return arguments.length?(e=!0,c=+b[0],d=+b[1],a):e?[c,d]:null},a},qs=function(a){var b,c,d,e,f=this,g=[f];do for(b=g.reverse(),g=[];f=b.pop();)if(a(f),c=f.children)for(d=0,e=c.length;e>d;++d)g.push(c[d]);while(g.length);return this},rs=function(a){for(var b,c,d=this,e=[d];d=e.pop();)if(a(d),b=d.children)for(c=b.length-1;c>=0;--c)e.push(b[c]);return this},ss=function(a){for(var b,c,d,e=this,f=[e],g=[];e=f.pop();)if(g.push(e),b=e.children)for(c=0,d=b.length;d>c;++c)f.push(b[c]);for(;e=g.pop();)a(e);return this},ts=function(a){return this.eachAfter(function(b){for(var c=+a(b.data)||0,d=b.children,e=d&&d.length;--e>=0;)c+=d[e].value;b.value=c})},us=function(a){return this.eachBefore(function(b){b.children&&b.children.sort(a)})},vs=function(a){for(var b=this,c=Df(b,a),d=[b];b!==c;)b=b.parent,d.push(b);for(var e=d.length;a!==c;)d.splice(e,0,a),a=a.parent;return d},ws=function(){for(var a=this,b=[a];a=a.parent;)b.push(a);return b},xs=function(){var a=[];return this.each(function(b){a.push(b)}),a},ys=function(){var a=[];return this.eachBefore(function(b){b.children||a.push(b)}),a},zs=function(){var a=this,b=[];return a.each(function(c){c!==a&&b.push({source:c.parent,target:c})}),b};Jf.prototype=Ef.prototype={constructor:Jf,each:qs,eachAfter:ss,eachBefore:rs,sum:ts,sort:us,path:vs,ancestors:ws,descendants:xs,leaves:ys,links:zs,copy:Ff};var As=function(a){for(var b,c=(a=a.slice()).length,d=null,e=d;c;){var f=new Kf(a[c-1]);e=e?e.next=f:d=f,a[b]=a[--c]}return{head:d,tail:e}},Bs=function(a){return Mf(As(a),[])},Cs=function(a){return Uf(a),a},Ds=function(a){return function(){return a}},Es=function(){function a(a){return a.x=c/2,a.y=d/2,b?a.eachBefore(Zf(b)).eachAfter($f(e,.5)).eachBefore(_f(1)):a.eachBefore(Zf(Yf)).eachAfter($f(Xf,1)).eachAfter($f(e,a.r/Math.min(c,d))).eachBefore(_f(Math.min(c,d)/(2*a.r))),a}var b=null,c=1,d=1,e=Xf;return a.radius=function(c){return arguments.length?(b=Vf(c),a):b},a.size=function(b){return arguments.length?(c=+b[0],d=+b[1],a):[c,d]},a.padding=function(b){return arguments.length?(e="function"==typeof b?b:Ds(+b),a):e},a},Fs=function(a){a.x0=Math.round(a.x0),a.y0=Math.round(a.y0),a.x1=Math.round(a.x1),a.y1=Math.round(a.y1)},Gs=function(a,b,c,d,e){for(var f,g=a.children,h=-1,i=g.length,j=a.value&&(d-b)/a.value;++h<i;)f=g[h],f.y0=c,f.y1=e,f.x0=b,f.x1=b+=f.value*j},Hs=function(){function a(a){var g=a.height+1;return a.x0=a.y0=e,a.x1=c,a.y1=d/g,a.eachBefore(b(d,g)),f&&a.eachBefore(Fs),a}function b(a,b){return function(c){c.children&&Gs(c,c.x0,a*(c.depth+1)/b,c.x1,a*(c.depth+2)/b);var d=c.x0,f=c.y0,g=c.x1-e,h=c.y1-e;d>g&&(d=g=(d+g)/2),f>h&&(f=h=(f+h)/2),c.x0=d,c.y0=f,c.x1=g,c.y1=h}}var c=1,d=1,e=0,f=!1;return a.round=function(b){return arguments.length?(f=!!b,a):f},a.size=function(b){return arguments.length?(c=+b[0],d=+b[1],a):[c,d]},a.padding=function(b){return arguments.length?(e=+b,a):e},a},Is="$",Js={depth:-1},Ks={},Ls=function(){function a(a){var d,e,f,g,h,i,j,k=a.length,l=new Array(k),m={};for(e=0;k>e;++e)d=a[e],h=l[e]=new Jf(d),null!=(i=b(d,e,a))&&(i+="")&&(j=Is+(h.id=i),m[j]=j in m?Ks:h);for(e=0;k>e;++e)if(h=l[e],i=c(a[e],e,a),null!=i&&(i+="")){if(g=m[Is+i],!g)throw new Error("missing: "+i);if(g===Ks)throw new Error("ambiguous: "+i);g.children?g.children.push(h):g.children=[h],h.parent=g}else{if(f)throw new Error("multiple roots");f=h}if(!f)throw new Error("no root");if(f.parent=Js,f.eachBefore(function(a){a.depth=a.parent.depth+1,--k}).eachBefore(If),f.parent=null,k>0)throw new Error("cycle");return f}var b=ag,c=bg;return a.id=function(c){return arguments.length?(b=Wf(c),a):b},a.parentId=function(b){return arguments.length?(c=Wf(b),a):c},a};ig.prototype=Object.create(Jf.prototype);var Ms=function(){function a(a){var d=jg(a);if(d.eachAfter(b),d.parent.m=-d.z,d.eachBefore(c),i)a.eachBefore(e);else{var j=a,k=a,l=a;a.eachBefore(function(a){a.x<j.x&&(j=a),a.x>k.x&&(k=a),a.depth>l.depth&&(l=a)});var m=j===k?1:f(j,k)/2,n=m-j.x,o=g/(k.x+m+n),p=h/(l.depth||1);a.eachBefore(function(a){a.x=(a.x+n)*o,a.y=a.depth*p})}return a}function b(a){var b=a.children,c=a.parent.children,e=a.i?c[a.i-1]:null;if(b){gg(a);var g=(b[0].z+b[b.length-1].z)/2;e?(a.z=e.z+f(a._,e._),a.m=a.z-g):a.z=g}else e&&(a.z=e.z+f(a._,e._));a.parent.A=d(a,e,a.parent.A||c[0])}function c(a){a._.x=a.z+a.parent.m,a.m+=a.parent.m}function d(a,b,c){if(b){for(var d,e=a,g=a,h=b,i=e.parent.children[0],j=e.m,k=g.m,l=h.m,m=i.m;h=eg(h),e=dg(e),h&&e;)i=dg(i),g=eg(g),g.a=a,d=h.z+l-e.z-j+f(h._,e._),d>0&&(fg(hg(h,a,c),a,d),j+=d,k+=d),l+=h.m,j+=e.m,m+=i.m,k+=g.m;h&&!eg(g)&&(g.t=h,g.m+=l-k),e&&!dg(i)&&(i.t=e,i.m+=j-m,c=a)}return c}function e(a){a.x*=g,a.y=a.depth*h}var f=cg,g=1,h=1,i=null;return a.separation=function(b){return arguments.length?(f=b,a):f},a.size=function(b){return arguments.length?(i=!1,g=+b[0],h=+b[1],a):i?null:[g,h]},a.nodeSize=function(b){return arguments.length?(i=!0,g=+b[0],h=+b[1],a):i?[g,h]:null},a},Ns=function(a,b,c,d,e){for(var f,g=a.children,h=-1,i=g.length,j=a.value&&(e-c)/a.value;++h<i;)f=g[h],f.x0=b,f.x1=d,f.y0=c,f.y1=c+=f.value*j},Os=(1+Math.sqrt(5))/2,Ps=function Rw(a){function b(b,c,d,e,f){kg(a,b,c,d,e,f)}return b.ratio=function(a){return Rw((a=+a)>1?a:1)},b}(Os),Qs=function(){function a(a){return a.x0=a.y0=0,a.x1=e,a.y1=f,a.eachBefore(b),g=[0],d&&a.eachBefore(Fs),a}function b(a){var b=g[a.depth],d=a.x0+b,e=a.y0+b,f=a.x1-b,m=a.y1-b;d>f&&(d=f=(d+f)/2),e>m&&(e=m=(e+m)/2),a.x0=d,a.y0=e,a.x1=f,a.y1=m,a.children&&(b=g[a.depth+1]=h(a)/2,d+=l(a)-b,e+=i(a)-b,f-=j(a)-b,m-=k(a)-b,d>f&&(d=f=(d+f)/2),e>m&&(e=m=(e+m)/2),c(a,d,e,f,m))}var c=Ps,d=!1,e=1,f=1,g=[0],h=Xf,i=Xf,j=Xf,k=Xf,l=Xf;return a.round=function(b){return arguments.length?(d=!!b,a):d},a.size=function(b){return arguments.length?(e=+b[0],f=+b[1],a):[e,f]},a.tile=function(b){return arguments.length?(c=Wf(b),a):c},a.padding=function(b){return arguments.length?a.paddingInner(b).paddingOuter(b):a.paddingInner()},a.paddingInner=function(b){return arguments.length?(h="function"==typeof b?b:Ds(+b),a):h},a.paddingOuter=function(b){return arguments.length?a.paddingTop(b).paddingRight(b).paddingBottom(b).paddingLeft(b):a.paddingTop()},a.paddingTop=function(b){return arguments.length?(i="function"==typeof b?b:Ds(+b),a):i},a.paddingRight=function(b){return arguments.length?(j="function"==typeof b?b:Ds(+b),a):j},a.paddingBottom=function(b){return arguments.length?(k="function"==typeof b?b:Ds(+b),a):k},a.paddingLeft=function(b){return arguments.length?(l="function"==typeof b?b:Ds(+b),a):l},a},Rs=function(a,b,c,d,e){function f(a,b,c,d,e,g,h){if(a>=b-1){var j=i[a];return j.x0=d,j.y0=e,j.x1=g,j.y1=h,void 0}for(var l=k[a],m=c/2+l,n=a+1,o=b-1;o>n;){var p=n+o>>>1;k[p]<m?n=p+1:o=p}var q=k[n]-l,r=c-q;if(h-e>g-d){var s=(e*r+h*q)/c;f(a,n,q,d,e,g,s),f(n,b,r,d,s,g,h)}else{var t=(d*r+g*q)/c;f(a,n,q,d,e,t,h),f(n,b,r,t,e,g,h)}}var g,h,i=a.children,j=i.length,k=new Array(j+1);for(k[0]=h=g=0;j>g;++g)k[g+1]=h+=i[g].value;f(0,j,a.value,b,c,d,e)},Ss=function(a,b,c,d,e){(1&a.depth?Ns:Gs)(a,b,c,d,e)},Ts=function Sw(a){function b(b,c,d,e,f){if((g=b._squarify)&&g.ratio===a)for(var g,h,i,j,k,l=-1,m=g.length,n=b.value;++l<m;){for(h=g[l],i=h.children,j=h.value=0,k=i.length;k>j;++j)h.value+=i[j].value;h.dice?Gs(h,c,d,e,d+=(f-d)*h.value/n):Ns(h,c,d,c+=(e-c)*h.value/n,f),n-=h.value}else b._squarify=g=kg(a,b,c,d,e,f),g.ratio=a}return b.ratio=function(a){return Sw((a=+a)>1?a:1)},b}(Os),Us=function(a,b){function c(){var c,e,f=d.length,g=0,h=0;for(c=0;f>c;++c)e=d[c],g+=e.x,h+=e.y;for(g=g/f-a,h=h/f-b,c=0;f>c;++c)e=d[c],e.x-=g,e.y-=h}var d;return null==a&&(a=0),null==b&&(b=0),c.initialize=function(a){d=a},c.x=function(b){return arguments.length?(a=+b,c):a},c.y=function(a){return arguments.length?(b=+a,c):b},c},Vs=function(a){return function(){return a}},Ws=function(){return 1e-6*(Math.random()-.5)},Xs=function(a){function b(){function a(a,b,c,d,e){var f=a.data,h=a.r,n=l+h;{if(!f)return b>j+n||j-n>d||c>k+n||k-n>e;if(f.index>i.index){var o=j-f.x-f.vx,p=k-f.y-f.vy,q=o*o+p*p;n*n>q&&(0===o&&(o=Ws(),q+=o*o),0===p&&(p=Ws(),q+=p*p),q=(n-(q=Math.sqrt(q)))/q*g,i.vx+=(o*=q)*(n=(h*=h)/(m+h)),i.vy+=(p*=q)*n,f.vx-=o*(n=1-n),f.vy-=p*n)}}}for(var b,d,i,j,k,l,m,n=e.length,o=0;h>o;++o)for(d=O(e,lg,mg).visitAfter(c),b=0;n>b;++b)i=e[b],l=f[i.index],m=l*l,j=i.x+i.vx,k=i.y+i.vy,d.visit(a)}function c(a){if(a.data)return a.r=f[a.data.index];for(var b=a.r=0;4>b;++b)a[b]&&a[b].r>a.r&&(a.r=a[b].r)}function d(){if(e){var b,c,d=e.length;for(f=new Array(d),b=0;d>b;++b)c=e[b],f[c.index]=+a(c,b,e)}}var e,f,g=1,h=1;return"function"!=typeof a&&(a=Vs(null==a?1:+a)),b.initialize=function(a){e=a,d()},b.iterations=function(a){return arguments.length?(h=+a,b):h},b.strength=function(a){return arguments.length?(g=+a,b):g},b.radius=function(c){return arguments.length?(a="function"==typeof c?c:Vs(+c),d(),b):a},b},Ys=function(a){function b(a){return 1/Math.min(k[a.source.index],k[a.target.index])}function c(b){for(var c=0,d=a.length;p>c;++c)for(var e,f,g,j,k,m,n,o=0;d>o;++o)e=a[o],f=e.source,g=e.target,j=g.x+g.vx-f.x-f.vx||Ws(),k=g.y+g.vy-f.y-f.vy||Ws(),m=Math.sqrt(j*j+k*k),m=(m-i[o])/m*b*h[o],j*=m,k*=m,g.vx-=j*(n=l[o]),g.vy-=k*n,f.vx+=j*(n=1-n),f.vy+=k*n}function d(){if(j){var b,c,d=j.length,n=a.length,o=f(j,m);for(b=0,k=new Array(d);n>b;++b)c=a[b],c.index=b,"object"!=typeof c.source&&(c.source=og(o,c.source)),"object"!=typeof c.target&&(c.target=og(o,c.target)),k[c.source.index]=(k[c.source.index]||0)+1,k[c.target.index]=(k[c.target.index]||0)+1;for(b=0,l=new Array(n);n>b;++b)c=a[b],l[b]=k[c.source.index]/(k[c.source.index]+k[c.target.index]);h=new Array(n),e(),i=new Array(n),g()}}function e(){if(j)for(var b=0,c=a.length;c>b;++b)h[b]=+n(a[b],b,a)}function g(){if(j)for(var b=0,c=a.length;c>b;++b)i[b]=+o(a[b],b,a)}var h,i,j,k,l,m=ng,n=b,o=Vs(30),p=1;return null==a&&(a=[]),c.initialize=function(a){j=a,d()},c.links=function(b){return arguments.length?(a=b,d(),c):a},c.id=function(a){return arguments.length?(m=a,c):m},c.iterations=function(a){return arguments.length?(p=+a,c):p},c.strength=function(a){
  return arguments.length?(n="function"==typeof a?a:Vs(+a),e(),c):n},c.distance=function(a){return arguments.length?(o="function"==typeof a?a:Vs(+a),g(),c):o},c},Zs=10,$s=Math.PI*(3-Math.sqrt(5)),_s=function(a){function b(){c(),o.call("tick",g),i>h&&(n.stop(),o.call("end",g))}function c(){var b,c,d=a.length;for(h+=(k-h)*j,m.each(function(a){a(h)}),b=0;d>b;++b)c=a[b],null==c.fx?c.x+=c.vx*=l:(c.x=c.fx,c.vx=0),null==c.fy?c.y+=c.vy*=l:(c.y=c.fy,c.vy=0)}function d(){for(var b,c=0,d=a.length;d>c;++c){if(b=a[c],b.index=c,isNaN(b.x)||isNaN(b.y)){var e=Zs*Math.sqrt(c),f=c*$s;b.x=e*Math.cos(f),b.y=e*Math.sin(f)}(isNaN(b.vx)||isNaN(b.vy))&&(b.vx=b.vy=0)}}function e(b){return b.initialize&&b.initialize(a),b}var g,h=1,i=.001,j=1-Math.pow(i,1/300),k=0,l=.6,m=f(),n=Tb(b),o=Fb("tick","end");return null==a&&(a=[]),d(),g={tick:c,restart:function(){return n.restart(b),g},stop:function(){return n.stop(),g},nodes:function(b){return arguments.length?(a=b,d(),m.each(e),g):a},alpha:function(a){return arguments.length?(h=+a,g):h},alphaMin:function(a){return arguments.length?(i=+a,g):i},alphaDecay:function(a){return arguments.length?(j=+a,g):+j},alphaTarget:function(a){return arguments.length?(k=+a,g):k},velocityDecay:function(a){return arguments.length?(l=1-a,g):1-l},force:function(a,b){return arguments.length>1?(null==b?m.remove(a):m.set(a,e(b)),g):m.get(a)},find:function(b,c,d){var e,f,g,h,i,j=0,k=a.length;for(null==d?d=1/0:d*=d,j=0;k>j;++j)h=a[j],e=b-h.x,f=c-h.y,g=e*e+f*f,d>g&&(i=h,d=g);return i},on:function(a,b){return arguments.length>1?(o.on(a,b),g):o.on(a)}}},at=function(){function a(a){var b,h=e.length,i=O(e,pg,qg).visitAfter(c);for(g=a,b=0;h>b;++b)f=e[b],i.visit(d)}function b(){if(e){var a,b,c=e.length;for(h=new Array(c),a=0;c>a;++a)b=e[a],h[b.index]=+i(b,a,e)}}function c(a){var b,c,d,e,f,g=0;if(a.length){for(d=e=f=0;4>f;++f)(b=a[f])&&(c=b.value)&&(g+=c,d+=c*b.x,e+=c*b.y);a.x=d/g,a.y=e/g}else{b=a,b.x=b.data.x,b.y=b.data.y;do g+=h[b.data.index];while(b=b.next)}a.value=g}function d(a,b,c,d){if(!a.value)return!0;var e=a.x-f.x,i=a.y-f.y,m=d-b,n=e*e+i*i;if(n>m*m/l)return k>n&&(0===e&&(e=Ws(),n+=e*e),0===i&&(i=Ws(),n+=i*i),j>n&&(n=Math.sqrt(j*n)),f.vx+=e*a.value*g/n,f.vy+=i*a.value*g/n),!0;if(!(a.length||n>=k)){(a.data!==f||a.next)&&(0===e&&(e=Ws(),n+=e*e),0===i&&(i=Ws(),n+=i*i),j>n&&(n=Math.sqrt(j*n)));do a.data!==f&&(m=h[a.data.index]*g/n,f.vx+=e*m,f.vy+=i*m);while(a=a.next)}}var e,f,g,h,i=Vs(-30),j=1,k=1/0,l=.81;return a.initialize=function(a){e=a,b()},a.strength=function(c){return arguments.length?(i="function"==typeof c?c:Vs(+c),b(),a):i},a.distanceMin=function(b){return arguments.length?(j=b*b,a):Math.sqrt(j)},a.distanceMax=function(b){return arguments.length?(k=b*b,a):Math.sqrt(k)},a.theta=function(b){return arguments.length?(l=b*b,a):Math.sqrt(l)},a},bt=function(a){function b(a){for(var b,c=0,g=d.length;g>c;++c)b=d[c],b.vx+=(f[c]-b.x)*e[c]*a}function c(){if(d){var b,c=d.length;for(e=new Array(c),f=new Array(c),b=0;c>b;++b)e[b]=isNaN(f[b]=+a(d[b],b,d))?0:+g(d[b],b,d)}}var d,e,f,g=Vs(.1);return"function"!=typeof a&&(a=Vs(null==a?0:+a)),b.initialize=function(a){d=a,c()},b.strength=function(a){return arguments.length?(g="function"==typeof a?a:Vs(+a),c(),b):g},b.x=function(d){return arguments.length?(a="function"==typeof d?d:Vs(+d),c(),b):a},b},ct=function(a){function b(a){for(var b,c=0,g=d.length;g>c;++c)b=d[c],b.vy+=(f[c]-b.y)*e[c]*a}function c(){if(d){var b,c=d.length;for(e=new Array(c),f=new Array(c),b=0;c>b;++b)e[b]=isNaN(f[b]=+a(d[b],b,d))?0:+g(d[b],b,d)}}var d,e,f,g=Vs(.1);return"function"!=typeof a&&(a=Vs(null==a?0:+a)),b.initialize=function(a){d=a,c()},b.strength=function(a){return arguments.length?(g="function"==typeof a?a:Vs(+a),c(),b):g},b.y=function(d){return arguments.length?(a="function"==typeof d?d:Vs(+d),c(),b):a},b},dt=function(){a.event.preventDefault(),a.event.stopImmediatePropagation()},et=function(a){var b=a.document.documentElement,c=vr(a).on("dragstart.drag",dt,!0);"onselectstart"in b?c.on("selectstart.drag",dt,!0):(b.__noselect=b.style.MozUserSelect,b.style.MozUserSelect="none")},ft=function(a){return function(){return a}};tg.prototype.on=function(){var a=this._.on.apply(this._,arguments);return a===this._?this:a};var gt=function(){function b(a){a.on("mousedown.drag",c).on("touchstart.drag",f).on("touchmove.drag",g).on("touchend.drag touchcancel.drag",h).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){if(!k&&l.apply(this,arguments)){var b=i("mouse",m.apply(this,arguments),Nq,this,arguments);b&&(vr(a.event.view).on("mousemove.drag",d,!0).on("mouseup.drag",e,!0),et(a.event.view),rg(),j=!1,b("start"))}}function d(){dt(),j=!0,o.mouse("drag")}function e(){vr(a.event.view).on("mousemove.drag mouseup.drag",null),sg(a.event.view,j),dt(),o.mouse("end")}function f(){if(l.apply(this,arguments)){var b,c,d=a.event.changedTouches,e=m.apply(this,arguments),f=d.length;for(b=0;f>b;++b)(c=i(d[b].identifier,e,xr,this,arguments))&&(rg(),c("start"))}}function g(){var b,c,d=a.event.changedTouches,e=d.length;for(b=0;e>b;++b)(c=o[d[b].identifier])&&(dt(),c("drag"))}function h(){var b,c,d=a.event.changedTouches,e=d.length;for(k&&clearTimeout(k),k=setTimeout(function(){k=null},500),b=0;e>b;++b)(c=o[d[b].identifier])&&(rg(),c("end"))}function i(c,d,e,f,g){var h,i,j,k=e(d,c),l=p.copy();if(Sd(new tg(b,"beforestart",h,c,q,k[0],k[1],0,0,l),function(){return null==(a.event.subject=h=n.apply(f,g))?!1:(i=h.x-k[0]||0,j=h.y-k[1]||0,!0)}))return function m(a){var n,p=k;switch(a){case"start":o[c]=m,n=q++;break;case"end":delete o[c],--q;case"drag":k=e(d,c),n=q}Sd(new tg(b,a,h,c,n,k[0]+i,k[1]+j,k[0]-p[0],k[1]-p[1],l),l.apply,l,[a,f,g])}}var j,k,l=ug,m=vg,n=wg,o={},p=Fb("start","drag","end"),q=0;return b.filter=function(a){return arguments.length?(l="function"==typeof a?a:ft(!!a),b):l},b.container=function(a){return arguments.length?(m="function"==typeof a?a:ft(a),b):m},b.subject=function(a){return arguments.length?(n="function"==typeof a?a:ft(a),b):n},b.on=function(){var a=p.on.apply(p,arguments);return a===p?b:a},b},ht=function(a){return function(){return a}};zg.prototype={constructor:zg,insert:function(a,b){var c,d,e;if(a){if(b.P=a,b.N=a.N,a.N&&(a.N.P=b),a.N=b,a.R){for(a=a.R;a.L;)a=a.L;a.L=b}else a.R=b;c=a}else this._?(a=Dg(this._),b.P=null,b.N=a,a.P=a.L=b,c=a):(b.P=b.N=null,this._=b,c=null);for(b.L=b.R=null,b.U=c,b.C=!0,a=b;c&&c.C;)d=c.U,c===d.L?(e=d.R,e&&e.C?(c.C=e.C=!1,d.C=!0,a=d):(a===c.R&&(Bg(this,c),a=c,c=a.U),c.C=!1,d.C=!0,Cg(this,d))):(e=d.L,e&&e.C?(c.C=e.C=!1,d.C=!0,a=d):(a===c.L&&(Cg(this,c),a=c,c=a.U),c.C=!1,d.C=!0,Bg(this,d))),c=a.U;this._.C=!1},remove:function(a){a.N&&(a.N.P=a.P),a.P&&(a.P.N=a.N),a.N=a.P=null;var b,c,d,e=a.U,f=a.L,g=a.R;if(c=f?g?Dg(g):f:g,e?e.L===a?e.L=c:e.R=c:this._=c,f&&g?(d=c.C,c.C=a.C,c.L=f,f.U=c,c!==g?(e=c.U,c.U=a.U,a=c.R,e.L=a,c.R=g,g.U=c):(c.U=e,e=c,a=c.R)):(d=a.C,a=c),a&&(a.U=e),!d){if(a&&a.C)return void(a.C=!1);do{if(a===this._)break;if(a===e.L){if(b=e.R,b.C&&(b.C=!1,e.C=!0,Bg(this,e),b=e.R),b.L&&b.L.C||b.R&&b.R.C){b.R&&b.R.C||(b.L.C=!1,b.C=!0,Cg(this,b),b=e.R),b.C=e.C,e.C=b.R.C=!1,Bg(this,e),a=this._;break}}else if(b=e.L,b.C&&(b.C=!1,e.C=!0,Cg(this,e),b=e.L),b.L&&b.L.C||b.R&&b.R.C){b.L&&b.L.C||(b.R.C=!1,b.C=!0,Bg(this,b),b=e.L),b.C=e.C,e.C=b.L.C=!1,Cg(this,e),a=this._;break}b.C=!0,a=e,e=e.U}while(!a.C);a&&(a.C=!1)}}};var it,jt,kt,lt,mt,nt=[],ot=[],pt=1e-6,qt=1e-12;ah.prototype={constructor:ah,polygons:function(){var a=this.edges;return this.cells.map(function(b){var c=b.halfedges.map(function(c){return Mg(b,a[c])});return c.data=b.site.data,c})},triangles:function(){var a=[],b=this.edges;return this.cells.forEach(function(c,d){if(f=(e=c.halfedges).length)for(var e,f,g,h=c.site,i=-1,j=b[e[f-1]],k=j.left===h?j.right:j.left;++i<f;)g=k,j=b[e[i]],k=j.left===h?j.right:j.left,g&&k&&d<g.index&&d<k.index&&$g(h,g,k)<0&&a.push([h.data,g.data,k.data])}),a},links:function(){return this.edges.filter(function(a){return a.right}).map(function(a){return{source:a.left.data,target:a.right.data}})},find:function(a,b,c){for(var d,e,f=this,g=f._found||0,h=f.cells.length;!(e=f.cells[g]);)if(++g>=h)return null;var i=a-e.site[0],j=b-e.site[1],k=i*i+j*j;do e=f.cells[d=g],g=null,e.halfedges.forEach(function(c){var d=f.edges[c],h=d.left;if(h!==e.site&&h||(h=d.right)){var i=a-h[0],j=b-h[1],l=i*i+j*j;k>l&&(k=l,g=h.index)}});while(null!==g);return f._found=d,null==c||c*c>=k?e.site:null}};var rt=function(){function a(a){return new ah(a.map(function(d,e){var f=[Math.round(b(d,e,a)/pt)*pt,Math.round(c(d,e,a)/pt)*pt];return f.index=e,f.data=d,f}),d)}var b=xg,c=yg,d=null;return a.polygons=function(b){return a(b).polygons()},a.links=function(b){return a(b).links()},a.triangles=function(b){return a(b).triangles()},a.x=function(c){return arguments.length?(b="function"==typeof c?c:ht(+c),a):b},a.y=function(b){return arguments.length?(c="function"==typeof b?b:ht(+b),a):c},a.extent=function(b){return arguments.length?(d=null==b?null:[[+b[0][0],+b[0][1]],[+b[1][0],+b[1][1]]],a):d&&[[d[0][0],d[0][1]],[d[1][0],d[1][1]]]},a.size=function(b){return arguments.length?(d=null==b?null:[[0,0],[+b[0],+b[1]]],a):d&&[d[1][0]-d[0][0],d[1][1]-d[0][1]]},a},st=function(a){return function(){return a}};ch.prototype={constructor:ch,scale:function(a){return 1===a?this:new ch(this.k*a,this.x,this.y)},translate:function(a,b){return 0===a&0===b?this:new ch(this.k,this.x+this.k*a,this.y+this.k*b)},apply:function(a){return[a[0]*this.k+this.x,a[1]*this.k+this.y]},applyX:function(a){return a*this.k+this.x},applyY:function(a){return a*this.k+this.y},invert:function(a){return[(a[0]-this.x)/this.k,(a[1]-this.y)/this.k]},invertX:function(a){return(a-this.x)/this.k},invertY:function(a){return(a-this.y)/this.k},rescaleX:function(a){return a.copy().domain(a.range().map(this.invertX,this).map(a.invert,a))},rescaleY:function(a){return a.copy().domain(a.range().map(this.invertY,this).map(a.invert,a))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var tt=new ch(1,0,0);dh.prototype=ch.prototype;var ut=function(){a.event.preventDefault(),a.event.stopImmediatePropagation()},vt=function(){function b(a){a.on("wheel.zoom",j).on("mousedown.zoom",k).on("dblclick.zoom",l).on("touchstart.zoom",m).on("touchmove.zoom",n).on("touchend.zoom touchcancel.zoom",o).style("-webkit-tap-highlight-color","rgba(0,0,0,0)").property("__zoom",hh)}function c(a,b){return b=Math.max(t,Math.min(u,b)),b===a.k?a:new ch(b,a.x,a.y)}function d(a,b,c){var d=b[0]-c[0]*a.k,e=b[1]-c[1]*a.k;return d===a.x&&e===a.y?a:new ch(a.k,d,e)}function e(a,b){var c=a.invertX(b[0][0])-v,d=a.invertX(b[1][0])-w,e=a.invertY(b[0][1])-x,f=a.invertY(b[1][1])-y;return a.translate(d>c?(c+d)/2:Math.min(0,c)||Math.max(0,d),f>e?(e+f)/2:Math.min(0,e)||Math.max(0,f))}function f(a){return[(+a[0][0]+ +a[1][0])/2,(+a[0][1]+ +a[1][1])/2]}function g(a,b,c){a.on("start.zoom",function(){h(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){h(this,arguments).end()}).tween("zoom",function(){var a=this,d=arguments,e=h(a,d),g=s.apply(a,d),i=c||f(g),j=Math.max(g[1][0]-g[0][0],g[1][1]-g[0][1]),k=a.__zoom,l="function"==typeof b?b.apply(a,d):b,m=A(k.invert(i).concat(j/k.k),l.invert(i).concat(j/l.k));return function(a){if(1===a)a=l;else{var b=m(a),c=j/b[2];a=new ch(c,i[0]-b[0]*c,i[1]-b[1]*c)}e.zoom(null,a)}})}function h(a,b){for(var c,d=0,e=B.length;e>d;++d)if((c=B[d]).that===a)return c;return new i(a,b)}function i(a,b){this.that=a,this.args=b,this.index=-1,this.active=0,this.extent=s.apply(a,b)}function j(){function b(){f.wheel=null,f.end()}if(r.apply(this,arguments)){var f=h(this,arguments),g=this.__zoom,i=Math.max(t,Math.min(u,g.k*Math.pow(2,-a.event.deltaY*(a.event.deltaMode?120:1)/500))),j=Nq(this);if(f.wheel)f.mouse[0][0]===j[0]&&f.mouse[0][1]===j[1]||(f.mouse[1]=g.invert(f.mouse[0]=j)),clearTimeout(f.wheel);else{if(g.k===i)return;f.mouse=[j,g.invert(j)],Jr(this),f.start()}ut(),f.wheel=setTimeout(b,E),f.zoom("mouse",e(d(c(g,i),f.mouse[0],f.mouse[1]),f.extent))}}function k(){function b(){ut(),f.moved=!0,f.zoom("mouse",e(d(f.that.__zoom,f.mouse[0]=Nq(f.that),f.mouse[1]),f.extent))}function c(){g.on("mousemove.zoom mouseup.zoom",null),sg(a.event.view,f.moved),ut(),f.end()}if(!q&&r.apply(this,arguments)){var f=h(this,arguments),g=vr(a.event.view).on("mousemove.zoom",b,!0).on("mouseup.zoom",c,!0),i=Nq(this);et(a.event.view),eh(),f.mouse=[i,this.__zoom.invert(i)],Jr(this),f.start()}}function l(){if(r.apply(this,arguments)){var f=this.__zoom,h=Nq(this),i=f.invert(h),j=f.k*(a.event.shiftKey?.5:2),k=e(d(c(f,j),h,i),s.apply(this,arguments));ut(),z>0?vr(this).transition().duration(z).call(g,k,h):vr(this).call(b.transform,k)}}function m(){if(r.apply(this,arguments)){var b,c,d,e,f=h(this,arguments),g=a.event.changedTouches,i=g.length;for(eh(),c=0;i>c;++c)d=g[c],e=xr(this,g,d.identifier),e=[e,this.__zoom.invert(e),d.identifier],f.touch0?f.touch1||(f.touch1=e):(f.touch0=e,b=!0);return p&&(p=clearTimeout(p),!f.touch1)?(f.end(),e=vr(this).on("dblclick.zoom"),void(e&&e.apply(this,arguments))):void(b&&(p=setTimeout(function(){p=null},D),Jr(this),f.start()))}}function n(){var b,f,g,i,j=h(this,arguments),k=a.event.changedTouches,l=k.length;for(ut(),p&&(p=clearTimeout(p)),b=0;l>b;++b)f=k[b],g=xr(this,k,f.identifier),j.touch0&&j.touch0[2]===f.identifier?j.touch0[0]=g:j.touch1&&j.touch1[2]===f.identifier&&(j.touch1[0]=g);if(f=j.that.__zoom,j.touch1){var m=j.touch0[0],n=j.touch0[1],o=j.touch1[0],q=j.touch1[1],r=(r=o[0]-m[0])*r+(r=o[1]-m[1])*r,s=(s=q[0]-n[0])*s+(s=q[1]-n[1])*s;f=c(f,Math.sqrt(r/s)),g=[(m[0]+o[0])/2,(m[1]+o[1])/2],i=[(n[0]+q[0])/2,(n[1]+q[1])/2]}else{if(!j.touch0)return;g=j.touch0[0],i=j.touch0[1]}j.zoom("touch",e(d(f,g,i),j.extent))}function o(){var b,c,d=h(this,arguments),e=a.event.changedTouches,f=e.length;for(eh(),q&&clearTimeout(q),q=setTimeout(function(){q=null},D),b=0;f>b;++b)c=e[b],d.touch0&&d.touch0[2]===c.identifier?delete d.touch0:d.touch1&&d.touch1[2]===c.identifier&&delete d.touch1;d.touch1&&!d.touch0&&(d.touch0=d.touch1,delete d.touch1),d.touch0||d.end()}var p,q,r=fh,s=gh,t=0,u=1/0,v=-u,w=u,x=v,y=w,z=250,A=Dn,B=[],C=Fb("start","zoom","end"),D=500,E=150;return b.transform=function(a,b){var c=a.selection?a.selection():a;c.property("__zoom",hh),a!==c?g(a,b):c.interrupt().each(function(){h(this,arguments).start().zoom(null,"function"==typeof b?b.apply(this,arguments):b).end()})},b.scaleBy=function(a,c){b.scaleTo(a,function(){var a=this.__zoom.k,b="function"==typeof c?c.apply(this,arguments):c;return a*b})},b.scaleTo=function(a,g){b.transform(a,function(){var a=s.apply(this,arguments),b=this.__zoom,h=f(a),i=b.invert(h),j="function"==typeof g?g.apply(this,arguments):g;return e(d(c(b,j),h,i),a)})},b.translateBy=function(a,c,d){b.transform(a,function(){return e(this.__zoom.translate("function"==typeof c?c.apply(this,arguments):c,"function"==typeof d?d.apply(this,arguments):d),s.apply(this,arguments))})},i.prototype={start:function(){return 1===++this.active&&(this.index=B.push(this)-1,this.emit("start")),this},zoom:function(a,b){return this.mouse&&"mouse"!==a&&(this.mouse[1]=b.invert(this.mouse[0])),this.touch0&&"touch"!==a&&(this.touch0[1]=b.invert(this.touch0[0])),this.touch1&&"touch"!==a&&(this.touch1[1]=b.invert(this.touch1[0])),this.that.__zoom=b,this.emit("zoom"),this},end:function(){return 0===--this.active&&(B.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(a){Sd(new bh(b,a,this.that.__zoom),C.apply,C,[a,this.that,this.args])}},b.filter=function(a){return arguments.length?(r="function"==typeof a?a:st(!!a),b):r},b.extent=function(a){return arguments.length?(s="function"==typeof a?a:st([[+a[0][0],+a[0][1]],[+a[1][0],+a[1][1]]]),b):s},b.scaleExtent=function(a){return arguments.length?(t=+a[0],u=+a[1],b):[t,u]},b.translateExtent=function(a){return arguments.length?(v=+a[0][0],w=+a[1][0],x=+a[0][1],y=+a[1][1],b):[[v,x],[w,y]]},b.duration=function(a){return arguments.length?(z=+a,b):z},b.interpolate=function(a){return arguments.length?(A=a,b):A},b.on=function(){var a=C.on.apply(C,arguments);return a===C?b:a},b},wt=function(a){return function(){return a}},xt=function(a,b,c){this.target=a,this.type=b,this.selection=c},yt=function(){a.event.preventDefault(),a.event.stopImmediatePropagation()},zt={name:"drag"},At={name:"space"},Bt={name:"handle"},Ct={name:"center"},Dt={name:"x",handles:["e","w"].map(jh),input:function(a,b){return a&&[[a[0],b[0][1]],[a[1],b[1][1]]]},output:function(a){return a&&[a[0][0],a[1][0]]}},Et={name:"y",handles:["n","s"].map(jh),input:function(a,b){return a&&[[b[0][0],a[0]],[b[1][0],a[1]]]},output:function(a){return a&&[a[0][1],a[1][1]]}},Ft={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(jh),input:function(a){return a},output:function(a){return a}},Gt={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ht={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},It={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Jt={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Kt={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},Lt=function(){return rh(Ft)},Mt=Math.cos,Nt=Math.sin,Ot=Math.PI,Pt=Ot/2,Qt=2*Ot,Rt=Math.max,St=function(){function a(a){var f,g,h,i,j,k,l=a.length,m=[],n=Lj(l),o=[],p=[],q=p.groups=new Array(l),r=new Array(l*l);for(f=0,j=-1;++j<l;){for(g=0,k=-1;++k<l;)g+=a[j][k];m.push(g),o.push(Lj(l)),f+=g}for(c&&n.sort(function(a,b){return c(m[a],m[b])}),d&&o.forEach(function(b,c){b.sort(function(b,e){return d(a[c][b],a[c][e])})}),f=Rt(0,Qt-b*l)/f,i=f?b:Qt/l,g=0,j=-1;++j<l;){for(h=g,k=-1;++k<l;){var s=n[j],t=o[s][k],u=a[s][t],v=g,w=g+=u*f;r[t*l+s]={index:s,subindex:t,startAngle:v,endAngle:w,value:u}}q[s]={index:s,startAngle:h,endAngle:g,value:m[s]},g+=i}for(j=-1;++j<l;)for(k=j-1;++k<l;){var x=r[k*l+j],y=r[j*l+k];(x.value||y.value)&&p.push(x.value<y.value?{source:y,target:x}:{source:x,target:y})}return e?p.sort(e):p}var b=0,c=null,d=null,e=null;return a.padAngle=function(c){return arguments.length?(b=Rt(0,c),a):b},a.sortGroups=function(b){return arguments.length?(c=b,a):c},a.sortSubgroups=function(b){return arguments.length?(d=b,a):d},a.sortChords=function(b){return arguments.length?(null==b?e=null:(e=sh(b))._=b,a):e&&e._},a},Tt=Array.prototype.slice,Ut=function(a){return function(){return a}},Vt=function(){function a(){var a,h=Tt.call(arguments),i=b.apply(this,h),j=c.apply(this,h),k=+d.apply(this,(h[0]=i,h)),l=e.apply(this,h)-Pt,m=f.apply(this,h)-Pt,n=k*Mt(l),o=k*Nt(l),p=+d.apply(this,(h[0]=j,h)),q=e.apply(this,h)-Pt,r=f.apply(this,h)-Pt;return g||(g=a=I()),g.moveTo(n,o),g.arc(0,0,k,l,m),l===q&&m===r||(g.quadraticCurveTo(0,0,p*Mt(q),p*Nt(q)),g.arc(0,0,p,q,r)),g.quadraticCurveTo(0,0,n,o),g.closePath(),a?(g=null,a+""||null):void 0}var b=th,c=uh,d=vh,e=wh,f=xh,g=null;return a.radius=function(b){return arguments.length?(d="function"==typeof b?b:Ut(+b),a):d},a.startAngle=function(b){return arguments.length?(e="function"==typeof b?b:Ut(+b),a):e},a.endAngle=function(b){return arguments.length?(f="function"==typeof b?b:Ut(+b),a):f},a.source=function(c){return arguments.length?(b=c,a):b},a.target=function(b){return arguments.length?(c=b,a):c},a.context=function(b){return arguments.length?(g=null==b?null:b,a):g},a},Wt=function(){return new yh};yh.prototype={constructor:yh,reset:function(){this.s=this.t=0},add:function(a){zh(Au,a,this.t),zh(this,Au.s,this.s),this.s?this.t+=Au.t:this.s=Au.t},valueOf:function(){return this.s}};var Xt,Yt,Zt,$t,_t,au,bu,cu,du,eu,fu,gu,hu,iu,ju,ku,lu,mu,nu,ou,pu,qu,ru,su,tu,uu,vu,wu,xu,yu,zu,Au=new yh,Bu=1e-6,Cu=1e-12,Du=Math.PI,Eu=Du/2,Fu=Du/4,Gu=2*Du,Hu=180/Du,Iu=Du/180,Ju=Math.abs,Ku=Math.atan,Lu=Math.atan2,Mu=Math.cos,Nu=Math.ceil,Ou=Math.exp,Pu=Math.log,Qu=Math.pow,Ru=Math.sin,Su=Math.sign||function(a){return a>0?1:0>a?-1:0},Tu=Math.sqrt,Uu=Math.tan,Vu={Feature:function(a,b){Eh(a.geometry,b)},FeatureCollection:function(a,b){for(var c=a.features,d=-1,e=c.length;++d<e;)Eh(c[d].geometry,b)}},Wu={Sphere:function(a,b){b.sphere()},Point:function(a,b){a=a.coordinates,b.point(a[0],a[1],a[2])},MultiPoint:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)a=c[d],b.point(a[0],a[1],a[2])},LineString:function(a,b){Fh(a.coordinates,b,0)},MultiLineString:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)Fh(c[d],b,0)},Polygon:function(a,b){Gh(a.coordinates,b)},MultiPolygon:function(a,b){for(var c=a.coordinates,d=-1,e=c.length;++d<e;)Gh(c[d],b)},GeometryCollection:function(a,b){for(var c=a.geometries,d=-1,e=c.length;++d<e;)Eh(c[d],b)}},Xu=function(a,b){a&&Vu.hasOwnProperty(a.type)?Vu[a.type](a,b):Eh(a,b)},Yu=Wt(),Zu=Wt(),$u={point:Dh,lineStart:Dh,lineEnd:Dh,polygonStart:function(){Yu.reset(),$u.lineStart=Hh,$u.lineEnd=Ih},polygonEnd:function(){var a=+Yu;Zu.add(0>a?Gu+a:a),this.lineStart=this.lineEnd=this.point=Dh},sphere:function(){Zu.add(Gu)}},_u=function(a){return Zu.reset(),Xu(a,$u),2*Zu},av=Wt(),bv={point:Sh,lineStart:Uh,lineEnd:Vh,polygonStart:function(){bv.point=Wh,bv.lineStart=Xh,bv.lineEnd=Yh,av.reset(),$u.polygonStart()},polygonEnd:function(){$u.polygonEnd(),bv.point=Sh,bv.lineStart=Uh,bv.lineEnd=Vh,0>Yu?(au=-(cu=180),bu=-(du=90)):av>Bu?du=90:-Bu>av&&(bu=-90),ju[0]=au,ju[1]=cu}},cv=function(a){var b,c,d,e,f,g,h;if(du=cu=-(au=bu=1/0),iu=[],Xu(a,bv),c=iu.length){for(iu.sort($h),b=1,d=iu[0],f=[d];c>b;++b)e=iu[b],_h(d,e[0])||_h(d,e[1])?(Zh(d[0],e[1])>Zh(d[0],d[1])&&(d[1]=e[1]),Zh(e[0],d[1])>Zh(d[0],d[1])&&(d[0]=e[0])):f.push(d=e);for(g=-(1/0),c=f.length-1,b=0,d=f[c];c>=b;d=e,++b)e=f[b],(h=Zh(d[1],e[0]))>g&&(g=h,au=e[0],cu=d[1])}return iu=ju=null,au===1/0||bu===1/0?[[NaN,NaN],[NaN,NaN]]:[[au,bu],[cu,du]]},dv={sphere:Dh,point:ai,lineStart:ci,lineEnd:fi,polygonStart:function(){dv.lineStart=gi,dv.lineEnd=hi},polygonEnd:function(){dv.lineStart=ci,dv.lineEnd=fi}},ev=function(a){ku=lu=mu=nu=ou=pu=qu=ru=su=tu=uu=0,Xu(a,dv);var b=su,c=tu,d=uu,e=b*b+c*c+d*d;return Cu>e&&(b=pu,c=qu,d=ru,Bu>lu&&(b=mu,c=nu,d=ou),e=b*b+c*c+d*d,Cu>e)?[NaN,NaN]:[Lu(c,b)*Hu,Bh(d/Tu(e))*Hu]},fv=function(a){return function(){return a}},gv=function(a,b){function c(c,d){return c=a(c,d),b(c[0],c[1])}return a.invert&&b.invert&&(c.invert=function(c,d){return c=b.invert(c,d),c&&a.invert(c[0],c[1])}),c};ki.invert=ki;var hv,iv,jv,kv,lv,mv,nv,ov,pv,qv,rv,sv=function(a){function b(b){return b=a(b[0]*Iu,b[1]*Iu),b[0]*=Hu,b[1]*=Hu,b}return a=li(a[0]*Iu,a[1]*Iu,a.length>2?a[2]*Iu:0),b.invert=function(b){return b=a.invert(b[0]*Iu,b[1]*Iu),b[0]*=Hu,b[1]*=Hu,b},b},tv=function(){function a(a,b){c.push(a=d(a,b)),a[0]*=Hu,a[1]*=Hu}function b(){var a=e.apply(this,arguments),b=f.apply(this,arguments)*Iu,i=g.apply(this,arguments)*Iu;return c=[],d=li(-a[0]*Iu,-a[1]*Iu,0).invert,pi(h,b,i,1),a={type:"Polygon",coordinates:[c]},c=d=null,a}var c,d,e=fv([0,0]),f=fv(90),g=fv(6),h={point:a};return b.center=function(a){return arguments.length?(e="function"==typeof a?a:fv([+a[0],+a[1]]),b):e},b.radius=function(a){return arguments.length?(f="function"==typeof a?a:fv(+a),b):f},b.precision=function(a){return arguments.length?(g="function"==typeof a?a:fv(+a),b):g},b},uv=function(){var a,b=[];return{point:function(b,c){a.push([b,c])},lineStart:function(){b.push(a=[])},lineEnd:Dh,rejoin:function(){b.length>1&&b.push(b.pop().concat(b.shift()))},result:function(){var c=b;return b=[],a=null,c}}},vv=function(a,b,c,d,e,f){var g,h=a[0],i=a[1],j=b[0],k=b[1],l=0,m=1,n=j-h,o=k-i;if(g=c-h,n||!(g>0)){if(g/=n,0>n){if(l>g)return;m>g&&(m=g)}else if(n>0){if(g>m)return;g>l&&(l=g)}if(g=e-h,n||!(0>g)){if(g/=n,0>n){if(g>m)return;g>l&&(l=g)}else if(n>0){if(l>g)return;m>g&&(m=g)}if(g=d-i,o||!(g>0)){if(g/=o,0>o){if(l>g)return;m>g&&(m=g)}else if(o>0){if(g>m)return;g>l&&(l=g)}if(g=f-i,o||!(0>g)){if(g/=o,0>o){if(g>m)return;g>l&&(l=g)}else if(o>0){if(l>g)return;m>g&&(m=g)}return l>0&&(a[0]=h+l*n,a[1]=i+l*o),1>m&&(b[0]=h+m*n,b[1]=i+m*o),!0}}}}},wv=function(a,b){return Ju(a[0]-b[0])<Bu&&Ju(a[1]-b[1])<Bu},xv=function(a,b,c,d,e){var f,g,h=[],i=[];if(a.forEach(function(a){if(!((b=a.length-1)<=0)){var b,c,d=a[0],g=a[b];if(wv(d,g)){for(e.lineStart(),f=0;b>f;++f)e.point((d=a[f])[0],d[1]);return void e.lineEnd()}h.push(c=new ri(d,a,null,!0)),i.push(c.o=new ri(d,null,c,!1)),h.push(c=new ri(g,a,null,!1)),i.push(c.o=new ri(g,null,c,!0))}}),h.length){for(i.sort(b),si(h),si(i),f=0,g=i.length;g>f;++f)i[f].e=c=!c;for(var j,k,l=h[0];;){for(var m=l,n=!0;m.v;)if((m=m.n)===l)return;j=m.z,e.lineStart();do{if(m.v=m.o.v=!0,m.e){if(n)for(f=0,g=j.length;g>f;++f)e.point((k=j[f])[0],k[1]);else d(m.x,m.n.x,1,e);m=m.n}else{if(n)for(j=m.p.z,f=j.length-1;f>=0;--f)e.point((k=j[f])[0],k[1]);else d(m.x,m.p.x,-1,e);m=m.p}m=m.o,j=m.z,n=!n}while(!m.v);e.lineEnd()}}},yv=1e9,zv=-yv,Av=function(){var a,b,c,d=0,e=0,f=960,g=500;return c={stream:function(c){return a&&b===c?a:a=ti(d,e,f,g)(b=c)},extent:function(h){return arguments.length?(d=+h[0][0],e=+h[0][1],f=+h[1][0],g=+h[1][1],a=b=null,c):[[d,e],[f,g]]}}},Bv=Wt(),Cv={sphere:Dh,point:Dh,lineStart:ui,lineEnd:Dh,polygonStart:Dh,polygonEnd:Dh},Dv=function(a){return Bv.reset(),Xu(a,Cv),+Bv},Ev=[null,null],Fv={type:"LineString",coordinates:Ev},Gv=function(a,b){return Ev[0]=a,Ev[1]=b,Dv(Fv)},Hv=function(a,b){var c=a[0]*Iu,d=a[1]*Iu,e=b[0]*Iu,f=b[1]*Iu,g=Mu(d),h=Ru(d),i=Mu(f),j=Ru(f),k=g*Mu(c),l=g*Ru(c),m=i*Mu(e),n=i*Ru(e),o=2*Bh(Tu(Ch(f-d)+g*i*Ch(e-c))),p=Ru(o),q=o?function(a){var b=Ru(a*=o)/p,c=Ru(o-a)/p,d=c*k+b*m,e=c*l+b*n,f=c*h+b*j;return[Lu(e,d)*Hu,Lu(f,Tu(d*d+e*e))*Hu]}:function(){return[c*Hu,d*Hu]};return q.distance=o,q},Iv=function(a){return a},Jv=Wt(),Kv=Wt(),Lv={point:Dh,lineStart:Dh,lineEnd:Dh,polygonStart:function(){Lv.lineStart=Ci,Lv.lineEnd=Fi},polygonEnd:function(){Lv.lineStart=Lv.lineEnd=Lv.point=Dh,Jv.add(Ju(Kv)),Kv.reset()},result:function(){var a=Jv/2;return Jv.reset(),a}},Mv=1/0,Nv=Mv,Ov=-Mv,Pv=Ov,Qv={point:Gi,lineStart:Dh,lineEnd:Dh,polygonStart:Dh,polygonEnd:Dh,result:function(){var a=[[Mv,Nv],[Ov,Pv]];return Ov=Pv=-(Nv=Mv=1/0),a}},Rv=0,Sv=0,Tv=0,Uv=0,Vv=0,Wv=0,Xv=0,Yv=0,Zv=0,$v={point:Hi,lineStart:Ii,lineEnd:Li,polygonStart:function(){$v.lineStart=Mi,$v.lineEnd=Ni},polygonEnd:function(){$v.point=Hi,$v.lineStart=Ii,$v.lineEnd=Li},result:function(){var a=Zv?[Xv/Zv,Yv/Zv]:Wv?[Uv/Wv,Vv/Wv]:Tv?[Rv/Tv,Sv/Tv]:[NaN,NaN];return Rv=Sv=Tv=Uv=Vv=Wv=Xv=Yv=Zv=0,a}};Qi.prototype={_radius:4.5,pointRadius:function(a){return this._radius=a,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(a,b){switch(this._point){case 0:this._context.moveTo(a,b),this._point=1;break;case 1:this._context.lineTo(a,b);break;default:this._context.moveTo(a+this._radius,b),this._context.arc(a,b,this._radius,0,Gu)}},result:Dh},Ri.prototype={_circle:Si(4.5),pointRadius:function(a){return this._circle=Si(a),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(a,b){switch(this._point){case 0:this._string.push("M",a,",",b),this._point=1;break;case 1:this._string.push("L",a,",",b);break;default:this._string.push("M",a,",",b,this._circle)}},result:function(){if(this._string.length){var a=this._string.join("");return this._string=[],a}}};var _v=function(a,b){function c(a){return a&&("function"==typeof f&&e.pointRadius(+f.apply(this,arguments)),Xu(a,d(e))),e.result()}var d,e,f=4.5;return c.area=function(a){return Xu(a,d(Lv)),Lv.result()},c.bounds=function(a){return Xu(a,d(Qv)),Qv.result()},c.centroid=function(a){return Xu(a,d($v)),$v.result()},c.projection=function(b){return arguments.length?(d=null==b?(a=null,Iv):(a=b).stream,c):a},c.context=function(a){return arguments.length?(e=null==a?(b=null,new Ri):new Qi(b=a),"function"!=typeof f&&e.pointRadius(f),c):b},c.pointRadius=function(a){return arguments.length?(f="function"==typeof a?a:(e.pointRadius(+a),+a),c):f},c.projection(a).context(b)},aw=Wt(),bw=function(a,b){var c=b[0],d=b[1],e=[Ru(c),-Mu(c),0],f=0,g=0;aw.reset();for(var h=0,i=a.length;i>h;++h)if(k=(j=a[h]).length)for(var j,k,l=j[k-1],m=l[0],n=l[1]/2+Fu,o=Ru(n),p=Mu(n),q=0;k>q;++q,m=s,o=u,p=v,l=r){var r=j[q],s=r[0],t=r[1]/2+Fu,u=Ru(t),v=Mu(t),w=s-m,x=w>=0?1:-1,y=x*w,z=y>Du,A=o*u;if(aw.add(Lu(A*x*Ru(y),p*v+A*Mu(y))),f+=z?w+x*Gu:w,z^m>=c^s>=c){var B=Oh(Mh(l),Mh(r));Rh(B);var C=Oh(e,B);Rh(C);var D=(z^w>=0?-1:1)*Bh(C[2]);(d>D||d===D&&(B[0]||B[1]))&&(g+=z^w>=0?1:-1)}}return(-Bu>f||Bu>f&&-Bu>aw)^1&g},cw=function(a,b,c,d){return function(e,f){function g(b,c){var d=e(b,c);a(b=d[0],c=d[1])&&f.point(b,c)}function h(a,b){var c=e(a,b);q.point(c[0],c[1])}function i(){v.point=h,q.lineStart()}function j(){v.point=g,q.lineEnd()}function k(a,b){p.push([a,b]);var c=e(a,b);t.point(c[0],c[1])}function l(){t.lineStart(),p=[]}function m(){k(p[0][0],p[0][1]),t.lineEnd();var a,b,c,d,e=t.clean(),g=s.result(),h=g.length;if(p.pop(),n.push(p),p=null,h)if(1&e){if(c=g[0],(b=c.length-1)>0){for(u||(f.polygonStart(),u=!0),f.lineStart(),a=0;b>a;++a)f.point((d=c[a])[0],d[1]);f.lineEnd()}}else h>1&&2&e&&g.push(g.pop().concat(g.shift())),o.push(g.filter(Ti))}var n,o,p,q=b(f),r=e.invert(d[0],d[1]),s=uv(),t=b(s),u=!1,v={point:g,lineStart:i,lineEnd:j,polygonStart:function(){v.point=k,v.lineStart=l,v.lineEnd=m,o=[],n=[]},polygonEnd:function(){v.point=g,v.lineStart=i,v.lineEnd=j,o=Yj(o);var a=bw(n,r);o.length?(u||(f.polygonStart(),u=!0),xv(o,Ui,a,c,f)):a&&(u||(f.polygonStart(),u=!0),f.lineStart(),c(null,null,1,f),f.lineEnd()),u&&(f.polygonEnd(),u=!1),o=n=null},sphere:function(){f.polygonStart(),f.lineStart(),c(null,null,1,f),f.lineEnd(),f.polygonEnd()}};return v}},dw=cw(function(){return!0},Vi,Xi,[-Du,-Eu]),ew=function(a,b){function c(c,d,e,f){pi(f,a,b,e,c,d)}function d(a,b){return Mu(a)*Mu(b)>h}function e(a){var b,c,e,h,k;return{lineStart:function(){h=e=!1,k=1},point:function(l,m){var n,o=[l,m],p=d(l,m),q=i?p?0:g(l,m):p?g(l+(0>l?Du:-Du),m):0;if(!b&&(h=e=p)&&a.lineStart(),p!==e&&(n=f(b,o),(wv(b,n)||wv(o,n))&&(o[0]+=Bu,o[1]+=Bu,p=d(o[0],o[1]))),p!==e)k=0,p?(a.lineStart(),n=f(o,b),a.point(n[0],n[1])):(n=f(b,o),a.point(n[0],n[1]),a.lineEnd()),b=n;else if(j&&b&&i^p){var r;q&c||!(r=f(o,b,!0))||(k=0,i?(a.lineStart(),a.point(r[0][0],r[0][1]),a.point(r[1][0],r[1][1]),a.lineEnd()):(a.point(r[1][0],r[1][1]),a.lineEnd(),a.lineStart(),a.point(r[0][0],r[0][1])))}!p||b&&wv(b,o)||a.point(o[0],o[1]),b=o,e=p,c=q},lineEnd:function(){e&&a.lineEnd(),b=null},clean:function(){return k|(h&&e)<<1}}}function f(a,b,c){var d=Mh(a),e=Mh(b),f=[1,0,0],g=Oh(d,e),i=Nh(g,g),j=g[0],k=i-j*j;if(!k)return!c&&a;var l=h*i/k,m=-h*j/k,n=Oh(f,g),o=Qh(f,l),p=Qh(g,m);Ph(o,p);var q=n,r=Nh(o,q),s=Nh(q,q),t=r*r-s*(Nh(o,o)-1);if(!(0>t)){var u=Tu(t),v=Qh(q,(-r-u)/s);if(Ph(v,o),v=Lh(v),!c)return v;var w,x=a[0],y=b[0],z=a[1],A=b[1];x>y&&(w=x,x=y,y=w);var B=y-x,C=Ju(B-Du)<Bu,D=C||Bu>B;if(!C&&z>A&&(w=z,z=A,A=w),D?C?z+A>0^v[1]<(Ju(v[0]-x)<Bu?z:A):z<=v[1]&&v[1]<=A:B>Du^(x<=v[0]&&v[0]<=y)){var E=Qh(q,(-r+u)/s);return Ph(E,o),[v,Lh(E)]}}}function g(b,c){var d=i?a:Du-a,e=0;return-d>b?e|=1:b>d&&(e|=2),-d>c?e|=4:c>d&&(e|=8),e}var h=Mu(a),i=h>0,j=Ju(h)>Bu;return cw(d,e,c,i?[0,-a]:[-Du,a-Du])},fw=function(a){return{stream:Yi(a)}};Zi.prototype={constructor:Zi,point:function(a,b){this.stream.point(a,b)},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()}};var gw=16,hw=Mu(30*Iu),iw=function(a,b){return+b?bj(a,b):aj(a)},jw=Yi({point:function(a,b){this.stream.point(a*Iu,b*Iu)}}),kw=function(){return ej(gj).scale(155.424).center([0,33.6442])},lw=function(){return kw().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},mw=function(){function a(a){var b=a[0],c=a[1];return h=null,e.point(b,c),h||(f.point(b,c),h)||(g.point(b,c),h)}function b(){return c=d=null,a}var c,d,e,f,g,h,i=lw(),j=kw().rotate([154,0]).center([-2,58.5]).parallels([55,65]),k=kw().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(a,b){h=[a,b]}};return a.invert=function(a){
  var b=i.scale(),c=i.translate(),d=(a[0]-c[0])/b,e=(a[1]-c[1])/b;return(e>=.12&&.234>e&&d>=-.425&&-.214>d?j:e>=.166&&.234>e&&d>=-.214&&-.115>d?k:i).invert(a)},a.stream=function(a){return c&&d===a?c:c=hj([i.stream(d=a),j.stream(a),k.stream(a)])},a.precision=function(a){return arguments.length?(i.precision(a),j.precision(a),k.precision(a),b()):i.precision()},a.scale=function(b){return arguments.length?(i.scale(b),j.scale(.35*b),k.scale(b),a.translate(i.translate())):i.scale()},a.translate=function(a){if(!arguments.length)return i.translate();var c=i.scale(),d=+a[0],h=+a[1];return e=i.translate(a).clipExtent([[d-.455*c,h-.238*c],[d+.455*c,h+.238*c]]).stream(l),f=j.translate([d-.307*c,h+.201*c]).clipExtent([[d-.425*c+Bu,h+.12*c+Bu],[d-.214*c-Bu,h+.234*c-Bu]]).stream(l),g=k.translate([d-.205*c,h+.212*c]).clipExtent([[d-.214*c+Bu,h+.166*c+Bu],[d-.115*c-Bu,h+.234*c-Bu]]).stream(l),b()},a.fitExtent=function(b,c){return $i(a,b,c)},a.fitSize=function(b,c){return _i(a,b,c)},a.scale(1070)},nw=ij(function(a){return Tu(2/(1+a))});nw.invert=jj(function(a){return 2*Bh(a/2)});var ow=function(){return cj(nw).scale(124.75).clipAngle(179.999)},pw=ij(function(a){return(a=Ah(a))&&a/Ru(a)});pw.invert=jj(function(a){return a});var qw=function(){return cj(pw).scale(79.4188).clipAngle(179.999)};kj.invert=function(a,b){return[a,2*Ku(Ou(b))-Eu]};var rw=function(){return lj(kj).scale(961/Gu)},sw=function(){return ej(nj).scale(109.5).parallels([30,30])};oj.invert=oj;var tw=function(){return cj(oj).scale(152.63)},uw=function(){return ej(pj).scale(131.154).center([0,13.9389])};qj.invert=jj(Ku);var vw=function(){return cj(qj).scale(144.049).clipAngle(60)},ww=function(){function a(){return e=f=null,g}var b,c,d,e,f,g,h=1,i=0,j=0,k=1,l=1,m=Iv,n=null,o=Iv;return g={stream:function(a){return e&&f===a?e:e=m(o(f=a))},clipExtent:function(e){return arguments.length?(o=null==e?(n=b=c=d=null,Iv):ti(n=+e[0][0],b=+e[0][1],c=+e[1][0],d=+e[1][1]),a()):null==n?null:[[n,b],[c,d]]},scale:function(b){return arguments.length?(m=rj((h=+b)*k,h*l,i,j),a()):h},translate:function(b){return arguments.length?(m=rj(h*k,h*l,i=+b[0],j=+b[1]),a()):[i,j]},reflectX:function(b){return arguments.length?(m=rj(h*(k=b?-1:1),h*l,i,j),a()):0>k},reflectY:function(b){return arguments.length?(m=rj(h*k,h*(l=b?-1:1),i,j),a()):0>l},fitExtent:function(a,b){return $i(g,a,b)},fitSize:function(a,b){return _i(g,a,b)}}};sj.invert=jj(Bh);var xw=function(){return cj(sj).scale(249.5).clipAngle(90+Bu)};tj.invert=jj(function(a){return 2*Ku(a)});var yw=function(){return cj(tj).scale(250).clipAngle(142)};uj.invert=function(a,b){return[-b,2*Ku(Ou(a))-Eu]};var zw=function(){var a=lj(uj),b=a.center,c=a.rotate;return a.center=function(a){return arguments.length?b([-a[1],a[0]]):(a=b(),[a[1],-a[0]])},a.rotate=function(a){return arguments.length?c([a[0],a[1],a.length>2?a[2]+90:90]):(a=c(),[a[0],a[1],a[2]-90])},c([0,0,90]).scale(159.155)};a.version=vj,a.bisect=zj,a.bisectRight=zj,a.bisectLeft=Aj,a.ascending=wj,a.bisector=xj,a.descending=Bj,a.deviation=Ej,a.extent=Fj,a.histogram=Rj,a.thresholdFreedmanDiaconis=Tj,a.thresholdScott=Uj,a.thresholdSturges=Qj,a.max=Vj,a.mean=Wj,a.median=Xj,a.merge=Yj,a.min=Zj,a.pairs=$j,a.permute=_j,a.quantile=Sj,a.range=Lj,a.scan=ak,a.shuffle=bk,a.sum=ck,a.ticks=Pj,a.tickStep=c,a.transpose=dk,a.variance=Dj,a.zip=ek,a.entries=kk,a.keys=ik,a.values=jk,a.map=f,a.set=l,a.nest=gk,a.randomUniform=lk,a.randomNormal=mk,a.randomLogNormal=nk,a.randomBates=pk,a.randomIrwinHall=ok,a.randomExponential=qk,a.easeLinear=m,a.easeQuad=p,a.easeQuadIn=n,a.easeQuadOut=o,a.easeQuadInOut=p,a.easeCubic=s,a.easeCubicIn=q,a.easeCubicOut=r,a.easeCubicInOut=s,a.easePoly=uk,a.easePolyIn=sk,a.easePolyOut=tk,a.easePolyInOut=uk,a.easeSin=v,a.easeSinIn=t,a.easeSinOut=u,a.easeSinInOut=v,a.easeExp=y,a.easeExpIn=w,a.easeExpOut=x,a.easeExpInOut=y,a.easeCircle=B,a.easeCircleIn=z,a.easeCircleOut=A,a.easeCircleInOut=B,a.easeBounce=D,a.easeBounceIn=C,a.easeBounceOut=D,a.easeBounceInOut=E,a.easeBack=Kk,a.easeBackIn=Ik,a.easeBackOut=Jk,a.easeBackInOut=Kk,a.easeElastic=Pk,a.easeElasticIn=Ok,a.easeElasticOut=Pk,a.easeElasticInOut=Qk,a.polygonArea=Rk,a.polygonCentroid=Sk,a.polygonHull=Uk,a.polygonContains=Vk,a.polygonLength=Wk,a.path=I,a.quadtree=O,a.queue=X,a.arc=ul,a.area=xl,a.line=wl,a.pie=Al,a.radialArea=Dl,a.radialLine=Cl,a.symbol=Xl,a.symbols=Wl,a.symbolCircle=El,a.symbolCross=Fl,a.symbolDiamond=Il,a.symbolSquare=Ol,a.symbolStar=Nl,a.symbolTriangle=Ql,a.symbolWye=Vl,a.curveBasisClosed=$l,a.curveBasisOpen=_l,a.curveBasis=Zl,a.curveBundle=am,a.curveCardinalClosed=cm,a.curveCardinalOpen=dm,a.curveCardinal=bm,a.curveCatmullRomClosed=fm,a.curveCatmullRomOpen=gm,a.curveCatmullRom=em,a.curveLinearClosed=hm,a.curveLinear=vl,a.curveMonotoneX=Fa,a.curveMonotoneY=Ga,a.curveNatural=im,a.curveStep=jm,a.curveStepAfter=La,a.curveStepBefore=Ka,a.stack=nm,a.stackOffsetExpand=om,a.stackOffsetNone=lm,a.stackOffsetSilhouette=pm,a.stackOffsetWiggle=qm,a.stackOrderAscending=rm,a.stackOrderDescending=sm,a.stackOrderInsideOut=tm,a.stackOrderNone=mm,a.stackOrderReverse=um,a.color=Qa,a.rgb=Ua,a.hsl=Ya,a.lab=ab,a.hcl=hb,a.cubehelix=kb,a.interpolate=sn,a.interpolateArray=ln,a.interpolateDate=mn,a.interpolateNumber=nn,a.interpolateObject=on,a.interpolateRound=tn,a.interpolateString=rn,a.interpolateTransformCss=xn,a.interpolateTransformSvg=yn,a.interpolateZoom=Dn,a.interpolateRgb=hn,a.interpolateRgbBasis=jn,a.interpolateRgbBasisClosed=kn,a.interpolateHsl=En,a.interpolateHslLong=Fn,a.interpolateLab=Cb,a.interpolateHcl=Gn,a.interpolateHclLong=Hn,a.interpolateCubehelix=In,a.interpolateCubehelixLong=Jn,a.interpolateBasis=en,a.interpolateBasisClosed=fn,a.quantize=Kn,a.dispatch=Fb,a.dsvFormat=On,a.csvParse=Qn,a.csvParseRows=Rn,a.csvFormat=Sn,a.csvFormatRows=Tn,a.tsvParse=Vn,a.tsvParseRows=Wn,a.tsvFormat=Xn,a.tsvFormatRows=Yn,a.request=Zn,a.html=_n,a.json=ao,a.text=bo,a.xml=co,a.csv=fo,a.tsv=go,a.now=Qb,a.timer=Tb,a.timerFlush=Ub,a.timeout=qo,a.interval=ro,a.timeInterval=Zb,a.timeMillisecond=uo,a.timeMilliseconds=vo,a.timeSecond=Bo,a.timeSeconds=Co,a.timeMinute=Do,a.timeMinutes=Eo,a.timeHour=Fo,a.timeHours=Go,a.timeDay=Ho,a.timeDays=Io,a.timeWeek=Jo,a.timeWeeks=Qo,a.timeSunday=Jo,a.timeSundays=Qo,a.timeMonday=Ko,a.timeMondays=Ro,a.timeTuesday=Lo,a.timeTuesdays=So,a.timeWednesday=Mo,a.timeWednesdays=To,a.timeThursday=No,a.timeThursdays=Uo,a.timeFriday=Oo,a.timeFridays=Vo,a.timeSaturday=Po,a.timeSaturdays=Wo,a.timeMonth=Xo,a.timeMonths=Yo,a.timeYear=Zo,a.timeYears=$o,a.utcMillisecond=uo,a.utcMilliseconds=vo,a.utcSecond=Bo,a.utcSeconds=Co,a.utcMinute=_o,a.utcMinutes=ap,a.utcHour=bp,a.utcHours=cp,a.utcDay=dp,a.utcDays=ep,a.utcWeek=fp,a.utcWeeks=mp,a.utcSunday=fp,a.utcSundays=mp,a.utcMonday=gp,a.utcMondays=np,a.utcTuesday=hp,a.utcTuesdays=op,a.utcWednesday=ip,a.utcWednesdays=pp,a.utcThursday=jp,a.utcThursdays=qp,a.utcFriday=kp,a.utcFridays=rp,a.utcSaturday=lp,a.utcSaturdays=sp,a.utcMonth=tp,a.utcMonths=up,a.utcYear=vp,a.utcYears=xp,a.formatLocale=Jp,a.formatDefaultLocale=cc,a.formatSpecifier=Gp,a.precisionFixed=Lp,a.precisionPrefix=Mp,a.precisionRound=Np,a.isoFormat=Tp,a.isoParse=Up,a.timeFormatLocale=gc,a.timeFormatDefaultLocale=ad,a.scaleBand=ed,a.scalePoint=gd,a.scaleIdentity=qd,a.scaleLinear=pd,a.scaleLog=xd,a.scaleOrdinal=dd,a.scaleImplicit=Yp,a.scalePow=zd,a.scaleSqrt=Ad,a.scaleQuantile=Bd,a.scaleQuantize=Cd,a.scaleThreshold=Dd,a.scaleTime=jq,a.scaleUtc=kq,a.schemeCategory10=mq,a.schemeCategory20b=nq,a.schemeCategory20c=oq,a.schemeCategory20=pq,a.scaleSequential=Id,a.interpolateCubehelixDefault=qq,a.interpolateRainbow=uq,a.interpolateWarm=rq,a.interpolateCool=sq,a.interpolateViridis=vq,a.interpolateMagma=wq,a.interpolateInferno=xq,a.interpolatePlasma=yq,a.creator=Cq,a.customEvent=Sd,a.local=Ld,a.matcher=Hq,a.mouse=Nq,a.namespace=Bq,a.namespaces=Aq,a.select=vr,a.selectAll=wr,a.selection=Fe,a.selector=Oq,a.selectorAll=Qq,a.touch=xr,a.touches=yr,a.window=hr,a.active=hs,a.interrupt=Jr,a.transition=kf,a.axisTop=sf,a.axisRight=tf,a.axisBottom=uf,a.axisLeft=vf,a.cluster=ps,a.hierarchy=Ef,a.pack=Es,a.packSiblings=Cs,a.packEnclose=Bs,a.partition=Hs,a.stratify=Ls,a.tree=Ms,a.treemap=Qs,a.treemapBinary=Rs,a.treemapDice=Gs,a.treemapSlice=Ns,a.treemapSliceDice=Ss,a.treemapSquarify=Ps,a.treemapResquarify=Ts,a.forceCenter=Us,a.forceCollide=Xs,a.forceLink=Ys,a.forceManyBody=at,a.forceSimulation=_s,a.forceX=bt,a.forceY=ct,a.drag=gt,a.dragDisable=et,a.dragEnable=sg,a.voronoi=rt,a.zoom=vt,a.zoomIdentity=tt,a.zoomTransform=dh,a.brush=Lt,a.brushX=ph,a.brushY=qh,a.brushSelection=oh,a.chord=St,a.ribbon=Vt,a.geoAlbers=lw,a.geoAlbersUsa=mw,a.geoArea=_u,a.geoAzimuthalEqualArea=ow,a.geoAzimuthalEqualAreaRaw=nw,a.geoAzimuthalEquidistant=qw,a.geoAzimuthalEquidistantRaw=pw,a.geoBounds=cv,a.geoCentroid=ev,a.geoCircle=tv,a.geoClipExtent=Av,a.geoConicConformal=sw,a.geoConicConformalRaw=nj,a.geoConicEqualArea=kw,a.geoConicEqualAreaRaw=gj,a.geoConicEquidistant=uw,a.geoConicEquidistantRaw=pj,a.geoDistance=Gv,a.geoEquirectangular=tw,a.geoEquirectangularRaw=oj,a.geoGnomonic=vw,a.geoGnomonicRaw=qj,a.geoGraticule=Ai,a.geoGraticule10=Bi,a.geoIdentity=ww,a.geoInterpolate=Hv,a.geoLength=Dv,a.geoMercator=rw,a.geoMercatorRaw=kj,a.geoOrthographic=xw,a.geoOrthographicRaw=sj,a.geoPath=_v,a.geoProjection=cj,a.geoProjectionMutator=dj,a.geoRotation=sv,a.geoStereographic=yw,a.geoStereographicRaw=tj,a.geoStream=Xu,a.geoTransform=fw,a.geoTransverseMercator=zw,a.geoTransverseMercatorRaw=uj,Object.defineProperty(a,"__esModule",{value:!0})})}(a("buffer").Buffer,a("process")),c.exports}),System.registerDynamic("npm:d3@4.4.1.js",["npm:d3@4.4.1/build/d3.js"],!0,function(a,b,c){this||self;return c.exports=a("npm:d3@4.4.1/build/d3.js"),c.exports}),function(){var a=System.amdDefine;!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(b,c){"use strict";function d(a,b){b=b||ca;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}function e(a){var b=!!a&&"length"in a&&a.length,c=pa.type(a);return"function"===c||pa.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function f(a,b,c){return pa.isFunction(b)?pa.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?pa.grep(a,function(a){return a===b!==c}):"string"!=typeof b?pa.grep(a,function(a){return ha.call(b,a)>-1!==c}):za.test(b)?pa.filter(b,a,c):(b=pa.filter(b,a),pa.grep(a,function(a){return ha.call(b,a)>-1!==c&&1===a.nodeType}))}function g(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function h(a){var b={};return pa.each(a.match(Fa)||[],function(a,c){b[c]=!0}),b}function i(a){return a}function j(a){throw a}function k(a,b,c){var d;try{a&&pa.isFunction(d=a.promise)?d.call(a).done(b).fail(c):a&&pa.isFunction(d=a.then)?d.call(a,b,c):b.call(void 0,a)}catch(a){c.call(void 0,a)}}function l(){ca.removeEventListener("DOMContentLoaded",l),b.removeEventListener("load",l),pa.ready()}function m(){this.expando=pa.expando+m.uid++}function n(a){return"true"===a?!0:"false"===a?!1:"null"===a?null:a===+a+""?+a:Ma.test(a)?JSON.parse(a):a}function o(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Na,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=n(c)}catch(e){}La.set(a,b,c)}else c=void 0;return c}function p(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return pa.css(a,b,"")},i=h(),j=c&&c[3]||(pa.cssNumber[b]?"":"px"),k=(pa.cssNumber[b]||"px"!==j&&+i)&&Pa.exec(pa.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,pa.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function q(a){var b,c=a.ownerDocument,d=a.nodeName,e=Ta[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=pa.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),Ta[d]=e,e)}function r(a,b){for(var c,d,e=[],f=0,g=a.length;g>f;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=Ka.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&Ra(d)&&(e[f]=q(d))):"none"!==c&&(e[f]="none",Ka.set(d,"display",c)));for(f=0;g>f;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}function s(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&pa.nodeName(a,b)?pa.merge([a],c):c}function t(a,b){for(var c=0,d=a.length;d>c;c++)Ka.set(a[c],"globalEval",!b||Ka.get(b[c],"globalEval"))}function u(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;o>n;n++)if(f=a[n],f||0===f)if("object"===pa.type(f))pa.merge(m,f.nodeType?[f]:f);else if(Ya.test(f)){for(g=g||l.appendChild(b.createElement("div")),h=(Va.exec(f)||["",""])[1].toLowerCase(),i=Xa[h]||Xa._default,g.innerHTML=i[1]+pa.htmlPrefilter(f)+i[2],k=i[0];k--;)g=g.lastChild;pa.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));for(l.textContent="",n=0;f=m[n++];)if(d&&pa.inArray(f,d)>-1)e&&e.push(f);else if(j=pa.contains(f.ownerDocument,f),g=s(l.appendChild(f),"script"),j&&t(g),c)for(k=0;f=g[k++];)Wa.test(f.type||"")&&c.push(f);return l}function v(){return!0}function w(){return!1}function x(){try{return ca.activeElement}catch(a){}}function y(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)y(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=w;else if(!e)return a;return 1===f&&(g=e,e=function(a){return pa().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=pa.guid++)),a.each(function(){pa.event.add(this,b,e,d,c)})}function z(a,b){return pa.nodeName(a,"table")&&pa.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a:a}function A(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function B(a){var b=eb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function C(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(Ka.hasData(a)&&(f=Ka.access(a),g=Ka.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)pa.event.add(b,e,j[e][c])}La.hasData(a)&&(h=La.access(a),i=pa.extend({},h),La.set(b,i))}}function D(a,b){var c=b.nodeName.toLowerCase();"input"===c&&Ua.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function E(a,b,c,e){b=fa.apply([],b);var f,g,h,i,j,k,l=0,m=a.length,n=m-1,o=b[0],p=pa.isFunction(o);if(p||m>1&&"string"==typeof o&&!na.checkClone&&db.test(o))return a.each(function(d){var f=a.eq(d);p&&(b[0]=o.call(this,d,f.html())),E(f,b,c,e)});if(m&&(f=u(b,a[0].ownerDocument,!1,a,e),g=f.firstChild,1===f.childNodes.length&&(f=g),g||e)){for(h=pa.map(s(f,"script"),A),i=h.length;m>l;l++)j=f,l!==n&&(j=pa.clone(j,!0,!0),i&&pa.merge(h,s(j,"script"))),c.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,pa.map(h,B),l=0;i>l;l++)j=h[l],Wa.test(j.type||"")&&!Ka.access(j,"globalEval")&&pa.contains(k,j)&&(j.src?pa._evalUrl&&pa._evalUrl(j.src):d(j.textContent.replace(fb,""),k))}return a}function F(a,b,c){for(var d,e=b?pa.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||pa.cleanData(s(d)),d.parentNode&&(c&&pa.contains(d.ownerDocument,d)&&t(s(d,"script")),d.parentNode.removeChild(d));return a}function G(a,b,c){var d,e,f,g,h=a.style;return c=c||ib(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||pa.contains(a.ownerDocument,a)||(g=pa.style(a,b)),!na.pixelMarginRight()&&hb.test(g)&&gb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function H(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function I(a){if(a in nb)return a;for(var b=a[0].toUpperCase()+a.slice(1),c=mb.length;c--;)if(a=mb[c]+b,a in nb)return a}function J(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function K(a,b,c,d,e){var f,g=0;for(f=c===(d?"border":"content")?4:"width"===b?1:0;4>f;f+=2)"margin"===c&&(g+=pa.css(a,c+Qa[f],!0,e)),d?("content"===c&&(g-=pa.css(a,"padding"+Qa[f],!0,e)),"margin"!==c&&(g-=pa.css(a,"border"+Qa[f]+"Width",!0,e))):(g+=pa.css(a,"padding"+Qa[f],!0,e),"padding"!==c&&(g+=pa.css(a,"border"+Qa[f]+"Width",!0,e)));return g}function L(a,b,c){var d,e=!0,f=ib(a),g="border-box"===pa.css(a,"boxSizing",!1,f);if(a.getClientRects().length&&(d=a.getBoundingClientRect()[b]),0>=d||null==d){if(d=G(a,b,f),(0>d||null==d)&&(d=a.style[b]),hb.test(d))return d;e=g&&(na.boxSizingReliable()||d===a.style[b]),d=parseFloat(d)||0}return d+K(a,b,c||(g?"border":"content"),e,f)+"px"}function M(a,b,c,d,e){return new M.prototype.init(a,b,c,d,e)}function N(){pb&&(b.requestAnimationFrame(N),pa.fx.tick())}function O(){return b.setTimeout(function(){ob=void 0}),ob=pa.now()}function P(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=Qa[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Q(a,b,c){for(var d,e=(T.tweeners[b]||[]).concat(T.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function R(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&Ra(a),q=Ka.get(a,"fxshow");c.queue||(g=pa._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,pa.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],qb.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}n[d]=q&&q[d]||pa.style(a,d)}if(i=!pa.isEmptyObject(b),i||!pa.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=q&&q.display,null==j&&(j=Ka.get(a,"display")),k=pa.css(a,"display"),"none"===k&&(j?k=j:(r([a],!0),j=a.style.display||j,k=pa.css(a,"display"),r([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===pa.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(q?"hidden"in q&&(p=q.hidden):q=Ka.access(a,"fxshow",{display:j}),f&&(q.hidden=!p),p&&r([a],!0),m.done(function(){p||r([a]),Ka.remove(a,"fxshow");for(d in n)pa.style(a,d,n[d])})),i=Q(p?q[d]:0,d,m),d in q||(q[d]=i.start,p&&(i.end=i.start,i.start=0))}}function S(a,b){var c,d,e,f,g;for(c in a)if(d=pa.camelCase(c),e=b[d],f=a[c],pa.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=pa.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function T(a,b,c){var d,e,f=0,g=T.prefilters.length,h=pa.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=ob||O(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:pa.extend({},b),opts:pa.extend(!0,{specialEasing:{},easing:pa.easing._default},c),originalProperties:b,originalOptions:c,startTime:ob||O(),duration:c.duration,tweens:[],createTween:function(b,c){var d=pa.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(S(k,j.opts.specialEasing);g>f;f++)if(d=T.prefilters[f].call(j,a,k,j.opts))return pa.isFunction(d.stop)&&(pa._queueHooks(j.elem,j.opts.queue).stop=pa.proxy(d.stop,d)),d;return pa.map(k,Q,j),pa.isFunction(j.opts.start)&&j.opts.start.call(a,j),pa.fx.timer(pa.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function U(a){var b=a.match(Fa)||[];return b.join(" ")}function V(a){return a.getAttribute&&a.getAttribute("class")||""}function W(a,b,c,d){var e;if(pa.isArray(b))pa.each(b,function(b,e){c||Bb.test(a)?d(a,e):W(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==pa.type(b))d(a,b);else for(e in b)W(a+"["+e+"]",b[e],c,d)}function X(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(Fa)||[];if(pa.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Y(a,b,c,d){function e(h){var i;return f[h]=!0,pa.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===Nb;return e(b.dataTypes[0])||!f["*"]&&e("*")}function Z(a,b){var c,d,e=pa.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&pa.extend(!0,a,d),a}function $(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function _(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function aa(a){return pa.isWindow(a)?a:9===a.nodeType&&a.defaultView}var ba=[],ca=b.document,da=Object.getPrototypeOf,ea=ba.slice,fa=ba.concat,ga=ba.push,ha=ba.indexOf,ia={},ja=ia.toString,ka=ia.hasOwnProperty,la=ka.toString,ma=la.call(Object),na={},oa="3.1.1",pa=function(a,b){return new pa.fn.init(a,b)},qa=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ra=/^-ms-/,sa=/-([a-z])/g,ta=function(a,b){return b.toUpperCase()};pa.fn=pa.prototype={jquery:oa,constructor:pa,length:0,toArray:function(){return ea.call(this)},get:function(a){return null==a?ea.call(this):0>a?this[a+this.length]:this[a]},pushStack:function(a){var b=pa.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return pa.each(this,a)},map:function(a){return this.pushStack(pa.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(ea.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:ga,sort:ba.sort,splice:ba.splice},pa.extend=pa.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||pa.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(pa.isPlainObject(d)||(e=pa.isArray(d)))?(e?(e=!1,f=c&&pa.isArray(c)?c:[]):f=c&&pa.isPlainObject(c)?c:{},g[b]=pa.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},pa.extend({expando:"jQuery"+(oa+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===pa.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=pa.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return a&&"[object Object]"===ja.call(a)?(b=da(a))?(c=ka.call(b,"constructor")&&b.constructor,"function"==typeof c&&la.call(c)===ma):!0:!1},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?ia[ja.call(a)]||"object":typeof a},globalEval:function(a){d(a)},camelCase:function(a){return a.replace(ra,"ms-").replace(sa,ta)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(e(a))for(c=a.length;c>d&&b.call(a[d],d,a[d])!==!1;d++);else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(qa,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(e(Object(a))?pa.merge(c,"string"==typeof a?[a]:a):ga.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:ha.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f,g=0,h=[];if(e(a))for(d=a.length;d>g;g++)f=b(a[g],g,c),null!=f&&h.push(f);else for(g in a)f=b(a[g],g,c),null!=f&&h.push(f);return fa.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(c=a[b],b=a,a=c),pa.isFunction(a)?(d=ea.call(arguments,2),e=function(){return a.apply(b||this,d.concat(ea.call(arguments)))},e.guid=a.guid=a.guid||pa.guid++,e):void 0},now:Date.now,support:na}),"function"==typeof Symbol&&(pa.fn[Symbol.iterator]=ba[Symbol.iterator]),pa.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){ia["[object "+b+"]"]=b.toLowerCase()});var ua=function(a){function b(a,b,c,d){var e,f,g,h,i,j,k,m=b&&b.ownerDocument,o=b?b.nodeType:9;if(c=c||[],"string"!=typeof a||!a||1!==o&&9!==o&&11!==o)return c;if(!d&&((b?b.ownerDocument||b:P)!==H&&G(b),b=b||H,J)){if(11!==o&&(i=ra.exec(a)))if(e=i[1]){if(9===o){if(!(g=b.getElementById(e)))return c;if(g.id===e)return c.push(g),c}else if(m&&(g=m.getElementById(e))&&N(b,g)&&g.id===e)return c.push(g),c}else{if(i[2])return $.apply(c,b.getElementsByTagName(a)),c;if((e=i[3])&&w.getElementsByClassName&&b.getElementsByClassName)return $.apply(c,b.getElementsByClassName(e)),c}if(w.qsa&&!U[a+" "]&&(!K||!K.test(a))){if(1!==o)m=b,k=a;else if("object"!==b.nodeName.toLowerCase()){for((h=b.getAttribute("id"))?h=h.replace(va,wa):b.setAttribute("id",h=O),j=A(a),f=j.length;f--;)j[f]="#"+h+" "+n(j[f]);k=j.join(","),m=sa.test(a)&&l(b.parentNode)||b}if(k)try{return $.apply(c,m.querySelectorAll(k)),c}catch(p){}finally{h===O&&b.removeAttribute("id")}}}return C(a.replace(ha,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>x.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[O]=!0,a}function e(a){var b=H.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=c.length;d--;)x.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ya(b)===a:b.disabled===a:"label"in b?b.disabled===a:!1}}function k(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function l(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}function m(){}function n(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function o(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=R++;return b.first?function(b,c,e){for(;b=b[d];)if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[Q,h];if(i){for(;b=b[d];)if((1===b.nodeType||g)&&a(b,c,i))return!0}else for(;b=b[d];)if(1===b.nodeType||g)if(l=b[O]||(b[O]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===Q&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function p(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function q(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function r(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function s(a,b,c,e,f,g){return e&&!e[O]&&(e=s(e)),f&&!f[O]&&(f=s(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=d||q(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?p:r(p,m,a,h,i),t=c?f||(d?a:o||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=r(t,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[n[k]]=!(s[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?aa(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=r(t===g?t.splice(o,t.length):t),f?f(null,g,t,i):$.apply(g,t)})}function t(a){for(var b,c,d,e=a.length,f=x.relative[a[0].type],g=f||x.relative[" "],h=f?1:0,i=o(function(a){return a===b},g,!0),j=o(function(a){return aa(b,a)>-1},g,!0),k=[function(a,c,d){var e=!f&&(d||c!==D)||((b=c).nodeType?i(a,c,d):j(a,c,d));return b=null,e}];e>h;h++)if(c=x.relative[a[h].type])k=[o(p(k),c)];else{if(c=x.filter[a[h].type].apply(null,a[h].matches),c[O]){for(d=++h;e>d&&!x.relative[a[d].type];d++);return s(h>1&&p(k),h>1&&n(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ha,"$1"),c,d>h&&t(a.slice(h,d)),e>d&&t(a=a.slice(d)),e>d&&n(a))}k.push(c)}return p(k)}function u(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],q=[],s=D,t=d||f&&x.find.TAG("*",j),u=Q+=null==s?1:Math.random()||.1,v=t.length;for(j&&(D=g===H||g||j);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0,g||k.ownerDocument===H||(G(k),h=!J);m=a[l++];)if(m(k,g||H,h)){i.push(k);break}j&&(Q=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,q,g,h);if(d){if(n>0)for(;o--;)p[o]||q[o]||(q[o]=Y.call(i));q=r(q)}$.apply(i,q),j&&!d&&q.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(Q=u,D=s),p};return e?d(g):g}var v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O="sizzle"+1*new Date,P=a.document,Q=0,R=0,S=c(),T=c(),U=c(),V=function(a,b){return a===b&&(F=!0),0},W={}.hasOwnProperty,X=[],Y=X.pop,Z=X.push,$=X.push,_=X.slice,aa=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},ba="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ca="[\\x20\\t\\r\\n\\f]",da="(?:\\\\.|[\\w-]|[^\x00-\\xa0])+",ea="\\["+ca+"*("+da+")(?:"+ca+"*([*^$|!~]?=)"+ca+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+da+"))|)"+ca+"*\\]",fa=":("+da+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ea+")*)|.*)\\)|)",ga=new RegExp(ca+"+","g"),ha=new RegExp("^"+ca+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ca+"+$","g"),ia=new RegExp("^"+ca+"*,"+ca+"*"),ja=new RegExp("^"+ca+"*([>+~]|"+ca+")"+ca+"*"),ka=new RegExp("="+ca+"*([^\\]'\"]*?)"+ca+"*\\]","g"),la=new RegExp(fa),ma=new RegExp("^"+da+"$"),na={ID:new RegExp("^#("+da+")"),CLASS:new RegExp("^\\.("+da+")"),TAG:new RegExp("^("+da+"|[*])"),ATTR:new RegExp("^"+ea),PSEUDO:new RegExp("^"+fa),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ca+"*(even|odd|(([+-]|)(\\d*)n|)"+ca+"*(?:([+-]|)"+ca+"*(\\d+)|))"+ca+"*\\)|)","i"),bool:new RegExp("^(?:"+ba+")$","i"),needsContext:new RegExp("^"+ca+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ca+"*((?:-\\d)?\\d*)"+ca+"*\\)|)(?=[^-]|$)","i")},oa=/^(?:input|select|textarea|button)$/i,pa=/^h\d$/i,qa=/^[^{]+\{\s*\[native \w/,ra=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sa=/[+~]/,ta=new RegExp("\\\\([\\da-f]{1,6}"+ca+"?|("+ca+")|.)","ig"),ua=function(a,b,c){
  var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},va=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,wa=function(a,b){return b?"\x00"===a?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},xa=function(){G()},ya=o(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{$.apply(X=_.call(P.childNodes),P.childNodes),X[P.childNodes.length].nodeType}catch(za){$={apply:X.length?function(a,b){Z.apply(a,_.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}w=b.support={},z=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},G=b.setDocument=function(a){var b,c,d=a?a.ownerDocument||a:P;return d!==H&&9===d.nodeType&&d.documentElement?(H=d,I=H.documentElement,J=!z(H),P!==H&&(c=H.defaultView)&&c.top!==c&&(c.addEventListener?c.addEventListener("unload",xa,!1):c.attachEvent&&c.attachEvent("onunload",xa)),w.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),w.getElementsByTagName=e(function(a){return a.appendChild(H.createComment("")),!a.getElementsByTagName("*").length}),w.getElementsByClassName=qa.test(H.getElementsByClassName),w.getById=e(function(a){return I.appendChild(a).id=O,!H.getElementsByName||!H.getElementsByName(O).length}),w.getById?(x.filter.ID=function(a){var b=a.replace(ta,ua);return function(a){return a.getAttribute("id")===b}},x.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&J){var c=b.getElementById(a);return c?[c]:[]}}):(x.filter.ID=function(a){var b=a.replace(ta,ua);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},x.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&J){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];for(e=b.getElementsByName(a),d=0;f=e[d++];)if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),x.find.TAG=w.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):w.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},x.find.CLASS=w.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&J?b.getElementsByClassName(a):void 0},L=[],K=[],(w.qsa=qa.test(H.querySelectorAll))&&(e(function(a){I.appendChild(a).innerHTML="<a id='"+O+"'></a><select id='"+O+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&K.push("[*^$]="+ca+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||K.push("\\["+ca+"*(?:value|"+ba+")"),a.querySelectorAll("[id~="+O+"-]").length||K.push("~="),a.querySelectorAll(":checked").length||K.push(":checked"),a.querySelectorAll("a#"+O+"+*").length||K.push(".#.+[+~]")}),e(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=H.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&K.push("name"+ca+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&K.push(":enabled",":disabled"),I.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&K.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),K.push(",.*:")})),(w.matchesSelector=qa.test(M=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&e(function(a){w.disconnectedMatch=M.call(a,"*"),M.call(a,"[s!='']:x"),L.push("!=",fa)}),K=K.length&&new RegExp(K.join("|")),L=L.length&&new RegExp(L.join("|")),b=qa.test(I.compareDocumentPosition),N=b||qa.test(I.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},V=b?function(a,b){if(a===b)return F=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;return c?c:(c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&c||!w.sortDetached&&b.compareDocumentPosition(a)===c?a===H||a.ownerDocument===P&&N(P,a)?-1:b===H||b.ownerDocument===P&&N(P,b)?1:E?aa(E,a)-aa(E,b):0:4&c?-1:1)}:function(a,b){if(a===b)return F=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===H?-1:b===H?1:e?-1:f?1:E?aa(E,a)-aa(E,b):0;if(e===f)return g(a,b);for(c=a;c=c.parentNode;)h.unshift(c);for(c=b;c=c.parentNode;)i.unshift(c);for(;h[d]===i[d];)d++;return d?g(h[d],i[d]):h[d]===P?-1:i[d]===P?1:0},H):H},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==H&&G(a),c=c.replace(ka,"='$1']"),w.matchesSelector&&J&&!U[c+" "]&&(!L||!L.test(c))&&(!K||!K.test(c)))try{var d=M.call(a,c);if(d||w.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return b(c,H,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==H&&G(a),N(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==H&&G(a);var c=x.attrHandle[b.toLowerCase()],d=c&&W.call(x.attrHandle,b.toLowerCase())?c(a,b,!J):void 0;return void 0!==d?d:w.attributes||!J?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.escape=function(a){return(a+"").replace(va,wa)},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(F=!w.detectDuplicates,E=!w.sortStable&&a.slice(0),a.sort(V),F){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return E=null,a},y=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=y(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=y(b);return c},x=b.selectors={cacheLength:50,createPseudo:d,match:na,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ta,ua),a[3]=(a[3]||a[4]||a[5]||"").replace(ta,ua),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return na.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&la.test(c)&&(b=A(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ta,ua).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=S[a+" "];return b||(b=new RegExp("(^|"+ca+")"+a+"("+ca+"|$)"))&&S(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:c?(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f.replace(ga," ")+" ").indexOf(d)>-1:"|="===c?f===d||f.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){for(;p;){for(m=b;m=m[p];)if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(m=q,l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===Q&&j[1],t=n&&j[2],m=n&&q.childNodes[n];m=++n&&m&&m[p]||(t=n=0)||o.pop();)if(1===m.nodeType&&++t&&m===b){k[a]=[Q,n,t];break}}else if(s&&(m=b,l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===Q&&j[1],t=n),t===!1)for(;(m=++n&&m&&m[p]||(t=n=0)||o.pop())&&((h?m.nodeName.toLowerCase()!==r:1!==m.nodeType)||!++t||(s&&(l=m[O]||(m[O]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[Q,t]),m!==b)););return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,c){var e,f=x.pseudos[a]||x.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[O]?f(c):f.length>1?(e=[a,a,"",c],x.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=aa(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=B(a.replace(ha,"$1"));return e[O]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),b[0]=null,!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return a=a.replace(ta,ua),function(b){return(b.textContent||b.innerText||y(b)).indexOf(a)>-1}}),lang:d(function(a){return ma.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(ta,ua).toLowerCase(),function(b){var c;do if(c=J?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===I},focus:function(a){return a===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:j(!1),disabled:j(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!x.pseudos.empty(a)},header:function(a){return pa.test(a.nodeName)},input:function(a){return oa.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:k(function(){return[0]}),last:k(function(a,b){return[b-1]}),eq:k(function(a,b,c){return[0>c?c+b:c]}),even:k(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:k(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:k(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:k(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},x.pseudos.nth=x.pseudos.eq;for(v in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[v]=h(v);for(v in{submit:!0,reset:!0})x.pseudos[v]=i(v);return m.prototype=x.filters=x.pseudos,x.setFilters=new m,A=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=T[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=x.preFilter;h;){d&&!(e=ia.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ja.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(ha," ")}),h=h.slice(d.length));for(g in x.filter)!(e=na[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):T(a,i).slice(0)},B=b.compile=function(a,b){var c,d=[],e=[],f=U[a+" "];if(!f){for(b||(b=A(a)),c=b.length;c--;)f=t(b[c]),f[O]?d.push(f):e.push(f);f=U(a,u(e,d)),f.selector=a}return f},C=b.select=function(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,k=!d&&A(a=j.selector||a);if(c=c||[],1===k.length){if(f=k[0]=k[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&9===b.nodeType&&J&&x.relative[f[1].type]){if(b=(x.find.ID(g.matches[0].replace(ta,ua),b)||[])[0],!b)return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=na.needsContext.test(a)?0:f.length;e--&&(g=f[e],!x.relative[h=g.type]);)if((i=x.find[h])&&(d=i(g.matches[0].replace(ta,ua),sa.test(f[0].type)&&l(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&n(f),!a)return $.apply(c,d),c;break}}return(j||B(a,k))(d,b,!J,c,!b||sa.test(a)&&l(b.parentNode)||b),c},w.sortStable=O.split("").sort(V).join("")===O,w.detectDuplicates=!!F,G(),w.sortDetached=e(function(a){return 1&a.compareDocumentPosition(H.createElement("fieldset"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),w.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(ba,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(b);pa.find=ua,pa.expr=ua.selectors,pa.expr[":"]=pa.expr.pseudos,pa.uniqueSort=pa.unique=ua.uniqueSort,pa.text=ua.getText,pa.isXMLDoc=ua.isXML,pa.contains=ua.contains,pa.escapeSelector=ua.escape;var va=function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&pa(a).is(c))break;d.push(a)}return d},wa=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},xa=pa.expr.match.needsContext,ya=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,za=/^.[^:#\[\.,]*$/;pa.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?pa.find.matchesSelector(d,a)?[d]:[]:pa.find.matches(a,pa.grep(b,function(a){return 1===a.nodeType}))},pa.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(pa(a).filter(function(){for(b=0;d>b;b++)if(pa.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;d>b;b++)pa.find(a,e[b],c);return d>1?pa.uniqueSort(c):c},filter:function(a){return this.pushStack(f(this,a||[],!1))},not:function(a){return this.pushStack(f(this,a||[],!0))},is:function(a){return!!f(this,"string"==typeof a&&xa.test(a)?pa(a):a||[],!1).length}});var Aa,Ba=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ca=pa.fn.init=function(a,b,c){var d,e;if(!a)return this;if(c=c||Aa,"string"==typeof a){if(d="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:Ba.exec(a),!d||!d[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(d[1]){if(b=b instanceof pa?b[0]:b,pa.merge(this,pa.parseHTML(d[1],b&&b.nodeType?b.ownerDocument||b:ca,!0)),ya.test(d[1])&&pa.isPlainObject(b))for(d in b)pa.isFunction(this[d])?this[d](b[d]):this.attr(d,b[d]);return this}return e=ca.getElementById(d[2]),e&&(this[0]=e,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):pa.isFunction(a)?void 0!==c.ready?c.ready(a):a(pa):pa.makeArray(a,this)};Ca.prototype=pa.fn,Aa=pa(ca);var Da=/^(?:parents|prev(?:Until|All))/,Ea={children:!0,contents:!0,next:!0,prev:!0};pa.fn.extend({has:function(a){var b=pa(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(pa.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&pa(a);if(!xa.test(a))for(;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&pa.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?pa.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?ha.call(pa(a),this[0]):ha.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(pa.uniqueSort(pa.merge(this.get(),pa(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),pa.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return va(a,"parentNode")},parentsUntil:function(a,b,c){return va(a,"parentNode",c)},next:function(a){return g(a,"nextSibling")},prev:function(a){return g(a,"previousSibling")},nextAll:function(a){return va(a,"nextSibling")},prevAll:function(a){return va(a,"previousSibling")},nextUntil:function(a,b,c){return va(a,"nextSibling",c)},prevUntil:function(a,b,c){return va(a,"previousSibling",c)},siblings:function(a){return wa((a.parentNode||{}).firstChild,a)},children:function(a){return wa(a.firstChild)},contents:function(a){return a.contentDocument||pa.merge([],a.childNodes)}},function(a,b){pa.fn[a]=function(c,d){var e=pa.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=pa.filter(d,e)),this.length>1&&(Ea[a]||pa.uniqueSort(e),Da.test(a)&&e.reverse()),this.pushStack(e)}});var Fa=/[^\x20\t\r\n\f]+/g;pa.Callbacks=function(a){a="string"==typeof a?h(a):pa.extend({},a);var b,c,d,e,f=[],g=[],i=-1,j=function(){for(e=a.once,d=b=!0;g.length;i=-1)for(c=g.shift();++i<f.length;)f[i].apply(c[0],c[1])===!1&&a.stopOnFalse&&(i=f.length,c=!1);a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},k={add:function(){return f&&(c&&!b&&(i=f.length-1,g.push(c)),function d(b){pa.each(b,function(b,c){pa.isFunction(c)?a.unique&&k.has(c)||f.push(c):c&&c.length&&"string"!==pa.type(c)&&d(c)})}(arguments),c&&!b&&j()),this},remove:function(){return pa.each(arguments,function(a,b){for(var c;(c=pa.inArray(b,f,c))>-1;)f.splice(c,1),i>=c&&i--}),this},has:function(a){return a?pa.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||j()),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},pa.extend({Deferred:function(a){var c=[["notify","progress",pa.Callbacks("memory"),pa.Callbacks("memory"),2],["resolve","done",pa.Callbacks("once memory"),pa.Callbacks("once memory"),0,"resolved"],["reject","fail",pa.Callbacks("once memory"),pa.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return pa.Deferred(function(b){pa.each(c,function(c,d){var e=pa.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&pa.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(a,d,e){function f(a,c,d,e){return function(){var h=this,k=arguments,l=function(){var b,l;if(!(g>a)){if(b=d.apply(h,k),b===c.promise())throw new TypeError("Thenable self-resolution");l=b&&("object"==typeof b||"function"==typeof b)&&b.then,pa.isFunction(l)?e?l.call(b,f(g,c,i,e),f(g,c,j,e)):(g++,l.call(b,f(g,c,i,e),f(g,c,j,e),f(g,c,i,c.notifyWith))):(d!==i&&(h=void 0,k=[b]),(e||c.resolveWith)(h,k))}},m=e?l:function(){try{l()}catch(b){pa.Deferred.exceptionHook&&pa.Deferred.exceptionHook(b,m.stackTrace),a+1>=g&&(d!==j&&(h=void 0,k=[b]),c.rejectWith(h,k))}};a?m():(pa.Deferred.getStackHook&&(m.stackTrace=pa.Deferred.getStackHook()),b.setTimeout(m))}}var g=0;return pa.Deferred(function(b){c[0][3].add(f(0,b,pa.isFunction(e)?e:i,b.notifyWith)),c[1][3].add(f(0,b,pa.isFunction(a)?a:i)),c[2][3].add(f(0,b,pa.isFunction(d)?d:j))}).promise()},promise:function(a){return null!=a?pa.extend(a,e):e}},f={};return pa.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),a&&a.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=ea.call(arguments),f=pa.Deferred(),g=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?ea.call(arguments):c,--b||f.resolveWith(d,e)}};if(1>=b&&(k(a,f.done(g(c)).resolve,f.reject),"pending"===f.state()||pa.isFunction(e[c]&&e[c].then)))return f.then();for(;c--;)k(e[c],g(c),f.reject);return f.promise()}});var Ga=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;pa.Deferred.exceptionHook=function(a,c){b.console&&b.console.warn&&a&&Ga.test(a.name)&&b.console.warn("jQuery.Deferred exception: "+a.message,a.stack,c)},pa.readyException=function(a){b.setTimeout(function(){throw a})};var Ha=pa.Deferred();pa.fn.ready=function(a){return Ha.then(a)["catch"](function(a){pa.readyException(a)}),this},pa.extend({isReady:!1,readyWait:1,holdReady:function(a){a?pa.readyWait++:pa.ready(!0)},ready:function(a){(a===!0?--pa.readyWait:pa.isReady)||(pa.isReady=!0,a!==!0&&--pa.readyWait>0||Ha.resolveWith(ca,[pa]))}}),pa.ready.then=Ha.then,"complete"===ca.readyState||"loading"!==ca.readyState&&!ca.documentElement.doScroll?b.setTimeout(pa.ready):(ca.addEventListener("DOMContentLoaded",l),b.addEventListener("load",l));var Ia=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===pa.type(c)){e=!0;for(h in c)Ia(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,pa.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(pa(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Ja=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};m.uid=1,m.prototype={cache:function(a){var b=a[this.expando];return b||(b={},Ja(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[pa.camelCase(b)]=c;else for(d in b)e[pa.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][pa.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){pa.isArray(b)?b=b.map(pa.camelCase):(b=pa.camelCase(b),b=b in d?[b]:b.match(Fa)||[]),c=b.length;for(;c--;)delete d[b[c]]}(void 0===b||pa.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!pa.isEmptyObject(b)}};var Ka=new m,La=new m,Ma=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Na=/[A-Z]/g;pa.extend({hasData:function(a){return La.hasData(a)||Ka.hasData(a)},data:function(a,b,c){return La.access(a,b,c)},removeData:function(a,b){La.remove(a,b)},_data:function(a,b,c){return Ka.access(a,b,c)},_removeData:function(a,b){Ka.remove(a,b)}}),pa.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=La.get(f),1===f.nodeType&&!Ka.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=pa.camelCase(d.slice(5)),o(f,d,e[d])));Ka.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){La.set(this,a)}):Ia(this,function(b){var c;if(f&&void 0===b){if(c=La.get(f,a),void 0!==c)return c;if(c=o(f,a),void 0!==c)return c}else this.each(function(){La.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){La.remove(this,a)})}}),pa.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=Ka.get(a,b),c&&(!d||pa.isArray(c)?d=Ka.access(a,b,pa.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=pa.queue(a,b),d=c.length,e=c.shift(),f=pa._queueHooks(a,b),g=function(){pa.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return Ka.get(a,c)||Ka.access(a,c,{empty:pa.Callbacks("once memory").add(function(){Ka.remove(a,[b+"queue",c])})})}}),pa.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?pa.queue(this[0],a):void 0===b?this:this.each(function(){var c=pa.queue(this,a,b);pa._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&pa.dequeue(this,a)})},dequeue:function(a){return this.each(function(){pa.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=pa.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)c=Ka.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Oa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Pa=new RegExp("^(?:([+-])=|)("+Oa+")([a-z%]*)$","i"),Qa=["Top","Right","Bottom","Left"],Ra=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&pa.contains(a.ownerDocument,a)&&"none"===pa.css(a,"display")},Sa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Ta={};pa.fn.extend({show:function(){return r(this,!0)},hide:function(){return r(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){Ra(this)?pa(this).show():pa(this).hide()})}});var Ua=/^(?:checkbox|radio)$/i,Va=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Wa=/^$|\/(?:java|ecma)script/i,Xa={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,"",""]};Xa.optgroup=Xa.option,Xa.tbody=Xa.tfoot=Xa.colgroup=Xa.caption=Xa.thead,Xa.th=Xa.td;var Ya=/<|&#?\w+;/;!function(){var a=ca.createDocumentFragment(),b=a.appendChild(ca.createElement("div")),c=ca.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),na.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",na.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var Za=ca.documentElement,$a=/^key/,_a=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ab=/^([^.]*)(?:\.(.+)|)/;pa.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=Ka.get(a);if(q)for(c.handler&&(f=c,c=f.handler,e=f.selector),e&&pa.find.matchesSelector(Za,e),c.guid||(c.guid=pa.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof pa&&pa.event.triggered!==b.type?pa.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(Fa)||[""],j=b.length;j--;)h=ab.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=pa.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=pa.event.special[n]||{},k=pa.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&pa.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),pa.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=Ka.hasData(a)&&Ka.get(a);if(q&&(i=q.events)){for(b=(b||"").match(Fa)||[""],j=b.length;j--;)if(h=ab.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=pa.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||pa.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)pa.event.remove(a,n+b[j],c,d,!0);pa.isEmptyObject(i)&&Ka.remove(a,"handle events")}},dispatch:function(a){var b,c,d,e,f,g,h=pa.event.fix(a),i=new Array(arguments.length),j=(Ka.get(this,"events")||{})[h.type]||[],k=pa.event.special[h.type]||{};for(i[0]=h,b=1;b<arguments.length;b++)i[b]=arguments[b];if(h.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,h)!==!1){for(g=pa.event.handlers.call(this,h,j),b=0;(e=g[b++])&&!h.isPropagationStopped();)for(h.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!h.isImmediatePropagationStopped();)h.rnamespace&&!h.rnamespace.test(f.namespace)||(h.handleObj=f,h.data=f.data,d=((pa.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,i),void 0!==d&&(h.result=d)===!1&&(h.preventDefault(),h.stopPropagation()));return k.postDispatch&&k.postDispatch.call(this,h),h.result}},handlers:function(a,b){var c,d,e,f,g,h=[],i=b.delegateCount,j=a.target;if(i&&j.nodeType&&!("click"===a.type&&a.button>=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;i>c;c++)d=b[c],e=d.selector+" ",void 0===g[e]&&(g[e]=d.needsContext?pa(e,this).index(j)>-1:pa.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i<b.length&&h.push({elem:j,handlers:b.slice(i)}),h},addProp:function(a,b){Object.defineProperty(pa.Event.prototype,a,{enumerable:!0,configurable:!0,get:pa.isFunction(b)?function(){return this.originalEvent?b(this.originalEvent):void 0}:function(){return this.originalEvent?this.originalEvent[a]:void 0},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[pa.expando]?a:new pa.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==x()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===x()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&pa.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return pa.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},pa.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},pa.Event=function(a,b){return this instanceof pa.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?v:w,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&pa.extend(this,b),this.timeStamp=a&&a.timeStamp||pa.now(),void(this[pa.expando]=!0)):new pa.Event(a,b)},pa.Event.prototype={constructor:pa.Event,isDefaultPrevented:w,isPropagationStopped:w,isImmediatePropagationStopped:w,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=v,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=v,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=v,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},pa.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&$a.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&_a.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},pa.event.addProp),pa.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){pa.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||pa.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),pa.fn.extend({
  on:function(a,b,c,d){return y(this,a,b,c,d)},one:function(a,b,c,d){return y(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,pa(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=w),this.each(function(){pa.event.remove(this,a,c,b)})}});var bb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,cb=/<script|<style|<link/i,db=/checked\s*(?:[^=]|=\s*.checked.)/i,eb=/^true\/(.*)/,fb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;pa.extend({htmlPrefilter:function(a){return a.replace(bb,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=pa.contains(a.ownerDocument,a);if(!(na.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||pa.isXMLDoc(a)))for(g=s(h),f=s(a),d=0,e=f.length;e>d;d++)D(f[d],g[d]);if(b)if(c)for(f=f||s(a),g=g||s(h),d=0,e=f.length;e>d;d++)C(f[d],g[d]);else C(a,h);return g=s(h,"script"),g.length>0&&t(g,!i&&s(a,"script")),h},cleanData:function(a){for(var b,c,d,e=pa.event.special,f=0;void 0!==(c=a[f]);f++)if(Ja(c)){if(b=c[Ka.expando]){if(b.events)for(d in b.events)e[d]?pa.event.remove(c,d):pa.removeEvent(c,d,b.handle);c[Ka.expando]=void 0}c[La.expando]&&(c[La.expando]=void 0)}}}),pa.fn.extend({detach:function(a){return F(this,a,!0)},remove:function(a){return F(this,a)},text:function(a){return Ia(this,function(a){return void 0===a?pa.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return E(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=z(this,a);b.appendChild(a)}})},prepend:function(){return E(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=z(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return E(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return E(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(pa.cleanData(s(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return pa.clone(this,a,b)})},html:function(a){return Ia(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!cb.test(a)&&!Xa[(Va.exec(a)||["",""])[1].toLowerCase()]){a=pa.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(pa.cleanData(s(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return E(this,arguments,function(b){var c=this.parentNode;pa.inArray(this,a)<0&&(pa.cleanData(s(this)),c&&c.replaceChild(b,this))},a)}}),pa.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){pa.fn[a]=function(a){for(var c,d=[],e=pa(a),f=e.length-1,g=0;f>=g;g++)c=g===f?this:this.clone(!0),pa(e[g])[b](c),ga.apply(d,c.get());return this.pushStack(d)}});var gb=/^margin/,hb=new RegExp("^("+Oa+")(?!px)[a-z%]+$","i"),ib=function(a){var c=a.ownerDocument.defaultView;return c&&c.opener||(c=b),c.getComputedStyle(a)};!function(){function a(){if(h){h.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Za.appendChild(g);var a=b.getComputedStyle(h);c="1%"!==a.top,f="2px"===a.marginLeft,d="4px"===a.width,h.style.marginRight="50%",e="4px"===a.marginRight,Za.removeChild(g),h=null}}var c,d,e,f,g=ca.createElement("div"),h=ca.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",na.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h),pa.extend(na,{pixelPosition:function(){return a(),c},boxSizingReliable:function(){return a(),d},pixelMarginRight:function(){return a(),e},reliableMarginLeft:function(){return a(),f}}))}();var jb=/^(none|table(?!-c[ea]).+)/,kb={position:"absolute",visibility:"hidden",display:"block"},lb={letterSpacing:"0",fontWeight:"400"},mb=["Webkit","Moz","ms"],nb=ca.createElement("div").style;pa.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=G(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,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(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=pa.camelCase(b),i=a.style;return b=pa.cssProps[h]||(pa.cssProps[h]=I(h)||h),g=pa.cssHooks[b]||pa.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Pa.exec(c))&&e[1]&&(c=p(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(pa.cssNumber[h]?"":"px")),na.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=pa.camelCase(b);return b=pa.cssProps[h]||(pa.cssProps[h]=I(h)||h),g=pa.cssHooks[b]||pa.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=G(a,b,d)),"normal"===e&&b in lb&&(e=lb[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),pa.each(["height","width"],function(a,b){pa.cssHooks[b]={get:function(a,c,d){return c?!jb.test(pa.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?L(a,b,d):Sa(a,kb,function(){return L(a,b,d)}):void 0},set:function(a,c,d){var e,f=d&&ib(a),g=d&&K(a,b,d,"border-box"===pa.css(a,"boxSizing",!1,f),f);return g&&(e=Pa.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=pa.css(a,b)),J(a,c,g)}}}),pa.cssHooks.marginLeft=H(na.reliableMarginLeft,function(a,b){return b?(parseFloat(G(a,"marginLeft"))||a.getBoundingClientRect().left-Sa(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),pa.each({margin:"",padding:"",border:"Width"},function(a,b){pa.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+Qa[d]+b]=f[d]||f[d-2]||f[0];return e}},gb.test(a)||(pa.cssHooks[a+b].set=J)}),pa.fn.extend({css:function(a,b){return Ia(this,function(a,b,c){var d,e,f={},g=0;if(pa.isArray(b)){for(d=ib(a),e=b.length;e>g;g++)f[b[g]]=pa.css(a,b[g],!1,d);return f}return void 0!==c?pa.style(a,b,c):pa.css(a,b)},a,b,arguments.length>1)}}),pa.Tween=M,M.prototype={constructor:M,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||pa.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(pa.cssNumber[c]?"":"px")},cur:function(){var a=M.propHooks[this.prop];return a&&a.get?a.get(this):M.propHooks._default.get(this)},run:function(a){var b,c=M.propHooks[this.prop];return this.options.duration?this.pos=b=pa.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):M.propHooks._default.set(this),this}},M.prototype.init.prototype=M.prototype,M.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=pa.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){pa.fx.step[a.prop]?pa.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[pa.cssProps[a.prop]]&&!pa.cssHooks[a.prop]?a.elem[a.prop]=a.now:pa.style(a.elem,a.prop,a.now+a.unit)}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},pa.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},pa.fx=M.prototype.init,pa.fx.step={};var ob,pb,qb=/^(?:toggle|show|hide)$/,rb=/queueHooks$/;pa.Animation=pa.extend(T,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return p(c.elem,a,Pa.exec(b),c),c}]},tweener:function(a,b){pa.isFunction(a)?(b=a,a=["*"]):a=a.match(Fa);for(var c,d=0,e=a.length;e>d;d++)c=a[d],T.tweeners[c]=T.tweeners[c]||[],T.tweeners[c].unshift(b)},prefilters:[R],prefilter:function(a,b){b?T.prefilters.unshift(a):T.prefilters.push(a)}}),pa.speed=function(a,b,c){var d=a&&"object"==typeof a?pa.extend({},a):{complete:c||!c&&b||pa.isFunction(a)&&a,duration:a,easing:c&&b||b&&!pa.isFunction(b)&&b};return pa.fx.off||ca.hidden?d.duration=0:"number"!=typeof d.duration&&(d.duration in pa.fx.speeds?d.duration=pa.fx.speeds[d.duration]:d.duration=pa.fx.speeds._default),null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){pa.isFunction(d.old)&&d.old.call(this),d.queue&&pa.dequeue(this,d.queue)},d},pa.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Ra).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=pa.isEmptyObject(a),f=pa.speed(b,c,d),g=function(){var b=T(this,pa.extend({},a),f);(e||Ka.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=pa.timers,g=Ka.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&rb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||pa.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=Ka.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=pa.timers,g=d?d.length:0;for(c.finish=!0,pa.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),pa.each(["toggle","show","hide"],function(a,b){var c=pa.fn[b];pa.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(P(b,!0),a,d,e)}}),pa.each({slideDown:P("show"),slideUp:P("hide"),slideToggle:P("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){pa.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),pa.timers=[],pa.fx.tick=function(){var a,b=0,c=pa.timers;for(ob=pa.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||pa.fx.stop(),ob=void 0},pa.fx.timer=function(a){pa.timers.push(a),a()?pa.fx.start():pa.timers.pop()},pa.fx.interval=13,pa.fx.start=function(){pb||(pb=b.requestAnimationFrame?b.requestAnimationFrame(N):b.setInterval(pa.fx.tick,pa.fx.interval))},pa.fx.stop=function(){b.cancelAnimationFrame?b.cancelAnimationFrame(pb):b.clearInterval(pb),pb=null},pa.fx.speeds={slow:600,fast:200,_default:400},pa.fn.delay=function(a,c){return a=pa.fx?pa.fx.speeds[a]||a:a,c=c||"fx",this.queue(c,function(c,d){var e=b.setTimeout(c,a);d.stop=function(){b.clearTimeout(e)}})},function(){var a=ca.createElement("input"),b=ca.createElement("select"),c=b.appendChild(ca.createElement("option"));a.type="checkbox",na.checkOn=""!==a.value,na.optSelected=c.selected,a=ca.createElement("input"),a.value="t",a.type="radio",na.radioValue="t"===a.value}();var sb,tb=pa.expr.attrHandle;pa.fn.extend({attr:function(a,b){return Ia(this,pa.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){pa.removeAttr(this,a)})}}),pa.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?pa.prop(a,b,c):(1===f&&pa.isXMLDoc(a)||(e=pa.attrHooks[b.toLowerCase()]||(pa.expr.match.bool.test(b)?sb:void 0)),void 0!==c?null===c?void pa.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=pa.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!na.radioValue&&"radio"===b&&pa.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(Fa);if(e&&1===a.nodeType)for(;c=e[d++];)a.removeAttribute(c)}}),sb={set:function(a,b,c){return b===!1?pa.removeAttr(a,c):a.setAttribute(c,c),c}},pa.each(pa.expr.match.bool.source.match(/\w+/g),function(a,b){var c=tb[b]||pa.find.attr;tb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=tb[g],tb[g]=e,e=null!=c(a,b,d)?g:null,tb[g]=f),e}});var ub=/^(?:input|select|textarea|button)$/i,vb=/^(?:a|area)$/i;pa.fn.extend({prop:function(a,b){return Ia(this,pa.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[pa.propFix[a]||a]})}}),pa.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&pa.isXMLDoc(a)||(b=pa.propFix[b]||b,e=pa.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=pa.find.attr(a,"tabindex");return b?parseInt(b,10):ub.test(a.nodeName)||vb.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),na.optSelected||(pa.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),pa.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pa.propFix[this.toLowerCase()]=this}),pa.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(pa.isFunction(a))return this.each(function(b){pa(this).addClass(a.call(this,b,V(this)))});if("string"==typeof a&&a)for(b=a.match(Fa)||[];c=this[i++];)if(e=V(c),d=1===c.nodeType&&" "+U(e)+" "){for(g=0;f=b[g++];)d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=U(d),e!==h&&c.setAttribute("class",h)}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(pa.isFunction(a))return this.each(function(b){pa(this).removeClass(a.call(this,b,V(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a)for(b=a.match(Fa)||[];c=this[i++];)if(e=V(c),d=1===c.nodeType&&" "+U(e)+" "){for(g=0;f=b[g++];)for(;d.indexOf(" "+f+" ")>-1;)d=d.replace(" "+f+" "," ");h=U(d),e!==h&&c.setAttribute("class",h)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):pa.isFunction(a)?this.each(function(c){pa(this).toggleClass(a.call(this,c,V(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c)for(d=0,e=pa(this),f=a.match(Fa)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else void 0!==a&&"boolean"!==c||(b=V(this),b&&Ka.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":Ka.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;for(b=" "+a+" ";c=this[d++];)if(1===c.nodeType&&(" "+U(V(c))+" ").indexOf(b)>-1)return!0;return!1}});var wb=/\r/g;pa.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=pa.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,pa(this).val()):a,null==e?e="":"number"==typeof e?e+="":pa.isArray(e)&&(e=pa.map(e,function(a){return null==a?"":a+""})),b=pa.valHooks[this.type]||pa.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=pa.valHooks[e.type]||pa.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(wb,""):null==c?"":c)}}}),pa.extend({valHooks:{option:{get:function(a){var b=pa.find.attr(a,"value");return null!=b?b:U(pa.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=0>f?i:g?f:0;i>d;d++)if(c=e[d],(c.selected||d===f)&&!c.disabled&&(!c.parentNode.disabled||!pa.nodeName(c.parentNode,"optgroup"))){if(b=pa(c).val(),g)return b;h.push(b)}return h},set:function(a,b){for(var c,d,e=a.options,f=pa.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=pa.inArray(pa.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),pa.each(["radio","checkbox"],function(){pa.valHooks[this]={set:function(a,b){return pa.isArray(b)?a.checked=pa.inArray(pa(a).val(),b)>-1:void 0}},na.checkOn||(pa.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var xb=/^(?:focusinfocus|focusoutblur)$/;pa.extend(pa.event,{trigger:function(a,c,d,e){var f,g,h,i,j,k,l,m=[d||ca],n=ka.call(a,"type")?a.type:a,o=ka.call(a,"namespace")?a.namespace.split("."):[];if(g=h=d=d||ca,3!==d.nodeType&&8!==d.nodeType&&!xb.test(n+pa.event.triggered)&&(n.indexOf(".")>-1&&(o=n.split("."),n=o.shift(),o.sort()),j=n.indexOf(":")<0&&"on"+n,a=a[pa.expando]?a:new pa.Event(n,"object"==typeof a&&a),a.isTrigger=e?2:3,a.namespace=o.join("."),a.rnamespace=a.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=d),c=null==c?[a]:pa.makeArray(c,[a]),l=pa.event.special[n]||{},e||!l.trigger||l.trigger.apply(d,c)!==!1)){if(!e&&!l.noBubble&&!pa.isWindow(d)){for(i=l.delegateType||n,xb.test(i+n)||(g=g.parentNode);g;g=g.parentNode)m.push(g),h=g;h===(d.ownerDocument||ca)&&m.push(h.defaultView||h.parentWindow||b)}for(f=0;(g=m[f++])&&!a.isPropagationStopped();)a.type=f>1?i:l.bindType||n,k=(Ka.get(g,"events")||{})[a.type]&&Ka.get(g,"handle"),k&&k.apply(g,c),k=j&&g[j],k&&k.apply&&Ja(g)&&(a.result=k.apply(g,c),a.result===!1&&a.preventDefault());return a.type=n,e||a.isDefaultPrevented()||l._default&&l._default.apply(m.pop(),c)!==!1||!Ja(d)||j&&pa.isFunction(d[n])&&!pa.isWindow(d)&&(h=d[j],h&&(d[j]=null),pa.event.triggered=n,d[n](),pa.event.triggered=void 0,h&&(d[j]=h)),a.result}},simulate:function(a,b,c){var d=pa.extend(new pa.Event,c,{type:a,isSimulated:!0});pa.event.trigger(d,null,b)}}),pa.fn.extend({trigger:function(a,b){return this.each(function(){pa.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?pa.event.trigger(a,b,c,!0):void 0}}),pa.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){pa.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),pa.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),na.focusin="onfocusin"in b,na.focusin||pa.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){pa.event.simulate(b,a.target,pa.event.fix(a))};pa.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=Ka.access(d,b);e||d.addEventListener(a,c,!0),Ka.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=Ka.access(d,b)-1;e?Ka.access(d,b,e):(d.removeEventListener(a,c,!0),Ka.remove(d,b))}}});var yb=b.location,zb=pa.now(),Ab=/\?/;pa.parseXML=function(a){var c;if(!a||"string"!=typeof a)return null;try{c=(new b.DOMParser).parseFromString(a,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||pa.error("Invalid XML: "+a),c};var Bb=/\[\]$/,Cb=/\r?\n/g,Db=/^(?:submit|button|image|reset|file)$/i,Eb=/^(?:input|select|textarea|keygen)/i;pa.param=function(a,b){var c,d=[],e=function(a,b){var c=pa.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(pa.isArray(a)||a.jquery&&!pa.isPlainObject(a))pa.each(a,function(){e(this.name,this.value)});else for(c in a)W(c,a[c],b,e);return d.join("&")},pa.fn.extend({serialize:function(){return pa.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=pa.prop(this,"elements");return a?pa.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!pa(this).is(":disabled")&&Eb.test(this.nodeName)&&!Db.test(a)&&(this.checked||!Ua.test(a))}).map(function(a,b){var c=pa(this).val();return null==c?null:pa.isArray(c)?pa.map(c,function(a){return{name:b.name,value:a.replace(Cb,"\r\n")}}):{name:b.name,value:c.replace(Cb,"\r\n")}}).get()}});var Fb=/%20/g,Gb=/#.*$/,Hb=/([?&])_=[^&]*/,Ib=/^(.*?):[ \t]*([^\r\n]*)$/gm,Jb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Kb=/^(?:GET|HEAD)$/,Lb=/^\/\//,Mb={},Nb={},Ob="*/".concat("*"),Pb=ca.createElement("a");Pb.href=yb.href,pa.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yb.href,type:"GET",isLocal:Jb.test(yb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ob,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":pa.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Z(Z(a,pa.ajaxSettings),b):Z(pa.ajaxSettings,a)},ajaxPrefilter:X(Mb),ajaxTransport:X(Nb),ajax:function(a,c){function d(a,c,d,h){var j,m,n,u,v,w=c;k||(k=!0,i&&b.clearTimeout(i),e=void 0,g=h||"",x.readyState=a>0?4:0,j=a>=200&&300>a||304===a,d&&(u=$(o,x,d)),u=_(o,u,x,j),j?(o.ifModified&&(v=x.getResponseHeader("Last-Modified"),v&&(pa.lastModified[f]=v),v=x.getResponseHeader("etag"),v&&(pa.etag[f]=v)),204===a||"HEAD"===o.type?w="nocontent":304===a?w="notmodified":(w=u.state,m=u.data,n=u.error,j=!n)):(n=w,!a&&w||(w="error",0>a&&(a=0))),x.status=a,x.statusText=(c||w)+"",j?r.resolveWith(p,[m,w,x]):r.rejectWith(p,[x,w,n]),x.statusCode(t),t=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[x,o,j?m:n]),s.fireWith(p,[x,w]),l&&(q.trigger("ajaxComplete",[x,o]),--pa.active||pa.event.trigger("ajaxStop")))}"object"==typeof a&&(c=a,a=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=pa.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?pa(p):pa.event,r=pa.Deferred(),s=pa.Callbacks("once memory"),t=o.statusCode||{},u={},v={},w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h)for(h={};b=Ib.exec(g);)h[b[1].toLowerCase()]=b[2];b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=v[a.toLowerCase()]=v[a.toLowerCase()]||a,u[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)x.always(a[x.status]);else for(b in a)t[b]=[t[b],a[b]];return this},abort:function(a){var b=a||w;return e&&e.abort(b),d(0,b),this}};if(r.promise(x),o.url=((a||o.url||yb.href)+"").replace(Lb,yb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(Fa)||[""],null==o.crossDomain){j=ca.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Pb.protocol+"//"+Pb.host!=j.protocol+"//"+j.host}catch(y){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=pa.param(o.data,o.traditional)),Y(Mb,o,c,x),k)return x;l=pa.event&&o.global,l&&0===pa.active++&&pa.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Kb.test(o.type),f=o.url.replace(Gb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Fb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(Ab.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Hb,"$1"),n=(Ab.test(f)?"&":"?")+"_="+zb++ +n),o.url=f+n),o.ifModified&&(pa.lastModified[f]&&x.setRequestHeader("If-Modified-Since",pa.lastModified[f]),pa.etag[f]&&x.setRequestHeader("If-None-Match",pa.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",o.contentType),x.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Ob+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)x.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,x,o)===!1||k))return x.abort();if(w="abort",s.add(o.complete),x.done(o.success),x.fail(o.error),e=Y(Nb,o,c,x)){if(x.readyState=1,l&&q.trigger("ajaxSend",[x,o]),k)return x;o.async&&o.timeout>0&&(i=b.setTimeout(function(){x.abort("timeout")},o.timeout));try{k=!1,e.send(u,d)}catch(y){if(k)throw y;d(-1,y)}}else d(-1,"No Transport");return x},getJSON:function(a,b,c){return pa.get(a,b,c,"json")},getScript:function(a,b){return pa.get(a,void 0,b,"script")}}),pa.each(["get","post"],function(a,b){pa[b]=function(a,c,d,e){return pa.isFunction(c)&&(e=e||d,d=c,c=void 0),pa.ajax(pa.extend({url:a,type:b,dataType:e,data:c,success:d},pa.isPlainObject(a)&&a))}}),pa._evalUrl=function(a){return pa.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},pa.fn.extend({wrapAll:function(a){var b;return this[0]&&(pa.isFunction(a)&&(a=a.call(this[0])),b=pa(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return pa.isFunction(a)?this.each(function(b){pa(this).wrapInner(a.call(this,b))}):this.each(function(){var b=pa(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=pa.isFunction(a);return this.each(function(c){pa(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){pa(this).replaceWith(this.childNodes)}),this}}),pa.expr.pseudos.hidden=function(a){return!pa.expr.pseudos.visible(a)},pa.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},pa.ajaxSettings.xhr=function(){try{return new b.XMLHttpRequest}catch(a){}};var Qb={0:200,1223:204},Rb=pa.ajaxSettings.xhr();na.cors=!!Rb&&"withCredentials"in Rb,na.ajax=Rb=!!Rb,pa.ajaxTransport(function(a){var c,d;return na.cors||Rb&&!a.crossDomain?{send:function(e,f){var g,h=a.xhr();if(h.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(g in a.xhrFields)h[g]=a.xhrFields[g];a.mimeType&&h.overrideMimeType&&h.overrideMimeType(a.mimeType),a.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Qb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&b.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(a.hasContent&&a.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}:void 0}),pa.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),pa.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return pa.globalEval(a),a}}}),pa.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),pa.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=pa("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),ca.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Sb=[],Tb=/(=)\?(?=&|$)|\?\?/;pa.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Sb.pop()||pa.expando+"_"+zb++;return this[a]=!0,a}}),pa.ajaxPrefilter("json jsonp",function(a,c,d){var e,f,g,h=a.jsonp!==!1&&(Tb.test(a.url)?"url":"string"==typeof a.data&&0===(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&Tb.test(a.data)&&"data");return h||"jsonp"===a.dataTypes[0]?(e=a.jsonpCallback=pa.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,h?a[h]=a[h].replace(Tb,"$1"+e):a.jsonp!==!1&&(a.url+=(Ab.test(a.url)?"&":"?")+a.jsonp+"="+e),a.converters["script json"]=function(){return g||pa.error(e+" was not called"),g[0]},a.dataTypes[0]="json",f=b[e],b[e]=function(){g=arguments},d.always(function(){void 0===f?pa(b).removeProp(e):b[e]=f,a[e]&&(a.jsonpCallback=c.jsonpCallback,Sb.push(e)),g&&pa.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),na.createHTMLDocument=function(){var a=ca.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),pa.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var d,e,f;return b||(na.createHTMLDocument?(b=ca.implementation.createHTMLDocument(""),d=b.createElement("base"),d.href=ca.location.href,b.head.appendChild(d)):b=ca),e=ya.exec(a),f=!c&&[],e?[b.createElement(e[1])]:(e=u([a],b,f),f&&f.length&&pa(f).remove(),pa.merge([],e.childNodes))},pa.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=U(a.slice(h)),a=a.slice(0,h)),pa.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&pa.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?pa("<div>").append(pa.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},pa.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){pa.fn[b]=function(a){return this.on(b,a)}}),pa.expr.pseudos.animated=function(a){return pa.grep(pa.timers,function(b){return a===b.elem}).length},pa.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=pa.css(a,"position"),l=pa(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=pa.css(a,"top"),i=pa.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),pa.isFunction(b)&&(b=b.call(a,c,pa.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},pa.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){pa.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),d.width||d.height?(e=f.ownerDocument,c=aa(e),b=e.documentElement,{top:d.top+c.pageYOffset-b.clientTop,left:d.left+c.pageXOffset-b.clientLeft}):d):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===pa.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),pa.nodeName(a[0],"html")||(d=a.offset()),d={top:d.top+pa.css(a[0],"borderTopWidth",!0),left:d.left+pa.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-pa.css(c,"marginTop",!0),left:b.left-d.left-pa.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&"static"===pa.css(a,"position");)a=a.offsetParent;return a||Za})}}),pa.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;pa.fn[a]=function(d){return Ia(this,function(a,d,e){var f=aa(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),pa.each(["top","left"],function(a,b){pa.cssHooks[b]=H(na.pixelPosition,function(a,c){return c?(c=G(a,b),hb.test(c)?pa(a).position()[b]+"px":c):void 0})}),pa.each({Height:"height",Width:"width"},function(a,b){pa.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){pa.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return Ia(this,function(b,c,e){
  var f;return pa.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?pa.css(b,c,h):pa.style(b,c,e,h)},b,g?e:void 0,g)}})}),pa.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),pa.parseJSON=JSON.parse,"function"==typeof a&&a.amd&&a("npm:jquery@3.1.1/dist/jquery.js",[],function(){return pa})&&a("jquery",["npm:jquery@3.1.1/dist/jquery.js"],function(a){return a});var Ub=b.jQuery,Vb=b.$;return pa.noConflict=function(a){return b.$===pa&&(b.$=Vb),a&&b.jQuery===pa&&(b.jQuery=Ub),pa},c||(b.jQuery=b.$=pa),pa})}(),function(){var a=System.amdDefine;a("npm:jquery@3.1.1.js",["npm:jquery@3.1.1/dist/jquery.js"],function(a){return a})}();