<!DOCTYPE html>
<html ng-app='tsAdminApp'>
<head>
<link data-require="bootstrap-css@*" data-semver="3.0.0" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
<script data-require="jquery@*" data-semver="2.0.3" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="../angular.min.html" type="text/javascript"></script>
<script src="../angular.resource.min.html" type="text/javascript"></script>
<script data-require="ui-bootstrap@*" data-semver="0.6.0" src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.6.0.js"></script>
<script src="../app.html" type="text/javascript"></script>
<script src="../userController.html" type="text/javascript"></script>
<script src="../userService.html" type="text/javascript"></script>
<script src="../directive.html" type="text/javascript"></script>
<link rel="stylesheet" href="style.css" />
<script src="script.js"></script>
</head>
<body>
<div id="content" ng-controller='userListController'>
<div>selected user: <span ng-repeat="selections in selection">{{selections.UserName}}, </span> </div>
<div>selected index:{{index}}</div>
<select-list onsort="onSort" data-set="users" data-columns="columns" sort-by="UserName" reverse="false" selected-item="selection" details="showdetails" selected-index="index"></select-list>
</div>
</body>
</html>
select-list td, th{
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
/*
Introduced in IE 10.
See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
*/
-ms-user-select: none;
user-select: none;
}
/*div[select-list] tr.ts-li-over*/
select-list tr:hover{
background-color:yellow;
cursor:pointer;
}
select-list .showonhover{
color:white;
}
select-list tr:hover .showonhover{
color:black;
}
select-list tr.ts-li-selected .showonhover{
color:#A4DAED;
}
select-list tr.ts-li-selected:hover .showonhover{
color:black;
}
select-list tr.ts-li-selected{
background-color:#A4DAED;
}
select-list th {
background-color:silver;
}
select-list th.hideIcon{
color:silver;
}
select-list tr td.ts-li-alternate{
background-color:#E2E2E2;
}
select-list{
outline:none;
}
function userListController($scope, User){
$scope.columns = [
{
title:'User Name',
value:'UserName'
},
{
title:'First Name',
value:'FirstName'
},
{
title:'Last Name',
value:'LastName',
},
{
title:'Email Address',
value:'Email'
}];
$scope.filterCriteria = {
sortDir:'asc',
sortedBy:'UserName'
};
$scope.fetchResult = function(){
$scope.users = User.search({sortBy:$scope.filterCriteria.sortedBy,sortDir:$scope.filterCriteria.sortDir})
};
$scope.onSort = function(sortedBy, sortDir) {
console.log("I was called!");
};
$scope.fetchResult();
$scope.showdetails=function(user){
console.log(user);
};
}
function userDetailController($scope, User, $routeParams){
$scope.user=User.get({id:$routeParams.userName});
}
tsAdminApp.controller('userDetailController', ['$scope', 'User', '$routeParams', userDetailController]);
tsAdminApp.controller('userListController', ['$scope', 'User', userListController]);
angular.module('userServices', ['ngResource']).
factory('User', function($resource){
return $resource('users.json',{}, {
query: {method:'GET', params:{},isArray:true},
search: {method:'GET', params:{},isArray:true}
});
});
var tsUui=angular.module('ts-ui',[]);
tsUui.directive('selectList', function(){
return{
restrict: 'AE',
transclude:true,
templateUrl:'directivelist.html',
scope:{
selectedItem: '=',
set: '=',
selectedIndex: '=',
columns: '=',
onsort:'=',
sortBy: '@',
reverse: '@',
details: '='
},
controller: ['$scope','$element', function($scope,$element){
$scope.selectedItem=[];
$scope.selectedIndex=-1;
$element.attr('tabindex',-1);
}],
link: function (scope, elem, attrs){
scope.selectItem = function(item,event,index){ //handles mouse click
if (event.shiftKey){
if (scope.selectedIndex>-1){
scope.selectedItem=[];
if (scope.selectedIndex<index){
for(i=index;i>=scope.selectedIndex;i--){
scope.selectedItem.push(scope.set[i]);
}
} else {
for(i=index;i<=scope.selectedIndex;i++){
scope.selectedItem.push(scope.set[i]);
}
}
}
} else if (event.ctrlKey){ //handles mouse click + ctrl (selects additional or deselects)
if ($.inArray(item,scope.selectedItem)>-1){
scope.selectedItem.splice($.inArray(item,scope.selectedItem),1);
} else {
scope.selectedItem.push(item);
}
} else if (($.inArray(item,scope.selectedItem)>-1)&&(scope.selectedItem.length<2)){
scope.selectedItem=[];
scope.selectedIndex=-1;
} else {
scope.selectedItem=[];
scope.selectedItem.push(item);
scope.selectedIndex=index;
}
elem.focus();
};
elem.keydown(function(e){ //handles keyPressed functions
e=e||window.event;
if ((e.keyCode == '65')&&(e.ctrlKey)){ //handles a "select all" ctrl+a
scope.selectedItem=[];
for(var i=0; i<scope.set.length;i++){
scope.selectedItem.push(scope.set[i]);
}
scope.$apply();
return false;
}
if ((e.keyCode == '38')&&(scope.selectedIndex>0)){ //handles "up"
scope.selectedIndex=scope.selectedIndex-1;
if (!e.shiftKey){
scope.selectedItem=[];
}
if ($.inArray(scope.set[scope.selectedIndex], scope.selectedItem)>=0){
scope.selectedItem.pop();
} else { //handles up + shift
scope.selectedItem.push(scope.set[scope.selectedIndex]);
}
}
if ((e.keyCode == '40')&&((scope.selectedIndex!=-1)&&(scope.selectedIndex<scope.set.length-1))){ //handles "down"
scope.selectedIndex=scope.selectedIndex+1;
if (!e.shiftKey){
scope.selectedItem=[];
}
if ($.inArray(scope.set[scope.selectedIndex], scope.selectedItem)>=0){
scope.selectedItem.pop();
} else { //handles "down + shift"
scope.selectedItem.push(scope.set[scope.selectedIndex]);
}
}
scope.$apply();
});
scope.getClass = function(item){
if ($.inArray(item,scope.selectedItem)>-1){
return 'ts-li-selected';
} else {
return '';
}
};
scope.details = function(item){
};
scope.showhide= function(value){
return (value==scope.sortBy)?"black":"silver"; //ng-show="sortBy==column.value"
}
function sortlist(list, key, order){ //resorts list by given criteria
list.sort(function(a, b){
if (order=='false'){
if (a[key].toLowerCase()<b[key].toLowerCase()) return -1;
if (a[key].toLowerCase()>b[key].toLowerCase()) return 1;
}
if (order=='true'){
if (a[key].toLowerCase()<b[key].toLowerCase()) return 1;
if (a[key].toLowerCase()>b[key].toLowerCase()) return -1;
}
return 0;
});
return list;
}
scope.sort = function(sortby){
scope.reverse=String(scope.reverse).toLowerCase()=='true';
if (sortby==scope.sortBy){
scope.reverse = String(!scope.reverse);
} else {
scope.sortBy=sortby;
scope.reverse='false';
}
scope.set = sortlist(scope.set, scope.sortBy, scope.reverse);
for(i=0;i<scope.set.length;i++){
if (scope.set[i]==scope.selectedItem[0]){
scope.selectedIndex=i;
break;
}
}
scope.onsort(scope.sortBy, scope.reverse);
//scope.$apply();
};
scope.detailsHandler=function(item){
console.log(item);
scope.details(item);
};
}
};
});
tsUui.directive('showonhoverparent',
function() {
return {
link : function(scope, element, attrs) {
element.parent().bind('mouseover', function(e) {
e.stopPropagation();
element.show();
});
element.parent().bind('mouseout', function(e) {
element.hide();
});
}
};
});
<div class="row">
<div class="col-md-3">
<div class="input-group input-group-sm">
<input type="text" class="form-control" placeholder="Filter List" ng-model="query">
<span class="input-group-addon">
<span class="glyphicon glyphicon-search"><span/>
</span>
</div>
</div>
</div>
<br>
<table class="table table-condensed">
<tr>
<th ng-repeat="column in columns" ng-click="sort(column.value)">
{{column.title}} <span ng-style="{color:showhide(column.value)}" ng-class="{true:'fa fa-sort-asc', false:'fa fa-sort-desc'}[reverse=='false']"> </span>
</th>
<th width="15px"> </th>
</tr>
<tr ng-repeat="item in set | filter:query | orderBy:sortBy:reverse" ng-class="getClass(item)" ng-click="selectItem(item,$event,$index)" ng-dblclick="detailsHandler(item)">
<td ng-repeat="column in columns">{{item[column.value]}}</td>
<td><span ng-click="detailsHandler(item)"><i class="fa fa-list-alt fa-fw showonhover"></i></span></td>
</tr>
</table>
[{"Id":12,"FirstName":"Joe","LastName":"Simmons","UserName":"joe123","Password":null,"Email":"joejosimmons@gmail.com"},{"Id":11,"FirstName":"Sam","LastName":"Stinky","UserName":"SamStink","Password":null,"Email":"sam@snowburnt.com"},{"Id":10,"FirstName":"Steve","LastName":"Paramoure","UserName":"snowburnt","Password":null,"Email":"Snowrnt@gmail.com"},{"Id":14,"FirstName":"Ken","LastName":"Stoer","UserName":"sssera","Password":null,"Email":"teoselr@gmail.com"},{"Id":13,"FirstName":"Frank","LastName":"Stevens","UserName":"stampy","Email":"tankfrank@gmail.com"}]
var tsAdminApp = angular.module("tsAdminApp",['userServices','ts-ui']);
/*
AngularJS v1.2.0rc1
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/
(function(H,g,C){'use strict';var A=g.$$minErr("$resource");g.module("ngResource",["ng"]).factory("$resource",["$http","$parse","$q",function(D,y,E){function n(g,h){this.template=g;this.defaults=h||{};this.urlParams={}}function u(l,h,d){function p(c,b){var e={};b=v({},h,b);q(b,function(a,b){t(a)&&(a=a());var m;a&&a.charAt&&"@"==a.charAt(0)?(m=a.substr(1),m=y(m)(c)):m=a;e[b]=m});return e}function b(c){return c.resource}function e(c){z(c||{},this)}var F=new n(l);d=v({},G,d);q(d,function(c,f){var h=
/^(POST|PUT|PATCH)$/i.test(c.method);e[f]=function(a,f,m,l){var d={},r,s,w;switch(arguments.length){case 4:w=l,s=m;case 3:case 2:if(t(f)){if(t(a)){s=a;w=f;break}s=f;w=m}else{d=a;r=f;s=m;break}case 1:t(a)?s=a:h?r=a:d=a;break;case 0:break;default:throw A("badargs",arguments.length);}var n=r instanceof e,k=n?r:c.isArray?[]:new e(r),x={},u=c.interceptor&&c.interceptor.response||b,y=c.interceptor&&c.interceptor.responseError||C;q(c,function(a,c){"params"!=c&&("isArray"!=c&&"interceptor"!=c)&&(x[c]=z(a))});
x.data=r;F.setUrlParams(x,v({},p(r,c.params||{}),d),c.url);d=D(x).then(function(a){var b=a.data,f=k.$promise;if(b){if(g.isArray(b)!=!!c.isArray)throw A("badcfg",c.isArray?"array":"object",g.isArray(b)?"array":"object");c.isArray?(k.length=0,q(b,function(a){k.push(new e(a))})):(z(b,k),k.$promise=f)}k.$resolved=!0;(s||B)(k,a.headers);a.resource=k;return a},function(a){k.$resolved=!0;(w||B)(a);return E.reject(a)}).then(u,y);return n?d:(k.$promise=d,k.$resolved=!1,k)};e.prototype["$"+f]=function(a,c,
b){t(a)&&(b=c,c=a,a={});a=e[f](a,this,c,b);return a.$promise||a}});e.bind=function(c){return u(l,v({},h,c),d)};return e}var G={get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}},B=g.noop,q=g.forEach,v=g.extend,z=g.copy,t=g.isFunction;n.prototype={setUrlParams:function(l,h,d){var p=this,b=d||p.template,e,n,c=p.urlParams={};q(b.split(/\W/),function(f){!/^\d+$/.test(f)&&(f&&RegExp("(^|[^\\\\]):"+f+"(\\W|$)").test(b))&&(c[f]=!0)});
b=b.replace(/\\:/g,":");h=h||{};q(p.urlParams,function(c,d){e=h.hasOwnProperty(d)?h[d]:p.defaults[d];g.isDefined(e)&&null!==e?(n=encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"%20").replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+"),b=b.replace(RegExp(":"+d+"(\\W|$)","g"),n+"$1")):b=b.replace(RegExp("(/?):"+d+"(\\W|$)","g"),function(a,c,b){return"/"==b.charAt(0)?b:c+b})});b=b.replace(/\/+$/,"");b=b.replace(/\/\.(?=\w+($|\?))/,
".");l.url=b.replace(/\/\\\./,"/.");q(h,function(c,b){p.urlParams[b]||(l.params=l.params||{},l.params[b]=c)})}};return u}])})(window,window.angular);
/*
//@ sourceMappingURL=angular-resource.min.js.map
*/
/*
AngularJS v1.2.0rc1
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/
(function(T,N,v){'use strict';function M(a){return function(){for(var b=arguments[0],c=1,b="["+(a?a+":":"")+b+"] http://errors.angularjs.org/1.2.0rc1/"+(a?a+"/":"")+b;c<arguments.length;c++)b=b+(1==c?"?":"&")+"p"+(c-1)+"="+encodeURIComponent("function"==typeof arguments[c]?arguments[c].toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof arguments[c]?"undefined":"string"!=typeof arguments[c]?JSON.stringify(arguments[c]):arguments[c]);return Error(b)}}function kb(a){if(null==a||va(a))return!1;
var b=a.length;return 1===a.nodeType&&b?!0:I(a)||!H(a)&&(0===b||"number"===typeof b&&0<b&&b-1 in a)}function q(a,b,c){var d;if(a)if(H(a))for(d in a)"prototype"!=d&&("length"!=d&&"name"!=d&&a.hasOwnProperty(d))&&b.call(c,a[d],d);else if(a.forEach&&a.forEach!==q)a.forEach(b,c);else if(kb(a))for(d=0;d<a.length;d++)b.call(c,a[d],d);else for(d in a)a.hasOwnProperty(d)&&b.call(c,a[d],d);return a}function Fb(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b.sort()}function Bc(a,b,c){for(var d=
Fb(a),e=0;e<d.length;e++)b.call(c,a[d[e]],d[e]);return d}function Gb(a){return function(b,c){a(c,b)}}function Ua(){for(var a=fa.length,b;a;){a--;b=fa[a].charCodeAt(0);if(57==b)return fa[a]="A",fa.join("");if(90==b)fa[a]="0";else return fa[a]=String.fromCharCode(b+1),fa.join("")}fa.unshift("0");return fa.join("")}function Hb(a,b){b?a.$$hashKey=b:delete a.$$hashKey}function F(a){var b=a.$$hashKey;q(arguments,function(b){b!==a&&q(b,function(b,c){a[c]=b})});Hb(a,b);return a}function U(a){return parseInt(a,
10)}function Cc(a,b){return F(new (F(function(){},{prototype:a})),b)}function w(){}function wa(a){return a}function W(a){return function(){return a}}function J(a){return"undefined"==typeof a}function A(a){return"undefined"!=typeof a}function Q(a){return null!=a&&"object"==typeof a}function z(a){return"string"==typeof a}function lb(a){return"number"==typeof a}function Ea(a){return"[object Date]"==Va.apply(a)}function I(a){return"[object Array]"==Va.apply(a)}function H(a){return"function"==typeof a}
function mb(a){return"[object RegExp]"==Va.apply(a)}function va(a){return a&&a.document&&a.location&&a.alert&&a.setInterval}function Dc(a){return a&&(a.nodeName||a.on&&a.find)}function Ec(a,b,c){var d=[];q(a,function(a,g,k){d.push(b.call(c,a,g,k))});return d}function Wa(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0;c<a.length;c++)if(b===a[c])return c;return-1}function Fa(a,b){var c=Wa(a,b);0<=c&&a.splice(c,1);return b}function aa(a,b){if(va(a)||a&&a.$evalAsync&&a.$watch)throw Xa("cpws");if(b){if(a===
b)throw Xa("cpi");if(I(a))for(var c=b.length=0;c<a.length;c++)b.push(aa(a[c]));else{c=b.$$hashKey;q(b,function(a,c){delete b[c]});for(var d in a)b[d]=aa(a[d]);Hb(b,c)}}else(b=a)&&(I(a)?b=aa(a,[]):Ea(a)?b=new Date(a.getTime()):mb(a)?b=RegExp(a.source):Q(a)&&(b=aa(a,{})));return b}function Fc(a,b){b=b||{};for(var c in a)a.hasOwnProperty(c)&&"$$"!==c.substr(0,2)&&(b[c]=a[c]);return b}function xa(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var c=typeof a,d;if(c==typeof b&&
"object"==c)if(I(a)){if(!I(b))return!1;if((c=a.length)==b.length){for(d=0;d<c;d++)if(!xa(a[d],b[d]))return!1;return!0}}else{if(Ea(a))return Ea(b)&&a.getTime()==b.getTime();if(mb(a)&&mb(b))return a.toString()==b.toString();if(a&&a.$evalAsync&&a.$watch||b&&b.$evalAsync&&b.$watch||va(a)||va(b)||I(b))return!1;c={};for(d in a)if("$"!==d.charAt(0)&&!H(a[d])){if(!xa(a[d],b[d]))return!1;c[d]=!0}for(d in b)if(!c.hasOwnProperty(d)&&"$"!==d.charAt(0)&&b[d]!==v&&!H(b[d]))return!1;return!0}return!1}function nb(a,
b){var c=2<arguments.length?sa.call(arguments,2):[];return!H(b)||b instanceof RegExp?b:c.length?function(){return arguments.length?b.apply(a,c.concat(sa.call(arguments,0))):b.apply(a,c)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function Gc(a,b){var c=b;/^\$+/.test(a)?c=v:va(b)?c="$WINDOW":b&&N===b?c="$DOCUMENT":b&&(b.$evalAsync&&b.$watch)&&(c="$SCOPE");return c}function ma(a,b){return"undefined"===typeof a?v:JSON.stringify(a,Gc,b?" ":null)}function Ib(a){return z(a)?JSON.parse(a):
a}function Ga(a){a&&0!==a.length?(a=G(""+a),a=!("f"==a||"0"==a||"false"==a||"no"==a||"n"==a||"[]"==a)):a=!1;return a}function ga(a){a=C(a).clone();try{a.html("")}catch(b){}var c=C("<div>").append(a).html();try{return 3===a[0].nodeType?G(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(b,a){return"<"+G(a)})}catch(d){return G(c)}}function Jb(a){try{return decodeURIComponent(a)}catch(b){}}function Kb(a){var b={},c,d;q((a||"").split("&"),function(a){a&&(c=a.split("="),d=Jb(c[0]),A(d)&&(a=A(c[1])?
Jb(c[1]):!0,b[d]?I(b[d])?b[d].push(a):b[d]=[b[d],a]:b[d]=a))});return b}function Lb(a){var b=[];q(a,function(a,d){I(a)?q(a,function(a){b.push(ta(d,!0)+(!0===a?"":"="+ta(a,!0)))}):b.push(ta(d,!0)+(!0===a?"":"="+ta(a,!0)))});return b.length?b.join("&"):""}function ob(a){return ta(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ta(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,b?"%20":"+")}
function Hc(a,b){function c(a){a&&d.push(a)}var d=[a],e,g,k=["ng:app","ng-app","x-ng-app","data-ng-app"],f=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;q(k,function(b){k[b]=!0;c(N.getElementById(b));b=b.replace(":","\\:");a.querySelectorAll&&(q(a.querySelectorAll("."+b),c),q(a.querySelectorAll("."+b+"\\:"),c),q(a.querySelectorAll("["+b+"]"),c))});q(d,function(b){if(!e){var a=f.exec(" "+b.className+" ");a?(e=b,g=(a[2]||"").replace(/\s+/g,",")):q(b.attributes,function(a){!e&&k[a.name]&&(e=b,g=a.value)})}});
e&&b(e,g?[g]:[])}function Mb(a,b){var c=function(){a=C(a);if(a.injector()){var c=a[0]===N?"document":ga(a);throw Xa("btstrpd",c);}b=b||[];b.unshift(["$provide",function(b){b.value("$rootElement",a)}]);b.unshift("ng");c=Nb(b);c.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(b,a,c,d,e){b.$apply(function(){a.data("$injector",d);c(a)(b)});e.enabled(!0)}]);return c},d=/^NG_DEFER_BOOTSTRAP!/;if(T&&!d.test(T.name))return c();T.name=T.name.replace(d,"");Ha.resumeBootstrap=
function(a){q(a,function(a){b.push(a)});c()}}function pb(a,b){b=b||"_";return a.replace(Ic,function(a,d){return(d?b:"")+a.toLowerCase()})}function qb(a,b,c){if(!a)throw Xa("areq",b||"?",c||"required");return a}function Ia(a,b,c){c&&I(a)&&(a=a[a.length-1]);qb(H(a),b,"not a function, got "+(a&&"object"==typeof a?a.constructor.name||"Object":typeof a));return a}function rb(a,b,c){if(!b)return a;b=b.split(".");for(var d,e=a,g=b.length,k=0;k<g;k++)d=b[k],a&&(a=(e=a)[d]);return!c&&H(a)?nb(e,a):a}function Jc(a){function b(a,
b,e){return a[b]||(a[b]=e())}return b(b(a,"angular",Object),"module",function(){var a={};return function(d,e,g){e&&a.hasOwnProperty(d)&&(a[d]=null);return b(a,d,function(){function a(c,d,e){return function(){b[e||"push"]([c,d,arguments]);return m}}if(!e)throw M("$injector")("nomod",d);var b=[],c=[],h=a("$injector","invoke"),m={_invokeQueue:b,_runBlocks:c,requires:e,name:d,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),value:a("$provide","value"),
constant:a("$provide","constant","unshift"),animation:a("$animateProvider","register"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:h,run:function(a){c.push(a);return this}};g&&h(g);return m})}})}function Ja(a){return a.replace(Kc,function(a,c,d,e){return e?d.toUpperCase():d}).replace(Lc,"Moz$1")}function sb(a,b,c,d){function e(a){var e=c&&a?[this.filter(a)]:[this],l=b,h,m,p,n,s,r;if(!d||null!=a)for(;e.length;)for(h=
e.shift(),m=0,p=h.length;m<p;m++)for(n=C(h[m]),l?n.triggerHandler("$destroy"):l=!l,s=0,n=(r=n.children()).length;s<n;s++)e.push(ya(r[s]));return g.apply(this,arguments)}var g=ya.fn[a],g=g.$original||g;e.$original=g;ya.fn[a]=e}function O(a){if(a instanceof O)return a;if(!(this instanceof O)){if(z(a)&&"<"!=a.charAt(0))throw tb("nosel");return new O(a)}if(z(a)){var b=N.createElement("div");b.innerHTML="<div> </div>"+a;b.removeChild(b.firstChild);ub(this,b.childNodes);C(N.createDocumentFragment()).append(this)}else ub(this,
a)}function vb(a){return a.cloneNode(!0)}function Ka(a){Ob(a);var b=0;for(a=a.childNodes||[];b<a.length;b++)Ka(a[b])}function Pb(a,b,c,d){if(A(d))throw tb("offargs");var e=ha(a,"events");ha(a,"handle")&&(J(b)?q(e,function(b,c){wb(a,c,b);delete e[c]}):q(b.split(" "),function(b){J(c)?(wb(a,b,e[b]),delete e[b]):Fa(e[b]||[],c)}))}function Ob(a,b){var c=a[Ya],d=La[c];d&&(b?delete La[c].data[b]:(d.handle&&(d.events.$destroy&&d.handle({},"$destroy"),Pb(a)),delete La[c],a[Ya]=v))}function ha(a,b,c){var d=
a[Ya],d=La[d||-1];if(A(c))d||(a[Ya]=d=++Mc,d=La[d]={}),d[b]=c;else return d&&d[b]}function Qb(a,b,c){var d=ha(a,"data"),e=A(c),g=!e&&A(b),k=g&&!Q(b);d||k||ha(a,"data",d={});if(e)d[b]=c;else if(g){if(k)return d&&d[b];F(d,b)}else return d}function Za(a,b){return-1<(" "+a.className+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" ")}function Rb(a,b){b&&q(b.split(" "),function(b){a.className=Z((" "+a.className+" ").replace(/[\n\t]/g," ").replace(" "+Z(b)+" "," "))})}function Sb(a,b){b&&q(b.split(" "),function(b){Za(a,
b)||(a.className=Z(a.className+" "+Z(b)))})}function ub(a,b){if(b){b=b.nodeName||!A(b.length)||va(b)?[b]:b;for(var c=0;c<b.length;c++)a.push(b[c])}}function Tb(a,b){return $a(a,"$"+(b||"ngController")+"Controller")}function $a(a,b,c){a=C(a);for(9==a[0].nodeType&&(a=a.find("html"));a.length;){if((c=a.data(b))!==v)return c;a=a.parent()}}function Ub(a,b){var c=ab[b.toLowerCase()];return c&&Vb[a.nodeName]&&c}function Nc(a,b){var c=function(c,e){c.preventDefault||(c.preventDefault=function(){c.returnValue=
!1});c.stopPropagation||(c.stopPropagation=function(){c.cancelBubble=!0});c.target||(c.target=c.srcElement||N);if(J(c.defaultPrevented)){var g=c.preventDefault;c.preventDefault=function(){c.defaultPrevented=!0;g.call(c)};c.defaultPrevented=!1}c.isDefaultPrevented=function(){return c.defaultPrevented||!1==c.returnValue};q(b[e||c.type],function(b){b.call(a,c)});8>=R?(c.preventDefault=null,c.stopPropagation=null,c.isDefaultPrevented=null):(delete c.preventDefault,delete c.stopPropagation,delete c.isDefaultPrevented)};
c.elem=a;return c}function za(a){var b=typeof a,c;"object"==b&&null!==a?"function"==typeof(c=a.$$hashKey)?c=a.$$hashKey():c===v&&(c=a.$$hashKey=Ua()):c=a;return b+":"+c}function Ma(a){q(a,this.put,this)}function Wb(a){var b,c;"function"==typeof a?(b=a.$inject)||(b=[],c=a.toString().replace(Oc,""),c=c.match(Pc),q(c[1].split(Qc),function(a){a.replace(Rc,function(a,c,d){b.push(d)})}),a.$inject=b):I(a)?(c=a.length-1,Ia(a[c],"fn"),b=a.slice(0,c)):Ia(a,"fn",!0);return b}function Nb(a){function b(a){return function(b,
c){if(Q(b))q(b,Gb(a));else return a(b,c)}}function c(a,b){if(H(b)||I(b))b=p.instantiate(b);if(!b.$get)throw Na("pget",a);return m[a+f]=b}function d(a,b){return c(a,{$get:b})}function e(a){var b=[];q(a,function(a){if(!h.get(a)){h.put(a,!0);try{if(z(a)){var c=Oa(a);b=b.concat(e(c.requires)).concat(c._runBlocks);for(var d=c._invokeQueue,c=0,f=d.length;c<f;c++){var l=d[c],m=p.get(l[0]);m[l[1]].apply(m,l[2])}}else H(a)?b.push(p.invoke(a)):I(a)?b.push(p.invoke(a)):Ia(a,"module")}catch(g){throw I(a)&&(a=
a[a.length-1]),g.message&&(g.stack&&-1==g.stack.indexOf(g.message))&&(g=g.message+"\n"+g.stack),Na("modulerr",a,g.stack||g.message||g);}}});return b}function g(a,b){function c(d){if(a.hasOwnProperty(d)){if(a[d]===k)throw Na("cdep",l.join(" <- "));return a[d]}try{return l.unshift(d),a[d]=k,a[d]=b(d)}finally{l.shift()}}function d(a,b,e){var f=[],l=Wb(a),g,m,h;m=0;for(g=l.length;m<g;m++){h=l[m];if("string"!==typeof h)throw Na("itkn",h);f.push(e&&e.hasOwnProperty(h)?e[h]:c(h))}a.$inject||(a=a[g]);switch(b?
-1:f.length){case 0:return a();case 1:return a(f[0]);case 2:return a(f[0],f[1]);case 3:return a(f[0],f[1],f[2]);case 4:return a(f[0],f[1],f[2],f[3]);case 5:return a(f[0],f[1],f[2],f[3],f[4]);case 6:return a(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6]);case 8:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7]);case 9:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8]);case 10:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9]);default:return a.apply(b,
f)}}return{invoke:d,instantiate:function(a,b){var c=function(){},e;c.prototype=(I(a)?a[a.length-1]:a).prototype;c=new c;e=d(a,c,b);return Q(e)?e:c},get:c,annotate:Wb,has:function(b){return m.hasOwnProperty(b+f)||a.hasOwnProperty(b)}}}var k={},f="Provider",l=[],h=new Ma,m={$provide:{provider:b(c),factory:b(d),service:b(function(a,b){return d(a,["$injector",function(a){return a.instantiate(b)}])}),value:b(function(a,b){return d(a,W(b))}),constant:b(function(a,b){m[a]=b;n[a]=b}),decorator:function(a,
b){var c=p.get(a+f),d=c.$get;c.$get=function(){var a=s.invoke(d,c);return s.invoke(b,null,{$delegate:a})}}}},p=m.$injector=g(m,function(){throw Na("unpr",l.join(" <- "));}),n={},s=n.$injector=g(n,function(a){a=p.get(a+f);return s.invoke(a.$get,a)});q(e(a),function(a){s.invoke(a||w)});return s}function Sc(){var a=!0;this.disableAutoScrolling=function(){a=!1};this.$get=["$window","$location","$rootScope",function(b,c,d){function e(a){var b=null;q(a,function(a){b||"a"!==G(a.nodeName)||(b=a)});return b}
function g(){var a=c.hash(),d;a?(d=k.getElementById(a))?d.scrollIntoView():(d=e(k.getElementsByName(a)))?d.scrollIntoView():"top"===a&&b.scrollTo(0,0):b.scrollTo(0,0)}var k=b.document;a&&d.$watch(function(){return c.hash()},function(){d.$evalAsync(g)});return g}]}function Tc(a,b,c,d){function e(a){try{a.apply(null,sa.call(arguments,1))}finally{if(r--,0===r)for(;y.length;)try{y.pop()()}catch(b){c.error(b)}}}function g(a,b){(function ua(){q(u,function(a){a()});da=b(ua,a)})()}function k(){x!=f.url()&&
(x=f.url(),q(P,function(a){a(f.url())}))}var f=this,l=b[0],h=a.location,m=a.history,p=a.setTimeout,n=a.clearTimeout,s={};f.isMock=!1;var r=0,y=[];f.$$completeOutstandingRequest=e;f.$$incOutstandingRequestCount=function(){r++};f.notifyWhenNoOutstandingRequests=function(a){q(u,function(a){a()});0===r?a():y.push(a)};var u=[],da;f.addPollFn=function(a){J(da)&&g(100,p);u.push(a);return a};var x=h.href,B=b.find("base"),t=null;f.url=function(a,b){if(a){if(x!=a)return x=a,d.history?b?m.replaceState(null,
"",a):(m.pushState(null,"",a),B.attr("href",B.attr("href"))):b?(h.replace(a),t=a):(h.href=a,t=null),f}else return t||h.href.replace(/%27/g,"'")};var P=[],na=!1;f.onUrlChange=function(b){if(!na){if(d.history)C(a).on("popstate",k);if(d.hashchange)C(a).on("hashchange",k);else f.addPollFn(k);na=!0}P.push(b);return b};f.baseHref=function(){var a=B.attr("href");return a?a.replace(/^https?\:\/\/[^\/]*/,""):""};var V={},ia="",X=f.baseHref();f.cookies=function(a,b){var d,e,f,g;if(a)b===v?l.cookie=escape(a)+
"=;path="+X+";expires=Thu, 01 Jan 1970 00:00:00 GMT":z(b)&&(d=(l.cookie=escape(a)+"="+escape(b)+";path="+X).length+1,4096<d&&c.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+d+" > 4096 bytes)!"));else{if(l.cookie!==ia)for(ia=l.cookie,d=ia.split("; "),V={},f=0;f<d.length;f++)e=d[f],g=e.indexOf("="),0<g&&(a=unescape(e.substring(0,g)),V[a]===v&&(V[a]=unescape(e.substring(g+1))));return V}};f.defer=function(a,b){var c;r++;c=p(function(){delete s[c];e(a)},b||0);s[c]=!0;
return c};f.defer.cancel=function(a){return s[a]?(delete s[a],n(a),e(w),!0):!1}}function Vc(){this.$get=["$window","$log","$sniffer","$document",function(a,b,c,d){return new Tc(a,d,b,c)}]}function Wc(){this.$get=function(){function a(a,d){function e(a){a!=p&&(n?n==a&&(n=a.n):n=a,g(a.n,a.p),g(a,p),p=a,p.n=null)}function g(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw M("$cacheFactory")("iid",a);var k=0,f=F({},d,{id:a}),l={},h=d&&d.capacity||Number.MAX_VALUE,m={},p=null,n=null;return b[a]={put:function(a,
b){var c=m[a]||(m[a]={key:a});e(c);if(!J(b))return a in l||k++,l[a]=b,k>h&&this.remove(n.key),b},get:function(a){var b=m[a];if(b)return e(b),l[a]},remove:function(a){var b=m[a];b&&(b==p&&(p=b.p),b==n&&(n=b.n),g(b.n,b.p),delete m[a],delete l[a],k--)},removeAll:function(){l={};k=0;m={};p=n=null},destroy:function(){m=f=l=null;delete b[a]},info:function(){return F({},f,{size:k})}}}var b={};a.info=function(){var a={};q(b,function(b,e){a[e]=b.info()});return a};a.get=function(a){return b[a]};return a}}
function Xc(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function Xb(a){var b={},c="Directive",d=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,e=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,g=/^\s*(https?|ftp|mailto|file):/,k=/^\s*(https?|ftp|file):|data:image\//,f=/^(on[a-z]*|formaction)$/;this.directive=function h(d,e){z(d)?(qb(e,"directiveFactory"),b.hasOwnProperty(d)||(b[d]=[],a.factory(d+c,["$injector","$exceptionHandler",function(a,c){var e=[];q(b[d],function(b){try{var f=a.invoke(b);H(f)?
f={compile:W(f)}:!f.compile&&f.link&&(f.compile=W(f.link));f.priority=f.priority||0;f.name=f.name||d;f.require=f.require||f.controller&&f.name;f.restrict=f.restrict||"A";e.push(f)}catch(g){c(g)}});return e}])),b[d].push(e)):q(d,Gb(h));return this};this.aHrefSanitizationWhitelist=function(a){return A(a)?(g=a,this):g};this.imgSrcSanitizationWhitelist=function(a){return A(a)?(k=a,this):k};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope",
"$document","$sce","$$urlUtils","$animate",function(a,m,p,n,s,r,y,u,da,x,B,t){function P(a,b,c,d){a instanceof C||(a=C(a));q(a,function(b,c){3==b.nodeType&&b.nodeValue.match(/\S+/)&&(a[c]=C(b).wrap("<span></span>").parent()[0])});var e=V(a,b,a,c,d);return function(b,c){qb(b,"scope");for(var d=c?Pa.clone.call(a):a,f=0,g=d.length;f<g;f++){var m=d[f];1!=m.nodeType&&9!=m.nodeType||d.eq(f).data("$scope",b)}na(d,"ng-scope");c&&c(d,b);e&&e(b,d,d);return d}}function na(a,b){try{a.addClass(b)}catch(c){}}function V(a,
b,c,d,e){function f(a,c,d,e){var m,h,k,p,n,s,r,E=[];n=0;for(s=c.length;n<s;n++)E.push(c[n]);r=n=0;for(s=g.length;n<s;r++)h=E[r],c=g[n++],m=g[n++],c?(c.scope?(k=a.$new(Q(c.scope)),C(h).data("$scope",k)):k=a,(p=c.transclude)||!e&&b?c(m,k,h,d,function(b){return function(c){var d=a.$new();d.$$transcluded=!0;return b(d,c).on("$destroy",nb(d,d.$destroy))}}(p||b)):c(m,k,h,v,e)):m&&m(a,h.childNodes,v,e)}for(var g=[],m,h,k,p=0;p<a.length;p++)h=new xb,m=ia(a[p],[],h,0==p?d:v,e),h=(m=m.length?ja(m,a[p],h,b,
c):null)&&m.terminal||!a[p].childNodes||!a[p].childNodes.length?null:V(a[p].childNodes,m?m.transclude:b),g.push(m),g.push(h),k=k||m||h;return k?f:null}function ia(a,b,c,f,g){var m=c.$attr,h;switch(a.nodeType){case 1:D(b,ka(Aa(a).toLowerCase()),"E",f,g);var k,p,n;h=a.attributes;for(var s=0,r=h&&h.length;s<r;s++){var E,y,V;k=h[s];if(!R||8<=R||k.specified)p=k.name,n=ka(p),A.test(n)&&(p=n.substr(6).toLowerCase()),-1!=(V=n.lastIndexOf("Start"))&&V==n.length-5&&(E=p,y=p.substr(0,p.length-5)+"end",p=p.substr(0,
p.length-6)),n=ka(p.toLowerCase()),m[n]=p,c[n]=k=Z(R&&"href"==p?decodeURIComponent(a.getAttribute(p,2)):k.value),Ub(a,n)&&(c[n]=!0),oa(a,b,k,n),D(b,n,"A",f,g,E,y)}a=a.className;if(z(a)&&""!==a)for(;h=e.exec(a);)n=ka(h[2]),D(b,n,"C",f,g)&&(c[n]=Z(h[3])),a=a.substr(h.index+h[0].length);break;case 3:Y(b,a.nodeValue);break;case 8:try{if(h=d.exec(a.nodeValue))n=ka(h[1]),D(b,n,"M",f,g)&&(c[n]=Z(h[2]))}catch(u){}}b.sort(K);return b}function X(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ea("uterdir",
b,c);1==a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return C(d)}function ba(a,b,c){return function(d,e,f,g){e=X(e[0],b,c);return a(d,e,f,g)}}function ja(a,b,c,d,e,f){function g(a,b,c,d){a&&(c&&(a=ba(a,c,d)),a.require=t.require,s.push(a));b&&(c&&(b=ba(b,c,d)),b.require=t.require,V.push(b))}function h(a,b){var c,d="data",e=!1;if(z(a)){for(;"^"==(c=a.charAt(0))||"?"==c;)a=a.substr(1),"^"==c&&(d="inheritedData"),e=e||"?"==c;c=b[d]("$"+
a+"Controller");if(!c&&!e)throw ea("ctreq",a,x);}else I(a)&&(c=[],q(a,function(a){c.push(h(a,b))}));return c}function k(a,d,e,f,g){var n,E,t,u,B;n=b===e?c:Fc(c,new xb(C(e),c.$attr));E=n.$$element;if(D){var P=/^\s*([@=&])(\??)\s*(\w*)\s*$/,Y=d.$parent||d;q(D.scope,function(a,b){var c=a.match(P)||[],e=c[3]||b,f="?"==c[2],c=c[1],g,h,k;d.$$isolateBindings[b]=c+e;switch(c){case "@":n.$observe(e,function(a){d[b]=a});n.$$observers[e].$$scope=Y;n[e]&&(d[b]=m(n[e])(Y));break;case "=":if(f&&!n[e])break;h=r(n[e]);
k=h.assign||function(){g=d[b]=h(Y);throw ea("nonassign",n[e],D.name);};g=d[b]=h(Y);d.$watch(function(){var a=h(Y);a!==d[b]&&(a!==g?g=d[b]=a:k(Y,a=g=d[b]));return a});break;case "&":h=r(n[e]);d[b]=function(a){return h(Y,a)};break;default:throw ea("iscp",D.name,b,a);}})}oa&&q(oa,function(a){var b={$scope:d,$element:E,$attrs:n,$transclude:g},c;B=a.controller;"@"==B&&(B=n[a.name]);c=y(B,b);E.data("$"+a.name+"Controller",c);a.controllerAs&&(b.$scope[a.controllerAs]=c)});f=0;for(t=s.length;f<t;f++)try{u=
s[f],u(d,E,n,u.require&&h(u.require,E))}catch(L){p(L,ga(E))}a&&a(d,e.childNodes,v,g);f=0;for(t=V.length;f<t;f++)try{u=V[f],u(d,E,n,u.require&&h(u.require,E))}catch(Yc){p(Yc,ga(E))}}for(var n=-Number.MAX_VALUE,s=[],V=[],u=null,D=null,Y=null,B=c.$$element=C(b),t,x,L,da,pa=d,oa,ja,K=0,w=a.length;K<w;K++){t=a[K];var Qa=t.$$start,A=t.$$end;Qa&&(B=X(b,Qa,A));L=v;if(n>t.priority)break;if(L=t.scope)E("isolated scope",D,t,B),Q(L)&&(na(B,"ng-isolate-scope"),D=t),na(B,"ng-scope"),u=u||t;x=t.name;if(L=t.controller)oa=
oa||{},E("'"+x+"' controller",oa[x],t,B),oa[x]=t;if(L=t.transclude)E("transclusion",da,t,B),da=t,n=t.priority,"element"==L?(L=X(b,Qa,A),B=c.$$element=C(N.createComment(" "+x+": "+c[x]+" ")),b=B[0],bb(e,C(sa.call(L,0)),b),pa=P(L,d,n,f&&f.name)):(L=C(vb(b)).contents(),B.html(""),pa=P(L,d));if(t.template)if(E("template",Y,t,B),Y=t,L=H(t.template)?t.template(B,c):t.template,L=Yb(L),t.replace){f=t;L=C("<div>"+Z(L)+"</div>").contents();b=L[0];if(1!=L.length||1!==b.nodeType)throw ea("tplrt",x,"");bb(e,B,
b);w={$attr:{}};a=a.concat(ia(b,a.splice(K+1,a.length-(K+1)),w));ua(c,w);w=a.length}else B.html(L);if(t.templateUrl)E("template",Y,t,B),Y=t,t.replace&&(f=t),k=Uc(a.splice(K,a.length-K),k,B,c,e,pa),w=a.length;else if(t.compile)try{ja=t.compile(B,c,pa),H(ja)?g(null,ja,Qa,A):ja&&g(ja.pre,ja.post,Qa,A)}catch(F){p(F,ga(B))}t.terminal&&(k.terminal=!0,n=Math.max(n,t.priority))}k.scope=u&&u.scope;k.transclude=da&&pa;return k}function D(d,e,f,g,m,k,n){if(e===m)return null;m=null;if(b.hasOwnProperty(e)){var s;
e=a.get(e+c);for(var r=0,E=e.length;r<E;r++)try{s=e[r],(g===v||g>s.priority)&&-1!=s.restrict.indexOf(f)&&(k&&(s=Cc(s,{$$start:k,$$end:n})),d.push(s),m=s)}catch(t){p(t)}}return m}function ua(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;q(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});q(b,function(b,f){"class"==f?(na(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+b):"style"==f?e.attr("style",e.attr("style")+";"+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||
(a[f]=b,d[f]=c[f])})}function Uc(a,b,c,d,e,f){var g=[],m,h,k=c[0],p=a.shift(),r=F({},p,{controller:null,templateUrl:null,transclude:null,scope:null,replace:null}),E=H(p.templateUrl)?p.templateUrl(c,d):p.templateUrl;c.html("");n.get(x.getTrustedResourceUrl(E),{cache:s}).success(function(n){var s;n=Yb(n);if(p.replace){n=C("<div>"+Z(n)+"</div>").contents();s=n[0];if(1!=n.length||1!==s.nodeType)throw ea("tplrt",p.name,E);n={$attr:{}};bb(e,c,s);ia(s,a,n);ua(d,n)}else s=k,c.html(n);a.unshift(r);m=ja(a,
s,d,f,c,p);q(e,function(a,b){a==s&&(e[b]=c[0])});for(h=V(c[0].childNodes,f);g.length;){n=g.shift();var t=g.shift(),u=g.shift(),y=g.shift(),B=c[0];t!==k&&(B=vb(s),bb(u,C(t),B));m(b(h,n,B,e,y),n,B,e,y)}g=null}).error(function(a,b,c,d){throw ea("tpload",d.url);});return function(a,c,d,e,f){g?(g.push(c),g.push(d),g.push(e),g.push(f)):m(function(){b(h,c,d,e,f)},c,d,e,f)}}function K(a,b){return b.priority-a.priority}function E(a,b,c,d){if(b)throw ea("multidir",b.name,c.name,a,ga(d));}function Y(a,b){var c=
m(b,!0);c&&a.push({priority:0,compile:W(function(a,b){var d=b.parent(),e=d.data("$binding")||[];e.push(c);na(d.data("$binding",e),"ng-binding");a.$watch(c,function(a){b[0].nodeValue=a})})})}function L(a,b){if("xlinkHref"==b||"IMG"!=Aa(a)&&("src"==b||"ngSrc"==b))return x.RESOURCE_URL}function oa(a,b,c,d){var e=m(c,!0);if(e){if("multiple"===d&&"SELECT"===Aa(a))throw ea("selmulti",ga(a));b.push({priority:100,compile:W(function(b,c,g){c=g.$$observers||(g.$$observers={});if(f.test(d))throw ea("nodomevents");
if(e=m(g[d],!0,L(a,d)))g[d]=e(b),(c[d]||(c[d]=[])).$$inter=!0,(g.$$observers&&g.$$observers[d].$$scope||b).$watch(e,function(a){g.$set(d,a)})})})}}function bb(a,b,c){var d=b[0],e=b.length,f=d.parentNode,g,m;if(a)for(g=0,m=a.length;g<m;g++)if(a[g]==d){a[g++]=c;m=g+e-1;for(var h=a.length;g<h;g++,m++)m<h?a[g]=a[m]:delete a[g];a.length-=e-1;break}f&&f.replaceChild(c,d);a=N.createDocumentFragment();a.appendChild(d);c[C.expando]=d[C.expando];d=1;for(e=b.length;d<e;d++)f=b[d],C(f).remove(),a.appendChild(f),
delete b[d];b[0]=c;b.length=1}var xb=function(a,b){this.$$element=a;this.$attr=b||{}};xb.prototype={$normalize:ka,$addClass:function(a){a&&0<a.length&&t.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&t.removeClass(this.$$element,a)},$set:function(a,b,c,d){function e(a,b){var c=[],d=a.split(/\s+/),f=b.split(/\s+/),g=0;a:for(;g<d.length;g++){for(var m=d[g],h=0;h<f.length;h++)if(m==f[h])continue a;c.push(m)}return c}if("class"==a)b=b||"",c=this.$$element.attr("class")||"",this.$removeClass(e(c,
b).join(" ")),this.$addClass(e(b,c).join(" "));else{var f=Ub(this.$$element[0],a);f&&(this.$$element.prop(a,b),d=f);this[a]=b;d?this.$attr[a]=d:(d=this.$attr[a])||(this.$attr[a]=d=pb(a,"-"));f=Aa(this.$$element);if("A"===f&&"href"===a||"IMG"===f&&"src"===a)if(!R||8<=R)f=B.resolve(b),""!==f&&("href"===a&&!f.match(g)||"src"===a&&!f.match(k))&&(this[a]=b="unsafe:"+f);!1!==c&&(null===b||b===v?this.$$element.removeAttr(d):this.$$element.attr(d,b))}(c=this.$$observers)&&q(c[a],function(a){try{a(b)}catch(c){p(c)}})},
$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers={}),e=d[a]||(d[a]=[]);e.push(b);u.$evalAsync(function(){e.$$inter||b(c[a])});return b}};da[0].createElement("a");var w=m.startSymbol(),pa=m.endSymbol(),Yb="{{"==w||"}}"==pa?wa:function(a){return a.replace(/\{\{/g,w).replace(/}}/g,pa)},A=/^ngAttr[A-Z]/;return P}]}function ka(a){return Ja(a.replace(Zc,""))}function $c(){var a={},b=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(b,d){Q(b)?F(a,b):a[b]=d};this.$get=["$injector","$window",
function(c,d){return function(e,g){var k,f,l;z(e)&&(k=e.match(b),f=k[1],l=k[3],e=a.hasOwnProperty(f)?a[f]:rb(g.$scope,f,!0)||rb(d,f,!0),Ia(e,f,!0));k=c.instantiate(e,g);if(l){if(!g||"object"!=typeof g.$scope)throw M("$controller")("noscp",f||e.name,l);g.$scope[l]=k}return k}}]}function ad(){this.$get=["$window",function(a){return C(a.document)}]}function bd(){this.$get=["$log",function(a){return function(b,c){a.error.apply(a,arguments)}}]}function Zb(a){var b={},c,d,e;if(!a)return b;q(a.split("\n"),
function(a){e=a.indexOf(":");c=G(Z(a.substr(0,e)));d=Z(a.substr(e+1));c&&(b[c]=b[c]?b[c]+(", "+d):d)});return b}function $b(a){var b=Q(a)?a:v;return function(c){b||(b=Zb(a));return c?b[G(c)]||null:b}}function ac(a,b,c){if(H(c))return c(a,b);q(c,function(c){a=c(a,b)});return a}function cd(){var a=/^\s*(\[|\{[^\{])/,b=/[\}\]]\s*$/,c=/^\)\]\}',?\n/,d={"Content-Type":"application/json;charset=utf-8"},e=this.defaults={transformResponse:[function(d){z(d)&&(d=d.replace(c,""),a.test(d)&&b.test(d)&&(d=Ib(d,
!0)));return d}],transformRequest:[function(a){return Q(a)&&"[object File]"!==Va.apply(a)?ma(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:d,put:d,patch:d},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},g=this.interceptors=[],k=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector","$$urlUtils",function(a,b,c,d,p,n,s){function r(a){function c(a){var b=F({},a,{data:ac(a.data,a.headers,d.transformResponse)});
return 200<=a.status&&300>a.status?b:p.reject(b)}var d={transformRequest:e.transformRequest,transformResponse:e.transformResponse},f=function(a){function b(a){var c;q(a,function(b,d){H(b)&&(c=b(),null!=c?a[d]=c:delete a[d])})}var c=e.headers,d=F({},a.headers),f,g,c=F({},c.common,c[G(a.method)]);b(c);b(d);a:for(f in c){a=G(f);for(g in d)if(G(g)===a)continue a;d[f]=c[f]}return d}(a);F(d,a);d.headers=f;d.method=Ba(d.method);(a=s.isSameOrigin(d.url)?b.cookies()[d.xsrfCookieName||e.xsrfCookieName]:v)&&
(f[d.xsrfHeaderName||e.xsrfHeaderName]=a);var g=[function(a){f=a.headers;var b=ac(a.data,$b(f),a.transformRequest);J(a.data)&&q(f,function(a,b){"content-type"===G(b)&&delete f[b]});J(a.withCredentials)&&!J(e.withCredentials)&&(a.withCredentials=e.withCredentials);return y(a,b,f).then(c,c)},v],m=p.when(d);for(q(x,function(a){(a.request||a.requestError)&&g.unshift(a.request,a.requestError);(a.response||a.responseError)&&g.push(a.response,a.responseError)});g.length;){a=g.shift();var h=g.shift(),m=m.then(a,
h)}m.success=function(a){m.then(function(b){a(b.data,b.status,b.headers,d)});return m};m.error=function(a){m.then(null,function(b){a(b.data,b.status,b.headers,d)});return m};return m}function y(b,c,g){function h(a,b,c){y&&(200<=a&&300>a?y.put(x,[a,b,Zb(c)]):y.remove(x));l(b,a,c);d.$$phase||d.$apply()}function l(a,c,d){c=Math.max(c,0);(200<=c&&300>c?k.resolve:k.reject)({data:a,status:c,headers:$b(d),config:b})}function n(){var a=Wa(r.pendingRequests,b);-1!==a&&r.pendingRequests.splice(a,1)}var k=p.defer(),
s=k.promise,y,q,x=u(b.url,b.params);r.pendingRequests.push(b);s.then(n,n);(b.cache||e.cache)&&(!1!==b.cache&&"GET"==b.method)&&(y=Q(b.cache)?b.cache:Q(e.cache)?e.cache:da);if(y)if(q=y.get(x)){if(q.then)return q.then(n,n),q;I(q)?l(q[1],q[0],aa(q[2])):l(q,200,{})}else y.put(x,s);q||a(b.method,x,c,h,g,b.timeout,b.withCredentials,b.responseType);return s}function u(a,b){if(!b)return a;var c=[];Bc(b,function(a,b){null!=a&&a!=v&&(I(a)||(a=[a]),q(a,function(a){Q(a)&&(a=ma(a));c.push(ta(b)+"="+ta(a))}))});
return a+(-1==a.indexOf("?")?"?":"&")+c.join("&")}var da=c("$http"),x=[];q(g,function(a){x.unshift(z(a)?n.get(a):n.invoke(a))});q(k,function(a,b){var c=z(a)?n.get(a):n.invoke(a);x.splice(b,0,{response:function(a){return c(p.when(a))},responseError:function(a){return c(p.reject(a))}})});r.pendingRequests=[];(function(a){q(arguments,function(a){r[a]=function(b,c){return r(F(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){q(arguments,function(a){r[a]=function(b,c,d){return r(F(d||
{},{method:a,url:b,data:c}))}})})("post","put");r.defaults=e;return r}]}function dd(){this.$get=["$browser","$window","$document",function(a,b,c){return ed(a,fd,a.defer,b.angular.callbacks,c[0],b.location.protocol.replace(":",""))}]}function ed(a,b,c,d,e,g){function k(a,b){var c=e.createElement("script"),d=function(){e.body.removeChild(c);b&&b()};c.type="text/javascript";c.src=a;R?c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&d()}:c.onload=c.onerror=d;e.body.appendChild(c);
return d}return function(e,l,h,m,p,n,s,r){function y(){v=-1;B&&B();t&&t.abort()}function u(b,d,e,f){var m=(l.match(bc)||["",g])[1];P&&c.cancel(P);B=t=null;d="file"==m?e?200:404:d;b(1223==d?204:d,e,f);a.$$completeOutstandingRequest(w)}var v;a.$$incOutstandingRequestCount();l=l||a.url();if("jsonp"==G(e)){var x="_"+(d.counter++).toString(36);d[x]=function(a){d[x].data=a};var B=k(l.replace("JSON_CALLBACK","angular.callbacks."+x),function(){d[x].data?u(m,200,d[x].data):u(m,v||-2);delete d[x]})}else{var t=
new b;t.open(e,l,!0);q(p,function(a,b){a&&t.setRequestHeader(b,a)});t.onreadystatechange=function(){if(4==t.readyState){var a=t.getAllResponseHeaders(),b="Cache-Control Content-Language Content-Type Expires Last-Modified Pragma".split(" ");a||(a="",q(b,function(b){var c=t.getResponseHeader(b);c&&(a+=b+": "+c+"\n")}));u(m,v||t.status,t.responseType?t.response:t.responseText,a)}};s&&(t.withCredentials=!0);r&&(t.responseType=r);t.send(h||"")}if(0<n)var P=c(y,n);else n&&n.then&&n.then(y)}}function gd(){var a=
"{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a};this.endSymbol=function(a){return a?(b=a,this):b};this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function g(g,h,m){for(var p,n,s=0,r=[],y=g.length,u=!1,q=[];s<y;)-1!=(p=g.indexOf(a,s))&&-1!=(n=g.indexOf(b,p+k))?(s!=p&&r.push(g.substring(s,p)),r.push(s=c(u=g.substring(p+k,n))),s.exp=u,s=n+f,u=!0):(s!=y&&r.push(g.substring(s)),s=y);(y=r.length)||(r.push(""),y=1);if(m&&1<r.length)throw cc("noconcat",g);if(!h||u)return q.length=
y,s=function(a){try{for(var b=0,c=y,f;b<c;b++)"function"==typeof(f=r[b])&&(f=f(a),f=m?e.getTrusted(m,f):e.valueOf(f),null==f||f==v?f="":"string"!=typeof f&&(f=ma(f))),q[b]=f;return q.join("")}catch(h){a=cc("interr",g,h.toString()),d(a)}},s.exp=g,s.parts=r,s}var k=a.length,f=b.length;g.startSymbol=function(){return a};g.endSymbol=function(){return b};return g}]}function hd(){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:"\u00a4",posSuf:"",negPre:"(\u00a4",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January February March April May June July August September October November December".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),AMPMS:["AM",
"PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(a){return 1===a?"one":"other"}}}}function dc(a){a=a.split("/");for(var b=a.length;b--;)a[b]=ob(a[b]);return a.join("/")}function ec(a,b){var c=bc.exec(a);b.$$protocol=c[1];b.$$host=c[3];b.$$port=U(c[5])||id[c[1]]||null}function fc(a,b){var c=gc.exec(a);b.$$path=decodeURIComponent(c[1]);b.$$search=
Kb(c[3]);b.$$hash=decodeURIComponent(c[5]||"");b.$$path&&"/"!=b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function la(a,b,c){return 0==b.indexOf(a)?b.substr(a.length):c}function Ra(a){var b=a.indexOf("#");return-1==b?a:a.substr(0,b)}function yb(a){return a.substr(0,Ra(a).lastIndexOf("/")+1)}function hc(a,b){this.$$html5=!0;b=b||"";var c=yb(a);this.$$parse=function(a){var b={};ec(a,b);var g=la(c,a);if(!z(g))throw zb("ipthprfx",a,c);fc(g,b);F(this,b);this.$$path||(this.$$path="/");this.$$compose()};
this.$$compose=function(){var a=Lb(this.$$search),b=this.$$hash?"#"+ob(this.$$hash):"";this.$$url=dc(this.$$path)+(a?"?"+a:"")+b;this.$$absUrl=c+this.$$url.substr(1)};this.$$rewrite=function(d){var e;if((e=la(a,d))!==v)return d=e,(e=la(b,e))!==v?c+(la("/",e)||e):a+d;if((e=la(c,d))!==v)return c+e;if(c==d+"/")return c}}function Ab(a,b){var c=yb(a);ec(a,this);this.$$parse=function(d){var e=la(a,d)||la(c,d),e="#"==e.charAt(0)?la(b,e):this.$$html5?e:"";if(!z(e))throw zb("ihshprfx",d,b);fc(e,this);this.$$compose()};
this.$$compose=function(){var c=Lb(this.$$search),e=this.$$hash?"#"+ob(this.$$hash):"";this.$$url=dc(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=a+(this.$$url?b+this.$$url:"")};this.$$rewrite=function(b){if(Ra(a)==Ra(b))return b}}function ic(a,b){this.$$html5=!0;Ab.apply(this,arguments);var c=yb(a);this.$$rewrite=function(d){var e;if(a==Ra(d))return d;if(e=la(c,d))return a+b+e;if(c===d+"/")return c}}function cb(a){return function(){return this[a]}}function jc(a,b){return function(c){if(J(c))return this[a];
this[a]=b(c);this.$$compose();return this}}function jd(){var a="",b=!1;this.hashPrefix=function(b){return A(b)?(a=b,this):a};this.html5Mode=function(a){return A(a)?(b=a,this):b};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(c,d,e,g){function k(a){c.$broadcast("$locationChangeSuccess",f.absUrl(),a)}var f,l=d.baseHref(),h=d.url();b?(l=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(l||"/"),e=e.history?hc:ic):(l=Ra(h),e=Ab);f=new e(l,"#"+a);f.$$parse(f.$$rewrite(h));g.on("click",
function(a){if(!a.ctrlKey&&!a.metaKey&&2!=a.which){for(var b=C(a.target);"a"!==G(b[0].nodeName);)if(b[0]===g[0]||!(b=b.parent())[0])return;var e=b.prop("href"),m=f.$$rewrite(e);e&&(!b.attr("target")&&m&&!a.isDefaultPrevented())&&(a.preventDefault(),m!=d.url()&&(f.$$parse(m),c.$apply(),T.angular["ff-684208-preventDefault"]=!0))}});f.absUrl()!=h&&d.url(f.absUrl(),!0);d.onUrlChange(function(a){f.absUrl()!=a&&(c.$broadcast("$locationChangeStart",a,f.absUrl()).defaultPrevented?d.url(f.absUrl()):(c.$evalAsync(function(){var b=
f.absUrl();f.$$parse(a);k(b)}),c.$$phase||c.$digest()))});var m=0;c.$watch(function(){var a=d.url(),b=f.$$replace;m&&a==f.absUrl()||(m++,c.$evalAsync(function(){c.$broadcast("$locationChangeStart",f.absUrl(),a).defaultPrevented?f.$$parse(a):(d.url(f.absUrl(),b),k(a))}));f.$$replace=!1;return m});return f}]}function kd(){var a=!0,b=this;this.debugEnabled=function(b){return A(b)?(a=b,this):a};this.$get=["$window",function(c){function d(a){a instanceof Error&&(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?
"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=c.console||{},e=b[a]||b.log||w;return e.apply?function(){var a=[];q(arguments,function(b){a.push(d(b))});return e.apply(b,a)}:function(a,b){e(a,b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function qa(a,b){if("constructor"===a)throw Sa("isecfld",b);return a}function kc(a,
b){if(a&&a.constructor===a)throw Sa("isecfn",b);return a}function ld(a,b){function c(a){return-1!=a.indexOf(u)}function d(b){b=b||1;return r+b<a.length?a.charAt(r+b):!1}function e(a){return"0"<=a&&"9">=a}function g(a){return" "==a||"\r"==a||"\t"==a||"\n"==a||"\v"==a||"\u00a0"==a}function k(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"==a||"$"==a}function f(a){return"-"==a||"+"==a||e(a)}function l(b,c,d){d=d||r;c=A(c)?"s "+c+"-"+r+" ["+a.substring(c,d)+"]":" "+d;throw Sa("lexerr",b,c,a);}function h(){for(var b=
"",c=r;r<a.length;){var g=G(a.charAt(r));if("."==g||e(g))b+=g;else{var m=d();if("e"==g&&f(m))b+=g;else if(f(g)&&m&&e(m)&&"e"==b.charAt(b.length-1))b+=g;else if(!f(g)||m&&e(m)||"e"!=b.charAt(b.length-1))break;else l("Invalid exponent")}r++}b*=1;n.push({index:c,text:b,json:!0,fn:function(){return b}})}function m(){for(var c="",d=r,f,m,h,l;r<a.length;){l=a.charAt(r);if("."==l||k(l)||e(l))"."==l&&(f=r),c+=l;else break;r++}if(f)for(m=r;m<a.length;){l=a.charAt(m);if("("==l){h=c.substr(f-d+1);c=c.substr(0,
f-d);r=m;break}if(g(l))m++;else break}d={index:d,text:c};if(Ta.hasOwnProperty(c))d.fn=d.json=Ta[c];else{var p=lc(c,b,a);d.fn=F(function(a,b){return p(a,b)},{assign:function(b,d){return db(b,c,d,a)}})}n.push(d);h&&(n.push({index:f,text:".",json:!1}),n.push({index:f+1,text:h,json:!1}))}function p(b){var c=r;r++;for(var d="",e=b,f=!1;r<a.length;){var g=a.charAt(r),e=e+g;if(f)"u"==g?(g=a.substring(r+1,r+5),g.match(/[\da-f]{4}/i)||l("Invalid unicode escape [\\u"+g+"]"),r+=4,d+=String.fromCharCode(parseInt(g,
16))):d=(f=md[g])?d+f:d+g,f=!1;else if("\\"==g)f=!0;else{if(g==b){r++;n.push({index:c,text:e,string:d,json:!0,fn:function(){return d}});return}d+=g}r++}l("Unterminated quote",c)}for(var n=[],s,r=0,y=[],u,q=":";r<a.length;){u=a.charAt(r);if(c("\"'"))p(u);else if(e(u)||c(".")&&e(d()))h();else if(k(u))m(),-1!="{,".indexOf(q)&&("{"==y[0]&&(s=n[n.length-1]))&&(s.json=-1==s.text.indexOf("."));else if(c("(){}[].,;:?"))n.push({index:r,text:u,json:-1!=":[,".indexOf(q)&&c("{[")||c("}]:,")}),c("{[")&&y.unshift(u),
c("}]")&&y.shift(),r++;else if(g(u)){r++;continue}else{var x=u+d(),v=x+d(2),t=Ta[u],P=Ta[x],w=Ta[v];w?(n.push({index:r,text:v,fn:w}),r+=3):P?(n.push({index:r,text:x,fn:P}),r+=2):t?(n.push({index:r,text:u,fn:t,json:-1!="[,:".indexOf(q)&&c("+-")}),r+=1):l("Unexpected next character ",r,r+1)}q=u}return n}function nd(a,b,c,d){function e(b,c){throw Sa("syntax",c.text,b,c.index+1,a,a.substring(c.index));}function g(){if(0===ba.length)throw Sa("ueoe",a);return ba[0]}function k(a,b,c,d){if(0<ba.length){var e=
ba[0],f=e.text;if(f==a||f==b||f==c||f==d||!(a||b||c||d))return e}return!1}function f(a,c,d,f){return(a=k(a,c,d,f))?(b&&!a.json&&e("is not valid json",a),ba.shift(),a):!1}function l(a){f(a)||e("is unexpected, expecting ["+a+"]",k())}function h(a,b){return F(function(c,d){return a(c,d,b)},{constant:b.constant})}function m(a,b,c){return F(function(d,e){return a(d,e)?b(d,e):c(d,e)},{constant:a.constant&&b.constant&&c.constant})}function p(a,b,c){return F(function(d,e){return b(d,e,a,c)},{constant:a.constant&&
c.constant})}function n(){for(var a=[];;)if(0<ba.length&&!k("}",")",";","]")&&a.push(K()),!f(";"))return 1==a.length?a[0]:function(b,c){for(var d,e=0;e<a.length;e++){var f=a[e];f&&(d=f(b,c))}return d}}function s(){for(var a=f(),b=c(a.text),d=[];;)if(a=f(":"))d.push(z());else{var e=function(a,c,e){e=[e];for(var f=0;f<d.length;f++)e.push(d[f](a,c));return b.apply(a,e)};return function(){return e}}}function r(){var a=y(),b,c;if(f("?")){b=r();if(c=f(":"))return m(a,b,r());e("expected :",c)}else return a}
function y(){for(var a=u(),b;;)if(b=f("||"))a=p(a,b.fn,u());else return a}function u(){var a=q(),b;if(b=f("&&"))a=p(a,b.fn,u());return a}function q(){var a=x(),b;if(b=f("==","!=","===","!=="))a=p(a,b.fn,q());return a}function x(){var a;a=B();for(var b;b=f("+","-");)a=p(a,b.fn,B());if(b=f("<",">","<=",">="))a=p(a,b.fn,x());return a}function B(){for(var a=t(),b;b=f("*","/","%");)a=p(a,b.fn,t());return a}function t(){var a;return f("+")?P():(a=f("-"))?p(ia,a.fn,t()):(a=f("!"))?h(a.fn,t()):P()}function P(){var a;
if(f("("))a=K(),l(")");else if(f("["))a=C();else if(f("{"))a=A();else{var b=f();(a=b.fn)||e("not a primary expression",b);b.json&&(a.constant=a.literal=!0)}for(var c;b=f("(","[",".");)"("===b.text?(a=D(a,c),c=null):"["===b.text?(c=a,a=I(a)):"."===b.text?(c=a,a=ua(a)):e("IMPOSSIBLE");return a}function C(){var a=[],b=!0;if("]"!=g().text){do{var c=z();a.push(c);c.constant||(b=!1)}while(f(","))}l("]");return F(function(b,c){for(var d=[],e=0;e<a.length;e++)d.push(a[e](b,c));return d},{literal:!0,constant:b})}
function A(){var a=[],b=!0;if("}"!=g().text){do{var c=f(),c=c.string||c.text;l(":");var d=z();a.push({key:c,value:d});d.constant||(b=!1)}while(f(","))}l("}");return F(function(b,c){for(var d={},e=0;e<a.length;e++){var f=a[e];d[f.key]=f.value(b,c)}return d},{literal:!0,constant:b})}var ia=W(0),X,ba=ld(a,d),z=function(){var b=r(),c,d;return(d=f("="))?(b.assign||e("implies assignment but ["+a.substring(0,d.index)+"] can not be assigned to",d),c=r(),function(a,d){return b.assign(a,c(a,d),d)}):b},D=function(a,
b){var c=[];if(")"!=g().text){do c.push(z());while(f(","))}l(")");return function(d,e){for(var f=[],g=b?b(d,e):d,m=0;m<c.length;m++)f.push(c[m](d,e));m=a(d,e,g)||w;return m.apply?m.apply(g,f):m(f[0],f[1],f[2],f[3],f[4])}},ua=function(b){var c=f().text,e=lc(c,d,a);return F(function(a,c,d){return e(d||b(a,c),c)},{assign:function(d,e,f){return db(b(d,f),c,e,a)}})},I=function(b){var c=z();l("]");return F(function(d,e){var f=b(d,e),g=c(d,e),m;if(!f)return v;(f=kc(f[g],a))&&f.then&&(m=f,"$$v"in f||(m.$$v=
v,m.then(function(a){m.$$v=a})),f=f.$$v);return f},{assign:function(d,e,f){var g=c(d,f);return kc(b(d,f),a)[g]=e}})},K=function(){for(var a=z(),b;;)if(b=f("|"))a=p(a,b.fn,s());else return a};b?(z=y,D=ua=I=K=function(){e("is not valid json",{text:a,index:0})},X=P()):X=n();0!==ba.length&&e("is an unexpected token",ba[0]);X.literal=!!X.literal;X.constant=!!X.constant;return X}function db(a,b,c,d){b=b.split(".");for(var e,g=0;1<b.length;g++){e=qa(b.shift(),d);var k=a[e];k||(k={},a[e]=k);a=k;a.then&&("$$v"in
a||function(a){a.then(function(b){a.$$v=b})}(a),a.$$v===v&&(a.$$v={}),a=a.$$v)}e=qa(b.shift(),d);return a[e]=c}function mc(a,b,c,d,e,g){qa(a,g);qa(b,g);qa(c,g);qa(d,g);qa(e,g);return function(g,f){var l=f&&f.hasOwnProperty(a)?f:g,h;if(null===l||l===v)return l;(l=l[a])&&l.then&&("$$v"in l||(h=l,h.$$v=v,h.then(function(a){h.$$v=a})),l=l.$$v);if(!b||null===l||l===v)return l;(l=l[b])&&l.then&&("$$v"in l||(h=l,h.$$v=v,h.then(function(a){h.$$v=a})),l=l.$$v);if(!c||null===l||l===v)return l;(l=l[c])&&l.then&&
("$$v"in l||(h=l,h.$$v=v,h.then(function(a){h.$$v=a})),l=l.$$v);if(!d||null===l||l===v)return l;(l=l[d])&&l.then&&("$$v"in l||(h=l,h.$$v=v,h.then(function(a){h.$$v=a})),l=l.$$v);if(!e||null===l||l===v)return l;(l=l[e])&&l.then&&("$$v"in l||(h=l,h.$$v=v,h.then(function(a){h.$$v=a})),l=l.$$v);return l}}function lc(a,b,c){if(Bb.hasOwnProperty(a))return Bb[a];var d=a.split("."),e=d.length;if(b)b=6>e?mc(d[0],d[1],d[2],d[3],d[4],c):function(a,b){var g=0,h;do h=mc(d[g++],d[g++],d[g++],d[g++],d[g++],c)(a,
b),b=v,a=h;while(g<e);return h};else{var g="var l, fn, p;\n";q(d,function(a,b){qa(a,c);g+="if(s === null || s === undefined) return s;\nl=s;\ns="+(b?"s":'((k&&k.hasOwnProperty("'+a+'"))?k:s)')+'["'+a+'"];\nif (s && s.then) {\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n'});g+="return s;";b=Function("s","k",g);b.toString=function(){return g}}return Bb[a]=b}function od(){var a={};this.$get=["$filter","$sniffer",function(b,c){return function(d){switch(typeof d){case "string":return a.hasOwnProperty(d)?
a[d]:a[d]=nd(d,!1,b,c.csp);case "function":return d;default:return w}}}]}function pd(){this.$get=["$rootScope","$exceptionHandler",function(a,b){return qd(function(b){a.$evalAsync(b)},b)}]}function qd(a,b){function c(a){return a}function d(a){return k(a)}var e=function(){var f=[],l,h;return h={resolve:function(b){if(f){var c=f;f=v;l=g(b);c.length&&a(function(){for(var a,b=0,d=c.length;b<d;b++)a=c[b],l.then(a[0],a[1],a[2])})}},reject:function(a){h.resolve(k(a))},notify:function(b){if(f){var c=f;f.length&&
a(function(){for(var a,d=0,e=c.length;d<e;d++)a=c[d],a[2](b)})}},promise:{then:function(a,g,h){var k=e(),r=function(d){try{k.resolve((a||c)(d))}catch(e){k.reject(e),b(e)}},y=function(a){try{k.resolve((g||d)(a))}catch(c){k.reject(c),b(c)}},u=function(a){try{k.notify((h||c)(a))}catch(d){b(d)}};f?f.push([r,y,u]):l.then(r,y,u);return k.promise},"catch":function(a){return this.then(null,a)},"finally":function(a){function b(a,c){var d=e();c?d.resolve(a):d.reject(a);return d.promise}function d(e,f){var g=
null;try{g=(a||c)()}catch(h){return b(h,!1)}return g&&g.then?g.then(function(){return b(e,f)},function(a){return b(a,!1)}):b(e,f)}return this.then(function(a){return d(a,!0)},function(a){return d(a,!1)})}}}},g=function(b){return b&&b.then?b:{then:function(c){var d=e();a(function(){d.resolve(c(b))});return d.promise}}},k=function(b){return{then:function(c,g){var m=e();a(function(){m.resolve((g||d)(b))});return m.promise}}};return{defer:e,reject:k,when:function(f,l,h,m){var p=e(),n,s=function(a){try{return(l||
c)(a)}catch(d){return b(d),k(d)}},r=function(a){try{return(h||d)(a)}catch(c){return b(c),k(c)}},y=function(a){try{return(m||c)(a)}catch(d){b(d)}};a(function(){g(f).then(function(a){n||(n=!0,p.resolve(g(a).then(s,r,y)))},function(a){n||(n=!0,p.resolve(r(a)))},function(a){n||p.notify(y(a))})});return p.promise},all:function(a){var b=e(),c=0,d=I(a)?[]:{};q(a,function(a,e){c++;g(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})});0===c&&
b.resolve(d);return b.promise}}}function rd(){var a=10,b=M("$rootScope");this.digestTtl=function(b){arguments.length&&(a=b);return a};this.$get=["$injector","$exceptionHandler","$parse",function(c,d,e){function g(){this.$id=Ua();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$destroyed=!1;this.$$asyncQueue=[];this.$$listeners={};this.$$isolateBindings={}}function k(a){if(h.$$phase)throw b("inprog",
h.$$phase);h.$$phase=a}function f(a,b){var c=e(a);Ia(c,b);return c}function l(){}g.prototype={$new:function(a){a?(a=new g,a.$root=this.$root,a.$$asyncQueue=this.$$asyncQueue):(a=function(){},a.prototype=this,a=new a,a.$id=Ua());a["this"]=a;a.$$listeners={};a.$parent=this;a.$$watchers=a.$$nextSibling=a.$$childHead=a.$$childTail=null;a.$$prevSibling=this.$$childTail;this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=a:this.$$childHead=this.$$childTail=a;return a},$watch:function(a,b,c){var d=
f(a,"watch"),e=this.$$watchers,g={fn:b,last:l,get:d,exp:a,eq:!!c};if(!H(b)){var h=f(b||w,"listener");g.fn=function(a,b,c){h(c)}}if("string"==typeof a&&d.constant){var k=g.fn;g.fn=function(a,b,c){k.call(this,a,b,c);Fa(e,g)}}e||(e=this.$$watchers=[]);e.unshift(g);return function(){Fa(e,g)}},$watchCollection:function(a,b){var c=this,d,f,g=0,h=e(a),k=[],l={},q=0;return this.$watch(function(){f=h(c);var a,b;if(Q(f))if(kb(f))for(d!==k&&(d=k,q=d.length=0,g++),a=f.length,q!==a&&(g++,d.length=q=a),b=0;b<a;b++)d[b]!==
f[b]&&(g++,d[b]=f[b]);else{d!==l&&(d=l={},q=0,g++);a=0;for(b in f)f.hasOwnProperty(b)&&(a++,d.hasOwnProperty(b)?d[b]!==f[b]&&(g++,d[b]=f[b]):(q++,d[b]=f[b],g++));if(q>a)for(b in g++,d)d.hasOwnProperty(b)&&!f.hasOwnProperty(b)&&(q--,delete d[b])}else d!==f&&(d=f,g++);return g},function(){b(f,d,c)})},$digest:function(){var c,e,f,g,r=this.$$asyncQueue,q,u,v=a,x,B=[],t,w;k("$digest");do{u=!1;for(x=this;r.length;)try{x.$eval(r.shift())}catch(C){d(C)}do{if(g=x.$$watchers)for(q=g.length;q--;)try{(c=g[q])&&
((e=c.get(x))!==(f=c.last)&&!(c.eq?xa(e,f):"number"==typeof e&&"number"==typeof f&&isNaN(e)&&isNaN(f)))&&(u=!0,c.last=c.eq?aa(e):e,c.fn(e,f===l?e:f,x),5>v&&(t=4-v,B[t]||(B[t]=[]),w=H(c.exp)?"fn: "+(c.exp.name||c.exp.toString()):c.exp,w+="; newVal: "+ma(e)+"; oldVal: "+ma(f),B[t].push(w)))}catch(z){d(z)}if(!(g=x.$$childHead||x!==this&&x.$$nextSibling))for(;x!==this&&!(g=x.$$nextSibling);)x=x.$parent}while(x=g);if(u&&!v--)throw h.$$phase=null,b("infdig",a,ma(B));}while(u||r.length);h.$$phase=null},
$destroy:function(){if(h!=this&&!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;a.$$childHead==this&&(a.$$childHead=this.$$nextSibling);a.$$childTail==this&&(a.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null}},$eval:function(a,b){return e(a)(this,
b)},$evalAsync:function(a){this.$$asyncQueue.push(a)},$apply:function(a){try{return k("$apply"),this.$eval(a)}catch(b){d(b)}finally{h.$$phase=null;try{h.$digest()}catch(c){throw d(c),c;}}},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);return function(){c[Wa(c,b)]=null}},$emit:function(a,b){var c=[],e,f=this,g=!1,h={name:a,targetScope:f,stopPropagation:function(){g=!0},preventDefault:function(){h.defaultPrevented=!0},defaultPrevented:!1},k=[h].concat(sa.call(arguments,
1)),l,q;do{e=f.$$listeners[a]||c;h.currentScope=f;l=0;for(q=e.length;l<q;l++)if(e[l])try{if(e[l].apply(null,k),g)return h}catch(t){d(t)}else e.splice(l,1),l--,q--;f=f.$parent}while(f);return h},$broadcast:function(a,b){var c=this,e=this,f={name:a,targetScope:this,preventDefault:function(){f.defaultPrevented=!0},defaultPrevented:!1},g=[f].concat(sa.call(arguments,1)),h,l;do{c=e;f.currentScope=c;e=c.$$listeners[a]||[];h=0;for(l=e.length;h<l;h++)if(e[h])try{e[h].apply(null,g)}catch(k){d(k)}else e.splice(h,
1),h--,l--;if(!(e=c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(e=c.$$nextSibling);)c=c.$parent}while(c=e);return f}};var h=new g;return h}]}function sd(){this.SCE_CONTEXTS=ca;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){arguments.length&&(a=b);return a};this.resourceUrlBlacklist=function(a){arguments.length&&(b=a);return b};this.$get=["$log","$document","$injector","$$urlUtils",function(c,d,e,g){function k(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};
a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var f=function(a){throw Ca("unsafe");};e.has("$sanitize")&&(f=e.get("$sanitize"));var l=k(),h={};h[ca.HTML]=k(l);h[ca.CSS]=k(l);h[ca.URL]=k(l);h[ca.JS]=k(l);h[ca.RESOURCE_URL]=k(h[ca.URL]);return{trustAs:function(a,b){var c=h.hasOwnProperty(a)?h[a]:null;if(!c)throw Ca("icontext",a,b);if(null===b||b===v||""===b)return b;if("string"!==
typeof b)throw Ca("itype",a);return new c(b)},getTrusted:function(c,d){if(null===d||d===v||""===d)return d;var e=h.hasOwnProperty(c)?h[c]:null;if(e&&d instanceof e)return d.$$unwrapTrustedValue();if(c===ca.RESOURCE_URL){var e=g.resolve(d.toString(),!0),l,k,q=!1;l=0;for(k=a.length;l<k;l++)if("self"===a[l]?g.isSameOrigin(e):e.href.match(a[l])){q=!0;break}if(q)for(l=0,k=b.length;l<k;l++)if("self"===b[l]?g.isSameOrigin(e):e.href.match(b[l])){q=!1;break}if(q)return d;throw Ca("insecurl",d.toString());
}if(c===ca.HTML)return f(d);throw Ca("unsafe");},valueOf:function(a){return a instanceof l?a.$$unwrapTrustedValue():a}}}]}function td(){var a=!0;this.enabled=function(b){arguments.length&&(a=!!b);return a};this.$get=["$parse","$document","$sceDelegate",function(b,c,d){if(a&&R&&(c=c[0].documentMode,c!==v&&8>c))throw Ca("iequirks");var e=aa(ca);e.isEnabled=function(){return a};e.trustAs=d.trustAs;e.getTrusted=d.getTrusted;e.valueOf=d.valueOf;a||(e.trustAs=e.getTrusted=function(a,b){return b},e.valueOf=
wa);e.parseAs=function(a,c){var d=b(c);return d.literal&&d.constant?d:function(b,c){return e.getTrusted(a,d(b,c))}};var g=e.parseAs,k=e.getTrusted,f=e.trustAs;Ha.forEach(ca,function(a,b){var c=G(b);e[Ja("parse_as_"+c)]=function(b){return g(a,b)};e[Ja("get_trusted_"+c)]=function(b){return k(a,b)};e[Ja("trust_as_"+c)]=function(b){return f(a,b)}});return e}]}function ud(){this.$get=["$window","$document",function(a,b){var c={},d=U((/android (\d+)/.exec(G((a.navigator||{}).userAgent))||[])[1]),e=b[0]||
{},g,k=/^(Moz|webkit|O|ms)(?=[A-Z])/,f=e.body&&e.body.style,l=!1,h=!1;if(f){for(var m in f)if(l=k.exec(m)){g=l[0];g=g.substr(0,1).toUpperCase()+g.substr(1);break}l=!!("transition"in f||g+"Transition"in f);h=!!("animation"in f||g+"Animation"in f);!d||l&&h||(l=z(e.body.style.webkitTransition),h=z(e.body.style.webkitAnimation))}return{history:!(!a.history||!a.history.pushState||4>d),hashchange:"onhashchange"in a&&(!e.documentMode||7<e.documentMode),hasEvent:function(a){if("input"==a&&9==R)return!1;if(J(c[a])){var b=
e.createElement("div");c[a]="on"+a in b}return c[a]},csp:e.securityPolicy?e.securityPolicy.isActive:!1,vendorPrefix:g,transitions:l,animations:h}}]}function vd(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(a,b,c,d){function e(e,f,l){var h=c.defer(),m=h.promise,p=A(l)&&!l;f=b.defer(function(){try{h.resolve(e())}catch(b){h.reject(b),d(b)}p||a.$apply()},f);l=function(){delete g[m.$$timeoutId]};m.$$timeoutId=f;g[f]=h;m.then(l,l);return m}var g={};e.cancel=function(a){return a&&
a.$$timeoutId in g?(g[a.$$timeoutId].reject("canceled"),b.defer.cancel(a.$$timeoutId)):!1};return e}]}function wd(){this.$get=[function(){function a(a,c){var g=a;R&&(b.setAttribute("href",g),g=b.href);b.setAttribute("href",g);return c?{href:b.href,protocol:b.protocol,host:b.host}:b.href}var b=N.createElement("a"),c=a(T.location.href,!0);return{resolve:a,isSameOrigin:function(b){b="string"===typeof b?a(b,!0):b;return b.protocol===c.protocol&&b.host===c.host}}}]}function xd(){this.$get=W(T)}function nc(a){function b(b,
e){return a.factory(b+c,e)}var c="Filter";this.register=b;this.$get=["$injector",function(a){return function(b){return a.get(b+c)}}];b("currency",oc);b("date",pc);b("filter",yd);b("json",zd);b("limitTo",Ad);b("lowercase",Bd);b("number",qc);b("orderBy",rc);b("uppercase",Cd)}function yd(){return function(a,b,c){if(!I(a))return a;var d=[];d.check=function(a){for(var b=0;b<d.length;b++)if(!d[b](a))return!1;return!0};switch(typeof c){case "function":break;case "boolean":if(!0==c){c=function(a,b){return Ha.equals(a,
b)};break}default:c=function(a,b){b=(""+b).toLowerCase();return-1<(""+a).toLowerCase().indexOf(b)}}var e=function(a,b){if("string"==typeof b&&"!"===b.charAt(0))return!e(a,b.substr(1));switch(typeof a){case "boolean":case "number":case "string":return c(a,b);case "object":switch(typeof b){case "object":return c(a,b);default:for(var d in a)if("$"!==d.charAt(0)&&e(a[d],b))return!0}return!1;case "array":for(d=0;d<a.length;d++)if(e(a[d],b))return!0;return!1;default:return!1}};switch(typeof b){case "boolean":case "number":case "string":b=
{$:b};case "object":for(var g in b)"$"==g?function(){if(b[g]){var a=g;d.push(function(c){return e(c,b[a])})}}():function(){if(b[g]){var a=g;d.push(function(c){return e(rb(c,a),b[a])})}}();break;case "function":d.push(b);break;default:return a}for(var k=[],f=0;f<a.length;f++){var l=a[f];d.check(l)&&k.push(l)}return k}}function oc(a){var b=a.NUMBER_FORMATS;return function(a,d){J(d)&&(d=b.CURRENCY_SYM);return sc(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,2).replace(/\u00A4/g,d)}}function qc(a){var b=
a.NUMBER_FORMATS;return function(a,d){return sc(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,d)}}function sc(a,b,c,d,e){if(isNaN(a)||!isFinite(a))return"";var g=0>a;a=Math.abs(a);var k=a+"",f="",l=[],h=!1;if(-1!==k.indexOf("e")){var m=k.match(/([\d\.]+)e(-?)(\d+)/);m&&"-"==m[2]&&m[3]>e+1?k="0":(f=k,h=!0)}if(h)0<e&&(-1<a&&1>a)&&(f=a.toFixed(e));else{k=(k.split(tc)[1]||"").length;J(e)&&(e=Math.min(Math.max(b.minFrac,k),b.maxFrac));k=Math.pow(10,e);a=Math.round(a*k)/k;a=(""+a).split(tc);k=a[0];a=a[1]||
"";var h=0,m=b.lgSize,p=b.gSize;if(k.length>=m+p)for(var h=k.length-m,n=0;n<h;n++)0===(h-n)%p&&0!==n&&(f+=c),f+=k.charAt(n);for(n=h;n<k.length;n++)0===(k.length-n)%m&&0!==n&&(f+=c),f+=k.charAt(n);for(;a.length<e;)a+="0";e&&"0"!==e&&(f+=d+a.substr(0,e))}l.push(g?b.negPre:b.posPre);l.push(f);l.push(g?b.negSuf:b.posSuf);return l.join("")}function Cb(a,b,c){var d="";0>a&&(d="-",a=-a);for(a=""+a;a.length<b;)a="0"+a;c&&(a=a.substr(a.length-b));return d+a}function S(a,b,c,d){c=c||0;return function(e){e=
e["get"+a]();if(0<c||e>-c)e+=c;0===e&&-12==c&&(e=12);return Cb(e,b,d)}}function eb(a,b){return function(c,d){var e=c["get"+a](),g=Ba(b?"SHORT"+a:a);return d[g][e]}}function pc(a){function b(a){var b;if(b=a.match(c)){a=new Date(0);var g=0,k=0,f=b[8]?a.setUTCFullYear:a.setFullYear,l=b[8]?a.setUTCHours:a.setHours;b[9]&&(g=U(b[9]+b[10]),k=U(b[9]+b[11]));f.call(a,U(b[1]),U(b[2])-1,U(b[3]));g=U(b[4]||0)-g;k=U(b[5]||0)-k;f=U(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));l.call(a,g,k,f,b)}return a}
var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,e){var g="",k=[],f,l;e=e||"mediumDate";e=a.DATETIME_FORMATS[e]||e;z(c)&&(c=Dd.test(c)?U(c):b(c));lb(c)&&(c=new Date(c));if(!Ea(c))return c;for(;e;)(l=Ed.exec(e))?(k=k.concat(sa.call(l,1)),e=k.pop()):(k.push(e),e=null);q(k,function(b){f=Fd[b];g+=f?f(c,a.DATETIME_FORMATS):b.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function zd(){return function(a){return ma(a,!0)}}
function Ad(){return function(a,b){if(!I(a)&&!z(a))return a;b=U(b);if(z(a))return b?0<=b?a.slice(0,b):a.slice(b,a.length):"";var c=[],d,e;b>a.length?b=a.length:b<-a.length&&(b=-a.length);0<b?(d=0,e=b):(d=a.length+b,e=a.length);for(;d<e;d++)c.push(a[d]);return c}}function rc(a){return function(b,c,d){function e(a,b){return Ga(b)?function(b,c){return a(c,b)}:a}if(!I(b)||!c)return b;c=I(c)?c:[c];c=Ec(c,function(b){var c=!1,d=b||wa;if(z(b)){if("+"==b.charAt(0)||"-"==b.charAt(0))c="-"==b.charAt(0),b=b.substring(1);
d=a(b)}return e(function(a,b){var c;c=d(a);var e=d(b),f=typeof c,g=typeof e;f==g?("string"==f&&(c=c.toLowerCase()),"string"==f&&(e=e.toLowerCase()),c=c===e?0:c<e?-1:1):c=f<g?-1:1;return c},c)});for(var g=[],k=0;k<b.length;k++)g.push(b[k]);return g.sort(e(function(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(0!==e)return e}return 0},d))}}function ra(a){H(a)&&(a={link:a});a.restrict=a.restrict||"AC";return W(a)}function uc(a,b){function c(b,c){c=c?"-"+pb(c,"-"):"";a.removeClass((b?fb:gb)+c).addClass((b?
gb:fb)+c)}var d=this,e=a.parent().controller("form")||hb,g=0,k=d.$error={},f=[];d.$name=b.name||b.ngForm;d.$dirty=!1;d.$pristine=!0;d.$valid=!0;d.$invalid=!1;e.$addControl(d);a.addClass(Da);c(!0);d.$addControl=function(a){f.push(a);a.$name&&!d.hasOwnProperty(a.$name)&&(d[a.$name]=a)};d.$removeControl=function(a){a.$name&&d[a.$name]===a&&delete d[a.$name];q(k,function(b,c){d.$setValidity(c,!0,a)});Fa(f,a)};d.$setValidity=function(a,b,f){var p=k[a];if(b)p&&(Fa(p,f),p.length||(g--,g||(c(b),d.$valid=
!0,d.$invalid=!1),k[a]=!1,c(!0,a),e.$setValidity(a,!0,d)));else{g||c(b);if(p){if(-1!=Wa(p,f))return}else k[a]=p=[],g++,c(!1,a),e.$setValidity(a,!1,d);p.push(f);d.$valid=!1;d.$invalid=!0}};d.$setDirty=function(){a.removeClass(Da).addClass(ib);d.$dirty=!0;d.$pristine=!1;e.$setDirty()};d.$setPristine=function(){a.removeClass(ib).addClass(Da);d.$dirty=!1;d.$pristine=!0;q(f,function(a){a.$setPristine()})}}function $(a){return J(a)||""===a||null===a||a!==a}function jb(a,b,c,d,e,g){var k=function(){var e=
b.val();Ga(c.ngTrim||"T")&&(e=Z(e));d.$viewValue!==e&&a.$apply(function(){d.$setViewValue(e)})};if(e.hasEvent("input"))b.on("input",k);else{var f,l=function(){f||(f=g.defer(function(){k();f=null}))};b.on("keydown",function(a){a=a.keyCode;91===a||(15<a&&19>a||37<=a&&40>=a)||l()});b.on("change",k);if(e.hasEvent("paste"))b.on("paste cut",l)}d.$render=function(){b.val($(d.$viewValue)?"":d.$viewValue)};var h=c.ngPattern,m=function(a,b){if($(b)||a.test(b))return d.$setValidity("pattern",!0),b;d.$setValidity("pattern",
!1);return v};h&&((e=h.match(/^\/(.*)\/([gim]*)$/))?(h=RegExp(e[1],e[2]),e=function(a){return m(h,a)}):e=function(c){var d=a.$eval(h);if(!d||!d.test)throw M("ngPattern")("noregexp",h,d,ga(b));return m(d,c)},d.$formatters.push(e),d.$parsers.push(e));if(c.ngMinlength){var p=U(c.ngMinlength);e=function(a){if(!$(a)&&a.length<p)return d.$setValidity("minlength",!1),v;d.$setValidity("minlength",!0);return a};d.$parsers.push(e);d.$formatters.push(e)}if(c.ngMaxlength){var n=U(c.ngMaxlength);e=function(a){if(!$(a)&&
a.length>n)return d.$setValidity("maxlength",!1),v;d.$setValidity("maxlength",!0);return a};d.$parsers.push(e);d.$formatters.push(e)}}function Db(a,b){a="ngClass"+a;return function(){return{restrict:"AC",link:function(c,d,e){function g(a){if(!0===b||c.$index%2===b)f&&!xa(a,f)&&e.$removeClass(k(f)),e.$addClass(k(a));f=aa(a)}function k(a){if(I(a))return a.join(" ");if(Q(a)){var b=[];q(a,function(a,c){a&&b.push(c)});return b.join(" ")}return a}var f=v;c.$watch(e[a],g,!0);e.$observe("class",function(b){g(c.$eval(e[a]))});
"ngClass"!==a&&c.$watch("$index",function(d,f){var g=d&1;g!==f&1&&(g===b?(g=c.$eval(e[a]),e.$addClass(k(g))):(g=c.$eval(e[a]),e.$removeClass(k(g))))})}}}}var G=function(a){return z(a)?a.toLowerCase():a},Ba=function(a){return z(a)?a.toUpperCase():a},R=U((/msie (\d+)/.exec(G(navigator.userAgent))||[])[1]),C,ya,sa=[].slice,Gd=[].push,Va=Object.prototype.toString,Xa=M("ng"),Ha=T.angular||(T.angular={}),Oa,Aa,fa=["0","0","0"];w.$inject=[];wa.$inject=[];var Z=function(){return String.prototype.trim?function(a){return z(a)?
a.trim():a}:function(a){return z(a)?a.replace(/^\s*/,"").replace(/\s*$/,""):a}}();Aa=9>R?function(a){a=a.nodeName?a:a[0];return a.scopeName&&"HTML"!=a.scopeName?Ba(a.scopeName+":"+a.nodeName):a.nodeName}:function(a){return a.nodeName?a.nodeName:a[0].nodeName};var Ic=/[A-Z]/g,Hd={full:"1.2.0rc1",major:1,minor:2,dot:0,codeName:"spooky-giraffe"},La=O.cache={},Ya=O.expando="ng-"+(new Date).getTime(),Mc=1,vc=T.document.addEventListener?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+
b,c)},wb=T.document.removeEventListener?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent("on"+b,c)},Kc=/([\:\-\_]+(.))/g,Lc=/^moz([A-Z])/,tb=M("jqLite"),Pa=O.prototype={ready:function(a){function b(){c||(c=!0,a())}var c=!1;"complete"===N.readyState?setTimeout(b):(this.on("DOMContentLoaded",b),O(T).on("load",b))},toString:function(){var a=[];q(this,function(b){a.push(""+b)});return"["+a.join(", ")+"]"},eq:function(a){return 0<=a?C(this[a]):C(this[this.length+a])},length:0,
push:Gd,sort:[].sort,splice:[].splice},ab={};q("multiple selected checked disabled readOnly required open".split(" "),function(a){ab[G(a)]=a});var Vb={};q("input select option textarea button form details".split(" "),function(a){Vb[Ba(a)]=!0});q({data:Qb,inheritedData:$a,scope:function(a){return $a(a,"$scope")},controller:Tb,injector:function(a){return $a(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:Za,css:function(a,b,c){b=Ja(b);if(A(c))a.style[b]=c;else{var d;8>=R&&(d=
a.currentStyle&&a.currentStyle[b],""===d&&(d="auto"));d=d||a.style[b];8>=R&&(d=""===d?v:d);return d}},attr:function(a,b,c){var d=G(b);if(ab[d])if(A(c))c?(a[b]=!0,a.setAttribute(b,d)):(a[b]=!1,a.removeAttribute(d));else return a[b]||(a.attributes.getNamedItem(b)||w).specified?d:v;else if(A(c))a.setAttribute(b,c);else if(a.getAttribute)return a=a.getAttribute(b,2),null===a?v:a},prop:function(a,b,c){if(A(c))a[b]=c;else return a[b]},text:function(){function a(a,d){var e=b[a.nodeType];if(J(d))return e?
a[e]:"";a[e]=d}var b=[];9>R?(b[1]="innerText",b[3]="nodeValue"):b[1]=b[3]="textContent";a.$dv="";return a}(),val:function(a,b){if(J(b)){if("SELECT"===Aa(a)&&a.multiple){var c=[];q(a.options,function(a){a.selected&&c.push(a.value||a.text)});return 0===c.length?null:c}return a.value}a.value=b},html:function(a,b){if(J(b))return a.innerHTML;for(var c=0,d=a.childNodes;c<d.length;c++)Ka(d[c]);a.innerHTML=b}},function(a,b){O.prototype[b]=function(b,d){var e,g;if((2==a.length&&a!==Za&&a!==Tb?b:d)===v){if(Q(b)){for(e=
0;e<this.length;e++)if(a===Qb)a(this[e],b);else for(g in b)a(this[e],g,b[g]);return this}e=a.$dv;g=e==v?Math.min(this.length,1):this.length;for(var k=0;k<g;k++){var f=a(this[k],b,d);e=e?e+f:f}return e}for(e=0;e<this.length;e++)a(this[e],b,d);return this}});q({removeData:Ob,dealoc:Ka,on:function b(c,d,e,g){if(A(g))throw tb("onargs");var k=ha(c,"events"),f=ha(c,"handle");k||ha(c,"events",k={});f||ha(c,"handle",f=Nc(c,k));q(d.split(" "),function(d){var g=k[d];if(!g){if("mouseenter"==d||"mouseleave"==
d){var m=N.body.contains||N.body.compareDocumentPosition?function(b,c){var d=9===b.nodeType?b.documentElement:b,e=c&&c.parentNode;return b===e||!!(e&&1===e.nodeType&&(d.contains?d.contains(e):b.compareDocumentPosition&&b.compareDocumentPosition(e)&16))}:function(b,c){if(c)for(;c=c.parentNode;)if(c===b)return!0;return!1};k[d]=[];b(c,{mouseleave:"mouseout",mouseenter:"mouseover"}[d],function(b){var c=b.relatedTarget;c&&(c===this||m(this,c))||f(b,d)})}else vc(c,d,f),k[d]=[];g=k[d]}g.push(e)})},off:Pb,
replaceWith:function(b,c){var d,e=b.parentNode;Ka(b);q(new O(c),function(c){d?e.insertBefore(c,d.nextSibling):e.replaceChild(c,b);d=c})},children:function(b){var c=[];q(b.childNodes,function(b){1===b.nodeType&&c.push(b)});return c},contents:function(b){return b.childNodes||[]},append:function(b,c){q(new O(c),function(c){1!==b.nodeType&&11!==b.nodeType||b.appendChild(c)})},prepend:function(b,c){if(1===b.nodeType){var d=b.firstChild;q(new O(c),function(c){b.insertBefore(c,d)})}},wrap:function(b,c){c=
C(c)[0];var d=b.parentNode;d&&d.replaceChild(c,b);c.appendChild(b)},remove:function(b){Ka(b);var c=b.parentNode;c&&c.removeChild(b)},after:function(b,c){var d=b,e=b.parentNode;q(new O(c),function(b){e.insertBefore(b,d.nextSibling);d=b})},addClass:Sb,removeClass:Rb,toggleClass:function(b,c,d){J(d)&&(d=!Za(b,c));(d?Sb:Rb)(b,c)},parent:function(b){return(b=b.parentNode)&&11!==b.nodeType?b:null},next:function(b){if(b.nextElementSibling)return b.nextElementSibling;for(b=b.nextSibling;null!=b&&1!==b.nodeType;)b=
b.nextSibling;return b},find:function(b,c){return b.getElementsByTagName(c)},clone:vb,triggerHandler:function(b,c,d){c=(ha(b,"events")||{})[c];d=d||{preventDefault:w,stopPropagation:w};q(c,function(c){c.call(b,d)})}},function(b,c){O.prototype[c]=function(c,e,g){for(var k,f=0;f<this.length;f++)k==v?(k=b(this[f],c,e,g),k!==v&&(k=C(k))):ub(k,b(this[f],c,e,g));return k==v?this:k};O.prototype.bind=O.prototype.on;O.prototype.unbind=O.prototype.off});Ma.prototype={put:function(b,c){this[za(b)]=c},get:function(b){return this[za(b)]},
remove:function(b){var c=this[b=za(b)];delete this[b];return c}};var Pc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Qc=/,/,Rc=/^\s*(_?)(\S+?)\1\s*$/,Oc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Na=M("$injector"),Id=M("$animate"),Jd=["$provide",function(b){this.$$selectors={};this.register=function(c,d){var e=c+"-animation";if(c&&"."!=c.charAt(0))throw Id("notcsel",c);this.$$selectors[c.substr(1)]=e;b.factory(e,d)};this.$get=["$timeout",function(b){return{enter:function(d,e,g,k){g=g&&g[g.length-1];var f=e&&e[0]||
g&&g.parentNode,l=g&&g.nextSibling||null;q(d,function(b){f.insertBefore(b,l)});b(k||w,0,!1)},leave:function(d,e){d.remove();b(e||w,0,!1)},move:function(b,c,g,k){this.enter(b,c,g,k)},addClass:function(d,e,g){e=z(e)?e:I(e)?e.join(" "):"";d.addClass(e);b(g||w,0,!1)},removeClass:function(d,e,g){e=z(e)?e:I(e)?e.join(" "):"";d.removeClass(e);b(g||w,0,!1)},enabled:w}}]}],ea=M("$compile");Xb.$inject=["$provide"];var Zc=/^(x[\:\-_]|data[\:\-_])/i,fd=T.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(b){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(c){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(d){}throw M("$httpBackend")("noxhr");
},cc=M("$interpolate"),bc=/^([^:]+):\/\/(\w+:{0,1}\w*@)?(\{?[\w\.-]*\}?)(:([0-9]+))?(\/[^\?#]*)?(\?([^#]*))?(#(.*))?$/,gc=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,id={http:80,https:443,ftp:21},zb=M("$location");ic.prototype=Ab.prototype=hc.prototype={$$html5:!1,$$replace:!1,absUrl:cb("$$absUrl"),url:function(b,c){if(J(b))return this.$$url;var d=gc.exec(b);d[1]&&this.path(decodeURIComponent(d[1]));(d[2]||d[1])&&this.search(d[3]||"");this.hash(d[5]||"",c);return this},protocol:cb("$$protocol"),host:cb("$$host"),
port:cb("$$port"),path:jc("$$path",function(b){return"/"==b.charAt(0)?b:"/"+b}),search:function(b,c){switch(arguments.length){case 0:return this.$$search;case 1:if(z(b))this.$$search=Kb(b);else if(Q(b))this.$$search=b;else throw zb("isrcharg");break;default:c==v||null==c?delete this.$$search[b]:this.$$search[b]=c}this.$$compose();return this},hash:jc("$$hash",wa),replace:function(){this.$$replace=!0;return this}};var Sa=M("$parse"),Ta={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},
undefined:w,"+":function(b,c,d,e){d=d(b,c);e=e(b,c);return A(d)?A(e)?d+e:d:A(e)?e:v},"-":function(b,c,d,e){d=d(b,c);e=e(b,c);return(A(d)?d:0)-(A(e)?e:0)},"*":function(b,c,d,e){return d(b,c)*e(b,c)},"/":function(b,c,d,e){return d(b,c)/e(b,c)},"%":function(b,c,d,e){return d(b,c)%e(b,c)},"^":function(b,c,d,e){return d(b,c)^e(b,c)},"=":w,"===":function(b,c,d,e){return d(b,c)===e(b,c)},"!==":function(b,c,d,e){return d(b,c)!==e(b,c)},"==":function(b,c,d,e){return d(b,c)==e(b,c)},"!=":function(b,c,d,e){return d(b,
c)!=e(b,c)},"<":function(b,c,d,e){return d(b,c)<e(b,c)},">":function(b,c,d,e){return d(b,c)>e(b,c)},"<=":function(b,c,d,e){return d(b,c)<=e(b,c)},">=":function(b,c,d,e){return d(b,c)>=e(b,c)},"&&":function(b,c,d,e){return d(b,c)&&e(b,c)},"||":function(b,c,d,e){return d(b,c)||e(b,c)},"&":function(b,c,d,e){return d(b,c)&e(b,c)},"|":function(b,c,d,e){return e(b,c)(b,c,d(b,c))},"!":function(b,c,d){return!d(b,c)}},md={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Bb={},Ca=M("$sce"),ca={HTML:"html",
CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};nc.$inject=["$provide"];oc.$inject=["$locale"];qc.$inject=["$locale"];var tc=".",Fd={yyyy:S("FullYear",4),yy:S("FullYear",2,0,!0),y:S("FullYear",1),MMMM:eb("Month"),MMM:eb("Month",!0),MM:S("Month",2,1),M:S("Month",1,1),dd:S("Date",2),d:S("Date",1),HH:S("Hours",2),H:S("Hours",1),hh:S("Hours",2,-12),h:S("Hours",1,-12),mm:S("Minutes",2),m:S("Minutes",1),ss:S("Seconds",2),s:S("Seconds",1),sss:S("Milliseconds",3),EEEE:eb("Day"),EEE:eb("Day",!0),a:function(b,
c){return 12>b.getHours()?c.AMPMS[0]:c.AMPMS[1]},Z:function(b){b=-1*b.getTimezoneOffset();return b=(0<=b?"+":"")+(Cb(Math[0<b?"floor":"ceil"](b/60),2)+Cb(Math.abs(b%60),2))}},Ed=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,Dd=/^\d+$/;pc.$inject=["$locale"];var Bd=W(G),Cd=W(Ba);rc.$inject=["$parse"];var Kd=W({restrict:"E",compile:function(b,c){8>=R&&(c.href||c.name||c.$set("href",""),b.append(N.createComment("IE fix")));return function(b,c){c.on("click",function(b){c.attr("href")||
b.preventDefault()})}}}),Eb={};q(ab,function(b,c){if("multiple"!=b){var d=ka("ng-"+c);Eb[d]=function(){return{priority:100,compile:function(){return function(b,g,k){b.$watch(k[d],function(b){k.$set(c,!!b)})}}}}}});q(["src","srcset","href"],function(b){var c=ka("ng-"+b);Eb[c]=function(){return{priority:99,link:function(d,e,g){g.$observe(c,function(c){c&&(g.$set(b,c),R&&e.prop(b,g[b]))})}}}});var hb={$addControl:w,$removeControl:w,$setValidity:w,$setDirty:w,$setPristine:w};uc.$inject=["$element","$attrs",
"$scope"];var wc=function(b){return["$timeout",function(c){var d={name:"form",restrict:"E",controller:uc,compile:function(){return{pre:function(b,d,k,f){if(!k.action){var l=function(b){b.preventDefault?b.preventDefault():b.returnValue=!1};vc(d[0],"submit",l);d.on("$destroy",function(){c(function(){wb(d[0],"submit",l)},0,!1)})}var h=d.parent().controller("form"),m=k.name||k.ngForm;m&&db(b,m,f,m);if(h)d.on("$destroy",function(){h.$removeControl(f);m&&db(b,m,v,m);F(f,hb)})}}}};return b?F(aa(d),{restrict:"EAC"}):
d}]},Ld=wc(),Md=wc(!0),Nd=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Od=/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}$/,Pd=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,xc={text:jb,number:function(b,c,d,e,g,k){jb(b,c,d,e,g,k);e.$parsers.push(function(b){var c=$(b);if(c||Pd.test(b))return e.$setValidity("number",!0),""===b?null:c?b:parseFloat(b);e.$setValidity("number",!1);return v});e.$formatters.push(function(b){return $(b)?"":""+b});if(d.min){var f=parseFloat(d.min);
b=function(b){if(!$(b)&&b<f)return e.$setValidity("min",!1),v;e.$setValidity("min",!0);return b};e.$parsers.push(b);e.$formatters.push(b)}if(d.max){var l=parseFloat(d.max);d=function(b){if(!$(b)&&b>l)return e.$setValidity("max",!1),v;e.$setValidity("max",!0);return b};e.$parsers.push(d);e.$formatters.push(d)}e.$formatters.push(function(b){if($(b)||lb(b))return e.$setValidity("number",!0),b;e.$setValidity("number",!1);return v})},url:function(b,c,d,e,g,k){jb(b,c,d,e,g,k);b=function(b){if($(b)||Nd.test(b))return e.$setValidity("url",
!0),b;e.$setValidity("url",!1);return v};e.$formatters.push(b);e.$parsers.push(b)},email:function(b,c,d,e,g,k){jb(b,c,d,e,g,k);b=function(b){if($(b)||Od.test(b))return e.$setValidity("email",!0),b;e.$setValidity("email",!1);return v};e.$formatters.push(b);e.$parsers.push(b)},radio:function(b,c,d,e){J(d.name)&&c.attr("name",Ua());c.on("click",function(){c[0].checked&&b.$apply(function(){e.$setViewValue(d.value)})});e.$render=function(){c[0].checked=d.value==e.$viewValue};d.$observe("value",e.$render)},
checkbox:function(b,c,d,e){var g=d.ngTrueValue,k=d.ngFalseValue;z(g)||(g=!0);z(k)||(k=!1);c.on("click",function(){b.$apply(function(){e.$setViewValue(c[0].checked)})});e.$render=function(){c[0].checked=e.$viewValue};e.$formatters.push(function(b){return b===g});e.$parsers.push(function(b){return b?g:k})},hidden:w,button:w,submit:w,reset:w},yc=["$browser","$sniffer",function(b,c){return{restrict:"E",require:"?ngModel",link:function(d,e,g,k){k&&(xc[G(g.type)]||xc.text)(d,e,g,k,c,b)}}}],gb="ng-valid",
fb="ng-invalid",Da="ng-pristine",ib="ng-dirty",Qd=["$scope","$exceptionHandler","$attrs","$element","$parse",function(b,c,d,e,g){function k(b,c){c=c?"-"+pb(c,"-"):"";e.removeClass((b?fb:gb)+c).addClass((b?gb:fb)+c)}this.$modelValue=this.$viewValue=Number.NaN;this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$name=d.name;var f=g(d.ngModel),l=f.assign;if(!l)throw M("ngModel")("nonassign",d.ngModel,ga(e));this.$render=
w;var h=e.inheritedData("$formController")||hb,m=0,p=this.$error={};e.addClass(Da);k(!0);this.$setValidity=function(b,c){p[b]!==!c&&(c?(p[b]&&m--,m||(k(!0),this.$valid=!0,this.$invalid=!1)):(k(!1),this.$invalid=!0,this.$valid=!1,m++),p[b]=!c,k(c,b),h.$setValidity(b,c,this))};this.$setPristine=function(){this.$dirty=!1;this.$pristine=!0;e.removeClass(ib).addClass(Da)};this.$setViewValue=function(d){this.$viewValue=d;this.$pristine&&(this.$dirty=!0,this.$pristine=!1,e.removeClass(Da).addClass(ib),h.$setDirty());
q(this.$parsers,function(b){d=b(d)});this.$modelValue!==d&&(this.$modelValue=d,l(b,d),q(this.$viewChangeListeners,function(b){try{b()}catch(d){c(d)}}))};var n=this;b.$watch(function(){var c=f(b);if(n.$modelValue!==c){var d=n.$formatters,e=d.length;for(n.$modelValue=c;e--;)c=d[e](c);n.$viewValue!==c&&(n.$viewValue=c,n.$render())}})}],Rd=function(){return{require:["ngModel","^?form"],controller:Qd,link:function(b,c,d,e){var g=e[0],k=e[1]||hb;k.$addControl(g);c.on("$destroy",function(){k.$removeControl(g)})}}},
Sd=W({require:"ngModel",link:function(b,c,d,e){e.$viewChangeListeners.push(function(){b.$eval(d.ngChange)})}}),zc=function(){return{require:"?ngModel",link:function(b,c,d,e){if(e){d.required=!0;var g=function(b){if(d.required&&($(b)||!1===b))e.$setValidity("required",!1);else return e.$setValidity("required",!0),b};e.$formatters.push(g);e.$parsers.unshift(g);d.$observe("required",function(){g(e.$viewValue)})}}}},Td=function(){return{require:"ngModel",link:function(b,c,d,e){var g=(b=/\/(.*)\//.exec(d.ngList))&&
RegExp(b[1])||d.ngList||",";e.$parsers.push(function(b){var c=[];b&&q(b.split(g),function(b){b&&c.push(Z(b))});return c});e.$formatters.push(function(b){return I(b)?b.join(", "):v})}}},Ud=/^(true|false|\d+)$/,Vd=function(){return{priority:100,compile:function(b,c){return Ud.test(c.ngValue)?function(b,c,g){g.$set("value",b.$eval(g.ngValue))}:function(b,c,g){b.$watch(g.ngValue,function(b){g.$set("value",b)})}}}},Wd=ra(function(b,c,d){c.addClass("ng-binding").data("$binding",d.ngBind);b.$watch(d.ngBind,
function(b){c.text(b==v?"":b)})}),Xd=["$interpolate",function(b){return function(c,d,e){c=b(d.attr(e.$attr.ngBindTemplate));d.addClass("ng-binding").data("$binding",c);e.$observe("ngBindTemplate",function(b){d.text(b)})}}],Yd=["$sce",function(b){return function(c,d,e){d.addClass("ng-binding").data("$binding",e.ngBindHtml);c.$watch(b.parseAsHtml(e.ngBindHtml),function(b){d.html(b||"")})}}],Zd=Db("",!0),$d=Db("Odd",0),ae=Db("Even",1),be=ra({compile:function(b,c){c.$set("ngCloak",v);b.removeClass("ng-cloak")}}),
ce=[function(){return{scope:!0,controller:"@"}}],de=["$sniffer",function(b){return{priority:1E3,compile:function(){b.csp=!0}}}],Ac={};q("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur".split(" "),function(b){var c=ka("ng-"+b);Ac[c]=["$parse",function(d){return function(e,g,k){var f=d(k[c]);g.on(G(b),function(b){e.$apply(function(){f(e,{$event:b})})})}}]});var ee=["$animate",function(b){return{transclude:"element",priority:1E3,
terminal:!0,restrict:"A",compile:function(c,d,e){return function(c,d,f){var l,h;c.$watch(f.ngIf,function(f){l&&(b.leave(l),l=v);h&&(h.$destroy(),h=v);Ga(f)&&(h=c.$new(),e(h,function(c){l=c;b.enter(c,d.parent(),d)}))})}}}}],fe=["$http","$templateCache","$anchorScroll","$compile","$animate","$sce",function(b,c,d,e,g,k){return{restrict:"ECA",terminal:!0,priority:500,compile:function(f,l){var h=l.ngInclude||l.src,m=l.onload||"",p=l.autoscroll;f.html("");var n=C(N.createComment(" ngInclude: "+h+" "));
f.replaceWith(n);return function(l){var q=0,v,u,w=function(){v&&(v.$destroy(),v=null);u&&(g.leave(u),u=null)};l.$watch(k.parseAsResourceUrl(h),function(k){var h=++q;k?(b.get(k,{cache:c}).success(function(b){if(h===q){var c=l.$new();w();v=c;u=f.clone();u.html(b);g.enter(u,null,n);e(u,!1,499)(v);!A(p)||p&&!l.$eval(p)||d();v.$emit("$includeContentLoaded");l.$eval(m)}}).error(function(){h===q&&w()}),l.$emit("$includeContentRequested")):w()})}}}}],ge=ra({compile:function(){return{pre:function(b,c,d){b.$eval(d.ngInit)}}}}),
he=ra({terminal:!0,priority:1E3}),ie=["$locale","$interpolate",function(b,c){var d=/{}/g;return{restrict:"EA",link:function(e,g,k){var f=k.count,l=k.$attr.when&&g.attr(k.$attr.when),h=k.offset||0,m=e.$eval(l)||{},p={},n=c.startSymbol(),s=c.endSymbol(),r=/^when(Minus)?(.+)$/;q(k,function(b,c){r.test(c)&&(m[G(c.replace("when","").replace("Minus","-"))]=g.attr(k.$attr[c]))});q(m,function(b,e){p[e]=c(b.replace(d,n+f+"-"+h+s))});e.$watch(function(){var c=parseFloat(e.$eval(f));if(isNaN(c))return"";c in
m||(c=b.pluralCat(c-h));return p[c](e,g,!0)},function(b){g.text(b)})}}}],je=["$parse","$animate",function(b,c){var d=M("ngRepeat");return{transclude:"element",priority:1E3,terminal:!0,compile:function(e,g,k){return function(e,g,h){var m=h.ngRepeat,p=m.match(/^\s*(.+)\s+in\s+(.*?)\s*(\s+track\s+by\s+(.+)\s*)?$/),n,s,r,v,u,w,x,B={$id:za};if(!p)throw d("iexp",m);h=p[1];u=p[2];(p=p[4])?(n=b(p),s=function(b,c,d){x&&(B[x]=b);B[w]=c;B.$index=d;return n(e,B)}):(r=function(b,c){return za(c)},v=function(b){return b});
p=h.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);if(!p)throw d("iidexp",h);w=p[3]||p[1];x=p[2];var t={};e.$watchCollection(u,function(b){var h,n,p=g[0],u,B={},z,D,A,I,K,E,F=[];if(kb(b))K=b,s=s||r;else{s=s||v;K=[];for(A in b)b.hasOwnProperty(A)&&"$"!=A.charAt(0)&&K.push(A);K.sort()}z=K.length;n=F.length=K.length;for(h=0;h<n;h++)if(A=b===K?h:K[h],I=b[A],u=s(A,I,h),t.hasOwnProperty(u))E=t[u],delete t[u],B[u]=E,F[h]=E;else{if(B.hasOwnProperty(u))throw q(F,function(b){b&&b.startNode&&(t[b.id]=
b)}),d("dupes",m,u);F[h]={id:u};B[u]=!1}for(A in t)t.hasOwnProperty(A)&&(E=t[A],c.leave(E.elements),q(E.elements,function(b){b.$$NG_REMOVED=!0}),E.scope.$destroy());h=0;for(n=K.length;h<n;h++){A=b===K?h:K[h];I=b[A];E=F[h];if(E.startNode){D=E.scope;u=p;do u=u.nextSibling;while(u&&u.$$NG_REMOVED);E.startNode!=u&&c.move(E.elements,null,C(p));p=E.endNode}else D=e.$new();D[w]=I;x&&(D[x]=A);D.$index=h;D.$first=0===h;D.$last=h===z-1;D.$middle=!(D.$first||D.$last);D.$odd=!(D.$even=0==h%2);E.startNode||k(D,
function(b){c.enter(b,null,C(p));p=b;E.scope=D;E.startNode=b[0];E.elements=b;E.endNode=b[b.length-1];B[E.id]=E})}t=B})}}}}],ke=["$animate",function(b){return function(c,d,e){c.$watch(e.ngShow,function(c){b[Ga(c)?"removeClass":"addClass"](d,"ng-hide")})}}],le=["$animate",function(b){return function(c,d,e){c.$watch(e.ngHide,function(c){b[Ga(c)?"addClass":"removeClass"](d,"ng-hide")})}}],me=ra(function(b,c,d){b.$watch(d.ngStyle,function(b,d){d&&b!==d&&q(d,function(b,d){c.css(d,"")});b&&c.css(b)},!0)}),
ne=["$animate",function(b){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(c,d,e,g){var k,f,l=[];c.$watch(e.ngSwitch||e.on,function(d){for(var m=0,p=l.length;m<p;m++)l[m].$destroy(),b.leave(f[m]);f=[];l=[];if(k=g.cases["!"+d]||g.cases["?"])c.$eval(e.change),q(k,function(d){var e=c.$new();l.push(e);d.transclude(e,function(c){var e=d.element;f.push(c);b.enter(c,e.parent(),e)})})})}}}],oe=ra({transclude:"element",priority:500,require:"^ngSwitch",
compile:function(b,c,d){return function(b,g,k,f){f.cases["!"+c.ngSwitchWhen]=f.cases["!"+c.ngSwitchWhen]||[];f.cases["!"+c.ngSwitchWhen].push({transclude:d,element:g})}}}),pe=ra({transclude:"element",priority:500,require:"^ngSwitch",compile:function(b,c,d){return function(b,c,k,f){f.cases["?"]=f.cases["?"]||[];f.cases["?"].push({transclude:d,element:c})}}}),qe=ra({controller:["$transclude","$element","$scope",function(b,c,d){d.$evalAsync(function(){b(function(b){c.append(b)})})}]}),re=["$templateCache",
function(b){return{restrict:"E",terminal:!0,compile:function(c,d){"text/ng-template"==d.type&&b.put(d.id,c[0].text)}}}],se=W({terminal:!0}),te=["$compile","$parse",function(b,c){var d=/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*?)(?:\s+track\s+by\s+(.*?))?$/,e={$setViewValue:w};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(b,c,d){var l=this,
h={},m=e,p;l.databound=d.ngModel;l.init=function(b,c,d){m=b;p=d};l.addOption=function(c){h[c]=!0;m.$viewValue==c&&(b.val(c),p.parent()&&p.remove())};l.removeOption=function(b){this.hasOption(b)&&(delete h[b],m.$viewValue==b&&this.renderUnknownOption(b))};l.renderUnknownOption=function(c){c="? "+za(c)+" ?";p.val(c);b.prepend(p);b.val(c);p.prop("selected",!0)};l.hasOption=function(b){return h.hasOwnProperty(b)};c.$on("$destroy",function(){l.renderUnknownOption=w})}],link:function(e,k,f,l){function h(b,
c,d,e){d.$render=function(){var b=d.$viewValue;e.hasOption(b)?(t.parent()&&t.remove(),c.val(b),""===b&&z.prop("selected",!0)):J(b)&&z?c.val(""):e.renderUnknownOption(b)};c.on("change",function(){b.$apply(function(){t.parent()&&t.remove();d.$setViewValue(c.val())})})}function m(b,c,d){var e;d.$render=function(){var b=new Ma(d.$viewValue);q(c.find("option"),function(c){c.selected=A(b.get(c.value))})};b.$watch(function(){xa(e,d.$viewValue)||(e=aa(d.$viewValue),d.$render())});c.on("change",function(){b.$apply(function(){var b=
[];q(c.find("option"),function(c){c.selected&&b.push(c.value)});d.$setViewValue(b)})})}function p(e,f,g){function k(){var b={"":[]},c=[""],d,h,w,z,y;w=g.$modelValue;z=t(e)||[];var C=n?Fb(z):z,F,D,G;D={};y=!1;var H,J;if(r)if(s&&I(w))for(y=new Ma([]),h=0;h<w.length;h++)D[m]=w[h],y.put(s(e,D),w[h]);else y=new Ma(w);for(G=0;F=C.length,G<F;G++)D[m]=z[n?D[n]=C[G]:G],d=p(e,D)||"",(h=b[d])||(h=b[d]=[],c.push(d)),r?d=y.remove(s?s(e,D):q(e,D))!=v:(s?(d={},d[m]=w,d=s(e,d)===s(e,D)):d=w===q(e,D),y=y||d),H=l(e,
D),H=H===v?"":H,h.push({id:s?s(e,D):n?C[G]:G,label:H,selected:d});r||(u||null===w?b[""].unshift({id:"",label:"",selected:!y}):y||b[""].unshift({id:"?",label:"",selected:!0}));D=0;for(C=c.length;D<C;D++){d=c[D];h=b[d];A.length<=D?(w={element:B.clone().attr("label",d),label:h.label},z=[w],A.push(z),f.append(w.element)):(z=A[D],w=z[0],w.label!=d&&w.element.attr("label",w.label=d));H=null;G=0;for(F=h.length;G<F;G++)d=h[G],(y=z[G+1])?(H=y.element,y.label!==d.label&&H.text(y.label=d.label),y.id!==d.id&&
H.val(y.id=d.id),H[0].selected!==d.selected&&H.prop("selected",y.selected=d.selected)):(""===d.id&&u?J=u:(J=x.clone()).val(d.id).attr("selected",d.selected).text(d.label),z.push({element:J,label:d.label,id:d.id,selected:d.selected}),H?H.after(J):w.element.append(J),H=J);for(G++;z.length>G;)z.pop().element.remove()}for(;A.length>D;)A.pop()[0].element.remove()}var h;if(!(h=w.match(d)))throw M("ngOptions")("iexp",w,ga(f));var l=c(h[2]||h[1]),m=h[4]||h[6],n=h[5],p=c(h[3]||""),q=c(h[2]?h[1]:m),t=c(h[7]),
s=h[8]?c(h[8]):null,A=[[{element:f,label:""}]];u&&(b(u)(e),u.removeClass("ng-scope"),u.remove());f.html("");f.on("change",function(){e.$apply(function(){var b,c=t(e)||[],d={},h,k,l,p,u,w;if(r)for(k=[],p=0,w=A.length;p<w;p++)for(b=A[p],l=1,u=b.length;l<u;l++){if((h=b[l].element)[0].selected){h=h.val();n&&(d[n]=h);if(s)for(var x=0;x<c.length&&(d[m]=c[x],s(e,d)!=h);x++);else d[m]=c[h];k.push(q(e,d))}}else if(h=f.val(),"?"==h)k=v;else if(""==h)k=null;else if(s)for(x=0;x<c.length;x++){if(d[m]=c[x],s(e,
d)==h){k=q(e,d);break}}else d[m]=c[h],n&&(d[n]=h),k=q(e,d);g.$setViewValue(k)})});g.$render=k;e.$watch(k)}if(l[1]){var n=l[0],s=l[1],r=f.multiple,w=f.ngOptions,u=!1,z,x=C(N.createElement("option")),B=C(N.createElement("optgroup")),t=x.clone();l=0;for(var F=k.children(),G=F.length;l<G;l++)if(""==F[l].value){z=u=F.eq(l);break}n.init(s,u,t);if(r&&(f.required||f.ngRequired)){var H=function(b){s.$setValidity("required",!f.required||b&&b.length);return b};s.$parsers.push(H);s.$formatters.unshift(H);f.$observe("required",
function(){H(s.$viewValue)})}w?p(e,k,s):r?m(e,k,s):h(e,k,s,n)}}}}],ue=["$interpolate",function(b){var c={addOption:w,removeOption:w};return{restrict:"E",priority:100,compile:function(d,e){if(J(e.value)){var g=b(d.text(),!0);g||e.$set("value",d.text())}return function(b,d,e){var h=d.parent(),m=h.data("$selectController")||h.parent().data("$selectController");m&&m.databound?d.prop("selected",!1):m=c;g?b.$watch(g,function(b,c){e.$set("value",b);b!==c&&m.removeOption(c);m.addOption(b)}):m.addOption(e.value);
d.on("$destroy",function(){m.removeOption(e.value)})}}}}],ve=W({restrict:"E",terminal:!0});(ya=T.jQuery)?(C=ya,F(ya.fn,{scope:Pa.scope,controller:Pa.controller,injector:Pa.injector,inheritedData:Pa.inheritedData}),sb("remove",!0,!0,!1),sb("empty",!1,!1,!1),sb("html",!1,!1,!0)):C=O;Ha.element=C;(function(b){F(b,{bootstrap:Mb,copy:aa,extend:F,equals:xa,element:C,forEach:q,injector:Nb,noop:w,bind:nb,toJson:ma,fromJson:Ib,identity:wa,isUndefined:J,isDefined:A,isString:z,isFunction:H,isObject:Q,isNumber:lb,
isElement:Dc,isArray:I,$$minErr:M,version:Hd,isDate:Ea,lowercase:G,uppercase:Ba,callbacks:{counter:0}});Oa=Jc(T);try{Oa("ngLocale")}catch(c){Oa("ngLocale",[]).provider("$locale",hd)}Oa("ng",["ngLocale"],["$provide",function(b){b.provider("$compile",Xb).directive({a:Kd,input:yc,textarea:yc,form:Ld,script:re,select:te,style:ve,option:ue,ngBind:Wd,ngBindHtml:Yd,ngBindTemplate:Xd,ngClass:Zd,ngClassEven:ae,ngClassOdd:$d,ngCsp:de,ngCloak:be,ngController:ce,ngForm:Md,ngHide:le,ngIf:ee,ngInclude:fe,ngInit:ge,
ngNonBindable:he,ngPluralize:ie,ngRepeat:je,ngShow:ke,ngStyle:me,ngSwitch:ne,ngSwitchWhen:oe,ngSwitchDefault:pe,ngOptions:se,ngTransclude:qe,ngModel:Rd,ngList:Td,ngChange:Sd,required:zc,ngRequired:zc,ngValue:Vd}).directive(Eb).directive(Ac);b.provider({$anchorScroll:Sc,$animate:Jd,$browser:Vc,$cacheFactory:Wc,$controller:$c,$document:ad,$exceptionHandler:bd,$filter:nc,$interpolate:gd,$http:cd,$httpBackend:dd,$location:jd,$log:kd,$parse:od,$rootScope:rd,$q:pd,$sce:td,$sceDelegate:sd,$sniffer:ud,$templateCache:Xc,
$timeout:vd,$window:xd,$$urlUtils:wd})}])})(Ha);C(N).ready(function(){Hc(N,Mb)})})(window,document);angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}</style>');
/*
//@ sourceMappingURL=../angular.min.html.map
*/