PageSourceSearch

https://www.worldpolicycenter.org/modules/custom/wpc_angularjs_app/dist/scripts/vendor.878d1c9f.js

js worldpolicycenter.org collected 2026-10-02 03:56:31 UTC 697,126 bytes, 1 lines download raw bytes

vendor: 7,838 bytes, line 1
1if(!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(x,t){"use strict";function g(t){return null!=t&&t===t.window}var e=[],n=Object.getPrototypeOf,s=e.slice,m=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},l=e.push,r=e.indexOf,i={},o=i.toString,v=i.hasOwnProperty,a=v.toString,u=a.call(Object),y={},b=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},C=x.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function $(t,e,n){var i,r,o=(n=n||C).createElement("script");if(o.text=t,e)for(i in c)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function f(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[o.call(t)]||"object":typeof t}var p="3.6.0",k=function(t,e){return new k.fn.init(t,e)};function h(t){var e=!!t&&"length"in t&&t.length,n=f(t);return!b(t)&&!g(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}k.fn=k.prototype={jquery:p,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=k.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return k.each(this,t)},map:function(n){return this.pushStack(k.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},k.extend=k.fn.extend=function(){var t,e,n,i,r,o=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||b(o)||(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&o!==n&&(l&&n&&(k.isPlainObject(n)||(i=Array.isArray(n)))?(r=o[e],r=i&&!Array.isArray(r)?[]:i||k.isPlainObject(r)?r:{},i=!1,o[e]=k.extend(l,r,n)):void 0!==n&&(o[e]=n));return o},k.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==o.call(t))&&(!(t=n(t))||"function"==typeof(t=v.call(t,"constructor")&&t.constructor)&&a.call(t)===u)},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,n){$(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(h(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){e=e||[];return null!=t&&(h(Object(t))?k.merge(e,"string"==typeof t?[t]:t):l.call(e,t)),e},inArray:function(t,e,n){return null==e?-1:r.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!=a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(h(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return m(a)},guid:1,support:y}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=e[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var d=function(n){function p(t,e){return t="0x"+t.slice(1)-65536,e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>10|55296,1023&t|56320))}function i(){x()}var t,h,$,o,r,d,f,g,w,l,u,x,C,a,k,m,s,c,v,S="sizzle"+ +new Date,y=n.document,T=0,b=0,E=lt(),D=lt(),A=lt(),O=lt(),P=function(t,e){return t===e&&(u=!0),0},M={}.hasOwnProperty,e=[],I=e.pop,R=e.push,j=e.push,N=e.slice,L=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",U="[\\x20\\t\\r\\n\\f]",q="(?:\\\\[\\da-fA-F]{1,6}"+U+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",_="\\["+U+"*("+q+")(?:"+U+"*([*^$|!~]?=)"+U+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+U+"*\\]",H=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+_+")*)|.*)\\)|)",B=new RegExp(U+"+","g"),V=new RegExp("^"+U+"+|((?:^|[^\\\\])(?:\\\\.)*)"+U+"+$","g"),W=new RegExp("^"+U+"*,"+U+"*"),z=new RegExp("^"+U+"*([>+~]|"+U+")"+U+"*"),X=new RegExp(U+"|>"),Y=new RegExp(H),G=new RegExp("^"+q+"$"),J={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+_),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+U+"*(even|odd|(([+-]|)(\\d*)n|)"+U+"*(?:([+-]|)"+U+"*(\\d+)|))"+U+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+U+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+U+"*((?:-\\d)?\\d*)"+U+"*\\)|)(?=[^-]|$)","i")},Q=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,tt=/^[^{]+\{\s*\[native \w/,et=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,nt=/[+~]/,it=new RegExp("\\\\[\\da-fA-F]{1,6}"+U+"?|\\\\([^\\r\\n\\f])","g"),rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},at=yt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{j.apply(e=N.call(y.childNodes),y.childNodes),e[y.childNodes.length].nodeType}catch(t){j={apply:e.length?function(t,e){R.apply(t,N.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(e,t,n,i){var r,o,a,s,l,u,c=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!i&&(x(t),t=t||C,k)){if(11!==p&&(s=et.exec(e)))if(u=s[1]){if(9===p){if(!(o=t.getElementById(u)))return n;if(o.id===u)return n.push(o),n}else if(c&&(o=c.getElementById(u))&&v(t,o)&&o.id===u)return n.push(o),n}else{if(s[2])return j.apply(n,t.getElementsByTagName(e)),n;if((u=s[3])&&h.getElementsByClassName&&t.getElementsByClassName)return j.apply(n,t.getElementsByClassName(u)),n}if(h.qsa&&!O[e+" "]&&(!m||!m.test(e))&&(1!==p||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===p&&(X.test(e)||z.test(e))){for((c=nt.test(e)&&gt(t.parentNode)||t)===t&&h.scope||((a=t.getAttribute("id"))?a=a.replace(rt,ot):t.setAttribute("id",a=S)),r=(l=d(e)).length;r--;)l[r]=(a?"#"+a:":scope")+" "+vt(l[r]);u=l.join(",")}try{return j.apply(n,c.querySelectorAll(u)),n}catch(t){O(e,!0)}finally{a===S&&t.removeAttribute("id")}}}return g(e.replace(V,"$1"),t,n,i)}function lt(){var n=[];function i(t,e){return n.push(t+" ")>$.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function ut(t){return t[S]=!0,t}function ct(t){var e=C.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function pt(t,e){for(var n=t.split("|"),i=n.length;i--;)$.attrHandle[n[i]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&at(t)===e
vendor: 9,050 bytes, line 1
1:t.disabled===e:"label"in t&&t.disabled===e}}function ft(a){return ut(function(o){return o=+o,ut(function(t,e){for(var n,i=a([],t.length,o),r=i.length;r--;)t[n=i[r]]&&(t[n]=!(e[n]=t[n]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in h=st.support={},r=st.isXML=function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!Q.test(e||t&&t.nodeName||"HTML")},x=st.setDocument=function(t){var e,t=t?t.ownerDocument||t:y;return t!=C&&9===t.nodeType&&t.documentElement&&(a=(C=t).documentElement,k=!r(C),y!=C&&(e=C.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",i,!1):e.attachEvent&&e.attachEvent("onunload",i)),h.scope=ct(function(t){return a.appendChild(t).appendChild(C.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),h.attributes=ct(function(t){return t.className="i",!t.getAttribute("className")}),h.getElementsByTagName=ct(function(t){return t.appendChild(C.createComment("")),!t.getElementsByTagName("*").length}),h.getElementsByClassName=tt.test(C.getElementsByClassName),h.getById=ct(function(t){return a.appendChild(t).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),h.getById?($.filter.ID=function(t){var e=t.replace(it,p);return function(t){return t.getAttribute("id")===e}},$.find.ID=function(t,e){if(void 0!==e.getElementById&&k){t=e.getElementById(t);return t?[t]:[]}}):($.filter.ID=function(t){var e=t.replace(it,p);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},$.find.ID=function(t,e){if(void 0!==e.getElementById&&k){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),$.find.TAG=h.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):h.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},$.find.CLASS=h.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&k)return e.getElementsByClassName(t)},s=[],m=[],(h.qsa=tt.test(C.querySelectorAll))&&(ct(function(t){var e;a.appendChild(t).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+U+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+U+"*(?:value|"+F+")"),t.querySelectorAll("[id~="+S+"-]").length||m.push("~="),(e=C.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\["+U+"*name"+U+"*="+U+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+S+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),ct(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=C.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+U+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),a.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(h.matchesSelector=tt.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ct(function(t){h.disconnectedMatch=c.call(t,"*"),c.call(t,"[s!='']:x"),s.push("!=",H)}),m=m.length&&new RegExp(m.join("|")),s=s.length&&new RegExp(s.join("|")),e=tt.test(a.compareDocumentPosition),v=e||tt.test(a.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},P=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!h.sortDetached&&e.compareDocumentPosition(t)===n?t==C||t.ownerDocument==y&&v(y,t)?-1:e==C||e.ownerDocument==y&&v(y,e)?1:l?L(l,t)-L(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==C?-1:e==C?1:r?-1:o?1:l?L(l,t)-L(l,e):0;if(r===o)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ht(a[i],s[i]):a[i]==y?-1:s[i]==y?1:0}),C},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(x(t),h.matchesSelector&&k&&!O[e+" "]&&(!s||!s.test(e))&&(!m||!m.test(e)))try{var n=c.call(t,e);if(n||h.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){O(e,!0)}return 0<st(e,C,null,[t]).length},st.contains=function(t,e){return(t.ownerDocument||t)!=C&&x(t),v(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=C&&x(t);var n=$.attrHandle[e.toLowerCase()],n=n&&M.call($.attrHandle,e.toLowerCase())?n(t,e,!k):void 0;return void 0!==n?n:h.attributes||!k?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},st.escape=function(t){return(t+"").replace(rt,ot)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],i=0,r=0;if(u=!h.detectDuplicates,l=!h.sortStable&&t.slice(0),t.sort(P),u){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return l=null,t},o=st.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},($=st.selectors={cacheLength:50,createPseudo:ut,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,p),t[3]=(t[3]||t[4]||t[5]||"").replace(it,p),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return J.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Y.test(n)&&(e=d(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(it,p).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=E[t+" "];return e||(e=new RegExp("(^|"+U+")"+t+"("+U+"|$)"))&&E(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=st.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1<t.indexOf(i):"$="===n?i&&t.slice(-i.length)===i:"~="===n?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===n&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,t,e,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}:function(t,e,n){var i,r,o,a,s,l,u=v!=y?"nextSibling":"previousSibling",c=t.parentNode,p=b&&t.nodeName.toLowerCase(),h=!n&&!b,d=!1;if(c){if(v){for(;u;){for(a=t;a=a[u];)if(b?a.nodeName.toLowerCase()===p:1===a.nodeType)return!1;l=u="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&h){for(d=(s=(i=(r=(o=(a=c)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===T&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(d=s=0)||l.pop();)if(1===a.nodeType&&++d&&a===t){r[f]=[T,s,d];break}}else if(!1===(d=h?s=(i=(r=(o=(a=t)[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===T&&i[1]:d))for(;(a=++s&&a&&a[u]||(d=s=0)||l.pop())&&((b?a.nodeName.toLowerCase()!==p:1!==a.nodeType)||!++d||(h&&((r=(o=a[S]||(a[S]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[T,d]),a!==t)););return(d-=m)===g||d%g==0&&0<=d/g}}},PSEUDO:function(t,o){var e,a=$.pseudos[t]||$.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return a[S]?a(o):1<a.length?(e=[t,t,"",o],$.setFilters.hasOwnProperty(t.toLowerCase())?ut(function(t,e){for(var n,i=a(t,o),r=i.length;r--;)t[n=L(t,i[r])]=!(e[n]=i[r])}):function(t){return a(t,0,e)}):a}},pseudos:{not:ut(function(t){var i=[],r=[],s=f(t.replace(V,"$1"));return s[S]?ut(function(t,e,n,i){for(var r,o=s(t,null,i,[]),a=t.length;a--;)(r=o[a])&&(t[a]=!(e[a]=r))}):function(t,e,n){return i[0]=t,s(i,null,n,r),i[0]=null,!r.pop()}}),has:ut(function(e){return function(t){return 0<st(e,t).length}}
vendor: 9,584 bytes, line 1
1),contains:ut(function(e){return e=e.replace(it,p),function(t){return-1<(t.textContent||o(t)).indexOf(e)}}),lang:ut(function(n){return G.test(n||"")||st.error("unsupported lang: "+n),n=n.replace(it,p).toLowerCase(),function(t){var e;do{if(e=k?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===a},focus:function(t){return t===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!$.pseudos.empty(t)},header:function(t){return Z.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:ft(function(){return[0]}),last:ft(function(t,e){return[e-1]}),eq:ft(function(t,e,n){return[n<0?n+e:n]}),even:ft(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ft(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ft(function(t,e,n){for(var i=n<0?n+e:e<n?e:n;0<=--i;)t.push(i);return t}),gt:ft(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=$.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})$.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})$.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function mt(){}function vt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function yt(a,t,e){var s=t.dir,l=t.next,u=l||s,c=e&&"parentNode"===u,p=b++;return t.first?function(t,e,n){for(;t=t[s];)if(1===t.nodeType||c)return a(t,e,n);return!1}:function(t,e,n){var i,r,o=[T,p];if(n){for(;t=t[s];)if((1===t.nodeType||c)&&a(t,e,n))return!0}else for(;t=t[s];)if(1===t.nodeType||c)if(i=(r=t[S]||(t[S]={}))[t.uniqueID]||(r[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[s]||t;else{if((r=i[u])&&r[0]===T&&r[1]===p)return o[2]=r[2];if((i[u]=o)[2]=a(t,e,n))return!0}return!1}}function bt(r){return 1<r.length?function(t,e,n){for(var i=r.length;i--;)if(!r[i](t,e,n))return!1;return!0}:r[0]}function $t(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),u&&e.push(s)));return a}function wt(d,f,g,m,v,t){return m&&!m[S]&&(m=wt(m)),v&&!v[S]&&(v=wt(v,t)),ut(function(t,e,n,i){var r,o,a,s=[],l=[],u=e.length,c=t||function(t,e,n){for(var i=0,r=e.length;i<r;i++)st(t,e[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),p=!d||!t&&f?c:$t(c,s,d,n,i),h=g?v||(t?d:u||m)?[]:e:p;if(g&&g(p,h,n,i),m)for(r=$t(h,l),m(r,[],n,i),o=r.length;o--;)(a=r[o])&&(h[l[o]]=!(p[l[o]]=a));if(t){if(v||d){if(v){for(r=[],o=h.length;o--;)(a=h[o])&&r.push(p[o]=a);v(null,h=[],r,i)}for(o=h.length;o--;)(a=h[o])&&-1<(r=v?L(t,a):s[o])&&(t[r]=!(e[r]=a))}}else h=$t(h===e?h.splice(u,h.length):h),v?v(null,e,h,i):j.apply(e,h)})}function xt(m,v){function t(t,e,n,i,r){var o,a,s,l=0,u="0",c=t&&[],p=[],h=w,d=t||b&&$.find.TAG("*",r),f=T+=null==h?1:Math.random()||.1,g=d.length;for(r&&(w=e==C||e||r);u!==g&&null!=(o=d[u]);u++){if(b&&o){for(a=0,e||o.ownerDocument==C||(x(o),n=!k);s=m[a++];)if(s(o,e||C,n)){i.push(o);break}r&&(T=f)}y&&((o=!s&&o)&&l--,t&&c.push(o))}if(l+=u,y&&u!==l){for(a=0;s=v[a++];)s(c,p,e,n);if(t){if(0<l)for(;u--;)c[u]||p[u]||(p[u]=I.call(i));p=$t(p)}j.apply(i,p),r&&!t&&0<p.length&&1<l+v.length&&st.uniqueSort(i)}return r&&(T=f,w=h),c}var y=0<v.length,b=0<m.length;return y?ut(t):t}return mt.prototype=$.filters=$.pseudos,$.setFilters=new mt,d=st.tokenize=function(t,e){var n,i,r,o,a,s,l,u=D[t+" "];if(u)return e?0:u.slice(0);for(a=t,s=[],l=$.preFilter;a;){for(o in n&&!(i=W.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=z.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(V," ")}),a=a.slice(n.length)),$.filter)!(i=J[o].exec(a))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return e?a.length:a?st.error(t):D(t,s).slice(0)},f=st.compile=function(t,e){var n,i=[],r=[],o=A[t+" "];if(!o){for(n=(e=e||d(t)).length;n--;)((o=function t(e){for(var i,n,r,o=e.length,a=$.relative[e[0].type],s=a||$.relative[" "],l=a?1:0,u=yt(function(t){return t===i},s,!0),c=yt(function(t){return-1<L(i,t)},s,!0),p=[function(t,e,n){return n=!a&&(n||e!==w)||((i=e).nodeType?u:c)(t,e,n),i=null,n}];l<o;l++)if(n=$.relative[e[l].type])p=[yt(bt(p),n)];else{if((n=$.filter[e[l].type].apply(null,e[l].matches))[S]){for(r=++l;r<o&&!$.relative[e[r].type];r++);return wt(1<l&&bt(p),1<l&&vt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(V,"$1"),n,l<r&&t(e.slice(l,r)),r<o&&t(e=e.slice(r)),r<o&&vt(e))}p.push(n)}return bt(p)}(e[n]))[S]?i:r).push(o);(o=A(t,xt(r,i))).selector=t}return o},g=st.select=function(t,e,n,i){var r,o,a,s,l,u="function"==typeof t&&t,c=!i&&d(t=u.selector||t);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===e.nodeType&&k&&$.relative[o[1].type]){if(!(e=($.find.ID(a.matches[0].replace(it,p),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=J.needsContext.test(t)?0:o.length;r--&&(a=o[r],!$.relative[s=a.type]);)if((l=$.find[s])&&(i=l(a.matches[0].replace(it,p),nt.test(o[0].type)&&gt(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&vt(o)))return j.apply(n,i),n;break}}return(u||f(t,c))(i,e,!k,n,!e||nt.test(t)&&gt(e.parentNode)||e),n},h.sortStable=S.split("").sort(P).join("")===S,h.detectDuplicates=!!u,x(),h.sortDetached=ct(function(t){return 1&t.compareDocumentPosition(C.createElement("fieldset"))}),ct(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||pt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),h.attributes&&ct(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||pt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ct(function(t){return null==t.getAttribute("disabled")})||pt(F,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(e=t.getAttributeNode(e))&&e.specified?e.value:null}),st}(x);k.find=d,k.expr=d.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=d.uniqueSort,k.text=d.getText,k.isXMLDoc=d.isXML,k.contains=d.contains,k.escapeSelector=d.escape;function w(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&k(t).is(n))break;i.push(t)}return i}function S(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var T=k.expr.match.needsContext;function E(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(t,n,i){return b(n)?k.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?k.grep(t,function(t){return t===n!==i}):"string"!=typeof n?k.grep(t,function(t){return-1<r.call(n,t)!==i}):k.filter(n,t,i)}k.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?k.find.matchesSelector(i,t)?[i]:[]:k.find.matches(t,k.grep(e,function(t){return 1===t.nodeType}))},k.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(k(t).filter(function(){for(e=0;e<i;e++)if(k.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)k.find(t,r[e],n);return 1<i?k.uniqueSort(n):n},filter:function(t){return this.pushStack(A(this,t||[],!1))},not:function(t){return this.pushStack(A(this,t||[],!0))},is:function(t){return!!A(this,"string"==typeof t&&T.test(t)?k(t):t||[],!1).length}});var O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(t,e,n){if(!t)return this;if(n=n||P,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==n.ready?n.ready(t):t(k):k.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:O.exec(t))||!i[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(i[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:C,!0)),D.test(i[1])&&k.isPlainObject(e))for(var i in e)b(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(t=C.getElementById(i[2]))&&(this[0]=t,this.length=1),this}).prototype=k.fn;var P=k(C),M=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function R(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(k.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&k(t);if(!T.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&k.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?k.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?r.call(k(t),this[0]):r.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1}
vendor: 5,111 bytes, line 1
1,add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return w(t,"parentNode")},parentsUntil:function(t,e,n){return w(t,"parentNode",n)},next:function(t){return R(t,"nextSibling")},prev:function(t){return R(t,"previousSibling")},nextAll:function(t){return w(t,"nextSibling")},prevAll:function(t){return w(t,"previousSibling")},nextUntil:function(t,e,n){return w(t,"nextSibling",n)},prevUntil:function(t,e,n){return w(t,"previousSibling",n)},siblings:function(t){return S((t.parentNode||{}).firstChild,t)},children:function(t){return S(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(E(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},function(i,r){k.fn[i]=function(t,e){var n=k.map(this,r,t);return(e="Until"!==i.slice(-5)?t:e)&&"string"==typeof e&&(n=k.filter(e,n)),1<this.length&&(I[i]||k.uniqueSort(n),M.test(i)&&n.reverse()),this.pushStack(n)}});var j=/[^\x20\t\r\n\f]+/g;function N(t){return t}function L(t){throw t}function F(t,e,n,i){var r;try{t&&b(r=t.promise)?r.call(t).done(e).fail(n):t&&b(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}k.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},k.each(t.match(j)||[],function(t,e){n[e]=!0}),n):k.extend({},i);function r(){for(s=s||i.once,a=o=!0;u.length;c=-1)for(e=u.shift();++c<l.length;)!1===l[c].apply(e[0],e[1])&&i.stopOnFalse&&(c=l.length,e=!1);i.memory||(e=!1),o=!1,s&&(l=e?[]:"")}var o,e,a,s,l=[],u=[],c=-1,p={add:function(){return l&&(e&&!o&&(c=l.length-1,u.push(e)),function n(t){k.each(t,function(t,e){b(e)?i.unique&&p.has(e)||l.push(e):e&&e.length&&"string"!==f(e)&&n(e)})}(arguments),e&&!o&&r()),this},remove:function(){return k.each(arguments,function(t,e){for(var n;-1<(n=k.inArray(e,l,n));)l.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<k.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=u=[],l=e="",this},disabled:function(){return!l},lock:function(){return s=u=[],e||o||(l=e=""),this},locked:function(){return!!s},fireWith:function(t,e){return s||(e=[t,(e=e||[]).slice?e.slice():e],u.push(e),o||r()),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!a}};return p},k.extend({Deferred:function(t){var o=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var r=arguments;return k.Deferred(function(i){k.each(o,function(t,e){var n=b(r[e[4]])&&r[e[4]];s[e[1]](function(){var t=n&&n.apply(this,arguments);t&&b(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this,n?[t]:arguments)})}),r=null}).promise()},then:function(e,n,i){var l=0;function u(r,o,a,s){return function(){function t(){var t,e;if(!(r<l)){if((t=a.apply(n,i))===o.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,b(e)?s?e.call(t,u(l,o,N,s),u(l,o,L,s)):(l++,e.call(t,u(l,o,N,s),u(l,o,L,s),u(l,o,N,o.notifyWith))):(a!==N&&(n=void 0,i=[t]),(s||o.resolveWith)(n,i))}}var n=this,i=arguments,e=s?t:function(){try{t()}catch(t){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(t,e.stackTrace),l<=r+1&&(a!==L&&(n=void 0,i=[t]),o.rejectWith(n,i))}};r?e():(k.Deferred.getStackHook&&(e.stackTrace=k.Deferred.getStackHook()),x.setTimeout(e))}}return k.Deferred(function(t){o[0][3].add(u(0,t,b(i)?i:N,t.notifyWith)),o[1][3].add(u(0,t,b(e)?e:N)),o[2][3].add(u(0,t,b(n)?n:L))}).promise()},promise:function(t){return null!=t?k.extend(t,a):a}},s={};return k.each(o,function(t,e){var n=e[2],i=e[5];a[e[1]]=n.add,i&&n.add(function(){r=i},o[3-t][2].disable,o[3-t][3].disable,o[0][2].lock,o[0][3].lock),n.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=n.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){function e(e){return function(t){r[e]=this,o[e]=1<arguments.length?s.call(arguments):t,--n||a.resolveWith(r,o)}}var n=arguments.length,i=n,r=Array(i),o=s.call(arguments),a=k.Deferred();if(n<=1&&(F(t,a.done(e(i)).resolve,a.reject,!n),"pending"===a.state()||b(o[i]&&o[i].then)))return a.then();for(;i--;)F(o[i],e(i),a.reject);return a.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(t,e){x.console&&x.console.warn&&t&&U.test(t.name)&&x.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){x.setTimeout(function(){throw t})};var q=k.Deferred();function _(){C.removeEventListener("DOMContentLoaded",_),x.removeEventListener("load",_),k.ready()}
vendor: 6,129 bytes, line 1
1k.fn.ready=function(t){return q.then(t).catch(function(t){k.readyException(t)}),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0)!==t&&0<--k.readyWait||q.resolveWith(C,[k])}}),k.ready.then=q.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?x.setTimeout(k.ready):(C.addEventListener("DOMContentLoaded",_),x.addEventListener("load",_));var H=function(t,e,n,i,r,o,a){var s=0,l=t.length,u=null==n;if("object"===f(n))for(s in r=!0,n)H(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,b(i)||(a=!0),e=u?a?(e.call(t,i),null):(u=e,function(t,e,n){return u.call(k(t),n)}):e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:u?e.call(t):l?e(t[0],n):o},B=/^-ms-/,V=/-([a-z])/g;function W(t,e){return e.toUpperCase()}function z(t){return t.replace(B,"ms-").replace(V,W)}function X(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function Y(){this.expando=k.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(t){var e=t[this.expando];return e||(e={},X(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[z(e)]=n;else for(i in e)r[z(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][z(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(z):(e=z(e))in i?[e]:e.match(j)||[]).length;for(;n--;)delete i[e[n]]}void 0!==e&&!k.isEmptyObject(i)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var G=new Y,J=new Y,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(t,e,n){var i,r;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(K,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:Q.test(r)?JSON.parse(r):r)}catch(t){}J.set(t,e,n)}else n=void 0;return n}k.extend({hasData:function(t){return J.hasData(t)||G.hasData(t)},data:function(t,e,n){return J.access(t,e,n)},removeData:function(t,e){J.remove(t,e)},_data:function(t,e,n){return G.access(t,e,n)},_removeData:function(t,e){G.remove(t,e)}}),k.fn.extend({data:function(n,t){var e,i,r,o=this[0],a=o&&o.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){J.set(this,n)}):H(this,function(t){var e;return o&&void 0===t?void 0!==(e=J.get(o,n))||void 0!==(e=Z(o,n))?e:void 0:void this.each(function(){J.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(r=J.get(o),1===o.nodeType&&!G.get(o,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(i=a[e].name).indexOf("data-")&&(i=z(i.slice(5)),Z(o,i,r[i]));G.set(o,"hasDataAttrs",!0)}return r},removeData:function(t){return this.each(function(){J.remove(this,t)})}}),k.extend({queue:function(t,e,n){var i;if(t)return i=G.get(t,e=(e||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=G.access(t,e,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){var n=k.queue(t,e=e||"fx"),i=n.length,r=n.shift(),o=k._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){k.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return G.get(t,n)||G.access(t,n,{empty:k.Callbacks("once memory").add(function(){G.remove(t,[e+"queue",n])})})}}),k.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?k.queue(this[0],e):void 0===n?this:this.each(function(){var t=k.queue(this,e,n);k._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&k.dequeue(this,e)})},dequeue:function(t){return this.each(function(){k.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--r||o.resolveWith(a,[a])}var i,r=1,o=k.Deferred(),a=this,s=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(i=G.get(a[s],t+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],it=C.documentElement,rt=function(t){return k.contains(t.ownerDocument,t)},ot={composed:!0};it.getRootNode&&(rt=function(t){return k.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});var at=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&rt(t)&&"none"===k.css(t,"display")};function st(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return k.css(t,e,"")},l=s(),u=n&&n[3]||(k.cssNumber[e]?"":"px"),c=t.nodeType&&(k.cssNumber[e]||"px"!==u&&+l)&&et.exec(k.css(t,e));if(c&&c[3]!==u){for(u=u||c[3],c=+(l/=2)||1;a--;)k.style(t,e,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;k.style(t,e,(c*=2)+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var lt={};function ut(t,e){for(var n,i,r,o,a,s=[],l=0,u=t.length;l<u;l++)(i=t[l]).style&&(n=i.style.display,e?("none"===n&&(s[l]=G.get(i,"display")||null,s[l]||(i.style.display="")),""===i.style.display&&at(i)&&(s[l]=(a=o=void 0,o=(r=i).ownerDocument,a=r.nodeName,(r=lt[a])||(o=o.body.appendChild(o.createElement(a)),r=k.css(o,"display"),o.parentNode.removeChild(o),lt[a]=r="none"===r?"block":r)))):"none"!==n&&(s[l]="none",G.set(i,"display",n)));for(l=0;l<u;l++)null!=s[l]&&(t[l].style.display=s[l]);return t}k.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){at(this)?k(this).show():k(this).hide()})}});var ct=/^(?:checkbox|radio)$/i,pt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ht=/^$|^module$|\/(?:java|ecma)script/i;p=C.createDocumentFragment().appendChild(C.createElement("div")),(d=C.createElement("input")).setAttribute("type","radio"),d.setAttribute("checked","checked"),d.setAttribute("name","t"),p.appendChild(d),y.checkClone
vendor: 5,838 bytes, line 1
1=p.cloneNode(!0).cloneNode(!0).lastChild.checked,p.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!p.cloneNode(!0).lastChild.defaultValue,p.innerHTML="<option></option>",y.option=!!p.lastChild;var dt={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,"",""]};function ft(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&E(t,e)?k.merge([t],n):n}function gt(t,e){for(var n=0,i=t.length;n<i;n++)G.set(t[n],"globalEval",!e||G.get(e[n],"globalEval"))}dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td,y.option||(dt.optgroup=dt.option=[1,"<select multiple='multiple'>","</select>"]);var mt=/<|&#?\w+;/;function vt(t,e,n,i,r){for(var o,a,s,l,u,c=e.createDocumentFragment(),p=[],h=0,d=t.length;h<d;h++)if((o=t[h])||0===o)if("object"===f(o))k.merge(p,o.nodeType?[o]:o);else if(mt.test(o)){for(a=a||c.appendChild(e.createElement("div")),s=(pt.exec(o)||["",""])[1].toLowerCase(),s=dt[s]||dt._default,a.innerHTML=s[1]+k.htmlPrefilter(o)+s[2],u=s[0];u--;)a=a.lastChild;k.merge(p,a.childNodes),(a=c.firstChild).textContent=""}else p.push(e.createTextNode(o));for(c.textContent="",h=0;o=p[h++];)if(i&&-1<k.inArray(o,i))r&&r.push(o);else if(l=rt(o),a=ft(c.appendChild(o),"script"),l&&gt(a),n)for(u=0;o=a[u++];)ht.test(o.type||"")&&n.push(o);return c}var yt=/^([^.]*)(?:\.(.+)|)/;function bt(){return!0}function $t(){return!1}function wt(t,e){return t===function(){try{return C.activeElement}catch(t){}}()==("focus"===e)}function xt(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)xt(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=$t;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return k().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),t.each(function(){k.event.add(this,e,r,i,n)})}function Ct(t,r,o){o?(G.set(t,r,!1),k.event.add(t,r,{namespace:!1,handler:function(t){var e,n,i=G.get(this,r);if(1&t.isTrigger&&this[r]){if(i.length)(k.event.special[r]||{}).delegateType&&t.stopPropagation();else if(i=s.call(arguments),G.set(this,r,i),e=o(this,r),this[r](),i!==(n=G.get(this,r))||e?G.set(this,r,!1):n={},i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n&&n.value}else i.length&&(G.set(this,r,{value:k.event.trigger(k.extend(i[0],k.Event.prototype),i.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===G.get(t,r)&&k.event.add(t,r,bt)}k.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,u,c,p,h,d,f=G.get(e);if(X(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&k.find.matchesSelector(it,r),n.guid||(n.guid=k.guid++),(s=f.events)||(s=f.events=Object.create(null)),(a=f.handle)||(a=f.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(j)||[""]).length;l--;)p=d=(u=yt.exec(t[l])||[])[1],h=(u[2]||"").split(".").sort(),p&&(c=k.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,c=k.event.special[p]||{},u=k.extend({type:p,origType:d,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:h.join(".")},o),(d=s[p])||((d=s[p]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,h,a)||e.addEventListener&&e.addEventListener(p,a)),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),k.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,u,c,p,h,d,f,g,m=G.hasData(t)&&G.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(j)||[""]).length;u--;)if(d=g=(s=yt.exec(e[u])||[])[1],f=(s[2]||"").split(".").sort(),d){for(p=k.event.special[d]||{},h=l[d=(i?p.delegateType:p.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!r&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,p.remove&&p.remove.call(t,c));a&&!h.length&&(p.teardown&&!1!==p.teardown.call(t,f,m.handle)||k.removeEvent(t,d,m.handle),delete l[d])}else for(d in l)k.event.remove(t,d+e[u],n,i,!0);k.isEmptyObject(l)&&G.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a=new Array(arguments.length),s=k.event.fix(t),l=(G.get(this,"events")||Object.create(null))[s.type]||[],t=k.event.special[s.type]||{};for(a[0]=s,e=1;e<arguments.length;e++)a[e]=arguments[e];if(s.delegateTarget=this,!t.preDispatch||!1!==t.preDispatch.call(this,s)){for(o=k.event.handlers.call(this,s,l),e=0;(i=o[e++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(r=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==r.namespace&&!s.rnamespace.test(r.namespace)||(s.handleObj=r,s.data=r.data,void 0!==(r=((k.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,a))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return t.postDispatch&&t.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&1<=t.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?-1<k(r,this).index(u):k.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 16,018 bytes, line 1
1,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[k.expando]?t:new k.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return ct.test(t.type)&&t.click&&E(t,"input")&&Ct(t,"click",bt),!1},trigger:function(t){t=this||t;return ct.test(t.type)&&t.click&&E(t,"input")&&Ct(t,"click"),!0},_default:function(t){t=t.target;return ct.test(t.type)&&t.click&&E(t,"input")&&G.get(t,"click")||E(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},k.Event=function(t,e){if(!(this instanceof k.Event))return new k.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?bt:$t,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:$t,isPropagationStopped:$t,isImmediatePropagationStopped:$t,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=bt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=bt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=bt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.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,code:!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:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(t,e){k.event.special[t]={setup:function(){return Ct(this,t,wt),!1},trigger:function(){return Ct(this,t),!0},_default:function(){return!0},delegateType:e}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,r){k.event.special[t]={delegateType:r,bindType:r,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||k.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=r),e}}}),k.fn.extend({on:function(t,e,n,i){return xt(this,t,e,n,i)},one:function(t,e,n,i){return xt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,k(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=$t),this.each(function(){k.event.remove(this,t,n,e)});for(r in t)this.off(r,e,t[r]);return this}});var kt=/<script|<style|<link/i,St=/checked\s*(?:[^=]|=\s*.checked.)/i,Tt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Et(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function At(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ot(t,e){var n,i,r,o;if(1===e.nodeType){if(G.hasData(t)&&(o=G.get(t).events))for(r in G.remove(e,"handle events"),o)for(n=0,i=o[r].length;n<i;n++)k.event.add(e,r,o[r][n]);J.hasData(t)&&(t=J.access(t),t=k.extend({},t),J.set(e,t))}}function Pt(n,i,r,o){i=m(i);var t,e,a,s,l,u,c=0,p=n.length,h=p-1,d=i[0],f=b(d);if(f||1<p&&"string"==typeof d&&!y.checkClone&&St.test(d))return n.each(function(t){var e=n.eq(t);f&&(i[0]=d.call(this,t,e.html())),Pt(e,i,r,o)});if(p&&(e=(t=vt(i,n[0].ownerDocument,!1,n,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(s=(a=k.map(ft(t,"script"),Dt)).length;c<p;c++)l=t,c!==h&&(l=k.clone(l,!0,!0),s&&k.merge(a,ft(l,"script"))),r.call(n[c],l,c);if(s)for(u=a[a.length-1].ownerDocument,k.map(a,At),c=0;c<s;c++)l=a[c],ht.test(l.type||"")&&!G.access(l,"globalEval")&&k.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?k._evalUrl&&!l.noModule&&k._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):$(l.textContent.replace(Tt,""),l,u))}return n}function Mt(t,e,n){for(var i,r=e?k.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||k.cleanData(ft(i)),i.parentNode&&(n&&rt(i)&&gt(ft(i,"script")),i.parentNode.removeChild(i));return t}k.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s,l,u,c=t.cloneNode(!0),p=rt(t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(a=ft(c),i=0,r=(o=ft(t)).length;i<r;i++)s=o[i],l=a[i],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&ct.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(e)if(n)for(o=o||ft(t),a=a||ft(c),i=0,r=o.length;i<r;i++)Ot(o[i],a[i]);else Ot(t,c);return 0<(a=ft(c,"script")).length&&gt(a,!p&&ft(t,"script")),c},cleanData:function(t){for(var e,n,i,r=k.event.special,o=0;void 0!==(n=t[o]);o++)if(X(n)){if(e=n[G.expando]){if(e.events)for(i in e.events)r[i]?k.event.remove(n,i):k.removeEvent(n,i,e.handle);n[G.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Mt(this,t,!0)},remove:function(t){return Mt(this,t)},text:function(t){return H(this,function(t){return void 0===t?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Pt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Et(this,t).appendChild(t)})},prepend:function(){return Pt(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Et(this,t)).insertBefore(t,e.firstChild)})},before:function(){return Pt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Pt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(ft(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return H(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!kt.test(t)&&!dt[(pt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(k.cleanData(ft(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return Pt(this,arguments,function(t){var e=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(ft(this)),e&&e.replaceChild(t,this))},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){k.fn[t]=function(t){for(var e,n=[],i=k(t),r=i.length-1,o=0;o<=r;o++)e=o===r?this:this.clone(!0),k(i[o])[a](e),l.apply(n,e.get());return this.pushStack(n)}});function It(t,e,n){var i,r={};for(i in e)r[i]=t.style[i],t.style[i]=e[i];for(i in n=n.call(t),e)t.style[i]=r[i];return n}var Rt,jt,Nt,Lt,Ft,Ut,qt,_t,Ht=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Bt=function(t){var e=t.ownerDocument.defaultView;return(e=!e||!e.opener?x:e).getComputedStyle(t)},Vt=new RegExp(nt.join("|"),"i");function Wt(){var t;_t&&(qt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",_t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",it.appendChild(qt).appendChild(_t),t=x.getComputedStyle(_t),Rt="1%"!==t.top,Ut=12===zt(t.marginLeft),_t.style.right="60%",Lt=36===zt(t.right),jt=36===zt(t.width),_t.style.position="absolute",Nt=12===zt(_t.offsetWidth/3),it.removeChild(qt),_t=null)}function zt(t){return Math.round(parseFloat(t))}function Xt(t,e,n){var i,r,o=t.style;return(n=n||Bt(t))&&(""!==(r=n.getPropertyValue(e)||n[e])||rt(t)||(r=k.style(t,e)),!y.pixelBoxStyles()&&Ht.test(r)&&Vt.test(e)&&(i=o.width,t=o.minWidth,e=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=n.width,o.width=i,o.minWidth=t,o.maxWidth=e)),void 0!==r?r+"":r}function Yt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}qt=C.createElement("div"),(_t=C.createElement("div")).style&&(_t.style.backgroundClip="content-box",_t.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===_t.style.backgroundClip,k.extend(y,{boxSizingReliable:function(){return Wt(),jt},pixelBoxStyles:function(){return Wt(),Lt},pixelPosition:function(){return Wt(),Rt},reliableMarginLeft:function(){return Wt(),Ut},scrollboxSize:function(){return Wt(),Nt},reliableTrDimensions:function(){var t,e,n;return null==Ft&&(t=C.createElement("table"),e=C.createElement("tr"),n=C.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",it.appendChild(t).appendChild(e).appendChild(n),n=x.getComputedStyle(e),Ft=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===e.offsetHeight,it.removeChild(t)),Ft}}));var Gt=["Webkit","Moz","ms"],Jt=C.createElement("div").style,Qt={};function Kt(t){var e=k.cssProps[t]||Qt[t];return e||(t in Jt?t:Qt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Gt.length;n--;)if((t=Gt[n]+e)in Jt)return t}(t)||t)}var Zt=/^(none|table(?!-c[ea]).+)/,te=/^--/,ee={position:"absolute",visibility:"hidden",display:"block"},ne={letterSpacing:"0",fontWeight:"400"};function ie(t,e,n){var i=et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function re(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=k.css(t,n+nt[a],!0,r)),i?("content"===n&&(l-=k.css(t,"padding"+nt[a],!0,r)),"margin"!==n&&(l-=k.css(t,"border"+nt[a]+"Width",!0,r))):(l+=k.css(t,"padding"+nt[a],!0,r),"padding"!==n?l+=k.css(t,"border"+nt[a]+"Width",!0,r):s+=k.css(t,"border"+nt[a]+"Width",!0,r));return!i&&0<=o&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function oe(t,e,n){var i=Bt(t),r=(!y.boxSizingReliable()||n)&&"border-box"===k.css(t,"boxSizing",!1,i),o=r,a=Xt(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Ht.test(a)){if(!n)return a;a="auto"}return(!y.boxSizingReliable()&&r||!y.reliableTrDimensions()&&E(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===k.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+re(t,e,n||(r?"border":"content"),o,i,a)+"px"}function ae(t,e,n,i,r){return new ae.prototype.init(t,e,n,i,r)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e){t=Xt(t,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=z(e),l=te.test(e),u=t.style;if(l||(e=Kt(s)),a=k.cssHooks[e]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:u[e];"string"===(o=typeof n)&&(r=et.exec(n))&&r[1]&&(n=st(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(k.cssNumber[s]?"":"px")),y.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o=z(e);return te.test(e)||(e=Kt(o)),"normal"===(r=void 0===(r=(o=k.cssHooks[e]||k.cssHooks[o])&&"get"in o?o.get(t,!0,n):r)?Xt(t,e,i):r)&&e in ne&&(r=ne[e]),""===n||n?(e=parseFloat(r),!0===n||isFinite(e)?e||0:r):r}}),k.each(["height","width"],function(t,s){k.cssHooks[s]={get:function(t,e,n){if(e)return!Zt.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?oe(t,s,n):It(t,ee,function(){return oe(t,s,n)})},set:function(t,e,n){var i,r=Bt(t),o=!y.scrollboxSize()&&"absolute"===r.position,a=(o||n)&&"border-box"===k.css(t,"boxSizing",!1,r),n=n?re(t,s,n,a,r):0;return a&&o&&(n-=Math.ceil(t["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(r[s])-re(t,s,"border",!1,r)-.5)),n&&(i=et.exec(e))&&"px"!==(i[3]||"px")&&(t.style[s]=e,e=k.css(t,s)),ie(0,e,n)}}}),k.cssHooks.marginLeft=Yt(y.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Xt(t,"marginLeft"))||t.getBoundingClientRect().left-It(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(r,o){k.cssHooks[r+o]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[r+nt[e]+o]=i[e]||i[e-2]||i[0];return n}},"margin"!==r&&(k.cssHooks[r+o].set=ie)}),k.fn.extend({css:function(t,e){return H(this,function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Bt(t),r=e.length;a<r;a++)o[e[a]]=k.css(t,e[a],!1,i);return o}return void 0!==n?k.style(t,e,n):k.css(t,e)},t,e,1<arguments.length)}}),(k.Tween=ae).prototype={constructor:ae,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var t=ae.propHooks[this.prop];return(t&&t.get?t:ae.propHooks._default).get(this)},run:function(t){var e,n=ae.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:ae.propHooks._default).set(this),this}},ae.prototype.init.prototype=ae.prototype,ae.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=k.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||!k.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}},ae.propHooks.scrollTop=ae.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=ae.prototype.init,k.fx.step={};var se,le,ue=/^(?:toggle|show|hide)$/,ce=/queueHooks$/;function pe(){le&&(!1===C.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(pe):x.setTimeout(pe,k.fx.interval),k.fx.tick())}function he(){return x.setTimeout(function(){se=void 0}),se=Date.now()}function de(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=nt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function fe(t,e,n){for(var i,r=(ge.tweeners[e]||[]).concat(ge.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function ge(r,t,e){var n,o,i=0,a=ge.prefilters.length,s=k.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=se||he(),t=Math.max(0,u.startTime+u.duration-t),e=1-(t/u.duration||0),n=0,i=u.tweens.length;n<i;n++)u.tweens[n].run(e);return s.notifyWith(r,[u,e,t]),e<1&&i?t:(i||s.notifyWith(r,[u,1,0]),s.resolveWith(r,[u]),!1)},u=s.promise({elem:r,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},e),originalProperties:t,originalOptions:e,startTime:se||he(),duration:e.duration,tweens:[],createTween:function(t,e){t=k.Tween(r,u.opts,t,e,u.opts.specialEasing[t]||u.o
vendor: 4,775 bytes, line 1
1pts.easing);return u.tweens.push(t),t},stop:function(t){var e=0,n=t?u.tweens.length:0;if(o)return this;for(o=!0;e<n;e++)u.tweens[e].run(1);return t?(s.notifyWith(r,[u,1,0]),s.resolveWith(r,[u,t])):s.rejectWith(r,[u,t]),this}}),c=u.props;for(!function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=z(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=k.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,u.opts.specialEasing);i<a;i++)if(n=ge.prefilters[i].call(u,r,c,u.opts))return b(n.stop)&&(k._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return k.map(c,fe,u),b(u.opts.start)&&u.opts.start.call(r,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),k.fx.timer(k.extend(l,{elem:r,anim:u,queue:u.opts.queue})),u}k.Animation=k.extend(ge,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return st(n.elem,t,et.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,r=(t=b(t)?(e=t,["*"]):t.match(j)).length;i<r;i++)n=t[i],ge.tweeners[n]=ge.tweeners[n]||[],ge.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,u,c="width"in e||"height"in e,p=this,h={},d=t.style,f=t.nodeType&&at(t),g=G.get(t,"fxshow");for(i in n.queue||(null==(a=k._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,k.queue(t,"fx").length||a.empty.fire()})})),e)if(r=e[i],ue.test(r)){if(delete e[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;f=!0}h[i]=g&&g[i]||k.style(t,i)}if((l=!k.isEmptyObject(e))||!k.isEmptyObject(h))for(i in c&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(u=g&&g.display)&&(u=G.get(t,"display")),"none"===(c=k.css(t,"display"))&&(u?c=u:(ut([t],!0),u=t.style.display||u,c=k.css(t,"display"),ut([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===k.css(t,"float")&&(l||(p.done(function(){d.display=u}),null==u&&(c=d.display,u="none"===c?"":c)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",p.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1,h)l||(g?"hidden"in g&&(f=g.hidden):g=G.access(t,"fxshow",{display:u}),o&&(g.hidden=!f),f&&ut([t],!0),p.done(function(){for(i in f||ut([t]),G.remove(t,"fxshow"),h)k.style(t,i,h[i])})),l=fe(f?g[i]:0,i,p),i in g||(g[i]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ge.prefilters.unshift(t):ge.prefilters.push(t)}}),k.speed=function(t,e,n){var i=t&&"object"==typeof t?k.extend({},t):{complete:n||!n&&e||b(t)&&t,duration:t,easing:n&&e||e&&!b(e)&&e};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(t,e,n,i){return this.filter(at).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){var r=k.isEmptyObject(e),o=k.speed(t,n,i),i=function(){var t=ge(this,k.extend({},e),o);(r||G.get(this,"finish"))&&t.stop(!0)};return i.finish=i,r||!1===o.queue?this.each(i):this.queue(o.queue,i)},stop:function(r,t,o){function a(t){var e=t.stop;delete t.stop,e(o)}return"string"!=typeof r&&(o=t,t=r,r=void 0),t&&this.queue(r||"fx",[]),this.each(function(){var t=!0,e=null!=r&&r+"queueHooks",n=k.timers,i=G.get(this);if(e)i[e]&&i[e].stop&&a(i[e]);else for(e in i)i[e]&&i[e].stop&&ce.test(e)&&a(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=r&&n[e].queue!==r||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||k.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=G.get(this),n=e[a+"queue"],i=e[a+"queueHooks"],r=k.timers,o=n?n.length:0;for(e.finish=!0,k.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===a&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),k.each(["toggle","show","hide"],function(t,i){var r=k.fn[i];k.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?r.apply(this,arguments):this.animate(de(i,!0),t,e,n)}}),k.each({slideDown:de("show"),slideUp:de("hide"),slideToggle:de("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){k.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),k.timers=[],k.fx.tick=function(){var t,e=0,n=k.timers;for(se=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||k.fx.stop(),se=void 0},k.fx.timer=function(t){k.timers.push(t),k.fx.start()}
vendor: 5,240 bytes, line 1
1,k.fx.interval=13,k.fx.start=function(){le||(le=!0,pe())},k.fx.stop=function(){le=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(i,t){return i=k.fx&&k.fx.speeds[i]||i,this.queue(t=t||"fx",function(t,e){var n=x.setTimeout(t,i);e.stop=function(){x.clearTimeout(n)}})},p=C.createElement("input"),tt=C.createElement("select").appendChild(C.createElement("option")),p.type="checkbox",y.checkOn=""!==p.value,y.optSelected=tt.selected,(p=C.createElement("input")).value="t",p.type="radio",y.radioValue="t"===p.value;var me,ve=k.expr.attrHandle;k.fn.extend({attr:function(t,e){return H(this,k.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){k.removeAttr(this,t)})}}),k.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?k.prop(t,e,n):(1===o&&k.isXMLDoc(t)||(r=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?me:void 0)),void 0!==n?null===n?void k.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):!(r&&"get"in r&&null!==(i=r.get(t,e)))&&null==(i=k.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&E(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(j);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),me={set:function(t,e,n){return!1===e?k.removeAttr(t,n):t.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(t,e){var a=ve[e]||k.find.attr;ve[e]=function(t,e,n){var i,r,o=e.toLowerCase();return n||(r=ve[o],ve[o]=i,i=null!=a(t,e,n)?o:null,ve[o]=r),i}});var ye=/^(?:input|select|textarea|button)$/i,be=/^(?:a|area)$/i;function $e(t){return(t.match(j)||[]).join(" ")}function we(t){return t.getAttribute&&t.getAttribute("class")||""}function xe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(j)||[]}k.fn.extend({prop:function(t,e){return H(this,k.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[k.propFix[t]||t]})}}),k.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(t)||(e=k.propFix[e]||e,r=k.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):ye.test(t.nodeName)||be.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(k.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,n,i,r,o,a,s=0;if(b(e))return this.each(function(t){k(this).addClass(e.call(this,t,we(this)))});if((t=xe(e)).length)for(;n=this[s++];)if(a=we(n),i=1===n.nodeType&&" "+$e(a)+" "){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a!==(a=$e(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,a,s=0;if(b(e))return this.each(function(t){k(this).removeClass(e.call(this,t,we(this)))});if(!arguments.length)return this.attr("class","");if((t=xe(e)).length)for(;n=this[s++];)if(a=we(n),i=1===n.nodeType&&" "+$e(a)+" "){for(o=0;r=t[o++];)for(;-1<i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");a!==(a=$e(i))&&n.setAttribute("class",a)}return this},toggleClass:function(r,e){var o=typeof r,a="string"==o||Array.isArray(r);return"boolean"==typeof e&&a?e?this.addClass(r):this.removeClass(r):b(r)?this.each(function(t){k(this).toggleClass(r.call(this,t,we(this),e),e)}):this.each(function(){var t,e,n,i;if(a)for(e=0,n=k(this),i=xe(r);t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==r&&"boolean"!=o||((t=we(this))&&G.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==r&&G.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,i=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+$e(we(e))+" ").indexOf(i))return!0;return!1}});var Ce=/\r/g;k.fn.extend({val:function(e){var n,t,i,r=this[0];return arguments.length?(i=b(e),this.each(function(t){1===this.nodeType&&(null==(t=i?e.call(this,t,k(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=k.map(t,function(t){return null==t?"":t+""})),(n=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):r?(n=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(r,"value"))?t:"string"==typeof(t=r.value)?t.replace(Ce,""):null==t?"":t:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:$e(k.text(t))}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,r="select-one"===t.type,o=r?null:[],a=r?i+1:n.length,s=i<0?a:r?i:0;s<a;s++)if(((e=n[s]).selected||s===i)&&!e.disabled&&(!e.parentNode.disabled||!E(e.parentNode,"optgroup"))){if(e=k(e).val(),r)return e;o.push(e)}return o}
vendor: 15,608 bytes, line 1
1,set:function(t,e){for(var n,i,r=t.options,o=k.makeArray(e),a=r.length;a--;)((i=r[a]).selected=-1<k.inArray(k.valHooks.option.get(i),o))&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<k.inArray(k(t).val(),e)}},y.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),y.focusin="onfocusin"in x;function ke(t){t.stopPropagation()}var Se=/^(?:focusinfocus|focusoutblur)$/;k.extend(k.event,{trigger:function(t,e,n,i){var r,o,a,s,l,u,c,p=[n||C],h=v.call(t,"type")?t.type:t,d=v.call(t,"namespace")?t.namespace.split("."):[],f=c=o=n=n||C;if(3!==n.nodeType&&8!==n.nodeType&&!Se.test(h+k.event.triggered)&&(-1<h.indexOf(".")&&(h=(d=h.split(".")).shift(),d.sort()),s=h.indexOf(":")<0&&"on"+h,(t=t[k.expando]?t:new k.Event(h,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:k.makeArray(e,[t]),u=k.event.special[h]||{},i||!u.trigger||!1!==u.trigger.apply(n,e))){if(!i&&!u.noBubble&&!g(n)){for(a=u.delegateType||h,Se.test(a+h)||(f=f.parentNode);f;f=f.parentNode)p.push(f),o=f;o===(n.ownerDocument||C)&&p.push(o.defaultView||o.parentWindow||x)}for(r=0;(f=p[r++])&&!t.isPropagationStopped();)c=f,t.type=1<r?a:u.bindType||h,(l=(G.get(f,"events")||Object.create(null))[t.type]&&G.get(f,"handle"))&&l.apply(f,e),(l=s&&f[s])&&l.apply&&X(f)&&(t.result=l.apply(f,e),!1===t.result&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),e)||!X(n)||s&&b(n[h])&&!g(n)&&((o=n[s])&&(n[s]=null),k.event.triggered=h,t.isPropagationStopped()&&c.addEventListener(h,ke),n[h](),t.isPropagationStopped()&&c.removeEventListener(h,ke),k.event.triggered=void 0,o&&(n[s]=o)),t.result}},simulate:function(t,e,n){t=k.extend(new k.Event,n,{type:t,isSimulated:!0});k.event.trigger(t,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each(function(){k.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return k.event.trigger(t,e,n,!0)}}),y.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,i){function r(t){k.event.simulate(i,t.target,k.event.fix(t))}k.event.special[i]={setup:function(){var t=this.ownerDocument||this.document||this,e=G.access(t,i);e||t.addEventListener(n,r,!0),G.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=G.access(t,i)-1;e?G.access(t,i,e):(t.removeEventListener(n,r,!0),G.remove(t,i))}}});var Te=x.location,Ee={guid:Date.now()},De=/\?/;k.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new x.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var Ae=/\[\]$/,Oe=/\r?\n/g,Pe=/^(?:submit|button|image|reset|file)$/i,Me=/^(?:input|select|textarea|keygen)/i;k.param=function(t,e){function n(t,e){e=b(e)?e():e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var i,r=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){n(this.name,this.value)});else for(i in t)!function n(i,t,r,o){if(Array.isArray(t))k.each(t,function(t,e){r||Ae.test(i)?o(i,e):n(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,r,o)});else if(r||"object"!==f(t))o(i,t);else for(var e in t)n(i+"["+e+"]",t[e],r,o)}(i,t[i],e,n);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Me.test(this.nodeName)&&!Pe.test(t)&&(this.checked||!ct.test(t))}).map(function(t,e){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}}):{name:e.name,value:n.replace(Oe,"\r\n")}}).get()}});var Ie=/%20/g,Re=/#.*$/,je=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:GET|HEAD)$/,Fe=/^\/\//,Ue={},qe={},_e="*/".concat("*"),He=C.createElement("a");function Be(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,r=t.toLowerCase().match(j)||[];if(b(e))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function Ve(e,i,r,o){var a={},s=e===qe;function l(t){var n;return a[t]=!0,k.each(e[t]||[],function(t,e){e=e(i,r,o);return"string"!=typeof e||s||a[e]?s?!(n=e):void 0:(i.dataTypes.unshift(e),l(e),!1)}),n}return l(i.dataTypes[0])||!a["*"]&&l("*")}function We(t,e){var n,i,r=k.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i=i||{})[n]=e[n]);return i&&k.extend(!0,t,i),t}He.href=Te.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_e,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":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?We(We(t,k.ajaxSettings),e):We(k.ajaxSettings,t)},ajaxPrefilter:Be(Ue),ajaxTransport:Be(qe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,u,c,n,p,h,d,i,r,f=k.ajaxSetup({},e=e||{}),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?k(g):k.event,v=k.Deferred(),y=k.Callbacks("once memory"),b=f.statusCode||{},o={},a={},s="canceled",$={readyState:0,getResponseHeader:function(t){var e;if(h){if(!n)for(n={};e=Ne.exec(c);)n[e[1].toLowerCase()+" "]=(n[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=n[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?c:null},setRequestHeader:function(t,e){return null==h&&(t=a[t.toLowerCase()]=a[t.toLowerCase()]||t,o[t]=e),this},overrideMimeType:function(t){return null==h&&(f.mimeType=t),this},statusCode:function(t){if(t)if(h)$.always(t[$.status]);else for(var e in t)b[e]=[b[e],t[e]];return this},abort:function(t){t=t||s;return l&&l.abort(t),w(0,t),this}};if(v.promise($),f.url=((t||f.url||Te.href)+"").replace(Fe,Te.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(j)||[""],null==f.crossDomain){r=C.createElement("a");try{r.href=f.url,r.href=r.href,f.crossDomain=He.protocol+"//"+He.host!=r.protocol+"//"+r.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),Ve(Ue,f,e,$),h)return $;for(i in(d=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Le.test(f.type),u=f.url.replace(Re,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ie,"+")):(r=f.url.slice(u.length),f.data&&(f.processData||"string"==typeof f.data)&&(u+=(De.test(u)?"&":"?")+f.data,delete f.data),!1===f.cache&&(u=u.replace(je,"$1"),r=(De.test(u)?"&":"?")+"_="+Ee.guid+++r),f.url=u+r),f.ifModified&&(k.lastModified[u]&&$.setRequestHeader("If-Modified-Since",k.lastModified[u]),k.etag[u]&&$.setRequestHeader("If-None-Match",k.etag[u])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&$.setRequestHeader("Content-Type",f.contentType),$.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+_e+"; q=0.01":""):f.accepts["*"]),f.headers)$.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(g,$,f)||h))return $.abort();if(s="abort",y.add(f.complete),$.done(f.success),$.fail(f.error),l=Ve(qe,f,e,$)){if($.readyState=1,d&&m.trigger("ajaxSend",[$,f]),h)return $;f.async&&0<f.timeout&&(p=x.setTimeout(function(){$.abort("timeout")},f.timeout));try{h=!1,l.send(o,w)}catch(t){if(h)throw t;w(-1,t)}}else w(-1,"No Transport");function w(t,e,n,i){var r,o,a,s=e;h||(h=!0,p&&x.clearTimeout(p),l=void 0,c=i||"",$.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a=a||r}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,$,n)),!i&&-1<k.inArray("script",f.dataTypes)&&k.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),a=function(t,e,n,i){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,a,$,i),i?(f.ifModified&&((n=$.getResponseHeader("Last-Modified"))&&(k.lastModified[u]=n),(n=$.getResponseHeader("etag"))&&(k.etag[u]=n)),204===t||"HEAD"===f.type?s="nocontent":304===t?s="notmodified":(s=a.state,r=a.data,i=!(o=a.error))):(o=s,!t&&s||(s="error",t<0&&(t=0))),$.status=t,$.statusText=(e||s)+"",i?v.resolveWith(g,[r,s,$]):v.rejectWith(g,[$,s,o]),$.statusCode(b),b=void 0,d&&m.trigger(i?"ajaxSuccess":"ajaxError",[$,f,i?r:o]),y.fireWith(g,[$,s]),d&&(m.trigger("ajaxComplete",[$,f]),--k.active||k.event.trigger("ajaxStop")))}return $},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,r){k[r]=function(t,e,n,i){return b(e)&&(i=i||n,n=e,e=void 0),k.ajax(k.extend({url:t,type:r,dataType:i,data:e,success:n},k.isPlainObject(t)&&t))}}),k.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),k._evalUrl=function(t,e,n){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){k.globalEval(t,e,n)}})},k.fn.extend({wrapAll:function(t){return this[0]&&(b(t)&&(t=t.call(this[0])),t=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(n){return b(n)?this.each(function(t){k(this).wrapInner(n.call(this,t))}):this.each(function(){var t=k(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=b(e);return this.each(function(t){k(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(t){}};var ze={0:200,1223:204},Xe=k.ajaxSettings.xhr();y.cors=!!Xe&&"withCredentials"in Xe,y.ajax=Xe=!!Xe,k.ajaxTransport(function(r){var o,a;if(y.cors||Xe&&!r.crossDomain)return{send:function(t,e){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);o=function(t){return function(){o&&(o=a=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(ze[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),a=i.onerror=i.ontimeout=o("error"),void 0!==i.onabort?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&x.setTimeout(function(){o&&a()})},o=o("abort");try{i.send(r.hasContent&&r.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),k.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),k.ajaxTransport("script",function(n){var i,r;if(n.crossDomain||n.scriptAttrs)return{send:function(t,e){i=k("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(t){i.remove(),r=null,t&&e("error"===t.type?404:200,t.type)}),C.head.appendChild(i[0])},abort:function(){r&&r()}}});var Ye=[],Ge=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ye.pop()||k.expando+"_"+Ee.guid++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",function(t,e,n){var i,r,o,a=!1!==t.jsonp&&(Ge.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ge.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=b(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ge,"$1"+i):!1!==t.jsonp&&(t.url+=(De.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||k.error(i+" was not called"),o[0]},t.dataTypes[0]="json",r=x[i],x[i]=function(){o=arguments},n.always(function(){void 0===r?k(x).removeProp(i):x[i]=r,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ye.push(i)),o&&b(r)&&r(o[0]),o=r=void 0}),"script"}),y.createHTMLDocument=((p=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===p.childNodes.length),k.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(y.createHTMLDocument?((i=(e=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,e.head.appendChild(i)):e=C),i=!n&&[],(n=D.exec(t))?[e.createElement(n[1])]:(n=vt([t],e,i),i&&i.length&&k(i).remove(),k.merge([],n.childNodes)));var i},k.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return-1<s&&(i=$e(t.slice(s)),t=t.slice(0,s)),b(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),0<a.length&&k.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?k("<div>").append(k.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(t,e,n){var i,r,o,a,s=k.css(t,"position"),l=k(t),u={};"static"===s&&(t.style.position="relative"),o=l.offset(),i=k.css(t,"top"),a=k.css(t,"left"),a=("absolute"===s||"fixed"===s)&&-1<(i+a).indexOf("auto")?(r=(s=l.position()).top,s.left):(r=parseFloat(i)||0,parseFloat(a)||0),null!=(e=b
1(e)?e.call(t,n,k.extend({},o)):e).top&&(u.top=e.top-o.top+r),null!=e.left&&(u.left=e.left-o.left+a),"using"in e?e.using.call(t,u):l.css(u)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===k.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===k.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=k(t).offset()).top+=k.css(t,"borderTopWidth",!0),r.left+=k.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-k.css(i,"marginTop",!0),left:e.left-r.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===k.css(t,"position");)t=t.offsetParent;return t||it})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var o="pageYOffset"===r;k.fn[e]=function(t){return H(this,function(t,e,n){var i;return g(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n?i?i[r]:t[e]:void(i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):t[e]=n)},e,t,arguments.length)}}),k.each(["top","left"],function(t,n){k.cssHooks[n]=Yt(y.pixelPosition,function(t,e){if(e)return e=Xt(t,n),Ht.test(e)?k(t).position()[n]+"px":e})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(i,o){k.fn[o]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),r=i||(!0===t||!0===e?"margin":"border");return H(this,function(t,e,n){var i;return g(t)?0===o.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+a],i["scroll"+a],t.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?k.css(t,e,r):k.style(t,e,n,r)},s,n?t:void 0,n)}})}),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),k.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(t,n){k.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}});var Je=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;k.proxy=function(t,e){var n,i;if("string"==typeof e&&(i=t[e],e=t,t=i),b(t))return n=s.call(arguments,2),(i=function(){return t.apply(e||this,n.concat(s.call(arguments)))}).guid=t.guid=t.guid||k.guid++,i},k.holdReady=function(t){t?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=E,k.isFunction=b,k.isWindow=g,k.camelCase=z,k.type=f,k.now=Date.now,k.isNumeric=function(t){var e=k.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},k.trim=function(t){return null==t?"":(t+"").replace(Je,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var Qe=x.jQuery,Ke=x.$;return k.noConflict=function(t){return x.$===k&&(x.$=Ke),t&&x.jQuery===k&&(x.jQuery=Qe),k},void 0===t&&(x.jQuery=x.$=k),k}),function(u,at,st){"use strict";function b(a,s){return s=s||Error,function(){var t,e=arguments[0],n="["+(a?a+":":"")+e+"] ",i=arguments[1],r=arguments,o=n+i.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1);return 2+e<r.length?It(r[2+e]):t});for(o=o+"\nhttp://errors.angularjs.org/1.3.14/"+(a?a+"/":"")+e,t=2;t<arguments.length;t++)o=o+(2==t?"?":"&")+"p"+(t-2)+"="+encodeURIComponent(It(arguments[t]));return new s(o)}}var o=/^\/(.+)\/([a-z]*)$/,a="validity",I=function(t){return dt(t)?t.toLowerCase():t},T=Object.prototype.hasOwnProperty,l=function(t){return dt(t)?t.toUpperCase():t};"i"!=="I".toLowerCase()&&(I=function(t){return dt(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},l=function(t){return dt(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t});var W,lt,g,f,i=[].slice,n=[].splice,t=[].push,s=Object.prototype.toString,c=b("ng"),$=u.angular||(u.angular={}),e=0;function R(t){if(null!=t&&!C(t)){var e=t.length;return t.nodeType===Et&&e||(dt(t)||ft(t)||0===e||"number"==typeof e&&0<e&&e-1 in t)}}function ut(t,e,n){if(t)if(gt(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(ft(t)||R(t))for(var i="object"!=typeof t,r=0,o=t.length;r<o;r++)(i||r in t)&&e.call(n,t[r],r,t);else if(t.forEach&&t.forEach!==ut)t.forEach(e,n,t);else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);return t}function z(t){return Object.keys(t).sort()}function m(n){return function(t,e){n(e,t)}}function r(){return++e}function p(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function j(t){for(var e=t.$$hashKey,n=1,i=arguments.length;n<i;n++){var r=arguments[n];if(r)for(var o=Object.keys(r),a=0,s=o.length;a<s;a++){var l=o[a];t[l]=r[l]}}return p(t,e),t}function h(t){return parseInt(t,10)}function ct(t,e){return j(Object.create(t),e)}function pt(){}function d(t){return t}function v(t){return function(){return t}}function P(t){return void 0===t}function X(t){return void 0!==t}function ht(t){return null!==t&&"object"==typeof t}function dt(t){return"string"==typeof t}function w(t){return"number"==typeof t}function x(t){return"[object Date]"===s.call(t)}
1W=at.documentMode,pt.$inject=[],d.$inject=[];var ft=Array.isArray;function gt(t){return"function"==typeof t}function y(t){return"[object RegExp]"===s.call(t)}function C(t){return t&&t.window===t}function mt(t){return t&&t.$evalAsync&&t.$watch}function k(t){return"boolean"==typeof t}function S(t){return t&&gt(t.then)}var vt=function(t){return dt(t)?t.trim():t},E=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function D(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function yt(t){return I(t.nodeName||t[0]&&t[0].nodeName)}function bt(t,e){var n=t.indexOf(e);return 0<=n&&t.splice(n,1),e}function A(t,n,e,i){if(C(t)||mt(t))throw c("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(n){if(t===n)throw c("cpi","Can't copy! Source and destination are identical.");if(e=e||[],i=i||[],ht(t)){var r=e.indexOf(t);if(-1!==r)return i[r];e.push(t),i.push(n)}var o;if(ft(t))for(var a=n.length=0;a<t.length;a++)o=A(t[a],null,e,i),ht(t[a])&&(e.push(t[a]),i.push(o)),n.push(o);else{var s,l=n.$$hashKey;for(s in ft(n)?n.length=0:ut(n,function(t,e){delete n[e]}),t)t.hasOwnProperty(s)&&(o=A(t[s],null,e,i),ht(t[s])&&(e.push(t[s]),i.push(o)),n[s]=o);p(n,l)}}else(n=t)&&(ft(t)?n=A(t,[],e,i):x(t)?n=new Date(t.getTime()):y(t)?(n=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0])).lastIndex=t.lastIndex:ht(t)&&(l=Object.create(Object.getPrototypeOf(t)),n=A(t,l,e,i)));return n}function O(t,e){if(ft(t)){e=e||[];for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}else if(ht(t))for(var r in e=e||{},t)"$"===r.charAt(0)&&"$"===r.charAt(1)||(e[r]=t[r]);return e||t}function $t(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var n,i,r,o=typeof t,a=typeof e;if(o==a&&"object"==o){if(!ft(t)){if(x(t))return!!x(e)&&$t(t.getTime(),e.getTime());if(y(t)&&y(e))return t.toString()==e.toString();if(mt(t)||mt(e)||C(t)||C(e)||ft(e))return!1;for(i in r={},t)if("$"!==i.charAt(0)&&!gt(t[i])){if(!$t(t[i],e[i]))return!1;r[i]=!0}for(i in e)if(!r.hasOwnProperty(i)&&"$"!==i.charAt(0)&&e[i]!==st&&!gt(e[i]))return!1;return!0}if(!ft(e))return!1;if((n=t.length)==e.length){for(i=0;i<n;i++)if(!$t(t[i],e[i]))return!1;return!0}}return!1}var M=function(){if(X(M.isActive_))return M.isActive_;var e=!(!at.querySelector("[ng-csp]")&&!at.querySelector("[data-ng-csp]"));if(!e)try{new Function("")}catch(t){e=!0}return M.isActive_=e};function N(t,e,n){return t.concat(i.call(e,n))}function wt(t,e){return i.call(t,e||0)}function L(t,e){var n=2<arguments.length?wt(arguments,2):[];return!gt(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,N(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function F(t,e){var n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=st:C(e)?n="$WINDOW":e&&at===e?n="$DOCUMENT":mt(e)&&(n="$SCOPE"),n}function U(t,e){return void 0===t?st:(w(e)||(e=e?2:null),JSON.stringify(t,F,e))}function q(t){return dt(t)?JSON.parse(t):t}function xt(t){t=lt(t).clone();try{t.empty()}catch(t){}var e=lt("<div>").append(t).html();try{return t[0].nodeType===Dt?I(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+I(e)})}catch(t){return I(e)}}function _(t){try{return decodeURIComponent(t)}catch(t){}}function H(t){var e,n,i={};return ut((t||"").split("&"),function(t){t&&(e=t.replace(/\+/g,"%20").split("="),X(n=_(e[0]))&&(t=!X(e[1])||_(e[1]),T.call(i,n)?ft(i[n])?i[n].push(t):i[n]=[i[n],t]:i[n]=t))}),i}function B(t){var n=[];return ut(t,function(t,e){ft(t)?ut(t,function(t){n.push(Y(e,!0)+(!0===t?"":"="+Y(t,!0)))}):n.push(Y(e,!0)+(!0===t?"":"="+Y(t,!0)))}),n.length?n.join("&"):""}function V(t){return Y(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Y(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}var G=["ng-","data-ng-","ng:","x-ng-"];function J(n,t){var i,r,e={};ut(G,function(t){t+="app";!i&&n.hasAttribute&&n.hasAttribute(t)&&(r=(i=n).getAttribute(t))}),ut(G,function(t){var e,t=t+"app";!i&&(e=n.querySelector("["+t.replace(":","\\:")+"]"))&&(r=(i=e).getAttribute(t))}),i&&(e.strictDi=null!==function(t,e){var n,i,r=G.length;for(t=lt(t),i=0;i<r;++i)if(n=G[i]+e,dt(n=t.attr(n)))return n;return null}(i,"strict-di"),t(i,r?[r]:[],e))}function Q(e,n,i){i=j({strictDi:!1},i=!ht(i)?{}:i);
1function r(){if((e=lt(e)).injector()){var t=e[0]===at?"document":xt(e);throw c("btstrpd","App Already Bootstrapped with this Element '{0}'",t.replace(/</,"&lt;").replace(/>/,"&gt;"))}return(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng"),(t=De(n,i.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,i){t.$apply(function(){e.data("$injector",i),n(e)(t)})}]),t}var t=/^NG_ENABLE_DEBUG_INFO!/,o=/^NG_DEFER_BOOTSTRAP!/;if(u&&t.test(u.name)&&(i.debugInfoEnabled=!0,u.name=u.name.replace(t,"")),u&&!o.test(u.name))return r();u.name=u.name.replace(o,""),$.resumeBootstrap=function(t){return ut(t,function(t){n.push(t)}),r()},gt($.resumeDeferredBootstrap)&&$.resumeDeferredBootstrap()}function K(){u.name="NG_ENABLE_DEBUG_INFO!"+u.name,u.location.reload()}function Z(t){t=$.element(t).injector();if(!t)throw c("test","no injector found for element argument to getTestability");return t.get("$$testability")}var tt=/[A-Z]/g;function Ct(t,n){return n=n||"_",t.replace(tt,function(t,e){return(e?n:"")+t.toLowerCase()})}var kt,et=!1;function St(t,e,n){if(!t)throw c("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function nt(t,e,n){return St(gt(t=n&&ft(t)?t[t.length-1]:t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function it(t,e){if("hasOwnProperty"===t)throw c("badname","hasOwnProperty is not a valid {0} name",e)}function rt(t,e,n){if(!e)return t;for(var i,r=e.split("."),o=t,a=r.length,s=0;s<a;s++)i=r[s],t=t&&(o=t)[i];return!n&&gt(t)?L(o,t):t}function ot(t){for(var e=t[0],n=t[t.length-1],i=[e];(e=e.nextSibling)&&(i.push(e),e!==n););return lt(i)}function Tt(){return Object.create(null)}var Et=1,Dt=3,At=8,Ot=9,Pt=11;function Mt(t){var u=b("$injector"),n=b("ng");function e(t,e,n){return t[e]||(t[e]=n())}t=e(t,"angular",Object);return t.$$minErr=t.$$minErr||b,e(t,"module",function(){var t={};return function(a,s,l){return function(t,e){if("hasOwnProperty"===t)throw n("badname","hasOwnProperty is not a valid {0} name",e)}(a,"module"),s&&t.hasOwnProperty(a)&&(t[a]=null),e(t,a,function(){if(!s)throw u("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",a);var r=[],t=[],e=[],n=i("$injector","invoke","push",t),o={_invokeQueue:r,_configBlocks:t,_runBlocks:e,requires:s,name:a,provider:i("$provide","provider"),factory:i("$provide","factory"),service:i("$provide","service"),value:i("$provide","value"),constant:i("$provide","constant","unshift"),animation:i("$animateProvider","register"),filter:i("$filterProvider","register"),controller:i("$controllerProvider","register"),directive:i("$compileProvider","directive"),config:n,run:function(t){return e.push(t),this}};return l&&n(l),o;function i(t,e,n,i){return i=i||r,function(){return i[n||"push"]([t,e,arguments]),o}}})}})}function It(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):void 0===t?"undefined":"string"!=typeof t?(e=t,n=[],JSON.stringify(e,function(t,e){if(ht(e=F(t,e))){if(0<=n.indexOf(e))return"<<already seen>>";n.push(e)}return e})):t;var e,n}var Rt={full:"1.3.14",major:1,minor:3,dot:14,codeName:"instantaneous-browserification"};Kt.expando="ng339";var jt=Kt.cache={},Nt=1,Lt=function(t,e,n){t.addEventListener(e,n,!1)},Ft=function(t,e,n){t.removeEventListener(e,n,!1)};Kt._data=function(t){return this.cache[t[this.expando]]||{}};
1var Ut=/([\:\-\_]+(.))/g,qt=/^moz([A-Z])/,_t={mouseleave:"mouseout",mouseenter:"mouseover"},Ht=b("jqLite");function Bt(t){return t.replace(Ut,function(t,e,n,i){return i?n.toUpperCase():n}).replace(qt,"Moz$1")}var Vt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Wt=/<|&#?\w+;/,zt=/<([\w:]+)/,Xt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Yt={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,"",""]};function Gt(t){return!Wt.test(t)}function Jt(t){t=t.nodeType;return t===Et||!t||t===Ot}function Qt(t,e){var n,i,r=e.createDocumentFragment(),o=[];if(Gt(t))o.push(e.createTextNode(t));else{for(n=n||r.appendChild(e.createElement("div")),e=(zt.exec(t)||["",""])[1].toLowerCase(),e=Yt[e]||Yt._default,n.innerHTML=e[1]+t.replace(Xt,"<$1></$2>")+e[2],i=e[0];i--;)n=n.lastChild;o=N(o,n.childNodes),(n=r.firstChild).textContent=""}return r.textContent="",r.innerHTML="",ut(o,function(t){r.appendChild(t)}),r}function Kt(t){if(t instanceof Kt)return t;var e,n,i;if(dt(t)&&(t=vt(t),i=!0),!(this instanceof Kt)){if(i&&"<"!=t.charAt(0))throw Ht("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Kt(t)}le(this,i?(e=t,n=n||at,(i=Vt.exec(e))?[n.createElement(i[1])]:(i=Qt(e,n))?i.childNodes:[]):t)}function Zt(t){return t.cloneNode(!0)}function te(t,e){if(e||ne(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),i=0,r=n.length;i<r;i++)ne(n[i])}function ee(n,t,i,e){if(X(e))throw Ht("offargs","jqLite#off() does not support the `selector` argument");var e=ie(n),r=e&&e.events,o=e&&e.handle;if(o)if(t)ut(t.split(" "),function(t){if(X(i)){var e=r[t];if(bt(e||[],i),e&&0<e.length)return}Ft(n,t,o),delete r[t]});else for(t in r)"$destroy"!==t&&Ft(n,t,o),delete r[t]}function ne(t,e){var n=t.ng339,i=n&&jt[n];i&&(e?delete i.data[e]:(i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),ee(t)),delete jt[n],t.ng339=st))}function ie(t,e){var n=t.ng339,i=n&&jt[n];return e&&!i&&(t.ng339=n=++Nt,i=jt[n]={events:{},data:{},handle:st}),i}function re(t,e,n){if(Jt(t)){var i=X(n),r=!i&&e&&!ht(e),o=!e,t=ie(t,!r),t=t&&t.data;if(!i)return o?t:r?t&&t[e]:void j(t,e);t[e]=n}}function oe(t,e){return!!t.getAttribute&&-1<(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")}function ae(e,t){t&&e.setAttribute&&ut(t.split(" "),function(t){e.setAttribute("class",vt((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+vt(t)+" "," ")))})}function se(t,e){var n;e&&t.setAttribute&&(n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),ut(e.split(" "),function(t){t=vt(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",vt(n)))}function le(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var i=0;i<n;i++)t[t.length++]=e[i]}else t[t.length++]=e}}function ue(t,e){return ce(t,"$"+(e||"ngController")+"Controller")}function ce(t,e,n){t.nodeType==Ot&&(t=t.documentElement);for(var i=ft(e)?e:[e];t;){for(var r=0,o=i.length;r<o;r++)if((n=lt.data(t,i[r]))!==st)return n;t=t.parentNode||t.nodeType===Pt&&t.host}}function pe(t){for(te(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function he(t,e){e||te(t);e=t.parentNode;e&&e.removeChild(t)}Yt.optgroup=Yt.option,Yt.tbody=Yt.tfoot=Yt.colgroup=Yt.caption=Yt.thead,Yt.th=Yt.td;var de=Kt.prototype={ready:function(t){var e=!1;function n(){e||(e=!0,t())}"complete"===at.readyState?setTimeout(n):(this.on("DOMContentLoaded",n),Kt(u).on("load",n))},toString:function(){var e=[];return ut(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(t){return lt(0<=t?this[t]:this[this.length+t])},length:0,push:t,sort:[].sort,splice:[].splice},fe={};ut("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){fe[I(t)]=t});var ge={};ut("input,select,option,textarea,button,form,details".split(","),function(t){ge[t]=!0});var me={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};function ve(t,e){e=fe[e.toLowerCase()];return e&&ge[yt(t)]&&e}function ye(t,e){if(P(e)){var n=t.nodeType;return n===Et||n===Dt?t.textContent:""}t.textContent=e}function be(a,s){function t(t,e){t.isDefaultPrevented=function(){return t.defaultPrevented};var n,i=s[e||t.type],r=i?i.length:0;if(r){P(t.immediatePropagationStopped)&&(n=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){t.immediatePropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),n&&n.call(t)}),t.isImmediatePropagationStopped=function(){return!0===t.immediatePropagationStopped},1<r&&(i=O(i));for(var o=0;o<r;o++)t.isImmediatePropagationStopped()||i[o].call(a,t)}}return t.elem=a,t}function $e(){this.$get=function(){return j(Kt,{hasClass:function(t,e){return oe(t=t.attr?t[0]:t,e)},addClass:function(t,e){return se(t=t.attr?t[0]:t,e)},removeClass:function(t,e){return ae(t=t.attr?t[0]:t,e)}})}}function we(t,e){var n=t&&t.$$hashKey;if(n)return n="function"==typeof n?t.$$hashKey():n;var i=typeof t;return n="function"==i||"object"==i&&null!==t?t.$$hashKey=i+":"+(e||r)():i+":"+t}function xe(t,e){var n;e&&(n=0,this.nextUid=function(){return++n}),ut(t,this.put,this)}ut({data:re,removeData:ne},function(t,e){Kt[e]=t}),ut({data:re,inheritedData:ce,scope:function(t){return lt.data(t,"$scope")||ce(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return lt.data(t,"$isolateScope")||lt.data(t,"$isolateScopeNoTemplate")},controller:ue,injector:function(t){return ce(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:oe,css:function(t,e,n){if(e=Bt(e),!X(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var i=I(e);if(fe[i]){if(!X(n))return t[e]||(t.attributes.getNamedItem(e)||pt).specified?i:st;n?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if(X(n))t.setAttribute(e,n);else if(t.getAttribute){e=t.getAttribute(e,2);return null===e?st:e}},prop:function(t,e,n){if(!X(n))return t[e];t[e]=n},text:(ye.$dv="",ye),val:function(t,e){if(P(e)){if(t.multiple&&"select"===yt(t)){var n=[];return ut(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){if(P(e))return t.innerHTML;te(t,!0),t.innerHTML=e},empty:pe},function(u,t){Kt.prototype[t]=function(t,e){var n,i,r=this.length;if(u!==pe&&(2==u.length&&u!==oe&&u!==ue?t:e)===st){if(ht(t)){for(n=0;n<r;n++)if(u===re)u(this[n],t);else for(i in t)u(this[n],i,t[i]);return this}for(var o=(l=u.$dv)===st?Math.min(r,1):r,a=0;a<o;a++)var s=u(this[a],t,e),l=l?l+s:s;return l}for(n=0;n<r;n++)u(this[n],t,e);return this}}),ut({removeData:ne,on:function t(e,n,i,r){if(X(r))throw Ht("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Jt(e))for(var r=ie(e,!0),o=r.events,a=(a=r.handle)||(r.handle=be(e,o)),s=0<=n.indexOf(" ")?n.split(" "):[n],l=s.length;l--;){var u=o[n=s[l]];
1u||(o[n]=[],"mouseenter"===n||"mouseleave"===n?t(e,_t[n],function(t){var e=t.relatedTarget;e&&(e===this||this.contains(e))||a(t,n)}):"$destroy"!==n&&Lt(e,n,a),u=o[n]),u.push(i)}},off:ee,one:function(e,n,i){(e=lt(e)).on(n,function t(){e.off(n,i),e.off(n,t)}),e.on(n,i)},replaceWith:function(e,t){var n,i=e.parentNode;te(e),ut(new Kt(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(t){var e=[];return ut(t.childNodes,function(t){t.nodeType===Et&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===Et||n===Pt)for(var i=0,r=(e=new Kt(e)).length;i<r;i++){var o=e[i];t.appendChild(o)}},prepend:function(e,t){var n;e.nodeType===Et&&(n=e.firstChild,ut(new Kt(t),function(t){e.insertBefore(t,n)}))},wrap:function(t,e){e=lt(e).eq(0).clone()[0];var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)},remove:he,detach:function(t){he(t,!0)},after:function(t,e){for(var n=t,i=t.parentNode,r=0,o=(e=new Kt(e)).length;r<o;r++){var a=e[r];i.insertBefore(a,n.nextSibling),n=a}},addClass:se,removeClass:ae,toggleClass:function(n,t,i){t&&ut(t.split(" "),function(t){var e=i;((e=P(e)?!oe(n,t):e)?se:ae)(n,t)})},parent:function(t){t=t.parentNode;return t&&t.nodeType!==Pt?t:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:Zt,triggerHandler:function(e,t,n){var i,r,o=t.type||t,a=ie(e),a=a&&a.events,a=a&&a[o];a&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:pt,type:o,target:e},t.type&&(i=j(i,t)),a=O(a),r=n?[i].concat(n):[i],ut(a,function(t){i.isImmediatePropagationStopped()||t.apply(e,r)}))}},function(a,t){Kt.prototype[t]=function(t,e,n){for(var i,r=0,o=this.length;r<o;r++)P(i)?X(i=a(this[r],t,e,n))&&(i=lt(i)):le(i,a(this[r],t,e,n));return X(i)?i:this},Kt.prototype.bind=Kt.prototype.on,Kt.prototype.unbind=Kt.prototype.off}),xe.prototype={put:function(t,e){this[we(t,this.nextUid)]=e},get:function(t){return this[we(t,this.nextUid)]},remove:function(t){var e=this[t=we(t,this.nextUid)];return delete this[t],e}};var Ce=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,ke=/,/,Se=/^\s*(_?)(\S+?)\1\s*$/,Te=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ee=b("$injector");function De(t,c){c=!0===c;var o={},a="Provider",s=[],l=new xe([],!0),p={$provide:{provider:e(d),factory:e(i),service:e(function(t,e){return i(t,["$injector",function(t){return t.instantiate(e)}])}),value:e(function(t,e){return i(t,v(e),!1)}),constant:e(function(t,e){it(t,"constant"),p[t]=e,n[t]=e}),decorator:function(t,e){var n=u.get(t+a),i=n.$get;n.$get=function(){var t=h.invoke(i,n);return h.invoke(e,null,{$delegate:t})}}}},u=p.$injector=r(p,function(t,e){throw $.isString(e)&&s.push(e),Ee("unpr","Unknown provider: {0}",s.join(" <- "))}),n={},h=n.$injector=r(n,function(t,e){e=u.get(t+a,e);return h.invoke(e.$get,e,st,t)});return ut(function n(t){var i,r=[];ut(t,function(e){if(!l.get(e)){l.put(e,!0);try{dt(e)?(i=f(e),r=r.concat(n(i.requires)).concat(i._runBlocks),t(i._invokeQueue),t(i._configBlocks)):gt(e)||ft(e)?r.push(u.invoke(e)):nt(e,"module")}catch(t){throw ft(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1==t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Ee("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function t(t){var e,n;for(e=0,n=t.length;e<n;e++){var i=t[e],r=u.get(i[0]);r[i[1]].apply(r,i[2])}}});return r}(t),function(t){h.invoke(t||pt)}),h;function e(n){return function(t,e){if(!ht(t))return n(t,e);ut(t,m(n))}}function d(t,e){if(it(t,"service"),!(e=gt(e)||ft(e)?u.instantiate(e):e).$get)throw Ee("pget","Provider '{0}' must define $get factory method.",t);return p[t+a]=e}function i(t,e,n){return d(t,{$get:!1!==n?(i=t,r=e,function(){var t=h.invoke(r,this);if(P(t))throw Ee("undef","Provider '{0}' must return a value from $get factory method.",i);return t}):e});var i,r}function r(n,i){function u(e,t){if(n.hasOwnProperty(e)){if(n[e]===o)throw Ee("cdep","Circular dependency foun
1d: {0}",e+" <- "+s.join(" <- "));return n[e]}try{return s.unshift(e),n[e]=o,n[e]=i(e,t)}catch(t){throw n[e]===o&&delete n[e],t}finally{s.shift()}}function r(t,e,n,i){"string"==typeof n&&(i=n,n=null);for(var r,o=[],a=De.$$annotate(t,c,i),s=0,l=a.length;s<l;s++){if("string"!=typeof(r=a[s]))throw Ee("itkn","Incorrect injection token! Expected service name as string, got {0}",r);o.push(n&&n.hasOwnProperty(r)?n[r]:u(r,i))}return(t=ft(t)?t[l]:t).apply(e,o)}return{invoke:r,instantiate:function(t,e,n){var i=Object.create((ft(t)?t[t.length-1]:t).prototype||null);return ht(n=r(t,i,e,n))||gt(n)?n:i},get:u,annotate:De.$$annotate,has:function(t){return p.hasOwnProperty(t+a)||n.hasOwnProperty(t)}}}}function Ae(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(i,r,o){var a=i.document;function s(t){var e,n;t?(t.scrollIntoView(),(n=(gt(n=l.yOffset)?n=n():D(n)?(e=n[0],n="fixed"!==i.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom):w(n)||(n=0),n))&&(t=t.getBoundingClientRect().top,i.scrollBy(0,t-n))):i.scrollTo(0,0)}function l(){var t,e,n,i=r.hash();i?(t=a.getElementById(i))?s(t):(e=a.getElementsByName(i),n=null,Array.prototype.some.call(e,function(t){if("a"===yt(t))return n=t,!0}),(t=n)?s(t):"top"===i&&s(null)):s(null)}return t&&o.$watch(function(){return r.hash()},function(t,e){var n;t===e&&""===t||(t=function(){o.$evalAsync(l)},"complete"===(n=n||u).document.readyState?n.setTimeout(t):lt(n).on("load",t))}),l}]}De.$$annotate=function(t,e,n){var i;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw dt(n)&&n||(n=t.name||((e=(e=t).toString().replace(Te,"").match(Ce))?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),Ee("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);ut(t.toString().replace(Te,"").match(Ce)[1].split(ke),function(t){t.replace(Se,function(t,e,n){i.push(n)})})}t.$inject=i}}else ft(t)?(nt(t[n=t.length-1],"fn"),i=t.slice(0,n)):nt(t,"fn",!0);return i};var Oe=b("$animate"),Pe=["$provide",function(i){this.$$selectors={},this.register=function(t,e){var n=t+"-animation";if(t&&"."!=t.charAt(0))throw Oe("notcsel","Expecting class selector starting with '.' got '{0}'.",t);this.$$selectors[t.substr(1)]=n,i.factory(n,e)},this.classNameFilter=function(t){return 1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null),this.$$classNameFilter},this.$get=["$$q","$$asyncCallback","$rootScope",function(p,t,h){var e;function d(t,e,n){for(var i=0,r=e.length;i<r;++i)t[e[i]]=n}function r(){return e||(e=p.defer(),t(function(){e.resolve(),e=null})),e.promise}function o(t,e){$.isObject(e)&&(e=j(e.from||{},e.to||{}),t.css(e))}return{animate:function(t,e,n){return o(t,{from:e,to:n}),r()},enter:function(t,e,n,i){return o(t,i),n?n.after(t):e.prepend(t),r()},leave:function(t,e){return t.remove(),r()},move:function(t,e,n,i){return this.enter(t,e,n,i)},addClass:function(t,e,n){return this.setClass(t,e,[],n)},$$addClassImmediately:function(t,e,n){return t=lt(t),e=dt(e)?e:ft(e)?e.join(" "):"",ut(t,function(t){se(t,e)}),o(t,n),r()},removeClass:function(t,e,n){return this.setClass(t,[],e,n)},$$removeClassImmediately:function(t,e,n){return t=lt(t),e=dt(e)?e:ft(e)?e.join(" "):"",ut(t,function(t){ae(t,e)}),o(t,n),r()},setClass:function(s,t,e,n){var l=this,u="$$animateClasses",i=!1,r=(s=lt(s)).data(u);r?n&&r.options&&(r.options=$.extend(r.options||{},n)):(r={classes:{},options:n},i=!0);var o,a,c,n=r.classes;return t=ft(t)?t:t.split(" "),e=ft(e)?e:e.split(" "),d(n,t,!0),d(n,e,!1),i&&(r.promise=(o=function(t){var e,n,i,r,o,a=s.data(u);s.removeData(u),a&&(e=s,n=a.classes,i=[],r=[],o=Tt(),ut((e.attr("class")||"").split(/\s+/),function(t){o[t]=!0}),ut(n,function(t,e){var n=o[e];!1===t&&n?r.push(e):!0!==t||n||i.push(e)}),(n=0<i.length+r.length&&[i.length?i:null,r.length?r:null])&&l.$$setClassImmediately(s,n[0],n[1],a.options)),t()},(c=p.defer()).promise.$$cancelFn=function(){a&&a()},h.$$postDigest(function(){a=o(function(){c.resolve()})}),c.promise),s.data(u,r)),r.promise},$$setClassImmediately:function(t,e,n,i){return e&&this.$$addClassImmediately(t,e),n&&this.$$removeClassImmediately(t,n),o(t,i),r()},enabled:pt,cancel:pt}}]}];function Me(){this.$get=["$$rAF","$timeout",function(e,n){return e.supp
1orted?function(t){return e(t)}:function(t){return n(t,0,!1)}}]}function Ie(o,t,s,a){var l=this,u=t[0],c=o.location,p=o.history,i=o.setTimeout,e=o.clearTimeout,r={};l.isMock=!1;var h=0,n=[];function d(t){try{t.apply(null,wt(arguments,1))}finally{if(0===--h)for(;n.length;)try{n.pop()()}catch(t){s.error(t)}}}l.$$completeOutstandingRequest=d,l.$$incOutstandingRequestCount=function(){h++},l.notifyWhenNoOutstandingRequests=function(t){ut(g,function(t){t()}),0===h?t():n.push(t)};var f,g=[];l.addPollFn=function(t){var e,n;return P(f)&&(e=100,n=i,function t(){ut(g,function(t){t()}),f=n(t,e)}()),g.push(t),t};var m,v,y=c.href,b=t.find("base"),$=null;S(),v=m,l.url=function(t,e,n){if(P(n)&&(n=null),c!==o.location&&(c=o.location),p!==o.history&&(p=o.history),t){var i=v===n;if(y===t&&(!a.history||i))return l;var r=y&&yn(y)===yn(t);return y=t,v=n,!a.history||r&&i?(r||($=t),e?c.replace(t):r?c.hash=-1===(r=(i=t).indexOf("#"))?"":i.substr(r+1):c.href=t):(p[e?"replaceState":"pushState"](n,"",t),S(),v=m),l}return $||c.href.replace(/%27/g,"'")},l.state=function(){return m};var w=[],x=!1;function C(){S(),T()}var k=null;function S(){$t(m=P(m=o.history.state)?null:m,k)&&(m=k),k=m}function T(){y===l.url()&&v===m||(y=l.url(),v=m,ut(w,function(t){t(l.url(),m)}))}l.onUrlChange=function(t){return x||(a.history&&lt(o).on("popstate",C),lt(o).on("hashchange",C),x=!0),w.push(t),t},l.$$checkUrlChange=T,l.baseHref=function(){var t=b.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var E={},D="",A=l.baseHref();function O(e){try{return decodeURIComponent(e)}catch(t){return e}}l.cookies=function(t,e){var n,i,r,o,a;if(!t){if(u.cookie!==D)for(i=(D=u.cookie).split("; "),E={},o=0;o<i.length;o++)0<(a=(r=i[o]).indexOf("="))&&(t=O(r.substring(0,a)),E[t]===st&&(E[t]=O(r.substring(a+1))));return E}e===st?u.cookie=encodeURIComponent(t)+"=;path="+A+";expires=Thu, 01 Jan 1970 00:00:00 GMT":dt(e)&&4096<(n=(u.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path="+A).length+1)&&s.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+n+" > 4096 bytes)!")},l.defer=function(t,e){var n;return h++,n=i(function(){delete r[n],d(t)},e||0),r[n]=!0,n},l.defer.cancel=function(t){return!!r[t]&&(delete r[t],e(t),d(pt),!0)}}function Re(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,i){return new Ie(t,i,e,n)}]}function je(){this.$get=function(){var p={};function t(t,e){if(t in p)throw b("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var n=0,i=j({},e,{id:t}),r={},o=e&&e.capacity||Number.MAX_VALUE,a={},s=null,l=null;return p[t]={put:function(t,e){if(o<Number.MAX_VALUE&&u(a[t]||(a[t]={key:t})),!P(e))return t in r||n++,r[t]=e,o<n&&this.remove(l.key),e},get:function(t){if(o<Number.MAX_VALUE){var e=a[t];if(!e)return;u(e)}return r[t]},remove:function(t){if(o<Number.MAX_VALUE){var e=a[t];if(!e)return;e==s&&(s=e.p),e==l&&(l=e.n),c(e.n,e.p),delete a[t]}delete r[t],n--},removeAll:function(){r={},n=0,a={},s=l=null},destroy:function(){a=i=r=null,delete p[t]},info:function(){return j({},i,{size:n})}};function u(t){t!=s&&(l?l==t&&(l=t.n):l=t,c(t.n,t.p),c(t,s),(s=t).n=null)}function c(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}}return t.info=function(){var n={};return ut(p,function(t,e){n[e]=t.info()}),n},t.get=function(t){return p[t]},t}}function Ne(){this.$get=["$cacheFactory",function(t){return t("templates")}]}var Le=b("$compile");function Fe(n,e){var E={},D="Directive",A=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,O=/(([\w\-]+)(?:\:([^;]+))?;?)/,P=function(t){for(var e={},n=t.split(","),i=0;i<n.length;i++)e[n[i]]=!0;return e}("ngSrc,ngSrcset,src,srcset"),ot=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,M=/^(on[a-z]+|formaction)$/;this.directive=function t(c,e){return it(c,"directive"),dt(c)?(St(e,"directiveFactory"),E.hasOwnProperty(c)||(E[c]=[],n.factory(c+D,["$injector","$exceptionHandler",function(s,l){var u=[];return ut(E[c],function(t,e){try{var n=s.invoke(t);gt(n)?n={compile:v(n)}:!n.compile&&n.link&&(n.compile=v(n.link)),n.priority=n.priority||0,n.index=e,n.name=n.name||c,n.require=n.require||n.controller&&n.name,n.restrict=n.restrict||"EA",ht(n.scope)&&(n.$$isolateBindings=(i=n.scope,r=n.name,o=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,a={},ut(i,function(t,e){var n=t.match(o);if(!n)throw Le("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",r,e,t);a[e]={mode:n[1][0],collection:"*"===n[2],optional:"?"===n[3],attrName:n[4]||e}}),a)),u.push(n)}catch(t){l(t)}var i,r,o,a}),u}])),E[c].push(e)):ut(c,m(t)),this},this.aHrefSanitizationWhitelist=function(t){return X(t)?(e.aHrefSanitizationWhitelist(t),this):e.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return X(t)?(e.imgSrcSanitizationWhitelist(t),this):e.imgSrcSanitizationWhitelist()};var r=!0;this.debugInfoEnabled=function(t){return X(t)?(r=t,this):r},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(C,N,L,F,U,q,o,t,_,i,h){var H=function(t,e){if(e)for(var n,i=Object.keys(e),r=0,o=i.length;r<o;r++)this[n=i[r]]=e[n];else this.$attr={};this.$$element=t};function B(t,e){try{t.addClass(e)}catch(t){}}H.prototype={$normalize:qe,$addClass:function(t){t&&0<t.length&&i.addClass(this.$$element,t)},$removeClass:function(t){t&&0<t.length&&i.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=_e(t,e);n&&n.length&&i.addClass(this.$$element,n);t=_e(e,t);t&&t.length&&i.removeClass(this.$$element,t)},$set:function(t,e,n,i){var r,o=this.$$element[0],a=ve(o,t),o=(r=t,("INPUT"===(o=(o=o).nodeName)||"TEXTAREA"===o)&&me[r]),r=t;if(a?(this.$$element.prop(t,e),i=a):o&&(this[o]=e,r=o),this[t]=e,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=Ct(t,"-")),"a"===(a=yt(this.$$element))&&"href"===t||"img"===a&&"src"===t)this[t]=e=h(e,"src"===t);else if("img"===a&&"srcset"===t){for(var s="",o=vt(e),a=/\s/.test(o)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,l=o.split(a),u=Math.floor(l.length/2),c=0;c<u;c++){var p=2*c;s+=h(vt(l[p]),!0),s+=" "+vt(l[1+p])}a=vt(l[2*c]).split(/\s/);s+=h(vt(a[0]),!0),2===a.length&&(s+=" "+vt(a[1])),this[t]=e=s}!1!==n&&(null===e||e===st?this.$$element.removeAttr(i):this.$$element.attr(i,e));i=this.$$observers;i&&ut(i[r],function(t){try{t(e)}catch(t){L(t)}})},$observe:function(t,e){var n=this,i=n.$$observers||(n.$$observers=Tt()),r=i[t]||(i[t]=[]);return r.push(e),o.$evalAsync(function(){!r.$$inter&&n.hasOwnProperty(t)&&e(n[t])}),function(){bt(r,e)}}};var e=N.startSymbol(),n=N.endSymbol(),V="{{"==e||"}}"==n?d:function(t){return t.replace(/\{\{/g,e).replace(/}}/g,n)},k=/^ngAttr[A-Z]/;return W.$$addBindingInfo=r?function(t,e){var n=t.data("$binding")||[];ft(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:pt,W.$$addBindingClass=r?function(t){B(t,"ng-binding")}:pt,W.$$addScopeInfo=r?function(t,e,n,i){t.data(n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope",e)}:pt,W.$$addScopeClass=r?function(t,e){B(t,e?"ng-isolate-scope":"ng-scope")}:pt,W;function W(s,t,e,n,i){ut(s=!(s instanceof lt)?lt(s):s,function(t,e){t.nodeType==Dt&&t.nodeValue.match(/\S+/)&&(s[e]=lt(t).wrap("<sp
vendor: 1,326 bytes, line 1
1an></span>").parent()[0])});var l=z(s,t,s,e,n,i);W.$$addScopeClass(s);var u=null;return function(t,e,n){St(t,"scope");var i,r=(n=n||{}).parentBoundTranscludeFn,o=n.transcludeControllers,n=n.futureParentElement;if(r&&r.$$boundTransclude&&(r=r.$$boundTransclude),i="html"!==(u=u||function(t){t=t&&t[0];return t&&"foreignobject"!==yt(t)&&t.toString().match(/SVG/)?"svg":"html"}(n))?lt(et(u,lt("<div>").append(s).html())):e?de.clone.call(s):s,o)for(var a in o)i.data("$"+a+"Controller",o[a].instance);return W.$$addScopeInfo(i,t),e&&e(i,t),l&&l(t,i,i,r),i}}function z(t,f,e,n,i,r){for(var o,a,s,l,g,m=[],u=0;u<t.length;u++)s=new H,(o=(o=Y(t[u],[],s,0===u?n:st,i)).length?Q(o,t[u],s,f,e,null,[],[],r):null)&&o.scope&&W.$$addScopeClass(s.$$element),s=o&&o.terminal||!(a=t[u].childNodes)||!a.length?null:z(a,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:f),(o||s)&&(m.push(u,o,s),l=!0,g=g||o),r=null;return l?function(t,e,n,i){var r,o,a,s,l,u,c,p,h;if(g){var d=e.length;for(h=new Array(d),l=0;l<m.length;l+=3)c=m[l],h[c]=e[c]}else h=e;for(l=0,u=m.length;l<u;)a=h[m[l++]],r=m[l++],o=m[l++],r?(r.scope?(s=t.$new(),W.$$addScopeInfo(lt(a),s)):s=t,p=r.transcludeOnThisElement?X(t,r.transclude,i,r.elementTranscludeOnThisElement):!r.templateOnThisElement&&i?i:!i&&f?X(t,f):null,r(o,s,a,n,p)):o&&o(t,a.childNodes,st,
1i)}:null}function X(o,a,s){return function(t,e,n,i,r){return t||((t=o.$new(!1,r)).$$transcluded=!0),a(t,e,{parentBoundTranscludeFn:s,transcludeControllers:n,futureParentElement:i})}}function Y(t,e,n,i,r){var o,a,s,l,u,c=t.nodeType,p=n.$attr;switch(c){case Et:S(e,qe(yt(t)),"E",i,r);for(var h,d,f=t.attributes,g=0,m=f&&f.length;g<m;g++){var v=!1,y=!1,b=(x=f[g]).name,$=vt(x.value),w=qe(b);(d=k.test(w))&&(b=b.replace(Ue,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var x=w.replace(/(Start|End)$/,"");!function(t){if(E.hasOwnProperty(t))for(var e=C.get(t+D),n=0,i=e.length;n<i;n++)if(e[n].multiElement)return!0;return!1}(x)||w!==x+"Start"||(y=(v=b).substr(0,b.length-5)+"end",b=b.substr(0,b.length-6)),p[h=qe(b.toLowerCase())]=b,!d&&n.hasOwnProperty(h)||(n[h]=$,ve(t,h)&&(n[h]=!0)),function(t,e,o,a,s){var l=function(t,e){if("srcdoc"==e)return _.HTML;t=yt(t);if("xlinkHref"==e||"form"==t&&"action"==e||"img"!=t&&("src"==e||"ngSrc"==e))return _.RESOURCE_URL}(t,a);s=P[a]||s;var u=N(o,!0,l,s);if(u){if("multiple"===a&&"select"===yt(t))throw Le("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",xt(t));e.push({priority:100,compile:function(){return{pre:function(t,e,n){var i=n.$$observers||(n.$$observers={});if(M.test(a))throw Le("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var r=n[a];r!==o&&(u=r&&N(r,!0,l,s),o=r),u&&(n[a]=u(t),(i[a]||(i[a]=[])).$$inter=!0,(n.$$observers&&n.$$observers[a].$$scope||t).$watch(u,function(t,e){"class"===a&&t!=e?n.$updateClass(t,e):n.$set(a,t)}))}}}})}}(t,e,$,h,d),S(e,h,"A",i,r,v,y)}if(dt(a=ht(a=t.className)?a.animVal:a)&&""!==a)for(;o=O.exec(a);)S(e,h=qe(o[2]),"C",i,r)&&(n[h]=vt(o[3])),a=a.substr(o.index+o[0].length);break;case Dt:s=e,l=t.nodeValue,(u=N(l,!0))&&s.push({priority:0,compile:function(t){var t=t.parent(),i=!!t.length;return i&&W.$$addBindingClass(t),function(t,e){var n=e.parent();i||W.$$addBindingClass(n),W.$$addBindingInfo(n,u.expressions),t.$watch(u,function(t){e[0].nodeValue=t})}}});break;case At:try{(o=A.exec(t.nodeValue))&&S(e,h=qe(o[1]),"M",i,r)&&(n[h]=vt(o[2]))}catch(t){}}return e.sort(T),e}function G(t,e,n){var i=[],r=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Le("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n)}while(t.nodeType==Et&&(t.hasAttribute(e)&&r++,t.hasAttribute(n)&&r--),i.push(t),t=t.nextSibling,0<r)}else i.push(t);return lt(i)}function J(o,a,s){return function(t,e,n,i,r){return e=G(e[0],a,s),o(t,e,n,i,r)}}function Q(t,v,y,e,n,i,b,$,r){r=r||{};for(var o,w,a,s,l,u=-Number.MAX_VALUE,x=r.controllerDirectives,C=r.newIsolateScopeDirective,k=r.templateDirective,c=r.nonTlbTranscludeDirective,p=!1,h=!1,S=r.hasElementTranscludeDirective,d=y.$$element=lt(v),f=i,g=e,m=0,T=t.length;m<T;m++){var E,D=(E=t[m]).$$start,A=E.$$end;if(D&&(d=G(v,D,A)),M=st,u>E.priority)break;if((l=E.scope)&&(E.templateUrl||(ht(l)?(tt("new/isolated scope",C||o,E,d),C=E):tt("new/isolated scope",C,E,d)),o=o||E),a=E.name,!E.templateUrl&&E.controller&&(l=E.controller,tt("'"+a+"' controller",(x=x||{})[a],E,d),x[a]=E),(l=E.transclude)&&(p=!0,E.$$tlb||(tt("transclusion",c,E,d),c=E),g="element"==l?(S=!0,u=E.priority,M=d,d=y.$$element=lt(at.createComment(" "+a+": "+y[a]+" ")),v=d[0],nt(n,wt(M),v),W(M,e,u,f&&f.name,{nonTlbTranscludeDirective:c})):(M=lt(Zt(v)).contents(),d.empty(),W(M,e))),E.template)if(h=!0,tt("template",k,E,d),l=gt((k=E).template)?E.template(d,y):E.template,l=V(l),E.replace){if(f=E,M=Gt(l)?[]:He(et(E.templateNamespace,vt(l))),v=M[0],1!=M.length||v.nodeType!==Et)throw Le("tplrt","Template for directive '{0}' must have exactly one root element. {1}",a,"");nt(n,d,v);var O={$attr:{}},P=Y(v,[],O),M=t.splice(m+1,t.length-(m+1));C&&K(P),t=t.concat(P).concat(M),Z(y,O),T=t.length}else d.html(l);if(E.templateUrl)h=!0,tt("template",k,E,d),(k=E).replace&&(f=E),j=function(c,p,h,d,f,g,m,v){var y,b,$=[],w=p[0],x=c.shift(),C=ct(x,{templateUrl:null,transclude:null,replace:null,$$originalDirective:x}),k=gt(x.templateUrl)?x.templateUrl(p,h):x.templateUrl,S=x.templateNamespace;return p.empty(),F(_.getTrustedResourceUrl(k)).then(function(t){var n,e;if(t=V(t),x.replace){if(i=Gt(t)?[]:He(et(S,vt(t))),n=i[0],1!=i.length||n.nodeType!==Et)throw Le("tplrt","Template for directive '{0}' must have exactly one root element. {1}",x.name,k);e={$attr:{}},nt(d,p,n);var i=Y(n,[],e);ht(x.scope)&&K(i),c=i.concat(c),Z(h,e)}else n=w,p.html(t);for(c.unshift(C),y=Q(c,n,h,f,p,x,g,m,v),ut(d,function(t,e){t==n&&(d[e]=p[0])}),b=z(p[0].childNodes,f);$.length;){var r,o=$.shift(),a=$.shift(),s=$.shift(),l=$.shift(),u=p[0];o.$$destroyed||(a!==w&&(r=a.className,v.hasElementTranscludeDirective&&x.replace||(u=Zt(n)),nt(s,lt(a),u),B(lt(u),r)),l=y.transcludeOnThisElement?X(o,y.transclude,l):l,y(b,o,u,d,l))}$=null}),function(t,e,n,i,r){var o=r;e.$$destroyed||($?$.push(e,n,i,o):(y.transcludeOnThisElement&&(o=X(e,y.transclude,r)),y(b,e,n,i,o)))}}(t.splice(m,t.length-m),d,y,n,p&&g,b,$,{controllerDirectives:x,newIsolateScopeDirective:C,templateDirective:k,nonTlbTranscludeDirective:c}),T=t.length;else if(E.compile)try{gt(s=E.compile(d,y,g))?I(null,s,D,A):s&&I(s.pre,s.post,D,A)}catch(t){L(t,xt(d))}E.terminal&&(j.terminal=!0,u=Math.max(u,E.priority))}return j.scope=o&&!0===o.scope,j.transcludeOnThisElement=p,j.elementTranscludeOnThisElement=S,j.templateOnThisElement=h,j.transclude=g,r.hasElementTranscludeDirective=S,j;function I(t,e,n,i){t&&((t=n?J(t,n,i):t).require=E.require,t.directiveName=a,C!==E&&!E.$$isolateScope||(t=it(t,{isolateScope:!0}
1)),b.push(t)),e&&((e=n?J(e,n,i):e).require=E.require,e.directiveName=a,C!==E&&!E.$$isolateScope||(e=it(e,{isolateScope:!0})),$.push(e))}function R(e,t,n,i){var r,o,a="data",s=!1,l=n;if(dt(t)){if(o=t.match(ot),t=t.substring(o[0].length),o[3]&&(o[1]?o[3]=null:o[1]=o[3]),"^"===o[1]?a="inheritedData":"^^"===o[1]&&(a="inheritedData",l=n.parent()),"?"===o[2]&&(s=!0),r=null,!(r=(r=i&&"data"===a&&(r=i[t])?r.instance:r)||l[a]("$"+t+"Controller"))&&!s)throw Le("ctreq","Controller '{0}', required by directive '{1}', can't be found!",t,e);return r||null}return ft(t)&&(r=[],ut(t,function(t){r.push(R(e,t,n,i))})),r}function j(t,u,e,n,r){var i,o,a,s,c,l,p,h,d,f,g;for(v===e?h=(d=y).$$element:(h=lt(e),d=new H(h,y)),C&&(c=u.$new(!0)),r&&((p=function(t,e,n){var i;mt(t)||(n=e,e=t,t=st);S&&(i=l);n=n||(S?h.parent():h);return r(t,e,i,n,m)}).$$boundTransclude=r),x&&(w={},l={},ut(x,function(t){var e={$scope:t===C||t.$$isolateScope?c:u,$element:h,$attrs:d,$transclude:p};"@"==(s=t.controller)&&(s=d[t.name]),e=q(s,e,!0,t.controllerAs),l[t.name]=e,S||h.data("$"+t.name+"Controller",e.instance),w[t.name]=e})),C&&(W.$$addScopeInfo(h,c,!0,!(k&&(k===C||k===C.$$originalDirective))),W.$$addScopeClass(h,!0),f=w&&w[C.name],g=c,f&&f.identifier&&!0===C.bindToController&&(g=f.instance),ut(c.$$isolateBindings=C.$$isolateBindings,function(t,e){var n=t.attrName,i=t.optional;switch(t.mode){case"@":d.$observe(n,function(t){g[e]=t}),d.$$observers[n].$$scope=u,d[n]&&(g[e]=N(d[n])(u));break;case"=":if(i&&!d[n])return;var r,o=(r=U(d[n])).literal?$t:function(t,e){return t===e||t!=t&&e!=e},a=r.assign||function(){throw s=g[e]=r(u),Le("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",d[n],C.name)}
1,s=g[e]=r(u),l=function(t){return o(t,g[e])||(o(t,s)?a(u,t=g[e]):g[e]=t),s=t};l.$stateful=!0,l=t.collection?u.$watchCollection(d[n],l):u.$watch(U(d[n],l),null,r.literal),c.$on("$destroy",l);break;case"&":r=U(d[n]),g[e]=function(t){return r(u,t)}}})),w&&(ut(w,function(t){t()}),w=null),i=0,o=b.length;i<o;i++)rt(a=b[i],a.isolateScope?c:u,h,d,a.require&&R(a.directiveName,a.require,h,l),p);var m=u;for(C&&(C.template||null===C.templateUrl)&&(m=c),t&&t(m,e.childNodes,st,r),i=$.length-1;0<=i;i--)rt(a=$[i],a.isolateScope?c:u,h,d,a.require&&R(a.directiveName,a.require,h,l),p)}}function K(t){for(var e=0,n=t.length;e<n;e++)t[e]=ct(t[e],{$$isolateScope:!0})}function S(t,e,n,i,r,o,a){if(e!==r){var s=null;if(E.hasOwnProperty(e))for(var l,u=C.get(e+D),c=0,p=u.length;c<p;c++)try{l=u[c],(i===st||i>l.priority)&&-1!=l.restrict.indexOf(n)&&(o&&(l=ct(l,{$$start:o,$$end:a})),t.push(l),s=l)}catch(t){L(t)}return s}}function Z(n,i){var r=i.$attr,o=n.$attr,a=n.$$element;ut(n,function(t,e){"$"!=e.charAt(0)&&(i[e]&&i[e]!==t&&(t+=("style"===e?";":" ")+i[e]),n.$set(e,t,!0,r[e]))}),ut(i,function(t,e){"class"==e?(B(a,t),n.class=(n.class?n.class+" ":"")+t):"style"==e?(a.attr("style",a.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):"$"==e.charAt(0)||n.hasOwnProperty(e)||(n[e]=t,o[e]=r[e])})}function T(t,e){var n=e.priority-t.priority;return 0!=n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function tt(t,e,n,i){if(e)throw Le("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",e.name,n.name,t,xt(i))}function et(t,e){switch(t=I(t||"html")){case"svg":case"math":var n=at.createElement("div");return n.innerHTML="<"+t+">"+e+"</"+t+">",n.childNodes[0].childNodes;default:return e}}function nt(t,e,n){var i,r,o=e[0],a=e.length,s=o.parentNode;if(t)for(i=0,r=t.length;i<r;i++)if(t[i]==o){t[i++]=n;for(var l=i,u=l+a-1,c=t.length;l<c;l++,u++)u<c?t[l]=t[u]:delete t[l];t.length-=a-1,t.context===o&&(t.context=n);break}s&&s.replaceChild(n,o);var p=at.createDocumentFragment();p.appendChild(o),lt(n).data(lt(o).data()),g?(kt=!0,g.cleanData([o])):delete lt.cache[o[lt.expando]];for(var h=1,d=e.length;h<d;h++){var f=e[h];lt(f).remove(),p.appendChild(f),delete e[h]}e[0]=n,e.length=1}function it(t,e){return j(function(){return t.apply(null,arguments)},t,e)}function rt(t,e,n,i,r,o){try{t(e,n,i,r,o)}catch(t){L(t,xt(n))}}}]}Fe.$inject=["$provide","$$sanitizeUriProvider"];var Ue=/^((?:x|data)[\:\-_])/i;function qe(t){return Bt(t.replace(Ue,""))}function _e(t,e){var n="",i=t.split(/\s+/),r=e.split(/\s+/);t:for(var o=0;o<i.length;o++){for(var a=i[o],s=0;s<r.length;s++)if(a==r[s])continue t;n+=(0<n.length?" ":"")+a}return n}function He(t){var e=(t=lt(t)).length;if(e<=1)return t;for(;e--;)t[e].nodeType===At&&n.call(t,e,1);return t}var Be=b("$controller");function Ve(){var c={},p=!1,h=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,e){it(t,"controller"),ht(t)?j(c,t):c[t]=e},this.allowGlobals=function(){p=!0},this.$get=["$injector","$window",function(s,l){return function(t,e,n,i){var r,o;if(n=!0===n,i&&dt(i)&&(o=i),dt(t)){if(!(i=t.match(h)))throw Be("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);r=i[1],o=o||i[3],nt(t=c.hasOwnProperty(r)?c[r]:rt(e.$scope,r,!0)||(p?rt(l,r,!0):st),r,!0)}if(n){var n=(ft(t)?t[t.length-1]:t).prototype,a=Object.create(n||null);return o&&u(e,o,a,r||t.name),j(function(){return s.invoke(t,a,e,r),a},{instance:a,identifier:o})}return a=s.instantiate(t,e,r),o&&u(e,o,a,r||t.name),a};function u(t,e,n,i){if(!t||!ht(t.$scope))throw b("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}}]}function We(){this.$get=["$window",function(t){return lt(t.document)}]}function ze(){this.$get=["$log",function(n){return function(t,e){n.error.apply(n,arguments)}}]}var Xe="application/json",Ye={"Content-Type":Xe+";charset=utf-8"},Ge=/^\[|^\{(?!\{)/,Je={"[":/]$/,"{":/}$/},Qe=/^\)\]\}',?\n/;function Ke(t,e){var n,i;return dt(t)&&(!(n=t.replace(Qe,"").trim())||((i=e("Content-Type"))&&0===i.indexOf(Xe)||(i=(e=n).match(Ge))&&Je[i[0]].test(e))&&(t=q(n))),t}function Ze(t){var e,n,i=Tt();return t&&ut(t.split("\n"),function(t){n=t.indexOf(":"),e=I(vt(t.substr(0,n))),n=vt(t.substr(n+1)),e&&(i[e]=i[e]?i[e]+", "+n:n)}),i}function tn(e){var n=ht(e)?e:st;return function(t){if(n=n||Ze(e),t){t=n[I(t)];return t=void 0===t?null:t}return n}}function en(e,n,i,t){return gt(t)?t(e,n,i):(ut(t,function(t){e=t(e,n,i)}),e)}function nn(t){return 200<=t&&t<300}function rn(){var v=this.defaults={transformResponse:[Ke],transformRequest:[function(t){return ht(t)&&(n=t,"[object File]"!==s.call(n))&&(e=t,"[object Blob]"!==s.call(e))&&(e=t,"[object FormData]"!==s.call(e))?U(t):t;var e,n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:O(Ye),put:O(Ye),patch:O(Ye)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},y=!1;this.useApplyAsync=function(t){return X(t)?(y=!!t,this):y};var n=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(p,h,t,d,f,e){var g=t("$http"),s=[];function m(t){if(!$.isObject(t))throw b("$http")("badreq","Http request configuration must be an object.  Received: {0}",t);var n=j({method:"get",transformRequest:v.transformRequest,transformResponse:v.transformResponse},t);n.headers=function(t){var e,n,i,r=v.headers,o=j({},t.headers);t:for(e in r=j({},r.common,r[I(t.method)])){for(i in n=I(e),o)if(I(i)===n)continue t;o[e]=r[e]}return function(t){var n,i={};
1return ut(t,function(t,e){gt(t)?null!=(n=t())&&(i[e]=n):i[e]=t}),i}(o)}(t),n.method=l(n.method);var e=[function(t){var n=t.headers,e=en(t.data,tn(n),st,t.transformRequest);return P(e)&&ut(n,function(t,e){"content-type"===I(e)&&delete n[e]}),P(t.withCredentials)&&!P(v.withCredentials)&&(t.withCredentials=v.withCredentials),function(r,t){var o,a=f.defer(),e=a.promise,n=r.headers,s=function(t,e){if(!e)return t;var n=[];(function(t,e,n){for(var i=z(t),r=0;r<i.length;r++)e.call(n,t[i[r]],i[r])})(e,function(t,e){null===t||P(t)||ut(t=!ft(t)?[t]:t,function(t){ht(t)&&(t=x(t)?t.toISOString():U(t)),n.push(Y(e)+"="+Y(t))})}),0<n.length&&(t+=(-1==t.indexOf("?")?"?":"&")+n.join("&"));return t}(r.url,r.params);m.pendingRequests.push(r),e.then(c,c),!r.cache&&!v.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method||(o=ht(r.cache)?r.cache:ht(v.cache)?v.cache:g);o&&(X(i=o.get(s))?S(i)?i.then(u,u):ft(i)?l(i[1],i[0],O(i[2]),i[3]):l(i,200,{},"OK"):o.put(s,e));{var i;P(i)&&((i=di(r.url)?h.cookies()[r.xsrfCookieName||v.xsrfCookieName]:st)&&(n[r.xsrfHeaderName||v.xsrfHeaderName]=i),p(r.method,s,t,function(t,e,n,i){o&&(nn(t)?o.put(s,[t,e,Ze(n),i]):o.remove(s));function r(){l(e,t,n,i)}y?d.$applyAsync(r):(r(),d.$$phase||d.$apply())},n,r.timeout,r.withCredentials,r.responseType))}return e;function l(t,e,n,i){(nn(e=Math.max(e,0))?a.resolve:a.reject)({data:t,status:e,headers:tn(n),config:r,statusText:i})}function u(t){l(t.data,t.status,O(t.headers()),t.statusText)}function c(){var t=m.pendingRequests.indexOf(r);-1!==t&&m.pendingRequests.splice(t,1)}}(t,e).then(a,a)},st],i=f.when(n);for(ut(s,function(t){(t.request||t.requestError)&&e.unshift(t.request,t.requestError),(t.response||t.responseError)&&e.push(t.response,t.responseError)});e.length;)var r=e.shift(),o=e.shift(),i=i.then(r,o);return i.success=function(e){return i.then(function(t){e(t.data,t.status,t.headers,n)}),i},i.error=function(e){return i.then(null,function(t){e(t.data,t.status,t.headers,n)}),i},i;function a(t){var e=j({},t);return t.data?e.data=en(t.data,t.headers,t.status,n.transformResponse):e.data=t.data,nn(t.status)?e:f.reject(e)}}return ut(n,function(t){s.unshift(dt(t)?e.get(t):e.invoke(t))}),m.pendingRequests=[],function(){ut(arguments,function(n){m[n]=function(t,e){return m(j(e||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){ut(arguments,function(i){m[i]=function(t,e,n){return m(j(n||{},{method:i,url:t,data:e}))}})}("post","put","patch"),m.defaults=v,m}]}function on(){return new u.XMLHttpRequest}function an(){this.$get=["$browser","$window","$document",function(t,e,n){return $=on,w=(b=t).defer,x=e.angular.callbacks,C=n[0],function(t,i,e,r,n,o,a,s){if
vendor: 20,777 bytes, line 1
1(b.$$incOutstandingRequestCount(),i=i||b.url(),"jsonp"==I(t)){var l="_"+(x.counter++).toString(36);x[l]=function(t){x[l].data=t,x[l].called=!0};var u=(p=i.replace("JSON_CALLBACK","angular.callbacks."+l),h=l,d=function(t,e){y(r,t,x[l].data,"",e),x[l]=pt},f=C.createElement("script"),g=null,f.type="text/javascript",f.src=p,f.async=!0,g=function(t){Ft(f,"load",g),Ft(f,"error",g),C.body.removeChild(f),f=null;var e=-1,n="unknown";t&&(n=(t="load"===t.type&&!x[h].called?{type:"error"}:t).type,e="error"===t.type?404:200),d&&d(e,n)},Lt(f,"load",g),Lt(f,"error",g),C.body.appendChild(f),g)}else{var c=$();c.open(t,i,!0),ut(n,function(t,e){X(t)&&c.setRequestHeader(e,t)}),c.onload=function(){var t=c.statusText||"",e="response"in c?c.response:c.responseText,n=1223===c.status?204:c.status;0===n&&(n=e?200:"file"==hi(i).protocol?404:0),y(r,n,e,c.getAllResponseHeaders(),t)};n=function(){y(r,-1,null,null,"")};if(c.onerror=n,c.onabort=n,a&&(c.withCredentials=!0),s)try{c.responseType=s}catch(t){if("json"!==s)throw t}c.send(e||null)}var p,h,d,f,g,m;function v(){u&&u(),c&&c.abort()}function y(t,e,n,i,r){m!==st&&w.cancel(m),u=c=null,t(e,n,i,r),b.$$completeOutstandingRequest(pt)}0<o?m=w(v,o):S(o)&&o.then(v)};var b,$,w,x,C}]}var sn=b("$interpolate");function ln(){var k="{{",S="}}";this.startSymbol=function(t){return t?(k=t,this):k},this.endSymbol=function(t){return t?(S=t,this):S},this.$get=["$parse","$exceptionHandler","$sce",function(v,y,b){var $=k.length,w=S.length,x=new RegExp(k.replace(/./g,t),"g"),C=new RegExp(S.replace(/./g,t),"g");function t(t){return"\\\\\\"+t}function e(o,t,e,i){i=!!i;for(var n,r,a=0,s=[],l=[],u=o.length,c=[],p=[];a<u;){if(-1==(r=o.indexOf(k,a))||-1==(n=o.indexOf(S,r+$))){a!==u&&c.push(g(o.substring(a)));break}a!==r&&c.push(g(o.substring(a,r))),r=o.substring(r+$,n),s.push(r),l.push(v(r,m)),a=n+w,p.push(c.length),c.push("")}if(e&&1<c.length)throw sn("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",o);if(!t||s.length){var h=function(t){for(var e=0,n=s.length;e<n;e++){if(i&&P(t[e]))return;c[p[e]]=t[e]}return c.join("")},d=function(t){return e?b.getTrusted(e,t):b.valueOf(t)},f=function(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=U(t)}return t};return j(function(t){var e=0,n=s.length,i=new Array(n);try{for(;e<n;e++)i[e]=l[e](t);return h(i)}catch(t){var r=sn("interr","Can't interpolate: {0}\n{1}",o,t.toString());y(r)}},{exp:o,expressions:s,$$watchDelegate:function(i,r,t){var o;return i.$watchGroup(l,function(t,e){var n=h(t);gt(r)&&r.call(this,n,t!==e?o:n,i),o=n},t)}})}function g(t){return t.replace(x,k).replace(C,S)}function m(e){try{return e=d(e),i&&!X(e)?e:f(e)}catch(t){e=sn("interr","Can't interpolate: {0}\n{1}",o,t.toString());y(e)}}}return e.startSymbol=function(){return k},e.endSymbol=function(){return S},e}]}function un(){this.$get=["$rootScope","$window","$q","$$q",function(c,p,h,d){var f={};function t(t,e,n,i){var r=p.setInterval,o=p.clearInterval,a=0,s=X(i)&&!i,l=(s?d:h).defer(),u=l.promise;return n=X(n)?n:0,u.then(null,null,t),u.$$intervalId=r(function(){l.notify(a++),0<n&&n<=a&&(l.resolve(a),o(u.$$intervalId),delete f[u.$$intervalId]),s||c.$apply()},e),f[u.$$intervalId]=l,u}return t.cancel=function(t){return!!(t&&t.$$intervalId in f)&&(f[t.$$intervalId].reject("canceled"),p.clearInterval(t.$$intervalId),delete f[t.$$intervalId],!0)},t}]}function cn(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(t){return 1===t?"one":"other"}}}}var pn=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,hn={http:80,https:443,ftp:21},dn=b("$location");function fn(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=V(e[n]);return e.join("/")}function gn(t,e){t=hi(t);e.$$protocol=t.protocol,e.$$host=t.hostname,e.$$port=h(t.port)||hn[t.protocol]||null}function mn(t,e){var n="/"!==t.charAt(0),t=hi(t=n?"/"+t:t);e.$$path=decodeURIComponent(n&&"/"===t.pathname.charAt(0)?t.pathname.substring(1):t.pathname),e.$$search=H(t.search),e.$$hash=decodeURIComponent(t.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function vn(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function yn(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function bn(t){return t.replace(/(#.+)|#$/,"$1")}function $n(t){return t.substr(0,yn(t).lastIndexOf("/")+1)}function wn(i,r){this.$$html5=!0,r=r||"";var o=$n(i);gn(i,this),this.$$parse=function(t){var e=vn(o,t);if(!dt(e))throw dn("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,o);mn(e,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=B(this.$$search),e=this.$$hash?"#"+V(this.$$hash):"";this.$$url=fn(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=o+this.$$url.substr(1)},this.$$parseLinkUrl=function(t,e){return e&&"#"===e[0]?(this.hash(e.slice(1)),!0):((e=vn(i,t))!==st?n=(e=vn(r,n=e))!==st?o+(vn("/",e)||e):i+n:(e=vn(o,t))!==st?n=o+e:o==t+"/"&&(n=o),n&&this.$$parse(n),!!n);var n}}function xn(n,i){var r=$n(n);gn(n,this),this.$$parse=function(t){var e,t=vn(n,t)||vn(r,t);"#"===t.charAt(0)?P(e=vn(i,t))&&(e=t):e=this.$$html5?t:"",mn(e,this),this.$$path=function(t,e,n){var i=/^\/[A-Z]:(\/.*)/;0===e.indexOf(n)&&(e=e.replace(n,""));if(i.exec(e))return t;return(i=i.exec(t))?i[1]:t}(this.$$path,e,n),this.$$compose()},this.$$compose=function(){var t=B(this.$$search),e=this.$$hash?"#"+V(this.$$hash):"";this.$$url=fn(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=n+(this.$$url?i+this.$$url:"")},this.$$parseLinkUrl=function(t,e){return yn(n)==yn(t)&&(this.$$parse(t),!0)}}function Cn(i,r){this.$$html5=!0,xn.apply(this,arguments);var o=$n(i);this.$$parseLinkUrl=function(t,e){return e&&"#"===e[0]?(this.hash(e.slice(1)),!0):(i==yn(t)?n=t:(e=vn(o,t))?n=i+r+e:o===t+"/"&&(n=o),n&&this.$$parse(n),!!n);var n},this.$$compose=function(){var t=B(this.$$search),e=this.$$hash?"#"+V(this.$$hash):"";this.$$url=fn(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=i+r+this.$$url}}var kn={$$html5:!1,$$replace:!1,absUrl:Sn("$$absUrl"),url:function(t){if(P(t))return this.$$url;var e=pn.exec(t);return!e[1]&&""!==t||this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Sn("$$protocol"),host:Sn("$$host"),port:Sn("$$port"),path:Tn("$$path",function(t){return"/"==(t=null!==t?t.toString():"").charAt(0)?t:"/"+t}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(dt(n)||w(n))n=n.toString(),this.$$search=H(n);else{if(!ht(n))throw dn("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");ut(n=A(n,{}),function(t,e){null==t&&delete n[e]}),this.$$search=n}break;default:P(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:Tn("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};function Sn(t){return function(){return this[t]}}function Tn(e,n){return function(t){return P(t)?this[e]:(this[e]=n(t),this.$$compose(),this)}}function En(){var f="",g={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return X(t)?(f=t,this):f},this.html5Mode=function(t){return k(t)?(g.enabled=t,this):ht(t)?(k(t.enabled)&&(g.enabled=t.enabled),k(t.requireBase)&&(g.requireBase=t.requireBase),k(t.rewriteLinks)&&(g.rewriteLinks=t.rewriteLinks),this):g},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(a,s,e,r,o){var l,t,n,i=s.baseHref(),u=s.url();if(g.enabled){if(!i&&g.requireBase)throw dn("nobase","$location in HTML5 mode requires a <base> tag to be present!");t=(n=u).substring(0,n.indexOf("/",n.indexOf("//")+2))+(i||"/"),n=e.history?wn:Cn}else t=yn(u),n=xn;(l=new n(t,"#"+f)).$$parseLinkUrl(u,u),l.$$state=s.state();var c=/^\s*(javascript|mailto):/i;function p(t,e,n){var i=l.url(),r=l.$$state;try{s.url(t,e,n),l.$$state=s.state()}catch(t){throw l.url(i),l.$$state=r,t}}r.on("click",function(t){if(g.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var e=lt(t.target);"a"!==yt(e[0]);)if(e[0]===r[0]||!(e=e.parent())[0])return;var n=e.prop("href"),i=e.attr("href")||e.attr("xlink:href");ht(n)&&"[object SVGAnimatedString]"===n.toString()&&(n=hi(n.animVal).href),c.test(n)||!n||e.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(n,i)&&(t.preventDefault(),l.absUrl()!=s.url()&&(a.$apply(),o.angular["ff-684208-preventDefault"]=!0))}}),bn(l.absUrl())!=bn(u)&&s.url(l.absUrl(),!0);var h=!0;return s.onUrlChange(function(i,r){a.$evalAsync(function(){var t,e=l.absUrl(),n=l.$$state;l.$$parse(i),l.$$state=r,t=a.$broadcast("$locationChangeStart",i,e,r,n).defaultPrevented,l.absUrl()===i&&(t?(l.$$parse(e),l.$$state=n,p(e,!1,n)):(h=!1,d(e,n)))}),a.$$phase||a.$digest()}),a.$watch(function(){var n=bn(s.url()),t=bn(l.absUrl()),i=s.state(),r=l.$$replace,o=n!==t||l.$$html5&&e.history&&i!==l.$$state;(h||o)&&(h=!1,a.$evalAsync(function(){var t=l.absUrl(),e=a.$broadcast("$locationChangeStart",t,n,l.$$state,i).defaultPrevented;l.absUrl()===t&&(e?(l.$$parse(n),l.$$state=i):(o&&p(t,r,i===l.$$state?null:l.$$state),d(n,i)))})),l.$$replace=!1}),l;function d(t,e){a.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}}]}function Dn(){var i=!0,r=this;this.debugEnabled=function(t){return X(t)?(i=t,this):i},this.$get=["$window",function(e){return{log:n("log"),info:n("info"),warn:n("warn"),error:n("error"),debug:(t=n("debug"),function(){i&&t.apply(r,arguments)})};var t;function n(t){var n=e.console||{},i=n[t]||n.log||pt,t=!1;try{t=!!i.apply}catch(t){}return t?function(){var e=[];return ut(arguments,function(t){e.push(((t=t)instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t))}),i.apply(n,e)}:function(t,e){i(t,null==e?"":e)}}}]}ut([Cn,xn,wn],function(e){e.prototype=Object.create(kn),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==wn||!this.$$html5)throw dn("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=P(t)?null:t,this}});var An=b("$parse");function On(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw An("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Pn(t,e){if(t){if(t.constructor===t)throw An("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw An("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw An("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw An("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}var Mn=Function.prototype.call,In=Function.prototype.apply,Rn=Function.prototype.bind;var jn=Tt();ut({null:function(){return null},true:function(){return!0},false:function(){return!1},undefined:function(){}},function(t,e){t.constant=t.literal=t.sharedGetter=!0,jn[e]=t}),jn.this=function(t){return t},jn.this.sharedGetter=!0;var Nn=j(Tt(),{"+":function(t,e,n,i){return n=n(t,e),i=i(t,e),X(n)?X(i)?n+i:n:X(i)?i:st},"-":function(t,e,n,i){return n=n(t,e),i=i(t,e),(X(n)?n:0)-(X(i)?i:0)},"*":function(t,e,n,i){return n(t,e)*i(t,e)},"/":function(t,e,n,i){return n(t,e)/i(t,e)},"%":function(t,e,n,i){return n(t,e)%i(t,e)},"===":function(t,e,n,i){return n(t,e)===i(t,e)},"!==":function(t,e,n,i){return n(t,e)!==i(t,e)},"==":function(t,e,n,i){return n(t,e)==i(t,e)},"!=":function(t,e,n,i){return n(t,e)!=i(t,e)},"<":function(t,e,n,i){return n(t,e)<i(t,e)},">":function(t,e,n,i){return n(t,e)>i(t,e)},"<=":function(t,e,n,i){return n(t,e)<=i(t,e)},">=":function(t,e,n,i){return n(t,e)>=i(t,e)},"&&":function(t,e,n,i){return n(t,e)&&i(t,e)},"||":function(t,e,n,i){return n(t,e)||i(t,e)},"!":function(t,e,n){return!n(t,e)},"=":!0,"|":!0}),Ln={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Fn=function(t){this.options=t};function Un(t){return t.constant}Fn.prototype={constructor:Fn,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e,n,i,r,o,a=this.text.charAt(this.index);'"'===a||"'"===a?this.readString(a):this.isNumber(a)||"."===a&&this.isNumber(this.peek())?this.readNumber():this.isIdent(a)?this.readIdent():this.is(a,"(){}[].,;:?")?(this.tokens.push({index:this.index,text:a}),this.index++):this.isWhitespace(a)?this.index++:(n=(e=a+this.peek())+this.peek(2),i=Nn[a],r=Nn[e],o=Nn[n],i||r||o?(this.tokens.push({index:this.index,text:a=o?n:r?e:a,operator:!0}),this.index+=a.length):this.throwError("Unexpected next character ",this.index,this.index+1))}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){t=t||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdent:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;n=X(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw An("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,n,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=I(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var i=this.peek();if("e"==n&&this.isExpOperator(i))t+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){for(var t=this.index;this.index<this.text.length;){var e=this.text.charAt(this.index);if(!this.isIdent(e)&&!this.isNumber(e))break;this.index++}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",i=t,r=!1;this.index<this.text.length;){var o,a=this.text.charAt(this.index);if(i+=a,r)"u"===a?((o=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+o+"]"),this.index+=4,n+=String.fromCharCode(parseInt(o,16))):n+=Ln[a]||a,r=!1;else if("\\"===a)r=!0;else{if(a===t)return this.index++,void this.tokens.push({index:e,text:i,constant:!0,value:n});n+=a}this.index++}this.throwError("Unterminated quote",e)}};var qn=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n};function _n(t,e,n,i,r){Pn(t,r),Pn(e,r);for(var o=n.split("."),a=0;1<o.length;a++){var s=On(o.shift(),r),l=0===a&&e&&e[s]||t[s];l||(t[s]=l={}),t=Pn(l,r)}return Pn(t[s=On(o.shift(),r)],r),t[s]=i}qn.ZERO=j(function(){return 0},{sharedGetter:!0,constant:!0}),qn.prototype={constructor:qn,parse:function(t){this.text=t,this.tokens=this.lexer.lex(t);t=this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t.literal=!!t.literal,t.constant=!!t.constant,t},primary:function(){var t,e,n;this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.peek().identifier&&this.peek().text in jn?t=jn[this.consume().text]:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());for(;e=this.expect("(","[",".");)"("===e.text?(t=this.functionCall(t,n),n=null):"["===e.text?t=this.objectIndex(n=t):"."===e.text?t=this.fieldAccess(n=t):this.throwError("IMPOSSIBLE");return t},throwError:function(t,e){throw An("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},peekToken:function(){if(0===this.tokens.length)throw An("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,i){return this.peekAhead(0,t,e,n,i)},peekAhead:function(t,e,n,i,r){if(this.tokens.length>t){var o=this.tokens[t],t=o.text;if(t===e||t===n||t===i||t===r||!e&&!n&&!i&&!r)return o}return!1},expect:function(t,e,n,i){i=this.peek(t,e,n,i);return!!i&&(this.tokens.shift(),i)},consume:function(t){if(0===this.tokens.length)throw An("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},unaryFn:function(t,n){var i=Nn[t];return j(function(t,e){return i(t,e,n)},{constant:n.constant,inputs:[n]})},binaryFn:function(n,t,i,e){var r=Nn[t];return j(function(t,e){return r(t,e,n,i)},{constant:n.constant&&i.constant,inputs:!e&&[n,i]})},identifier:function(){for(var t=this.consume().text;this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(");)t+=this.consume().text+this.consume().text;return function(i,t,r){var o=t.expensiveChecks,e=o?Bn:Hn,n=e[i];if(n)return n;var a=i.split("."),s=a.length;{var l,u;n=t.csp?s<6?Wn(a[0],a[1],a[2],a[3],a[4],r,o):function(t,e){for(var n,i=0;n=Wn(a[i++],a[i++],a[i++],a[i++],a[i++],r,o)(t,e),e=st,t=n,i<s;);return n}:(l="",o&&(l+="s = eso(s, fe);\nl = eso(l, fe);\n"),u=o,ut(a,function(t,e){On(t,r);e=(e?"s":'((l&&l.hasOwnProperty("'+t+'"))?l:s)')+"."+t;(o||Vn(t))&&(e="eso("+e+", fe)",u=!0),l+="if(s == null) return undefined;\ns="+e+";\n"}),l+="return s;",(t=new Function("s","l","eso","fe",l)).toString=v(l),u&&(t=function(n,i){return function(t,e){return n(t,e,Pn,i)}}(t,r)),t)}return n.sharedGetter=!0,n.assign=function(t,e,n){return _n(t,n,i,e,i)},e[i]=n}(t,this.options,this.text)},constant:function(){var t=this.consume().value;return j(function(){return t},{constant:!0,literal:!0})},statements:function(){for(var o=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&o.push(this.filterChain()),!this.expect(";"))return 1===o.length?o[0]:function(t,e){for(var n,i=0,r=o.length;i<r;i++)n=o[i](t,e);return n}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},filter:function(r){var o,a,s=this.$filter(this.consume().text);if(this.peek(":"))for(o=[],a=[];this.expect(":");)o.push(this.expression());var t=[r].concat(o||[]);return j(function(t,e){var n=r(t,e);if(a){a[0]=n;for(var i=o.length;i--;)a[i+1]=o[i](t,e);return s.apply(st,a)}return s(n)},{constant:!s.$stateful&&t.every(Un),inputs:!s.$stateful&&t})},expression:function(){return this.assignment()},assignment:function(){var n,t,i=this.ternary();return(t=this.expect("="))?(i.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),n=this.ternary(),j(function(t,e){return i.assign(t,n(t,e),e)},{inputs:[i,n]})):i},ternary:function(){var n,i=this.logicalOR();if(this.expect("?")&&(n=this.assignment(),this.consume(":"))){var r=this.assignment();return j(function(t,e){return(i(t,e)?n:r)(t,e)},{constant:i.constant&&n.constant&&r.constant})}return i},logicalOR:function(){for(var t,e=this.logicalAND();t=this.expect("||");)e=this.binaryFn(e,t.text,this.logicalAND(),!0);return e},logicalAND:function(){for(var t,e=this.equality();t=this.expect("&&");)e=this.binaryFn(e,t.text,this.equality(),!0);return e},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e=this.binaryFn(e,t.text,this.relational());return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e=this.binaryFn(e,t.text,this.additive());return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e=this.binaryFn(e,t.text,this.multiplicative());return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");
1)e=this.binaryFn(e,t.text,this.unary());return e},unary:function(){var t;return this.expect("+")?this.primary():(t=this.expect("-"))?this.binaryFn(qn.ZERO,t.text,this.unary()):(t=this.expect("!"))?this.unaryFn(t.text,this.unary()):this.primary()},fieldAccess:function(r){var o=this.identifier();return j(function(t,e,n){e=n||r(t,e);return null==e?st:o(e)},{assign:function(t,e,n){var i=r(t,n);return i||r.assign(t,i={},n),o.assign(i,e)}})},objectIndex:function(o){var a=this.text,s=this.expression();return this.consume("]"),j(function(t,e){var n=o(t,e),e=s(t,e);return On(e,a),n?Pn(n[e],a):st},{assign:function(t,e,n){var i=On(s(t,n),a),r=Pn(o(t,n),a);return r||o.assign(t,r={},n),r[i]=e}})},functionCall:function(o,a){var s=[];if(")"!==this.peekToken().text)for(;s.push(this.expression()),this.expect(","););this.consume(")");var l=this.text,u=s.length?[]:null;return function(t,e){var n=a?a(t,e):X(a)?st:t,i=o(t,e,n)||pt;if(u)for(var r=s.length;r--;)u[r]=Pn(s[r](t,e),l);Pn(n,l),function(t,e){if(t){if(t.constructor===t)throw An("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===Mn||t===In||t===Rn)throw An("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}(i,l);i=i.apply?i.apply(n,u):i(u[0],u[1],u[2],u[3],u[4]);return u&&(u.length=0),Pn(i,l)}},arrayDeclaration:function(){var o=[];if("]"!==this.peekToken().text)for(;!this.peek("]")&&(o.push(this.expression()),this.expect(",")););return this.consume("]"),j(function(t,e){for(var n=[],i=0,r=o.length;i<r;i++)n.push(o[i](t,e));return n},{literal:!0,constant:o.every(Un),inputs:o})},object:function(){var o=[],a=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;var t=this.consume()}while(t.constant?o.push(t.value):t.identifier?o.push(t.text):this.throwError("invalid key",t),this.consume(":"),a.push(this.expression()),this.expect(","));return this.consume("}"),j(function(t,e){for(var n={},i=0,r=a.length;i<r;i++)n[o[i]]=a[i](t,e);return n},{literal:!0,constant:a.every(Un),inputs:a})}};var Hn=Tt(),Bn=Tt();function Vn(t){return"constructor"==t}function Wn(n,i,r,o,a,e,t){On(n,e),On(i,e),On(r,e),On(o,e),On(a,e);function s(t){return Pn(t,e)}var l=t||Vn(n)?s:d,u=t||Vn(i)?s:d,c=t||Vn(r)?s:d,p=t||Vn(o)?s:d,h=t||Vn(a)?s:d;return function(t,e){t=e&&e.hasOwnProperty(n)?e:t;return null==t?t:(t=l(t[n]),i?null==t?st:(t=u(t[i]),r?null==t?st:(t=c(t[r]),o?null==t?st:(t=p(t[o]),a?null==t?st:t=h(t[a]):t):t):t):t)}}var zn=Object.prototype.valueOf;function Xn(t){return gt(t.valueOf)?t.valueOf():zn.call(t)}function Yn(){var b=Tt(),$=Tt();this.$get=["$filter","$sniffer",function(c,t){var p={csp:t.csp,expensiveChecks:!1},h={csp:t.csp,expensiveChecks:!0};return function(t,e,n){var i,r;switch(typeof t){case"string":var o,a,s,l=t=t.trim(),u=n?$:b;return(s=u[l])||(":"===t.charAt(0)&&":"===t.charAt(1)&&(r=!0,t=t.substring(2)),a=new Fn(o=n?h:p),(s=new qn(a,c,o).parse(t)).constant?s.$$watchDelegate=v:r?((r=i=s).sharedGetter&&((r=function(t,e){return i(t,e)}).literal=i.literal,r.constant=i.constant,r.assign=i.assign),(s=r).$$watchDelegate=s.literal?m:g):s.inputs&&(s.$$watchDelegate=f),u[l]=s),y(s,e);case"function":return y(t,e);default:return y(pt,e)}};function d(t,e){return null==t||null==e?t===e:("object"!=typeof t||"object"!=typeof(t=Xn(t)))&&(t===e||t!=t&&e!=e)}function f(t,e,n,o){var a;if(1===(s=o.$$inputs||(o.$$inputs=function t(e,n){for(var i=0,r=e.length;i<r;i++){var o=e[i];o.constant||(o.inputs?t(o.inputs,n):-1===n.indexOf(o)&&n.push(o))}return n}(o.inputs,[]))).length){var i=d,s=s[0];return t.$watch(function(t){var e=s(t);return d(e,i)||(a=o(t),i=e&&Xn(e)),a},e,n)}for(var l=[],r=0,u=s.length;r<u;r++)l[r]=d;return t.$watch(function(t){for(var e=!1,n=0,i=s.length;n<i;n++){var r=s[n](t);(e=e||!d(r,l[n]))&&(l[n]=r&&Xn(r))}return a=e?o(t):a},e,n)}function g(t,i,e,n){var r,o;return r=t.$watch(function(t){return n(t)},function(t,e,n){o=t,gt(i)&&i.apply(this,arguments),X(t)&&n.$$postDigest(function(){X(o)&&r()})},e)}function m(t,i,e,n){var r,o;return r=t.$watch(function(t){return n(t)},function(t,e,n){o=t,gt(i)&&i.call(this,t,e,n),a(t)&&n.$$postDigest(function(){a(o)&&r()})},e);function a(t){var e=!0;return ut(t,function(t){X(t)||(e=!1)}),e}}function v(t,i,e,n){var r;return r=t.$watch(function(t){return n(t)},function(t,e,n){gt(i)&&i.apply(this,arguments),r()},e)}function y(i,r){if(!r)return i;var t=i.$$watchDelegate,t=t!==m&&t!==g?function(t,e){var n=i(t,e);return r(n,t,e)}:function(t,e){var n=i(t,e),e=r(n,t,e);return X(n)?e:n};return i.$$watchDelegate&&i.$$watchDelegate!==f?t.$$watchDelegate=i.$$watchDelegate:r.$stateful||(t.$$watchDelegate=f,t.inputs=[i]),t}}]}function Gn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return Qn(function(t){e.$evalAsync(t)},t)}]}function Jn(){this.$get=["$browser","$exceptionHandler",function(e,t){return Qn(function(t){e.defer(t)},t)}]}function Qn(e,s){var n=b("$q",TypeError);function t(){this.$$state={status:0}}function i(e,n){return function(t){n.call(e,t)}}function l(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){!function(t){var e,n,i=t.pending;t.processScheduled=!1,t.pending=st;for(var r=0,o=i.length;r<o;++r){n=i[r][0],e=i[r][t.status];try{gt(e)?n.resolve(e(t.value)):1===t.status?n.resolve(t.value):n.reject(t.value)}catch(t){n.reject(t),s(t)}}}(t)}))}function o(){this.promise=new t,this.resolve=i(this,this.resolve),this.reject=i(this,this.reject),this.notify=i(this,this.notify)}t.prototype={then:function(t,e,n){var i=new o;
1return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,t,e,n]),0<this.$$state.status&&l(this.$$state),i.promise},catch:function(t){return this.then(null,t)},finally:function(e,t){return this.then(function(t){return u(t,!0,e)},function(t){return u(t,!1,e)},t)}},o.prototype={resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(n("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var e,n,i,r,o;function a(e){return function(t){o||(o=!0,e.call(n,t))}}i=(n=this).$$resolve,r=this.$$reject,o=!1,r=[a(i),a(r)];try{(ht(t)||gt(t))&&(e=t&&t.then),gt(e)?(this.promise.$$state.status=-1,e.call(t,r[0],r[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,l(this.promise.$$state))}catch(t){r[1](t),s(t)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,l(this.promise.$$state)},notify:function(r){var o=this.promise.$$state.pending;this.promise.$$state.status<=0&&o&&o.length&&e(function(){for(var t,e,n=0,i=o.length;n<i;n++){e=o[n][0],t=o[n][3];try{e.notify(gt(t)?t(r):r)}catch(t){s(t)}}})}};function r(t,e){var n=new o;return e?n.resolve(t):n.reject(t),n.promise}function a(t,e,n,i){var r=new o;return r.resolve(t),r.promise.then(e,n,i)}var u=function(t,e,n){var i=null;try{gt(n)&&(i=n())}catch(t){return r(t,!1)}return S(i)?i.then(function(){return r(t,e)},function(t){return r(t,!1)}):r(t,e)};function c(t){if(!gt(t))throw n("norslvr","Expected resolverFn, got '{0}'",t);if(!(this instanceof c))return new c(t);var e=new o;return t(function(t){e.resolve(t)},function(t){e.reject(t)}),e.promise}return c.defer=function(){return new o},c.reject=function(t){var e=new o;return e.reject(t),e.promise},c.when=a,c.all=function(t){var n=new o,i=0,r=ft(t)?[]:{};return ut(t,function(t,e){i++,a(t).then(function(t){r.hasOwnProperty(e)||(r[e]=t,--i||n.resolve(r))},function(t){r.hasOwnProperty(e)||n.reject(t)})}),0===i&&n.resolve(r),n.promise},c}function Kn(){this.$get=["$window","$timeout",function(t,n){var i=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,e=!!i,t=e?function(t){var e=i(t);return function(){r(e)}}:function(t){var e=n(t,16.66,!1);return function(){n.cancel(e)}};return t.supported=e,t}]}function Zn(){var x=10,C=b("$rootScope"),k=null,S=null;this.digestTtl=function(t){return x=arguments.length?t:x},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(t,h,d,f){function i(){this.$id=r(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,(this.$root=this).$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$isolateBindings=null}i.prototype={constructor:i,$new:function(t,e){var n;return e=e||this,t?(n=new i).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$id=r(),this.$$ChildScope=null},this.$$ChildScope.prototype=this),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,!t&&e==this||n.$on("$destroy",function(){n.$$destroyed=!0}),n},$watch:function(t,e,n){var i=d(t);if(i.$$watchDelegate)return i.$$watchDelegate(this,e,n,i);var r=this.$$watchers,o={fn:e,last:$,get:i,exp:t,eq:!!n};return k=null,gt(e)||(o.fn=pt),(r=r||(this.$$watchers=[])).unshift(o),function(){bt(r,o),k=null}},$watchGroup:function(t,i){var r=new Array(t.length),o=new Array(t.length),e=[],a=this,s=!1,n=!0;if(t.length)return 1===t.length?this.$watch(t[0],function(t,e,n){o[0]=t,r[0]=e,i(o,t===e?o:r,n)}):(ut(t,function(t,n){t=a.$watch(t,function(t,e){o[n]=t,r[n]=e,s||(s=!0,a.$evalAsync(u))});e.push(t)}),function(){for(;e.length;)e.shift()()});var l=!0;return a.$evalAsync(function(){l&&i(o,o,a)}),function(){l=!1};function u(){s=!1,n?(n=!1,i(o,o,a)):i(o,r,a)}},$watchCollection:function(t,n){e.$stateful=!0;var a,s,i,r=this,o=1<n.length,l=0,t=d(t,e),u=[],c={},p=!0,h=0;function e(t){var e,n,i,r;if(!P(a=t)){if(ht(a))if(R(a)){s!==u&&(h=(s=u).length=0,l++),e=a.length,h!==e&&(l++,s.length=h=e);for(var o=0;o<e;o++)r=s[o],i=a[o],r!=r&&i!=i||r===i||(l++,s[o]=i)}else{for(n in s!==c&&(s=c={},h=0,l++),e=0,a)a.hasOwnProperty(n)&&(e++,i=a[n],r=s[n],n in s?r!=r&&i!=i||r===i||(l++,s[n]=i):(h++,s[n]=i,l++));if(e<h)for(n in l++,s)a.hasOwnProperty(n)||(h--,delete s[n])}else s!==a&&(s=a,l++);return l}}return this.$watch(t,function(){if(p?(p=!1,n(a,a,r)):n(a,i,r),o)if(ht(a))if(R(a)){i=new Array(a.length);for(var t=0;t<a.length;t++)i[t]=a[t]}else for(var e in i={},a)T.call(a,e)&&(i[e]=a[e]);else i=a})},$digest:function(){var t,e,n,i,r,o,a,s,l,u,c=x,p=[];y("$digest"),f.$$checkUrlChange(),this===g&&null!==S&&(f.defer.cancel(S),w()),k=null;do{for(o=!1,s=this;m.length;){try{(u=m.shift()).scope.$eval(u.expression,u.locals)}catch(t){h(t)}k=null}
1t:do{if(i=s.$$watchers)for(r=i.length;r--;)try{if(t=i[r])if((e=t.get(s))===(n=t.last)||(t.eq?$t(e,n):"number"==typeof e&&"number"==typeof n&&isNaN(e)&&isNaN(n))){if(t===k){o=!1;break t}}else o=!0,(k=t).last=t.eq?A(e,null):e,t.fn(e,n===$?e:n,s),c<5&&(p[l=4-c]||(p[l]=[]),p[l].push({msg:gt(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:e,oldVal:n}))}catch(t){h(t)}if(!(a=s.$$childHead||s!==this&&s.$$nextSibling))for(;s!==this&&!(a=s.$$nextSibling);)s=s.$parent}while(s=a);if((o||m.length)&&!c--)throw b(),C("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",x,p)}while(o||m.length);for(b();v.length;)try{v.shift()()}catch(t){h(t)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;if(this.$broadcast("$destroy"),this.$$destroyed=!0,this!==g){for(var e in this.$$listenerCount)o(this,this.$$listenerCount[e],e);t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=pt,this.$on=this.$watch=this.$watchGroup=function(){return pt},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}}},$eval:function(t,e){return d(t)(this,e)},$evalAsync:function(t,e){g.$$phase||m.length||f.defer(function(){m.length&&g.$digest()}),m.push({scope:this,expression:t,locals:e})},$$postDigest:function(t){v.push(t)},$apply:function(t){try{return y("$apply"),this.$eval(t)}catch(t){h(t)}finally{b();try{g.$digest()}catch(t){throw h(t),t}}},$applyAsync:function(t){var e=this;t&&n.push(function(){e.$eval(t)}),null===S&&(S=f.defer(function(){g.$apply(w)}))},$on:function(e,n){var i=this.$$listeners[e];i||(this.$$listeners[e]=i=[]),i.push(n);for(var t=this;t.$$listenerCount[e]||(t.$$listenerCount[e]=0),t.$$listenerCount[e]++,t=t.$parent;);var r=this;return function(){var t=i.indexOf(n);-1!==t&&(i[t]=null,o(r,1,e))}},$emit:function(t,e){var n,i,r,o=[],a=this,s=!1,l={name:t,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},u=N([l],arguments,1);do{for(n=a.$$listeners[t]||o,l.currentScope=a,i=0,r=n.length;i<r;i++)if(n[i])try{n[i].apply(null,u)}catch(t){h(t)}else n.splice(i,1),i--,r--;if(s)return l.currentScope=null,l}while(a=a.$parent);return l.currentScope=null,l},$broadcast:function(t,e){var n=this,i=this,r={name:t,targetScope:this,preventDefault:function(){r.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[t])return r;for(var o,a,s,l=N([r],arguments,1);n=i;){for(a=0,s=(o=(r.currentScope=n).$$listeners[t]||[]).length;a<s;a++)if(o[a])try{o[a].apply(null,l)}catch(t){h(t)}else o.splice(a,1),a--,s--;if(!(i=n.$$listenerCount[t]&&n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(i=n.$$nextSibling);)n=n.$parent}return r.currentScope=null,r}};var g=new i,m=g.$$asyncQueue=[],v=g.$$postDigestQueue=[],n=g.$$applyAsyncQueue=[];return g;function y(t){if(g.$$phase)throw C("inprog","{0} already in progress",g.$$phase);g.$$phase=t}function b(){g.$$phase=null}function o(t,e,n){for(;t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n],t=t.$parent;);}function $(){}function w(){for(;n.length;)try{n.shift()()}catch(t){h(t)}S=null}}]}function ti(){var i=/^\s*(https?|ftp|mailto|tel|file):/,r=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return X(t)?(i=t,this):i},this.imgSrcSanitizationWhitelist=function(t){return X(t)?(r=t,this):r},this.$get=function(){return function(t,e){var n=e?r:i,e=hi(t).href;return""===e||e.match(n)?t:"unsafe:"+e}}}var ei=b("$sce"),ni={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function ii(t){var e=[];return X(t)&&ut(t,function(t){e.push(function(t){if("self"===t)return t;if(dt(t)){if(-1<t.indexOf("***"))throw ei("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=E(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(y(t))return new RegExp("^"+t.source+"$");throw ei("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))}),e}function ri(){this.SCE_CONTEXTS=ni;var a=["self"],s=[];this.resourceUrlWhitelist=function(t){return a=arguments.length?ii(t):a},this.resourceUrlBlacklist=function(t){return s=arguments.length?ii(t):s},this.$get=["$injector",function(t){var i=function(t){throw ei("unsafe","Attempting to use an unsafe value in a safe context.")};function o(t,e){return"self"===t?di(e):t.exec(e.href)}function e(t){function e(t){this.$$unwrapTrustedValue=function(){return t}}return(e.prototype=t?new t:e.prototype).valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}t.has("$sanitize")&&(i=t.get("$sanitize"));var n=e(),r={};return r[ni.HTML]=e(n),r[ni.CSS]=e(n),r[ni.URL]=e(n),r[ni.JS]=e(n),r[ni.RESOURCE_URL]=e(r[ni.URL]),{trustAs:function(t,e){var n=r.hasOwnProperty(t)?r[t]:null;
1if(!n)throw ei("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||e===st||""===e)return e;if("string"!=typeof e)throw ei("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(t,e){if(null===e||e===st||""===e)return e;var n=r.hasOwnProperty(t)?r[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(t===ni.RESOURCE_URL){if(function(t){for(var e=hi(t.toString()),n=!1,i=0,r=a.length;i<r;i++)if(o(a[i],e)){n=!0;break}if(n)for(i=0,r=s.length;i<r;i++)if(o(s[i],e)){n=!1;break}return n}(e))return e;throw ei("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",e.toString())}if(t===ni.HTML)return i(e);throw ei("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof n?t.$$unwrapTrustedValue():t}}}]}function oi(){var e=!0;this.enabled=function(t){return e=arguments.length?!!t:e},this.$get=["$parse","$sceDelegate",function(i,t){if(e&&W<8)throw ei("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var r=O(ni);r.isEnabled=function(){return e},r.trustAs=t.trustAs,r.getTrusted=t.getTrusted,r.valueOf=t.valueOf,e||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=d),r.parseAs=function(e,t){var n=i(t);return n.literal&&n.constant?n:i(t,function(t){return r.getTrusted(e,t)})};var n=r.parseAs,o=r.getTrusted,a=r.trustAs;return ut(ni,function(e,t){t=I(t);r[Bt("parse_as_"+t)]=function(t){return n(e,t)},r[Bt("get_trusted_"+t)]=function(t){return o(e,t)},r[Bt("trust_as_"+t)]=function(t){return a(e,t)}}),r}]}function ai(){this.$get=["$window","$document",function(t,e){var n,i={},r=h((/android (\d+)/.exec(I((t.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},s=/^(Moz|webkit|ms)(?=[A-Z])/,l=a.body&&a.body.style,u=!1,e=!1;if(l){for(var c in l)if(c=s.exec(c)){n=(n=c[0]).substr(0,1).toUpperCase()+n.substr(1);break}n=n||"WebkitOpacity"in l&&"webkit",u=!!("transition"in l||n+"Transition"in l),e=!!("animation"in l||n+"Animation"in l),!r||u&&e||(u=dt(a.body.style.webkitTransition),e=dt(a.body.style.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||r<4||o),hasEvent:function(t){return!("input"===t&&W<=11)&&(P(i[t])&&(e=a.createElement("div"),i[t]="on"+t in e),i[t]);var e},csp:M(),vendorPrefix:n,transitions:u,animations:e,android:r}}]}Le=b("$compile");function si(){this.$get=["$templateCache","$http","$q",function(i,r,o){function a(e,n){a.totalPendingRequests++;var t=r.defaults&&r.defaults.transformResponse;return ft(t)?t=t.filter(function(t){return t!==Ke}):t===Ke&&(t=null),r.get(e,{cache:i,transformResponse:t}).finally(function(){a.totalPendingRequests--}).then(function(t){return t.data},function(t){if(n)return o.reject(t);throw Le("tpload","Failed to load template: {0}",e)})}return a.totalPendingRequests=0,a}]}function li(){this.$get=["$rootScope","$browser","$location",function(e,n,i){var t={findBindings:function(t,n,i){var t=t.getElementsByClassName("ng-binding"),r=[];return ut(t,function(e){var t=$.element(e).data("$binding");t&&ut(t,function(t){i?new RegExp("(^|\\s)"+E(n)+"(\\s|\\||$)").test(t)&&r.push(e):-1!=t.indexOf(n)&&r.push(e)})}),r},findModels:function(t,e,n){for(var i=["ng-","data-ng-","ng\\:"],r=0;r<i.length;++r){var o=t.querySelectorAll("["+i[r]+"model"+(n?"=":"*=")+'"'+e+'"]');if(o.length)return o}},getLocation:function(){return i.url()},setLocation:function(t){t!==i.url()&&(i.url(t),e.$digest())},whenStable:function(t){n.notifyWhenNoOutstandingRequests(t)}};return t}]}function ui(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,s,l,u,c){var p={};function t(t,e,n){var i=X(n)&&!n,r=(i?u:l).defer(),o=r.promise,e=s.defer(function(){try{r.resolve(t())}catch(t){r.reject(t),c(t)}finally{delete p[o.$$timeoutId]}i||a.$apply()},e);return o.$$timeoutId=e,p[e]=r,o}return t.cancel=function(t){return!!(t&&t.$$timeoutId in p)&&(p[t.$$timeoutId].reject("canceled"),delete p[t.$$timeoutId],s.defer.cancel(t.$$timeoutId))},t}]}var ci=at.createElement("a"),pi=hi(u.location.href);function hi(t){return W&&(ci.setAttribute("href",t),t=ci.href),ci.setAttribute("href",t),{href:ci.href,protocol:ci.protocol?ci.protocol.replace(/:$/,""):"",host:ci.host,search:ci.search?ci.search.replace(/^\?/,""):"",hash:ci.hash?ci.hash.replace(/^#/,""):"",hostname:ci.hostname,port:ci.port,pathname:"/"===ci.pathname.charAt(0)?ci.pathname:"/"+ci.pathname}}function di(t){t=dt(t)?hi(t):t;return t.protocol===pi.protocol&&t.host===pi.host}function fi(){this.$get=v(u)}function gi(i){var r="Filter";function o(t,e){if(ht(t)){var n={};return ut(t,function(t,e){n[e]=o(e,t)}),n}return i.factory(t+r,e)}this.register=o,this.$get=["$injector",function(e){return function(t){return e.get(t+r)}}],o("currency",yi),o("date",Oi),o("filter",mi),o("json",Pi),o("limitTo",Ri),o("lowercase",Mi),o("number",bi),o("orderBy",ji),o("uppercase",Ii)}function mi(){return function(t,e,n){if(!ft(t))return t;var i,r;switch(typeof e){case"function":i=e;break;case"boolean":case"number":case"string":r=!0;case"object":i=function(e,n,i){var r=ht(e)&&"$"in e;!0===n?n=$t:gt(n)||(n=function(t,e){return!ht(t)&&!ht(e)&&(t=I(""+t),e=I(""+e),-1!==t.indexOf(e))});return function(t){return r&&!ht(t)?vi(t,e.$,n,!1):vi(t,e,n,i)}}(e,n,r);break;default:return t}return t.filter(i)}}function vi(t,e,n,i,r){var o,a=typeof t,s=typeof e;if("string"==s&&"!"===e.charAt(0))return!vi(t,e.substring(1),n,i);if(ft(t))return t.some(function(t){return vi(t,e,n,i)});switch(a){case"object":if(i){for(o in t)if("$"!==o.charAt(0)&&vi(t[o],e,n,!0))return!0;return!r&&vi(t,e,n,!1)}if("object"!=s)return n(t,e);for(o in e){var l=e[o];if(!gt(l)){var u="$"===o;if(!vi(u?t:t[o],l,n,u,u))return!1}}return!0;case"function":return!1;default:return n(t,e)}}function yi(t){var i=t.NUMBER_FORMATS;return function(t,e,n){return P(e)&&(e=i.CURRENCY_SYM),P(n)&&(n=i.PATTERNS[1].maxFrac),null==t?t:wi(t,i.PATTERNS[1],i.GROUP_SEP,i.DECIMAL_SEP,n).replace(/\u00A4/g,e)}}function bi(t){var n=t.NUMBER_FORMATS;return function(t,e){return null==t?t:wi(t,n.PATTERNS[0],n.GROUP_SEP,n.DECIMAL_SEP,e)}}gi.$inject=["$provide"],yi.$inject=["$locale"],bi.$inject=["$locale"];var $i=".";function wi(t,e,n,i,r){if(!isFinite(t)||ht(t))return"";var o,a=t<0,s=(t=Math.abs(t))+"",l="",u=[],c=!1;if(-1!==s.indexOf("e")&&((o=s.match(/([\d\.]+)e(-?)(\d+)/))&&"-"==o[2]&&o[3]>r+1?t=0:(l=s,c=!0)),c)0<r&&t<1&&(l=t.toFixed(r),t=parseFloat(l));else{s=(s.split($i)[1]||"").length;P(r)&&(r=Math.min(Math.max(e.minFrac,s),e.maxFrac));var p,h=(d=(""+(t=+(Math.round(+(t.toString()+"e"+r)).toString()+"e"+-r))).split($i))[0],d=d[1]||"",f=0,g=e.lgSize,m=e.gSize;if(h.length>=g+m)for(f=h.length-g,p=0;p<f;p++)(f-p)%m==0&&0!==p&&(l+=n),l+=h.charAt(p);for(p=f;p<h.length;p++)(h.length-p)%g==0&&0!==p&&(l+=n),l+=h.charAt(p);for(;d.length<r;)d+="0";r&&"0"!==r&&(l+=i+d.substr(0,r))}return u.push((a=0===t?!1:a)?e.negPre:e.posPre,l,a?e.negSuf:e.posSuf),u.join("")}function xi(t,e,n){var i="";for(t<0&&(i="-",t=-t),t=""+t;t.length<e;)t="0"+t;return i+(t=n?t.substr(t.length-e):t)}function Ci(e,n,i,r){return i=i||0,function(t){t=t["get"+e]();return(0<i||-i<t)&&(t+=i),xi(t=0===t&&-12==i?12:t,n,r)}}function ki(n,i){return function(t,e){t=t["get"+n]();return e[l(i?"SHORT"+n:n)][t]}}function Si(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Ti(n){return function(t){var e=Si(t.getFullYear()),t=(t=t,new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay())));return xi(1+Math.round((+t-+e)/6048e5),n)}}var Ei={yyyy:Ci("FullYear",4),yy:Ci("FullYear",2,0,!0),y:Ci("FullYear",1),MMMM:ki("Month"),MMM:ki("Month",!0),MM:Ci("Month",2,1),M:Ci("Month",1,1),dd:Ci("Date",2),d:Ci("Date",1),HH:Ci("Hours",2),H:Ci("Hours",1),hh:Ci("Hours",2,-12),h:Ci("Hours",1,-12),mm:Ci("Minutes",2),m:Ci("Minutes",1),ss:Ci("Seconds",2),s:Ci("Seconds",1),sss:Ci("Milliseconds",3),EEEE:ki("Day"),EEE:ki("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t){var e=-1*t.getTimezoneOffset(),t=0<=e?"+":"";return t+=xi(Math[0<e?"floor":"ceil"](e/60),2)+xi(Math.abs(e%60),2)},ww:Ti(2),w:Ti(1)},Di=/((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|w+))(.*)/,Ai=/^\-?\d+$/;function Oi(s){var l=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(e,t,n){var i,r,o="",a=[];if(t=s.DATETIME_FORMATS[t=t||"mediumDate"]||t,!x(e=w(e=dt(e)?(Ai.test(e)?h:function(t){if(a=t.match(l)){var e=new Date(0),n=0,i=0,r=a[8]?e.setUTCFullYear:e.setFullYear,o=a[8]?e.setUTCHours:e.setHours;a[9]&&(n=h(a[9]+a[10]),i=h(a[9]+a[11])),r.call(e,h(a[1]),h(a[2])-1,h(a[3]));var r=h(a[4]||0)-n,n=h(a[5]||0)-i,i=h(a[6]||0),a=Math.round(1e3*parseFloat("0."+(a[7]||0)));return o.call(e,r,n,i,a),e}return t})(e):e)?new Date(e):e))return e;for(;t;)t=(r=Di.exec(t))?(a=N(a,r,1)).pop():(a.push(t),null);return n&&"UTC"===n&&(e=new Date(e.getTime())).setMinutes(e.getMinutes()+e.getTimezoneOffset()),ut(a,function(t){i=Ei[t],o+=i?i(e,s.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),o}}function Pi(){return function(t,e){return U(t,e=P(e)?2:e)}}Oi.$inject=["$locale"];var Mi=v(I),Ii=v(l);function Ri(){return function(t,e){return w(t)&&(t=t.toString()),ft(t)||dt(t)?(e=(Math.abs(Number(e))===1/0?Number:h)(e))?0<e?t.slice(0,e):t.slice(e):dt(t)?"":[]:t}}function ji(l){return function(t,r,e){return R(t)?(r=(r=0===(r=ft(r)?r:[r]).length?["+"]:r).map(function(t){var e=!1,n=t||d;if(dt(t)){if("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(e="-"==t.charAt(0),t=t.substring(1)),""===t)return o(s,e);if((n=l(t)).constant){var i=n();return o(function(t,e){return s(t[i],e[i])},e)}}return o(function(t,e){return s(n(t),n(e))},e)}),i.call(t).sort(o(function(t,e){for(var n=0;n<r.length;n++){var i=r[n](t,e);if(0!==i)return i}return 0},e))):t;function o(n,t){return t?function(t,e){return n(e,t)}:n}function n(t){switch(typeof t){case"number":case"boolean":case"string":return 1;default:return}}function a(t){return null===t?"null":"function"==typeof t.valueOf&&n(t=t.valueOf())||"function"==typeof t.toString&&n(t=t.toString())?t:""}function s(t,e){var n=typeof t,i=typeof e;return n==i&&"object"==n&&(t=a(t),e=a(e)),n==i?("string"==n&&(t=t.toLowerCase(),e=e.toLowerCase()),t===e?0:t<e?-1:1):n<i?-1:1}}}function Ni(t){return(t=gt(t)?{link:t}:t).restrict=t.restrict||"AC",v(t)}ji.$inject=["$parse"];var Li=v({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref&&!e.name)return function(t,e){var n;"a"===e[0].nodeName.toLowerCase()&&(n="[object SVGAnimatedString]"===s.call(e.prop("href"))?"xlink:href":"href",e.on("click",function(t){e.attr(n)||t.preventDefault()}))}}}),Fi={};ut(fe,function(t,i){var r;"multiple"!=t&&(r=qe("ng-"+i),Fi[r]=function(){return{restrict:"A",priority:100,link:function(t,e,n){t.$watch(n[r],function(t){n.$set(i,!!t)})}}})}),ut(me,function(t,r){Fi[r]=function(){return{priority:100,link:function(t,e,n){if("ngPattern"===r&&"/"==n.ngPattern.charAt(0)){var i=n.ngPattern.match(o);if(i)return void n.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(n[r],function(t){n.$set(r,t)})}}}}),ut(["src","srcset","href"],function(o){var a=qe("ng-"+o);Fi[a]=function(){return{priority:99,link:function(t,e,n){var i=o,r=o;"href"===o&&"[object SVGAnimatedString]"===s.call(e.prop("href"))&&(n.$attr[r="xlinkHref"]="xlink:href",i=null),n.$observe(a,function(t){t?(n.$set(r,t),W&&i&&e.prop(i,n[r])):"href"===o&&n.$set(r,null)})}}}});var Ui={$addControl:pt,$$renameControl:function(t,e){t.$name=e},$removeControl:pt,$setValidity:pt,$setDirty:pt,$setPristine:pt,$setSubmitted:pt},qi="ng-submitted";function _i(t,e,n,i,r){var o=this,a=[],s=o.$$parentForm=t.parent().controller("form")||Ui;o.$error={},o.$$success={},o.$pending=st,o.$name=r(e.name||e.ngForm||"")(n),o.$dirty=!1,o.$pristine=!0,o.$valid=!0,o.$invalid=!1,o.$submitted=!1,s.$addControl(o),o.$rollbackViewValue=function(){ut(a,function(t){t.$rollbackViewValue()})},o.$commitViewValue=function(){ut(a,function(t){t.$commitViewValue()})},o.$addControl=function(t){it(t.$name,"input"),a.push(t),t.$name&&(o[t.$name]=t)},o.$$renameControl=function(t,e){var n=t.$name;o[n]===t&&delete o[n],(o[e]=t).$name=e},o.$removeControl=function(n){n.$name&&o[n.$name]===n&&delete o[n.$name],ut(o.$pending,function(t,e){o.$setValidity(e,null,n)}),ut(o.$error,function(t,e){o.$setValidity(e,null,n)}),ut(o.$$success,function(t,e){o.$setValidity(e,null,n)}),bt(a,n)},Lr({ctrl:this,$element:t,set:function(t,e,n){var i=t[e];i?-1===i.indexOf(n)&&i.push(n):t[e]=[n]},unset:function(t,e,n){var i=t[e];i&&(bt(i,n),0===i.length&&delete t[e])},parentForm:s,$animate:i}),o.$setDirty=function(){i.removeClass(t,Dr),i.addClass(t,Ar),o.$dirty=!0,o.$pristine=!1,s.$setDirty()},o.$setPristine=function(){i.setClass(t,Dr,Ar+" "+qi),o.$dirty=!1,o.$pristine=!0,o.$submitted=!1,ut(a,function(t){t.$setPristine()})},o.$setUntouched=function(){ut(a,function(t){t.$setUntouched()})},o.$setSubmitted=function(){i.addClass(t,qi),o.$submitted=!0,s.$setSubmitted()}}_i.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Hi=function(t){return["$timeout",function(s){return{name:"form",restrict:t?"EAC":"E",controller:_i,compile:function(t){return t.addClass(Dr).addClass(Tr),{pre:function(e,t,n,i){var r;"action"in n||(Lt(t[0],"submit",r=function(t){e.$apply(function(){i.$commitViewValue(),i.$setSubmitted()}),t.preventDefault()}),t.on("$destroy",function(){s(function(){Ft(t[0],"submit",r)},0,!1)}));var o=i.$$parentForm,a=i.$name;a&&(_n(e,null,a,i,a),n.$observe(n.name?"name":"ngForm",function(t){a!==t&&(_n(e,null,a,st,a),_n(e,null,a=t,i,a),o.$$renameControl(i,a))})),t.on("$destroy",function(){o.$removeControl(i),a&&_n(e,null,a,st,a),j(i,Ui)})}}}}}]},Bi=Hi(),Vi=Hi(!0),Wi=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,zi=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Xi=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Yi=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Gi=/^(\d{4})-(\d{2})-(\d{2})$/,Ji=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Qi=/^(\d{4})-W(\d\d)$/,t=/^(\d{4})-(\d\d)$/,Hi=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ki={text:function(t,e,n,i,r,o){tr(0,e,n,i,r,o),Zi(i)},date:nr("date",Gi,er(Gi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":nr("datetimelocal",Ji,er(Ji,["yyyy","MM","dd","HH","mm","ss","
1sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:nr("time",Hi,er(Hi,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:nr("week",Qi,function(t,e){if(x(t))return t;if(dt(t)){Qi.lastIndex=0;var n=Qi.exec(t);if(n){var i=+n[1],r=+n[2],o=0,a=0,s=0,t=0,n=Si(i),r=7*(r-1);return e&&(o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),t=e.getMilliseconds()),new Date(i,0,n.getDate()+r,o,a,s,t)}}return NaN},"yyyy-Www"),month:nr("month",t,er(t,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,i,r,o){{var a;ir(0,e,0,i),tr(0,e,n,i,r,o),i.$$parserName="number",i.$parsers.push(function(t){return i.$isEmpty(t)?null:Yi.test(t)?parseFloat(t):st}),i.$formatters.push(function(t){if(!i.$isEmpty(t)){if(!w(t))throw Ir("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),(X(n.min)||n.ngMin)&&(i.$validators.min=function(t){return i.$isEmpty(t)||P(a)||a<=t},n.$observe("min",function(t){X(t)&&!w(t)&&(t=parseFloat(t,10)),a=w(t)&&!isNaN(t)?t:st,i.$validate()}))}{var s;(X(n.max)||n.ngMax)&&(i.$validators.max=function(t){return i.$isEmpty(t)||P(s)||t<=s},n.$observe("max",function(t){X(t)&&!w(t)&&(t=parseFloat(t,10)),s=w(t)&&!isNaN(t)?t:st,i.$validate()}))}},url:function(t,e,n,i,r,o){tr(0,e,n,i,r,o),Zi(i),i.$$parserName="url",i.$validators.url=function(t,e){e=t||e;return i.$isEmpty(e)||zi.test(e)}},email:function(t,e,n,i,r,o){tr(0,e,n,i,r,o),Zi(i),i.$$parserName="email",i.$validators.email=function(t,e){e=t||e;
1return i.$isEmpty(e)||Xi.test(e)}},radio:function(t,e,n,i){P(n.name)&&e.attr("name",r());e.on("click",function(t){e[0].checked&&i.$setViewValue(n.value,t&&t.type)}),i.$render=function(){var t=n.value;e[0].checked=t==i.$viewValue},n.$observe("value",i.$render)},checkbox:function(t,e,n,i,r,o,a,s){var l=rr(s,t,"ngTrueValue",n.ngTrueValue,!0),u=rr(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("click",function(t){i.$setViewValue(e[0].checked,t&&t.type)}),i.$render=function(){e[0].checked=i.$viewValue},i.$isEmpty=function(t){return!1===t},i.$formatters.push(function(t){return $t(t,l)}),i.$parsers.push(function(t){return t?l:u})},hidden:pt,button:pt,submit:pt,reset:pt,file:pt};function Zi(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function tr(t,n,i,r,e,o){var a,s=I(n[0].type);e.android||(a=!1,n.on("compositionstart",function(t){a=!0}),n.on("compositionend",function(){a=!1,c()}));var l,u,c=function(t){var e;l&&(o.defer.cancel(l),l=null),a||(e=n.val(),t=t&&t.type,"password"===s||i.ngTrim&&"false"===i.ngTrim||(e=vt(e)),(r.$viewValue!==e||""===e&&r.$$hasNativeValidators)&&r.$setViewValue(e,t))};e.hasEvent("input")?n.on("input",c):(u=function(t,e,n){l=l||o.defer(function(){l=null,e&&e.value===n||c(t)})},n.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||u(t,this,this.value)}),e.hasEvent("paste")&&n.on("paste cut",u)),n.on("change",c),r.$render=function(){n.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function er(i,r){return function(t,e){var n;if(x(t))return t;if(dt(t)){if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.substring(1,t.length-1)),Wi.test(t))return new Date(t);if(i.lastIndex=0,t=i.exec(t))return t.shift(),n=e?{yyyy:e.getFullYear(),MM:e.getMonth()+1,dd:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds(),sss:e.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},ut(t,function(t,e){e<r.length&&(n[r[e]]=+t)}),new Date(n.yyyy,n.MM-1,n.dd,n.HH,n.mm,n.ss||0,1e3*n.sss||0)}return NaN}}function nr(d,f,g,m){return function(t,e,n,i,r,o,a){ir(0,e,0,i),tr(0,e,n,i,r,o);var s,l,u,c=i&&i.$options&&i.$options.timezone;function p(t){return t&&(!t.getTime||t.getTime()===t.getTime())}function h(t){return X(t)?x(t)?t:g(t):st}i.$$parserName=d,i.$parsers.push(function(t){if(i.$isEmpty(t))return null;if(f.test(t)){t=g(t,s);return"UTC"===c&&t.setMinutes(t.getMinutes()-t.getTimezoneOffset()),t}return st}),i.$formatters.push(function(t){if(t&&!x(t))throw Ir("datefmt","Expected `{0}` to be a date",t);var e;return p(t)?((s=t)&&"UTC"===c&&(e=6e4*s.getTimezoneOffset(),s=new Date(s.getTime()+e)),a("date")(t,m,c)):(s=null,"")}),(X(n.min)||n.ngMin)&&(i.$validators.min=function(t){return!p(t)||P(l)||g(t)>=l},n.$observe("min",function(t){l=h(t),i.$validate()})),(X(n.max)||n.ngMax)&&(i.$validators.max=function(t){return!p(t)||P(u)||g(t)<=u},n.$observe("max",function(t){u=h(t),i.$validate()}))}}function ir(t,n,e,i){var r=n[0];(i.$$hasNativeValidators=ht(r.validity))&&i.$parsers.push(function(t){var e=n.prop(a)||{};return e.badInput&&!e.typeMismatch?st:t})}function rr(t,e,n,i,r){if(X(i)){if(!(t=t(i)).constant)throw b("ngModel")("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return t(e)}return r}function or(){return{restrict:"A",priority:100,compile:function(t,e){return sr.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}}var ar=["$browser","$sniffer","$filter","$parse",function(r,o,a,s){return{restrict:"E",require:["?ngModel"],link:{pre:function(t,e,n,i){i[0]&&(Ki[I(n.type)]||Ki.text)(t,e,n,i[0],o,r,a,s)}}}}],sr=/^(true|false|\d+)$/,lr=["$compile",function(i){return{restrict:"AC",compile:function(t){return i.$$addBindingClass(t),function(t,e,n){i.$$addBindingInfo(e,n.ngBind),e=e[0],t.$watch(n.ngBind,function(t){e.textContent=t===st?"":t})}}}}],ur=["$interpolate","$compile",function(r,o){return{compile:function(t){return o.$$addBindingClass(t),function(t,e,n){var i=r(e.attr(n.$attr.ngBindTemplate));o.$$addBindingInfo(e,i.expressions),e=e[0],n.$observe("ngBindTemplate",function(t){e.textContent=t===st?"":t})}}}}],cr=["$sce","$parse","$compile",function(o,n,a){return{restrict:"A",compile:function(t,e){var i=n(e.ngBindHtml),r=n(e.ngBindHtml,function(t){return(t||"").toString()});return a.$$addBindingClass(t),function(t,e,n){a.$$addBindingInfo(e,n.ngBindHtml),t.$watch(r,function(){e.html(o.getTrustedHtml(i(t))||"")})}}}}],pr=v({restrict:"A",require:"ngModel",link:function(t,e,n,i){i.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}});function hr(i,d){return i="ngClass"+i,["$animate",function(c){return{restrict:"AC",link:function(o,a,n){var s;function l(t){t=u(t,1);n.$addClass(t)}function u(t,e){var n=a.data("$classCounts")||{},i=[];return ut(t,function(t){(0<e||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(0<e)&&i.push(t))}),a.data("$classCounts",n),i.join(" ")}function e(t){var e,n,i,r;!0!==d&&o.$index%2!==d||(e=h(t||[]),s?$t(t,s)||(r=h(s),r=p(i=e,n=r),i=p(n,i),r=u(r,1),i=u(i,-1),r&&r.length&&c.addClass(a,r),i&&i.length&&c.removeClass(a,i)):l(e)),s=O(t)}o.$watch(n[i],e,!0),n.$observe("class",function(t){e(o.$eval(n[i]))}),"ngClass"!==i&&o.$watch("$index",function(t,e){t&=1;t!=(1&e)&&(e=h(o.$eval(n[i])),(t===d?l:function(t){t=u(t,-1);n.$removeClass(t)})(e))})}};function p(t,e){var n=[];t:for(var i=0;i<t.length;i++){for(var r=t[i],o=0;o<e.length;o++)if(r==e[o])continue t;n.push(r)}return n}function h(t){if(ft(t))return t;if(dt(t))return t.split(" ");if(ht(t)){var n=[];return ut(t,function(t,e){t&&(n=n.concat(e.split(" ")))}),n}return t}}]}
1var dr=hr("",!0),fr=hr("Odd",0),gr=hr("Even",1),mr=Ni({compile:function(t,e){e.$set("ngCloak",st),t.removeClass("ng-cloak")}}),vr=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],yr={},br={blur:!0,focus:!0};ut("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(o){var a=qe("ng-"+o);yr[a]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(t,e){var i=n(e[a],null,!0);return function(n,t){t.on(o,function(t){function e(){i(n,{$event:t})}br[o]&&r.$$phase?n.$evalAsync(e):n.$apply(e)})}}}}]});function $r(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var r=e.attr(n.$attr.ngList)||", ",o="false"!==n.ngTrim,a=o?vt(r):r;i.$parsers.push(function(t){if(!P(t)){var e=[];return t&&ut(t.split(a),function(t){t&&e.push(o?vt(t):t)}),e}}),i.$formatters.push(function(t){return ft(t)?t.join(r):st}),i.$isEmpty=function(t){return!t||!t.length}}}}function wr(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var n=this;this.$options=t.$eval(e.ngModelOptions),this.$options.updateOn!==st?(this.$options.updateOnDefault=!1,this.$options.updateOn=vt(this.$options.updateOn.replace(Nr,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}}var xr=["$animate",function(l){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(t,n,i,e,r){var o,a,s;t.$watch(i.ngIf,function(t){t?a||r(function(t,e){a=e,t[t.length++]=at.createComment(" end ngIf: "+i.ngIf+" "),o={clone:t},l.enter(t,n.parent(),n)}):(s&&(s.remove(),s=null),a&&(a.$destroy(),a=null),o&&(s=ot(o.clone),l.leave(s).then(function(){s=null}),o=null))})}}}],Cr=["$templateRequest","$anchorScroll","$animate","$sce",function(g,m,v,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:$.noop,compile:function(t,e){var n=e.ngInclude||e.src,d=e.onload||"",f=e.autoscroll;return function(o,a,t,s,l){function u(){e&&(e.remove(),e=null),c&&(c.$destroy(),c=null),p&&(v.leave(p).then(function(){e=null}),e=p,p=null)}var c,e,p,h=0;o.$watch(i.parseAsResourceUrl(n),function(n){function i(){!X(f)||f&&!o.$eval(f)||m()}var r=++h;n?(g(n,!0).then(function(t){var e;r===h&&(e=o.$new(),s.template=t,t=l(e,function(t){u(),v.enter(t,null,a).then(i)}),p=t,(c=e).$emit("$includeContentLoaded",n),o.$eval(d))},function(){r===h&&(u(),o.$emit("$includeContentError",n))}),o.$emit("$includeContentRequested",n)):(u(),s.template=null)})}}}}],kr=["$compile",function(r){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,e,n,i){if(/SVG/.test(e[0].toString()))return e.empty(),void r(Qt(i.template,at).childNodes)(t,function(t){e.append(t)},{futureParentElement:e});e.html(i.template),r(e.contents())(t)}}}],Sr=Ni({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Tr="ng-valid",Er="ng-invalid",Dr="ng-pristine",Ar="ng-dirty",Or="ng-untouched",Pr="ng-touched",Mr="ng-pending",Ir=new b("ngModel"),Rr=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(o,e,r,a,s,t,i,l,u,n){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=st,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=st,this.$name=n(r.name||"",!1)(o);var c,p=s(r.ngModel),h=p.assign,d=p,f=h,g=null,m=this;this.$$setOptions=function(t){if((m.$options=t)&&t.getterSetter){var n=s(r.ngModel+"()"),i=s(r.ngModel+"($$$p)");d=function(t){var e=p(t);return e=gt(e)?n(t):e},f=function(t,e){gt(p(t))?i(t,{$$$p:m.$modelValue}):h(t,m.$modelValue)}}else if(!p.assign)throw Ir("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,xt(a))},this.$render=pt,this.$isEmpty=function(t){return P(t)||""===t||null===t||t!=t};var v=a.inheritedData("$formController")||Ui,y=0;Lr({ctrl:this,$element:a,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},parentForm:v,$animate:t}),this.$setPristine=function(){m.$dirty=!1,m.$pristine=!0,t.removeClass(a,Ar),t.addClass(a,Dr)},this.$setDirty=function(){m.$dirty=!0,m.$pristine=!1,t.removeClass(a,Dr),t.addClass(a,Ar),v.$setDirty()},this.$setUntouched=function(){m.$touched=!1,m.$untouched=!0,t.setClass(a,Or,Pr)},this.$setTouched=function(){m.$touched=!0,m.$untouched=!1,t.setClass(a,Pr,Or)},this.$rollbackViewValue=function(){i.cancel(g),m.$viewValue=m.$$lastCommittedViewValue,m.$render()},this.$validate=function(){var t,e,n,i,r;w(m.$modelValue)&&isNaN(m.$modelValue)||(t=m.$$lastCommittedViewValue,e=m.$$rawModelValue,n=m.$valid,i=m.$modelValue,r=m.$options&&m.$options.allowInvalid,m.$$runValidators(e,t,function(t){r||n===t||(m.$modelValue=t?e:st,m.$modelValue!==i&&m.$$writeModelToScope())}))},this.$$runValidators=function(n,i,e){var r,o,a,s=++y;function l(t,e){s===y&&m.$setValidity(t,e)}function t(t){s===y&&e(t)}!function(){var t=m.$$parserName||"parse";{if(c!==st)return c||(ut(m.$validators,function(t,e){l(e,null)}),ut(m.$asyncValidators,function(t,e){l(e,null)})),l(t,c),c;l(t,null)}return!0}()?t(!1):(r=!0,ut(m.$validators,function(t,e){t=t(n,i);r=r&&t,l(e,t)}),r||(ut(m.$asyncValidators,function(t,e){l(e,null)}),0)?(o=[],a=!0,ut(m.$asyncValidators,function(t,e){t=t(n,i);
1if(!S(t))throw Ir("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",t);l(e,st),o.push(t.then(function(){l(e,!0)},function(t){l(e,a=!1)}))}),o.length?u.all(o).then(function(){t(a)},pt):t(!0)):t(!1))},this.$commitViewValue=function(){var t=m.$viewValue;i.cancel(g),(m.$$lastCommittedViewValue!==t||""===t&&m.$$hasNativeValidators)&&(m.$$lastCommittedViewValue=t,m.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var e=m.$$lastCommittedViewValue;if(c=!P(e)||st)for(var t=0;t<m.$parsers.length;t++)if(P(e=m.$parsers[t](e))){c=!1;break}w(m.$modelValue)&&isNaN(m.$modelValue)&&(m.$modelValue=d(o));var n=m.$modelValue,i=m.$options&&m.$options.allowInvalid;function r(){m.$modelValue!==n&&m.$$writeModelToScope()}m.$$rawModelValue=e,i&&(m.$modelValue=e,r()),m.$$runValidators(e,m.$$lastCommittedViewValue,function(t){i||(m.$modelValue=t?e:st,r())})},this.$$writeModelToScope=function(){f(o,m.$modelValue),ut(m.$viewChangeListeners,function(t){try{t()}catch(t){e(t)}})},this.$setViewValue=function(t,e){m.$viewValue=t,m.$options&&!m.$options.updateOnDefault||m.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(t){var e=0,n=m.$options;n&&X(n.debounce)&&(w(n=n.debounce)?e=n:w(n[t])?e=n[t]:w(n.default)&&(e=n.default)),i.cancel(g),e?g=i(function(){m.$commitViewValue()},e):l.$$phase?m.$commitViewValue():o.$apply(function(){m.$commitViewValue()})},o.$watch(function(){var t=d(o);if(t!==m.$modelValue){m.$modelValue=m.$$rawModelValue=t,c=st;for(var e=m.$formatters,n=e.length,i=t;n--;)i=e[n](i);m.$viewValue!==i&&(m.$viewValue=m.$$lastCommittedViewValue=i,m.$render(),m.$$runValidators(t,i,pt))}return t})}],jr=["$rootScope",function(o){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Rr,priority:1,compile:function(t){return t.addClass(Dr).addClass(Or).addClass(Tr),{pre:function(t,e,n,i){var r=i[0],o=i[1]||Ui;r.$$setOptions(i[2]&&i[2].$options),o.$addControl(r),n.$observe("name",function(t){r.$name!==t&&o.$$renameControl(r,t)}),t.$on("$destroy",function(){o.$removeControl(r)})},post:function(e,t,n,i){var r=i[0];r.$options&&r.$options.updateOn&&t.on(r.$options.updateOn,function(t){r.$$debounceViewValueCommit(t&&t.type)}),t.on("blur",function(t){r.$touched||(o.$$phase?e.$evalAsync(r.$setTouched):e.$apply(r.$setTouched))})}}}}}],Nr=/(\s+|^)default(\s+|$)/;function Lr(t){var i=t.ctrl,n=t.$element,r={},o=t.set,a=t.unset,s=t.parentForm,l=t.$animate;function u(t,e){e&&!r[t]?(l.addClass(n,t),r[t]=!0):!e&&r[t]&&(l.removeClass(n,t),r[t]=!1)}function c(t,e){t=t?"-"+Ct(t,"-"):"",u(Tr+t,!0===e),u(Er+t,!1===e)}r[Er]=!(r[Tr]=n.hasClass(Tr)),i.$setValidity=function(t,e,n){(e===st?function(t,e,n){i[t]||(i[t]={});o(i[t],e,n)}:function(t,e,n){i[t]&&a(i[t],e,n);Fr(i[t])&&(i[t]=st)})("$pending",t,n);k(e)?e?(a(i.$error,t,n),o(i.$$success,t,n)):(o(i.$error,t,n),a(i.$$success,t,n)):(a(i.$error,t,n),a(i.$$success,t,n));i.$pending?(u(Mr,!0),i.$valid=i.$invalid=st,c("",null)):(u(Mr,!1),i.$valid=Fr(i.$error),i.$invalid=!i.$valid,c("",i.$valid));n=i.$pending&&i.$pending[t]?st:!i.$error[t]&&(!!i.$$success[t]||null);c(t,n),s.$setValidity(t,n,i)}}function Fr(t){if(t)for(var e in t)return!1;return!0}function Ur(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){i&&(n.required=!0,i.$validators.required=function(t,e){return!n.required||!i.$isEmpty(e)},n.$observe("required",function(){i.$validate()}))}}}function qr(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){var r,o;i&&(o=n.ngPattern||n.pattern,n.$observe("pattern",function(t){if((t=dt(t)&&0<t.length?new RegExp("^"+t+"$"):t)&&!t.test)throw b("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",o,t,xt(e));r=t||st,i.$validate()}),i.$validators.pattern=function(t){return i.$isEmpty(t)||P(r)||r.test(t)})}}}function _r(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){var r;i&&(r=-1,n.$observe("maxlength",function(t){t=h(t);r=isNaN(t)?-1:t,i.$validate()}),i.$validators.maxlength=function(t,e){return r<0||i.$isEmpty(e)||e.length<=r})}}}function Hr(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){var r;i&&(r=0,n.$observe("minlength",function(t){r=h(t)||0,i.$validate()}),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=r})}}}var Br,Vr=Ni({terminal:!0,priority:1e3}),Wr=["$locale","$interpolate",function(d,f){var g=/{}/g,m=/^when(Minus)?(.+)$/;return{restrict:"EA",link:function(n,i,r){var o,t=r.count,e=r.$attr.when&&i.attr(r.$attr.when),a=r.offset||0,s=n.$eval(e)||{},l={},u=f.startSymbol(),e=f.endSymbol(),c=u+t+"-"+a+e,p=$.noop;function h(t){i.text(t||"")}ut(r,function(t,e){var n=m.exec(e);n&&(n=(n[1]?"-":"")+I(n[2]),s[n]=i.attr(r.$attr[e]))}),ut(s,function(t,e){l[e]=f(t.replace(g,c))}),n.$watch(t,function(t){var e=parseFloat(t),t=isNaN(e);(e=!(t||e in s)?d.pluralCat(e-a):e)===o||t&&isNaN(o)||(p(),p=n.$watch(l[e],h),o=e)})}}}],zr=["$parse","$animate",function(s,O){function P(t,e,n,i,r,o,a){t[n]=i,r&&(t[r]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))}var M="$$NG_REMOVED",I=b("ngRepeat");return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,e){var x=e.ngRepeat,C=at.createComment(" end ngRepeat: "+x+" "),n=x.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!n)throw I("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",x);var i=n[1],r=n[2],k=n[3],e=n[4];if(!(n=i.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw I("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",i);var o,S,T,E,D=n[3]||n[1],A=n[2];if(k&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(k)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(k)))throw I("badident","alias '{0}
1' is invalid --- must be a valid JS identifier which is not a reserved name.",k);var a={$id:we};return e?o=s(e):(T=function(t,e){return we(e)},E=function(t){return t}),function(y,b,t,e,$){o&&(S=function(t,e,n){return A&&(a[A]=t),a[D]=e,a.$index=n,o(y,a)});var w=Tt();y.$watchCollection(r,function(t){var n,e,i,r,o,a,s,l,u,c,p,h,d,f,g=b[0],m=Tt();if(k&&(y[k]=t),R(t))u=t,l=S||T;else{for(var v in l=S||E,u=[],t)t.hasOwnProperty(v)&&"$"!=v.charAt(0)&&u.push(v);u.sort()}for(r=u.length,p=new Array(r),n=0;n<r;n++)if(o=t===u?n:u[n],a=t[o],s=l(o,a,n),w[s])c=w[s],delete w[s],m[s]=c,p[n]=c;else{if(m[s])throw ut(p,function(t){t&&t.scope&&(w[t.id]=t)}),I("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",x,s,a);p[n]={id:s,scope:st,clone:st},m[s]=!0}for(d in w){if(h=ot((c=w[d]).clone),O.leave(h),h[0].parentNode)for(n=0,e=h.length;n<e;n++)h[n][M]=!0;c.scope.$destroy()}for(n=0;n<r;n++)if(o=t===u?n:u[n],a=t[o],(c=p[n]).scope){for(i=g;(i=i.nextSibling)&&i[M];);c.clone[0]!=i&&O.move(ot(c.clone),null,lt(g)),g=(f=c).clone[f.clone.length-1],P(c.scope,n,D,a,A,o,r)}else $(function(t,e){c.scope=e;e=C.cloneNode(!1);t[t.length++]=e,O.enter(t,null,lt(g)),g=e,c.clone=t,m[c.id]=c,P(c.scope,n,D,a,A,o,r)});w=m})}}}}],Xr="ng-hide",Yr="ng-hide-animate",Gr=["$animate",function(i){return{restrict:"A",multiElement:!0,link:function(t,e,n){t.$watch(n.ngShow,function(t){i[t?"removeClass":"addClass"](e,Xr,{tempClasses:Yr})})}}}],Jr=["$animate",function(i){return{restrict:"A",multiElement:!0,link:function(t,e,n){t.$watch(n.ngHide,function(t){i[t?"addClass":"removeClass"](e,Xr,{tempClasses:Yr})})}}}],Qr=Ni(function(t,n,e){t.$watchCollection(e.ngStyle,function(t,e){e&&t!==e&&ut(e,function(t,e){n.css(e,"")}),t&&n.css(t)})}),Kr=["$animate",function(u){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,e,n,r){var o,n=n.ngSwitch||n.on,a=[],s=[],l=[];t.$watch(n,function(t){for(var e=0,n=s.length;e<n;++e)u.cancel(s[e]);for(e=s.length=0,n=l.length;e<n;++e){var i=ot(a[e].clone);l[e].$destroy(),(s[e]=u.leave(i)).then(function(t,e){return function(){t.splice(e,1)}}(s,e))}a.length=0,l.length=0,(o=r.cases["!"+t]||r.cases["?"])&&ut(o,function(n){n.transclude(function(t,e){l.push(e);e=n.element;t[t.length++]=at.createComment(" end ngSwitchWhen: "),a.push({clone:t}),u.enter(t,e.parent(),e)})})})}}}],Zr=Ni({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["!"+n.ngSwitchWhen]=i.cases["!"+n.ngSwitchWhen]||[],i.cases["!"+n.ngSwitchWhen].push({transclude:r,element:e})}}),to=Ni({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:e})}}),eo=Ni({restrict:"EAC",link:function(t,e,n,i,r){if(!r)throw b("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",xt(e));r(function(t){e.empty(),e.append(t)})}}),no=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,e){"text/ng-template"==e.type&&(e=e.id,t=t[0].text,n.put(e,t))}}}],io=b("ngOptions"),ro=v({restrict:"A",terminal:!0}),oo=["$compile","$parse",function(b,$){var w=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,s={$setViewValue:pt};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(n,t,e){var i,r=this,o={},a=s;r.databound=e.ngModel,r.init=function(t,e,n){a=t,i=n},r.addOption=function(t,e){it(t,'"option value"'),o[t]=!0,a.$viewValue==t&&(n.val(t),i.parent()&&i.remove()),e&&e[0].hasAttribute("selected")&&(e[0].selected=!0)},r.removeOption=function(t){this.hasOption(t)&&(delete o[t],a.$viewValue===t&&this.renderUnknownOption(t))},r.renderUnknownOption=function(t){t="? "+we(t)+" ?";i.val(t),n.prepend(i),n.val(t),i.prop("selected",!0)},r.hasOption=function(t){return o.hasOwnProperty(t)},t.$on("$destroy",function(){r.renderUnknownOption=pt})}],link:function(t,e,n,i){if(i[1]){for(var r,o,a,s,l,u,c,p,h,U=i[0],d=i[1],q=n.multiple,f=n.ngOptions,_=!1,H=!1,B=lt(at.createElement("option")),V=lt(at.createElement("optgroup")),g=B.clone(),m=0,v=e.children(),y=v.length;m<y;m++)if(""===v[m].value){r=_=v.eq(m);break}U.init(d,_,g),q&&(d.$isEmpty=function(t){return!t||0===t.length}),f?function(k,S,T){var t;if(!(t=f.match(w)))throw io("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",f,xt(S));var E=$(t[2]||t[1]),i=t[4]||t[6],e=/ as /.test(t[0])&&t[1],D=e?$(e):null,A=t[5],O=$(t[3]||""),P=$(t[2]?t[1]:i),M=$(t[7]),I=t[8]?$(t[8]):null,R={},j=[[{element:S,label:""}]],N={};_&&(b(_)(k),_.removeClass("ng-scope"),_.remove());S.empty(),S.on("change",function(){k.$apply(function(){var t,e,n=M(k)||[];q?(e=[],ut(S.val(),function(t){t=I?R[t]:t,e.push(r(t,n[t]))})):(t=I?R[S.val()]:S.val(),e=r(t,n[t])),T.$setViewValue(e),o()})}),T.$render=o,k.$watchCollection(M,n),k.$watchCollection(function(){var t,e=M(k);{if(e&&ft(e)){t=new Array(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=L(E,n,e[n]);return t}if(e)for(var r in t={},e)e.hasOwnProperty(r)&&(t[r]=L(E,r,e[r]))}return t},n),q&&k.$watchCollection(function(){return T.$modelValue},n);function L(t,e,n){return N[i]=n,A&&(N[A]=e),t(k,N)}function r(t,e){return"?"===t?st:""===t?null:L(D||P,t,e)}function n(){H||(k.$$postDigest(o),H=!0)}function F(t,e,n){t[e]=t[e]||0,t[e]+=n?1:-1}function o(){H=!1;var t,e,n,i,r,o,a,s,l,u,c,p,h,d,f,g,m={"":[]},v=[""],y=T.$viewValue,b=M(k)||[],$=A?z(b):b,w={},x=function(i){if(q)if(I&&ft(i))for(var r=new xe([]),t=0;t<i.length;t++)r.put(L(I,null,i[t]),!0);else r=new xe(i);else I&&(i=L(I,null,i));return function(t,e){var n=I||D||P;return q?X(r.remove(L(n,t,e))):i===L(n,t,e)}}(y),C=!1;for(R={},c=0;c<(l=$.length);c++)a=c,A&&"$"===(a=$[c]).charAt(0)||(g=b[a],(e=m[t=L(O,a,g)||""])||(e=m[t]=[],v.push(t)),p=x(a,g),C=C||p,f=X(f=L(E,a,g))?f:"",g=I?I(k,N):A?$[c]:c,I&&(R[g]=a),e.push({id:g,label:f,selected:p}));for(q||(_||null===y?m[""].unshift({id:"",label:"",selected:!C}):C||m[""].unshift({id:"?",label:"",selected:!0})),u=0,s=v.length;u<s;u++){for(e=m[t=v[u]],j.length<=u?(i={element:V.clone().attr("label",t),label:e.label},j.push(r=[i]),S.append(i.element)):(i=(r=j[u])[0]).label!=t&&i.element.attr("label",i.label=t),h=null,c=0,l=e.length;c<l;c++)n=e[c],(o=r[c+1])?(h=o.element,o.label!==n.label&&(F(w,o.label,!1),F(w,n.label,!0),h.text(o.label=n.label),h.prop("label",o.label)),o.id!==n.id&&h.val(o.id=n.id),h[0].selected!==n.selected&&(h.prop("selected",o.selected=n.selected),W&&h.prop("selected",o.selected))):(""===n.id&&_?d=_:(d=B.clone()).val(n.id).prop("selected",n.selected).attr("selected",n.selected).prop("label",n.label).text(n.label),r.push(o={element:d,label:n.label,id:n.id,selected:n.selected}),F(w,n.label,!0),h?h.after(d):i.element.append(d),h=d);for(c++;r.length>c;)F(w,(n=r.pop()).label,!1),n.element.remove()}for(;j.length>u;){for(e=j.pop(),c=1;c<e.length;++c)F(w,e[c].label,!1);e[0].element.remove()}ut(w,function(t,e){0<t?U.addOption(e):t<0&&U.removeOption(e)})}}(t,e,d):q?(u=t,c=e,(p=d).$render=function(){var e=new xe(p.$viewValue);ut(c.find("option"),function(t){t.selected=X(e.get(t.value))})},u.$watch(function(){$t(h,p.$viewValue)||(h=O(p.$viewValue),p.$render())}),c.on("change",function(){u.$apply(function(){var e=[];ut(c.find("option"),function(t){t.selected&&e.push(t.value)}),p.$setViewValue(e)})})):(o=t,a=e,l=U,(s=d).$render=function(){var t=s.$viewValue;l.hasOption(t)?(g.parent()&&g.remove(),a.val(t),""===t&&r.prop("selected",!0)):P(t)&&r?a.val(""):l.renderUnknownOption(t)},a.on("change",function(){o.$apply(function(){g.parent()&&g.remove(),s.$setViewValue(a.val())})}))}}}}],ao=["$interpolate",function(n){var s={addOption:pt,removeOption:pt};return{restrict:"E",priority:100,compile:function(t,e){var a;return P(e.value)&&((a=n(t.text(),!0))||e.$set("value",t.text())),function(t,n,i){var e="$selectController",r=n.parent(),o=r.data(e)||r.parent().data(e);o&&o.databound||(o=s),a?t.$watch(a,function(t,e){i.$set("value",t),e!==t&&o.removeOption(e),o.addOption(t,n)}
1):o.addOption(i.value,n),n.on("$destroy",function(){o.removeOption(i.value)})}}}}],so=v({restrict:"E",terminal:!1});u.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(et||((g=u.jQuery)&&g.fn.on?(j((lt=g).fn,{scope:de.scope,isolateScope:de.isolateScope,controller:de.controller,injector:de.injector,inheritedData:de.inheritedData}),Br=g.cleanData,g.cleanData=function(t){var e;if(kt)kt=!1;else for(var n,i=0;null!=(n=t[i]);i++)(e=g._data(n,"events"))&&e.$destroy&&g(n).triggerHandler("$destroy");Br(t)}):lt=Kt,$.element=lt,et=!0),function(t){j(t,{bootstrap:Q,copy:A,extend:j,equals:$t,element:lt,forEach:ut,injector:De,noop:pt,bind:L,toJson:U,fromJson:q,identity:d,isUndefined:P,isDefined:X,isString:dt,isFunction:gt,isObject:ht,isNumber:w,isElement:D,isArray:ft,version:Rt,isDate:x,lowercase:I,uppercase:l,callbacks:{counter:0},getTestability:Z,$$minErr:b,$$csp:M,reloadWithDebugInfo:K}),f=Mt(u);try{f("ngLocale")}catch(t){f("ngLocale",[]).provider("$locale",cn)}f("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:ti}),t.provider("$compile",Fe).directive({a:Li,input:ar,textarea:ar,form:Bi,script:no,select:oo,style:so,option:ao,ngBind:lr,ngBindHtml:cr,ngBindTemplate:ur,ngClass:dr,ngClassEven:gr,ngClassOdd:fr,ngCloak:mr,ngC
1ontroller:vr,ngForm:Vi,ngHide:Jr,ngIf:xr,ngInclude:Cr,ngInit:Sr,ngNonBindable:Vr,ngPluralize:Wr,ngRepeat:zr,ngShow:Gr,ngStyle:Qr,ngSwitch:Kr,ngSwitchWhen:Zr,ngSwitchDefault:to,ngOptions:ro,ngTransclude:eo,ngModel:jr,ngList:$r,ngChange:pr,pattern:qr,ngPattern:qr,required:Ur,ngRequired:Ur,minlength:Hr,ngMinlength:Hr,maxlength:_r,ngMaxlength:_r,ngValue:or,ngModelOptions:wr}).directive({ngInclude:kr}).directive(Fi).directive(yr),t.provider({$anchorScroll:Ae,$animate:Pe,$browser:Re,$cacheFactory:je,$controller:Ve,$document:We,$exceptionHandler:ze,$filter:gi,$interpolate:ln,$interval:un,$http:rn,$httpBackend:an,$location:En,$log:Dn,$parse:Yn,$rootScope:Zn,$q:Gn,$$q:Jn,$sce:oi,$sceDelegate:ri,$sniffer:ai,$templateCache:Ne,$templateRequest:si,$$testability:li,$timeout:ui,$window:fi,$$rAF:Kn,$$asyncCallback:Me,$$jqLite:$e})}])}($),lt(at).ready(function(){J(at,Q)}))}(window,document),window.angular.$$csp()||window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}</style>'),function(){var t,e,n,i,r="function"==typeof define&&define.amd,N={function:!0,object:!0},o=N[typeof exports]&&exports&&!exports.nodeType&&exports,L=N[typeof window]&&window||this,a=o&&N[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;function F(t,s){t=t||L.Object(),s=s||L.Object();var l=t.Number||L.Number,u=t.String||L.String,e=t.Object||L.Object,c=t.Date||L.Date,n=t.SyntaxError||L.SyntaxError,w=t.TypeError||L.TypeError,i=t.Math||L.Math,t=t.JSON||L.JSON;"object"==typeof t&&t&&(s.stringify=t.stringify,s.parse=t.parse);var x,C,k,p,S,T,E,h,D,r,A,d,O,P,M,f,g,m,v,y,o,a,b,$,e=e.prototype,I=e.toString,R=new c(-0xc782b5b800cec);try{R=-109252==R.getUTCFullYear()&&0===R.getUTCMonth()&&1===R.getUTCDate()&&10==R.getUTCHours()&&37==R.getUTCMinutes()&&6==R.getUTCSeconds()&&708==R.getUTCMilliseconds()}catch(t){}function j(t){if(j[t]!==k)return j[t];var e;if("bug-string-char-index"==t)e="a"!="a"[0];else if("json"==t)e=j("json-stringify")&&j("json-parse");else{var n='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var i=s.stringify,r="function"==typeof i&&R;if(r){(o=function(){return 1}).toJSON=o;try{r="0"===i(0)&&"0"===i(new l)&&'""'==i(new u)&&i(I)===k&&i(k)===k&&i()===k&&"1"===i(o)&&"[1]"==i([o])&&"[null]"==i([k])&&"null"==i(null)&&"[null,null,null]"==i([k,I,null])&&i({a:[o,!0,!1,null,"\0\b\n\f\r\t"]})==n&&"1"===i(null,o)&&"[\n 1,\n 2\n]"==i([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==i(new c(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==i(new c(864e13))&&'"-000001-01-01T00:00:00.000Z"'==i(new c(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==i(new c(-1))}catch(t){r=!1}}e=r}if("json-parse"==t){r=s.parse;if("function"==typeof r)try{if(0===r("0")&&!r(!1)){var o,a=5==(o=r(n)).a.length&&1===o.a[0];if(a){try{a=!r('"\t"')}catch(t){}if(a)try{a=1!==r("01")}catch(t){}if(a)try{a=1!==r("1.")}catch(t){}}}}catch(t){a=!1}e=a}}return j[t]=!!e}return j("json")||(p="[object Function]",S="[object Number]",T="[object String]",E="[object Array]",h=j("bug-string-char-index"),R||(D=i.floor,r=[0,31,59,90,120,151,181,212,243,273,304,334],A=function(t,e){return r[e]+365*(t-1970)+D((t-1969+(e=+(1<e)))/4)-D((t-1901+e)/100)+D((t-1601+e)/400)}),(x=e.hasOwnProperty)||(x=function(t){var n,e={__proto__:null};return e.__proto__={toString:1},x=e.toString!=I?function(t){var e=this.__proto__,t=t in(this.__proto__=null,this);return this.__proto__=e,t}:(n=e.constructor,function(t){var e=(this.constructor||n).prototype;return t in this&&!(t in e&&this[t]===e[t])}),e=null,x.call(this,t)}),C=function(t,e){var n,a,i,r=0;for(i in(n=function(){this.valueOf=0}).prototype.valueOf=0,a=new n)x.call(a,i)&&r++;return n=a=null,(C=r?2==r?function(t,e){var n,i={},r=I.call(t)==p;for(n in t)r&&"prototype"==n||x.call(i,n)||!(i[n]=1)||!x.call(t,n)||e(n)}:function(t,e){var n,i,r=I.call(t)==p;for(n in t)r&&"prototype"==n||!x.call(t,n)||(i="constructor"===n)||e(n);(i||x.call(t,n="constructor"))&&e(n)}
1:(a=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],function(t,e){var n,i,r=I.call(t)==p,o=!r&&"function"!=typeof t.constructor&&N[typeof t.hasOwnProperty]&&t.hasOwnProperty||x;for(n in t)r&&"prototype"==n||!o.call(t,n)||e(n);for(i=a.length;n=a[--i];o.call(t,n)&&e(n));}))(t,e)},j("json-stringify")||(d={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},O=function(t,e){return("000000"+(e||0)).slice(-t)},P=function(t){for(var e='"',n=0,i=t.length,r=!h||10<i,o=r&&(h?t.split(""):t);n<i;n++){var a=t.charCodeAt(n);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=d[a];break;default:if(a<32){e+="\\u00"+O(2,a.toString(16));break}e+=r?o[n]:t.charAt(n)}}return e+'"'},M=function(t,e,n,i,r,o,a){var s,l,u,c,p,h,d,f,g,m,v,y,b,$;try{s=e[t]}catch(t){}if("object"==typeof s&&s)if("[object Date]"!=(l=I.call(s))||x.call(s,"toJSON"))"function"==typeof s.toJSON&&(l!=S&&l!=T&&l!=E||x.call(s,"toJSON"))&&(s=s.toJSON(t));else if(-1/0<s&&s<1/0){if(A){for(p=D(s/864e5),u=D(p/365.2425)+1970-1;A(u+1,0)<=p;u++);for(c=D((p-A(u,0))/30.42);A(u,c+1)<=p;c++);p=1+p-A(u,c),h=D((g=(s%864e5+864e5)%864e5)/36e5)%24,d=D(g/6e4)%60,f=D(g/1e3)%60,g=g%1e3}else u=s.getUTCFullYear(),c=s.getUTCMonth(),p=s.getUTCDate(),h=s.getUTCHours(),d=s.getUTCMinutes(),f=s.getUTCSeconds(),g=s.getUTCMilliseconds();s=(u<=0||1e4<=u?(u<0?"-":"+")+O(6,u<0?-u:u):O(4,u))+"-"+O(2,c+1)+"-"+O(2,p)+"T"+O(2,h)+":"+O(2,d)+":"+O(2,f)+"."+O(3,g)+"Z"}else s=null;if(null===(s=n?n.call(e,t,s):s))return"null";if("[object Boolean]"==(l=I.call(s)))return""+s;if(l==S)return-1/0<s&&s<1/0?""+s:"null";if(l==T)return P(""+s);if("object"==typeof s){for(b=a.length;b--;)if(a[b]===s)throw w();if(a.push(s),m=[],t=o,o+=r,l==E){for(y=0,b=s.length;y<b;y++)v=M(y,s,n,i,r,o,a),m.push(v===k?"null":v);$=m.length?r?"[\n"+o+m.join(",\n"+o)+"\n"+t+"]":"["+m.join(",")+"]":"[]"}else C(i||s,function(t){var e=M(t,s,n,i,r,o,a);e!==k&&m.push(P(t)+":"+(r?" ":"")+e)}),$=m.length?r?"{\n"+o+m.join(",\n"+o)+"\n"+t+"}":"{"+m.join(",")+"}":"{}";return a.pop(),$}},s.stringify=function(t,e,n){var i,r,o;if(N[typeof e]&&e)if((o=I.call(e))==p)r=e;else if(o==E)for(var a,s={},l=0,u=e.length;l<u;a=e[l++],(o=I.call(a))!=T&&o!=S||(s[a]=1));if(n)if((o=I.call(n))==S){if(0<(n-=n%1))for(i="",10<n&&(n=10);i.length<n;i+=" ");}else o==T&&(i=n.length<=10?n:n.slice(0,10));return M("",((a={})[""]=t,a),r,s,i,"",[])}),j("json-parse")||(f=u.fromCharCode,g={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},y=function(){throw m=v=null,n()},o=function(){for(var t,e,n,i,r,o=v,a=o.length;m<a;)switch(r=o.charCodeAt(m)){case 9:case 10:case 13:case 32:m++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=h?o.charAt(m):o[m],m++,t;case 34:for(t="@",m++;m<a;)if((r=o.charCodeAt(m))<32)y();else if(92==r)switch(r=o.charCodeAt(++m)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=g[r],m++;break;case 117:for(e=++m,n=m+4;m<n;m++)48<=(r=o.charCodeAt(m))&&r<=57||97<=r&&r<=102||65<=r&&r<=70||y();t+=f("0x"+o.slice(e,m));break;default:y()}else{if(34==r)break;for(r=o.charCodeAt(m),e=m;32<=r&&92!=r&&34!=r;)r=o.charCodeAt(++m);t+=o.slice(e,m)}if(34==o.charCodeAt(m))return m++,t;y();default:if(e=m,45==r&&(i=!0,r=o.charCodeAt(++m)),48<=r&&r<=57){for(48==r&&(48<=(r=o.charCodeAt(m+1))&&r<=57)&&y(),i=!1;m<a&&(48<=(r=o.charCodeAt(m))&&r<=57);m++);if(46==o.charCodeAt(m)){for(n=++m;n<a&&(48<=(r=o.charCodeAt(n))&&r<=57);n++);n==m&&y(),m=n}if(101==(r=o.charCodeAt(m))||69==r){for(43!=(r=o.charCodeAt(++m))&&45!=r||m++,n=m;n<a&&(48<=(r=o.charCodeAt(n))&&r<=57);n++);n==m&&y(),m=n}return+o.slice(e,m)}if(i&&y(),"true"==o.slice(m,m+4))return m+=4,!0;if("false"==o.slice(m,m+5))return m+=5,!1;if("null"==o.slice(m,m+4))return m+=4,null;y()}return"$"},a=function(t){var e,n;if("$"==t&&y(),"string"==typeof t){if("@"==(h?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=o());n=n||!0)!n||","==t&&"]"!=(t=o())||y(),","==t&&y(),e.push(a(t));return e}if("{"==t){for(e={};"}"!=(t=o());n=n||!0)!n||","==t&&"}"!=(t=o())||y(),","!=t&&"string"==typeof t&&"@"==(h?t.charAt(0):t[0])&&":"==o()||y(),e[t.slice(1)]=a(o());return e}y()}return t},b=function(t,e,n){n=$(t,e,n);n===k?delete t[e]:t[e]=n},$=function(t,e,n){var i,r=t[e];if("object"==typeof r&&r)if(I.call(r)==E)for(i=r.length;i--;)b(r,i,n);else C(r,function(t){b(r,t,n)});return n.call(t,e,r)},s.parse=function(t,e){var n;return m=0,v=""+t,n=a(o()),"$"!=o()&&y(),m=v=null,e&&I.call(e)==p?$(((t={})[""]=n,t),"",e):n})),s.runInContext=F,s}!a||a.global!==a&&a.window!==a&&a.self!==a||(L=a),o&&!r?F(L,o):(t=L.JSON,e=L.JSON3,n=!1,i=F(L,L.JSON3={noConflict:function(){return n||(n=!0,L.JSON=t,L.JSON3=e,t=e=null),i}}),L.JSON={parse:i.parse,stringify:i.stringify}),r&&define(function(){return i})}.call(this),function(t,e){"use strict";"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.returnExports=e()}(this,function(){function e(t){try{var e=L.call(t).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return F.test(e)}catch(t){return}}function h(t){return!!t&&(("function"==typeof t||"object"==typeof t)&&(N?function(t){try{return e(t)?!1:(L.call(t),!0)}catch(t){return!1}}(t):!e(t)&&("[object Function]"===(t=j.call(t))||"[object GeneratorFunction]"===t)))}var r,o,t,n,a,s,l=Array,i=l.prototype,u=Object,c=u.prototype,p=Function,d=p.prototype,m=String,f=m.prototype,v=Number,g=v.prototype,y=i.slice,b=i.splice,$=i.push,w=i.unshift,x=i.concat,C=i.join,k=d.call,S=d.apply,T=Math.max,E=Math.min,D=Math.floor,A=Math.abs,O=Math.pow,P=Math.round,M=Math.log,I=Math.LOG10E,R=Math.log10||function(t){return M(t)*I},j=c.toString,N="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,L=Function.prototype.toString,F=/^\s*class /,U=RegExp.prototype.exec,q=function(t){return"object"==typeof t&&(N?function(t){try{return U.call(t),!0}catch(t){return!1}}(t):"[object RegExp]"===j.call(t))},_=String.prototype.valueOf,H=function(t){return"string"==typeof t||"object"==typeof t&&(N?function(t){try{return _.call(t),!0}catch(t){return!1}}(t):"[object String]"===j.call(t))},B=u.defineProperty&&function(){try{var t,e={};for(t in u.defineProperty(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(t){return!1}}(),V=(r=c.hasOwnProperty,o=B?function(t,e,n,i){!i&&e in t||u.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(t,e,n,i){!i&&e in t||(t[e]=n)},function(t,e,n){for(var i in e)r.call(e,i)&&o(t,i,e[i],n)});u.defineProperty&&(u.defineProperty(t=function(){},"prototype",{value:{toString:n={}},writable:!1}),(new t).toString!==n&&(a=u.defineProperty,s=u.getOwnPropertyDescriptor,V(u,{defineProperty:function(t,e,n){var i=m(e);if("function"!=typeof t||"prototype"!==i)return a(t,i,n);e=s(t,i);if(e.writable&&!n.writable&&"value"in n)try{t[i]=n.value}catch(t){}return a(t,i,{configurable:("configurable"in n?n:e).configurable,enumerable:("enumerable"in n?n:e).enumerable,writable:n.writable})}},!0)));function W(t){var e=typeof t;return null===t||"object"!=e&&"function"!=e}function z(){}var X=v.isNaN||function(t){return t!=t},Y=function(t){t=+t;return X(t)?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(0<t||-1)*D(A(t))),t},G=function(t){var e,n;if(W(t))return t;if(n=t.valueOf,h(n)&&(e=n.call(t),W(e)))return e;if(n=t.toString,h(n)&&(e=n.call(t),W(e)))return e;throw new TypeError},J=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return u(t)},Q=function(t){return t>>>0};V(d,{bind:function(e){var n=this;if(!h(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);
1for(var i,r=y.call(arguments,1),t=T(0,n.length-r.length),o=[],a=0;a<t;a++)$.call(o,"$"+a);return i=p("binder","return function ("+C.call(o,",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof i){var t=S.call(n,this,x.call(r,y.call(arguments)));return u(t)===t?t:this}return S.call(n,e,x.call(r,y.call(arguments)))}),n.prototype&&(z.prototype=n.prototype,i.prototype=new z,z.prototype=null),i}});var K=k.bind(c.hasOwnProperty),Z=k.bind(c.toString),tt=k.bind(y),et=S.bind(y);if("object"==typeof document&&document&&document.documentElement)try{tt(document.documentElement.childNodes)}catch(t){var nt=tt,it=et,tt=function(t){for(var e=[],n=t.length;0<n--;)e[n]=t[n];return it(e,nt(arguments,1))},et=function(t,e){return it(tt(t),e)}}var rt=k.bind(f.slice),ot=k.bind(f.split),at=k.bind(f.indexOf),st=k.bind($),lt=k.bind(c.propertyIsEnumerable),ut=k.bind(i.sort),ct=l.isArray||function(t){return"[object Array]"===Z(t)},d=1!==[].unshift(0);V(i,{unshift:function(){return w.apply(this,arguments),this.length}},d),V(l,{isArray:ct});var c=u("a"),pt="a"!==c[0]||!(0 in c),d=function(t){var i=!0,e=!0,n=!1;if(t)try{t.call("foo",function(t,e,n){"object"!=typeof n&&(i=!1)}),t.call([1],function(){"use strict";e="string"==typeof this},"x")}catch(t){n=!0}return!!t&&!n&&i&&e};V(i,{forEach:function(t){var e,n=J(this),i=pt&&H(this)?ot(this,""):n,r=-1,o=Q(i.length);if(1<arguments.length&&(e=arguments[1]),!h(t))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++r<o;)r in i&&(void 0===e?t(i[r],r,n):t.call(e,i[r],r,n))}},!d(i.forEach)),V(i,{map:function(t){var e,n=J(this),i=pt&&H(this)?ot(this,""):n,r=Q(i.length),o=l(r);if(1<arguments.length&&(e=arguments[1]),!h(t))throw new TypeError("Array.prototype.map callback must be a function");for(var a=0;a<r;a++)a in i&&(o[a]=void 0===e?t(i[a],a,n):t.call(e,i[a],a,n));return o}},!d(i.map)),V(i,{filter:function(t){var e,n,i=J(this),r=pt&&H(this)?ot(this,""):i,o=Q(r.length),a=[];if(1<arguments.length&&(n=arguments[1]),!h(t))throw new TypeError("Array.prototype.filter callback must be a function");for(var s=0;s<o;s++)s in r&&(e=r[s],(void 0===n?t(e,s,i):t.call(n,e,s,i))&&st(a,e));return a}},!d(i.filter)),V(i,{every:function(t){var e,n=J(this),i=pt&&H(this)?ot(this,""):n,r=Q(i.length);if(1<arguments.length&&(e=arguments[1]),!h(t))throw new TypeError("Array.prototype.every callback must be a function");for(var o=0;o<r;o++)if(o in i&&!(void 0===e?t(i[o],o,n):t.call(e,i[o],o,n)))return!1;return!0}},!d(i.every)),V(i,{some:function(t){var e,n=J(this),i=pt&&H(this)?ot(this,""):n,r=Q(i.length);if(1<arguments.length&&(e=arguments[1]),!h(t))throw new TypeError("Array.prototype.some callback must be a function");for(var o=0;o<r;o++)if(o in i&&(void 0===e?t(i[o],o,n):t.call(e,i[o],o,n)))return!0;return!1}},!d(i.some));c=!1;i.reduce&&(c="object"==typeof i.reduce.call("es5",function(t,e,n,i){return i})),V(i,{reduce:function(t){var e=J(this),n=pt&&H(this)?ot(this,""):e,i=Q(n.length);if(!h(t))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===i&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var r,o=0;if(2<=arguments.length)r=arguments[1];else for(;;){if(o in n){r=n[o++];break}if(++o>=i)throw new TypeError("reduce of empty array with no initial value")}for(;o<i;o++)o in n&&(r=t(r,n[o],o,e));return r}},!c);d=!1;i.reduceRight&&(d="object"==typeof i.reduceRight.call("es5",function(t,e,n,i){return i})),V(i,{reduceRight:function(t){var e,n=J(this),i=pt&&H(this)?ot(this,""):n,r=Q(i.length);if(!h(t))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===r&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var o=r-1;if(2<=arguments.length)e=arguments[1];else for(;;){if(o in i){e=i[o--];break}if(--o<0)throw new TypeError("reduceRight of empty array with no initial value")}if(o<0)return e;for(;o in i&&(e=t(e,i[o],o,n)),o--;);return e}},!d);c=i.indexOf&&-1!==[0,1].indexOf(1,2);V(i,{indexOf:function(t){var e=pt&&H(this)?ot(this,""):J(this),n=Q(e.length);if(0===n)return-1;for(var i=0,i=0<=(i=1<arguments.length?Y(arguments[1]):i)?i:T(0,n+i);i<n;i++)if(i in e&&e[i]===t)return i;return-1}},c);d=i.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);V(i,{lastIndexOf:function(t){var e=pt&&H(this)?ot(this,""):J(this),n=Q(e.length);if(0===n)return-1;for(var i=n-1,i=0<=(i=1<arguments.length?E(i,Y(arguments[1])):i)?i:n-A(i);0<=i;i--)if(i in e&&t===e[i])return i;return-1}},d);d=(c=[1,2]).splice(),c=2===c.length&&ct(d)&&0===d.length;V(i,{splice:function(t,e){return 0===arguments.length?[]:b.apply(this,arguments)}},!c);d={},i.splice.call(d,0,0,1),c=1===d.length;V(i,{splice:function(t,e){if(0===arguments.length)return[];var n=arguments;return this.length=T(Y(this.length),0),0<arguments.length&&"number"!=typeof e&&((n=tt(arguments)).length<2?st(n,this.length-t):n[1]=Y(e)),b.apply(this,n)}},!c);
1(d=new l(1e5))[8]="x",d.splice(1,1),c=7===d.indexOf("x"),(d=[])[256]="a",d.splice(257,0,"b"),d="a"===d[256];V(i,{splice:function(t,e){for(var n,i=J(this),r=[],o=Q(i.length),a=Y(t),s=a<0?T(o+a,0):E(a,o),l=0===arguments.length?0:1===arguments.length?o-s:E(T(Y(e),0),o-s),u=0;u<l;)n=m(s+u),K(i,n)&&(r[u]=i[n]),u+=1;var c,p=tt(arguments,2),h=p.length;if(h<l){for(var u=s,d=o-l;u<d;)n=m(u+l),c=m(u+h),K(i,n)?i[c]=i[n]:delete i[c],u+=1;for(var f=(u=o)-l+h;f<u;)delete i[u-1],--u}else if(l<h)for(u=o-l;s<u;)n=m(u+l-1),c=m(u+h-1),K(i,n)?i[c]=i[n]:delete i[c],--u;u=s;for(var g=0;g<p.length;++g)i[u]=p[g],u+=1;return i.length=o-l+h,r}},!c||!d);var ht=i.join;try{ft="1,2,3"!==Array.prototype.join.call("123",",")}catch(t){ft=!0}ft&&V(i,{join:function(t){t=void 0===t?",":t;return ht.call(H(this)?ot(this,""):this,t)}},ft);c="1,2"!==[1,2].join(void 0);c&&V(i,{join:function(t){return ht.call(this,void 0===t?",":t)}},c);function dt(t){for(var e=J(this),n=Q(e.length),i=0;i<arguments.length;)e[n+i]=arguments[i],i+=1;return e.length=n+i,n+i}var ft=(d={},1!==Array.prototype.push.call(d,void 0)||1!==d.length||void 0!==d[0]||!K(d,0));V(i,{push:function(t){return(ct(this)?$:dt).apply(this,arguments)}},ft);d=1!==(c=[]).push(void 0)||1!==c.length||void 0!==c[0]||!K(c,0);V(i,{push:dt},d),V(i,{slice:function(t,e){var n=H(this)?ot(this,""):this;return et(n,arguments)}},pt);ft=function(){try{[1,2].sort(null)}catch(t){try{[1,2].sort({})}catch(t){return!1}}return!0}(),c=function(){try{return[1,2].sort(/a/),!1}catch(t){}return!0}(),d=function(){try{return[1,2].sort(void 0),!0}catch(t){}return!1}();V(i,{sort:function(t){if(void 0===t)return ut(this);if(!h(t))throw new TypeError("Array.prototype.sort callback must be a function");return ut(this,t)}},ft||!d||!c);function gt(t){var e=t.constructor;return e&&e.prototype===t}var mt=!lt({toString:null},"toString"),vt=lt(function(){},"prototype"),yt=!K("x","0"),bt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0,$width:!0,$height:!0,$top:!0,$localStorage:!0},$t=function(){if("undefined"==typeof window)return!1;for(var t in window)try{!bt["$"+t]&&K(window,t)&&null!==window[t]&&"object"==typeof window[t]&&gt(window[t])}catch(t){return!0}return!1}(),wt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],xt=wt.length,i=function(t){return"[object Arguments]"===Z(t)},Ct=i(arguments)?i:function(t){return null!==t&&"object"==typeof t&&"number"==typeof t.length&&0<=t.length&&!ct(t)&&h(t.callee)};V(u,{keys:function(t){var e=h(t),n=Ct(t),i=null!==t&&"object"==typeof t,r=i&&H(t);if(!i&&!e&&!n)throw new TypeError("Object.keys called on a non-object");var o=[],a=vt&&e;if(r&&yt||n)for(var s=0;s<t.length;++s)st(o,m(s));if(!n)for(var l in t)a&&"prototype"===l||!K(t,l)||st(o,m(l));if(mt)for(var u=function(t){if("undefined"==typeof window||!$t)return gt(t);try{return gt(t)}catch(t){return!1}}(t),c=0;c<xt;c++){var p=wt[c];u&&"constructor"===p||!K(t,p)||st(o,p)}return o}});var ft=u.keys&&function(){return 2===u.keys(arguments).length}(1,2),d=u.keys&&function(){var t=u.keys(arguments);return 1!==arguments.length||1!==t.length||1!==t[0]}(1),kt=u.keys;V(u,{keys:function(t){return Ct(t)?kt(tt(t)):kt(t)}},!ft||d);function St(t,e){return At(new Date(e,t,0))}var Tt,c=0!==new Date(-0xc782b5b342b24).getUTCMonth(),i=new Date(-0x55d318d56a724),ft=new Date(14496624e5),d="Mon, 01 Jan -45875 11:59:59 GMT"!==i.toUTCString(),ft=i.getTimezoneOffset()<-720?(Tt="Tue Jan 02 -45875"!==i.toDateString(),!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(ft))):(Tt="Mon Jan 01 -45875"!==i.toDateString(),!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-+]\d\d\d\d(?: |$)/.test(String(ft))),Et=k.bind(Date.prototype.getFullYear),Dt=k.bind(Date.prototype.getMonth),At=k.bind(Date.prototype.getDate),Ot=k.bind(Date.prototype.getUTCFullYear),Pt=k.bind(Date.prototype.getUTCMonth),Mt=k.bind(Date.prototype.getUTCDate),It=k.bind(Date.prototype.getUTCDay),Rt=k.bind(Date.prototype.getUTCHours),jt=k.bind(Date.prototype.getUTCMinutes),Nt=k.bind(Date.prototype.getUTCSeconds),Lt=k.bind(Date.prototype.getUTCMilliseconds),Ft=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ut=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];V(Date.prototype,{getFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Et(this);return t<0&&11<Dt(this)?t+1:t},getMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Et(this),e=Dt(this);return t<0&&11<e?0:e},getDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Et(this),e=Dt(this),n=At(this);return!(t<0&&11<e)||12===e?n:St(0,t+1)-n+1},getUTCFullYear:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Ot(this);return t<0&&11<Pt(this)?t+1:t},getUTCMonth:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Ot(this),e=Pt(this);return t<0&&11<e?0:e},getUTCDate:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=Ot(this),e=Pt(this),n=Mt(this);return!(t<0&&11<e)||12===e?n:St(0,t+1)-n+1}},c),V(Date.prototype,{toUTCString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=It(this),e=Mt(this),n=Pt(this),i=Ot(this),r=Rt(this),o=jt(this),a=Nt(this);return Ft[t]+", "+(e<10?"0"+e:e)+" "+Ut[n]+" "+i+" "+(r<10?"0"+r:r)+":"+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)+" GMT"}},c||d),V(Date.prototype,{toDateString:function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=this.getDay(),e=this.getDate(),n=this.getMonth(),i=this.getFullYear();return Ft[t]+" "+Ut[n]+" "+(e<10?"0"+e:e)+" "+i}},c||Tt),(c||ft)&&(Date.prototype.toString=function(){if(!(this&&this instanceof Date))throw new TypeError("this is not a Date object.");var t=this.getDay(),e=this.getDate(),n=this.getMonth(),i=this.getFullYear(),r=this.getHours(),o=this.getMinutes(),a=this.getSeconds(),s=this.getTimezoneOffset(),l=D(A(s)/60),u=D(A(s)%60);return Ft[t]+" "+Ut[n]+" "+(e<10?"0"+e:e)+" "+i+" "+(r<10?"0"+r:r)+":"+(o<10?"0"+o:o)+":"+(a<10?"0"+a:a)+" GMT"+(0<s?"-":"+")+(l<10?"0"+l:l)+(u<10?"0"+u:u)},B&&u.defineProperty(Date.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var qt=-621987552e5,c=Date.prototype.toISOString&&-1===new Date(qt).toISOString().indexOf("-000001"),ft=Date.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new Date(-1).toISOString(),_t=k.bind(Date.prototype.getTime);V(Date.prototype,{toISOString:function(){if(!isFinite(this)||!isFinite(_t(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var t=Ot(this),e=Pt(this);t+=D(e/12);for(var n=[1+(e=(e%12+12)%12),Mt(this),Rt(this),jt(this),Nt(this)],t=(t<0?"-":9999<t?"+":"")+rt("00000"+A(t),0<=t&&t<=9999?-4:-6),i=0;i<n.length;++i)n[i]=rt("00"+n[i],-2);return t+"-"+tt(n,0,2).join("-")+"T"+tt(n,2).join(":")+"."+rt("000"+Lt(this),-3)+"Z"}},c||ft),function(){try{return Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(qt).toJSON().indexOf("-000001")&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(t){return!1}}()||(Date.prototype.toJSON=function(t){var e=u(this),n=G(e);if("number"==typeof n&&!isFinite(n))return null;n=e.toISOString;if(!h(n))throw new TypeError("toISOString property is not callable");return n.call(e)});var Ht,Bt,c=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),ft=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z"))||!isNaN(Date.parse("2012-12-31T23:59:60.000Z"));!isNaN(Date.parse("2000-01-01T00:00:00.000Z"))&&!ft&&c||(Ht=O(2,31)-1,Bt=X(new Date(1970,0,1,0,0,0,1+Ht).getTime()),Date=function(d){function f(t,e){var n=1<e?1:0;return i[e]+D((t-1969+n)/4)-D((t-1901+n)/100)+D((t-1601+n)/400)+365*(t-1970)}var t,p=function(t,e,n,i,r,o,a){var s,l,u,c=arguments.length,c=this instanceof d?(s=o,l=a,Bt&&7<=c&&Ht<a&&(u=D(a/Ht)*Ht,s+=u=D(u/1e3),l-=1e3*u),1===c&&m(t)===t?new d(p.parse(t)):7<=c?new d(t,e,n,i,r,s,l):6<=c?new d(t,e,n,i,r,s):5<=c?new d(t,e,n,i,r):4<=c?new d(t,e,n,i):3<=c?new d(t,e,n):2<=c?new d(t,e):1<=c?new d(t instanceof d?+t:t):new d):d.apply(this,arguments);return W(c)||V(c,{constructor:p},!0),c},g=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),i=[0,31,59,90,120,151,181,212,243,273,304,334,365];for(t in d)K(d,t)&&(p[t]=d[t]);V(p,{now:d.now,UTC:d.UTC},!0),p.prototype=d.prototype,V(p.prototype,{constructor:p},!0);return V(p,{parse:function(t){var e=g.exec(t);if(e){var n,i=v(e[1]),r=v(e[2]||1)-1,o=v(e[3]||1)-1,a=v(e[4]||0),s=v(e[5]||0),l=v(e[6]||0),u=D(1e3*v(e[7]||0)),c=Boolean(e[4]&&!e[8]),p="-"===e[9]?1:-1,h=v(e[10]||0),e=v(e[11]||0);return a<(0<s||0<l||0<u?24:25)&&s<60&&l<60&&u<1e3&&-1<r&&r<12&&h<24&&e<60&&-1<o&&o<f(i,1+r)-f(i,r)&&(n=1e3*(60*((n=60*(24*(f(i,r)+o)+a+h*p))+s+e*p)+l)+u,c&&(l=0,c=u=n,Bt&&Ht<c&&(u=D(c/Ht)*Ht,l+=u=D(u/1e3),c-=1e3*u),n=v(new d(1970,0,1,0,0,l,c))),-864e13<=n&&n<=864e13)?n:NaN}return d.parse.apply(this,arguments)}}),p}(Date)),Date.now||(Date.now=function(){return(new Date).getTime()});var ft=g.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0)),Vt={base
1:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(t,e){for(var n=-1,i=e;++n<Vt.size;)i+=t*Vt.data[n],Vt.data[n]=i%Vt.base,i=D(i/Vt.base)},divide:function(t){for(var e=Vt.size,n=0;0<=--e;)n+=Vt.data[e],Vt.data[e]=D(n/t),n=n%t*Vt.base},numToString:function(){for(var t,e=Vt.size,n="";0<=--e;)""===n&&0!==e&&0===Vt.data[e]||(t=m(Vt.data[e]),""===n?n=t:n+=rt("0000000",0,7-t.length)+t);return n},pow:function t(e,n,i){return 0===n?i:n%2==1?t(e,n-1,i*e):t(e*e,n/2,i)},log:function(t){for(var e=0,n=t;4096<=n;)e+=12,n/=4096;for(;2<=n;)e+=1,n/=2;return e}};V(g,{toFixed:function(t){var e,n,i,r,o=v(t);if((o=X(o)?0:D(o))<0||20<o)throw new RangeError("Number.toFixed called with invalid number of decimals");if(n=v(this),X(n))return"NaN";if(n<=-1e21||1e21<=n)return m(n);if(e="",n<0&&(e="-",n=-n),t="0",1e-21<n)if(n=(r=Vt.log(n*Vt.pow(2,69,1))-69)<0?n*Vt.pow(2,-r,1):n/Vt.pow(2,r,1),n*=4503599627370496,0<(r=52-r)){for(Vt.multiply(0,n),i=o;7<=i;)Vt.multiply(1e7,0),i-=7;for(Vt.multiply(Vt.pow(10,i,1),0),i=r-1;23<=i;)Vt.divide(1<<23),i-=23;Vt.divide(1<<i),Vt.multiply(1,1),Vt.divide(2),t=Vt.numToString()}else Vt.multiply(0,n),Vt.multiply(1<<-r,0),t=Vt.numToString()+rt("0.00000000000000000000",2,2+o);return t=0<o?(r=t.length)<=o?e+rt("0.0000000000000000000",0,o-r+2)+t:e+rt(t,0,r-o)+"."+rt(t,r-o):e+t}},ft);var c=function(){try{return"-6.9000e-11"!==(-69e-12).toExponential(4)}catch(t){return!1}}(),ft=function(){try{return 1..toExponential(1/0),1..toExponential(-1/0),!0}catch(t){return!1}}(),Wt=k.bind(g.toExponential),zt=k.bind(g.toString),Xt=k.bind(g.valueOf);V(g,{toExponential:function(t){var e=Xt(this);if(void 0===t)return Wt(e);var n=Y(t);if(X(e))return"NaN";if(n<0||20<n)return Wt(e,n);var i="";if(e<0&&(i="-",e=-e),e===1/0)return i+"Infinity";if(void 0!==t&&(n<0||20<n))throw new RangeError("Fraction digits "+t+" out of range");var r="",o=0,a="",s="";if(0===e)n=o=0,r="0";else{var l=R(e),o=D(l),u=0;if(void 0!==t){var c=O(10,o-n);(2*(u=P(e/c))+1)*c<=2*e&&(u+=1),u>=O(10,n+1)&&(u/=10,o+=1)}else for(var p=P(O(10,l-o+(n=16))),h=n;0<n--;)p=P(O(10,l-o+n)),A(p*O(10,o-n)-e)<=A(u*O(10,o-h)-e)&&(h=n,u=p);if(r=zt(u,10),void 0===t)for(;"0"===rt(r,-1);)r=rt(r,0,-1),s+=1}return 0!==n&&(r=rt(r,0,1)+"."+rt(r,1)),s=0===o?(a="+","0"):(a=0<o?"+":"-",zt(A(o),10)),i+(r+="e"+a+s)}},c||ft);var Yt,Gt,ft=function(){try{return"1"===1..toPrecision(void 0)}catch(t){return!0}}(),Jt=k.bind(g.toPrecision);V(g,{toPrecision:function(t){return void 0===t?Jt(this):Jt(this,t)}},ft),2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||1<".".split(/()()/).length?(Yt=void 0===/()??/.exec("")[1],Gt=O(2,32)-1,f.split=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!q(t))return ot(this,t,e);var i,r,o,a=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,u=new RegExp(t.source,s+"g");Yt||(i=new RegExp("^"+u.source+"$(?!\\s)",s));for(var c=void 0===e?Gt:Q(e),p=u.exec(n);p&&!(l<(r=p.index+p[0].length)&&(st(a,rt(n,l,p.index)),!Yt&&1<p.length&&p[0].replace(i,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(p[t]=void 0)}),1<p.length&&p.index<n.length&&$.apply(a,tt(p,1)),o=p[0].length,l=r,c<=a.length));)u.lastIndex===p.index&&u.lastIndex++,p=u.exec(n);return l===n.length?!o&&u.test("")||st(a,""):st(a,rt(n,l)),c<a.length?tt(a,0,c):a}):"0".split(void 0,0).length&&(f.split=function(t,e){return void 0===t&&0===e?[]:ot(this,t,e)});var Qt,Kt=f.replace;(Qt=[],"x".replace(/x(.)?/g,function(t,e){st(Qt,e)}),1===Qt.length&&void 0===Qt[0])||(f.replace=function(r,o){var t=h(o),e=q(r)&&/\)[*?]/.test(r.source);if(!t||!e)return Kt.call(this,r,o);return Kt.call(this,r,function(t){var e=arguments.length,n=r.lastIndex;r.lastIndex=0;var i=r.exec(t)||[];return r.lastIndex=n,st(i,arguments[e-2],arguments[e-1]),o.apply(this,i)})});var Zt=f.substr,g="".substr&&"b"!=="0b".substr(-1);V(f,{substr:function(t,e){var n=t;return t<0&&(n=T(this.length+t,0)),Zt.call(this,n,e)}},g);var ft="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",g="["+ft+"]",te=new RegExp("^"+g+g+"*"),ee=new RegExp(g+g+"*$"),g=f.trim&&(ft.trim()||!"​".trim());V(f,{trim:function(){if(null==this)throw new TypeError("can't convert "+this+" to object");return m(this).replace(te,"").replace(ee,"")}},g);var ne=k.bind(String.prototype.trim),k=f.lastIndexOf&&-1!=="abcあい".lastIndexOf("あい",2);V(f,{lastIndexOf:function(t){if(null==this)throw new TypeError("can't convert "+this+" to object");for(var e=m(this),n=m(t),i=1<arguments.length?v(arguments[1]):NaN,i=X(i)?1/0:Y(i),r=E(T(i,0),e.length),o=n.length,a=r+o;0<a;){var a=T(0,a-o),s=at(rt(e,a,r+o),n);if(-1!==s)return a+s}return-1}},k);var ie=f.lastIndexOf;V(f,{lastIndexOf:function(t){return ie.apply(this,arguments)}},1!==f.lastIndexOf.length);var re,oe,ae,se,le=/^[-+]?0[xX]/;8===parseInt(ft+"08")&&22===parseInt(ft+"0x16")||(parseInt=(re=parseInt,function(t,e){t=ne(String(t)),e=v(e)||(le.test(t)?16:10);return re(t,e)})),function(){if("function"!=typeof Symbol)return!1;try{return parseInt(Object(Symbol.iterator)),!0}catch(t){}try{return parseInt(Symbol.iterator),!0}catch(t){}return!1}()&&(oe=Symbol.prototype.valueOf,parseInt=(ae=parseInt,function(t,e){var n="symbol"==typeof t;if(!n&&t&&"object"==typeof t)try{oe.call(t),n=!0}catch(t){}t=ne(String(t)),e=v(e)||(le.test(t)?16:10);return ae(t,e)})),1/parseFloat("-0")!=-1/0&&(parseFloat=(se=parseFloat,function(t){var e=ne(String(t)),t=se(e);return 0===t&&"-"===rt(e,0,1)?-0:t})),"RangeError: test"!==String(new RangeError("test"))&&(Error.prototype.toString=function(){if(null==this)throw new TypeError("can't convert "+this+" to object");var t=this.name;void 0===t?t="Error":"string"!=typeof t&&(t=m(t));var e=this.message;return void 0===e?e="":"string"!=typeof e&&(e=m(e)),t?e?t+": "+e:t:e}),B&&((B=function(t,e){var n;
vendor: 4,609 bytes, line 1
1!lt(t,e)||(n=Object.getOwnPropertyDescriptor(t,e)).configurable&&(n.enumerable=!1,Object.defineProperty(t,e,n))})(Error.prototype,"message"),""!==Error.prototype.message&&(Error.prototype.message=""),B(Error.prototype,"name")),"/a/gim"!==String(/a/gim)&&(RegExp.prototype.toString=function(){var t="/"+this.source+"/";return this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),t})}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(i){"use strict";i.fn.emulateTransitionEnd=function(t){var e=!1,n=this;i(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||i(n).trigger(i.support.transition.end)},t),this},i(function(){i.support.transition=function(){var t,e=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in n)if(void 0!==e.style[t])return{end:n[t]};return!1}(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(o){"use strict";function a(t){o(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.prototype.close=function(t){var e=o(this),n=e.attr("data-target");n="#"===(n=n||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""))?[]:n;var i=o(document).find(n);function r(){i.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),(i=!i.length?e.closest(".alert"):i).trigger(t=o.Event("close.bs.alert")),t.isDefaultPrevented()||(i.removeClass("in"),o.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",r).emulateTransitionEnd(a.TRANSITION_DURATION):r())};var t=o.fn.alert;o.fn.alert=function(n){return this.each(function(){var t=o(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof n&&e[n].call(t)})},o.fn.alert.Constructor=a,o.fn.alert.noConflict=function(){return o.fn.alert=t,this},o(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),function(o){"use strict";var i=function(t,e){this.$element=o(t),this.options=o.extend({},i.DEFAULTS,e),this.isLoading=!1};function n(n){return this.each(function(){var t=o(this),e=t.data("bs.button");e||t.data("bs.button",e=new i(this,"object"==typeof n&&n)),"toggle"==n?e.toggle():n&&e.setState(n)})}i.VERSION="3.4.1",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(t){var e="disabled",n=this.$element,i=n.is("input")?"val":"html",r=n.data();t+="Text",null==r.resetText&&n.data("resetText",n[i]()),setTimeout(o.proxy(function(){n[i]((null==r[t]?this.options:r)[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},i.prototype.toggle=function(){var t,e=!0,n=this.$element.closest('[data-toggle="buttons"]');n.length?("radio"==(t=this.$element.find("input")).prop("type")?(t.prop("checked")&&(e=!1),n.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var t=o.fn.button;o.fn.button=n,o.fn.button.Constructor=i,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=o(t.target).closest(".btn");n.call(e,"toggle"),o(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),(e.is("input,button")?e:e.find("input:visible,button:visible").first()).trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){o(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(u){"use strict";function c(t,e){this.$element=u(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("key
1down.bs.carousel",u.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",u.proxy(this.pause,this)).on("mouseleave.bs.carousel",u.proxy(this.cycle,this))}function r(r){return this.each(function(){var t=u(this),e=t.data("bs.carousel"),n=u.extend({},c.DEFAULTS,t.data(),"object"==typeof r&&r),i="string"==typeof r?r:n.slide;e||t.data("bs.carousel",e=new c(this,n)),"number"==typeof r?e.to(r):i?e[i]():n.interval&&e.pause().cycle()})}c.VERSION="3.4.1",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},c.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(u.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},c.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;t=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(t)},c.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},c.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&u.support.transition&&(this.$element.trigger(u.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(t,e){var n=this.$element.find(".item.active"),i=e||this.getItemForDirection(t,n),r=this.interval,o="next"==t?"left":"right",a=this;if(i.hasClass("active"))return this.sliding=!1;var s=i[0],e=u.Event("slide.bs.carousel",{relatedTarget:s,direction:o});if(this.$element.trigger(e),!e.isDefaultPrevented()){this.sliding=!0,r&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(e=u(this.$indicators.children()[this.getItemIndex(i)]))&&e.addClass("active"));var l=u.Event("slid.bs.carousel",{relatedTarget:s,direction:o});return u.support.transition&&this.$element.hasClass("slide")?(i.addClass(t),"object"==typeof i&&i.length&&i[0].offsetWidth,n.addClass(o),i.addClass(o),n.one("bsTransitionEnd",function(){i.removeClass([t,o].join(" ")).addClass("active"),n.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(l)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(n.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(l)),r&&this.cycle(),this}};var t=u.fn.carousel;u.fn.carousel=r,u.fn.carousel.Constructor=c,u.fn.carousel.noConflict=function(){return u.fn.carousel=t,this};function e(t){var e=u(this),n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),i=e.attr("data-target")||n;(n=u(document).find(i)).hasClass("carousel")&&(i=u.extend({},n.data(),e.data()),(e=e.attr("data-slide-to"))&&(i.interval=!1),r.call(n,i),e&&n.data("bs.carousel").to(e),t.preventDefault())}u(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),u(window).on("load",function(){u('[data-ride="carousel"]').each(function(){var t=u(this);r.call(t,t.data())})})}(jQuery),function(r){"use strict";var o=function(t,e){this.$element=r(t),this.options=r.extend({},o.DEFAULTS,e),this.$trigger=r('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var e=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return r(document).find(e)}function a(i){return this.each(function(){var t=r(this),e=t.data("bs.collapse"),n=r.extend({},o.DEFAULTS,t.data(),"object"==typeof i&&i);!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||t.data("bs.collapse",e=new o(this,n)),"string"==typeof i&&e[i]()})}o.VERSION="3.4.1",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(i=t.data("bs.collapse"))&&i.transitioning)){var e=r.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(a.call(t,"hide"),i||t.data("bs.collapse",null));var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var i=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!r.support.transition)return i.call(this);
vendor: 4,162 bytes, line 1
1t=r.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",r.proxy(i,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[n](this.$element[0][t])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=r.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;t=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!r.support.transition)return t.call(this);this.$element[e](0).one("bsTransitionEnd",r.proxy(t,this)).emulateTransitionEnd(o.TRANSITION_DURATION)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return r(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(r.proxy(function(t,e){e=r(e);this.addAriaAndCollapsedClass(n(e),e)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=r.fn.collapse;r.fn.collapse=a,r.fn.collapse.Constructor=o,r.fn.collapse.noConflict=function(){return r.fn.collapse=t,this},r(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=r(this);e.attr("data-target")||t.preventDefault();t=n(e),e=t.data("bs.collapse")?"toggle":e.data();a.call(t,e)})}(jQuery),function(r){"use strict";function i(t){r(t).on("click.bs.dropdown",this.toggle)}var o='[data-toggle="dropdown"]';function a(t){var e=t.attr("data-target"),e="#"!==(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))?r(document).find(e):null;return e&&e.length?e:t.parent()}function s(i){i&&3===i.which||(r(".dropdown-backdrop").remove(),r(o).each(function(){var t=r(this),e=a(t),n={relatedTarget:this};e.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&r.contains(e[0],i.target)||(e.trigger(i=r.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(r.Event("hidden.bs.dropdown",n)))))}))}i.VERSION="3.4.1",i.prototype.toggle=function(t){var e=r(this);if(!e.is(".disabled, :disabled")){var n=a(e),i=n.hasClass("open");if(s(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&r(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(r(this)).on("click",s);i={relatedTarget:this};if(n.trigger(t=r.Event("show.bs.dropdown",i)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(r.Event("shown.bs.dropdown",i))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=r(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=a(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(o).trigger("focus"),e.trigger("click");e=n.find(".dropdown-menu li:not(.disabled):visible a");e.length&&(n=e.index(t.target),38==t.which&&0<n&&n--,40==t.which&&n<e.length-1&&n++,e.eq(n=!~n?0:n).trigger("focus"))}}};var t=r.fn.dropdown;r.fn.dropdown=function(n){return this.each(function(){var t=r(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})},r.fn.dropdown.Constructor=i,r.fn.dropdown.noConflict=function(){return r.fn.dropdown=t,this},r(document).on("click.bs.dropdown.data-api",s).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,i.prototype.toggle).on("keydown.bs.dropdown.data-api",o,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(o){"use strict";function a(t,e){this.options=e,this.$body=o(document.body),this.$element=o(t),this.$dialog=this.$element.find(".modal
1-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function s(i,r){return this.each(function(){var t=o(this),e=t.data("bs.modal"),n=o.extend({},a.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.modal",e=new a(this,n)),"string"==typeof i?e[i](r):n.show&&e.show(r)})}a.VERSION="3.4.1",a.TRANSITION_DURATION=300,a.BACKDROP_TRANSITION_DURATION=150,a.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},a.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},a.prototype.show=function(n){var i=this,t=o.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){o(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=o.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),t&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var e=o.Event("shown.bs.modal",{relatedTarget:n});t?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(a.TRANSITION_DURATION):i.$element.trigger("focus").trigger(e)}))},a.prototype.hide=function(t){t&&t.preventDefault(),t=o.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(a.TRANSITION_DURATION):this.hideModal())},a.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},a.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",o.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},a.prototype.resize=function(){this.isShown?o(window).on("resize.bs.modal",o.proxy(this.handleUpdate,this)):o(window).off("resize.bs.modal")},a.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},a.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},a.prototype.backdrop=function(t){var e,n=this,i=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(e=o.support.transition&&i,this.$backdrop=o(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),t&&(e?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):t())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e=function(){n.removeBackdrop(),t&&t()},o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):e()):t&&t()},a.prototype.handleUpdate=function(){this.adjustDialog()},a.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},a.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var r=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+r),o(this.fixedContent).each(function(t,e){var n=e.style.paddingRight,i=o(e).css("padding-right");o(e).data("padding-right",n).css("padding-right",parseFloat(i)+r+"px")}))},a.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),o(this.fixedContent).each(function(t,e){var n=o(e).data("padding-right");o(e).removeData("padding-right"),e.style.paddingRight=n||""})},a.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=o.fn.modal;o.fn.modal=s,o.fn.modal.Constructor=a,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),n=e.attr("href"),i=e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""),r=o(document).find(i),n=r.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(n)&&n},r.data(),e.data());e.is("a")&&t.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),s.call(r,n,this)})}(jQuery),function(d){"use strict";var i=["sanitize","whiteList","sanitizeFn"],f=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},g=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,m=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function r(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;n=document.implementation.createHTMLDocument("sanitization");n.body.innerHTML=t;for(var i=d.map(e,function(t,e){return e}),r=d(n.body).find("*"),o=0,a=r.length;o<a;o++){var s=r[o],l=s.nodeName.toLowerCase();if(-1!==d.inArray(l,i))for(var u=d.map(s.attributes,function(t){return t}),c=[].concat(e["*"]||[],e[l]||[]),p=0,h=u.length;p<h;p++)!function(t,e){var n=t.nodeName.toLowerCase();if(-1!==d.inArray(n,e))return-1===d.inArray(n,f)||Boolean(t.nodeValue.match(g)||t.nodeValue.match(m));for(var i=d(e).filter(function(t,e){return e instanceof RegExp}),r=0,o=i.length;r<o;r++)if(n.match(i[r]))return 1}(u[p],c)&&s.removeAttribute(u[p].nodeName);else s.parentNode.removeChild(s)}return n.body.innerHTML}function l(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},l.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=d(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&d(document).find(d.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),r=i.length;r--;){var o,a=i[r];"click"==a?this.$element.on("click."+this.type,this.options.selector,d.proxy(this.toggle,this)):"manual"!=a&&(o="hover"==a?"mouseleave":"focusout",this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,d.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,d.proxy(this.leave,this)))}this.options.selector?this._options=d.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(t){var e,n=this.$element.data();for(e in n)n.hasOwnProperty(e)&&-1!==d.inArray(e,i)&&delete n[e];return(t=d.extend({},this.getDefaults(),n,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=r(t.template,t.whiteList,t.sanitizeFn)),t},l.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&d.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},l.prototype.enter=function(t){var e=t instanceof this.constructor?t:d(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),d(t.currentTarget).data("bs."+this.type,e)),t instanceof d.Event&&(e.inState["focusin"==t.type?"focu
1s":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(t){var e=t instanceof this.constructor?t:d(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),d(t.currentTarget).data("bs."+this.type,e)),t instanceof d.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},l.prototype.show=function(){var e,t,n,i,r,o,a,s=d.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(s),n=d.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!s.isDefaultPrevented()&&n&&(t=(e=this).tip(),o=this.getUID(this.type),this.setContent(),t.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&t.addClass("fade"),a="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,(r=(i=/\s?auto?\s?/i).test(a))&&(a=a.replace(i,"")||"top"),t.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?t.appendTo(d(document).find(this.options.container)):t.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),s=this.getPosition(),n=t[0].offsetWidth,o=t[0].offsetHeight,r&&(i=a,r=this.getPosition(this.$viewport),a="bottom"==a&&s.bottom+o>r.bottom?"top":"top"==a&&s.top-o<r.top?"bottom":"right"==a&&s.right+n>r.width?"left":"left"==a&&s.left-n<r.left?"right":a,t.removeClass(i).addClass(a)),o=this.getCalculatedOffset(a,s,n,o),this.applyPlacement(o,a),a=function(){var t=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==t&&e.leave(e)},d.support.transition&&this.$tip.hasClass("fade")?t.one("bsTransitionEnd",a).emulateTransitionEnd(l.TRANSITION_DURATION):a()))},l.prototype.applyPlacement=function(t,e){var n=this.tip(),i=n[0].offsetWidth,r=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),t.top+=o,t.left+=a,d.offset.setOffset(n[0],d.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in");var s=n[0].offsetWidth,o=n[0].offsetHeight;"top"==e&&o!=r&&(t.top=t.top+r-o);a=this.getViewportAdjustedDelta(e,t,s,o);a.left?t.left+=a.left:t.top+=a.top;e=/top|bottom/.test(e),r=e?2*a.left-i+s:2*a.top-r+o,o=e?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(r,n[0][o],e)},l.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},l.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=r(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},l.prototype.hide=function(t){var e=this,n=d(this.$tip),i=d.Event("hide.bs."+this.type);function r(){"in"!=e.hoverState&&n.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(i),!i.isDefaultPrevented())return n.removeClass("in"),d.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",r).emulateTransitionEnd(l.TRANSITION_DURATION):r(),this.hoverState=null,this},l.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,i=e.getBoundingClientRect();null==i.width&&(i=d.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));e=window.SVGElement&&e instanceof window.SVGElement,e=n?{top:0,left:0}:e?null:t.offset(),t={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},n=n?{width:d(window).width(),height:d(window).height()}:null;return d.extend({},i,t,n,e)},l.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},l.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o,a=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);return/right|left/.test(t)?(t=e.top-a-s.scroll,o=e.top+a-s.scroll+i,t<s.top?r.top=s.top-t:o>s.top+s.height&&(r.top=s.top+s.height-o)):(o=e.left-a,n=e.left+a+n,o<s.left?r.left=s.left-o:n>s.right&&(r.left=s.left+s.width-n)),r},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=d(this.options.template),1!=this.$tip.length))throw new Error(this.t
vendor: 4,720 bytes, line 1
1ype+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var e=this;t&&((e=d(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),d(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},l.prototype.sanitizeHtml=function(t){return r(t,this.options.whiteList,this.options.sanitizeFn)};var e=d.fn.tooltip;d.fn.tooltip=function(i){return this.each(function(){var t=d(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new l(this,n)),"string"==typeof i&&e[i]())})},d.fn.tooltip.Constructor=l,d.fn.tooltip.noConflict=function(){return d.fn.tooltip=e,this}}(jQuery),function(r){"use strict";function o(t,e){this.init("popover",t,e)}if(!r.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.4.1",o.DEFAULTS=r.extend({},r.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((o.prototype=r.extend({},r.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t,e=this.tip(),n=this.getTitle(),i=this.getContent();this.options.html?(t=typeof i,this.options.sanitize&&(n=this.sanitizeHtml(n),"string"==t&&(i=this.sanitizeHtml(i))),e.find(".popover-title").html(n),e.find(".popover-content").children().detach().end()["string"==t?"html":"append"](i)):(e.find(".popover-title").text(n),e.find(".popover-content").children().detach().end().text(i)),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=r.fn.popover;r.fn.popover=function(i){return this.each(function(){var t=r(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new o(this,n)),"string"==typeof i&&e[i]())})},r.fn.popover.Constructor=o,r.fn.popover.noConflict=function(){return r.fn.popover=t,this}}(jQuery),function(r){"use strict";function i(t,e){this.$body=r(document.body),this.$scrollElement=r(t).is(document.body)?r(window):r(t),this.options=r.extend({},i.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",r.proxy(this.process,this)),this.refresh(),this.process()}function e(n){return this.each(function(){var t=r(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new i(this,"object"==typeof n&&n)),"string"==typeof n&&e[n]()})}i.VERSION="3.4.1",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),r.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=r(this),e=t.data("target")||t.attr("href"),t=/^#./.test(e)&&r(e);return t&&t.length&&t.is(":visible")?[[t[n]().top+i,e]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},i.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)a!=o[t]&&e>
vendor: 5,494 bytes, line 1
1=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(o[t])},i.prototype.activate=function(t){this.activeTarget=t,this.clear();t=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',t=r(t).parents("li").addClass("active");(t=t.parent(".dropdown-menu").length?t.closest("li.dropdown").addClass("active"):t).trigger("activate.bs.scrollspy")},i.prototype.clear=function(){r(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=r.fn.scrollspy;r.fn.scrollspy=e,r.fn.scrollspy.Constructor=i,r.fn.scrollspy.noConflict=function(){return r.fn.scrollspy=t,this},r(window).on("load.bs.scrollspy.data-api",function(){r('[data-spy="scroll"]').each(function(){var t=r(this);e.call(t,t.data())})})}(jQuery),function(a){"use strict";function s(t){this.element=a(t)}function e(n){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new s(this)),"string"==typeof n&&e[n]()})}s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.prototype.show=function(){var t,e,n,i=this.element,r=i.closest("ul:not(.dropdown-menu)"),o=(o=i.data("target"))||(o=i.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"");i.parent("li").hasClass("active")||(t=r.find(".active:last a"),e=a.Event("hide.bs.tab",{relatedTarget:i[0]}),n=a.Event("show.bs.tab",{relatedTarget:t[0]}),t.trigger(e),i.trigger(n),n.isDefaultPrevented()||e.isDefaultPrevented()||(o=a(document).find(o),this.activate(i.closest("li"),r),this.activate(o,o.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:i[0]}),i.trigger({type:"shown.bs.tab",relatedTarget:t[0]})})))},s.prototype.activate=function(t,e,n){var i=e.find("> .active"),r=n&&a.support.transition&&(i.length&&i.hasClass("fade")||!!e.find("> .fade").length);function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}i.length&&r?i.one("bsTransitionEnd",o).emulateTransitionEnd(s.TRANSITION_DURATION):o(),i.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=s,a.fn.tab.noConflict=function(){return a.fn.tab=t,this};function n(t){t.preventDefault(),e.call(a(this),"show")}a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(a){"use strict";var s=function(t,e){this.options=a.extend({},s.DEFAULTS,e);e=this.options.target===s.DEFAULTS.target?a(this.options.target):a(document).find(this.options.target);this.$target=e.on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var t=a(this),e=t.data("bs.affix");e||t.data("bs.affix",e=new s(this,"object"==typeof n&&n)),"string"==typeof n&&e[n]()})}s.VERSION="3.4.1",s.RESET="affix affix-top affix-bottom",s.DEFAULTS={offset:0,target:window},s.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=t-i)&&"bottom";var s=null==this.affixed,o=s?r:o.top;return null!=n&&r<=n?"top":null!=i&&t-i<=o+(s?a:e)&&"bottom"},s.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(s.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},s.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},s.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,n=e.top,i=e.bottom,r=Math.max(a(document).height(),a(document.body).height());"object"!=typeof e&&(i=n=e),"function"==typeof n&&(n=e.top(this.$element)),"function"==typeof i&&(i=e.bottom(this.$element));var o=this.getState(r,t,n,i);if(this.affixed!=o){null!=this.unpin&&this.$element.css("top","");e="affix"+(o?"-"+o:""),n=a.Event(e+".bs.affix");if(this.$element.trigger(n),n.isDefaultPrevented())return;this.affixed=o,this.unpin="bottom"==o?this.getPinnedOffset():null,this.$element.removeClass(s.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==o&&this.$element.offset({top:r-t-i})}};var t=a.fn.affix;a.fn.affix=n,a.fn.affix.Constructor=s,a.fn.affix.noConflict=function(){return a.fn.affix=t,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var t=a(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),n.call(t,e)})})}(jQuery),function(e,X,Y){"use strict";X.module("ngAnimate",["ng"]).directive("ngAnimateChildren",function(){var i="$$ngAnimateChildren";return function(t,e,n){n=n.ngAnimateChildren;X.isString(n)&&0===n.length?e.data(i,!0):t.$watch(n,function(t){e.data(i,!!t)})}}).factory("$$animateReflow",["$$rAF","$document",function(e,t){var n=t[0].body;return function(t){return e(function(){n.offsetWidth;t()})}}]).config(["$provide","$animateProvider",function(t,d){var q,_=X.no
1op,H=X.forEach,w=d.$$selectors,B=X.isArray,V=X.isString,f=X.isObject,W=1,D="$$ngAnimateState",A="ng-animate",O={running:!0};function z(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType==W)return n}}function g(t){return t&&X.element(t)}function m(t){return X.element(z(t))}function P(t,e){return z(t)==z(e)}t.decorator("$animate",["$delegate","$$q","$injector","$sniffer","$rootElement","$$asyncCallback","$rootScope","$document","$templateRequest","$$jqLite",function(l,i,y,b,C,k,r,t,e,n){q=n,C.data(D,O);var o=r.$watch(function(){return e.totalPendingRequests},function(t,e){0===t&&(o(),r.$$postDigest(function(){r.$$postDigest(function(){O.running=!1})}))}),S=0,a=d.classNameFilter(),$=a?function(t){return a.test(t)}:function(){return!0};function u(t,e){var n=t.data(D)||{};return e&&(n.running=!0,n.structural=!0,t.data(D,n)),n.disabled||n.running&&n.structural}function c(t){var e,n=i.defer();return n.promise.$$cancelFn=function(){e&&e()},r.$$postDigest(function(){e=t(function(){n.resolve()})}),n.promise}function p(t){if(f(t))return t.tempClasses&&V(t.tempClasses)&&(t.tempClasses=t.tempClasses.split(/\s+/)),t}function T(s,e,l,u){var c,p,t=s[0];if(t){u&&(u.to=u.to||{},u.from=u.from||{}),B(l)&&(c=l[0],p=l[1],c?p?l=c+" "+p:(l=c,e="addClass"):(l=p,e="removeClass"));var n="setClass"==e,i=n||"addClass"==e||"removeClass"==e||"animate"==e,r=s.attr("class")+" "+l;if($(r)){var o=_,a=[],h=[],d=_,f=[],g=[],r=(" "+r).replace(/\s+/g,".");return H(function(t){if(t){var e=[],n={},i=t.substr(1).split(".");(b.transitions||b.animations)&&e.push(y.get(w[""]));for(var r=0;r<i.length;r++){var o=i[r],a=w[o];a&&!n[o]&&(e.push(y.get(a)),n[o]=!0)}return e}}(r),function(t){!m(t,e)&&n&&(m(t,"addClass"),m(t,"removeClass"))}),{node:t,event:e,className:l,isClassBased:i,isSetClassOperation:n,applyStyles:function(){u&&s.css(X.extend(u.from||{},u.to||{}))},before:function(t){o=t,v(h,a,function(){o=_,t()})},after:function(t){d=t,v(g,f,function(){d=_,t()})},cancel:function(){H(a,function(t){(t||_)(!0)}),o(!0),H(f,function(t){(t||_)(!0)}),d(!0)}}}}function m(t,e){var n=t[e],t=t["before"+e.charAt(0).toUpperCase()+e.substr(1)];if(n||t)return"leave"==e&&(t=n,n=null),g.push({event:e,fn:n}),h.push({event:e,fn:t}),!0}function v(t,i,r){var o=[];H(t,function(t){t.fn&&o.push(t)});var a=0;H(o,function(t,e){function n(){!function(t){if(i){if((i[t]||_)(),++a<o.length)return;i=null}r()}(e)}switch(t.event){case"setClass":i.push(t.fn(s,c,p,n,u));break;case"animate":i.push(t.fn(s,l,u.from,u.to,n));break;case"addClass":i.push(t.fn(s,c||l,n,u));break;case"removeClass":i.push(t.fn(s,p||l,n,u));break;default:i.push(t.fn(s,n,u))}}),i&&0===i.length&&r()}}return{animate:function(e,t,n,i,r){return i=i||"ng-inline-animate",(r=p(r)||{}).from=n?t:null,r.to=n||t,c(function(t){return h("animate",i,m(e),null,null,_,r,t)})},enter:function(e,n,i,r){return r=p(r),e=X.element(e),n=g(n),i=g(i),u(e,!0),l.enter(e,n,i),c(function(t){return h("enter","ng-enter",m(e),n,i,_,r,t)})},leave:function(e,n){return n=p(n),s(e=X.element(e)),u(e,!0),c(function(t){return h("leave","ng-leave",m(e),null,null,function(){l.leave(e)},n,t)})},move:function(e,n,i,r){return r=p(r),e=X.element(e),n=g(n),i=g(i),s(e),u(e,!0),l.move(e,n,i),c(function(t){return h("move","ng-move",m(e),n,i,_,r,t)})},addClass:function(t,e,n){return this.setClass(t,e,[],n)},removeClass:function(t,e,n){return this.setClass(t,[],e,n)},setClass:function(o,t,e,n){n=p(n);var a="$$animateClasses";if(u(o=m(o=X.element(o))))return l.$$setClassImmediately(o,t,e,n);var i=o.data(a),r=!!i,s=(i=i||{classes:{}}).classes;return t=B(t)?t:t.split(" "),H(t,function(t){t&&t.length&&(s[t]=!0)}),e=B(e)?e:e.split(" "),H(e,function(t){t&&t.length&&(s[t]=!1)}),r?(n&&i.options&&(i.options=X.extend(i.options||{},n)),i.promise):(o.data(a,i={classes:s,options:n}),i.promise=c(function(t){var e=o.parent(),n=z(o),i=n.parentNode;if(i&&!i.$$NG_REMOVED&&!n.$$NG_REMOVED){i=o.data(a);o.removeData(a);var n=o.data(D)||{},r=function(t,e,n){var r={};H(n=n||{},function(e,t){H(t.split(" "),function(t){r[t]=e})});var o=Object.create(null);H((t.attr("class")||"").split(/\s+/),function(t){o[t]=!0});var a=[],s=[];return H(e&&e.classes||[],function(t,e){var n=o[e],i=r[e]||{};!1===t?!n&&"addClass"!=i.event||s.push(e):!0===t&&(n&&"removeClass"!=i.event||a.push(e))}),0<a.length+s.length&&[a.join(" "),s.join(" ")]}(o,i,n.active);return r?h("setClass",r,o,e,null,function(){r[0]&&l.$$addClassImmediately(o,r[0]),r[1]&&l.$$removeClassImmediately(o,r[1])},i.options,t):t()}t()}))},cancel:function(t){t.$$cancelFn()},enabled:function(t,e){switch(arguments.length){case 2:var n;t?E(e):((n=e.data(D)||{}).disabled=!0,e.data(D,n));break;case 1:O.disabled=!t;break;default:t=!O.disabled}return!!t}};function h(n,i,r,t,e,o,a,s){var l=_,u=T(r,n,i,a);if(!u)return w(),y(),b(),x(),l;n=u.event,i=u.className;
1var c=(c=X.element._data(u.node))&&c.events;if(t=t||(e||r).parent(),function(t,e){if(O.disabled)return!0;if(P(t,C))return O.running;var n,i,r;do{if(0===e.length)break;var o=P(e,C),a=o?O:e.data(D)||{};if(a.disabled)return!0}while(o&&(r=!0),!1!==n&&(o=e.data("$$ngAnimateChildren"),X.isDefined(o)&&(n=o)),i=i||a.running||a.last&&!a.last.isClassBased,e=e.parent());return!r||!n&&i}(r,t))return w(),y(),b(),x(),l;var p=r.data(D)||{},h=p.active||{},d=p.totalActive||0,e=p.last,t=!1;if(0<d){var f=[];if(u.isClassBased)"setClass"==e.event?(f.push(e),E(r,i)):h[i]&&((e=h[i]).event==n?t=!0:(f.push(e),E(r,i)));else if("leave"==n&&h["ng-leave"])t=!0;else{for(var g in h)f.push(h[g]);p={},E(r,!0)}0<f.length&&H(f,function(t){t.cancel()})}if(t=u.isClassBased&&!u.isSetClassOperation&&"animate"!=n&&!t?"addClass"==n==r.hasClass(i):t)return w(),y(),b(),$(),l;h=p.active||{},d=p.totalActive||0,"leave"==n&&r.one("$destroy",function(t){var e=X.element(this),n=e.data(D);!n||(n=n.active["ng-leave"])&&(n.cancel(),E(e,"ng-leave"))}),q.addClass(r,A),a&&a.tempClasses&&H(a.tempClasses,function(t){q.addClass(r,t)});var m=S++;return d++,h[i]=u,r.data(D,{last:u,active:h,index:m,totalActive:d}),y(),u.before(function(t){var e=r.data(D);t=t||!e||!e.active[i]||u.isClassBased&&e.active[i].event!=n,w(),!0===t?x():(b(),u.after(x))}),u.cancel;function v(t){var e="$animate:"+t;c&&c[e]&&0<c[e].length&&k(function(){r.triggerHandler(e,{event:n,className:i})})}function y(){v("before")}function b(){v("after")}function $(){v("close"),s()}function w(){w.hasBeenRun||(w.hasBeenRun=!0,o())}function x(){var t;x.hasBeenRun||(u&&u.applyStyles(),x.hasBeenRun=!0,a&&a.tempClasses&&H(a.tempClasses,function(t){q.removeClass(r,t)}),(t=r.data(D))&&(u&&u.isClassBased?E(r,i):(k(function(){var t=r.data(D)||{};m==t.index&&E(r,i)}),r.data(D,t))),$())}}function s(t){t=z(t);t&&(t=X.isFunction(t.getElementsByClassName)?t.getElementsByClassName(A):t.querySelectorAll("."+A),H(t,function(t){t=(t=X.element(t)).data(D);t&&t.active&&H(t.active,function(t){t.cancel()})}))}function E(t,e){var n,i;P(t,C)?O.disabled||(O.running=!1,O.structural=!1):e&&(n=t.data(D)||{},!(i=!0===e)&&n.active&&n.active[e]&&(n.totalActive--,delete n.active[e]),!i&&n.totalActive||(q.removeClass(t,A),t.removeData(D)))}}]),d.register("",["$window","$sniffer","$timeout","$$animateReflow",function(s,t,x,n){var l,u,i,C="",k=e.ontransitionend===Y&&e.onwebkittransitionend!==Y?(C="-webkit-",l="WebkitTransition","webkitTransitionEnd transitionend"):(l="transition","transitionend"),S=e.onanimationend===Y&&e.onwebkitanimationend!==Y?(C="-webkit-",u="WebkitAnimation","webkitAnimationEnd animationend"):(u="animation","animationend"),c="Duration",r="Property",p="Delay",h="IterationCount",o="PlayState",d="$$ngAnimateKey",T="$$ngAnimateCSS3Data",E=3,D=1.5,A=1e3,f={},g=0,a=[];function m(){i=i||n(function(){a=[],i=null,f={}})}function v(t,e){i&&i(),a.push(e),i=n(function(){H(a,function(t){t()}),a=[],i=null,f={}})}var y=null,b=0,$=[];function O(t,e){var n=z(t);t=X.element(n),$.push(t);t=Date.now()+e;t<=b||(x.cancel(y),b=t,y=x(function(){H($,function(t){t=t.data(T);t&&H(t.closeAnimationFns,function(t){t()})}),$=[]},e,!1))}function P(t,e){var n,i,r,o,a=e?f[e]:null;return a||(o=r=i=n=0,H(t,function(t){var e;t.nodeType==W&&(t=(e=s.getComputedStyle(t)||{})[l+c],n=Math.max(w(t),n),t=e[l+p],i=Math.max(w(t),i),e[u+p],o=Math.max(w(e[u+p]),o),0<(t=w(e[u+c]))&&(t*=parseInt(e[u+h],10)||1),r=Math.max(t,r))}),a={total:0,transitionDelay:i,transitionDuration:n,animationDelay:o,animationDuration:r},e&&(f[e]=a)),a}function w(t){var e=0,t=V(t)?t.split(/\s*,\s*/):[];return H(t,function(t){e=Math.max(parseFloat(t)||0,e)}),e}function M(t,e,n,i){var r=0<=["ng-enter","ng-leave","ng-move"].indexOf(n),o=(a=(l=e).parent(),(s=a.data(d))||(a.data(d,++g),s=g),s+"-"+z(l).getAttribute("class")),a=o+" "+n,s=f[a]?++f[a].total:0,l={};0<s&&((c=!f[u=o+" "+(p=n+"-stagger")])&&q.addClass(e,p),l=P(e,u),c&&q.removeClass(e,p)),q.addClass(e,n);var u=e.data(T)||{},c=P(e,a),p=c.transitionDuration,c=c.animationDuration;if(!r||0!==p||0!==c){r=i||r&&0<p,p=0<c&&0<l.animationDelay&&0===l.animationDuration,c=u.closeAnimationFns||[];e.data(T,{stagger:l,cacheKey:a,running:u.running||0,itemIndex:s,blockTransition:r,closeAnimationFns:c});c=z(e);return r&&(I(c,!0),i&&e.css(i)),p&&R(c,!0),1}q.removeClass(e,n)}function I(t,e){t.style[l+r]=e?"none":""}function R(t,e){t.style[u+o]=e?"paused":""}function j(t,e,n,i){if(M(0,e,n,i))return function(t){t&&F(e,n)}}function N(t,e,n,i,r){if(e.data(T))return function(n,i,r,t){var e=z(n),o=n.data(T);if(-1!=e.getAttribute("class").indexOf(i)&&o){var a="",s="";H(i.split(" "),function(t,e){t=(0<e?" ":"")+t;a+=t+"-active",s+=t+"-pending"});var l=[],u=o.itemIndex,c=o.stagger,p=0;0<u&&((h=0)<c.transitionDelay&&0===c.transitionDuration&&(h=c.transitionDelay*u),(g=0)<c.animationDelay&&0===c.animationDuration&&(g=c.animationDelay*u,l.push(C+"animation-play-state")),p=Math.round(100*Math.max(h,g))/100),p||(q.addClass(n,a),o.blockTransition&&I(e,!1));var h=o.cacheKey+" "+a,d=P(n,h),f=Math.max(d.transitionDuration,d.animationDuration);if(0===f)return q.removeClass(n,a),F(n,i),void r();!p&&t&&0<Object.keys(t).length&&(d.transitionDuration||(n.css("transition",d.animationDuration+"s linear all"),l.push("transition")),n.css(t));var g=Math.max(d.transitionDelay,d.animationDelay),m=g*A;0<l.length&&(";"!==(h=e.getAttribute("style")||"").charAt(h.length-1)&&(h+=";"),e.setAttribute("style",h+" "));var v,y=Date.now(),b=S+" "+k,g=(p+(g+f)*D)*A;
1return 0<p&&(q.addClass(n,s),v=x(function(){v=null,0<d.transitionDuration&&I(e,!1),0<d.animationDuration&&R(e,!1),q.addClass(n,a),q.removeClass(n,s),t&&(0===d.transitionDuration&&n.css("transition",d.animationDuration+"s linear all"),n.css(t),l.push("transition"))},p*A,!1)),n.on(b,w),o.closeAnimationFns.push(function(){$(),r()}),o.running++,O(n,g),$}function $(){n.off(b,w),q.removeClass(n,a),q.removeClass(n,s),v&&x.cancel(v),F(n,i);var t,e=z(n);for(t in l)e.style.removeProperty(l[t])}function w(t){t.stopPropagation();var e=t.originalEvent||t,t=e.$manualTimeStamp||e.timeStamp||Date.now(),e=parseFloat(e.elapsedTime.toFixed(E));Math.max(t-y,0)>=m&&f<=e&&r()}r()}(e,n,i,r);F(e,n),i()}function L(t,e,n,i,r){var o=j(0,e,n,r.from);if(!o)return m(),void i();var a=o;return v(0,function(){a=N(0,e,n,i,r.to)}),function(t){(a||_)(t)}}function F(t,e){q.removeClass(t,e);e=t.data(T);e&&(e.running&&e.running--,e.running&&0!==e.running||t.removeData(T))}return{animate:function(t,e,n,i,r,o){return(o=o||{}).from=n,o.to=i,L(0,t,e,r,o)},enter:function(t,e,n){return L(0,t,"ng-enter",e,n=n||{})},leave:function(t,e,n){return L(0,t,"ng-leave",e,n=n||{})},move:function(t,e,n){return L(0,t,"ng-move",e,n=n||{})},beforeSetClass:function(t,e,n,i,r){r=r||{};r=j(0,t,U(n,"-remove")+" "+U(e,"-add"),r.from);if(r)return v(0,i),r;m(),i()},beforeAddClass:function(t,e,n,i){i=i||{};i=j(0,t,U(e,"-add"),i.from);if(i)return v(0,n),i;m(),n()},beforeRemoveClass:function(t,e,n,i){i=i||{};i=j(0,t,U(e,"-remove"),i.from);if(i)return v(0,n),i;m(),n()},setClass:function(t,e,n,i,r){return r=r||{},N(0,t,(n=U(n,"-remove"))+" "+(e=U(e,"-add")),i,r.to)},addClass:function(t,e,n,i){return i=i||{},N(0,t,U(e,"-add"),n,i.to)},removeClass:function(t,e,n,i){return i=i||{},N(0,t,U(e,"-remove"),n,i.to)}};function U(t,n){var i="";return t=B(t)?t:t.split(/\s+/),H(t,function(t,e){t&&0<t.length&&(i+=(0<e?" ":"")+t+n)}),i}}])}])}(window,window.angular),function(u){"use strict";u.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(e,r){var n,o={},a={},i=!1,s=u.copy,l=u.isUndefined;return r.addPollFn(function(){var t=r.cookies();n!=t&&(s(n=t,a),s(t,o),i&&e.$apply())})(),i=!0,e.$watch(function(){var t,e,n,i;for(t in a)l(o[t])&&r.cookies(t,void 0);for(t in o)e=o[t],u.isString(e)||(e=""+e,o[t]=e),e!==a[t]&&(r.cookies(t,e),i=!0);if(i)for(t in i=!1,n=r.cookies(),o)o[t]!==n[t]&&(l(n[t])?delete o[t]:o[t]=n[t],i=!0)}),o}]).factory("$cookieStore",["$cookies",function(n){return{get:function(t){t=n[t];return t&&u.fromJson(t)},put:function(t,e){n[t]=u.toJson(e)},remove:function(t){delete n[t]}}}])}((window,window.angular)),function(O,P){"use strict";var M=O.$$minErr("$resource"),s=/^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;function I(t,e){if(null==(n=e)||""===n||"hasOwnProperty"===n||!s.test("."+n))throw M("badmember",'Dotted member path "@{0}" is invalid.',e);for(var n,i=e.split("."),r=0,o=i.length;r<o&&t!==P;r++){var a=i[r];t=null!==t?t[a]:P}return t}function R(t,n){for(var e in O.forEach(n=n||{},function(t,e){delete n[e]}),t)!t.hasOwnProperty(e)||"$"===e.charAt(0)&&"$"===e.charAt(1)||(n[e]=t[e]);return n}O.module("ngResource",["ng"]).provider("$resource",function(){var o=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$q",function(C,k){var S=O.noop,T=O.forEach,E=O.extend,D=O.copy,A=O.isFunction;function l(t){return e=!0,encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,e?"%20":"+").replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+");var e}function r(t,e){this.template=t,this.defaults=E({},o.defaults,e),this.urlParams={}}return r.prototype={setUrlParams:function(n,i,t){var r,o,a=this,s=t||a.template,e=a.urlParams={};T(s.split(/\W/),function(t){if("hasOwnProperty"===t)throw M("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(t)&&t&&new RegExp("(^|[^\\\\]):"+t+"(\\W|$)").test(s)&&(e[t]=!0)}),s=s.replace(/\\:/g,":"),i=i||{}
1,T(a.urlParams,function(t,e){r=(i.hasOwnProperty(e)?i:a.defaults)[e],s=O.isDefined(r)&&null!==r?(o=l(r),s.replace(new RegExp(":"+e+"(\\W|$)","g"),function(t,e){return o+e})):s.replace(new RegExp("(/?):"+e+"(\\W|$)","g"),function(t,e,n){return"/"==n.charAt(0)?n:e+n})}),s=(s=a.defaults.stripTrailingSlashes?s.replace(/\/+$/,"")||"/":s).replace(/\/\.(?=\w+($|\?))/,"."),n.url=s.replace(/\/\\\./,"/."),T(i,function(t,e){a.urlParams[e]||(n.params=n.params||{},n.params[e]=t)})}},function e(n,b,i,t){var $=new r(n,t);function w(t){return t.resource}function x(t){R(t||{},this)}return i=E({},o.defaults.actions,i),x.prototype.toJSON=function(){var t=E({},this);return delete t.$promise,delete t.$resolved,t},T(i,function(m,v){var y=/^(POST|PUT|PATCH)$/i.test(m.method);x[v]=function(t,e,n,i){var r,o,a,s={};switch(arguments.length){case 4:a=i,o=n;case 3:case 2:if(!A(e)){s=t,r=e,o=n;break}if(A(t)){o=t,a=e;break}o=e,a=n;case 1:A(t)?o=t:y?r=t:s=t;break;case 0:break;default:throw M("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var l,u,c=this instanceof x,p=c?r:m.isArray?[]:new x(r),h={},d=m.interceptor&&m.interceptor.response||w,f=m.interceptor&&m.interceptor.responseError||P;T(m,function(t,e){"params"!=e&&"isArray"!=e&&"interceptor"!=e&&(h[e]=D(t))}),y&&(h.data=r),$.setUrlParams(h,E({},(l=r,g=m.params||{},u={},g=E({},b,g),T(g,function(t,e){A(t)&&(t=t()),u[e]=t&&t.charAt&&"@"==t.charAt(0)?I(l,t.substr(1)):t}),u),s),m.url);var g=(g=C(h).then(function(t){var e=t.data,n=p.$promise;if(e){if(O.isArray(e)!==!!m.isArray)throw M("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2}",v,m.isArray?"array":"object",O.isArray(e)?"array":"object");m.isArray?(p.length=0,T(e,function(t){"object"==typeof t?p.push(new x(t)):p.push(t)})):(R(e,p),p.$promise=n)}return p.$resolved=!0,t.resource=p,t},function(t){return p.$resolved=!0,(a||S)(t),k.reject(t)})).then(function(t){var e=d(t);return(o||S)(e,t.headers),e},f);return c?g:(p.$promise=g,p.$resolved=!1,p)},x.prototype["$"+v]=function(t,e,n){return A(t)&&(n=e,e=t,t={}),(n=x[v].call(this,t,this,e,n)).$promise||n}}),x.bind=function(t){return e(n,E({},b,t),i)},x}}]})}((window,window.angular)),function(v){"use strict";var t=v.module("ngRoute",["ng"]).provider("$route",function(){function g(t,e){return v.extend(Object.create(t),e)}var m={};function i(t,e){var n=e.caseInsensitiveMatch,e={originalPath:t,regexp:t},o=e.keys=[];return t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)([\?\*])?/g,function(t,e,n,i){var r="?"===i?i:null,i="*"===i?i:null;return o.push({name:n,optional:!!r}),e=e||"",(r?"":e)+"(?:"+(r?e:"")+(i?"(.+?)":"([^/]+)")+(r||"")+")"+(r||"")}).replace(/([\/$\*])/g,"\\$1"),e.regexp=new RegExp("^"+t+"$",n?"i":""),e}this.when=function(t,e){var n=v.copy(e);return v.isUndefined(n.reloadOnSearch)&&(n.reloadOnSearch=!0),v.isUndefined(n.caseInsensitiveMatch)&&(n.caseInsensitiveMatch=this.caseInsensitiveMatch),m[t]=v.extend(n,t&&i(t,n)),t&&(e="/"==t[t.length-1]?t.substr(0,t.length-1):t+"/",m[e]=v.extend({redirectTo:t},i(e,n))),this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return this.when(null,t="string"==typeof t?{redirectTo:t}:t),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(r,o,n,a,s,l,u){var c,p,h=!1,d={routes:m,reload:function(){h=!0,r.$evalAsync(function(){t(),e()})},updateParams:function(t){if(!this.current||!this.current.$$route)throw y("norout","Tried updating route when with no current route");t=v.extend({},this.current.params,t),o.path(f(this.current.$$route.originalPath,t)),o.search(t)}};return r.$on("$locationChangeStart",t),r.$on("$locationChangeSuccess",e),d;function t(t){var n,i,e=d.current;v.forEach(m,function(t,e){!i&&(n=function(t,e){var n=e.keys,i={};if(!e.regexp)return null;var r=e.regexp.exec(t);if(!r)return null;for(var o=1,a=r.length;o<a;++o){var s=n[o-1],l=r[o];s&&l&&(i[s.name]=l)}return i}(o.path(),t))&&((i=g(t,{params:v.extend({},o.search(),n),pathParams:n})).$$route=t)}),c=i||m.null&&g(m.null,{params:{},pathParams:{}}),(p=c&&e&&c.$$route===e.$$route&&v.equals(c.pathParams,e.pathParams)&&!c.reloadOnSearch&&!h)||!e&&!c||r.$broadcast("$routeChangeStart",c,e).defaultPrevented&&t&&t.preventDefault()}function e(){var e=d.current,i=c;p?(e.params=i.params,v.copy(e.params,n),r.$broadcast("$routeUpdate",e)):(i||e)&&(h=!1,(d.current=i)&&i.redirectTo&&(v.isString(i.redirectTo)?o.path(f(i.redirectTo,i.params)).search(i.params):o.url(i.redirectTo(i.pathParams,o.path(),o.search()))).replace(),a.when(i).then(function(){if(i){var t,e,n=v.extend({},i.resolve);return v.forEach(n,function(t,e){n[e]=v.isString(t)?s.get(t):s.invoke(t,null,null,e)}),v.isDefined(t=i.template)?v.isFunction(t)&&(t=t(i.params)):v.isDefined(e=i.templateUrl)&&(v.isFunction(e)&&(e=e(i.params)),e=u.getTrustedResourceUrl(e),v.isDefined(e)&&(i.loadedTemplateUrl=e,t=l(e))),v.isDefined(t)&&(n.$template=t),a.all(n)}}).then(function(t){i==d.current&&(i&&(i.locals=t,v.copy(i.params,n)),r.$broadcast("$routeChangeSuccess",i,e))},function(t){i==d.current&&r.$broadcast("$routeChangeError",i,e,t)}))}function f(t,n){var i=[];return v.forEach((t||"").split(":"),function(t,e){0===e?i.push(t):(t=(e=t.match(/(\w+)(?:[?*])?(.*)/))[1],i.push(n[t]),i.push(e[2]||""),delete n[t])}),i.join("")}}]}),y=v.$$minErr("ngRoute");function e(h,d,f){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,r,t,e,o){var a,s,n,l=t.autoscroll,u=t.onload||"";function c(){n&&(f.cancel(n),n=null),a&&(a.$destroy(),a=null),s&&((n=f.leave(s)).then(function(){n=null}),s=null)}function p(){var t,e=h.current&&h.current.locals,n=e&&e.$template;v.isDefined(n)?(t=i.$new(),e=h.current,n=o(t,function(t){f.enter(t,null,s||r).then(function(){!v.isDefined(l)||l&&!i.$eval(l)||d()}),c()}),s=n,(a=e.scope=t).$emit("$viewContentLoaded"),a.$eval(u)):c()}i.$on("$routeChangeSuccess",p),p()}}}function n(o,a,s){return{restrict:"ECA",priority:-400,link:function(t,e){var n=s.current,i=n.locals;e.html(i.$template);var r=o(e.contents());n.controller&&(i.$scope=t,i=a(n.controller,i),n.controllerAs&&(t[n.controllerAs]=i),e.data("$ngControllerController",i),e.children().data("$ngControllerController",i)),r(t)}}}
1t.provider("$routeParams",function(){this.$get=function(){return{}}}),t.directive("ngView",e),t.directive("ngView",n),e.$inject=["$route","$anchorScroll","$animate"],n.$inject=["$compile","$controller","$route"]}((window,window.angular)),function(p){"use strict";var c=p.$$minErr("$sanitize");var h=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,d=/^<\/\s*([\w:-]+)[^>]*>/,f=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,g=/^</,m=/^<\//,v=/<!--(.*?)-->/g,y=/<!DOCTYPE([^>]*?)>/i,b=/<!\[CDATA\[(.*?)]]>/g,e=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n=/([^\#-~| |!])/g,$=r("area,br,col,hr,img,wbr"),t=r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),i=r("rp,rt"),w=p.extend({},i,t),x=p.extend({},t,r("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),C=p.extend({},i,r("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),t=r("animate,animateColor,animateMotion,animateTransform,circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,set,stop,svg,switch,text,title,tspan,use"),k=r("script,style"),a=p.extend({},$,x,C,w,t),s=r("background,cite,href,longdesc,src,usemap,xlink:href"),i=r("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width"),t=r("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,attributeName,attributeType,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode
1-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan"),l=p.extend({},s,t,i);function r(t){for(var e={},n=t.split(","),i=0;i<n.length;i++)e[n[i]]=!0;return e}var o=document.createElement("pre");function S(t){return t?(o.innerHTML=t.replace(/</g,"&lt;"),o.textContent):""}function u(t){return t.replace(/&/g,"&amp;").replace(e,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(n,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function T(t,r){var n=!1,o=p.bind(t,t.push);return{start:function(i,t,e){i=p.lowercase(i),(n=!n&&k[i]?i:n)||!0!==a[i]||(o("<"),o(i),p.forEach(t,function(t,e){var n=p.lowercase(e);!0!==l[n]||!0===s[n]&&!r(t,"img"===i&&"src"===n||"background"===n)||(o(" "),o(e),o('="'),o(u(t)),o('"'))}),o(e?"/>":">"))},end:function(t){t=p.lowercase(t),n||!0!==a[t]||(o("</"),o(t),o(">")),t==n&&(n=!1)},chars:function(t){n||o(u(t))}}}p.module("ngSanitize",[]).provider("$sanitize",function(){this.$get=["$$sanitizeUri",function(n){return function(t){var e=[];return function(t,r){"string"!=typeof t&&(t=null==t?"":""+t);var e,n,i,o,a=[],s=t;a.last=function(){return a[a.length-1]};for(;t;){if(n=!(o=""),a.last()&&k[a.last()]?(t=t.replace(new RegExp("([\\W\\w]*)<\\s*\\/\\s*"+a.last()+"[^>]*>","i"),function(t,e){return e=e.replace(v,"$1").replace(b,"$1"),r.chars&&r.chars(S(e)),""}),u(0,a.last())):(0===t.indexOf("\x3c!--")?0<=(e=t.indexOf("--",4))&&t.lastIndexOf("--\x3e",e)===e&&(r.comment&&r.comment(t.substring(4,e)),t=t.substring(e+3),n=!1):y.test(t)?(i=t.match(y))&&(t=t.replace(i[0],""),n=!1):m.test(t)?(i=t.match(d))&&(t=t.substring(i[0].length),i[0].replace(d,u),n=!1):g.test(t)&&((i=t.match(h))?(i[4]&&(t=t.substring(i[0].length),i[0].replace(h,l)),n=!1):(o+="<",t=t.substring(1))),n&&(e=t.indexOf("<"),o+=e<0?t:t.substring(0,e),t=e<0?"":t.substring(e),r.chars&&r.chars(S(o)))),t==s)throw c("badparse","The sanitizer was unable to parse the following block of html: {0}",t);s=t}function l(t,e,n,i){if(e=p.lowercase(e),x[e])for(;a.last()&&C[a.last()];)u(0,a.last());w[e]&&a.last()==e&&u(0,e),(i=$[e]||!!i)||a.push(e);var o={};n.replace(f,function(t,e,n,i,r){o[e]=S(n||i||r||"")}),r.start&&r.start(e,o,i)}function u(t,e){var n,i=0;if(e=p.lowercase(e))for(i=a.length-1;0<=i&&a[i]!=e;i--);if(0<=i){for(n=a.length-1;i<=n;n--)r.end&&r.end(a[n]);a.length=i}}u()}(t,T(e,function(t,e){return!/^unsafe/.test(n(t,e))})),e.join("")}}]}),p.module("ngSanitize").filter("linky",["$sanitize",function(l){var u=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"”’]/,c=/^mailto:/;return function(t,n){if(!t)return t;for(var e,i,r,o=t,a=[];e=o.match(u);)i=e[0],e[2]||e[4]||(i=(e[3]?"http://":"mailto:")+i),r=e.index,s(o.substr(0,r)),function(t,e){a.push("<a "),p.isDefined(n)&&a.push('target="',n,'" ');a.push('href="',t.replace(/"/g,"&quot;"),'">'),s(e),a.push("</a>")}(i,e[0].replace(c,"")),o=o.substring(r+e[0].length);return s(o),l(a.join(""));function s(t){var e;t&&a.push((e=t,T(t=[],p.noop).chars(e),t.join("")))}}}])}((window,window.angular)),function(b){"use strict";var t=b.module("ngTouch",[]);function e(u,c,p){t.directive(u,["$parse","$swipe",function(s,l){return function(n,i,t){var r,o,a=s(t[u]);var e=["touch"];b.isDefined(t.ngSwipeDisableMouse)||e.push("mouse"),l.bind(i,{start:function(t,e){r=t,o=!0},cancel:function(t){o=!1},end:function(t,e){!function(t){if(r){var e=Math.abs(t.y-r.y),t=(t.x-r.x)*c;return o&&e<75&&0<t&&30<t&&e/t<.3}}(t)||n.$apply(function(){i.triggerHandler(p),a(n,{$event:e})})}},e)}}])}t.factory("$swipe",[function(){var i={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}};function u(t){var e=t.touches&&t.touches.length?t.touches:[t],e=t.changedTouches&&t.changedTouches[0]||t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]||e[0].originalEvent||e[0];return{x:e.clientX,y:e.clientY}}function c(t,e){var n=[];return b.forEach(t,function(t){t=i[t][e];t&&n.push(t)}),n.join(" ")}return{bind:function(t,n,e){var i,r,o,a,s=!1;t.on(c(e=e||["mouse","touch"],"start"),function(t){o=u(t),s=!0,r=i=0,a=o,n.start&&n.start(o,t)});var l=c(e,"cancel");l&&t.on(l,function(t){s=!1,n.cancel&&n.cancel(t)}),t.on(c(e,"move"),function(t){var e;s&&o&&(e=u(t),i+=Math.abs(e.x-a.x),r+=Math.abs(e.y-a.y),a=e,i<10&&r<10||(i<r?(s=!1,n.cancel&&n.cancel(t)):(t.preventDefault(),n.move&&n.move(e,t))))}),t.on(c(e,"end"),function(t){s&&(s=!1,n.end&&n.end(u(t),t))})}}}]),t.config(["$provide",function(t){t.decorator("ngClickDirective",["$delegate",function(t){return t.shift(),t}])}]),t.directive("ngClick",["$parse","$timeout","$rootElement",function(t,i,d){var f,g,r,o=2500,l=25,e="ng-click-active";function m(t,e,n){for(var i,r,o,a,s=0;s<t.length;s+=2)if(i=t[s],r=t[s+1],o=e,a=n,Math.abs(i-o)<l&&Math.abs(r-a)<l)return t.splice(s,s+2),1}function v(t){var e,n;Date.now()-f>o||(e=(n=t.touches&&t.touches.length?t.touches:[t])[0].clientX,n=n[0].clientY,e<1&&n<1||r&&r[0]===e&&r[1]===n||(r=r&&null,"label"===t.target.tagName.toLowerCase()&&(r=[e,n]),m(g,e,n)||(t.stopPropagation(),t.preventDefault(),t.target&&t.target.blur())))}function y(t){var t=t.touches&&t.touches.length?t.touches:[t],e=t[0].clientX,n=t[0].clientY;g.push(e,n),i(function(){for(var t=0;t<g.length;t+=2)if(g[t]==e&&g[t+1]==n)return void g.splice(t,t+2)},o,!1)}return function(n,o,a){var s,l,u,c,i=t(a.ngClick),p=!1;function h(){p=!1,o.removeClass(e)}o.on("touchstart",function(t){p=!0,3==(s=t.target||t.srcElement).nodeType&&(s=s.parentNode),o.addClass(e),l=Date.now();t=t.touches&&t.touches.length?t.touches:[t],t=t[0].originalEvent||t[0];u=t.clientX,c=t.clientY}),o.on("touchmove",function(t){h()}),o.on("touchcancel",function(t){h()}),o.on("touchend",function(t){var e=Date.now()-l,n=t.changedTouches&&t.changedTouches.length?t.changedTouches:t.touches&&t.touches.length?t.touches:[t],i=n[0].originalEvent||n[0],r=i.clientX,n=i.clientY,i=Math.sqrt(Math.pow(r-u,2)+Math.pow(n-c,2));p&&e<750&&i<12&&(r=r,n=n,g||(d[0].addEventListener("click",v,!0),d[0].addEventListener("touchstart",y,!0),g=[]),f=Date.now(),m(g,r,n),s&&s.blur(),b.isDefined(a.disabled)&&!1!==a.disabled||o.triggerHandler("click",[t])),h()}),o.onclick=function(t){},o.on("click",function(t,e){n.$apply(function(){i(n,{$event:e||t})})}),o.on("mousedown",function(t){o.addClass(e)}),o.on("mousemove mouseup",function(t){o.removeClass(e)})}}]),e("ngSwipeLeft",-1,"swipeleft"),e("ngSwipeRight",1,"swiperight")}((window,window.angular)),function(){"use strict";function t(){}var e=t.prototype,n=this,i=n.EventEmitter;function o(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function r(t){return function(){return this[t].apply(this,arguments)}}e.getListeners=function(t){var e,n,i=this._getEvents();if(t instanceof RegExp)for(n in e={},i)i.hasOwnProperty(n)&&t.test(n)&&(e[n]=i[n]);else e=i[t]||(i[t]=[]);return e},e.flattenListeners=function(t){for(var e=[],n=0;n<t.length;
1n+=1)e.push(t[n].listener);return e},e.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},e.addListener=function(t,e){var n,i=this.getListenersAsObject(t),r="object"==typeof e;for(n in i)i.hasOwnProperty(n)&&-1===o(i[n],e)&&i[n].push(r?e:{listener:e,once:!1});return this},e.on=r("addListener"),e.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},e.once=r("addOnceListener"),e.defineEvent=function(t){return this.getListeners(t),this},e.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},e.removeListener=function(t,e){var n,i,r=this.getListenersAsObject(t);for(i in r)r.hasOwnProperty(i)&&-1!==(n=o(r[i],e))&&r[i].splice(n,1);return this},e.off=r("removeListener"),e.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},e.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},e.manipulateListeners=function(t,e,n){var i,r,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(i=n.length;i--;)o.call(this,e,n[i]);else for(i in e)e.hasOwnProperty(i)&&(r=e[i])&&("function"==typeof r?o:a).call(this,i,r);return this},e.removeEvent=function(t){var e,n=typeof t,i=this._getEvents();if("string"==n)delete i[t];else if(t instanceof RegExp)for(e in i)i.hasOwnProperty(e)&&t.test(e)&&delete i[e];else delete this._events;return this},e.removeAllListeners=r("removeEvent"),e.emitEvent=function(t,e){var n,i,r,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(r=(n=a[o].slice(0)).length;r--;)!0===(i=n[r]).once&&this.removeListener(t,i.listener),i.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,i.listener);return this},e.trigger=r("emitEvent"),e.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},e.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},e._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},e._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return n.EventEmitter=i,t},"function"==typeof define&&define.amd?define(function(){return t}):"object"==typeof module&&module.exports?module.exports=t:n.EventEmitter=t}.call(this),function(n){"use strict";var t=document.documentElement,e=function(){};function i(t){var e=n.event;return e.target=e.target||e.srcElement||t,e}t.addEventListener?e=function(t,e,n){t.addEventListener(e,n,!1)}:t.attachEvent&&(e=function(e,t,n){e[t+n]=n.handleEvent?function(){var t=i(e);n.handleEvent.call(n,t)}:function(){var t=i(e);n.call(e,t)},e.attachEvent("on"+t,e[t+n])});var r=function(){};t.removeEventListener?r=function(t,e,n){t.removeEventListener(e,n,!1)}:t.detachEvent&&(r=function(e,n,i){e.detachEvent("on"+n,e[n+i]);try{delete e[n+i]}catch(t){e[n+i]=void 0}});r={bind:e,unbind:r};"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r:n.eventie=r}(window),function(n,i){"use strict";"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(t,e){return i(n,t,e)}):"object"==typeof exports?module.exports=i(n,require("wolfy87-eventemitter"),require("eventie")):n.imagesLoaded=i(n,n.EventEmitter,n.eventie)}(window,function(t,e,n){"use strict";var r=t.jQuery,a=t.console,s=void 0!==a;function o(t,e){for(var n in e)t[n]=e[n];return t}var l=Object.prototype.toString;function u(t){var e,n=[];if(e=t,"[object Array]"===l.call(e))n=t;else if("number"==typeof t.length)for(var i=0,r=t.length;i<r;i++)n.push(t[i]);else n.push(t);return n}function c(t,e,n){if(!(this instanceof c))return new c(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=u(t),this.options=o({},this.options),"function"==typeof e?n=e:o(this.options,e),n&&this.on("always",n),this.getImages(),r&&(this.jqDeferred=new r.Deferred);var i=this;setTimeout(function(){i.check()})}function i(t){this.img=t}(c.prototype=new e).options={},c.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;t<e;t++){var n=this.elements[t];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,a=r.length;o<a;o++){var s=r[o];this.addImage(s)}}},c.prototype.addImage=function(t){t=new i(t);this.images.push(t)},c.prototype.check=function(){var n=this,i=0,r=this.images.length;if(this.hasAnyBroken=!1,r)for(var t=0;t<r;t++){var e=this.images[t];e.on("confirm",o),e.check()}else this.complete();function o(t,e){return n.options.debug&&s&&a.log("confirm",t,e),n.progress(t),++i===r&&n.complete(),!0}},c.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify&&e.jqDeferred.notify(e,t)})},c.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var n=this;setTimeout(function(){var t;n.emit(e,n),n.emit("always",n),n.jqDeferred&&(t=n.hasAnyBroken?"reject":"resolve",n.jqDeferred[t](n))})},r&&(r.fn.imagesLoaded=function(t,e){return new c(this,t,e).jqDeferred.promise(r(this))}),(i.prototype=new e).check=function(){var n,t=p[this.img.src]||new h(this.img.src);t.isConfirmed?this.confirm(t.isLoaded,"cached was confirmed"):this.img.complete&&void 0!==this.img.naturalWi
1dth?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(n=this,t.on("confirm",function(t,e){return n.confirm(t.isLoaded,e),!0}),t.check())},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var p={};function h(t){this.src=t,p[t]=this}return(h.prototype=new e).check=function(){var t;this.isChecked||(t=new Image,n.bind(t,"load",this),n.bind(t,"error",this),t.src=this.src,this.isChecked=!0)},h.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},h.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},h.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},h.prototype.unbindProxyEvents=function(t){n.unbind(t.target,"load",this),n.unbind(t.target,"error",this)},c}),angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/popover/popover-html.html","template/popover/popover-template.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$injector",function(o,t){var a=t.has("$animateCss")?t.get("$animateCss"):null;return{link:function(t,e,n){function i(){e.removeClass("collapsing").addClass("collapse").css({height:"auto"})}function r(){e.css({height:"0"}),e.removeClass("collapsing").addClass("collapse")}t.$watch(n.uibCollapse,function(t){t?function(){if(!e.hasClass("collapse")&&!e.hasClass("in"))return r();e.css({height:e[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),a?a(e,{removeClass:"in",to:{height:"0"}}).start().finally(r):o.removeClass(e,"in",{to:{height:"0"}}).then(r)}():(e.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),a?a(e,{addClass:"in",easing:"ease",to:{height:e[0].scrollHeight+"px"}}).start().finally(i):o.addClass(e,"in",{to:{height:e[0].scrollHeight+"px"}}).then(i))})}}}]),angular.module("ui.bootstrap.collapse").value("$collapseSuppressWarning",!1).directive("collapse",["$animate","$injector","$log","$collapseSuppressWarning",function(o,t,a,s){var l=t.has("$animateCss")?t.get("$animateCss"):null;return{link:function(t,e,n){function i(){e.removeClass("collapsing").addClass("collapse in").css({height:"auto"})}function r(){e.css({height:"0"}),e.removeClass("collapsing").addClass("collapse")}s||a.warn("collapse is now deprecated. Use uib-collapse instead."),t.$watch(n.collapse,function(t){t?function(){if(!e.hasClass("collapse")&&!e.hasClass("in"))return r();e.css({height:e[0].scrollHeight+"px"}).removeClass("collapse in").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),l?l(e,{to:{height:"0"}}).start().done(r):o.animate(e,{},{height:"0"}).then(r)}():(e.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),l?l(e,{easing:"ease",to:{height:e[0].scrollHeight+"px"}}).start().done(i):o.animate(e,{},{height:e[0].scrollHeight+"px"}).then(i))})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(t,n,i){this.groups=[],this.closeOthers=function(e){(angular.isDefined(n.closeOthers)?t.$eval(n.closeOthers):i.closeOthers)&&angular.forEach(this.groups,function(t){t!==e&&(t.isOpen=!1)})},this.addGroup=function(e){var n=this;this.groups.push(e),e.$on("$destroy",function(t){n.removeGroup(e)})},this.removeGroup=function(t){t=this.groups.indexOf(t);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(e,n,t,i){i.addGroup(e),e.openClass=t.openClass||"panel-open",e.panelClass=t.panelClass,e.$watch("isOpen",function(t){n.toggleClass(e.openClass,!!t),t&&i.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)}}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(t,e,n,i,r){i.setHeading(r(t,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:["?^uibAccordionGroup","?^accordionGroup"],link:function(t,e,n,i){i=i[0]||i[1],t.$watch(function(){return i[n.uibAccordionTransclude]},function(t){t&&(e.find("span").html(""),e.find("span").append(t))})}}}),angular.module("ui.bootstrap.accordion").value("$accordionSuppressWarning",!1).controller("AccordionController",["$scope","$attrs","$controller","$log","$accordionSuppressWarning",function(t,e,n,i,r){r||i.warn("AccordionController is now deprecated. Use UibAccordionController instead."),angular.extend(this,n("UibAccordionController",{$scope:t,$attrs:e}))}]).directive("accordion",["$log","$accordionSuppressWarning",function(t,e){return{restrict:"EA",controller:"AccordionController",controllerAs:"accordion",transclude:!0,replace:!1,templateUrl:function(t,e){return e.templateUrl||"template/accordion/accordion.html"},link:function(){e||t.warn("accordion is now deprecated. Use uib-accordion instead.")}}}]).directive("accordionGroup",["$log","$accordionSuppressWarning",function(r,o){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(e,n,t,i){o||r.warn("accordion-group is now deprecated. Use uib-accordion-group instead."),i.addGroup(e),e.openClass=t.openClass||"panel-open",e.panelClass=t.panelClass,e.$watch("isOpen",function(t){n.toggleClass(e.openClass,!!t),t&&i.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)}}}}]).directive("accordionHeading",["$log","$accordionSuppressWarning",function(o,a){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(t,e,n,i,r){a||o.warn("accordion-heading is now deprecated. Use uib-accordion-heading instead."),i.setHeading(r(t,angular.noop))}}}]).directive("accordionTransclude",["$log","$accordionSuppressWarning",function(r,o){return{require:"^accordionGroup",link:function(t,e,n,i){o||r.warn("accordion-transclude is now deprecated. Use uib-accordion-transclude instead."),t.$watch(function(){return i[n.accordionTransclude]},function(t){t&&(e.find("span").html(""),e.find("span").append(t))})}}}
1]),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(t,e,n,i){t.closeable=!!e.close;e=angular.isDefined(e.dismissOnTimeout)?n(e.dismissOnTimeout)(t.$parent):null;e&&i(function(){t.close()},parseInt(e,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(t,e){return e.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}),angular.module("ui.bootstrap.alert").value("$alertSuppressWarning",!1).controller("AlertController",["$scope","$attrs","$controller","$log","$alertSuppressWarning",function(t,e,n,i,r){r||i.warn("AlertController is now deprecated. Use UibAlertController instead."),angular.extend(this,n("UibAlertController",{$scope:t,$attrs:e}))}]).directive("alert",["$log","$alertSuppressWarning",function(t,e){return{controller:"AlertController",controllerAs:"alert",templateUrl:function(t,e){return e.templateUrl||"template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"},link:function(){e||t.warn("alert is now deprecated. Use uib-alert instead.")}}}]),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(t){this.activeClass=t.activeClass||"active",this.toggleEvent=t.toggleEvent||"click"}]).directive("uibBtnRadio",function(){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(e,n,i,t){var r=t[0],o=t[1];n.find("input").css({display:"none"}),o.$render=function(){n.toggleClass(r.activeClass,angular.equals(o.$modelValue,e.$eval(i.uibBtnRadio)))},n.on(r.toggleEvent,function(){var t;i.disabled||((t=n.hasClass(r.activeClass))&&!angular.isDefined(i.uncheckable)||e.$apply(function(){o.$setViewValue(t?null:e.$eval(i.uibBtnRadio)),o.$render()}))})}}}).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,t,e,i){var r=i[0],o=i[1];function a(){return s(e.btnCheckboxTrue,!0)}function s(t,e){return angular.isDefined(t)?n.$eval(t):e}t.find("input").css({display:"none"}),o.$render=function(){t.toggleClass(r.activeClass,angular.equals(o.$modelValue,a()))},t.on(r.toggleEvent,function(){e.disabled||n.$apply(function(){o.$setViewValue(t.hasClass(r.activeClass)?s(e.btnCheckboxFalse,!1):a()),o.$render()})})}}}),angular.module("ui.bootstrap.buttons").value("$buttonsSuppressWarning",!1).controller("ButtonsController",["$controller","$log","$buttonsSuppressWarning",function(t,e,n){n||e.warn("ButtonsController is now deprecated. Use UibButtonsController instead."),angular.extend(this,t("UibButtonsController"))}]).directive("btnRadio",["$log","$buttonsSuppressWarning",function(a,s){return{require:["btnRadio","ngModel"],controller:"ButtonsController",controllerAs:"buttons",link:function(e,n,i,t){s||a.warn("btn-radio is now deprecated. Use uib-btn-radio instead.");var r=t[0],o=t[1];n.find("input").css({display:"none"}),o.$render=function(){n.toggleClass(r.activeClass,angular.equals(o.$modelValue,e.$eval(i.btnRadio)))},n.bind(r.toggleEvent,function(){var t;i.disabled||((t=n.hasClass(r.activeClass))&&!angular.isDefined(i.uncheckable)||e.$apply(function(){o.$setViewValue(t?null:e.$eval(i.btnRadio)),o.$render()}))})}}}]).directive("btnCheckbox",["$document","$log","$buttonsSuppressWarning",function(u,c,p){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",controllerAs:"button",link:function(n,e,i,t){p||c.warn("btn-checkbox is now deprecated. Use uib-btn-checkbox instead.");var r=t[0],o=t[1];function a(){return l(i.btnCheckboxTrue,!0)}function s(){return l(i.btnCheckboxFalse,!1)}function l(t,e){t=n.$eval(t);return angular.isDefined(t)?t:e}e.find("input").css({display:"none"}),o.$render=function(){e.toggleClass(r.activeClass,angular.equals(o.$modelValue,a()))},e.bind(r.toggleEvent,function(){i.disabled||n.$apply(function(){o.$setViewValue((e.hasClass(r.activeClass)?s:a)()),o.$render()})}),e.on("keypress",function(t){i.disabled||32!==t.which||u[0].activeElement!==e[0]||n.$apply(function(){o.$setViewValue((e.hasClass(r.activeClass)?s:a)()),o.$render()})})}}}]),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$animate",function(i,e,n,r){var o,a,s=this,l=s.slides=i.slides=[],u=4<=angular.version.minor,c="uib-slideDirection",p=-1;s.currentSlide=null;var h=!1;function d(t){if(angular.isUndefined(l[t].index))return l[t];l.length;for(var e=0;e<l.length;++e)if(l[e].index==t)return l[e]}function f(){g();var t=+i.interval;!isNaN(t)&&0<t&&(o=n(m,t))}function g(){o&&(n.cancel(o),o=null)}function m(){var t=+i.interval;
1a&&!isNaN(t)&&0<t&&l.length?i.next():i.pause()}s.select=i.select=function(t,e){var n=i.indexOfSlide(t);void 0===e&&(e=n>s.getCurrentIndex()?"next":"prev"),t&&t!==s.currentSlide&&!i.$currentTransition&&(t=t,n=n,e=e,h||(angular.extend(t,{direction:e,active:!0}),angular.extend(s.currentSlide||{},{direction:e,active:!1}),r.enabled()&&!i.noTransition&&!i.$currentTransition&&t.$element&&1<s.slides.length&&(t.$element.data(c,t.direction),s.currentSlide&&s.currentSlide.$element&&s.currentSlide.$element.data(c,t.direction),i.$currentTransition=!0,u?r.on("addClass",t.$element,function(t,e){"close"===e&&(i.$currentTransition=null,r.off("addClass",t))}):t.$element.one("$animate:close",function(){i.$currentTransition=null})),s.currentSlide=t,p=n,f()))},i.$on("$destroy",function(){h=!0}),s.getCurrentIndex=function(){return s.currentSlide&&angular.isDefined(s.currentSlide.index)?+s.currentSlide.index:p},i.indexOfSlide=function(t){return angular.isDefined(t.index)?+t.index:l.indexOf(t)},i.next=function(){var t=(s.getCurrentIndex()+1)%l.length;if(0!=t||!i.noWrap())return s.select(d(t),"next");i.pause()},i.prev=function(){var t=s.getCurrentIndex()-1<0?l.length-1:s.getCurrentIndex()-1;if(!i.noWrap()||t!=l.length-1)return s.select(d(t),"prev");i.pause()},i.isActive=function(t){return s.currentSlide===t},i.$watch("interval",f),i.$watchCollection("slides",function(t){t.length||(i.$currentTransition=null)}),i.$on("$destroy",g),i.play=function(){a||(a=!0,f())},i.pause=function(){i.noPause||(a=!1,g())},s.addSlide=function(t,e){t.$element=e,l.push(t),1===l.length||t.active?(s.select(l[l.length-1]),1===l.length&&i.play()):t.active=!1},s.removeSlide=function(t){angular.isDefined(t.index)&&l.sort(function(t,e){return+t.index>+e.index});var e=l.indexOf(t);l.splice(e,1),0<l.length&&t.active?e>=l.length?s.select(l[e-1]):s.select(l[e]):e<p&&p--,0===l.length&&(s.currentSlide=null)},i.$watch("noTransition",function(t){e.data("uib-noTransition",t)})}]).directive("uibCarousel",[function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(t,e){return e.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}]).directive("uibSlide",function(){return{require:"^uibCarousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(e,t,n,i){i.addSlide(e,t),e.$on("$destroy",function(){i.removeSlide(e)}),e.$watch("active",function(t){t&&i.select(e)})}}}).animation(".item",["$injector","$animate",function(t,a){var s="uib-noTransition",l="uib-slideDirection",u=null;function c(t,e,n){t.removeClass(e),n&&n()}return t.has("$animateCss")&&(u=t.get("$animateCss")),{beforeAddClass:function(t,e,n){if("active"==e&&t.parent()&&t.parent().parent()&&!t.parent().parent().data(s)){var i=!1,r=t.data(l),e="next"==r?"left":"right",o=c.bind(this,t,e+" "+r,n);return t.addClass(r),u?u(t,{addClass:e}).start().done(o):a.addClass(t,e).then(function(){i||o(),n()}),function(){i=!0}}n()},beforeRemoveClass:function(t,e,n){if("active"===e&&t.parent()&&t.parent().parent()&&!t.parent().parent().data(s)){var i=!1,e="next"==t.data(l)?"left":"right",r=c.bind(this,t,e,n);return u?u(t,{addClass:e}).start().done(r):a.addClass(t,e).then(function(){i||r(),n()}),function(){i=!0}}n()}}}]),angular.module("ui.bootstrap.carousel").value("$carouselSuppressWarning",!1).controller("CarouselController",["$scope","$element","$controller","$log","$carouselSuppressWarning",function(t,e,n,i,r){r||i.warn("CarouselController is now deprecated. Use UibCarouselController instead."),angular.extend(this,n("UibCarouselController",{$scope:t,$element:e}))}]).directive("carousel",["$log","$carouselSuppressWarning",function(t,e){return{transclude:!0,replace:!0,controller:"CarouselController",controllerAs:"carousel",require:"carousel",templateUrl:function(t,e){return e.templateUrl||"template/carousel/carousel.html"},scope:{interval:"=",noTransition:"=",noPause:"=",noWrap:"&"},link:function(){e||t.warn("carousel is now deprecated. Use uib-carou
1sel instead.")}}}]).directive("slide",["$log","$carouselSuppressWarning",function(r,o){return{require:"^carousel",transclude:!0,replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/carousel/slide.html"},scope:{active:"=?",actual:"=?",index:"=?"},link:function(e,t,n,i){o||r.warn("slide is now deprecated. Use uib-slide instead."),i.addSlide(e,t),e.$on("$destroy",function(){i.removeSlide(e)}),e.$watch("active",function(t){t&&i.select(e)})}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","orderByFilter",function(f,g,m){var v,y,b=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;this.init=function(){v=g.id,this.parsers={},y={yyyy:{regex:"\\d{4}",apply:function(t){this.year=+t}},yy:{regex:"\\d{2}",apply:function(t){this.year=+t+2e3}},y:{regex:"\\d{1,4}",apply:function(t){this.year=+t}},MMMM:{regex:g.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=g.DATETIME_FORMATS.MONTH.indexOf(t)}},MMM:{regex:g.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=g.DATETIME_FORMATS.SHORTMONTH.indexOf(t)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(t){this.month=t-1}},M:{regex:"[1-9]|1[0-2]",apply:function(t){this.month=t-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t}},EEEE:{regex:g.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:g.DATETIME_FORMATS.SHORTDAY.join("|")},HH:{regex:"(?:0|1)[0-9]|2[0-3]",apply:function(t){this.hours=+t}},hh:{regex:"0[0-9]|1[0-2]",apply:function(t){this.hours=+t}},H:{regex:"1?[0-9]|2[0-3]",apply:function(t){this.hours=+t}},h:{regex:"[0-9]|1[0-2]",apply:function(t){this.hours=+t}},mm:{regex:"[0-5][0-9]",apply:function(t){this.minutes=+t}},m:{regex:"[0-9]|[1-5][0-9]",apply:function(t){this.minutes=+t}},sss:{regex:"[0-9][0-9][0-9]",apply:function(t){this.milliseconds=+t}},ss:{regex:"[0-5][0-9]",apply:function(t){this.seconds=+t}},s:{regex:"[0-9]|[1-5][0-9]",apply:function(t){this.seconds=+t}},a:{regex:g.DATETIME_FORMATS.AMPMS.join("|"),apply:function(t){12===this.hours&&(this.hours=0),"PM"===t&&(this.hours+=12)}}}},this.init(),this.parse=function(t,e,n){if(!angular.isString(t)||!e)return t;var o,a,s;e=(e=g.DATETIME_FORMATS[e]||e).replace(b,"\\$&"),g.id!==v&&this.init(),this.parsers[e]||(this.parsers[e]=(a=[],s=(o=e).split(""),angular.forEach(y,function(t,e){var n=o.indexOf(e);if(-1<n){o=o.split(""),s[n]="("+t.regex+")",o[n]="$";for(var i=n+1,r=n+e.length;i<r;i++)s[i]="",o[i]="$";o=o.join(""),a.push({index:n,apply:t.apply})}}),{regex:new RegExp("^"+s.join("")+"$"),map:m(a,"index")}));var i=this.parsers[e],e=i.regex,r=i.map,l=t.match(e);if(l&&l.length){for(var u,c=angular.isDate(n)&&!isNaN(n.getTime())?{year:n.getFullYear(),month:n.getMonth(),date:n.getDate(),hours:n.getHours(),minutes:n.getMinutes(),seconds:n.getSeconds(),milliseconds:n.getMilliseconds()}:(n&&f.warn("dateparser:","baseDate is not a valid date"),{year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),p=1,h=l.length;p<h;p++){var d=r[p-1];d.apply&&d.apply.call(c,l[p])}return function(t,e,n){if(n<1)return!1;if(1===e&&28<n)return 29===n&&(t%4==0&&t%100!=0||t%400==0);return 3!==e&&5!==e&&8!==e&&10!==e||n<31}(c.year,c.month,c.date)&&(angular.isDate(n)&&!isNaN(n.getTime())?(u=new Date(n)).setFullYear(c.year,c.month,c.date,c.hours,c.minutes,c.seconds,c.milliseconds||0):u=new Date(c.year,c.month,c.date,c.hours,c.minutes,c.seconds,c.milliseconds||0)),u}}}]),angular.module("ui.bootstrap.dateparser").value("$dateParserSuppressWarning",!1).service("dateParser",["$log","$dateParserSuppressWarning","uibDateParser",function(t,e,n){e||t.warn("dateParser is now deprecated. Use uibDateParser instead."),angular.extend(this,n)}]),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(r,n){function o(t){return"static"===(e="position",((t=t).currentStyle||(n.getComputedStyle?n.getComputedStyle(t):t.style))[e]||"static");var e}return{position:function(t){var e=this.offset(t),n={top:0,left:0},i=function(t){for(var e=r[0],n=t.offsetParent||e;n&&n!==e&&o(n);)n=n.offsetParent;return n||e}(t[0]);i!=r[0]&&((n=this.offset(angular.element(i))).top+=i.clientTop-i.scrollTop,n.left+=i.clientLeft-i.scrollLeft);i=t[0].getBoundingClientRect();return{width:i.width||t.prop("offsetWidth"),height:i.height||t.prop("offsetHeight"),top:e.top-n.top,left
1:e.left-n.left}},offset:function(t){var e=t[0].getBoundingClientRect();return{width:e.width||t.prop("offsetWidth"),height:e.height||t.prop("offsetHeight"),top:e.top+(n.pageYOffset||r[0].documentElement.scrollTop),left:e.left+(n.pageXOffset||r[0].documentElement.scrollLeft)}},positionElements:function(t,e,n,i){var r,n=n.split("-"),o=n[0],a=n[1]||"center",s=i?this.offset(t):this.position(t),l=e.prop("offsetWidth"),u=e.prop("offsetHeight"),c={center:function(){return s.left+s.width/2-l/2},left:function(){return s.left},right:function(){return s.left+s.width}},p={center:function(){return s.top+s.height/2-u/2},top:function(){return s.top},bottom:function(){return s.top+s.height}};switch(o){case"right":r={top:p[a](),left:c[o]()};break;case"left":r={top:p[a](),left:s.left-l};break;case"bottom":r={top:p[o](),left:c[a]()};break;default:r={top:s.top-u,left:c[a]()}}return r}}}]),angular.module("ui.bootstrap.position").value("$positionSuppressWarning",!1).service("$position",["$log","$positionSuppressWarning","$uibPosition",function(t,e,n){e||t.warn("$position is now deprecated. Use $uibPosition instead."),angular.extend(this,n)}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).value("$datepickerSuppressError",!1).constant("uibDatepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null,shortcutPropagation:!1}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError",function(n,i,t,r,e,o,a,s){var l=this,u={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],function(t,e){l[t]=angular.isDefined(i[t])?e<6?r(i[t])(n.$parent):n.$parent.$eval(i[t]):a[t]}),angular.forEach(["minDate","maxDate"],function(e){i[e]?n.$parent.$watch(t(i[e]),function(t){l[e]=t?new Date(t):null,l.refreshView()}):l[e]=a[e]?new Date(a[e]):null}),angular.forEach(["minMode","maxMode"],function(e){i[e]?n.$parent.$watch(t(i[e]),function(t){l[e]=angular.isDefined(t)?t:i[e],n[e]=l[e],("minMode"==e&&l.modes.indexOf(n.datepickerMode)<l.modes.indexOf(l[e])||"maxMode"==e&&l.modes.indexOf(n.datepickerMode)>l.modes.indexOf(l[e]))&&(n.datepickerMode=l[e])}
1):(l[e]=a[e]||null,n[e]=l[e])}),n.datepickerMode=n.datepickerMode||a.datepickerMode,n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(i.initDate)?(this.activeDate=n.$parent.$eval(i.initDate)||new Date,n.$parent.$watch(i.initDate,function(t){t&&(u.$isEmpty(u.$modelValue)||u.$invalid)&&(l.activeDate=t,l.refreshView())})):this.activeDate=new Date,n.isActive=function(t){return 0===l.compare(t.date,l.activeDate)&&(n.activeDateId=t.uid,!0)},this.init=function(t){(u=t).$render=function(){l.render()}},this.render=function(){var t;u.$viewValue&&(t=new Date(u.$viewValue),!isNaN(t)?this.activeDate=t:s||e.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')),this.refreshView()},this.refreshView=function(){var t;this.element&&(this._refreshView(),t=u.$viewValue?new Date(u.$viewValue):null,u.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t)))},this.createDateObject=function(t,e){var n=u.$viewValue?new Date(u.$viewValue):null;return{date:t,label:o(t,e),selected:n&&0===this.compare(t,n),disabled:this.isDisabled(t),current:0===this.compare(t,new Date),customClass:this.customClass(t)}},this.isDisabled=function(t){return this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&0<this.compare(t,this.maxDate)||i.dateDisabled&&n.dateDisabled({date:t,mode:n.datepickerMode})},this.customClass=function(t){return n.customClass({date:t,mode:n.datepickerMode})},this.split=function(t,e){for(var n=[];0<t.length;)n.push(t.splice(0,e));return n},n.select=function(t){var e;n.datepickerMode===l.minMode?((e=u.$viewValue?new Date(u.$viewValue):new Date(0,0,0,0,0,0,0)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),u.$setViewValue(e),u.$render()):(l.activeDate=t,n.datepickerMode=l.modes[l.modes.indexOf(n.datepickerMode)-1])},n.move=function(t){var e=l.activeDate.getFullYear()+t*(l.step.years||0),t=l.activeDate.getMonth()+t*(l.step.months||0);l.activeDate.setFullYear(e,t,1),l.refreshView()},n.toggleMode=function(t){t=t||1,n.datepickerMode===l.maxMode&&1===t||n.datepickerMode===l.minMode&&-1===t||(n.datepickerMode=l.modes[l.modes.indexOf(n.datepickerMode)+t])},n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};n.$on("uib:datepicker.focus",function(){l.element[0].focus()}),n.keydown=function(t){var e=n.keys[t.which];!e||t.shiftKey||t.altKey||(t.preventDefault(),l.shortcutPropagation||t.stopPropagation(),"enter"===e||"space"===e?l.isDisabled(l.activeDate)||n.select(l.activeDate):!t.ctrlKey||"up"!==e&&"down"!==e?(l.handleKeyDown(e,t),l.refreshView()):n.toggleMode("up"===e?1:-1))}}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(u,t,c){var n=[31,28,31,30,31,30,31,31,30,31,30,31];function r(t,e){return 1!==e||t%4!=0||t%100==0&&t%400!=0?n[e]:29}this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),u.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(t,e){for(var n,i=new Array(e),r=new Date(t),o=0;o<e;)n=new Date(r),i[o++]=n,r.setDate(r.getDate()+1);return i},this._refreshView=function(){var t=this.activeDate.getFullYear(),e=this.activeDate.getMonth(),n=new Date(this.activeDate);n.setFullYear(t,e,1);t=this.startingDay-n.getDay(),t=0<t?7-t:-t,n=new Date(n);0<t&&n.setDate(1-t);for(var i=this.getDates(n,42),r=0;r<42;r++)i[r]=angular.extend(this.createDateObject(i[r],this.formatDay),{secondary:i[r].getMonth()!==e,uid:u.uniqueId+"-"+r});u.labels=new Array(7);for(var o=0;o<7;o++)u.labels[o]={abbr:c(i[o].date,this.formatDayHeader),full:c(i[o].date,"EEEE")};if(u.title=c(this.activeDate,this.formatDayTitle),u.rows=this.split(i,7),u.showWeeks){u.weekNumbers=[];for(var a=(11-this.startingDay)%7,s=u.rows.length,l=0;l<s;l++)u.weekNumbers.push(function(t){var e=new Date(t);e.setDate(e.getDate()+4-(e.getDay()||7));t=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1}(u.rows[l][a].date))}},this.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())},this.handleKeyDown=function(t,e){var n,i=this.activeDate.getDate();"left"===t?i-=1:"up"===t?i-=7:"right"===t?i+=1:"down"===t?i+=7:"pageup"===t||"pagedown"===t?(n=this.activeDate.getMonth()+("pageup"===t?-1:1),this.activeDate.setMonth(n,1),i=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),i)):"home"===t?i=1:"end"===t&&(i=r(this.activeDate.getFullYear(),this.activeDate.getMonth())),this.activeDate.setDate(i)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(r,t,o){this.step={years:1},this.element=t,this.init=function(t){angular.extend(t,this),t.refreshView()},this._refreshView=function(){for(var t,e=new Array(12),n=this.activeDate.getFullYear(),i=0;i<12;
1i++)(t=new Date(this.activeDate)).setFullYear(n,i,1),e[i]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:r.uniqueId+"-"+i});r.title=o(this.activeDate,this.formatMonthTitle),r.rows=this.split(e,3)},this.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth())-new Date(e.getFullYear(),e.getMonth())},this.handleKeyDown=function(t,e){var n,i=this.activeDate.getMonth();"left"===t?i-=1:"up"===t?i-=3:"right"===t?i+=1:"down"===t?i+=3:"pageup"===t||"pagedown"===t?(n=this.activeDate.getFullYear()+("pageup"===t?-1:1),this.activeDate.setFullYear(n)):"home"===t?i=0:"end"===t&&(i=11),this.activeDate.setMonth(i)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(r,t,e){var o;function a(t){return parseInt((t-1)/o,10)*o+1}this.element=t,this.yearpickerInit=function(){o=this.yearRange,this.step={years:o}},this._refreshView=function(){for(var t,e=new Array(o),n=0,i=a(this.activeDate.getFullYear());n<o;n++)(t=new Date(this.activeDate)).setFullYear(i+n,0,1),e[n]=angular.extend(this.createDateObject(t,this.formatYear),{uid:r.uniqueId+"-"+n});r.title=[e[0].label,e[o-1].label].join(" - "),r.rows=this.split(e,5)},this.compare=function(t,e){return t.getFullYear()-e.getFullYear()},this.handleKeyDown=function(t,e){var n=this.activeDate.getFullYear();"left"===t?n-=1:"up"===t?n-=5:"right"===t?n+=1:"down"===t?n+=5:"pageup"===t||"pagedown"===t?n+=("pageup"===t?-1:1)*this.step.years:"home"===t?n=a(this.activeDate.getFullYear()):"end"===t&&(n=a(this.activeDate.getFullYear())+o-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(t,e,n,i){var r=i[0],i=i[1];r.init(i)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/datepicker/day.html"},require:["^?uibDatepicker","uibDaypicker","^?datepicker"],controller:"UibDaypickerController",link:function(t,e,n,i){var r=i[0]||i[2];i[1].init(r)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/datepicker/month.html"},require:["^?uibDatepicker","uibMonthpicker","^?datepicker"],controller:"UibMonthpickerController",link:function(t,e,n,i){var r=i[0]||i[2];i[1].init(r)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/datepicker/year.html"},require:["^?uibDatepicker","uibYearpicker","^?datepicker"],controller:"UibYearpickerController",link:function(t,e,n,i){var r=i[0]||i[2];angular.extend(r,i[1]),r.yearpickerInit(),r.refreshView()}}}).constant("uibDatepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"template/datepicker/popup.html",datepickerTemplateUrl:"template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0,onOpenFocus:!0}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$parse","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout",function(i,r,o,e,a,n,s,l,u,c,p,h){var d,f,g,m,v,y,b,$,w,x,C={},k=!1;function S(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function T(t){if(!(t=angular.isNumber(t)?new Date(t):t))return null;if(angular.isDate(t)&&!isNaN(t))return t;if(angular.isString(t)){t=c.parse(t,d,i.date);if(!isNaN(t))return t}}function E(t,e){e=t||e;if(!o.ngRequired&&!e)return!0;if(e=angular.isNumber(e)?new Date(e):e){if(angular.isDate(e)&&!isNaN(e))return!0;if(angular.isString(e)){e=c.parse(e,d);return!isNaN(e)}return!1}return!0}function D(t){var e=x[0],n=r[0].contains(t.target),t=void 0!==e.contains&&e.contains(t.target);!i.isOpen||n||t||i.$apply(function(){i.isOpen=!1})}function A(t){27===t.which&&i.isOpen?(t.preventDefault(),t.stopPropagation(),i.$apply(function(){i.isOpen=!1}),r[0].focus()):40!==t.which||i.isOpen||(t.preventDefault(),t.stopPropagation(),i.$apply(function(){i.isOpen=!0}))}i.watchData={},this.init=function(t){if(w=t,f=angular.isDefined(o.closeOnDateSelection)?i.$parent.$eval(o.closeOnDateSelection):p.closeOnDateSelection,g=angular.isDefined(o.datepickerAppendToBody)?i.$parent.$eval(o.datepickerAppendToBody):p.appendToBody,m=angular.isDefined(o.onOpenFocus)?i.$parent.$eval(o.onOpenFocus):p.onOpenFocus,v=(angular.isDefined(o.datepickerPopupTemplateUrl)?o:p).datepickerPopupTemplateUrl,y=(angular.isDefined(o.datepickerTemplateUrl)?o:p).datepickerTemplateUrl,i.showButtonBar=angular.isDefined(o.showButtonBar)?i.$parent.$eval(o.showButtonBar):p.showButtonBar,p.html5Types[o.type]?(d=p.html5Types[o.type],k=!0):(d=o.datepickerPopup||o.uibDatepickerPopup||p.datepickerPopup,o.$observe("uibDatepickerPopup",function(t,e){t=t||p.datepickerPopup;if(t!==d&&(d=t,w.$modelValue=null,!d))throw new Error("uibDatepickerPopup must have a date format specified.")})),!d)throw new Error("uibDatepickerPopup must have a date format specified.");if(k&&o.datepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");(b=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":v}),($=angular.element(b.children()[0])).attr("template-url",y),k&&"month"===o.type&&($.attr("datepicker-mode",'"month"'),$.attr("min-mode","month")),o.datepickerOptions&&((t=i.$parent.$eval(o.datepickerOptions))&&t.initDate&&(i.initDate=t.initDate,$.attr("init-date","initDate"),delete t.initDate),angular.forEach(t,function(t,e){$.attr(S(e),t)})),angular.forEach(["minMode","maxMode","minDate","maxDate","datepickerMode","initDate","shortcutPropagation"],function(e){var t,n;o[e]&&(t=a(o[e]),i.$parent.$watch(t,function(t){i.watchData[e]=t,"minDate"!==e&&"maxDate"!==e||(C[e]=new Date(t))}),$.attr(S(e),"watchData."+e),"datepickerMode"===e&&(n=t.assign,i.$watch("watchData."+e,function(t,e){angular.isFunction(n)&&t!==e&&n(i.$parent,t)})))}),o.dateDisabled&&$.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),o.showWeeks&&$.attr("show-weeks",o.showWeeks),o.customClass&&$.attr("custom-class","customClass({ date: date, mode: mode })"),k?w.$formatters.push(function(t){return i.date=t}):(w.$$parserName="date",w.$validators.date=E,w.$parsers.unshift(T),w.$formatters.push(function(t){return i.date=t,w.$isEmpty(t)?t:u(t,d)})),w.$viewChangeListeners.push(function(){i.date=c.parse(w.$viewValue,d,i.date)}),r.bind("keydown",A),x=e(b)(i),b.remove(),g?n.find("body").append(x):r.after(x),i.$on("$destroy",function(){!0===i.isOpen&&(s.$$phase||i.$apply(function(){i.isOpen=!1}
1)),x.remove(),r.unbind("keydown",A),n.unbind("click",D)})},i.getText=function(t){return i[t+"Text"]||p[t+"Text"]},i.isDisabled=function(t){return"today"===t&&(t=new Date),i.watchData.minDate&&i.compare(t,C.minDate)<0||i.watchData.maxDate&&0<i.compare(t,C.maxDate)},i.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())},i.dateSelection=function(t){angular.isDefined(t)&&(i.date=t);t=i.date?u(i.date,d):null;r.val(t),w.$setViewValue(t),f&&(i.isOpen=!1,r[0].focus())},i.keydown=function(t){27===t.which&&(i.isOpen=!1,r[0].focus())},i.select=function(t){var e;"today"===t&&(e=new Date,angular.isDate(i.date)?(t=new Date(i.date)).setFullYear(e.getFullYear(),e.getMonth(),e.getDate()):t=new Date(e.setHours(0,0,0,0))),i.dateSelection(t)},i.close=function(){i.isOpen=!1,r[0].focus()},i.$watch("isOpen",function(t){t?(i.position=g?l.offset(r):l.position(r),i.position.top=i.position.top+r.prop("offsetHeight"),h(function(){m&&i.$broadcast("uib:datepicker.focus"),n.bind("click",D)},0,!1)):n.unbind("click",D)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(t,e,n,i){var r=i[0];i[1].init(r)}}}).directive("uibDatepickerPopupWrap",function(){return{replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/datepicker/popup.html"}}}),angular.module("ui.bootstrap.datepicker").value("$datepickerSuppressWarning",!1).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError","$datepickerSuppressWarning",function(n,i,t,r,e,o,a,s,l){l||e.warn("DatepickerController is now deprecated. Use UibDatepickerController instead.");var u=this,c={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRange","shortcutPropagation"],function(t,e){u[t]=angular.isDefined(i[t])?e<6?r(i[t])(n.$parent):n.$parent.$eval(i[t]):a[t]}),angular.forEach(["minDate","maxDate"],function(e){i[e]?n.$parent.$watch(t(i[e]),function(t){u[e]=t?new Date(t):null,u.refreshView()}):u[e]=a[e]?new Date(a[e]):null}),angular.forEach(["minMode","maxMode"],function(e){i[e]?n.$parent.$watch(t(i[e]),function(t){u[e]=angular.isDefined(t)?t:i[e],n[e]=u[e],("minMode"==e&&u.modes.indexOf(n.datepickerMode)<u.modes.indexOf(u[e])||"maxMode"==e&&u.modes.indexOf(n.datepickerMode)>u.modes.indexOf(u[e]))&&(n.datepickerMode=u[e])}
1):(u[e]=a[e]||null,n[e]=u[e])}),n.datepickerMode=n.datepickerMode||a.datepickerMode,n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(1e4*Math.random()),angular.isDefined(i.initDate)?(this.activeDate=n.$parent.$eval(i.initDate)||new Date,n.$parent.$watch(i.initDate,function(t){t&&(c.$isEmpty(c.$modelValue)||c.$invalid)&&(u.activeDate=t,u.refreshView())})):this.activeDate=new Date,n.isActive=function(t){return 0===u.compare(t.date,u.activeDate)&&(n.activeDateId=t.uid,!0)},this.init=function(t){(c=t).$render=function(){u.render()}},this.render=function(){var t;c.$viewValue&&(t=new Date(c.$viewValue),!isNaN(t)?this.activeDate=t:s||e.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')),this.refreshView()},this.refreshView=function(){var t;this.element&&(this._refreshView(),t=c.$viewValue?new Date(c.$viewValue):null,c.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t)))},this.createDateObject=function(t,e){var n=c.$viewValue?new Date(c.$viewValue):null;return{date:t,label:o(t,e),selected:n&&0===this.compare(t,n),disabled:this.isDisabled(t),current:0===this.compare(t,new Date),customClass:this.customClass(t)}},this.isDisabled=function(t){return this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&0<this.compare(t,this.maxDate)||i.dateDisabled&&n.dateDisabled({date:t,mode:n.datepickerMode})},this.customClass=function(t){return n.customClass({date:t,mode:n.datepickerMode})},this.split=function(t,e){for(var n=[];0<t.length;)n.push(t.splice(0,e));return n},this.fixTimeZone=function(t){var e=t.getHours();t.setHours(23===e?e+2:0)},n.select=function(t){var e;n.datepickerMode===u.minMode?((e=c.$viewValue?new Date(c.$viewValue):new Date(0,0,0,0,0,0,0)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),c.$setViewValue(e),c.$render()):(u.activeDate=t,n.datepickerMode=u.modes[u.modes.indexOf(n.datepickerMode)-1])},n.move=function(t){var e=u.activeDate.getFullYear()+t*(u.step.years||0),t=u.activeDate.getMonth()+t*(u.step.months||0);u.activeDate.setFullYear(e,t,1),u.refreshView()},n.toggleMode=function(t){t=t||1,n.datepickerMode===u.maxMode&&1===t||n.datepickerMode===u.minMode&&-1===t||(n.datepickerMode=u.modes[u.modes.indexOf(n.datepickerMode)+t])},n.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};n.$on("uib:datepicker.focus",function(){u.element[0].focus()}),n.keydown=function(t){var e=n.keys[t.which];!e||t.shiftKey||t.altKey||(t.preventDefault(),u.shortcutPropagation||t.stopPropagation(),"enter"===e||"space"===e?u.isDisabled(u.activeDate)||n.select(u.activeDate):!t.ctrlKey||"up"!==e&&"down"!==e?(u.handleKeyDown(e,t),u.refreshView()):n.toggleMode("up"===e?1:-1))}}]).directive("datepicker",["$log","$datepickerSuppressWarning",function(o,a){return{replace:!0,templateUrl:function(t,e){return e.templateUrl||"template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["datepicker","^ngModel"],controller:"DatepickerController",controllerAs:"datepicker",link:function(t,e,n,i){a||o.warn("datepicker is now deprecated. Use uib-datepicker instead.");var r=i[0],i=i[1];r.init(i)}}}]).directive("daypicker",["$log","$datepickerSuppressWarning",function(o,a){return{replace:!0,templateUrl:"template/datepicker/day.html",require:["^datepicker","daypicker"],controller:"UibDaypickerController",link:function(t,e,n,i){a||o.warn("daypicker is now deprecated. Use uib-daypicker instead.");var r=i[0];i[1].init(r)}}}]).directive("monthpicker",["$log","$datepickerSuppressWarning",function(o,a){return{replace:!0,templateUrl:"template/datepicker/month.html",require:["^datepicker","monthpicker"],controller:"UibMonthpickerController",link:function(t,e,n,i){a||o.warn("monthpicker is now deprecated. Use uib-monthpicker instead.");var r=i[0];i[1].init(r)}}}]).directive("yearpicker",["$log","$datepickerSuppressWarning",function(o,a){return{replace:!0,templateUrl:"template/datepicker/year.html",require:["^datepicker","yearpicker"],controller:"UibYearpickerController",link:function(t,e,n,i){a||o.warn("yearpicker is now deprecated. Use uib-yearpicker instead.");var r=i[0];angular.extend(r,i[1]),r.yearpickerInit(),r.refreshView()}}}]).directive("datepickerPopup",["$log","$datepickerSuppressWarning",function(o,a){return{require:["ngModel","datepickerPopup"],controller:"UibDatepickerPopupController",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(t,e,n,i){a||o.warn("datepicker-popup is now deprecated. Use uib-datepicker-popup instead.");var r=i[0];i[1].init(r)}}}]).directive("datepickerPopupWrap",["$log","$datepickerSuppressWarning",function(t,e){return{replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/datepicker/popup.html"},link:function(){e||t.warn("datepicker-popup-wrap is now deprecated. Use uib-datepicker-popup-wrap instead.")}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(e,n){var i=null;this.open=function(t){i||(e.bind("click",r),e.bind("keydown",o)),i&&i!==t&&(i.isOpen=!1),i=t},this.close=function(t){i===t&&(i=null,e.unbind("click",r),e.unbind("
1keydown",o))};var r=function(t){var e;i&&(t&&"disabled"===i.getAutoClose()||(e=i.getToggleElement(),t&&e&&e[0].contains(t.target)||(e=i.getDropdownElement(),t&&"outsideClick"===i.getAutoClose()&&e&&e[0].contains(t.target)||(i.isOpen=!1,n.$$phase||i.$apply()))))},o=function(t){27===t.which?(i.focusToggleElement(),r()):i.isKeynavEnabled()&&/(38|40)/.test(t.which)&&i.isOpen&&(t.preventDefault(),t.stopPropagation(),i.focusDropdownEntry(t.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(r,o,t,e,n,a,s,l,i,u,c){var p,h,d=this,f=r.$new(),g=n.openClass,m=angular.noop,v=t.onToggle?e(t.onToggle):angular.noop,y=!1,b=!1;o.addClass("dropdown"),this.init=function(){t.isOpen&&(h=e(t.isOpen),m=h.assign,r.$watch(h,function(t){f.isOpen=!!t})),y=angular.isDefined(t.dropdownAppendToBody),b=angular.isDefined(t.uibKeyboardNav),y&&d.dropdownMenu&&(i.find("body").append(d.dropdownMenu),o.on("$destroy",function(){d.dropdownMenu.remove()}))},this.toggle=function(t){return f.isOpen=arguments.length?!!t:!f.isOpen},this.isOpen=function(){return f.isOpen},f.getToggleElement=function(){return d.toggleElement},f.getAutoClose=function(){return t.autoClose||"always"},f.getElement=function(){return o},f.isKeynavEnabled=function(){return b},f.focusDropdownEntry=function(t){var e=(d.dropdownMenu?angular.element(d.dropdownMenu):angular.element(o).find("ul").eq(0)).find("a");switch(t){case 40:angular.isNumber(d.selectedOption)?d.selectedOption=d.selectedOption===e.length-1?d.selectedOption:d.selectedOption+1:d.selectedOption=0;break;case 38:angular.isNumber(d.selectedOption)?d.selectedOption=0===d.selectedOption?0:d.selectedOption-1:d.selectedOption=e.length-1}e[d.selectedOption].focus()},f.getDropdownElement=function(){return d.dropdownMenu},f.focusToggleElement=function(){d.toggleElement&&d.toggleElement[0].focus()},f.$watch("isOpen",function(t,e){var n,i;y&&d.dropdownMenu&&(i={top:(n=l.positionElements(o,d.dropdownMenu,"bottom-left",!0)).top+"px",display:t?"block":"none"},d.dropdownMenu.hasClass("dropdown-menu-right")?(i.left="auto",i.right=window.innerWidth-(n.left+o.prop("offsetWidth"))+"px"):(i.left=n.left+"px",i.right="auto"),d.dropdownMenu.css(i)),s[t?"addClass":"removeClass"](o,g).then(function(){angular.isDefined(t)&&t!==e&&v(r,{open:!!t})}),t?(d.dropdownMenuTemplateUrl&&c(d.dropdownMenuTemplateUrl).then(function(t){p=f.$new(),u(t.trim())(p,function(t){d.dropdownMenu.replaceWith(t),d.dropdownMenu=t})}),f.focusToggleElement(),a.open(f)):(d.dropdownMenuTemplateUrl&&(p&&p.$destroy(),i=angular.element('<ul class="dropdown-menu"></ul>'),d.dropdownMenu.replaceWith(i),d.dropdownMenu=i),a.close(f),d.selectedOption=null),angular.isFunction(m)&&m(r,t)}),r.$on("$locationChangeSuccess",function(){"disabled"!==f.getAutoClose()&&(f.isOpen=!1)});n=r.$on("$destroy",function(){f.$destroy()});f.$on("$destroy",n)}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(t,e,n,i){i.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"AC",require:"?^uibDropdown",link:function(t,e,n,i){i&&!angular.isDefined(n.dropdownNested)&&(e.addClass("dropdown-menu"),(n=n.templateUrl)&&(i.dropdownMenuTemplateUrl=n),i.dropdownMenu||(i.dropdownMenu=e))}}}).directive("uibKeyboardNav",function(){return{restrict:"A",require:"?^uibDropdown",link:function(t,e,n,i){e.bind("keydown",function(t){if(-1!==[38,40].indexOf(t.which)){t.preventDefault(),t.stopPropagation();var e=i.dropdownMenu.find("a");switch(t.which){case 40:angular.isNumber(i.selectedOption)?i.selectedOption=i.selectedOption===e.length-1?i.selectedOption:i.selectedOption+1:i.selectedOption=0;break;case 38:angular.isNumber(i.selectedOption)?i.selectedOption=0===i.selectedOption?0:i.selectedOption-1:i.selectedOption=e.length-1}e[i.selectedOption].focus()}})}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,n,i,r){var t;r&&(n.addClass("dropdown-toggle"),r.toggleElement=n,t=function(t){t.preventDefault(),n.hasClass("disabled")||i.disabled||e.$apply(function(){r.toggle(
1)})},n.bind("click",t),n.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,function(t){n.attr("aria-expanded",!!t)}),e.$on("$destroy",function(){n.unbind("click",t)}))}}}),angular.module("ui.bootstrap.dropdown").value("$dropdownSuppressWarning",!1).service("dropdownService",["$log","$dropdownSuppressWarning","uibDropdownService",function(t,e,n){e||t.warn("dropdownService is now deprecated. Use uibDropdownService instead."),angular.extend(this,n)}]).controller("DropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest","$log","$dropdownSuppressWarning",function(r,o,t,e,n,a,s,l,i,u,c,p,h){h||p.warn("DropdownController is now deprecated. Use UibDropdownController instead.");var d,f,g=this,m=r.$new(),v=n.openClass,y=angular.noop,b=t.onToggle?e(t.onToggle):angular.noop,$=!1,w=!1;o.addClass("dropdown"),this.init=function(){t.isOpen&&(f=e(t.isOpen),y=f.assign,r.$watch(f,function(t){m.isOpen=!!t})),$=angular.isDefined(t.dropdownAppendToBody),w=angular.isDefined(t.uibKeyboardNav),$&&g.dropdownMenu&&(i.find("body").append(g.dropdownMenu),o.on("$destroy",function(){g.dropdownMenu.remove()}))},this.toggle=function(t){return m.isOpen=arguments.length?!!t:!m.isOpen},this.isOpen=function(){return m.isOpen},m.getToggleElement=function(){return g.toggleElement},m.getAutoClose=function(){return t.autoClose||"always"},m.getElement=function(){return o},m.isKeynavEnabled=function(){return w},m.focusDropdownEntry=function(t){var e=(g.dropdownMenu?angular.element(g.dropdownMenu):angular.element(o).find("ul").eq(0)).find("a");switch(t){case 40:angular.isNumber(g.selectedOption)?g.selectedOption=g.selectedOption===e.length-1?g.selectedOption:g.selectedOption+1:g.selectedOption=0;break;case 38:angular.isNumber(g.selectedOption)?g.selectedOption=0===g.selectedOption?0:g.selectedOption-1:g.selectedOption=e.length-1}e[g.selectedOption].focus()},m.getDropdownElement=function(){return g.dropdownMenu},m.focusToggleElement=function(){g.toggleElement&&g.toggleElement[0].focus()},m.$watch("isOpen",function(t,e){var n,i;$&&g.dropdownMenu&&(i={top:(n=l.positionElements(o,g.dropdownMenu,"bottom-left",!0)).top+"px",display:t?"block":"none"},g.dropdownMenu.hasClass("dropdown-menu-right")?(i.left="auto",i.right=window.innerWidth-(n.left+o.prop("offsetWidth"))+"px"):(i.left=n.left+"px",i.right="auto"),g.dropdownMenu.css(i)),s[t?"addClass":"removeClass"](o,v).then(function(){angular.isDefined(t)&&t!==e&&b(r,{open:!!t})}),t?(g.dropdownMenuTemplateUrl&&c(g.dropdownMenuTemplateUrl).then(function(t){d=m.$new(),u(t.trim())(d,function(t){g.dropdownMenu.replaceWith(t),g.dropdownMenu=t})}),m.focusToggleElement(),a.open(m)):(g.dropdownMenuTemplateUrl&&(d&&d.$destroy(),i=angular.element('<ul class="dropdown-menu"></ul>'),g.dropdownMenu.replaceWith(i),g.dropdownMenu=i),a.close(m),g.selectedOption=null),angular.isFunction(y)&&y(r,t)}),r.$on("$locationChangeSuccess",function(){"disabled"!==m.getAutoClose()&&(m.isOpen=!1)});n=r.$on("$destroy",function(){m.$destroy()});m.$on("$destroy",n)}]).directive("dropdown",["$log","$dropdownSuppressWarning",function(r,o){return{controller:"DropdownController",link:function(t,e,n,i){o||r.warn("dropdown is now deprecated. Use uib-dropdown instead."),i.init()}}}]).directive("dropdownMenu",["$log","$dropdownSuppressWarning",function(r,o){return{restrict:"AC",require:"?^dropdown",link:function(t,e,n,i){i&&!angular.isDefined(n.dropdownNested)&&(o||r.warn("dropdown-menu is now deprecated. Use uib-dropdown-menu instead."),e.addClass("dropdown-menu"),(n=n.templateUrl)&&(i.dropdownMenuTemplateUrl=n),i.dropdownMenu||(i.dropdownMenu=e))}}}]).directive("keyboardNav",["$log","$dropdownSuppressWarning",function(r,o){return{restrict:"A",require:"?^dropdown",link:function(t,e,n,i){o||r.warn("keyboard-nav is now deprecated. Use uib-keyboard-nav instead."),e.bind("keydown",function(t){if(-1!==[38,40].indexOf(t.which)){t.preventDefault(),t.stopPropagation();var e=i.dropdownMenu.find("a");switch(t.which){case 40:angular.isNumber(i.selectedOption)?i.selectedOption=i.selectedOption===e.length-1?i.selectedOption:i.selectedOption+1:i.selectedOption=0;break;case 38:angular.isNumber(i.selectedOption)?i.selectedOption=0===i.selectedOption?0:i.selectedOption-1:i.selectedOption=e.length-1}e[i.selectedOption].focus()}})}}}]).directive("dropdownToggle",["$log","$dropdownSuppressWarning",function(o,a){return{require:"?^dropdown",link:function(e,n,i,r){var t;a||o.warn("dropdown-toggle is now deprecated. Use uib-dropdown-toggle instead."),r&&(n.addClass("dropdown-toggle"),r.toggleElement=n,t=function(t){t.preventDefault(),n.hasClass("disabled")||i.disabled||e.$apply(function(){r.toggle(
1)})},n.bind("click",t),n.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,function(t){n.attr("aria-expanded",!!t)}),e.$on("$destroy",function(){n.unbind("click",t)}))}}}]),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var i=[];return{add:function(t,e){i.push({key:t,value:e})},get:function(t){for(var e=0;e<i.length;e++)if(t==i[e].key)return i[e]},keys:function(){for(var t=[],e=0;e<i.length;e++)t.push(i[e].key);return t},top:function(){return i[i.length-1]},remove:function(t){for(var e=-1,n=0;n<i.length;n++)if(t==i[n].key){e=n;break}return i.splice(e,1)[0]},removeTop:function(){return i.splice(i.length-1,1)[0]},length:function(){return i.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap"]).factory("$$multiMap",function(){return{createNew:function(){var i={};return{entries:function(){return Object.keys(i).map(function(t){return{key:t,value:i[t]}})},get:function(t){return i[t]},hasKey:function(t){return!!i[t]},keys:function(){return Object.keys(i)},put:function(t,e){i[t]||(i[t]=[]),i[t].push(e)},remove:function(t,e){var n=i[t];n&&(-1!==(e=n.indexOf(e))&&n.splice(e,1),n.length||delete i[t])}}}}}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(r,t,e){var o=null;return t.has("$animateCss")&&(o=t.get("$animateCss")),{replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(t,e){return t.addClass(e.backdropClass),n}};function n(t,n,i){n.addClass("modal-backdrop"),i.modalInClass&&(o?o(n,{addClass:i.modalInClass}).start():r.addClass(n,i.modalInClass),t.$on(e.NOW_CLOSING_EVENT,function(t,e){e=e();(o?o(n,{removeClass:i.modalInClass}).start():r.removeClass(n,i.modalInClass)).then(e)}))}}]).directive("uibModalWindow",["$uibModalStack","$q","$animate","$injector",function(o,a,s,t){var l=null;return t.has("$animateCss")&&(l=t.get("$animateCss")),{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/modal/window.html"},link:function(e,n,i){n.addClass(i.windowClass||""),n.addClass(i.windowTopClass||""),e.size=i.size,e.close=function(t){var e=o.getTop();e&&e.value.backdrop&&"static"!==e.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),o.dismiss(e.key,"backdrop click"))},n.on("click",e.close),e.$isRendered=!0;var r=a.defer();i.$observe("modalRender",function(t){"true"==t&&r.resolve()}),r.promise.then(function(){var t=null;i.modalInClass&&(t=l?l(n,{addClass:i.modalInClass}).start():s.addClass(n,i.modalInClass),e.$on(o.NOW_CLOSING_EVENT,function(t,e){e=e();(l?l(n,{removeClass:i.modalInClass}).start():s.removeClass(n,i.modalInClass)).then(e)})),a.when(t).then(function(){var t=n[0].querySelector("[autofocus]");(t||n[0]).focus()});t=o.getTop();t&&o.modalRendered(t.key)})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(t,e){e.modalAnimation&&t.addClass(e.uibModalAnimationClass)}}}).directive("uibModalTransclude",function(){return{link:function(t,e,n,i,r){r(t.$parent,function(t){e.empty(),e.append(t)})}}}).factory("$uibModalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap",function(a,t,s,l,u,c,e,n,i){var p=null;e.has("$animateCss")&&(p=e.get("$animateCss"));var h,d,r,f="modal-open",g=i.createNew(),m=n.createNew(),v={NOW_CLOSING_EVENT:"modal.stack.now-closing"};function y(){for(var t=-1,e=g.keys(),n=0;n<e.length;n++)g.get(e[n]).value.backdrop&&(t=n);return t}function o(e,t){var n=s.find("body").eq(0),i=g.get(e).value;g.remove(e),$(i.modalDomEl,i.modalScope,function(){var t=i.openedClass||f;m.remove(t,e),n.toggleClass(t,m.hasKey(t)),b(!0)}),h&&-1==y()&&($(h,d,function(){0}),d=h=void 0),(t&&t.focus?t:n).focus()}function b(t){var e;0<g.length()&&(e=g.top().value).modalDomEl.toggleClass(e.windowTopClass||"",t)}function $(t,e,n){var i,r=null;return e.$broadcast(v.NOW_CLOSING_EVENT,function(){return i||(i=c.defer(),r=i.promise),function(){i.resolve()}}),c.when(r).then(o);function o(){o.done||(o.done=!0,p?p(t,{event:"leave"}).start().then(function(){t.remove()}):a.leave(t),e.$destroy(),n&&n())}}function w(t,e,n){return!t.value.modalScope.$broadcast("modal.closing",e,n).defaultPrevented}return u.$watch(y,function(t){d&&(d.index=t)}),s.bind("keydown",function(t){if(t.isDefaultPrevented())return t;var e=g.top();if(e&&e.value.keyboard)switch(t.which){case 27:t.preventDefault(),u.$apply(function(){v.dismiss(e.key,"escape key press")});break;case 9:v.loadFocusElementList(e);var n=!1;t.shiftKey?v.isFocusInFirstItem(t)&&(n=v.focusLastFocusableElement()):v.isFocusInLastItem(t)&&(n=v.focusFirstFocusableElement()),n&&(t.preventDefault(),t.stopPropagation())}}),v.open=function(t,e){var n=s[0].activeElement,i=e.openedClass||f;b(!1),g.add(t,{deferred:e.deferred,renderDeferred:e.renderDeferred,modalScope:e.scope,backdrop:e.backdrop,keyboard:e.keyboard,openedClass:e.openedClass,windowTopClass:e.windowTopClass}),m.put(i,t);var r=s.find("body").eq(0),t=y();0<=t&&!h&&((d=u.$new(!0)).index=t,(o=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>')).attr("backdrop-class",e.backdropClass),e.animation&&o.attr("modal-animation","true"),h=l(o)(d),r.append(h));var o=angular.element('<div uib-modal-window="modal-window"></div>');o.attr({"template-url":e.windowTemplateUrl,"window-class":e.windowClass,"window-top-class":e.windowTopClass,size:e.size,index:g.length()-1,animate:"animate"}).html(e.content),e.animation&&o.attr("modal-animation","true");e=l(o)(e.scope);g.top().value.modalDomEl=e,g.top().value.modalOpener=n,r.append(e),r.addClass(i),v.clearFocusListCache()},v.close=function(t,e){var n=g.get(t);return n&&w(n,e,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(e),o(t,n.value.modalOpener),!0):!n},v.dismiss=function(t,e){var n=g.get(t);return n&&w(n,e,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(e),o(t,n.value.modalOpener),!0):!n},v.dismissAll=function(t){for(var e=this.getTop();e&&this.dismiss(e.key,t);)e=this.getTop()},v.getTop=function(){return g.top()},v.modalRendered=function(t){t=g.get(t);t&&t.value.renderDeferred.resolve()},v.focusFirstFocusableElement=function(){return 0<r.length&&(r[0].focus(),!0)},v.focusLastFocusableElement=function(){return 0<r.length&&(r[r.length-1].focus(),!0)},v.isFocusInFirstItem=function(t){return 0<r.length&&(t.target||t.srcElement)==r[0]},v.isFocusInLastItem=function(t){return 0<r.length&&(t.target||t.srcElement)==r[r.length-1]},v.clearFocusListCache=function(){r=[]},v.loadFocusElementList=function(t){void 0!==r&&r.length||!t||(t=t.value.modalDomEl)&&t.length&&(r=t[0].querySelectorAll("a[href], area[href], input
1:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]"))},v}]).provider("$uibModal",function(){var b={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$uibModalStack","$modalSuppressWarning","$log",function(c,p,h,d,f,g,m,v){var t={};var y=null;return t.getPromiseChain=function(){return y},t.open=function(o){var a=h.defer(),s=h.defer(),l=h.defer(),u={result:a.promise,opened:s.promise,rendered:l.promise,close:function(t){return g.close(u,t)},dismiss:function(t){return g.dismiss(u,t)}};if((o=angular.extend({},b.options,o)).resolve=o.resolve||{},!o.template&&!o.templateUrl)throw new Error("One of template or templateUrl options is required.");var e,t,n,i=h.all([(t=o).template?h.when(t.template):d(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl)].concat((t=o.resolve,e=[],angular.forEach(t,function(t){angular.isFunction(t)||angular.isArray(t)?e.push(h.when(c.invoke(t))):angular.isString(t)?e.push(h.when(c.get(t))):e.push(h.when(t))}),e)));function r(){return i}return n=y=h.all([y]).then(r,r).then(function(n){var t=(o.scope||p).$new();t.$close=u.close,t.$dismiss=u.dismiss,t.$on("$destroy",function(){t.$$uibDestructionScheduled||t.$dismiss("$uibUnscheduledDestruction")});var e,i={},r=1;o.controller&&(i.$scope=t,i.$uibModalInstance=u,Object.defineProperty(i,"$modalInstance",{get:function(){return m||v.warn("$modalInstance is now deprecated. Use $uibModalInstance instead."),u}}),angular.forEach(o.resolve,function(t,e){i[e]=n[r++]}),e=f(o.controller,i),o.controllerAs&&(o.bindToController&&angular.extend(e,t),t[o.controllerAs]=e)),g.open(u,{scope:t,deferred:a,renderDeferred:l,content:n[0],animation:o.animation,backdrop:o.backdrop,keyboard:o.keyboard,backdropClass:o.backdropClass,windowTopClass:o.windowTopClass,windowClass:o.windowClass,windowTemplateUrl:o.windowTemplateUrl,size:o.size,openedClass:o.openedClass}),s.resolve(!0)},function(t){s.reject(t),a.reject(t)}).finally(function(){y===n&&(y=null)}),u},t}]};return b}),angular.module("ui.bootstrap.modal").value("$modalSuppressWarning",!1).directive("modalBackdrop",["$animate","$injector","$modalStack","$log","$modalSuppressWarning",function(r,t,e,o,a){var s=null;return t.has("$animateCss")&&(s=t.get("$animateCss")),{replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(t,e){return t.addClass(e.backdropClass),n}};function n(t,n,i){a||o.warn("modal-backdrop is now deprecated. Use uib-modal-backdrop instead."),n.addClass("modal-backdrop"),i.modalInClass&&(s?s(n,{addClass:i.modalInClass}).start():r.addClass(n,i.modalInClass),t.$on(e.NOW_CLOSING_EVENT,function(t,e){e=e();(s?s(n,{removeClass:i.modalInClass}).start():r.removeClass(n,i.modalInClass)).then(e)}))}}]).directive("modalWindow",["$modalStack","$q","$animate","$injector","$log","$modalSuppressWarning",function(o,a,s,t,l,u){var c=null;return t.has("$animateCss")&&(c=t.get("$animateCss")),{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/modal/window.html"},link:function(e,n,i){u||l.warn("modal-window is now deprecated. Use uib-modal-window instead."),n.addClass(i.windowClass||""),n.addClass(i.windowTopClass||""),e.size=i.size,e.close=function(t){var e=o.getTop();e&&e.value.backdrop&&"static"!==e.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),o.dismiss(e.key,"backdrop click"))},n.on("click",e.close),e.$isRendered=!0;var r=a.defer();i.$observe("modalRender",function(t){"true"==t&&r.resolve()}),r.promise.then(function(){var t=null;i.modalInClass&&(t=c?c(n,{addClass:i.modalInClass}).start():s.addClass(n,i.modalInClass),e.$on(o.NOW_CLOSING_EVENT,function(t,e){e=e();(c?c(n,{removeClass:i.modalInClass}).start():s.removeClass(n,i.modalInClass)).then(e)})),a.when(t).then(function(){var t=n[0].querySelector("[autofocus]");(t||n[0]).focus()});t=o.getTop();t&&o.modalRendered(t.key)})}}}]).directive("modalAnimationClass",["$log","$modalSuppressWarning",function(n,i){return{compile:function(t,e){i||n.warn("modal-animation-class is now deprecated. Use uib-modal-animation-class instead."),e.modalAnimation&&t.addClass(e.modalAnimationClass)}}}]).directive("modalTransclude",["$log","$modalSuppressWarning",function(o,a){return{link:function(t,e,n,i,r){a||o.warn("modal-transclude is now deprecated. Use uib-modal-transclude instead."),r(t.$parent,function(t){e.empty(),e.append(t)})}}}]).service("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$injector","$$multiMap","$$stackedMap","$uibModalStack","$log","$modalSuppressWarning",function(t,e,n,i,r,o,a,s,l,u,c,p){p||
1c.warn("$modalStack is now deprecated. Use $uibModalStack instead."),angular.extend(this,u)}]).provider("$modal",["$uibModalProvider",function(i){angular.extend(this,i),this.$get=["$injector","$log","$modalSuppressWarning",function(t,e,n){return n||e.warn("$modal is now deprecated. Use $uibModal instead."),t.invoke(i.$get)}]}]),angular.module("ui.bootstrap.pagination",[]).controller("UibPaginationController",["$scope","$attrs","$parse",function(n,i,r){var o=this,a={$setViewValue:angular.noop},s=i.numPages?r(i.numPages).assign:angular.noop;this.init=function(t,e){a=t,this.config=e,a.$render=function(){o.render()},i.itemsPerPage?n.$parent.$watch(r(i.itemsPerPage),function(t){o.itemsPerPage=parseInt(t,10),n.totalPages=o.calculateTotalPages()}):this.itemsPerPage=e.itemsPerPage,n.$watch("totalItems",function(){n.totalPages=o.calculateTotalPages()}),n.$watch("totalPages",function(t){s(n.$parent,t),n.page>t?n.selectPage(t):a.$render()})},this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(n.totalItems/this.itemsPerPage);return Math.max(t||0,1)},this.render=function(){n.page=parseInt(a.$viewValue,10)||1},n.selectPage=function(t,e){e&&e.preventDefault(),(!n.ngDisabled||!e)&&n.page!==t&&0<t&&t<=n.totalPages&&(e&&e.target&&e.target.blur(),a.$setViewValue(t),a.$render())},n.getText=function(t){return n[t+"Text"]||o.config[t+"Text"]},n.noPrevious=function(){return 1===n.page},n.noNext=function(){return n.page===n.totalPages}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("uibPagination",["$parse","uibPaginationConfig",function(a,s){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(t,e){return e.templateUrl||"template/pagination/pagination.html"},replace:!0,link:function(t,e,n,i){var l,u,r,o=i[0],i=i[1];function c(t,e,n){return{number:t,text:e,active:n}}i&&(l=angular.isDefined(n.maxSize)?t.$parent.$eval(n.maxSize):s.maxSize,u=angular.isDefined(n.rotate)?t.$parent.$eval(n.rotate):s.rotate,t.boundaryLinks=angular.isDefined(n.boundaryLinks)?t.$parent.$eval(n.boundaryLinks):s.boundaryLinks,t.directionLinks=angular.isDefined(n.directionLinks)?t.$parent.$eval(n.directionLinks):s.directionLinks,o.init(i,s),n.maxSize&&t.$parent.$watch(a(n.maxSize),function(t){l=parseInt(t,10),o.render()}),r=o.render,o.render=function(){r(),0<t.page&&t.page<=t.totalPages&&(t.pages=function(t,e){var n=[],i=1,r=e,o=angular.isDefined(l)&&l<e;o&&(u?e<(r=(i=Math.max(t-Math.floor(l/2),1))+l-1)&&(i=(r=e)-l+1):(i=(Math.ceil(t/l)-1)*l+1,r=Math.min(i+l-1,e)));for(var a=i;a<=r;a++){var s=c(a,a,a===t);n.push(s)}return o&&!u&&(1<i&&(i=c(i-1,"...",!1),n.unshift(i)),r<e&&(e=c(r+1,"...",!1),n.push(e))),n}(t.page,t.totalPages))})}}}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(o){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(t,e){return e.templateUrl||"template/pagination/pager.html"},replace:!0,link:function(t,e,n,i){var r=i[0],i=i[1];i&&(t.align=angular.isDefined(n.align)?t.$parent.$eval(n.align):o.align,r.init(i,o))}}}]),angular.module("ui.bootstrap.pagination").value("$paginationSuppressWarning",!1).controller("PaginationController",["$scope","$attrs","$parse","$log","$paginationSuppressWarning",function(n,i,r,t,e){e||t.warn("PaginationController is now deprecated. Use UibPaginationController instead.");var o=this,a={$setViewValue:angular.noop},s=i.numPages?r(i.numPages).assign:angular.noop;this.init=function(t,e){a=t,this.config=e,a.$render=function(){o.render()},i.itemsPerPage?n.$parent.$watch(r(i.itemsPerPage),function(t){o.itemsPerPage=parseInt(t,10),n.totalPages=o.calculateTotalPages()}):this.itemsPerPage=e.itemsPerPage,n.$watch("totalItems",function(){n.totalPages=o.calculateTotalPages()}),n.$watch("totalPages",function(t){s(n.$parent,t),n.page>t?n.selectPage(t):a.$render()})},this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(n.totalItems/this.itemsPerPage);return Math.max(t||0,1)},this.render=function(){n.page=parseInt(a.$viewValue,10)||1},n.selectPage=function(t,e){e&&e.preventDefault(),(!n.ngDisabled||!e)&&n.page!==t&&0<t&&t<=n.totalPages&&(e&&e.target&&e.target.blur(),a.$setViewValue(t),a.$render())},n.getText=function(t){return n[t+"Text"]||o.config[t+"Text"]},n.noPrevious=function(){return 1===n.page},n.noNext=function(){return n.page===n.totalPages}}]).directive("pagination",["$parse","uibPaginationConfig","$log","$paginationSuppressWarning",function(a,s,p,h){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["pagination","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(t,e){return e.templateUrl||"template/pagination/pagination.html"},replace:!0,link:function(t,e,n,i){h||p.warn("pagination is now deprecated. Use uib-pagination instead.");var l,u,r,o=i[0],i=i[1];function c(t,e,n){return{number:t,text:e,active:n}}i&&(l=angular.isDefined(n.maxSize)?t.$parent.$eval(n.maxSize):s.maxSize,u=angular.isDefined(n.rotate)?t.$parent.$eval(n.rotate):s.rotate,t.boundaryLinks=angular.isDefined(n.boundaryLinks)?t.$parent.$eval(n.boundaryLinks):s.boundaryLinks,t.directionLinks=angular.isDefined(n.directionLinks)?t.$parent.$eval(n.directionLinks):s.directionLinks,o.init(i,s),n.maxSize&&t.$parent.$watch(a(n.maxSize),function(t){l=parseInt(t,10),o.render()}),r=o.render,o.render=function(){r(),0<t.page&&t.page<=t.totalPages&&(t.pages=function(t,e){var n=[],i=1,r=e,o=angular.isDefined(l)&&l<e;o&&(u?e<(r=(i=Math.max(t-Math.floor(l/2),1))+l-1)&&(i=(r=e)-l+1):(i=(Math.ceil(t/l)-1)*l+1,r=Math.min(i+l-1,e)));for(var a=i;a<=r;a++){var s=c(a,a,a===t);n.push(s)}return o&&!u&&(1<i&&(i=c(i-1,"...",!1),n.unshift(i)),r<e&&(e=c(r+1,"...",!1),n.push(e))),n}(t.page,t.totalPages))})}}}]).directive("pager",["uibPagerConfig","$log","$paginationSuppressWarning",function(o,a,s){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["pager","?ngModel"],controller:"PaginationController",controllerAs:"pagination",templateUrl:function(t,e){return e.templateUrl||"template/pagination/pager.html"},replace:!0,link:function(t,e,n,i){s||a.warn("pager is now deprecated. Use uib-pager instead.");var r=i[0],i=i[1];i&&(t.align=angular.isDefined(n.align)?t.$parent.$eval(n.align):o.align,r.init(i,o))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){var s={placement:"top",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},l={mouseenter:"mouseleave",click:"click",focus:"blur",none:""},u={};this.options=function(t){angular.extend(u,t)},this.setTriggers=function(t){angular.extend(l,t)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(t,o,N,L,F,a,e,U,n){var q=n.createNew();return L.on("keypress",function(t){27!==t.which||(t=q.top())&&(t.value.close(),q.removeTop(),t=null)}),function(M,I,n,R){function j(t){var e=(t||R.trigger||n).split(" "),t=e.map(function(t){return l[t]||t});return{show:e,hide:t}}R=angular.extend({},s,u,R);var t=M.replace(/[A-Z]/g,function(t,e){return(e?"-":"")+t.toLowerCase()}),e=a.startSymbol(),i=a.endSymbol(),r="<div "+t+'-popup title="'+e+"title"+i+'" '+(R.useContentExp?'content-exp="contentExp()" ':'content="'+e+"content"+i+'" ')+'placement="'+e+"placement"+i+'" popup-class="'+e+"popupClass"+i+'" animation="animation" is-open="isOpen"origin-scope="origScope" style="visibility: hidden; display: block; top: -9999px; left: -9999px;"></div>';return{compile:function(t,e){var P=o(r);return function(n,i,r,t){var e,o,a,s,l,u,c=!!angular.isDefined(R.appendToBody)&&R.appendToBody,p=j(void 0),h=angular.isDefined(r[I+"Enable"]),d=n.$new(!0),f=!1,g=!!angular.isDefined(r[I+"IsOpen"])&&U(r[I+"IsOpen"]),m=!!R.useContentExp&&U(r[M]),v=[],y=function(){e&&e.html()&&(u=u||N(function(){e.css({top:0,left:0});var t=F.positionElements(i,e,d.placement,c);t.top+="px",t.left+="px",t.visibility="visible",e.css(t),u=null},0,!1))};function b(){(d.isOpen?w:$)()}function $(){h&&!n.$eval(r[I+"Enable"])||(S(),function(){d.title=r[I+"Title"],d.content=m?m(n):r[M];d.popupClass=r[I+"Class"],d.placement=angular.isDefined(r[I+"Placement"])?r[I+"Placement"]:R.placement;var t=parseInt(r[I+"PopupDelay"],10),e=parseInt(r[I+"PopupCloseDelay"],10);d.popupDelay=isNaN(t)?R.popupDelay:t,d.popupCloseDelay=isNaN(e)?R.popupCloseDelay:e}(),d.popupDelay?s=s||N(x,d.popupDelay,!1):x())}function w(){C(),d.popupCloseDelay?l=l||N(k,d.popupCloseDelay,!1):k()}function x(){if(C(),S(),!d.content)return angular.noop;e||(o=d.$new(),e=P(o,function(t){c?L.find("body").append(t):i.after(t)}),function(){v.length=0,m?(v.push(n.$watch(m,function(t){!(d.content=t)&&d.isOpen&&k()})),v.push(o.$watch(function(){f||(f=!0,o.$$postDigest(function(){f=!1,d&&d.isOpen&&y()}))}))):v.push(r.$observe(M,function(t){(!(d.content=t)&&d.isOpen?k:y)()}));v.push(r.$observe(I+"Title",function(t){d.title=t,d.isOpen&&y()})),v.push(r.$observe(I+"Placement",function(t){d.placement=t||R.placement,d.isOpen&&y()}))}()),d.$evalAsync(function(){E(d.isOpen=!0),y()})}
1function C(){s&&(N.cancel(s),s=null),u&&(N.cancel(u),u=null)}function k(){C(),S(),d&&d.$evalAsync(function(){E(d.isOpen=!1),d.animation?a=a||N(T,150,!1):T()})}function S(){l&&(N.cancel(l),l=null),a&&(N.cancel(a),a=null)}function T(){v.length&&(angular.forEach(v,function(t){t()}),v.length=0),a=null,e&&(e.remove(),e=null),o&&(o.$destroy(),o=null)}function E(t){g&&angular.isFunction(g.assign)&&g.assign(n,t)}d.origScope=n,d.isOpen=!1,q.add(d,{close:k}),d.contentExp=function(){return d.content},r.$observe("disabled",function(t){t&&C(),t&&d.isOpen&&k()}),g&&n.$watch(g,function(t){d&&!t===d.isOpen&&b()});function D(){p.show.forEach(function(t){i.unbind(t,$)}),p.hide.forEach(function(t){t.split(" ").forEach(function(t){i[0].removeEventListener(t,w)})})}var A;A=r[I+"Trigger"],D(),"none"!==(p=j(A)).show&&p.show.forEach(function(t,e){t===p.hide[e]?i[0].addEventListener(t,b):t&&(i[0].addEventListener(t,$),p.hide[e].split(" ").forEach(function(t){i[0].addEventListener(t,w)})),i.on("keypress",function(t){27===t.which&&w()})});var O=n.$eval(r[I+"Animation"]);d.animation=angular.isDefined(O)?!!O:R.animation;O=n.$eval(r[I+"AppendToBody"]);(c=angular.isDefined(O)?O:c)&&n.$on("$locationChangeSuccess",function(){d.isOpen&&k()}),n.$on("$destroy",function(){C(),S(),D(),T(),q.remove(d),d=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(c,i,p,h){return{link:function(t,r,e){function o(){n&&(n.remove(),n=null),a&&(a.$destroy(),a=null),s&&(c.leave(s).then(function(){n=null}),n=s,s=null)}var a,n,s,l=t.$eval(e.tooltipTemplateTranscludeScope),u=0;t.$watch(i.parseAsResourceUrl(e.uibTooltipTemplateTransclude),function(n){var i=++u;n?(h(n,!0).then(function(t){var e;i===u&&(e=l.$new(),t=p(t)(e,function(t){o(),c.enter(t,r)}),s=t,(a=e).$emit("$includeContentLoaded",n))},function(){i===u&&(o(),t.$emit("$includeContentError",n))}),t.$emit("$includeContentRequested",n)):o()}),t.$on("$destroy",o)}}}]).directive("uibTooltipClasses",function(){return{restrict:"A",link:function(t,e,n){t.placement&&e.addClass(t.placement),t.popupClass&&e.addClass(t.popupClass),t.animation()&&e.addClass(n.tooltipAnimationClass)}}}).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html",link:function(t,e){e.addClass("tooltip")}}}).directive("uibTooltip",["$uibTooltip",function(t){return t("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html",link:function(t,e){e.addClass("tooltip")}}}).directive("uibTooltipTemplate",["$uibTooltip",function(t){return t("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html",link:function(t,e){e.addClass("tooltip")}}}).directive("uibTooltipHtml",["$uibTooltip",function(t){return t("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.tooltip").value("$tooltipSuppressWarning",!1).provider("$tooltip",["$uibTooltipProvider",function(i){angular.extend(this,i),this.$get=["$log","$tooltipSuppressWarning","$injector",function(t,e,n){return e||t.warn("$tooltip is now deprecated. Use $uibTooltip instead."),n.invoke(i.$get)}]}]).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest","$log","$tooltipSuppressWarning",function(c,i,p,h,d,f){return{link:function(t,r,e){f||d.warn("tooltip-template-transclude is now deprecated. Use uib-tooltip-template-transclude instead.");function o(){n&&(n.remove(),n=null),a&&(a.$destroy(),a=null),s&&(c.leave(s).then(function(){n=null}),n=s,s=null)}var a,n,s,l=t.$eval(e.tooltipTemplateTranscludeScope),u=0;t.$watch(i.parseAsResourceUrl(e.tooltipTemplateTransclude),function(n){var i=++u;n?(h(n,!0).then(function(t){var e;i===u&&(e=l.$new(),t=p(t)(e,function(t){o(),c.enter(t,r)}),s=t,(a=e).$emit("$includeContentLoaded",n))},function(){i===u&&(o(),t.$emit("$includeContentError",n))}),t.$emit("$includeContentRequested",n)):o()}),t.$on("$destroy",o)}}}]).directive("tooltipClasses",["$log","$tooltipSuppressWarning",function(i,r){return{restrict:"A",link:function(t,e,n){r||i.warn("tooltip-classe
1s is now deprecated. Use uib-tooltip-classes instead."),t.placement&&e.addClass(t.placement),t.popupClass&&e.addClass(t.popupClass),t.animation()&&e.addClass(n.tooltipAnimationClass)}}}]).directive("tooltipPopup",["$log","$tooltipSuppressWarning",function(n,i){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html",link:function(t,e){i||n.warn("tooltip-popup is now deprecated. Use uib-tooltip-popup instead."),e.addClass("tooltip")}}}]).directive("tooltip",["$tooltip",function(t){return t("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",["$log","$tooltipSuppressWarning",function(n,i){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html",link:function(t,e){i||n.warn("tooltip-template-popup is now deprecated. Use uib-tooltip-template-popup instead."),e.addClass("tooltip")}}}]).directive("tooltipTemplate",["$tooltip",function(t){return t("tooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlPopup",["$log","$tooltipSuppressWarning",function(n,i){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html",link:function(t,e){i||n.warn("tooltip-html-popup is now deprecated. Use uib-tooltip-html-popup instead."),e.addClass("tooltip")}}}]).directive("tooltipHtml",["$tooltip",function(t){return t("tooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html",link:function(t,e){e.addClass("popover")}}}).directive("uibPopoverTemplate",["$uibTooltip",function(t){return t("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html",link:function(t,e){e.addClass("popover")}}}).directive("uibPopoverHtml",["$uibTooltip",function(t){return t("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html",link:function(t,e){e.addClass("popover")}}}).directive("uibPopover",["$uibTooltip",function(t){return t("uibPopover","popover","click")}]),angular.module("ui.bootstrap.popover").value("$popoverSuppressWarning",!1).directive("popoverTemplatePopup",["$log","$popoverSuppressWarning",function(n,i){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/popover/popover-template.html",link:function(t,e){i||n.warn("popover-template-popup is now deprecated. Use uib-popover-template-popup instead."),e.addClass("popover")}}}]).directive("popoverTemplate",["$tooltip",function(t){return t("popoverTemplate","popover","click",{useContentExp:!0})}]).directive("popoverHtmlPopup",["$log","$popoverSuppressWarning",function(n,i){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover-html.html",link:function(t,e){i||n.warn("popover-html-popup is now deprecated. Use uib-popover-html-popup instead."),e.addClass("popover")}}}]).directive("popoverHtml",["$tooltip",function(t){return t("popoverHtml","popover","click",{useContentExp:!0})}]).directive("popoverPopup",["$log","$popoverSuppressWarning",function(n,i){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html",link:function(t,e){i||n.warn("popover-popup is now deprecated. Use uib-popover-popup instead."),e.addClass("popover")}}}]).directive("popover",["$tooltip",function(t){return t("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(i,t,e){var r=this,o=angular.isDefined(t.animate)?i.$parent.$eval(t.animate):e.animate;this.bars=[],i.max=(angular.isDefined(i.max)?i:e).max,this.addBar=function(e,t,n){o||t.css({transition:"none"}),this.bars.push(e),e.max=i.max,e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=r.bars.reduce(function(t,e){return e.percent=+(100*e.value/e.max).toFixed(2),t+e.percent},0);100<t&&(e.percent-=t-100)},e.$on("$destroy",function(){t=null,r.removeBar(e)})},this.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1),this.bars.forEac
1h(function(t){t.recalculatePercentage()})},i.$watch("max",function(t){r.bars.forEach(function(t){t.max=i.max,t.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{max:"=?"},templateUrl:"template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(t,e,n,i){i.addBar(t,e,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(t,e,n,i){i.addBar(t,angular.element(e.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.progressbar").value("$progressSuppressWarning",!1).controller("ProgressController",["$scope","$attrs","uibProgressConfig","$log","$progressSuppressWarning",function(i,t,e,n,r){r||n.warn("ProgressController is now deprecated. Use UibProgressController instead.");var o=this,a=angular.isDefined(t.animate)?i.$parent.$eval(t.animate):e.animate;this.bars=[],i.max=(angular.isDefined(i.max)?i:e).max,this.addBar=function(e,t,n){a||t.css({transition:"none"}),this.bars.push(e),e.max=i.max,e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){e.percent=+(100*e.value/e.max).toFixed(2);var t=o.bars.reduce(function(t,e){return t+e.percent},0);100<t&&(e.percent-=t-100)},e.$on("$destroy",function(){t=null,o.removeBar(e)})},this.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1)},i.$watch("max",function(t){o.bars.forEach(function(t){t.max=i.max,t.recalculatePercentage()})})}]).directive("progress",["$log","$progressSuppressWarning",function(t,e){return{replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{max:"=?",title:"@?"},templateUrl:"template/progressbar/progress.html",link:function(){e||t.warn("progress is now deprecated. Use uib-progress instead.")}}}]).directive("bar",["$log","$progressSuppressWarning",function(r,o){return{replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(t,e,n,i){o||r.warn("bar is now deprecated. Use uib-bar instead."),i.addBar(t,e)}}}]).directive("progressbar",["$log","$progressSuppressWarning",function(r,o){return{replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",max:"=?",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(t,e,n,i){o||r.warn("progressbar is now deprecated. Use uib-progressbar instead."),i.addBar(t,angular.element(e.children()[0]),{title:n.title})}}}]),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,n,i){var r={$setViewValue:angular.noop};this.init=function(t){(r=t).$render=this.render,r.$formatters.push(function(t){return t=angular.isNumber(t)&&t<<0!==t?Math.round(t):t}),this.stateOn=angular.isDefined(n.stateOn)?e.$parent.$eval(n.stateOn):i.stateOn,this.stateOff=angular.isDefined(n.stateOff)?e.$parent.$eval(n.stateOff):i.stateOff;t=angular.isDefined(n.titles)?e.$parent.$eval(n.titles):i.titles;this.titles=angular.isArray(t)&&0<t.length?t:i.titles;t=angular.isDefined(n.ratingStates)?e.$parent.$eval(n.ratingStates):new Array(angular.isDefined(n.max)?e.$parent.$eval(n.max):i.max);e.range=this.buildTemplateObjects(t)},this.buildTemplateObjects=function(t){for(var e=0,n=t.length;e<n;e++)t[e]=angular.extend({index:e},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(e)},t[e]);return t},this.getTitle=function(t){return t>=this.titles.length?t+1:this.titles[t]},e.rate=function(t){!e.readonly&&0<=t&&t<=e.range.length&&(r.$setViewValue(r.$viewValue===t?0:t),r.$render())},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=r.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=r.$viewValue}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(t,e,n,i){var r=i[0],i=i[1];r.init(i)}}}),angular.module("ui.bootstrap.rating").value("$ratingSuppressWarning",!1).controller("RatingController",["$scope","$attrs","$controller","$log","$ratingSuppressWarning",function(t,e,n,i,r){r||i.warn("RatingController is now deprecated. Use UibRatingController instead."),angular.extend(this,n("UibRatingController",{$scope:t,$attrs:e}))}]).directive("rating",["$log","$ratingSuppressWarning",function(o,a){return{require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(t,e,n,i){a||o.warn("rating is now deprecated. Use uib-rating instead.");var r=i[0],i=i[1];r.init(i)}}}]),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(t){var n,i=this,r=i.tabs=t.tabs=[];i.select=function(e){angular.forEach(r,function(t){t.active&&t!==e&&(t.active=!1,t.onDeselect(),e.selectCalled=!1)}),e.active=!0,e.selectCalled||(e.onSelect(),e.selectCalled=!0)},i.addTab=function(t){r.push(t),1===r.length&&!1!==t.active?t.active=!0:t.active?i.select(t):t.active=!1},i.removeTab=function(t){var e=r.indexOf(t);t.active&&1<r.length&&!n&&(t=e==r.length-1?e-1:e+1,i.select(r[t])),r.splice(e,1)},t.$on("$destroy",function(){n=!0})}]).directive("uibTabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"UibTabsetController",templateUrl:"template/tabs/tabset.html",link:function(t,e,n){t.vertical=!!angular.isDefined(n.vertical)&&t.$parent.$eval(n.vertical),t.justified=!!angular.isDefined(n.justified)&&t.$parent.$eval(n.justified)}}}).directive("uibTab",["$parse",function(o){return{require:"^uibTabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(e,t,n,i,r){e.$watch("active",function(t){t&&i.select(e)}),e.disabled=!1,n.disable&&e.$parent.$watch(o(n.disable),function(t){e.disabled=!!t}),e.select=function(){e.disabled||(e.active=!0)},i.addTab(e),e.$on("$destroy",function(){i.removeTab(e)}),e.$transcludeFn=r}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:["?^uibTab","?^tab"],link:function(t,e){t.$wat
1ch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}).directive("uibTabContentTransclude",function(){return{restrict:"A",require:["?^uibTabset","?^tabset"],link:function(t,n,e){var i=t.$eval(e.uibTabContentTransclude);i.$transcludeFn(i.$parent,function(t){angular.forEach(t,function(t){var e;(e=t).tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||e.hasAttribute("x-tab-heading")||e.hasAttribute("uib-tab-heading")||e.hasAttribute("data-uib-tab-heading")||e.hasAttribute("x-uib-tab-heading")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase()||"x-tab-heading"===e.tagName.toLowerCase()||"uib-tab-heading"===e.tagName.toLowerCase()||"data-uib-tab-heading"===e.tagName.toLowerCase()||"x-uib-tab-heading"===e.tagName.toLowerCase())?i.headingElement=t:n.append(t)})})}}}),angular.module("ui.bootstrap.tabs").value("$tabsSuppressWarning",!1).controller("TabsetController",["$scope","$controller","$log","$tabsSuppressWarning",function(t,e,n,i){i||n.warn("TabsetController is now deprecated. Use UibTabsetController instead."),angular.extend(this,e("UibTabsetController",{$scope:t}))}]).directive("tabset",["$log","$tabsSuppressWarning",function(i,r){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(t,e,n){r||i.warn("tabset is now deprecated. Use uib-tabset instead."),t.vertical=!!angular.isDefined(n.vertical)&&t.$parent.$eval(n.vertical),t.justified=!!angular.isDefined(n.justified)&&t.$parent.$eval(n.justified)}}}]).directive("tab",["$parse","$log","$tabsSuppressWarning",function(o,a,s){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(e,t,n,i,r){s||a.warn("tab is now deprecated. Use uib-tab instead."),e.$watch("active",function(t){t&&i.select(e)}),e.disabled=!1,n.disable&&e.$parent.$watch(o(n.disable),function(t){e.disabled=!!t}),e.select=function(){e.disabled||(e.active=!0)},i.addTab(e),e.$on("$destroy",function(){i.removeTab(e)}),e.$transcludeFn=r}}}]).directive("tabHeadingTransclude",["$log","$tabsSuppressWarning",function(n,i){return{restrict:"A",require:"^tab",link:function(t,e){i||n.warn("tab-heading-transclude is now deprecated. Use uib-tab-heading-transclude instead."),t.$watch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}]).directive("tabContentTransclude",["$log","$tabsSuppressWarning",function(r,o){return{restrict:"A",require:"^tabset",link:function(t,n,e){o||r.warn("tab-content-transclude is now deprecated. Use uib-tab-content-transclude instead.");var i=t.$eval(e.tabContentTransclude);i.$transcludeFn(i.$parent,function(t){angular.forEach(t,function(t){var e;(e=t).tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||e.hasAttribute("x-tab-heading")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase()||"x-tab-heading"===e.tagName.toLowerCase())?i.headingElement=t:n.append(t)})})}}}]),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(i,t,n,e,r,o,a){var s=new Date,l={$setViewValue:angular.noop},u=angular.isDefined(n.meridians)?i.$parent.$eval(n.meridians):a.meridians||o.DATETIME_FORMATS.AMPMS;i.tabindex=angular.isDefined(n.tabindex)?n.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,e){(l=t).$render=this.render,l.$formatters.unshift(function(t){return t?new Date(t):null});t=e.eq(0),e=e.eq(1);(angular.isDefined(n.mousewheel)?i.$parent.$eval(n.mousewheel):a.mousewheel)&&this.setupMousewheelEvents(t,e),(angular.isDefined(n.arrowkeys)?i.$parent.$eval(n.arrowkeys):a.arrowkeys)&&this.setupArrowkeyEvents(t,e),i.readonlyInput=angular.isDefined(n.readonlyInput)?i.$parent.$eval(n.readonlyInput):a.readonlyInput,this.setupInputEvents(t,e)};var c=a.hourStep;n.hourStep&&i.$parent.$watch(e(n.hourStep),function(t){c=parseInt(t,10)});var p,h,d=a.minuteStep;function f(){var t=parseInt(i.hours,10);if(i.showMeridian?0<t&&t<13:0<=t&&t<24)return i.showMeridian&&(12===t&&(t=0),i.meridian===u[1]&&(t+=12)),t}function g(){var t=parseInt(i.minutes,10);return 0<=t&&t<60?t:void 0}function m(t){return angular.isDefined(t)&&t.toString().length<2?"0"+t:t.toString()}function v(t){y(),l.$setViewValue(new Date(s)),b(t)}function y(){l.$setValidity("time",!0),i.invalidHours=!1,i.invalidMinutes=!1}function b(t){var e=s.getHours(),n=s.getMinutes();i.showMeridian&&(e=0===e||12===e?12:e%12),i.hours="h"===t?e:m(e),"m"!==t&&(i.minutes=m(n)),i.meridian=s.getHours()<12?u[0]:u[1]}function $(t,e){e=new Date(t.getTime()+6e4*e),t=new Date(t);return t.setHours(e.getHours(),e.getMinutes()),t}function w(t){s=$(s,t),v()}n.minuteStep&&i.$parent.$watch(e(n.minuteStep),function(t){d=parseInt(t,10)}),i.$parent.$watch(e(n.min),function(t){t=new Date(t);p=isNaN(t)?void 0:t}),i.$parent.$watch(e(n.max),function(t){t=new Date(t);h=isNaN(t)?void 0:t}),i.noIncrementHours=function(){var t=$(s,60*c);return h<t||t<s&&t<p},i.noDecrementHours=function(){var t=$(s,60*-c);return t<p||s<t&&h<t},i.noIncrementMinutes=function(){var t=$(s,d);return h<t||t<s&&t<p},i.noDecrementMinutes=function(){var t=$(s,-d);return t<p||s<t&&h<t},i.noToggleMeridian=function(){return s.getHours()<13?$(s,720)>h:$(s,-720)<p},i.showMeridian=a.showMeridian,n.showMeridian&&i.$parent.$watch(e(n.showMeridian),function(t){var e;i.showMeridian=!!t,l.$error.time?(e=f(),t=g(),angular.isDefined(e)&&angular.isDefined(t)&&(s.setHours(e),v())):b()}),this.setupMousewheelEvents=function(t,e){function n(t){var e=(t=t.originalEvent?t.originalEvent:t).wheelDelta||-t.deltaY;return t.detail||0<e}t.bind("mousewheel wheel",function(t){i.$apply(n(t)?i.incrementHours():i.decrementHours()),t.preventDefault()}),e.bind("mousewheel wheel",function(t){i.$apply(n(t)?i.incrementMinutes():i.decrementMinutes()),t.preventDefault()})},this.setupArrowkeyEvents=function(t,e){t.bind("keydown",function(t){38===t.which?(t.preventDefault(),i.incrementHours(),i.$apply()):40===t.which&&(t.preventDefault(),i.decrementHours(),i.$apply())}),e.bind("keydown",function(t){38===t.which?(t.preventDefault(),i.incrementMinutes(),i.$apply()):40===t.which&&(t.preventDefault(),i.decrementMinutes(),i.$apply())})},this.setupInputEvents=function(t,e){if(i.readonlyInput)return i.updateHours=angular.noop,void(i.updateMinutes=angular.noop);function n(t,e){l.$setViewValue(null),l.$setValidity("time",!1),angular.isDefined(t)&&(i.invalidHours=t),angular.isDefined(e)&&(i.invalidMinutes=e)}i.updateHours=function(){var t=f(),e=g();angular.isDefined(t)&&angular.isDefined(e)?(s.setHours(t),s<p||h<s?n(!0):v("h")):n(!0)},t.bind("blur",function(t){!i.invalidHours&&i.hours<10&&i.$apply(function(){i.hours=m(i.hours)})}),i.updateMinutes=function(){var t=g(),e=f();angular.isDefined(t)&&angular.isDefined(e)?(s.setMinutes(t),s<p||h<s?n(void 0,!0):v("m")):n(void 0,!0)},e.bind("blur",function(t){!i.invalidMinutes&&i.minutes<10&&i.$apply(function(){i.minutes=m(i.minutes)})})},this.render=function(){var t=l.$viewValue;isNaN(t)?(l.$setValidity("time",!1),r.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):((s=t?t:s)<p||h<s?(l.$setValidity("time",!1),i.invalidHours=!0,i.invalidMinutes=!0):y(),b())}
1,i.showSpinners=angular.isDefined(n.showSpinners)?i.$parent.$eval(n.showSpinners):a.showSpinners,i.incrementHours=function(){i.noIncrementHours()||w(60*c)},i.decrementHours=function(){i.noDecrementHours()||w(60*-c)},i.incrementMinutes=function(){i.noIncrementMinutes()||w(d)},i.decrementMinutes=function(){i.noDecrementMinutes()||w(-d)},i.toggleMeridian=function(){i.noToggleMeridian()||w(720*(s.getHours()<12?1:-1))}}]).directive("uibTimepicker",function(){return{restrict:"EA",require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(t,e){return e.templateUrl||"template/timepicker/timepicker.html"},link:function(t,e,n,i){var r=i[0],i=i[1];i&&r.init(i,e.find("input"))}}}),angular.module("ui.bootstrap.timepicker").value("$timepickerSuppressWarning",!1).controller("TimepickerController",["$scope","$element","$attrs","$controller","$log","$timepickerSuppressWarning",function(t,e,n,i,r,o){o||r.warn("TimepickerController is now deprecated. Use UibTimepickerController instead."),angular.extend(this,i("UibTimepickerController",{$scope:t,$element:e,$attrs:n}))}]).directive("timepicker",["$log","$timepickerSuppressWarning",function(o,a){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(t,e){return e.templateUrl||"template/timepicker/timepicker.html"},link:function(t,e,n,i){a||o.warn("timepicker is now deprecated. Use uib-timepicker instead.");var r=i[0],i=i[1];i&&r.init(i,e.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(t){var e=t.match(i);if(!e)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+t+'".');return{itemName:e[3],source:n(e[4]),viewMapper:n(e[2]||e[1]),modelMapper:n(e[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$uibPosition","uibTypeaheadParser",function(s,l,o,t,e,n,a,i,r,u,c,p){var h,d,f=[9,13,27,38,40],g=200,m=s.$eval(o.typeaheadMinLength);m||0===m||(m=1);var v,y,b=s.$eval(o.typeaheadWaitMs)||0,$=!1!==s.$eval(o.typeaheadEditable),w=e(o.typeaheadLoading).assign||angular.noop,x=e(o.typeaheadOnSelect),C=!!angular.isDefined(o.typeaheadSelectOnBlur)&&s.$eval(o.typeaheadSelectOnBlur),k=e(o.typeaheadNoResults).assign||angular.noop,S=o.typeaheadInputFormatter?e(o.typeaheadInputFormatter):void 0,T=!!o.typeaheadAppendToBody&&s.$eval(o.typeaheadAppendToBody),E=o.typeaheadAppendToElementId||!1,D=!1!==s.$eval(o.typeaheadFocusFirst),A=!!o.typeaheadSelectOnExact&&s.$eval(o.typeaheadSelectOnExact),O=e(o.ngModel),P=e(o.ngModel+"($$$p)"),M=p.parse(o.uibTypeahead),I=s.$new(),p=s.$on("$destroy",function(){I.$destroy()});I.$on("$destroy",p);var R="typeahead-"+I.$id+"-"+Math.floor(1e4*Math.random());l.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":R});var j=angular.element("<div uib-typeahead-popup></div>");j.attr({id:R,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(o.typeaheadTemplateUrl)&&j.attr("template-url",o.typeaheadTemplateUrl),angular.isDefined(o.typeaheadPopupTemplateUrl)&&j.attr("popup-template-url",o.typeaheadPopupTemplateUrl);function N(){I.matches=[],I.activeIdx=-1,l.attr("aria-expanded",!1)}function L(t){return R+"-option-"+t}I.$watch("activeIdx",function(t){t<0?l.removeAttr("aria-activedescendant"):l.attr("aria-activedescendant",L(t))});function F(o){var a={$viewValue:o};w(s,!0),k(s,!1),n.when(M.source(s,a)).then(function(t){var e,n,i=o===h.$viewValue;if(i&&v)if(t&&0<t.length){I.activeIdx=D?0:-1,k(s,!1);for(var r=I.matches.length=0;r<t.length;r++)a[M.itemName]=t[r],I.matches.push({id:L(r),label:M.viewMapper(I,a),model:t[r]});I.query=o,H(),l.attr("aria-expanded",!0),A&&1===I.matches.length&&(e=o,n=0,!!(I.matches.length>n&&e)&&e.toUpperCase()===I.matches[n].label.toUpperCase())&&I.select(0)}else N(),k(s,!0);i&&w(s,!1)},function(){N(),w(s,!1),k(s,!0)})}var U,q;function _(){I.moveInProgress||(I.moveInProgress=!0,I.$digest()),U&&a.cancel(U),U=a(function(){I.matches.length&&H(),I.moveInProgress=!1},g)}function H(){I.position=T?c.offset(l):c.position(l),I.position.top+=l.prop("offsetHeight")}T&&(angular.element(r).bind("resize",_),i.find("body").bind("scroll",_)),I.moveInProgress=!1,I.query=void 0;function B(){q&&a.cancel(q)}N(),I.select=function(t){var e,n,i,r={};y=!0,r[M.itemName]=n=I.matches[t].model,e=M.modelMapper(s,r),i=s,t=e,angular.isFunction(O(s))&&d&&d.$options&&d.$options.getterSetter?P(i,{$$$p:t}):O.assign(i,t),h.$setValidity("editable",!0),h.$setValidity("parse",!0),x(s,{$item:n,$model:e,$label:M.viewMapper(s,r)}),N(),!1!==I.$eval(o.typeaheadFocusOnSelect)&&a(function(){l[0].focus()},0,!1)},l.bind("keydown",function(t){if(0!==I.matches.length&&-1!==f.indexOf(t.which)){if(-1===I.activeIdx&&
1(9===t.which||13===t.which))return N(),void I.$digest();t.preventDefault(),40===t.which?(I.activeIdx=(I.activeIdx+1)%I.matches.length,I.$digest()):38===t.which?(I.activeIdx=(0<I.activeIdx?I.activeIdx:I.matches.length)-1,I.$digest()):13===t.which||9===t.which?I.$apply(function(){I.select(I.activeIdx)}):27===t.which&&(t.stopPropagation(),N(),I.$digest())}}),l.bind("blur",function(){C&&I.matches.length&&-1!==I.activeIdx&&!y&&(y=!0,I.$apply(function(){I.select(I.activeIdx)})),y=v=!1});function V(t){l[0]!==t.target&&3!==t.which&&0!==I.matches.length&&(N(),u.$$phase||I.$digest())}i.bind("click",V),s.$on("$destroy",function(){i.unbind("click",V),(T||E)&&W.remove(),T&&(angular.element(r).unbind("resize",_),i.find("body").unbind("scroll",_)),j.remove()});var W=t(j)(I);T?i.find("body").append(W):!1!==E?angular.element(i[0].getElementById(E)).append(W):l.after(W),this.init=function(t,e){d=e,(h=t).$parsers.unshift(function(t){var e;return v=!0,0===m||t&&t.length>=m?0<b?(B(),e=t,q=a(function(){F(e)},b)):F(t):(w(s,!1),B(),N()),$?t:t?void h.$setValidity("editable",!1):(h.$setValidity("editable",!0),null)}),h.$formatters.push(function(t){var e,n={};return $||h.$setValidity("editable",!0),S?(n.$model=t,S(s,n)):(n[M.itemName]=t,e=M.viewMapper(s,n),n[M.itemName]=void 0,e!==M.viewMapper(s,n)?e:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(t,e,n,i){i[2].init(i[0],i[1])}}}).directive("uibTypeaheadPopup",function(){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:!0,templateUrl:function(t,e){return e.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(e,t,n){e.templateUrl=n.templateUrl,e.isOpen=function(){return 0<e.matches.length},e.isActive=function(t){return e.active==t},e.selectActive=function(t){e.active=t},e.selectMatch=function(t){e.select({activeIdx:t})}}}}).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(i,r,o){return{scope:{index:"=",match:"=",query:"="},link:function(e,n,t){t=o(t.templateUrl)(e.$parent)||"template/typeahead/typeahead-match.html";i(t).then(function(t){r(t.trim())(e,function(t){n.replaceWith(t)})})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,t,i){var r;return r=t.has("$sanitize"),function(t,e){return!r&&/<.*>/g.test(t)&&i.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):t,t=!r?n.trustAsHtml(t):t}}]),angular.module("ui.bootstrap.typeahead").value("$typeaheadSuppressWarning",!1).service("typeaheadParser",["$parse","uibTypeaheadParser","$log","$typeaheadSuppressWarning",function(t,e,n,i){return i||n.warn("typeaheadParser is now deprecated. Use uibTypeaheadParser instead."),e}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$window","$rootScope","$uibPosition","typeaheadParser","$log","$typeaheadSuppressWarning",function(N,L,F,U,q,_,H,B,V,W,z){var X=[9,13,27,38,40];return{require:["ngModel","^?ngModelOptions"],link:function(s,l,o,t){z||W.warn("typeahead is now deprecated. Use uib-typeahead instead.");var u=t[0],a=t[1],n=s.$eval(o.typeaheadMinLength);n||0===n||(n=1);var c,p,i=s.$eval(o.typeaheadWaitMs)||0,r=!1!==s.$eval(o.typeaheadEditable),h=L(o.typeaheadLoading).assign||angular.noop,d=L(o.typeaheadOnSelect),e=!!angular.isDefined(o.typeaheadSelectOnBlur)&&s.$eval(o.typeaheadSelectOnBlur),f=L(o.typeaheadNoResults).assign||angular.noop,g=o.typeaheadInputFormatter?L(o.typeaheadInputFormatter):void 0,m=!!o.typeaheadAppendToBody&&s.$eval(o.typeaheadAppendToBody),v=o.typeaheadAppendToElementId||!1,y=!1!==s.$eval(o.typeaheadFocusFirst),b=!!o.typeaheadSelectOnExact&&s.$eval(o.typeaheadSelectOnExact),$=L(o.ngModel),w=L(o.ngModel+"($$$p)"),x=V.parse(o.typeahead),C=s.$new(),t=s.$on("$destroy",function(){C.$destroy()});C.$on("$destroy",t);var k="typeahead-"+C.$id+"-"+Math.floor(1e4*Math.random());l.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":k});var S=angular.element("<div typeahead-popup></div>");S.attr({id:k,matches:"matches",active:"activeIdx",select:"select(activeIdx)","move-in-progress":"moveInProgress",query:"query",position:"position"}),angular.isDefined(o.typeaheadTemplateUrl)&&S.attr("template-url",o.typeaheadTemplateUrl),angular.isDefined(o.typeaheadPopupTemplateUrl)&&S.attr("popup-template-url",o.typeaheadPopupTemplateUrl);function T(){C.matches=[],C.activeIdx=-1,l.attr("aria-expanded",!1)}function E(t){return k+"-option-"+t}C.$watch("activeIdx",function(t){t<0?l.removeAttr("aria-activedescendant"):l.attr("aria-activedescendant",E(t))});function D(o){var a={$viewValue:o};h(s,!0),f(s,!1),F.when(x.source(s,a)).then(function(t){var e,n,i=o===u.$viewValue;if(i&&c)if(t&&0<t.length){C.activeIdx=y?0:-1,f(s,!1);for(var r=C.matches.length=0;r<t.length;
1r++)a[x.itemName]=t[r],C.matches.push({id:E(r),label:x.viewMapper(C,a),model:t[r]});C.query=o,M(),l.attr("aria-expanded",!0),b&&1===C.matches.length&&(e=o,n=0,!!(C.matches.length>n&&e)&&e.toUpperCase()===C.matches[n].label.toUpperCase())&&C.select(0)}else T(),f(s,!0);i&&h(s,!1)},function(){T(),h(s,!1),f(s,!0)})}var A,O;function P(){C.moveInProgress||(C.moveInProgress=!0,C.$digest()),A&&U.cancel(A),A=U(function(){C.matches.length&&M(),C.moveInProgress=!1},200)}function M(){C.position=m?B.offset(l):B.position(l),C.position.top+=l.prop("offsetHeight")}m&&(angular.element(_).bind("resize",P),q.find("body").bind("scroll",P)),C.moveInProgress=!1,T(),C.query=void 0;function I(){O&&U.cancel(O)}u.$parsers.unshift(function(t){var e;return c=!0,0===n||t&&t.length>=n?0<i?(I(),e=t,O=U(function(){D(e)},i)):D(t):(h(s,!1),I(),T()),r?t:t?void u.$setValidity("editable",!1):(u.$setValidity("editable",!0),null)}),u.$formatters.push(function(t){var e,n={};return r||u.$setValidity("editable",!0),g?(n.$model=t,g(s,n)):(n[x.itemName]=t,e=x.viewMapper(s,n),n[x.itemName]=void 0,e!==x.viewMapper(s,n)?e:t)}),C.select=function(t){var e,n,i,r={};p=!0,r[x.itemName]=n=C.matches[t].model,e=x.modelMapper(s,r),i=s,t=e,angular.isFunction($(s))&&a&&a.$options&&a.$options.getterSetter?w(i,{$$$p:t}):$.assign(i,t),u.$setValidity("editable",!0),u.$setValidity("parse",!0),d(s,{$item:n,$model:e,$label:x.viewMapper(s,r)}),T(),!1!==C.$eval(o.typeaheadFocusOnSelect)&&U(function(){l[0].focus()},0,!1)},l.bind("keydown",function(t){if(0!==C.matches.length&&-1!==X.indexOf(t.which)){if(-1===C.activeIdx&&(9===t.which||13===t.which))return T(),void C.$digest();t.preventDefault(),40===t.which?(C.activeIdx=(C.activeIdx+1)%C.matches.length,C.$digest()):38===t.which?(C.activeIdx=(0<C.activeIdx?C.activeIdx:C.matches.length)-1,C.$digest()):13===t.which||9===t.which?C.$apply(function(){C.select(C.activeIdx)}):27===t.which&&(t.stopPropagation(),T(),C.$digest())}}),l.bind("blur",function(){e&&C.matches.length&&-1!==C.activeIdx&&!p&&(p=!0,C.$apply(function(){C.select(C.activeIdx)})),p=c=!1});function R(t){l[0]!==t.target&&3!==t.which&&0!==C.matches.length&&(T(),H.$$phase||C.$digest())}q.bind("click",R),s.$on("$destroy",function(){q.unbind("click",R),(m||v)&&j.remove(),m&&(angular.element(_).unbind("resize",P),q.find("body").unbind("scroll",P)),S.remove()});var j=N(S)(C);m?q.find("body").append(j):!1!==v?angular.element(q[0].getElementById(v)).append(j):l.after(j)}}}]).directive("typeaheadPopup",["$typeaheadSuppressWarning","$log",function(i,r){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&"},replace:!0,templateUrl:function(t,e){return e.popupTemplateUrl||"template/typeahead/typeahead-popup.html"},link:function(e,t,n){i||r.warn("typeahead-popup is now deprecated. Use uib-typeahead-popup instead."),e.templateUrl=n.templateUrl,e.isOpen=function(){return 0<e.matches.length},e.isActive=function(t){return e.active==t},e.selectActive=function(t){e.active=t},e.selectMatch=function(t){e.select({activeIdx:t})}}}}]).directive("typeaheadMatch",["$templateRequest","$compile","$parse","$typeaheadSuppressWarning","$log",function(i,r,o,a,s){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(e,n,t){a||s.warn("typeahead-match is now deprecated. Use uib-typeahead-match instead.");t=o(t.templateUrl)(e.$parent)||"template/typeahead/typeahead-match.html";i(t).then(function(t){r(t.trim())(e,function(t){n.replaceWith(t)})})}}}]).filter("typeaheadHighlight",["$sce","$injector","$log","$typeaheadSuppressWarning",function(n,t,i,r){var o;return o=t.has("$sanitize"),function(t,e){return r||i.warn("typeaheadHighlight is now deprecated. Use uibTypeaheadHighlight instead."),!o&&/<.*>/g.test(t)&&i.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):t,t=!o?n.trustAsHtml(t):t}}]),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion-group.html",'<div class="panel {{panelClass || \'panel-default\'}}">\n  <div class="panel-heading" ng-keypress="toggleOpen($event)">\n    <h4 class="panel-title">\n      <a href tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n    </h4>\n  </div>\n  <div class="panel-collapse collapse" uib-collapse="!isOpen">\n\t  <div class="panel-body" ng-transclude></div>\n  </div>\n</div>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">
1\n    <button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n        <span aria-hidden="true">&times;</span>\n        <span class="sr-only">Close</span>\n    </button>\n    <div ng-transclude></div>\n</div>\n')}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(t){t.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n  <div class="carousel-inner" ng-transclude></div>\n  <a role="button" href class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1">\n    <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n    <span class="sr-only">previous</span>\n  </a>\n  <a role="button" href class="right carousel-control" ng-click="next()" ng-show="slides.length > 1">\n    <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n    <span class="sr-only">next</span>\n  </a>\n  <ol class="carousel-indicators" ng-show="slides.length > 1">\n    <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">
1\n      <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n    </li>\n  </ol>\n</div>')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(t){t.put("template/carousel/slide.html",'<div ng-class="{\n    \'active\': active\n  }" class="item text-center" ng-transclude></div>\n')}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <uib-daypicker ng-switch-when="day" tabindex="0"></uib-daypicker>\n  <uib-monthpicker ng-switch-when="month" tabindex="0"></uib-monthpicker>\n  <uib-yearpicker ng-switch-when="year" tabindex="0"></uib-yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n    <tr>\n      <th ng-if="showWeeks" class="text-center"></th>\n      <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n        <button type="button" style="min-width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n        <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/popup.html",'<ul class="dropdown-menu" dropdown-nested ng-if="isOpen" style="display: block" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n\t<li ng-transclude></li>\n\t<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n\t\t<span class="btn-group pull-left">\n\t\t\t<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n\t\t\t<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n\t\t</span>\n\t\t<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n\t</li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="3"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" ng-disabled="datepickerMode === max
1Mode" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{::dt.uid}}" ng-class="::dt.customClass">\n        <button type="button" style="min-width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(t){t.put("template/modal/backdrop.html",'<div uib-modal-animation-class="fade"\n     modal-in-class="in"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(t){t.put("template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n    uib-modal-animation-class="fade"\n    modal-in-class="in"\n    ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n    <div class="modal-dialog" ng-class="size ? \'modal-\' + size : \'\'"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n  <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>\n')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n  <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n  <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n  <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),angular.module("template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-html-popup.html",'<div\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-popup.html",'<div\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-template-popup.html",'<div\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner"\n    uib-tooltip-template-transclude="contentExp()"\n    tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("template/popover/popover-html.html",[]).run(["$templateCache",function(t){t.put("template/popover/popover-html.html",'<div tooltip-animation-class="fade"\n  uib-tooltip-classe
1s\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n      <div class="popover-content" ng-bind-html="contentExp()"></div>\n  </div>\n</div>\n')}]),angular.module("template/popover/popover-template.html",[]).run(["$templateCache",function(t){t.put("template/popover/popover-template.html",'<div tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n      <div class="popover-content"\n        uib-tooltip-template-transclude="contentExp()"\n        tooltip-template-transclude-scope="originScope()"></div>\n  </div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("template/popover/popover.html",'<div tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n      <div class="popover-content" ng-bind="content"></div>\n  </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" style="min-width: 0;" ng-transclude></div>\n')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" style="min-width: 0;" ng-transclude></div>\n</div>\n')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n    <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}" aria-valuetext="{{r.title}}"></i>\n</span>\n')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n  <a href ng-click="select()" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n  <div class="tab-content">\n    <div class="tab-pane" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         uib-tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(t){t.put("template/timepicker/timepicker.html",'<table>\n  <tbody>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td>&nbsp;</td>\n      <td><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n    <tr>\n      <td class="form-group" ng-class="{\'has-error\': invalidHours}">\n        <input style="width:50px;" type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}">\n      </td>\n      <td>:</td>\n      <td class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n        <input style="width:50px;" type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}">\n      </td>\n      <td ng-show="showMeridian"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n    </tr>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td>&nbsp;</td>\n      <td><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-match.html",'<a href tabindex="-1" ng-bind-html="match.label | uibTypeaheadHighlight:query"></a>\n')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{::match.id}}">\n        <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]),angular.$$csp()||angular.element(document).find("head").prepend('<style type="text/css">
1.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.module("toggle-switch",["ng"]).directive("toggleSwitch",function(){return{restrict:"EA",replace:!0,require:"ngModel",scope:{disabled:"@",onLabel:"@",offLabel:"@",knobLabel:"@"},template:'<div role="radio" class="toggle-switch" ng-class="{ \'disabled\': disabled }"><div class="toggle-switch-animate" ng-class="{\'switch-off\': !model, \'switch-on\': model}"><span class="switch-left" ng-bind="onLabel"></span><span class="knob" ng-bind="knobLabel"></span><span class="switch-right" ng-bind="offLabel"></span></div></div>',link:function(t,e,n,i){n.onLabel||(n.onLabel="On"),n.offLabel||(n.offLabel="Off"),n.knobLabel||(n.knobLabel=" "),n.disabled||(n.disabled=!1),e.on("click",function(){t.$apply(t.toggle)}),i.$formatters.push(function(t){return t}),i.$parsers.push(function(t){return t}),i.$render=function(){t.model=i.$viewValue},t.toggle=function(){t.disabled||(t.model=!t.model,i.$setViewValue(t.model))}}}});var ALGOLIA_VERSION="2.9.7",AlgoliaSearch=function(t,e,n,i,r){var o,a=this;this.applicationID=t,this.apiKey=e,this.dsn=!0,this.dsnHost=null,this.hosts=[],this.currentHostIndex=0,this.requestTimeoutInMs=2e3,this.extraHeaders=[],this.jsonp=null,this.options={},this.cache={};e="net";"string"==typeof n?o=n:(this.options=n=n||{},this._isUndefined(n.method)||(o=n.method),this._isUndefined(n.tld)||(e=n.tld),this._isUndefined(n.dsn)||(this.dsn=n.dsn),this._isUndefined(n.hosts)||(r=n.hosts),this._isUndefined(n.dsnHost)||(this.dsnHost=n.dsnHost),this._isUndefined(n.requestTimeoutInMs)||(this.requestTimeoutInMs=+n.requestTimeoutInMs),this._isUndefined(n.jsonp)||(this.jsonp=n.jsonp)),this._isUndefined(r)&&(r=[this.applicationID+"-1.algolianet.com",this.applicationID+"-2.algolianet.com",this.applicationID+"-3.algolianet.com"]),this.host_protocol="http://",this._isUndefined(o)||null===o?this.host_protocol=("https:"==document.location.protocol?"https":"http")+"://":"https"!==o&&"HTTPS"!==o||(this.host_protocol="https://");for(var s=0;s<r.length;++s)this.hosts.push(this.host_protocol+r[s]);!this.dsn&&null==this.dsnHost||(this.dsnHost?this.hosts.unshift(this.host_protocol+this.dsnHost):this.hosts.unshift(this.host_protocol+this.applicationID+"-dsn.algolia."+e)),this.options.angular&&this.options.angular.$injector.invoke(["$http","$q",function(t,e){a.options.angular.$q=e,a.options.angular.$http=t}]),this._ua=this.options._ua||"Algolia for vanilla JavaScript "+window.ALGOLIA_VERSION};function AlgoliaExplainResults(t,e,n){function u(t,e){var n=[];if("object"==typeof t&&"matchedWords"in t&&"value"in t){for(var i=!1,r=0;r<t.matchedWords.length;++r){var o=t.matchedWords[r];o in e||(e[o]=1,i=!0)}i&&n.push(t.value)}else if("[object Array]"===Object.prototype.toString.call(t))for(var a=0;a<t.length;++a)var s=u(t[a],e),n=n.concat(s);else if("object"==typeof t)for(var l in t)t.hasOwnProperty(l)&&(n=n.concat(u(t[l],e)));return n}function l(t,e,n){t=t._highlightResult||t;if(-1===n.indexOf("."))return n in t?u(t[n],e):[];for(var i=n.split("."),r=t,o=0;o<i.length;++o){if("[object Array]"===Object.prototype.toString.call(r)){for(var a=[],s=0;s<r.length;++s)a=a.concat(l(r[s],e,i.slice(o).join(".")));return a}if(!(i[o]in r))return[];r=r[i[o]]}return u(r,e)}var i={},r={},e=l(t,r,e);if(i.title=0<e.length?e[0]:"",i.subtitles=[],void 0!==n)for(var o=0;o<n.length;++o)for(var a=l(t,r,n[o]),s=0;s<a.length;++s)i.subtitles.push({attr:n[o],value:a[s]});return i}AlgoliaSearch.JSONPCounter=0,AlgoliaSearch.prototype={deleteIndex:function(t,e){return this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(t),callback:e})},moveIndex:function(t,e,n){e={operation:"move",destination:e};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(t)+"/operation",body:e,callback:n})},copyIndex:function(t,e,n){e={operation:"copy",destination:e};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(t)+"/operation",body:e,callback:n})},getLogs:function(t,e,n){return this._isUndefined(e)&&(e=0),this._isUndefined(n)&&(n=10),this._jsonRequest({method:"GET",url:"/1/logs?offset="+e+"&length="+n,callback:t})},listIndexes:function(t,e){return this._jsonRequest({method:"GET",url:"/1/indexes"+(void 0!==e?"?page="+e:""),callback:t})},initIndex:function(t){return new this.Index(this,t)},listUserKeys:function(t){return this._jsonRequest({method:"GET",url:"/1/keys",callback:t})},getUserKeyACL:function(t,e){return this._jsonRequest({method:"GET",url:"/1/keys/"+t,callback:e})},deleteUserKey:function(t,e){return this._jsonRequest({method:"DELETE",url:"/1/keys/"+t,callback:e})},addUserKey:function(t,e){return this.addUserKeyWithValidity(t,0,0,0,e)},addUserKeyWithValidity:function(t,e,n,i,r){var o={};return o.acl=t,o.validity=e,o.maxQueriesPerIPPerHour=n,o.maxHitsPerQuery=i,this._jsonRequest({method:"POST",url:"/1/keys",body:o,callback:r})},setSecurityTags:function(t){if("[object Array]"===Object.prototype.toString.call(t)){for(var e=[],n=0;n<t.length;++n)if("[object Array]"===Object.prototype.toString.call(t[n])){for(var i=[],r=0;r<t[n].length;++r)i.push(t[n][r]);e.push("("+i.join(",")+")")}else e.push(t[n]);t=e.join(",")}this.tagFilters=t},setUserToken:function(t){this.userToken=t},startQueriesBatch:function(){this.batch=[]},addQueryInBatch:function(t,e,n){e="query="+encodeURIComponent(e);this._isUndefined(n)||null===n||(e=this._getSearchParams(n,e)),this.batch.push({indexName:t,params:e})},clearCache:function(){this.cache={}},sendQueriesBatch:function(t,e){for(var n=this,i={requests:[]},r=0;r<n.batch.length;++r)i.requests.push(n.batch[r]);if(window.clearTimeout(n.onDelayTrigger),this._isUndefined(e)||null===e||!(0<e))return this._sendQueriesBatch(i,t);e=window.setTimeout(function(){n._sendQueriesBatch(i,t)},e);n.onDelayTrigger=e},setRequestTimeout:function(t){t&&(this.requestTimeoutInMs=parseInt(t,10))},Index:function(t,e){this.indexName=e,this.as=t,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}},setExtraHeader:function(t,e){this.extraHeaders.push({key:t,value:e})}
1,_sendQueriesBatch:function(n,i){if(null===this.jsonp){var r=this;return this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:n,callback:function(t,e){t?(r.jsonp=!1,i&&i(t,e)):(r.jsonp=!0,r._sendQueriesBatch(n,i))}})}if(this.jsonp){for(var t="",e=0;e<n.requests.length;++e){var o="/1/indexes/"+encodeURIComponent(n.requests[e].indexName)+"?"+n.requests[e].params;t+=e+"="+encodeURIComponent(o)+"&"}return this._jsonRequest({cache:this.cache,method:"GET",url:"/1/indexes/*",body:{params:t},callback:i})}return this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:n,callback:i})},_jsonRequest:function(i){var r=this,o=i.callback,a=null,s=i.url,l=null;if(this.options.jQuery?(l=this.options.jQuery.$.Deferred()).promise=l.promise():this.options.angular&&(l=this.options.angular.$q.defer()),this._isUndefined(i.body)||(s=i.url+"_body_"+JSON.stringify(i.body)),!this._isUndefined(i.cache)&&(a=i.cache,!this._isUndefined(a[s])))return!this._isUndefined(o)&&o&&setTimeout(function(){o(!0,a[s])},1),l&&l.resolve(a[s]),l&&l.promise;i.successiveRetryCount=0;var u=function(){if(i.successiveRetryCount>=r.hosts.length){var t={message:"Cannot connect the Algolia's Search API. Please send an email to [email protected] to report the issue."};return!r._isUndefined(o)&&o&&(i.successiveRetryCount=0,o(!1,t)),void(l&&l.reject(t))}i.callback=function(t,e,n){e&&!r._isUndefined(i.cache)&&(a[s]=n),!e&&t?(r.currentHostIndex=++r.currentHostIndex%r.hosts.length,i.successiveRetryCount+=1,u()):(i.successiveRetryCount=0,l&&(e?l.resolve(n):l.reject(n)),!r._isUndefined(o)&&o&&o(e,n))},i.hostname=r.hosts[r.currentHostIndex],r._jsonRequestByHost(i)};return u(),l&&l.promise},_jsonRequestByHost:function(t){var e=t.hostname+t.url;this.jsonp?this._makeJsonpRequestByHost(e,t):this.options.jQuery?this._makejQueryRequestByHost(e,t):this.options.angular?this._makeAngularRequestByHost(e,t):this._makeXmlHttpRequestByHost(e,t)},_makeAngularRequestByHost:function(t,e){var n=null;this._isUndefined(e.body)||(n=JSON.stringify(e.body)),t+=(-1===t.indexOf("?")?"?":"&")+"X-Algolia-API-Key="+this.apiKey,t+="&X-Algolia-Application-Id="+this.applicationID,this.userToken&&(t+="&X-Algolia-UserToken="+encodeURIComponent(this.userToken)),this.tagFilters&&(t+="&X-Algolia-TagFilters="+encodeURIComponent(this.tagFilters)),t+="&X-Algolia-Agent="+encodeURIComponent(this._ua);for(var i=0;i<this.extraHeaders.length;++i)t+="&"+this.extraHeaders[i].key+"="+this.extraHeaders[i].value;this.options.angular.$http({url:t,method:e.method,data:n,cache:!1,timeout:this.requestTimeoutInMs*(e.successiveRetryCount+1)}).then(function(t){e.callback(!1,!0,t.data)},function(t){0!==t.status&&(400==t.status||403===t.status||404===t.status)?e.callback(!1,!1,t.data):e.callback(!0,!1,t.data)})},_makejQueryRequestByHost:function(i,r){var t=null;this._isUndefined(r.body)||(t=JSON.stringify(r.body)),i+=(-1===i.indexOf("?")?"?":"&")+"X-Algolia-API-Key="+this.apiKey,i+="&X-Algolia-Application-Id="+this.applicationID,this.userToken&&(i+="&X-Algolia-UserToken="+encodeURIComponent(this.userToken)),this.tagFilters&&(i+="&X-Algolia-TagFilters="+encodeURIComponent(this.tagFilters)),i+="&X-Algolia-Agent="+encodeURIComponent(this._ua);for(var e=0;e<this.extraHeaders.length;++e)i+="&"+this.extraHeaders[e].key+"="+this.extraHeaders[e].value;this.options.jQuery.$.ajax(i,{type:r.method,timeout:this.requestTimeoutInMs*(r.successiveRetryCount+1),dataType:"json",data:t,error:function(t,e,n){"timeout"===e?r.callback(!0,!1,{message:"Timeout - Could not connect to endpoint "+i}):400===t.status||403===t.status||404===t.status?r.callback(!1,!1,t.responseJSON):r.callback(!0,!1,{message:n})},success:function(t,e,n){r.callback(!1,!0,t)}})},_makeJsonpRequestByHost:function(t,i){if("GET"===i.method){var r=!1,o=!1;AlgoliaSearch.JSONPCounter+=1;var e,n,a,s=document.getElementsByTagName("head")[0],l=document.createElement("script"),u="algoliaJSONP_"+AlgoliaSearch.JSONPCounter,c=!1;window[u]=function(t){try{delete window[u]}catch(t){window[u]=void 0}var e,n;o||(e=t&&t.message&&t.status||t&&200,r=!0,i.callback(!(n=200===e)&&400!==e&&403!==e&&404!==e,n,t))},l.type="text/javascript",t+="?callback="+u+"&X-Algolia-Application-Id="+this.applicationID+"&X-Algolia-API-Key="+this.apiKey,this.tagFilters&&
1(t+="&X-Algolia-TagFilters="+encodeURIComponent(this.tagFilters)),this.userToken&&(t+="&X-Algolia-UserToken="+encodeURIComponent(this.userToken)),t+="&X-Algolia-Agent="+encodeURIComponent(this._ua);for(var p=0;p<this.extraHeaders.length;++p)t+="&"+this.extraHeaders[p].key+"="+this.extraHeaders[p].value;i.body&&i.body.params&&(t+="&"+i.body.params),e=setTimeout(function(){o=!0,a(),i.callback(!0,!1,{message:"Timeout - Failed to load JSONP script."})},this.requestTimeoutInMs*(i.successiveRetryCount+1)),n=function(){c||o||(c=!0,a(),r||i.callback(!0,!1,{message:"Failed to load JSONP script."}))},a=function(){clearTimeout(e),l.onload=null,l.onreadystatechange=null,l.onerror=null,s.removeChild(l);try{delete window[u],delete window[u+"_loaded"]}catch(t){window[u]=null,window[u+"_loaded"]=null}},l.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||n()},l.onload=function(){n()},l.onerror=function(){c||o||(a(),i.callback(!0,!1,{message:"Failed to load JSONP script."}))},l.async=!0,l.defer=!0,l.src=t,s.appendChild(l)}else i.callback(!0,!1,{message:"Method "+i.method+" "+t+" is not supported by JSONP."})},_makeXmlHttpRequestByHost:function(t,i){if(this._support.cors||this._support.hasXDomainRequest){var r,o,e,n=null,a=new(this._support.cors?XMLHttpRequest:XDomainRequest),s=this;this._isUndefined(i.body)||(n=JSON.stringify(i.body)),t+=(-1===t.indexOf("?")?"?":"&")+"X-Algolia-API-Key="+this.apiKey,t+="&X-Algolia-Application-Id="+this.applicationID,this.userToken&&(t+="&X-Algolia-UserToken="+encodeURIComponent(this.userToken)),this.tagFilters&&(t+="&X-Algolia-TagFilters="+encodeURIComponent(this.tagFilters)),t+="&X-Algolia-Agent="+encodeURIComponent(this._ua);for(var l=0;l<this.extraHeaders.length;++l)t+="&"+this.extraHeaders[l].key+"="+this.extraHeaders[l].value;e=function(){s._support.timeout||(o=!0,a.abort()),i.callback(!0,!1,{message:"Timeout - Could not connect to endpoint "+t})},a instanceof XMLHttpRequest?a.open(i.method,t,!0):a.open(i.method,t),this._support.cors&&null!==n&&"GET"!==i.method&&a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.onload=function(){if(!o){s._support.timeout||clearTimeout(r);var t=null;try{t=JSON.parse(a.responseText)}catch(t){}var e=a.status||t&&t.message&&t.status||t&&200,n=200===e||201===e;i.callback(!n&&400!==e&&403!==e&&404!==e,n,t)}},a.onprogress=function(){},this._support.timeout?(a.timeout=this.requestTimeoutInMs*(i.successiveRetryCount+1),a.ontimeout=e):r=setTimeout(e,this.requestTimeoutInMs*(i.successiveRetryCount+1)),a.onerror=function(t){o||(s._support.timeout||clearTimeout(r),i.callback(!0,!1,{message:"Could not connect to host",error:t}))},a.send(n)}else i.callback(!1,!1,{message:"CORS not supported"})},_getSearchParams:function(t,e){if(this._isUndefined(t)||null===t)return e;for(var n in t)null!==n&&t.hasOwnProperty(n)&&(e+=0===e.length?"?":"&",e+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(t[n])?JSON.stringify(t[n]):t[n]));return e},_isUndefined:function(t){return void 0===t},_support:{hasXMLHttpRequest:"XMLHttpRequest"in window,hasXDomainRequest:"XDomainRequest"in window,cors:"withCredentials"in new XMLHttpRequest,timeout:"timeout"in new XMLHttpRequest}},AlgoliaSearch.prototype.Index.prototype={clearCache:function(){this.cache={}},addObject:function(t,e,n){return this.as._isUndefined(n)?this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:t,callback:e}):this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(n),body:t,callback:e})},addObjects:function(t,e){for(var n={requests:[]},i=0;i<t.length;++i){var r={action:"addObject",body:t[i]};n.requests.push(r)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:n,callback:e})},getObject:function(t,e,n){"[object Array]"!==Object.prototype.toString.call(e)||n||(n=e,e=null);var i="";if(!this.as._isUndefined(n))for(var i="?attributes=",r=0;r<n.length;++r)0!==r&&(i+=","),i+=n[r];return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(t)+i,callback:e})},partialUpdateObject:function(t,e){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(t.objectID)+"/partial",body:t,callback:e})},partialUpdateObjects:function(t,e){for(var n={requests:[]},i=0;i<t.length;++i){var r={action:"partialUpdateObject",objectID:t[i].objectID,body:t[i]};n.requests.push(r)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:n,callback:e})},saveObject:function(t,e){return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(t.objectID),body:t,callback:e})},saveObjects:function(t,e){for(var n={requests:[]},i=0;i<t.length;++i){var r={action:"updateObject",objectID:t[i].objectID,body:t[i]};n.requests.push(r)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:n,callback:e})},deleteObject:function(t,e){if(null!==t&&0!==t.length)return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(t),callback:e});e(!1,{message:"empty objectID"})},search:function(t,e,n,i){"function"==typeof(t=null==t?"":t)&&(e=t,t=""),"object"!=typeof e||!this.as._isUndefined(n)&&n||(n=e,e=null);var r=this,o="query="+encodeURIComponent(t);if(this.as._isUndefined(n)||null===n||(o=this.as._getSearchParams(n,o)),window.clearTimeout(r.onDelayTrigger),this.as._isUndefined(i)||null===i||!(0<i))return this._search(o,e);i=window.setTimeout(function(){r._search(o,e)},i);r.onDelayTrigger=i},browse:function(t,e,n){0<+e&&(this.as._isUndefined(n)||!n)&&(n=e,e=null);t="?page="+t;return this.as._isUndefined(n)||(t+="&hitsPerPage="+n),this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse"+t,callback:e})}
1,ttAdapter:function(e){var i=this;return function(t,n){i.search(t,function(t,e){n(t?e.hits:e&&e.message)},e)}},waitTask:function(n,i){var r=this;return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/task/"+n,callback:function(t,e){t?"published"===e.status?i(!0,e):setTimeout(function(){r.waitTask(n,i)},100):i(!1,e)}})},clearIndex:function(t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/clear",callback:t})},getSettings:function(t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/settings",callback:t})},setSettings:function(t,e){return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/settings",body:t,callback:e})},listUserKeys:function(t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",callback:t})},getUserKeyACL:function(t,e){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+t,callback:e})},deleteUserKey:function(t,e){return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+t,callback:e})},addUserKey:function(t,e){var n={};return n.acl=t,this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:n,callback:e})},addUserKeyWithValidity:function(t,e,n,i,r){var o={};return o.acl=t,o.validity=e,o.maxQueriesPerIPPerHour=n,o.maxHitsPerQuery=i,this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:o,callback:r})},_search:function(i,r){var t={params:i};if(null!==this.as.jsonp)return this.as.jsonp?this.as._jsonRequest({cache:this.cache,method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:t,callback:r}):this.as._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:t,callback:r});var o=this;return this.as._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:t,callback:function(t,e){var n=e&&e.status;t||n&&4===Math.floor(n/100)||1===Math.floor(n/100)?(o.as.jsonp=!1,r&&r(t,e)):(o.as.jsonp=!0,o._search(i,r))}})},as:null,indexName:null,typeAheadArgs:null,typeAheadValueOption:null},function(){function i(t){t=t||{};for(var e=1;e<arguments.length;e++)if(arguments[e])for(var n in arguments[e])arguments[e].hasOwnProperty(n)&&(t[n]=arguments[e][n]);return t}window.AlgoliaSearchHelper=function(t,e,n){this.init(t,e,i({},{facets:[],disjunctiveFacets:[],hitsPerPage:20,defaultFacetFilters:[]},n))},AlgoliaSearchHelper.prototype={init:function(t,e,n){this.client=t,this.index=e,this.options=n,this.page=0,this.refinements={},this.excludes={},this.disjunctiveRefinements={},this.extraQueries=[]},search:function(t,e,n){this.q=t,this.searchCallback=e,this.searchParams=n||{},this.page=this.page||0,this.refinements=this.refinements||{},this.disjunctiveRefinements=this.disjunctiveRefinements||{},this._search()},clearRefinements:function(){this.disjunctiveRefinements={},this.refinements={}},addDisjunctiveRefine:function(t,e){this.disjunctiveRefinements=this.disjunctiveRefinements||{},this.disjunctiveRefinements[t]=this.disjunctiveRefinements[t]||{},this.disjunctiveRefinements[t][e]=!0},removeDisjunctiveRefine:function(e,n){this.disjunctiveRefinements=this.disjunctiveRefinements||{},this.disjunctiveRefinements[e]=this.disjunctiveRefinements[e]||{};try{delete this.disjunctiveRefinements[e][n]}catch(t){this.disjunctiveRefinements[e][n]=void 0}},addRefine:function(t,e){e=t+":"+e;this.refinements=this.refinements||{},this.refinements[e]=!0},removeRefine:function(t,e){e=t+":"+e;this.refinements=this.refinements||{},this.refinements[e]=!1},addExclude:function(t,e){e=t+":-"+e;this.excludes=this.excludes||{},this.excludes[e]=!0},removeExclude:function(t,e){e=t+":-"+e;this.excludes=this.excludes||{},this.excludes[e]=!1},toggleExclude:function(t,e){for(var n=0;n<this.options.facets.length;++n)if(this.options.facets[n]==t){var i=t+":-"+e;return this.excludes[i]=!this.excludes[i],this.page=0,this._search(),!0}return!1},toggleRefine:function(t,e){for(var n=0;n<this.options.facets.length;++n)if(this.options.facets[n]==t){var i=t+":"+e;return this.refinements[i]=!this.refinements[i],this.page=0,this._search(),!0}this.disjunctiveRefinements[t]=this.disjunctiveRefinements[t]||{};for(var r=0;r<this.options.disjunctiveFacets.length;++r)if(this.options.disjunctiveFacets[r]==t)return this.disjunctiveRefinements[t][e]=!this.disjunctiveRefinements[t][e],this.page=0,this._search(),!0;return!1},isRefined:function(t,e){return!!this.refinements[t+":"+e]||!(!this.disjunctiveRefinements[t]||!this.disjunctiveRefinements[t][e])},isExcluded:function(t,e){return!!this.excludes[t+":-"+e]},nextPage:function(){this._gotoPage(this.page+1)},previousPage:function(){0<this.page&&this._gotoPage(this.page-1)},gotoPage:function(t){this._gotoPage(t)},setPage:function(t){this.page=t},setIndex:function(t){this.index=t},getIndex:function(){return this.index},clearExtraQueries:function(){this.extraQueries=[]},addExtraQuery:function(t,e,n){this.extraQueries.push({index:t,query:e,params:n||{}})},_gotoPage:function(t){this.page=t,this._search()},_search:function(){this.client.startQueriesBatch(),this.client.addQueryInBatch(this.index,this.q,this._getHitsSearchParams());for(var c=[],p={},h=0,h=0;h<this.options.disjunctiveFacets.length;++h){var t=this.options.disjunctiveFacets[h];this._hasDisjunctiveRefinements(t)?c.push(t):p[t]=!0}for(h=0;h<c.length;++h)this.client.addQueryInBatch(this.index,this.q,this._getDisjunctiveFacetSearchParams(c[h]));for(h=0;h<this.extraQueries.length;++h)this.client.addQueryInBatch(this.extraQueries[h].index,this.extraQueries[h].query,this.extraQueries[h].params);var d=this;this.client.sendQueriesBatch(function(t,e){if(t){var n,i,r,o=e.results[0];for(r in o.disjunctiveFacets=o.disjunctiveFacets||{},o.facets_stats=o.facets_stats||{},p)if(o.facets[r]&&!o.disjunctiveFacets[r]){o.disjunctiveFacets[r]=o.facets[r];try{delete o.facets[r]}catch(i){o.facets[r]=void 0}}for(h=0;h<c.length;++h){for(var a in e.results[h+1].facets)if(o.disjunctiveFacets[a]=e.results[h+1].facets[a],d.disjunctiveRefinements[a])for(var s in d.disjunctiveRefinements[a])!o.disjunctiveFacets[a][s]&&d.disjunctiveRefinements[a][s]&&(o.disjunctiveFacets[a][s]=0);for(var l in e.results[h+1].facets_stats)o.facets_stats[l]=e.results[h+1].facets_stats[l]}
1for(n in o.facetStats=o.facets_stats,d.excludes)d.excludes[n]&&(i=n.indexOf(":-"),r=n.slice(0,i),s=n.slice(i+2),o.facets[r]=o.facets[r]||{},o.facets[r][s]||(o.facets[r][s]=0));if(0===d.extraQueries.length)d.searchCallback(!0,o);else{var u={results:[o]};for(h=0;h<d.extraQueries.length;++h)u.results.push(e.results[1+c.length+h]);d.searchCallback(!0,u)}}else d.searchCallback(!1,e)})},_getHitsSearchParams:function(){for(var t=[],e=0,e=0;e<this.options.facets.length;++e)t.push(this.options.facets[e]);for(e=0;e<this.options.disjunctiveFacets.length;++e){var n=this.options.disjunctiveFacets[e];this._hasDisjunctiveRefinements(n)||t.push(n)}return i({},{hitsPerPage:this.options.hitsPerPage,page:this.page,facets:t,facetFilters:this._getFacetFilters()},this.searchParams)},_getDisjunctiveFacetSearchParams:function(t){return i({},this.searchParams,{hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],facets:t,facetFilters:this._getFacetFilters(t),analytics:!1})},_hasDisjunctiveRefinements:function(t){for(var e in this.disjunctiveRefinements[t])if(this.disjunctiveRefinements[t][e])return!0;return!1},_getFacetFilters:function(t){var e,n,i=[];if(this.options.defaultFacetFilters)for(var r=0;r<this.options.defaultFacetFilters.length;++r)i.push(this.options.defaultFacetFilters[r]);for(e in this.refinements)this.refinements[e]&&i.push(e);for(e in this.excludes)this.excludes[e]&&i.push(e);for(n in this.disjunctiveRefinements)if(n!=t){var o,a=[];for(o in this.disjunctiveRefinements[n])this.disjunctiveRefinements[n][o]&&a.push(n+":"+o);0<a.length&&i.push(a)}return i}}}(),window.AlgoliaPlaces=function(t,e){this.init(t,e)},AlgoliaPlaces.prototype={init:function(t,e){this.client=new AlgoliaSearch(t,e,"http",!0,["places-1.algolia.io","places-2.algolia.io","places-3.algolia.io"]),this.cache={}},search:function(t,e,n){t="query="+encodeURIComponent(t),t={params:t=!this.client._isUndefined(n)&&null!=n?this.client._getSearchParams(n,t):t,apiKey:this.client.apiKey,appID:this.client.applicationID};this.client._jsonRequest({cache:this.cache,method:"POST",url:"/1/places/query",body:t,callback:e,removeCustomHTTPHeaders:!0})}},"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return t<10?"0"+t:t}var cx,escapable,gap,indent,meta,rep;function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var n,i,r,o,a,s=gap,l=e[t];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),typeof(l="function"==typeof rep?rep.call(e,t,l):l)){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(l)){for(o=l.length,n=0;n<o;n+=1)a[n]=str(n,l)||"null";return r=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,r}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof rep[n]&&(r=str(i=rep[n],l))&&a.push(quote(i)+(gap?": ":":")+r);else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(r=str(i,l))&&a.push(quote(i)+(gap?": ":":")+r);return r=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,r}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}),"function"!=typeof JSON.stringify&&(escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,n){var i;if(indent=gap="","number"==typeof n)for(i=0;i<n;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if((rep=e)&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,JSON.parse=function(text,reviver){var j;function walk(t,e){var n,i,r=t[e];if(r&&"object"==typeof r)for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&
1(void 0!==(i=walk(r,n))?r[n]=i:delete r[n]);return reviver.call(t,e,r)}if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),angular.module("middle",[]).directive("middle",function(){return{template:'<div class="middle-wrapper" ng-transclude></div>',restrict:"A",transclude:!0,link:function(t,e,n){}}}),function(){"use strict";angular.module("vcRecaptcha",[])}(),function(i){"use strict";i.module("vcRecaptcha").service("vcRecaptchaService",["$window","$q",function(t,r){var o,e=r.defer(),a=e.promise;function n(){if(!o)throw new Error("reCaptcha has not been loaded yet.")}return t.vcRecapthaApiLoaded=function(){o=t.grecaptcha,e.resolve(o)},i.isDefined(t.grecaptcha)&&t.vcRecapthaApiLoaded(),{create:function(e,t,n,i){return i.callback=n,i.sitekey=t,(o?r.when(o):a).then(function(t){return t.render(e,i)})},reload:function(t){n(),o.reset(t)},getResponse:function(t){return n(),o.getResponse(t)}}}])}(angular),function(){"use strict";function l(){throw new Error('You need to set the "key" attribute to your public reCaptcha key. If you don\'t have a key, please get one from https://www.google.com/recaptcha/admin/create')}angular.module("vcRecaptcha").directive("vcRecaptcha",["$timeout","vcRecaptchaService",function(a,s){return{restrict:"A",require:"?^^form",scope:{response:"=?ngModel",key:"=",theme:"=?",onCreate:"&",onSuccess:"&",onExpire:"&"},link:function(e,n,i,r){i.hasOwnProperty("key")||l(),e.widgetId=null;var o=e.$watch("key",function(t){t&&(40!==t.length&&l(),s.create(n[0],t,function(t){a(function(){r&&r.$setValidity("recaptcha",!0),e.response=t,e.onSuccess({response:t,widgetId:e.widgetId})}),a(function(){r&&r.$setValidity("recaptcha",!1),e.response="",e.onExpire({widgetId:e.widgetId})},12e4)},{theme:e.theme||i.theme||null}).then(function(t){r&&r.$setValidity("recaptcha",!1),e.widgetId=t,e.onCreate({widgetId:t})}),o())})}}}])}(),function(){var e={handler:"&customHandler",socialWidth:"@",socialHeight:"@"};angular.module("socialLinks",[]).factory("socialLinker",["$window","$location",function(s,l){return function(a){return function(n,i,e){var t,r="status=no, width="+(n.socialWidth||640)+", height="+(n.socialHeight||480)+", resizable=yes, toolbar=no, menubar=no, scrollbars=no, location=no, directories=no",o=function(){return e.customUrl||l.absUrl()};return e.$observe("customUrl",function(){var t=a(n,o());if("A"===i[0].nodeName&&(null==e.href||""===e.href))return i.attr("href",t)}),i.attr("rel","nofollow"),t=function(t){return t.preventDefault(),t=a(n,o()),s.open(t,"popupwindow",r).focus()},null!=e.customHandler?i.on("click",t=function(t){var e=a(n,o());return i.attr("href",e),n.handler({$event:t,$url:e})}):i.on("click",t),n.$on("$destroy",function(){return i.off("click",t)})}}}]).directive("socialFacebook",["socialLinker",function(t){return{restrict:"ACEM",scope:e,link:t(function(t,e){var n=["https://facebook.com/sharer.php?"];return n.push("u="+encodeURIComponent(e)),n.join("")})}}]).directive("socialTwitter",["socialLinker",function(t){return{restrict:"ACEM",scope:angular.extend({status:"@status"},e),link:t(function(t,e){return t.status||(t.status="Check this out! - "+e),"https://twitter.com/intent/tweet?text="+encodeURIComponent(t.status)})}}]).directive("socialGplus",["socialLinker",function(t){return{restrict:"ACEM",scope:e,link:t(function(t,e){return"https://plus.google.com/share?url="+encodeURIComponent(e)})}}]).directive("socialPinterest",["socialLinker",function(t){return{restrict:"ACEM",scope:angular.extend({media:"@media",description:"@description"},e),link:t(function(t,e){return"http://pinterest.com/pin/create/button/?url="+encodeURIComponent(e)+"&amp;media="+encodeURIComponent(t.media)+"&amp;description="+encodeURIComponent(t.description)})}}]).directive("socialStumbleupon",["socialLinker",function(t){return{restrict:"ACEM",scope:e,link:t(function(t,e){return"https://stumbleupon.com/submit?url="+encodeURIComponent(e)})}}]).directive("socialLinkedin",["socialLinker",function(t){return{restrict:"ACEM",scope:e,link:t(function(t,e){return"https://linkedin.com/shareArticle?url="+encodeURIComponent(e)})}}]).directive("socialReddit",["socialLinker",function(t){return{restrict:"ACEM",scope:e,link:t(function(t,e){return"https://www.reddit.com/submit?url="+encodeURIComponent(e)})}}]).directive("socialVk",["socialLinker",function(t){return{restrict:"ACEM",scope:e,link:t(function(t,e){return"http://vkontakte.ru/share.php?url="+encodeURIComponent(e)})}}]).directive("socialOk",["socialLinker",function(t){return{restrict:"ACEM",scope:e,link:t(function(t,e){return"http://www.odnoklassniki.ru/dk?st.cmd=addShare&st._surl="+encodeURIComponent(e)})}}]).directive("socialXing",["socialLinker",function(t){return{restrict:"ACEM",scope:e,link:t(function(t,e){return"https://www.xing.com/spi/shares/new?url="+encodeURIComponent(e)})}}])}.call(this),"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(R,j){"use strict";var N,L=R.isDefined,F=R.isFunction,U=R.isString,q=R.isObject,_=R.isArray,H=R.forEac
1h,B=R.extend,V=R.copy,f=R.toJson;function W(t,e){return B(new(B(function(){},{prototype:t})),e)}function $(n){return H(arguments,function(t){t!==n&&H(t,function(t,e){n.hasOwnProperty(e)||(n[e]=t)})}),n}function z(t){if(Object.keys)return Object.keys(t);var n=[];return H(t,function(t,e){n.push(e)}),n}function X(t,e,n){if(Array.prototype.indexOf)return t.indexOf(e,Number(n)||0);var i=t.length>>>0,r=Number(n)||0;for((r=r<0?Math.ceil(r):Math.floor(r))<0&&(r+=i);r<i;r++)if(r in t&&t[r]===e)return r;return-1}function Y(t,e,n,i){var r,o,a=function(t,e){var n,i=[];for(n in t.path){if(t.path[n]!==e.path[n])break;i.push(t.path[n])}return i}(n,i),s={},l=[];for(o in a)if(a[o]&&a[o].params&&(r=z(a[o].params)).length)for(var u in r)0<=X(l,r[u])||(l.push(r[u]),s[r[u]]=t[r[u]]);return B({},s,e)}function c(t,e,n){if(!n)for(var i in n=[],t)n.push(i);for(var r=0;r<n.length;r++){var o=n[r];if(t[o]!=e[o])return!1}return!0}function G(t,e){var n={};return H(t,function(t){n[t]=e[t]}),n}function J(e){var n={},t=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return H(t,function(t){t in e&&(n[t]=e[t])}),n}function w(t){var e,n={},i=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(e in t)-1==X(i,e)&&(n[e]=t[e]);return n}function g(t,n){var i=_(t),r=i?[]:{};return H(t,function(t,e){n(t,e)&&(r[i?r.length:e]=t)}),r}function y(t,n){var i=_(t)?[]:{};return H(t,function(t,e){i[e]=n(t,e)}),i}function t(m,v){var t={},l=[],y=t,b=B(m.when(t),{$$promises:t,$$values:t});this.study=function(r){if(!q(r))throw new Error("'invocables' must be an object");var a=z(r||{}),f=[],o=[],s={};function g(t){return q(t)&&t.then&&t.$$promises}return H(r,function e(t,n){if(2!==s[n]){if(o.push(n),1===s[n])throw o.splice(0,X(o,n)),new Error("Cyclic dependency: "+o.join(" -> "));var i;s[n]=1,U(t)?f.push(n,[function(){return v.get(t)}],l):(i=v.annotate(t),H(i,function(t){t!==n&&r.hasOwnProperty(t)&&e(r[t],t)}),f.push(n,t,i)),o.pop(),s[n]=2}}),r=o=s=null,function(s,t,l){if(g(s)&&l===j&&(l=t,t=s,s=null),s){if(!q(s))throw new Error("'locals' must be an object")}else s=y;if(t){if(!g(t))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else t=b;var e=m.defer(),u=e.promise,c=u.$$promises={},p=B({},s),n=1+f.length/3,i=!1;function h(){--n||(i||$(p,t.$$values),u.$$values=p,u.$$promises=u.$$promises||!0,delete u.$$inheritedValues,e.resolve(p))}function d(t){u.$$failure=t,e.reject(t)}if(L(t.$$failure))return d(t.$$failure),u;t.$$inheritedValues&&$(p,w(t.$$inheritedValues,a)),B(c,t.$$promises),t.$$values?(i=$(p,w(t.$$values,a)),u.$$
1inheritedValues=w(t.$$values,a),h()):(t.$$inheritedValues&&(u.$$inheritedValues=w(t.$$inheritedValues,a)),t.then(h,d));for(var r=0,o=f.length;r<o;r+=3)s.hasOwnProperty(f[r])?h():function(e,t,n){var i=m.defer(),r=0;function o(t){i.reject(t),d(t)}H(n,function(e){c.hasOwnProperty(e)&&!s.hasOwnProperty(e)&&(r++,c[e].then(function(t){p[e]=t,--r||a()},o))}),r||a();function a(){if(!L(u.$$failure))try{i.resolve(v.invoke(t,l,p)),i.promise.then(function(t){p[e]=t,h()},o)}catch(t){o(t)}}c[e]=i.promise}(f[r],f[r+1],f[r+2]);return u}},this.resolve=function(t,e,n,i){return this.study(t)(e,n,i)}}function e(n,i,r){this.fromConfig=function(t,e,n){return L(t.template)?this.fromString(t.template,e):L(t.templateUrl)?this.fromUrl(t.templateUrl,e):L(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},this.fromString=function(t,e){return F(t)?t(e):t},this.fromUrl=function(t,e){return null==(t=F(t)?t(e):t)?null:n.get(t,{cache:i,headers:{Accept:"text/html"}}).then(function(t){return t.data})},this.fromProvider=function(t,e,n){return r.invoke(t,null,n||{params:e})}}function l(a,s,t){s=B({params:{}},q(s)?s:{});var e,n,i,r=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,o=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,l="^",u=0,c=this.segments=[],p=t?t.params:{},h=this.params=t?t.params.$$new():new N.ParamSet,d=[];function f(t,e,n,i){if(d.push(t),p[t])return p[t];if(!/^\w+([-.]+\w+)*(?:\[\])?$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+a+"'");if(h[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+a+"'");return h[t]=new N.Param(t,e,n,i),h[t]}function g(t,e,n,i){var r=["",""],o=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return o;switch(n){case!1:r=["(",")"+(i?"?":"")];break;case!0:o=o.replace(/\/$/,""),r=["(?:/(",")|/)?"];break;default:r=["("+n+"|",")?"]}return o+r[0]+e+r[1]}function m(t,e){var n,i=t[2]||t[3],r=s.params[i],o=a.substring(u,t.index),t=e?t[4]:t[4]||("*"==t[1]?".*":null);return{id:i,regexp:t,segment:o,type:n=t?N.type(t)||W(N.type("string"),{pattern:new RegExp(t,s.caseInsensitive?"i":j)}):n,cfg:r}}for(this.source=a;(e=r.exec(a))&&!(0<=(n=m(e,!1)).segment.indexOf("?"));)i=f(n.id,n.type,n.cfg,"path"),l+=g(n.segment,i.type.pattern.source,i.squash,i.isOptional),c.push(n.segment),u=r.lastIndex;t=(y=a.substring(u)).indexOf("?");if(0<=t){var v=this.sourceSearch=y.substring(t),y=y.substring(0,t);if(this.sourcePath=a.substring(0,u+t),0<v.length)for(u=0;e=o.exec(v);)i=f((n=m(e,!0)).id,n.type,n.cfg,"search"),u=r.lastIndex}else this.sourcePath=a,this.sourceSearch="";l+=g(y)+(!1===s.strict?"/?":"")+"$",c.push(y),this.regexp=new RegExp(l,s.caseInsensitive?"i":j),this.prefix=c[0],this.$$paramNames=d}function m(t){B(this,t)}function u(){N=this;var n=!1,i=!0,p=!1;function t(t){return null!=t?t.toString().replace(/~/g,"~~").replace(/\//g,"~2F"):t}var h,d={},r=!0,o=[],e={string:{encode:t,decode:function(t){return null!=t?t.toString().replace(/~2F/g,"/").replace(/~~/g,"~"):t},is:function(t){return null==t||!L(t)||"string"==typeof t},pattern:/[^/]*/},int:{encode:t,decode:function(t){return parseInt(t,10)},is:function(t){return L(t)&&this.decode(t.toString())===t},pattern:/\d+/},bool:{encode:function(t){return t?1:0},decode:function(t){return 0!==parseInt(t,10)},is:function(t){return!0===t||!1===t},pattern:/0|1/},date:{encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):j},decode:function(t){if(this.is(t))return t;t=this.capture.exec(t);return t?new Date(t[1],t[2]-1,t[3]):j},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return this.is(t)&&this.is(e)&&t.toISOString()===e.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:R.toJson,decode:R.fromJson,is:R.isObject,equals:R.equals,pattern:/[^/]*/},any:{encode:R.identity,decode:R.identity,equals:R.equals,pattern:/.*/}};function f(t){return F(t)||_(t)&&F(t[t.length-1])}function a(){for(;o.length;){var t=o.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");R.extend(d[t.name],h.invoke(t.def))}}function s(t){B(this,t||{})}u.$$getDefaultValue=function(t){if(!f(t.value))return t.value;if(!h)throw new Error("Injectable functions cannot be called at configuration time");return h.invoke(t.value)},this.caseInsensitive=function(t){return n=L(t)?t:n},this.strictMode=function(t){return i=L(t)?t:i},this.defaultSquashPolicy=function(t){if(!L(t))return p;if(!0!==t&&!1!==t&&!U(t))throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");return p=t},this.compile=function(t,e){return new l(t,B({strict:i,caseInsensitive:n},e))},this.isMatcher=function(n){if(!q(n))return!1;var i=!0;return H(l.prototype,function(t,e){F(t)&&(i=i&&L(n[e])&&F(n[e]))}),i},this.type=function(t,e,n){if(!L(e))return d[t];if(d.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return d[t]=new m(B({name:t},e)),n&&(o.push({name:t,def:n}),r||a()),this},H(e,function(t,e){d[e]=new m(B({name:e},t))}),d=W(d,{}),this.$get=["$injector",function(t){return h=t,r=!1,a(),H(e,function(t,e){d[e]||(d[e]=new m(t))}),this}
1],this.Param=function(i,t,r,e){var o=this;r=function(t){var e=q(t)?z(t):[];-1===X(e,"value")&&-1===X(e,"type")&&-1===X(e,"squash")&&-1===X(e,"array")&&(t={value:t});return t.$$fn=f(t.value)?t.value:function(){return t.value},t}(r),t=function(t,e,n){if(t.type&&e)throw new Error("Param '"+i+"' has two type configurations.");return e||(t.type?R.isString(t.type)?d[t.type]:t.type instanceof m?t.type:new m(t.type):"config"===n?d.any:d.string)}(r,t,e);var n,a,s=(n={array:"search"===e&&"auto"},a=i.match(/\[\]$/)?{array:!0}:{},B(n,a,r).array);"string"!==(t=s?t.$asArray(s,"search"===e):t).name||s||"path"!==e||r.value!==j||(r.value="");var l=r.value!==j,u=function(t,e){t=t.squash;if(!e||!1===t)return!1;if(!L(t)||null==t)return p;if(!0===t||U(t))return t;throw new Error("Invalid squash policy: '"+t+"'. Valid policies: false, true, or arbitrary string")}(r,l),c=function(t,e,n,i){var r,e=[{from:"",to:n||e?j:""},{from:null,to:n||e?j:""}];t=_(t.replace)?t.replace:[],U(i)&&t.push({from:i,to:j});return r=y(t,function(t){return t.from}),g(e,function(t){return-1===X(r,t.from)}).concat(t)}(r,s,l,u);B(this,{id:i,type:t,location:e,array:s,squash:u,replace:c,isOptional:l,value:function(t){var e,n,i;return e=t,t=(i=y(g(o.replace,(n=e,function(t){return t.from===n})),function(t){return t.to})).length?i[0]:e,L(t)?o.type.$normalize(t):function(){if(!h)throw new Error("Injectable functions cannot be called at configuration time");var t=h.invoke(r.$$fn);if(null!==t&&t!==j&&!o.type.is(t))throw new Error("Default value ("+t+") for parameter '"+o.id+"' is not an instance of Type ("+o.type.name+")");return t}()},dynamic:j,config:r,toString:function(){return"{Param:"+i+" "+t+" squash: '"+u+"' optional: "+l+"}"}})},s.prototype={$$new:function(){return W(this,B(new s,{$$parent:this}))},$$keys:function(){for(var e=[],t=[],n=this,i=z(s.prototype);n;)t.push(n),n=n.$$parent;return t.reverse(),H(t,function(t){H(z(t),function(t){-1===X(e,t)&&-1===X(i,t)&&e.push(t)})}),e},$$values:function(e){var n={},i=this;return H(i.$$keys(),function(t){n[t]=i[t].value(e&&e[t])}),n},$$equals:function(i,r){var o=!0,a=this;return H(a.$$keys(),function(t){var e=i&&i[t],n=r&&r[t];a[t].type.equals(e,n)||(o=!1)}),o},$$validates:function(t){for(var e,n,i,r=this.$$keys(),o=0;o<r.length&&(e=this[r[o]],(n=t[r[o]])!==j&&null!==n||!e.isOptional);o++){if(i=e.type.$normalize(n),!e.type.is(i))return!1;if(i=e.type.encode(i),R.isString(i)&&!e.type.pattern.exec(i))return!1}return!0},$$parent:j},this.ParamSet=s}function n(c,s){var p,h=[],d=null,f=!1;function l(t,e,n){if(!n)return!1;n=t.invoke(e,e,{$match:n});return!L(n)||n}function t(a,t,r,e,s){var o,l=e.baseHref(),n=a.url();function i(t){if(!t||!t.defaultPrevented){o&&a.url();o=j;for(var e=h.length,n=0;n<e;n++)if(i(h[n]))return;d&&i(d)}function i(t){t=t(r,a);return t&&(U(t)&&a.replace().url(t),1)}}function u(){return p=p||t.$on("$locationChangeSuccess",i)}return f||u(),{sync:function(){i()},listen:u,update:function(t){t?n=a.url():a.url()!==n&&(a.url(n),a.replace())},push:function(t,e,n){t=t.format(e||{});null!==t&&e&&e["#"]&&(t+="#"+e["#"]),a.url(t),o=n&&n.$$avoidResync?a.url():j,n&&n.replace&&a.replace()},href:function(t,e,n){if(!t.validates(e))return null;var i,r=c.html5Mode(),r=(r=R.isObject(r)?r.enabled:r)&&s.history,o=t.format(e);if(n=n||{},null!==(o=!r&&null!==o?"#"+c.hashPrefix()+o:o)&&e&&e["#"]&&(o+="#"+e["#"]),i=o,t=r,e=n.absolute,o="/"===l?i:t?l.slice(0,-1)+i:e?l.slice(1)+i:i,!n.absolute||!o)return o;n=!r&&o?"/":"",r=80===(r=a.port())||443===r?"":":"+r;return[a.protocol(),"://",a.host(),r,n,o].join("")}}}this.rule=function(t){if(!F(t))throw new Error("'rule' must be a function");return h.push(t),this},this.otherwise=function(t){if(U(t)){var e=t;t=function(){return e}}else if(!F(t))throw new Error("'rule' must be a function");return d=t,this},this.when=function(t,e){var r,o=U(e);if(U(t)&&(t=s.compile(t)),!o&&!F(e)&&!_(e))throw new Error("invalid 'handler' in when()");var n,i={matcher:function(n,i){return o&&(r=s.compile(i),i=["$match",function(t){return r.format(t)}]),B(function(t,e){return l(t,i,n.exec(e.path(),e.search()))},{prefix:U(n.prefix)?n.prefix:""})}
1,regex:function(n,i){if(n.global||n.sticky)throw new Error("when() RegExp must not be global or sticky");return o&&(r=i,i=["$match",function(t){return n=t,r.replace(/\$(\$|\d{1,2})/,function(t,e){return n["$"===e?0:Number(e)]});var n}]),B(function(t,e){return l(t,i,n.exec(e.path()))},{prefix:null!=(t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec((t=n).source))?t[1].replace(/\\(.)/g,"$1"):""});var t}},a={matcher:s.isMatcher(t),regex:t instanceof RegExp};for(n in a)if(a[n])return this.rule(i[n](t,e));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(t){f=t=t===j?!0:t},(this.$get=t).$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function i(o,i){var O,P,u={},a={},M="abstract",s={parent:function(t){if(L(t.parent)&&t.parent)return I(t.parent);t=/^(.+)\.[^.]+$/.exec(t.name);return t?I(t[1]):O},data:function(t){return t.parent&&t.parent.data&&(t.data=t.self.data=W(t.parent.data,t.data)),t.data},url:function(t){var e=t.url,n={params:t.params||{}};if(U(e))return"^"==e.charAt(0)?i.compile(e.substring(1),n):(t.parent.navigable||O).url.concat(e,n);if(!e||i.isMatcher(e))return e;throw new Error("Invalid url '"+e+"' in state '"+t+"'")},navigable:function(t){return t.url?t:t.parent?t.parent.navigable:null},ownParams:function(t){var n=t.url&&t.url.params||new N.ParamSet;return H(t.params||{},function(t,e){n[e]||(n[e]=new N.Param(e,null,t,"config"))}),n},params:function(t){var e=J(t.ownParams,t.ownParams.$$keys());return t.parent&&t.parent.params?B(t.parent.params.$$new(),e):new N.ParamSet},views:function(n){var i={};return H(L(n.views)?n.views:{"":n},function(t,e){e.indexOf("@")<0&&(e+="@"+n.parent.name),i[e]=t}),i},path:function(t){return t.parent?t.parent.path.concat(t):[]},includes:function(t){var e=t.parent?B({},t.parent.includes):{};return e[t.name]=!0,e},$delegates:{}};function I(t,e){if(!t)return j;var n=U(t),i=n?t:t.name;if(0===(l=i).indexOf(".")||0===l.indexOf("^")){if(!e)throw new Error("No reference point given for path '"+i+"'");e=I(e);for(var r=i.split("."),o=0,a=r.length,s=e;o<a;o++)if(""!==r[o]||0!==o){if("^"!==r[o])break;if(!s.parent)throw new Error("Path '"+i+"' not valid for state '"+e.n
1ame+"'");s=s.parent}else s=e;r=r.slice(o).join("."),i=s.name+(s.name&&r?".":"")+r}var l=u[i];return!l||!n&&(n||l!==t&&l.self!==t)?j:l}function l(n){var t=(n=W(n,{self:n,resolve:n.resolve||{},toString:function(){return this.name}})).name;if(!U(t)||0<=t.indexOf("@"))throw new Error("State must have a valid name");if(u.hasOwnProperty(t))throw new Error("State '"+t+"' is already defined");var e,i,r=-1!==t.indexOf(".")?t.substring(0,t.lastIndexOf(".")):U(n.parent)?n.parent:q(n.parent)&&U(n.parent.name)?n.parent.name:"";if(r&&!u[r])return e=r,r=n.self,a[e]||(a[e]=[]),void a[e].push(r);for(i in s)F(s[i])&&(n[i]=s[i](n,s.$delegates[i]));return!(u[t]=n)[M]&&n.url&&o.when(n.url,["$match","$stateParams",function(t,e){P.$current.navigable==n&&c(t,e)||P.transitionTo(n,t,{inherit:!0,location:!1})}]),function(t){for(var e=a[t]||[];e.length;)l(e.shift())}(t),n}function t(b,$,w,x,C,k,S,t,e){var T=$.reject(new Error("transition superseded")),E=$.reject(new Error("transition prevented")),D=$.reject(new Error("transition aborted")),A=$.reject(new Error("transition failed"));return O.locals={resolve:null,globals:{$stateParams:{}}},(P={params:{},current:O.self,$current:O,transition:null,reload:function(t){return P.transitionTo(P.current,k,{reload:t||!0,inherit:!1,notify:!0})},go:function(t,e,n){return P.transitionTo(t,e,B({inherit:!0,relative:P.$current},n))}}).transitionTo=function(i,r,o){r=r||{},o=B({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},o||{});var a=P.$current,s=P.params,l=a.path,t=I(i,o.relative),e=r["#"];if(!L(t)){var n={to:i,toParams:r,options:o},u=function(t,e,n,i){if((n=b.$broadcast("$stateNotFound",t,e,n)).defaultPrevented)return S.update(),D;if(!n.retry)return null;if(i.$retry)return S.update(),A;var r=P.transition=$.when(n.retry);return r.then(function(){return r!==P.transition?T:(t.options.$retry=!0,P.transitionTo(t.to,t.toParams,t.options))},function(){return D}),S.update(),r}(n,a.self,s,o);if(u)return u;if(r=n.toParams,t=I(i=n.to,(o=n.options).relative),!L(t)){if(!o.relative)throw new Error("No such state '"+i+"'");throw new Error("Could not resolve '"+i+"' from state '"+o.relative+"'")}}if(t[M])throw new Error("Cannot transition to abstract state '"+i+"'");if(o.inherit&&(r=Y(k,r||{},P.$current,t)),!t.params.$$validates(r))return A;r=t.params.$$values(r);var c=(i=t).path,p=0,h=c[p],d=O.locals,f=[];if(o.reload){if(U(o.reload)||q(o.reload)){if(q(o.reload)&&!o.reload.name)throw new Error("Invalid reload state object");var g=!0===o.reload?l[0]:I(o.reload);if(o.reload&&!g)throw new Error("No such reload state '"+(U(o.reload)?o.reload:o.reload.name)+"'");for(;h&&h===l[p]&&h!==g;)d=f[p]=h.locals,h=c[++p]}}else for(;h&&h===l[p]&&h.ownParams.$$equals(r,s);)d=f[p]=h.locals,h=c[++p];if(function(t,e,n,i,r,o){function a(e,t,n){var i=e.params.$$keys().filter(function(t){return"search"!=e.params[t].location}),i=J.apply({},[e.params].concat(i));return new N.ParamSet(i).$$equals(t,n)}if(!o.reload&&t===n&&(r===n.locals||!1===t.self.reloadOnSearch&&a(n,i,e)))return!0}(i,r,a,s,d,o))return e&&(r["#"]=e),P.params=r,V(P.params,k),V(G(i.params.$$keys(),k),i.locals.globals.$stateParams),o.location&&i.navigable&&i.navigable.url&&(S.push(i.navigable.url,r,{$$avoidResync:!0,replace:"replace"===o.location}),S.update(!0)),P.transition=null,$.when(P.current);if(r=G(i.params.$$keys(),r||{}),e&&(r["#"]=e),o.notify&&b.$broadcast("$stateChangeStart",i.self,r,a.self,s,o).defaultPrevented)return b.$broadcast("$stateChangeCancel",i.self,r,a.self,s),null==P.transition&&S.update(),E;for(var m=$.when(d),v=p;v<c.length;h=c[++v])d=f[v]=W(d),m=function(o,t,e,n,a,s){var l=e?t:G(o.params.$$keys(),t),t={$stateParams:l};a.resolve=C.resolve(o.resolve,t,a.resolve,o);t=[a.resolve.then(function(t){a.globals=t})];n&&t.push(n);return $.all(t).then(function(){var t=[];return H(o.views,function(n,i){var r=n.resolve&&n.resolve!==o.resolve?n.resolve:{};r.$template=[function(){return w.load(i,{view:n,locals:a.globals,params:l,notify:s.notify})||""}],t.push(C.resolve(r,a.globals,a.resolve,o).then(function(t){var e;F(n.controllerProvider)||_(n.controllerProvider)?(e=R.extend({},r,a.globals),t.$$controller=x.invoke(n.controllerProvider,null,e)):t.$$controller=n.controller,t.$$state=o,t.$$controllerAs=n.controllerAs,a[i]=t}))}
1),$.all(t).then(function(){return a.globals})}).then(function(t){return a})}(h,r,h===i,m,d,o);var y=P.transition=m.then(function(){var t,e,n;if(P.transition!==y)return T;for(t=l.length-1;p<=t;t--)(n=l[t]).self.onExit&&x.invoke(n.self.onExit,n.self,n.locals.globals),n.locals=null;for(t=p;t<c.length;t++)(e=c[t]).locals=f[t],e.self.onEnter&&x.invoke(e.self.onEnter,e.self,e.locals.globals);return P.transition!==y?T:(P.$current=i,P.current=i.self,P.params=r,V(P.params,k),P.transition=null,o.location&&i.navigable&&S.push(i.navigable.url,i.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===o.location}),o.notify&&b.$broadcast("$stateChangeSuccess",i.self,r,a.self,s),S.update(!0),P.current)},function(t){return P.transition!==y?T:(P.transition=null,b.$broadcast("$stateChangeError",i.self,r,a.self,s,t).defaultPrevented||S.update(),$.reject(t))});return y},P.is=function(t,e,n){n=I(t,(n=B({relative:P.$current},n||{})).relative);return L(n)?P.$current===n&&(!e||c(n.params.$$values(e),k)):j},P.includes=function(t,e,n){if(n=B({relative:P.$current},n||{}),U(t)&&-1<t.indexOf("*")){if(!function(t){for(var e=t.split("."),n=P.$current.name.split("."),i=0,r=e.length;i<r;i++)"*"===e[i]&&(n[i]="*");return"**"===e[0]&&(n=n.slice(X(n,e[1]))).unshift("**"),"**"===e[e.length-1]&&(n.splice(X(n,e[e.length-2])+1,Number.MAX_VALUE),n.push("**")),e.length==n.length&&n.join("")===e.join("")}(t))return!1;t=P.$current.name}n=I(t,n.relative);return L(n)?!!L(P.$current.includes[n.name])&&(!e||c(n.params.$$values(e),k,z(e))):j},P.href=function(t,e,n){var i=I(t,(n=B({lossy:!0,inherit:!0,absolute:!1,relative:P.$current},n||{})).relative);if(!L(i))return null;n.inherit&&(e=Y(k,e||{},P.$current,i));t=i&&n.lossy?i.navigable:i;return t&&t.url!==j&&null!==t.url?S.href(t.url,G(i.params.$$keys().concat("#"),e||{}),{absolute:n.absolute}):null},P.get=function(t,e){if(0===arguments.length)return y(z(u),function(t){return u[t].self});e=I(t,e||P.$current);return e&&e.self?e.self:null},P}(O=l({name:"",url:"^",views:null,abstract:!0})).navigable=null,this.decorator=function(t,e){if(U(t)&&!L(e))return s[t];if(!F(e)||!U(t))return this;s[t]&&!s.$delegates[t]&&(s.$delegates[t]=s[t]);return s[t]=e,this},this.state=function(t,e){q(t)?e=t:e.name=t;return l(e),this},(this.$get=t).$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function r(){function t(t,i){return{load:function(t,e){var n;return n=(e=B({template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}},e)).view?i.fromConfig(e.view,e.params,e.locals):n}}}(this.$get=t).$inject=["$rootScope","$templateFactory"]}R.module("ui.router.util",["ng"]),R.module("ui.router.router",["ui.router.util"]),R.module("ui.router.state",["ui.router.router","ui.router.util"]),R.module("ui.router",["ui.router.state"]),R.module("ui.router.compat",["ui.router"]),t.$inject=["$q","$injector"],R.module("ui.router.util").service("$resolve",t),e.$inject=["$http","$templateCache","$injector"],R.module("ui.router.util").service("$templateFactory",e),l.prototype.concat=function(t,e){var n={caseInsensitive:N.caseInsensitive(),strict:N.strictMode(),squash:N.defaultSquashPolicy()};return new l(this.sourcePath+t+this.sourceSearch,B(n,e),this)},l.prototype.toString=function(){return this.source},l.prototype.exec=function(t,e){var n=this.regexp.exec(t);if(!n)return null;e=e||{};var i,r,o,a,s,l=this.parameters(),u=l.length,c=this.segments.length-1,p={};if(c!=n.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");function h(t){function e(t){return t.split("").reverse().join("")}t=y(e(t).split(/-(?!\\)/),e);return y(t,function(t){return t.replace(/\\-/g,"-")}).reverse()}for(i=0;i<c;i++){for(o=l[i],a=this.params[o],s=n[i+1],r=0;r<a.replace.length;r++)a.replace[r].from===s&&(s=a.replace[r].to);s&&!0===a.array&&(s=h(s)),L(s)&&(s=a.type.decode(s)),p[o]=a.value(s)}for(;i<u;i++){for(p[o=l[i]]=this.params[o].value(e[o]),a=this.params[o],s=e[o],r=0;r<a.replace.length;r++)a.replace[r].from===s&&(s=a.replace[r].to);L(s)&&(s=a.type.decode(s)),p[o]=a.value(s)}return p},l.prototype.parameters=function(t){return L(t)?this.params[t]||null:this.$$paramNames},l.prototype.validates=function(t){return this.params.$$validates(t)},l.prototype.format=function(t){t=t||{};var e=this.segments,n=this.parameters(),i=this.params;if(!this.validates(t))return null;var r,o=!1,a=e.length-1,s=n.length,l=e[0];function u(t){return encodeURIComponent(t).replace(/-/g,function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()})}for(r=0;r<s;r++){var c,p=r<a,h=n[r],d=i[h],f=d.value(t[h]),g=d.isOptional&&d.type.equals(d.value(
1),f),m=!!g&&d.squash,v=d.type.encode(f);p?(c=e[r+1],f=r+1===a,!1===m?(null!=v&&(_(v)?l+=y(v,u).join("-"):l+=encodeURIComponent(v)),l+=c):!0===m?(p=l.match(/\/$/)?/\/?(.*)/:/(.*)/,l+=c.match(p)[1]):U(m)&&(l+=m+c),f&&!0===d.squash&&"/"===l.slice(-1)&&(l=l.slice(0,-1))):null==v||g&&!1!==m||0!==(v=!_(v)?[v]:v).length&&(l+=(o?"&":"?")+h+"="+(v=y(v,encodeURIComponent).join("&"+h+"=")),o=!0)}return l},m.prototype.is=function(t,e){return!0},m.prototype.encode=function(t,e){return t},m.prototype.decode=function(t,e){return t},m.prototype.equals=function(t,e){return t==e},m.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},m.prototype.pattern=/.*/,m.prototype.toString=function(){return"{Type:"+this.name+"}"},m.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},m.prototype.$asArray=function(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new function(t,i){function e(t,e){return function(){return t[e].apply(t,arguments)}}function o(t){return _(t)?t:L(t)?[t]:[]}function r(t){return!t}function n(e,n){return function(t){if(_(t)&&0===t.length)return t;t=y(t=o(t),e);return!0===n?0===g(t,r).length:function(t){switch(t.length){case 0:return j;case 1:return"auto"===i?t[0]:t;default:return t}}(t)}}var a;this.encode=n(e(t,"encode")),this.decode=n(e(t,"decode")),this.is=n(e(t,"is"),!0),this.equals=(a=e(t,"equals"),function(t,e){var n=o(t),i=o(e);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++)if(!a(n[r],i[r]))return!1;return!0}),this.pattern=t.pattern,this.$normalize=n(e(t,"$normalize")),this.name=t.name,this.$arrayMode=i}(this,t)},R.module("ui.router.util").provider("$urlMatcherFactory",u),R.module("ui.router.util").run(["$urlMatcherFactory",function(t){}]),n.$inject=["$locationProvider","$urlMatcherFactoryProvider"],R.module("ui.router.router").provider("$urlRouter",n),i.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],R.module("ui.router.state").factory("$stateParams",function(){return{}}).provider("$state",i),r.$inject=[],R.module("ui.router.state").provider("$view",r),R.module("ui.router.state").provider("$uiViewScroll",function(){var n=!1;this.useAnchorScroll=function(){n=!0},this.$get=["$anchorScroll","$timeout",function(t,e){return n?t:function(t){return e(function(){t[0].scrollIntoView()},0,!1)}}]});var b=R.version.major,x=R.version.minor;function o(f,e,g,m){var t=e.has?function(t){return e.has(t)?e.get(t):null}:function(t){try{return e.get(t)}catch(t){return null}},n=t("$animator"),v=t("$animate");return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(t,e,d){return function(r,o,i){var a,s,l,u,c=i.onload||"",p=i.autoscroll,h=function(t,e){var i={enter:function(t,e,n){e.after(t),n()},leave:function(t,e){t.remove(),e()}};if(t.noanimation)return i;function r(t){return 1===b&&4<=x?v.enabled(t):1===b&&2<=x?v.enabled():n}if(v)return{enter:function(t,e,n){r(t)?2<R.version.minor?v.enter(t,null,e).then(n):v.enter(t,null,e,n):i.enter(t,e,n)},leave:function(t,e){r(t)?2<R.version.minor?v.leave(t).then(e):v.leave(t,e):i.leave(t,e)}};if(n){var o=n&&n(e,t);return{enter:function(t,e,n){o.enter(t,null,e),n()},leave:function(t,e){o.leave(t),e()}}}return i}(i,r);function t(t){var e=C(r,i,o,m),n=e&&f.$current&&f.$current.locals[e];!t&&n===u||r._willBeDestroyed||(n=r.$new(),u=f.$current.locals[e],n.$emit("$viewContentLoading",e),s=d(n,function(t){function e(){n&&n.remove(),i&&i.$destroy()}var n,i;h.enter(t,o,function(){l&&l.$emit("$viewContentAnimationEnded"),(R.isDefined(p)&&!p||r.$eval(p))&&g(t)}),n=a,(i=l)&&(i._willBeDestroyed=!0),a=s?(h.leave(s,function(){e(),a=null}),s):(e(),null),l=s=null}),(l=n).$emit("$viewContentLoaded",e),l.$eval(c))}r.$on("$stateChangeSuccess",function(){t(!1)}),t(!0)}}}}function a(a,s,l,u){return{restrict:"ECA",priority:-400,compile:function(t){var o=t.html();return function(t,e,n){var i=l.$current,r=C(t,n,e,u),n=i&&i.locals[r];n&&(e.data("$uiView",{name:r,state:n.$$state}),e.html(n.$template||o),i=a(e.contents()),n.$$controller&&(n.$scope=t,n.$element=e,r=s(n.$$controller,n),n.$$controllerAs&&(t[n.$$controllerAs]=r),e.data("$ngControllerController",r),e.children().data("$ngControllerController",r)),i(t))}}}}function C(t,e,n,i){t=i(e.uiView||e.name||"")(t),n=n.inheritedData("$uiView");return 0<=t.indexOf("@")?t:t+"@"+(n?n.state.name:"")}function v(t,e){var n=t.match(/^\s*({[^}]*})\s*$/);if(!(n=(t=n?e+"("+n[1]+")":t).replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1],paramExpr:n[3]||null}}function k(t){t=t.parent().inheritedData("$uiView");if(t&&t.state&&t.state.name)return t.state}function p(t){var e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.prop("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.prop("tagName").toUpperCase(),clickable:!n}}function h(o,a,s,l,u){return function(t){var e,n,i=t.which||t.button,r=u();1<i||t.ctrlKey||t.metaKey||t.shiftKey||o.attr("target")||(e=s(function(){a.go(r.state,r.params,r.options)}),t.preventDefault(),n=l.isAnchor&&!r.href?1:0,t.preventDefault=function(){n--<=0&&s.cancel(e)})}}function s(u,c){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(t,e,n,i){var r=v(n.uiSref,u.current.name),o={state:r.state,href:null,params:null},a=p(e),s=i[1]||i[0];o.options=B((i=u,{relative:k(e)||i.$current,inherit:!0}),n.uiSrefOpts?t.$eval(n.uiSrefOpts):{});function l(t){t&&(o.params=R.copy(t)),o.href=u.href(r.state,o.params,o.options),s&&s.$$addStateInfo(r.state,o.params),null!==o.href&&n.$set(a.attr,o.href)}r.paramExpr&&(t.$watch(r.paramExpr,function(t){t!==o.params&&l(t)},!0),o.params=R.copy(t.$eval(r.paramExpr))),l(),a.clickable&&e.bind("click",h(e,u,c,a,function(){return o}
1))}}}function d(l,u){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(t,e,n,i){var r=p(e),o=i[1]||i[0],i="["+[n.uiState,n.uiStateParams||null,n.uiStateOpts||null].map(function(t){return t||"null"}).join(", ")+"]",a={state:null,params:null,options:null,href:null};function s(t){a.state=t[0],a.params=t[1],a.options=t[2],a.href=l.href(a.state,a.params,a.options),o&&o.$$addStateInfo(a.state,a.params),a.href&&n.$set(r.attr,a.href)}t.$watch(i,s,!0),s(t.$eval(i)),r.clickable&&e.bind("click",h(e,l,u,r,function(){return a}))}}}function S(d,t,e){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(o,a,t,n){var i,s=[],l={},r=e(t.uiSrefActiveEq||"",!1)(o);try{i=o.$eval(t.uiSrefActive)}catch(t){}function u(t,e,n){var i=d.get(t,k(a)),r=function(t,e){if(!U(t))throw new Error("state should be a string");if(q(e))return t+f(e);if(e=o.$eval(e),q(e))return t+f(e);return t}(t,e);s.push({state:i||{name:t},params:e,hash:r}),l[r]=n}function c(){for(var t,e,n=0;n<s.length;n++)t=s[n].state,e=s[n].params,(d.includes(t.name,e)?p:h)(a,l[s[n].hash]),t=s[n].state,e=s[n].params,(d.is(t.name,e)?p:h)(a,r)}function p(t,e){n(function(){t.addClass(e)})}function h(t,e){t.removeClass(e)}i=i||e(t.uiSrefActive||"",!1)(o),q(i)&&H(i,function(t,e){U(t)&&u((t=v(t,d.current.name)).state,o.$eval(t.paramExpr),e)}),this.$$addStateInfo=function(t,e){q(i)&&0<s.length||(u(t,e,i),c())},o.$on("$stateChangeSuccess",c),c()}]}}function T(n){function t(t,e){return n.is(t,e)}return t.$stateful=!0,t}function E(i){function t(t,e,n){return i.includes(t,e,n)}return t.$stateful=!0,t}o.$inject=["$state","$injector","$uiViewScroll","$interpolate"],a.$inject=["$compile","$controller","$state","$interpolate"],R.module("ui.router.state").directive("uiView",o),R.module("ui.router.state").directive("uiView",a),s.$inject=["$state","$timeout"],d.$inject=["$state","$timeout"],S.$inject=["$state","$stateParams","$interpolate"],R.module("ui.router.state").directive("uiSref",s).directive("uiSrefActive",S).directive("uiSrefActiveEq",S).directive("uiState",d),T.$inject=["$state"],E.$inject=["$state"],R.module("ui.router.state").filter("isState",T).filter("includedByState",E)}((window,window.angular)),window.matchMedia||(window.matchMedia=function(){"use strict";var e,t,n,i=window.styleMedia||window.media;return i||(e=document.createElement("style"),t=document.getElementsByTagName("script")[0],n=null,e.type="text/css",e.id="matchmediajs-test",t.parentNode.insertBefore(e,t),n="getComputedStyle"in window&&window.getComputedStyle(e,null)||e.currentStyle,i={matchMedium:function(t){t="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return e.styleSheet?e.styleSheet.cssText=t:e.textContent=t,"1px"===n.width}}),function(t){return{matches:i.matchMedium(t||"all"),media:t||"all"}}}()),function(){"use strict";window.angular.module("matchmedia-ng",[]).provider("matchmedia",function(){var i={rules:{print:"print",screen:"screen",phone:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 979px)",desktop:"(min-width: 980px)",portrait:"(orientation: portrait)",landscape:"(orientation: landscape)"}};return i.$get=["$window","safeApply","logger",function(s,l,u){u.log("Creating matchmedia");var n={};return n.on=function(t,e,n){var i,r;if(void 0!==s.matchMedia&&!!s.matchMedia("all").addListener){u.log("adding listener for query: "+t);var o=s.matchMedia(t),a=(i=e,r=n,function(t){l(function(){i(t)},r)});return o.addListener(a),a(o),function(){u.log("removing listener from query: "+t),o.removeListener(a)}}},n.is=function(t){return u.log("test query: "+t),s.matchMedia(t).matches},n.onPrint=function(t,e){return n.on(i.rules.print,t,e)},n.onScreen=function(t,e){return n.on(i.rules.screen,t,e)},n.onPhone=function(t,e){return n.on(i.rules.phone,t,e)},n.onTablet=function(t,e){return n.on(i.rules.tablet,t,e)},n.onDesktop=function(t,e){return n.on(i.rules.desktop,t,e)},n.onPortrait=function(t,e){return n.on(i.rules.portrait,t,e)},n.onLandscape=function(t,e){return n.on(i.rules.landscape,t,e)},n.isPrint=function(){return n.is(i.rules.print)},n.isScreen=function(){return n.is(i.rules.screen)},n.isPhone=function(){return n.is(i.rules.phone)},n.isTablet=function(){return n.is(i.rules.tablet)},n.isDesktop=function(){return n.is(i.rules.desktop)},n.isPortrait=function(){return n.is(i.rules.portrait)},n.isLandscape=function(){return n.is(i.rules.landscape)},n}],i}).directive("ajMatchmedia",["matchmedia",function(o){return{restrict:"E",scope:{queryListener:"&",queryMatches:"="},link:function(e,t,n,i){var r;n.on&&n.queryListener?(r="on"===n.on.slice(0,2)&&"undefined"!==o[n.on]?o[n.on](function(t){e.queryListener({mediaQueryList:t})}):o.on(n.on,function(t){e.queryListener({mediaQueryList:t})}),e.$on("$destroy",r)):n.is&&n.queryMatches&&("is"===n.is.slice(0,2)&&"undefined"!==o[n.is]?e.queryMatches=o[n.is]():e.queryMatches=o.is(n.is))}}}]).factory("safeApply",["$rootScope",function(i){return function(t,e){var n=(e=e||i).$root.$$phase;"$apply"==n||"$digest"==n?t&&e.$eval(t):t?e.$apply(t):e.$apply()}}]).provider("logger",function(){this.DEVMODE=!1,this.setDEVMODE=function(t){this.DEVMODE=t},this.$get=["$window","$log",function(t,e){var n=this.DEVMODE,i={log:function(){n&&e.info(arguments)},always:function(){e.info(arguments)}};return i}]})}(window),function(t){function d(t,e){return t-e}function f(){for(var t=0,e=this.length;t<e;t++)if(void 0!==this[t])return this[t]}function g(){for(var t=this.length;--t;)if(void 0!==this[t])return this[t]}var m,v,h="hasOwnProperty",y=/[\.\/]/,b=/\s*,\s*/,$={n:{}},w=function(t,e){t=String(t);var n,i=v,r=Array.prototype.slice.call(arguments,2),o=w.listeners(t),a=0,s=[],l={},u=[],c=m;u.firstDefined=f,u.lastDefined=g,m=t;for(var p=v=0,h=o.length;p<h;p++)"zIndex"in o[p]&&(s.push(o[p].zIndex),o[p].zIndex<0&&(l[o[p].zIndex]=o[p]));for(s.sort(d);s[a]<0;)if(n=l[s[a++]],u.push(n.apply(e,r)),v)return v=i,u;for(p=0;p<h;p++)if("zIndex"in(n=o[p]))if(n.zIndex==s[a]){if(u.push(n.apply(e,r)),v)break;
1do{if((n=l[s[++a]])&&u.push(n.apply(e,r)),v)break}while(n)}else l[n.zIndex]=n;else if(u.push(n.apply(e,r)),v)break;return v=i,m=c,u};w._events=$,w.listeners=function(t){for(var e,n,i,r,o,a,s=t.split(y),l=$,u=[l],c=[],p=0,h=s.length;p<h;p++){for(a=[],r=0,o=u.length;r<o;r++)for(n=[(l=u[r].n)[s[p]],l["*"]],i=2;i--;)(e=n[i])&&(a.push(e),c=c.concat(e.f||[]));u=a}return c},w.on=function(t,o){if(t=String(t),"function"!=typeof o)return function(){};for(var a=t.split(b),s=0,e=a.length;s<e;s++)!function(){for(var t,e=a[s].split(y),n=$,i=0,r=e.length;i<r;i++)n=(n=n.n).hasOwnProperty(e[i])&&n[e[i]]||(n[e[i]]={n:{}});for(n.f=n.f||[],i=0,r=n.f.length;i<r;i++)if(n.f[i]==o){t=!0;break}t||n.f.push(o)}();return function(t){+t==+t&&(o.zIndex=+t)}},w.f=function(t){var e=[].slice.call(arguments,1);return function(){w.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},w.stop=function(){v=1},w.nt=function(t){return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(m):m},w.nts=function(){return m.split(y)},w.off=w.unbind=function(t,e){if(t)if(1<(s=t.split(b)).length)for(var n=0,i=s.length;n<i;n++)w.off(s[n],e);else{var r,o,a,s=t.split(y),l=[$];for(n=0,i=s.length;n<i;n++)for(c=0;c<l.length;c+=a.length-2){if(a=[c,1],r=l[c].n,"*"!=s[n])r[s[n]]&&a.push(r[s[n]]);else for(o in r)r[h](o)&&a.push(r[o]);l.splice.apply(l,a)}for(n=0,i=l.length;n<i;n++)for(r=l[n];r.n;){if(e){if(r.f){for(c=0,p=r.f.length;c<p;c++)if(r.f[c]==e){r.f.splice(c,1);break}r.f.length||delete r.f}for(o in r.n)if(r.n[h](o)&&r.n[o].f){for(var u=r.n[o].f,c=0,p=u.length;c<p;c++)if(u[c]==e){u.splice(c,1);break}u.length||delete r.n[o].f}}else for(o in delete r.f,r.n)r.n[h](o)&&r.n[o].f&&delete r.n[o].f;r=r.n}}else w._events=$={n:{}}},w.once=function(t,e){var n=function(){return w.unbind(t,n),e.apply(this,arguments)};return w.on(t,n)},w.version="0.4.2",w.toString=function(){return"You are running Eve 0.4.2"},"undefined"!=typeof module&&module.exports?module.exports=w:"function"==typeof define&&define.amd?define("eve",[],function(){return w}):t.eve=w}(this),function(e,n){var t;"function"==typeof define&&define.amd?define(["eve"],function(t){return n(e,t)}):"undefined"!=typeof exports?(t=require("eve"),module.exports=n(e,t)):n(e,e.eve)}(window||this,function(b,X){var r,u,c,o,p,h,t,d,f,$=(r=void 0===X?function(){}:X,u={},c=b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||function(t){setTimeout(t,16)},o=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},p=0,h="M"+(+new Date).toString(36),t=Date.now||function(){return+new Date},d=function(){var t,e,n,i=0;for(t in u)u.hasOwnProperty(t)&&(n=(e=u[t]).get(),i++,e.s=(n-e.b)/(e.dur/e.spd),1<=e.s&&(delete u[t],e.s=1,i--,function(t){setTimeout(function(){r("mina.finish."+t.id,t)})}(e)),e.update());i&&c(d)},(f=function(t,e,n,i,r,o,a){a={id:h+(p++).toString(36),start:t,end:e,b:n,s:0,dur:i-n,spd:1,get:r,set:o,easing:a||f.linear,status:m,speed:v,duration:y,stop:w,pause:x,resume:C,update:k};u[a.id]=a;var s,l=0;for(s in u)if(u.hasOwnProperty(s)&&(l++,2==l))break;return 1==l&&c(d),a}).time=t,f.getById=function(t){return u[t]||null},f.linear=function(t){return t},f.easeout=function(t){return Math.pow(t,1.7)},f.easein=function(t){return Math.pow(t,.48)},f.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),t=n-e,e=-n-e,e=Math.pow(Math.abs(t),1/3)*(t<0?-1:1)+Math.pow(Math.abs(e),1/3)*(e<0?-1:1)+.5;return 3*(1-e)*e*e+e*e*e},f.backin=function(t){if(1==t)return 1;return t*t*(2.70158*t-1.70158)},f.backout=function(t){if(0==t)return 0;return--t*t*(2.70158*t+1.70158)+1},f.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin(2*(t-.075)*Math.PI/.3)+1},f.bounce=function(t){var e=7.5625,t=t<1/2.75?e*t*t:t<2/2.75?e*(t-=1.5/2.75)*t+.75:t<2.5/2.75?e*(t-=2.25/2.75)*t+.9375:e*(t-=2.625/2.75)*t+.984375;return t},b.mina=f),t=function(t){function m(t,e){if(t){if(t.nodeType)return f(t);if(l(t,"array")&&m.set)return m.set.apply(m,t);if(t instanceof p)return t;if(null==e)return f(t=v.doc.querySelector(String(t)))}return new d(t=null==t?"100%":t,e=null==e?"100%":e)}function u(t,e){if(e){if("string"==typeof(t="#comment"==(t="#text"==t?v.doc.
1createTextNode(e.text||e["#text"]||""):t)?v.doc.createComment(e.text||e["#text"]||""):t)&&(t=u(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(N,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(L,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType)for(var n in e){var i;e[y](n)&&((i=b(e[n]))?"xlink:"==n.substring(0,6)?t.setAttributeNS(N,n.substring(6),i):"xml:"==n.substring(0,4)?t.setAttributeNS(L,n.substring(4),i):t.setAttribute(n,i):t.removeAttribute(n))}else"text"in e&&(t.nodeValue=e.text)}else t=v.doc.createElementNS(L,t);return t}function l(t,e){return"finite"==(e=b.prototype.toLowerCase.call(e))?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||("null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||n.call(t).slice(8,-1).toLowerCase()==e)}function i(r,o,a){function s(){var t=Array.prototype.slice.call(arguments,0),e=t.join("␀"),n=s.cache=s.cache||{},i=s.count=s.count||[];return n[y](e)?function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}(i,e):(1e3<=i.length&&delete n[i.shift()],i.push(e),n[e]=r.apply(o,t)),a?a(n[e]):n[e]}return s}function r(t){return t%360*T/180}function c(t){return t.node.ownerSVGElement&&f(t.node.ownerSVGElement)||m.select("svg")}function o(t){l(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,n=0,i=this.node;this[e];)delete this[e++];for(e=0;e<t.length;e++)"set"==t[e].type?t[e].forEach(function(t){i.appendChild(t.node)}):i.appendChild(t[e].node);for(var r=i.childNodes,e=0;e<r.length;e++)this[n++]=f(r[e]);return this}function p(t){if(t.snap in F)return F[t.snap];try{e=t.ownerSVGElement}catch(t){}this.node=t,e&&(this.paper=new d(e)),this.type=t.tagName||t.nodeName;var e=this.id=j(this);if(this.anims={},this._={transform:[]},t.snap=e,"g"==(F[e]=this).type&&(this.add=o),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var n in d.prototype)d.prototype[y](n)&&(this[n]=d.prototype[n])}function a(t){this.node=t}function h(t,e){t=u(t);return e.appendChild(t),f(t)}function d(t,e){var n=d.prototype;if(t&&"svg"==t.tagName){if(t.snap in F)return F[t.snap];var i,r=t.ownerDocument,o=new p(t),a=t.getElementsByTagName("desc")[0],s=t.getElementsByTagName("defs")[0];for(i in a||((a=u("desc")).appendChild(r.createTextNode("Created with Snap")),o.node.appendChild(a)),s||(s=u("defs"),o.node.appendChild(s)),o.defs=s,n)n[y](i)&&(o[i]=n[i]);o.paper=o.root=o}else u((o=h("svg",v.doc.body)).node,{height:e,version:1.1,width:t,xmlns:L});return o}function f(t){return t&&(t instanceof p||t instanceof a?t:t.tagName&&"svg"==t.tagName.toLowerCase()?new d(t):t.tagName&&"object"==t.tagName.toLowerCase()&&"image/svg+xml"==t.type?new d(t.contentDocument.getElementsByTagName("svg")[0]):new p(t))}m.version="0.4.0",m.toString=function(){return"Snap v"+this.version},m._={};var v={win:t.window,doc:t.window.document};m._.glob=v;var e,s,y="hasOwnProperty",b=String,$=parseFloat,w=parseInt,x=Math,C=x.max,k=x.min,S=x.abs,T=(x.pow,x.PI),n=(x.round,Object.prototype.toString),E=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,D=(m._.separator=/[,\s]+/,/[\s]*,[\s]*/),A={hs:1,rg:1},O=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,P=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,M=/(-?\d*\.?\d*(?:e[\-+]?\\d+)?)[\s]*,?[\s]*/gi,I=0,R="S"+(+new Date).toString(36),j=function(t){return(t&&t.type?t.type:"")+R+(I++).toString(36)},N="http://www.w3.org/1999/xlink",L="http://www.w3.org/2000/svg",F={};m.url=function(t){return"url('#"+t+"')"},m._.$=u,m._.id=j,m.format=(e=/\{([^\}]+)\}/g,s=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,i){return b(t).replace(e,function(t,e){return n=t,o=t=i,e.replace(s,function(t,e,n,i,r){e=e||i,o&&("function"==typeof(o=e in o?o[e]:o)&&r&&(o=o()))}),o=(null==o||o==t?n:o)+"";var n,o})}),m._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var n,i=new e.constructor;for(n in e)e[y](n)&&(i[n]=t(e[n]));return i},m._.cacher=i,m.rad=r,m.deg=function(t){return 180*t/T%360},m.sin=function(t){return x.sin(m.rad(t))},m.tan=function(t){return x.tan(m.rad(t))},m.cos=function(t){return x.cos(m.rad(t))},m.asin=function(t){return m.deg(x.asin(t))},m.acos=function(t){return m.deg(x.acos(t))},m.atan=function(t){return m.deg(x.atan(t))},m.atan2=function(t){return m.deg(x.atan2(t))},m.angle=function t(e,n,i,r,o,a){if(null!=o)return t(e,n,o,a)-t(i,r,o,a);i=e-i,r=n-r;return i||r?(180+180*x.atan2(-r,-i)/T+360)%360:0},m.len=function(t,e,n,i){return Math.sqrt(m.len2(t,e,n,i))},m.len2=function(t,e,n,i){return(t-n)*(t-n)+(e-i)*(e-i)},m.closestPoint=function(t,n,i){function e(t){var e=t.x-n,t=t.y-i;return e*e+t*t}for(var r,o,a,s,l,u,c,p,h,d=t.node,f=d.getTotalLength(),g=f/d.pathSegList.numberOfItems*.125,m=1/0,v=0;v<=f;v+=g)(s=e(a=d.getPointAtLength(v)))<m&&(r=a,o=v,m=s);for(g*=.5;.5<g;)0<=(c=o-g)&&(p=e(l=d.getPointAtLength(c)))<m?(r=l,o=c,m=p):(c=o+g)<=f&&(h=e(u=d.getPointAtLength(c)))<m?(r=u,o=c,m=h):g*=.5;return{x:r.x,y:r.y,length:o,distance:Math.sqrt(m)}},m.is=l,m.snapTo=function(t,e,n){if(n=l(n,"finite")?n:10,l(t,"array")){for(var i=t.length;i--;)if(S(t[i]-e)<=n)return t[i]}else{var r=e%(t=+t);if(r<n)return e-r;if(t-n<r)return e-r+t}return e},m.getRGB=i(function(t){if(!t||(t=b(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:V};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:V};if(!(t=!A[y](t.toLowerCase().substring(0,2))&&"#"!=t.charAt()?B(t):t))return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:V};var e,n,i,r,o,a=t.match(E);return a?(a[2]&&(i=w(a[2].substring(5),16),n=w(a[2].substring(3,5),16),e=w(a[2].substring(1,3),16)),a[3]&&(i=w((t=a[3].charAt(3))+t,16),n=w((t=a[3].charAt(2))+t,16),e=w((t=a[3].charAt(1))+t,16)),a[4]&&(o=a[4].split(D),e=$(o[
10]),"%"==o[0].slice(-1)&&(e*=2.55),n=$(o[1]),"%"==o[1].slice(-1)&&(n*=2.55),i=$(o[2]),"%"==o[2].slice(-1)&&(i*=2.55),"rgba"==a[1].toLowerCase().slice(0,4)&&(r=$(o[3])),o[3]&&"%"==o[3].slice(-1)&&(r/=100)),a[5]?(o=a[5].split(D),e=$(o[0]),"%"==o[0].slice(-1)&&(e/=100),n=$(o[1]),"%"==o[1].slice(-1)&&(n/=100),i=$(o[2]),"%"==o[2].slice(-1)&&(i/=100),"deg"!=o[0].slice(-3)&&"°"!=o[0].slice(-1)||(e/=360),"hsba"==a[1].toLowerCase().slice(0,4)&&(r=$(o[3])),o[3]&&"%"==o[3].slice(-1)&&(r/=100),m.hsb2rgb(e,n,i,r)):a[6]?(o=a[6].split(D),e=$(o[0]),"%"==o[0].slice(-1)&&(e/=100),n=$(o[1]),"%"==o[1].slice(-1)&&(n/=100),i=$(o[2]),"%"==o[2].slice(-1)&&(i/=100),"deg"!=o[0].slice(-3)&&"°"!=o[0].slice(-1)||(e/=360),"hsla"==a[1].toLowerCase().slice(0,4)&&(r=$(o[3])),o[3]&&"%"==o[3].slice(-1)&&(r/=100),m.hsl2rgb(e,n,i,r)):(e=k(x.round(e),255),n=k(x.round(n),255),i=k(x.round(i),255),r=k(C(r,0),1),(a={r:e,g:n,b:i,toString:V}).hex="#"+(16777216|i|n<<8|e<<16).toString(16).slice(1),a.opacity=l(r,"finite")?r:1,a)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:V}},m),m.hsb=i(function(t,e,n){return m.hsb2rgb(t,e,n).hex}),m.hsl=i(function(t,e,n){return m.hsl2rgb(t,e,n).hex}),m.rgb=i(function(t,e,n,i){if(l(i,"finite")){var r=x.round;return"rgba("+[r(t),r(e),r(n),+i.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)});function U(){return"hsb("+[this.h,this.s,this.b]+")"}function q(){return"hsl("+[this.h,this.s,this.l]+")"}function _(t,e,n){var i;return null==e&&l(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,e=t.g,t=t.r),null==e&&l(t,string)&&(t=(i=m.getRGB(t)).r,e=i.g,n=i.b),(1<t||1<e||1<n)&&(t/=255,e/=255,n/=255),[t,e,n]}function H(t,e,n,i){return n={r:t=x.round(255*t),g:e=x.round(255*e),b:n=x.round(255*n),opacity:l(i,"finite")?i:1,hex:m.rgb(t,e,n),toString:V},l(i,"finite")&&(n.opacity=i),n}var B=function(t){var e=v.doc.getElementsByTagName("head")[0]||v.doc.getElementsByTagName("svg")[0],n="rgb(255, 0, 0)";return(B=i(function(t){if("red"==t.toLowerCase())return n;e.style.color=n,e.style.color=t;t=v.doc.defaultView.getComputedStyle(e,"").getPropertyValue("color");return t==n?null:t}))(t)},V=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"};m.color=function(t){var e;return l(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=m.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):l(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=m.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(l(t,"string")&&(t=m.getRGB(t)),l(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=m.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=m.rgb2hsb(t),t.v=e.b):((t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=V,t},m.hsb2rgb=function(t,e,n,i){var r,o,a;return l(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,i=t.o,t=t.h),o=(a=n*e)*(1-S((t=(t*=360)%360/60)%2-1)),n=e=r=n-a,H(n+=[a,o,0,0,o,a][t=~~t],e+=[o,a,a,o,0,0][t],r+=[0,0,o,a,a,o][t],i)},m.hsl2rgb=function(t,e,n,i){var r,o,a;return l(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(1<t||1<e||1<n)&&(t/=360,e/=100,n/=100),o=(a=2*e*(n<.5?n:1-n))*(1-S((t=(t*=360)%360/60)%2-1)),n=e=r=n-a/2,H(n+=[a,o,0,0,o,a][t=~~t],e+=[o,a,a,o,0,0][t],r+=[0,0,o,a,a,o][t],i)},m.rgb2hsb=function(t,e,n){var i,r;return t=(n=_(t,e,n))[0],e=n[1],n=n[2],{h:((0==(r=(i=C(t,e,n))-k(t,e,n))?null:i==t?(e-n)/r:i==e?(n-t)/r+2:(t-e)/r+4)+360)%6*60/360,s:0==r?0:r/i,b:i,toString:U}},m.rgb2hsl=function(t,e,n){var i,r,o;return t=(n=_(t,e,n))[0],e=n[1],n=n[2],i=((r=C(t,e,n))+(o=k(t,e,n)))/2,{h:((0==(o=r-o)?null:r==t?(e-n)/o:r==e?(n-t)/o+2:(t-e)/o+4)+360)%6*60/360,s:0==o?0:i<.5?o/(2*i):o/(2-2*i),l:i,toString:q}},m.parsePathString=function(t){if(!t)return null;var e=m.path(t);if(e.arr)return m.path.clone(e.arr);var o={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},a=[];return(a=l(t,"array")&&l(t[0],"array")?m.path.clone(t):a).length||b(t).replace(O,function(t,e,n){var i=[],r=e.toLowerCase();if(n.replace(M,function(t,e){e&&i.push(+e)}),"m"==r&&2<i.length&&(a.push([e].concat(i.splice(0,2))),r="l",e="m"==e?"l":"L"),"o"==r&&1==i.length&&a.push([e,i[0]]),"r"==r)a.push([e].concat(i));else for(;i.length>=o[r]&&(a.push([e].concat(i.splice(0,o[r]))),o[r]););}),a.toString=m.path.toString,e.arr=m.path.clone(a),a};var W=m.parseTransformString=function(t){if(!t)return null;var r=[];return(r=l(t,"array")&&l(t[0],"array")?m.path.clone(t):r).length||b(t).replace(P,function(t,e,n){var i=[];e.toLowerCase(),n.replace(M,function(t,e){e&&i.push(+e)}),r.push([e].concat(i))}),r.toString=m.path.toString,r};m._.svgTransform2string=function(t){var i=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(t,e,n){return n=n.split(/\s*,\s*|\s+/),"rotate"==e&&1==n.length&&n.push(0,0),"scale"==e&&(2<n.length?n=n.slice(0,2):2==n.length&&n.push(0,0),1==n.length&&n.push(n[0],0,0)),i.push("skewX"==e?["m",1,0,x.tan(r(n[0])),1,0,0]:"skewY"==e?["m",1,x.tan(r(n[0])),0,1,0,0]:[e.charAt(0)].concat(n)),t}),i},m._.rgTransform=/^[a-z][\s]*-?\.?\d/i,m._.transform2matrix=function(t,e){var n=W(t),i=new m.Matrix;if(n)for(var r=0,o=n.length;r<o;r++){var a,s,l,u,c,p=n[r],h=p.length,d=b(p[0]).toLowerCase(),f=p[0]!=d,g=f?i.invert():0;"t"==d&&2==h?i.translate(p[1],0):"t"==d&&3==h?f?(a=g.x(0,0),s=g.y(0,0),l=g.x(p[1],p[2]),u=g.y(p[1],p[2]),i.translate(l-a,u-s)):i.translate(p[1],p[2]):"r"==d?2==h?i.rotate(p[1],(c=c||e).x+c.width/2,c.y+c.height/2):4==h&&(f?(l=g.x(p[2],p[3]),u=g.y(p[2],p[3]),i.rotate(p[1],l,u)):i.rotate(p[1],p[2],p[3])):"s"==d?2==h||3==h?i.scale(p[1],p[h-1],(c=c||e).x+c.width/2,c.y+c.height/2):4==h?f?(l=g.x(p[2],p[3]),u=g.y(p[2],p[3]),i.scale(p[1],p[1],l,u)):i.scale(p[1],p[1],p[2],p[3]):5==h&&(f?(l=g.x(p[3],p[4]),u=g.y(p[3],p[4]),i.scale(p[1],p[2],l,u)):i.scale(p[1],p[2],p[3],p[4])):"m"==d&&7==h&&i.add(p[1],p[2],p[3],p[4],p[5],p[6])}return i},m._unit2px=function(n,i,r){function t(t){if(null==t)return"";if(t==+t)return t;u(l,{width:t});try{return l.getBBox().width}catch(t){return 0}}function e(t){if(null==t)return"";if(t==+t)return t;u(l,{height:t});try{return l.getBBox().height}catch(t){return 0}}function o(t,e){null==i?s[t]=e(n.attr(t)||0):t==i&&(s=e(null==r?n.attr(t)||0:r))}var a=c(n).node,s={},l=a.querySelector(".svg---mgr");switch(l||(l=u("rect"),u(l,{x:-9e9,y:-9e9,width:10,height:10,class:"svg---mgr",fill:"none"}
1),a.appendChild(l)),n.type){case"rect":o("rx",t),o("ry",e);case"image":o("width",t),o("height",e);case"text":o("x",t),o("y",e);break;case"circle":o("cx",t),o("cy",e),o("r",t);break;case"ellipse":o("cx",t),o("cy",e),o("rx",t),o("ry",e);break;case"line":o("x1",t),o("x2",t),o("y1",e),o("y2",e);break;case"marker":o("refX",t),o("markerWidth",t),o("refY",e),o("markerHeight",e);break;case"radialGradient":o("fx",t),o("fy",e);break;case"tspan":o("dx",t),o("dy",e);break;default:o(i,t)}return a.removeChild(l),s},v.doc.contains||v.doc.compareDocumentPosition,m._.getSomeDefs=function(t){var e=t.node.ownerSVGElement&&f(t.node.ownerSVGElement)||t.node.parentNode&&f(t.node.parentNode)||m.select("svg")||m(0,0);return null!=(t=e.select("defs"))&&t.node||h("defs",e.node).node},m._.getSomeSVG=c,m.select=function(t){return t=b(t).replace(/([^\\]):/g,"$1\\:"),f(v.doc.querySelector(t))},m.selectAll=function(t){for(var e=v.doc.querySelectorAll(t),n=(m.set||Array)(),i=0;i<e.length;i++)n.push(f(e[i]));return n},setInterval(function(){for(var t in F){var e,n;F[y](t)&&(n=(e=F[t]).node,("svg"!=e.type&&!n.ownerSVGElement||"svg"==e.type&&(!n.parentNode||"ownerSVGElement"in n.parentNode&&!n.ownerSVGElement))&&delete F[t])}},1e4),p.prototype.attr=function(t,e){var n,i=this.node;if(!t){if(1!=i.nodeType)return{text:i.nodeValue};for(var r=i.attributes,o={},a=0,s=r.length;a<s;a++)o[r[a].nodeName]=r[a].nodeValue;return o}if(l(t,"string")){if(!(1<arguments.length))return X("snap.util.getattr."+t,this).firstDefined();i={};i[t]=e,t=i}for(n in t)t[y](n)&&X("snap.util.attr."+n,this,t[n]);return this},m.parse=function(t){var e=v.doc.createDocumentFragment(),n=!0,i=v.doc.createElement("div");if((t=b(t)).match(/^\s*<\s*svg(?:\s|>)/)||(t="<svg>"+t+"</svg>",n=!1),i.innerHTML=t,t=i.getElementsByTagName("svg")[0])if(n)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new a(e)},m.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=v.doc.createDocumentFragment(),n=0,i=t.length;n<i;n++){var r=t[n];r.node&&r.node.nodeType&&e.appendChild(r.node),r.nodeType&&e.appendChild(r),"string"==typeof r&&e.appendChild(m.parse(r).node)}return new a(e)},m._.make=h,m._.wrap=f,d.prototype.el=function(t,e){t=h(t,this.node);return e&&t.attr(e),t},p.prototype.children=function(){for(var t=[],e=this.node.childNodes,n=0,i=e.length;n<i;n++)t[n]=m(e[n]);return t},p.prototype.toJSON=function(){var t=[];return function t(e,n){for(var i=0,r=e.length;i<r;i++){var o={type:e[i].type,attr:e[i].attr()},a=e[i].children();n.push(o),a.length&&t(a,o.childNodes=[])}}([this],t),t[0]},X.on("snap.util.getattr",function(){var t=X.nt(),e=(t=t.substring(t.lastIndexOf(".")+1)).replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});return z[y](e)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(e):u(this.node,t)});var z={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":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: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:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};X.on("snap.util.attr",function(t){var e=X.nt(),n={};n[e=e.substring(e.lastIndexOf(".")+1)]=t;var i=e.replace(/-(\w)/gi,function(t,e){return e.toUpperCase()}),e=e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});z[y](e)?this.node.style[i]=null==t?"":t:u(this.node,n)}),m.ajax=function(t,e,n,i){var r=new XMLHttpRequest,o=j();if(r){if(l(e,"function"))i=n,n=e,e=null;else if(l(e,"object")){var a,s=[];for(a in e)e.hasOwnProperty(a)&&s.push(encodeURIComponent(a)+"="+encodeURIComponent(e[a]));e=s.join("&")}return r.open(e?"POST":"GET",t,!0),e&&(r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-type","application/x-www-form-urlencoded")),n&&(X.once("snap.ajax."+o+".0",n),X.once("snap.ajax."+o+".200",n),X.once("snap.ajax."+o+".304",n)),r.onreadystatechange=function(){4==r.readyState&&X("snap.ajax."+o+"."+r.status,i,r)},4==r.readyState||r.send(e),r}},m.load=function(t,e,n){m.ajax(t,function(t){t=m.parse(t.responseText);n?e.call(n,t):e(t)})};return m.getElementByPoint=function(t,e){var n,i,r,o,a,s=(this.canvas,v.doc.elementFromPoint(t,e));return v.win.opera&&"svg"==s.tagName&&(i=(n=s).getBoundingClientRect(),r=n.ownerDocument,o=r.body,a=r.documentElement,n=a.clientTop||o.clientTop||0,r=a.clientLeft||o.clientLeft||0,o={y:i.top+(g.win.pageYOffset||a.scrollTop||o.scrollTop)-n,x:i.left+(g.win.pageXOffset||a.scrollLeft||o.scrollLeft)-r},(r=s.createSVGRect()).x=t-o.x,r.y=e-o.y,r.width=r.height=1,(r=s.getIntersectionList(r,null)).length&&(s=r[r.length-1])),s?f(s):null},m.plugin=function(t){t(m,p,d,v,a)},v.win.Snap=m}(b||this);function m(t){if(null==t)return this.s;var e=this.s-t;this.b+=this.dur*e,this.B+=this.dur*e,this.s=t}function v(t){return null==t?this.spd:void(this.spd=t)}function y(t){return null==t?this.dur:(this.s=this.s*t/this.dur,void(this.dur=t))}function w(){delete u[this.id],this.update(),r("mina.stop."+this.id,this)}function x(){this.pdif||(delete u[this.id],this.update(),this.pdif=this.get()-this.b)}function C(){this.pdif&&(this.b=this.get()-this.pdif,delete this.pdif,u[this.id]=this)}function k(){var t=this;if(o(t.start))for(var e=[],n=0,i=t.start.length;n<i;n++)e[n]=+t.start[n]+(t.end[n]-t.start[n])*t.easing(t.s);else e=+t.start+(t.end-t.start)*t.easing(t.s);t.set(e)}return t.plugin(function(l,t,e,n,i){function u(t,e){if(null==e){var n=!0;if(!(e=t.node.getAttribute("linearGradient"==t.type||"radialGradient"==t.type?"gradientTransform":"pattern"==t.type?"patternTransform":"transform")))return new l.Matr
vendor: 6,337 bytes, line 1
1ix;e=l._.svgTransform2string(e)}else e=l._.rgTransform.test(e)?m(e).replace(/\.{3}|\u2026/g,t._.transform||""):l._.svgTransform2string(e),g(e,"array")&&(e=l.path?l.path.toString.call(e):m(e)),t._.transform=e;e=l._.transform2matrix(e,t.getBBox(1));return n?e:void(t.matrix=e)}function r(t){function e(n,i){var t=d(n.node,i);!(t=(t=t&&t.match(r))&&t[2])||"#"!=t.charAt()||(t=t.substring(1))&&(a[t]=(a[t]||[]).concat(function(t){var e={};e[i]=URL(t),d(n.node,e)}))}for(var n,i=t.selectAll("*"),r=/^\s*url\(("|'|)(.*)\1\)\s*$/,o=[],a={},s=0,l=i.length;s<l;s++){e(n=i[s],"fill"),e(n,"stroke"),e(n,"filter"),e(n,"mask"),e(n,"clip-path"),function(e){var t=d(e.node,"xlink:href");!t||"#"!=t.charAt()||(t=t.substring(1))&&(a[t]=(a[t]||[]).concat(function(t){e.attr("xlink:href","#"+t)}))}(n);var u=d(n.node,"id");u&&(d(n.node,{id:n.id}),o.push({old:u,id:n.id}))}for(s=0,l=o.length;s<l;s++){var c=a[o[s].old];if(c)for(var p=0,h=c.length;p<h;p++)c[p](o[s].id)}}function o(o){return function(){var t=o?"<"+this.type:"",e=this.node.attributes,n=this.node.childNodes;if(o)for(var i=0,r=e.length;i<r;i++)t+=" "+e[i].name+'="'+e[i].value.replace(/"/g,'\\"')+'"';if(n.length){for(o&&(t+=">"),i=0,r=n.length;i<r;i++)3==n[i].nodeType?t+=n[i].nodeValue:1==n[i].nodeType&&(t+=p(n[i]).toString());o&&(t+="</"+this.type+">")}else o&&(t+="/>");return t}}var t=t.prototype,g=l.is,m=String,a=l._unit2px,d=l._.$,s=l._.make,c=l._.getSomeDefs,v="hasOwnProperty",p=l._.wrap;t.getBBox=function(t){if(!l.Matrix||!l.path)return this.node.getBBox();var e,n=this,i=new l.Matrix;if(n.removed)return l._.box();for(;"use"==n.type;)t||(i=i.add(n.transform().localMatrix.translate(n.attr("x")||0,n.attr("y")||0))),n=n.original||(e=n.attr("xlink:href"),n.original=n.node.ownerDocument.getElementById(e.substring(e.indexOf("#")+1)));var r=n._,o=l.path.get[n.type]||l.path.get.deflt;try{return t?(r.bboxwt=o?l.path.getBBox(n.realPath=o(n)):l._.box(n.node.getBBox()),l._.box(r.bboxwt)):(n.realPath=o(n),n.matrix=n.transform().localMatrix,r.bbox=l.path.getBBox(l.path.map(n.realPath,i.add(n.matrix))),l._.box(r.bbox))}catch(t){return l._.box()}};function h(){return this.string}t.transform=function(t){var e=this._;if(null!=t)return t instanceof l.Matrix?(this.matrix=t,this._.transform=t.toTransformString()):u(this,t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?d(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?d(this.node,{patternTransform:this.matrix}):d(this.node,{transform:this.matrix})),this;for(var n,i=this,r=new l.Matrix(this.node.getCTM()),o=u(this),a=[o],s=new l.Matrix,t=o.toTransformString(),e=m(o)==m(this.matrix)?m(e.transform):t;"svg"!=i.type&&(i=i.parent());)a.push(u(i));for(n=a.length;n--;)s.add(a[n]);return{string:e,globalMatrix:r,totalMatrix:s,localMatrix:o,diffMatrix:r.clone().add(o.invert()),global:r.toTransformString(),total:s.toTransformString(),local:t,toString:h}},t.parent=function(){return p(this.node.parentNode)},t.append=t.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach(function(t){e.add(t)}),this}t=p(t),this.node.appendChild(t.node),t.paper=this.paper}return this},t.appendTo=function(t){return t&&(t=p(t)).append(this),this},t.prepend=function(t){if(t){if("set"==t.type){var e,n=this;return t.forEach(function(t){e?e.after(t):n.prepend(t),e=t}),this}var i=(t=p(t)).parent();this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),i&&i.add()}return this},t.prependTo=function(t){return(t=p(t)).prepend(this),this},t.before=function(t){if("set"==t.type){var n=this;return t.forEach(function(t){var e=t.parent();n.node.parentNode.insertBefore(t.node,n.node),e&&e.add()}),this.parent().add(),this}var e=(t=p(t)).parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},t.after=function(t){var e=(t=p(t)).parent();return this.node.nextSibling?this.node.parentNode.insertBefore(t.node,this.node.nextSibling):this.node.parentNode.appendChild(t.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},t.insertBefore=function(t){t=p(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},t.insertAfter=function(t){t=p(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},t.remove=function(){var t=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,t&&t.add(),this},t.select=function(t){return p(this.node.querySelector(t))},t.selectAll=function(t){for(var e=this.node.querySelectorAll(t),n=(l.set||Array)(),i=0;i<e.length;i++)n.push(p(e[i]));return n},t.asPX=function(t,e){return null==e&&(e=this.attr(t)),+a(this,t,e)},t.use=function(){var t,e=this.node.id;return e||(e=this.id,d(this.node,{id:e})),t="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?s(this.type,this.node.parentNode):s("use",this.node.parentNode),d(t.node,{"xlink:href":"#"+e}),t.original=this,t},t.clone=function(){var t=p(this.node.cloneNode(!0));return d(t.node,"id")&&d(t.node,{id:t.id}),r(t),t.insertAfter(this),t},t.toDefs=function(){return c(this).appendChild(this.node),this},t.pattern=t.toPattern=function(t,e,n,i){var r=s("pattern",c(this));return null==t&&(t=this.getBBox()),g(t,"object")&&"x"in t&&(e=t.y,n=t.width,i=t.height,t=t.x),d(r.node,{x:t,y:e,width:n,height:i,patternUnits:"userSpaceOnUse",id:r.id,viewBox:[t,e,n,i].join(" ")}),r.node.appendChild(this.node),r},t.marker=function(t,e,n,i,r,o){var a=s("marker",c(this));return null==t&&(t=this.getBBox()),g(t,"object")&&"x"in t&&(e=t.y,n=t.width,i=t.height,r=t.refX||t.cx,o=t.refY||t.cy,t=t.x),d(a.node,{viewBox:[t,e,n,i].join(" "),markerWidth:n,markerHeight:i,orient:"auto",refX:r||0,refY:o||0,id:a.id}),a.node.appendChild(this.node),a};function y(t,e,n,i){"function"!=typeof n||n.length||(i=n,n=$.linear),this.attr=t,this.dur=e,n&&(this.easing=n),i&&(this.callback=i)}l._.Animation=y,l.animation=function(t,e,n,i){return new y(t,e,n,i)},t.inAnim=function(){var t,n=[];for(t in this.anims)this.anims[v](t)&&function(e){n.push({anim:new y(e._attrs,e.dur,e.easing,e._callback),mina:e,cur
1Status:e.status(),status:function(t){return e.status(t)},stop:function(){e.stop()}})}(this.anims[t]);return n},l.animate=function(t,e,n,i,r,o){"function"!=typeof r||r.length||(o=r,r=$.linear);var a=$.time(),r=$(t,e,a,a+i,$.time,n,r);return o&&X.once("mina.finish."+r.id,o),r},t.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;e<n;e++)t[e].stop();return this},t.animate=function(t,e,n,i){"function"!=typeof n||n.length||(i=n,n=$.linear),t instanceof y&&(i=t.callback,n=t.easing,e=t.dur,t=t.attr);var r,o,a,s,l,u=[],c=[],p={},h=this;for(s in t)t[v](s)&&(h.equal?(r=(l=h.equal(s,m(t[s]))).from,o=l.to,a=l.f):(r=+h.attr(s),o=+t[s]),l=g(r,"array")?r.length:1,p[s]=function(e,n,i){return function(t){t=t.slice(e,n);return 1==t.length&&(t=t[0]),i?i(t):t}}(u.length,u.length+l,a),u=u.concat(r),c=c.concat(o));var d=$.time(),f=$(u,c,d,d+e,$.time,function(t){var e,n={};for(e in p)p[v](e)&&(n[e]=p[e](t));h.attr(n)},n);return(h.anims[f.id]=f)._attrs=t,f._callback=i,X("snap.animcreated."+h.id,f),X.once("mina.finish."+f.id,function(){delete h.anims[f.id],i&&i.call(h)}),X.once("mina.stop."+f.id,function(){delete h.anims[f.id]}),h};var f={};t.data=function(t,e){var n=f[this.id]=f[this.id]||{};if(0==arguments.length)return X("snap.data.get."+this.id,this,n,null),n;if(1!=arguments.length)return n[t]=e,X("snap.data.set."+this.id,this,e,t),this;if(l.is(t,"object")){for(var i in t)t[v](i)&&this.data(i,t[i]);return this}return X("snap.data.get."+this.id,this,n[t],t),n[t]},t.removeData=function(t){return null==t?f[this.id]={}:f[this.id]&&delete f[this.id][t],this},t.outerSVG=t.toString=o(1),t.innerSVG=o(),t.toDataURL=function(){if(b&&b.btoa){var t=this.getBBox(),t=l.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+t.x.toFixed(3),y:+t.y.toFixed(3),width:+t.width.toFixed(3),height:+t.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(t)))}},i.prototype.select=t.select,i.prototype.selectAll=t.selectAll}),t.plugin(function(r){function d(t,e,n,i,r,o){return null==e&&"[object SVGMatrix]"==a.call(t)?(this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f)):void(null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+i,this.e=+r,this.f=+o):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}var t,a=Object.prototype.toString,e=String,o=Math;function i(t){return t[0]*t[0]+t[1]*t[1]}function s(t){var e=o.sqrt(i(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}(t=d.prototype).add=function(t,e,n,i,r,o){var a,s,l,u,c=[[],[],[]],p=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],h=[[t,n,r],[e,i,o],[0,0,1]];for(t&&t instanceof d&&(h=[[t.a,t.c,t.e],[t.b,t.d,t.f],[0,0,1]]),a=0;a<3;a++)for(s=0;s<3;s++){for(l=u=0;l<3;l++)u+=p[a][l]*h[l][s];c[a][s]=u}return this.a=c[0][0],this.b=c[1][0],this.c=c[0][1],this.d=c[1][1],this.e=c[0][2],this.f=c[1][2],this},t.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new d(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},t.clone=function(){return new d(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(t,e){return this.add(1,0,0,1,t,e)},t.scale=function(t,e,n,i){return null==e&&(e=t),(n||i)&&this.add(1,0,0,1,n,i),this.add(t,0,0,e,0,0),(n||i)&&this.add(1,0,0,1,-n,-i),this},t.rotate=function(t,e,n){t=r.rad(t),e=e||0,n=n||0;var i=+o.cos(t).toFixed(9),t=+o.sin(t).toFixed(9);return this.add(i,t,-t,i,e,n),this.add(1,0,0,1,-e,-n)},t.x=function(t,e){return t*this.a+e*this.c+this.e},t.y=function(t,e){return t*this.b+e*this.d+this.f},t.get=function(t){return+this[e.fromCharCode(97+t)].toFixed(4)},t.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.determinant=function(){return this.a*this.d-this.b*this.c},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var e=[[this.a,this.c],[this.b,this.d]];t.scalex=o.sqrt(i(e[0])),s(e[0]),t.shear=e[0][0]*e[1][0]+e[0][1]*e[1][1],e[1]=[e[1][0]-e[0][0]*t.shear,e[1][1]-e[0][1]*t.shear],t.scaley=o.sqrt(i(e[1])),s(e[1]),t.shear/=t.scaley,this.determinant()<0&&(t.scalex=-t.scalex);var n=-e[0][1],e=e[1][1];return e<0?(t.rotate=r.deg(o.acos(e)),n<0&&(t.rotate=360-t.rotate)):t.rotate=r.deg(o.asin(n)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(t){t=t||this.split();return+t.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[+t.dx.toFixed(4),+t.dy.toFixed(4)]:"")+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:"")+(t.rotate?"r"+[+t.rotate.toFixed(4),0,0]:""))},r.Matrix=d,r.matrix=function(t,e,n,i,r,o){return new d(t,e,n,i,r,o)}}),t.plugin(function(r,o,t,a,s){function e(i){return function(t){var e,n;X.stop(),t instanceof s&&1==t.node.childNodes.length&&("radialGradient"==t.node.firstChild.tagName||"linearGradient"==t.node.firstChild.tagName||"pattern"==t.node.firstChild.tagName)&&(t=t.node.firstChild,h(this).appendChild(t),t=c(t)),n=t instanceof o?"radialGradient"==t.type||"linearGradient"==t.type||"pattern"==t.type?(t.node.id||f(t.node,{id:t.id}),g(t.node.id)):t.attr(i):(n=r.color(t)).error?(e=r(h(this).ownerSVGElement).gradient(t))?(e.node.id||f(e.node,{id:e.id}),g(e.node.id)):t:m(n);t={};t[i]=n,f(this.node,t),this.node.style[i]=""}}function n(t){X.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function i(){return X.stop(),this.node.style.fontSize}var l,u=r._.make,c=r._.wrap,p=r.is,h=r._.getSomeDefs,d=/^url\(#?([^)]+)\)$/,f=r._.$,g=r.url,m=String,v=r._.separator;X.on("snap.util.attr.mask",function(t){var e;(t instanceof o||t instanceof s)&&(X.stop(),t instanceof s&&1==t.node.childNodes.length&&(t=t.node.firstChild,h(this).appendChild(t),t=c(t)),"mask"==t.type?e=t:(e=u("mask",h(this))).node.appendChild(t.node),e.node.id||f(e.node,{id:e.id}),f(this.node,{mask:g(e.id)}))}),l=function(t){var e;(t instanceof o||t instanceof s)&&(X.stop(),"clipPath"==t.type?e=t:((e=u("clipPath",h(this))).node.appendChild(t.node),e.node.id||f(e.node,{id:e.id})),f(this.node,{"clip-path":g(e.node.id||e.id)}))},X.on("snap.util.attr.clip",l),X.on("snap.util.attr.clip-path",l),X.on("snap.util.attr.clipPath",l),X.on("snap.util.attr.fill",e("fill")),X.on("snap.util.attr.stroke",e("stroke"));var y=/^([lr])(?:\(([^)]*)\))?(.*)$/i;function b(e){return function(){X.stop();var t=a.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+e);return"none"==t?t:r(a.doc.getElementById(t.match(d)[1]))}}function $(i){return function(t){X.stop();var e,n="marker"+i.charAt(0).toUpperCase()+i.substring(1);
1""!=t&&t?"marker"==t.type&&((e=t.node.id)||f(t.node,{id:t.id}),this.node.style[n]=g(e)):this.node.style[n]="none"}}X.on("snap.util.grad.parse",function(t){var e=(t=m(t)).match(y);if(!e)return null;var n=e[1],t=e[2],e=e[3];return{type:n,params:t=1==(t=t.split(/\s*,\s*/).map(function(t){return+t==t?+t:t})).length&&0==t[0]?[]:t,stops:e=(e=e.split("-")).map(function(t){var e={color:(t=t.split(":"))[0]};return t[1]&&(e.offset=parseFloat(t[1])),e})}}),X.on("snap.util.attr.d",function(t){X.stop(),p(t,"array")&&p(t[0],"array")&&(t=r.path.toString.call(t)),(t=m(t)).match(/[ruo]/i)&&(t=r.path.toAbsolute(t)),f(this.node,{d:t})})(-1),X.on("snap.util.attr.#text",function(t){X.stop(),t=m(t);for(t=a.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(t)})(-1),X.on("snap.util.attr.path",function(t){X.stop(),this.attr({d:t})})(-1),X.on("snap.util.attr.class",function(t){X.stop(),this.node.className.baseVal=t})(-1),X.on("snap.util.attr.viewBox",function(t){t=p(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):p(t,"array")?t.join(" "):t;f(this.node,{viewBox:t}),X.stop()})(-1),X.on("snap.util.attr.transform",function(t){this.transform(t),X.stop()})(-1),X.on("snap.util.attr.r",function(t){"rect"==this.type&&(X.stop(),f(this.node,{rx:t,ry:t}))})(-1),X.on("snap.util.attr.textpath",function(t){if(X.stop(),"text"==this.type){var e,n,i,r;if(!t&&this.textPath){for(e=this.textPath;e.node.firstChild;)this.node.appendChild(e.node.firstChild);return e.remove(),void delete this.textPath}if(p(t,"string")?(i=h(this),r=c(i.parentNode).path(t),i.appendChild(r.node),i=r.id,r.attr({id:i})):(t=c(t))instanceof o&&((i=t.attr("id"))||(i=t.id,t.attr({id:i}))),i)if(e=this.textPath,n=this.node,e)e.attr({"xlink:href":"#"+i});else{for(e=f("textPath",{"xlink:href":"#"+i});n.firstChild;)e.appendChild(n.firstChild);n.appendChild(e),this.textPath=c(e)}}})(-1),X.on("snap.util.attr.text",function(t){if("text"==this.type){for(var e=this.node,i=function(t){var e=f("tspan");if(p(t,"array"))for(var n=0;n<t.length;n++)e.appendChild(i(t[n]));else e.appendChild(a.doc.createTextNode(t));return e.normalize&&e.normalize(),e};e.firstChild;)e.removeChild(e.firstChild);for(var n=i(t);n.firstChild;)e.appendChild(n.firstChild)}X.stop()})(-1),X.on("snap.util.attr.fontSize",n)(-1),X.on("snap.util.attr.font-size",n)(-1),X.on("snap.util.getattr.transform",function(){return X.stop(),this.transform()})(-1),X.on("snap.util.getattr.textpath",function(){return X.stop(),this.textPath})(-1),X.on("snap.util.getattr.marker-end",b("end"))(-1),X.on("snap.util.getattr.markerEnd",b("end"))(-1),X.on("snap.util.getattr.marker-start",b("start"))(-1),X.on("snap.util.getattr.markerStart",b("start"))(-1),X.on("snap.util.getattr.marker-mid",b("mid"))(-1),X.on("snap.util.getattr.markerMid",b("mid"))(-1),X.on("snap.util.attr.marker-end",$("end"))(-1),X.on("snap.util.attr.markerEnd",$("end"))(-1),X.on("snap.util.attr.marker-start",$("start"))(-1),X.on("snap.util.attr.markerStart",$("start"))(-1),X.on("snap.util.attr.marker-mid",$("mid"))(-1),X.on("snap.util.attr.markerMid",$("mid"))(-1),X.on("snap.util.getattr.r",function(){return"rect"==this.type&&f(this.node,"rx")==f(this.node,"ry")?(X.stop(),f(this.node,"rx")):void 0})(-1),X.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){X.stop();var t=function t(e){for(var n=[],i=e.childNodes,r=0,o=i.length;r<o;r++){var a=i[r];3==a.nodeType&&n.push(a.nodeValue),"tspan"==a.tagName&&n.push(1==a.childNodes.length&&3==a.firstChild.nodeType?a.firstChild.nodeValue:t(a))}return n}(this.node);return 1==t.length?t[0]:t}})(-1),X.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),X.on("snap.util.getattr.viewBox",function(){X.stop();var t=f(this.node,"viewBox");return t?(t=t.split(v),r._.box(+t[0],+t[1],+t[2],+t[3])):void 0})(-1),X.on("snap.util.getattr.points",function(){var t=f(this.node,"points");return X.stop(),t?t.split(v):void 0})(-1),X.on("snap.util.getattr.path",function(){var t=f(this.node,"d");return X.stop(),t})(-1),X.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1),X.on("snap.util.getattr.fontSize",i)(-1),X.on("snap.util.getattr.font-size",i)(-1)}),t.plugin(function(t,e){var s=/\S+/g,a=String,e=e.prototype;e.addClass=function(t){var e,n,i=a(t||"").match(s)||[],r=this.node,t=r.className.baseVal,o=t.match(s)||[];if(i.length){for(e=0;
1n=i[e++];)~o.indexOf(n)||o.push(n);t!=(t=o.join(" "))&&(r.className.baseVal=t)}return this},e.removeClass=function(t){var e,n,i=a(t||"").match(s)||[],r=this.node,t=r.className.baseVal,o=t.match(s)||[];if(o.length){for(e=0;n=i[e++];)~(n=o.indexOf(n))&&o.splice(n,1);t!=(t=o.join(" "))&&(r.className.baseVal=t)}return this},e.hasClass=function(t){return!!~(this.node.className.baseVal.match(s)||[]).indexOf(t)},e.toggleClass=function(t,e){if(null!=e)return e?this.addClass(t):this.removeClass(t);for(var n,i,r=(t||"").match(s)||[],e=this.node,t=e.className.baseVal,o=t.match(s)||[],a=0;i=r[a++];)~(n=o.indexOf(i))?o.splice(n,1):o.push(i);return t!=(t=o.join(" "))&&(e.className.baseVal=t),this}}),t.plugin(function(){function s(t){return t}var l={"+":function(t,e){return t+e},"-":function(t,e){return t-e},"/":function(t,e){return t/e},"*":function(t,e){return t*e}},u=String,c=/[a-z]+$/i,p=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;X.on("snap.util.attr",function(t){var e,n,i,r,o,a,s=u(t).match(p);s&&(e=(a=X.nt()).substring(a.lastIndexOf(".")+1),n=this.attr(e),i={},X.stop(),r=s[3]||"",o=n.match(c),a=l[s[1]],t=o&&o==r?a(parseFloat(n),+s[2]):(n=this.asPX(e),a(this.asPX(e),this.asPX(e,s[2]+r))),isNaN(n)||isNaN(t)||(i[e]=t,this.attr(i)))})(-10),X.on("snap.util.equal",function(t,e){var n,i=u(this.attr(t)||""),r=u(e).match(p);if(r){X.stop();var o=r[3]||"",a=i.match(c),e=l[r[1]];return a&&a==o?{from:parseFloat(i),to:e(parseFloat(i),+r[2]),f:(n=a,function(t){return+t.toFixed(3)+n})}:{from:i=this.asPX(t),to:e(i,this.asPX(t,r[2]+o)),f:s}}})(-10)}),t.plugin(function(s,e,t,r){var n=t.prototype,u=s.is;n.rect=function(t,e,n,i,r,o){var a;return null==o&&(o=r),u(t,"object")&&"[object Object]"==t?a=t:null!=t&&(a={x:t,y:e,width:n,height:i},null!=r&&(a.rx=r,a.ry=o)),this.el("rect",a)},n.circle=function(t,e,n){var i;return u(t,"object")&&"[object Object]"==t?i=t:null!=t&&(i={cx:t,cy:e,r:n}),this.el("circle",i)};var c,l=function(t,e){var n=r.doc.createElement("img"),i=r.doc.body;n.style.cssText="position:absolute;left:-9999em;top:-9999em",n.onload=function(){e.call(n),n.onload=n.onerror=null,i.removeChild(n)},n.onerror=o,i.appendChild(n),n.src=t};function o(){this.parentNode.removeChild(this)}function a(){return this.selectAll("stop")}function p(t,e){var n=c("stop"),e={offset:+e+"%"};return t=s.color(t),e["stop-color"]=t.hex,t.opacity<1&&(e["stop-opacity"]=t.opacity),c(n,e),this.node.appendChild(n),this}function h(){if("linearGradient"==this.type){var t=c(this.node,"x1")||0,e=c(this.node,"x2")||1,n=c(this.node,"y1")||0,i=c(this.node,"y2")||0;return s._.box(t,n,math.abs(e-t),math.abs(i-n))}t=this.node.cx||.5,i=this.node.cy||.5,n=this.node.r||0;return s._.box(t-n,i-n,2*n,2*n)}function d(t,e,n,i,r){t=s._.make("linearGradient",t);return t.stops=a,t.addStop=p,t.getBBox=h,null!=e&&c(t.node,{x1:e,y1:n,x2:i,y2:r}),t}function f(t,e,n,i,r,o){t=s._.make("radialGradient",t);return t.stops=a,t.addStop=p,t.getBBox=h,null!=e&&c(t.node,{cx:e,cy:n,r:i}),null!=r&&null!=o&&c(t.node,{fx:r,fy:o}),t}n.image=function(t,e,n,i,r){var o,a=this.el("image");return u(t,"object")&&"src"in t?a.attr(t):null!=t&&(o={"xlink:href":t,preserveAspectRatio:"none"},null!=e&&null!=n&&(o.x=e,o.y=n),null!=i&&null!=r?(o.width=i,o.height=r):l(t,function(){s._.$(a.node,{width:this.offsetWidth,height:this.offsetHeight})}),s._.$(a.node,o)),a},n.ellipse=function(t,e,n,i){var r;return u(t,"object")&&"[object Object]"==t?r=t:null!=t&&(r={cx:t,cy:e,rx:n,ry:i}),this.el("ellipse",r)},n.path=function(t){var e;return u(t,"object")&&!u(t,"array")?e=t:t&&(e={d:t}),this.el("path",e)},n.group=n.g=function(t){var e=this.el("g");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},n.svg=function(t,e,n,i,r,o,a,s){var l={};return u(t,"object")&&null==e?l=t:(null!=t&&(l.x=t),null!=e&&(l.y=e),null!=n&&(l.width=n),null!=i&&(l.height=i),null!=r&&null!=o&&null!=a&&null!=s&&(l.viewBox=[r,o,a,s])),this.el("svg",l)},n.mask=function(t){var e=this.el("mask");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},n.ptrn=function(t,e,n,i,r,o,a,s){var l;return u(t,"object")?l=t:(l={patternUnits:"userSpaceOnUse"},t&&(l.x=t),e&&(l.y=e),null!=n&&(l.width=n),null!=i&&(l.height=i),l.viewBox=null!=r&&null!=o&&null!=a&&null!=s?[r,o,a,s]:[t||0,e||0,n||0,i||0]),this.el("pattern",l)},n.use=function(t){return null!=t?(t instanceof e&&(t.attr("id")||t.attr({id:s._.id(t)}),t=t.attr("id")),"#"==String(t).charAt()&&(t=t.substring(1)),this.el("use",{"xlink:href":"#"+t})):e.prototype.use.call(this)},n.symbol=function(t,e,n,i){var r={};return null!=t&&null!=e&&null!=n&&null!=i&&(r.viewBox=[t,e,n,i]),this.el("symbol",r)},n.text=function(t,e,n){var i={};return u(t,"object")?i=t:null!=t&&(i={x:t,y:e,text:n||""}),this.el("text",i)},n.line=function(t,e,n,i){var r={};return u(t,"object")?r=t:null!=t&&(r={x1:t,x2:n,y1:e,y2:i}),this.el("line",r)},n.polyline=function(t){1<arguments.length&&(t=Array.prototype.slice.call(arguments,0));var e={};return u(t,"object")&&!u(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},n.polygon=function(t){1<arguments.length&&(t=Array.prototype.slice.call(arguments,0));var e={};return u(t,"object")&&!u(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},c=s._.$,n.gradient=function(t){return function(t,e){function n(t,e){for(var n=(e-a)/(t-s),i=s;i<t;i++)r[i].offset=+(+a+n*(i-s)).toFixed(2);s=t,a=e}var i;if(!(e=X("snap.util.grad.parse",null,e).firstDefined()))return null;e.params.unshift(t),i=("l"==e.type.toLowerCase()?d:f).apply(0,e.params),e.type!=e.type.toLowerCase()&&c(i.node,{gradientUnits:"userSpaceOnUse"});var r=e.stops,o=r.length,a=0,s=0;o--;for(var l=0;l<o;l++)"offset"in r[l]&&n(l,r[l].offset);for(r[o].offset=r[o].offset||100,n(o,r[o].offset),l=0;l<=o;l++){var u=r[l];i.addStop(u.color,u.offset)}return i}(this.defs,t)},n.gradientLinear=function(t,e,n,i){return d(this.defs,t,e,n,i)},n.gradientRadial=function(t,e,n,i,r){return f(this.defs,t,e,n,i,r)},n.toString=function(){var t=this.node.ownerDocument,e=t.createDocumentFragment(),n=t.createElement("div"),t=this.node.cloneNode(!0);return e.appendChild(n),n.appendChild(t),s._.$(t,{xmlns:"http://www.w3.org/2000/svg"}),n=n.innerHTML,e.removeChild(e.firstChild),n},n.toDataURL=function(){return b&&b.btoa?"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this))):void 0},n.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName?e.parentNode.removeChild(e):n.clear.call({node:e}),e=t}}),t.plugin(function(T,m){function $(e){var n=$.ps=$.ps||{};return n[e]?n[e].sleep=100:n[e]={sleep:100},setTimeout(function(){for(var t in n)n[i](t)&&t!=e&&(n[t].sleep--,n[t].sleep||delete n[t])}),n[e]}function g(t,e,n,i){return null==t&&(t=e=n=i=0),null==e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:L.min(n,i)/2,r2:L.max(n,i)/2,r0:L.sqrt(n*n+i*i)/2,path:a(t,e,n,i),vb:[t,e,n,i].join(" ")}}function b(){return this.join(",").replace(n,"$1")}function w(t){t=d(t);return t.toString=b,t}function v(t,e,n,i,r,o,a,s,l){return null==l?E(t,e,n,i,r,o,a,s):x(t,e,n,i,r,o,a,s,function(t,e,n,i,r,o,a,s,l){if(!(l<0||E(t,e,n,i,r,o,a,s)<l)){var u,c=.5,p=1-c;for(u=E(t,e,n,i,r,o,a,s,p);.01<H(u-l);)u=E(t,e,n,i,r,o,a,s,p+=(u<l?1:-1)*(c/=2));return p}}(t,e,n,i,r,o,a,s,l))}function t(d,f){function g(t){return+(+t).toFixed(3)}return T._.cacher(function(t,e,n){for(var i,r,o,a,s,l="",u={},c=0,p=0,h=(t=I(t=t instanceof m?t.attr("d"):t)).length;p<h;p++){if("M"==(o=t[p])[0])i=+o[1],r=+o[2];else{if(e<c+(a=v(i,r,o[1],o[2],o[3],o[4],o[5],o[6]))){if(f&&!u.start){if(l+=["C"+g((s=v(i,r,o[1],o[2],o[3],o[4],o[5],o[6],e-c)).start.x),g(s.start.y),g(s.m.x),g(s.m.y),g(s.x),g(s.y)],n)return l;
1u.start=l,l=["M"+g(s.x),g(s.y)+"C"+g(s.n.x),g(s.n.y),g(s.end.x),g(s.end.y),g(o[5]),g(o[6])].join(),c+=a,i=+o[5],r=+o[6];continue}if(!d&&!f)return v(i,r,o[1],o[2],o[3],o[4],o[5],o[6],e-c)}c+=a,i=+o[5],r=+o[6]}l+=o.shift()+o}return u.end=l,d?c:f?u:x(i,r,o[0],o[1],o[2],o[3],o[4],o[5],1)},null,T._.clone)}function x(t,e,n,i,r,o,a,s,l){var u=1-l,c=_(u,3),p=_(u,2),h=l*l,d=h*l,f=t+2*l*(n-t)+h*(r-2*n+t),g=e+2*l*(i-e)+h*(o-2*i+e),m=n+2*l*(r-n)+h*(a-2*r+n),h=i+2*l*(o-i)+h*(s-2*o+i);return{x:c*t+3*p*l*n+3*u*l*l*r+d*a,y:c*e+3*p*l*i+3*u*l*l*o+d*s,m:{x:f,y:g},n:{x:m,y:h},start:{x:u*t+l*n,y:u*e+l*i},end:{x:u*r+l*a,y:u*o+l*s},alpha:90-180*L.atan2(f-m,g-h)/F}}function C(t,e,n,i,r,o,a,s){T.is(t,"array")||(t=[t,e,n,i,r,o,a,s]);t=h.apply(null,t);return g(t.min.x,t.min.y,t.max.x-t.min.x,t.max.y-t.min.y)}function y(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function k(t,e){return t=g(t),y(e=g(e),t.x,t.y)||y(e,t.x2,t.y)||y(e,t.x,t.y2)||y(e,t.x2,t.y2)||y(t,e.x,e.y)||y(t,e.x2,e.y)||y(t,e.x,e.y2)||y(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function S(t,e,n,i,r){return t*(t*(-3*e+9*n-9*i+3*r)+6*e-12*n+6*i)-3*e+3*n}function E(t,e,n,i,r,o,a,s,l){for(var u=(l=1<(l=null==l?1:l)?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,d=0;d<12;d++){var f=u*c[d]+u,g=S(f,t,n,r,a),f=S(f,e,i,o,s);h+=p[d]*L.sqrt(g*g+f*f)}return u*h}function D(t,e,n){if(!k(C(t),C(e)))return n?0:[];for(var i=~~(E.apply(0,t)/8),r=~~(E.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],u=0;u<1+i;u++){var c=x.apply(0,t.concat(u/i));o.push({x:c.x,y:c.y,t:u/i})}for(u=0;u<1+r;u++)c=x.apply(0,e.concat(u/r)),a.push({x:c.x,y:c.y,t:u/r});for(u=0;u<i;u++)for(var p=0;p<r;p++){var h=o[u],d=o[u+1],f=a[p],g=a[p+1],m=H(d.x-h.x)<.001?"y":"x",v=H(g.x-f.x)<.001?"y":"x",y=function(t,e,n,i,r,o,a,s){if(!(q(t,n)<U(r,a)||U(t,n)>q(r,a)||q(e,i)<U(o,s)||U(e,i)>q(o,s))){var l=(t-n)*(o-s)-(e-i)*(r-a);if(l){var u=((t*i-e*n)*(r-a)-(t-n)*(r*s-o*a))/l,c=((t*i-e*n)*(o-s)-(e-i)*(r*s-o*a))/l,p=+u.toFixed(2),l=+c.toFixed(2);if(!(p<+U(t,n).toFixed(2)||p>+q(t,n).toFixed(2)||p<+U(r,a).toFixed(2)||p>+q(r,a).toFixed(2)||l<+U(e,i).toFixed(2)||l>+q(e,i).toFixed(2)||l<+U(o,s).toFixed(2)||l>+q(o,s).toFixed(2)))return{x:u,y:c}}}}(h.x,h.y,d.x,d.y,f.x,f.y,g.x,g.y);y&&s[y.x.toFixed(4)]!=y.y.toFixed(4)&&(s[y.x.toFixed(4)]=y.y.toFixed(4),h=h.t+H((y[m]-h[m])/(d[m]-h[m]))*(d.t-h.t),f=f.t+H((y[v]-f[v])/(g[v]-f[v]))*(g.t-f.t),0<=h&&h<=1&&0<=f&&f<=1&&(n?l++:l.push({x:y.x,y:y.y,t1:h,t2:f})))}return l}function r(t,e,n){t=I(t),e=I(e);for(var i,r,o,a,s,l,u,c,p=n?0:[],h=0,d=t.length;h<d;h++){var f=t[h];if("M"==f[0])i=o=f[1],g=a=f[2];else for(var g="C"==f[0]?(i=(u=[i,g].concat(f.slice(1)))[6],u[7]):(u=[i,g,i,g,o,a,o,a],i=o,a),m=0,v=e.length;m<v;m++){var y=e[m];if("M"==y[0])r=s=y[1],b=l=y[2];else{var b="C"==y[0]?(r=(c=[r,b].concat(y.slice(1)))[6],c[7]):(c=[r,b,r,b,s,l,s,l],r=s,l),$=D(u,c,n);if(n)p+=$;else{for(var w=0,x=$.length;w<x;w++)$[w].segment1=h,$[w].segment2=m,$[w].bez1=u,$[w].bez2=c;p=p.concat($)}}}}return p}function o(t){var e=$(t);if(e.bbox)return d(e.bbox);if(!t)return g();for(var n,i,r=0,o=0,a=[],s=[],l=0,u=(t=I(t)).length;l<u;l++)"M"==(n=t[l])[0]?(r=n[1],o=n[2],a.push(r),s.push(o)):(i=h(r,o,n[1],n[2],n[3],n[4],n[5],n[6]),a=a.concat(i.min.x,i.max.x),s=s.concat(i.min.y,i.max.y),r=n[5],o=n[6]);var c=U.apply(0,a),p=U.apply(0,s),p=g(c,p,q.apply(0,a)-c,q.apply(0,s)-p);return e.bbox=d(p),p}function a(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];n=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return n.toString=b,n}function A(t,e,n,i,r){var o,a,s;return null==r&&null==i&&(i=n),t=+t,e=+e,n=+n,i=+i,(i=null!=r?(o=Math.PI/180,a=t+n*Math.cos(-i*o),s=t+n*Math.cos(-r*o),[["M",a,e+n*Math.sin(-i*o)],["A",n,n,0,+(180<r-i),0,s,e+n*Math.sin(-r*o)]]):[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]]).toString=b,i}
vendor: 1,056 bytes, line 1
1function O(t){var e=$(t);if(e.abs)return w(e.abs);if(!(t=!j(t,"array")||!j(t&&t[0],"array")?T.parsePathString(t):t)||!t.length)return[["M",0,0]];var n,i=[],r=0,o=0,a=0,s=0,l=0;"M"==t[0][0]&&(r=+t[0][1],o=+t[0][2],l++,i[0]=["M",a=r,s=o]);for(var u,c,p=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),h=l,d=t.length;h<d;h++){if(i.push(u=[]),(n=(c=t[h])[0])!=n.toUpperCase())switch(u[0]=n.toUpperCase(),u[0]){case"A":u[1]=c[1],u[2]=c[2],u[3]=c[3],u[4]=c[4],u[5]=c[5],u[6]=+c[6]+r,u[7]=+c[7]+o;break;case"V":u[1]=+c[1]+o;break;case"H":u[1]=+c[1]+r;break;case"R":for(var f=[r,o].concat(c.slice(1)),g=2,m=f.length;g<m;g++)f[g]=+f[g]+r,f[++g]=+f[g]+o;i.pop(),i=i.concat(R(f,p));break;case"O":i.pop(),(f=A(r,o,c[1],c[2])).push(f[0]),i=i.concat(f);break;case"U":i.pop(),i=i.concat(A(r,o,c[1],c[2],c[3])),u=["U"].concat(i[i.length-1].slice(-2));break;case"M":a=+c[1]+r,s=+c[2]+o;default:for(g=1,m=c.length;g<m;g++)u[g]=+c[g]+(g%2?r:o)}else if("R"==n)f=[r,o].concat(c.slice(1)),i.pop(),i=i.concat(R(f,p)),u=["R"].concat(c.slice(-2));
1else if("O"==n)i.pop(),(f=A(r,o,c[1],c[2])).push(f[0]),i=i.concat(f);else if("U"==n)i.pop(),i=i.concat(A(r,o,c[1],c[2],c[3])),u=["U"].concat(i[i.length-1].slice(-2));else for(var v=0,y=c.length;v<y;v++)u[v]=c[v];if("O"!=(n=n.toUpperCase()))switch(u[0]){case"Z":r=+a,o=+s;break;case"H":r=u[1];break;case"V":o=u[1];break;case"M":a=u[u.length-2],s=u[u.length-1];default:r=u[u.length-2],o=u[u.length-1]}}return i.toString=b,e.abs=w(i),i}function P(t,e,n,i){return[t,e,n,i,n,i]}function M(t,e,n,i,r,o){return[1/3*t+2/3*n,1/3*e+2/3*i,1/3*r+2/3*n,1/3*o+2/3*i,r,o]}function h(t,e,n,i,r,o,a,s){for(var l,u,c,p,h,d=[],f=[[],[]],g=0;g<2;++g)if(h=0==g?(u=6*t-12*n+6*r,l=-3*t+9*n-9*r+3*a,3*n-3*t):(u=6*e-12*i+6*o,l=-3*e+9*i-9*o+3*s,3*i-3*e),H(l)<1e-12){if(H(u)<1e-12)continue;0<(c=-h/u)&&c<1&&d.push(c)}else h=L.sqrt(p=u*u-4*h*l),p<0||(0<(p=(-u+h)/(2*l))&&p<1&&d.push(p),0<(h=(-u-h)/(2*l))&&h<1&&d.push(h));for(var m,v=d.length,y=v;v--;)c=d[v],f[0][v]=(m=1-c)*m*m*t+3*m*m*c*n+3*m*c*c*r+c*c*c*a,f[1][v]=m*m*m*e+3*m*m*c*i+3*m*c*c*o+c*c*c*s;return f[0][y]=t,f[1][y]=e,f[0][y+1]=a,f[1][y+1]=s,f[0].length=f[1].length=y+2,{min:{x:U.apply(0,f[0]),y:U.apply(0,f[1])},max:{x:q.apply(0,f[0]),y:q.apply(0,f[1])}}}function I(t,e){var n=!e&&$(t);if(!e&&n.curve)return w(n.curve);function i(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(t[0]in{T:1,Q:1}||(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,i,r,o,a,s,l,u,c){var p,h,d,f=120*F/180,g=F/180*(+o||0),m=[],v=T._.cacher(function(t,e,n){return{x:t*L.cos(n)-e*L.sin(n),y:t*L.sin(n)+e*L.cos(n)}});c?(w=c[0],x=c[1],b=c[2],$=c[3]):(e=(h=v(e,n,-g)).x,n=h.y,l=(h=v(l,u,-g)).x,u=h.y,1<(L.cos(F/180*o),L.sin(F/180*o),y=(d=(e-l)/2)*d/(i*i)+(p=(n-u)/2)*p/(r*r))&&(i*=y=L.sqrt(y),r*=y),b=(h=(a==s?-1:1)*L.sqrt(H(((h=i*i)*(y=r*r)-h*p*p-y*d*d)/(h*p*p+y*d*d))))*i*p/r+(e+l)/2,w=L.asin(((n-($=h*-r*d/i+(n+u)/2))/r).toFixed(9)),x=L.asin(((u-$)/r).toFixed(9)),(w=e<b?F-w:w)<0&&(w=2*F+w),(x=l<b?F-x:x)<0&&(x=2*F+x),s&&x<w&&(w-=2*F),!s&&w<x&&(x-=2*F)),H(y=x-w)>f&&(p=x,h=l,d=u,m=t(l=b+i*L.cos(x=w+f*(s&&w<x?1:-1)),u=$+r*L.sin(x),i,r,o,0,s,h,d,[x,p,b,$]));var y=x-w,b=L.cos(w),$=L.sin(w),w=L.cos(x),x=L.sin(x),y=L.tan(y/4),i=4/3*i*y,r=4/3*r*y,y=[e,n],b=[e+i*$,n-r*b],w=[l+i*x,u-r*w],u=[l,u];if(b[0]=2*y[0]-b[0],b[1]=2*y[1]-b[1],c)return[b,w,u].concat(m);for(var C=[],k=0,S=(m=[b,w,u].concat(m).join().split(",")).length;k<S;k++)C[k]=k%2?v(m[k-1],m[k],g).y:v(m[k],m[k+1],g).x;return C}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":r="C"==n||"S"==n?(i=2*e.x-e.bx,2*e.y-e.by):(i=e.x,e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(M(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(M(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(P(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(P(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(P(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(P(e.x,e.y,e.X,e.Y))}return t}function r(t,e){if(7<t[e].length){t[e].shift();for(var n=t[e];n.length;)c[e]="A",s&&(p[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),g=q(a.length,s&&s.length||0)}}function o(t,e,n,i,r){t&&e&&"M"==t[r][0]&&"M"!=e[r][0]&&(e.splice(r,0,["M",i.x,i.y]),n.bx=0,n.by=0,n.x=t[r][1],n.y=t[r][2],g=q(a.length,s&&s.length||0))}for(var a=O(t),s=e&&O(e),l={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=[],p=[],h="",d="",f=0,g=q(a.length,s&&s.length||0);f<g;f++){"C"!=(h=a[f]?a[f][0]:h)&&(c[f]=h,f&&(d=c[f-1])),a[f]=i(a[f],l,d),"A"!=c[f]&&"C"==h&&(c[f]="C"),r(a,f),s&&("C"!=(h=s[f]?s[f][0]:h)&&(p[f]=h,f&&(d=p[f-1])),s[f]=i(s[f],u,d),"A"!=p[f]&&"C"==h&&(p[f]="C"),r(s,f)),o(a,s,l,u,f),o(s,a,u,l,f);var m=a[f],v=s&&s[f],y=m.length,b=s&&v.length;l.x=m[y-2],l.y=m[y-1],l.bx=N(m[y-4])||l.x,l.by=N(m[y-3])||l.y,u.bx=s&&(N(v[b-4])||u.x),u.by=s&&(N(v[b-3])||u.y),u.x=s&&v[b-2],u.y=s&&v[b-1]}return s||(n.curve=w(a)),s?[a,s]:a}function R(t,e){for(var n=[],i=0,r=t.length;i<r-2*!e;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4==i?o[3]={x:+t[0],y:+t[1]}:r-2==i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4==i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n}var e=m.prototype,j=T.is,d=T._.clone,i="hasOwnProperty",n=/,?([a-z]),?/gi,N=parseFloat,L=Math,F=L.PI,U=L.min,q=L.max,_=L.pow,H=L.abs,s=t(1),l=t(),u=t(0,1),c=T._unit2px,p={path:function(t){return t.attr("path")},circle:function(t){t=c(t);return A(t.cx,t.cy,t.r)},ellipse:function(t){t=c(t);return A(t.cx||0,t.cy||0,t.rx,t.ry)},rect:function(t){t=c(t);return a(t.x||0,t.y||0,t.width,t.height,t.rx,t.ry)},image:function(t){t=c(t);return a(t.x||0,t.y||0,t.width,t.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"}
1,deflt:function(t){t=t.node.getBBox();return a(t.x,t.y,t.width,t.height)}};T.path=$,T.path.getTotalLength=s,T.path.getPointAtLength=l,T.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return u(t,e).end;n=u(t,n,1);return e?u(n,e).end:n},e.getTotalLength=function(){return this.node.getTotalLength?this.node.getTotalLength():void 0},e.getPointAtLength=function(t){return l(this.attr("d"),t)},e.getSubpath=function(t,e){return T.path.getSubpath(this.attr("d"),t,e)},T._.box=g,T.path.findDotsAtSegment=x,T.path.bezierBBox=C,T.path.isPointInsideBBox=y,T.closest=function(t,e,n,i){for(var r=100,o=g(t-r/2,e-r/2,r,r),a=[],s=n[0].hasOwnProperty("x")?function(t){return{x:n[t].x,y:n[t].y}}:function(t){return{x:n[t],y:i[t]}},l=0;r<=1e6&&!l;){for(var u=0,c=n.length;u<c;u++){var p=s(u);if(y(o,p.x,p.y)){l++,a.push(p);break}}l||(o=g(t-(r*=2)/2,e-r/2,r,r))}if(1e6!=r){for(var h,d=1/0,u=0,c=a.length;u<c;u++){var f=T.len(t,e,a[u].x,a[u].y);f<d&&(a[u].len=d=f,h=a[u])}return h}},T.path.isBBoxIntersect=k,T.path.intersection=function(t,e){return r(t,e)},T.path.intersectionNumber=function(t,e){return r(t,e,1)},T.path.isPointInside=function(t,e,n){var i=o(t);return y(i,e,n)&&r(t,[["M",e,n],["H",i.x2+10]],1)%2==1},T.path.getBBox=o,T.path.get=p,T.path.toRelative=function(t){var e=$(t),n=String.prototype.toLowerCase;if(e.rel)return w(e.rel);var i=[],r=0,o=0,a=0,s=0,l=0;"M"==(t=!T.is(t,"array")||!T.is(t&&t[0],"array")?T.parsePathString(t):t)[0][0]&&(r=t[0][1],o=t[0][2],l++,i.push(["M",a=r,s=o]));for(var u=l,c=t.length;u<c;u++){var p=i[u]=[],h=t[u];if(h[0]!=n.call(h[0]))switch(p[0]=n.call(h[0]),p[0]){case"a":p[1]=h[1],p[2]=h[2],p[3]=h[3],p[4]=h[4],p[5]=h[5],p[6]=+(h[6]-r).toFixed(3),p[7]=+(h[7]-o).toFixed(3);break;case"v":p[1]=+(h[1]-o).toFixed(3);break;case"m":a=h[1],s=h[2];default:for(var d=1,f=h.length;d<f;d++)p[d]=+(h[d]-(d%2?r:o)).toFixed(3)}else{p=i[u]=[],"m"==h[0]&&(a=h[1]+r,s=h[2]+o);for(var g=0,m=h.length;g<m;g++)i[u][g]=h[g]}var v=i[u].length;switch(i[u][0]){case"z":r=a,o=s;break;case"h":r+=+i[u][v-1];break;case"v":o+=+i[u][v-1];break;default:r+=+i[u][v-2],o+=+i[u][v-1]}}return i.toString=b,e.rel=w(i),i},T.path.toAbsolute=O,T.path.toCubic=I,T.path.map=function(t,e){if(!e)return t;for(var n,i,r,o,a,s=0,l=(t=I(t)).length;s<l;s++)for(r=1,o=(a=t[s]).length;r<o;r+=2)n=e.x(a[r],a[r+1]),i=e.y(a[r],a[r+1]),a[r]=n,a[r+1]=i;return t},T.path.toString=b,T.path.clone=w}),t.plugin(function(p){function s(t){if(this.items=[],this.bindings={},this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)t[e]&&(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)}var l=Math.max,u=Math.min,t=s.prototype;t.push=function(){for(var t,e,n=0,i=arguments.length;n<i;n++)(t=arguments[n])&&(this[e=this.items.length]=this.items[e]=t,this.length++);return this},t.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},t.forEach=function(t,e){for(var n=0,i=this.items.length;n<i;n++)if(!1===t.call(e,this.items[n],n))return this;return this},t.animate=function(n,i,r,t){"function"!=typeof r||r.length||(t=r,r=$.linear),n instanceof p._.Animation&&(t=n.callback,r=n.easing,i=r.dur,n=n.attr);var o,a=arguments;p.is(n,"array")&&p.is(a[a.length-1],"array")&&(o=!0);function s(){e?this.b=e:e=this.b}var e,l=0,u=this,c=t&&function(){++l==u.length&&t.call(this)};return this.forEach(function(t,e){X.once("snap.animcreated."+t.id,s),o?a[e]&&t.animate.apply(t,a[e]):t.animate(n,i,r,c)})},t.remove=function(){for(;this.length;)this.pop().remove();return this},t.bind=function(t,e,n){var i,r={};return"function"==typeof e?this.bindings[t]=e:(i=n||t,this.bindings[t]=function(t){r[i]=t,e.attr(r)}),this},t.attr=function(t){var e,n={};for(e in t)this.bindings[e]?this.bindings[e](t[e]):n[e]=t[e];for(var i=0,r=this.items.length;i<r;i++)this.items[i].attr(n);return this},t.clear=function(){for(;this.length;)this.pop()},t.splice=function(t,e){t=t<0?l(this.length+t,0):t,e=l(0,u(this.length-t,e));for(var n=[],i=[],r=[],o=2;o<arguments.length;o++)r.push(arguments[o]);for(o=0;o<e;o++)i.push(this[t+o]);for(;o<this.length-t;o++)n.push(this[t+o]);var a=r.length;for(o=0;o<a+n.length;o++)this.items[t+o]=this[t+o]=o<a?r[o]:n[o-a];for(o=this.items.length=this.length-=e-a;this[o];)delete this[o++];return new s(i)},t.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0;return!1},t.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},t.getBBox=function(){for(var t,e=[],n=[],i=[],r=[],o=this.items.length;o--;)this.items[o].removed||(t=this.items[o].getBBox(),e.push(t.x),n.push(t.y),i.push(t.x+t.width),r.push(t.y+t.height));return{x:e=u.apply(0,e),y:n=u.apply(0,n),x2:i=l.apply(0,i),y2:r=l.apply(0,r),width:i-e,height:r-n,cx:e+(i-e)/2,cy:n+(r-n)/2}},t.clone=function(t){t=new s;for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},t.toString=function(){return"Snap‘s set"},t.type="set",p.Set=s,p.set=function(){var t=new s;return arguments.length&&t.push.apply(t,Array.prototype.slice.call(arguments,0)),t}}),t.plugin(function(p,t){function h(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}}function l(t){return t}function u(t){return t.join(" ")}function c(t){return p.rgb(t[0],t[1],t[2])}function d(t){for(var e,n,i,r,o=0,a=[],s=0,l=t.length;s<l;s++){for(i="[",r=['"'+t[s][0]+'"'],e=1,n=t[s].length;e<n;e++)r[e]="val["+o+++"]";i+=r+"]",a[s]=i}return Function("val","return Snap.path.toString.call(["+a+"])")}function f(t){for(var e=[],n=0,i=t.length;n<i;n++)for(var r=1,o=t[n].length;r<o;r++)e.push(t[n][r]);return e}function g(t){return isFinite(parseFloat(t))}var m={},v=/[a-z]+$/i,y=String;m.stroke=m.fill="colour",t.prototype.equal=function(t,e){return X("snap.util.equal",this,t,e).firstDefined()},X.on("snap.util.equal",function(t,e){var n=y(this.attr(t)||""),i=this;if(g(n)&&g(e))return{from:parseFloat(n),to:parseFloat(e),f:l};if("colour"==m[t])return s=p.color(n),o=p.color(e),{from:[s.r,s.g,s.b,s.opacity],to:[o.r,o.g,o.b,o.opacity],f:c};if("viewBox"==t)return{from:s=this.attr(t).vb.split(" ").map(Number),to:o=e.split(" ").map(Number),f:u};if("transform"==t||"gradientTransform"==t||"patternTransform"==t)return e instanceof p.Matrix&&(e=e.toTransformString()),function(t,e,n){e=y(e).replace(/\.{3}|\u2026/g,t),t=p.parseTransformString(t)||[],e=p.parseTransformString(e)||[];for(var i,r,o,a,s=Math.max(t.length,e.length),l=[],u=[],c=0;c<s;c++){if(o=t[c]||h(e[c]),a=e[c]||h(o),o[0]!=a[0]||"r"==o[0].toLowerCase()&&(o[2]!=a[2]||o[3]!=a[3])||"s"==o[0].toLowerCase()&&(o[3]!=a[3]||o[4]!=a[4])){t=p._.transform2matrix(t,n()),e=p._.transform2matrix(e,n()),l=[["m",t.a,t.b,t.c,t.d,t.e,t.f]],u=[["m",e.a,e.b,e.c,e.d,e.e,e.f]];break}for(l[c]=[],u[c]=[],i=0,r=Math.max(o.length,a.length);i<r;i++)i in o&&(l[c][i]=o[i]),i in a&&(u[c][i]=a[i])}return{from:f(l),to:f(u),f:d(l)}}(n,e=!p._.rgTransform.test(e)?p._.svgTransform2string(e):e,function(){return i.getBBox(1)});if("d"==t||"path"==t)return{from:f((s=p.path.toCubic(n,e))[0]),to:f(s[1]),f:d(s[0])};if("points"==t)return{from:s=y(n).split(p._.separator),to:o=y(e).split(p._.separator),f:function(t){return t}};var r,o,a=n.match(v),s=y(e).match(v);return a&&(o=a,s=s,p.is(o,"array")&&p.is(s,"array")&&o.toString()==s.toString())?{from:parseFloat(n),to:parseFloat(e),f:(r=a,function(t){return+t.toFixed(3)+r})}:{from:this.asPX(t),to:this.asPX(t,e),f:l}})}),t.plugin(function(c,t,e,n){function p(t,e){return t="y"==t?"scrollTop":"scrollLeft",(e=e&&e.node?e.node.ownerDocument:n.doc)[t in e.documentElement?"documentElement":"body"][t]}function h(){return this.originalEvent.preventDefault()}function d(){return this.originalEvent.stopPropagation()}function o(a,s,l,u){function t(t){var e=p("y",u),n=p("x",u);if(g&&m.hasOwnProperty(s))for(var i=0,r=t.targetTouches&&t.targetTouches.length;i<r;i++)if(t.targetTouches[i].target==a||a.contains(t.targetTouches[i].target)){var o=t;(t=t.targetTouches[i]).originalEvent=o,t.preventDefault=h,t.stopPropagation=d;break}return n=t.clientX+n,e=t.clientY+e,l.call(u,t,n,e)}var e=g&&m[s]?m[s]:s;return s!==e&&a.addEventListener(s,t,!1),a.addEventListener(e,t,!1),function(){return s!==e&&a.removeEventListener(s,t,!1),a.removeEventListener(e,t,!1),!0}}function f(t){for(var e,n=t.clientX,i=t.clientY,r=p("y"),o=p("x"),a=v.length;a--;){if(e=v[a],g){for(var s,l=t.touches&&t.touches.length;l--;)if((s=t.touches[l]).identifier==e.el._drag.id||e.el.node.contains(s.target)){n=s.clientX,i=s.clientY,(t.originalEvent||t).preventDefault();break}}else t.preventDefault();var u=e.el.node;u.nextSibling,u.parentNode,u.style.display,n+=o,i+=r,X("snap.drag.move."+e.el.id,e.move_scope||e.el,n-e.el._drag.x,i-e.el._drag.y,n,i,t)}}for(var i=t.prototype,g=("createTouch"in n.doc),r=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],m={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},v=[],y=function(t){c.unmousemove(f).unmouseup(y);for(var e,n=v.length;n--;)(e=v[n]).el._drag={},X("snap.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t),X.off("snap.drag.*."+e.el.id);v=[]},a=r.length;a--;)!function(r){c[r]=i[r]=function(t,e){if(c.is(t,"function"))this.events=this.events||[],this.events.push({name:r,f:t,unbind:o(this.node||document,r,t,e||this)});else for(var n=0,i=this.events.length;n<i;n++)if(this.events[n].name==r)try{this.events[n].f.call(this)}catch(t){}return this},c["un"+r]=i["un"+r]=function(t){for(var e=this.events||[],n=e.length;n--;
1)if(e[n].name==r&&(e[n].f==t||!t))return e[n].unbind(),e.splice(n,1),e.length||delete this.events,this;return this}}(r[a]);i.hover=function(t,e,n,i){return this.mouseover(t,n).mouseout(e,i||n)},i.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var b=[];i.drag=function(i,r,o,a,s,l){function t(t,e,n){(t.originalEvent||t).preventDefault(),u._drag.x=e,u._drag.y=n,u._drag.id=t.identifier,v.length||c.mousemove(f).mouseup(y),v.push({el:u,move_scope:a,start_scope:s,end_scope:l}),r&&X.on("snap.drag.start."+u.id,r),i&&X.on("snap.drag.move."+u.id,i),o&&X.on("snap.drag.end."+u.id,o),X("snap.drag.start."+u.id,s||a||u,e,n,t)}function e(t,e,n){X("snap.draginit."+u.id,u,t,e,n)}var n,u=this;return arguments.length?(X.on("snap.draginit."+u.id,t),u._drag={},b.push({el:u,start:t,init:e}),u.mousedown(e),u):u.drag(function(t,e){this.attr({transform:n+(n?"T":"t")+[t,e]})},function(){n=this.transform().local})},i.undrag=function(){for(var t=b.length;t--;)b[t].el==this&&(this.unmousedown(b[t].init),b.splice(t,1),X.unbind("snap.drag.*."+this.id),X.unbind("snap.draginit."+this.id));return b.length||c.unmousemove(f).unmouseup(y),this}}),t.plugin(function(o,r,t){var t=(r.prototype,t.prototype),e=/^\s*url\((.+)\)/,a=String,s=o._.$;o.filter={},t.filter=function(t){var e=this;"svg"!=e.type&&(e=e.paper);var n=o.parse(a(t)),i=o._.id(),t=(e.node.offsetWidth,e.node.offsetHeight,s("filter"));return s(t,{id:i,filterUnits:"userSpaceOnUse"}),t.appendChild(n.node),e.defs.appendChild(t),new r(t)},X.on("snap.util.getattr.filter",function(){X.stop();var t=s(this.node,"filter");if(t){t=a(t).match(e);return t&&o.select(t[1])}}),X.on("snap.util.attr.filter",function(t){var e;t instanceof r&&"filter"==t.type&&(X.stop(),(e=t.node.id)||(s(t.node,{id:t.id}),e=t.id),s(this.node,{filter:o.url(e)})),t&&"none"!=t||(X.stop(),this.node.removeAttribute("filter"))}),o.filter.blur=function(t,e){return null==t&&(t=2),o.format('<feGaussianBlur stdDeviation="{def}"/>',{def:null==e?t:[t,e]})},o.filter.blur.toString=function(){return this()},o.filter.shadow=function(t,e,n,i,r){return"string"==typeof n&&(r=i=n,n=4),"string"!=typeof i&&(r=i,i="#000"),null==n&&(n=4),null==r&&(r=1),null==t&&(t=0,e=2),null==e&&(e=t),i=o.color(i=i||"#000"),o.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:i,dx:t,dy:e,blur:n,opacity:r})},o.filter.shadow.toString=function(){return this()},o.filter.grayscale=function(t){return o.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-(t=null==t?1:t)),b:.7152-.7152*(1-t),c:.0722-.0722*(1-t),d:.2126-.2126*(1-t),e:.7152+.2848*(1-t),f:.0722-.0722*(1-t),g:.2126-.2126*(1-t),h:.0722+.9278*(1-t)})},o.filter.grayscale.toString=function(){return this()},o.filter.sepia=function(t){return o.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-(t=null==t?1:t)),b:.769-.769*(1-t),c:.189-.189*(1-t),d:.349-.349*(1-t),e:.686+.314*(1-t),f:.168-.168*(1-t),g:.272-.272*(1-t),h:.534-.534*(1-t),i:.131+.869*(1-t)})},o.filter.sepia.toString=function(){return this()},o.filter.saturate=function(t){return o.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-(t=null==t?1:t)})},o.filter.saturate.toString=function(){return this()},o.filter.hueRotate=function(t){return o.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:t=t||0})},o.filter.hueRotate.toString=function(){return this()},o.filter.invert=function(t){return o.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:t=null==t?1:t,amount2:1-t})},o.filter.invert.toString=function(){return this()},o.filter.brightness=function(t){return o.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:t=null==t?1:t})},o.filter.brightness.toString=function(){return this()},o.filter.contrast=function(t){return o.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:t=null==t?1:t,amount2:.5-t/2})},o.filter.contrast.toString=function(){return this()}}),t.plugin(function(t,e){function o(){return"T"+this.dx+","+this.dy}var a=t._.box,s=t.is,l=/^[^a-z]*([tbmlrc])/i;e.prototype.getAlign=function(t,e){null==e&&s(t,"string")&&(e=t,t=null);var n=(t=t||this.paper).getBBox?t.getBBox():a(t),i=this.getBBox(),r={};switch(e=(e=e&&e.match(l))?e[1].toLowerCase():"c"){case"t":r.dx=0,r.dy=n.y-i.y;break;case"b":r.dx=0,r.dy=n.y2-i.y2;break;case"m":r.dx=0,r.dy=n.cy-i.cy;break;case"l":r.dx=n.x-i.x,r.dy=0;break;case"r":r.dx=n.x2-i.x2,r.dy=0;break;default:r.dx=n.cx-i.cx,r.dy=0}return r.toString=o,r},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}}),t}),function(){"use strict";function o(t){this.canvas=t.canvas,this.ctx=t;var e=function(t,e){return t["offset"+e]||document.defaultView.getComputedStyle(t).getPropertyValue(e)},n=this.width=e(t.canvas,"Width"),e=this.height=e(t.canvas,"Height");return t.canvas.width=n,t.canvas.height=e,n=this.width=t.canvas.width,e=this.height=t.canvas.height,this.aspectRatio=this.width/this.height,h.retinaScale(this),this}var t=this,e=t.Chart;o.defaults={global:{animation:!0,animationSteps:60,animationEasing:"easeOutQuart",showScale:!0,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleIntegersOnly:!0,scaleBeginAtZero:!1,scaleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",responsive:!1,maintainAspectRatio:!0,showTooltips:!0,customTooltips:!1,tooltipEvents:["mousemove","touchstart","touchmove","mouseout"],tooltipFillColor:"rgba(0,0,0,0.8)",tooltipFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipFontSize:14,tooltipFontStyle:"normal",tooltipFontColor:"#fff",tooltipTitleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipTitleFontSize:14,tooltipTitleFontStyle:"bold",tooltipTitleFontColor:"#fff",tooltipYPadding:6,tooltipXPadding:6,tooltipCaretSize:8,tooltipCornerRadius:6,tooltipXOffset:10,tooltipTemplate:"<%if (label){%><%=label%>: <%}%><%= value %>",multiTooltipTemplate:"<%= value %>
1",multiTooltipKeyBackground:"#fff",onAnimationProgress:function(){},onAnimationComplete:function(){}}},o.types={};var n,i,h=o.helpers={},l=h.each=function(t,e,n){var i=Array.prototype.slice.call(arguments,3);if(t)if(t.length===+t.length)for(var r=0;r<t.length;r++)e.apply(n,[t[r],r].concat(i));else for(var o in t)e.apply(n,[t[o],o].concat(i))},a=h.clone=function(n){var i={};return l(n,function(t,e){n.hasOwnProperty(e)&&(i[e]=t)}),i},s=h.extend=function(i){return l(Array.prototype.slice.call(arguments,1),function(n){l(n,function(t,e){n.hasOwnProperty(e)&&(i[e]=t)})}),i},u=h.merge=function(t,e){var n=Array.prototype.slice.call(arguments,0);return n.unshift({}),s.apply(null,n)},r=h.indexOf=function(t,e){if(Array.prototype.indexOf)return t.indexOf(e);for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},c=(h.where=function(t,e){var n=[];return h.each(t,function(t){e(t)&&n.push(t)}),n},h.findNextWhere=function(t,e,n){for(var i=(n=n||-1)+1;i<t.length;i++){var r=t[i];if(e(r))return r}},h.findPreviousWhere=function(t,e,n){for(var i=(n=n||t.length)-1;0<=i;i--){var r=t[i];if(e(r))return r}},h.inherits=function(t){function e(){this.constructor=i}var n=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return n.apply(this,arguments)};return e.prototype=n.prototype,i.prototype=new e,i.extend=c,t&&s(i.prototype,t),i.__super__=n.prototype,i}),p=h.noop=function(){},d=h.uid=(n=0,function(){return"chart-"+n++}),f=h.warn=function(t){window.console&&"function"==typeof window.console.warn&&console.warn(t)},g=h.amd="function"==typeof define&&define.amd,m=h.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},v=h.max=function(t){return Math.max.apply(Math,t)},y=h.min=function(t){return Math.min.apply(Math,t)},b=(h.cap=function(t,e,n){if(m(e)){if(e<t)return e}else if(m(n)&&t<n)return n;return t},h.getDecimalPlaces=function(t){return t%1!=0&&m(t)?t.toString().split(".")[1].length:0}),$=h.radians=function(t){return t*(Math.PI/180)},w=(h.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,e=Math.sqrt(n*n+i*i),t=2*Math.PI+Math.atan2(i,n);return n<0&&i<0&&(t+=2*Math.PI),{angle:t,distance:e}},h.aliasPixel=function(t){return t%2==0?0:.5}),x=(h.splineCurve=function(t,e,n,i){var r=Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)),o=Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)),a=i*r/(r+o),o=i*o/(r+o);return{inner:{x:e.x-a*(n.x-t.x),y:e.y-a*(n.y-t.y)},outer:{x:e.x+o*(n.x-t.x),y:e.y+o*(n.y-t.y)}}},h.calculateOrderOfMagnitude=function(t){return Math.floor(Math.log(t)/Math.LN10)}),C=(h.calculateScaleRange=function(t,e,n,i,r){var o=Math.floor(e/(1.5*n)),a=o<=2,e=v(t),n=y(t);e===n&&(e+=.5,.5<=n&&!i?n-=.5:e+=.5);for(var t=Math.abs(e-n),s=x(t),e=Math.ceil(e/+Math.pow(10,s))*Math.pow(10,s),n=i?0:Math.floor(n/+Math.pow(10,s))*Math.pow(10,s),l=e-n,u=Math.pow(10,s),c=Math.round(l/u);(o<c||2*c<o)&&!a;)if(o<c)u*=2,(c=Math.round(l/u))%1!=0&&(a=!0);else if(r&&0<=s){if(u/2%1!=0)break;u/=2,c=Math.round(l/u)}else u/=2,c=Math.round(l/u);return a&&(u=l/(c=2)),{steps:c,stepValue:u,min:n,max:n+c*u}},h.template=function(t,e){if(t instanceof Function)return t(e);var n,i,r={};return i=e,n=/\W/.test(n=t)?new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+n.replace(/[\r\t\n]/g," ").split("<%").join("\t").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):r[n],i?n(i):n}),k=(h.generateLabels=function(n,t,i,r){var o=new Array(t);return labelTemplateString&&l(o,function(t,e){o[e]=C(n,{value:i+r*(e+1)})}),o},h.easingEffects={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-1*t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t=+t-1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-1*((t=+t-1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return(t/=1)*t*t*t*t},easeOutQuint:function(t){return(t=+t-1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return-1*Math.cos(+t*(Math.PI/2))+1},easeOutSine:function(t){return+Math.sin(+t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?1:+Math.pow(2,10*(+t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return 1<=t?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return+Math.sqrt(1-(t=+t-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1==(t/=1)?1:(n=n||.3,e=i<Math.abs(1)?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*--t)*Math.sin((+t-e)*(2*Math.PI)/n)))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1==(t/=1)?1:(n=n||.3,e=i<Math.abs(1)?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((+t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n=n||.3*1.5*1,e=i<Math.abs(1)?(i=1,n/4):n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*--t)*Math.sin((+t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*--t)*Math.sin((+t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){return(t/=1)*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t=+t-1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-k.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?7.5625*t*t*1:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*k.easeInBounce(2*t):.5*k.easeOutBounce(2*t-1)+.5}}),S=h.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},T=h.cancelAnimFrame=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t,1e3/60)},E=(h.animationLoop=function(n,i,t,r,o,a){var s=0,l=k[t]||k.linear,u=function(){var t=++s/i,e=l(t);n.call(a,e,t,s),r.call(a,e,t),s<i?a.animationFrame=S(u):o.apply(a)};S(u)},h.getRelativePosition=function(t){var e,n=t.originalEvent||t,t=(t.currentTarget||t.srcElement).getBoundingClientRect(),t=n.touches?(e=n.touches[0].clientX-t.left,n.touches[0].clientY-t.top):(e=n.clientX-t.left,n.clientY-t.top);return{x:e,y:t}},h.addEvent=function(t,e,n){t.addEventListener?t.addEventListener(e,n):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n}),D=h.removeEvent=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=p},A=(h.bindEvents=function(e,t,n){e.events||(e.events={}),l(t,function(t){e.events[t]=function(){n.apply(e,arguments)},E(e.chart.canvas,t,e.events[t])})},h.unbindEvents=function(n,t){l(t,function(t,e){D(n.chart.canvas,e,t)})}),O=h.getMaximumWidth=function(t){return t.parentNode.clientWidth},P=h.getMaximumHeight=function(t){return t.parentNode.clientHeight},M=(h.getMaximumSize=h.getMaximumWidth,h.retinaScale=function(t){var e=t.ctx,n=t.canvas.width,t=t.canvas.height;window.devicePixelRatio&&(e.canvas.style.width=n+"px",e.canvas.style.height=t+"px",e.canvas.height=t*window.devicePixelRatio,e.canvas.width=n*window.devicePixelRatio,e.scale(window.devicePixelRatio,window.devicePixelRatio))}),I=h.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},R=h.fontString=function(t,e,n){return e+" "+t+"px "+n},j=h.longestText=function(e,t,n){e.font=t;var i=0;return l(n,function(t){t=e.measureText(t).width;i=i<t?t:i}),i},N=h.drawRoundedRectangle=function(t,e,n,i,r,o){t.beginPath(),t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+o),t.lineTo(e+i,n+r-o),t.quadraticCurveTo(e+i,n+r,e+i-o,n+r),t.lineTo(e+o,n+r),t.quadraticCurveTo(e,n+r,e,n+r-o),t.lineTo(e,n+o),t.quadraticCurveTo(e,n,e+o,n),t.closePath()};o.instances={},s((o.Type=function(t,e,n){this.options=e,this.chart=n,this.id=d(),o.instances[this.id]=this,e.responsive&&this.resize(),this.initialize.call(this,t)}).prototype,{initialize:function(){return this},clear:function(){return I(this.chart),this},stop:function(){return T(this.animationFrame),this},resize:function(t){this.stop();var e=this.chart.canvas,n=O(this.chart.canvas),i=this.options.maintainAspectRatio?n/this.chart.aspectRatio:P(this.chart.canvas);return e.width=this.chart.width=n,e.height=this.chart.height=i,M(this.chart),"function"==typeof t&&t.apply(this,Array.prototype.slice.call(arguments,1
1)),this},reflow:p,render:function(t){return t&&this.reflow(),this.options.animation&&!t?h.animationLoop(this.draw,this.options.animationSteps,this.options.animationEasing,this.options.onAnimationProgress,this.options.onAnimationComplete,this):(this.draw(),this.options.onAnimationComplete.call(this)),this},generateLegend:function(){return C(this.options.legendTemplate,this)},destroy:function(){this.clear(),A(this,this.events);var t=this.chart.canvas;t.width=this.chart.width,t.height=this.chart.height,t.style.removeProperty?(t.style.removeProperty("width"),t.style.removeProperty("height")):(t.style.removeAttribute("width"),t.style.removeAttribute("height")),delete o.instances[this.id]},showTooltip:function(t,e){if(void 0===this.activeElements&&(this.activeElements=[]),function(t){var n=!1;return t.length!==this.activeElements.length?n=!0:(l(t,function(t,e){t!==this.activeElements[e]&&(n=!0)},this),n)}.call(this,t)||e){if(this.activeElements=t,this.draw(),this.options.customTooltips&&this.options.customTooltips(!1),0<t.length)if(this.datasets&&1<this.datasets.length){for(var n,u,i=this.datasets.length-1;0<=i&&(n=this.datasets[i].points||this.datasets[i].bars||this.datasets[i].segments,-1===(u=r(n,t[0])));i--);var c=[],p=[],e=function(t){var e,n,i,r,o,a=[],s=[],l=[];return h.each(this.datasets,function(t){(e=t.points||t.bars||t.segments)[u]&&e[u].hasValue()&&a.push(e[u])}),h.each(a,function(t){s.push(t.x),l.push(t.y),c.push(h.template(this.options.multiTooltipTemplate,t)),p.push({fill:t._saved.fillColor||t.fillColor,stroke:t._saved.strokeColor||t.strokeColor})},this),o=y(l),i=v(l),r=y(s),n=v(s),{x:r>this.chart.width/2?r:n,y:(o+i)/2}}.call(this,u);new o.MultiTooltip({x:e.x,y:e.y,xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,xOffset:this.options.tooltipXOffset,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,titleTextColor:this.options.tooltipTitleFontColor,titleFontFamily:this.options.tooltipTitleFontFamily,titleFontStyle:this.options.tooltipTitleFontStyle,titleFontSize:this.options.tooltipTitleFontSize,cornerRadius:this.options.tooltipCornerRadius,labels:c,legendColors:p,legendColorBackground:this.options.multiTooltipKeyBackground,title:t[0].label,chart:this.chart,ctx:this.chart.ctx,custom:this.options.customTooltips}).draw()}else l(t,function(t){var e=t.tooltipPosition();new o.Tooltip({x:Math.round(e.x),y:Math.round(e.y),xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,caretHeight:this.options.tooltipCaretSize,cornerRadius:this.options.tooltipCornerRadius,text:C(this.options.tooltipTemplate,t),chart:this.chart,custom:this.options.customTooltips}).draw()},this);return this}},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)}}),o.Type.extend=function(t){function n(){return r.apply(this,arguments)}var i,e,r=this;return n.prototype=a(r.prototype),s(n.prototype,t),n.extend=o.Type.extend,t.name||r.prototype.name?(i=t.name||r.prototype.name,e=o.defaults[r.prototype.name]?a(o.defaults[r.prototype.name]):{},o.defaults[i]=s(e,t.defaults),o.types[i]=n,o.prototype[i]=function(t,e){e=u(o.defaults.global,o.defaults[i],e||{});return new n(t,e,this)}):f("Name not provided for this chart, so it hasn't been registered"),r},o.Element=function(t){s(this,t),this.initialize.apply(this,arguments),this.save()},s(o.Element.prototype,{initialize:function(){},restore:function(t){return t?l(t,function(t){this[t]=this._saved[t]},this):s(this,this._saved),this},save:function(){return this._saved=a(this),delete this._saved._saved,this},update:function(t){return l(t,function(t,e){this._saved[e]=this[e],this[e]=t},this),this},transition:function(t,n){return l(t,function(t,e){this[e]=(t-this._saved[e])*n+this._saved[e]},this),this},tooltipPosition:function(){return{x:this.x,y:this.y}},hasValue:function(){return m(this.value)}}),o.Element.extend=c,o.Point=o.Element.extend({display:!0,inRange:function(t,e){var n=this.hitDetectionRadius+this.radius;return Math.pow(t-this.x,2)+Math.pow(e-this.y,2)<Math.pow(n,2)},draw:function(){var t;this.display&&((t=this.ctx).beginPath(),t.arc(this.x,this.y,this.radius,0,2*Math.PI),t.closePath(),t.strokeStyle=this.strokeColor,t.lineWidth=this.strokeWidth,t.fillStyle=this.fillColor,t.fill(),t.stroke())}}),o.Arc=o.Element.extend({inRange:function(t,e){t=h.getAngleFromPoint(this,{x:t,y:e}),e=t.angle>=this.startAngle&&t.angle<=this.endAngle,t=t.distance>=this.innerRadius&&t.distance<=this.outerRadius;return e&&t},tooltipPosition:function(){var t=this.startAngle+(this.endAngle-this.startAngle)/2,e=(this.outerRadius-this.innerRadius)/2+this.innerRadius;return{x:this.x+Math.cos(t)*e,y:this.y+Math.sin(t)*e}},draw:function(t){t=this.ctx;t.beginPath(),t.arc(this.x,this.y,this.outerRadius,this.startAngle,this.endAngle),t.arc(this.x,this.y,this.innerRadius,this.endAngle,this.startAngle,!0),t.closePath(),t.strokeStyle=this.strokeColor,t.lineWidth=this.strokeWidth,t.fillStyle=this.fillColor,t.fill(),t.lineJoin="bevel",this.showStroke&&t.stroke()}}),o.Rectangle=o.Element.extend({draw:function(){var t=this.ctx,e=this.width/2,n=this.x-e,i=this.x+e,r=this.base-(this.base-this.y),e=this.strokeWidth/2;this.showStroke&&(n+=e,i-=e,r+=e),t.beginPath(),t.fillStyle=this.fillColor,t.strokeStyle=this.strokeColor,t.lineWidth=this.strokeWidth,t.moveTo(n,this.base),t.lineTo(n,r),t.lineTo(i,r),t.lineTo(i,this.base),t.fill(),this.showStroke&&t.stroke()},height:function(){return this.base-this.y},inRange:function(t,e){return t>=this.x-this.width/2&&t<=this.x+this.width/2&&e>=this.y&&e<=this.base}}),o.Tooltip=o.Element.extend({draw:function(){var t=this.chart.ctx;t.font=R(this.fontSize,this.fontStyle,this.fontFamily),this.xAlign="center",this.yAlign="above";this.caretPadding=2;var e=t.measureText(this.text).width+2*this.xPadding,n=this.fontSize+2*this.yPadding,i=n+this.caretHeight+2;this.x+e/2>this.chart.width?this.xAlign="left":this.x-e/2<0&&(this.xAlign="right"),this.y-i<0&&(this.yAlign="below");var r=this.x-e/2,o=this.y-i;
1if(t.fillStyle=this.fillColor,this.custom)this.custom(this);else{switch(this.yAlign){case"above":t.beginPath(),t.moveTo(this.x,this.y-2),t.lineTo(this.x+this.caretHeight,this.y-(2+this.caretHeight)),t.lineTo(this.x-this.caretHeight,this.y-(2+this.caretHeight)),t.closePath(),t.fill();break;case"below":o=this.y+2+this.caretHeight,t.beginPath(),t.moveTo(this.x,this.y+2),t.lineTo(this.x+this.caretHeight,this.y+2+this.caretHeight),t.lineTo(this.x-this.caretHeight,this.y+2+this.caretHeight),t.closePath(),t.fill()}switch(this.xAlign){case"left":r=this.x-e+(this.cornerRadius+this.caretHeight);break;case"right":r=this.x-(this.cornerRadius+this.caretHeight)}N(t,r,o,e,n,this.cornerRadius),t.fill(),t.fillStyle=this.textColor,t.textAlign="center",t.textBaseline="middle",t.fillText(this.text,r+e/2,o+n/2)}}}),o.MultiTooltip=o.Element.extend({initialize:function(){this.font=R(this.fontSize,this.fontStyle,this.fontFamily),this.titleFont=R(this.titleFontSize,this.titleFontStyle,this.titleFontFamily),this.height=this.labels.length*this.fontSize+(this.labels.length-1)*(this.fontSize/2)+2*this.yPadding+1.5*this.titleFontSize,this.ctx.font=this.titleFont;var t=this.ctx.measureText(this.title).width,e=j(this.ctx,this.font,this.labels)+this.fontSize+3,t=v([e,t]);this.width=t+2*this.xPadding;t=this.height/2;this.y-t<0?this.y=t:this.y+t>this.chart.height&&(this.y=this.chart.height-t),this.x>this.chart.width/2?this.x-=this.xOffset+this.width:this.x+=this.xOffset},getLineHeight:function(t){var e=this.y-this.height/2+this.yPadding;return 0===t?e+this.titleFontSize/2:e+(1.5*this.fontSize*(t-1)+this.fontSize/2)+1.5*this.titleFontSize},draw:function(){var n;this.custom?this.custom(this):(N(this.ctx,this.x,this.y-this.height/2,this.width,this.height,this.cornerRadius),(n=this.ctx).fillStyle=this.fillColor,n.fill(),n.closePath(),n.textAlign="left",n.textBaseline="middle",n.fillStyle=this.titleTextColor,n.font=this.titleFont,n.fillText(this.title,this.x+this.xPadding,this.getLineHeight(0)),n.font=this.font,h.each(this.labels,function(t,e){n.fillStyle=this.textColor,n.fillText(t,this.x+this.xPadding+this.fontSize+3,this.getLineHeight(e+1)),n.fillStyle=this.legendColorBackground,n.fillRect(this.x+this.xPadding,this.getLineHeight(e+1)-this.fontSize/2,this.fontSize,this.fontSize),n.fillStyle=this.legendColors[e].fill,n.fillRect(this.x+this.xPadding,this.getLineHeight(e+1)-this.fontSize/2,this.fontSize,this.fontSize)},this))}}),o.Scale=o.Element.extend({initialize:function(){this.fit()},buildYLabels:function(){this.yLabels=[];for(var t=b(this.stepValue),e=0;e<=this.steps;e++)this.yLabels.push(C(this.templateString,{value:(this.min+e*this.stepValue).toFixed(t)}));this.yLabelWidth=this.display&&this.showLabels?j(this.ctx,this.font,this.yLabels):0},addXLabel:function(t){this.xLabels.push(t),this.valuesCount++,this.fit()},removeXLabel:function(){this.xLabels.shift(),this.valuesCount--,this.fit()},fit:function(){this.startPoint=this.display?this.fontSize:0,this.endPoint=this.display?this.height-1.5*this.fontSize-5:this.height,this.startPoint+=this.padding,this.endPoint-=this.padding;var t,e=this.endPoint-this.startPoint;for(this.calculateYRange(e),this.buildYLabels(),this.calculateXLabelRotation();e>this.endPoint-this.startPoint;)e=this.endPoint-this.startPoint,t=this.yLabelWidth,this.calculateYRange(e),this.buildYLabels(),t<this.yLabelWidth&&this.calculateXLabelRotation()},calculateXLabelRotation:function(){this.ctx.font=this.font;var t,e=this.ctx.measureText(this.xLabels[0]).width,n=this.ctx.measureText(this.xLabels[this.xLabels.length-1]).width;if(this.xScalePaddingRight=n/2+3,this.xScalePaddingLeft=e/2>this.yLabelWidth+10?e/2:this.yLabelWidth+10,this.xLabelRotation=0,this.display){var i,r=j(this.ctx,this.font,this.xLabels);this.xLabelWidth=r;for(var o=Math.floor(this.calculateX(1)-this.calculateX(0))-6;this.xLabelWidth>o&&0===this.xLabelRotation||this.xLabelWidth>o&&this.xLabelRotation<=90&&0<this.xLabelRotation;)i=Math.cos($(this.xLabelRotation)),(t=i*e)+this.fontSize/2>this.yLabelWidth+8&&(this.xScalePaddingLeft=t+this.fontSize/2),this.xScalePaddingRight=this.fontSize/2,this.xLabelRotation++,this.xLabelWidth=i*r;0<this.xLabelRotation&&(this.endPoint-=Math.sin($(this.xLabelRotation))*r+3)}else this.xLabelWidth=0,this.xScalePaddingRight=this.padding,this.xScalePaddingLeft=this.padding},calculateYRange:p,drawingArea:function(){return this.startPoint-this.endPoint},calculateY:function(t){var e=this.drawingArea()/(this.min-this.max);return this.endPoint-e*(t-this.min)},calculateX:function(t){this.xLabelRotation;var e=(this.width-(this.xScalePaddingLeft+this.xScalePaddingRight))/Math.max(this.valuesCount-(this.offsetGridLines?0:1),1),t=e*t+this.xScalePaddingLeft;return this.offsetGridLines&&(t+=e/2),Math.round(t)},update:function(t){h.extend(this,t),this.fit()},draw:function(){var a=this.ctx,o=(this.endPoint-this.startPoint)/this.steps,s=Math.round(this.xScalePaddingLeft);this.display&&(a.fillStyle=this.textColor,a.font=this.font,l(this.yLabels,function(t,e){var n=this.endPoint-o*e,i=Math.round(n),r=this.showHorizontalLines;a.textAlign="right",a.textBaseline="middle",this.showLabels&&a.fillText(t,s-10,n),(r=0===e&&!r?!0:r)&&a.beginPath(),0<e?
1(a.lineWidth=this.gridLineWidth,a.strokeStyle=this.gridLineColor):(a.lineWidth=this.lineWidth,a.strokeStyle=this.lineColor),i+=h.aliasPixel(a.lineWidth),r&&(a.moveTo(s,i),a.lineTo(this.width,i),a.stroke(),a.closePath()),a.lineWidth=this.lineWidth,a.strokeStyle=this.lineColor,a.beginPath(),a.moveTo(s-5,i),a.lineTo(s,i),a.stroke(),a.closePath()},this),l(this.xLabels,function(t,e){var n=this.calculateX(e)+w(this.lineWidth),i=this.calculateX(e-(this.offsetGridLines?.5:0))+w(this.lineWidth),r=0<this.xLabelRotation,o=this.showVerticalLines;(o=0===e&&!o?!0:o)&&a.beginPath(),0<e?(a.lineWidth=this.gridLineWidth,a.strokeStyle=this.gridLineColor):(a.lineWidth=this.lineWidth,a.strokeStyle=this.lineColor),o&&(a.moveTo(i,this.endPoint),a.lineTo(i,this.startPoint-3),a.stroke(),a.closePath()),a.lineWidth=this.lineWidth,a.strokeStyle=this.lineColor,a.beginPath(),a.moveTo(i,this.endPoint),a.lineTo(i,this.endPoint+5),a.stroke(),a.closePath(),a.save(),a.translate(n,r?this.endPoint+12:this.endPoint+8),a.rotate(-1*$(this.xLabelRotation)),a.font=this.font,a.textAlign=r?"right":"center",a.textBaseline=r?"middle":"top",a.fillText(t,0,0),a.restore()},this))}}),o.RadialScale=o.Element.extend({initialize:function(){this.size=y([this.height,this.width]),this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2},calculateCenterOffset:function(t){var e=this.drawingArea/(this.max-this.min);return(t-this.min)*e},update:function(){this.lineArc?this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2:this.setScaleSize(),this.buildYLabels()},buildYLabels:function(){this.yLabels=[];for(var t=b(this.stepValue),e=0;e<=this.steps;e++)this.yLabels.push(C(this.templateString,{value:(this.min+e*this.stepValue).toFixed(t)}))},getCircumference:function(){return 2*Math.PI/this.valuesCount},setScaleSize:function(){var t,e,n,i,r,o,a,s,l,u,c=y([this.height/2-this.pointLabelFontSize-5,this.width/2]),p=this.width,h=0;for(this.ctx.font=R(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),e=0;e<this.valuesCount;e++)t=this.getPointPosition(e,c),n=this.ctx.measureText(C(this.templateString,{value:this.labels[e]})).width+5,0===e||e===this.valuesCount/2?(t.x+(i=n/2)>p&&(p=t.x+i,r=e),t.x-i<h&&(h=t.x-i,o=e)):e<this.valuesCount/2?t.x+n>p&&(p=t.x+n,r=e):e>this.valuesCount/2&&t.x-n<h&&(h=t.x-n,o=e);a=h,s=Math.ceil(p-this.width),l=this.getIndexAngle(r),u=this.getIndexAngle(o),l=s/Math.sin(l+Math.PI/2),u=a/Math.sin(u+Math.PI/2),l=m(l)?l:0,u=m(u)?u:0,this.drawingArea=c-(u+l)/2,this.setCenterPoint(u,l)},setCenterPoint:function(t,e){e=this.width-e-this.drawingArea,t+=this.drawingArea;this.xCenter=(t+e)/2,this.yCenter=this.height/2},getIndexAngle:function(t){return t*(2*Math.PI/this.valuesCount)-Math.PI/2},getPointPosition:function(t,e){t=this.getIndexAngle(t);return{x:Math.cos(t)*e+this.xCenter,y:Math.sin(t)*e+this.yCenter}},draw:function(){if(this.display){var a=this.ctx;if(l(this.yLabels,function(t,e){if(0<e){var n,i=e*(this.drawingArea/this.steps),r=this.yCenter-i;if(0<this.lineWidth)if(a.strokeStyle=this.lineColor,a.lineWidth=this.lineWidth,this.lineArc)a.beginPath(),a.arc(this.xCenter,this.yCenter,i,0,2*Math.PI),a.closePath(),a.stroke();else{a.beginPath();for(var o=0;o<this.valuesCount;o++)n=this.getPointPosition(o,this.calculateCenterOffset(this.min+e*this.stepValue)),0===o?a.moveTo(n.x,n.y):a.lineTo(n.x,n.y);a.closePath(),a.stroke()}this.showLabels&&(a.font=R(this.fontSize,this.fontStyle,this.fontFamily),this.showLabelBackdrop&&(i=a.measureText(t).width,a.fillStyle=this.backdropColor,a.fillRect(this.xCenter-i/2-this.backdropPaddingX,r-this.fontSize/2-this.backdropPaddingY,i+2*this.backdropPaddingX,this.fontSize+2*this.backdropPaddingY)),a.textAlign="center",a.textBaseline="middle",a.fillStyle=this.fontColor,a.fillText(t,this.xCenter,r))}},this),!this.lineArc){a.lineWidth=this.angleLineWidth,a.strokeStyle=this.angleLineColor;for(var t=this.valuesCount-1;0<=t;t--){0<this.angleLineWidth&&(o=this.getPointPosition(t,this.calculateCenterOffset(this.max)),a.beginPath(),a.moveTo(this.xCenter,this.yCenter),a.lineTo(o.x,o.y),a.stroke(),a.closePath());var e=this.getPointPosition(t,this.calculateCenterOffset(this.max)+5);a.font=R(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),a.fillStyle=this.pointLabelFontColor;var n=this.labels.length,i=this.labels.length/2,r=i/2,o=t<r||n-r<t,r=t===r||t===n-r;a.textAlign=0===t||t===i?"center":t<i?"left":"right",a.textBaseline=r?"middle":o?"bottom":"top",a.fillText(this.labels[t],e.x,e.y)}}}}}),h.addEvent(window,"resize",function(){clearTimeout(i),i=setTimeout(function(){l(o.instances,function(t){t.options.responsive&&t.resize(t.render,!0)})},50)}),g?define(function(){return o}
1):"object"==typeof module&&module.exports&&(module.exports=o),(t.Chart=o).noConflict=function(){return t.Chart=e,o}}.call(this),function(){"use strict";var t=this.Chart,a=t.helpers;t.Type.extend({name:"Bar",defaults:{scaleBeginAtZero:!0,scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].fillColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'},initialize:function(r){var o=this.options;this.ScaleClass=t.Scale.extend({offsetGridLines:!0,calculateBarX:function(t,e,n){var i=this.calculateBaseWidth(),i=this.calculateX(n)-i/2,t=this.calculateBarWidth(t);return i+t*e+e*o.barDatasetSpacing+t/2},calculateBaseWidth:function(){return this.calculateX(1)-this.calculateX(0)-2*o.barValueSpacing},calculateBarWidth:function(t){return(this.calculateBaseWidth()-(t-1)*o.barDatasetSpacing)/t}}),this.datasets=[],this.options.showTooltips&&a.bindEvents(this,this.options.tooltipEvents,function(t){t="mouseout"!==t.type?this.getBarsAtEvent(t):[];this.eachBars(function(t){t.restore(["fillColor","strokeColor"])}),a.each(t,function(t){t.fillColor=t.highlightFill,t.strokeColor=t.highlightStroke}),this.showTooltip(t)}),this.BarClass=t.Rectangle.extend({strokeWidth:this.options.barStrokeWidth,showStroke:this.options.barShowStroke,ctx:this.chart.ctx}),a.each(r.datasets,function(n,t){var i={label:n.label||null,fillColor:n.fillColor,strokeColor:n.strokeColor,bars:[]};this.datasets.push(i),a.each(n.data,function(t,e){i.bars.push(new this.BarClass({value:t,label:r.labels[e],datasetLabel:n.label,strokeColor:n.strokeColor,fillColor:n.fillColor,highlightFill:n.highlightFill||n.fillColor,highlightStroke:n.highlightStroke||n.strokeColor}))},this)},this),this.buildScale(r.labels),this.BarClass.prototype.base=this.scale.endPoint,this.eachBars(function(t,e,n){a.extend(t,{width:this.scale.calculateBarWidth(this.datasets.length),x:this.scale.calculateBarX(this.datasets.length,n,e),y:this.scale.endPoint}),t.save()},this),this.render()},update:function(){this.scale.update(),a.each(this.activeElements,function(t){t.restore(["fillColor","strokeColor"])}),this.eachBars(function(t){t.save()}),this.render()},eachBars:function(n){a.each(this.datasets,function(t,e){a.each(t.bars,n,this,e)},this)},getBarsAtEvent:function(t){for(var e,n=[],i=a.getRelativePosition(t),r=function(t){n.push(t.bars[e])},o=0;o<this.datasets.length;o++)for(e=0;e<this.datasets[o].bars.length;e++)if(this.datasets[o].bars[e].inRange(i.x,i.y))return a.each(this.datasets,r),n;return n},buildScale:function(t){var n=this,t={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:t.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(t){var e,t=a.calculateScaleRange((e=[],n.eachBars(function(t){e.push(t.value)}),e),t,this.fontSize,this.beginAtZero,this.integersOnly);a.extend(this,t)},xLabels:t,font:a.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:!this.options.showScale&&this.options.barShowStroke?this.options.barStrokeWidth:0,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&a.extend(t,{calculateYRange:a.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new this.ScaleClass(t)},addData:function(t,n){a.each(t,function(t,e){this.datasets[e].bars.push(new this.BarClass({value:t,label:n,x:this.scale.calculateBarX(this.datasets.length,e,this.scale.valuesCount+1),y:this.scale.endPoint,width:this.scale.calculateBarWidth(this.datasets.length),base:this.scale.endPoint,strokeColor:this.datasets[e].strokeColor,fillColor:this.datasets[e].fillColor}))},this),this.scale.addXLabel(n),this.update()},removeData:function(){this.scale.removeXLabel(),a.each(this.datasets,function(t){t.bars.shift()},this),this.update()},reflow:function(){a.extend(this.BarClass.prototype,{y:this.scale.endPoint,base:this.scale.endPoint});var t=a.extend({height:this.chart.height,width:this.chart.width});this.scale.update(t)},draw:function(t){var i=t||1;this.clear();this.chart.ctx;this.scale.draw(i),a.each(this.datasets,function(t,n){a.each(t.bars,function(t,e){t.hasValue()&&(t.base=this.scale.endPoint,t.transition({x:this.scale.calculateBarX(this.datasets.length,n,e),y:this.scale.calculateY(t.value),width:this.scale.calculateBarWidth(this.datasets.length)},i).draw())},this)},this)}})}.call(this),function(){"use strict";var e=this.Chart,i=e.helpers,t={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'};e.Type.extend({name:"Doughnut",defaults:t,initialize:function(t){this.segments=[],this.outerRadius=(i.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,this.SegmentArc=e.Arc.extend({ctx:this.chart.ctx,x:this.chart.width/2,y:this.chart.height/2}),this.options.showTooltips&&i.bindEvents(this,this.options.tooltipEvents,function(t){t="mouseout"!==t.type?this.get
1SegmentsAtEvent(t):[];i.each(this.segments,function(t){t.restore(["fillColor"])}),i.each(t,function(t){t.fillColor=t.highlightColor}),this.showTooltip(t)}),this.calculateTotal(t),i.each(t,function(t,e){this.addData(t,e,!0)},this),this.render()},getSegmentsAtEvent:function(t){var e=[],n=i.getRelativePosition(t);return i.each(this.segments,function(t){t.inRange(n.x,n.y)&&e.push(t)},this),e},addData:function(t,e,n){e=e||this.segments.length;this.segments.splice(e,0,new this.SegmentArc({value:t.value,outerRadius:this.options.animateScale?0:this.outerRadius,innerRadius:this.options.animateScale?0:this.outerRadius/100*this.options.percentageInnerCutout,fillColor:t.color,highlightColor:t.highlight||t.color,showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,startAngle:1.5*Math.PI,circumference:this.options.animateRotate?0:this.calculateCircumference(t.value),label:t.label})),n||(this.reflow(),this.update())},calculateCircumference:function(t){return 2*Math.PI*(Math.abs(t)/this.total)},calculateTotal:function(t){this.total=0,i.each(t,function(t){this.total+=Math.abs(t.value)},this)},update:function(){this.calculateTotal(this.segments),i.each(this.activeElements,function(t){t.restore(["fillColor"])}),i.each(this.segments,function(t){t.save()}),this.render()},removeData:function(t){t=i.isNumber(t)?t:this.segments.length-1;this.segments.splice(t,1),this.reflow(),this.update()},reflow:function(){i.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.outerRadius=(i.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,i.each(this.segments,function(t){t.update({outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout})},this)},draw:function(t){var n=t||1;this.clear(),i.each(this.segments,function(t,e){t.transition({circumference:this.calculateCircumference(t.value),outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout},n),t.endAngle=t.startAngle+t.circumference,t.draw(),0===e&&(t.startAngle=1.5*Math.PI),e<this.segments.length-1&&(this.segments[e+1].startAngle=t.endAngle)},this)}}),e.types.Doughnut.extend({name:"Pie",defaults:i.merge(t,{percentageInnerCutout:0})})}.call(this),function(){"use strict";var e=this.Chart,l=e.helpers;e.Type.extend({name:"Line",defaults:{scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,bezierCurve:!0,bezierCurveTension:.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'},initialize:function(r){this.PointClass=e.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx,inRange:function(t){return Math.pow(t-this.x,2)<Math.pow(this.radius+this.hitDetectionRadius,2)}}),this.datasets=[],this.options.showTooltips&&l.bindEvents(this,this.options.tooltipEvents,function(t){t="mouseout"!==t.type?this.getPointsAtEvent(t):[];this.eachPoints(function(t){t.restore(["fillColor","strokeColor"])}),l.each(t,function(t){t.fillColor=t.highlightFill,t.strokeColor=t.highlightStroke}),this.showTooltip(t)}),l.each(r.datasets,function(n){var i={label:n.label||null,fillColor:n.fillColor,strokeColor:n.strokeColor,pointColor:n.pointColor,pointStrokeColor:n.pointStrokeColor,points:[]};this.datasets.push(i),l.each(n.data,function(t,e){i.points.push(new this.PointClass({value:t,label:r.labels[e],datasetLabel:n.label,strokeColor:n.pointStrokeColor,fillColor:n.pointColor,highlightFill:n.pointHighlightFill||n.pointColor,highlightStroke:n.pointHighlightStroke||n.pointStrokeColor}))},this),this.buildScale(r.labels),this.eachPoints(function(t,e){l.extend(t,{x:this.scale.calculateX(e),y:this.scale.endPoint}),t.save()},this)},this),this.render()}
1,update:function(){this.scale.update(),l.each(this.activeElements,function(t){t.restore(["fillColor","strokeColor"])}),this.eachPoints(function(t){t.save()}),this.render()},eachPoints:function(e){l.each(this.datasets,function(t){l.each(t.points,e,this)},this)},getPointsAtEvent:function(t){var e=[],n=l.getRelativePosition(t);return l.each(this.datasets,function(t){l.each(t.points,function(t){t.inRange(n.x,n.y)&&e.push(t)})},this),e},buildScale:function(t){var n=this,t={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:t.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(t){var e,t=l.calculateScaleRange((e=[],n.eachPoints(function(t){e.push(t.value)}),e),t,this.fontSize,this.beginAtZero,this.integersOnly);l.extend(this,t)},xLabels:t,font:l.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.pointDotRadius+this.options.pointDotStrokeWidth,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&l.extend(t,{calculateYRange:l.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new e.Scale(t)},addData:function(t,n){l.each(t,function(t,e){this.datasets[e].points.push(new this.PointClass({value:t,label:n,x:this.scale.calculateX(this.scale.valuesCount+1),y:this.scale.endPoint,strokeColor:this.datasets[e].pointStrokeColor,fillColor:this.datasets[e].pointColor}))},this),this.scale.addXLabel(n),this.update()},removeData:function(){this.scale.removeXLabel(),l.each(this.datasets,function(t){t.points.shift()},this),this.update()},reflow:function(){var t=l.extend({height:this.chart.height,width:this.chart.width});this.scale.update(t)},draw:function(t){var n=t||1;this.clear();function a(t){return null!==t.value}function s(t,e,n){return l.findPreviousWhere(e,a,n)||t}var i=this.chart.ctx;this.scale.draw(n),l.each(this.datasets,function(t){var o=l.where(t.points,a);l.each(t.points,function(t,e){t.hasValue()&&t.transition({y:this.scale.calculateY(t.value),x:this.scale.calculateX(e)},n)},this),this.options.bezierCurve&&l.each(o,function(t,e){var n,i,r=0<e&&e<o.length-1?this.options.bezierCurveTension:0;t.controlPoints=l.splineCurve(s(t,o,e),t,(n=t,i=o,e=e,l.findNextWhere(i,a,e)||n),r),t.controlPoints.outer.y>this.scale.endPoint?t.controlPoints.outer.y=this.scale.endPoint:t.controlPoints.outer.y<this.scale.startPoint&&(t.controlPoints.outer.y=this.scale.startPoint),t.controlPoints.inner.y>this.scale.endPoint?t.controlPoints.inner.y=this.scale.endPoint:t.controlPoints.inner.y<this.scale.startPoint&&(t.controlPoints.inner.y=this.scale.startPoint)},this),i.lineWidth=this.options.datasetStrokeWidth,i.strokeStyle=t.strokeColor,i.beginPath(),l.each(o,function(t,e){0===e?i.moveTo(t.x,t.y):this.options.bezierCurve?(e=s(t,o,e),i.bezierCurveTo(e.controlPoints.outer.x,e.controlPoints.outer.y,t.controlPoints.inner.x,t.controlPoints.inner.y,t.x,t.y)):i.lineTo(t.x,t.y)},this),i.stroke(),this.options.datasetFill&&0<o.length&&(i.lineTo(o[o.length-1].x,this.scale.endPoint),i.lineTo(o[0].x,this.scale.endPoint),i.fillStyle=t.fillColor,i.closePath(),i.fill()),l.each(o,function(t){t.draw()})},this)}})}.call(this),function(){"use strict";var e=this.Chart,i=e.helpers;e.Type.extend({name:"PolarArea",defaults:{scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBeginAtZero:!0,scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,scaleShowLine:!0,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span style="background-color:<%=segments[i].fillColor%>"></span><%if(segments[i].label){%><%=segments[i].label%><%}%></li><%}%></ul>'},initialize:function(t){this.segments=[],this.SegmentArc=e.Arc.extend({showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,ctx:this.chart.ctx,innerRadius:0,x:this.chart.width/2,y:this.chart.height/2}),this.scale=new e.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,lineArc:!0,width:this.chart.width,height:this.chart.height,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,valuesCount:t.length}
1),this.updateScaleRange(t),this.scale.update(),i.each(t,function(t,e){this.addData(t,e,!0)},this),this.options.showTooltips&&i.bindEvents(this,this.options.tooltipEvents,function(t){t="mouseout"!==t.type?this.getSegmentsAtEvent(t):[];i.each(this.segments,function(t){t.restore(["fillColor"])}),i.each(t,function(t){t.fillColor=t.highlightColor}),this.showTooltip(t)}),this.render()},getSegmentsAtEvent:function(t){var e=[],n=i.getRelativePosition(t);return i.each(this.segments,function(t){t.inRange(n.x,n.y)&&e.push(t)},this),e},addData:function(t,e,n){e=e||this.segments.length;this.segments.splice(e,0,new this.SegmentArc({fillColor:t.color,highlightColor:t.highlight||t.color,label:t.label,value:t.value,outerRadius:this.options.animateScale?0:this.scale.calculateCenterOffset(t.value),circumference:this.options.animateRotate?0:this.scale.getCircumference(),startAngle:1.5*Math.PI})),n||(this.reflow(),this.update())},removeData:function(t){t=i.isNumber(t)?t:this.segments.length-1;this.segments.splice(t,1),this.reflow(),this.update()},calculateTotal:function(t){this.total=0,i.each(t,function(t){this.total+=t.value},this),this.scale.valuesCount=this.segments.length},updateScaleRange:function(t){var e=[];i.each(t,function(t){e.push(t.value)});t=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:i.calculateScaleRange(e,i.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);i.extend(this.scale,t,{size:i.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2})},update:function(){this.calculateTotal(this.segments),i.each(this.segments,function(t){t.save()}),this.reflow(),this.render()},reflow:function(){i.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.updateScaleRange(this.segments),this.scale.update(),i.extend(this.scale,{xCenter:this.chart.width/2,yCenter:this.chart.height/2}),i.each(this.segments,function(t){t.update({outerRadius:this.scale.calculateCenterOffset(t.value)})},this)},draw:function(t){var n=t||1;this.clear(),i.each(this.segments,function(t,e){t.transition({circumference:this.scale.getCircumference(),outerRadius:this.scale.calculateCenterOffset(t.value)},n),t.endAngle=t.startAngle+t.circumference,0===e&&(t.startAngle=1.5*Math.PI),e<this.segments.length-1&&(this.segments[e+1].startAngle=t.endAngle),t.draw()},this),this.scale.draw()}})}.call(this),function(){"use strict";var e=this.Chart,a=e.helpers;e.Type.extend({name:"Radar",defaults:{scaleShowLine:!0,angleShowLineOut:!0,scaleShowLabels:!1,scaleBeginAtZero:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:10,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span style="background-color:<%=datasets[i].strokeColor%>"></span><%if(datasets[i].label){%><%=datasets[i].label%><%}%></li><%}%></ul>'},initialize:function(o){this.PointClass=e.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx}),this.datasets=[],this.buildScale(o),this.options.showTooltips&&a.bindEvents(this,this.options.tooltipEvents,function(t){t="mouseout"!==t.type?this.getPointsAtEvent(t):[];this.eachPoints(function(t){t.restore(["fillColor","strokeColor"])}),a.each(t,function(t){t.fillColor=t.highlightFill,t.strokeColor=t.highlightStroke}),this.showTooltip(t)}),a.each(o.datasets,function(i){var r={label:i.label||null,fillColor:i.fillColor,strokeColor:i.strokeColor,pointColor:i.pointColor,pointStrokeColor:i.pointStrokeColor,points:[]};this.datasets.push(r),a.each(i.data,function(t,e){var n;this.scale.animation||(n=this.scale.getPointPosition(e,this.scale.calculateCenterOffset(t))),r.points.push(new this.PointClass({value:t,label:o.labels[e],datasetLabel:i.label,x:this.options.animation?this.scale.xCenter:n.x,y:this.options.animation?this.scale.yCenter:n.y,strokeColor:i.pointStrokeColor,fillColor:i.pointColor,highlightFill:i.pointHighlightFill||i.pointColor,highlightStroke:i.pointHighlightStroke||i.pointStrokeColor}))},this)},this),this.render()},eachPoints:function(e){a.each(this.datasets,function(t){a.each(t.points,e,this)},this)},getPointsAtEvent:function(t){var e=a.getRelativePosition(t),t=a.getAngleFromPoint({x:this.scale.xCenter,y:this.scale.yCenter},e),e=2*Math.PI/this.scale.valuesCount,n=Math.round((t.angle-1.5*Math.PI)/e),i=[];return(n>=this.scale.valuesCount||n<0)&&(n=0),t.distance<=this.scale.drawingArea&&a.each(this.datasets,function(t){i.push(t.points[n])}),i},buildScale:function(t){this.scale=new e.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,angleLineColor:this.options.angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options.angleLineWidth:0,pointLabelFontColor:this.options.pointLabelFontColor,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this.options.pointLabelFontFamily,pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:t.labels,valuesCount:t.datasets[0].data.length}),this.scale.setScaleSize(),this.updateScaleRange(t.datasets),this.scale.buildYLabels()},updateScaleRange:function(t){var e,t=(e=[],a.each(t,function(t){t.data?e=e.concat(t.data):a.each(t.points,function(t){e.push(t.value)})}),e),t=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:a.calculateScaleRange(t,a.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);a.extend(this.scale,t)},addData:function(t,i){this.scale.valuesCount++,a.each(t,function(t,e){var n=this.scale.getPointPosition(this.scale.valuesCount,this.scale.calculateCenterOffset(t));this.datasets[e].points.push(new this.PointClass({value:t,label:i,x:n.x,y:n.y,strokeColor:this.datasets[e].pointStrokeColor,fillColor:this.datasets[e].pointColor}))},this),this.scale.labels.push(i),this.reflow(),this.update()},removeData:function(){this.scale.valuesCount--,this.scale.labels.shift(),a.each(this.datasets,function(t){t.points.shift()},this),this.reflow(),this.update()},update:function(){this.eachPoints(function(t){t.save()}),this.reflow(),this.render()},reflow:function(){a.extend(this.scale,{width:this.chart.width,height:this.chart.height,size:a.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2}),this.updateScaleRange(this.datasets),this.scale.setScaleSize(),this.scale.buildYLabels()},draw:function(t){var n=t||1,i=this.chart.ctx;this.clear(),this.scale.draw(),a.each(this.datasets,function(t){a.each(t.points,function(t,e){t.hasValue()&&t.transition(this.scale.getPointPosition(e,this.scale.calculateCenterOffset(t.value)),n)},this),i.lineWidth=this.options.datasetStrokeWidth,i.strokeStyle=t.strokeColor,
1i.beginPath(),a.each(t.points,function(t,e){0===e?i.moveTo(t.x,t.y):i.lineTo(t.x,t.y)},this),i.closePath(),i.stroke(),i.fillStyle=t.fillColor,i.fill(),a.each(t.points,function(t){t.hasValue()&&t.draw()})},this)}})}.call(this),function(t){"use strict";"function"==typeof define&&define.amd?define(["angular","chart.js"],t):"object"==typeof exports?module.exports=t(require("angular"),require("chart.js")):t(angular,Chart)}(function($,w){"use strict";w.defaults.global.responsive=!0,w.defaults.global.multiTooltipTemplate="<%if (datasetLabel){%><%=datasetLabel%>: <%}%><%= value %>",w.defaults.global.colours=["#97BBCD","#DCDCDC","#F7464A","#46BFBD","#FDB45C","#949FB1","#4D5360"];var a="object"==typeof window.G_vmlCanvasManager&&null!==window.G_vmlCanvasManager&&"function"==typeof window.G_vmlCanvasManager.initElement;a&&(w.defaults.global.animation=!1),$.module("chart.js",[]).provider("ChartJs",function(){var n={},t={Chart:w,getOptions:function(t){t=t&&n[t]||{};return $.extend({},n,t)}};this.setOptions=function(t,e){e?n[t]=$.extend(n[t]||{},e):n=$.extend(n,e=t)},this.$get=function(){return t}}).factory("ChartJsFactory",["ChartJs","$timeout",function(g,m){return function(i){return{restrict:"CA",scope:{data:"=",labels:"=",options:"=",series:"=",colours:"=?",getColour:"=?",chartType:"=",legend:"@",click:"=",hover:"="},link:function(c,p){var h,d=document.createElement("div");function t(t,e){o(t)||$.equals(t,e)||(e=i||c.chartType)&&(h&&h.destroy(),f(e))}function f(t){if(n=t,o=c,$.extend({},w.defaults.global,g.getOptions(n),o.options).responsive&&0===p[0].clientHeight&&0===d.clientHeight)return m(function(){f(t)},50);var e,n,i,r,o,a,s,l,u;c.data&&c.data.length&&(c.getColour="function"==typeof c.getColour?c.getColour:y,c.colours=function(t,e){var n=$.copy(e.colours||g.getOptions(t).colours||w.defaults.global.colours);for(;n.length<e.data.length;)n.push(e.getColour());return n.map(v)}(t,c),n=(e=p[0]).getContext("2d"),a=Array.isArray(c.data[0])?(o=c.labels,a=c.data,s=c.series||[],l=c.colours,{labels:o,datasets:a.map(function(t,e){return $.extend({},l[e],{label:s[e],data:t})})}):(u=c.labels,i=c.data,r=c.colours,u.map(function(t,e){return $.extend({},r[e],{label:t,value:i[e],color:r[e].strokeColor,highlight:r[e].pointHighlightStroke})})),u=$.extend({},g.getOptions(t),c.options),h=new g.Chart(n)[t](a,u),c.$emit("create",h),["hover","click"].forEach(function(t){var n,i,r;c[t]&&(e["click"===t?"onclick":"onmousemove"]=(n=c,i=h,r=t,function(t){var e=i.getPointsAtEvent||i.getBarsAtEvent||i.getSegmentsAtEvent;e&&(e=e.call(i,t),n[r](e,t),n.$apply())}))}),c.legend&&"false"!==c.legend&&b(p,h))}d.className="chart-container",p.replaceWith(d),d.appendChild(p[0]),a&&window.G_vmlCanvasManager.initElement(p[0]),c.$watch("data",function(t,e){if(t&&t.length&&(!Array.isArray(t[0])||t[0].length)){var n=i||c.chartType;if(n){if(h){if(function(t,n){if(t&&n&&t.length&&n.length)return Array.isArray(t[0])?t.length===n.length&&t.every(function(t,e){return t.length===n[e].length}):0<n.reduce(r,0)&&t.length===n.length;return!1}(t,e))return function(t,i,e,n){Array.isArray(e.data[0])?t.datasets.forEach(function(t,n){(t.points||t.bars).forEach(function(t,e){t.value=i[n][e]})}):t.segments.forEach(function(t,e){t.value=i[e]});t.update(),e.$emit("update",t),e.legend&&"false"!==e.legend&&b(n,t)}(h,t,c,p);h.destroy()}f(n)}}},!0),c.$watch("series",t,!0),c.$watch("labels",t,!0),c.$watch("options",t,!0),c.$watch("colours",t,!0),c.$watch("chartType",function(t,e){o(t)||$.equals(t,e)||(h&&h.destroy(),f(t))}),c.$on("$destroy",function(){h&&h.destroy()})}}};function r(t,e){return t+e}function v(t){return"object"==typeof t&&null!==t?t:"string"==typeof t&&"#"===t[0]?e(function(t){t=parseInt(t,16);return[t>>16&255,t>>8&255,255&t]}(t.substr(1))):y()}function y(){return e([t(0,255),t(0,255),t(0,255)])}function e(t){return{fillColor:n(t,.2),strokeColor:n(t,1),pointColor:n(t,1),pointStrokeColor:"#fff",pointHighlightFill:"#fff",pointHighlightStroke:n(t,.8)}}function t(t,e){return Math.floor(Math.random()*(e-t+1))+t}function n(t,e){return a?"rgb("+t.join(",")+")":"rgba("+t.concat(e).join(",")+")"}function b(t,e){var n=t.parent(),t=n.find("chart-legend"),e="<chart-legend>"+e.generateLegend()+"</chart-legend>";t.length?t.replaceWith(e):n.append(e)}function o(t){return!t||Array.isArray(t)&&!t.length||"object"==typeof t&&!Object.keys(t).length}}]).directive("chartBase",["ChartJsFactory",function(t){return new t}]).directive("chartLine",["ChartJsFactory",function(t){return new t("Line")}]).directive("chartBar",["ChartJsFactory",function(t){return new t("Bar")}]).directive("chartRadar",["ChartJsFactory",function(t){return new t("Radar")}]).directive("chartDoughnut",["ChartJsFactory",function(t){return new t("Doughnut")}]).directive("chartPie",["ChartJsFactory",function(t){return new t("Pie")}]).directive("chartPolarArea",["ChartJsFactory",function(t){return new t("PolarArea")}])}),function(r,s,u){"use strict";var o=["","webkit","Moz","MS","ms","o"],t=s.createElement("div"),n="function",a=Math.round,c=Math.abs,l=Date.now;function p(t,e,n){return setTimeout(v(t,n),e)}function i(t,e,n){return Array.isArray(t)&&(h(t,n[e],n),1)}function h(t,e,n){if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==u)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(var i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function e(n,t,e){var i="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",t=r.console&&(r.console.warn||r.console.log);return t&&t.call(r.console,i,e),n.apply(this,arguments)}}var d="function"!=typeof Object.assign?function(t){if(t===u||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==u&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign,f=e(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===u)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),g=e(function(t,e){return f(t,e,!0)},"merge","Use `assign`.");function m(t,e,n){var i=e.prototype,e=t.prototype=Object.create(i);e.constructor=t,e._super=i,n&&d(e,n)}function v(t,e){return function(){return t.apply(e,arguments)}}function y(t,e){return typeof t==n?t.apply(e&&e[0]||u,e):t}function b(t,e){return t===u?e:t}function $(e,t,n){h(k(t),function(t){e.addEventListener(t,n,!1)})}function w(e,t,n){h(k(t),function(t){e.removeEventListener(t,n,!1)})}function x(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function C(t,e){return-1<t.indexOf(e)}function k(t){return t.trim().split(/\s+/g)}
vendor: 21,343 bytes, line 1
1function S(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function T(t){return Array.prototype.slice.call(t,0)}function E(t,n,e){for(var i=[],r=[],o=0;o<t.length;){var a=n?t[o][n]:t[o];S(r,a)<0&&i.push(t[o]),r[o]=a,o++}return i=e?n?i.sort(function(t,e){return t[n]>e[n]}):i.sort():i}function D(t,e){for(var n,i=e[0].toUpperCase()+e.slice(1),r=0;r<o.length;){if((n=(n=o[r])?n+i:e)in t)return n;r++}return u}var A=1;function O(t){t=t.ownerDocument||t;return t.defaultView||t.parentWindow||r}var P="ontouchstart"in r,M=D(r,"PointerEvent")!==u,I=P&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),R="touch",j=25,N=1,L=4,F=8,U=1,q=2,_=4,H=8,B=16,V=q|_,W=H|B,z=V|W,X=["x","y"],Y=["clientX","clientY"];function G(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){y(e.options.enable,[e])&&n.handler(t)},this.init()}function J(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=e&N&&i-r==0,r=e&(L|F)&&i-r==0;n.isFirst=!!o,n.isFinal=!!r,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=Q(e));1<r&&!n.firstMultiple?n.firstMultiple=Q(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=(a||o).center,r=e.center=K(i);e.timeStamp=l(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=nt(s,r),e.distance=et(s,r),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};e.eventType!==N&&o.eventType!==L||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=tt(e.deltaX,e.deltaY);r=Z(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=r.x,e.overallVelocityY=r.y,e.overallVelocity=c(r.x)>c(r.y)?r.x:r.y,e.scale=a?function(t,e){return et(e[0],e[1],Y)/et(t[0],t[1],Y)}(a.pointers,i):1,e.rotation=a?function(t,e){return nt(e[1],e[0],Y)+nt(t[1],t[0],Y)}(a.pointers,i):0,e.maxPointers=!n.prevInput||e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers,function(t,e){var n,i,r=t.lastInterval||e,o=e.timeStamp-r.timeStamp;{var a,s,l;e.eventType!=F&&(j<o||r.velocity===u)?(a=e.deltaX-r.deltaX,s=e.deltaY-r.deltaY,l=Z(o,a,s),n=l.x,i=l.y,l=c(l.x)>c(l.y)?l.x:l.y,s=tt(a,s),t.lastInterval=e):(l=r.velocity,n=r.velocityX,i=r.velocityY,s=r.direction)}e.velocity=l,e.velocityX=n,e.velocityY=i,e.direction=s}(n,e);t=t.element;x(e.srcEvent.target,t)&&(t=e.srcEvent.target);e.target=t}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Q(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:a(t.pointers[n].clientX),clientY:a(t.pointers[n].clientY)},n++;return{timeStamp:l(),pointers:e,center:K(e),deltaX:t.deltaX,deltaY:t.deltaY}}function K(t){var e=t.length;if(1===e)return{x:a(t[0].clientX),y:a(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:a(n/e),y:a(i/e)}}function Z(t,e,n){return{x:e/t||0,y:n/t||0}}function tt(t,e){return t===e?U:c(t)>=c(e)?t<0?q:_:e<0?H:B}function et(t,e,n){var i=e[(n=n||X)[0]]-t[n[0]],n=e[n[1]]-t[n[1]];return Math.sqrt(i*i+n*n)}function nt(t,e,n){var i=e[(n=n||X)[0]]-t[n[0]],n=e[n[1]]-t[n[1]];return 180*Math.atan2(n,i)/Math.PI}G.prototype={handler:function(){},init:function(){this.evEl&&$(this.element,this.evEl,this.domHandler),this.evTarget&&$(this.target,this.evTarget,this.domHandler),this.evWin&&$(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(O(this.element),this.evWin,this.domHandler)}};var it={mousedown:N,mousemove:2,mouseup:L},rt="mousedown",ot="mousemove mouseup";function at(){this.evEl=rt,this.evWin=ot,this.pressed=!1,G.apply(this,arguments)}m(at,G,{handler:function(t){var e=it[t.type];e&N&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=L),this.pressed&&(e&L&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var st={pointerdown:N,pointermove:2,pointerup:L,pointercancel:F,pointerout:F},lt={2:R,3:"pen",4:"mouse",5:"kinect"},ut="pointerdown",ct="pointermove pointerup pointercancel";function pt(){this.evEl=ut,this.evWin=ct,G.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(ut="MSPointerDown",ct="MSPointerMove MSPointerUp MSPointerCancel"),m(pt,G,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=st[i],o=lt[t.pointerType]||t.pointerType,a=o==R,i=S(e,t.pointerId,"pointerId");r&N&&(0===t.button||a)?i<0&&(e.push(t),i=e.length-1):r&(L|F)&&(n=!0),i<0||(e[i]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(i,1))}});var ht={touchstart:N,touchmove:2,touchend:L,touchcancel:F};function dt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,G.apply(this,arguments)}m(dt,G,{handler:function(t){var e,n=ht[t.type];n===N&&(this.started=!0),this.started&&(e=function(t,e){var n=T(t.touches),t=T(t.changedTouches);e&(L|F)&&(n=E(n.concat(t),"identifier",!0));return[n,t]}.call(this,t,n),n&(L|F)&&e[0].length-e[1].length==0&&(this.started=!1),this.callback(this.manager,n,{pointers:e[0],changedPointers:e[1],pointerType:R,srcEvent:t}))}});var ft={touchstart:N,touchmove:2,touchend:L,touchcancel:F},gt="touchstart touchmove touchend touchcancel";function mt(){this.evTarget=gt,this.targetIds={},G.apply(this,arguments)}m(mt,G,{handler:function(t){var e=ft[t.type],n=function(t,e){var n=T(t.touches),i=this.targetIds;if(e&(2|N)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,a=T(t.changedTouches),s=[],l=this.target;if(o=n.filter(function(t){return x(t.target,l)}),e===N)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;r=0;for(;r<a.length;)i[a[r].identifier]&&s.push(a[r]),e&(L|F)&&delete i[a[r].identifier],r++;if(s.length)return[E(o.concat(s),"identifier",!0),s]}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:t})}});var vt=2500;function yt(){G.apply(this,arguments);var t=v(this.handler,this);this.touch=new mt(this.manager,t),this.mouse=new at(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function bt(t){var e,n,t=t.changedPointers[0];t.identifier===this.primaryTouch&&(e={x:t.clientX,y:t.clientY},this.lastTouches.push(e),n=this.lastTouches,setTimeout(function(){var t=n.indexOf(e);-1<t&&n.splice(t,1)},vt))}m(yt,G,{handler:function(t,e,n){var i=n.pointerType==R,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)!function(t,e){t&N?(this.primaryTouch=e.changedPointers[0].identifier,bt.call(this,e)):t&(L|F)&&bt.call(this,e)}.call(this,e,n);else if(r&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),r=Math.abs(n-r.y);if(o<=25&&r<=25)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var $t=D(t.style,"touchAction"),wt=$t!==u,xt="manipulation",Ct="none",kt="pan-x",St="pan-y",Tt=function(){if(!wt)return!1;var e={},n=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){e[t]=!n||r.CSS.supports("touch-action",t)}),e}();function Et(t,e){this.manager=t,this.set(e)}Et.prototype={set:function(t){"compute"==t&&(t=this.compute()),wt&&this.manager.element.style&&Tt[t]&&(this.manager.element.style[$t]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return h(this.manager.recognizers,function(t){y(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(C(t,Ct))return Ct;var e=C(t,kt),n=C(t,St);if(e&&n)return Ct;if(e||n)return e?kt:St;if(C(t,xt))return xt;return"auto"}(e.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=C(i,Ct)&&!Tt.none,o=C(i,St)&&!Tt[St],a=C(i,kt)&&!Tt[kt];if(r){var s=1===t.pointers.length,i=t.distance<2,t=t.deltaTime<250;if(s&&i&&t)return}if(!a||!o)return r||o&&n&V||a&&n&W?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Dt=1;function At(t){this.options=d({},this.defaults,t||{}),this.id=A++,this.manager=null,this.options.enable=b(this.options.enable,!0),this.state=Dt,this.simultaneous={},this.requireFail=[]}function Ot(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Pt(t){return t==B?"down":t==H?"up":t==q?"left":t==_?"right":""}function Mt(t,e){e=e.manager;return e?e.get(t):t}function It(){At.apply(this,arguments)}function Rt(){It.apply(this,arguments),this.pX=null,this.pY=null}function jt(){It.apply(this,arguments)}function Nt(){At.apply(this,arguments),this._timer=null,this._input=null}function Lt(){It.apply(this,arguments)}function Ft(){It.apply(this,arguments)}function Ut(){At.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function qt(t,e){return(e=e||{}).recognizers=b(e.recognizers,qt.defaults.preset),new _t(t,e)}At.prototype={defaults:{},set:function(t){return d(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(i(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Mt(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return i(t,"dropRecognizeWith",this)||(t=Mt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(i(t,"requireFailure",this))return this;var e=this.requireFail;return-1===S(e,t=Mt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(i(t,"dropRequireFailure",this))return this;t=Mt(t,this);t=S(this.requireFail,t);return-1<t&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){var n=this,t=this.state;function i(t){n.manager.emit(t,e)}t<8&&i(n.options.event+Ot(t)),i(n.options.event),e.additionalEvent&&i(e.additionalEvent),8<=t&&i(n.options.event+Ot(t))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Dt)))return!1;t++}return!0},recognize:function(t){t=d({},t);if(!y(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=Dt),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(t){},getTouchAction:function(){},reset:function(){}},m(It,At,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,i=6&e,t=this.attrTest(t);return i&&(n&F||!t)?16|e:i||t?n&L?8|e:2&e?4|e:2:32}}),m(Rt,It,{defaults:{event:"pan",threshold:10,pointers:1,direction:z},getTouchAction:function(){var t=this.options.direction,e=[];return t&V&&e.push(St),t&W&&e.push(kt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,a=t.deltaY;return r&e.direction||(i=e.direction&V?(r=0===o?U:o<0?q:_,n=o!=this.pX,Math.abs(t.deltaX)):(r=0===a?U:a<0?H:B,n=a!=this.pY,Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return It.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Pt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),m(jt,It,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){var e;1!==t.scale&&(e=t.scale<1?"in":"out",t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),m(Nt,At,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||t.eventType&(L|F)&&!r)this.reset();else if(t.eventType&N)this.reset(),this._timer=p(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&L)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&L?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=l(),this.manager.emit(this.options.event,this._input)))}}),m(Lt,It,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),m(Ft,It,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:V|W,pointers:1},getTouchAction:function(){return Rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(V|W)?e=t.overallVelocity:n&V?e=t.overallVelocityX:n&W&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&c(e)>this.options.velocity&&t.eventType&L},emit:function(t){var e=Pt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),m(Ut,At,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&N&&0===this.count)return this.failTimeout();if(i&&r&&n){if(t.eventType!=L)return this.failTimeout();r=!this.pTime||t.timeStamp-this.pTime<e.interval,n=!this.pCenter||et(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,n&&r?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=p(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=p(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),qt.VERSION="2.0.7",qt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Lt,{enable:!1}],[jt,{enable:!1},["rotate"]],[Ft,{direction:V}],[Rt,{direction:V},["swipe"]],[Ut],[Ut,{event:"doubletap",taps:2},["tap"]],[Nt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function _t(t,e){this.options=d({},qt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((t=this).options.inputClass||(M?pt:I?mt:P?yt:at))(t,J),this.touchAction=new Et(this,this.options.touchAction),Ht(this,!0),h(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Ht(n,i){var r,o=n.element;o.style&&(h(n.options.cssProps,function(t,e){r=D(o.style,e),i?(n.oldCssProps[r]=o.style[r],o.style[r]=t):o.style[r]=n.oldCssProps[r]||""}),i||(n.oldCssProps={}))}_t.prototype={set:function(t){return d(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e,n=this.session;if(!n.stopped){this.touchAction.preventDefaults(t);var i=this.recognizers,r=n.curRecognizer;(!r||r&&8&r.state)&&(r=n.curRecognizer=null);for(var o=0;o<i.length;)e=i[o],2===n.stopped||r&&e!=r&&!e.canRecognizeWith(r)?e.reset():e.recognize(t),!r&&14&e.state&&(r=n.curRecognizer=e),o++}},get:function(t){if(t instanceof At)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(i(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){return i(t,"remove",this)||!(t=this.get(t))||-1!==(t=S(e=this.recognizers,t))&&(e.splice(t,1),this.touchAction.update()),this;var e},on:function(t,e){if(t!==u&&e!==u){var n=this.handlers;return h(k(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==u){var n=this.handlers;return h(k(t),function(t){e?n[t]&&n[t].splice(S(n[t],e),1):delete n[t]}),this}},emit:function(t,e){var n,i,r;this.options.domEvents&&(n=t,i=e,(r=s.createEvent("Event")).initEvent(n,!0,!0),(r.gesture=i).target.dispatchEvent(r));var o=this.handlers[t]&&this.handlers[t].slice();if(o&&o.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var a=0;a<o.length;)o[a](e),a++}},destroy:function(){this.element&&Ht(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},d(qt,{INPUT_START:N,INPUT_MOVE:2,INPUT_END:L,INPUT_CANCEL:F,STATE_POSSIBLE:Dt,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:U,DIRECTION_LEFT:q,DIRECTION_RIGHT:_,DIRECTION_UP:H,DIRECTION_DOWN:B,DIRECTION_HORIZONTAL:V,DIRECTION_VERTICAL:W,DIRECTION_ALL:z,Manager:_t,Input:G,TouchAction:Et,TouchInput:mt,MouseInput:at,PointerEventInput:pt,TouchMouseInput:yt,SingleTouchInput:dt,Recognizer:At,AttrRecognizer:It,Tap:Ut,Pan:Rt,Swipe:Ft,Pinch:jt,Rotate:Lt,Press:Nt,on:$,off:w,each:h,merge:g,extend:f,assign:d,inherit:m,bindFn:v,prefixed:D}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=qt,"function"==typeof define&&define.amd?define(function(){return qt}):"undefined"!=typeof module&&module.exports?module.exports=qt:r.Hammer=qt}(window,document),function(c,h,d){"use strict";if(void 0===h)if("undefined"!=typeof require&&require)try{h=require("angular")}catch(t){return console.log("ERROR: Angular Hammer could not require() a reference to angular")}else{if(void 0===c.angular)return console.log("ERROR: Angular Hammer could not find or require() a reference to angular");h=c.angular}if(void 0===d)if("undefined"!=typeof require&&require)try{d=require("hammerjs")}catch(t){return console.log("ERROR: Angular Hammer could not require() a reference to Hammer")}else{if(void 0===c.Hammer)return console.log("ERROR: Angular Hammer could not find or require() a reference to Hammer");d=c.Hammer}function p(t,e){if(!t||!e||!e.type)return null;e=new(-1<e.type.indexOf("pan")?d.Pan:-1<e.type.indexOf("pinch")?d.Pinch:-1<e.type.indexOf("press")?d.Press:-1<e.type.indexOf("rotate")?d.Rotate:-1<e.type.indexOf("swipe")?d.Swipe:d.Tap)(e);return t.add(e),e}function f(t,e){return t&&(e.preventGhosts=t.preventGhosts),e}function g(t){return-1<t.indexOf("pan")?"pan":-1<t.indexOf("pinch")?"pinch":-1<t.indexOf("press")?"press":-1<t.indexOf("rotate")?"rotate":-1<t.indexOf("swipe")?"swipe":"tap"}function m(t,e,n){var i,r,o,a,s;function l(t){for(var e=0;e<a.length;e++){var n=a[e][0],i=a[e][1];if(Math.abs(t.clientX-n)<25&&Math.abs(t.clientY-i)<25){t.stopPropagation(),t.preventDefault();break}}}function u(){a.splice(0,1)}t&&e&&(s=(s=t.get(e.type))||p(t,e),e.directions||("pan"===e.type||"swipe"===e.type?e.directions="DIRECTION_ALL":-1<e.type.indexOf("left")?e.directions="DIRECTION_LEFT":-1<e.type.indexOf("right")?e.directions="DIRECTION_RIGHT":-1<e.type.indexOf("up")?e.directions="DIRECTION_UP":-1<e.type.indexOf("down")?e.directions="DIRECTION_DOWN":e.directions=""),e.direction=(i=e.directions,r=0,h.forEach(i.split("|"),function(t){d.hasOwnProperty(t)&&(r|=d[t])}),r),s.set(e),e.recognizeWith&&(t.get(e.recognizeWith)||p(t,{type:e.recognizeWith}),s.recognizeWith(t.get(e.recognizeWith))),e.dropRecognizeWith&&t.get(e.dropRecognizeWith)&&s.dropRecognizeWith(t.get(e.dropRecognizeWith)),e.requireFailure&&(t.get(e.requireFailure)||p(t,{type:e.requireFailure}),s.requireFailure(t.get(e.requireFailure))),e.dropRequireFailure&&t.get(e.dropRequireFailure)&&s.dropRequireFailure(t.get(e.dropRequireFailure)),e.preventGhosts&&n&&(o=n)&&(a=[],"ontouchstart"in c&&(o[0].addEventListener("touchstart",function(){a=[]},!0),o[0].addEventListener("touchend",function(t){t.touches.length-t.changedTouches.length<=0&&(t=t.changedTouches[0],a.push([t.clientX,t.clientY]),setTimeout(u,2500))},!0),o[0].addEventListener("click",l,!0),o[0].addEventListener("mouseup",l,!0))))}h.module("hmTouchEvents",[]),h.forEach(["hmCustom:custom","hmSwipe:swipe","hmSwipeleft:swipeleft","hmSwiperight:swiperight","hmSwipeup:swipeup","hmSwipedown:swipedown","hmPan:pan","hmPanstart:panstart","hmPanmove:panmove","hmPanend:panend","hmPancancel:pancancel","hmPanleft:panleft","hmPanright:panright","hmPanup:panup","hmPandown:pandown","hmPress:press","hmPressup:pressup","hmRotate:rotate","hmRotatestart:rotatestart","hmRotatemove:rotatemove","hmRotateend:rotateend","hmRotatecancel:rotatec
1ancel","hmPinch:pinch","hmPinchstart:pinchstart","hmPinchmove:pinchmove","hmPinchend:pinchend","hmPinchcancel:pinchcancel","hmPinchin:pinchin","hmPinchout:pinchout","hmTap:tap","hmDoubletap:doubletap"],function(t){var t=t.split(":"),c=t[0],p=t[1];h.module("hmTouchEvents").directive(c,["$parse","$window",function(l,u){return{restrict:"A",link:function(r,o,t){if(!d||!u.addEventListener)return"hmTap"===c&&o.bind("click",i),void("hmDoubletap"===c&&o.bind("dblclick",i));var a=o.data("hammer"),e=h.fromJson(t.hmManagerOptions),n=h.fromJson(t.hmRecognizerOptions);a||(a=new d.Manager(o[0],e),o.data("hammer",a),r.$on("$destroy",function(){a.destroy()}));var t=t[c],s=l(t),i=function(e){var t=r.$root.$$phase,n=a.get(e.type);function i(){var t=s(r,{$event:e});t&&t.call(r,e)}e.element=o,n&&(n.options.preventDefault&&e.preventDefault(),n.options.stopPropagation&&e.srcEvent.stopPropagation()),"$apply"===t||"$digest"===t?i():r.$apply(i)};h.isArray(n)?h.forEach(n,function(t){"hmCustom"===c?p=t.event:(t.type||(t.type=g(p)),t.event&&delete t.event),("hmCustom"===c||-1<p.indexOf(t.type))&&m(a,f(e,t),o)}):h.isObject(n)?("hmCustom"===c?p=n.event:(n.type||(n.type=g(p)),n.event&&delete n.event),("hmCustom"===c||-1<p.indexOf(n.type))&&m(a,f(e,n),o)):"hmCustom"!==c?(n={type:g(p)},"hmDoubletap"===c&&(n.event=p,n.taps=2,a.get("tap")&&(n.recognizeWith="tap")),-1<n.type.indexOf("pan")&&a.get("swipe")&&(n.recognizeWith="swipe"),-1<n.type.indexOf("pinch")&&a.get("rotate")&&(n.recognizeWith="rotate"),m(a,f(e,n),o)):p=null,p&&a.on(p,i)}}}])})}(window,window.angular,window.Hammer),function(){"use strict";angular.module("angular-click-outside",[]).directive("clickOutside",["$document","$parse","$timeout",function(n,p,h){return{restrict:"A",link:function(l,u,c){h(function(){var s=void 0!==c.outsideIfNot?c.outsideIfNot.split(/[ ,]+/):[];function t(t){var e,n,i,r,o,a;if(!angular.element(u).hasClass("ng-hide")&&t&&t.target){for(n=t.target;n;n=n.parentNode){if(n===u[0])return;if(r=n.id,o=n.className,a=s.length,(o=o&&void 0!==o.baseVal?o.baseVal:o)||r)for(e=0;e<a;e++)if(i=new RegExp("\\b"+s[e]+"\\b"),void 0!==r&&r===s[e]||o&&i.test(o))return}h(function(){p(c.clickOutside)(l,{event:t})})}}function e(){return"ontouchstart"in window||navigator.maxTouchPoints}e()&&n.on("touchstart",t),n.on("click",t),l.$on("$destroy",function(){e()&&n.off("touchstart",t),n.off("click",t)})})}}}])}(),function(){"use strict";var m=8,p=9,v=13,h=27,y=32,d=38,f=40,b=37,$=39,w=46,x=188,a=9007199254740991,e=["text","email","url"],t=angular.module("ngTagsInput",[]);t.directive("tagsInput",["$timeout","$document","$window","$q","tagsInputConfig","tiUtil",function(h,d,f,c,i,g){function r(n,i,r,e){var o={},a=function(t){return g.safeToString(t[n.displayProperty])},s=function(t,e){t[n.displayProperty]=e},l=function(t){var e=a(t),e=e&&e.length>=n.minLength&&e.length<=n.maxLength&&n.allowedTagsPattern.test(e)&&!g.findInObjectArray(o.items,t,n.keyProperty||n.displayProperty);return c.when(e&&r({$tag:t})).then(g.promisifyValue)},u=function(t){return c.when(e({$tag:t})).then(g.promisifyValue)};return o.items=[],o.addText=function(t){var e={};return s(e,t),o.add(e)},o.add=function(t){var e=a(t);return n.replaceSpacesWithDashes&&(e=g.replaceSpacesWithDashes(e)),s(t,e),l(t).then(function(){o.items.push(t),i.trigger("tag-added",{$tag:t})}).catch(function(){e&&i.trigger("invalid-tag",{$tag:t})})},o.remove=function(t){var e=o.items[t];return u(e).then(function(){return o.items.splice(t,1),o.clearSelection(),i.trigger("tag-removed",{$tag:e}),e})},o.select=function(t){t<0?t=o.items.length-1:t>=o.items.length&&(t=0),o.index=t,o.selected=o.items[t]},o.selectPrior=function(){o.select(--o.index)},o.selectNext=function(){o.select(++o.index)},o.removeSelected=function(){return o.remove(o.index)},o.clearSelection=function(){o.selected=null,o.index=-1},o.getItems=function(){return n.useStrings?o.items.map(a):o.items},o.clearSelection(),o}function o(t){return-1!==e.indexOf(t)}return{restrict:"E",require:"ngModel",scope:{tags:"=ngModel",text:"=?",templateScope:"=?",tagClass:"&",onTagAdding:"&",onTagAdded:"&",onInvalidTag:"&",onTagRemoving:"&",onTagRemoved:"&",onTagClicked:"&"},replace:!1,transclude:!0,templateUrl:"ngTagsInput/tags-input.html",controller:["$scope","$attrs","$element",function(n,t,e){n.events=g.simplePubSub(),i.load("tagsInput",n,t,{template:[String,"ngTagsInput/tag-item.html"],type:[String,"text",o],placeholder:[String,"Add a tag"],tabindex:[Number,null],removeTagSymbol:[Str
vendor: 6,843 bytes, line 1
1ing,String.fromCharCode(215)],replaceSpacesWithDashes:[Boolean,!0],minLength:[Number,3],maxLength:[Number,a],addOnEnter:[Boolean,!0],addOnSpace:[Boolean,!1],addOnComma:[Boolean,!0],addOnBlur:[Boolean,!0],addOnPaste:[Boolean,!1],pasteSplitPattern:[RegExp,/,/],allowedTagsPattern:[RegExp,/.+/],enableEditingLastTag:[Boolean,!1],minTags:[Number,0],maxTags:[Number,a],displayProperty:[String,"text"],keyProperty:[String,""],allowLeftoverText:[Boolean,!1],addFromAutocompleteOnly:[Boolean,!1],spellcheck:[Boolean,!0],useStrings:[Boolean,!1]}),n.tagList=new r(n.options,n.events,g.handleUndefinedResult(n.onTagAdding,!0),g.handleUndefinedResult(n.onTagRemoving,!0)),this.registerAutocomplete=function(){e.find("input");return{addTag:function(t){return n.tagList.add(t)},getTags:function(){return n.tagList.items},getCurrentTagText:function(){return n.newTag.text()},getOptions:function(){return n.options},getTemplateScope:function(){return n.templateScope},on:function(t,e){return n.events.on(t,e,!0),this}}},this.registerTagItem=function(){return{getOptions:function(){return n.options},removeTag:function(t){n.disabled||n.tagList.remove(t)}}}}],link:function(a,n,t,e){var s=[v,x,y,m,w,b,$],l=a.tagList,i=a.events,u=a.options,r=n.find("input"),o=["minTags","maxTags","allowLeftoverText"],c=function(){e.$setValidity("maxTags",l.items.length<=u.maxTags),e.$setValidity("minTags",l.items.length>=u.minTags),e.$setValidity("leftoverText",!(!a.hasFocus&&!u.allowLeftoverText)||!a.newTag.text())},p=function(){h(function(){r[0].focus()})};e.$isEmpty=function(t){return!t||!t.length},a.newTag={text:function(t){if(!angular.isDefined(t))return a.text||"";a.text=t,i.trigger("input-change",t)},invalid:null},a.track=function(t){return t[u.keyProperty||u.displayProperty]},a.getTagClass=function(t,e){var n=t===l.selected;return[a.tagClass({$tag:t,$index:e,$selected:n}),{selected:n}]},a.$watch("tags",function(t){t?(l.items=g.makeObjectArray(t,u.displayProperty),u.useStrings||(a.tags=l.items)):l.items=[]}),a.$watch("tags.length",function(){c(),e.$validate()}),t.$observe("disabled",function(t){a.disabled=t}),a.eventHandlers={input:{keydown:function(t){i.trigger("input-keydown",t)},focus:function(){a.hasFocus||(a.hasFocus=!0,i.trigger("input-focus"))},blur:function(){h(function(){var t=d.prop("activeElement"),e=t===r[0],t=n[0].contains(t);!e&&t||(a.hasFocus=!1,i.trigger("input-blur"))})},paste:function(e){e.getTextData=function(){var t=e.clipboardData||e.originalEvent&&e.originalEvent.clipboardData;return t?t.getData("text/plain"):f.clipboardData.getData("Text")},i.trigger("input-paste",e)}},host:{click:function(){a.disabled||p()}},tag:{click:function(t){i.trigger("tag-clicked",{$tag:t})}}},i.on("tag-added",a.onTagAdded).on("invalid-tag",a.onInvalidTag).on("tag-removed",a.onTagRemoved).on("tag-clicked",a.onTagClicked).on("tag-added",function(){a.newTag.text("")}).on("tag-added tag-removed",function(){a.tags=l.getItems(),e.$setDirty(),p()}).on("invalid-tag",function(){a.newTag.invalid=!0}).on("option-change",function(t){-1!==o.indexOf(t.name)&&c()}).on("input-change",function(){l.clearSelection(),a.newTag.invalid=null}).on("input-focus",function(){n.triggerHandler("focus"),e.$setValidity("leftoverText",!0)}).on("input-blur",function(){u.addOnBlur&&!u.addFromAutocompleteOnly&&l.addText(a.newTag.text()),n.triggerHandler("blur"),c()}).on("input-keydown",function(t){var e,n,i,r=t.keyCode,o={};g.isModifierOn(t)||-1===s.indexOf(r)||(o[v]=u.addOnEnter,o[x]=u.addOnComma,o[y]=u.addOnSpace,e=!u.addFromAutocompleteOnly&&o[r],n=(r===m||r===w)&&l.selected,i=r===m&&0===a.newTag.text().length&&u.enableEditingLastTag,o=(r===m||r===b||r===$)&&0===a.newTag.text().length&&!u.enableEditingLastTag,e?l.addText(a.newTag.text()):i?(l.selectPrior(),l.removeSelected().then(function(t){t&&a.newTag.text(t[u.displayProperty])})):n?l.removeSelected():o&&(r===b||r===m?l.selectPrior():r===$&&l.selectNext()),(e||o||n||i)&&t.preventDefault())}).on("input-paste",function(t){var e;!u.addOnPaste||1<(e=t.getTextData().split(u.pasteSplitPattern)).length&&(e.forEach(function(t){l.addText(t)}),t.preventDefault())})}}}]),t.directive("tiTagItem",["tiUtil",function(a){return{restrict:"E",require:"^tagsInput",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(e,t,n,i){var r=i.registerTagItem(),o=r.getOptions();e.$$template=o.template,e.$$removeTagSymbol=o.removeTagSymbol,e.$getDisplayText=function(){return a.safeToString(e.data[o.displayProperty])},e.$removeTag=function(){r.removeTag(e.$index)},e.$watch("$parent.$index",function(t){e.$index=t})}}}]),t.directive("autoComplete",["$document","$timeout","$sce","$q","tagsInputConfig","tiUtil",function(t,e,n,u,i,c){function r(i,r,e){var o,a={},s=function(){return r.tagsInput.keyProperty||r.tagsInput.displayProperty},l=function(t,e){return t.filter(function(t){return!c.findInObjectArray(e,t,s(),function(t,e){return r.tagsInput.replaceSpacesWithDashes&&(t=c.replaceSpacesWithDashes(t),e=c.replaceSpacesWithDashes(e)),c.defaultComparer(t,e)})})};return a.reset=function(){o=null,a.items=[],a.visible=!1,a.index=-1,a.selected=null,a.query=null},a.show=function(){r.selectFirstMatch?a.select(0):a.selected=null,a.visible=!0},a.load=c.debounce(function(t,e){a.query=t;var n=u.when(i({$query:t}));(o=n).then(function(t){n===o&&(t=c.makeObjectArray(t.data||t,s()),t=l(t,e),a.items=t.slice(0,r.maxResultsToShow),0<a.items.length?a.show():a.reset())})},r.debounceDelay),a.selectNext=function(){a.select(++a.index)},a.selectPrior=function(){a.select(--a.index)},a.select=function(t){t<0?t=a.items.length-1:t>=a.items.length&&(t=0),a.index=t,a.selected=a.items[t],e.trigger("suggestion-selected",t)},a.reset(),a}return{restrict:"E",require:"^tagsInput",scope:{source:"&",matchClass:"&"},templateUrl:"ngTagsInput/auto-complete.html",controller:["$scope","$element","$attrs",function(t,e,n){t.events=c.simplePubSub(),i.load("autoComplete",t,n,{template:[String,"ngTagsInput/auto-complete-match.html"],debounceDelay:[Number,100],minLength:[Number,3],highlightMatchedText:[Boolean,!0],maxResultsToShow:[Number,10],loadOnDownArrow:[Boolean,!1],loadOnEmpty:[Boolean,!1],loadOnFocus:[Boolean,!1],selectFirstMatch:[Boolean,!0],displayProperty:[String,""]}),t.suggestionList=new r(t.source,t.options,t.events),this.registerAutocompleteMatch=function(){return{getOptions:function(){return t.options},getQuery:function(){return t.suggestionList.query}}}}],link:function(i,o,t,e){var n,r=[v,p,h,d,f],a=i.suggestionList,s=e.registerAutocomplete(),l=i.options,e=i.events;l.tagsInput=s.getOptions(),n=function(t){return t&&t.length>=l.minLength||!t&&l.loadOnEmpty},i.templateScope=s.getTemplateScope(),i.addSuggestionByIndex=function(t){a.select(t),i.addSuggestion()},i.addSuggestion=function(){var t=!1;return a.selected&&(s.addTag(angular.copy(a.selected)),a.reset(),t=!0),t}
1,i.track=function(t){return t[l.tagsInput.keyProperty||l.tagsInput.displayProperty]},i.getSuggestionClass=function(t,e){var n=t===a.selected;return[i.matchClass({$match:t,$index:e,$selected:n}),{selected:n}]},s.on("tag-added tag-removed invalid-tag input-blur",function(){a.reset()}).on("input-change",function(t){n(t)?a.load(t,s.getTags()):a.reset()}).on("input-focus",function(){var t=s.getCurrentTagText();l.loadOnFocus&&n(t)&&a.load(t,s.getTags())}).on("input-keydown",function(t){var e=t.keyCode,n=!1;if(!c.isModifierOn(t)&&-1!==r.indexOf(e))return a.visible?e===f?(a.selectNext(),n=!0):e===d?(a.selectPrior(),n=!0):e===h?(a.reset(),n=!0):e!==v&&e!==p||(n=i.addSuggestion()):e===f&&i.options.loadOnDownArrow&&(a.load(s.getCurrentTagText(),s.getTags()),n=!0),n?(t.preventDefault(),t.stopImmediatePropagation(),!1):void 0}),e.on("suggestion-selected",function(t){var e,n,i,r;n=t,i=(r=(e=o).find("li").eq(n)).parent(),t=r.prop("offsetTop"),e=r.prop("offsetHeight"),n=i.prop("clientHeight"),r=i.prop("scrollTop"),t<r?i.prop("scrollTop",t):n+r<t+e&&i.prop("scrollTop",t+e-n)})}}}]),t.directive("tiAutocompleteMatch",["$sce","tiUtil",function(a,s){return{restrict:"E",require:"^autoComplete",template:'<ng-include src="$$template"></ng-include>',scope:{$scope:"=scope",data:"="},link:function(t,e,n,i){var r=i.registerAutocompleteMatch(),o=r.getOptions();t.$$template=o.template,t.$index=t.$parent.$index,t.$highlight=function(t){return o.highlightMatchedText&&(t=s.safeHighlight(t,r.getQuery())),a.trustAsHtml(t)},t.$getDisplayText=function(){return s.safeToString(t.data[o.displayProperty||o.tagsInput.displayProperty])}}}}]),t.directive("tiTranscludeAppend",function(){return function(t,e,n,i,r){r(function(t){e.append(t)})}}),t.directive("tiAutosize",["tagsInputConfig",function(s){return{restrict:"A",require:"ngModel",link:function(t,i,r,e){var n,o=s.getTextAutosizeThreshold(),a=angular.element('<span class="input"></span>');a.css("display","none").css("visibility","hidden").css("width","auto").css("white-space","pre"),i.parent().append(a),e.$parsers.unshift(n=function(t){var e,n=t;return(n=angular.isString(n)&&0===n.length?r.placeholder:n)&&(a.text(n),a.css("display",""),e=a.prop("offsetWidth"),a.css("display","none")),i.css("width",e?e+o+"px":""),t}),e.$formatters.unshift(n),r.$observe("placeholder",function(t){e.$modelValue||n(t)})}}}]),t.directive("tiBindAttrs",function(){return function(t,e,n){t.$watch(n.tiBindAttrs,function(t){angular.forEach(t,function(t,e){n.$set(e,t)})},!0)}}),t.provider("tagsInputConfig",function(){var f={},g={},e=3;this.setDefaults=function(t,e){return f[t]=e,this},this.setActiveInterpolation=function(t,e){return g[t]=e,this},this.setTextAutosizeThreshold=function(t){return e=t,this},this.$get=["$interpolate",function(h){var d={};return d[String]=function(t){return t},d[Number]=function(t){return parseInt(t,10)},d[Boolean]=function(t){return"true"===t.toLowerCase()},d[RegExp]=function(t){return new RegExp(t)},{load:function(l,u,c,t){function p(){return!0}u.options={},angular.forEach(t,function(t,e){var n=t[0],i=t[1],r=t[2]||p,o=d[n],a=function(){var t=f[l]&&f[l][e];return angular.isDefined(t)?t:i},s=function(t){u.options[e]=t&&r(t)?o(t):a()};g[l]&&g[l][e]?c.$observe(e,function(t){s(t),u.events.trigger("option-change",{name:e,newValue:t})}):s(c[e]&&h(c[e])(u.$parent))})},getTextAutosizeThreshold:function(){return e}}}]}),t.factory("tiUtil",["$timeout","$q",function(r,e){var o={debounce:function(e,n){var i;return function(){var t=arguments;r.cancel(i),i=r(function(){e.apply(null,t)},n)}},makeObjectArray:function(t,n){if(!angular.isArray(t)||0===t.length||angular.isObject(t[0]))return t;var i=[];return t.forEach(function(t){var e={};e[n]=t,i.push(e)}),i},findInObjectArray:function(t,e,n,i){var r=null;return i=i||o.defaultComparer,t.some(function(t){if(i(t[n],e[n]))return r=t,!0}),r},defaultComparer:function(t,e){return o.safeToString(t).toLowerCase()===o.safeToString(e).toLowerCase()},safeHighlight:function(t,e){if(t=o.encodeHTML(t),!(e=o.encodeHTML(e)))return t;var n=new RegExp("&[^;]+;|"+e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi");return t.replace(n,function(t){return t.toLowerCase()===e.toLowerCase()?"<em>"+t+"</em>":t})},safeToString:function(t){return angular.isUndefined(t)||null==t?"":t.toString().trim()},encodeHTML:function(t){return o.safeToString(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},handleUndefinedResult:function(e,n){return function(){var t=e.apply(null,arguments);return angular.isUndefined(t)?n:t}},replaceSpacesWithDashes:function(t){return o.safeToString(t).replace(/\s/g,"-")},isModifierOn:function(t){return t.shiftKey||t.ctrlKey||t.altKey||t.metaKey},promisifyValue:function(t){return t=!!angular.isUndefined(t)||t,e[t?"when":"reject"]()},simplePubSub:function(){var i={};return{on:function(t,e,n){return t.split(" ").forEach(function(t){i[t]||(i[t]=[]),(n?[].unshift:[].push).call(i[t],e)}),this},trigger:function(t,e){return(i[t]||[]).every(function(t){return o.handleUndefinedResult(t,!0)(e)}),this}}}};return o}]),t.run(["$templateCache",function(t){t.put("ngTagsInput/tags-input.html",'<div class="host" tabindex="-1" ng-click="eventHandlers.host.click()" ti-transclude-
1append><div class="tags" ng-class="{focused: hasFocus}"><ul class="tag-list"><li class="tag-item" ng-repeat="tag in tagList.items track by track(tag)" ng-class="getTagClass(tag, $index)" ng-click="eventHandlers.tag.click(tag)"><ti-tag-item scope="templateScope" data="::tag"></ti-tag-item></li></ul><input class="input" autocomplete="off" ng-model="newTag.text" ng-model-options="{getterSetter: true}" ng-keydown="eventHandlers.input.keydown($event)" ng-focus="eventHandlers.input.focus($event)" ng-blur="eventHandlers.input.blur($event)" ng-paste="eventHandlers.input.paste($event)" ng-trim="false" ng-class="{\'invalid-tag\': newTag.invalid}" ng-disabled="disabled" ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}" ti-autosize></div></div>'),t.put("ngTagsInput/tag-item.html",'<span ng-bind="$getDisplayText()"></span> <a class="remove-button" ng-click="$removeTag()" ng-bind="::$$removeTagSymbol"></a>'),t.put("ngTagsInput/auto-complete.html",'<div class="autocomplete" ng-if="suggestionList.visible"><ul class="suggestion-list"><li class="suggestion-item" ng-repeat="item in suggestionList.items track by track(item)" ng-class="getSuggestionClass(item, $index)" ng-click="addSuggestionByIndex($index)" ng-mouseenter="suggestionList.select($index)"><ti-autocomplete-match scope="templateScope" data="::item"></ti-autocomplete-match></li></ul></div>'),t.put("ngTagsInput/auto-complete-match.html",'<span ng-bind-html="$highlight($getDisplayText())"></span>')}])}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.