var mod,directiveModule,myApp;if(function(n,t){function gt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||"function"!==r&&(0===t||"number"==typeof t&&t>0&&t-1 in n)}function te(n){var t=ni[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ur(n,r,u,f){if(i.acceptData(n)){var h,o,c=i.expando,l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&s[e]&&(f||s[e].data)||u!==t||"string"!=typeof r)return e||(e=l?n[c]=b.pop()||i.guid++:c),s[e]||(s[e]=l?{}:{toJSON:i.noop}),("object"==typeof r||"function"==typeof r)&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),"string"==typeof r?(h=o[r],null==h&&(h=o[i.camelCase(r)])):h=o,h}}function fr(n,t,r){if(i.acceptData(n)){var e,o,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(u[f]){if(t&&(e=r?u[f]:u[f].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=(t in e)?[t]:t.split(" ")),o=t.length;o--;)delete e[t[o]];if(r?!ti(e):!i.isEmptyObject(e))return}(r||(delete u[f].data,ti(u[f])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[f]:u[f]=null)}}}function er(n,r,u){if(u===t&&1===n.nodeType){var f="data-"+r.replace(rr,"-$1").toLowerCase();if(u=n.getAttribute(f),"string"==typeof u){try{u="true"===u?!0:"false"===u?!1:"null"===u?null:+u+""===u?+u:ir.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function ti(n){var t;for(t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function ct(){return!0}function g(){return!1}function cr(){try{return r.activeElement}catch(n){}}function ar(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(oe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function vr(n){var i=yr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function gr(n,t){return i.nodeName(n,"table")&&i.nodeName(1===t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function nu(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function tu(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function hi(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function iu(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function be(n,t){var r,f,u;if(1===t.nodeType){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}"script"===r&&t.text!==n.text?(nu(t).text=n.text,tu(t)):"object"===r?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===r&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===r?t.defaultSelected=t.selected=n.defaultSelected:("input"===r||"textarea"===r)&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;null!=(e=s[h]);h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function ke(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function ut(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&ut(r)&&(e[u]=i._data(r,"olddisplay",au(r.nodeName)))):e[u]||(o=ut(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,r){var e=!0,u="width"===t?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f);if(0>=u||null==u){if(u=y(n,t,f),(0>u||null==u)&&(u=n.style[t]),lt.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]);u=parseFloat(u)||0}return u+cu(n,t,r||(o?"border":"content"),e,f)+"px"}function au(n){var u=r,t=uu[n];return t||(t=vu(n,u),"none"!==t&&t||(rt=(rt||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(rt[0].contentWindow||rt[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=vu(n,u),rt.detach()),uu[n]=t),t}function vu(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function li(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):li(n+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)li(n+"["+f+"]",t[f],r,u)}function gu(n){return function(t,r){"string"!=typeof t&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])"+"===u[0]?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function nf(n,r,u,f){function o(h){var c;return e[h]=!0,i.each(n[h]||[],function(n,i){var h=i(r,u,f);return"string"!=typeof h||s||e[h]?s?!(c=h):t:(r.dataTypes.unshift(h),o(h),!1)}),c}var e={},s=n===yi;return o(r.dataTypes[0])||!e["*"]&&o("*")}function pi(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function ao(n,i,r){for(var s,o,f,e,h=n.contents,u=n.dataTypes;"*"===u[0];)u.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(e in h)if(h[e]&&h[e].test(o)){u.unshift(e);break}if(u[0]in r)f=u[0];else{for(e in r){if(!u[0]||n.converters[e+" "+u[0]]){f=e;break}s||(s=e)}f=f||s}return f?(f!==u[0]&&u.unshift(f),r[f]):t}function vo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function rf(){try{return new n.XMLHttpRequest}catch(t){}}function yo(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ff(){return setTimeout(function(){it=t}),it=i.now()}function ef(n,t,i){for(var u,f=(ft[t]||[]).concat(ft["*"]),r=0,e=f.length;e>r;r++)if(u=f[r].call(i,t,n))return u}function of(n,t,r){var h,e,o=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)return!1;for(var s=it||ff(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:it||ff(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(bo(s,u.opts.specialEasing);l>o;o++)if(h=pt[o].call(u,n,s,u.opts))return h;return i.map(s,ef,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function bo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ko(n,t,r){var u,a,v,c,e,y,s=this,l={},o=n.style,h=n.nodeType&&ut(n),f=i._data(n,"fxshow");r.queue||(e=i._queueHooks(n,"fx"),null==e.unqueued&&(e.unqueued=0,y=e.empty.fire,e.empty.fire=function(){e.unqueued||y()}),e.unqueued++,s.always(function(){s.always(function(){e.unqueued--;i.queue(n,"fx").length||e.empty.fire()})}));1===n.nodeType&&("height"in t||"width"in t)&&(r.overflow=[o.overflow,o.overflowX,o.overflowY],"inline"===i.css(n,"display")&&"none"===i.css(n,"float")&&(i.support.inlineBlockNeedsLayout&&"inline"!==au(n.nodeName)?o.zoom=1:o.display="inline-block"));r.overflow&&(o.overflow="hidden",i.support.shrinkWrapBlocks||s.always(function(){o.overflow=r.overflow[0];o.overflowX=r.overflow[1];o.overflowY=r.overflow[2]}));for(u in t)if(a=t[u],po.exec(a)){if(delete t[u],v=v||"toggle"===a,a===(h?"hide":"show"))continue;l[u]=f&&f[u]||i.style(n,u)}if(!i.isEmptyObject(l)){f?"hidden"in f&&(h=f.hidden):f=i._data(n,"fxshow",{});v&&(f.hidden=!h);h?i(n).show():s.done(function(){i(n).hide()});s.done(function(){var t;i._removeData(n,"fxshow");for(t in l)i.style(n,t,l[t])});for(u in l)c=ef(h?f[u]:0,u,s),u in f||(f[u]=c.start,h&&(c.end=c.start,c.start="width"===u||"height"===u?1:0))}}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function wt(n,t){var r,i={height:n},u=0;for(t=t?1:0;4>u;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function sf(n){return i.isWindow(n)?n:9===n.nodeType?n.defaultView||n.parentWindow:!1}var et,bi,o=typeof t,hf=n.location,r=n.document,ki=r.documentElement,cf=n.jQuery,lf=n.$,ot={},b=[],bt="1.10.2",di=b.concat,kt=b.push,l=b.slice,gi=b.indexOf,af=ot.toString,k=ot.hasOwnProperty,dt=bt.trim,i=function(n,t){return new i.fn.init(n,t,bi)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,vf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,nr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pf=/^[\],:{}\s]*$/,wf=/(?:^|:|,)(?:\s*\[)+/g,bf=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,kf=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,df=/^-ms-/,gf=/-([\da-z])/gi,ne=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||"load"===n.type||"complete"===r.readyState)&&(tr(),i.ready())},tr=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},ni,ir,rr,wi,at,nt,tt,tf,vt;i.fn=i.prototype={jquery:bt,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if("string"==typeof n){if(e="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yf.exec(n),!e||!e[1]&&u)return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n);if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),nr.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1;this[0]=o}return this.context=r,this.selector=n,this}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return null==n?this.toArray():0>n?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(0>n?i:0);return this.pushStack(t>=0&&i>t?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:kt,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for("boolean"==typeof n&&(c=n,n=arguments[1]||{},f=2),"object"==typeof n||i.isFunction(n)||(n={}),l===f&&(n=this,--f);l>f;f++)if(null!=(s=arguments[f]))for(e in s)u=n[e],r=s[e],n!==r&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n};i.extend({expando:"jQuery"+(bt+Math.random()).replace(/\D/g,""),noConflict:function(t){return n.$===i&&(n.$=lf),t&&n.jQuery===i&&(n.jQuery=cf),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);i.isReady=!0;n!==!0&&--i.readyWait>0||(et.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ot[af.call(n)]||"object":typeof n},isPlainObject:function(n){var r;if(!n||"object"!==i.type(n)||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!k.call(n,"constructor")&&!k.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(i.support.ownLast)for(r in n)return k.call(n,r);for(r in n);return r===t||k.call(n,r)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},error:function(n){throw Error(n);},parseHTML:function(n,t,u){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(u=t,t=!1);t=t||r;var f=nr.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(r){return n.JSON&&n.JSON.parse?n.JSON.parse(r):null===r?r:"string"==typeof r&&(r=i.trim(r),r&&pf.test(r.replace(bf,"@").replace(kf,"]").replace(wf,"")))?Function("return "+r)():(i.error("Invalid JSON: "+r),t)},parseXML:function(r){var u,f;if(!r||"string"!=typeof r)return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(df,"ms-").replace(gf,ne)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=gt(n);if(i){if(e){for(;f>r;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;f>r;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:dt&&!dt.call("﻿ ")?function(n){return null==n?"":dt.call(n)}:function(n){return null==n?"":(n+"").replace(vf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(gt(Object(n))?i.merge(r,"string"==typeof n?[n]:n):kt.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(gi)return gi.call(t,n,i);for(r=t.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if("number"==typeof f)for(;f>r;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;e>r;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=gt(n),f=[];if(o)for(;e>r;r++)u=t(n[r],r,i),null!=u&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),null!=u&&(f[f.length]=u);return di.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return"string"==typeof r&&(e=n[r],r=n,n=e),i.isFunction(n)?(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u):t},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=null==u;if("object"===i.type(u)){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;l>h;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return(new Date).getTime()},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}});i.ready.promise=function(t){if(!et)if(et=i.Deferred(),"complete"===r.readyState)setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h);n.attachEvent("onload",h);var u=!1;try{u=null==n.frameElement&&r.documentElement}catch(e){}u&&u.doScroll&&function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}tr();i.ready()}}()}return et.promise(t)};i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});bi=i(r),function(n,t){function u(n,t,i,r){var p,u,f,l,w,a,k,c,g,d;if((t?t.ownerDocument||t:y)!==s&&nt(t),t=t||s,i=i||[],!n||"string"!=typeof n)return i;if(1!==(l=t.nodeType)&&9!==l)return[];if(v&&!r){if(p=or.exec(n))if(f=p[1]){if(9===l){if(u=t.getElementById(f),!u||!u.parentNode)return i;if(u.id===f)return i.push(u),i}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&ot(t,u)&&u.id===f)return i.push(u),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((f=p[3])&&e.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(f)),i}if(e.qsa&&(!h||!h.test(n))){if(c=k=o,g=t,d=9===l&&n,1===l&&"object"!==t.nodeName.toLowerCase()){for(a=pt(n),(k=t.getAttribute("id"))?c=k.replace(cr,"\\$&"):t.setAttribute("id",c),c="[id='"+c+"'] ",w=a.length;w--;)a[w]=c+wt(a[w]);g=ti.test(n)&&t.parentNode||t;d=a.join(",")}if(d)try{return b.apply(i,g.querySelectorAll(d)),i}catch(tt){}finally{k||t.removeAttribute("id")}}}return pr(n.replace(vt,"$1"),t,i,r)}function ri(){function n(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}var t=[];return n}function c(n){return n[o]=!0,n}function l(n){var t=s.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ui(n,t){for(var u=n.split("|"),i=n.length;i--;)r.attrHandle[u[i]]=t}function bi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return"input"===i&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function rt(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ki(){}function pt(n,t){var e,f,s,o,i,h,c,l=li[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ir.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[]));e=!1;(f=rr.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(vt," ")}),i=i.slice(e.length));for(o in r.filter)(f=yt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):li(n,h).slice(0)}function wt(n){for(var t=0,r=n.length,i="";r>t;t++)i+=n[t].value;return i}function fi(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=di++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,e){var h,s,c,l=p+" "+f;if(e){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,e))return!0}else while(t=t[r])if(1===t.nodeType||u)if(c=t[o]||(t[o]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ht)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,e)||ht,s[1]===!0)return!0}}function ei(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;s>f;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function oi(n,t,i,r,u,f){return r&&!r[o]&&(r=oi(r)),u&&!u[o]&&(u=oi(u,f)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||yr(t||"*",o.nodeType?[o]:o,[]),v=!n||!f&&t?k:bt(k,p,n,o,s),h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=bt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?it.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=bt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function si(n){for(var s,u,i,e=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=fi(function(n){return n===s},c,!0),a=fi(function(n){return it.call(s,n)>-1},c,!0),f=[function(n,t,i){return!h&&(i||t!==lt)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];e>t;t++)if(u=r.relative[n[t].type])f=[fi(ei(f),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[o]){for(i=++t;e>i;i++)if(r.relative[n[i].type])break;return oi(t>1&&ei(f),t>1&&wt(n.slice(0,t-1).concat({value:" "===n[t-2].type?"*":""})).replace(vt,"$1"),u,i>t&&si(n.slice(t,i)),e>i&&si(n=n.slice(i)),e>i&&wt(n))}f.push(u)}return ei(f)}function vr(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var y,g,k,w=[],d=0,v="0",nt=o&&[],tt=null!=a,it=lt,ut=o||e&&r.find.TAG("*",a&&h.parentNode||h),rt=p+=null==it?1:Math.random()||.1;for(tt&&(lt=h!==s&&h,ht=f);null!=(y=ut[v]);v++){if(e&&y){for(g=0;k=n[g++];)if(k(y,h,c)){l.push(y);break}tt&&(p=rt,ht=++f)}i&&((y=!k&&y)&&d--,o&&nt.push(y))}if(d+=v,i&&v!==d){for(g=0;k=t[g++];)k(nt,w,h,c);if(o){if(d>0)while(v--)nt[v]||w[v]||(w[v]=nr.call(l));w=bt(w)}b.apply(l,w);tt&&!o&&w.length>0&&d+t.length>1&&u.uniqueSort(l)}return tt&&(p=rt,lt=it),nt};return i?c(o):o}function yr(n,t,i){for(var r=0,f=t.length;f>r;r++)u(n,t[r],i);return i}function pr(n,t,i,u){var s,f,o,c,l,h=pt(n);if(!u&&1===h.length){if(f=h[0]=h[0].slice(0),f.length>2&&"ID"===(o=f[0]).type&&e.getById&&9===t.nodeType&&v&&r.relative[f[1].type]){if(t=(r.find.ID(o.matches[0].replace(k,d),t)||[])[0],!t)return i;n=n.slice(f.shift().value.length)}for(s=yt.needsContext.test(n)?0:f.length;s--;){if(o=f[s],r.relative[c=o.type])break;if((l=r.find[c])&&(u=l(o.matches[0].replace(k,d),ti.test(f[0].type)&&t.parentNode||t))){if(f.splice(s,1),n=u.length&&wt(f),!n)return b.apply(i,u),i;break}}}return kt(n,h)(u,t,!v,i,ti.test(n)),i}var ut,e,ht,r,ct,hi,kt,lt,g,nt,s,a,v,h,tt,at,ot,o="sizzle"+-new Date,y=n.document,p=0,di=0,ci=ri(),li=ri(),ai=ri(),ft=!1,dt=function(n,t){return n===t?(ft=!0,0):0},st=typeof t,vi=-2147483648,gi={}.hasOwnProperty,w=[],nr=w.pop,tr=w.push,b=w.push,yi=w.slice,it=w.indexOf||function(n){for(var t=0,i=this.length;i>t;t++)if(this[t]===n)return t;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",f="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",pi=et.replace("w","w#"),wi="\\["+f+"*("+et+")"+f+"*(?:([*^$|!~]?=)"+f+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+pi+")|)|)"+f+"*\\]",ni=":("+et+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+wi.replace(3,8)+")*)|.*)\\)|)",vt=RegExp("^"+f+"+|((?:^|[^\\\\])(?:\\\\.)*)"+f+"+$","g"),ir=RegExp("^"+f+"*,"+f+"*"),rr=RegExp("^"+f+"*([>+~]|"+f+")"+f+"*"),ti=RegExp(f+"*[+~]"),ur=RegExp("="+f+"*([^\\]'\"]*)"+f+"*\\]","g"),fr=RegExp(ni),er=RegExp("^"+pi+"$"),yt={ID:RegExp("^#("+et+")"),CLASS:RegExp("^\\.("+et+")"),TAG:RegExp("^("+et.replace("w","w*")+")"),ATTR:RegExp("^"+wi),PSEUDO:RegExp("^"+ni),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:RegExp("^(?:"+gt+")$","i"),needsContext:RegExp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},ii=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,cr=/'|\\/g,k=RegExp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{b.apply(w=yi.call(y.childNodes),y.childNodes);w[y.childNodes.length].nodeType}catch(wr){b={apply:w.length?function(n,t){tr.apply(n,yi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}hi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?"HTML"!==t.nodeName:!1};e=u.support={};nt=u.setDocument=function(n){var i=n?n.ownerDocument||n:y,u=i.defaultView;return i!==s&&9===i.nodeType&&i.documentElement?(s=i,a=i.documentElement,v=!hi(i),u&&u.attachEvent&&u!==u.top&&u.attachEvent("onbeforeunload",function(){nt()}),e.attributes=l(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=l(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=l(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",2===n.getElementsByClassName("i").length}),e.getById=l(function(n){return a.appendChild(n).id=o,!i.getElementsByName||!i.getElementsByName(o).length}),e.getById?(r.find.ID=function(n,t){if(typeof t.getElementById!==st&&v){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==st&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=e.getElementsByTagName?function(n,i){return typeof i.getElementsByTagName!==st?i.getElementsByTagName(n):t}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},r.find.CLASS=e.getElementsByClassName&&function(n,i){return typeof i.getElementsByClassName!==st&&v?i.getElementsByClassName(n):t},tt=[],h=[],(e.qsa=ii.test(i.querySelectorAll))&&(l(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||h.push("\\["+f+"*(?:value|"+gt+")");n.querySelectorAll(":checked").length||h.push(":checked")}),l(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("t","");n.querySelectorAll("[t^='']").length&&h.push("[*^$]="+f+"*(?:''|\"\")");n.querySelectorAll(":enabled").length||h.push(":enabled",":disabled");n.querySelectorAll("*,:x");h.push(",.*:")})),(e.matchesSelector=ii.test(at=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&l(function(n){e.disconnectedMatch=at.call(n,"div");at.call(n,"[s!='']:x");tt.push("!=",ni)}),h=h.length&&RegExp(h.join("|")),tt=tt.length&&RegExp(tt.join("|")),ot=ii.test(a.contains)||a.compareDocumentPosition?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=a.compareDocumentPosition?function(n,t){if(n===t)return ft=!0,0;var r=t.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(t);return r?1&r||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||ot(y,n)?-1:t===i||ot(y,t)?1:g?it.call(g,n)-it.call(g,t):0:4&r?-1:1:n.compareDocumentPosition?-1:1}:function(n,t){var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(n===t)return ft=!0,0;if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:g?it.call(g,n)-it.call(g,t):0;if(o===s)return bi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?bi(f[u],e[u]):f[u]===y?-1:e[u]===y?1:0},i):s};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&nt(n),t=t.replace(ur,"='$1']"),!(!e.matchesSelector||!v||tt&&tt.test(t)||h&&h.test(t)))try{var i=at.call(n,t);if(i||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return i}catch(r){}return u(t,s,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==s&&nt(n),ot(n,t)};u.attr=function(n,i){(n.ownerDocument||n)!==s&&nt(n);var f=r.attrHandle[i.toLowerCase()],u=f&&gi.call(r.attrHandle,i.toLowerCase())?f(n,i,!v):t;return u===t?e.attributes||!v?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null:u};u.error=function(n){throw Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ft=!e.detectDuplicates,g=!e.sortStable&&n.slice(0),n.sort(dt),ft){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return n};ct=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ct(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u];u++)i+=ct(r);return i};r=u.selectors={cacheLength:50,createPseudo:c,match:yt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var r,i=!n[5]&&n[2];return yt.CHILD.test(n[0])?null:(n[3]&&n[4]!==t?n[2]=n[4]:i&&fr.test(i)&&(r=pt(i,!0))&&(r=i.indexOf(")",i.length-r)-i.length)&&(n[0]=n[0].slice(0,r),n[2]=i.slice(0,r)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=ci[n+" "];return t||(t=RegExp("(^|"+f+")"+n+"("+f+"|$)"))&&ci(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==st&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f+" ").indexOf(i)>-1:"|="===t?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),e="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,v,w,b=s!==e?"nextSibling":"previousSibling",y=t.parentNode,g=f&&t.nodeName.toLowerCase(),d=!h&&!f;if(y){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===g:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[e?y.firstChild:y.lastChild],e&&d){for(k=y[o]||(y[o]={}),a=k[n]||[],v=a[0]===p&&a[1],l=a[0]===p&&a[2],c=v&&y.childNodes[v];c=++v&&c&&c[b]||(l=v=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){k[n]=[p,v,l];break}}else if(d&&(a=(t[o]||(t[o]={}))[n])&&a[0]===p)l=a[1];else while(c=++v&&c&&c[b]||(l=v=0)||w.pop())if((f?c.nodeName.toLowerCase()===g:1===c.nodeType)&&++l&&(d&&((c[o]||(c[o]={}))[n]=[p,l]),c===t))break;return l-=u,l===r||0==l%r&&l/r>=0}}},PSEUDO:function(n,t){var f,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[o]?i(t):i.length>1?(f=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=it.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,f)}):i}},pseudos:{not:c(function(n){var i=[],r=[],t=kt(n.replace(vt,"$1"));return t[o]?c(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:c(function(n){return function(t){return u(n,t).length>0}}),contains:c(function(n){return function(t){return(t.textContent||t.innerText||ct(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===a},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||3===n.nodeType||4===n.nodeType)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||t.toLowerCase()===n.type)},first:rt(function(){return[0]}),last:rt(function(n,t){return[t-1]}),eq:rt(function(n,t,i){return[0>i?i+t:i]}),even:rt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:rt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:rt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:rt(function(n,t,i){for(var r=0>i?i+t:i;t>++r;)n.push(r);return n})}};r.pseudos.nth=r.pseudos.eq;for(ut in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[ut]=lr(ut);for(ut in{submit:!0,reset:!0})r.pseudos[ut]=ar(ut);ki.prototype=r.filters=r.pseudos;r.setFilters=new ki;kt=u.compile=function(n,t){var r,u=[],f=[],i=ai[n+" "];if(!i){for(t||(t=pt(n)),r=t.length;r--;)i=si(t[r]),i[o]?u.push(i):f.push(i);i=ai(n,vr(f,u))}return i};e.sortStable=o.split("").sort(dt).join("")===o;e.detectDuplicates=ft;nt();e.sortDetached=l(function(n){return 1&n.compareDocumentPosition(s.createElement("div"))});l(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ui("type|href|height|width",function(n,i,r){return r?t:n.getAttribute(i,"type"===i.toLowerCase()?1:2)});e.attributes&&l(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ui("value",function(n,i,r){return r||"input"!==n.nodeName.toLowerCase()?t:n.defaultValue});l(function(n){return null==n.getAttribute("disabled")})||ui(gt,function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&u.specified?u.value:n[i]===!0?i.toLowerCase():null});i.find=u;i.expr=u.selectors;i.expr[":"]=i.expr.pseudos;i.unique=u.uniqueSort;i.text=u.getText;i.isXMLDoc=u.isXML;i.contains=u.contains}(n);ni={};i.Callbacks=function(n){n="string"==typeof n?ni[n]||te(n):i.extend({},n);var s,f,c,e,o,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,o=l||0,l=0,e=r.length,s=!0;r&&e>o;o++)if(r[o].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}s=!1;r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;(function u(t){i.each(t,function(t,f){var e=i.type(f);"function"===e?n.unique&&h.has(f)||r.push(f):f&&f.length&&"string"!==e&&u(f)})})(arguments);s?e=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),s&&(e>=u&&e--,o>=u&&o--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!(!r||!r.length)},empty:function(){return r=[],e=0,this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return!r||c&&!u||(t=t||[],t=[n,t.slice?t.slice():t],s?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return null!=n?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[1^n][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=Array(r),c=Array(r),s=Array(r);r>t;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.support=function(t){var a,e,f,h,c,l,v,y,s,u=r.createElement("div");if(u.setAttribute("className","t"),u.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",a=u.getElementsByTagName("*")||[],e=u.getElementsByTagName("a")[0],!e||!e.style||!a.length)return t;h=r.createElement("select");l=h.appendChild(r.createElement("option"));f=u.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";t.getSetAttribute="t"!==u.className;t.leadingWhitespace=3===u.firstChild.nodeType;t.tbody=!u.getElementsByTagName("tbody").length;t.htmlSerialize=!!u.getElementsByTagName("link").length;t.style=/top/.test(e.getAttribute("style"));t.hrefNormalized="/a"===e.getAttribute("href");t.opacity=/^0.5/.test(e.style.opacity);t.cssFloat=!!e.style.cssFloat;t.checkOn=!!f.value;t.optSelected=l.selected;t.enctype=!!r.createElement("form").enctype;t.html5Clone="<:nav><\/:nav>"!==r.createElement("nav").cloneNode(!0).outerHTML;t.inlineBlockNeedsLayout=!1;t.shrinkWrapBlocks=!1;t.pixelPosition=!1;t.deleteExpando=!0;t.noCloneEvent=!0;t.reliableMarginRight=!0;t.boxSizingReliable=!0;f.checked=!0;t.noCloneChecked=f.cloneNode(!0).checked;h.disabled=!0;t.optDisabled=!l.disabled;try{delete u.test}catch(p){t.deleteExpando=!1}f=r.createElement("input");f.setAttribute("value","");t.input=""===f.getAttribute("value");f.value="t";f.setAttribute("type","radio");t.radioValue="t"===f.value;f.setAttribute("checked","t");f.setAttribute("name","t");c=r.createDocumentFragment();c.appendChild(f);t.appendChecked=f.checked;t.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked;u.attachEvent&&(u.attachEvent("onclick",function(){t.noCloneEvent=!1}),u.cloneNode(!0).click());for(s in{submit:!0,change:!0,focusin:!0})u.setAttribute(v="on"+s,"t"),t[s+"Bubbles"]=v in n||u.attributes[v].expando===!1;u.style.backgroundClip="content-box";u.cloneNode(!0).style.backgroundClip="";t.clearCloneStyle="content-box"===u.style.backgroundClip;for(s in i(t))break;return t.ownLast="0"!==s,i(function(){var h,e,f,c="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(h=r.createElement("div"),h.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(h).appendChild(u),u.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",f=u.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",y=0===f[0].offsetHeight,f[0].style.display="",f[1].style.display="none",t.reliableHiddenOffsets=y&&0===f[0].offsetHeight,u.innerHTML="",u.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",i.swap(s,null!=s.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===u.offsetWidth}),n.getComputedStyle&&(t.pixelPosition="1%"!==(n.getComputedStyle(u,null)||{}).top,t.boxSizingReliable="4px"===(n.getComputedStyle(u,null)||{width:"4px"}).width,e=u.appendChild(r.createElement("div")),e.style.cssText=u.style.cssText=c,e.style.marginRight=e.style.width="0",u.style.width="1px",t.reliableMarginRight=!parseFloat((n.getComputedStyle(e,null)||{}).marginRight)),typeof u.style.zoom!==o&&(u.innerHTML="",u.style.cssText=c+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===u.offsetWidth,u.style.display="block",u.innerHTML="<div><\/div>",u.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==u.offsetWidth,t.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(h),h=u=f=e=null)}),a=h=c=l=e=f=null,t}({});ir=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;rr=/([A-Z])/g;i.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ti(n)},data:function(n,t,i){return ur(n,t,i)},removeData:function(n,t){return fr(n,t)},_data:function(n,t,i){return ur(n,t,i,!0)},_removeData:function(n,t){return fr(n,t,!0)},acceptData:function(n){if(n.nodeType&&1!==n.nodeType&&9!==n.nodeType)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}});i.fn.extend({data:function(n,r){var e,f,o=null,s=0,u=this[0];if(n===t){if(this.length&&(o=i.data(u),1===u.nodeType&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;e.length>s;s++)f=e[s].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),er(u,f,o[f]));i._data(u,"parsedAttrs",!0)}return o}return"object"==typeof n?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,r)}):u?er(u,n,i.data(u,n)):null},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,r,u){var f;return n?(r=(r||"fx")+"queue",f=i._data(n,r),u&&(!f||i.isArray(u)?f=i._data(n,r,i.makeArray(u)):f.push(u)),f||[]):t},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,r){var u=2;return"string"!=typeof n&&(r=n,n="fx",u--),u>arguments.length?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);"fx"===n&&"inprogress"!==t[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var d,or,ii=/[\t\r\n\f]/g,ie=/\r/g,re=/^(?:input|select|textarea|button|object)$/i,ue=/^(?:a|area)$/i,ri=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ht=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c="string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):" ")){for(o=0;u=e[o++];)0>r.indexOf(" "+u+" ")&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=0===arguments.length||"string"==typeof n&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):"")){for(o=0;u=e[o++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");t.className=n?i.trim(r):""}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if("string"===r)for(var t,f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||"boolean"===r)&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;r>t;t++)if(1===this[t].nodeType&&(" "+this[t].className+" ").replace(ii," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f;1===this.nodeType&&(f=e?n.call(this,u,i(this).val()):n,null==f?f="":"number"==typeof f?f+="":i.isArray(f)&&(f=i.map(f,function(n){return null==n?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t?u:(u=f.value,"string"==typeof u?u.replace(ie,""):null==u?"":u)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u="select-one"===n.type||0>r,s=u?null:[],h=u?r+1:o.length,f=0>r?h:u?r:0;h>f;f++)if(t=o[f],!(!t.selected&&f!==r||(i.support.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||t.parentNode.disabled&&i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i(r).val(),e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}},attr:function(n,r,u){var f,e,s=n.nodeType;if(n&&3!==s&&8!==s&&2!==s)return typeof n.getAttribute===o?i.prop(n,r,u):(1===s&&i.isXMLDoc(n)||(r=r.toLowerCase(),f=i.attrHooks[r]||(i.expr.match.bool.test(r)?or:d)),u===t?f&&"get"in f&&null!==(e=f.get(n,r))?e:(e=i.find.attr(n,r),null==e?t:e):null!==u?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u):(i.removeAttr(n,r),t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?ht&&a||!ri.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&"radio"===t&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&3!==o&&8!==o&&2!==o)return s=1!==o||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&null!==(e=f.get(n,r))?e:n[r]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):re.test(n.nodeName)||ue.test(n.nodeName)&&n.href?0:-1}}}});or={set:function(n,t,r){return t===!1?i.removeAttr(n,r):ht&&a||!ri.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,r){var u=i.expr.attrHandle[r]||i.find.attr;i.expr.attrHandle[r]=ht&&a||!ri.test(r)?function(n,r,f){var e=i.expr.attrHandle[r],o=f?t:(i.expr.attrHandle[r]=t)!=u(n,r,f)?r.toLowerCase():null;return i.expr.attrHandle[r]=e,o}:function(n,r,u){return u?t:n[i.camelCase("default-"+r)]?r.toLowerCase():null}});ht&&a||(i.attrHooks.value={set:function(n,r,u){return i.nodeName(n,"input")?(n.defaultValue=r,t):d&&d.set(n,r,u)}});a||(d={set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="","value"===r||i===n.getAttribute(r)?i:t}},i.expr.attrHandle.id=i.expr.attrHandle.name=i.expr.attrHandle.coords=function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&""!==u.value?u.value:null},i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&r.specified?r.value:t},set:d.set},i.attrHooks.contenteditable={set:function(n,t,i){d.set(n,""===t?!1:t,i)}},i.each(["width","height"],function(n,r){i.attrHooks[r]={set:function(n,i){return""===i?(n.setAttribute(r,"auto"),i):t}}}));i.support.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}});i.support.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.support.enctype||(i.propFix.enctype="encoding");i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,r){return i.isArray(r)?n.checked=i.inArray(i(n).val(),r)>=0:t}};i.support.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});var ui=/^(?:input|select|textarea)$/i,fe=/^key/,ee=/^(?:mouse|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i===o||n&&i.event.triggered===n.type?t:i.event.dispatch.apply(l.elem,arguments)},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)b=hr.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),h&&(c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;)if(h=hr.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),e){for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],!f&&k!==o.origType||r&&r.guid!==o.guid||h&&!h.test(o.namespace)||u&&u!==o.selector&&("**"!==u||!o.selector)||(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,s,w,l,c,b,p=[e||r],h=k.call(u,"type")?u.type:u,y=k.call(u,"namespace")?u.namespace.split("."):[];if(s=c=e=e||r,3!==e.nodeType&&8!==e.nodeType&&!sr.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),v=0>h.indexOf(":")&&"on"+h,u=u[i.expando]?u:new i.Event(h,"object"==typeof u&&u),u.isTrigger=o?2:3,u.namespace=y.join("."),u.namespace_re=u.namespace?RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=null==f?[u]:i.makeArray(f,[u]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(w=l.delegateType||h,sr.test(w+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||r)&&p.push(c.defaultView||c.parentWindow||n)}for(b=0;(s=p[b++])&&!u.isPropagationStopped();)u.type=b>1?w:l.bindType||h,a=(i._data(s,"events")||{})[u.type]&&i._data(s,"handle"),a&&a.apply(s,f),a=v&&s[v],a&&i.acceptData(s)&&a.apply&&a.apply(s,f)===!1&&u.preventDefault();if(u.type=h,!o&&!u.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),f)===!1)&&i.acceptData(e)&&v&&e[h]&&!i.isWindow(e)){c=e[v];c&&(e[v]=null);i.event.triggered=h;try{e[h]()}catch(d){}i.event.triggered=t;c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||"click"!==n.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==n.type)){for(f=[],s=0;h>s;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return r.length>h&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=ee.test(u)?this.mouseHooks:fe.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return null==n.which&&(n.which=null!=t.charCode?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return null==n.pageX&&null!=i.clientX&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=1&e?1:2&e?3:4&e?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){return this===cr()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return i.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,r){return this instanceof i.Event?(n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?ct:g):this.type=n,r&&i.extend(this,r),this.timeStamp=n&&n.timeStamp||i.now(),this[i.expando]=!0,t):new i.Event(n,r)};i.Event.prototype={isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=ct;n&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=ct;n&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ct;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return(!r||r!==f&&!i.contains(f,r))&&(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){return i.nodeName(this,"form")?!1:(i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))}),t)},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:(i.event.remove(this,"._submit"),t)}});i.support.changeBubbles||(i.event.special.change={setup:function(){return ui.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1):(i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ui.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))}),t)},handle:function(n){var i=n.target;return this!==i||n.isSimulated||n.isTrigger||"radio"!==i.type&&"checkbox"!==i.type?n.handleObj.handler.apply(this,arguments):t},teardown:function(){return i.event.remove(this,"._change"),!ui.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){0==u++&&r.addEventListener(n,f,!0)},teardown:function(){0==--u&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if("object"==typeof n){"string"!=typeof r&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(null==u&&null==f?(f=r,u=r=t):null==f&&("string"==typeof r?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=g;else if(!f)return this;return 1===e&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if("object"==typeof n){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||"function"==typeof r)&&(u=r,r=t),u===!1&&(u=g),this.each(function(){i.event.remove(this,n,u,r)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,r){var u=this[0];return u?i.event.trigger(n,r,u,!0):t}});var oe=/^.[^:#\[\.,]*$/,se=/^(?:parents|prev(?:Until|All))/,lr=i.expr.match.needsContext,he={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;u>t;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(fi(this,n||[],!0))},filter:function(n){return this.pushStack(fi(this,n||[],!1))},is:function(n){return!!fi(this,"string"==typeof n&&lr.test(n)?i(n):n||[],!1).length},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=lr.test(n)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(11>r.nodeType&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){r=u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?"string"==typeof n?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r="string"==typeof n?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(he[n]||(f=i.unique(f)),se.test(n)&&(f=f.reverse())),this.pushStack(f)}});i.extend({filter:function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))},dir:function(n,r,u){for(var e=[],f=n[r];f&&9!==f.nodeType&&(u===t||1!==f.nodeType||!i(f).is(u));)1===f.nodeType&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i}});var yr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,pr=RegExp("<(?:"+yr+")[\\s/>]","i"),ei=/^\s+/,wr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,br=/<([\w:]+)/,kr=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,oi=/^(?:checkbox|radio)$/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,dr=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=vr(r),si=we.appendChild(r.createElement("div"));e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,f=0;null!=(r=e[f]);f++)t||1!==r.nodeType||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&hi(u(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;null!=(n=this[t]);t++){for(1===n.nodeType&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=null==n?!1:n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return 1===r.nodeType?r.innerHTML.replace(ce,""):t;if(!("string"!=typeof n||ae.test(n)||!i.support.htmlSerialize&&pr.test(n)||!i.support.leadingWhitespace&&ei.test(n)||e[(br.exec(n)||["",""])[1].toLowerCase()])){n=n.replace(wr,"<$1><\/$2>");try{for(;o>f;f++)r=this[f]||{},1===r.nodeType&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var t=i.map(this,function(n){return[n.nextSibling,n.parentNode]}),n=0;return this.domManip(arguments,function(r){var u=t[n++],f=t[n++];f&&(u&&u.parentNode!==f&&(u=this.nextSibling),i(this).remove(),f.insertBefore(r,u))},!0),n?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t,r){n=di.apply([],n);var h,f,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||!(1>=l||"string"!=typeof a||i.support.checkClone)&&ve.test(a))return this.each(function(i){var u=p.eq(i);y&&(n[0]=a.call(this,i,u.html()));u.domManip(n,t,r)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,!r&&this),h=s.firstChild,1===s.childNodes.length&&(s=h),h)){for(o=i.map(u(s,"script"),nu),c=o.length;l>e;e++)f=s,e!==w&&(f=i.clone(f,!0,!0),c&&i.merge(o,u(f,"script"))),t.call(this[e],f,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,tu),e=0;c>e;e++)f=o[e],dr.test(f.type||"")&&!i._data(f,"globalEval")&&i.contains(v,f)&&(f.src?i._evalUrl(f.src):i.globalEval((f.text||f.textContent||f.innerHTML||"").replace(pe,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;o>=r;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),kt.apply(f,u.get());return this.pushStack(f)}});i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!pr.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(si.innerHTML=n.outerHTML,si.removeChild(o=si.firstChild)),!(i.support.noCloneEvent&&i.support.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=u(o),s=u(n),e=0;null!=(h=s[e]);++e)f[e]&&be(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;null!=(h=s[e]);e++)iu(h,f[e]);else iu(n,o);return f=u(o,"script"),f.length>0&&hi(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=vr(t),c=[],v=0;b>v;v++)if(o=n[v],o||0===o)if("object"===i.type(o))i.merge(c,o.nodeType?[o]:o);else if(le.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(br.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(wr,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&ei.test(o)&&c.push(t.createTextNode(ei.exec(o)[0])),!i.support.tbody)for(o="table"!==y||kr.test(o)?"<table>"!==l[1]||kr.test(o)?0:s:s.firstChild,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),ke),v=0;o=c[v++];)if((!f||-1===i.inArray(o,f))&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&hi(s),r))for(h=0;o=s[h++];)dr.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,f,u,e,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;null!=(r=n[c]);c++)if((t||i.acceptData(r))&&(u=r[s],e=u&&h[u])){if(e.events)for(f in e.events)a[f]?i.event.remove(r,f):i.removeEvent(r,f,e.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,b.push(u))}},_evalUrl:function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}});i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&1===n.firstChild.nodeType;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});var rt,v,y,ci=/alpha\([^)]*\)/i,de=/opacity\s*=\s*([^)]*)/,ge=/^(top|right|bottom|left)$/,no=/^(none|table(?!-c[ea]).+)/,ru=/^margin/,to=RegExp("^("+st+")(.*)$","i"),lt=RegExp("^("+st+")(?!px)[a-z%]+$","i"),io=RegExp("^([+-])=("+st+")","i"),uu={BODY:"block"},ro={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],eu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;e>f;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){ut(this)?i(this).show():i(this).hide()})}});i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return""===i?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=ou(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u===t)return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r];if(s=typeof u,"string"===s&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),!(null==u||"number"===s&&isNaN(u)||("number"!==s||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||""!==u||0!==r.indexOf("background")||(c[r]="inherit"),e&&"set"in e&&(u=e.set(n,u,f))===t)))try{c[r]=u}catch(l){}}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return r=i.cssProps[s]||(i.cssProps[s]=ou(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),"normal"===e&&r in fu&&(e=fu[r]),""===u||u?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e}});n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(""!==e||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),lt.test(e)&&ru.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return null==u&&f&&f[i]&&(u=f[i]),lt.test(u)&&!ge.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left="fontSize"===i?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),""===u?"auto":u});i.each(["height","width"],function(n,r){i.cssHooks[r]={get:function(n,u,f){return u?0===n.offsetWidth&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return lu(n,r,f)}):lu(n,r,f):t},set:function(n,t,u){var f=u&&v(n);return hu(n,t,u?cu(n,r,u,i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f),f):0)}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return de.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",f=u&&u.filter||r.filter||"";r.zoom=1;(t>=1||""===t)&&""===i.trim(f.replace(ci,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===t||u&&!u.filter)||(r.filter=ci.test(f)?f.replace(ci,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,r){return r?i.swap(n,{display:"inline-block"},y,[n,"marginRight"]):t}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,r){i.cssHooks[r]={get:function(n,u){return u?(u=y(n,r),lt.test(u)?i(n).position()[r]+"px":u):t}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return 0>=n.offsetWidth&&0>=n.offsetHeight||!i.support.reliableHiddenOffsets&&"none"===(n.style&&n.style.display||i.css(n,"display"))},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];4>r;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};ru.test(n)||(i.cssHooks[n+t].set=hu)});var uo=/%20/g,fo=/\[\]$/,yu=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(yu,"\r\n")}}):{name:t.name,value:r.replace(yu,"\r\n")}}).get()}});i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():null==t?"":t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)li(u,n[u],r,e);return f.join("&").replace(uo,"+")};i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var w,c,ai=i.now(),vi=/\?/,so=/#.*$/,pu=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,co=/^(?:GET|HEAD)$/,lo=/^\/\//,wu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,bu=i.fn.load,ku={},yi={},du="*/".concat("*");try{c=hf.href}catch(go){c=r.createElement("a");c.href="";c=c.href}w=wu.exec(c.toLowerCase())||[];i.fn.load=function(n,r,u){if("string"!=typeof n&&bu)return bu.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&"object"==typeof r&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this};i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":du,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:gu(ku),ajaxTransport:gu(yi),ajax:function(n,r){function k(n,r,s,c){var a,rt,k,p,w,l=r;2!==o&&(o=2,g&&clearTimeout(g),y=t,d=c||"",f.readyState=n>0?4:0,a=n>=200&&300>n||304===n,s&&(p=ao(u,f,s)),p=vo(u,p,f,a),a?(u.ifModified&&(w=f.getResponseHeader("Last-Modified"),w&&(i.lastModified[e]=w),w=f.getResponseHeader("etag"),w&&(i.etag[e]=w)),204===n||"HEAD"===u.type?l="nocontent":304===n?l="notmodified":(l=p.state,rt=p.data,k=p.error,a=!k)):(k=l,(n||!l)&&(l="error",0>n&&(n=0))),f.status=n,f.statusText=(r||l)+"",a?tt.resolveWith(h,[rt,l,f]):tt.rejectWith(h,[f,l,k]),f.statusCode(b),b=t,v&&nt.trigger(a?"ajaxSuccess":"ajaxError",[f,u,a?rt:k]),it.fireWith(h,[f,l]),v&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(r=n,n=t);r=r||{};var l,a,e,d,g,v,y,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),b=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(2===o){if(!p)for(p={};t=ho.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(2>o)for(t in n)b[t]=[b[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return y&&y.abort(t),k(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(so,"").replace(lo,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],null==u.crossDomain&&(l=wu.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]===w[1]&&l[2]===w[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(w[3]||("http:"===w[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),nf(ku,u,r,f),2===o)return f;v=u.global;v&&0==i.active++&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!co.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(vi.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=pu.test(e)?e.replace(pu,"$1_="+ai++):e+(vi.test(e)?"&":"?")+"_="+ai++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+du+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||2===o))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(y=nf(yi,u,r,f)){f.readyState=1;v&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;y.send(rt,k)}catch(et){if(!(2>o))throw et;k(-1,et)}}else k(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,r){return i.get(n,t,r,"script")}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script");u.async=!0;n.scriptCharset&&(u.charset=n.scriptCharset);u.src=n.url;u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))};f.insertBefore(u,f.firstChild)},abort:function(){u&&u.onload(t,!0)}}}});wi=[];at=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wi.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(at.test(r.url)?"url":"string"==typeof r.data&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(r.data)&&"data");return h||"jsonp"===r.dataTypes[0]?(e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(at,"$1"+e):r.jsonp!==!1&&(r.url+=(vi.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s;r[e]&&(r.jsonpCallback=u.jsonpCallback,wi.push(e));o&&i.isFunction(s)&&s(o[0]);o=s=t}),"script"):t});tf=0;vt=n.ActiveXObject&&function(){var n;for(n in nt)nt[n](t,!0)};i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&rf()||yo()}:rf;tt=i.ajaxSettings.xhr();i.support.cors=!!tt&&"withCredentials"in tt;tt=i.support.ajax=!!tt;tt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,l,c;try{if(u&&(f||4===o.readyState))if(u=t,h&&(o.onreadystatechange=i.noop,vt&&delete nt[h]),f)4!==o.readyState&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?1223===s&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?4===o.readyState?setTimeout(u):(h=++tf,vt&&(nt||(nt={},i(n).unload(vt)),nt[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var it,yt,po=/^(?:toggle|show|hide)$/,uf=RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),wo=/queueHooks$/,pt=[ko],ft={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=uf.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&uf.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[2]),f}]};i.Animation=i.extend(of,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;f>u;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}});i.Tween=f;f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var r,t=f.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(wt(t,!0),n,i,u)}});i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=of(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&wo.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem!==this||null!=n&&e[t].queue!==n||(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.speed=function(n,t,r){var u=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.timers=[];i.fx=f.prototype.init;i.fx.tick=function(){var u,n=i.timers,r=0;for(it=i.now();n.length>r;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop();it=t};i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()};i.fx.interval=13;i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(yt);yt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fx.step={};i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return r=s.documentElement,i.contains(r,u)?(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=sf(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}):f};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");"static"===f&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=("absolute"===f||"fixed"===f)&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));null!=t.top&&(u.top=t.top-o.top+h);null!=t.left&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return"fixed"===i.css(u,"position")?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||ki;n&&!i.nodeName(n,"html")&&"static"===i.css(n,"position");)n=n.offsetParent;return n||ki})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=sf(n);return e===t?o?r in o?o[r]:o.document.documentElement[f]:n[f]:(o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e,t)},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||"boolean"!=typeof f),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:9===r.nodeType?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})});i.fn.size=function(){return this.length};i.fn.andSelf=i.fn.addBack;"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=i:(n.jQuery=n.$=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}))}(window),!function(n,t){function v(n,t,r){var e=n.children(),o=!1,u,s,f;for(n.empty(),u=0,s=e.length;s>u;u++){if(f=e.eq(u),n.append(f),r&&n.append(r),i(n,t)){f.remove();o=!0;break}r&&r.detach()}return o}function f(t,r,u,e,o){var s=!1,h="table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style",c="script, .dotdotdot-keep";return t.contents().detach().each(function(){var a=this,l=n(a);if("undefined"==typeof a||3==a.nodeType&&0==n.trim(a.data).length)return!0;if(l.is(c))t.append(l);else{if(s)return!0;t.append(l);o&&t[t.is(h)?"after":"append"](o);i(u,e)&&(s=3==a.nodeType?y(l,r,u,e,o):f(l,r,u,e,o),s||(l.detach(),s=!0));s||o&&o.detach()}}),s}function y(t,f,o,h,c){var l=t[0],nt,k,d;if(!l)return!1;var y=s(l),tt=-1!==y.indexOf(" ")?" ":"　",p="letter"==h.wrap?"":tt,a=y.split(p),g=-1,w=-1,b=0,v=a.length-1;for(h.fallbackToLetter&&0==b&&0==v&&(p="",a=y.split(p),v=a.length-1);v>=b&&(0!=b||0!=v);){if(nt=Math.floor((b+v)/2),nt==w)break;w=nt;u(l,a.slice(0,w+1).join(p)+h.ellipsis);i(o,h)?(v=w,h.fallbackToLetter&&0==b&&0==v&&(p="",a=a[0].split(p),g=-1,w=-1,b=0,v=a.length-1)):(g=w,b=w)}return-1==g||1==a.length&&0==a[0].length?(k=t.parent(),t.detach(),d=c&&c.closest(k).length?c.length:0,k.contents().length>d?l=r(k.contents().eq(-1-d),f):(l=r(k,f,!0),d||k.detach()),l&&(y=e(s(l),h),u(l,y),d&&c&&n(l).parent().append(c))):(y=e(a.slice(0,g+1).join(p),h),u(l,y)),!0}function i(n,t){return n.innerHeight()>t.maxHeight}function e(t,i){for(;n.inArray(t.slice(-1),i.lastCharacter.remove)>-1;)t=t.slice(0,-1);return n.inArray(t.slice(-1),i.lastCharacter.noEllipsis)<0&&(t+=i.ellipsis),t}function o(n){return{width:n.innerWidth(),height:n.innerHeight()}}function u(n,t){n.innerText?n.innerText=t:n.nodeValue?n.nodeValue=t:n.textContent&&(n.textContent=t)}function s(n){return n.innerText?n.innerText:n.nodeValue?n.nodeValue:n.textContent?n.textContent:""}function h(n){do n=n.previousSibling;while(n&&1!==n.nodeType&&3!==n.nodeType);return n}function r(t,i,u){var f,e=t&&t[0];if(e){if(!u){if(3===e.nodeType)return e;if(n.trim(t.text()))return r(t.contents().last(),i)}for(f=h(e);!f;){if(t=t.parent(),t.is(i)||!t.length)return!1;f=h(t[0])}if(f)return r(n(f),i)}return!1}function p(t,i){return t?"string"==typeof t?(t=n(t,i),t.length?t:!1):t.jquery?t:!1:!1}function w(n){for(var t,r=n.innerHeight(),u=["paddingTop","paddingBottom"],i=0,f=u.length;f>i;i++)t=parseInt(n.css(u[i]),10),isNaN(t)&&(t=0),r-=t;return r}var c,l,a;n.fn.dotdotdot||(n.fn.dotdotdot=function(t){var r;if(0==this.length)return n.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){n(this).dotdotdot(t)});r=this;r.data("dotdotdot")&&r.trigger("destroy.dot");r.data("dotdotdot-style",r.attr("style")||"");r.css("word-wrap","break-word");"nowrap"===r.css("white-space")&&r.css("white-space","normal");r.bind_events=function(){return r.bind("update.dot",function(t,o){t.preventDefault();t.stopPropagation();u.maxHeight="number"==typeof u.height?u.height:w(r);u.maxHeight+=u.tolerance;"undefined"!=typeof o&&(("string"==typeof o||o instanceof HTMLElement)&&(o=n("<div />").append(o).contents()),o instanceof n&&(h=o));s=r.wrapInner('<div class="dotdotdot" />').children();s.contents().detach().end().append(h.clone(!0)).find("br").replaceWith("  <br />  ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var c=!1,l=!1;return e.afterElement&&(c=e.afterElement.clone(!0),c.show(),e.afterElement.detach()),i(s,u)&&(l="children"==u.wrap?v(s,u,c):f(s,r,s,u,c)),s.replaceWith(s.contents()),s=null,n.isFunction(u.callback)&&u.callback.call(r[0],l,h),e.isTruncated=l,l}).bind("isTruncated.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),"function"==typeof t&&t.call(r[0],e.isTruncated),e.isTruncated}).bind("originalContent.dot",function(n,t){return n.preventDefault(),n.stopPropagation(),"function"==typeof t&&t.call(r[0],h),h}).bind("destroy.dot",function(n){n.preventDefault();n.stopPropagation();r.unwatch().unbind_events().contents().detach().end().append(h).attr("style",r.data("dotdotdot-style")||"").data("dotdotdot",!1)}),r};r.unbind_events=function(){return r.unbind(".dot"),r};r.watch=function(){if(r.unwatch(),"window"==u.watch){var t=n(window),i=t.width(),f=t.height();t.bind("resize.dot"+e.dotId,function(){i==t.width()&&f==t.height()&&u.windowResizeFix||(i=t.width(),f=t.height(),l&&clearInterval(l),l=setTimeout(function(){r.trigger("update.dot")},100))})}else a=o(r),l=setInterval(function(){if(r.is(":visible")){var n=o(r);(a.width!=n.width||a.height!=n.height)&&(r.trigger("update.dot"),a=n)}},500);return r};r.unwatch=function(){return n(window).unbind("resize.dot"+e.dotId),l&&clearInterval(l),r};var h=r.contents(),u=n.extend(!0,{},n.fn.dotdotdot.defaults,t),e={},a={},l=null,s=null;return u.lastCharacter.remove instanceof Array||(u.lastCharacter.remove=n.fn.dotdotdot.defaultArrays.lastCharacter.remove),u.lastCharacter.noEllipsis instanceof Array||(u.lastCharacter.noEllipsis=n.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),e.afterElement=p(u.after,r),e.isTruncated=!1,e.dotId=c++,r.data("dotdotdot",!0).bind_events().trigger("update.dot"),u.watch&&r.watch(),r},n.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},n.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" ","　",",",";",".","!","?"],noEllipsis:[]}},n.fn.dotdotdot.debug=function(){},c=1,l=n.fn.html,n.fn.html=function(i){return i!=t&&!n.isFunction(i)&&this.data("dotdotdot")?this.trigger("update",[i]):l.apply(this,arguments)},a=n.fn.text,n.fn.text=function(i){return i!=t&&!n.isFunction(i)&&this.data("dotdotdot")?(i=n("<div />").text(i).html(),this.trigger("update",[i])):a.apply(this,arguments)})}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n(u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.1";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";null==u.resetText&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")):this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.1";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i="prev"==n?-1:1,r=this.getItemIndex(t),u=(r+i)%this.$items.length;return this.$items.eq(u)};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(0>n))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",v="next"==i?"first":"last",a=this,o,s,h,c;if(!u.length){if(!this.options.wrap)return;u=this.$element.find(".item")[v]()}return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&"show"==i&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n(this.options.trigger).filter('[href="#'+i.id+'"], [data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.1";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":n.extend({},u.data(),{trigger:this});i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var r=n(this),i=u(r),f={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(r.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.1";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.divider):visible a";f=o.find('[role="menu"]'+h+', [role="listbox"]'+h);f.length&&(r=f.index(t.target),38==t.which&&r>0&&r--,40==t.which&&r<f.length-1&&r++,~r||(r=0),f.eq(r).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$backdrop=this.isShown=null;this.scrollbarWidth=0;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.1";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.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"]',n.proxy(this.hide,this)),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.options.backdrop&&r.adjustBackdrop();r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in").attr("aria-hidden",!1);r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$element.find(".modal-dialog").one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n('<div class="modal-backdrop '+f+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop();this.adjustDialog()};t.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right","")};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var f=n(this),r=f.data("bs.tooltip"),u="object"==typeof i&&i,e=u&&u.selector;(r||"destroy"!=i)&&(e?(r||f.data("bs.tooltip",r={}),r[e]||(r[e]=new t(this,u))):r||f.data("bs.tooltip",r=new t(this,u)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.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}};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i&&i.$tip&&i.$tip.is(":visible")?void(i.hoverState="in"):(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;if(y){var w=i,b=this.options.container?n(this.options.container):this.$element.parent(),e=this.getPosition(b);i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-s<e.top?"bottom":"right"==i&&f.right+o>e.width?"left":"left"==i&&f.left-o<e.left?"right":i;r.removeClass(w).addClass(i)}p=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(p,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;"out"==n&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?2*u.left-l+h:2*u.top-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function f(){"in"!=r.hoverState&&u.detach();r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type);i&&i()}var r=this,u=this.tip(),e=n.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(u.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?u.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r="BODY"==u.tagName,i=u.getBoundingClientRect();null==i.width&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.width&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type)})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var f=n(this),r=f.data("bs.popover"),u="object"==typeof i&&i,e=u&&u.selector;(r||"destroy"!=i)&&(e?(r||f.data("bs.popover",r={}),r[e]||(r[e]=new t(this,u))):r||f.data("bs.popover",r=new t(this,u)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.1";t.DEFAULTS=n.extend({},n.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>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){var u=n.proxy(this.process,this);this.$body=n("body");this.$scrollElement=n(n(i).is("body")?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",u);this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.3.1";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var i="offset",r=0,t;n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();t=this;this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu")&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.1";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return i>u?"top":!1;if("bottom"==this.affixed)return null!=i?u+this.unpin<=f.top?!1:"bottom":n-r>=u+e?!1:"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&i>=s?"top":null!=r&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=n("body").height();if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin="bottom"==i?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom);null!=t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery),function(n,t,i){"use strict";function v(n){return function(){for(var i=arguments[0],u,t,r="["+(n?n+":":"")+i+"] http://errors.angularjs.org/1.4.3/"+(n?n+"/":"")+i,i=1;i<arguments.length;i++)r=r+(1==i?"?":"&")+"p"+(i-1)+"=",u=encodeURIComponent,t=arguments[i],t="function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof t?"undefined":"string"!=typeof t?JSON.stringify(t):t,r+=u(t);return Error(r)}}function fi(n){if(null==n||ur(n))return!1;var t="length"in Object(n)&&n.length;return n.nodeType===wt&&t?!0:l(n)||a(n)||0===t||"number"==typeof t&&0<t&&t-1 in n}function r(n,t,i){var u,f,e;if(n)if(s(n))for(u in n)"prototype"==u||"length"==u||"name"==u||n.hasOwnProperty&&!n.hasOwnProperty(u)||t.call(i,n[u],u,n);else if(a(n)||fi(n))for(e="object"!=typeof n,u=0,f=n.length;u<f;u++)(e||u in n)&&t.call(i,n[u],u,n);else if(n.forEach&&n.forEach!==r)n.forEach(t,i,n);else if(pe(n))for(u in n)t.call(i,n[u],u,n);else if("function"==typeof n.hasOwnProperty)for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n);else for(u in n)pr.call(n,u)&&t.call(i,n[u],u,n);return n}function le(n,t,i){for(var r=Object.keys(n).sort(),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function ae(n){return function(t,i){n(i,t)}}function pc(){return++ku}function ve(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function ef(n,t,i){for(var f,r,u,l=n.$$hashKey,e=0,v=t.length;e<v;++e)if(f=t[e],c(f)||s(f))for(var h=Object.keys(f),o=0,y=h.length;o<y;o++)r=h[o],u=f[r],i&&c(u)?ut(u)?n[r]=new Date(u.valueOf()):(c(n[r])||(n[r]=a(u)?[]:{}),ef(n[r],[u],!0)):n[r]=u;return ve(n,l),n}function p(n){return ef(n,ri.call(arguments,1),!1)}function wc(n){return ef(n,ri.call(arguments,1),!0)}function tt(n){return parseInt(n,10)}function of(n,t){return p(Object.create(n),t)}function o(){}function ir(n){return n}function pt(n){return function(){return n}}function ye(n){return s(n.toString)&&n.toString!==Object.prototype.toString}function h(n){return"undefined"==typeof n}function e(n){return"undefined"!=typeof n}function c(n){return null!==n&&"object"==typeof n}function pe(n){return null!==n&&"object"==typeof n&&!fh(n)}function l(n){return"string"==typeof n}function k(n){return"number"==typeof n}function ut(n){return"[object Date]"===ni.call(n)}function s(n){return"function"==typeof n}function rr(n){return"[object RegExp]"===ni.call(n)}function ur(n){return n&&n.window===n}function fr(n){return n&&n.$evalAsync&&n.$watch}function er(n){return"boolean"==typeof n}function we(n){return!(!n||!(n.nodeName||n.prop&&n.attr&&n.find))}function bc(n){var i={},t;for(n=n.split(","),t=0;t<n.length;t++)i[n[t]]=!0;return i}function bt(n){return y(n.nodeName||n[0]&&n[0].nodeName)}function or(n,t){var i=n.indexOf(t);return 0<=i&&n.splice(i,1),i}function ht(n,t,i,u){var f,e;if(ur(n)||fr(n))throw li("cpws");if(eh.test(ni.call(t)))throw li("cpta");if(t){if(n===t)throw li("cpi");if(i=i||[],u=u||[],c(n)&&(i.push(n),u.push(t)),a(n))for(f=t.length=0;f<n.length;f++)t.push(ht(n[f],null,i,u));else{if(e=t.$$hashKey,a(t)?t.length=0:r(t,function(n,i){delete t[i]}),pe(n))for(f in n)t[f]=ht(n[f],null,i,u);else if(n&&"function"==typeof n.hasOwnProperty)for(f in n)n.hasOwnProperty(f)&&(t[f]=ht(n[f],null,i,u));else for(f in n)pr.call(n,f)&&(t[f]=ht(n[f],null,i,u));ve(t,e)}}else if(t=n,c(n)){if(i&&-1!==(e=i.indexOf(n)))return u[e];if(a(n))return ht(n,[],i,u);if(eh.test(ni.call(n)))t=new n.constructor(n);else if(ut(n))t=new Date(n.getTime());else if(rr(n))t=new RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),t.lastIndex=n.lastIndex;else return f=Object.create(fh(n)),ht(n,f,i,u);u&&(i.push(n),u.push(t))}return t}function ct(n,t){if(a(n)){t=t||[];for(var i=0,r=n.length;i<r;i++)t[i]=n[i]}else if(c(n))for(i in t=t||{},n)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(t[i]=n[i]);return t||n}function ot(n,t){if(n===t)return!0;if(null===n||null===t)return!1;if(n!==n&&t!==t)return!0;var u=typeof n,r;if(u==typeof t&&"object"==u)if(a(n)){if(!a(t))return!1;if((u=n.length)==t.length){for(r=0;r<u;r++)if(!ot(n[r],t[r]))return!1;return!0}}else{if(ut(n))return ut(t)?ot(n.getTime(),t.getTime()):!1;if(rr(n))return rr(t)?n.toString()==t.toString():!1;if(fr(n)||fr(t)||ur(n)||ur(t)||a(t)||ut(t)||rr(t))return!1;u=rt();for(r in n)if("$"!==r.charAt(0)&&!s(n[r])){if(!ot(n[r],t[r]))return!1;u[r]=!0}for(r in t)if(!(r in u||"$"===r.charAt(0)||t[r]===i||s(t[r])))return!1;return!0}return!1}function sr(n,t,i){return n.concat(ri.call(t,i))}function be(n,t){var i=2<arguments.length?ri.call(arguments,2):[];return!s(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,sr(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function kc(n,r){var u=r;return"string"==typeof n&&"$"===n.charAt(0)&&"$"===n.charAt(1)?u=i:ur(r)?u="$WINDOW":r&&t===r?u="$DOCUMENT":fr(r)&&(u="$SCOPE"),u}function hr(n,t){return"undefined"==typeof n?i:(k(t)||(t=t?2:null),JSON.stringify(n,kc,t))}function ke(n){return l(n)?JSON.parse(n):n}function de(n,t){var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(i)?t:i}function sf(n,t,i){i=i?-1:1;var r=de(t,n.getTimezoneOffset());return t=n,n=i*(r-n.getTimezoneOffset()),t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function kt(n){n=f(n).clone();try{n.empty()}catch(i){}var t=f("<div>").append(n).html();try{return n[0].nodeType===gi?y(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+y(t)})}catch(r){return y(t)}}function ge(n){try{return decodeURIComponent(n)}catch(t){}}function no(n){var i={},u,t;return r((n||"").split("&"),function(n){n&&(u=n.replace(/\+/g,"%20").split("="),t=ge(u[0]),e(t)&&(n=e(u[1])?ge(u[1]):!0,pr.call(i,t)?a(i[t])?i[t].push(n):i[t]=[i[t],n]:i[t]=n))}),i}function hf(n){var t=[];return r(n,function(n,i){a(n)?r(n,function(n){t.push(lt(i,!0)+(!0===n?"":"="+lt(n,!0)))}):t.push(lt(i,!0)+(!0===n?"":"="+lt(n,!0)))}),t.length?t.join("&"):""}function tu(n){return lt(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function lt(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function dc(n,t){for(var i,u=di.length,r=0;r<u;++r)if(i=di[r]+t,l(i=n.getAttribute(i)))return i;return null}function gc(n,t){var i,u,f={};r(di,function(t){t+="app";!i&&n.hasAttribute&&n.hasAttribute(t)&&(i=n,u=n.getAttribute(t))});r(di,function(t){t+="app";var r;!i&&(r=n.querySelector("["+t.replace(":","\\:")+"]"))&&(i=r,u=r.getAttribute(t))});i&&(f.strictDi=null!==dc(i,"strict-di"),t(i,u?[u]:[],f))}function to(i,u,e){c(e)||(e={});e=p({strictDi:!1},e);var o=function(){if(i=f(i),i.injector()){var n=i[0]===t?"document":kt(i);throw li("btstrpd",n.replace(/</,"&lt;").replace(/>/,"&gt;"));}return u=u||[],u.unshift(["$provide",function(n){n.value("$rootElement",i)}]),e.debugInfoEnabled&&u.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),u.unshift("ng"),n=lr(u,e.strictDi),n.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),n},h=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;if(n&&h.test(n.name)&&(e.debugInfoEnabled=!0,n.name=n.name.replace(h,"")),n&&!l.test(n.name))return o();n.name=n.name.replace(l,"");ft.resumeBootstrap=function(n){return r(n,function(n){u.push(n)}),o()};s(ft.resumeDeferredBootstrap)&&ft.resumeDeferredBootstrap()}function nl(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function tl(n){if(n=ft.element(n).injector(),!n)throw li("test");return n.get("$$testability")}function io(n,t){return t=t||"_",n.replace(lv,function(n,i){return(i?t:"")+n.toLowerCase()})}function il(){var r,t;sh||(t=du(),st=n.jQuery,e(t)&&(st=null===t?i:n[t]),st&&st.fn.on?(f=st,p(st.fn,{scope:ai.scope,isolateScope:ai.isolateScope,controller:ai.controller,injector:ai.injector,inheritedData:ai.inheritedData}),r=st.cleanData,st.cleanData=function(n){var u,t,i;if(ue)ue=!1;else for(t=0;null!=(i=n[t]);t++)(u=st._data(i,"events"))&&u.$destroy&&st(i).triggerHandler("$destroy");r(n)}):f=b,ft.element=f,sh=!0)}function cf(n,t,i){if(!n)throw li("areq",t||"?",i||"required");return n}function pi(n,t,i){return i&&a(n)&&(n=n[n.length-1]),cf(s(n),t,"not a function, got "+(n&&"object"==typeof n?n.constructor.name||"Object":typeof n)),n}function wi(n,t){if("hasOwnProperty"===n)throw li("badname",t);}function ro(n,t,i){if(!t)return n;t=t.split(".");for(var u,f=n,e=t.length,r=0;r<e;r++)u=t[r],n&&(n=(f=n)[u]);return!i&&s(n)?be(f,n):n}function iu(n){var t=n[0],i;n=n[n.length-1];i=[t];do{if(t=t.nextSibling,!t)break;i.push(t)}while(t!==n);return f(i)}function rt(){return Object.create(null)}function rl(n){function t(n,t,i){return n[t]||(n[t]=i())}var i=v("$injector"),r=v("ng");return n=t(n,"angular",Object),n.$$minErr=n.$$minErr||v,t(n,"module",function(){var n={};return function(u,f,e){if("hasOwnProperty"===u)throw r("badname","module");return f&&n.hasOwnProperty(u)&&(n[u]=null),t(n,u,function(){function t(n,t,i,u){return u||(u=r),function(){return u[i||"push"]([n,t,arguments]),o}}function n(n,t){return function(i,f){return f&&s(f)&&(f.$$moduleName=u),r.push([n,t,arguments]),o}}if(!f)throw i("nomod",u);var r=[],h=[],c=[],l=t("$injector","invoke","push",h),o={_invokeQueue:r,_configBlocks:h,_runBlocks:c,requires:f,name:u,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),config:l,run:function(n){return c.push(n),this}};return e&&l(e),o})}})}function ul(t){p(t,{bootstrap:to,copy:ht,extend:p,merge:wc,equals:ot,element:f,forEach:r,injector:lr,noop:o,bind:be,toJson:hr,fromJson:ke,identity:ir,isUndefined:h,isDefined:e,isString:l,isFunction:s,isObject:c,isNumber:k,isElement:we,isArray:a,version:av,isDate:ut,lowercase:y,uppercase:bu,callbacks:{counter:0},getTestability:tl,$$minErr:v,$$csp:br,reloadWithDebugInfo:nl});wr=rl(n);try{wr("ngLocale")}catch(i){wr("ngLocale",[]).provider("$locale",ea)}wr("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:pa});n.provider("$compile",lo).directive({a:nc,input:oc,textarea:oc,form:dy,script:bw,select:gw,style:tb,option:nb,ngBind:ep,ngBindHtml:sp,ngBindTemplate:op,ngClass:cp,ngClassEven:ap,ngClassOdd:lp,ngCloak:vp,ngController:yp,ngForm:gy,ngHide:lw,ngIf:wp,ngInclude:bp,ngInit:dp,ngNonBindable:uw,ngPluralize:sw,ngRepeat:hw,ngShow:cw,ngStyle:aw,ngSwitch:vw,ngSwitchWhen:yw,ngSwitchDefault:pw,ngOptions:ow,ngTransclude:ww,ngModel:tw,ngList:gp,ngChange:hp,pattern:ac,ngPattern:ac,required:lc,ngRequired:lc,minlength:yc,ngMinlength:yc,maxlength:vc,ngMaxlength:vc,ngValue:fp,ngModelOptions:rw}).directive({ngInclude:kp}).directive(dr).directive(sc);n.provider({$anchorScroll:cl,$animate:uy,$$animateQueue:ry,$$AnimateRunner:iy,$browser:vl,$cacheFactory:yl,$controller:wl,$document:bl,$exceptionHandler:kl,$filter:vs,$interpolate:ua,$interval:fa,$http:na,$httpParamSerializer:dl,$httpParamSerializerJQLike:gl,$httpBackend:ia,$location:oa,$log:sa,$parse:ca,$rootScope:ya,$q:la,$$q:aa,$sce:ka,$sceDelegate:ba,$sniffer:da,$templateCache:pl,$templateRequest:ga,$$testability:nv,$timeout:tv,$window:iv,$$rAF:va,$$jqLite:sl,$$HashMap:gv,$$cookieReader:rv})}])}function cr(n){return n.replace(vv,function(n,t,i,r){return r?i.toUpperCase():i}).replace(yv,"Moz$1")}function uo(n){return n=n.nodeType,n===wt||!n||9===n}function fo(n,t){var i,u,f=t.createDocumentFragment(),e=[];if(ee.test(n)){for(i=i||f.appendChild(t.createElement("div")),u=(bv.exec(n)||["",""])[1].toLowerCase(),u=vt[u]||vt._default,i.innerHTML=u[1]+n.replace(kv,"<$1><\/$2>")+u[2],u=u[0];u--;)i=i.lastChild;e=sr(e,i.childNodes);i=f.firstChild;i.textContent=""}else e.push(t.createTextNode(n));return f.textContent="",f.innerHTML="",r(e,function(n){f.appendChild(n)}),f}function b(n){var i,r;if(n instanceof b)return n;if(l(n)&&(n=w(n),i=!0),!(this instanceof b)){if(i&&"<"!=n.charAt(0))throw fe("nosel");return new b(n)}i&&(i=t,n=(r=wv.exec(n))?[i.createElement(r[1])]:(r=fo(n,i))?r.childNodes:[]);oo(this,n)}function lf(n){return n.cloneNode(!0)}function ru(n,t){if(t||uu(n),n.querySelectorAll)for(var r=n.querySelectorAll("*"),i=0,u=r.length;i<u;i++)uu(r[i])}function eo(n,t,i,u){if(e(u))throw fe("offargs");var f=(u=fu(n))&&u.events,o=u&&u.handle;if(o)if(t)r(t.split(" "),function(t){if(e(i)){var r=f[t];if(or(r||[],i),r&&0<r.length)return}n.removeEventListener(t,o,!1);delete f[t]});else for(t in f)"$destroy"!==t&&n.removeEventListener(t,o,!1),delete f[t]}function uu(n,t){var u=n.ng339,r=u&&nr[u];r&&(t?delete r.data[t]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),eo(n)),delete nr[u],n.ng339=i))}function fu(n,t){var r=n.ng339,r=r&&nr[r];return t&&!r&&(n.ng339=r=++hh,r=nr[r]={events:{},data:{},handle:i}),r}function af(n,t,i){if(uo(n)){var r=e(i),u=!r&&t&&!c(t),f=!t;if(n=(n=fu(n,!u))&&n.data,r)n[t]=i;else{if(f)return n;if(u)return n&&n[t];p(n,t)}}}function eu(n,t){return n.getAttribute?-1<(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function ou(n,t){t&&n.setAttribute&&r(t.split(" "),function(t){n.setAttribute("class",w((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+w(t)+" "," ")))})}function su(n,t){if(t&&n.setAttribute){var i=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(n){n=w(n);-1===i.indexOf(" "+n+" ")&&(i+=n+" ")});n.setAttribute("class",w(i))}}function oo(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,"number"==typeof i&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function so(n,t){return hu(n,"$"+(t||"ngController")+"Controller")}function hu(n,t,r){for(9==n.nodeType&&(n=n.documentElement),t=a(t)?t:[t];n;){for(var u=0,e=t.length;u<e;u++)if((r=f.data(n,t[u]))!==i)return r;n=n.parentNode||11===n.nodeType&&n.host}}function ho(n){for(ru(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function vf(n,t){t||ru(n);var i=n.parentNode;i&&i.removeChild(n)}function fl(t,i){if(i=i||n,"complete"===i.document.readyState)i.setTimeout(t);else f(i).on("load",t)}function co(n,t){var i=kr[t.toLowerCase()];return i&&oe[bt(n)]&&i}function el(n,t){var i=n.nodeName;return("INPUT"===i||"TEXTAREA"===i)&&se[t]}function ol(n,t){var i=function(i,r){var u,f,o,e;if(i.isDefaultPrevented=function(){return i.defaultPrevented},u=t[r||i.type],f=u?u.length:0,f)for(h(i.immediatePropagationStopped)&&(o=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();o&&o.call(i)}),i.isImmediatePropagationStopped=function(){return!0===i.immediatePropagationStopped},1<f&&(u=ct(u)),e=0;e<f;e++)i.isImmediatePropagationStopped()||u[e].call(n,i)};return i.elem=n,i}function sl(){this.$get=function(){return p(b,{hasClass:function(n,t){return n.attr&&(n=n[0]),eu(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),su(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),ou(n,t)}})}}function ei(n,t){var i=n&&n.$$hashKey;return i?("function"==typeof i&&(i=n.$$hashKey()),i):(i=typeof n,"function"==i||"object"==i&&null!==n?n.$$hashKey=i+":"+(t||pc)():i+":"+n)}function bi(n,t){if(t){var i=0;this.nextUid=function(){return++i}}r(n,this.put,this)}function hl(n){return(n=n.toString().replace(lh,"").match(ch))?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function lr(n,t){function e(n){return function(t,i){if(c(t))r(t,ae(n));else return n(t,i)}}function b(n,t){if(wi(n,"service"),(s(t)||a(t))&&(t=u.instantiate(t)),!t.$get)throw vi("pget",n);return v[n+"Provider"]=t}function nt(n,t){return function(){var i=f.invoke(t,this);if(h(i))throw vi("undef",n);return i}}function y(n,t,i){return b(n,{$get:!1!==i?nt(n,t):t})}function k(n){var t=[],i;return r(n,function(n){function f(n){for(var i,r,t=0,f=n.length;t<f;t++)i=n[t],r=u.get(i[0]),r[i[1]].apply(r,i[2])}if(!g.get(n)){g.put(n,!0);try{l(n)?(i=wr(n),t=t.concat(k(i.requires)).concat(i._runBlocks),f(i._invokeQueue),f(i._configBlocks)):s(n)?t.push(u.invoke(n)):a(n)?t.push(u.invoke(n)):pi(n,"module")}catch(r){throw a(n)&&(n=n[n.length-1]),r.message&&r.stack&&-1==r.stack.indexOf(r.message)&&(r=r.message+"\n"+r.stack),vi("modulerr",n,r.stack||r.message||r);}}}),t}function d(n,i){function r(t,r){if(n.hasOwnProperty(t)){if(n[t]===p)throw vi("cdep",t+" <- "+o.join(" <- "));return n[t]}try{return o.unshift(t),n[t]=p,n[t]=i(t,r)}catch(u){throw n[t]===p&&delete n[t],u;}finally{o.shift()}}function u(n,i,u,f){"string"==typeof u&&(f=u,u=null);for(var h=[],c=lr.$$annotate(n,t,f),e,o=0,s=c.length;o<s;o++){if(e=c[o],"string"!=typeof e)throw vi("itkn",e);h.push(u&&u.hasOwnProperty(e)?u[e]:r(e,f))}return a(n)&&(n=n[s]),n.apply(i,h)}return{invoke:u,instantiate:function(n,t,i){var r=Object.create((a(n)?n[n.length-1]:n).prototype||null);return n=u(n,r,t,i),c(n)||s(n)?n:r},get:r,annotate:lr.$$annotate,has:function(t){return v.hasOwnProperty(t+"Provider")||n.hasOwnProperty(t)}}}t=!0===t;var p={},o=[],g=new bi([],!0),v={$provide:{provider:e(b),factory:e(y),service:e(function(n,t){return y(n,["$injector",function(n){return n.instantiate(t)}])}),value:e(function(n,t){return y(n,pt(t),!1)}),constant:e(function(n,t){wi(n,"constant");v[n]=t;w[n]=t}),decorator:function(n,t){var i=u.get(n+"Provider"),r=i.$get;i.$get=function(){var n=f.invoke(r,i);return f.invoke(t,null,{$delegate:n})}}}},u=v.$injector=d(v,function(n,t){ft.isString(t)&&o.push(t);throw vi("unpr",o.join(" <- "));}),w={},f=w.$injector=d(w,function(n,t){var r=u.get(n+"Provider",t);return f.invoke(r.$get,r,i,n)});return r(k(n),function(n){n&&f.invoke(n)}),f}function cl(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,r){function o(n){var t=null;return Array.prototype.some.call(n,function(n){if("a"===bt(n))return t=n,!0}),t}function u(n){if(n){n.scrollIntoView();var i;i=f.yOffset;s(i)?i=i():we(i)?(i=i[0],i="fixed"!==t.getComputedStyle(i).position?0:i.getBoundingClientRect().bottom):k(i)||(i=0);i&&(n=n.getBoundingClientRect().top,t.scrollBy(0,n-i))}else t.scrollTo(0,0)}function f(n){n=l(n)?n:i.hash();var t;n?(t=e.getElementById(n))?u(t):(t=o(e.getElementsByName(n)))?u(t):"top"===n&&u(null):u(null)}var e=t.document;return n&&r.$watch(function(){return i.hash()},function(n,t){n===t&&""===n||fl(function(){r.$evalAsync(f)})}),f}]}function ar(n,t){return!n&&!t?"":n?t?(a(n)&&(n=n.join(" ")),a(t)&&(t=t.join(" ")),n+" "+t):n:t}function ll(n){l(n)&&(n=n.split(" "));var t=rt();return r(n,function(n){n.length&&(t[n]=!0)}),t}function oi(n){return c(n)?n:{}}function al(n,t,i,u){function b(n){try{n.apply(null,ri.call(arguments,1))}finally{if(l--,0===l)for(;w.length;)try{w.pop()()}catch(t){i.error(t)}}}function k(){d();tt()}function d(){n:{try{s=y.state;break n}catch(n){}s=void 0}s=h(s)?null:s;ot(s,nt)&&(s=nt);nt=s}function tt(){(v!==e.url()||a!==s)&&(v=e.url(),a=s,r(it,function(n){n(e.url(),s)}))}var e=this,c=n.location,y=n.history,ut=n.setTimeout,ft=n.clearTimeout,p={},l,w;e.isMock=!1;l=0;w=[];e.$$completeOutstandingRequest=b;e.$$incOutstandingRequestCount=function(){l++};e.notifyWhenNoOutstandingRequests=function(n){0===l?n():w.push(n)};var s,a,v=c.href,et=t.find("base"),g=null;d();a=s;e.url=function(t,i,r){var o,f;return(h(r)&&(r=null),c!==n.location&&(c=n.location),y!==n.history&&(y=n.history),t)?(o=a===r,v===t&&(!u.history||o))?e:(f=v&&si(v)===si(t),v=t,a=r,!u.history||f&&o?((!f||g)&&(g=t),i?c.replace(t):f?(i=c,r=t.indexOf("#"),t=-1===r?"":t.substr(r),i.hash=t):c.href=t):(y[i?"replaceState":"pushState"](r,"",t),d(),a=s),e):g||c.href.replace(/%27/g,"'")};e.state=function(){return s};var it=[],rt=!1,nt=null;e.onUrlChange=function(t){if(!rt){if(u.history)f(n).on("popstate",k);f(n).on("hashchange",k);rt=!0}return it.push(t),t};e.$$applicationDestroyed=function(){f(n).off("hashchange popstate",k)};e.$$checkUrlChange=tt;e.baseHref=function(){var n=et.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};e.defer=function(n,t){var i;return l++,i=ut(function(){delete p[i];b(n)},t||0),p[i]=!0,i};e.defer.cancel=function(n){return p[n]?(delete p[n],ft(n),b(o),!0):!1}}function vl(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new al(n,r,t,i)}]}function yl(){this.$get=function(){function t(t,i){function l(n){n!=f&&(r?r==n&&(r=n.n):r=n,c(n.n,n.p),c(n,f),f=n,f.n=null)}function c(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw v("$cacheFactory")("iid",t);var o=0,a=p({},i,{id:t}),e={},s=i&&i.capacity||Number.MAX_VALUE,u={},f=null,r=null;return n[t]={put:function(n,t){if(!h(t)){if(s<Number.MAX_VALUE){var i=u[n]||(u[n]={key:n});l(i)}return n in e||o++,e[n]=t,o>s&&this.remove(r.key),t}},get:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;l(t)}return e[n]},remove:function(n){if(s<Number.MAX_VALUE){var t=u[n];if(!t)return;t==f&&(f=t.p);t==r&&(r=t.n);c(t.n,t.p);delete u[n]}delete e[n];o--},removeAll:function(){e={};o=0;u={};f=r=null},destroy:function(){u=a=e=null;delete n[t]},info:function(){return p({},a,{size:o})}}}var n={};return t.info=function(){var t={};return r(n,function(n,i){t[i]=n.info()}),t},t.get=function(t){return n[t]},t}}function pl(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function lo(n,u){function b(n,t,i){var f=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,u={};return r(n,function(n,r){var e=n.match(f);if(!e)throw it("iscp",t,r,n,i?"controller bindings definition":"isolate scope definition");u[r]={mode:e[1][0],collection:"*"===e[2],optional:"?"===e[3],attrName:e[4]||r}}),u}function k(n){var t=n.charAt(0);if(!t||t!==y(t))throw it("baddir",n);if(n!==n.trim())throw it("baddir",n);}var v={},d=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,g=/(([\w\-]+)(?:\:([^;]+))?;?)/,nt=bc("ngSrc,ngSrcset,src,srcset"),tt=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,ut=/^(on[a-z]+|formaction)$/,h;this.directive=function ft(t,i){return wi(t,"directive"),l(t)?(k(t),cf(i,"directiveFactory"),v.hasOwnProperty(t)||(v[t]=[],n.factory(t+"Directive",["$injector","$exceptionHandler",function(n,i){var u=[];return r(v[t],function(r,f){var e,v,y,p,w,k;try{e=n.invoke(r);s(e)?e={compile:pt(e)}:!e.compile&&e.link&&(e.compile=pt(e.link));e.priority=e.priority||0;e.index=f;e.name=e.name||t;e.require=e.require||e.controller&&e.name;e.restrict=e.restrict||"EA";var d=e,o=e,a=e.name,h={isolateScope:null,bindToController:null};if(c(o.scope)&&(!0===o.bindToController?(h.bindToController=b(o.scope,a,!0),h.isolateScope={}):h.isolateScope=b(o.scope,a,!1)),c(o.bindToController)&&(h.bindToController=b(o.bindToController,a,!0)),c(h.bindToController)){if(v=o.controller,y=o.controllerAs,!v)throw it("noctrl",a);n:if(y&&l(y))p=y;else{if(l(v)&&(w=yh.exec(v),w)){p=w[3];break n}p=void 0}if(!p)throw it("noident",a);}k=d.$$bindings=h;c(k.isolateScope)&&(e.$$isolateBindings=k.isolateScope);e.$$moduleName=r.$$moduleName;u.push(e)}catch(g){i(g)}}),u}])),v[t].push(i)):r(t,ae(ft)),this};this.aHrefSanitizationWhitelist=function(n){return e(n)?(u.aHrefSanitizationWhitelist(n),this):u.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return e(n)?(u.imgSrcSanitizationWhitelist(n),this):u.imgSrcSanitizationWhitelist()};h=!0;this.debugInfoEnabled=function(n){return e(n)?(h=n,this):h};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(n,u,e,b,k,ft,et,ht,ct,lt,at){function pt(n,t){try{n.addClass(t)}catch(i){}}function vt(n,t,i,u,e){var s,o;return n instanceof f||(n=f(n)),r(n,function(t,i){t.nodeType==gi&&t.nodeValue.match(/\S+/)&&(n[i]=f(t).wrap("<span><\/span>").parent()[0])}),s=ii(n,t,n,i,u,e),vt.$$addScopeClass(n),o=null,function(t,i,r){var u,e,h;if(cf(t,"scope"),r=r||{},u=r.parentBoundTranscludeFn,e=r.transcludeControllers,r=r.futureParentElement,u&&u.$$boundTransclude&&(u=u.$$boundTransclude),o||(o=(r=r&&r[0])?"foreignobject"!==bt(r)&&r.toString().match(/SVG/)?"svg":"html":"html"),r="html"!==o?f(fi(o,f("<div>").append(n).html())):i?ai.clone.call(n):n,e)for(h in e)r.data("$"+h+"Controller",e[h].instance);return vt.$$addScopeInfo(r,t),i&&i(r,t),s&&s(t,r,r,u),r}}function ii(n,t,r,u,e,o){function p(n,r,u,e){var h,l,c,o,p,a,y;if(v)for(y=Array(r.length),o=0;o<s.length;o+=3)h=s[o],y[h]=r[h];else y=r;for(o=0,p=s.length;o<p;)(l=y[s[o++]],r=s[o++],h=s[o++],r)?(r.scope?(c=n.$new(),vt.$$addScopeInfo(f(l),c),a=r.$$destroyBindings)&&(r.$$destroyBindings=null,c.$on("$destroyed",a)):c=n,a=r.transcludeOnThisElement?gt(n,r.transclude,e):!r.templateOnThisElement&&e?e:!e&&t?gt(n,t):null,r(h,c,l,u,a,r)):h&&h(n,l.childNodes,i,e)}for(var s=[],h,l,a,y,v,c=0;c<n.length;c++)h=new oi,l=ui(n[c],[],h,0===c?u:i,e),(o=l.length?ci(l,n[c],h,t,r,null,[],[],o):null)&&o.scope&&vt.$$addScopeClass(h.$$element),h=o&&o.terminal||!(a=n[c].childNodes)||!a.length?null:ii(a,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||h)&&(s.push(c,o,h),y=!0,v=v||o),o=null;return y?p:null}function gt(n,t,i){return function(r,u,f,e,o){return r||(r=n.$new(!1,o),r.$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}}function ui(n,t,i,r,u){var b=i.$attr,e,v,y,p;switch(n.nodeType){case wt:ni(t,dt(bt(n)),"E",r,u);for(var f,o,s,h=n.attributes,a=0,k=h&&h.length;a<k;a++)v=!1,y=!1,f=h[a],e=f.name,o=w(f.value),f=dt(e),(s=hr.test(f))&&(e=e.replace(vh,"").substr(8).replace(/_(.)/g,function(n,t){return t.toUpperCase()})),p=f.replace(/(Start|End)$/,""),nr(p)&&f===p+"Start"&&(v=e,y=e.substr(0,e.length-5)+"end",e=e.substr(0,e.length-6)),f=dt(e.toLowerCase()),b[f]=e,(s||!i.hasOwnProperty(f))&&(i[f]=o,co(n,f)&&(i[f]=!0)),sr(n,t,o,f,s),ni(t,f,"A",r,u,v,y);if(n=n.className,c(n)&&(n=n.animVal),l(n)&&""!==n)for(;e=g.exec(n);)f=dt(e[2]),ni(t,f,"C",r,u)&&(i[f]=w(e[3])),n=n.substr(e.index+e[0].length);break;case gi:if(11===ki)for(;n.parentNode&&n.nextSibling&&n.nextSibling.nodeType===gi;)n.nodeValue+=n.nextSibling.nodeValue,n.parentNode.removeChild(n.nextSibling);ur(t,n.nodeValue);break;case 8:try{(e=d.exec(n.nodeValue))&&(f=dt(e[1]),ni(t,f,"M",r,u)&&(i[f]=w(e[2])))}catch(nt){}}return t.sort(rr),t}function si(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw it("uterdir",t,i);n.nodeType==wt&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(0<u)}else r.push(n);return f(r)}function hi(n,t,i){return function(r,u,f,e,o){return u=si(u[0],t,i),n(r,u,f,e,o)}}function ci(n,r,u,o,h,v,y,p,b){function bi(n,t,i,r){n&&(i&&(n=hi(n,i,r)),n.require=k.require,n.directiveName=ut,(g===k||k.$$isolateScope)&&(n=yi(n,{isolateScope:!0})),y.push(n));t&&(i&&(t=hi(t,i,r)),t.require=k.require,t.directiveName=ut,(g===k||k.$$isolateScope)&&(t=yi(t,{isolateScope:!0})),p.push(t))}function ci(n,t,i,r){var f,e,u;if(l(t)){if(u=t.match(tt),t=t.substring(u[0].length),e=u[1]||u[3],u="?"===u[2],"^^"===e?i=i.parent():f=(f=r&&r[t])&&f.instance,f||(r="$"+t+"Controller",f=e?i.inheritedData(r):i.data(r)),!f&&!u)throw it("ctreq",t,n);}else if(a(t))for(f=[],e=0,u=t.length;e<u;e++)f[e]=ci(n,t[e],i,r);return f||null}function gi(n,t,i,r,u,f){var h=rt(),c;for(c in r){var e=r[c],o={$scope:e===g||e.$$isolateScope?u:f,$element:n,$attrs:t,$transclude:i},s=e.controller;"@"==s&&(s=t[e.name]);o=ft(s,o,!0,e.controllerAs);h[e.name]=o;bt||n.data("$"+e.name+"Controller",o.instance)}return h}function st(n,t,e,o,s,h){function rt(n,t,r){var u;return fr(n)||(r=t,t=n,n=i),bt&&(u=b),r||(r=bt?l.parent():l),s(n,t,u,r,tt)}var a,c,w,v,b,d,l,k,it,nt,tt;if(r===e?(o=u,l=u.$$element):(l=f(e),o=new oi(l,u)),g&&(v=t.$new(!0)),s&&(d=rt,d.$$boundTransclude=s),ht&&(b=gi(l,o,d,ht,v,t)),g&&(vt.$$addScopeInfo(l,v,!0,!(ot&&(ot===g||ot===g.$$originalDirective))),vt.$$addScopeClass(l,!0),v.$$isolateBindings=g.$$isolateBindings,ei(t,o,v,v.$$isolateBindings,g,v)),b){k=g||et;k&&b[k.name]&&(c=k.$$bindings.bindToController,(w=b[k.name])&&w.identifier&&c&&(it=w,h.$$destroyBindings=ei(t,o,w.instance,c,k)));for(a in b)w=b[a],nt=w(),nt!==w.instance&&(w.instance=nt,l.data("$"+a+"Controller",nt),w===it&&(h.$$destroyBindings(),h.$$destroyBindings=ei(t,o,nt,c,k)))}for(a=0,h=y.length;a<h;a++)c=y[a],pi(c,c.isolateScope?v:t,l,o,c.require&&ci(c.directiveName,c.require,l,b),d);for(tt=t,g&&(g.template||null===g.templateUrl)&&(tt=v),n&&n(tt,e.childNodes,i,s),a=p.length-1;0<=a;a--)c=p[a],pi(c,c.isolateScope?v:t,l,o,c.require&&ci(c.directiveName,c.require,l,b),d)}var gt,ii,ki;b=b||{};for(var pt=-Number.MAX_VALUE,et=b.newScopeDirective,ht=b.controllerDirectives,g=b.newIsolateScopeDirective,ot=b.templateDirective,ni=b.nonTlbTranscludeDirective,ai=!1,wi=!1,bt=b.hasElementTranscludeDirective,nt=u.$$element=f(r),k,ut,d,dt=o,lt,ct=0,at=n.length;ct<at;ct++){if(k=n[ct],gt=k.$$start,ii=k.$$end,gt&&(nt=si(r,gt,ii)),d=i,pt>k.priority)break;if((d=k.scope)&&(k.templateUrl||(c(d)?(yt("new/isolated scope",g||et,k,nt),g=k):yt("new/isolated scope",g,k,nt)),et=et||k),ut=k.name,!k.templateUrl&&k.controller&&(d=k.controller,ht=ht||rt(),yt("'"+ut+"' controller",ht[ut],k,nt),ht[ut]=k),(d=k.transclude)&&(ai=!0,k.$$tlb||(yt("transclusion",ni,k,nt),ni=k),"element"==d?(bt=!0,pt=k.priority,d=nt,nt=u.$$element=f(t.createComment(" "+ut+": "+u[ut]+" ")),r=nt[0],ti(h,ri.call(d,0),r),dt=vt(d,o,pt,v&&v.name,{nonTlbTranscludeDirective:ni})):(d=f(lf(r)).contents(),nt.empty(),dt=vt(d,o))),k.template)if(wi=!0,yt("template",ot,k,nt),ot=k,d=s(k.template)?k.template(nt,u):k.template,d=di(d),k.replace){if(v=k,d=ee.test(d)?vo(fi(k.templateNamespace,w(d))):[],r=d[0],1!=d.length||r.nodeType!==wt)throw it("tplrt",ut,"");ti(h,nt,r);at={$attr:{}};d=ui(r,[],at);ki=n.splice(ct+1,n.length-(ct+1));g&&li(d);n=n.concat(d).concat(ki);vi(u,at);at=n.length}else nt.html(d);if(k.templateUrl)wi=!0,yt("template",ot,k,nt),ot=k,k.replace&&(v=k),st=tr(n.splice(ct,n.length-ct),nt,u,h,ai&&dt,y,p,{controllerDirectives:ht,newScopeDirective:et!==k&&et,newIsolateScopeDirective:g,templateDirective:ot,nonTlbTranscludeDirective:ni}),at=n.length;else if(k.compile)try{lt=k.compile(nt,u,dt);s(lt)?bi(null,lt,gt,ii):lt&&bi(lt.pre,lt.post,gt,ii)}catch(nr){e(nr,kt(nt))}k.terminal&&(st.terminal=!0,pt=Math.max(pt,k.priority))}return st.scope=et&&!0===et.scope,st.transcludeOnThisElement=ai,st.templateOnThisElement=wi,st.transclude=dt,b.hasElementTranscludeDirective=bt,st}function li(n){for(var t=0,i=n.length;t<i;t++)n[t]=of(n[t],{$$isolateScope:!0})}function ni(t,r,u,f,o,s,h){var c,l,a;if(r===o)return null;if(o=null,v.hasOwnProperty(r))for(r=n.get(r+"Directive"),l=0,a=r.length;l<a;l++)try{c=r[l];(f===i||f>c.priority)&&-1!=c.restrict.indexOf(u)&&(s&&(c=of(c,{$$start:s,$$end:h})),t.push(c),o=c)}catch(y){e(y)}return o}function nr(t){if(v.hasOwnProperty(t))for(var r=n.get(t+"Directive"),i=0,u=r.length;i<u;i++)if(t=r[i],t.multiElement)return!0;return!1}function vi(n,t){var u=t.$attr,f=n.$attr,i=n.$$element;r(n,function(i,r){"$"!=r.charAt(0)&&(t[r]&&t[r]!==i&&(i+=("style"===r?";":" ")+t[r]),n.$set(r,i,!0,u[r]))});r(t,function(t,r){"class"==r?(pt(i,t),n["class"]=(n["class"]?n["class"]+" ":"")+t):"style"==r?(i.attr("style",i.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):"$"==r.charAt(0)||n.hasOwnProperty(r)||(n[r]=t,f[r]=u[r])})}function tr(n,t,i,u,e,o,h,l){var y=[],v,p,k=t[0],a=n.shift(),g=of(a,{templateUrl:null,transclude:null,replace:null,$$originalDirective:a}),d=s(a.templateUrl)?a.templateUrl(t,i):a.templateUrl,nt=a.templateNamespace;return t.empty(),b(d).then(function(s){var b,rt,tt,ft;if(s=di(s),a.replace){if(s=ee.test(s)?vo(fi(nt,w(s))):[],b=s[0],1!=s.length||b.nodeType!==wt)throw it("tplrt",a.name,d);s={$attr:{}};ti(u,t,b);tt=ui(b,[],s);c(a.scope)&&li(tt);n=tt.concat(n);vi(i,s)}else b=k,t.html(s);for(n.unshift(g),v=ci(n,b,i,e,t,a,o,h,l),r(u,function(n,i){n==b&&(u[i]=t[0])}),p=ii(t[0].childNodes,e);y.length;){s=y.shift();rt=y.shift();var et=y.shift(),ut=y.shift(),tt=t[0];s.$$destroyed||(rt!==k&&(ft=rt.className,l.hasElementTranscludeDirective&&a.replace||(tt=lf(b)),ti(et,f(rt),tt),pt(f(tt),ft)),rt=v.transcludeOnThisElement?gt(s,v.transclude,ut):ut,v(p,s,tt,u,rt,v))}y=null}),function(n,t,i,r,u){n=u;t.$$destroyed||(y?y.push(t,i,r,n):(v.transcludeOnThisElement&&(n=gt(t,v.transclude,u)),v(p,t,i,r,n,v)))}}function rr(n,t){var i=t.priority-n.priority;return 0!==i?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function yt(n,t,i,r){function u(n){return n?" (module: "+n+")":""}if(t)throw it("multidir",t.name,u(t.$$moduleName),i.name,u(i.$$moduleName),n,kt(r));}function ur(n,t){var i=u(t,!0);i&&n.push({priority:0,compile:function(n){n=n.parent();var t=!!n.length;return t&&vt.$$addBindingClass(n),function(n,r){var u=r.parent();t||vt.$$addBindingClass(u);vt.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){r[0].nodeValue=n})}}})}function fi(n,i){n=y(n||"html");switch(n){case"svg":case"math":var r=t.createElement("div");return r.innerHTML="<"+n+">"+i+"<\/"+n+">",r.childNodes[0].childNodes;default:return i}}function er(n,t){if("srcdoc"==t)return ct.HTML;var i=bt(n);if("xlinkHref"==t||"form"==i&&"action"==t||"img"!=i&&("src"==t||"ngSrc"==t))return ct.RESOURCE_URL}function sr(n,t,i,r,f){var o=er(n,r),e;if(f=nt[r]||f,e=u(i,!0,o,f),e){if("multiple"===r&&"select"===bt(n))throw it("selmulti",kt(n));t.push({priority:100,compile:function(){return{pre:function(n,t,s){if(t=s.$$observers||(s.$$observers={}),ut.test(r))throw it("nodomevents");var h=s[r];h!==i&&(e=h&&u(h,!0,o,f),i=h);e&&(s[r]=e(n),(t[r]||(t[r]=[])).$$inter=!0,(s.$$observers&&s.$$observers[r].$$scope||n).$watch(e,function(n,t){"class"===r&&n!=t?s.$updateClass(n,t):s.$set(r,n)}))}}}})}}function ti(n,i,r){var u=i[0],h=i.length,s=u.parentNode,e,o,c;if(n)for(e=0,o=n.length;e<o;e++)if(n[e]==u){for(n[e++]=r,o=e+h-1,c=n.length;e<c;e++,o++)o<c?n[e]=n[o]:delete n[e];n.length-=h-1;n.context===u&&(n.context=r);break}for(s&&s.replaceChild(r,u),n=t.createDocumentFragment(),n.appendChild(u),f.hasData(u)&&(f(r).data(f(u).data()),st?(ue=!0,st.cleanData([u])):delete f.cache[u[f.expando]]),u=1,h=i.length;u<h;u++)s=i[u],f(s).remove(),n.appendChild(s),delete i[u];i[0]=r;i.length=1}function yi(n,t){return p(function(){return n.apply(null,arguments)},n,t)}function pi(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(o){e(o,kt(i))}}function ei(n,t,f,e,s,h){var c;return r(e,function(r,e){var h=r.attrName,l=r.optional,w=r.mode,v,a,p,y;pr.call(t,h)||(t[h]=i);switch(w){case"@":t[h]||l||(f[e]=i);t.$observe(h,function(n){f[e]=n});t.$$observers[h].$$scope=n;t[h]&&(f[e]=u(t[h])(n));break;case"=":if(l&&!t[h])break;a=k(t[h]);y=a.literal?ot:function(n,t){return n===t||n!==n&&t!==t};p=a.assign||function(){v=f[e]=a(n);throw it("nonassign",t[h],s.name);};v=f[e]=a(n);l=function(t){return y(t,f[e])||(y(t,v)?p(n,t=f[e]):f[e]=t),v=t};l.$stateful=!0;l=r.collection?n.$watchCollection(t[h],l):n.$watch(k(t[h],l),null,a.literal);c=c||[];c.push(l);break;case"&":if(a=k(t[h]),a===o&&l)break;f[e]=function(t){return a(n,t)}}}),e=c?function(){for(var n=0,t=c.length;n<t;++n)c[n]()}:o,h&&e!==o?(h.$on("$destroy",e),o):e}var oi=function(n,t){if(t)for(var u=Object.keys(t),r,i=0,f=u.length;i<f;i++)r=u[i],this[r]=t[r];else this.$attr={};this.$$element=n};oi.prototype={$normalize:dt,$addClass:function(n){n&&0<n.length&&lt.addClass(this.$$element,n)},$removeClass:function(n){n&&0<n.length&&lt.removeClass(this.$$element,n)},$updateClass:function(n,t){var i=ao(n,t);i&&i.length&&lt.addClass(this.$$element,i);(i=ao(t,n))&&i.length&&lt.removeClass(this.$$element,i)},$set:function(n,t,u,f){var h=this.$$element[0],s=co(h,n),o=el(h,n),h=n;if(s?(this.$$element.prop(n,t),f=s):o&&(this[o]=t,h=o),this[n]=t,f?this.$attr[n]=f:(f=this.$attr[n])||(this.$attr[n]=f=io(n,"-")),s=bt(this.$$element),"a"===s&&"href"===n||"img"===s&&"src"===n)this[n]=t=at(t,"src"===n);else if("img"===s&&"srcset"===n){for(var s="",o=w(t),c=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,c=/\s/.test(o)?c:/(,)/,o=o.split(c),c=Math.floor(o.length/2),l=0;l<c;l++)var a=2*l,s=s+at(w(o[a]),!0),s=s+(" "+w(o[a+1]));o=w(o[2*l]).split(/\s/);s+=at(w(o[0]),!0);2===o.length&&(s+=" "+w(o[1]));this[n]=t=s}!1!==u&&(null===t||t===i?this.$$element.removeAttr(f):this.$$element.attr(f,t));(n=this.$$observers)&&r(n[h],function(n){try{n(t)}catch(i){e(i)}})},$observe:function(n,t){var i=this,u=i.$$observers||(i.$$observers=rt()),r=u[n]||(u[n]=[]);return r.push(t),et.$evalAsync(function(){!r.$$inter&&i.hasOwnProperty(n)&&t(i[n])}),function(){or(r,t)}}};var wi=u.startSymbol(),bi=u.endSymbol(),di="{{"==wi||"}}"==bi?ir:function(n){return n.replace(/\{\{/g,wi).replace(/}}/g,bi)},hr=/^ngAttr[A-Z]/;return vt.$$addBindingInfo=h?function(n,t){var i=n.data("$binding")||[];a(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:o,vt.$$addBindingClass=h?function(n){pt(n,"ng-binding")}:o,vt.$$addScopeInfo=h?function(n,t,i,r){n.data(i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:o,vt.$$addScopeClass=h?function(n,t){pt(n,t?"ng-isolate-scope":"ng-scope")}:o,vt}]}function dt(n){return cr(n.replace(vh,""))}function ao(n,t){var r="",e=n.split(/\s+/),o=t.split(/\s+/),u=0,f,i;n:for(;u<e.length;u++){for(f=e[u],i=0;i<o.length;i++)if(f==o[i])continue n;r+=(0<r.length?" ":"")+f}return r}function vo(n){n=f(n);var t=n.length;if(1>=t)return n;for(;t--;)8===n[t].nodeType&&hv.call(n,t,1);return n}function wl(){var n={},t=!1;this.register=function(t,i){wi(t,"controller");c(t)?p(n,t):n[t]=i};this.allowGlobals=function(){t=!0};this.$get=["$injector","$window",function(r,u){function f(n,t,i,r){if(!n||!c(n.$scope))throw v("$controller")("noscp",r,t);n.$scope[t]=i}return function(e,o,h,v){var y,w,b;if(h=!0===h,v&&l(v)&&(b=v),l(e)){if(v=e.match(yh),!v)throw fy("ctrlfmt",e);w=v[1];b=b||v[3];e=n.hasOwnProperty(w)?n[w]:ro(o.$scope,w,!0)||(t?ro(u,w,!0):i);pi(e,w,!0)}return h?(h=(a(e)?e[e.length-1]:e).prototype,y=Object.create(h||null),b&&f(o,b,y,w||e.name),p(function(){var n=r.invoke(e,y,o,w);return n!==y&&(c(n)||s(n))&&(y=n,b&&f(o,b,y,w||e.name)),y},{instance:y,identifier:b})):(y=r.instantiate(e,o,w),b&&f(o,b,y,w||e.name),y)}}]}function bl(){this.$get=["$window",function(n){return f(n.document)}]}function kl(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function yf(n){return c(n)?ut(n)?n.toISOString():hr(n):n}function dl(){this.$get=function(){return function(n){if(!n)return"";var t=[];return le(n,function(n,i){null===n||h(n)||(a(n)?r(n,function(n){t.push(lt(i)+"="+lt(yf(n)))}):t.push(lt(i)+"="+lt(yf(n))))}),t.join("&")}}}function gl(){this.$get=function(){return function(n){function t(n,u,f){null===n||h(n)||(a(n)?r(n,function(n){t(n,u+"[]")}):c(n)&&!ut(n)?le(n,function(n,i){t(n,u+(f?"":"[")+i+(f?"":"]"))}):i.push(lt(u)+"="+lt(yf(n))))}if(!n)return"";var i=[];return t(n,"",!0),i.join("&")}}}function pf(n,t){var r,i;return l(n)&&(r=n.replace(sy,"").trim(),r&&(i=t("Content-Type"),(i=i&&0===i.indexOf(ph))||(i=(i=r.match(ey))&&oy[i[0]].test(r)),i&&(n=ke(r)))),n}function yo(n){var t=rt(),i;return l(n)?r(n.split("\n"),function(n){i=n.indexOf(":");var r=y(w(n.substr(0,i)));n=w(n.substr(i+1));r&&(t[r]=t[r]?t[r]+", "+n:n)}):c(n)&&r(n,function(n,i){var r=y(i),u=w(n);r&&(t[r]=t[r]?t[r]+", "+u:u)}),t}function po(n){var t;return function(i){return t||(t=yo(n)),i?(i=t[y(i)],void 0===i&&(i=null),i):t}}function wo(n,t,i,u){return s(u)?u(n,t,i):(r(u,function(r){n=r(n,t,i)}),n)}function na(){var n=this.defaults={transformResponse:[pf],transformRequest:[function(n){return c(n)&&"[object File]"!==ni.call(n)&&"[object Blob]"!==ni.call(n)&&"[object FormData]"!==ni.call(n)?hr(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ct(he),put:ct(he),patch:ct(he)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},t=!1,u;this.useApplyAsync=function(n){return e(n)?(t=!!n,this):t};u=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(f,o,w,b,k,d){function g(t){function o(n){var t=p({},n);return t.data=n.data?wo(n.data,n.headers,n.status,u.transformResponse):n.data,n=n.status,200<=n&&300>n?t:k.reject(t)}function a(n,t){var i,u={};return r(n,function(n,r){s(n)?(i=n(t),null!=i&&(u[r]=i)):u[r]=n}),u}var u,e,c,f;if(!ft.isObject(t))throw v("$http")("badreq",t);for(u=p({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse,paramSerializer:n.paramSerializer},t),u.headers=function(t){var i=n.headers,u=p({},t.headers),r,f,e,i=p({},i.common,i[y(t.method)]);n:for(r in i){f=y(r);for(e in u)if(y(e)===f)continue n;u[r]=i[r]}return a(u,ct(t))}(t),u.method=bu(u.method),u.paramSerializer=l(u.paramSerializer)?d.get(u.paramSerializer):u.paramSerializer,e=[function(t){var u=t.headers,f=wo(t.data,po(u),i,t.transformRequest);return h(f)&&r(u,function(n,t){"content-type"===y(t)&&delete u[t]}),h(t.withCredentials)&&!h(n.withCredentials)&&(t.withCredentials=n.withCredentials),tt(t,f).then(o,o)},i],f=k.when(u),r(nt,function(n){(n.request||n.requestError)&&e.unshift(n.request,n.requestError);(n.response||n.responseError)&&e.push(n.response,n.responseError)});e.length;)t=e.shift(),c=e.shift(),f=f.then(t,c);return f.success=function(n){return pi(n,"fn"),f.then(function(t){n(t.data,t.status,t.headers,u)}),f},f.error=function(n){return pi(n,"fn"),f.then(null,function(t){n(t.data,t.status,t.headers,u)}),f},f}function tt(r,u){function ft(n,i,r,u){function f(){p(i,n,r,u)}v&&(200<=n&&300>n?v.put(y,[n,i,yo(r),u]):v.remove(y));t?b.$applyAsync(f):(f(),b.$$phase||b.$apply())}function p(n,t,i,u){t=Math.max(t,0);(200<=t&&300>t?w.resolve:w.reject)({data:n,status:t,headers:po(i),config:r,statusText:u})}function nt(n){p(n.data,n.status,ct(n.headers()),n.statusText)}function tt(){var n=g.pendingRequests.indexOf(r);-1!==n&&g.pendingRequests.splice(n,1)}var w=k.defer(),d=w.promise,v,l,ut=r.headers,y=it(r.url,r.paramSerializer(r.params));return g.pendingRequests.push(r),d.then(tt,tt),(r.cache||n.cache)&&!1!==r.cache&&("GET"===r.method||"JSONP"===r.method)&&(v=c(r.cache)?r.cache:c(n.cache)?n.cache:rt),v&&(l=v.get(y),e(l)?l&&s(l.then)?l.then(nt,nt):a(l)?p(l[1],l[0],ct(l[2]),l[3]):p(l,200,{},"OK"):v.put(y,d)),h(l)&&((l=ls(r.url)?o()[r.xsrfCookieName||n.xsrfCookieName]:i)&&(ut[r.xsrfHeaderName||n.xsrfHeaderName]=l),f(r.method,y,u,ft,ut,r.timeout,r.withCredentials,r.responseType)),d}function it(n,t){return 0<t.length&&(n+=(-1==n.indexOf("?")?"?":"&")+t),n}var rt=w("$http"),nt;return n.paramSerializer=l(n.paramSerializer)?d.get(n.paramSerializer):n.paramSerializer,nt=[],r(u,function(n){nt.unshift(l(n)?d.get(n):d.invoke(n))}),g.pendingRequests=[],function(){r(arguments,function(n){g[n]=function(t,i){return g(p({},i||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){r(arguments,function(n){g[n]=function(t,i,r){return g(p({},r||{},{method:n,url:t,data:i}))}})}("post","put","patch"),g.defaults=n,g}]}function ta(){return new n.XMLHttpRequest}function ia(){this.$get=["$browser","$window","$document",function(n,t,i){return ra(n,ta,n.defer,t.angular.callbacks,i[0])}]}function ra(n,t,u,f,h){function c(n,t,i){var r=h.createElement("script"),u=null;return r.type="text/javascript",r.src=n,r.async=!0,u=function(n){r.removeEventListener("load",u,!1);r.removeEventListener("error",u,!1);h.body.removeChild(r);r=null;var e=-1,o="unknown";n&&("load"!==n.type||f[t].called||(n={type:"error"}),o=n.type,e="error"===n.type?404:200);i&&i(e,o)},r.addEventListener("load",u,!1),r.addEventListener("error",u,!1),h.body.appendChild(r),u}return function(h,l,a,v,p,w,b,k){function rt(){nt&&nt();d&&d.abort()}function tt(t,r,f,e,s){it!==i&&u.cancel(it);nt=d=null;t(r,f,e,s);n.$$completeOutstandingRequest(o)}var g,nt,d,it;if(n.$$incOutstandingRequestCount(),l=l||n.url(),"jsonp"==y(h))g="_"+(f.counter++).toString(36),f[g]=function(n){f[g].data=n;f[g].called=!0},nt=c(l.replace("JSON_CALLBACK","angular.callbacks."+g),g,function(n,t){tt(v,n,f[g].data,"",t);f[g]=o});else{if(d=t(),d.open(h,l,!0),r(p,function(n,t){e(n)&&d.setRequestHeader(t,n)}),d.onload=function(){var i=d.statusText||"",t="response"in d?d.response:d.responseText,n=1223===d.status?204:d.status;0===n&&(n=t?200:"file"==ii(l).protocol?404:0);tt(v,n,t,d.getAllResponseHeaders(),i)},h=function(){tt(v,-1,null,null,"")},d.onerror=h,d.onabort=h,b&&(d.withCredentials=!0),k)try{d.responseType=k}catch(ut){if("json"!==k)throw ut;}d.send(a)}0<w?it=u(rt,w):w&&s(w.then)&&w.then(rt)}}function ua(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,r,u){function o(n){return"\\\\\\"+n}function c(i){return i.replace(v,n).replace(y,t)}function f(f,o,v,y){function ut(n){var i,t;try{if(i=n,n=v?u.getTrusted(v,i):u.valueOf(i),y&&!e(n))t=n;else if(null==n)t="";else{switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=hr(n)}t=n}return t}catch(o){r(yi.interr(f,o))}}var tt;y=!!y;for(var k,g,w=0,d=[],nt=[],it=f.length,b=[],rt=[];w<it;)if(-1!=(k=f.indexOf(n,w))&&-1!=(g=f.indexOf(t,k+l)))w!==k&&b.push(c(f.substring(w,k))),w=f.substring(k+l,g),d.push(w),nt.push(i(w,ut)),w=g+a,rt.push(b.length),b.push("");else{w!==it&&b.push(c(f.substring(w)));break}return v&&1<b.length&&yi.throwNoconcat(f),!o||d.length?(tt=function(n){for(var t=0,i=d.length;t<i;t++){if(y&&h(n[t]))return;b[rt[t]]=n[t]}return b.join("")},p(function(n){var t=0,i=d.length,u=Array(i);try{for(;t<i;t++)u[t]=nt[t](n);return tt(u)}catch(e){r(yi.interr(f,e))}},{exp:f,expressions:d,$$watchDelegate:function(n,t){var i;return n.$watchGroup(nt,function(r,u){var f=tt(r);s(t)&&t.call(this,f,r!==u?i:f,n);i=f})}})):void 0}var l=n.length,a=t.length,v=new RegExp(n.replace(/./g,o),"g"),y=new RegExp(t.replace(/./g,o),"g");return f.startSymbol=function(){return n},f.endSymbol=function(){return t},f}]}function fa(){this.$get=["$rootScope","$window","$q","$$q",function(n,t,i,r){function f(f,o,s,h){var v=4<arguments.length,p=v?ri.call(arguments,4):[],w=t.setInterval,b=t.clearInterval,a=0,y=e(h)&&!h,l=(y?r:i).defer(),c=l.promise;return s=e(s)?s:0,c.then(null,null,v?function(){f.apply(null,p)}:f),c.$$intervalId=w(function(){l.notify(a++);0<s&&a>=s&&(l.resolve(a),b(c.$$intervalId),delete u[c.$$intervalId]);y||n.$apply()},o),u[c.$$intervalId]=l,c}var u={};return f.cancel=function(n){return n&&n.$$intervalId in u?(u[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete u[n.$$intervalId],!0):!1},f}]}function ea(){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",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(n){return 1===n?"one":"other"}}}}function wf(n){n=n.split("/");for(var t=n.length;t--;)n[t]=tu(n[t]);return n.join("/")}function bo(n,t){var i=ii(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=tt(i.port)||cy[i.protocol]||null}function ko(n,t){var r="/"!==n.charAt(0),i;r&&(n="/"+n);i=ii(n);t.$$path=decodeURIComponent(r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname);t.$$search=no(i.search);t.$$hash=decodeURIComponent(i.hash);t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function gt(n,t){if(0===t.indexOf(n))return t.substr(n.length)}function si(n){var t=n.indexOf("#");return-1==t?n:n.substr(0,t)}function cu(n){return n.replace(/(#.+)|#$/,"$1")}function bf(n){return n.substr(0,si(n).lastIndexOf("/")+1)}function kf(n,t){this.$$html5=!0;t=t||"";var r=bf(n);bo(n,this);this.$$parse=function(n){var t=gt(r,n);if(!l(t))throw gu("ipthprfx",n,r);ko(t,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=hf(this.$$search),t=this.$$hash?"#"+tu(this.$$hash):"";this.$$url=wf(this.$$path)+(n?"?"+n:"")+t;this.$$absUrl=r+this.$$url.substr(1)};this.$$parseLinkUrl=function(u,f){if(f&&"#"===f[0])return this.hash(f.slice(1)),!0;var e,o;return(e=gt(n,u))!==i?(o=e,o=(e=gt(t,e))!==i?r+(gt("/",e)||e):n+o):(e=gt(r,u))!==i?o=r+e:r==u+"/"&&(o=r),o&&this.$$parse(o),!!o}}function df(n,t){var i=bf(n);bo(n,this);this.$$parse=function(r){var f=gt(n,r)||gt(i,r),u,e;h(f)||"#"!==f.charAt(0)?this.$$html5?u=f:(u="",h(f)&&(n=r,this.replace())):(u=gt(t,f),h(u)&&(u=f));ko(u,this);r=this.$$path;f=n;e=/^\/[A-Z]:(\/.*)/;0===u.indexOf(f)&&(u=u.replace(f,""));e.exec(u)||(r=(u=e.exec(r))?u[1]:r);this.$$path=r;this.$$compose()};this.$$compose=function(){var i=hf(this.$$search),r=this.$$hash?"#"+tu(this.$$hash):"";this.$$url=wf(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+(this.$$url?t+this.$$url:"")};this.$$parseLinkUrl=function(t){return si(n)==si(t)?(this.$$parse(t),!0):!1}}function go(n,t){this.$$html5=!0;df.apply(this,arguments);var i=bf(n);this.$$parseLinkUrl=function(r,u){if(u&&"#"===u[0])return this.hash(u.slice(1)),!0;var f,e;return n==si(r)?f=r:(e=gt(i,r))?f=n+t+e:i===r+"/"&&(f=i),f&&this.$$parse(f),!!f};this.$$compose=function(){var i=hf(this.$$search),r=this.$$hash?"#"+tu(this.$$hash):"";this.$$url=wf(this.$$path)+(i?"?"+i:"")+r;this.$$absUrl=n+t+this.$$url}}function lu(n){return function(){return this[n]}}function ns(n,t){return function(i){return h(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function oa(){var t="",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return e(n)?(t=n,this):t};this.html5Mode=function(t){return er(t)?(n.enabled=t,this):c(t)?(er(t.enabled)&&(n.enabled=t.enabled),er(t.requireBase)&&(n.requireBase=t.requireBase),er(t.rewriteLinks)&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,r,u,e,o){function y(n,t,i){var u=s.url(),f=s.$$state;try{r.url(n,t,i);s.$$state=r.state()}catch(e){throw s.url(u),s.$$state=f,e;}}function p(n,t){i.$broadcast("$locationChangeSuccess",s.absUrl(),n,s.$$state,t)}var s,l,h,v,w,a;if(l=r.baseHref(),h=r.url(),n.enabled){if(!l&&n.requireBase)throw gu("nobase");v=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(l||"/");l=u.history?kf:go}else v=si(h),l=df;s=new l(v,"#"+t);s.$$parseLinkUrl(h,h);s.$$state=r.state();w=/^\s*(javascript|mailto):/i;e.on("click",function(t){var u,h,l;if(n.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(u=f(t.target);"a"!==bt(u[0]);)if(u[0]===e[0]||!(u=u.parent())[0])return;h=u.prop("href");l=u.attr("href")||u.attr("xlink:href");c(h)&&"[object SVGAnimatedString]"===h.toString()&&(h=ii(h.animVal).href);w.test(h)||!h||u.attr("target")||t.isDefaultPrevented()||!s.$$parseLinkUrl(h,l)||(t.preventDefault(),s.absUrl()!=r.url()&&(i.$apply(),o.angular["ff-684208-preventDefault"]=!0))}});cu(s.absUrl())!=cu(h)&&r.url(s.absUrl(),!0);a=!0;r.onUrlChange(function(n,t){i.$evalAsync(function(){var r=s.absUrl(),u=s.$$state,f;s.$$parse(n);s.$$state=t;f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented;s.absUrl()===n&&(f?(s.$$parse(r),s.$$state=u,y(r,!1,u)):(a=!1,p(r,u)))});i.$$phase||i.$digest()});return i.$watch(function(){var t=cu(r.url()),e=cu(s.absUrl()),n=r.state(),o=s.$$replace,f=t!==e||s.$$html5&&u.history&&n!==s.$$state;(a||f)&&(a=!1,i.$evalAsync(function(){var r=s.absUrl(),u=i.$broadcast("$locationChangeStart",r,t,s.$$state,n).defaultPrevented;s.absUrl()===r&&(u?(s.$$parse(t),s.$$state=n):(f&&y(r,o,n===s.$$state?null:s.$$state),p(t,n)))}));s.$$replace=!1}),s}]}function sa(){var n=!0,t=this;this.debugEnabled=function(t){return e(t)?(n=t,this):n};this.$get=["$window",function(i){function f(n){return n instanceof Error&&(n.stack?n=n.message&&-1===n.stack.indexOf(n.message)?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var t=i.console||{},u=t[n]||t.log||o;n=!1;try{n=!!u.apply}catch(e){}return n?function(){var n=[];return r(arguments,function(t){n.push(f(t))}),u.apply(t,n)}:function(n,t){u(n,null==t?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var i=u("debug");return function(){n&&i.apply(t,arguments)}}()}}]}function ti(n,t){if("__defineGetter__"===n||"__defineSetter__"===n||"__lookupGetter__"===n||"__lookupSetter__"===n||"__proto__"===n)throw et("isecfld",t);return n}function at(n,t){if(n){if(n.constructor===n)throw et("isecfn",t);if(n.window===n)throw et("isecwindow",t);if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw et("isecdom",t);if(n===Object)throw et("isecobj",t);}return n}function ts(n,t){if(n){if(n.constructor===n)throw et("isecfn",t);if(n===ay||n===vy||n===yy)throw et("isecff",t);}}function ha(n,t){return"undefined"!=typeof n?n:t}function is(n,t){return"undefined"==typeof n?t:"undefined"==typeof t?n:n+t}function d(n,t){var i,f;switch(n.type){case u.Program:i=!0;r(n.body,function(n){d(n.expression,t);i=i&&n.expression.constant});n.constant=i;break;case u.Literal:n.constant=!0;n.toWatch=[];break;case u.UnaryExpression:d(n.argument,t);n.constant=n.argument.constant;n.toWatch=n.argument.toWatch;break;case u.BinaryExpression:d(n.left,t);d(n.right,t);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.left.toWatch.concat(n.right.toWatch);break;case u.LogicalExpression:d(n.left,t);d(n.right,t);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.constant?[]:[n];break;case u.ConditionalExpression:d(n.test,t);d(n.alternate,t);d(n.consequent,t);n.constant=n.test.constant&&n.alternate.constant&&n.consequent.constant;n.toWatch=n.constant?[]:[n];break;case u.Identifier:n.constant=!1;n.toWatch=[n];break;case u.MemberExpression:d(n.object,t);n.computed&&d(n.property,t);n.constant=n.object.constant&&(!n.computed||n.property.constant);n.toWatch=[n];break;case u.CallExpression:i=n.filter?!t(n.callee.name).$stateful:!1;f=[];r(n.arguments,function(n){d(n,t);i=i&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=i;n.toWatch=n.filter&&!t(n.callee.name).$stateful?f:[n];break;case u.AssignmentExpression:d(n.left,t);d(n.right,t);n.constant=n.left.constant&&n.right.constant;n.toWatch=[n];break;case u.ArrayExpression:i=!0;f=[];r(n.elements,function(n){d(n,t);i=i&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=i;n.toWatch=f;break;case u.ObjectExpression:i=!0;f=[];r(n.properties,function(n){d(n.value,t);i=i&&n.value.constant;n.value.constant||f.push.apply(f,n.value.toWatch)});n.constant=i;n.toWatch=f;break;case u.ThisExpression:n.constant=!1;n.toWatch=[]}}function rs(n){if(1==n.length){n=n[0].expression;var t=n.toWatch;return 1!==t.length?t:t[0]!==n?t:i}}function us(n){return n.type===u.Identifier||n.type===u.MemberExpression}function fs(n){if(1===n.body.length&&us(n.body[0].expression))return{type:u.AssignmentExpression,left:n.body[0].expression,right:{type:u.NGValueParameter},operator:"="}}function es(n){return 0===n.body.length||1===n.body.length&&(n.body[0].expression.type===u.Literal||n.body[0].expression.type===u.ArrayExpression||n.body[0].expression.type===u.ObjectExpression)}function os(n,t){this.astBuilder=n;this.$filter=t}function ss(n,t){this.astBuilder=n;this.$filter=t}function au(n,t,i,r){var u,e,f;for(at(n,r),t=t.split("."),e=0;1<t.length;e++)u=ti(t.shift(),r),f=at(n[u],r),f||(f={},n[u]=f),n=f;return u=ti(t.shift(),r),at(n[u],r),n[u]=i}function vu(n){return"constructor"==n}function gf(n){return s(n.valueOf)?n.valueOf():py.call(n)}function ca(){var n=rt(),t=rt();this.$get=["$filter","$sniffer",function(u,f){function h(n,t){return null==n||null==t?n===t:"object"==typeof n&&(n=gf(n),"object"==typeof n)?!1:n===t||n!==n&&t!==t}function c(n,t,r,u,f){var e=u.inputs,o,c;if(1===e.length)return c=h,e=e[0],n.$watch(function(n){var t=e(n);return h(t,c)||(o=u(n,i,i,[t]),c=t&&gf(t)),o},t,r,f);for(var l=[],a=[],s=0,v=e.length;s<v;s++)l[s]=h,a[s]=null;return n.$watch(function(n){for(var r,f=!1,t=0,s=e.length;t<s;t++)r=e[t](n),(f||(f=!h(r,l[t])))&&(a[t]=r,l[t]=r&&gf(r));return f&&(o=u(n,i,i,a)),o},t,r,f)}function l(n,t,i,r){var u,f;return u=n.$watch(function(n){return r(n)},function(n,i,r){f=n;s(t)&&t.apply(this,arguments);e(n)&&r.$$postDigest(function(){e(f)&&u()})},i)}function a(n,t,i,u){function f(n){var t=!0;return r(n,function(n){e(n)||(t=!1)}),t}var o,h;return o=n.$watch(function(n){return u(n)},function(n,i,r){h=n;s(t)&&t.call(this,n,i,r);f(n)&&r.$$postDigest(function(){f(h)&&o()})},i)}function y(n,t,i,r){var u;return u=n.$watch(function(n){return r(n)},function(){s(t)&&t.apply(this,arguments);u()},i)}function v(n,t){if(!t)return n;var i=n.$$watchDelegate,i=i!==a&&i!==l?function(i,r,u,f){return u=n(i,r,u,f),t(u,i,r)}:function(i,r,u,f){return u=n(i,r,u,f),i=t(u,i,r),e(u)?i:u};return n.$$watchDelegate&&n.$$watchDelegate!==c?i.$$watchDelegate=n.$$watchDelegate:t.$stateful||(i.$$watchDelegate=c,i.inputs=n.inputs?n.inputs:[n]),i}var p={csp:f.csp,expensiveChecks:!1},w={csp:f.csp,expensiveChecks:!0};return function(i,r,f){var e,b,s,h;switch(typeof i){case"string":return s=i=i.trim(),h=f?t:n,e=h[s],e||(":"===i.charAt(0)&&":"===i.charAt(1)&&(b=!0,i=i.substring(2)),f=f?w:p,e=new tf(f),e=new rf(e,u,f).parse(i),e.constant?e.$$watchDelegate=y:b?e.$$watchDelegate=e.literal?a:l:e.inputs&&(e.$$watchDelegate=c),h[s]=e),v(e,r);case"function":return v(i,r);default:return o}}}]}function la(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return hs(function(t){n.$evalAsync(t)},t)}]}function aa(){this.$get=["$browser","$exceptionHandler",function(n,t){return hs(function(t){n.defer(t)},t)}]}function hs(n,t){function k(n,t,i){function r(t){return function(i){u||(u=!0,t.call(n,i))}}var u=!1;return[r(t),r(i)]}function y(){this.$$state={status:0}}function o(n,t){return function(i){t.call(n,i)}}function h(r){!r.processScheduled&&r.pending&&(r.processScheduled=!0,n(function(){var e,n,f,u,o;for(f=r.pending,r.processScheduled=!1,r.pending=i,u=0,o=f.length;u<o;++u){n=f[u][0];e=f[u][r.status];try{s(e)?n.resolve(e(r.value)):1===r.status?n.resolve(r.value):n.reject(r.value)}catch(h){n.reject(h);t(h)}}}))}function u(){this.promise=new y;this.resolve=o(this,this.resolve);this.reject=o(this,this.reject);this.notify=o(this,this.notify)}var p=v("$q",TypeError);y.prototype={then:function(n,t,i){var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,n,t,i]),0<this.$$state.status&&h(this.$$state),r.promise},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return w(t,!0,n)},function(t){return w(t,!1,n)},t)}};u.prototype={resolve:function(n){this.promise.$$state.status||(n===this.promise?this.$$reject(p("qcycle",n)):this.$$resolve(n))},$$resolve:function(n){var i,r=k(this,this.$$resolve,this.$$reject);try{(c(n)||s(n))&&(i=n&&n.then);s(i)?(this.promise.$$state.status=-1,i.call(n,r[0],r[1],this.notify)):(this.promise.$$state.value=n,this.promise.$$state.status=1,h(this.promise.$$state))}catch(u){r[1](u);t(u)}},reject:function(n){this.promise.$$state.status||this.$$reject(n)},$$reject:function(n){this.promise.$$state.value=n;this.promise.$$state.status=2;h(this.promise.$$state)},notify:function(i){var r=this.promise.$$state.pending;0>=this.promise.$$state.status&&r&&r.length&&n(function(){for(var u,f,n=0,e=r.length;n<e;n++){f=r[n][0];u=r[n][3];try{f.notify(s(u)?u(i):i)}catch(o){t(o)}}})}};var e=function(n,t){var i=new u;return t?i.resolve(n):i.reject(n),i.promise},w=function(n,t,i){var r=null;try{s(i)&&(r=i())}catch(u){return e(u,!1)}return r&&s(r.then)?r.then(function(){return e(n,t)},function(n){return e(n,!1)}):e(n,t)},l=function(n,t,i,r){var f=new u;return f.resolve(n),f.promise.then(t,i,r)},f=function b(n){if(!s(n))throw p("norslvr",n);if(!(this instanceof b))return new b(n);var t=new u;return n(function(n){t.resolve(n)},function(n){t.reject(n)}),t.promise};return f.defer=function(){return new u},f.reject=function(n){var t=new u;return t.reject(n),t.promise},f.when=l,f.resolve=l,f.all=function(n){var i=new u,f=0,t=a(n)?[]:{};return r(n,function(n,r){f++;l(n).then(function(n){t.hasOwnProperty(r)||(t[r]=n,--f||i.resolve(t))},function(n){t.hasOwnProperty(r)||i.reject(n)})}),0===f&&i.resolve(t),i.promise},f}function va(){this.$get=["$window","$timeout",function(n,t){function s(){for(var t,n=0;n<i.length;n++)t=i[n],t&&(i[n]=null,t());u=i.length=0}function f(n){var t=i.length;return u++,i.push(n),0===t&&(r=c(s)),function(){0<=t&&(t=i[t]=null,0==--u&&r&&(r(),r=null,i.length=0))}}var e=n.requestAnimationFrame||n.webkitRequestAnimationFrame,h=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,o=!!e,c=o?function(n){var t=e(n);return function(){h(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}},r,u,i;return f.supported=o,u=0,i=[],f}]}function ya(){function f(n){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++ku;this.$$ChildScope=null}return t.prototype=n,t}var i=10,u=v("$rootScope"),n=null,t=null;this.digestTtl=function(n){return arguments.length&&(i=n),i};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(e,l,a,v){function rt(n){n.currentScope.$$destroyed=!0}function w(){this.$id=++ku;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function g(n){if(y.$$phase)throw u("inprog",y.$$phase);y.$$phase=n}function b(n,t){do n.$$watchersCount+=t;while(n=n.$parent)}function nt(n,t,i){do n.$$listenerCount[i]-=t,0===n.$$listenerCount[i]&&delete n.$$listenerCount[i];while(n=n.$parent)}function tt(){}function it(){for(;d.length;)try{d.shift()()}catch(n){l(n)}t=null}function ut(){null===t&&(t=v.defer(function(){y.$apply(it)}))}w.prototype={constructor:w,$new:function(n,t){var i;return t=t||this,n?(i=new w,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=f(this)),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,(n||t!=this)&&i.$on("$destroy",rt),i},$watch:function(t,i,r,u){var f=a(t);if(f.$$watchDelegate)return f.$$watchDelegate(this,i,r,f,t);var h=this,e=h.$$watchers,c={fn:i,last:tt,get:f,exp:u||t,eq:!!r};return n=null,s(i)||(c.fn=o),e||(e=h.$$watchers=[]),e.unshift(c),b(this,1),function(){0<=or(e,c)&&b(h,-1);n=null}},$watchGroup:function(n,t){function c(){o=!1;h?(h=!1,t(i,i,u)):t(i,f,u)}var f=Array(n.length),i=Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?1===n.length?this.$watch(n[0],function(n,r,u){i[0]=n;f[0]=r;t(i,n===r?i:f,u)}):(r(n,function(n,t){var r=u.$watch(n,function(n,r){i[t]=n;f[t]=r;o||(o=!0,u.$evalAsync(c))});e.push(r)}),function(){for(;e.length;)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&t(i,i,u)}),function(){s=!1})},$watchCollection:function(n,t){function o(n){i=n;var t,s,e,o;if(!h(i)){if(c(i))if(fi(i))for(r!==l&&(r=l,f=r.length=0,u++),n=i.length,f!==n&&(u++,r.length=f=n),t=0;t<n;t++)o=r[t],e=i[t],s=o!==o&&e!==e,s||o===e||(u++,r[t]=e);else{r!==v&&(r=v={},f=0,u++);n=0;for(t in i)i.hasOwnProperty(t)&&(n++,e=i[t],o=r[t],t in r?(s=o!==o&&e!==e,s||o===e||(u++,r[t]=e)):(f++,r[t]=e,u++));if(f>n)for(t in u++,r)i.hasOwnProperty(t)||(f--,delete r[t])}else r!==i&&(r=i,u++);return u}}o.$stateful=!0;var s=this,i,r,e,p=1<t.length,u=0,w=a(n,o),l=[],v={},y=!0,f=0;return this.$watch(w,function(){if(y?(y=!1,t(i,i,s)):t(i,e,s),p)if(c(i))if(fi(i)){e=Array(i.length);for(var n=0;n<i.length;n++)e[n]=i[n]}else for(n in e={},i)pr.call(i,n)&&(e[n]=i[n]);else e=i})},$digest:function(){var r,e,o,h,d,c,nt=i,f,a=[],w,b;g("$digest");v.$$checkUrlChange();this===y&&null!==t&&(v.defer.cancel(t),it());n=null;do{for(c=!1,f=this;p.length;){try{b=p.shift();b.scope.$eval(b.expression,b.locals)}catch(rt){l(rt)}n=null}n:do{if(h=f.$$watchers)for(d=h.length;d--;)try{if(r=h[d])if((e=r.get(f))===(o=r.last)||(r.eq?ot(e,o):"number"==typeof e&&"number"==typeof o&&isNaN(e)&&isNaN(o))){if(r===n){c=!1;break n}}else c=!0,n=r,r.last=r.eq?ht(e,null):e,r.fn(e,o===tt?e:o,f),5>nt&&(w=4-nt,a[w]||(a[w]=[]),a[w].push({msg:s(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:e,oldVal:o}))}catch(ut){l(ut)}if(!(h=f.$$watchersCount&&f.$$childHead||f!==this&&f.$$nextSibling))for(;f!==this&&!(h=f.$$nextSibling);)f=f.$parent}while(f=h);if((c||p.length)&&!nt--)throw y.$$phase=null,u("infdig",i,a);}while(c||p.length);for(y.$$phase=null;k.length;)try{k.shift()()}catch(ft){l(ft)}},$destroy:function(){var n,t;if(!this.$$destroyed){n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===y&&v.$$applicationDestroyed();b(this,-this.$$watchersCount);for(t in this.$$listenerCount)nt(this,this.$$listenerCount[t],t);n&&n.$$childHead==this&&(n.$$childHead=this.$$nextSibling);n&&n.$$childTail==this&&(n.$$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=o;this.$on=this.$watch=this.$watchGroup=function(){return o};this.$$listeners={};this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(n,t){return a(n)(this,t)},$evalAsync:function(n,t){y.$$phase||p.length||v.defer(function(){p.length&&y.$digest()});p.push({scope:this,expression:n,locals:t})},$$postDigest:function(n){k.push(n)},$apply:function(n){try{return g("$apply"),this.$eval(n)}catch(i){l(i)}finally{y.$$phase=null;try{y.$digest()}catch(t){throw l(t),t;}}},$applyAsync:function(n){function t(){i.$eval(n)}var i=this;n&&d.push(t);ut()},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=r.indexOf(t);-1!==i&&(r[i]=null,nt(u,1,n))}},$emit:function(n){var o=[],u,r=this,e=!1,t={name:n,targetScope:r,stopPropagation:function(){e=!0},preventDefault:function(){t.defaultPrevented=!0},defaultPrevented:!1},s=sr([t],arguments,1),i,f;do{for(u=r.$$listeners[n]||o,t.currentScope=r,i=0,f=u.length;i<f;i++)if(u[i])try{u[i].apply(null,s)}catch(h){l(h)}else u.splice(i,1),i--,f--;if(e)return t.currentScope=null,t;r=r.$parent}while(r);return t.currentScope=null,t},$broadcast:function(n){var t=this,i=this,u={name:n,targetScope:this,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},e,r,f;if(!this.$$listenerCount[n])return u;for(e=sr([u],arguments,1);t=i;){for(u.currentScope=t,i=t.$$listeners[n]||[],r=0,f=i.length;r<f;r++)if(i[r])try{i[r].apply(null,e)}catch(o){l(o)}else i.splice(r,1),r--,f--;if(!(i=t.$$listenerCount[n]&&t.$$childHead||t!==this&&t.$$nextSibling))for(;t!==this&&!(i=t.$$nextSibling);)t=t.$parent}return u.currentScope=null,u}};var y=new w,p=y.$$asyncQueue=[],k=y.$$postDigestQueue=[],d=y.$$applyAsyncQueue=[];return y}]}function pa(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return e(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return e(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return u=ii(i).href,""===u||u.match(f)?i:"unsafe:"+u}}}function wa(n){if("self"===n)return n;if(l(n)){if(-1<n.indexOf("***"))throw ui("iwcard",n);return n=oh(n).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+n+"$")}if(rr(n))return new RegExp("^"+n.source+"$");throw ui("imatcher");}function cs(n){var t=[];return e(n)&&r(n,function(n){t.push(wa(n))}),t}function ba(){this.SCE_CONTEXTS=yt;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=cs(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=cs(n)),t};this.$get=["$injector",function(r){function o(n,t){return"self"===n?ls(t):!!n.exec(t.href)}function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}var s=function(){throw ui("unsafe");},e,u;return r.has("$sanitize")&&(s=r.get("$sanitize")),e=f(),u={},u[yt.HTML]=f(e),u[yt.CSS]=f(e),u[yt.URL]=f(e),u[yt.JS]=f(e),u[yt.RESOURCE_URL]=f(u[yt.URL]),{trustAs:function(n,t){var r=u.hasOwnProperty(n)?u[n]:null;if(!r)throw ui("icontext",n,t);if(null===t||t===i||""===t)return t;if("string"!=typeof t)throw ui("itype",n);return new r(t)},getTrusted:function(r,f){var h,e,l,c;if(null===f||f===i||""===f)return f;if(h=u.hasOwnProperty(r)?u[r]:null,h&&f instanceof h)return f.$$unwrapTrustedValue();if(r===yt.RESOURCE_URL){for(h=ii(f.toString()),c=!1,e=0,l=n.length;e<l;e++)if(o(n[e],h)){c=!0;break}if(c)for(e=0,l=t.length;e<l;e++)if(o(t[e],h)){c=!1;break}if(c)return f;throw ui("insecurl",f.toString());}if(r===yt.HTML)return s(f);throw ui("unsafe");},valueOf:function(n){return n instanceof e?n.$$unwrapTrustedValue():n}}}]}function ka(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(t,i){var u;if(n&&8>ki)throw ui("iequirks");u=ct(yt);u.isEnabled=function(){return n};u.trustAs=i.trustAs;u.getTrusted=i.getTrusted;u.valueOf=i.valueOf;n||(u.trustAs=u.getTrusted=function(n,t){return t},u.valueOf=ir);u.parseAs=function(n,i){var r=t(i);return r.literal&&r.constant?r:t(i,function(t){return u.getTrusted(n,t)})};var f=u.parseAs,e=u.getTrusted,o=u.trustAs;return r(yt,function(n,t){var i=y(t);u[cr("parse_as_"+i)]=function(t){return f(n,t)};u[cr("get_trusted_"+i)]=function(t){return e(n,t)};u[cr("trust_as_"+i)]=function(t){return o(n,t)}}),u}]}function da(){this.$get=["$window","$document",function(n,t){var e={},o=tt((/android (\d+)/.exec(y((n.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((n.navigator||{}).userAgent),s=t[0]||{},i,r=s.body&&s.body.style,u=!1,f=!1,c;if(r){for(c in r)if(u=/^(Moz|webkit|ms)(?=[A-Z])/.exec(c)){i=u[0];i=i.substr(0,1).toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in r&&"webkit");u=!!("transition"in r||i+"Transition"in r);f=!!("animation"in r||i+"Animation"in r);!o||u&&f||(u=l(r.webkitTransition),f=l(r.webkitAnimation))}return{history:!(!n.history||!n.history.pushState||4>o||a),hasEvent:function(n){if("input"===n&&11>=ki)return!1;if(h(e[n])){var t=s.createElement("div");e[n]="on"+n in t}return e[n]},csp:br(),vendorPrefix:i,transitions:u,animations:f,android:o}}]}function ga(){this.$get=["$templateCache","$http","$q","$sce",function(n,t,i,r){function u(f,e){u.totalPendingRequests++;l(f)&&n.get(f)||(f=r.getTrustedResourceUrl(f));var o=t.defaults&&t.defaults.transformResponse;return a(o)?o=o.filter(function(n){return n!==pf}):o===pf&&(o=null),t.get(f,{cache:n,transformResponse:o})["finally"](function(){u.totalPendingRequests--}).then(function(t){return n.put(f,t.data),t.data},function(n){if(!e)throw it("tpload",f,n.status,n.statusText);return i.reject(n)})}return u.totalPendingRequests=0,u}]}function nv(){this.$get=["$rootScope","$browser","$location",function(n,t,i){return{findBindings:function(n,t,i){n=n.getElementsByClassName("ng-binding");var u=[];return r(n,function(n){var f=ft.element(n).data("$binding");f&&r(f,function(r){i?new RegExp("(^|\\s)"+oh(t)+"(\\s|\\||$)").test(r)&&u.push(n):-1!=r.indexOf(t)&&u.push(n)})}),u},findModels:function(n,t,i){for(var f,u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r)if(f=n.querySelectorAll("["+u[r]+"model"+(i?"=":"*=")+'"'+t+'"]'),f.length)return f},getLocation:function(){return i.url()},setLocation:function(t){t!==i.url()&&(i.url(t),n.$digest())},whenStable:function(n){t.notifyWhenNoOutstandingRequests(n)}}}]}function tv(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,r,u){function h(h,c,l){s(h)||(l=c,c=h,h=o);var w=ri.call(arguments,3),p=e(l)&&!l,a=(p?r:i).defer(),v=a.promise,y;return y=t.defer(function(){try{a.resolve(h.apply(null,w))}catch(t){a.reject(t);u(t)}finally{delete f[v.$$timeoutId]}p||n.$apply()},c),v.$$timeoutId=y,f[y]=a,v}var f={};return h.cancel=function(n){return n&&n.$$timeoutId in f?(f[n.$$timeoutId].reject("canceled"),delete f[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},h}]}function ii(n){return ki&&(nt.setAttribute("href",n),n=nt.href),nt.setAttribute("href",n),{href:nt.href,protocol:nt.protocol?nt.protocol.replace(/:$/,""):"",host:nt.host,search:nt.search?nt.search.replace(/^\?/,""):"",hash:nt.hash?nt.hash.replace(/^#/,""):"",hostname:nt.hostname,port:nt.port,pathname:"/"===nt.pathname.charAt(0)?nt.pathname:"/"+nt.pathname}}function ls(n){return n=l(n)?ii(n):n,n.protocol===bh.protocol&&n.host===bh.host}function iv(){this.$get=pt(n)}function as(n){function u(n){try{return decodeURIComponent(n)}catch(t){return n}}var f=n[0]||{},t={},r="";return function(){var n,e,o,s,h;if(n=f.cookie||"",n!==r)for(r=n,n=r.split("; "),t={},o=0;o<n.length;o++)e=n[o],s=e.indexOf("="),0<s&&(h=u(e.substring(0,s)),t[h]===i&&(t[h]=u(e.substring(s+1))));return t}}function rv(){this.$get=as}function vs(n){function t(i,u){if(c(i)){var f={};return r(i,function(n,i){f[i]=t(i,n)}),f}return n.factory(i+"Filter",u)}this.register=t;this.$get=["$injector",function(n){return function(t){return n.get(t+"Filter")}}];t("currency",ys);t("date",ds);t("filter",uv);t("json",ev);t("limitTo",ov);t("lowercase",dh);t("number",ps);t("orderBy",gs);t("uppercase",gh)}function uv(){return function(n,t,i){if(!fi(n)){if(null==n)return n;throw v("filter")("notarray",n);}var r;switch(ne(t)){case"function":break;case"boolean":case"null":case"number":case"string":r=!0;case"object":t=fv(t,i,r);break;default:return n}return Array.prototype.filter.call(n,t)}}function fv(n,t,i){var r=c(n)&&"$"in n;return!0===t?t=ot:s(t)||(t=function(n,t){return h(n)?!1:null===n||null===t?n===t:c(t)||c(n)&&!ye(n)?!1:(n=y(""+n),t=y(""+t),-1!==n.indexOf(t))}),function(u){return r&&!c(u)?hi(u,n.$,t,!1):hi(u,n,t,i)}}function hi(n,t,i,r,u){var e=ne(n),o=ne(t),f;if("string"===o&&"!"===t.charAt(0))return!hi(n,t.substring(1),i,r);if(a(n))return n.some(function(n){return hi(n,t,i,r)});switch(e){case"object":if(r){for(f in n)if("$"!==f.charAt(0)&&hi(n[f],t,i,!0))return!0;return u?!1:hi(n,t,i,!1)}if("object"===o){for(f in t)if(u=t[f],!s(u)&&!h(u)&&(e="$"===f,!hi(e?n:n[f],u,i,e,e)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function ne(n){return null===n?"null":typeof n}function ys(n){var t=n.NUMBER_FORMATS;return function(n,i,r){return h(i)&&(i=t.CURRENCY_SYM),h(r)&&(r=t.PATTERNS[1].maxFrac),null==n?n:ws(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,i)}}function ps(n){var t=n.NUMBER_FORMATS;return function(n,i){return null==n?n:ws(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function ws(n,t,i,r,u){var a,f,l;if(c(n)||(a=0>n,n=Math.abs(n),f=Infinity===n,!f&&!isFinite(n)))return"";var o=n+"",s="",e=!1,y=[];if(f&&(s="∞"),f||-1===o.indexOf("e")||(l=o.match(/([\d\.]+)e(-?)(\d+)/),l&&"-"==l[2]&&l[3]>u+1?n=0:(s=o,e=!0)),f||e)0<u&&1>n&&(s=n.toFixed(u),n=parseFloat(s));else{f=(o.split(kh)[1]||"").length;h(u)&&(u=Math.min(Math.max(t.minFrac,f),t.maxFrac));n=+(Math.round(+(n.toString()+"e"+u)).toString()+"e"+-u);var f=(""+n).split(kh),o=f[0],f=f[1]||"",l=0,v=t.lgSize,p=t.gSize;if(o.length>=v+p)for(l=o.length-v,e=0;e<l;e++)0==(l-e)%p&&0!==e&&(s+=i),s+=o.charAt(e);for(e=l;e<o.length;e++)0==(o.length-e)%v&&0!==e&&(s+=i),s+=o.charAt(e);for(;f.length<u;)f+="0";u&&"0"!==u&&(s+=r+f.substr(0,u))}return 0===n&&(a=!1),y.push(a?t.negPre:t.posPre,s,a?t.negSuf:t.posSuf),y.join("")}function yu(n,t,i){var r="";for(0>n&&(r="-",n=-n),n=""+n;n.length<t;)n="0"+n;return i&&(n=n.substr(n.length-t)),r+n}function g(n,t,i,r){return i=i||0,function(u){return u=u["get"+n](),(0<i||u>-i)&&(u+=i),0===u&&-12==i&&(u=12),yu(u,t,r)}}function pu(n,t){return function(i,r){var u=i["get"+n](),f=bu(t?"SHORT"+n:n);return r[f][u]}}function bs(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(4>=t?5:12)-t)}function ks(n){return function(t){var i=bs(t.getFullYear());return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+i,t=1+Math.round(t/6048e5),yu(t,n)}}function te(n,t){return 0>=n.getFullYear()?t.ERAS[0]:t.ERAS[1]}function ds(n){function t(n){var t;if(t=n.match(i)){n=new Date(0);var r=0,u=0,f=t[8]?n.setUTCFullYear:n.setFullYear,e=t[8]?n.setUTCHours:n.setHours;t[9]&&(r=tt(t[9]+t[10]),u=tt(t[9]+t[11]));f.call(n,tt(t[1]),tt(t[2])-1,tt(t[3]));r=tt(t[4]||0)-r;u=tt(t[5]||0)-u;f=tt(t[6]||0);t=Math.round(1e3*parseFloat("0."+(t[7]||0)));e.call(n,r,u,f,t)}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u,f){var h="",e=[],o,c,s;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,l(i)&&(i=ky.test(i)?tt(i):t(i)),k(i)&&(i=new Date(i)),!ut(i)||!isFinite(i.getTime()))return i;for(;u;)(c=by.exec(u))?(e=sr(e,c,1),u=e.pop()):(e.push(u),u=null);return s=i.getTimezoneOffset(),f&&(s=de(f,i.getTimezoneOffset()),i=sf(i,f,!0)),r(e,function(t){o=wy[t];h+=o?o(i,n.DATETIME_FORMATS,s):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}}function ev(){return function(n,t){return h(t)&&(t=2),hr(n,t)}}function ov(){return function(n,t,i){return(t=Infinity===Math.abs(Number(t))?Number(t):tt(t),isNaN(t))?n:(k(n)&&(n=n.toString()),!a(n)&&!l(n))?n:(i=!i||isNaN(i)?0:tt(i),i=0>i&&i>=-n.length?n.length+i:i,0<=t?n.slice(i,i+t):0===i?n.slice(t,n.length):n.slice(Math.max(0,i+t),i))}}function gs(n){function i(t,i){return i=i?-1:1,t.map(function(t){var u=1,r=ir,f;return s(t)?r=t:l(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(u="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=n(t),r.constant)&&(f=r(),r=function(n){return n[f]})),{get:r,descending:u*i}})}function t(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}return function(n,r,u){if(!fi(n))return n;a(r)||(r=[r]);0===r.length&&(r=["+"]);var f=i(r,u);return n=Array.prototype.map.call(n,function(n,i){return{value:n,predicateValues:f.map(function(r){var u=r.get(n);if(r=typeof u,null===u)r="string",u="null";else if("string"===r)u=u.toLowerCase();else if("object"===r)n:{if("function"==typeof u.valueOf&&(u=u.valueOf(),t(u)))break n;if(ye(u)&&(u=u.toString(),t(u)))break n;u=i}return{value:u,type:r}})}}),n.sort(function(n,t){for(var i=0,r=0,o=f.length;r<o;++r){var i=n.predicateValues[r],u=t.predicateValues[r],e=0;if(i.type===u.type?i.value!==u.value&&(e=i.value<u.value?-1:1):e=i.type<u.type?-1:1,i=e*f[r].descending)break}return i}),n.map(function(n){return n.value})}}function ci(n){return s(n)&&(n={link:n}),n.restrict=n.restrict||"AC",pt(n)}function nh(n,t,u,f,e){var o=this,s=[],h=o.$$parentForm=n.parent().controller("form")||gr;o.$error={};o.$$success={};o.$pending=i;o.$name=e(t.name||t.ngForm||"")(u);o.$dirty=!1;o.$pristine=!0;o.$valid=!0;o.$invalid=!1;o.$submitted=!1;h.$addControl(o);o.$rollbackViewValue=function(){r(s,function(n){n.$rollbackViewValue()})};o.$commitViewValue=function(){r(s,function(n){n.$commitViewValue()})};o.$addControl=function(n){wi(n.$name,"input");s.push(n);n.$name&&(o[n.$name]=n)};o.$$renameControl=function(n,t){var i=n.$name;o[i]===n&&delete o[i];o[t]=n;n.$name=t};o.$removeControl=function(n){n.$name&&o[n.$name]===n&&delete o[n.$name];r(o.$pending,function(t,i){o.$setValidity(i,null,n)});r(o.$error,function(t,i){o.$setValidity(i,null,n)});r(o.$$success,function(t,i){o.$setValidity(i,null,n)});or(s,n)};rh({ctrl:this,$element:n,set:function(n,t,i){var r=n[t];r?-1===r.indexOf(i)&&r.push(i):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(or(r,i),0===r.length&&delete n[t])},parentForm:h,$animate:f});o.$setDirty=function(){f.removeClass(n,tr);f.addClass(n,uf);o.$dirty=!0;o.$pristine=!1;h.$setDirty()};o.$setPristine=function(){f.setClass(n,tr,uf+" ng-submitted");o.$dirty=!1;o.$pristine=!0;o.$submitted=!1;r(s,function(n){n.$setPristine()})};o.$setUntouched=function(){r(s,function(n){n.$setUntouched()})};o.$setSubmitted=function(){f.addClass(n,"ng-submitted");o.$submitted=!0;h.$setSubmitted()}}function ie(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function vr(n,t,i,r,u,f){var c=y(t[0].type),s,o,e,h;if(!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(n){if(e&&(f.defer.cancel(e),e=null),!s){var u=t.val();n=n&&n.type;"password"===c||i.ngTrim&&"false"===i.ngTrim||(u=w(u));(r.$viewValue!==u||""===u&&r.$$hasNativeValidators)&&r.$setViewValue(u,n)}},u.hasEvent("input"))t.on("input",o);else{h=function(n,t,i){e||(e=f.defer(function(){e=null;t&&t.value===i||o(n)}))};t.on("keydown",function(n){var t=n.keyCode;91===t||15<t&&19>t||37<=t&&40>=t||h(n,this,this.value)});if(u.hasEvent("paste"))t.on("paste cut",h)}t.on("change",o);r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function wu(n,t){return function(i,u){var e,f;if(ut(i))return i;if(l(i)){if('"'==i.charAt(0)&&'"'==i.charAt(i.length-1)&&(i=i.substring(1,i.length-1)),np.test(i))return new Date(i);if(n.lastIndex=0,e=n.exec(i))return e.shift(),f=u?{yyyy:u.getFullYear(),MM:u.getMonth()+1,dd:u.getDate(),HH:u.getHours(),mm:u.getMinutes(),ss:u.getSeconds(),sss:u.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(e,function(n,i){i<t.length&&(f[t[i]]=+n)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1e3*f.sss||0)}return NaN}}function yr(n,t,r,u){return function(f,o,s,c,l,a,v){function w(n){return n&&!(n.getTime&&n.getTime()!==n.getTime())}function d(n){return e(n)?ut(n)?n:r(n):i}var y,p,b,k;th(f,o,s,c);vr(f,o,s,c,l,a);y=c&&c.$options&&c.$options.timezone;c.$$parserName=n;c.$parsers.push(function(n){return c.$isEmpty(n)?null:t.test(n)?(n=r(n,p),y&&(n=sf(n,y)),n):i});c.$formatters.push(function(n){if(n&&!ut(n))throw ff("datefmt",n);return w(n)?((p=n)&&y&&(p=sf(p,y,!0)),v("date")(n,u,y)):(p=null,"")});(e(s.min)||s.ngMin)&&(c.$validators.min=function(n){return!w(n)||h(b)||r(n)>=b},s.$observe("min",function(n){b=d(n);c.$validate()}));(e(s.max)||s.ngMax)&&(c.$validators.max=function(n){return!w(n)||h(k)||r(n)<=k},s.$observe("max",function(n){k=d(n);c.$validate()}))}}function th(n,t,r,u){(u.$$hasNativeValidators=c(t[0].validity))&&u.$parsers.push(function(n){var r=t.prop("validity")||{};return r.badInput&&!r.typeMismatch?i:n})}function ih(n,t,i,r,u){if(e(r)){if(n=n(r),!n.constant)throw v("ngModel")("constexpr",i,r);return n(t)}return u}function re(n,t){return n="ngClass"+n,["$animate",function(i){function f(n,t){var f=[],r=0,u,i;n:for(;r<n.length;r++){for(u=n[r],i=0;i<t.length;i++)if(u==t[i])continue n;f.push(u)}return f}function u(n){var t=[];return a(n)?(r(n,function(n){t=t.concat(u(n))}),t):l(n)?n.split(" "):c(n)?(r(n,function(n,i){n&&(t=t.concat(i.split(" ")))}),t):n}return{restrict:"AC",link:function(e,o,s){function h(n,t){var i=o.data("$classCounts")||rt(),u=[];return r(n,function(n){(0<t||i[n])&&(i[n]=(i[n]||0)+t,i[n]===+(0<t)&&u.push(n))}),o.data("$classCounts",i),u.join(" ")}function l(n){var r,l;if(!0===t||e.$index%2===t)if(r=u(n||[]),c){if(!ot(n,c)){var a=u(c),l=f(r,a),r=f(a,r),l=h(l,1),r=h(r,-1);l&&l.length&&i.addClass(o,l);r&&r.length&&i.removeClass(o,r)}}else l=h(r,1),s.$addClass(l);c=ct(n)}var c;e.$watch(s[n],l,!0);s.$observe("class",function(){l(e.$eval(s[n]))});"ngClass"!==n&&e.$watch("$index",function(i,r){var f=i&1,o;f!==(r&1)&&(o=u(e.$eval(s[n])),f===t?(f=h(o,1),s.$addClass(f)):(f=h(o,-1),s.$removeClass(f)))})}}}]}function rh(n){function f(n,t){t&&!r[n]?(h.addClass(o,n),r[n]=!0):!t&&r[n]&&(h.removeClass(o,n),r[n]=!1)}function e(n,t){n=n?"-"+io(n,"-"):"";f(nu+n,!0===t);f(hc+n,!1===t)}var t=n.ctrl,o=n.$element,r={},s=n.set,u=n.unset,c=n.parentForm,h=n.$animate;r[hc]=!(r[nu]=o.hasClass(nu));t.$setValidity=function(n,r,o){r===i?(t.$pending||(t.$pending={}),s(t.$pending,n,o)):(t.$pending&&u(t.$pending,n,o),uh(t.$pending)&&(t.$pending=i));er(r)?r?(u(t.$error,n,o),s(t.$$success,n,o)):(s(t.$error,n,o),u(t.$$success,n,o)):(u(t.$error,n,o),u(t.$$success,n,o));t.$pending?(f(cc,!0),t.$valid=t.$invalid=i,e("",null)):(f(cc,!1),t.$valid=uh(t.$error),t.$invalid=!t.$valid,e("",t.$valid));r=t.$pending&&t.$pending[n]?i:t.$error[n]?!1:t.$$success[n]?!0:null;e(n,r);c.$setValidity(n,r,t)}}function uh(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}var sv=/^\/(.+)\/([a-z]*)$/,y=function(n){return l(n)?n.toLowerCase():n},pr=Object.prototype.hasOwnProperty,bu=function(n){return l(n)?n.toUpperCase():n},ki,f,st,ri=[].slice,hv=[].splice,cv=[].push,ni=Object.prototype.toString,fh=Object.getPrototypeOf,li=v("ng"),ft=n.angular||(n.angular={}),wr,ku=0,nr,hh,ai,kr,oe,se,wh,tf,u,rf,dh,gh,nc,dr,gr;ki=t.documentMode;o.$inject=[];ir.$inject=[];var a=Array.isArray,eh=/^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/,w=function(n){return l(n)?n.trim():n},oh=function(n){return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},br=function(){if(e(br.isActive_))return br.isActive_;var n=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!n)try{new Function("")}catch(i){n=!0}return br.isActive_=n},du=function(){if(e(du.name_))return du.name_;for(var r,f=di.length,i,u,n=0;n<f;++n)if(i=di[n],r=t.querySelector("["+i.replace(":","\\:")+"jq]")){u=r.getAttribute(i+"jq");break}return du.name_=u},di=["ng-","data-ng-","ng:","x-ng-"],lv=/[A-Z]/g,sh=!1,ue,wt=1,gi=3,av={full:"1.4.3",major:1,minor:4,dot:3,codeName:"foam-acceleration"};b.expando="ng339";nr=b.cache={};hh=1;b._data=function(n){return this.cache[n[this.expando]]||{}};var vv=/([\:\-\_]+(.))/g,yv=/^moz([A-Z])/,pv={mouseleave:"mouseout",mouseenter:"mouseover"},fe=v("jqLite"),wv=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ee=/<|&#?\w+;/,bv=/<([\w:]+)/,kv=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt={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,"",""]};vt.optgroup=vt.option;vt.tbody=vt.tfoot=vt.colgroup=vt.caption=vt.thead;vt.th=vt.td;ai=b.prototype={ready:function(i){function r(){u||(u=!0,i())}var u=!1;"complete"===t.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),b(n).on("load",r))},toString:function(){var n=[];return r(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return 0<=n?f(this[n]):f(this[this.length+n])},length:0,push:cv,sort:[].sort,splice:[].splice};kr={};r("multiple selected checked disabled readOnly required open".split(" "),function(n){kr[y(n)]=n});oe={};r("input select option textarea button form details".split(" "),function(n){oe[n]=!0});se={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:af,removeData:uu,hasData:function(n){for(var t in nr[n.ng339])return!0;return!1}},function(n,t){b[t]=n});r({data:af,inheritedData:hu,scope:function(n){return f.data(n,"$scope")||hu(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return f.data(n,"$isolateScope")||f.data(n,"$isolateScopeNoTemplate")},controller:so,injector:function(n){return hu(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:eu,css:function(n,t,i){if(t=cr(t),e(i))n.style[t]=i;else return n.style[t]},attr:function(n,t,r){var u=n.nodeType;if(u!==gi&&2!==u&&8!==u)if(u=y(t),kr[u])if(e(r))r?(n[t]=!0,n.setAttribute(t,u)):(n[t]=!1,n.removeAttribute(u));else return n[t]||(n.attributes.getNamedItem(t)||o).specified?u:i;else if(e(r))n.setAttribute(t,r);else if(n.getAttribute)return n=n.getAttribute(t,2),null===n?i:n},prop:function(n,t,i){if(e(i))n[t]=i;else return n[t]},text:function(){function n(n,t){if(h(t)){var i=n.nodeType;return i===wt||i===gi?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,t){if(h(t)){if(n.multiple&&"select"===bt(n)){var i=[];return r(n.options,function(n){n.selected&&i.push(n.value||n.text)}),0===i.length?null:i}return n.value}n.value=t},html:function(n,t){if(h(t))return n.innerHTML;ru(n,!0);n.innerHTML=t},empty:ho},function(n,t){b.prototype[t]=function(t,r){var u,f,e=this.length,o;if(n!==ho&&(2==n.length&&n!==eu&&n!==so?t:r)===i){if(c(t)){for(u=0;u<e;u++)if(n===af)n(this[u],t);else for(f in t)n(this[u],f,t[f]);return this}for(u=n.$dv,e=u===i?Math.min(e,1):e,f=0;f<e;f++)o=n(this[f],t,r),u=u?u+o:o;return u}for(u=0;u<e;u++)n(this[u],t,r);return this}});r({removeData:uu,on:function dv(n,t,i,r){var f,u,s,o;if(e(r))throw fe("onargs");if(uo(n))for(u=fu(n,!0),r=u.events,f=u.handle,f||(f=u.handle=ol(n,r)),u=0<=t.indexOf(" ")?t.split(" "):[t],s=u.length;s--;)t=u[s],o=r[t],o||(r[t]=[],"mouseenter"===t||"mouseleave"===t?dv(n,pv[t],function(n){var i=n.relatedTarget;i&&(i===this||this.contains(i))||f(n,t)}):"$destroy"!==t&&n.addEventListener(t,f,!1),o=r[t]),o.push(i)},off:eo,one:function(n,t,i){n=f(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,t){var i,u=n.parentNode;ru(n);r(new b(t),function(t){i?u.insertBefore(t,i.nextSibling):u.replaceChild(t,n);i=t})},children:function(n){var t=[];return r(n.childNodes,function(n){n.nodeType===wt&&t.push(n)}),t},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){var i=n.nodeType,r;if(i===wt||11===i)for(t=new b(t),i=0,r=t.length;i<r;i++)n.appendChild(t[i])},prepend:function(n,t){if(n.nodeType===wt){var i=n.firstChild;r(new b(t),function(t){n.insertBefore(t,i)})}},wrap:function(n,t){t=f(t).eq(0).clone()[0];var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)},remove:vf,detach:function(n){vf(n,!0)},after:function(n,t){var u=n,e=n.parentNode,i,f,r;for(t=new b(t),i=0,f=t.length;i<f;i++)r=t[i],e.insertBefore(r,u.nextSibling),u=r},addClass:su,removeClass:ou,toggleClass:function(n,t,i){t&&r(t.split(" "),function(t){var r=i;h(r)&&(r=!eu(n,t));(r?su:ou)(n,t)})},parent:function(n){return(n=n.parentNode)&&11!==n.nodeType?n:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:lf,triggerHandler:function(n,t,i){var u,e,s=t.type||t,f=fu(n);(f=(f=f&&f.events)&&f[s])&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:o,type:s,target:n},t.type&&(u=p(u,t)),t=ct(f),e=i?[u].concat(i):[u],r(t,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){b.prototype[t]=function(t,i,r){for(var u,o=0,s=this.length;o<s;o++)h(u)?(u=n(this[o],t,i,r),e(u)&&(u=f(u))):oo(u,n(this[o],t,i,r));return e(u)?u:this};b.prototype.bind=b.prototype.on;b.prototype.unbind=b.prototype.off});bi.prototype={put:function(n,t){this[ei(n,this.nextUid)]=t},get:function(n){return this[ei(n,this.nextUid)]},remove:function(n){var t=this[n=ei(n,this.nextUid)];return delete this[n],t}};var gv=[function(){this.$get=[function(){return bi}]}],ch=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,ny=/,/,ty=/^\s*(_?)(\S+?)\1\s*$/,lh=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,vi=v("$injector");lr.$$annotate=function(n,t,i){var u;if("function"==typeof n){if(!(u=n.$inject)){if(u=[],n.length){if(t)throw l(i)&&i||(i=n.name||hl(n)),vi("strictdi",i);t=n.toString().replace(lh,"");t=t.match(ch);r(t[1].split(ny),function(n){n.replace(ty,function(n,t,i){u.push(i)})})}n.$inject=u}}else a(n)?(t=n.length-1,pi(n[t],"fn"),u=n.slice(0,t)):pi(n,"fn",!0);return u};var ah=v("$animate"),iy=function(){this.$get=["$q","$$rAF",function(n,t){function i(){}return i.all=o,i.chain=o,i.prototype={end:o,cancel:o,resume:o,pause:o,complete:o,then:function(i,r){return n(function(n){t(function(){n()})}).then(i,r)}},i}]},ry=function(){var n=new bi,t=[];this.$get=["$$AnimateRunner","$rootScope",function(i,u){function f(i,f,e){var o=n.get(i);o||(n.put(i,o={}),t.push(i));f&&r(f.split(" "),function(n){n&&(o[n]=!0)});e&&r(e.split(" "),function(n){n&&(o[n]=!1)});1<t.length||u.$$postDigest(function(){r(t,function(t){var f=n.get(t);if(f){var e=ll(t.attr("class")),i="",u="";r(f,function(n,t){n!==!!e[t]&&(n?i+=(i.length?" ":"")+t:u+=(u.length?" ":"")+t)});r(t,function(n){i&&su(n,i);u&&ou(n,u)});n.remove(t)}});t.length=0})}return{enabled:o,on:o,off:o,pin:o,push:function(n,t,r,u){return u&&u(),r=r||{},r.from&&n.css(r.from),r.to&&n.css(r.to),(r.addClass||r.removeClass)&&f(n,r.addClass,r.removeClass),new i}}}]},uy=["$provide",function(n){var t=this;this.$$registeredAnimations=Object.create(null);this.register=function(i,r){if(i&&"."!==i.charAt(0))throw ah("notcsel",i);var u=i+"-animation";t.$$registeredAnimations[i.substr(1)]=u;n.factory(u,r)};this.classNameFilter=function(n){if(1===arguments.length&&(this.$$classNameFilter=n instanceof RegExp?n:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw ah("nongcls","ng-animate");return this.$$classNameFilter};this.$get=["$$animateQueue",function(n){function t(n,t,i){var r,u;if(i){n:{for(r=0;r<i.length;r++)if(u=i[r],1===u.nodeType){r=u;break n}r=void 0}!r||r.parentNode||r.previousElementSibling||(i=null)}i?i.after(n):t.prepend(n)}return{on:n.on,off:n.off,pin:n.pin,enabled:n.enabled,cancel:function(n){n.end&&n.end()},enter:function(i,r,u,e){return r=r&&f(r),u=u&&f(u),r=r||u.parent(),t(i,r,u),n.push(i,"enter",oi(e))},move:function(i,r,u,e){return r=r&&f(r),u=u&&f(u),r=r||u.parent(),t(i,r,u),n.push(i,"move",oi(e))},leave:function(t,i){return n.push(t,"leave",oi(i),function(){t.remove()})},addClass:function(t,i,r){return r=oi(r),r.addClass=ar(r.addclass,i),n.push(t,"addClass",r)},removeClass:function(t,i,r){return r=oi(r),r.removeClass=ar(r.removeClass,i),n.push(t,"removeClass",r)},setClass:function(t,i,r,u){return u=oi(u),u.addClass=ar(u.addClass,i),u.removeClass=ar(u.removeClass,r),n.push(t,"setClass",u)},animate:function(t,i,r,u,f){return f=oi(f),f.from=f.from?p(f.from,i):i,f.to=f.to?p(f.to,r):r,f.tempClasses=ar(f.tempClasses,u||"ng-inline-animate"),n.push(t,"animate",f)}}}]}],it=v("$compile");lo.$inject=["$provide","$$sanitizeUriProvider"];var vh=/^((?:x|data)[\:\-_])/i,fy=v("$controller"),yh=/^(\S+)(\s+as\s+(\w+))?$/,ph="application/json",he={"Content-Type":ph+";charset=utf-8"},ey=/^\[|^\{(?!\{)/,oy={"[":/]$/,"{":/}$/},sy=/^\)\]\}',?\n/,yi=ft.$interpolateMinErr=v("$interpolate");yi.throwNoconcat=function(n){throw yi("noconcat",n);};yi.interr=function(n,t){return yi("interr",n,t.toString())};var hy=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,cy={http:80,https:443,ftp:21},gu=v("$location"),ly={$$html5:!1,$$replace:!1,absUrl:lu("$$absUrl"),url:function(n){if(h(n))return this.$$url;var t=hy.exec(n);return(t[1]||""===n)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===n)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:lu("$$protocol"),host:lu("$$host"),port:lu("$$port"),path:ns("$$path",function(n){return n=null!==n?n.toString():"","/"==n.charAt(0)?n:"/"+n}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(l(n)||k(n))n=n.toString(),this.$$search=no(n);else if(c(n))n=ht(n,{}),r(n,function(t,i){null==t&&delete n[i]}),this.$$search=n;else throw gu("isrcharg");break;default:h(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:ns("$$hash",function(n){return null!==n?n.toString():""}),replace:function(){return this.$$replace=!0,this}};r([go,df,kf],function(n){n.prototype=Object.create(ly);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==kf||!this.$$html5)throw gu("nostate");return this.$$state=h(t)?null:t,this}});var et=v("$parse"),ay=Function.prototype.call,vy=Function.prototype.apply,yy=Function.prototype.bind,nf=rt();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(n){nf[n]=!0});wh={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};tf=function(n){this.options=n};tf.prototype={constructor:tf,lex:function(n){for(this.text=n,this.index=0,this.tokens=[];this.index<this.text.length;)if(n=this.text.charAt(this.index),'"'===n||"'"===n)this.readString(n);else if(this.isNumber(n)||"."===n&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(n))this.readIdent();else if(this.is(n,"(){}[].,;:?"))this.tokens.push({index:this.index,text:n}),this.index++;else if(this.isWhitespace(n))this.index++;else{var t=n+this.peek(),i=t+this.peek(2),r=nf[t],u=nf[i];nf[n]||r||u?(n=u?i:r?t:n,this.tokens.push({index:this.index,text:n,operator:!0}),this.index+=n.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(n,t){return-1!==t.indexOf(n)},peek:function(n){return n=n||1,this.index+n<this.text.length?this.text.charAt(this.index+n):!1},isNumber:function(n){return"0"<=n&&"9">=n&&"string"==typeof n},isWhitespace:function(n){return" "===n||"\r"===n||"\t"===n||"\n"===n||"\v"===n||" "===n},isIdent:function(n){return"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"_"===n||"$"===n},isExpOperator:function(n){return"-"===n||"+"===n||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;t=e(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw et("lexerr",n,t,this.text);},readNumber:function(){for(var t,i,n="",r=this.index;this.index<this.text.length;){if(t=y(this.text.charAt(this.index)),"."==t||this.isNumber(t))n+=t;else if(i=this.peek(),"e"==t&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&"e"==n.charAt(n.length-1))n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||"e"!=n.charAt(n.length-1))break;else this.throwError("Invalid exponent");this.index++}this.tokens.push({index:r,text:n,constant:!0,value:Number(n)})},readIdent:function(){for(var t,n=this.index;this.index<this.text.length;){if(t=this.text.charAt(this.index),!this.isIdent(t)&&!this.isNumber(t))break;this.index++}this.tokens.push({index:n,text:this.text.slice(n,this.index),identifier:!0})},readString:function(n){var f=this.index,t,u;this.index++;for(var r="",u=n,i=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),u=u+t,i)"u"===t?(i=this.text.substring(this.index+1,this.index+5),i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,r+=String.fromCharCode(parseInt(i,16))):r+=wh[t]||t,i=!1;else if("\\"===t)i=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:u,constant:!0,value:r});return}r+=t}this.index++}this.throwError("Unterminated quote",f)}};u=function(n,t){this.lexer=n;this.options=t};u.Program="Program";u.ExpressionStatement="ExpressionStatement";u.AssignmentExpression="AssignmentExpression";u.ConditionalExpression="ConditionalExpression";u.LogicalExpression="LogicalExpression";u.BinaryExpression="BinaryExpression";u.UnaryExpression="UnaryExpression";u.CallExpression="CallExpression";u.MemberExpression="MemberExpression";u.Identifier="Identifier";u.Literal="Literal";u.ArrayExpression="ArrayExpression";u.Property="Property";u.ObjectExpression="ObjectExpression";u.ThisExpression="ThisExpression";u.NGValueParameter="NGValueParameter";u.prototype={ast:function(n){return this.text=n,this.tokens=this.lexer.lex(n),n=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),n},program:function(){for(var n=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&n.push(this.expressionStatement()),!this.expect(";"))return{type:u.Program,body:n}},expressionStatement:function(){return{type:u.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var n=this.expression();this.expect("|");)n=this.filter(n);return n},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary();return this.expect("=")&&(n={type:u.AssignmentExpression,left:n,right:this.assignment(),operator:"="}),n},ternary:function(){var n=this.logicalOR(),t,i;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(i=this.expression(),{type:u.ConditionalExpression,test:n,alternate:t,consequent:i}):n},logicalOR:function(){for(var n=this.logicalAND();this.expect("||");)n={type:u.LogicalExpression,operator:"||",left:n,right:this.logicalAND()};return n},logicalAND:function(){for(var n=this.equality();this.expect("&&");)n={type:u.LogicalExpression,operator:"&&",left:n,right:this.equality()};return n},equality:function(){for(var n=this.relational(),t;t=this.expect("==","!=","===","!==");)n={type:u.BinaryExpression,operator:t.text,left:n,right:this.relational()};return n},relational:function(){for(var n=this.additive(),t;t=this.expect("<",">","<=",">=");)n={type:u.BinaryExpression,operator:t.text,left:n,right:this.additive()};return n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n={type:u.BinaryExpression,operator:t.text,left:n,right:this.multiplicative()};return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n={type:u.BinaryExpression,operator:t.text,left:n,right:this.unary()};return n},unary:function(){var n;return(n=this.expect("+","-","!"))?{type:u.UnaryExpression,operator:n.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var n,t;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():this.constants.hasOwnProperty(this.peek().text)?n=ht(this.constants[this.consume().text]):this.peek().identifier?n=this.identifier():this.peek().constant?n=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(n={type:u.CallExpression,callee:n,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(n={type:u.MemberExpression,object:n,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?n={type:u.MemberExpression,object:n,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return n},filter:function(n){n=[n];for(var t={type:u.CallExpression,callee:this.identifier(),arguments:n,filter:!0};this.expect(":");)n.push(this.expression());return t},parseArguments:function(){var n=[];if(")"!==this.peekToken().text)do n.push(this.expression());while(this.expect(","));return n},identifier:function(){var n=this.consume();return n.identifier||this.throwError("is not a valid identifier",n),{type:u.Identifier,name:n.text}},constant:function(){return{type:u.Literal,value:this.consume().value}},arrayDeclaration:function(){var n=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;n.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:u.ArrayExpression,elements:n}},object:function(){var t=[],n;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;n={type:u.Property,kind:"init"};this.peek().constant?n.key=this.constant():this.peek().identifier?n.key=this.identifier():this.throwError("invalid key",this.peek());this.consume(":");n.value=this.expression();t.push(n)}while(this.expect(","));return this.consume("}"),{type:u.ObjectExpression,properties:t}},throwError:function(n,t){throw et("syntax",t.text,n,t.index+1,this.text,this.text.substring(t.index));},consume:function(n){if(0===this.tokens.length)throw et("ueoe",this.text);var t=this.expect(n);return t||this.throwError("is unexpected, expecting ["+n+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw et("ueoe",this.text);return this.tokens[0]},peek:function(n,t,i,r){return this.peekAhead(0,n,t,i,r)},peekAhead:function(n,t,i,r,u){if(this.tokens.length>n){n=this.tokens[n];var f=n.text;if(f===t||f===i||f===r||f===u||!(t||i||r||u))return n}return!1},expect:function(n,t,i,r){return(n=this.peek(n,t,i,r))?(this.tokens.shift(),n):!1},constants:{"true":{type:u.Literal,value:!0},"false":{type:u.Literal,value:!1},"null":{type:u.Literal,value:null},undefined:{type:u.Literal,value:i},"this":{type:u.ThisExpression}}};os.prototype={compile:function(n,t){var f=this,e=this.astBuilder.ast(n),u,o;return this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},d(e,f.$filter),u="",this.stage="assign",(o=fs(e))&&(this.state.computing="assign",u=this.nextId(),this.recurse(o,u),u="fn.assign="+this.generateFunction("assign","s,v,l")),o=rs(e.body),f.stage="inputs",r(o,function(n,t){var i="fn"+t,r;f.state[i]={vars:[],body:[],own:{}};f.state.computing=i;r=f.nextId();f.recurse(n,r);f.return_(r);f.state.inputs.push(i);n.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(e),u='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+u+this.watchFns()+"return fn;",u=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","ifDefined","plus","text",u)(this.$filter,ti,at,ts,ha,is,n),this.state=this.stage=i,u.literal=es(e),u.constant=e.constant,u},USE:"use",STRICT:"strict",watchFns:function(){var n=[],t=this.state.inputs,i=this;return r(t,function(t){n.push("var "+t+"="+i.generateFunction(t,"s"))}),t.length&&n.push("fn.inputs=["+t.join(",")+"];"),n.join("")},generateFunction:function(n,t){return"function("+t+"){"+this.varsPrefix(n)+this.body(n)+"};"},filterPrefix:function(){var n=[],t=this;return r(this.state.filters,function(i,r){n.push(i+"=$filter("+t.escape(r)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(n){return this.state[n].vars.length?"var "+this.state[n].vars.join(",")+";":""},body:function(n){return this.state[n].body.join("")},recurse:function(n,t,f,s,h,c){var v,y,l=this,p,a;if(s=s||o,!c&&e(n.watchId))t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.computedMember("i",n.watchId)),this.lazyRecurse(n,t,f,s,h,!0));else switch(n.type){case u.Program:r(n.body,function(t,r){l.recurse(t.expression,i,i,function(n){y=n});r!==n.body.length-1?l.current().body.push(y,";"):l.return_(y)});break;case u.Literal:a=this.escape(n.value);this.assign(t,a);s(a);break;case u.UnaryExpression:this.recurse(n.argument,i,i,function(n){y=n});a=n.operator+"("+this.ifDefined(y,0)+")";this.assign(t,a);s(a);break;case u.BinaryExpression:this.recurse(n.left,i,i,function(n){v=n});this.recurse(n.right,i,i,function(n){y=n});a="+"===n.operator?this.plus(v,y):"-"===n.operator?this.ifDefined(v,0)+n.operator+this.ifDefined(y,0):"("+v+")"+n.operator+"("+y+")";this.assign(t,a);s(a);break;case u.LogicalExpression:t=t||this.nextId();l.recurse(n.left,t);l.if_("&&"===n.operator?t:l.not(t),l.lazyRecurse(n.right,t));s(t);break;case u.ConditionalExpression:t=t||this.nextId();l.recurse(n.test,t);l.if_(t,l.lazyRecurse(n.alternate,t),l.lazyRecurse(n.consequent,t));s(t);break;case u.Identifier:t=t||this.nextId();f&&(f.context="inputs"===l.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),f.computed=!1,f.name=n.name);ti(n.name);l.if_("inputs"===l.stage||l.not(l.getHasOwnProperty("l",n.name)),function(){l.if_("inputs"===l.stage||"s",function(){h&&1!==h&&l.if_(l.not(l.nonComputedMember("s",n.name)),l.lazyAssign(l.nonComputedMember("s",n.name),"{}"));l.assign(t,l.nonComputedMember("s",n.name))})},t&&l.lazyAssign(t,l.nonComputedMember("l",n.name)));(l.state.expensiveChecks||vu(n.name))&&l.addEnsureSafeObject(t);s(t);break;case u.MemberExpression:v=f&&(f.context=this.nextId())||this.nextId();t=t||this.nextId();l.recurse(n.object,v,i,function(){l.if_(l.notNull(v),function(){n.computed?(y=l.nextId(),l.recurse(n.property,y),l.addEnsureSafeMemberName(y),h&&1!==h&&l.if_(l.not(l.computedMember(v,y)),l.lazyAssign(l.computedMember(v,y),"{}")),a=l.ensureSafeObject(l.computedMember(v,y)),l.assign(t,a),f&&(f.computed=!0,f.name=y)):(ti(n.property.name),h&&1!==h&&l.if_(l.not(l.nonComputedMember(v,n.property.name)),l.lazyAssign(l.nonComputedMember(v,n.property.name),"{}")),a=l.nonComputedMember(v,n.property.name),(l.state.expensiveChecks||vu(n.property.name))&&(a=l.ensureSafeObject(a)),l.assign(t,a),f&&(f.computed=!1,f.name=n.property.name))},function(){l.assign(t,"undefined")});s(t)},!!h);break;case u.CallExpression:t=t||this.nextId();n.filter?(y=l.filter(n.callee.name),p=[],r(n.arguments,function(n){var t=l.nextId();l.recurse(n,t);p.push(t)}),a=y+"("+p.join(",")+")",l.assign(t,a),s(t)):(y=l.nextId(),v={},p=[],l.recurse(n.callee,y,v,function(){l.if_(l.notNull(y),function(){l.addEnsureSafeFunction(y);r(n.arguments,function(n){l.recurse(n,l.nextId(),i,function(n){p.push(l.ensureSafeObject(n))})});v.name?(l.state.expensiveChecks||l.addEnsureSafeObject(v.context),a=l.member(v.context,v.name,v.computed)+"("+p.join(",")+")"):a=y+"("+p.join(",")+")";a=l.ensureSafeObject(a);l.assign(t,a)},function(){l.assign(t,"undefined")});s(t)}));break;case u.AssignmentExpression:if(y=this.nextId(),v={},!us(n.left))throw et("lval");this.recurse(n.left,i,v,function(){l.if_(l.notNull(v.context),function(){l.recurse(n.right,y);l.addEnsureSafeObject(l.member(v.context,v.name,v.computed));a=l.member(v.context,v.name,v.computed)+n.operator+y;l.assign(t,a);s(t||a)})},1);break;case u.ArrayExpression:p=[];r(n.elements,function(n){l.recurse(n,l.nextId(),i,function(n){p.push(n)})});a="["+p.join(",")+"]";this.assign(t,a);s(a);break;case u.ObjectExpression:p=[];r(n.properties,function(n){l.recurse(n.value,l.nextId(),i,function(t){p.push(l.escape(n.key.type===u.Identifier?n.key.name:""+n.key.value)+":"+t)})});a="{"+p.join(",")+"}";this.assign(t,a);s(a);break;case u.ThisExpression:this.assign(t,"s");s("s");break;case u.NGValueParameter:this.assign(t,"v");s("v")}},getHasOwnProperty:function(n,t){var i=n+"."+t,r=this.current().own;return r.hasOwnProperty(i)||(r[i]=this.nextId(!1,n+"&&("+this.escape(t)+" in "+n+")")),r[i]},assign:function(n,t){if(n)return this.current().body.push(n,"=",t,";"),n},filter:function(n){return this.state.filters.hasOwnProperty(n)||(this.state.filters[n]=this.nextId(!0)),this.state.filters[n]},ifDefined:function(n,t){return"ifDefined("+n+","+this.escape(t)+")"},plus:function(n,t){return"plus("+n+","+t+")"},return_:function(n){this.current().body.push("return ",n,";")},if_:function(n,t,i){if(!0===n)t();else{var r=this.current().body;r.push("if(",n,"){");t();r.push("}");i&&(r.push("else{"),i(),r.push("}"))}},not:function(n){return"!("+n+")"},notNull:function(n){return n+"!=null"},nonComputedMember:function(n,t){return n+"."+t},computedMember:function(n,t){return n+"["+t+"]"},member:function(n,t,i){return i?this.computedMember(n,t):this.nonComputedMember(n,t)},addEnsureSafeObject:function(n){this.current().body.push(this.ensureSafeObject(n),";")},addEnsureSafeMemberName:function(n){this.current().body.push(this.ensureSafeMemberName(n),";")},addEnsureSafeFunction:function(n){this.current().body.push(this.ensureSafeFunction(n),";")},ensureSafeObject:function(n){return"ensureSafeObject("+n+",text)"},ensureSafeMemberName:function(n){return"ensureSafeMemberName("+n+",text)"},ensureSafeFunction:function(n){return"ensureSafeFunction("+n+",text)"},lazyRecurse:function(n,t,i,r,u,f){var e=this;return function(){e.recurse(n,t,i,r,u,f)}},lazyAssign:function(n,t){var i=this;return function(){i.assign(n,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)},escape:function(n){if(l(n))return"'"+n.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(k(n))return n.toString();if(!0===n)return"true";if(!1===n)return"false";if(null===n)return"null";if("undefined"==typeof n)return"undefined";throw et("esc");},nextId:function(n,t){var i="v"+this.state.nextId++;return n||this.current().vars.push(i+(t?"="+t:"")),i},current:function(){return this.state[this.state.computing]}};ss.prototype={compile:function(n,t){var o=this,u=this.astBuilder.ast(n),i,s,f,e;return this.expression=n,this.expensiveChecks=t,d(u,o.$filter),(i=fs(u))&&(s=this.recurse(i)),i=rs(u.body),i&&(f=[],r(i,function(n,t){var i=o.recurse(n);n.input=i;f.push(i);n.watchId=t})),e=[],r(u.body,function(n){e.push(o.recurse(n.expression))}),i=0===u.body.length?function(){}:1===u.body.length?e[0]:function(n,t){var i;return r(e,function(r){i=r(n,t)}),i},s&&(i.assign=function(n,t,i){return s(n,i,t)}),f&&(i.inputs=f),i.literal=es(u),i.constant=u.constant,i},recurse:function(n,t,f){var h,e,o=this,s;if(n.input)return this.inputs(n.input,n.watchId);switch(n.type){case u.Literal:return this.value(n.value,t);case u.UnaryExpression:return e=this.recurse(n.argument),this["unary"+n.operator](e,t);case u.BinaryExpression:return h=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](h,e,t);case u.LogicalExpression:return h=this.recurse(n.left),e=this.recurse(n.right),this["binary"+n.operator](h,e,t);case u.ConditionalExpression:return this["ternary?:"](this.recurse(n.test),this.recurse(n.alternate),this.recurse(n.consequent),t);case u.Identifier:return ti(n.name,o.expression),o.identifier(n.name,o.expensiveChecks||vu(n.name),t,f,o.expression);case u.MemberExpression:return h=this.recurse(n.object,!1,!!f),n.computed||(ti(n.property.name,o.expression),e=n.property.name),n.computed&&(e=this.recurse(n.property)),n.computed?this.computedMember(h,e,t,f,o.expression):this.nonComputedMember(h,e,o.expensiveChecks,t,f,o.expression);case u.CallExpression:return s=[],r(n.arguments,function(n){s.push(o.recurse(n))}),n.filter&&(e=this.$filter(n.callee.name)),n.filter||(e=this.recurse(n.callee,!0)),n.filter?function(n,r,u,f){for(var h=[],o=0;o<s.length;++o)h.push(s[o](n,r,u,f));return n=e.apply(i,h,f),t?{context:i,name:i,value:n}:n}:function(n,i,r,u){var h=e(n,i,r,u),f,c;if(null!=h.value){for(at(h.context,o.expression),ts(h.value,o.expression),f=[],c=0;c<s.length;++c)f.push(at(s[c](n,i,r,u),o.expression));f=at(h.value.apply(h.context,f),o.expression)}return t?{value:f}:f};case u.AssignmentExpression:return h=this.recurse(n.left,!0,1),e=this.recurse(n.right),function(n,i,r,u){var f=h(n,i,r,u);return n=e(n,i,r,u),at(f.value,o.expression),f.context[f.name]=n,t?{value:n}:n};case u.ArrayExpression:return s=[],r(n.elements,function(n){s.push(o.recurse(n))}),function(n,i,r,u){for(var f=[],e=0;e<s.length;++e)f.push(s[e](n,i,r,u));return t?{value:f}:f};case u.ObjectExpression:return s=[],r(n.properties,function(n){s.push({key:n.key.type===u.Identifier?n.key.name:""+n.key.value,value:o.recurse(n.value)})}),function(n,i,r,u){for(var e={},f=0;f<s.length;++f)e[s[f].key]=s[f].value(n,i,r,u);return t?{value:e}:e};case u.ThisExpression:return function(n){return t?{value:n}:n};case u.NGValueParameter:return function(n,i,r){return t?{value:r}:r}}},"unary+":function(n,t){return function(i,r,u,f){return i=n(i,r,u,f),i=e(i)?+i:0,t?{value:i}:i}},"unary-":function(n,t){return function(i,r,u,f){return i=n(i,r,u,f),i=e(i)?-i:0,t?{value:i}:i}},"unary!":function(n,t){return function(i,r,u,f){return i=!n(i,r,u,f),t?{value:i}:i}},"binary+":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e);return r=t(r,u,f,e),o=is(o,r),i?{value:o}:o}},"binary-":function(n,t,i){return function(r,u,f,o){var s=n(r,u,f,o);return r=t(r,u,f,o),s=(e(s)?s:0)-(e(r)?r:0),i?{value:s}:s}},"binary*":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)*t(r,u,f,e),i?{value:r}:r}},"binary/":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)/t(r,u,f,e),i?{value:r}:r}},"binary%":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)%t(r,u,f,e),i?{value:r}:r}},"binary===":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)===t(r,u,f,e),i?{value:r}:r}},"binary!==":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)!==t(r,u,f,e),i?{value:r}:r}},"binary==":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)==t(r,u,f,e),i?{value:r}:r}},"binary!=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)!=t(r,u,f,e),i?{value:r}:r}},"binary<":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)<t(r,u,f,e),i?{value:r}:r}},"binary>":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)>t(r,u,f,e),i?{value:r}:r}},"binary<=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)<=t(r,u,f,e),i?{value:r}:r}},"binary>=":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)>=t(r,u,f,e),i?{value:r}:r}},"binary&&":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)&&t(r,u,f,e),i?{value:r}:r}},"binary||":function(n,t,i){return function(r,u,f,e){return r=n(r,u,f,e)||t(r,u,f,e),i?{value:r}:r}},"ternary?:":function(n,t,i,r){return function(u,f,e,o){return u=n(u,f,e,o)?t(u,f,e,o):i(u,f,e,o),r?{value:u}:u}},value:function(n,t){return function(){return t?{context:i,name:i,value:n}:n}},identifier:function(n,t,r,u,f){return function(e,o){return e=o&&n in o?o:e,u&&1!==u&&e&&!e[n]&&(e[n]={}),o=e?e[n]:i,t&&at(o,f),r?{context:e,name:n,value:o}:o}},computedMember:function(n,t,i,r,u){return function(f,e,o,s){var h=n(f,e,o,s),c,l;return null!=h&&(c=t(f,e,o,s),ti(c,u),r&&1!==r&&h&&!h[c]&&(h[c]={}),l=h[c],at(l,u)),i?{context:h,name:c,value:l}:l}},nonComputedMember:function(n,t,r,u,f,e){return function(o,s,h,c){return o=n(o,s,h,c),f&&1!==f&&o&&!o[t]&&(o[t]={}),s=null!=o?o[t]:i,(r||vu(t))&&at(s,e),u?{context:o,name:t,value:s}:s}},inputs:function(n,t){return function(i,r,u,f){return f?f[t]:n(i,r,u)}}};rf=function(n,t,i){this.lexer=n;this.$filter=t;this.options=i;this.ast=new u(this.lexer);this.astCompiler=i.csp?new ss(this.ast,t):new os(this.ast,t)};rf.prototype={constructor:rf,parse:function(n){return this.astCompiler.compile(n,this.options.expensiveChecks)}};rt();rt();var py=Object.prototype.valueOf,ui=v("$sce"),yt={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},it=v("$compile"),nt=t.createElement("a"),bh=ii(n.location.href);as.$inject=["$document"];vs.$inject=["$provide"];ys.$inject=["$locale"];ps.$inject=["$locale"];var kh=".",wy={yyyy:g("FullYear",4),yy:g("FullYear",2,0,!0),y:g("FullYear",1),MMMM:pu("Month"),MMM:pu("Month",!0),MM:g("Month",2,1),M:g("Month",1,1),dd:g("Date",2),d:g("Date",1),HH:g("Hours",2),H:g("Hours",1),hh:g("Hours",2,-12),h:g("Hours",1,-12),mm:g("Minutes",2),m:g("Minutes",1),ss:g("Seconds",2),s:g("Seconds",1),sss:g("Milliseconds",3),EEEE:pu("Day"),EEE:pu("Day",!0),a:function(n,t){return 12>n.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(n,t,i){return n=-1*i,(0<=n?"+":"")+(yu(Math[0<n?"floor":"ceil"](n/60),2)+yu(Math.abs(n%60),2))},ww:ks(2),w:ks(1),G:te,GG:te,GGG:te,GGGG:function(n,t){return 0>=n.getFullYear()?t.ERANAMES[0]:t.ERANAMES[1]}},by=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,ky=/^\-?\d+$/;ds.$inject=["$locale"];dh=pt(y);gh=pt(bu);gs.$inject=["$parse"];nc=pt({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref)return function(n,t){if("a"===t[0].nodeName.toLowerCase()){var i="[object SVGAnimatedString]"===ni.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}}});dr={};r(kr,function(n,t){function r(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}if("multiple"!=n){var i=dt("ng-"+t),u=r;"checked"===n&&(u=function(n,t,u){u.ngModel!==u[i]&&r(n,t,u)});dr[i]=function(){return{restrict:"A",priority:100,link:u}}}});r(se,function(n,t){dr[t]=function(){return{priority:100,link:function(n,i,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)&&(i=r.ngPattern.match(sv))){r.$set("ngPattern",new RegExp(i[1],i[2]));return}n.$watch(r[t],function(n){r.$set(t,n)})}}}});r(["src","srcset","href"],function(n){var t=dt("ng-"+n);dr[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;"href"===n&&"[object SVGAnimatedString]"===ni.call(r.prop("href"))&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){t?(u.$set(f,t),ki&&e&&r.prop(e,u[f])):"href"===n&&u.$set(f,null)})}}}});gr={$addControl:o,$$renameControl:function(n,t){n.$name=t},$removeControl:o,$setValidity:o,$setDirty:o,$setPristine:o,$setSubmitted:o};nh.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var tc=function(n){return["$timeout",function(t){return{name:"form",restrict:n?"EAC":"E",controller:nh,compile:function(r,u){r.addClass(tr).addClass(nu);var f=u.name?"name":n&&u.ngForm?"ngForm":!1;return{pre:function(n,r,u,e){var o,s;if(!("action"in u)){o=function(t){n.$apply(function(){e.$commitViewValue();e.$setSubmitted()});t.preventDefault()};r[0].addEventListener("submit",o,!1);r.on("$destroy",function(){t(function(){r[0].removeEventListener("submit",o,!1)},0,!1)})}s=e.$$parentForm;f&&(au(n,e.$name,e,e.$name),u.$observe(f,function(t){e.$name!==t&&(au(n,e.$name,i,e.$name),s.$$renameControl(e,t),au(n,e.$name,e,e.$name))}));r.on("$destroy",function(){s.$removeControl(e);f&&au(n,u[f],i,e.$name);p(e,gr)})}}}}}]},dy=tc(),gy=tc(!0),np=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,tp=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,ip=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,rp=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,ic=/^(\d{4})-(\d{2})-(\d{2})$/,rc=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ce=/^(\d{4})-W(\d\d)$/,uc=/^(\d{4})-(\d\d)$/,fc=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ec={text:function(n,t,i,r,u,f){vr(n,t,i,r,u,f);ie(r)},date:yr("date",ic,wu(ic,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":yr("datetimelocal",rc,wu(rc,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:yr("time",fc,wu(fc,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:yr("week",ce,function(n,t){var i;if(ut(n))return n;if(l(n)&&(ce.lastIndex=0,i=ce.exec(n),i)){var u=+i[1],r=+i[2],f=i=0,e=0,o=0,s=bs(u),r=7*(r-1);return t&&(i=t.getHours(),f=t.getMinutes(),e=t.getSeconds(),o=t.getMilliseconds()),new Date(u,0,s.getDate()+r,i,f,e,o)}return NaN},"yyyy-Www"),month:yr("month",uc,wu(uc,["yyyy","MM"]),"yyyy-MM"),number:function(n,t,r,u,f,o){var s,c;th(n,t,r,u);vr(n,t,r,u,f,o);u.$$parserName="number";u.$parsers.push(function(n){return u.$isEmpty(n)?null:rp.test(n)?parseFloat(n):i});u.$formatters.push(function(n){if(!u.$isEmpty(n)){if(!k(n))throw ff("numfmt",n);n=n.toString()}return n});(e(r.min)||r.ngMin)&&(u.$validators.min=function(n){return u.$isEmpty(n)||h(s)||n>=s},r.$observe("min",function(n){e(n)&&!k(n)&&(n=parseFloat(n,10));s=k(n)&&!isNaN(n)?n:i;u.$validate()}));(e(r.max)||r.ngMax)&&(u.$validators.max=function(n){return u.$isEmpty(n)||h(c)||n<=c},r.$observe("max",function(n){e(n)&&!k(n)&&(n=parseFloat(n,10));c=k(n)&&!isNaN(n)?n:i;u.$validate()}))},url:function(n,t,i,r,u,f){vr(n,t,i,r,u,f);ie(r);r.$$parserName="url";r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||tp.test(i)}},email:function(n,t,i,r,u,f){vr(n,t,i,r,u,f);ie(r);r.$$parserName="email";r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||ip.test(i)}},radio:function(n,t,i,r){h(i.name)&&t.attr("name",++ku);t.on("click",function(n){t[0].checked&&r.$setViewValue(i.value,n&&n.type)});r.$render=function(){t[0].checked=i.value==r.$viewValue};i.$observe("value",r.$render)},checkbox:function(n,t,i,r,u,f,e,o){var s=ih(o,n,"ngTrueValue",i.ngTrueValue,!0),h=ih(o,n,"ngFalseValue",i.ngFalseValue,!1);t.on("click",function(n){r.$setViewValue(t[0].checked,n&&n.type)});r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return!1===n};r.$formatters.push(function(n){return ot(n,s)});r.$parsers.push(function(n){return n?s:h})},hidden:o,button:o,submit:o,reset:o,file:o},oc=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(ec[y(e.type)]||ec.text)(u,f,e,o[0],t,n,i,r)}}}}],up=/^(true|false|\d+)$/,fp=function(){return{restrict:"A",priority:100,compile:function(n,t){return up.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},ep=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,r,u){n.$$addBindingInfo(r,u.ngBind);r=r[0];t.$watch(u.ngBind,function(n){r.textContent=n===i?"":n})}}}}],op=["$interpolate","$compile",function(n,t){return{compile:function(r){return t.$$addBindingClass(r),function(r,u,f){r=n(u.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(u,r.expressions);u=u[0];f.$observe("ngBindTemplate",function(n){u.textContent=n===i?"":n})}}}}],sp=["$sce","$parse","$compile",function(n,t,i){return{restrict:"A",compile:function(r,u){var f=t(u.ngBindHtml),e=t(u.ngBindHtml,function(n){return(n||"").toString()});return i.$$addBindingClass(r),function(t,r,u){i.$$addBindingInfo(r,u.ngBindHtml);t.$watch(e,function(){r.html(n.getTrustedHtml(f(t))||"")})}}}}],hp=pt({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}}),cp=re("",!0),lp=re("Odd",0),ap=re("Even",1),vp=ci({compile:function(n,t){t.$set("ngCloak",i);n.removeClass("ng-cloak")}}),yp=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],sc={},pp={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=dt("ng-"+n);sc[t]=["$parse","$rootScope",function(i,r){return{restrict:"A",compile:function(u,f){var e=i(f[t],null,!0);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};pp[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var wp=["$animate",function(n){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.createComment(" end ngIf: "+u.ngIf+" ");h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=iu(h.clone),n.leave(o).then(function(){o=null}),h=null))})}}}],bp=["$templateRequest","$anchorScroll","$animate",function(n,t,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ft.noop,compile:function(r,u){var o=u.ngInclude||u.src,s=u.onload||"",f=u.autoscroll;return function(r,u,h,c,l){var p=0,a,v,y,w=function(){v&&(v.remove(),v=null);a&&(a.$destroy(),a=null);y&&(i.leave(y).then(function(){v=null}),v=y,y=null)};r.$watch(o,function(o){var v=function(){e(f)&&(!f||r.$eval(f))&&t()},h=++p;o?(n(o,!0).then(function(n){if(h===p){var t=r.$new();c.template=n;n=l(t,function(n){w();i.enter(n,null,u).then(v)});a=t;y=n;a.$emit("$includeContentLoaded",o);r.$eval(s)}},function(){h===p&&(w(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(w(),c.template=null)})}}}}],kp=["$compile",function(n){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){/SVG/.test(r[0].toString())?(r.empty(),n(fo(f.template,t).childNodes)(i,function(n){r.append(n)},{futureParentElement:r})):(r.html(f.template),n(r.contents())(i))}}}],dp=ci({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),gp=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,t,u,f){var e=t.attr(u.$attr.ngList)||", ",o="false"!==u.ngTrim,s=o?w(e):e;f.$parsers.push(function(n){if(!h(n)){var t=[];return n&&r(n.split(s),function(n){n&&t.push(o?w(n):n)}),t}});f.$formatters.push(function(n){return a(n)?n.join(e):i});f.$isEmpty=function(n){return!n||!n.length}}}},nu="ng-valid",hc="ng-invalid",tr="ng-pristine",uf="ng-dirty",cc="ng-pending",ff=new v("ngModel"),nw=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(n,t,u,f,c,l,a,v,y,p){var it,g;this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=i;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=i;this.$name=p(u.name||"",!1)(n);var d=c(u.ngModel),rt=d.assign,tt=d,ut=rt,nt=null,b,w=this;this.$$setOptions=function(n){if((w.$options=n)&&n.getterSetter){var t=c(u.ngModel+"()"),i=c(u.ngModel+"($$$p)");tt=function(n){var i=d(n);return s(i)&&(i=t(n)),i};ut=function(n){s(d(n))?i(n,{$$$p:w.$modelValue}):rt(n,w.$modelValue)}}else if(!d.assign)throw ff("nonassign",u.ngModel,kt(f));};this.$render=o;this.$isEmpty=function(n){return h(n)||""===n||null===n||n!==n};it=f.inheritedData("$formController")||gr;g=0;rh({ctrl:this,$element:f,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]},parentForm:it,$animate:l});this.$setPristine=function(){w.$dirty=!1;w.$pristine=!0;l.removeClass(f,uf);l.addClass(f,tr)};this.$setDirty=function(){w.$dirty=!0;w.$pristine=!1;l.removeClass(f,tr);l.addClass(f,uf);it.$setDirty()};this.$setUntouched=function(){w.$touched=!1;w.$untouched=!0;l.setClass(f,"ng-untouched","ng-touched")};this.$setTouched=function(){w.$touched=!0;w.$untouched=!1;l.setClass(f,"ng-touched","ng-untouched")};this.$rollbackViewValue=function(){a.cancel(nt);w.$viewValue=w.$$lastCommittedViewValue;w.$render()};this.$validate=function(){if(!k(w.$modelValue)||!isNaN(w.$modelValue)){var n=w.$$rawModelValue,t=w.$valid,r=w.$modelValue,u=w.$options&&w.$options.allowInvalid;w.$$runValidators(n,w.$$lastCommittedViewValue,function(f){u||t===f||(w.$modelValue=f?n:i,w.$modelValue!==r&&w.$$writeModelToScope())})}};this.$$runValidators=function(n,t,u){function c(){var i=!0;return r(w.$validators,function(r,u){var e=r(n,t);i=i&&e;f(u,e)}),i?!0:(r(w.$asyncValidators,function(n,t){f(t,null)}),!1)}function l(){var u=[],h=!0;r(w.$asyncValidators,function(r,e){var o=r(n,t);if(!o||!s(o.then))throw ff("$asyncValidators",o);f(e,i);u.push(o.then(function(){f(e,!0)},function(){h=!1;f(e,!1)}))});u.length?y.all(u).then(function(){e(h)},o):e(!0)}function f(n,t){h===g&&w.$setValidity(n,t)}function e(n){h===g&&u(n)}g++;var h=g;(function(){var n=w.$$parserName||"parse";if(b===i)f(n,null);else return b||(r(w.$validators,function(n,t){f(t,null)}),r(w.$asyncValidators,function(n,t){f(t,null)})),f(n,b),b;return!0})()?c()?l():e(!1):e(!1)};this.$commitViewValue=function(){var n=w.$viewValue;a.cancel(nt);(w.$$lastCommittedViewValue!==n||""===n&&w.$$hasNativeValidators)&&(w.$$lastCommittedViewValue=n,w.$pristine&&this.$setDirty(),this.$$parseAndValidate())};this.$$parseAndValidate=function(){var t=w.$$lastCommittedViewValue,r,u,f;if(b=h(t)?i:!0)for(r=0;r<w.$parsers.length;r++)if(t=w.$parsers[r](t),h(t)){b=!1;break}k(w.$modelValue)&&isNaN(w.$modelValue)&&(w.$modelValue=tt(n));u=w.$modelValue;f=w.$options&&w.$options.allowInvalid;w.$$rawModelValue=t;f&&(w.$modelValue=t,w.$modelValue!==u&&w.$$writeModelToScope());w.$$runValidators(t,w.$$lastCommittedViewValue,function(n){f||(w.$modelValue=n?t:i,w.$modelValue!==u&&w.$$writeModelToScope())})};this.$$writeModelToScope=function(){ut(n,w.$modelValue);r(w.$viewChangeListeners,function(n){try{n()}catch(i){t(i)}})};this.$setViewValue=function(n,t){w.$viewValue=n;w.$options&&!w.$options.updateOnDefault||w.$$debounceViewValueCommit(t)};this.$$debounceViewValueCommit=function(t){var r=0,i=w.$options;i&&e(i.debounce)&&(i=i.debounce,k(i)?r=i:k(i[t])?r=i[t]:k(i["default"])&&(r=i["default"]));a.cancel(nt);r?nt=a(function(){w.$commitViewValue()},r):v.$$phase?w.$commitViewValue():n.$apply(function(){w.$commitViewValue()})};n.$watch(function(){var t=tt(n);if(t!==w.$modelValue&&(w.$modelValue===w.$modelValue||t===t)){w.$modelValue=w.$$rawModelValue=t;b=i;for(var u=w.$formatters,f=u.length,r=t;f--;)r=u[f](r);w.$viewValue!==r&&(w.$viewValue=w.$$lastCommittedViewValue=r,w.$render(),w.$$runValidators(t,r,o))}return t})}],tw=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:nw,priority:1,compile:function(t){return t.addClass(tr).addClass("ng-untouched").addClass(nu),{pre:function(n,t,i,r){var u=r[0],f=r[1]||gr;u.$$setOptions(r[2]&&r[2].$options);f.$addControl(u);i.$observe("name",function(n){u.$name!==n&&f.$$renameControl(u,n)});n.$on("$destroy",function(){f.$removeControl(u)})},post:function(t,i,r,u){var f=u[0];if(f.$options&&f.$options.updateOn)i.on(f.$options.updateOn,function(n){f.$$debounceViewValueCommit(n&&n.type)});i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(f.$setTouched):t.$apply(f.$setTouched))})}}}}}],iw=/(\s+|^)default(\s+|$)/,rw=function(){return{restrict:"A",controller:["$scope","$attrs",function(n,t){var r=this;this.$options=ht(n.$eval(t.ngModelOptions));this.$options.updateOn!==i?(this.$options.updateOnDefault=!1,this.$options.updateOn=w(this.$options.updateOn.replace(iw,function(){return r.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},uw=ci({terminal:!0,priority:1e3}),fw=v("ngOptions"),ew=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,ow=["$compile","$parse",function(n,i){function e(n,t,r){function w(n,t,i,r,u){this.selectValue=n;this.viewValue=t;this.label=i;this.group=r;this.disabled=u}function l(n){var t,i;if(!s&&fi(n))t=n;else{t=[];for(i in n)n.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t.push(i)}return t}var u=n.match(ew),o,s,f;if(!u)throw fw("iexp",n,kt(t));o=u[5]||u[7];s=u[6];n=/ as /.test(u[0])&&u[1];f=u[9];t=i(u[2]?u[1]:o);var b=n&&i(n)||t,k=f&&i(f),h=f?function(n,t){return k(r,t)}:function(n){return ei(n)},a=function(n,t){return h(n,c(n,t))},v=i(u[2]||u[1]),d=i(u[3]||""),y=i(u[4]||""),p=i(u[8]),e={},c=s?function(n,t){return e[s]=t,e[o]=n,e}:function(n){return e[o]=n,e};return{trackBy:f,getTrackByValue:a,getWatchables:i(p,function(n){var f=[];n=n||[];for(var o=l(n),s=o.length,e=0;e<s;e++){var t=n===o?e:o[e],i=c(n[t],t),t=h(n[t],i);f.push(t);(u[2]||u[1])&&(t=v(r,i),f.push(t));u[4]&&(i=y(r,i),f.push(i))}return f}),getOptions:function(){for(var k=[],e={},o=p(r)||[],s=l(o),g=s.length,u=0;u<g;u++){var t=o===s?u:s[u],n=c(o[t],t),i=b(r,n),t=h(i,n),nt=v(r,n),tt=d(r,n),n=y(r,n),i=new w(t,i,nt,tt,n);k.push(i);e[t]=i}return{items:k,selectValueMap:e,getOptionFromViewValue:function(n){return e[a(n)]},getViewValueFromOption:function(n){return f?ft.copy(n.viewValue):n.viewValue}}}}}var u=t.createElement("option"),o=t.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:function(t,i,s,h){function tt(n,t){n.element=t;t.disabled=n.disabled;n.value!==t.value&&(t.value=n.selectValue);n.label!==t.label&&(t.label=n.label,t.textContent=n.label)}function g(n,t,i,r){return t&&y(t.nodeName)===i?i=t:(i=r.cloneNode(!1),t?n.insertBefore(i,t):n.appendChild(i)),i}function it(n){for(var t;n;)t=n.nextSibling,vf(n),n=t}function ut(n){var t=c&&c[0],i=v&&v[0];if(t||i)for(;n&&(n===t||n===i);)n=n.nextSibling;return n}function rt(){var f=p&&k.readValue(),t,n,r;p=b.getOptions();t={};n=i[0].firstChild;w&&i.prepend(c);n=ut(n);p.items.forEach(function(r){var f,e;r.group?(f=t[r.group],f||(f=g(i[0],n,"optgroup",o),n=f.nextSibling,f.label=r.group,f=t[r.group]={groupElement:f,currentOptionElement:f.firstChild}),e=g(f.groupElement,f.currentOptionElement,"option",u),tt(r,e),f.currentOptionElement=e.nextSibling):(e=g(i[0],n,"option",u),tt(r,e),n=e.nextSibling)});Object.keys(t).forEach(function(n){it(t[n].currentOptionElement)});it(n);l.$render();l.$isEmpty(f)||(r=k.readValue(),(b.trackBy?ot(f,r):f===r)||(l.$setViewValue(r),l.$render()))}var l=h[1],k,w,v,p,b;if(l){k=h[0];h=s.multiple;for(var c,d=0,nt=i.children(),ft=nt.length;d<ft;d++)if(""===nt[d].value){c=nt.eq(d);break}w=!!c;v=f(u.cloneNode(!1));v.val("?");b=e(s.ngOptions,i,t);h?(l.$isEmpty=function(n){return!n||0===n.length},k.writeValue=function(n){p.items.forEach(function(n){n.element.selected=!1});n&&n.forEach(function(n){(n=p.getOptionFromViewValue(n))&&!n.disabled&&(n.element.selected=!0)})},k.readValue=function(){var t=i.val()||[],n=[];return r(t,function(t){t=p.selectValueMap[t];t.disabled||n.push(p.getViewValueFromOption(t))}),n},b.trackBy&&t.$watchCollection(function(){if(a(l.$viewValue))return l.$viewValue.map(function(n){return b.getTrackByValue(n)})},function(){l.$render()})):(k.writeValue=function(n){var t=p.getOptionFromViewValue(n);t&&!t.disabled?i[0].value!==t.selectValue&&(v.remove(),w||c.remove(),i[0].value=t.selectValue,t.element.selected=!0,t.element.setAttribute("selected","selected")):null===n||w?(v.remove(),w||i.prepend(c),i.val(""),c.prop("selected",!0),c.attr("selected",!0)):(w||c.remove(),i.prepend(v),i.val("?"),v.prop("selected",!0),v.attr("selected",!0))},k.readValue=function(){var n=p.selectValueMap[i.val()];return n&&!n.disabled?(w||c.remove(),v.remove(),p.getViewValueFromOption(n)):null},b.trackBy&&t.$watch(function(){return b.getTrackByValue(l.$viewValue)},function(){l.$render()}));w?(c.remove(),n(c)(t),c.removeClass("ng-scope")):c=f(u.cloneNode(!1));rt();t.$watchCollection(b.getWatchables,rt)}}}}],sw=["$locale","$interpolate","$log",function(n,t,i){var u=/{}/g,f=/^when(Minus)?(.+)$/;return{link:function(e,s,c){function p(n){s.text(n||"")}var w=c.count,b=c.$attr.when&&s.attr(c.$attr.when),d=c.offset||0,a=e.$eval(b)||{},g={},nt=t.startSymbol(),tt=t.endSymbol(),it=nt+w+"-"+d+tt,v=ft.noop,l;r(c,function(n,t){var i=f.exec(t);i&&(i=(i[1]?"-":"")+y(i[2]),a[i]=s.attr(c.$attr[t]))});r(a,function(n,i){g[i]=t(n.replace(u,it))});e.$watch(w,function(t){var r=parseFloat(t),u=isNaN(r);u||r in a||(r=n.pluralCat(r-d));r===l||u&&k(l)&&isNaN(l)||(v(),u=g[r],h(u)?(null!=t&&i.debug("ngPluralize: no rule defined for '"+r+"' in "+b),v=o,p()):v=e.$watch(u,p),l=r)})}}}],hw=["$parse","$animate",function(n,u){var e=v("ngRepeat"),o=function(n,t,i,r,u,f,e){n[i]=r;u&&(n[u]=f);n.$index=t;n.$first=0===t;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=0==(t&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(s,h){var y=h.ngRepeat,tt=t.createComment(" end ngRepeat: "+y+" "),c=y.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),p,a,w,b,g,nt,v;if(!c)throw e("iexp",y);var k=c[1],it=c[2],l=c[3],d=c[4],c=k.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!c)throw e("iidexp",k);if(p=c[3]||c[1],a=c[2],l&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(l)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(l)))throw e("badident",l);return v={$id:ei},d?w=n(d):(g=function(n,t){return ei(t)},nt=function(n){return n}),function(n,t,s,h,c){w&&(b=function(t,i,r){return a&&(v[a]=t),v[p]=i,v.$index=r,w(n,v)});var k=rt();n.$watchCollection(it,function(s){var h,st,ht=t[0],it,ct=rt(),et,ft,ot,w,ut,v,d;if(l&&(n[l]=s),fi(s))ut=s,st=b||g;else for(d in st=b||nt,ut=[],s)s.hasOwnProperty(d)&&"$"!==d.charAt(0)&&ut.push(d);for(et=ut.length,d=Array(et),h=0;h<et;h++)if(ft=s===ut?h:ut[h],ot=s[ft],w=st(ft,ot,h),k[w])v=k[w],delete k[w],ct[w]=v,d[h]=v;else{if(ct[w])throw r(d,function(n){n&&n.scope&&(k[n.id]=n)}),e("dupes",y,w,ot);d[h]={id:w,scope:i,clone:i};ct[w]=!0}for(it in k){if(v=k[it],w=iu(v.clone),u.leave(w),w[0].parentNode)for(h=0,st=w.length;h<st;h++)w[h].$$NG_REMOVED=!0;v.scope.$destroy()}for(h=0;h<et;h++)if(ft=s===ut?h:ut[h],ot=s[ft],v=d[h],v.scope){it=ht;do it=it.nextSibling;while(it&&it.$$NG_REMOVED);v.clone[0]!=it&&u.move(iu(v.clone),null,f(ht));ht=v.clone[v.clone.length-1];o(v.scope,h,p,ot,a,ft,et)}else c(function(n,t){v.scope=t;var i=tt.cloneNode(!1);n[n.length++]=i;u.enter(n,null,f(ht));ht=i;v.clone=n;ct[v.id]=v;o(v.scope,h,p,ot,a,ft,et)});k=ct})}}}}],cw=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],lw=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],aw=ci(function(n,t,i){n.$watch(i.ngStyle,function(n,i){i&&n!==i&&r(i,function(n,i){t.css(i,"")});n&&t.css(n)},!0)}),vw=["$animate",function(n){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(i,u,f,e){var c=[],h=[],o=[],s=[],l=function(n,t){return function(){n.splice(t,1)}};i.$watch(f.ngSwitch||f.on,function(i){for(var a,u=0,f=o.length;u<f;++u)n.cancel(o[u]);for(u=o.length=0,f=s.length;u<f;++u)a=iu(h[u].clone),s[u].$destroy(),(o[u]=n.leave(a)).then(l(o,u));h.length=0;s.length=0;(c=e.cases["!"+i]||e.cases["?"])&&r(c,function(i){i.transclude(function(r,u){s.push(u);var f=i.element;r[r.length++]=t.createComment(" end ngSwitchWhen: ");h.push({clone:r});n.enter(r,f.parent(),f)})})})}}}],yw=ci({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),pw=ci({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),ww=ci({restrict:"EAC",link:function(n,t,i,r,u){if(!u)throw v("ngTransclude")("orphan",kt(t));u(function(n){t.empty();t.append(n)})}}),bw=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){"text/ng-template"==i.type&&n.put(i.id,t[0].text)}}}],kw={$setViewValue:o,$render:o},dw=["$element","$scope","$attrs",function(n,r){var u=this,e=new bi;u.ngModelCtrl=kw;u.unknownOption=f(t.createElement("option"));u.renderUnknownOption=function(t){t="? "+ei(t)+" ?";u.unknownOption.val(t);n.prepend(u.unknownOption);n.val(t)};r.$on("$destroy",function(){u.renderUnknownOption=o});u.removeUnknownOption=function(){u.unknownOption.parent()&&u.unknownOption.remove()};u.readValue=function(){return u.removeUnknownOption(),n.val()};u.writeValue=function(t){u.hasOption(t)?(u.removeUnknownOption(),n.val(t),""===t&&u.emptyOption.prop("selected",!0)):null==t&&u.emptyOption?(u.removeUnknownOption(),n.val("")):u.renderUnknownOption(t)};u.addOption=function(n,t){wi(n,'"option value"');""===n&&(u.emptyOption=t);var i=e.get(n)||0;e.put(n,i+1)};u.removeOption=function(n){var t=e.get(n);t&&(1===t?(e.remove(n),""===n&&(u.emptyOption=i)):e.put(n,t-1))};u.hasOption=function(n){return!!e.get(n)}}],gw=function(){return{restrict:"E",require:["select","?ngModel"],controller:dw,link:function(n,t,i,u){var f=u[1],o,h,s;if(f){o=u[0];o.ngModelCtrl=f;f.$render=function(){o.writeValue(f.$viewValue)};t.on("change",function(){n.$apply(function(){f.$setViewValue(o.readValue())})});i.multiple&&(o.readValue=function(){var n=[];return r(t.find("option"),function(t){t.selected&&n.push(t.value)}),n},o.writeValue=function(n){var i=new bi(n);r(t.find("option"),function(n){n.selected=e(i.get(n.value))})},s=NaN,n.$watch(function(){s!==f.$viewValue||ot(h,f.$viewValue)||(h=ct(f.$viewValue),f.$render());s=f.$viewValue}),f.$isEmpty=function(n){return!n||0===n.length})}}}},nb=["$interpolate",function(n){function t(n){n[0].hasAttribute("selected")&&(n[0].selected=!0)}return{restrict:"E",priority:100,compile:function(i,r){if(h(r.value)){var u=n(i.text(),!0);u||r.$set("value",i.text())}return function(n,i,r){var e=i.parent(),f=e.data("$selectController")||e.parent().data("$selectController");f&&f.ngModelCtrl&&(u?n.$watch(u,function(n,u){r.$set("value",n);u!==n&&f.removeOption(u);f.addOption(n,i);f.ngModelCtrl.$render();t(i)}):(f.addOption(r.value,i),f.ngModelCtrl.$render(),t(i)),i.on("$destroy",function(){f.removeOption(r.value);f.ngModelCtrl.$render()}))}}}}],tb=pt({restrict:"E",terminal:!1}),lc=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){r&&(i.required=!0,r.$validators.required=function(n,t){return!i.required||!r.$isEmpty(t)},i.$observe("required",function(){r.$validate()}))}}},ac=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,r,u){if(u){var f,e=r.ngPattern||r.pattern;r.$observe("pattern",function(n){if(l(n)&&0<n.length&&(n=new RegExp("^"+n+"$")),n&&!n.test)throw v("ngPattern")("noregexp",e,n,kt(t));f=n||i;u.$validate()});u.$validators.pattern=function(n){return u.$isEmpty(n)||h(f)||f.test(n)}}}}},vc=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=-1;i.$observe("maxlength",function(n){n=tt(n);u=isNaN(n)?-1:n;r.$validate()});r.$validators.maxlength=function(n,t){return 0>u||r.$isEmpty(t)||t.length<=u}}}}},yc=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("minlength",function(n){u=tt(n)||0;r.$validate()});r.$validators.minlength=function(n,t){return r.$isEmpty(t)||t.length>=u}}}}};n.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(il(),ul(ft),f(t).ready(function(){gc(t,to)}))}(window,document);window.angular.$$csp()||window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}<\/style>'),function(n,t,i){"use strict";function ot(n,t,i){if(!n)throw ngMinErr("areq",t||"?",i||"required");return n}function st(n,t){return!n&&!t?"":n?t?(h(n)&&(n=n.join(" ")),h(t)&&(t=t.join(" ")),n+" "+t):n:t}function kt(n){var t={};return n&&(n.to||n.from)&&(t.to=n.to,t.from=n.from),t}function c(n,t,i){var u="";return n=h(n)?n:n&&k(n)&&n.length?n.split(/\s+/):[],r(n,function(n,r){n&&0<n.length&&(u+=0<r?" ":"",u+=i?t+n:n+t)}),u}function dt(n){if(n instanceof s)switch(n.length){case 0:return[];case 1:if(1===n[0].nodeType)return n;break;default:return s(d(n))}if(1===n.nodeType)return s(n)}function d(n){var t,i;if(!n[0])return n;for(t=0;t<n.length;t++)if(i=n[t],1==i.nodeType)return i}function gt(n,t,i){r(t,function(t){n.addClass(t,i)})}function ni(n,t,i){r(t,function(t){n.removeClass(t,i)})}function p(n){return function(t,i){i.addClass&&(gt(n,t,i.addClass),i.addClass=null);i.removeClass&&(ni(n,t,i.removeClass),i.removeClass=null)}}function w(n){if(n=n||{},!n.$$prepared){var t=n.domOperation||e;n.domOperation=function(){n.$$domOperationFired=!0;t();t=e};n.$$prepared=!0}return n}function l(n,t){ht(n,t);ct(n,t)}function ht(n,t){t.from&&(n.css(t.from),t.from=null)}function ct(n,t){t.to&&(n.css(t.to),t.to=null)}function a(n,t,i){var r=(t.addClass||"")+" "+(i.addClass||""),u=(t.removeClass||"")+" "+(i.removeClass||"");return n=ti(n.attr("class"),r,u),yt(t,i),t.addClass=n.addClass?n.addClass:null,t.removeClass=n.removeClass?n.removeClass:null,t}function ti(n,t,i){function e(n){k(n)&&(n=n.split(" "));var t={};return r(n,function(n){n.length&&(t[n]=!0)}),t}var f={},u;return n=e(n),t=e(t),r(t,function(n,t){f[t]=1}),i=e(i),r(i,function(n,t){f[t]=1===f[t]?null:-1}),u={addClass:"",removeClass:""},r(f,function(t,i){var r,f;1===t?(r="addClass",f=!n[i]):-1===t&&(r="removeClass",f=n[i]);f&&(u[r].length&&(u[r]+=" "),u[r]+=i)}),u}function u(n){return n instanceof t.element?n[0]:n}function lt(n,t,i){var u=Object.create(null),f=n.getComputedStyle(t)||{};return r(i,function(n,t){var i=f[n],r;i&&(r=i.charAt(0),("-"===r||"+"===r||0<=r)&&(i=ii(i)),0===i&&(i=null),u[t]=i)}),u}function ii(n){var t=0;return n=n.split(/\s*,\s*/),r(n,function(n){"s"==n.charAt(n.length-1)&&(n=n.substring(0,n.length-1));n=parseFloat(n)||0;t=t?Math.max(n,t):n}),t}function g(n){return 0===n||null!=n}function at(n,t){var i=f,r=n+"s";return t?i+="Duration":r+=" linear all",[i,r]}function b(n,t){var i=t?"-"+t+"s":"";return v(n,[y,i]),[y,i]}function nt(n,t){var i=t?"paused":"",r=o+"PlayState";return v(n,[r,i]),[r,i]}function v(n,t){n.style[t[0]]=t[1]}function vt(){var n=Object.create(null);return{flush:function(){n=Object.create(null)},count:function(t){return(t=n[t])?t.total:0},get:function(t){return(t=n[t])&&t.value},put:function(t,i){n[t]?n[t].total++:n[t]={total:1,value:i}}}}var e=t.noop,yt=t.extend,s=t.element,r=t.forEach,h=t.isArray,k=t.isString,tt=t.isObject,ri=t.isUndefined,ui=t.isDefined,pt=t.isFunction,it=t.isElement,f,rt,o,ut,wt,bt;n.ontransitionend===i&&n.onwebkittransitionend!==i?(f="WebkitTransition",rt="webkitTransitionEnd transitionend"):(f="transition",rt="transitionend");n.onanimationend===i&&n.onwebkitanimationend!==i?(o="WebkitAnimation",ut="webkitAnimationEnd animationend"):(o="animation",ut="animationend");var ft=o+"Delay",et=o+"Duration",y=f+"Delay";n=f+"Duration";wt={transitionDuration:n,transitionDelay:y,transitionProperty:f+"Property",animationDuration:et,animationDelay:ft,animationIterationCount:o+"IterationCount"};bt={transitionDuration:n,transitionDelay:y,animationDuration:et,animationDelay:ft};t.module("ngAnimate",[]).directive("ngAnimateChildren",[function(){return function(n,i,r){n=r.ngAnimateChildren;t.isString(n)&&0===n.length?i.data("$$ngAnimateChildren",!0):r.$observe("ngAnimateChildren",function(n){i.data("$$ngAnimateChildren","on"===n||"true"===n)})}}]).factory("$$rAFMutex",["$$rAF",function(n){return function(){var t=!1;return n(function(){t=!0}),function(i){t?i():n(i)}}}]).factory("$$rAFScheduler",["$$rAF",function(n){function u(n){i.push([].concat(n));r()}function r(){var e,u,f;if(i.length){for(e=[],u=0;u<i.length;u++)f=i[u],f.shift()(),f.length&&e.push(f);i=e;t||n(function(){t||r()})}}var i=[],t;return u.waitUntilQuiet=function(i){t&&t();t=n(function(){t=null;i();r()})},u}]).factory("$$AnimateRunner",["$q","$$rAFMutex",function(n,t){function i(n){this.setHost(n);this._doneCallbacks=[];this._runInAnimationFrame=t();this._state=0}return i.chain=function(n,t){function r(){i===n.length?t(!0):n[i](function(n){!1===n?t(!1):(i++,r())})}var i=0;r()},i.all=function(n,t){function u(r){i=i&&r;++f===n.length&&t(i)}var f=0,i=!0;r(n,function(n){n.done(u)})},i.prototype={setHost:function(n){this.host=n||{}},done:function(n){2===this._state?n():this._doneCallbacks.push(n)},progress:e,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){!1===t?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(n){var t=this;0===t._state&&(t._state=1,t._runInAnimationFrame(function(){t._resolve(n)}))},_resolve:function(n){2!==this._state&&(r(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=2)}},i}]).provider("$$animateQueue",["$animateProvider",function(n){function f(n,i,r,u){return t[n].some(function(n){return n(i,r,u)})}function i(n,t){n=n||{};var i=0<(n.addClass||"").length,r=0<(n.removeClass||"").length;return t?i&&r:i||r}var t=this.rules={skip:[],cancel:[],join:[]};t.join.push(function(n,t){return!t.structural&&i(t.options)});t.skip.push(function(n,t){return!t.structural&&!i(t.options)});t.skip.push(function(n,t,i){return"leave"==i.event&&t.structural});t.skip.push(function(n,t,i){return i.structural&&!t.structural});t.cancel.push(function(n,t,i){return i.structural&&t.structural});t.cancel.push(function(n,t,i){return 2===i.state&&t.structural});t.cancel.push(function(n,t,i){return n=t.options,i=i.options,n.addClass&&n.addClass===i.removeClass||n.removeClass&&n.removeClass===i.addClass});this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite",function(t,e,o,c,v,y,b,k,g){function vt(n,t){var e=u(n),i=[],f=rt[t];return f&&r(f,function(n){n.node.contains(e)&&i.push(n.callback)}),i}function pt(n,i,u,f){t(function(){r(vt(i,n),function(n){n(i,u,f)})})}function wt(n,t,r){function rt(t,i,r,u){pt(i,n,r,u);t.progress(i,r,u)}function p(t){at(n,r);l(n,r);r.domOperation();c.complete(!t)}var v,it,c,o,g;if(((n=dt(n))&&(v=u(n),it=n.parent()),r=w(r),c=new b,!v)||(h(r.addClass)&&(r.addClass=r.addClass.join(" ")),h(r.removeClass)&&(r.removeClass=r.removeClass.join(" ")),r.from&&!tt(r.from)&&(r.from=null),r.to&&!tt(r.to)&&(r.to=null),o=[v.className,r.addClass,r.removeClass].join(" "),!ti(o)))return p(),c;var d=0<=["enter","move","leave"].indexOf(t),s=!ft||ut.get(v),o=!s&&nt.get(v)||{},k=!!o.state;if(s||k&&1==o.state||(s=!kt(n,it,t)),s)return p(),c;if(d&&bt(n),s={structural:d,element:n,event:t,close:p,options:r,runner:c},k){if(f("skip",n,s,o))return 2===o.state?(p(),c):(a(n,o.options,r),o.runner);if(f("cancel",n,s,o))2===o.state?o.runner.end():o.structural?o.close():a(n,s.options,o.options);else if(f("join",n,s,o))if(2===o.state)a(n,r,{});else return t=s.event=o.event,r=a(n,o.options,s.options),c}else a(n,r,{});return((k=s.structural)||(k="animate"===s.event&&0<Object.keys(s.options.to||{}).length||i(s.options)),!k)?(p(),et(n),c):(d&&ht(it),g=(o.counter||0)+1,s.counter=g,ct(n,1,s),e.$$postDigest(function(){var f=nt.get(v),e=!f,f=f||{},o=n.parent()||[],s=0<o.length&&("animate"===f.event||f.structural||i(f.options));e||f.counter!==g||!s?(e&&(at(n,r),l(n,r)),(e||d&&f.event!==t)&&(r.domOperation(),c.end()),s||et(n)):(t=!f.structural&&i(f.options,!0)?"setClass":f.event,f.structural&&ht(o),ct(n,2),f=y(n,t,f.options),f.done(function(i){p(!i);(i=nt.get(v))&&i.counter===g&&et(u(n));rt(c,t,"close",{})}),c.setHost(f),rt(c,t,"start",{}))}),c)}function bt(n){n=u(n).querySelectorAll("[data-ng-animate]");r(n,function(n){var i=parseInt(n.getAttribute("data-ng-animate")),t=nt.get(n);switch(i){case 2:t.runner.end();case 1:t&&nt.remove(n)}})}function et(n){n=u(n);n.removeAttribute("data-ng-animate");nt.remove(n)}function st(n,t){return u(n)===u(t)}function ht(n){var t,r;n=u(n);do{if(!n||1!==n.nodeType)break;t=nt.get(n);t&&(r=n,!t.structural&&i(t.options)&&(2===t.state&&t.runner.end(),et(r)));n=n.parentNode}while(1)}function kt(n,t,i){var r=i=!1,f=!1,u,e;for((n=n.data("$ngAnimatePin"))&&(t=n);t&&t.length;){if(r||(r=st(t,o)),n=t[0],1!==n.nodeType)break;if(e=nt.get(n)||{},f||(f=e.structural||ut.get(n)),(ri(u)||!0===u)&&(n=t.data("$$ngAnimateChildren"),ui(n)&&(u=n)),f&&!1===u)break;r||(r=st(t,o),r||(n=t.data("$ngAnimatePin"))&&(t=n));i||(i=st(t,ni));t=t.parent()}return(!f||u)&&r&&i}function ct(n,t,i){i=i||{};i.state=t;n=u(n);n.setAttribute("data-ng-animate",t);i=(t=nt.get(n))?yt(t,i):i;nt.put(n,i)}var nt=new v,ut=new v,ft=null,gt=e.$watch(function(){return 0===k.totalPendingRequests},function(n){n&&(gt(),e.$$postDigest(function(){e.$$postDigest(function(){null===ft&&(ft=!0)})}))}),ni=s(c[0].body),rt={},lt=n.classNameFilter(),ti=lt?function(n){return lt.test(n)}:function(){return!0},at=p(g);return{on:function(n,t,i){t=d(t);rt[n]=rt[n]||[];rt[n].push({node:t,callback:i})},off:function(n,t,i){function u(n,t,i){var r=d(t);return n.filter(function(n){return!(n.node===r&&(!i||n.callback===i))})}var r=rt[n];r&&(rt[n]=1===arguments.length?null:u(r,t,i))},pin:function(n,t){ot(it(n),"element","not an element");ot(it(t),"parentElement","not an element");n.data("$ngAnimatePin",t)},push:function(n,t,i,r){return i=i||{},i.domOperation=r,wt(n,t,i)},enabled:function(n,t){var f=arguments.length,i,r;return 0===f?t=!!ft:it(n)?(i=u(n),r=ut.get(i),1===f?t=!r:(t=!!t)?r&&ut.remove(i):ut.put(i,!0)):t=ft=!!n,t}}}]}]).provider("$$animation",["$animateProvider",function(){function n(n){return n.data("$$animationRunner")}var t=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$rAFScheduler",function(i,f,e,o,h){var a=[],b=p(i),v=0,y=0,c=[];return function(p,k,d){function et(n){n=n.hasAttribute("ng-animate-ref")?[n]:n.querySelectorAll("[ng-animate-ref]");var t=[];return r(n,function(n){var i=n.getAttribute("ng-animate-ref");i&&i.length&&t.push(n)}),t}function ot(n){var t=[],i={},e,f;return r(n,function(n,f){var e=u(n.element),h=0<=["enter","move"].indexOf(n.event),e=n.structural?et(e):[],o;e.length?(o=h?"to":"from",r(e,function(n){var t=n.getAttribute("ng-animate-ref");i[t]=i[t]||{};i[t][o]={animationID:f,element:s(n)}})):t.push(n)}),e={},f={},r(i,function(i){var r=i.from,u=i.to,c;if(r&&u){var o=n[r.animationID],s=n[u.animationID],h=r.animationID.toString();f[h]||(c=f[h]={structural:!0,beforeStart:function(){o.beforeStart();s.beforeStart()},close:function(){o.close();s.close()},classes:ht(o.classes,s.classes),from:o,to:s,anchors:[]},c.classes.length?t.push(c):(t.push(o),t.push(s)));f[h].anchors.push({out:r.element,"in":u.element})}else r=r?r.animationID:u.animationID,u=r.toString(),e[u]||(e[u]=!0,t.push(n[r]))}),t}function ht(n,t){var f,i,r,u;for(n=n.split(" "),t=t.split(" "),f=[],i=0;i<n.length;i++)if(r=n[i],"ng-"!==r.substring(0,3))for(u=0;u<t.length;u++)if(r===t[u]){f.push(r);break}return f.join(" ")}function ct(n){for(var i,r=t.length-1;0<=r;r--)if(i=t[r],e.has(i)&&(i=e.get(i)(n)))return i}function lt(t,i){t.from&&t.to?(n(t.from.element).setHost(i),n(t.to.element).setHost(i)):n(t.element).setHost(i)}function ut(){var t=n(p);!t||"leave"===k&&d.$$domOperationFired||t.end()}function tt(n){p.off("$destroy",ut);p.removeData("$$animationRunner");b(p,d);l(p,d);d.domOperation();g&&i.removeClass(p,g);p.removeClass("ng-animate");nt.complete(!n)}var it,nt,rt,g,ft;if(d=w(d),it=0<=["enter","move","leave"].indexOf(k),nt=new o({end:function(){tt()},cancel:function(){tt(!0)}}),!t.length)return tt(),nt;p.data("$$animationRunner",nt);rt=st(p.attr("class"),st(d.addClass,d.removeClass));g=d.tempClasses;g&&(rt+=" "+g,d.tempClasses=null);it||(ft=v,v+=1);a.push({element:p,classes:rt,event:k,classBasedIndex:ft,structural:it,options:d,beforeStart:function(){p.addClass("ng-animate");g&&i.addClass(p,g)},close:tt});p.on("$destroy",ut);return 1<a.length?nt:(f.$$postDigest(function(){y=v;v=0;c.length=0;var t=[];r(a,function(i){n(i.element)&&t.push(i)});a.length=0;r(ot(t),function(t){function i(){t.beforeStart();var i,f=t.close,r=t.anchors?t.from.element||t.to.element:t.element;n(r)&&u(r).parentNode&&(r=ct(t))&&(i=r.start);i?(i=i(),i.done(function(n){f(!n)}),lt(t,i)):f()}t.structural?i():(c.push({node:u(t.element),fn:i}),t.classBasedIndex===y-1&&(c=c.sort(function(n,t){return t.node.contains(n.node)}).map(function(n){return n.fn}),h(c)))})}),nt)}}]}]).provider("$animateCss",["$animateProvider",function(){var n=vt(),t=vt();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$document","$sniffer","$$rAFScheduler",function(i,e,s,a,k,d,tt){function st(n,t){var i=n.parentNode;return(i.$$ngAnimateParentKey||(i.$$ngAnimateParentKey=++dt))+"-"+n.getAttribute("class")+"-"+t}function yt(r,u,f,o){var s;return 0<n.count(f)&&(s=t.get(f),s||(u=c(u,"-stagger"),e.addClass(r,u),s=lt(i,r,o),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),e.removeClass(r,u),t.put(f,s))),s||{}}function pt(i){it.push(i);tt.waitUntilQuiet(function(){n.flush();t.flush();for(var r=gt.offsetWidth+1,i=0;i<it.length;i++)it[i](r);it.length=0})}function vt(t,r,u){return r=n.get(u),r||(r=lt(i,t,wt),"infinite"===r.animationIterationCount&&(r.animationIterationCount=1)),n.put(u,r),t=r,u=t.animationDelay,r=t.transitionDelay,t.maxDelay=u&&r?Math.max(u,r):u||r,t.maxDuration=Math.max(t.animationDuration*t.animationIterationCount,t.transitionDuration),t}var ot=p(e),dt=0,gt=u(k).body,it=[];return function(t,i){function ci(){ni()}function di(){ni(!0)}function ni(n){oi||wi&&ii||(oi=!0,ii=!1,e.removeClass(t,ri),e.removeClass(t,nr),nt(k,!1),b(k,!1),r(wt,function(n){k.style[n[0]]=""}),ot(t,i),l(t,i),i.onDone&&i.onDone(),ui&&ui.complete(!n))}function gi(n){p.blockTransition&&b(k,n);p.blockKeyframeAnimation&&nt(k,!!n)}function li(){return ui=new s({end:ci,cancel:di}),ni(),{$$willAnimate:!1,start:function(){return ui},end:ci}}function tr(){function u(){var u,h;if(!oi){if(gi(!1),r(wt,function(n){k.style[n[0]]=n[1]}),ot(t,i),e.addClass(t,nr),p.recalculateTimingStyles){if(hi=k.className+" "+ri,ei=st(k,hi),tt=vt(k,hi,ei),dt=tt.maxDelay,si=Math.max(dt,0),lt=tt.maxDuration,0===lt){ni();return}p.hasTransitions=0<tt.transitionDuration;p.hasAnimations=0<tt.animationDuration}(p.applyTransitionDelay||p.applyAnimationDelay)&&(dt="boolean"!=typeof i.delay&&g(i.delay)?parseFloat(i.delay):dt,si=Math.max(dt,0),p.applyTransitionDelay&&(tt.transitionDelay=dt,u=[y,dt+"s"],wt.push(u),k.style[u[0]]=u[1]),p.applyAnimationDelay&&(tt.animationDelay=dt,u=[ft,dt+"s"],wt.push(u),k.style[u[0]]=u[1]));yi=1e3*si;bi=1e3*lt;i.easing&&(h=i.easing,p.hasTransitions&&(u=f+"TimingFunction",wt.push([u,h]),k.style[u]=h),p.hasAnimations&&(u=o+"TimingFunction",wt.push([u,h]),k.style[u]=h));tt.transitionDuration&&n.push(rt);tt.animationDuration&&n.push(ut);s=Date.now();t.on(n.join(" "),v);a(l,yi+1.5*bi);ct(t,i)}}function l(){ni()}function v(n){n.stopPropagation();var t=n.originalEvent||n;n=t.$manualTimeStamp||t.timeStamp||Date.now();t=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-s,0)>=yi&&t>=lt&&(wi=!0,ni())}if(!oi)if(k.parentNode){var s,n=[],h=function(n){if(wi)ii&&n&&(ii=!1,ni());else if(ii=!n,tt.animationDuration)if(n=nt(k,ii),ii)wt.push(n);else{var t=wt,i=t.indexOf(n);0<=n&&t.splice(i,1)}},c=0<pi&&(tt.transitionDuration&&0===gt.transitionDuration||tt.animationDuration&&0===gt.animationDuration)&&Math.max(gt.animationDelay,gt.transitionDelay);c?a(u,Math.floor(c*pi*1e3),!1):u();vi.resume=function(){h(!0)};vi.pause=function(){h(!1)}}else ni()}var k=u(t),ei,gt,pi,tt,dt,p;if(!k||!k.parentNode)return li();i=w(i);var wt=[],ai=t.attr("class"),it=kt(i),oi,ii,wi,ui,vi,si,yi,lt,bi;if(0===i.duration||!d.animations&&!d.transitions)return li();var fi=i.event&&h(i.event)?i.event.join(" "):i.event,ki="",ti="";fi&&i.structural?ki=c(fi,"ng-",!0):fi&&(ki=fi);i.addClass&&(ti+=c(i.addClass,"-add"));i.removeClass&&(ti.length&&(ti+=" "),ti+=c(i.removeClass,"-remove"));i.applyClassesEarly&&ti.length&&(ot(t,i),ti="");var ri=[ki,ti].join(" ").trim(),hi=ai+" "+ri,nr=c(ri,"-active"),ai=it.to&&0<Object.keys(it.to).length;return(0<(i.keyframeStyle||"").length||ai||ri)?(0<i.stagger?(it=parseFloat(i.stagger),gt={transitionDelay:it,animationDelay:it,transitionDuration:0,animationDuration:0}):(ei=st(k,hi),gt=yt(k,ri,ei,bt)),e.addClass(t,ri),i.transitionStyle&&(it=[f,i.transitionStyle],v(k,it),wt.push(it)),0<=i.duration&&(it=0<k.style[f].length,it=at(i.duration,it),v(k,it),wt.push(it)),i.keyframeStyle&&(it=[o,i.keyframeStyle],v(k,it),wt.push(it)),pi=gt?0<=i.staggerIndex?i.staggerIndex:n.count(ei):0,(fi=0===pi)&&b(k,9999),tt=vt(k,hi,ei),dt=tt.maxDelay,si=Math.max(dt,0),lt=tt.maxDuration,p={},p.hasTransitions=0<tt.transitionDuration,p.hasAnimations=0<tt.animationDuration,p.hasTransitionAll=p.hasTransitions&&"all"==tt.transitionProperty,p.applyTransitionDuration=ai&&(p.hasTransitions&&!p.hasTransitionAll||p.hasAnimations&&!p.hasTransitions),p.applyAnimationDuration=i.duration&&p.hasAnimations,p.applyTransitionDelay=g(i.delay)&&(p.applyTransitionDuration||p.hasTransitions),p.applyAnimationDelay=g(i.delay)&&p.hasAnimations,p.recalculateTimingStyles=0<ti.length,(p.applyTransitionDuration||p.applyAnimationDuration)&&(lt=i.duration?parseFloat(i.duration):lt,p.applyTransitionDuration&&(p.hasTransitions=!0,tt.transitionDuration=lt,it=0<k.style[f+"Property"].length,wt.push(at(lt,it))),p.applyAnimationDuration&&(p.hasAnimations=!0,tt.animationDuration=lt,wt.push([et,lt+"s"]))),0===lt&&!p.recalculateTimingStyles)?li():(null==i.duration&&0<tt.transitionDuration&&(p.recalculateTimingStyles=p.recalculateTimingStyles||fi),yi=1e3*si,bi=1e3*lt,i.skipBlocking||(p.blockTransition=0<tt.transitionDuration,p.blockKeyframeAnimation=0<tt.animationDuration&&0<gt.animationDelay&&0===gt.animationDuration),ht(t,i),p.blockTransition||b(k,!1),gi(lt),{$$willAnimate:!0,end:ci,start:function(){if(!oi)return vi={end:ci,cancel:di,resume:null,pause:null},ui=new s(vi),pt(tr),ui}}):li()}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(n){n.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$document","$sniffer",function(n,t,i,f,o,h){function a(n){return n.replace(/\bng-\S+\b/g,"")}function v(n,t){return k(n)&&(n=n.split(" ")),k(t)&&(t=t.split(" ")),n.filter(function(n){return-1===t.indexOf(n)}).join(" ")}function p(t,f,e){function p(n){var t={},i=u(n).getBoundingClientRect();return r(["width","height","top","left"],function(n){var r=i[n];switch(n){case"top":r+=c.scrollTop;break;case"left":r+=c.scrollLeft}t[n]=Math.floor(r)+"px"}),t}function w(){var t=a(e.attr("class")||""),i=v(t,b),t=v(b,t),i=n(o,{to:p(e),addClass:"ng-anchor-in "+i,removeClass:"ng-anchor-out "+t,delay:!0});return i.$$willAnimate?i:null}function l(){o.remove();f.removeClass("ng-animate-shim");e.removeClass("ng-animate-shim")}var o=s(u(f).cloneNode(!0)),b=a(o.attr("class")||""),h,k;return(f.addClass("ng-animate-shim"),e.addClass("ng-animate-shim"),o.addClass("ng-anchor"),y.append(o),t=function(){var t=n(o,{addClass:"ng-anchor-out",delay:!0,from:p(f)});return t.$$willAnimate?t:null}(),!t&&(h=w(),!h))?l():(k=t||h,{start:function(){function r(){n&&n.end()}var t,n=k.start();return n.done(function(){if(n=null,!h&&(h=w()))return n=h.start(),n.done(function(){n=null;l();t.complete()}),n;l();t.complete()}),t=new i({end:r,cancel:r})}})}function w(n,t,u,f){var e=l(n),o=l(t),s=[];return r(f,function(n){(n=p(u,n.out,n["in"]))&&s.push(n)}),e||o||0!==s.length?{start:function(){function u(){r(n,function(n){n.end()})}var n=[],t;return e&&n.push(e.start()),o&&n.push(o.start()),r(s,function(t){n.push(t.start())}),t=new i({end:u,cancel:u}),i.all(n,function(n){t.complete(n)}),t}}:void 0}function l(t){var r=t.element,i=t.options||{};return t.structural?(i.structural=i.applyClassesEarly=!0,i.event=t.event,"leave"===i.event&&(i.onDone=i.domOperation)):i.event=null,t=n(r,i),t.$$willAnimate?t:null}var c,y;return!h.animations&&!h.transitions?e:(c=u(o).body,t=u(f),y=s(c.parentNode===t?c:t),function(n){return n.from&&n.to?w(n.from,n.to,n.classes,n.anchors):l(n)})}]}]).provider("$$animateJs",["$animateProvider",function(n){this.$get=["$injector","$$AnimateRunner","$$rAFMutex","$$jqLite",function(t,i,u,f){function o(i){var r,f;i=h(i)?i:i.split(" ");for(var e=[],o={},u=0;u<i.length;u++)r=i[u],f=n.$$registeredAnimations[r],f&&!o[r]&&(e.push(t.get(f)),o[r]=!0);return e}var s=p(f);return function(n,t,u,f){function v(){f.domOperation();s(n,f)}function nt(n,t,r,u,f){switch(r){case"animate":t=[t,u.from,u.to,f];break;case"setClass":t=[t,d,g,f];break;case"addClass":t=[t,d,f];break;case"removeClass":t=[t,g,f];break;default:t=[t,f]}if(t.push(u),n=n.apply(n,t))if(pt(n.start)&&(n=n.start()),n instanceof i)n.done(f);else if(pt(n))return n;return e}function h(n,t,u,f,o){var s=[];return r(f,function(r){var f=r[o];f&&s.push(function(){var r,s,h=!1,o=function(n){h||(h=!0,(s||e)(n),r.complete(!n))};return r=new i({end:function(){o()},cancel:function(){o(!0)}}),s=nt(f,n,t,u,function(n){o(!1===n)}),r})}),s}function k(n,t,u,f,e){var o=h(n,t,u,f,e),s,c;return 0===o.length&&("beforeSetClass"===e?(s=h(n,"removeClass",u,f,"beforeRemoveClass"),c=h(n,"addClass",u,f,"beforeAddClass")):"setClass"===e&&(s=h(n,"removeClass",u,f,"removeClass"),c=h(n,"addClass",u,f,"addClass")),s&&(o=o.concat(s)),c&&(o=o.concat(c))),0!==o.length?function(n){var t=[];return o.length&&r(o,function(n){t.push(n())}),t.length?i.all(t,n):n(),function(n){r(t,function(t){n?t.cancel():t.end()})}}:void 0}var p,b;3===arguments.length&&tt(u)&&(f=u,u=null);f=w(f);u||(u=n.attr("class")||"",f.addClass&&(u+=" "+f.addClass),f.removeClass&&(u+=" "+f.removeClass));var d=f.addClass,g=f.removeClass,y=o(u),c,a;return y.length&&("leave"==t?(b="leave",p="afterLeave"):(b="before"+t.charAt(0).toUpperCase()+t.substr(1),p=t),"enter"!==t&&"move"!==t&&(c=k(n,t,f,y,b)),a=k(n,t,f,y,p)),c||a?{start:function(){function o(t){u=!0;v();l(n,f);s.complete(t)}var r,t=[],u,s;return c&&t.push(function(n){r=c(n)}),t.length?t.push(function(n){v();n(!0)}):v(),a&&t.push(function(n){r=a(n)}),u=!1,s=new i({end:function(){u||((r||e)(void 0),o(void 0))},cancel:function(){u||((r||e)(!0),o(!0))}}),i.chain(t,o),s}}:void 0}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(n){n.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(n,t){function i(t){return n(t.element,t.event,t.classes,t.options)}return function(n){if(n.from&&n.to){var u=i(n.from),f=i(n.to);if(u||f)return{start:function(){function i(){return function(){r(n,function(n){n.end()})}}var n=[],e;return u&&n.push(u.start()),f&&n.push(f.start()),t.all(n,function(n){e.complete(n)}),e=new t({end:i(),cancel:i()})}}}else return i(n)}}]}])}(window,window.angular),function(n,t){"use strict";function r(n,r,u){i.directive(n,["$parse","$swipe",function(i,f){return function(e,o,s){function a(n){if(!h)return!1;var t=Math.abs(n.y-h.y);return n=(n.x-h.x)*r,c&&75>t&&0<n&&30<n&&.3>t/n}var v=i(s[n]),h,c,l=["touch"];t.isDefined(s.ngSwipeDisableMouse)||l.push("mouse");f.bind(o,{start:function(n){h=n;c=!0},cancel:function(){c=!1},end:function(n,t){a(n)&&e.$apply(function(){o.triggerHandler(u);v(e,{$event:t})})}},l)}}])}var i=t.module("ngTouch",[]);i.factory("$swipe",[function(){function i(n){n=n.originalEvent||n;var t=n.touches&&n.touches.length?n.touches:[n];return n=n.changedTouches&&n.changedTouches[0]||t[0],{x:n.clientX,y:n.clientY}}function n(n,i){var u=[];return t.forEach(n,function(n){(n=r[n][i])&&u.push(n)}),u.join(" ")}var r={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}};return{bind:function(t,r,u){var e,o,s,h,f=!1,c;u=u||["mouse","touch"];t.on(n(u,"start"),function(n){s=i(n);f=!0;o=e=0;h=s;r.start&&r.start(s,n)});if(c=n(u,"cancel"),c)t.on(c,function(n){f=!1;r.cancel&&r.cancel(n)});t.on(n(u,"move"),function(n){if(f&&s){var t=i(n);e+=Math.abs(t.x-h.x);o+=Math.abs(t.y-h.y);h=t;10>e&&10>o||(o>e?(f=!1,r.cancel&&r.cancel(n)):(n.preventDefault(),r.move&&r.move(t,n)))}});t.on(n(u,"end"),function(n){f&&(f=!1,r.end&&r.end(i(n),n))})}}}]);i.config(["$provide",function(n){n.decorator("ngClickDirective",["$delegate",function(n){return n.shift(),n}])}]);i.directive("ngClick",["$parse","$timeout","$rootElement",function(n,i,r){function e(n,t,i){for(var u,f,r=0;r<n.length;r+=2)if(u=n[r+1],f=i,25>Math.abs(n[r]-t)&&25>Math.abs(u-f))return n.splice(r,r+2),!0;return!1}function s(n){var s;if(!(2500<Date.now()-o)){var i=n.touches&&n.touches.length?n.touches:[n],r=i[0].clientX,i=i[0].clientY;1>r&&1>i||f&&f[0]===r&&f[1]===i||(f&&(f=null),s=n.target,"label"===t.lowercase(s.nodeName||s[0]&&s[0].nodeName)&&(f=[r,i]),e(u,r,i)||(n.stopPropagation(),n.preventDefault(),n.target&&n.target.blur&&n.target.blur()))}}function h(n){n=n.touches&&n.touches.length?n.touches:[n];var t=n[0].clientX,r=n[0].clientY;u.push(t,r);i(function(){for(var n=0;n<u.length;n+=2)if(u[n]==t&&u[n+1]==r){u.splice(n,n+2);break}},2500,!1)}var o,u,f;return function(i,f,c){var w=n(c.ngClick),a=!1,l,v,y,p;f.on("touchstart",function(n){a=!0;l=n.target?n.target:n.srcElement;3==l.nodeType&&(l=l.parentNode);f.addClass("ng-click-active");v=Date.now();n=n.originalEvent||n;n=(n.touches&&n.touches.length?n.touches:[n])[0];y=n.clientX;p=n.clientY});f.on("touchcancel",function(){a=!1;f.removeClass("ng-click-active")});f.on("touchend",function(n){var b=Date.now()-v,i=n.originalEvent||n,w=(i.changedTouches&&i.changedTouches.length?i.changedTouches:i.touches&&i.touches.length?i.touches:[i])[0],i=w.clientX,w=w.clientY,k=Math.sqrt(Math.pow(i-y,2)+Math.pow(w-p,2));a&&750>b&&12>k&&(u||(r[0].addEventListener("click",s,!0),r[0].addEventListener("touchstart",h,!0),u=[]),o=Date.now(),e(u,i,w),l&&l.blur(),t.isDefined(c.disabled)&&!1!==c.disabled||f.triggerHandler("click",[n]));a=!1;f.removeClass("ng-click-active")});f.onclick=function(){};f.on("click",function(n,t){i.$apply(function(){w(i,{$event:t||n})})});f.on("mousedown",function(){f.addClass("ng-click-active")});f.on("mousemove mouseup",function(){f.removeClass("ng-click-active")})}}]);r("ngSwipeLeft",-1,"swipeleft");r("ngSwipeRight",1,"swiperight")}(window,window.angular);angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.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-unsafe-popup.html","template/tooltip/tooltip-popup.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.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(n,t,i){function u(n){for(var t in n)if(void 0!==f.style[t])return n[t]}var r=function(u,f,e){e=e||{};var s=n.defer(),o=r[e.animation?"animationEndEventName":"transitionEndEventName"],h=function(){i.$apply(function(){u.unbind(o,h);s.resolve(u)})};return o&&u.bind(o,h),t(function(){angular.isString(f)?u.addClass(f):angular.isFunction(f)?f(u):angular.isObject(f)&&u.css(f);o||s.resolve(u)}),s.promise.cancel=function(){o&&u.unbind(o,h);s.reject("Transition cancelled")},s.promise},f=document.createElement("trans");return r.transitionEndEventName=u({WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}),r.animationEndEventName=u({WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"}),r}]);angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(n){return{link:function(t,i,r){function e(t){function f(){u===r&&(u=void 0)}var r=n(i,t);return u&&u.cancel(),u=r,r.then(f,f),r}function h(){f?(f=!1,o()):(i.removeClass("collapse").addClass("collapsing"),e({height:i[0].scrollHeight+"px"}).then(o))}function o(){i.removeClass("collapsing");i.addClass("collapse in");i.css({height:"auto"})}function c(){f?(f=!1,s(),i.css({height:0})):(i.css({height:i[0].scrollHeight+"px"}),i[0].offsetWidth,i.removeClass("collapse in").addClass("collapsing"),e({height:0}).then(s))}function s(){i.removeClass("collapsing");i.addClass("collapse")}var u,f=!0;t.$watch(r.collapse,function(n){n?c():h()})}}}]);angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(n,t,i){this.groups=[];this.closeOthers=function(r){var u=angular.isDefined(t.closeOthers)?n.$eval(t.closeOthers):i.closeOthers;u&&angular.forEach(this.groups,function(n){n!==r&&(n.isOpen=!1)})};this.addGroup=function(n){var t=this;this.groups.push(n);n.$on("$destroy",function(){t.removeGroup(n)})};this.removeGroup=function(n){var t=this.groups.indexOf(n);-1!==t&&this.groups.splice(t,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(n){this.heading=n}},link:function(n,t,i,r){r.addGroup(n);n.$watch("isOpen",function(t){t&&r.closeOthers(n)});n.toggleOpen=function(){n.isDisabled||(n.isOpen=!n.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(n,t,i,r,u){r.setHeading(u(n,function(){}))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(n,t,i,r){n.$watch(function(){return r[i.accordionTransclude]},function(n){n&&(t.html(""),t.append(n))})}}});angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(n,t){n.closeable="close"in t;this.close=n.close}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(n){return{require:"alert",link:function(t,i,r,u){n(function(){u.close()},parseInt(r.dismissOnTimeout,10))}}}]);angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(n,t,i){t.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe);n.$watch(i.bindHtmlUnsafe,function(n){t.html(n||"")})}});angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(n){this.activeClass=n.activeClass||"active";this.toggleEvent=n.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(n,t,i,r){var f=r[0],u=r[1];u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,n.$eval(i.btnRadio)))};t.bind(f.toggleEvent,function(){var r=t.hasClass(f.activeClass);(!r||angular.isDefined(i.uncheckable))&&n.$apply(function(){u.$setViewValue(r?null:n.$eval(i.btnRadio));u.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(n,t,i,r){function e(){return o(i.btnCheckboxTrue,!0)}function s(){return o(i.btnCheckboxFalse,!1)}function o(t,i){var r=n.$eval(t);return angular.isDefined(r)?r:i}var f=r[0],u=r[1];u.$render=function(){t.toggleClass(f.activeClass,angular.equals(u.$modelValue,e()))};t.bind(f.toggleEvent,function(){n.$apply(function(){u.$setViewValue(t.hasClass(f.activeClass)?s():e());u.$render()})})}}});angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$interval","$transition",function(n,t,i,r){function h(){c();var t=+n.interval;!isNaN(t)&&t>0&&(o=i(a,t))}function c(){o&&(i.cancel(o),o=null)}function a(){var t=+n.interval;s&&!isNaN(t)&&t>0?n.next():n.pause()}var o,s,f=this,u=f.slides=n.slides=[],e=-1,l;f.currentSlide=null;l=!1;f.select=n.select=function(i,o){function c(){l||(f.currentSlide&&angular.isString(o)&&!n.noTransition&&i.$element?(i.$element.addClass(o),i.$element[0].offsetWidth,angular.forEach(u,function(n){angular.extend(n,{direction:"",entering:!1,leaving:!1,active:!1})}),angular.extend(i,{direction:o,active:!0,entering:!0}),angular.extend(f.currentSlide||{},{direction:o,leaving:!0}),n.$currentTransition=r(i.$element,{}),function(t,i){n.$currentTransition.then(function(){s(t,i)},function(){s(t,i)})}(i,f.currentSlide)):s(i,f.currentSlide),f.currentSlide=i,e=a,h())}function s(t,i){angular.extend(t,{direction:"",active:!0,leaving:!1,entering:!1});angular.extend(i||{},{direction:"",active:!1,leaving:!1,entering:!1});n.$currentTransition=null}var a=u.indexOf(i);void 0===o&&(o=a>e?"next":"prev");i&&i!==f.currentSlide&&(n.$currentTransition?(n.$currentTransition.cancel(),t(c)):c())};n.$on("$destroy",function(){l=!0});f.indexOfSlide=function(n){return u.indexOf(n)};n.next=function(){var t=(e+1)%u.length;if(!n.$currentTransition)return f.select(u[t],"next")};n.prev=function(){var t=0>e-1?u.length-1:e-1;if(!n.$currentTransition)return f.select(u[t],"prev")};n.isActive=function(n){return f.currentSlide===n};n.$watch("interval",h);n.$on("$destroy",c);n.play=function(){s||(s=!0,h())};n.pause=function(){n.noPause||(s=!1,c())};f.addSlide=function(t,i){t.$element=i;u.push(t);1===u.length||t.active?(f.select(u[u.length-1]),1==u.length&&n.play()):t.active=!1};f.removeSlide=function(n){var t=u.indexOf(n);u.splice(t,1);u.length>0&&n.active?f.select(t>=u.length?u[t-1]:u[t]):e>t&&e--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?"},link:function(n,t,i,r){r.addSlide(n,t);n.$on("$destroy",function(){r.removeSlide(n)});n.$watch("active",function(t){t&&r.select(n)})}}});angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(n,t){function i(n){var r=[],i=n.split("");return angular.forEach(u,function(t,u){var f=n.indexOf(u),e,o;if(f>-1){for(n=n.split(""),i[f]="("+t.regex+")",n[f]="$",e=f+1,o=f+u.length;o>e;e++)i[e]="",n[e]="$";n=n.join("");r.push({index:f,apply:t.apply})}}),{regex:new RegExp("^"+i.join("")+"$"),map:t(r,"index")}}function r(n,t,i){return 1===t&&i>28?29===i&&(n%4==0&&n%100!=0||n%400==0):3===t||5===t||8===t||10===t?31>i:!0}this.parsers={};var u={yyyy:{regex:"\\d{4}",apply:function(n){this.year=+n}},yy:{regex:"\\d{2}",apply:function(n){this.year=+n+2e3}},y:{regex:"\\d{1,4}",apply:function(n){this.year=+n}},MMMM:{regex:n.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=n.DATETIME_FORMATS.MONTH.indexOf(t)}},MMM:{regex:n.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=n.DATETIME_FORMATS.SHORTMONTH.indexOf(t)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(n){this.month=n-1}},M:{regex:"[1-9]|1[0-2]",apply:function(n){this.month=n-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(n){this.date=+n}},EEEE:{regex:n.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:n.DATETIME_FORMATS.SHORTDAY.join("|")}};this.parse=function(t,u){var s;if(!angular.isString(t)||!u)return t;u=n.DATETIME_FORMATS[u]||u;this.parsers[u]||(this.parsers[u]=i(u));var h=this.parsers[u],l=h.regex,a=h.map,e=t.match(l);if(e&&e.length){for(var c,f={year:1900,month:0,date:1,hours:0},o=1,v=e.length;v>o;o++)s=a[o-1],s.apply&&s.apply.call(f,e[o]);return r(f.year,f.month,f.date)&&(c=new Date(f.year,f.month,f.date,f.hours)),c}}}]);angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(n,t){function i(n,i){return n.currentStyle?n.currentStyle[i]:t.getComputedStyle?t.getComputedStyle(n)[i]:n.style[i]}function r(n){return"static"===(i(n,"position")||"static")}var u=function(t){for(var u=n[0],i=t.offsetParent||u;i&&i!==u&&r(i);)i=i.offsetParent;return i||u};return{position:function(t){var e=this.offset(t),r={top:0,left:0},i=u(t[0]),f;return i!=n[0]&&(r=this.offset(angular.element(i)),r.top+=i.clientTop-i.scrollTop,r.left+=i.clientLeft-i.scrollLeft),f=t[0].getBoundingClientRect(),{width:f.width||t.prop("offsetWidth"),height:f.height||t.prop("offsetHeight"),top:e.top-r.top,left:e.left-r.left}},offset:function(i){var r=i[0].getBoundingClientRect();return{width:r.width||i.prop("offsetWidth"),height:r.height||i.prop("offsetHeight"),top:r.top+(t.pageYOffset||n[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||n[0].documentElement.scrollLeft)}},positionElements:function(n,t,i,r){var u,h,c,f,a=i.split("-"),l=a[0],e=a[1]||"center",o,s;u=r?this.offset(n):this.position(n);h=t.prop("offsetWidth");c=t.prop("offsetHeight");o={center:function(){return u.left+u.width/2-h/2},left:function(){return u.left},right:function(){return u.left+u.width}};s={center:function(){return u.top+u.height/2-c/2},top:function(){return u.top},bottom:function(){return u.top+u.height}};switch(l){case"right":f={top:s[e](),left:o[l]()};break;case"left":f={top:s[e](),left:u.left-h};break;case"bottom":f={top:s[l](),left:o[e]()};break;default:f={top:u.top-c,left:o[e]()}}return f}}}]);angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(n,t,i,r,u,f,e,o){var s=this,h={$setViewValue:angular.noop},c;this.modes=["day","month","year"];angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange"],function(i,u){s[i]=angular.isDefined(t[i])?8>u?r(t[i])(n.$parent):n.$parent.$eval(t[i]):o[i]});angular.forEach(["minDate","maxDate"],function(r){t[r]?n.$parent.$watch(i(t[r]),function(n){s[r]=n?new Date(n):null;s.refreshView()}):s[r]=o[r]?new Date(o[r]):null});n.datepickerMode=n.datepickerMode||o.datepickerMode;n.uniqueId="datepicker-"+n.$id+"-"+Math.floor(1e4*Math.random());this.activeDate=angular.isDefined(t.initDate)?n.$parent.$eval(t.initDate):new Date;n.isActive=function(t){return 0===s.compare(t.date,s.activeDate)?(n.activeDateId=t.uid,!0):!1};this.init=function(n){h=n;h.$render=function(){s.render()}};this.render=function(){if(h.$modelValue){var n=new Date(h.$modelValue),t=!isNaN(n);t?this.activeDate=n:f.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.');h.$setValidity("date",t)}this.refreshView()};this.refreshView=function(){if(this.element){this._refreshView();var n=h.$modelValue?new Date(h.$modelValue):null;h.$setValidity("date-disabled",!n||this.element&&!this.isDisabled(n))}};this.createDateObject=function(n,t){var i=h.$modelValue?new Date(h.$modelValue):null;return{date:n,label:e(n,t),selected:i&&0===this.compare(n,i),disabled:this.isDisabled(n),current:0===this.compare(n,new Date)}};this.isDisabled=function(i){return this.minDate&&this.compare(i,this.minDate)<0||this.maxDate&&this.compare(i,this.maxDate)>0||t.dateDisabled&&n.dateDisabled({date:i,mode:n.datepickerMode})};this.split=function(n,t){for(var i=[];n.length>0;)i.push(n.splice(0,t));return i};n.select=function(t){if(n.datepickerMode===s.minMode){var i=h.$modelValue?new Date(h.$modelValue):new Date(0,0,0,0,0,0,0);i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate());h.$setViewValue(i);h.$render()}else s.activeDate=t,n.datepickerMode=s.modes[s.modes.indexOf(n.datepickerMode)-1]};n.move=function(n){var t=s.activeDate.getFullYear()+n*(s.step.years||0),i=s.activeDate.getMonth()+n*(s.step.months||0);s.activeDate.setFullYear(t,i,1);s.refreshView()};n.toggleMode=function(t){t=t||1;n.datepickerMode===s.maxMode&&1===t||n.datepickerMode===s.minMode&&-1===t||(n.datepickerMode=s.modes[s.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"};c=function(){u(function(){s.element[0].focus()},0,!1)};n.$on("datepicker.focus",c);n.keydown=function(t){var i=n.keys[t.which];if(i&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),t.stopPropagation(),"enter"===i||"space"===i){if(s.isDisabled(s.activeDate))return;n.select(s.activeDate);c()}else!t.ctrlKey||"up"!==i&&"down"!==i?(s.handleKeyDown(i,t),s.refreshView()):(n.toggleMode("up"===i?1:-1),c())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u)}}}).directive("daypicker",["dateFilter",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(t,i,r,u){function f(n,t){return 1!==t||n%4!=0||n%100==0&&n%400!=0?s[t]:29}function e(n,t){var r=new Array(t),i=new Date(n),u=0;for(i.setHours(12);t>u;)r[u++]=new Date(i),i.setDate(i.getDate()+1);return r}function o(n){var t=new Date(n),i;return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1}t.showWeeks=u.showWeeks;u.step={months:1};u.element=i;var s=[31,28,31,30,31,30,31,31,30,31,30,31];u._refreshView=function(){var p=u.activeDate.getFullYear(),h=u.activeDate.getMonth(),c=new Date(p,h,1),s=u.startingDay-c.getDay(),l=s>0?7-s:-s,a=new Date(c),i,r,f,v,y;for(l>0&&a.setDate(-l+1),i=e(a,42),r=0;42>r;r++)i[r]=angular.extend(u.createDateObject(i[r],u.formatDay),{secondary:i[r].getMonth()!==h,uid:t.uniqueId+"-"+r});for(t.labels=new Array(7),f=0;7>f;f++)t.labels[f]={abbr:n(i[f].date,u.formatDayHeader),full:n(i[f].date,"EEEE")};if(t.title=n(u.activeDate,u.formatDayTitle),t.rows=u.split(i,7),t.showWeeks)for(t.weekNumbers=[],v=o(t.rows[0][0].date),y=t.rows.length;t.weekNumbers.push(v++)<y;);};u.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth(),n.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())};u.handleKeyDown=function(n){var t=u.activeDate.getDate(),i;"left"===n?t-=1:"up"===n?t-=7:"right"===n?t+=1:"down"===n?t+=7:"pageup"===n||"pagedown"===n?(i=u.activeDate.getMonth()+("pageup"===n?-1:1),u.activeDate.setMonth(i,1),t=Math.min(f(u.activeDate.getFullYear(),u.activeDate.getMonth()),t)):"home"===n?t=1:"end"===n&&(t=f(u.activeDate.getFullYear(),u.activeDate.getMonth()));u.activeDate.setDate(t)};u.refreshView()}}}]).directive("monthpicker",["dateFilter",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(t,i,r,u){u.step={years:1};u.element=i;u._refreshView=function(){for(var r=new Array(12),f=u.activeDate.getFullYear(),i=0;12>i;i++)r[i]=angular.extend(u.createDateObject(new Date(f,i,1),u.formatMonth),{uid:t.uniqueId+"-"+i});t.title=n(u.activeDate,u.formatMonthTitle);t.rows=u.split(r,3)};u.compare=function(n,t){return new Date(n.getFullYear(),n.getMonth())-new Date(t.getFullYear(),t.getMonth())};u.handleKeyDown=function(n){var t=u.activeDate.getMonth(),i;"left"===n?t-=1:"up"===n?t-=3:"right"===n?t+=1:"down"===n?t+=3:"pageup"===n||"pagedown"===n?(i=u.activeDate.getFullYear()+("pageup"===n?-1:1),u.activeDate.setFullYear(i)):"home"===n?t=0:"end"===n&&(t=11);u.activeDate.setMonth(t)};u.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(n,t,i,r){function f(n){return parseInt((n-1)/u,10)*u+1}var u=r.yearRange;r.step={years:u};r.element=t;r._refreshView=function(){for(var i=new Array(u),t=0,e=f(r.activeDate.getFullYear());u>t;t++)i[t]=angular.extend(r.createDateObject(new Date(e+t,0,1),r.formatYear),{uid:n.uniqueId+"-"+t});n.title=[i[0].label,i[u-1].label].join(" - ");n.rows=r.split(i,5)};r.compare=function(n,t){return n.getFullYear()-t.getFullYear()};r.handleKeyDown=function(n){var t=r.activeDate.getFullYear();"left"===n?t-=1:"up"===n?t-=5:"right"===n?t+=1:"down"===n?t+=5:"pageup"===n||"pagedown"===n?t+=("pageup"===n?-1:1)*r.step.years:"home"===n?t=f(r.activeDate.getFullYear()):"end"===n&&(t=f(r.activeDate.getFullYear())+u-1);r.activeDate.setFullYear(t)};r.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(n,t,i,r,u,f,e){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&"},link:function(o,s,h,c){function b(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}function k(n){if(n){if(angular.isDate(n)&&!isNaN(n))return c.$setValidity("date",!0),n;if(angular.isString(n)){var t=f.parse(n,p)||new Date(n);return isNaN(t)?void c.$setValidity("date",!1):(c.$setValidity("date",!0),t)}return void c.$setValidity("date",!1)}return c.$setValidity("date",!0),null}var p,g=angular.isDefined(h.closeOnDateSelection)?o.$parent.$eval(h.closeOnDateSelection):e.closeOnDateSelection,d=angular.isDefined(h.datepickerAppendToBody)?o.$parent.$eval(h.datepickerAppendToBody):e.appendToBody,l,a,v,w,y;o.showButtonBar=angular.isDefined(h.showButtonBar)?o.$parent.$eval(h.showButtonBar):e.showButtonBar;o.getText=function(n){return o[n+"Text"]||e[n+"Text"]};h.$observe("datepickerPopup",function(n){p=n||e.datepickerPopup;c.$render()});l=angular.element("<div datepicker-popup-wrap><div datepicker><\/div><\/div>");l.attr({"ng-model":"date","ng-change":"dateSelection()"});a=angular.element(l.children()[0]);h.datepickerOptions&&angular.forEach(o.$parent.$eval(h.datepickerOptions),function(n,t){a.attr(b(t),n)});o.watchData={};angular.forEach(["minDate","maxDate","datepickerMode"],function(n){var i,r;h[n]&&(i=t(h[n]),(o.$parent.$watch(i,function(t){o.watchData[n]=t}),a.attr(b(n),"watchData."+n),"datepickerMode"===n)&&(r=i.assign,o.$watch("watchData."+n,function(n,t){n!==t&&r(o.$parent,n)})))});h.dateDisabled&&a.attr("date-disabled","dateDisabled({ date: date, mode: mode })");c.$parsers.unshift(k);o.dateSelection=function(n){angular.isDefined(n)&&(o.date=n);c.$setViewValue(o.date);c.$render();g&&(o.isOpen=!1,s[0].focus())};s.bind("input change keyup",function(){o.$apply(function(){o.date=c.$modelValue})});c.$render=function(){var n=c.$viewValue?u(c.$viewValue,p):"";s.val(n);o.date=k(c.$modelValue)};v=function(n){o.isOpen&&n.target!==s[0]&&o.$apply(function(){o.isOpen=!1})};w=function(n){o.keydown(n)};s.bind("keydown",w);o.keydown=function(n){27===n.which?(n.preventDefault(),n.stopPropagation(),o.close()):40!==n.which||o.isOpen||(o.isOpen=!0)};o.$watch("isOpen",function(n){n?(o.$broadcast("datepicker.focus"),o.position=d?r.offset(s):r.position(s),o.position.top=o.position.top+s.prop("offsetHeight"),i.bind("click",v)):i.unbind("click",v)});o.select=function(n){if("today"===n){var t=new Date;angular.isDate(c.$modelValue)?(n=new Date(c.$modelValue),n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate())):n=new Date(t.setHours(0,0,0,0))}o.dateSelection(n)};o.close=function(){o.isOpen=!1;s[0].focus()};y=n(l)(o);l.remove();d?i.find("body").append(y):s.after(y);o.$on("$destroy",function(){y.remove();s.unbind("keydown",w);i.unbind("click",v)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(n,t){t.bind("click",function(n){n.preventDefault();n.stopPropagation()})}}});angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(n){var t=null,i,r;this.open=function(u){t||(n.bind("click",i),n.bind("keydown",r));t&&t!==u&&(t.isOpen=!1);t=u};this.close=function(u){t===u&&(t=null,n.unbind("click",i),n.unbind("keydown",r))};i=function(n){if(t){var i=t.getToggleElement();n&&i&&i[0].contains(n.target)||t.$apply(function(){t.isOpen=!1})}};r=function(n){27===n.which&&(t.focusToggleElement(),i())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate",function(n,t,i,r,u,f){var s,o=this,e=n.$new(),c=r.openClass,h=angular.noop,l=t.onToggle?i(t.onToggle):angular.noop;this.init=function(r){o.$element=r;t.isOpen&&(s=i(t.isOpen),h=s.assign,n.$watch(s,function(n){e.isOpen=!!n}))};this.toggle=function(n){return e.isOpen=arguments.length?!!n:!e.isOpen};this.isOpen=function(){return e.isOpen};e.getToggleElement=function(){return o.toggleElement};e.focusToggleElement=function(){o.toggleElement&&o.toggleElement[0].focus()};e.$watch("isOpen",function(t,i){f[t?"addClass":"removeClass"](o.$element,c);t?(e.focusToggleElement(),u.open(e)):u.close(e);h(n,t);angular.isDefined(t)&&t!==i&&l(n,{open:!!t})});n.$on("$locationChangeSuccess",function(){e.isOpen=!1});n.$on("$destroy",function(){e.$destroy()})}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(n,t,i,r){r.init(t)}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(n,t,i,r){if(r){r.toggleElement=t;var u=function(u){u.preventDefault();t.hasClass("disabled")||i.disabled||n.$apply(function(){r.toggle()})};t.bind("click",u);t.attr({"aria-haspopup":!0,"aria-expanded":!1});n.$watch(r.isOpen,function(n){t.attr("aria-expanded",!!n)});n.$on("$destroy",function(){t.unbind("click",u)})}}}});angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var n=[];return{add:function(t,i){n.push({key:t,value:i})},get:function(t){for(var i=0;i<n.length;i++)if(t==n[i].key)return n[i]},keys:function(){for(var i=[],t=0;t<n.length;t++)i.push(n[t].key);return i},top:function(){return n[n.length-1]},remove:function(t){for(var r=-1,i=0;i<n.length;i++)if(t==n[i].key){r=i;break}return n.splice(r,1)[0]},removeTop:function(){return n.splice(n.length-1,1)[0]},length:function(){return n.length}}}}}).directive("modalBackdrop",["$timeout",function(n){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(t,i,r){t.backdropClass=r.backdropClass||"";t.animate=!1;n(function(){t.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(n,t){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(n,t){return t.templateUrl||"template/modal/window.html"},link:function(i,r,u){r.addClass(u.windowClass||"");i.size=u.size;t(function(){i.animate=!0;r[0].querySelectorAll("[autofocus]").length||r[0].focus()});i.close=function(t){var i=n.getTop();i&&i.value.backdrop&&"static"!=i.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),n.dismiss(i.key,"backdrop click"))}}}}]).directive("modalTransclude",function(){return{link:function(n,t,i,r,u){u(n.$parent,function(n){t.empty();t.append(n)})}}}).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(n,t,i,r,u,f){function c(){for(var t=-1,i=e.keys(),n=0;n<i.length;n++)e.get(i[n]).value.backdrop&&(t=n);return t}function l(n){var r=i.find("body").eq(0),t=e.get(n).value;e.remove(n);a(t.modalDomEl,t.modalScope,300,function(){t.modalScope.$destroy();r.toggleClass(v,e.length()>0);y()})}function y(){if(h&&-1==c()){var n=o;a(h,o,150,function(){n.$destroy();n=null});h=void 0;o=void 0}}function a(i,r,u,f){function e(){e.done||(e.done=!0,i.remove(),f&&f())}var o,s;r.animate=!1;o=n.transitionEndEventName;o?(s=t(e,u),i.bind(o,function(){t.cancel(s);e();r.$apply()})):t(e)}var h,o,v="modal-open",e=f.createNew(),s={};return u.$watch(c,function(n){o&&(o.index=n)}),i.bind("keydown",function(n){var t;27===n.which&&(t=e.top(),t&&t.value.keyboard&&(n.preventDefault(),u.$apply(function(){s.dismiss(t.key,"escape key press")})))}),s.open=function(n,t){var f,s,l,a,y;e.add(n,{deferred:t.deferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});f=i.find("body").eq(0);s=c();s>=0&&!h&&(o=u.$new(!0),o.index=s,l=angular.element("<div modal-backdrop><\/div>"),l.attr("backdrop-class",t.backdropClass),h=r(l)(o),f.append(h));a=angular.element("<div modal-window><\/div>");a.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:e.length()-1,animate:"animate"}).html(t.content);y=r(a)(t.scope);e.top().value.modalDomEl=y;f.append(y);f.addClass(v)},s.close=function(n,t){var i=e.get(n);i&&(i.value.deferred.resolve(t),l(n))},s.dismiss=function(n,t){var i=e.get(n);i&&(i.value.deferred.reject(t),l(n))},s.dismissAll=function(n){for(var t=this.getTop();t;)this.dismiss(t.key,n),t=this.getTop()},s.getTop=function(){return e.top()},s}]).provider("$modal",function(){var n={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(t,i,r,u,f,e,o){function h(n){return n.template?r.when(n.template):u.get(angular.isFunction(n.templateUrl)?n.templateUrl():n.templateUrl,{cache:f}).then(function(n){return n.data})}function c(n){var i=[];return angular.forEach(n,function(n){(angular.isFunction(n)||angular.isArray(n))&&i.push(r.when(t.invoke(n)))}),i}var s={};return s.open=function(t){var f=r.defer(),s=r.defer(),u={result:f.promise,opened:s.promise,close:function(n){o.close(u,n)},dismiss:function(n){o.dismiss(u,n)}},l;if(t=angular.extend({},n.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");return l=r.all([h(t)].concat(c(t.resolve))),l.then(function(n){var r=(t.scope||i).$new(),h,s,c;r.$close=u.close;r.$dismiss=u.dismiss;s={};c=1;t.controller&&(s.$scope=r,s.$modalInstance=u,angular.forEach(t.resolve,function(t,i){s[i]=n[c++]}),h=e(t.controller,s),t.controllerAs&&(r[t.controllerAs]=h));o.open(u,{scope:r,deferred:f,content:n[0],backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size})},function(n){f.reject(n)}),l.then(function(){s.resolve(!0)},function(){s.reject(!1)}),u},s}]};return n});angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(n,t,i){var u=this,r={$setViewValue:angular.noop},f=t.numPages?i(t.numPages).assign:angular.noop;this.init=function(f,e){r=f;this.config=e;r.$render=function(){u.render()};t.itemsPerPage?n.$parent.$watch(i(t.itemsPerPage),function(t){u.itemsPerPage=parseInt(t,10);n.totalPages=u.calculateTotalPages()}):this.itemsPerPage=e.itemsPerPage};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(r.$viewValue,10)||1};n.selectPage=function(t){n.page!==t&&t>0&&t<=n.totalPages&&(r.$setViewValue(t),r.$render())};n.getText=function(t){return n[t+"Text"]||u.config[t+"Text"]};n.noPrevious=function(){return 1===n.page};n.noNext=function(){return n.page===n.totalPages};n.$watch("totalItems",function(){n.totalPages=u.calculateTotalPages()});n.$watch("totalPages",function(t){f(n.$parent,t);n.page>t?n.selectPage(t):r.$render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(n,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(i,r,u,f){function s(n,t,i){return{number:n,text:t,active:i}}function a(n,t){var f=[],i=1,r=t,o=angular.isDefined(e)&&t>e,u,c,l,a;for(o&&(h?(i=Math.max(n-Math.floor(e/2),1),r=i+e-1,r>t&&(r=t,i=r-e+1)):(i=(Math.ceil(n/e)-1)*e+1,r=Math.min(i+e-1,t))),u=i;r>=u;u++)c=s(u,u,u===n),f.push(c);return o&&!h&&(i>1&&(l=s(i-1,"...",!1),f.unshift(l)),t>r&&(a=s(r+1,"...",!1),f.push(a))),f}var o=f[0],c=f[1],e,h,l;c&&(e=angular.isDefined(u.maxSize)?i.$parent.$eval(u.maxSize):t.maxSize,h=angular.isDefined(u.rotate)?i.$parent.$eval(u.rotate):t.rotate,i.boundaryLinks=angular.isDefined(u.boundaryLinks)?i.$parent.$eval(u.boundaryLinks):t.boundaryLinks,i.directionLinks=angular.isDefined(u.directionLinks)?i.$parent.$eval(u.directionLinks):t.directionLinks,o.init(c,t),u.maxSize&&i.$parent.$watch(n(u.maxSize),function(n){e=parseInt(n,10);o.render()}),l=o.render,o.render=function(){l();i.page>0&&i.page<=i.totalPages&&(i.pages=a(i.page,i.totalPages))})}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(n){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,i,r,u){var e=u[0],f=u[1];f&&(t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):n.align,e.init(f,n))}}}]);angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function i(n){var t="-";return n.replace(/[A-Z]/g,function(n,i){return(i?t:"")+n.toLowerCase()})}var r={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},t={};this.options=function(n){angular.extend(t,n)};this.setTriggers=function(t){angular.extend(n,t)};this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(u,f,e,o,s,h){return function(u,c,l){function p(t){var i=t||a.trigger||l,r=n[i]||i;return{show:i,hide:r}}var a=angular.extend({},r,t),w=i(u),v=h.startSymbol(),y=h.endSymbol(),b="<div "+w+'-popup title="'+v+"title"+y+'" content="'+v+"content"+y+'" placement="'+v+"placement"+y+'" animation="animation" is-open="isOpen"><\/div>';return{restrict:"EA",compile:function(){var n=f(b);return function(t,i,r){function et(){f.isOpen?g():d()}function d(){(!at||t.$eval(r[c+"Enable"]))&&(st(),f.popupDelay?y||(y=e(ut,f.popupDelay,!1),y.then(function(n){n()})):ut()())}function g(){t.$apply(function(){nt()})}function ut(){return y=null,v&&(e.cancel(v),v=null),f.content?(ot(),h.css({top:0,left:0,display:"block"}),b?o.find("body").append(h):i.after(h),ft(),f.isOpen=!0,f.$digest(),ft):angular.noop}function nt(){f.isOpen=!1;e.cancel(y);y=null;f.animation?v||(v=e(k,500)):k()}function ot(){h&&k();w=f.$new();h=n(w,angular.noop)}function k(){v=null;h&&(h.remove(),h=null);w&&(w.$destroy(),w=null)}function st(){ht();ct()}function ht(){var n=r[c+"Placement"];f.placement=angular.isDefined(n)?n:a.placement}function ct(){var t=r[c+"PopupDelay"],n=parseInt(t,10);f.popupDelay=isNaN(n)?a.popupDelay:n}function lt(){var n=r[c+"Trigger"];tt();l=p(n);l.show===l.hide?i.bind(l.show,et):(i.bind(l.show,d),i.bind(l.hide,g))}var h,w,v,y,b=angular.isDefined(a.appendToBody)?a.appendToBody:!1,l=p(void 0),at=angular.isDefined(r[c+"Enable"]),f=t.$new(!0),ft=function(){var n=s.positionElements(i,h,f.placement,b);n.top+="px";n.left+="px";h.css(n)},tt,it,rt;f.isOpen=!1;r.$observe(u,function(n){f.content=n;!n&&f.isOpen&&nt()});r.$observe(c+"Title",function(n){f.title=n});tt=function(){i.unbind(l.show,d);i.unbind(l.hide,g)};lt();it=t.$eval(r[c+"Animation"]);f.animation=angular.isDefined(it)?!!it:a.animation;rt=t.$eval(r[c+"AppendToBody"]);b=angular.isDefined(rt)?rt:b;b&&t.$on("$locationChangeSuccess",function(){f.isOpen&&nt()});t.$on("$destroy",function(){e.cancel(v);e.cancel(y);tt();k();f=null})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(n){return n("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(n){return n("tooltipHtmlUnsafe","tooltip","mouseenter")}]);angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(n){return n("popover","popover","click")}]);angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(n,t,i){var r=this,u=angular.isDefined(t.animate)?n.$parent.$eval(t.animate):i.animate;this.bars=[];n.max=angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max;this.addBar=function(t,i){u||i.css({transition:"none"});this.bars.push(t);t.$watch("value",function(i){t.percent=+(100*i/n.max).toFixed(2)});t.$on("$destroy",function(){i=null;r.removeBar(t)})};this.removeBar=function(n){this.bars.splice(this.bars.indexOf(n),1)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(n,t,i,r){r.addBar(n,t)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(n,t,i,r){r.addBar(n,angular.element(t.children()[0]))}}});angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(n,t,i){var r={$setViewValue:angular.noop};this.init=function(u){r=u;r.$render=this.render;this.stateOn=angular.isDefined(t.stateOn)?n.$parent.$eval(t.stateOn):i.stateOn;this.stateOff=angular.isDefined(t.stateOff)?n.$parent.$eval(t.stateOff):i.stateOff;var f=angular.isDefined(t.ratingStates)?n.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?n.$parent.$eval(t.max):i.max);n.range=this.buildTemplateObjects(f)};this.buildTemplateObjects=function(n){for(var t=0,i=n.length;i>t;t++)n[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff},n[t]);return n};n.rate=function(t){!n.readonly&&t>=0&&t<=n.range.length&&(r.$setViewValue(t),r.$render())};n.enter=function(t){n.readonly||(n.value=t);n.onHover({value:t})};n.reset=function(){n.value=r.$viewValue;n.onLeave()};n.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),n.rate(n.value+(38===t.which||39===t.which?1:-1)))};this.render=function(){n.value=r.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u)}}});angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(n){var i=this,t=i.tabs=n.tabs=[],r;i.select=function(n){angular.forEach(t,function(t){t.active&&t!==n&&(t.active=!1,t.onDeselect())});n.active=!0;n.onSelect()};i.addTab=function(n){t.push(n);1===t.length?n.active=!0:n.active&&i.select(n)};i.removeTab=function(n){var u=t.indexOf(n),f;n.active&&t.length>1&&!r&&(f=u==t.length-1?u-1:u+1,i.select(t[f]));t.splice(u,1)};n.$on("$destroy",function(){r=!0})}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(n,t,i){n.vertical=angular.isDefined(i.vertical)?n.$parent.$eval(i.vertical):!1;n.justified=angular.isDefined(i.justified)?n.$parent.$eval(i.justified):!1}}}).directive("tab",["$parse",function(n){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(t,i,r){return function(t,i,u,f){t.$watch("active",function(n){n&&f.select(t)});t.disabled=!1;u.disabled&&t.$parent.$watch(n(u.disabled),function(n){t.disabled=!!n});t.select=function(){t.disabled||(t.active=!0)};f.addTab(t);t.$on("$destroy",function(){f.removeTab(t)});t.$transcludeFn=r}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(n,t){n.$watch("headingElement",function(n){n&&(t.html(""),t.append(n))})}}}]).directive("tabContentTransclude",function(){function n(n){return n.tagName&&(n.hasAttribute("tab-heading")||n.hasAttribute("data-tab-heading")||"tab-heading"===n.tagName.toLowerCase()||"data-tab-heading"===n.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(t,i,r){var u=t.$eval(r.tabContentTransclude);u.$transcludeFn(u.$parent,function(t){angular.forEach(t,function(t){n(t)?u.headingElement=t:i.append(t)})})}}});angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(n,t,i,r,u,f){function p(){var t=parseInt(n.hours,10),i=n.showMeridian?t>0&&13>t:t>=0&&24>t;if(i)return(n.showMeridian&&(12===t&&(t=0),n.meridian===y[1]&&(t+=12)),t)}function w(){var t=parseInt(n.minutes,10);if(t>=0&&60>t)return t}function h(n){return angular.isDefined(n)&&n.toString().length<2?"0"+n:n}function c(n){b();o.$setViewValue(new Date(e));v(n)}function b(){o.$setValidity("time",!0);n.invalidHours=!1;n.invalidMinutes=!1}function v(t){var i=e.getHours(),r=e.getMinutes();n.showMeridian&&(i=0===i||12===i?12:i%12);n.hours="h"===t?i:h(i);n.minutes="m"===t?r:h(r);n.meridian=e.getHours()<12?y[0]:y[1]}function s(n){var t=new Date(e.getTime()+6e4*n);e.setHours(t.getHours(),t.getMinutes());c()}var e=new Date,o={$setViewValue:angular.noop},y=angular.isDefined(t.meridians)?n.$parent.$eval(t.meridians):f.meridians||u.DATETIME_FORMATS.AMPMS,l,a;this.init=function(i,r){o=i;o.$render=this.render;var u=r.eq(0),e=r.eq(1),s=angular.isDefined(t.mousewheel)?n.$parent.$eval(t.mousewheel):f.mousewheel;s&&this.setupMousewheelEvents(u,e);n.readonlyInput=angular.isDefined(t.readonlyInput)?n.$parent.$eval(t.readonlyInput):f.readonlyInput;this.setupInputEvents(u,e)};l=f.hourStep;t.hourStep&&n.$parent.$watch(i(t.hourStep),function(n){l=parseInt(n,10)});a=f.minuteStep;t.minuteStep&&n.$parent.$watch(i(t.minuteStep),function(n){a=parseInt(n,10)});n.showMeridian=f.showMeridian;t.showMeridian&&n.$parent.$watch(i(t.showMeridian),function(t){if(n.showMeridian=!!t,o.$error.time){var i=p(),r=w();angular.isDefined(i)&&angular.isDefined(r)&&(e.setHours(i),c())}else v()});this.setupMousewheelEvents=function(t,i){var r=function(n){n.originalEvent&&(n=n.originalEvent);var t=n.wheelDelta?n.wheelDelta:-n.deltaY;return n.detail||t>0};t.bind("mousewheel wheel",function(t){n.$apply(r(t)?n.incrementHours():n.decrementHours());t.preventDefault()});i.bind("mousewheel wheel",function(t){n.$apply(r(t)?n.incrementMinutes():n.decrementMinutes());t.preventDefault()})};this.setupInputEvents=function(t,i){if(n.readonlyInput)return n.updateHours=angular.noop,void(n.updateMinutes=angular.noop);var r=function(t,i){o.$setViewValue(null);o.$setValidity("time",!1);angular.isDefined(t)&&(n.invalidHours=t);angular.isDefined(i)&&(n.invalidMinutes=i)};n.updateHours=function(){var n=p();angular.isDefined(n)?(e.setHours(n),c("h")):r(!0)};t.bind("blur",function(){!n.invalidHours&&n.hours<10&&n.$apply(function(){n.hours=h(n.hours)})});n.updateMinutes=function(){var n=w();angular.isDefined(n)?(e.setMinutes(n),c("m")):r(void 0,!0)};i.bind("blur",function(){!n.invalidMinutes&&n.minutes<10&&n.$apply(function(){n.minutes=h(n.minutes)})})};this.render=function(){var n=o.$modelValue?new Date(o.$modelValue):null;isNaN(n)?(o.$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.')):(n&&(e=n),b(),v())};n.incrementHours=function(){s(60*l)};n.decrementHours=function(){s(60*-l)};n.incrementMinutes=function(){s(a)};n.decrementMinutes=function(){s(-a)};n.toggleMeridian=function(){s(720*(e.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(n,t,i,r){var f=r[0],u=r[1];u&&f.init(u,t.find("input"))}}});angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(n){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(i){var r=i.match(t);if(!r)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+i+'".');return{itemName:r[3],source:n(r[4]),viewMapper:n(r[2]||r[1]),modelMapper:n(r[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(n,t,i,r,u,f,e){var o=[9,13,27,38,40];return{require:"ngModel",link:function(s,h,c,l){var d,st=s.$eval(c.typeaheadMinLength)||1,ft=s.$eval(c.typeaheadWaitMs)||0,ht=s.$eval(c.typeaheadEditable)!==!1,p=t(c.typeaheadLoading).assign||angular.noop,ct=t(c.typeaheadOnSelect),et=c.typeaheadInputFormatter?t(c.typeaheadInputFormatter):void 0,g=c.typeaheadAppendToBody?s.$eval(c.typeaheadAppendToBody):!1,lt=s.$eval(c.typeaheadFocusFirst)!==!1,at=t(c.ngModel).assign,v=e.parse(c.typeahead),a=s.$new(),w,b,y,nt,tt,it,ot,rt,ut,k;s.$on("$destroy",function(){a.$destroy()});w="typeahead-"+a.$id+"-"+Math.floor(1e4*Math.random());h.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":w});b=angular.element("<div typeahead-popup><\/div>");b.attr({id:w,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"});angular.isDefined(c.typeaheadTemplateUrl)&&b.attr("template-url",c.typeaheadTemplateUrl);y=function(){a.matches=[];a.activeIdx=-1;h.attr("aria-expanded",!1)};nt=function(n){return w+"-option-"+n};a.$watch("activeIdx",function(n){0>n?h.removeAttr("aria-activedescendant"):h.attr("aria-activedescendant",nt(n))});tt=function(n){var t={$viewValue:n};p(s,!0);i.when(v.source(s,t)).then(function(i){var u=n===l.$viewValue,r;if(u&&d)if(i.length>0){for(a.activeIdx=lt?0:-1,a.matches.length=0,r=0;r<i.length;r++)t[v.itemName]=i[r],a.matches.push({id:nt(r),label:v.viewMapper(a,t),model:i[r]});a.query=n;a.position=g?f.offset(h):f.position(h);a.position.top=a.position.top+h.prop("offsetHeight");h.attr("aria-expanded",!0)}else y();u&&p(s,!1)},function(){y();p(s,!1)})};y();a.query=void 0;ot=function(n){it=r(function(){tt(n)},ft)};rt=function(){it&&r.cancel(it)};l.$parsers.unshift(function(n){return d=!0,n&&n.length>=st?ft>0?(rt(),ot(n)):tt(n):(p(s,!1),rt(),y()),ht?n:n?void l.$setValidity("editable",!1):(l.$setValidity("editable",!0),n)});l.$formatters.push(function(n){var i,r,t={};return et?(t.$model=n,et(s,t)):(t[v.itemName]=n,i=v.viewMapper(s,t),t[v.itemName]=void 0,r=v.viewMapper(s,t),i!==r?i:n)});a.select=function(n){var t,u,i={};i[v.itemName]=u=a.matches[n].model;t=v.modelMapper(s,i);at(s,t);l.$setValidity("editable",!0);ct(s,{$item:u,$model:t,$label:v.viewMapper(s,i)});y();r(function(){h[0].focus()},0,!1)};h.bind("keydown",function(n){0!==a.matches.length&&-1!==o.indexOf(n.which)&&(-1!=a.activeIdx||13!==n.which&&9!==n.which)&&(n.preventDefault(),40===n.which?(a.activeIdx=(a.activeIdx+1)%a.matches.length,a.$digest()):38===n.which?(a.activeIdx=(a.activeIdx>0?a.activeIdx:a.matches.length)-1,a.$digest()):13===n.which||9===n.which?a.$apply(function(){a.select(a.activeIdx)}):27===n.which&&(n.stopPropagation(),y(),a.$digest()))});h.bind("blur",function(){d=!1});ut=function(n){h[0]!==n.target&&(y(),a.$digest())};u.bind("click",ut);s.$on("$destroy",function(){u.unbind("click",ut);g&&k.remove()});k=n(b)(a);g?u.find("body").append(k):h.after(k)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(n,t,i){n.templateUrl=i.templateUrl;n.isOpen=function(){return n.matches.length>0};n.isActive=function(t){return n.active==t};n.selectActive=function(t){n.active=t};n.selectMatch=function(t){n.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(n,t,i,r){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(u,f,e){var o=r(e.templateUrl)(u.$parent)||"template/typeahead/typeahead-match.html";n.get(o,{cache:t}).success(function(n){f.replaceWith(i(n.trim())(u))})}}}]).filter("typeaheadHighlight",function(){function n(n){return n.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,i){return i?(""+t).replace(new RegExp(n(i),"gi"),"<strong>$&<\/strong>"):t}});angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(n){n.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n  <div class="panel-heading">\n    <h4 class="panel-title">\n      <a href class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}<\/span><\/a>\n    <\/h4>\n  <\/div>\n  <div class="panel-collapse" collapse="!isOpen">\n\t  <div class="panel-body" ng-transclude><\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(n){n.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude><\/div>')}]);angular.module("template/alert/alert.html",[]).run(["$templateCache",function(n){n.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissable\' : null]" role="alert">\n    <button ng-show="closeable" type="button" class="close" ng-click="close()">\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(n){n.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n    <ol class="carousel-indicators" ng-show="slides.length > 1">\n        <li ng-repeat="slide in slides track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"><\/li>\n    <\/ol>\n    <div class="carousel-inner" ng-transclude><\/div>\n    <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"><\/span><\/a>\n    <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"><\/span><\/a>\n<\/div>\n')}]);angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(n){n.put("template/carousel/slide.html","<div ng-class=\"{\n    'active': leaving || (active && !entering),\n    'prev': (next || active) && direction=='prev',\n    'next': (next || active) && direction=='next',\n    'right': direction=='prev',\n    'left': direction=='next'\n  }\" class=\"item text-center\" ng-transclude><\/div>\n")}]);angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(n){n.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <daypicker ng-switch-when="day" tabindex="0"><\/daypicker>\n  <monthpicker ng-switch-when="month" tabindex="0"><\/monthpicker>\n  <yearpicker ng-switch-when="year" tabindex="0"><\/yearpicker>\n<\/div>')}]);angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(n){n.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()" 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-show="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-show="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}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="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(n){n.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()" 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}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="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(n){n.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)">\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\')">{{ 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(n){n.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()" 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}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="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(n){n.put("template/modal/backdrop.html",'<div class="modal-backdrop fade {{ backdropClass }}"\n     ng-class="{in: animate}"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n><\/div>\n')}]);angular.module("template/modal/window.html",[]).run(["$templateCache",function(n){n.put("template/modal/window.html",'<div tabindex="-1" role="dialog" class="modal fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n    <div class="modal-dialog" ng-class="{\'modal-sm\': size == \'sm\', \'modal-lg\': size == \'lg\'}"><div class="modal-content" modal-transclude><\/div><\/div>\n<\/div>')}]);angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(n){n.put("template/pagination/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious(), previous: align}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}<\/a><\/li>\n  <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}<\/a><\/li>\n<\/ul>')}]);angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(n){n.put("template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="boundaryLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(1)">{{getText(\'first\')}}<\/a><\/li>\n  <li ng-if="directionLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}<\/a><\/li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active}"><a href ng-click="selectPage(page.number)">{{page.text}}<\/a><\/li>\n  <li ng-if="directionLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}<\/a><\/li>\n  <li ng-if="boundaryLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(totalPages)">{{getText(\'last\')}}<\/a><\/li>\n<\/ul>')}]);angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(n){n.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner" bind-html-unsafe="content"><\/div>\n<\/div>\n')}]);angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(n){n.put("template/tooltip/tooltip-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"><\/div>\n  <div class="tooltip-inner" ng-bind="content"><\/div>\n<\/div>\n')}]);angular.module("template/popover/popover.html",[]).run(["$templateCache",function(n){n.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="arrow"><\/div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-show="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(n){n.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 + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude><\/div>')}]);angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(n){n.put("template/progressbar/progress.html",'<div class="progress" ng-transclude><\/div>')}]);angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(n){n.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 + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude><\/div>\n<\/div>')}]);angular.module("template/rating/rating.html",[]).run(["$templateCache",function(n){n.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    <i ng-repeat="r in range track by $index" 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\')">\n        <span class="sr-only">({{ $index < value ? \'*\' : \' \' }})<\/span>\n    <\/i>\n<\/span>')}]);angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n  <a href ng-click="select()" tab-heading-transclude>{{heading}}<\/a>\n<\/li>\n')}]);angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(n){n.put("template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude><\/ul>\n  <div class="tab-content">\n    <div class="tab-pane" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         tab-content-transclude="tab">\n    <\/div>\n  <\/div>\n<\/div>\n')}]);angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(n){n.put("template/timepicker/timepicker.html",'<table>\n\t<tbody>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n\t\t\t<td>&nbsp;<\/td>\n\t\t\t<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"><\/span><\/a><\/td>\n\t\t\t<td ng-show="showMeridian"><\/td>\n\t\t<\/tr>\n\t\t<tr>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidHours}">\n\t\t\t\t<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t<\/td>\n\t\t\t<td>:<\/td>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n\t\t\t\t<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t<\/td>\n\t\t\t<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}<\/button><\/td>\n\t\t<\/tr>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n\t\t\t<td>&nbsp;<\/td>\n\t\t\t<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"><\/span><\/a><\/td>\n\t\t\t<td ng-show="showMeridian"><\/td>\n\t\t<\/tr>\n\t<\/tbody>\n<\/table>\n')}]);angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"><\/a>')}]);angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(n){n.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}">\n        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"><\/div>\n    <\/li>\n<\/ul>\n')}]);angular.module("ui.checkbox",[]).directive("checkbox",function(){return{scope:{},require:"ngModel",restrict:"E",replace:"true",template:"<button type=\"button\" ng-style=\"stylebtn\" class=\"btn btn-default\" ng-class=\"{'btn-xs': size==='default', 'btn-sm': size==='large', 'btn-lg': size==='largest', 'checked': checked===true}\"><span ng-style=\"styleicon\" class=\"glyphicon\" ng-class=\"{'glyphicon-ok': checked===true}\"><\/span><\/button>",link:function(n,t,i,r){n.size="default";n.stylebtn={};n.styleicon={width:"10px",left:"-1px"};i.large!==undefined&&(n.size="large",n.stylebtn={"padding-top":"2px","padding-bottom":"2px",height:"30px"},n.styleicon={width:"8px",left:"-5px","font-size":"17px"});i.larger!==undefined&&(n.size="larger",n.stylebtn={"padding-top":"2px","padding-bottom":"2px",height:"34px"},n.styleicon={width:"8px",left:"-8px","font-size":"22px"});i.largest!==undefined&&(n.size="largest",n.stylebtn={"padding-top":"2px","padding-bottom":"2px",height:"45px"},n.styleicon={width:"11px",left:"-11px","font-size":"30px"});var u=!0,f=!1;i.ngTrueValue!==undefined&&(u=i.ngTrueValue);i.ngFalseValue!==undefined&&(f=i.ngFalseValue);n.name!==undefined&&(t.name=n.name);n.$watch(function(){return r.$modelValue===u||r.$modelValue===!0?r.$setViewValue(u):r.$setViewValue(f),r.$modelValue},function(){n.checked=r.$modelValue===u},!0);t.bind("click",function(){n.$apply(function(){r.$modelValue===f?r.$setViewValue(u):r.$setViewValue(f)})})}}}),function(){"use strict";angular.module("angular-loading-bar",["cfp.loadingBarInterceptor"]);angular.module("chieffancypants.loadingBar",["cfp.loadingBarInterceptor"]);angular.module("cfp.loadingBarInterceptor",["cfp.loadingBar"]).config(["$httpProvider",function(n){var t=["$q","$cacheFactory","$timeout","$rootScope","cfpLoadingBar",function(t,i,r,u,f){function c(){r.cancel(h);f.complete();o=0;e=0}function s(t){var u,e=i.get("$http"),f=n.defaults,r;return((t.cache||f.cache)&&t.cache!==!1&&(t.method==="GET"||t.method==="JSONP")&&(u=angular.isObject(t.cache)?t.cache:angular.isObject(f.cache)?f.cache:e),r=u!==undefined?u.get(t.url)!==undefined:!1,t.cached!==undefined&&r!==t.cached)?t.cached:(t.cached=r,r)}var e=0,o=0,l=f.latencyThreshold,h;return{request:function(n){return n.ignoreLoadingBar||s(n)||(u.$broadcast("cfpLoadingBar:loading",{url:n.url}),e===0&&(h=r(function(){f.start()},l)),e++,f.set(o/e)),n},response:function(n){return n.config.ignoreLoadingBar||s(n.config)||(o++,u.$broadcast("cfpLoadingBar:loaded",{url:n.config.url}),o>=e?c():f.set(o/e)),n},responseError:function(n){return n.config.ignoreLoadingBar||s(n.config)||(o++,u.$broadcast("cfpLoadingBar:loaded",{url:n.config.url}),o>=e?c():f.set(o/e)),t.reject(n)}}}];n.interceptors.push(t)}]);angular.module("cfp.loadingBar",[]).provider("cfpLoadingBar",function(){this.includeSpinner=!0;this.includeBar=!0;this.latencyThreshold=100;this.startSize=.02;this.parentSelector="body";this.spinnerTemplate='<div id="loading-bar-spinner"><div class="spinner-icon"><\/div><\/div>';this.loadingBarTemplate='<div id="loading-bar"><div class="bar"><div class="peg"><\/div><\/div><\/div>';this.$get=["$injector","$document","$timeout","$rootScope",function(n,t,i,r){function g(){u||(u=n.get("$animate"));var o=t.find(p).eq(0);(i.cancel(h),f)||(r.$broadcast("cfpLoadingBar:started"),f=!0,k&&u.enter(s,o),b&&u.enter(l,o),e(d))}function e(n){if(f){var t=n*100+"%";w.css("width",t);c=n;i.cancel(a);a=i(function(){v()},250)}}function v(){var t,n,i;o()>=1||(t=0,n=o(),t=n>=0&&n<.25?(Math.random()*3+3)/100:n>=.25&&n<.65?Math.random()*3/100:n>=.65&&n<.9?Math.random()/50:n>=.9&&n<.99?.005:0,i=o()+t,e(i))}function o(){return c}function y(){c=0;f=!1}function nt(){u||(u=n.get("$animate"));r.$broadcast("cfpLoadingBar:completed");e(1);i.cancel(h);h=i(function(){var n=u.leave(s,y);n&&n.then&&n.then(y);u.leave(l)},500)}var u,p=this.parentSelector,s=angular.element(this.loadingBarTemplate),w=s.find("div").eq(0),l=angular.element(this.spinnerTemplate),a,h,f=!1,c=0,b=this.includeSpinner,k=this.includeBar,d=this.startSize;return{start:g,set:e,status:o,inc:v,complete:nt,includeSpinner:this.includeSpinner,latencyThreshold:this.latencyThreshold,parentSelector:this.parentSelector,startSize:this.startSize}}]})}();angular.module("bootstrapLightbox",["ngTouch","ui.bootstrap","chieffancypants.loadingBar"]);angular.module("bootstrapLightbox").run(["$templateCache",function(n){"use strict";n.put("lightbox.html",'<div class=modal-body ng-swipe-left=Lightbox.nextImage() ng-swipe-right=Lightbox.prevImage()><div class=lightbox-nav><button class=close aria-hidden=true ng-click=$dismiss()>×<\/button><div class=btn-group><a class="btn btn-xs btn-default" ng-click=Lightbox.prevImage()>‹ Previous<\/a> <a ng-href={{Lightbox.imageUrl}} target=_blank class="btn btn-xs btn-default" title="Open in new tab">Open image in new tab<\/a> <a class="btn btn-xs btn-default" ng-click=Lightbox.nextImage()>Next ›<\/a><\/div><\/div><div class=lightbox-image-container><div class=lightbox-image-caption><span>{{Lightbox.imageCaption}}<\/span><\/div><img lightbox-src={{Lightbox.imageUrl}} alt=""><\/div><\/div>')}]);angular.module("bootstrapLightbox").service("ImageLoader",["$q",function(n){this.load=function(t){var i=n.defer(),r=new Image;return r.onload=function(){("boolean"==typeof this.complete&&this.complete===!1||"number"==typeof this.naturalWidth&&0===this.naturalWidth)&&i.reject();i.resolve(r)},r.onerror=function(){i.reject()},r.src=t,i.promise}}]);angular.module("bootstrapLightbox").provider("Lightbox",function(){this.templateUrl="lightbox.html";this.getImageUrl=function(n){return n.preview};this.getImageCaption=function(n){return n.caption};this.calculateImageDimensionLimits=function(n){return n.windowWidth>=768?{maxWidth:n.windowWidth-92,maxHeight:n.windowHeight-126}:{maxWidth:n.windowWidth-52,maxHeight:n.windowHeight-86}};this.calculateModalDimensions=function(n){var t=Math.max(400,n.imageDisplayWidth+32),i=Math.max(200,n.imageDisplayHeight+66);return(t>=n.windowWidth-20||n.windowWidth<768)&&(t="auto"),i>=n.windowHeight&&(i="auto"),{width:t,height:i}};this.$get=["$document","$modal","$timeout","cfpLoadingBar","ImageLoader",function(n,t,i,r,u){var e=[],o=-1,f={};return f.templateUrl=this.templateUrl,f.getImageUrl=this.getImageUrl,f.getImageCaption=this.getImageCaption,f.calculateImageDimensionLimits=this.calculateImageDimensionLimits,f.calculateModalDimensions=this.calculateModalDimensions,f.keyboardNavEnabled=!1,f.image={},f.openModal=function(n,i){e=n;f.setImage(i);t.open({templateUrl:f.templateUrl,controller:["$scope",function(n){n.Lightbox=f;f.keyboardNavEnabled=!0}],windowClass:"lightbox-modal"}).result["finally"](function(){f.image={};f.imageUrl=null;f.imageCaption=null;f.keyboardNavEnabled=!1;r.complete()})},f.setImage=function(n){if(!(n in e))throw"Invalid image.";r.start();var t=function(){o=n;f.image=e[o];r.complete()},i=f.getImageUrl(e[n]);u.load(i).then(function(){t();f.imageUrl=i;f.imageCaption=f.getImageCaption(f.image)},function(){t();f.imageUrl="//:0";f.imageCaption="Failed to load image"})},f.firstImage=function(){f.setImage(0)},f.prevImage=function(){f.setImage((o-1+e.length)%e.length)},f.nextImage=function(){f.setImage((o+1)%e.length)},f.lastImage=function(){f.setImage(e.length-1)},f.setImages=function(n){e=n;f.setImage(o)},n.bind("keydown",function(n){if(f.keyboardNavEnabled){var t=null;switch(n.which){case 39:t="nextImage";break;case 37:t="prevImage"}null!==t&&-1===["input","textarea"].indexOf(n.target.tagName.toLowerCase())&&(i(function(){f[t]()}),n.preventDefault())}}),f}]});angular.module("bootstrapLightbox").directive("lightboxSrc",["$window","ImageLoader","Lightbox",function(n,t,i){var f=function(n){var t=n.width,i=n.height,o=n.minWidth,s=n.minHeight,f=n.maxWidth,e=n.maxHeight,r=t,u=i;return o>t&&s>i?t/i>f/e?(u=s,r=Math.round(t*s/i)):(r=o,u=Math.round(i*o/t)):o>t?(r=o,u=Math.round(i*o/t)):s>i&&(u=s,r=Math.round(t*s/i)),t>f&&i>e?t/i>f/e?(r=f,u=Math.round(i*f/t)):(u=e,r=Math.round(t*e/i)):t>f?(r=f,u=Math.round(i*f/t)):i>e&&(u=e,r=Math.round(t*e/i)),{width:r||0,height:u||0}},r=0,u=0;return{link:function(e,o,s){var h=function(){var e=n.innerWidth,s=n.innerHeight,c=i.calculateImageDimensionLimits({windowWidth:e,windowHeight:s,imageWidth:r,imageHeight:u}),t=f(angular.extend({width:r,height:u,minWidth:1,minHeight:1,maxWidth:3e3,maxHeight:3e3},c)),h=i.calculateModalDimensions({windowWidth:e,windowHeight:s,imageDisplayWidth:t.width,imageDisplayHeight:t.height});o.css({width:t.width+"px",height:t.height+"px"});angular.element(document.querySelector(".lightbox-modal .modal-dialog")).css({width:h.width+"px"});angular.element(document.querySelector(".lightbox-modal .modal-content")).css({height:h.height+"px"})};e.$watch(function(){return s.lightboxSrc},function(n){o[0].src="//:0";t.load(n).then(function(t){r=t.naturalWidth;u=t.naturalHeight;h();o[0].src=n})});angular.element(n).on("resize",h)}}}]),function(){function l(n,t,i){for(var r=(i||0)-1,u=n?n.length:0;++r<u;)if(n[r]===t)return r;return-1}function it(n,t){var i=typeof t,r;return(n=n.cache,i=="boolean"||t==null)?n[t]?0:-1:(i!="number"&&i!="string"&&(i="object"),r=i=="number"?t:ft+t,n=(n=n[i])&&n[r],i=="object"?n&&l(n,t)>-1?0:-1:n?0:-1)}function hi(n){var u=this.cache,t=typeof n,i,r;t=="boolean"||n==null?u[n]=!0:(t!="number"&&t!="string"&&(t="object"),i=t=="number"?n:ft+n,r=u[t]||(u[t]={}),t=="object"?(r[i]||(r[i]=[])).push(n):r[i]=!0)}function wt(n){return n.charCodeAt(0)}function ci(n,t){for(var f=n.criteria,e=t.criteria,u=-1,o=f.length,i,r;++u<o;)if(i=f[u],r=e[u],i!==r){if(i>r||typeof i=="undefined")return 1;if(i<r||typeof r=="undefined")return-1}return n.index-t.index}function ot(n){var u=-1,r=n.length,f=n[0],e=n[r/2|0],o=n[r-1],t,i;if(f&&typeof f=="object"&&e&&typeof e=="object"&&o&&typeof o=="object")return!1;for(t=st(),t["false"]=t["null"]=t["true"]=t.undefined=!1,i=st(),i.array=n,i.cache=t,i.push=hi;++u<r;)i.push(n[u]);return i}function li(n){return"\\"+oi[n]}function u(){return rt.pop()||[]}function st(){return ut.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function i(n){n.length=0;rt.length<ct&&rt.push(n)}function k(n){var t=n.cache;t&&k(t);n.array=n.cache=n.criteria=n.object=n.number=n.string=n.value=null;ut.length<ct&&ut.push(n)}function n(n,t,i){t||(t=0);typeof i=="undefined"&&(i=n?n.length:0);for(var r=-1,u=i-t||0,f=Array(u<0?0:u);++r<u;)f[r]=n[t+r];return f}function ht(c){function nt(n){return n&&typeof n=="object"&&!ut(n)&&oi.call(n,"__wrapped__")?n:new rr(n)}function rr(n,t){this.__chain__=!!t;this.__wrapped__=n}function eo(t){function r(){var t,e,o;return(u&&(t=n(u),lr.apply(t,arguments)),this instanceof r)?(e=yr(i.prototype),o=i.apply(e,t||arguments),hi(o)?o:e):i.apply(f,t||arguments)}var i=t[0],u=t[2],f=t[4];return ru(r,t),r}function pu(t,f,e,o,h){var c,d,v,l,a,g,k;if(e&&(c=e(t),typeof c!="undefined"))return c;if(d=hi(t),d){if(v=ct.call(t),!r[v])return t;l=di[v];switch(v){case y:case p:return new l(+t);case w:case s:return new l(t);case b:return c=l(t.source,ti.exec(t)),c.lastIndex=t.lastIndex,c}}else return t;if(a=ut(t),f){for(g=!o,o||(o=u()),h||(h=u()),k=o.length;k--;)if(o[k]==t)return h[k];c=a?l(t.length):{}}else c=a?n(t):fu({},t);return(a&&(oi.call(t,"index")&&(c.index=t.index),oi.call(t,"input")&&(c.input=t.input)),!f)?c:(o.push(t),h.push(c),(a?ai:tt)(t,function(n,t){c[t]=pu(n,f,e,o,h)}),g&&(i(o),i(h)),c)}function yr(n){return hi(n)?nu(n):{}}function vi(n,t,i){var r,u;if(typeof n!="function")return uf;if(typeof t=="undefined"||!("prototype"in n)||(r=n.__bindData__,typeof r=="undefined"&&(or.funcNames&&(r=!n.name),r=r||!or.funcDecomp,r||(u=io.call(n),or.funcNames||(r=!ii.test(u)),r||(r=vt.test(u),ru(n,r)))),r===!1||r!==!0&&r[1]&1))return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)};case 4:return function(i,r,u,f){return n.call(t,i,r,u,f)}}return le(n,t)}function cf(t){function f(){var y=c?o:this,t,p;return(e&&(t=n(e),lr.apply(t,arguments)),(u||h)&&(t||(t=n(arguments)),u&&lr.apply(t,u),h&&t.length<s))?(i|=16,cf([r,a?i:i&-4,t,null,o,s])):(t||(t=arguments),l&&(r=y[v]),this instanceof f)?(y=yr(r.prototype),p=r.apply(y,t),hi(p)?p:y):r.apply(y,t)}var r=t[0],i=t[1],e=t[2],u=t[3],o=t[4],s=t[5],c=i&1,l=i&2,h=i&4,a=i&8,v=r;return ru(f,t),f}function pr(n,t){var e=-1,i=iu(),o=n?n.length:0,r=o>=et&&i===l,s=[],u,f;for(r&&(u=ot(t),u?(i=it,t=u):r=!1);++e<o;)f=n[e],i(t,f)<0&&s.push(f);return r&&k(t),s}function nr(n,t,i,r){for(var e=(r||0)-1,h=n?n.length:0,f=[],u;++e<h;)if(u=n[e],u&&typeof u=="object"&&typeof u.length=="number"&&(ut(u)||uu(u))){t||(u=nr(u,t,i));var o=-1,s=u.length,c=f.length;for(f.length+=s;++o<s;)f[c++]=u[o]}else i||f.push(u);return f}function sr(n,r,f,e,h,c){var l,ht,lt,d,it,ut,ft,et,nt,tt,at,g,k,ot,st;if(f&&(l=f(n,r),typeof l!="undefined"))return!!l;if(n===r)return n!==0||1/n==1/r;if(ht=typeof n,lt=typeof r,n===n&&!(n&&t[ht])&&!(r&&t[lt]))return!1;if(n==null||r==null)return n===r;if(d=ct.call(n),it=ct.call(r),d==a&&(d=o),it==a&&(it=o),d!=it)return!1;switch(d){case y:case p:return+n==+r;case w:return n!=+n?r!=+r:n==0?1/n==1/r:n==+r;case b:case s:return n==gi(r)}if(ut=d==v,!ut){if(ft=oi.call(n,"__wrapped__"),et=oi.call(r,"__wrapped__"),ft||et)return sr(ft?n.__wrapped__:n,et?r.__wrapped__:r,f,e,h,c);if(d!=o||(nt=n.constructor,tt=r.constructor,nt!=tt&&!(rt(nt)&&nt instanceof nt&&rt(tt)&&tt instanceof tt)&&"constructor"in n&&"constructor"in r))return!1}for(at=!h,h||(h=u()),c||(c=u()),g=h.length;g--;)if(h[g]==n)return c[g]==r;if(k=0,l=!0,h.push(n),c.push(r),ut){if(g=n.length,k=r.length,l=k==g,l||e)while(k--)if(ot=g,st=r[k],e){while(ot--)if(l=sr(n[ot],st,f,e,h,c))break}else if(!(l=sr(n[k],st,f,e,h,c)))break}else bi(r,function(t,i,r){if(oi.call(r,i))return k++,l=oi.call(n,i)&&sr(n[i],t,f,e,h,c)}),l&&!e&&bi(n,function(n,t,i){if(oi.call(i,t))return l=--k>-1});return h.pop(),c.pop(),at&&(i(h),i(c)),l}function lf(n,t,i,r,u){(ut(t)?ai:tt)(t,function(t,f){var c,l,o=t,e=n[f],s,h;if(t&&((l=ut(t))||ou(t))){for(s=r.length;s--;)if(c=r[s]==t){e=u[s];break}c||(i&&(o=i(e,t),(h=typeof o!="undefined")&&(e=o)),h||(e=l?ut(e)?e:[]:ou(e)?e:{}),r.push(t),u.push(e),h||lf(e,t,i,r,u))}else i&&(o=i(e,t),typeof o=="undefined"&&(o=t)),typeof o!="undefined"&&(e=o);n[f]=e})}function wu(n,t){return n+to(hf()*(t-n+1))}function bu(n,t,r){var e=-1,c=iu(),v=n?n.length:0,a=[],o=!t&&v>=et&&c===l,f=r||o?u():a,y,s,h;for(o&&(y=ot(f),c=it,f=y);++e<v;)s=n[e],h=r?r(s,e,n):s,(t?!e||f[f.length-1]!==h:c(f,h)<0)&&((r||o)&&f.push(h),a.push(s));return o?(i(f.array),k(f)):r&&i(f),a}function ku(n){return function(t,i,r){var f={},u,e,o;if(i=nt.createCallback(i,r,3),u=-1,e=t?t.length:0,typeof e=="number")while(++u<e)o=t[u],n(f,o,i(o,u,t),t);else tt(t,function(t,r,u){n(f,t,i(t,r,u),u)});return f}}function wi(t,i,r,u,f,e){var c=i&1,a=i&2,v=i&4,y=i&8,s=i&16,h=i&32,o,l;if(!a&&!rt(t))throw new ki;return(s&&!r.length&&(i&=-17,s=r=!1),h&&!u.length&&(i&=-33,h=u=!1),o=t&&t.__bindData__,o&&o!==!0)?(o=n(o),o[2]&&(o[2]=n(o[2])),o[3]&&(o[3]=n(o[3])),!c||o[1]&1||(o[4]=f),!c&&o[1]&1&&(i|=8),!v||o[1]&4||(o[5]=e),s&&lr.apply(o[2]||(o[2]=[]),r),h&&ro.apply(o[3]||(o[3]=[]),u),o[1]|=i,wi.apply(null,o)):(l=i==1||i===17?eo:cf,l([t,i,r,u,f,e]))}function oo(n){return du[n]}function iu(){var n=(n=nt.indexOf)===ee?l:n;return n}function tr(n){return typeof n=="function"&&ge.test(n)}function af(n){var t,i;return!(n&&ct.call(n)==o)||(t=n.constructor,rt(t)&&!(t instanceof t))?!1:(bi(n,function(n,t){i=t}),typeof i=="undefined"||oi.call(n,i))}function so(n){return vf[n]}function uu(n){return n&&typeof n=="object"&&typeof n.length=="number"&&ct.call(n)==a||!1}function ao(n,t,i,r){return typeof t!="boolean"&&t!=null&&(r=i,i=t,t=!1),pu(n,t,typeof i=="function"&&vi(i,r,1))}function vo(n,t,i){return pu(n,!0,typeof t=="function"&&vi(t,i,1))}function yo(n,t){var i=yr(n);return t?fu(i,t):i}function po(n,t,i){var r;return t=nt.createCallback(t,i,3),tt(n,function(n,i,u){if(t(n,i,u))return r=i,!1}),r}function wo(n,t,i){var r;return t=nt.createCallback(t,i,3),yf(n,function(n,i,u){if(t(n,i,u))return r=i,!1}),r}function bo(n,t,i){var r=[],u;for(bi(n,function(n,t){r.push(t,n)}),u=r.length,t=vi(t,i,3);u--;)if(t(r[u--],r[u],n)===!1)break;return n}function yf(n,t,i){var u=si(n),f=u.length,r;for(t=vi(t,i,3);f--;)if(r=u[f],t(n[r],r,n)===!1)break;return n}function wr(n){var t=[];return bi(n,function(n,i){rt(n)&&t.push(i)}),t.sort()}function ko(n,t){return n?oi.call(n,t):!1}function pf(n){for(var i=-1,r=si(n),f=r.length,u={},t;++i<f;)t=r[i],u[n[t]]=t;return u}function go(n){return n===!0||n===!1||n&&typeof n=="object"&&ct.call(n)==y||!1}function ns(n){return n&&typeof n=="object"&&ct.call(n)==p||!1}function ts(n){return n&&n.nodeType===1||!1}function is(n){var i=!0,t,r;return n?(t=ct.call(n),r=n.length,t==v||t==s||t==a||t==o&&typeof r=="number"&&rt(n.splice))?!r:(tt(n,function(){return i=!1}),i):i}function rs(n,t,i,r){return sr(n,t,typeof i=="function"&&vi(i,r,2))}function us(n){return uo(n)&&!fo(parseFloat(n))}function rt(n){return typeof n=="function"}function hi(n){return!!(n&&t[typeof n])}function fs(n){return wf(n)&&n!=+n}function es(n){return n===null}function wf(n){return typeof n=="number"||n&&typeof n=="object"&&ct.call(n)==w||!1}function os(n){return n&&typeof n=="object"&&ct.call(n)==b||!1}function br(n){return typeof n=="string"||n&&typeof n=="object"&&ct.call(n)==s||!1}function ss(n){return typeof n=="undefined"}function hs(n,t,i){var r={};return t=nt.createCallback(t,i,3),tt(n,function(n,i,u){r[i]=t(n,i,u)}),r}function cs(t){var f=arguments,r=2,e;if(!hi(t))return t;typeof f[2]!="number"&&(r=f.length);r>3&&typeof f[r-2]=="function"?e=vi(f[--r-1],f[r--],2):r>2&&typeof f[r-1]=="function"&&(e=f[--r]);for(var c=n(arguments,1,r),o=-1,s=u(),h=u();++o<r;)lf(t,c[o],e,s,h);return i(s),i(h),t}function ls(n,t,i){var u={},r,f,o,e;if(typeof t!="function")for(r=[],bi(n,function(n,t){r.push(t)}),r=pr(r,nr(arguments,!0,!1,1)),f=-1,o=r.length;++f<o;)e=r[f],u[e]=n[e];else t=nt.createCallback(t,i,3),bi(n,function(n,i,r){t(n,i,r)||(u[i]=n)});return u}function as(n){for(var t=-1,r=si(n),u=r.length,f=yi(u),i;++t<u;)i=r[t],f[t]=[i,n[i]];return f}function vs(n,t,i){var u={},r;if(typeof t!="function")for(var f=-1,e=nr(arguments,!0,!1,1),o=hi(n)?e.length:0;++f<o;)r=e[f],r in n&&(u[r]=n[r]);else t=nt.createCallback(t,i,3),bi(n,function(n,i,r){t(n,i,r)&&(u[i]=n)});return u}function ys(n,t,i,r){var f=ut(n),u,e;return i==null&&(f?i=[]:(u=n&&n.constructor,e=u&&u.prototype,i=yr(e))),t&&(t=nt.createCallback(t,r,4),(f?ai:tt)(n,function(n,r,u){return t(i,n,r,u)})),i}function su(n){for(var t=-1,i=si(n),r=i.length,u=yi(r);++t<r;)u[t]=n[i[t]];return u}function ps(n){for(var t=arguments,i=-1,r=nr(t,!0,!1,1),u=t[2]&&t[2][t[1]]===n?1:r.length,f=yi(u);++i<u;)f[i]=n[r[i]];return f}function bf(n,t,i){var e=-1,u=iu(),f=n?n.length:0,r=!1;return i=(i<0?pi(0,f+i):i)||0,ut(n)?r=u(n,t,i)>-1:typeof f=="number"?r=(br(n)?n.indexOf(t,i):u(n,t,i))>-1:tt(n,function(n){if(++e>=i)return!(r=n===t)}),r}function df(n,t,i){var u=!0,r,f;if(t=nt.createCallback(t,i,3),r=-1,f=n?n.length:0,typeof f=="number"){while(++r<f)if(!(u=!!t(n[r],r,n)))break}else tt(n,function(n,i,r){return u=!!t(n,i,r)});return u}function hu(n,t,i){var u=[],r,f,e;if(t=nt.createCallback(t,i,3),r=-1,f=n?n.length:0,typeof f=="number")while(++r<f)e=n[r],t(e,r,n)&&u.push(e);else tt(n,function(n,i,r){t(n,i,r)&&u.push(n)});return u}function gu(n,t,i){var r,u,f,e;if(t=nt.createCallback(t,i,3),r=-1,u=n?n.length:0,typeof u=="number"){while(++r<u)if(f=n[r],t(f,r,n))return f}else return tt(n,function(n,i,r){if(t(n,i,r))return e=n,!1}),e}function ws(n,t,i){var r;return t=nt.createCallback(t,i,3),cu(n,function(n,i,u){if(t(n,i,u))return r=n,!1}),r}function ai(n,t,i){var r=-1,u=n?n.length:0;if(t=t&&typeof i=="undefined"?t:vi(t,i,3),typeof u=="number"){while(++r<u)if(t(n[r],r,n)===!1)break}else tt(n,t);return n}function cu(n,t,i){var r=n?n.length:0,u;if(t=t&&typeof i=="undefined"?t:vi(t,i,3),typeof r=="number"){while(r--)if(t(n[r],r,n)===!1)break}else u=si(n),r=u.length,tt(n,function(n,i,f){return i=u?u[--r]:--r,t(f[i],i,f)});return n}function bs(t,i){var f=n(arguments,2),e=-1,o=typeof i=="function",r=t?t.length:0,u=yi(typeof r=="number"?r:0);return ai(t,function(n){u[++e]=(o?i:n[i]).apply(n,f)}),u}function kr(n,t,i){var r=-1,f=n?n.length:0,u;if(t=nt.createCallback(t,i,3),typeof f=="number")for(u=yi(f);++r<f;)u[r]=t(n[r],r,n);else u=[],tt(n,function(n,i,f){u[++r]=t(n,i,f)});return u}function te(n,t,i){var u=-Infinity,r=u,f,o,e;if(typeof t!="function"&&i&&i[t]===n&&(t=null),t==null&&ut(n))for(f=-1,o=n.length;++f<o;)e=n[f],e>r&&(r=e);else t=t==null&&br(n)?wt:nt.createCallback(t,i,3),ai(n,function(n,i,f){var e=t(n,i,f);e>u&&(u=e,r=n)});return r}function ks(n,t,i){var u=Infinity,r=u,f,o,e;if(typeof t!="function"&&i&&i[t]===n&&(t=null),t==null&&ut(n))for(f=-1,o=n.length;++f<o;)e=n[f],e<r&&(r=e);else t=t==null&&br(n)?wt:nt.createCallback(t,i,3),ai(n,function(n,i,f){var e=t(n,i,f);e<u&&(u=e,r=n)});return r}function nf(n,t,i,r){var f,u,e;if(!n)return i;if(f=arguments.length<3,t=nt.createCallback(t,r,4),u=-1,e=n.length,typeof e=="number")for(f&&(i=n[++u]);++u<e;)i=t(i,n[u],u,n);else tt(n,function(n,r,u){i=f?(f=!1,n):t(i,n,r,u)});return i}function ie(n,t,i,r){var u=arguments.length<3;return t=nt.createCallback(t,r,4),cu(n,function(n,r,f){i=u?(u=!1,n):t(i,n,r,f)}),i}function ds(n,t,i){return t=nt.createCallback(t,i,3),hu(n,function(n,i,r){return!t(n,i,r)})}function gs(n,t,i){if(n&&typeof n.length!="number"&&(n=su(n)),t==null||i)return n?n[wu(0,n.length-1)]:e;var r=re(n);return r.length=vr(pi(0,t),r.length),r}function re(n){var i=-1,r=n?n.length:0,t=yi(typeof r=="number"?r:0);return ai(n,function(n){var r=wu(0,++i);t[i]=t[r];t[r]=n}),t}function nh(n){var t=n?n.length:0;return typeof t=="number"?t:si(n).length}function ue(n,t,i){var u,r,f;if(t=nt.createCallback(t,i,3),r=-1,f=n?n.length:0,typeof f=="number"){while(++r<f)if(u=t(n[r],r,n))break}else tt(n,function(n,i,r){return!(u=t(n,i,r))});return!!u}function th(n,t,r){var h=-1,s=ut(t),f=n?n.length:0,e=yi(typeof f=="number"?f:0),o;for(s||(t=nt.createCallback(t,r,3)),ai(n,function(n,i,r){var f=e[++h]=st();s?f.criteria=kr(t,function(t){return n[t]}):(f.criteria=u())[0]=t(n,i,r);f.index=h;f.value=n}),f=e.length,e.sort(ci);f--;)o=e[f],e[f]=o.value,s||i(o.criteria),k(o);return e}function ih(t){return t&&typeof t.length=="number"?n(t):su(t)}function rh(n){for(var i=-1,u=n?n.length:0,r=[],t;++i<u;)t=n[i],t&&r.push(t);return r}function uh(n){return pr(n,nr(arguments,!0,!0,1))}function fh(n,t,i){var r=-1,u=n?n.length:0;for(t=nt.createCallback(t,i,3);++r<u;)if(t(n[r],r,n))return r;return-1}function eh(n,t,i){var r=n?n.length:0;for(t=nt.createCallback(t,i,3);r--;)if(t(n[r],r,n))return r;return-1}function tf(t,i,r){var u=0,o=t?t.length:0,f;if(typeof i!="number"&&i!=null)for(f=-1,i=nt.createCallback(i,r,3);++f<o&&i(t[f],f,t);)u++;else if(u=i,u==null||r)return t?t[0]:e;return n(t,0,vr(pi(0,u),o))}function oh(n,t,i,r){return typeof t!="boolean"&&t!=null&&(r=i,i=typeof t!="function"&&r&&r[t]===n?null:t,t=!1),i!=null&&(n=kr(n,i,r)),nr(n,t)}function ee(n,t,i){var u,r;if(typeof i=="number")u=n?n.length:0,i=i<0?pi(0,u+i):i||0;else if(i)return r=oe(n,t),n[r]===t?r:-1;return l(n,t,i)}function sh(t,i,r){var u=0,e=t?t.length:0,f;if(typeof i!="number"&&i!=null)for(f=e,i=nt.createCallback(i,r,3);f--&&i(t[f],f,t);)u++;else u=i==null||r?1:i||u;return n(t,0,vr(pi(0,e-u),e))}function hh(){for(var e=[],r=-1,o=arguments.length,f=u(),h=iu(),y=h===l,s=u(),n,t;++r<o;)n=arguments[r],(ut(n)||uu(n))&&(e.push(n),f.push(y&&n.length>=et&&ot(r?e[r]:s)));var c=e[0],a=-1,p=c?c.length:0,v=[];n:while(++a<p)if(t=f[0],n=c[a],(t?it(t,n):h(s,n))<0){for(r=o,(t||s).push(n);--r;)if(t=f[r],(t?it(t,n):h(e[r],n))<0)continue n;v.push(n)}while(o--)t=f[o],t&&k(t);return i(f),i(s),v}function ch(t,i,r){var u=0,o=t?t.length:0,f;if(typeof i!="number"&&i!=null)for(f=o,i=nt.createCallback(i,r,3);f--&&i(t[f],f,t);)u++;else if(u=i,u==null||r)return t?t[o-1]:e;return n(t,pi(0,o-u))}function lh(n,t,i){var r=n?n.length:0;for(typeof i=="number"&&(r=(i<0?pi(0,r+i):vr(i,r-1))+1);r--;)if(n[r]===t)return r;return-1}function ah(n){for(var i=arguments,r=0,e=i.length,u=n?n.length:0,t,f;++r<e;)for(t=-1,f=i[r];++t<u;)n[t]===f&&(of.call(n,t--,1),u--);return n}function vh(n,t,i){n=+n||0;i=typeof i=="number"?i:+i||1;t==null&&(t=n,n=0);for(var r=-1,u=pi(0,no((t-n)/(i||1))),f=yi(u);++r<u;)f[r]=n,n+=i;return f}function yh(n,t,i){var r=-1,f=n?n.length:0,e=[],u;for(t=nt.createCallback(t,i,3);++r<f;)u=n[r],t(u,r,n)&&(e.push(u),of.call(n,r--,1),f--);return e}function rf(t,i,r){if(typeof i!="number"&&i!=null){var u=0,f=-1,e=t?t.length:0;for(i=nt.createCallback(i,r,3);++f<e&&i(t[f],f,t);)u++}else u=i==null||r?1:pi(0,i);return n(t,u)}function oe(n,t,i,r){var u=0,e=n?n.length:u,f;for(i=i?nt.createCallback(i,r,1):uf,t=i(t);u<e;)f=u+e>>>1,i(n[f])<t?u=f+1:e=f;return u}function ph(){return bu(nr(arguments,!0,!0))}function se(n,t,i,r){return typeof t!="boolean"&&t!=null&&(r=i,i=typeof t!="function"&&r&&r[t]===n?null:t,t=!1),i!=null&&(i=nt.createCallback(i,r,3)),bu(n,t,i)}function wh(t){return pr(t,n(arguments,1))}function bh(){for(var i=-1,r=arguments.length,n,t;++i<r;)n=arguments[i],(ut(n)||uu(n))&&(t=t?bu(pr(t,n).concat(pr(n,t))):n);return t||[]}function he(){for(var n=arguments.length>1?arguments:arguments[0],t=-1,i=n?te(lu(n,"length")):0,r=yi(i<0?0:i);++t<i;)r[t]=lu(n,t);return r}function ce(n,t){var r=-1,f=n?n.length:0,u={},i;for(t||!f||ut(n[0])||(t=[]);++r<f;)i=n[r],t?u[i]=t[r]:i&&(u[i[0]]=i[1]);return u}function kh(n,t){if(!rt(t))throw new ki;return function(){if(--n<1)return t.apply(this,arguments)}}function le(t,i){return arguments.length>2?wi(t,17,n(arguments,2),null,i):wi(t,1,null,null,i)}function dh(n){for(var i=arguments.length>1?nr(arguments,!0,!1,1):wr(n),r=-1,u=i.length,t;++r<u;)t=i[r],n[t]=wi(n[t],1,null,null,n);return n}function gh(t,i){return arguments.length>2?wi(i,19,n(arguments,2),null,t):wi(i,3,null,null,t)}function nc(){for(var n=arguments,t=n.length;t--;)if(!rt(n[t]))throw new ki;return function(){for(var t=arguments,i=n.length;i--;)t=[n[i].apply(this,t)];return t[0]}}function tc(n,t){return t=typeof t=="number"?t:+t||n.length,wi(n,4,null,null,null,t)}function ae(n,t,i){var f,u,s,h,o,r,y,c=0,l=!1,a=!0,v,p,w;if(!rt(n))throw new ki;return t=pi(0,t)||0,i===!0?(v=!0,a=!1):hi(i)&&(v=i.leading,l="maxWait"in i&&(pi(t,i.maxWait)||0),a="trailing"in i?i.trailing:a),p=function(){var i=t-(ir()-h),l;i<=0?(u&&gr(u),l=y,u=r=y=e,l&&(c=ir(),s=n.apply(o,f),r||u||(f=o=null))):r=ar(p,i)},w=function(){r&&gr(r);u=r=y=e;(a||l!==t)&&(c=ir(),s=n.apply(o,f),r||u||(f=o=null))},function(){var b,e,i;return f=arguments,h=ir(),o=this,y=a&&(r||!v),l===!1?b=v&&!r:(u||v||(c=h),e=l-(h-c),i=e<=0,i?(u&&(u=gr(u)),c=h,s=n.apply(o,f)):u||(u=ar(w,e))),i&&r?r=gr(r):r||t===l||(r=ar(p,t)),b&&(i=!0,s=n.apply(o,f)),!i||r||u||(f=o=null),s}}function ic(t){if(!rt(t))throw new ki;var i=n(arguments,1);return ar(function(){t.apply(e,i)},1)}function rc(t,i){if(!rt(t))throw new ki;var r=n(arguments,2);return ar(function(){t.apply(e,r)},i)}function uc(n,t){if(!rt(n))throw new ki;var i=function(){var r=i.cache,u=t?t.apply(this,arguments):ft+arguments[0];return oi.call(r,u)?r[u]:r[u]=n.apply(this,arguments)};return i.cache={},i}function fc(n){var i,t;if(!rt(n))throw new ki;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}}function ec(t){return wi(t,16,n(arguments,1))}function oc(t){return wi(t,32,null,n(arguments,1))}function sc(n,t,i){var r=!0,u=!0;if(!rt(n))throw new ki;return i===!1?r=!1:hi(i)&&(r="leading"in i?i.leading:r,u="trailing"in i?i.trailing:u),g.leading=r,g.maxWait=t,g.trailing=u,ae(n,t,g)}function hc(n,t){return wi(t,16,[n])}function cc(n){return function(){return n}}function lc(n,t,i){var f=typeof n;if(n==null||f=="function")return vi(n,t,i);if(f!="object")return pe(n);var u=si(n),e=u[0],r=n[e];return u.length==1&&r===r&&!hi(r)?function(n){var t=n[e];return r===t&&(r!==0||1/r==1/t)}:function(t){for(var i=u.length,r=!1;i--;)if(!(r=sr(t[u[i]],n[u[i]],null,!0)))break;return r}}function ac(n){return n==null?"":gi(n).replace(lo,oo)}function uf(n){return n}function ff(n,t,i){var u=!0,f=t&&wr(t),r,e;t&&(i||f.length)||(i==null&&(i=t),r=rr,t=n,n=nt,f=wr(t));i===!1?u=!1:hi(i)&&"chain"in i&&(u=i.chain);r=n;e=rt(r);ai(f,function(i){var f=n[i]=t[i];e&&(r.prototype[i]=function(){var i=this.__chain__,e=this.__wrapped__,o=[e],t;if(lr.apply(o,arguments),t=f.apply(n,o),u||i){if(e===t&&hi(t))return this;t=new r(t);t.__chain__=i}return t})})}function vc(){return c._=de,this}function ve(){}function pe(n){return function(t){return t[n]}}function yc(n,t,i){var f=n==null,r=t==null,u;return(i==null&&(typeof n=="boolean"&&r?(i=n,n=1):r||typeof t!="boolean"||(i=t,r=!0)),f&&r&&(t=1),n=+n||0,r?(t=n,n=0):t=+t||0,i||n%1||t%1)?(u=hf(),vr(n+u*(t-n+parseFloat("1e-"+((u+"").length-1))),t)):wu(n,t)}function pc(n,t){if(n){var i=n[t];return rt(i)?n[t]():i}}function wc(n,t,i){var h=nt.templateSettings,u,s,v,f;n=gi(n||"");i=eu({},i,h);var c=eu({},i.imports,h.imports),p=si(c),w=su(c),o,l=0,a=i.interpolate||d,r="__p += '",b=cr((i.escape||d).source+"|"+a.source+"|"+(a===at?ni:d).source+"|"+(i.evaluate||d).source+"|$","g");n.replace(b,function(t,i,u,f,e,s){return u||(u=f),r+=n.slice(l,s).replace(ui,li),i&&(r+="' +\n__e("+i+") +\n'"),e&&(o=!0,r+="';\n"+e+";\n__p += '"),u&&(r+="' +\n((__t = ("+u+")) == null ? '' : __t) +\n'"),l=s+t.length,t});r+="';\n";u=i.variable;s=u;s||(u="obj",r="with ("+u+") {\n"+r+"\n}\n");r=(o?r.replace(kt,""):r).replace(dt,"$1").replace(gt,"$1;");r="function("+u+") {\n"+(s?"":u+" || ("+u+" = {});\n")+"var __t, __p = '', __e = _.escape"+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+r+"return __p\n}";v="\n/*\n//# sourceURL="+(i.sourceURL||"/lodash/template/source["+ei+++"]")+"\n*/";try{f=dr(p,"return "+r+v).apply(e,w)}catch(y){y.source=r;throw y;}return t?f(t):(f.source=r,f)}function bc(n,t,i){n=(n=+n)>-1?n:0;var r=-1,u=yi(n);for(t=vi(t,i,1);++r<n;)u[r]=t(r);return u}function kc(n){return n==null?"":gi(n).replace(co,so)}function dc(n){var t=++bt;return gi(n==null?"":n)+t}function gc(n){return n=new rr(n),n.__chain__=!0,n}function nl(n,t){return t(n),n}function tl(){return this.__chain__=!0,this}function il(){return gi(this.__wrapped__)}function we(){return this.__wrapped__}var or,ru,eu,bi,tt,ou,kf,gf,ne,lu,fe,ir,ye;c=c?f.defaults(h.Object(),c,f.pick(h,fi)):h;var yi=c.Array,be=c.Boolean,au=c.Date,dr=c.Function,hr=c.Math,ke=c.Number,ur=c.Object,cr=c.RegExp,gi=c.String,ki=c.TypeError,fr=[],ef=ur.prototype,de=c._,ct=ef.toString,ge=cr("^"+gi(ct).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),no=hr.ceil,gr=c.clearTimeout,to=hr.floor,io=dr.prototype.toString,er=tr(er=ur.getPrototypeOf)&&er,oi=ef.hasOwnProperty,lr=fr.push,ar=c.setTimeout,of=fr.splice,ro=fr.unshift,sf=function(){try{var t={},n=tr(n=ur.defineProperty)&&n,i=n(t,t,t)&&n}catch(r){}return i}(),nu=tr(nu=ur.create)&&nu,vu=tr(vu=yi.isArray)&&vu,uo=c.isFinite,fo=c.isNaN,tu=tr(tu=ur.keys)&&tu,pi=hr.max,vr=hr.min,yu=c.parseInt,hf=hr.random,di={};di[v]=yi;di[y]=be;di[p]=au;di[yt]=dr;di[o]=ur;di[w]=ke;di[b]=cr;di[s]=gi;rr.prototype=nt.prototype;or=nt.support={};or.funcDecomp=!tr(c.WinRTError)&&vt.test(ht);or.funcNames=typeof dr.name=="string";nt.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:at,variable:"",imports:{_:nt}};nu||(yr=function(){function n(){}return function(t){if(hi(t)){n.prototype=t;n.prototype=null}return{}||c.Object()}}());ru=sf?function(n,t){pt.value=t;sf(n,"__bindData__",pt)}:ve;var ut=vu||function(n){return n&&typeof n=="object"&&typeof n.length=="number"&&ct.call(n)==v||!1},ho=function(n){var i,r=n,u=[];if(!r||!t[typeof n])return u;for(i in r)oi.call(r,i)&&u.push(i);return u},si=tu?function(n){return hi(n)?tu(n):[]}:ho,du={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vf=pf(du),co=cr("("+si(vf).join("|")+")","g"),lo=cr("["+si(du).join("")+"]","g"),fu=function(n,i,r){var o,u=n,s=u,h;if(!u)return s;var e=arguments,l=0,f=typeof r=="number"?2:e.length;for(f>3&&typeof e[f-2]=="function"?h=vi(e[--f-1],e[f--],2):f>2&&typeof e[f-1]=="function"&&(h=e[--f]);++l<f;)if(u=e[l],u&&t[typeof u])for(var a=-1,c=t[typeof u]&&si(u),v=c?c.length:0;++a<v;)o=c[a],s[o]=h?h(s[o],u[o]):u[o];return s};return eu=function(n,i,r){var f,u=n,e=u;if(!u)return e;for(var s=arguments,h=0,l=typeof r=="number"?2:s.length;++h<l;)if(u=s[h],u&&t[typeof u])for(var c=-1,o=t[typeof u]&&si(u),a=o?o.length:0;++c<a;)f=o[c],typeof e[f]=="undefined"&&(e[f]=u[f]);return e},bi=function(n,i,r){var f,u=n,e=u;if(!u||!t[typeof u])return e;i=i&&typeof r=="undefined"?i:vi(i,r,3);for(f in u)if(i(u[f],f,n)===!1)return e;return e},tt=function(n,i,r){var f,u=n,e=u;if(!u||!t[typeof u])return e;i=i&&typeof r=="undefined"?i:vi(i,r,3);for(var s=-1,o=t[typeof u]&&si(u),h=o?o.length:0;++s<h;)if(f=o[s],i(u[f],f,n)===!1)return e;return e},ou=er?function(n){if(!(n&&ct.call(n)==o))return!1;var i=n.valueOf,t=tr(i)&&(t=er(i))&&er(t);return t?n==t||er(n)==t:af(n)}:af,kf=ku(function(n,t,i){oi.call(n,i)?n[i]++:n[i]=1}),gf=ku(function(n,t,i){(oi.call(n,i)?n[i]:n[i]=[]).push(t)}),ne=ku(function(n,t,i){n[i]=t}),lu=kr,fe=hu,ir=tr(ir=au.now)&&ir||function(){return(new au).getTime()},ye=yu(lt+"08")==8?yu:function(n,t){return yu(br(n)?n.replace(ri,""):n,t||0)},nt.after=kh,nt.assign=fu,nt.at=ps,nt.bind=le,nt.bindAll=dh,nt.bindKey=gh,nt.chain=gc,nt.compact=rh,nt.compose=nc,nt.constant=cc,nt.countBy=kf,nt.create=yo,nt.createCallback=lc,nt.curry=tc,nt.debounce=ae,nt.defaults=eu,nt.defer=ic,nt.delay=rc,nt.difference=uh,nt.filter=hu,nt.flatten=oh,nt.forEach=ai,nt.forEachRight=cu,nt.forIn=bi,nt.forInRight=bo,nt.forOwn=tt,nt.forOwnRight=yf,nt.functions=wr,nt.groupBy=gf,nt.indexBy=ne,nt.initial=sh,nt.intersection=hh,nt.invert=pf,nt.invoke=bs,nt.keys=si,nt.map=kr,nt.mapValues=hs,nt.max=te,nt.memoize=uc,nt.merge=cs,nt.min=ks,nt.omit=ls,nt.once=fc,nt.pairs=as,nt.partial=ec,nt.partialRight=oc,nt.pick=vs,nt.pluck=lu,nt.property=pe,nt.pull=ah,nt.range=vh,nt.reject=ds,nt.remove=yh,nt.rest=rf,nt.shuffle=re,nt.sortBy=th,nt.tap=nl,nt.throttle=sc,nt.times=bc,nt.toArray=ih,nt.transform=ys,nt.union=ph,nt.uniq=se,nt.values=su,nt.where=fe,nt.without=wh,nt.wrap=hc,nt.xor=bh,nt.zip=he,nt.zipObject=ce,nt.collect=kr,nt.drop=rf,nt.each=ai,nt.eachRight=cu,nt.extend=fu,nt.methods=wr,nt.object=ce,nt.select=hu,nt.tail=rf,nt.unique=se,nt.unzip=he,ff(nt),nt.clone=ao,nt.cloneDeep=vo,nt.contains=bf,nt.escape=ac,nt.every=df,nt.find=gu,nt.findIndex=fh,nt.findKey=po,nt.findLast=ws,nt.findLastIndex=eh,nt.findLastKey=wo,nt.has=ko,nt.identity=uf,nt.indexOf=ee,nt.isArguments=uu,nt.isArray=ut,nt.isBoolean=go,nt.isDate=ns,nt.isElement=ts,nt.isEmpty=is,nt.isEqual=rs,nt.isFinite=us,nt.isFunction=rt,nt.isNaN=fs,nt.isNull=es,nt.isNumber=wf,nt.isObject=hi,nt.isPlainObject=ou,nt.isRegExp=os,nt.isString=br,nt.isUndefined=ss,nt.lastIndexOf=lh,nt.mixin=ff,nt.noConflict=vc,nt.noop=ve,nt.now=ir,nt.parseInt=ye,nt.random=yc,nt.reduce=nf,nt.reduceRight=ie,nt.result=pc,nt.runInContext=ht,nt.size=nh,nt.some=ue,nt.sortedIndex=oe,nt.template=wc,nt.unescape=kc,nt.uniqueId=dc,nt.all=df,nt.any=ue,nt.detect=gu,nt.findWhere=gu,nt.foldl=nf,nt.foldr=ie,nt.include=bf,nt.inject=nf,ff(function(){var n={};return tt(nt,function(t,i){nt.prototype[i]||(n[i]=t)}),n}(),!1),nt.first=tf,nt.last=ch,nt.sample=gs,nt.take=tf,nt.head=tf,tt(nt,function(n,t){var i=t!=="sample";nt.prototype[t]||(nt.prototype[t]=function(t,r){var u=this.__chain__,f=n(this.__wrapped__,t,r);return!u&&(t==null||r&&!(i&&typeof t=="function"))?f:new rr(f,u)})}),nt.VERSION="2.4.1",nt.prototype.chain=tl,nt.prototype.toString=il,nt.prototype.value=we,nt.prototype.valueOf=we,ai(["join","pop","shift"],function(n){var t=fr[n];nt.prototype[n]=function(){var n=this.__chain__,i=t.apply(this.__wrapped__,arguments);return n?new rr(i,n):i}}),ai(["push","reverse","sort","unshift"],function(n){var t=fr[n];nt.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),ai(["concat","slice","splice"],function(n){var t=fr[n];nt.prototype[n]=function(){return new rr(t.apply(this.__wrapped__,arguments),this.__chain__)}}),nt}var e,rt=[],ut=[],bt=0,ft=+new Date+"",et=75,ct=40,lt=" \t\x0b\f ﻿\n\r\u2028\u2029 ᠎             　",kt=/\b__p \+= '';/g,dt=/\b(__p \+=) '' \+/g,gt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ni=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ti=/\w*$/,ii=/^\s*function[ \n\r\t]+\w/,at=/<%=([\s\S]+?)%>/g,ri=RegExp("^["+lt+"]*0+(?=.$)"),d=/($^)/,vt=/\bthis\b/,ui=/['\n\r\t\u2028\u2029\\]/g,fi=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],ei=0,a="[object Arguments]",v="[object Array]",y="[object Boolean]",p="[object Date]",yt="[object Function]",w="[object Number]",o="[object Object]",b="[object RegExp]",s="[object String]",r={},f;r[yt]=!1;r[a]=r[v]=r[y]=r[p]=r[w]=r[o]=r[b]=r[s]=!0;var g={leading:!1,maxWait:0,trailing:!1},pt={configurable:!1,enumerable:!1,value:null,writable:!1},t={boolean:!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},oi={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},h=t[typeof window]&&window||this,nt=t[typeof exports]&&exports&&!exports.nodeType&&exports,tt=t[typeof module]&&module&&!module.nodeType&&module,si=tt&&tt.exports===nt&&nt,c=t[typeof global]&&global;c&&(c.global===c||c.window===c)&&(h=c);f=ht();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(h._=f,define(function(){return f})):nt&&tt?si?(tt.exports=f)._=f:nt._=f:h._=f}.call(this);mod=angular.module("infinite-scroll",[]);mod.directive("infiniteScroll",["$rootScope","$window","$timeout",function(n,t,i){return{link:function(r,u,f){var o,e,h,s;return t=angular.element(t),h=0,null!=f.infiniteScrollDistance&&r.$watch(f.infiniteScrollDistance,function(n){return h=parseInt(n,10)}),s=!0,o=!1,null!=f.infiniteScrollDisabled&&r.$watch(f.infiniteScrollDisabled,function(n){return s=!n,s&&o?(o=!1,e()):void 0}),e=function(){var e,c,i,l;return l=t.height()+t.scrollTop(),e=u.offset().top+u.height(),c=e-l,i=t.height()*h>=c,i&&s?n.$$phase?r.$eval(f.infiniteScroll):r.$apply(f.infiniteScroll):i?o=!0:void 0},t.on("scroll",e),r.$on("$destroy",function(){return t.off("scroll",e)}),i(function(){return f.infiniteScrollImmediateCheck?r.$eval(f.infiniteScrollImmediateCheck)?e():void 0:e()},0)}}}]);directiveModule=angular.module("angularjs-dropdown-multiselect",[]);directiveModule.directive("ngDropdownMultiselect",["$filter","$document","$compile","$parse",function(n,t){return{restrict:"AE",scope:{selectedModel:"=",options:"=",extraSettings:"=",events:"=",searchFilter:"=?",translationTexts:"=",groupBy:"@"},template:function(n,t){var r=t.checkboxes?!0:!1,u=t.groupBy?!0:!1,i='<div class="multiselect-parent btn-group dropdown-multiselect">';i+='<button type="button" class="dropdown-toggle" ng-class="settings.buttonClasses" ng-click="toggleDropdown()">{{getButtonText()}}&nbsp;<span class="pull-right"><span class="caret"><\/span><\/span><\/button>';i+="<ul class=\"dropdown-menu dropdown-menu-form\" ng-style=\"{display: open ? 'block' : 'none', height : settings.scrollable ? settings.scrollableHeight : 'auto' }\" style=\"overflow-y: auto\" >";i+='<li ng-hide="!settings.showCheckAll || settings.selectionLimit > 0"><a data-ng-click="selectAll()"><span class="glyphicon glyphicon-ok"><\/span>  {{texts.checkAll}}<\/a>';i+='<li ng-show="settings.showUncheckAll"><a data-ng-click="deselectAll();"><span class="glyphicon glyphicon-remove"><\/span>   {{texts.uncheckAll}}<\/a><\/li>';i+='<li ng-hide="(!settings.showCheckAll || settings.selectionLimit > 0) && !settings.showUncheckAll" class="divider"><\/li>';i+='<li ng-show="settings.enableSearch"><div class="dropdown-header"><input type="text" class="form-control" style="width: 100%;" ng-model="searchFilter" placeholder="{{texts.searchPlaceholder}}" /><\/li>';i+='<li ng-show="settings.enableSearch" class="divider"><\/li>';u?(i+='<li ng-repeat-start="option in orderedItems | filter: searchFilter" ng-show="getPropertyForObject(option, settings.groupBy) !== getPropertyForObject(orderedItems[$index - 1], settings.groupBy)" role="presentation" class="dropdown-header">{{ getGroupTitle(getPropertyForObject(option, settings.groupBy)) }}<\/li>',i+='<li ng-repeat-end role="presentation">'):i+='<li role="presentation" ng-repeat="option in options | filter: searchFilter">';i+='<a role="menuitem" tabindex="-1" ng-click="setSelectedItem(getPropertyForObject(option,settings.idProp))">';i+=r?'<div class="checkbox"><label><input class="checkboxInput" type="checkbox" ng-click="checkboxClick($event, getPropertyForObject(option,settings.idProp))" ng-checked="isChecked(getPropertyForObject(option,settings.idProp))" /> {{getPropertyForObject(option, settings.displayProp)}}<\/label><\/div><\/a>':"<span data-ng-class=\"{'glyphicon glyphicon-ok': isChecked(getPropertyForObject(option,settings.idProp))}\"><\/span> {{getPropertyForObject(option, settings.displayProp)}}<\/a>";i+="<\/li>";i+='<li class="divider" ng-show="settings.selectionLimit > 1"><\/li>';i+='<li role="presentation" ng-show="settings.selectionLimit > 1"><a role="menuitem">{{selectedModel.length}} {{texts.selectionOf}} {{settings.selectionLimit}} {{texts.selectionCount}}<\/a><\/li>';i+="<\/ul>";i+="<\/div>";n.html(i)},link:function(i,r,u){function f(n){var t={};return i.settings.externalIdProp===""?t[i.settings.idProp]=n:t[i.settings.externalIdProp]=n,t}function e(n){for(var t in n)delete n[t]}var o=r.children()[0];if(i.toggleDropdown=function(){i.open=!i.open},i.checkboxClick=function(n,t){i.setSelectedItem(t);n.stopImmediatePropagation()},i.externalEvents={onItemSelect:angular.noop,onItemDeselect:angular.noop,onSelectAll:angular.noop,onDeselectAll:angular.noop,onInitDone:angular.noop,onMaxSelectionReached:angular.noop},i.settings={dynamicTitle:!0,scrollable:!1,scrollableHeight:"300px",closeOnBlur:!0,displayProp:"label",idProp:"id",externalIdProp:"id",enableSearch:!1,selectionLimit:0,showCheckAll:!0,showUncheckAll:!0,closeOnSelect:!1,buttonClasses:"btn btn-default",closeOnDeselect:!1,groupBy:u.groupBy||undefined,groupByTextProvider:null,smartButtonMaxItems:0,smartButtonTextConverter:angular.noop},i.texts={checkAll:"Check All",uncheckAll:"Uncheck All",selectionCount:"checked",selectionOf:"/",searchPlaceholder:"Search...",buttonDefaultText:"Select",dynamicButtonTextSuffix:"checked"},i.searchFilter=i.searchFilter||"",angular.isDefined(i.settings.groupBy)&&i.$watch("options",function(t){angular.isDefined(t)&&(i.orderedItems=n("orderBy")(t,i.settings.groupBy))}),angular.extend(i.settings,i.extraSettings||[]),angular.extend(i.externalEvents,i.events||[]),angular.extend(i.texts,i.translationTexts),i.singleSelection=i.settings.selectionLimit===1,i.singleSelection&&angular.isArray(i.selectedModel)&&i.selectedModel.length===0&&e(i.selectedModel),i.settings.closeOnBlur)t.on("click",function(n){for(var t=n.target.parentElement,r=!1;angular.isDefined(t)&&t!==null&&!r;)_.contains(t.className.split(" "),"multiselect-parent")&&!r&&t===o&&(r=!0),t=t.parentElement;r||i.$apply(function(){i.open=!1})});i.getGroupTitle=function(n){return i.settings.groupByTextProvider!==null?i.settings.groupByTextProvider(n):n};i.getButtonText=function(){var n,t;return i.settings.dynamicTitle&&(i.selectedModel.length>0||angular.isObject(i.selectedModel)&&_.keys(i.selectedModel).length>0)?i.settings.smartButtonMaxItems>0?(n=[],angular.forEach(i.options,function(t){if(i.isChecked(i.getPropertyForObject(t,i.settings.idProp))){var r=i.getPropertyForObject(t,i.settings.displayProp),u=i.settings.smartButtonTextConverter(r,t);n.push(u?u:r)}}),i.selectedModel.length>i.settings.smartButtonMaxItems&&(n=n.slice(0,i.settings.smartButtonMaxItems),n.push("...")),n.join(", ")):(t=i.singleSelection?i.selectedModel!==null&&angular.isDefined(i.selectedModel[i.settings.idProp])?1:0:angular.isDefined(i.selectedModel)?i.selectedModel.length:0,t===0?i.texts.buttonDefaultText:t+" "+i.texts.dynamicButtonTextSuffix):i.texts.buttonDefaultText};i.getPropertyForObject=function(n,t){return angular.isDefined(n)&&n.hasOwnProperty(t)?n[t]:""};i.selectAll=function(){i.deselectAll(!1);i.externalEvents.onSelectAll();angular.forEach(i.options,function(n){i.setSelectedItem(n[i.settings.idProp],!0)})};i.deselectAll=function(n){n=n||!0;n&&i.externalEvents.onDeselectAll();i.singleSelection?e(i.selectedModel):i.selectedModel.splice(0,i.selectedModel.length)};i.setSelectedItem=function(n,t){var r=f(n),u=null,o;if(u=i.settings.externalIdProp===""?_.find(i.options,r):r,i.singleSelection){e(i.selectedModel);angular.extend(i.selectedModel,u);i.externalEvents.onItemSelect(u);return}if(t=t||!1,o=_.findIndex(i.selectedModel,r)!==-1,!t&&o){i.selectedModel.splice(_.findIndex(i.selectedModel,r),1);i.externalEvents.onItemDeselect(r)}else if(!o&&(i.settings.selectionLimit===0||i.selectedModel.length<i.settings.selectionLimit)){i.selectedModel.push(u);i.externalEvents.onItemSelect(u)}};i.isChecked=function(n){return i.singleSelection?i.selectedModel!==null&&angular.isDefined(i.selectedModel[i.settings.idProp])&&i.selectedModel[i.settings.idProp]===f(n)[i.settings.idProp]:_.findIndex(i.selectedModel,f(n))!==-1};i.externalEvents.onInitDone()}}}]);myApp=angular.module("myApp",["infinite-scroll","angularjs-dropdown-multiselect","ui.bootstrap","bootstrapLightbox","ui.checkbox"]);myApp.config(["$locationProvider",function(n){n.html5Mode(!1)}]);myApp.controller("basketCtrl",["$scope","$http","$rootScope","$window","$location",function(n,t,i,r,u){function e(n){switch(n){case"1":return"Transaction could not be processed";case"2":return"Transaction Declined - Contact Issuing Bank";case"3":return"Transaction Declined- No reply from Bank";case"4":return"Transaction Declined - Expired Card";case"5":return"Transaction Declined - Insufficient credit";case"6":return"Transaction Declined - Bank system error";case"7":return"Payment Server Processing Error - Typically caused by invalid input data such as an invalid credit card number";case"8":return"Transaction Declined - Transaction Type Not Supported";case"9":return"Bank Declined - Transaction (Do not contact Bank)";case"A":return"Transaction Aborted";case"B":return"Transaction Blocked";case"C":return"Transaction Cancelled";case"D":return"Deferred Transaction";case"E":return"Transaction Declined - Refer to card issuer";case"F":return"3D Secure Authentication Failed";case"I":return"Card Security Code Failed";case"L":return"Shopping Transaction Locked (This indicates that there is another transaction taking place using the same shopping transaction number)";case"N":return"Cardholder is not enrolled in 3D Secure (Authentication Only)";case"P":return"Transaction is Pending";case"R":return"Retry Limits Exceeded, Transaction Not Processed";case"T":return"Address Verification Failed";case"U":return"Card Security Code Failed";case"V":return"Address Verification and Card Security Code Failed";default:return"Unknown error code - Error code:"+n}}n.vm={numberOfItems:0,basketItems:[],amazonStoreUrl:"",totalPrice:0,loading:!1,hideTotal:!1,paymentResult:null};n.getBasketDetails=function(){var i=u.search(),r;if(i!==null&&i.status){n.vm.paymentResult=i;n.vm.paymentResult.statusDescription=e(i.status);return}r="/umbraco/api/BasketApi/GetBasketDetails";n.vm.loading=!0;t.get(r).success(function(n){f(n)}).error(function(t){console.log(t);n.vm.loading=!1})};n.updateNumberOfItems=function(){n.vm.loading=!0;t.get("/umbraco/api/BasketApi/GetNumberOfItemsInBasket").success(function(t){i.numberOfItems=t;n.vm.loading=!1}).error(function(t){console.log(t);n.vm.loading=!1})};n.removeItem=function(i){n.vm.loading=!0;t.post("/umbraco/api/BasketApi/RemoveItem",i).success(function(n){f(n)}).error(function(t){console.log(t);n.vm.loading=!1})};n.updateBasket=function(i){n.vm.loading=!0;t.post("/umbraco/api/BasketApi/UpdateBasket",i).success(function(n){f(n)}).error(function(t){console.log(t);n.vm.loading=!1})};n.checkout=function(i){n.vm.loading=!0;t.post("/umbraco/api/BasketApi/Checkout",i).success(function(n){n&&(r.location.href=n)}).error(function(t){console.log(t);n.vm.loading=!1})};n.updateQty=function(t,i){n.vm.hideTotal=!0;t.Quantity=parseInt(t.Quantity,10)+i;t.Quantity<=0&&(t.Quantity=1);n.updateBasket(n.vm.basketItems)};var f=function(t){n.vm={basketItems:t.Items,amazonStoreUrl:t.AmazonStoreUrl,totalPrice:t.TotalPrice,hideTotal:!1,loading:!1};i.numberOfItems=t.Items.length}}]);myApp.controller("carouselCtrl",["$scope",function(n){n.myInterval=5e3;n.init=function(t){n.slides=t}}]);myApp.controller("checkoutCtrl",["$scope","$http","$rootScope","$window",function(n,t,i,r){n.vm={basketItems:[],amazonStoreUrl:"",shippable:!0,shipping:{differentAddress:!1,country:"",firstname:"",lastname:"",companyName:"",streetName:"",city:"",postcode:"",state:"",email:"",phone:"",otherNotes:""},searchTerm:"",countries:[],country:"",firstname:"",lastname:"",companyName:"",streetName:"",city:"",postcode:"",state:"",email:"",phone:"",otherNotes:"",loading:!1,shippingOptions:[],shippingCost:0,selectedShippingOption:{},selectedShippingOptionKey:"",shippingError:""};n.getBasketDetails=function(){n.vm.loading=!0;t.get("/umbraco/api/BasketApi/GetBasketDetails").success(function(n){o(n)}).error(function(){n.vm.loading=!1})};n.getShippingOptions=function(){if(n.vm.shippable){var i=u();i.billingAddress.postalCode?(n.vm.loading=!0,t.post("/umbraco/api/CheckoutApi/ShippingOptions",i).success(function(t){n.vm.loading=!1;t!=null&&t.merchDownload&&!t.merchShippable?(n.vm.shippingOptions=[],n.vm.shippable=!1):t!=null&&(n.vm.shippingOptions=t.ShipmentRateQuotes,n.vm.shippable=!0,n.vm.shippingError=t.Error?t.Error:"")}).error(function(){n.vm.loading=!1;n.vm.shippingOptions=[];alert("Something went wrong, Please try again!")})):n.vm.shippingOptions=[]}};n.shippingOptionSelected=function(i){n.vm.shippingCost=i.Rate;n.vm.selectedShippingOptionKey=i.ShipMethod.Key;var r=u();r.billingAddress.postalCode&&t.post("/umbraco/api/CheckoutApi/UpdateShippingOption",r)};n.placeOrder=function(){n.billingAddressForm.$setSubmitted();n.vm.shippable&&(n.shippingAddressForm.$setSubmitted(),n.vm.selectedShippingOptionKey==""?(n.shippingOptionsForm.$invalid=!0,n.shippingOptionsForm.$valid=!1):(n.shippingOptionsForm.$invalid=!1,n.shippingOptionsForm.$valid=!0));n.paymentMethodForm.$setSubmitted();!n.vm.shippable&&n.billingAddressForm.$valid&&n.paymentMethodForm.$valid?f():n.vm.shipping.differentAddress&&n.billingAddressForm.$valid&&n.shippingAddressForm.$valid&&n.paymentMethodForm.$valid&&n.vm.selectedShippingOption?f():n.vm.shipping.differentAddress===!1&&n.billingAddressForm.$valid&&n.paymentMethodForm.$valid&&n.vm.selectedShippingOptionKey!==""&&f()};var e=function(){var t="";return angular.forEach(n.vm.paymentMethods,function(i){i.Text.indexOf(n.vm.paymentMethod)>=0&&(t=i.Value)}),t},u=function(){var t={customerName:n.vm.firstname+" "+n.vm.lastname,billingAddress:{address1:n.vm.streetName,address2:"",countryCode:n.vm.country,email:n.vm.email,isCommercial:n.vm.companyName!=="",locality:n.vm.city,name:n.vm.firstname+" "+n.vm.lastname,organization:n.vm.companyName,phone:n.vm.phone,postalCode:n.vm.postcode,region:n.state,addressType:"Billing"},differentShippingAddress:n.vm.shipping.differentAddress,paymentMethodKey:e(),otherNotes:n.vm.otherNotes,selectedShippingOptionKey:n.vm.selectedShippingOptionKey,shippable:n.vm.shippable};return t.differentShippingAddress&&(t.shippingAddress={address1:n.vm.shipping.streetName,address2:"",countryCode:n.vm.shipping.country,email:n.vm.shipping.email,isCommercial:n.vm.shipping.companyName==="",locality:n.vm.shipping.city,name:n.vm.shipping.firstname+" "+n.vm.shipping.lastname,organization:n.vm.shipping.companyName,phone:n.vm.shipping.phone,postalCode:n.vm.shipping.postcode,region:n.state,addressType:"Shipping"}),t},f=function(){var i;n.vm.loading=!0;i=u();t.post("/umbraco/api/CheckoutApi/PlaceOrder",i).success(function(t){if(t==null){n.vm.loading=!1;alert("something went wrong! Payment was unsuccessful. Please try again. if the issue happend again contact our team using the contact us page.");return}if(t.paypalexpresstransaction){var i=JSON.parse(t.paypalexpresstransaction);if(i.Success&&i.SetExpressCheckout)if(i.SetExpressCheckout.ErrorTypes&&i.SetExpressCheckout.ErrorTypes.length>0)alert(i.SetExpressCheckout.ErrorTypes[0].LongMessage+" Please contact us via email info@fayecahill.com.au we will solve this problem.");else{r.location.href=i.SetExpressCheckout.RedirectUrl;return}}r.location.href=t.RedirectUrl}).error(function(t){t.ExceptionMessage?alert(t.ExceptionMessage):alert("Opps! something went wrong! Please try again. if the issue happend again contact our team using the contact us page.");n.vm.loading=!1})},o=function(t){n.vm.shippable=t.Shippable;n.vm.basketItems=t.Items;n.vm.amazonStoreUrl=t.AmazonStoreUrl;n.vm.totalPrice=t.TotalPrice;n.vm.paymentMethods=t.PaymentMethods;n.vm.countries=t.Countries;n.vm.loading=!1}}]);myApp.controller("commentCtrl",["$scope","$location","$anchorScroll",function(n,t,i){angular.element(document).ready(function(){n.scrolltoid!=""&&(t.hash(n.scrolltoid),i())})}]);myApp.controller("contactusCtrl",["$scope",function(n){n.IsCakeEnquiry=function(){return n.Subject=="Cake enquiry"?!0:!1};n.today=function(){n.dt=null};n.today();n.clear=function(){n.dt=null};n.disabled=function(n,t){return t==="day"&&(n.getDay()===0||n.getDay()===6)};n.toggleMin=function(){n.minDate=n.minDate?null:new Date};n.toggleMin();n.open=function(t){t.preventDefault();t.stopPropagation();n.opened=!0};n.dateOptions={formatYear:"yy",startingDay:1,showWeeks:!1,dateDisabled:[]};n.formats=["dd-MMMM-yyyy","yyyy/MM/dd","dd.MM.yyyy","shortDate"];n.format=n.formats[0]}]);myApp.controller("galleryCtrl",["$scope","$http","Lightbox",function(n,t,i){n.CurrentGallery={};n.Images=[];n.Currentpage=1;n.hasNextPage=!1;n.lastLargeImageIndex=2;n.openLightboxModal=function(t){i.openModal(n.Images,t)};n.SetGallery=function(t){n.Currentpage=1;n.loading=!0;n.Images=[];n.lastLargeImageIndex=2;n.CurrentGallery=t;n.LoadGallery()};n.LoadMore=function(){n.hasNextPage&&(n.Currentpage++,n.LoadGallery())};n.LoadGallery=function(){n.CurrentGallery!=undefined&&t.get("/umbraco/api/galleryApi/GetGalleryImages?page="+n.Currentpage+"&key="+n.CurrentGallery.id).success(function(t){n.hasNextPage=t.HasNextPage;angular.forEach(t.Page,function(t){var i={id:t.Id,title:t.Headline,description:t.Text,preview:t.Preview,galleryImageUrl:t.GalleryImageUrl,shouldBeInLarge:t.ShouldBeInLarge,isOnRight:t.IsOnRight};n.Images.push(i)});n.loading=!1}).error(function(t){console.log(t);n.loading=!1})}}]);myApp.controller("invoiceCtrl",["$scope",function(n){n.vm={numberOfItems:0,basketItems:[],amazonStoreUrl:"",totalPrice:0,loading:!1,hideTotal:!1,invoiceDetails:{}};n.updateModel=function(){console.log(n.vm.invoiceDetails);n.vm.invoiceDetails.Products=[];n.vm.invoiceDetails.Taxes=[];n.vm.invoiceDetails.Shippings=[];angular.forEach(n.vm.invoiceDetails.Items,function(t){switch(t.LineItemType){case 0:n.vm.invoiceDetails.Products.push(t);break;case 1:n.vm.invoiceDetails.Shippings.push(t);break;case 2:n.vm.invoiceDetails.Taxes.push(t)}})};n.printInvoice=function(){var t=document.getElementById("invoice-print").innerHTML,n=window.open("","_blank");n.document.open();n.document.write('<html><head><link rel="stylesheet" type="text/css" href="/css/bootstrap/3.3.1/css/bootstrap.min.css" /><link rel="stylesheet" type="text/css" href="/css/custom.css" /><\/head><body id="invoice" class="container basket" onload="window.print()">'+t+"<\/html>");n.document.close()}}]);myApp.controller("newsCtrl",["$scope","$http",function(n,t){n.Currentpage=1;n.hasNextPage=!1;n.News=[];n.AllCategories=[];n.CurrentCategories=[];n.CurrentTags=[];n.Years=[];n.CurrentYears=[];n.myCat=[];n.myTag=[];n.myYear=[];n.CurrentMyCat=null;n.CurrentMyTag=null;n.CurrentMyYear=null;n.loading=!1;n.Update=function(){n.CurrentMyCat=n.myCat.map(function(n){return n.id}).toString();n.CurrentMyTag=n.myTag.map(function(n){return n.id}).toString();n.CurrentMyYear=n.myYear.map(function(n){return n.id}).toString();n.News=[];n.Currentpage=1;n.LoadNews()};n.LoadMore=function(){n.hasNextPage&&(n.Currentpage++,n.LoadNews())};n.LoadNews=function(){n.CurrentMyCat!=undefined&&n.CurrentMyTag!=undefined&&n.CurrentMyYear!=undefined&&(n.loading=!0,t.get("/umbraco/api/BlogApi/GetBlogs?page="+n.Currentpage+"&tags="+n.CurrentMyTag+"&categories="+n.CurrentMyCat+"&years="+n.CurrentMyYear).success(function(t){n.hasNextPage=t.HasNextPage;n.News=n.News.concat(t.Page);n.loading=!1}).error(function(n){console.log(n)}))}}]);myApp.controller("productDetailsCtrl",["$scope","$http","$window",function(n,t,i){n.currentPageId=0;n.loading=!1;n.currentProduct=null;n.vm={selectedOption:[],qty:1};n.updateQty=function(t){n.vm.qty=n.vm.qty+t;n.vm.qty<=0&&(n.vm.qty=1)};n.addToCart=function(){var r,u,f,e;if(n.addToCartForm.$invalid){for(r=n.addToCartForm,u=0;u<n.currentProduct.Options.length;u++)r["selectedOption_"+u].$invalid&&(r["selectedOption_"+u].$dirty=!0);r.qty.$invalid&&(r.qty.$dirty=!0);return}f="/umbraco/api/BasketApi/AddToBasket";e={CurrentPageId:n.currentPageId,Key:n.currentProduct.Key,SelectedOptions:n.vm.selectedOption,Qty:n.vm.qty,Thumbnail:n.currentProduct.Images!=null?n.currentProduct.Images[0].image:""};t.post(f,e).success(function(n){n!=null&&n.Success===!0&&(i.location.href=n.Url)}).error(function(n){console.log(n)})}}]);myApp.controller("shopCtrl",["$scope","$http",function(n,t){n.Currentpage=1;n.hasNextPage=!1;n.Products=[];n.AllCategories=[];n.CurrentCategories=[];n.CurrentPageId=0;n.myCat={id:0,label:""};n.searchTerm="";n.CurrentMyCat=null;n.loading=!1;n.Update=function(){n.CurrentMyCat=n.myCat&&n.myCat.id?n.myCat.id:"";n.Products=[];n.Currentpage=1;n.LoadProducts()};n.init=function(t,i){n.CurrentPageId=t;n.AllCategories=i;n.Update()};n.Keypress=function(t){t.keyCode===13&&n.Update(!0)};n.LoadMore=function(){n.hasNextPage&&(n.Currentpage++,n.LoadProducts())};n.LoadProducts=function(){n.loading=!0;var i="/umbraco/api/ProductApi/GetProducts?shopPageId="+n.CurrentPageId+"&page="+n.Currentpage+"&categories=";n.CurrentMyCat!==undefined&&(i=i+n.CurrentMyCat);i=i+"&searchTerm="+n.searchTerm;t.get(i).success(function(t){n.hasNextPage=t.HasNextPage;n.Products=n.Products.concat(t.Page);n.loading=!1}).error(function(n){console.log(n)})}}]);myApp.controller("showErrorCtrl",["$scope","$http","$rootScope","$window","$location",function(n,t,i,r,u){n.vm={status:"",message:""};n.init=function(){var t=u.search();t!==null&&t.status&&(n.vm.status=t.status,n.vm.message=t.message)}}]);myApp.controller("workshopCtrl",["$scope","$http",function(n,t){n.Currentpage=1;n.hasNextPage=!1;n.Workshops=[];n.loading=!1;n.Update=function(){n.Workshops=[];n.Currentpage=1;n.LoadWorkShops()};n.LoadMore=function(){n.hasNextPage&&(n.Currentpage++,n.LoadWorkShops())};n.LoadWorkShops=function(){n.loading=!0;t.get("/umbraco/api/LearningApi/GetWorkshops?page="+n.Currentpage).success(function(t){n.hasNextPage=t.HasNextPage;n.Workshops=n.Workshops.concat(t.Page);n.loading=!1}).error(function(n){console.log(n)})}}]);myApp.controller("workshopDetailsCtrl",["$scope","$http","$window",function(n,t,i){n.loading=!1;n.vm={currentPageId:0,productKey:""};n.addToCart=function(){var r={CurrentPageId:n.vm.currentPageId,Key:n.vm.productKey,Qty:1,Thumbnail:""};t.post("/umbraco/api/BasketApi/AddToBasket",r).success(function(n){n!=null&&n.Success===!0&&(i.location.href=n.Url)}).error(function(n){console.log(n)})}}]);myApp.directive("dotdotdot",function(){return function(n,t){$(t).dotdotdot({watch:!0})}})