HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/vebon.komma.pro/wwwroot/js/kms/ui-bound.js
!function(){"use strict";var e={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(t){var n=t.which;switch(n){case e.COMMAND:case e.SHIFT:case e.CTRL:case e.ALT:return!0}return!!(t.metaKey||t.ctrlKey||t.altKey)},isFunctionKey:function(e){return e=e.which?e.which:e,e>=112&&123>=e},isVerticalMovement:function(t){return~[e.UP,e.DOWN].indexOf(t)},isHorizontalMovement:function(t){return~[e.LEFT,e.RIGHT,e.BACKSPACE,e.DELETE].indexOf(t)},toSeparator:function(t){var n={ENTER:"\n",TAB:"\t",SPACE:" "}[t];return n?n:e[t]?void 0:t}};void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(e){return angular.element(this[0].querySelectorAll(e))}),void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(e){for(var t=this[0],n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(n.bind(t)(e))return t;t=t.parentElement}return!1});var t=0,n=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",removeSelected:!0,resetSearchInput:!0,generateId:function(){return t++},appendToBody:!1}).service("uiSelectMinErr",function(){var e=angular.$$minErr("ui.select");return function(){var t=e.apply(this,arguments),n=t.message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(n)}}).directive("uisTranscludeAppend",function(){return{link:function(e,t,n,i,a){a(e,function(e){t.append(e)})}}}).filter("highlight",function(){function e(e){return(""+e).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,n){return n&&t?(""+t).replace(new RegExp(e(n),"gi"),'<span class="ui-select-highlight">$&</span>'):t}}).factory("uisOffset",["$document","$window",function(e,t){return function(n){var i=n[0].getBoundingClientRect();return{width:i.width||n.prop("offsetWidth"),height:i.height||n.prop("offsetHeight"),top:i.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:i.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}}}]);n.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(e,t,n,i,a){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){t.addClass("ui-select-choices");var n=t.parent().attr("theme")||e.theme;return n+"/choices.tpl.html"},compile:function(i,r){if(!r.repeat)throw n("repeat","Expected 'repeat' expression.");var o=r.groupBy,s=r.groupFilter;if(o){var l=i.querySelectorAll(".ui-select-choices-group");if(1!==l.length)throw n("rows","Expected 1 .ui-select-choices-group but got '{0}'.",l.length);l.attr("ng-repeat",t.getGroupNgRepeatExpression())}var c=t.parse(r.repeat),u=i.querySelectorAll(".ui-select-choices-row");if(1!==u.length)throw n("rows","Expected 1 .ui-select-choices-row but got '{0}'.",u.length);u.attr("ng-repeat",c.repeatExpression(o)).attr("ng-if","$select.open");var d=i.querySelectorAll(".ui-select-choices-row-inner");if(1!==d.length)throw n("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",d.length);d.attr("uis-transclude-append","");var p=a.document.addEventListener?u:d;return p.attr("ng-click","$select.select("+c.itemName+",$select.skipFocusser,$event)"),function(t,n,i,a){a.parseRepeatAttr(i.repeat,o,s),a.disableChoiceExpression=i.uiDisableChoice,a.onHighlightCallback=i.onHighlight,a.dropdownPosition=i.position?i.position.toLowerCase():e.dropdownPosition,t.$on("$destroy",function(){u.remove()}),t.$watch("$select.search",function(e){e&&!a.open&&a.multiple&&a.activate(!1,!0),a.activeIndex=a.tagging.isActivated?-1:0,!i.minimumInputLength||a.search.length>=i.minimumInputLength?a.refresh(i.refresh):a.items=[]}),i.$observe("refreshDelay",function(){var n=t.$eval(i.refreshDelay);a.refreshDelay=void 0!==n?n:e.refreshDelay})}}}}]),n.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(t,n,i,a,r,o,s,l,c,u,d){function p(e,t,n){if(e.findIndex)return e.findIndex(t,n);for(var i,a=Object(e),r=a.length>>>0,o=0;r>o;o++)if(i=a[o],t.call(n,i,o,a))return o;return-1}function f(){$.resetSearchInput&&($.search=w,$.selected&&$.items.length&&!$.multiple&&($.activeIndex=p($.items,function(e){return angular.equals(this,e)},$.selected)))}function h(e,t){var n,i,a=[];for(n=0;n<t.length;n++)for(i=0;i<e.length;i++)e[i].name==[t[n]]&&a.push(e[i]);return a}function m(e,t){var n=x.indexOf(e);t&&-1===n&&x.push(e),!t&&n>-1&&x.splice(n,1)}function g(e){return x.indexOf(e)>-1}function v(e){function t(e,t){var n=i.indexOf(e);t&&-1===n&&i.push(e),!t&&n>-1&&i.splice(n,0)}function n(e){return i.indexOf(e)>-1}if(e){var i=[];$.isLocked=function(e,i){var a=!1,r=$.selected[i];return r&&(e?(a=!!e.$eval($.lockChoiceExpression),t(r,a)):a=n(r)),a}}}function y(t){var n=!0;switch(t){case e.DOWN:!$.open&&$.multiple?$.activate(!1,!0):$.activeIndex<$.items.length-1&&$.activeIndex++;break;case e.UP:!$.open&&$.multiple?$.activate(!1,!0):($.activeIndex>0||0===$.search.length&&$.tagging.isActivated&&$.activeIndex>-1)&&$.activeIndex--;break;case e.TAB:$.multiple&&!$.open||$.select($.items[$.activeIndex],!0);break;case e.ENTER:$.open&&($.tagging.isActivated||$.activeIndex>=0)?$.select($.items[$.activeIndex],$.skipFocusser):$.activate(!1,!0);break;case e.ESC:$.close();break;default:n=!1}return n}function b(){var e=n.querySelectorAll(".ui-select-choices-content"),t=e.querySelectorAll(".ui-select-choices-row");if(t.length<1)throw s("choices","Expected multiple .ui-select-choices-row but got '{0}'.",t.length);if(!($.activeIndex<0)){var i=t[$.activeIndex],a=i.offsetTop+i.clientHeight-e[0].scrollTop,r=e[0].offsetHeight;a>r?e[0].scrollTop+=a-r:a<i.clientHeight&&($.isGrouped&&0===$.activeIndex?e[0].scrollTop=0:e[0].scrollTop-=i.clientHeight-a)}}var $=this,w="";if($.placeholder=l.placeholder,$.searchEnabled=l.searchEnabled,$.sortable=l.sortable,$.refreshDelay=l.refreshDelay,$.paste=l.paste,$.resetSearchInput=l.resetSearchInput,$.removeSelected=l.removeSelected,$.closeOnSelect=!0,$.skipFocusser=!1,$.search=w,$.activeIndex=0,$.items=[],$.open=!1,$.focus=!1,$.disabled=!1,$.selected=void 0,$.dropdownPosition="auto",$.focusser=void 0,$.multiple=void 0,$.disableChoiceExpression=void 0,$.tagging={isActivated:!1,fct:void 0},$.taggingTokens={isActivated:!1,tokens:void 0},$.lockChoiceExpression=void 0,$.clickTriggeredSelect=!1,$.$filter=a,$.$element=n,$.$animate=function(){try{return u.get("$animate")}catch(e){return null}}(),$.searchInput=n.querySelectorAll("input.ui-select-search"),1!==$.searchInput.length)throw s("searchInput","Expected 1 input.ui-select-search but got '{0}'.",$.searchInput.length);$.isEmpty=function(){return angular.isUndefined($.selected)||null===$.selected||""===$.selected||$.multiple&&0===$.selected.length},$.activate=function(e,a){if($.disabled||$.open)$.open&&!$.searchEnabled&&$.close();else{a||f(),t.$broadcast("uis:activate"),$.open=!0,$.activeIndex=$.activeIndex>=$.items.length?0:$.activeIndex,-1===$.activeIndex&&$.taggingLabel!==!1&&($.activeIndex=0);var r=n.querySelectorAll(".ui-select-choices-content"),o=n.querySelectorAll(".ui-select-search");if($.$animate&&$.$animate.on&&$.$animate.enabled(r[0])){var s=function(t,n){"start"===n&&0===$.items.length?($.$animate.off("removeClass",o[0],s),i(function(){$.focusSearchInput(e)})):"close"===n&&($.$animate.off("enter",r[0],s),i(function(){$.focusSearchInput(e)}))};$.items.length>0?$.$animate.on("enter",r[0],s):$.$animate.on("removeClass",o[0],s)}else i(function(){$.focusSearchInput(e),!$.tagging.isActivated&&$.items.length>1&&b()})}},$.focusSearchInput=function(e){$.search=e||$.search,$.searchInput[0].focus()},$.findGroupByName=function(e){return $.groups&&$.groups.filter(function(t){return t.name===e})[0]},$.parseRepeatAttr=function(e,n,i){function a(e){var a=t.$eval(n);if($.groups=[],angular.forEach(e,function(e){var t=angular.isFunction(a)?a(e):e[a],n=$.findGroupByName(t);n?n.items.push(e):$.groups.push({name:t,items:[e]})}),i){var r=t.$eval(i);angular.isFunction(r)?$.groups=r($.groups):angular.isArray(r)&&($.groups=h($.groups,r))}$.items=[],$.groups.forEach(function(e){$.items=$.items.concat(e.items)})}function r(e){$.items=e}$.setItemsFn=n?a:r,$.parserResult=o.parse(e),$.isGrouped=!!n,$.itemProperty=$.parserResult.itemName;var l=$.parserResult.source,u=function(){var e=l(t);t.$uisSource=Object.keys(e).map(function(t){var n={};return n[$.parserResult.keyName]=t,n.value=e[t],n})};$.parserResult.keyName&&(u(),$.parserResult.source=c("$uisSource"+$.parserResult.filters),t.$watch(l,function(e,t){e!==t&&u()},!0)),$.refreshItems=function(e){e=e||$.parserResult.source(t);var n=$.selected;if($.isEmpty()||angular.isArray(n)&&!n.length||!$.multiple||!$.removeSelected)$.setItemsFn(e);else if(void 0!==e&&null!==e){var i=e.filter(function(e){return angular.isArray(n)?n.every(function(t){return!angular.equals(e,t)}):!angular.equals(e,n)});$.setItemsFn(i)}"auto"!==$.dropdownPosition&&"up"!==$.dropdownPosition||t.calculateDropdownPos(),t.$broadcast("uis:refresh")},t.$watchCollection($.parserResult.source,function(e){if(void 0===e||null===e)$.items=[];else{if(!angular.isArray(e))throw s("items","Expected an array but got '{0}'.",e);$.refreshItems(e),angular.isDefined($.ngModel.$modelValue)&&($.ngModel.$modelValue=null)}})};var k;$.refresh=function(e){void 0!==e&&(k&&i.cancel(k),k=i(function(){t.$eval(e)},$.refreshDelay))},$.isActive=function(e){if(!$.open)return!1;var t=$.items.indexOf(e[$.itemProperty]),n=t==$.activeIndex;return!(!n||0>t)&&(n&&!angular.isUndefined($.onHighlightCallback)&&e.$eval($.onHighlightCallback),n)};var S=function(e){return $.selected&&angular.isArray($.selected)&&$.selected.filter(function(t){return angular.equals(t,e)}).length>0},x=[];$.isDisabled=function(e){if($.open){var t=e[$.itemProperty],n=$.items.indexOf(t),i=!1;if(n>=0&&(angular.isDefined($.disableChoiceExpression)||$.multiple)){if(t.isTag)return!1;$.multiple&&(i=S(t)),!i&&angular.isDefined($.disableChoiceExpression)&&(i=!!e.$eval($.disableChoiceExpression)),m(t,i)}return i}},$.select=function(e,n,a){if(void 0===e||!g(e)){if(!$.items&&!$.search&&!$.tagging.isActivated)return;if(!e||!g(e)){if($.clickTriggeredSelect=!1,a&&"click"===a.type&&e&&($.clickTriggeredSelect=!0),$.tagging.isActivated&&$.clickTriggeredSelect===!1){if($.taggingLabel===!1)if($.activeIndex<0){if(void 0===e&&(e=void 0!==$.tagging.fct?$.tagging.fct($.search):$.search),!e||angular.equals($.items[0],e))return}else e=$.items[$.activeIndex];else if(0===$.activeIndex){if(void 0===e)return;if(void 0!==$.tagging.fct&&"string"==typeof e){if(e=$.tagging.fct(e),!e)return}else"string"==typeof e&&(e=e.replace($.taggingLabel,"").trim())}if(S(e))return void $.close(n)}f(),t.$broadcast("uis:select",e);var r={};r[$.parserResult.itemName]=e,i(function(){$.onSelectCallback(t,{$item:e,$model:$.parserResult.modelMapper(t,r)})}),$.closeOnSelect&&$.close(n)}}},$.close=function(e){$.open&&($.ngModel&&$.ngModel.$setTouched&&$.ngModel.$setTouched(),$.open=!1,f(),t.$broadcast("uis:close",e))},$.setFocus=function(){$.focus||$.focusInput[0].focus()},$.clear=function(e){$.select(void 0),e.stopPropagation(),i(function(){$.focusser[0].focus()},0,!1)},$.toggle=function(e){$.open?($.close(),e.preventDefault(),e.stopPropagation()):$.activate()},$.isLocked=function(){return!1},t.$watch(function(){return angular.isDefined($.lockChoiceExpression)&&""!==$.lockChoiceExpression},v);var M=null,D=!1;$.sizeSearchInput=function(){var e=$.searchInput[0],n=$.searchInput.parent().parent()[0],a=function(){return n.clientWidth*!!e.offsetParent},r=function(t){if(0===t)return!1;var n=t-e.offsetLeft-10;return 50>n&&(n=t),$.searchInput.css("width",n+"px"),!0};$.searchInput.css("width","10px"),i(function(){null!==M||r(a())||(M=t.$watch(function(){D||(D=!0,t.$$postDigest(function(){D=!1,r(a())&&(M(),M=null)}))},angular.noop))})},$.searchInput.on("keydown",function(n){var a=n.which;~[e.ENTER,e.ESC].indexOf(a)&&(n.preventDefault(),n.stopPropagation()),t.$apply(function(){var t=!1;if(($.items.length>0||$.tagging.isActivated)&&(y(a)||$.searchEnabled||(n.preventDefault(),n.stopPropagation()),$.taggingTokens.isActivated)){for(var r=0;r<$.taggingTokens.tokens.length;r++)$.taggingTokens.tokens[r]===e.MAP[n.keyCode]&&$.search.length>0&&(t=!0);t&&i(function(){$.searchInput.triggerHandler("tagged");var t=$.search.replace(e.MAP[n.keyCode],"").trim();$.tagging.fct&&(t=$.tagging.fct(t)),t&&$.select(t,!0)})}}),e.isVerticalMovement(a)&&$.items.length>0&&b(),a!==e.ENTER&&a!==e.ESC||(n.preventDefault(),n.stopPropagation())}),$.searchInput.on("paste",function(t){var n;if(n=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(t.originalEvent||t).clipboardData.getData("text/plain"),n=$.search+n,n&&n.length>0)if($.taggingTokens.isActivated){for(var i=[],a=0;a<$.taggingTokens.tokens.length;a++){var r=e.toSeparator($.taggingTokens.tokens[a])||$.taggingTokens.tokens[a];if(n.indexOf(r)>-1){i=n.split(r);break}}0===i.length&&(i=[n]);var o=$.search;angular.forEach(i,function(e){var t=$.tagging.fct?$.tagging.fct(e):e;t&&$.select(t,!0)}),$.search=o||w,t.preventDefault(),t.stopPropagation()}else $.paste&&($.paste(n),$.search=w,t.preventDefault(),t.stopPropagation())}),$.searchInput.on("tagged",function(){i(function(){f()})});var _=r(function(){$.sizeSearchInput()},50);angular.element(d).bind("resize",_),t.$on("$destroy",function(){$.searchInput.off("keyup keydown tagged blur paste"),angular.element(d).off("resize",_)})}]),n.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(e,t,n,i,a,r,o){return{restrict:"EA",templateUrl:function(e,n){var i=n.theme||t.theme;return i+(angular.isDefined(n.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(a,s){var l=/{(.*)}\s*{(.*)}/.exec(s.ngClass);if(l){var c="{"+l[1]+", "+l[2]+"}";s.ngClass=c,a.attr("ng-class",c)}return angular.isDefined(s.multiple)?a.append("<ui-select-multiple/>").removeAttr("multiple"):a.append("<ui-select-single/>"),s.inputId&&(a.querySelectorAll("input.ui-select-search")[0].id=s.inputId),function(a,s,l,c,u){function d(e){if(h.open){var t=!1;if(t=window.jQuery?window.jQuery.contains(s[0],e.target):s[0].contains(e.target),!t&&!h.clickTriggeredSelect){var n;if(h.skipFocusser)n=!0;else{var i=["input","button","textarea","select"],r=angular.element(e.target).controller("uiSelect");n=r&&r!==h,n||(n=~i.indexOf(e.target.tagName.toLowerCase()))}h.close(n),a.$digest()}h.clickTriggeredSelect=!1}}function p(){var t=i(s);v=angular.element('<div class="ui-select-placeholder"></div>'),v[0].style.width=t.width+"px",v[0].style.height=t.height+"px",s.after(v),y=s[0].style.width,e.find("body").append(s),s[0].style.position="absolute",s[0].style.left=t.left+"px",s[0].style.top=t.top+"px",s[0].style.width=t.width+"px"}function f(){null!==v&&(v.replaceWith(s),v=null,s[0].style.position="",s[0].style.left="",s[0].style.top="",s[0].style.width=y,h.setFocus())}var h=c[0],m=c[1];h.generatedId=t.generateId(),h.baseTitle=l.title||"Select box",h.focusserTitle=h.baseTitle+" focus",h.focusserId="focusser-"+h.generatedId,h.closeOnSelect=function(){return angular.isDefined(l.closeOnSelect)?r(l.closeOnSelect)():t.closeOnSelect}(),a.$watch("skipFocusser",function(){var e=a.$eval(l.skipFocusser);h.skipFocusser=void 0!==e?e:t.skipFocusser}),h.onSelectCallback=r(l.onSelect),h.onRemoveCallback=r(l.onRemove),h.ngModel=m,h.choiceGrouped=function(e){return h.isGrouped&&e&&e.name},l.tabindex&&l.$observe("tabindex",function(e){h.focusInput.attr("tabindex",e),s.removeAttr("tabindex")}),a.$watch(function(){return a.$eval(l.searchEnabled)},function(e){h.searchEnabled=void 0!==e?e:t.searchEnabled}),a.$watch("sortable",function(){var e=a.$eval(l.sortable);h.sortable=void 0!==e?e:t.sortable}),l.$observe("limit",function(){h.limit=angular.isDefined(l.limit)?parseInt(l.limit,10):void 0}),a.$watch("removeSelected",function(){var e=a.$eval(l.removeSelected);h.removeSelected=void 0!==e?e:t.removeSelected}),l.$observe("disabled",function(){h.disabled=void 0!==l.disabled&&l.disabled}),l.$observe("resetSearchInput",function(){var e=a.$eval(l.resetSearchInput);h.resetSearchInput=void 0===e||e}),l.$observe("paste",function(){h.paste=a.$eval(l.paste)}),l.$observe("tagging",function(){if(void 0!==l.tagging){var e=a.$eval(l.tagging);h.tagging={isActivated:!0,fct:e!==!0?e:void 0}}else h.tagging={isActivated:!1,fct:void 0}}),l.$observe("taggingLabel",function(){void 0!==l.tagging&&("false"===l.taggingLabel?h.taggingLabel=!1:h.taggingLabel=void 0!==l.taggingLabel?l.taggingLabel:"(new)")}),l.$observe("taggingTokens",function(){if(void 0!==l.tagging){var e=void 0!==l.taggingTokens?l.taggingTokens.split("|"):[",","ENTER"];h.taggingTokens={isActivated:!0,tokens:e}}}),angular.isDefined(l.autofocus)&&o(function(){h.setFocus()}),angular.isDefined(l.focusOn)&&a.$on(l.focusOn,function(){o(function(){h.setFocus()})}),e.on("click",d),a.$on("$destroy",function(){e.off("click",d)}),u(a,function(e){var t=angular.element("<div>").append(e),i=t.querySelectorAll(".ui-select-match");if(i.removeAttr("ui-select-match"),i.removeAttr("data-ui-select-match"),1!==i.length)throw n("transcluded","Expected 1 .ui-select-match but got '{0}'.",i.length);s.querySelectorAll(".ui-select-match").replaceWith(i);var a=t.querySelectorAll(".ui-select-choices");if(a.removeAttr("ui-select-choices"),a.removeAttr("data-ui-select-choices"),1!==a.length)throw n("transcluded","Expected 1 .ui-select-choices but got '{0}'.",a.length);s.querySelectorAll(".ui-select-choices").replaceWith(a);var r=t.querySelectorAll(".ui-select-no-choice");r.removeAttr("ui-select-no-choice"),r.removeAttr("data-ui-select-no-choice"),1==r.length&&s.querySelectorAll(".ui-select-no-choice").replaceWith(r)});var g=a.$eval(l.appendToBody);(void 0!==g?g:t.appendToBody)&&(a.$watch("$select.open",function(e){e?p():f()}),a.$on("$destroy",function(){f()}));var v=null,y="",b=null,$="direction-up";a.$watch("$select.open",function(){"auto"!==h.dropdownPosition&&"up"!==h.dropdownPosition||a.calculateDropdownPos()});var w=function(e,t){e=e||i(s),t=t||i(b),b[0].style.position="absolute",b[0].style.top=-1*t.height+"px",s.addClass($)},k=function(e,t){s.removeClass($),e=e||i(s),t=t||i(b),b[0].style.position="",b[0].style.top=""},S=function(){o(function(){if("up"===h.dropdownPosition)w();else{s.removeClass($);var t=i(s),n=i(b),a=e[0].documentElement.scrollTop||e[0].body.scrollTop;t.top+t.height+n.height>a+e[0].documentElement.clientHeight?w(t,n):k(t,n)}b[0].style.opacity=1})},x=!1;a.calculateDropdownPos=function(){if(h.open){if(b=angular.element(s).querySelectorAll(".ui-select-dropdown"),0===b.length)return;if(""!==h.search||x||(b[0].style.opacity=0,x=!0),!i(b).height&&h.$animate&&h.$animate.on&&h.$animate.enabled(b)){var e=!0;h.$animate.on("enter",b,function(t,n){"close"===n&&e&&(S(),e=!1)})}else S()}else{if(null===b||0===b.length)return;b[0].style.opacity=0,b[0].style.position="",b[0].style.top="",s.removeClass($)}}}}}}]),n.directive("uiSelectMatch",["uiSelectConfig",function(e){function t(e,t){return e[0].hasAttribute(t)?e.attr(t):e[0].hasAttribute("data-"+t)?e.attr("data-"+t):e[0].hasAttribute("x-"+t)?e.attr("x-"+t):void 0}return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(n){n.addClass("ui-select-match");var i=n.parent(),a=t(i,"theme")||e.theme,r=angular.isDefined(t(i,"multiple"));return a+(r?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(t,n,i,a){function r(e){a.allowClear=!!angular.isDefined(e)&&(""===e||"true"===e.toLowerCase())}a.lockChoiceExpression=i.uiLockChoice,i.$observe("placeholder",function(t){a.placeholder=void 0!==t?t:e.placeholder}),i.$observe("allowClear",r),r(i.allowClear),a.multiple&&a.sizeSearchInput()}}}]),n.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(t,n){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(e,t){var n,i=this,a=e.$select;angular.isUndefined(a.selected)&&(a.selected=[]),e.$evalAsync(function(){n=e.ngModel}),i.activeMatchIndex=-1,i.updateModel=function(){n.$setViewValue(Date.now()),i.refreshComponent()},i.refreshComponent=function(){a.refreshItems&&a.refreshItems(),a.sizeSearchInput&&a.sizeSearchInput()},i.removeChoice=function(n){if(a.isLocked(null,n))return!1;var r=a.selected[n],o={};return o[a.parserResult.itemName]=r,a.selected.splice(n,1),i.activeMatchIndex=-1,a.sizeSearchInput(),t(function(){a.onRemoveCallback(e,{$item:r,$model:a.parserResult.modelMapper(e,o)})}),i.updateModel(),!0},i.getPlaceholder=function(){return a.selected&&a.selected.length?void 0:a.placeholder}}],controllerAs:"$selectMultiple",link:function(i,a,r,o){function s(e){return angular.isNumber(e.selectionStart)?e.selectionStart:e.value.length}function l(t){function n(){switch(t){case e.LEFT:return~f.activeMatchIndex?u:o;case e.RIGHT:return~f.activeMatchIndex&&l!==o?c:(d.activate(),!1);case e.BACKSPACE:return~f.activeMatchIndex?f.removeChoice(l)?u:l:o;case e.DELETE:return!!~f.activeMatchIndex&&(f.removeChoice(f.activeMatchIndex),l)}}var i=s(d.searchInput[0]),a=d.selected.length,r=0,o=a-1,l=f.activeMatchIndex,c=f.activeMatchIndex+1,u=f.activeMatchIndex-1,p=l;return!(i>0||d.search.length&&t==e.RIGHT)&&(d.close(),p=n(),d.selected.length&&p!==!1?f.activeMatchIndex=Math.min(o,Math.max(r,p)):f.activeMatchIndex=-1,!0)}function c(e){if(void 0===e||void 0===d.search)return!1;var t=e.filter(function(e){return void 0!==d.search.toUpperCase()&&void 0!==e&&e.toUpperCase()===d.search.toUpperCase()}).length>0;return t}function u(e,t){var n=-1;if(angular.isArray(e))for(var i=angular.copy(e),a=0;a<i.length;a++)if(void 0===d.tagging.fct)i[a]+" "+d.taggingLabel===t&&(n=a);else{var r=i[a];angular.isObject(r)&&(r.isTag=!0),angular.equals(r,t)&&(n=a)}return n}var d=o[0],p=i.ngModel=o[1],f=i.$selectMultiple;d.multiple=!0,d.focusInput=d.searchInput,p.$isEmpty=function(e){return!e||0===e.length},p.$parsers.unshift(function(){for(var e,t={},n=[],a=d.selected.length-1;a>=0;a--)t={},t[d.parserResult.itemName]=d.selected[a],e=d.parserResult.modelMapper(i,t),n.unshift(e);return n}),p.$formatters.unshift(function(e){var t,n=d.parserResult&&d.parserResult.source(i,{$select:{search:""}}),a={};if(!n)return e;var r=[],o=function(e,n){if(e&&e.length){for(var o=e.length-1;o>=0;o--){if(a[d.parserResult.itemName]=e[o],t=d.parserResult.modelMapper(i,a),d.parserResult.trackByExp){var s=/(\w*)\./.exec(d.parserResult.trackByExp),l=/\.([^\s]+)/.exec(d.parserResult.trackByExp);if(s&&s.length>0&&s[1]==d.parserResult.itemName&&l&&l.length>0&&t[l[1]]==n[l[1]])return r.unshift(e[o]),!0}if(angular.equals(t,n))return r.unshift(e[o]),!0}return!1}};if(!e)return r;for(var s=e.length-1;s>=0;s--)o(d.selected,e[s])||o(n,e[s])||r.unshift(e[s]);return r}),i.$watchCollection(function(){return p.$modelValue},function(e,t){t!=e&&(angular.isDefined(p.$modelValue)&&(p.$modelValue=null),f.refreshComponent())}),p.$render=function(){if(!angular.isArray(p.$viewValue)){if(!angular.isUndefined(p.$viewValue)&&null!==p.$viewValue)throw t("multiarr","Expected model value to be array but got '{0}'",p.$viewValue);p.$viewValue=[]}d.selected=p.$viewValue,f.refreshComponent(),i.$evalAsync()},i.$on("uis:select",function(e,t){d.selected.length>=d.limit||(d.selected.push(t),f.updateModel())}),i.$on("uis:activate",function(){f.activeMatchIndex=-1}),i.$watch("$select.disabled",function(e,t){t&&!e&&d.sizeSearchInput()}),d.searchInput.on("keydown",function(t){var n=t.which;i.$apply(function(){var i=!1;e.isHorizontalMovement(n)&&(i=l(n)),i&&n!=e.TAB&&(t.preventDefault(),t.stopPropagation())})}),d.searchInput.on("keyup",function(t){if(e.isVerticalMovement(t.which)||i.$evalAsync(function(){d.activeIndex=d.taggingLabel===!1?-1:0}),d.tagging.isActivated&&d.search.length>0){if(t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||e.isVerticalMovement(t.which))return;if(d.activeIndex=d.taggingLabel===!1?-1:0,d.taggingLabel===!1)return;var n,a,r,o,s=angular.copy(d.items),l=angular.copy(d.items),p=!1,f=-1;if(void 0!==d.tagging.fct){if(r=d.$filter("filter")(s,{isTag:!0}),r.length>0&&(o=r[0]),s.length>0&&o&&(p=!0,s=s.slice(1,s.length),l=l.slice(1,l.length)),n=d.tagging.fct(d.search),l.some(function(e){return angular.equals(e,n)})||d.selected.some(function(e){return angular.equals(e,n)}))return void i.$evalAsync(function(){d.activeIndex=0,d.items=s});n&&(n.isTag=!0)}else{if(r=d.$filter("filter")(s,function(e){return e.match(d.taggingLabel)}),r.length>0&&(o=r[0]),a=s[0],void 0!==a&&s.length>0&&o&&(p=!0,s=s.slice(1,s.length),l=l.slice(1,l.length)),n=d.search+" "+d.taggingLabel,u(d.selected,d.search)>-1)return;if(c(l.concat(d.selected)))return void(p&&(s=l,i.$evalAsync(function(){d.activeIndex=0,d.items=s})));if(c(l))return void(p&&(d.items=l.slice(1,l.length)))}p&&(f=u(d.selected,n)),f>-1?s=s.slice(f+1,s.length-1):(s=[],n&&s.push(n),s=s.concat(l)),i.$evalAsync(function(){if(d.activeIndex=0,d.items=s,d.isGrouped){var e=n?s.slice(1):s;d.setItemsFn(e),n&&(d.items.unshift(n),d.groups.unshift({name:"",items:[n],tagging:!0}))}})}}),d.searchInput.on("blur",function(){n(function(){f.activeMatchIndex=-1})})}}}]),n.directive("uiSelectNoChoice",["uiSelectConfig",function(e){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){t.addClass("ui-select-no-choice");var n=t.parent().attr("theme")||e.theme;return n+"/no-choice.tpl.html"}}}]),n.directive("uiSelectSingle",["$timeout","$compile",function(t,n){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(i,a,r,o){var s=o[0],l=o[1];l.$parsers.unshift(function(e){var t,n={};return n[s.parserResult.itemName]=e,t=s.parserResult.modelMapper(i,n)}),l.$formatters.unshift(function(e){var t,n=s.parserResult&&s.parserResult.source(i,{$select:{search:""}}),a={};if(n){var r=function(n){return a[s.parserResult.itemName]=n,t=s.parserResult.modelMapper(i,a),t===e};if(s.selected&&r(s.selected))return s.selected;for(var o=n.length-1;o>=0;o--)if(r(n[o]))return n[o]}return e}),i.$watch("$select.selected",function(e){l.$viewValue!==e&&l.$setViewValue(e)}),l.$render=function(){s.selected=l.$viewValue},i.$on("uis:select",function(e,t){s.selected=t}),i.$on("uis:close",function(e,n){t(function(){s.focusser.prop("disabled",!1),n||s.focusser[0].focus()},0,!1)}),i.$on("uis:activate",function(){c.prop("disabled",!0)});var c=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");n(c)(i),s.focusser=c,s.focusInput=c,a.parent().append(c),c.bind("focus",function(){i.$evalAsync(function(){s.focus=!0})}),c.bind("blur",function(){i.$evalAsync(function(){s.focus=!1})}),c.bind("keydown",function(t){return t.which===e.BACKSPACE?(t.preventDefault(),t.stopPropagation(),s.select(void 0),void i.$apply()):void(t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||(t.which!=e.DOWN&&t.which!=e.UP&&t.which!=e.ENTER&&t.which!=e.SPACE||(t.preventDefault(),t.stopPropagation(),s.activate()),i.$digest()))}),c.bind("keyup input",function(t){t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||t.which==e.ENTER||t.which===e.BACKSPACE||(s.activate(c.val()),c.val(""),i.$digest())})}}}]),n.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(e,t,n){return{require:["^^uiSelect","^ngModel"],link:function(t,i,a,r){if(null===t[a.uiSelectSort])throw n("sort","Expected a list to sort");var o=r[0],s=r[1],l=angular.extend({axis:"horizontal"},t.$eval(a.uiSelectSortOptions)),c=l.axis,u="dragging",d="dropping",p="dropping-before",f="dropping-after";t.$watch(function(){return o.sortable},function(e){e?i.attr("draggable",!0):i.removeAttr("draggable")}),i.on("dragstart",function(e){i.addClass(u),(e.dataTransfer||e.originalEvent.dataTransfer).setData("text",t.$index.toString())}),i.on("dragend",function(){g(u)});var h,m=function(e,t){this.splice(t,0,this.splice(e,1)[0])},g=function(e){angular.forEach(o.$element.querySelectorAll("."+e),function(t){angular.element(t).removeClass(e)})},v=function(e){e.preventDefault();var t="vertical"===c?e.offsetY||e.layerY||(e.originalEvent?e.originalEvent.offsetY:0):e.offsetX||e.layerX||(e.originalEvent?e.originalEvent.offsetX:0);t<this["vertical"===c?"offsetHeight":"offsetWidth"]/2?(g(f),i.addClass(p)):(g(p),i.addClass(f))},y=function(t){t.preventDefault();var n=parseInt((t.dataTransfer||t.originalEvent.dataTransfer).getData("text"),10);e.cancel(h),h=e(function(){b(n)},20)},b=function(e){var n=t.$eval(a.uiSelectSort),r=n[e],o=null;o=i.hasClass(p)?e<t.$index?t.$index-1:t.$index:e<t.$index?t.$index:t.$index+1,m.apply(n,[e,o]),s.$setViewValue(Date.now()),t.$apply(function(){t.$emit("uiSelectSort:change",{array:n,item:r,from:e,to:o})}),g(d),g(p),g(f),i.off("drop",y)};i.on("dragenter",function(){i.hasClass(u)||(i.addClass(d),i.on("dragover",v),i.on("drop",y))}),i.on("dragleave",function(e){e.target==i&&(g(d),g(p),g(f),i.off("dragover",v),i.off("drop",y))})}}}]),n.factory("$$uisDebounce",["$timeout",function(e){return function(t,n){var i;return function(){var a=this,r=Array.prototype.slice.call(arguments);i&&e.cancel(i),i=e(function(){t.apply(a,r)},n)}}}]),n.directive("uisOpenClose",["$parse","$timeout",function(e,t){return{restrict:"A",require:"uiSelect",link:function(n,i,a,r){r.onOpenCloseCallback=e(a.uisOpenClose),n.$watch("$select.open",function(e,i){e!==i&&t(function(){r.onOpenCloseCallback(n,{isOpen:e})})})}}}]),n.service("uisRepeatParser",["uiSelectMinErr","$parse",function(e,t){var n=this;n.parse=function(n){var i;if(i=n.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),!i)throw e("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",n);var a=i[5],r="";if(i[3]){a=i[5].replace(/(^\()|(\)$)/g,"");var o=i[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/);o&&o[1].trim()&&(r=o[1],a=a.replace(r,""))}return{itemName:i[4]||i[2],keyName:i[3],source:t(a),filters:r,trackByExp:i[6],modelMapper:t(i[1]||i[4]||i[2]),repeatExpression:function(e){var t=this.itemName+" in "+(e?"$group.items":"$select.items");return this.trackByExp&&(t+=" track by "+this.trackByExp),t}}},n.getGroupNgRepeatExpression=function(){return"$group in $select.groups track by $group.name"}}])}(),angular.module("ui.select").run(["$templateCache",function(e){e.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" role="listbox" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><span class="ui-select-choices-row-inner"></span></div></li></ul>'),
e.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected track by $index"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;</span> <span uis-transclude-append=""></span></span></span></span>'),e.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <i class="caret pull-right" ng-click="$select.toggle($event)"></i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"></i></a></span></div>'),e.put("bootstrap/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""></li></ul>'),e.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"></div><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-label="{{ $select.baseTitle }}" ondrop="return false;"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="form-control ui-select-search" ng-class="{ \'ui-select-search-hidden\' : !$select.searchEnabled }" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.open"><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("select2/choices.tpl.html",'<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div><ul role="listbox" id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"></div></li></ul></li></ul>'),e.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected track by $index" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""></span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"></a></li></span>'),e.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""></span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"></abbr> <span class="select2-arrow ui-select-toggle"><b></b></span></a>'),e.put("select2/no-choice.tpl.html",'<div class="ui-select-no-choice dropdown" ng-show="$select.items.length == 0"><div class="dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"></span><li class="select2-search-field"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"></li></ul><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open || $select.items.length === 0}"><div class="ui-select-choices"></div></div></div>'),e.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"></div><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="search-container" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled, \'select2-search\':$select.searchEnabled}"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="ui-select-search select2-input" ng-model="$select.search"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div></div>'),e.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown single"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup" role="listbox"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"></div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""></div></div></div></div></div>'),e.put("selectize/match.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match"><span ng-show="!$select.searchEnabled && ($select.isEmpty() || $select.open)" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty() || $select.open" ng-transclude=""></span></div>'),e.put("selectize/no-choice.tpl.html",'<div class="ui-select-no-choice selectize-dropdown" ng-show="$select.items.length == 0"><div class="selectize-dropdown-content"><div data-selectable="" ng-transclude=""></div></div></div>'),e.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-class="{\'ui-select-search-hidden\':!$select.searchEnabled}" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.isEmpty() && !$select.open" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"></div><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>')}]),angular.module("ui.date",[]).constant("uiDateConfig",{}).directive("uiDate",["uiDateConfig","uiDateConverter",function(e,t){"use strict";var n;return n={},angular.extend(n,e),{require:"?ngModel",link:function(n,i,a,r){var o=function(){return angular.extend({},e,n.$eval(a.uiDate))},s=function(){var e=!1,s=o();if(r){var l=s.onSelect||angular.noop;s.onSelect=function(t,a){n.$apply(function(){e=!0,r.$setViewValue(i.datepicker("getDate")),l(t,a),i.blur()})};var c=s.beforeShow||angular.noop;s.beforeShow=function(t,n){e=!0,c(t,n)};var u=s.onClose||angular.noop;s.onClose=function(t,n){e=!1,u(t,n)},i.off("blur.datepicker").on("blur.datepicker",function(){e||n.$apply(function(){i.datepicker("setDate",i.datepicker("getDate")),r.$setViewValue(i.datepicker("getDate"))})}),r.$render=function(){var e=r.$modelValue;if(angular.isDefined(e)&&null!==e&&!angular.isDate(e)){if(!angular.isString(r.$modelValue))throw new Error("ng-Model value must be a Date, or a String object with a date formatter - currently it is a "+typeof e+" - use ui-date-format to convert it from a string");e=t.stringToDate(a.uiDateFormat,r.$modelValue)}i.datepicker("setDate",e)}}i.data("datepicker")?(i.datepicker("option",s),i.datepicker("refresh")):(i.datepicker(s),i.on("$destroy",function(){i.datepicker("destroy")})),r&&r.$render()};n.$watch(o,s,!0)}}}]).factory("uiDateConverter",["uiDateFormatConfig",function(e){function t(t,n){if(t=t||e,n){if(t)return jQuery.datepicker.formatDate(t,n);if(n.toISOString)return n.toISOString()}return null}function n(t,n){if(t=t||e,angular.isString(n)){if(t)return jQuery.datepicker.parseDate(t,n);var i=new Date(n);return isNaN(i.getTime())?null:i}return null}return{stringToDate:n,dateToString:t}}]).constant("uiDateFormatConfig","").directive("uiDateFormat",["uiDateConverter",function(e){var t={require:"ngModel",link:function(t,n,i,a){var r=i.uiDateFormat;a.$formatters.unshift(function(t){return e.stringToDate(r,t)}),a.$parsers.push(function(t){return e.dateToString(r,t)})}};return t}]),!function(){"use strict";angular.module("ui.tree",[]).constant("treeConfig",{treeClass:"angular-ui-tree",emptyTreeClass:"angular-ui-tree-empty",hiddenClass:"angular-ui-tree-hidden",nodesClass:"angular-ui-tree-nodes",nodeClass:"angular-ui-tree-node",handleClass:"angular-ui-tree-handle",placeHolderClass:"angular-ui-tree-placeholder",dragClass:"angular-ui-tree-drag",dragThreshold:3,levelThreshold:30})}(),function(){"use strict";angular.module("ui.tree").controller("TreeHandleController",["$scope","$element","$attrs","treeConfig",function(e,t,n,i){this.scope=e,e.$element=t,e.$nodeScope=null,e.$type="uiTreeHandle"}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodeController",["$scope","$element","$attrs","treeConfig",function(e,t,n,i){this.scope=e,e.$element=t,e.$modelValue=null,e.$parentNodeScope=null,e.$childNodesScope=null,e.$parentNodesScope=null,e.$treeScope=null,e.$handleScope=null,e.$type="uiTreeNode",e.$$apply=!1,e.collapsed=!1,e.init=function(n){var i=n[0];e.$treeScope=n[1]?n[1].scope:null,e.$parentNodeScope=i.scope.$nodeScope,e.$modelValue=i.scope.$modelValue[e.$index],e.$parentNodesScope=i.scope,i.scope.initSubNode(e),t.on("$destroy",function(){i.scope.destroySubNode(e)})},e.index=function(){return e.$parentNodesScope.$modelValue.indexOf(e.$modelValue)},e.dragEnabled=function(){return!(e.$treeScope&&!e.$treeScope.dragEnabled)},e.isSibling=function(t){return e.$parentNodesScope==t.$parentNodesScope},e.isChild=function(t){var n=e.childNodes();return n&&n.indexOf(t)>-1},e.prev=function(){var t=e.index();return t>0?e.siblings()[t-1]:null},e.siblings=function(){return e.$parentNodesScope.childNodes()},e.childNodesCount=function(){return e.childNodes()?e.childNodes().length:0},e.hasChild=function(){return e.childNodesCount()>0},e.childNodes=function(){return e.$childNodesScope&&e.$childNodesScope.$modelValue?e.$childNodesScope.childNodes():null},e.accept=function(t,n){return e.$childNodesScope&&e.$childNodesScope.$modelValue&&e.$childNodesScope.accept(t,n)},e.removeNode=function(){var t=e.remove();return e.$callbacks.removed(t),t},e.remove=function(){return e.$parentNodesScope.removeNode(e)},e.toggle=function(){e.collapsed=!e.collapsed},e.collapse=function(){e.collapsed=!0},e.expand=function(){e.collapsed=!1},e.depth=function(){var t=e.$parentNodeScope;return t?t.depth()+1:1};var a=0,r=function(e){for(var t=0,n=e.childNodes(),i=0;i<n.length;i++){var o=n[i].$childNodesScope;o&&(t=1,r(o))}a+=t};e.maxSubDepth=function(){return a=0,e.$childNodesScope&&r(e.$childNodesScope),a}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeNodesController",["$scope","$element","treeConfig",function(e,t,n){this.scope=e,e.$element=t,e.$modelValue=null,e.$nodeScope=null,e.$treeScope=null,e.$type="uiTreeNodes",e.$nodesMap={},e.nodropEnabled=!1,e.maxDepth=0,e.cloneEnabled=!1,e.initSubNode=function(t){return t.$modelValue?void(e.$nodesMap[t.$modelValue.$$hashKey]=t):null},e.destroySubNode=function(t){return t.$modelValue?void(e.$nodesMap[t.$modelValue.$$hashKey]=null):null},e.accept=function(t,n){return e.$treeScope.$callbacks.accept(t,e,n)},e.beforeDrag=function(t){return e.$treeScope.$callbacks.beforeDrag(t)},e.isParent=function(t){return t.$parentNodesScope==e},e.hasChild=function(){return e.$modelValue.length>0},e.safeApply=function(e){var t=this.$root.$$phase;"$apply"==t||"$digest"==t?e&&"function"==typeof e&&e():this.$apply(e)},e.removeNode=function(t){var n=e.$modelValue.indexOf(t.$modelValue);return n>-1?(e.safeApply(function(){e.$modelValue.splice(n,1)[0]}),t):null},e.insertNode=function(t,n){e.safeApply(function(){e.$modelValue.splice(t,0,n)})},e.childNodes=function(){var t=[];if(e.$modelValue)for(var n=0;n<e.$modelValue.length;n++)t.push(e.$nodesMap[e.$modelValue[n].$$hashKey]);return t},e.depth=function(){return e.$nodeScope?e.$nodeScope.depth():0},e.outOfDepth=function(t){var n=e.maxDepth||e.$treeScope.maxDepth;return n>0&&e.depth()+t.maxSubDepth()+1>n}}])}(),function(){"use strict";angular.module("ui.tree").controller("TreeController",["$scope","$element","$attrs","treeConfig",function(e,t,n,i){this.scope=e,e.$element=t,e.$nodesScope=null,e.$type="uiTree",e.$emptyElm=null,e.$callbacks=null,e.dragEnabled=!0,e.emptyPlaceHolderEnabled=!0,e.maxDepth=0,e.dragDelay=0,e.cloneEnabled=!1,e.nodropEnabled=!1,e.isEmpty=function(){return e.$nodesScope&&e.$nodesScope.$modelValue&&0===e.$nodesScope.$modelValue.length},e.place=function(t){e.$nodesScope.$element.append(t),e.$emptyElm.remove()},e.resetEmptyElement=function(){0===e.$nodesScope.$modelValue.length&&e.emptyPlaceHolderEnabled?t.append(e.$emptyElm):e.$emptyElm.remove()};var a=function(e,t){for(var n=e.childNodes(),i=0;i<n.length;i++){t?n[i].collapse():n[i].expand();var r=n[i].$childNodesScope;r&&a(r,t)}};e.collapseAll=function(){a(e.$nodesScope,!0)},e.expandAll=function(){a(e.$nodesScope,!1)}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTree",["treeConfig","$window",function(e,t){return{restrict:"A",scope:!0,controller:"TreeController",link:function(n,i,a){var r={accept:null,beforeDrag:null},o={};angular.extend(o,e),o.treeClass&&i.addClass(o.treeClass),n.$emptyElm=angular.element(t.document.createElement("div")),o.emptyTreeClass&&n.$emptyElm.addClass(o.emptyTreeClass),n.$watch("$nodesScope.$modelValue.length",function(){n.$nodesScope.$modelValue&&n.resetEmptyElement()},!0),n.$watch(a.dragEnabled,function(e){"boolean"==typeof e&&(n.dragEnabled=e)}),n.$watch(a.emptyPlaceHolderEnabled,function(e){"boolean"==typeof e&&(n.emptyPlaceHolderEnabled=e)}),n.$watch(a.nodropEnabled,function(e){"boolean"==typeof e&&(n.nodropEnabled=e)}),n.$watch(a.cloneEnabled,function(e){"boolean"==typeof e&&(n.cloneEnabled=e)}),n.$watch(a.maxDepth,function(e){"number"==typeof e&&(n.maxDepth=e)}),n.$watch(a.dragDelay,function(e){"number"==typeof e&&(n.dragDelay=e)}),r.accept=function(e,t,n){return!t.nodropEnabled&&!t.outOfDepth(e)},r.beforeDrag=function(e){return!0},r.removed=function(e){},r.dropped=function(e){},r.dragStart=function(e){},r.dragMove=function(e){},r.dragStop=function(e){},r.beforeDrop=function(e){},n.$watch(a.uiTree,function(e,t){angular.forEach(e,function(e,t){r[t]&&"function"==typeof e&&(r[t]=e)}),n.$callbacks=r},!0)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeHandle",["treeConfig","$window",function(e){return{require:"^uiTreeNode",restrict:"A",scope:!0,controller:"TreeHandleController",link:function(t,n,i,a){var r={};angular.extend(r,e),r.handleClass&&n.addClass(r.handleClass),t!=a.scope&&(t.$nodeScope=a.scope,a.scope.$handleScope=t)}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNode",["treeConfig","$uiTreeHelper","$window","$document","$timeout",function(e,t,n,i,a){return{require:["^uiTreeNodes","^uiTree"],restrict:"A",controller:"TreeNodeController",link:function(r,o,s,l){var c={};angular.extend(c,e),c.nodeClass&&o.addClass(c.nodeClass),r.init(l),r.collapsed=!!t.getNodeAttribute(r,"collapsed"),r.$watch(s.collapsed,function(e){"boolean"==typeof e&&(r.collapsed=e)}),r.$watch("collapsed",function(e){t.setNodeAttribute(r,"collapsed",e),s.$set("collapsed",e)});var u,d,p,f,h,m,g,v,y,b="ontouchstart"in window,$=null,w=!0,k=!1,S=null,x=document.body,M=document.documentElement,D=function(e){if((b||2!=e.button&&3!=e.which)&&!(e.uiTreeDragging||e.originalEvent&&e.originalEvent.uiTreeDragging)){var a=angular.element(e.target),s=a.scope();if(s&&s.$type&&!("uiTreeNode"!=s.$type&&"uiTreeHandle"!=s.$type||"uiTreeNode"==s.$type&&s.$handleScope)){var l=a.prop("tagName").toLowerCase();if("input"!=l&&"textarea"!=l&&"button"!=l&&"select"!=l){for(;a&&a[0]&&a[0]!=o;){if(t.nodrag(a))return;a=a.parent()}if(r.beforeDrag(r)){e.uiTreeDragging=!0,e.originalEvent&&(e.originalEvent.uiTreeDragging=!0),e.preventDefault();var $=t.eventObj(e);u=!0,d=t.dragInfo(r);var w=r.$element.prop("tagName");if("tr"===w.toLowerCase()){f=angular.element(n.document.createElement(w));var k=angular.element(n.document.createElement("td")).addClass(c.placeHolderClass);f.append(k)}else f=angular.element(n.document.createElement(w)).addClass(c.placeHolderClass);h=angular.element(n.document.createElement(w)),c.hiddenClass&&h.addClass(c.hiddenClass),p=t.positionStarted($,r.$element),f.css("height",t.height(r.$element)+"px"),m=angular.element(n.document.createElement(r.$parentNodesScope.$element.prop("tagName"))).addClass(r.$parentNodesScope.$element.attr("class")).addClass(c.dragClass),m.css("width",t.width(r.$element)+"px"),m.css("z-index",9999);var S=(r.$element[0].querySelector(".angular-ui-tree-handle")||r.$element[0]).currentStyle;S&&(document.body.setAttribute("ui-tree-cursor",i.find("body").css("cursor")||""),i.find("body").css({cursor:S.cursor+"!important"})),r.$element.after(f),r.$element.after(h),m.append(r.$element),i.find("body").append(m),m.css({left:$.pageX-p.offsetX+"px",top:$.pageY-p.offsetY+"px"}),g={placeholder:f,dragging:m},angular.element(i).bind("touchend",O),angular.element(i).bind("touchcancel",O),angular.element(i).bind("touchmove",C),angular.element(i).bind("mouseup",O),angular.element(i).bind("mousemove",C),angular.element(i).bind("mouseleave",A),v=Math.max(x.scrollHeight,x.offsetHeight,M.clientHeight,M.scrollHeight,M.offsetHeight),y=Math.max(x.scrollWidth,x.offsetWidth,M.clientWidth,M.scrollWidth,M.offsetWidth)}}}}},_=function(e){if(!k)return void(w||(k=!0,r.$apply(function(){r.$callbacks.dragStart(d.eventArgs(g,p))})));var i,a,o,s=t.eventObj(e);if(m){e.preventDefault(),n.getSelection?n.getSelection().removeAllRanges():n.document.selection&&n.document.selection.empty(),a=s.pageX-p.offsetX,o=s.pageY-p.offsetY,0>a&&(a=0),0>o&&(o=0),o+10>v&&(o=v-10),a+10>y&&(a=y-10),m.css({left:a+"px",top:o+"px"});var l=window.pageYOffset||n.document.documentElement.scrollTop,h=l+(window.innerHeight||n.document.clientHeight||n.document.clientHeight);if(h<s.pageY&&v>=h&&window.scrollBy(0,10),l>s.pageY&&window.scrollBy(0,-10),t.positionMoved(e,p,u),u)return void(u=!1);if(p.dirAx&&p.distAxX>=c.levelThreshold&&(p.distAxX=0,p.distX>0&&(i=d.prev(),i&&!i.collapsed&&i.accept(r,i.childNodesCount())&&(i.$childNodesScope.$element.append(f),d.moveTo(i.$childNodesScope,i.childNodes(),i.childNodesCount()))),p.distX<0)){var b=d.next();if(!b){var S=d.parentNode();S&&S.$parentNodesScope.accept(r,S.index()+1)&&(S.$element.after(f),d.moveTo(S.$parentNodesScope,S.siblings(),S.index()+1))}}var x,M=(t.offset(m).left-t.offset(f).left>=c.threshold,s.pageX-n.document.body.scrollLeft),D=s.pageY-(window.pageYOffset||n.document.documentElement.scrollTop);angular.isFunction(m.hide)?m.hide():(x=m[0].style.display,m[0].style.display="none"),n.document.elementFromPoint(M,D);var _=angular.element(n.document.elementFromPoint(M,D));if(angular.isFunction(m.show)?m.show():m[0].style.display=x,!p.dirAx){var E,T;T=_.scope();var C=!1;if(!T)return;if("uiTree"==T.$type&&T.dragEnabled&&(C=T.isEmpty()),"uiTreeHandle"==T.$type&&(T=T.$nodeScope),"uiTreeNode"!=T.$type&&!C)return;if($&&f.parent()[0]!=$.$element[0]&&($.resetEmptyElement(),$=null),C)$=T,T.$nodesScope.accept(r,0)&&(T.place(f),d.moveTo(T.$nodesScope,T.$nodesScope.childNodes(),0));else if(T.dragEnabled()){_=T.$element;var O=t.offset(_);E=T.horizontal?s.pageX<O.left+t.width(_)/2:s.pageY<O.top+t.height(_)/2,T.$parentNodesScope.accept(r,T.index())?E?(_[0].parentNode.insertBefore(f[0],_[0]),d.moveTo(T.$parentNodesScope,T.siblings(),T.index())):(_.after(f),d.moveTo(T.$parentNodesScope,T.siblings(),T.index()+1)):!E&&T.accept(r,T.childNodesCount())&&(T.$childNodesScope.$element.append(f),d.moveTo(T.$childNodesScope,T.childNodes(),T.childNodesCount()))}}r.$apply(function(){r.$callbacks.dragMove(d.eventArgs(g,p))})}},E=function(e){e.preventDefault(),m&&(r.$treeScope.$apply(function(){r.$callbacks.beforeDrop(d.eventArgs(g,p))}),h.replaceWith(r.$element),f.remove(),m.remove(),m=null,r.$$apply?r.$treeScope.$apply(function(){d.apply(),r.$callbacks.dropped(d.eventArgs(g,p))}):N(),r.$treeScope.$apply(function(){r.$callbacks.dragStop(d.eventArgs(g,p))}),r.$$apply=!1,d=null);var t=document.body.getAttribute("ui-tree-cursor");null!==t&&(i.find("body").css({cursor:t}),document.body.removeAttribute("ui-tree-cursor")),angular.element(i).unbind("touchend",O),angular.element(i).unbind("touchcancel",O),angular.element(i).unbind("touchmove",C),angular.element(i).unbind("mouseup",O),angular.element(i).unbind("mousemove",C),angular.element(n.document.body).unbind("mouseleave",A)},T=function(e){r.dragEnabled()&&D(e)},C=function(e){_(e)},O=function(e){r.$$apply=!0,E(e)},A=function(e){E(e)},N=function(){o.bind("touchstart mousedown",function(e){w=!0,k=!1,T(e),S=a(function(){w=!1},r.dragDelay)}),o.bind("touchend touchcancel mouseup",function(){a.cancel(S)})};N();var P=function(e){27==e.keyCode&&(r.$$apply=!1,E(e))};angular.element(n.document.body).bind("keydown",P),r.$on("$destroy",function(){angular.element(n.document.body).unbind("keydown",P)})}}}])}(),function(){"use strict";angular.module("ui.tree").directive("uiTreeNodes",["treeConfig","$window",function(e){return{require:["ngModel","?^uiTreeNode","^uiTree"],restrict:"A",scope:!0,controller:"TreeNodesController",link:function(t,n,i,a){var r={};angular.extend(r,e),r.nodesClass&&n.addClass(r.nodesClass);var o=a[0],s=a[1],l=a[2];s?(s.scope.$childNodesScope=t,t.$nodeScope=s.scope):l.scope.$nodesScope=t,t.$treeScope=l.scope,o&&(o.$render=function(){o.$modelValue&&angular.isArray(o.$modelValue)||(t.$modelValue=[]),t.$modelValue=o.$modelValue}),t.$watch(i.maxDepth,function(e){"number"==typeof e&&(t.maxDepth=e)}),t.$watch(function(){return i.nodropEnabled},function(e){"undefined"!=typeof e&&(t.nodropEnabled=!0)},!0),i.$observe("horizontal",function(e){t.horizontal="undefined"!=typeof e})}}}])}(),function(){"use strict";angular.module("ui.tree").factory("$uiTreeHelper",["$document","$window",function(e,t){return{nodesData:{},setNodeAttribute:function(e,t,n){if(!e.$modelValue)return null;var i=this.nodesData[e.$modelValue.$$hashKey];i||(i={},this.nodesData[e.$modelValue.$$hashKey]=i),i[t]=n},getNodeAttribute:function(e,t){if(!e.$modelValue)return null;var n=this.nodesData[e.$modelValue.$$hashKey];return n?n[t]:null},nodrag:function(e){return"undefined"!=typeof e.attr("data-nodrag")&&"false"!==e.attr("data-nodrag")},eventObj:function(e){var t=e;return void 0!==e.targetTouches?t=e.targetTouches.item(0):void 0!==e.originalEvent&&void 0!==e.originalEvent.targetTouches&&(t=e.originalEvent.targetTouches.item(0)),t},dragInfo:function(e){return{source:e,sourceInfo:{nodeScope:e,index:e.index(),nodesScope:e.$parentNodesScope},index:e.index(),siblings:e.siblings().slice(0),parent:e.$parentNodesScope,moveTo:function(e,t,n){this.parent=e,this.siblings=t.slice(0);var i=this.siblings.indexOf(this.source);i>-1&&(this.siblings.splice(i,1),this.source.index()<n&&n--),this.siblings.splice(n,0,this.source),this.index=n},parentNode:function(){return this.parent.$nodeScope},prev:function(){return this.index>0?this.siblings[this.index-1]:null},next:function(){return this.index<this.siblings.length-1?this.siblings[this.index+1]:null},isDirty:function(){return this.source.$parentNodesScope!=this.parent||this.source.index()!=this.index},eventArgs:function(e,t){return{source:this.sourceInfo,dest:{index:this.index,nodesScope:this.parent},elements:e,pos:t}},apply:function(){if(this.parent.$treeScope.nodropEnabled!==!0){var e=this.source.$modelValue;if(this.source.$treeScope.cloneEnabled!==!0&&this.source.remove(),this.source.$treeScope.cloneEnabled===!0&&this.source.$treeScope===this.parent.$treeScope)return!1;this.parent.insertNode(this.index,e)}}}},height:function(e){return e.prop("scrollHeight")},width:function(e){return e.prop("scrollWidth")},offset:function(n){var i=n[0].getBoundingClientRect();return{width:n.prop("offsetWidth"),height:n.prop("offsetHeight"),top:i.top+(t.pageYOffset||e[0].body.scrollTop||e[0].documentElement.scrollTop),left:i.left+(t.pageXOffset||e[0].body.scrollLeft||e[0].documentElement.scrollLeft)}},positionStarted:function(e,t){var n={};return n.offsetX=e.pageX-this.offset(t).left,n.offsetY=e.pageY-this.offset(t).top,n.startX=n.lastX=e.pageX,n.startY=n.lastY=e.pageY,n.nowX=n.nowY=n.distX=n.distY=n.dirAx=0,n.dirX=n.dirY=n.lastDirX=n.lastDirY=n.distAxX=n.distAxY=0,n},positionMoved:function(e,t,n){t.lastX=t.nowX,t.lastY=t.nowY,t.nowX=e.pageX,t.nowY=e.pageY,t.distX=t.nowX-t.lastX,t.distY=t.nowY-t.lastY,t.lastDirX=t.dirX,t.lastDirY=t.dirY,t.dirX=0===t.distX?0:t.distX>0?1:-1,t.dirY=0===t.distY?0:t.distY>0?1:-1;var i=Math.abs(t.distX)>Math.abs(t.distY)?1:0;return n?(t.dirAx=i,void(t.moving=!0)):(t.dirAx!==i?(t.distAxX=0,t.distAxY=0):(t.distAxX+=Math.abs(t.distX),0!==t.dirX&&t.dirX!==t.lastDirX&&(t.distAxX=0),t.distAxY+=Math.abs(t.distY),0!==t.dirY&&t.dirY!==t.lastDirY&&(t.distAxY=0)),void(t.dirAx=i))}}}])}(),angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(e,t,n){function i(e){for(var t in e)if(void 0!==r.style[t])return e[t]}var a=function(i,r,o){o=o||{};var s=e.defer(),l=a[o.animation?"animationEndEventName":"transitionEndEventName"],c=function(){n.$apply(function(){i.unbind(l,c),s.resolve(i)})};return l&&i.bind(l,c),t(function(){angular.isString(r)?i.addClass(r):angular.isFunction(r)?r(i):angular.isObject(r)&&i.css(r),l||s.resolve(i)}),s.promise.cancel=function(){l&&i.unbind(l,c),s.reject("Transition cancelled")},s.promise},r=document.createElement("trans"),o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},s={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return a.transitionEndEventName=i(o),a.animationEndEventName=i(s),a}]),angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(e){return{link:function(t,n,i){function a(t){function i(){c===a&&(c=void 0)}var a=e(n,t);return c&&c.cancel(),c=a,a.then(i,i),a}function r(){u?(u=!1,o()):(n.removeClass("collapse").addClass("collapsing"),a({height:n[0].scrollHeight+"px"}).then(o))}function o(){n.removeClass("collapsing"),n.addClass("collapse in"),n.css({height:"auto"})}function s(){u?(u=!1,l(),n.css({height:0})):(n.css({height:n[0].scrollHeight+"px"}),n[0].offsetWidth,n.removeClass("collapse in").addClass("collapsing"),a({height:0}).then(l))}function l(){n.removeClass("collapsing"),n.addClass("collapse")}var c,u=!0;t.$watch(i.collapse,function(e){e?s():r()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(i){var a=angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers;
a&&angular.forEach(this.groups,function(e){e!==i&&(e.isOpen=!1)})},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",function(){t.removeGroup(e)})},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,i){i.addGroup(e),e.$watch("isOpen",function(t){t&&i.closeOthers(e)}),e.toggleOpen=function(){e.isDisabled||(e.isOpen=!e.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(e,t,n,i,a){i.setHeading(a(e,function(){}))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(e,t,n,i){e.$watch(function(){return i[n.accordionTransclude]},function(e){e&&(t.html(""),t.append(e))})}}}),angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(e,t){e.closeable="close"in t,this.close=e.close}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(e){return{require:"alert",link:function(t,n,i,a){e(function(){a.close()},parseInt(i.dismissOnTimeout,10))}}}]),angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(e,t,n){t.addClass("ng-binding").data("$binding",n.bindHtmlUnsafe),e.$watch(n.bindHtmlUnsafe,function(e){t.html(e||"")})}}),angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(e,t,n,i){var a=i[0],r=i[1];r.$render=function(){t.toggleClass(a.activeClass,angular.equals(r.$modelValue,e.$eval(n.btnRadio)))},t.bind(a.toggleEvent,function(){var i=t.hasClass(a.activeClass);(!i||angular.isDefined(n.uncheckable))&&e.$apply(function(){r.$setViewValue(i?null:e.$eval(n.btnRadio)),r.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(e,t,n,i){function a(){return o(n.btnCheckboxTrue,!0)}function r(){return o(n.btnCheckboxFalse,!1)}function o(t,n){var i=e.$eval(t);return angular.isDefined(i)?i:n}var s=i[0],l=i[1];l.$render=function(){t.toggleClass(s.activeClass,angular.equals(l.$modelValue,a()))},t.bind(s.toggleEvent,function(){e.$apply(function(){l.$setViewValue(t.hasClass(s.activeClass)?r():a()),l.$render()})})}}}),angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$interval","$transition",function(e,t,n,i){function a(){r();var t=+e.interval;!isNaN(t)&&t>0&&(s=n(o,t))}function r(){s&&(n.cancel(s),s=null)}function o(){var t=+e.interval;l&&!isNaN(t)&&t>0?e.next():e.pause()}var s,l,c=this,u=c.slides=e.slides=[],d=-1;c.currentSlide=null;var p=!1;c.select=e.select=function(n,r){function o(){p||(c.currentSlide&&angular.isString(r)&&!e.noTransition&&n.$element?(n.$element.addClass(r),n.$element[0].offsetWidth,angular.forEach(u,function(e){angular.extend(e,{direction:"",entering:!1,leaving:!1,active:!1})}),angular.extend(n,{direction:r,active:!0,entering:!0}),angular.extend(c.currentSlide||{},{direction:r,leaving:!0}),e.$currentTransition=i(n.$element,{}),function(t,n){e.$currentTransition.then(function(){s(t,n)},function(){s(t,n)})}(n,c.currentSlide)):s(n,c.currentSlide),c.currentSlide=n,d=l,a())}function s(t,n){angular.extend(t,{direction:"",active:!0,leaving:!1,entering:!1}),angular.extend(n||{},{direction:"",active:!1,leaving:!1,entering:!1}),e.$currentTransition=null}var l=u.indexOf(n);void 0===r&&(r=l>d?"next":"prev"),n&&n!==c.currentSlide&&(e.$currentTransition?(e.$currentTransition.cancel(),t(o)):o())},e.$on("$destroy",function(){p=!0}),c.indexOfSlide=function(e){return u.indexOf(e)},e.next=function(){var t=(d+1)%u.length;return e.$currentTransition?void 0:c.select(u[t],"next")},e.prev=function(){var t=0>d-1?u.length-1:d-1;return e.$currentTransition?void 0:c.select(u[t],"prev")},e.isActive=function(e){return c.currentSlide===e},e.$watch("interval",a),e.$on("$destroy",r),e.play=function(){l||(l=!0,a())},e.pause=function(){e.noPause||(l=!1,r())},c.addSlide=function(t,n){t.$element=n,u.push(t),1===u.length||t.active?(c.select(u[u.length-1]),1==u.length&&e.play()):t.active=!1},c.removeSlide=function(e){var t=u.indexOf(e);u.splice(t,1),u.length>0&&e.active?c.select(t>=u.length?u[t-1]:u[t]):d>t&&d--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?"},link:function(e,t,n,i){i.addSlide(e,t),e.$on("$destroy",function(){i.removeSlide(e)}),e.$watch("active",function(t){t&&i.select(e)})}}}),angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(e,t){function n(e){var n=[],i=e.split("");return angular.forEach(a,function(t,a){var r=e.indexOf(a);if(r>-1){e=e.split(""),i[r]="("+t.regex+")",e[r]="$";for(var o=r+1,s=r+a.length;s>o;o++)i[o]="",e[o]="$";e=e.join(""),n.push({index:r,apply:t.apply})}}),{regex:new RegExp("^"+i.join("")+"$"),map:t(n,"index")}}function i(e,t,n){return 1===t&&n>28?29===n&&(e%4===0&&e%100!==0||e%400===0):3!==t&&5!==t&&8!==t&&10!==t||31>n}this.parsers={};var a={yyyy:{regex:"\\d{4}",apply:function(e){this.year=+e}},yy:{regex:"\\d{2}",apply:function(e){this.year=+e+2e3}},y:{regex:"\\d{1,4}",apply:function(e){this.year=+e}},MMMM:{regex:e.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=e.DATETIME_FORMATS.MONTH.indexOf(t)}},MMM:{regex:e.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=e.DATETIME_FORMATS.SHORTMONTH.indexOf(t)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1}},M:{regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e}},EEEE:{regex:e.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:e.DATETIME_FORMATS.SHORTDAY.join("|")}};this.parse=function(t,a){if(!angular.isString(t)||!a)return t;a=e.DATETIME_FORMATS[a]||a,this.parsers[a]||(this.parsers[a]=n(a));var r=this.parsers[a],o=r.regex,s=r.map,l=t.match(o);if(l&&l.length){for(var c,u={year:1900,month:0,date:1,hours:0},d=1,p=l.length;p>d;d++){var f=s[d-1];f.apply&&f.apply.call(u,l[d])}return i(u.year,u.month,u.date)&&(c=new Date(u.year,u.month,u.date,u.hours)),c}}}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(e,t){function n(e,n){return e.currentStyle?e.currentStyle[n]:t.getComputedStyle?t.getComputedStyle(e)[n]:e.style[n]}function i(e){return"static"===(n(e,"position")||"static")}var a=function(t){for(var n=e[0],a=t.offsetParent||n;a&&a!==n&&i(a);)a=a.offsetParent;return a||n};return{position:function(t){var n=this.offset(t),i={top:0,left:0},r=a(t[0]);r!=e[0]&&(i=this.offset(angular.element(r)),i.top+=r.clientTop-r.scrollTop,i.left+=r.clientLeft-r.scrollLeft);var o=t[0].getBoundingClientRect();return{width:o.width||t.prop("offsetWidth"),height:o.height||t.prop("offsetHeight"),top:n.top-i.top,left:n.left-i.left}},offset:function(n){var i=n[0].getBoundingClientRect();return{width:i.width||n.prop("offsetWidth"),height:i.height||n.prop("offsetHeight"),top:i.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:i.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}},positionElements:function(e,t,n,i){var a,r,o,s,l=n.split("-"),c=l[0],u=l[1]||"center";a=i?this.offset(e):this.position(e),r=t.prop("offsetWidth"),o=t.prop("offsetHeight");var d={center:function(){return a.left+a.width/2-r/2},left:function(){return a.left},right:function(){return a.left+a.width}},p={center:function(){return a.top+a.height/2-o/2},top:function(){return a.top},bottom:function(){return a.top+a.height}};switch(c){case"right":s={top:p[u](),left:d[c]()};break;case"left":s={top:p[u](),left:a.left-r};break;case"bottom":s={top:p[c](),left:d[u]()};break;default:s={top:a.top-o,left:d[u]()}}return s}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(e,t,n,i,a,r,o,s){var l=this,c={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange"],function(n,a){l[n]=angular.isDefined(t[n])?8>a?i(t[n])(e.$parent):e.$parent.$eval(t[n]):s[n]}),angular.forEach(["minDate","maxDate"],function(i){t[i]?e.$parent.$watch(n(t[i]),function(e){l[i]=e?new Date(e):null,l.refreshView()}):l[i]=s[i]?new Date(s[i]):null}),e.datepickerMode=e.datepickerMode||s.datepickerMode,e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),this.activeDate=angular.isDefined(t.initDate)?e.$parent.$eval(t.initDate):new Date,e.isActive=function(t){return 0===l.compare(t.date,l.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(e){c=e,c.$render=function(){l.render()}},this.render=function(){if(c.$modelValue){var e=new Date(c.$modelValue),t=!isNaN(e);t?this.activeDate=e:r.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.'),c.$setValidity("date",t)}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var e=c.$modelValue?new Date(c.$modelValue):null;c.$setValidity("date-disabled",!e||this.element&&!this.isDisabled(e))}},this.createDateObject=function(e,t){var n=c.$modelValue?new Date(c.$modelValue):null;return{date:e,label:o(e,t),selected:n&&0===this.compare(e,n),disabled:this.isDisabled(e),current:0===this.compare(e,new Date)}},this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||t.dateDisabled&&e.dateDisabled({date:n,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},e.select=function(t){if(e.datepickerMode===l.minMode){var n=c.$modelValue?new Date(c.$modelValue):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),c.$setViewValue(n),c.$render()}else l.activeDate=t,e.datepickerMode=l.modes[l.modes.indexOf(e.datepickerMode)-1]},e.move=function(e){var t=l.activeDate.getFullYear()+e*(l.step.years||0),n=l.activeDate.getMonth()+e*(l.step.months||0);l.activeDate.setFullYear(t,n,1),l.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===l.maxMode&&1===t||e.datepickerMode===l.minMode&&-1===t||(e.datepickerMode=l.modes[l.modes.indexOf(e.datepickerMode)+t])},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var u=function(){a(function(){l.element[0].focus()},0,!1)};e.$on("datepicker.focus",u),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey)if(t.preventDefault(),t.stopPropagation(),"enter"===n||"space"===n){if(l.isDisabled(l.activeDate))return;e.select(l.activeDate),u()}else!t.ctrlKey||"up"!==n&&"down"!==n?(l.handleKeyDown(n,t),l.refreshView()):(e.toggleMode("up"===n?1:-1),u())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(e,t,n,i){var a=i[0],r=i[1];r&&a.init(r)}}}).directive("daypicker",["dateFilter",function(e){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(t,n,i,a){function r(e,t){return 1!==t||e%4!==0||e%100===0&&e%400!==0?l[t]:29}function o(e,t){var n=new Array(t),i=new Date(e),a=0;for(i.setHours(12);t>a;)n[a++]=new Date(i),i.setDate(i.getDate()+1);return n}function s(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}t.showWeeks=a.showWeeks,a.step={months:1},a.element=n;var l=[31,28,31,30,31,30,31,31,30,31,30,31];a._refreshView=function(){var n=a.activeDate.getFullYear(),i=a.activeDate.getMonth(),r=new Date(n,i,1),l=a.startingDay-r.getDay(),c=l>0?7-l:-l,u=new Date(r);c>0&&u.setDate(-c+1);for(var d=o(u,42),p=0;42>p;p++)d[p]=angular.extend(a.createDateObject(d[p],a.formatDay),{secondary:d[p].getMonth()!==i,uid:t.uniqueId+"-"+p});t.labels=new Array(7);for(var f=0;7>f;f++)t.labels[f]={abbr:e(d[f].date,a.formatDayHeader),full:e(d[f].date,"EEEE")};if(t.title=e(a.activeDate,a.formatDayTitle),t.rows=a.split(d,7),t.showWeeks){t.weekNumbers=[];for(var h=s(t.rows[0][0].date),m=t.rows.length;t.weekNumbers.push(h++)<m;);}},a.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},a.handleKeyDown=function(e){var t=a.activeDate.getDate();if("left"===e)t-=1;else if("up"===e)t-=7;else if("right"===e)t+=1;else if("down"===e)t+=7;else if("pageup"===e||"pagedown"===e){var n=a.activeDate.getMonth()+("pageup"===e?-1:1);a.activeDate.setMonth(n,1),t=Math.min(r(a.activeDate.getFullYear(),a.activeDate.getMonth()),t)}else"home"===e?t=1:"end"===e&&(t=r(a.activeDate.getFullYear(),a.activeDate.getMonth()));a.activeDate.setDate(t)},a.refreshView()}}}]).directive("monthpicker",["dateFilter",function(e){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(t,n,i,a){a.step={years:1},a.element=n,a._refreshView=function(){for(var n=new Array(12),i=a.activeDate.getFullYear(),r=0;12>r;r++)n[r]=angular.extend(a.createDateObject(new Date(i,r,1),a.formatMonth),{uid:t.uniqueId+"-"+r});t.title=e(a.activeDate,a.formatMonthTitle),t.rows=a.split(n,3)},a.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth())-new Date(t.getFullYear(),t.getMonth())},a.handleKeyDown=function(e){var t=a.activeDate.getMonth();if("left"===e)t-=1;else if("up"===e)t-=3;else if("right"===e)t+=1;else if("down"===e)t+=3;else if("pageup"===e||"pagedown"===e){var n=a.activeDate.getFullYear()+("pageup"===e?-1:1);a.activeDate.setFullYear(n)}else"home"===e?t=0:"end"===e&&(t=11);a.activeDate.setMonth(t)},a.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(e,t,n,i){function a(e){return parseInt((e-1)/r,10)*r+1}var r=i.yearRange;i.step={years:r},i.element=t,i._refreshView=function(){for(var t=new Array(r),n=0,o=a(i.activeDate.getFullYear());r>n;n++)t[n]=angular.extend(i.createDateObject(new Date(o+n,0,1),i.formatYear),{uid:e.uniqueId+"-"+n});e.title=[t[0].label,t[r-1].label].join(" - "),e.rows=i.split(t,5)},i.compare=function(e,t){return e.getFullYear()-t.getFullYear()},i.handleKeyDown=function(e){var t=i.activeDate.getFullYear();"left"===e?t-=1:"up"===e?t-=5:"right"===e?t+=1:"down"===e?t+=5:"pageup"===e||"pagedown"===e?t+=("pageup"===e?-1:1)*i.step.years:"home"===e?t=a(i.activeDate.getFullYear()):"end"===e&&(t=a(i.activeDate.getFullYear())+r-1),i.activeDate.setFullYear(t)},i.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(e,t,n,i,a,r,o){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&"},link:function(s,l,c,u){function d(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}function p(e){if(e){if(angular.isDate(e)&&!isNaN(e))return u.$setValidity("date",!0),e;if(angular.isString(e)){var t=r.parse(e,f)||new Date(e);return isNaN(t)?void u.$setValidity("date",!1):(u.$setValidity("date",!0),t)}return void u.$setValidity("date",!1)}return u.$setValidity("date",!0),null}var f,h=angular.isDefined(c.closeOnDateSelection)?s.$parent.$eval(c.closeOnDateSelection):o.closeOnDateSelection,m=angular.isDefined(c.datepickerAppendToBody)?s.$parent.$eval(c.datepickerAppendToBody):o.appendToBody;s.showButtonBar=angular.isDefined(c.showButtonBar)?s.$parent.$eval(c.showButtonBar):o.showButtonBar,s.getText=function(e){return s[e+"Text"]||o[e+"Text"]},c.$observe("datepickerPopup",function(e){f=e||o.datepickerPopup,u.$render()});var g=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");g.attr({"ng-model":"date","ng-change":"dateSelection()"});var v=angular.element(g.children()[0]);c.datepickerOptions&&angular.forEach(s.$parent.$eval(c.datepickerOptions),function(e,t){v.attr(d(t),e)}),s.watchData={},angular.forEach(["minDate","maxDate","datepickerMode"],function(e){if(c[e]){var n=t(c[e]);if(s.$parent.$watch(n,function(t){s.watchData[e]=t}),v.attr(d(e),"watchData."+e),"datepickerMode"===e){var i=n.assign;s.$watch("watchData."+e,function(e,t){e!==t&&i(s.$parent,e)})}}}),c.dateDisabled&&v.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),u.$parsers.unshift(p),s.dateSelection=function(e){angular.isDefined(e)&&(s.date=e),u.$setViewValue(s.date),u.$render(),h&&(s.isOpen=!1,l[0].focus())},l.bind("input change keyup",function(){s.$apply(function(){s.date=u.$modelValue})}),u.$render=function(){var e=u.$viewValue?a(u.$viewValue,f):"";l.val(e),s.date=p(u.$modelValue)};var y=function(e){s.isOpen&&e.target!==l[0]&&s.$apply(function(){s.isOpen=!1})},b=function(e){s.keydown(e)};l.bind("keydown",b),s.keydown=function(e){27===e.which?(e.preventDefault(),e.stopPropagation(),s.close()):40!==e.which||s.isOpen||(s.isOpen=!0)},s.$watch("isOpen",function(e){e?(s.$broadcast("datepicker.focus"),s.position=m?i.offset(l):i.position(l),s.position.top=s.position.top+l.prop("offsetHeight"),n.bind("click",y)):n.unbind("click",y)}),s.select=function(e){if("today"===e){var t=new Date;angular.isDate(u.$modelValue)?(e=new Date(u.$modelValue),e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate())):e=new Date(t.setHours(0,0,0,0))}s.dateSelection(e)},s.close=function(){s.isOpen=!1,l[0].focus()};var $=e(g)(s);g.remove(),m?n.find("body").append($):l.after($),s.$on("$destroy",function(){$.remove(),l.unbind("keydown",b),n.unbind("click",y)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(e,t){t.bind("click",function(e){e.preventDefault(),e.stopPropagation()})}}}),angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(e){var t=null;this.open=function(a){t||(e.bind("click",n),e.bind("keydown",i)),t&&t!==a&&(t.isOpen=!1),t=a},this.close=function(a){t===a&&(t=null,e.unbind("click",n),e.unbind("keydown",i))};var n=function(e){if(t){var n=t.getToggleElement();e&&n&&n[0].contains(e.target)||t.$apply(function(){t.isOpen=!1})}},i=function(e){27===e.which&&(t.focusToggleElement(),n())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate",function(e,t,n,i,a,r){var o,s=this,l=e.$new(),c=i.openClass,u=angular.noop,d=t.onToggle?n(t.onToggle):angular.noop;this.init=function(i){s.$element=i,t.isOpen&&(o=n(t.isOpen),u=o.assign,e.$watch(o,function(e){l.isOpen=!!e}))},this.toggle=function(e){return l.isOpen=arguments.length?!!e:!l.isOpen},this.isOpen=function(){return l.isOpen},l.getToggleElement=function(){return s.toggleElement},l.focusToggleElement=function(){s.toggleElement&&s.toggleElement[0].focus()},l.$watch("isOpen",function(t,n){r[t?"addClass":"removeClass"](s.$element,c),t?(l.focusToggleElement(),a.open(l)):a.close(l),u(e,t),angular.isDefined(t)&&t!==n&&d(e,{open:!!t})}),e.$on("$locationChangeSuccess",function(){l.isOpen=!1}),e.$on("$destroy",function(){l.$destroy()})}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(e,t,n,i){i.init(t)}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(e,t,n,i){if(i){i.toggleElement=t;var a=function(a){a.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply(function(){i.toggle()})};t.bind("click",a),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(i.isOpen,function(e){t.attr("aria-expanded",!!e)}),e.$on("$destroy",function(){t.unbind("click",a)})}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t==e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,i=0;i<e.length;i++)if(t==e[i].key){n=i;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}}).directive("modalBackdrop",["$timeout",function(e){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(t,n,i){t.backdropClass=i.backdropClass||"",t.animate=!1,e(function(){t.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(e,t){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(n,i,a){i.addClass(a.windowClass||""),n.size=a.size,t(function(){n.animate=!0,i[0].querySelectorAll("[autofocus]").length||i[0].focus()}),n.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!=n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))}}}}]).directive("modalTransclude",function(){return{link:function(e,t,n,i,a){a(e.$parent,function(e){t.empty(),t.append(e)})}}}).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(e,t,n,i,a,r){function o(){for(var e=-1,t=f.keys(),n=0;n<t.length;n++)f.get(t[n]).value.backdrop&&(e=n);return e}function s(e){var t=n.find("body").eq(0),i=f.get(e).value;f.remove(e),c(i.modalDomEl,i.modalScope,300,function(){i.modalScope.$destroy(),t.toggleClass(p,f.length()>0),l()})}function l(){if(u&&-1==o()){var e=d;c(u,d,150,function(){e.$destroy(),e=null}),u=void 0,d=void 0}}function c(n,i,a,r){function o(){o.done||(o.done=!0,n.remove(),r&&r())}i.animate=!1;var s=e.transitionEndEventName;if(s){var l=t(o,a);n.bind(s,function(){t.cancel(l),o(),i.$apply()})}else t(o)}var u,d,p="modal-open",f=r.createNew(),h={};return a.$watch(o,function(e){d&&(d.index=e)}),n.bind("keydown",function(e){var t;27===e.which&&(t=f.top(),t&&t.value.keyboard&&(e.preventDefault(),a.$apply(function(){h.dismiss(t.key,"escape key press")})))}),h.open=function(e,t){f.add(e,{deferred:t.deferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});var r=n.find("body").eq(0),s=o();if(s>=0&&!u){d=a.$new(!0),d.index=s;var l=angular.element("<div modal-backdrop></div>");l.attr("backdrop-class",t.backdropClass),u=i(l)(d),r.append(u)}var c=angular.element("<div modal-window></div>");c.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:f.length()-1,animate:"animate"}).html(t.content);var h=i(c)(t.scope);f.top().value.modalDomEl=h,r.append(h),r.addClass(p)},h.close=function(e,t){var n=f.get(e);n&&(n.value.deferred.resolve(t),s(e))},h.dismiss=function(e,t){var n=f.get(e);n&&(n.value.deferred.reject(t),s(e))},h.dismissAll=function(e){for(var t=this.getTop();t;)this.dismiss(t.key,e),t=this.getTop()},h.getTop=function(){return f.top()},h}]).provider("$modal",function(){var e={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(t,n,i,a,r,o,s){function l(e){return e.template?i.when(e.template):a.get(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl,{cache:r}).then(function(e){return e.data})}function c(e){var n=[];return angular.forEach(e,function(e){(angular.isFunction(e)||angular.isArray(e))&&n.push(i.when(t.invoke(e)))}),n}var u={};return u.open=function(t){var a=i.defer(),r=i.defer(),u={result:a.promise,opened:r.promise,close:function(e){s.close(u,e)},dismiss:function(e){s.dismiss(u,e)}};if(t=angular.extend({},e.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");var d=i.all([l(t)].concat(c(t.resolve)));return d.then(function(e){var i=(t.scope||n).$new();i.$close=u.close,i.$dismiss=u.dismiss;var r,l={},c=1;t.controller&&(l.$scope=i,l.$modalInstance=u,angular.forEach(t.resolve,function(t,n){l[n]=e[c++]}),r=o(t.controller,l),t.controllerAs&&(i[t.controllerAs]=r)),s.open(u,{scope:i,deferred:a,content:e[0],backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size})},function(e){a.reject(e)}),d.then(function(){r.resolve(!0)},function(){r.reject(!1)}),u},u}]};return e}),angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(e,t,n){var i=this,a={$setViewValue:angular.noop},r=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(r,o){a=r,this.config=o,a.$render=function(){i.render()},t.itemsPerPage?e.$parent.$watch(n(t.itemsPerPage),function(t){i.itemsPerPage=parseInt(t,10),e.totalPages=i.calculateTotalPages()}):this.itemsPerPage=o.itemsPerPage},this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(e.totalItems/this.itemsPerPage);return Math.max(t||0,1)},this.render=function(){e.page=parseInt(a.$viewValue,10)||1},e.selectPage=function(t){e.page!==t&&t>0&&t<=e.totalPages&&(a.$setViewValue(t),a.$render())},e.getText=function(t){return e[t+"Text"]||i.config[t+"Text"]},e.noPrevious=function(){return 1===e.page},e.noNext=function(){return e.page===e.totalPages},e.$watch("totalItems",function(){e.totalPages=i.calculateTotalPages()}),e.$watch("totalPages",function(t){r(e.$parent,t),e.page>t?e.selectPage(t):a.$render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(e,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(n,i,a,r){function o(e,t,n){return{number:e,text:t,active:n}}function s(e,t){var n=[],i=1,a=t,r=angular.isDefined(u)&&t>u;r&&(d?(i=Math.max(e-Math.floor(u/2),1),a=i+u-1,a>t&&(a=t,i=a-u+1)):(i=(Math.ceil(e/u)-1)*u+1,a=Math.min(i+u-1,t)));for(var s=i;a>=s;s++){var l=o(s,s,s===e);n.push(l)}if(r&&!d){if(i>1){var c=o(i-1,"...",!1);n.unshift(c)}if(t>a){var p=o(a+1,"...",!1);n.push(p)}}return n}var l=r[0],c=r[1];if(c){var u=angular.isDefined(a.maxSize)?n.$parent.$eval(a.maxSize):t.maxSize,d=angular.isDefined(a.rotate)?n.$parent.$eval(a.rotate):t.rotate;n.boundaryLinks=angular.isDefined(a.boundaryLinks)?n.$parent.$eval(a.boundaryLinks):t.boundaryLinks,n.directionLinks=angular.isDefined(a.directionLinks)?n.$parent.$eval(a.directionLinks):t.directionLinks,l.init(c,t),a.maxSize&&n.$parent.$watch(e(a.maxSize),function(e){u=parseInt(e,10),l.render()});var p=l.render;l.render=function(){p(),n.page>0&&n.page<=n.totalPages&&(n.pages=s(n.page,n.totalPages))}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(e){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,n,i,a){var r=a[0],o=a[1];o&&(t.align=angular.isDefined(i.align)?t.$parent.$eval(i.align):e.align,r.init(o,e))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function e(e){var t=/[A-Z]/g,n="-";return e.replace(t,function(e,t){return(t?n:"")+e.toLowerCase()})}var t={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},i={};this.options=function(e){angular.extend(i,e)},this.setTriggers=function(e){angular.extend(n,e)},this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(a,r,o,s,l,c){return function(a,u,d){function p(e){var t=e||f.trigger||d,i=n[t]||t;return{show:t,hide:i}}var f=angular.extend({},t,i),h=e(a),m=c.startSymbol(),g=c.endSymbol(),v="<div "+h+'-popup title="'+m+"title"+g+'" content="'+m+"content"+g+'" placement="'+m+"placement"+g+'" animation="animation" is-open="isOpen"></div>';return{restrict:"EA",compile:function(){var e=r(v);return function(t,n,i){function r(){T.isOpen?d():c()}function c(){(!E||t.$eval(i[u+"Enable"]))&&(y(),T.popupDelay?M||(M=o(h,T.popupDelay,!1),M.then(function(e){e()})):h()())}function d(){t.$apply(function(){m()})}function h(){return M=null,x&&(o.cancel(x),x=null),T.content?(g(),k.css({top:0,left:0,display:"block"}),T.$digest(),C(),T.isOpen=!0,T.$digest(),C):angular.noop}function m(){T.isOpen=!1,o.cancel(M),M=null,T.animation?x||(x=o(v,500)):v()}function g(){k&&v(),S=T.$new(),k=e(S,function(e){D?s.find("body").append(e):n.after(e)})}function v(){x=null,k&&(k.remove(),k=null),S&&(S.$destroy(),S=null)}function y(){b(),$()}function b(){var e=i[u+"Placement"];T.placement=angular.isDefined(e)?e:f.placement}function $(){var e=i[u+"PopupDelay"],t=parseInt(e,10);T.popupDelay=isNaN(t)?f.popupDelay:t}function w(){var e=i[u+"Trigger"];O(),_=p(e),_.show===_.hide?n.bind(_.show,r):(n.bind(_.show,c),n.bind(_.hide,d))}var k,S,x,M,D=!!angular.isDefined(f.appendToBody)&&f.appendToBody,_=p(void 0),E=angular.isDefined(i[u+"Enable"]),T=t.$new(!0),C=function(){var e=l.positionElements(n,k,T.placement,D);e.top+="px",e.left+="px",k.css(e)};T.isOpen=!1,i.$observe(a,function(e){T.content=e,!e&&T.isOpen&&m()}),i.$observe(u+"Title",function(e){T.title=e});var O=function(){n.unbind(_.show,c),n.unbind(_.hide,d)};w();var A=t.$eval(i[u+"Animation"]);T.animation=angular.isDefined(A)?!!A:f.animation;var N=t.$eval(i[u+"AppendToBody"]);D=angular.isDefined(N)?N:D,D&&t.$on("$locationChangeSuccess",function(){T.isOpen&&m()}),t.$on("$destroy",function(){o.cancel(x),o.cancel(M),O(),v(),T=null})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter");
}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(e){return e("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(e){return e("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(e,t,n){var i=this,a=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;this.bars=[],e.max=angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max,this.addBar=function(t,n){a||n.css({transition:"none"}),this.bars.push(t),t.$watch("value",function(n){t.percent=+(100*n/e.max).toFixed(2)}),t.$on("$destroy",function(){n=null,i.removeBar(t)})},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(e,t,n,i){i.addBar(e,t)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(e,t,n,i){i.addBar(e,angular.element(t.children()[0]))}}}),angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(e,t,n){var i={$setViewValue:angular.noop};this.init=function(a){i=a,i.$render=this.render,this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff;var r=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(r)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;n>t;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff},e[t]);return e},e.rate=function(t){!e.readonly&&t>=0&&t<=e.range.length&&(i.$setViewValue(t),i.$render())},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=i.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=i.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(e,t,n,i){var a=i[0],r=i[1];r&&a.init(r)}}}),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(e){var t=this,n=t.tabs=e.tabs=[];t.select=function(e){angular.forEach(n,function(t){t.active&&t!==e&&(t.active=!1,t.onDeselect())}),e.active=!0,e.onSelect()},t.addTab=function(e){n.push(e),1===n.length?e.active=!0:e.active&&t.select(e)},t.removeTab=function(e){var a=n.indexOf(e);if(e.active&&n.length>1&&!i){var r=a==n.length-1?a-1:a+1;t.select(n[r])}n.splice(a,1)};var i;e.$on("$destroy",function(){i=!0})}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(e,t,n){e.vertical=!!angular.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}}).directive("tab",["$parse",function(e){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(t,n,i){return function(t,n,a,r){t.$watch("active",function(e){e&&r.select(t)}),t.disabled=!1,a.disabled&&t.$parent.$watch(e(a.disabled),function(e){t.disabled=!!e}),t.select=function(){t.disabled||(t.active=!0)},r.addTab(t),t.$on("$destroy",function(){r.removeTab(t)}),t.$transcludeFn=i}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(e,t){e.$watch("headingElement",function(e){e&&(t.html(""),t.append(e))})}}}]).directive("tabContentTransclude",function(){function e(e){return e.tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(t,n,i){var a=t.$eval(i.tabContentTransclude);a.$transcludeFn(a.$parent,function(t){angular.forEach(t,function(t){e(t)?a.headingElement=t:n.append(t)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(e,t,n,i,a,r){function o(){var t=parseInt(e.hours,10),n=e.showMeridian?t>0&&13>t:t>=0&&24>t;return n?(e.showMeridian&&(12===t&&(t=0),e.meridian===m[1]&&(t+=12)),t):void 0}function s(){var t=parseInt(e.minutes,10);return t>=0&&60>t?t:void 0}function l(e){return angular.isDefined(e)&&e.toString().length<2?"0"+e:e}function c(e){u(),h.$setViewValue(new Date(f)),d(e)}function u(){h.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1}function d(t){var n=f.getHours(),i=f.getMinutes();e.showMeridian&&(n=0===n||12===n?12:n%12),e.hours="h"===t?n:l(n),e.minutes="m"===t?i:l(i),e.meridian=f.getHours()<12?m[0]:m[1]}function p(e){var t=new Date(f.getTime()+6e4*e);f.setHours(t.getHours(),t.getMinutes()),c()}var f=new Date,h={$setViewValue:angular.noop},m=angular.isDefined(t.meridians)?e.$parent.$eval(t.meridians):r.meridians||a.DATETIME_FORMATS.AMPMS;this.init=function(n,i){h=n,h.$render=this.render;var a=i.eq(0),o=i.eq(1),s=angular.isDefined(t.mousewheel)?e.$parent.$eval(t.mousewheel):r.mousewheel;s&&this.setupMousewheelEvents(a,o),e.readonlyInput=angular.isDefined(t.readonlyInput)?e.$parent.$eval(t.readonlyInput):r.readonlyInput,this.setupInputEvents(a,o)};var g=r.hourStep;t.hourStep&&e.$parent.$watch(n(t.hourStep),function(e){g=parseInt(e,10)});var v=r.minuteStep;t.minuteStep&&e.$parent.$watch(n(t.minuteStep),function(e){v=parseInt(e,10)}),e.showMeridian=r.showMeridian,t.showMeridian&&e.$parent.$watch(n(t.showMeridian),function(t){if(e.showMeridian=!!t,h.$error.time){var n=o(),i=s();angular.isDefined(n)&&angular.isDefined(i)&&(f.setHours(n),c())}else d()}),this.setupMousewheelEvents=function(t,n){var i=function(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.bind("mousewheel wheel",function(t){e.$apply(i(t)?e.incrementHours():e.decrementHours()),t.preventDefault()}),n.bind("mousewheel wheel",function(t){e.$apply(i(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()})},this.setupInputEvents=function(t,n){if(e.readonlyInput)return e.updateHours=angular.noop,void(e.updateMinutes=angular.noop);var i=function(t,n){h.$setViewValue(null),h.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t),angular.isDefined(n)&&(e.invalidMinutes=n)};e.updateHours=function(){var e=o();angular.isDefined(e)?(f.setHours(e),c("h")):i(!0)},t.bind("blur",function(){!e.invalidHours&&e.hours<10&&e.$apply(function(){e.hours=l(e.hours)})}),e.updateMinutes=function(){var e=s();angular.isDefined(e)?(f.setMinutes(e),c("m")):i(void 0,!0)},n.bind("blur",function(){!e.invalidMinutes&&e.minutes<10&&e.$apply(function(){e.minutes=l(e.minutes)})})},this.render=function(){var e=h.$modelValue?new Date(h.$modelValue):null;isNaN(e)?(h.$setValidity("time",!1),i.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(e&&(f=e),u(),d())},e.incrementHours=function(){p(60*g)},e.decrementHours=function(){p(60*-g)},e.incrementMinutes=function(){p(v)},e.decrementMinutes=function(){p(-v)},e.toggleMeridian=function(){p(720*(f.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(e,t,n,i){var a=i[0],r=i[1];r&&a.init(r,t.find("input"))}}}),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var i=n.match(t);if(!i)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:i[3],source:e(i[4]),viewMapper:e(i[2]||i[1]),modelMapper:e(i[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(e,t,n,i,a,r,o){var s=[9,13,27,38,40];return{require:"ngModel",link:function(l,c,u,d){var p,f=l.$eval(u.typeaheadMinLength)||1,h=l.$eval(u.typeaheadWaitMs)||0,m=l.$eval(u.typeaheadEditable)!==!1,g=t(u.typeaheadLoading).assign||angular.noop,v=t(u.typeaheadOnSelect),y=u.typeaheadInputFormatter?t(u.typeaheadInputFormatter):void 0,b=!!u.typeaheadAppendToBody&&l.$eval(u.typeaheadAppendToBody),$=l.$eval(u.typeaheadFocusFirst)!==!1,w=t(u.ngModel).assign,k=o.parse(u.typeahead),S=l.$new();l.$on("$destroy",function(){S.$destroy()});var x="typeahead-"+S.$id+"-"+Math.floor(1e4*Math.random());c.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":x});var M=angular.element("<div typeahead-popup></div>");M.attr({id:x,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"}),angular.isDefined(u.typeaheadTemplateUrl)&&M.attr("template-url",u.typeaheadTemplateUrl);var D=function(){S.matches=[],S.activeIdx=-1,c.attr("aria-expanded",!1)},_=function(e){return x+"-option-"+e};S.$watch("activeIdx",function(e){0>e?c.removeAttr("aria-activedescendant"):c.attr("aria-activedescendant",_(e))});var E=function(e){var t={$viewValue:e};g(l,!0),n.when(k.source(l,t)).then(function(n){var i=e===d.$viewValue;if(i&&p)if(n.length>0){S.activeIdx=$?0:-1,S.matches.length=0;for(var a=0;a<n.length;a++)t[k.itemName]=n[a],S.matches.push({id:_(a),label:k.viewMapper(S,t),model:n[a]});S.query=e,S.position=b?r.offset(c):r.position(c),S.position.top=S.position.top+c.prop("offsetHeight"),c.attr("aria-expanded",!0)}else D();i&&g(l,!1)},function(){D(),g(l,!1)})};D(),S.query=void 0;var T,C=function(e){T=i(function(){E(e)},h)},O=function(){T&&i.cancel(T)};d.$parsers.unshift(function(e){return p=!0,e&&e.length>=f?h>0?(O(),C(e)):E(e):(g(l,!1),O(),D()),m?e:e?void d.$setValidity("editable",!1):(d.$setValidity("editable",!0),e)}),d.$formatters.push(function(e){var t,n,i={};return y?(i.$model=e,y(l,i)):(i[k.itemName]=e,t=k.viewMapper(l,i),i[k.itemName]=void 0,n=k.viewMapper(l,i),t!==n?t:e)}),S.select=function(e){var t,n,a={};a[k.itemName]=n=S.matches[e].model,t=k.modelMapper(l,a),w(l,t),d.$setValidity("editable",!0),v(l,{$item:n,$model:t,$label:k.viewMapper(l,a)}),D(),i(function(){c[0].focus()},0,!1)},c.bind("keydown",function(e){0!==S.matches.length&&-1!==s.indexOf(e.which)&&(-1!=S.activeIdx||13!==e.which&&9!==e.which)&&(e.preventDefault(),40===e.which?(S.activeIdx=(S.activeIdx+1)%S.matches.length,S.$digest()):38===e.which?(S.activeIdx=(S.activeIdx>0?S.activeIdx:S.matches.length)-1,S.$digest()):13===e.which||9===e.which?S.$apply(function(){S.select(S.activeIdx)}):27===e.which&&(e.stopPropagation(),D(),S.$digest()))}),c.bind("blur",function(){p=!1});var A=function(e){c[0]!==e.target&&(D(),S.$digest())};a.bind("click",A),l.$on("$destroy",function(){a.unbind("click",A),b&&N.remove()});var N=e(M)(S);b?a.find("body").append(N):c.after(N)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(e,t,n){e.templateUrl=n.templateUrl,e.isOpen=function(){return e.matches.length>0},e.isActive=function(t){return e.active==t},e.selectActive=function(t){e.active=t},e.selectMatch=function(t){e.select({activeIdx:t})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(e,t,n,i){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(a,r,o){var s=i(o.templateUrl)(a.$parent)||"template/typeahead/typeahead-match.html";e.get(s,{cache:t}).success(function(e){r.replaceWith(n(e.trim())(a))})}}}]).filter("typeaheadHighlight",function(){function e(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,n){return n?(""+t).replace(new RegExp(e(n),"gi"),"<strong>$&</strong>"):t}}),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n  <div class="panel-heading">\n    <h4 class="panel-title">\n      <a href class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n    </h4>\n  </div>\n  <div class="panel-collapse" collapse="!isOpen">\n\t  <div class="panel-body" ng-transclude></div>\n  </div>\n</div>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissable\' : null]" role="alert">\n    <button ng-show="closeable" type="button" class="close" ng-click="close()">\n        <span aria-hidden="true">&times;</span>\n        <span class="sr-only">Close</span>\n    </button>\n    <div ng-transclude></div>\n</div>\n')}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n    <ol class="carousel-indicators" ng-show="slides.length > 1">\n        <li ng-repeat="slide in slides track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"></li>\n    </ol>\n    <div class="carousel-inner" ng-transclude></div>\n    <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"></span></a>\n    <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"></span></a>\n</div>\n')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("template/carousel/slide.html","<div ng-class=\"{\n    'active': leaving || (active && !entering),\n    'prev': (next || active) && direction=='prev',\n    'next': (next || active) && direction=='next',\n    'right': direction=='prev',\n    'left': direction=='next'\n  }\" class=\"item text-center\" ng-transclude></div>\n")}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <daypicker ng-switch-when="day" tabindex="0"></daypicker>\n  <monthpicker ng-switch-when="month" tabindex="0"></monthpicker>\n  <yearpicker ng-switch-when="year" tabindex="0"></yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{5 + showWeeks}}"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n    <tr>\n      <th ng-show="showWeeks" class="text-center"></th>\n      <th ng-repeat="label in labels track by $index" class="text-center"><small aria-label="{{label.full}}">{{label.abbr}}</small></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-show="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)">\n\t<li ng-transclude></li>\n\t<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n\t\t<span class="btn-group pull-left">\n\t\t\t<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')">{{ getText(\'current\') }}</button>\n\t\t\t<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n\t\t</span>\n\t\t<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n\t</li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="3"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n        <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("template/modal/backdrop.html",'<div class="modal-backdrop fade {{ backdropClass }}"\n     ng-class="{in: animate}"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(e){e.put("template/modal/window.html",'<div tabindex="-1" role="dialog" class="modal fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n    <div class="modal-dialog" ng-class="{\'modal-sm\': size == \'sm\', \'modal-lg\': size == \'lg\'}"><div class="modal-content" modal-transclude></div></div>\n</div>')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious(), previous: align}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}</a></li>\n  <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}</a></li>\n</ul>')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="boundaryLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(1)">{{getText(\'first\')}}</a></li>\n  <li ng-if="directionLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}</a></li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active}"><a href ng-click="selectPage(page.number)">{{page.text}}</a></li>\n  <li ng-if="directionLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}</a></li>\n  <li ng-if="boundaryLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(totalPages)">{{getText(\'last\')}}</a></li>\n</ul>')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-show="title"></h3>\n      <div class="popover-content" ng-bind="content"></div>\n  </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progress.html",'<div class="progress" ng-transclude></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>\n</div>')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n    <i ng-repeat="r in range track by $index" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')">\n        <span class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    </i>\n</span>')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n  <a href ng-click="select()" tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n  <div class="tab-content">\n    <div class="tab-pane" \n         ng-repeat="tab in tabs" \n         ng-class="{active: tab.active}"\n         tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("template/timepicker/timepicker.html",'<table>\n\t<tbody>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n\t\t\t<td ng-show="showMeridian"></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidHours}">\n\t\t\t\t<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t</td>\n\t\t\t<td>:</td>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n\t\t\t\t<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t</td>\n\t\t\t<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n\t\t</tr>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n\t\t\t<td ng-show="showMeridian"></td>\n\t\t</tr>\n\t</tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"></a>')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}">\n        <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]),angular.module("ui.sortable",[]).value("uiSortableConfig",{}).directive("uiSortable",["uiSortableConfig","$timeout","$log",function(e,t,n){return{require:"?ngModel",scope:{ngModel:"=",uiSortable:"="},link:function(i,a,r,o){function s(e,t){return t&&"function"==typeof t?function(){e.apply(this,arguments),t.apply(this,arguments)}:e}function l(e){var t=e.data("ui-sortable");return t&&"object"==typeof t&&"ui-sortable"===t.widgetFullName?t:null}function c(e,t){var n=e.sortable("option","helper");return"clone"===n||"function"==typeof n&&t.item.sortable.isCustomHelperUsed()}function u(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))}function d(e,t){for(var n=null,i=0;i<e.length;i++){var a=e[i];if(a.element[0]===t[0]){n=a.scope;break}}return n}function p(e,t){t.item.sortable._destroy()}var f,h={},m={"ui-floating":void 0},g={receive:null,remove:null,start:null,stop:null,update:null},v={helper:null};return angular.extend(h,m,e,i.uiSortable),angular.element.fn&&angular.element.fn.jquery?(o?(i.$watch("ngModel.length",function(){t(function(){l(a)&&a.sortable("refresh")},0,!1)}),g.start=function(e,t){if("auto"===h["ui-floating"]){var n=t.item.siblings(),i=l(angular.element(e.target));i.floating=u(n)}t.item.sortable={model:o.$modelValue[t.item.index()],index:t.item.index(),source:t.item.parent(),sourceModel:o.$modelValue,cancel:function(){t.item.sortable._isCanceled=!0},isCanceled:function(){return t.item.sortable._isCanceled},isCustomHelperUsed:function(){return!!t.item.sortable._isCustomHelperUsed},_isCanceled:!1,_isCustomHelperUsed:t.item.sortable._isCustomHelperUsed,_destroy:function(){angular.forEach(t.item.sortable,function(e,n){t.item.sortable[n]=void 0})}}},g.activate=function(e,t){f=a.contents();var n=a.sortable("option","placeholder");if(n&&n.element&&"function"==typeof n.element){var r=n.element();r=angular.element(r);var o=a.find('[class="'+r.attr("class")+'"]:not([ng-repeat], [data-ng-repeat])');f=f.not(o)}var s=t.item.sortable._connectedSortables||[];s.push({element:a,scope:i}),t.item.sortable._connectedSortables=s},g.update=function(e,t){if(!t.item.sortable.received){t.item.sortable.dropindex=t.item.index();var n=t.item.parent();t.item.sortable.droptarget=n;var r=d(t.item.sortable._connectedSortables,n);t.item.sortable.droptargetModel=r.ngModel,a.sortable("cancel")}c(a,t)&&!t.item.sortable.received&&"parent"===a.sortable("option","appendTo")&&(f=f.not(f.last())),
f.appendTo(a),t.item.sortable.received&&(f=null),t.item.sortable.received&&!t.item.sortable.isCanceled()&&i.$apply(function(){o.$modelValue.splice(t.item.sortable.dropindex,0,t.item.sortable.moved)})},g.stop=function(e,t){!t.item.sortable.received&&"dropindex"in t.item.sortable&&!t.item.sortable.isCanceled()?i.$apply(function(){o.$modelValue.splice(t.item.sortable.dropindex,0,o.$modelValue.splice(t.item.sortable.index,1)[0])}):"dropindex"in t.item.sortable&&!t.item.sortable.isCanceled()||c(a,t)||f.appendTo(a),f=null},g.receive=function(e,t){t.item.sortable.received=!0},g.remove=function(e,t){"dropindex"in t.item.sortable||(a.sortable("cancel"),t.item.sortable.cancel()),t.item.sortable.isCanceled()||i.$apply(function(){t.item.sortable.moved=o.$modelValue.splice(t.item.sortable.index,1)[0]})},v.helper=function(e){return e&&"function"==typeof e?function(t,n){var i=e.apply(this,arguments);return n.sortable._isCustomHelperUsed=n!==i,i}:e},i.$watch("uiSortable",function(e){var t=l(a);t&&angular.forEach(e,function(e,n){return n in m?("ui-floating"!==n||e!==!1&&e!==!0||(t.floating=e),void(h[n]=e)):(g[n]?("stop"===n&&(e=s(e,function(){i.$apply()}),e=s(e,p)),e=s(g[n],e)):v[n]&&(e=v[n](e)),h[n]=e,void a.sortable("option",n,e))})},!0),angular.forEach(g,function(e,t){h[t]=s(e,h[t]),"stop"===t&&(h[t]=s(h[t],p))})):n.info("ui.sortable: ngModel not provided!",a),void a.sortable(h)):void n.error("ui.sortable: jQuery should be included before AngularJS!")}}}]),require=function e(t,n,i){function a(o,s){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(r)return r(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return a(n?n:e)},u,u.exports,e,t,n,i)}return n[o].exports}for(var r="function"==typeof require&&require,o=0;o<i.length;o++)a(i[o]);return a}({1:[function(e,t,n){!function(e,i){"function"==typeof define&&define.amd?define([],i):"object"==typeof n?t.exports=i():e.BrV=i()}(this,function(){function e(e,t){var n=t.algorithmSteps,i=o.handleStr[n[0]](e),a=o.sum[n[1]](i,t.pesos),r=o.rest[n[2]](a),s=parseInt(i[t.dvpos]),l=o.expectedDV[n[3]](r,i);return s===l}function t(t,n){if(n.match&&!n.match.test(t))return!1;for(var i=0;i<n.dvs.length;i++)if(!e(t,n.dvs[i]))return!1;return!0}var n={};n.validate=function(e){var t=[6,5,4,3,2,9,8,7,6,5,4,3,2];e=e.replace(/[^\d]/g,"");var n=/^(0{14}|1{14}|2{14}|3{14}|4{14}|5{14}|6{14}|7{14}|8{14}|9{14})$/;if(!e||14!==e.length||n.test(e))return!1;e=e.split("");for(var i=0,a=0;12>i;i++)a+=e[i]*t[i+1];if(a=11-a%11,a=a>=10?0:a,parseInt(e[12])!==a)return!1;for(i=0,a=0;12>=i;i++)a+=e[i]*t[i];return a=11-a%11,a=a>=10?0:a,parseInt(e[13])===a};var i={};i.validate=function(e){function t(t){for(var n=0,i=t-9,a=0;9>a;a++)n+=parseInt(e.charAt(a+i))*(a+1);return n%11%10===parseInt(e.charAt(t))}e=e.replace(/[^\d]+/g,"");var n=/^(0{11}|1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11})$/;return!(!e||11!==e.length||n.test(e))&&(t(9)&&t(10))};var a=function(e){return this instanceof a?(this.rules=r[e]||[],this.rule,a.prototype._defineRule=function(e){this.rule=void 0;for(var t=0;t<this.rules.length&&void 0===this.rule;t++){var n=e.replace(/[^\d]/g,""),i=this.rules[t];n.length!==i.chars||i.match&&!i.match.test(e)||(this.rule=i)}return!!this.rule},void(a.prototype.validate=function(e){return!(!e||!this._defineRule(e))&&this.rule.validate(e)})):new a(e)},r={},o={handleStr:{onlyNumbers:function(e){return e.replace(/[^\d]/g,"").split("")},mgSpec:function(e){var t=e.replace(/[^\d]/g,"");return t=t.substr(0,3)+"0"+t.substr(3,t.length),t.split("")}},sum:{normalSum:function(e,t){for(var n=e,i=0,a=0;a<t.length;a++)i+=parseInt(n[a])*t[a];return i},individualSum:function(e,t){for(var n=e,i=0,a=0;a<t.length;a++){var r=parseInt(n[a])*t[a];i+=r%10+parseInt(r/10)}return i},apSpec:function(e,t){var n=this.normalSum(e,t),i=e.join("");return i>="030000010"&&"030170009">=i?n+5:i>="030170010"&&"030190229">=i?n+9:n}},rest:{mod11:function(e){return e%11},mod10:function(e){return e%10},mod9:function(e){return e%9}},expectedDV:{minusRestOf11:function(e){return 2>e?0:11-e},minusRestOf11v2:function(e){return 2>e?11-e-10:11-e},minusRestOf10:function(e){return 1>e?0:10-e},mod10:function(e){return e%10},goSpec:function(e,t){var n=t.join("");return 1===e?n>="101031050"&&"101199979">=n?1:0:0===e?0:11-e},apSpec:function(e,t){var n=t.join("");return 0===e?n>="030170010"&&"030190229">=n?1:0:1===e?0:11-e},voidFn:function(e){return e}}};return r.PE=[{chars:9,dvs:[{dvpos:7,pesos:[8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}},{chars:14,pesos:[[1,2,3,4,5,9,8,7,6,5,4,3,2]],dvs:[{dvpos:13,pesos:[5,4,3,2,1,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11v2"]}],validate:function(e){return t(e,this)}}],r.RS=[{chars:10,dvs:[{dvpos:9,pesos:[2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.AC=[{chars:13,match:/^01/,dvs:[{dvpos:11,pesos:[4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:12,pesos:[5,4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.MG=[{chars:13,dvs:[{dvpos:12,pesos:[1,2,1,2,1,2,1,2,1,2,1,2],algorithmSteps:["mgSpec","individualSum","mod10","minusRestOf10"]},{dvpos:12,pesos:[3,2,11,10,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.SP=[{chars:12,match:/^[0-9]/,dvs:[{dvpos:8,pesos:[1,3,4,5,6,7,8,10],algorithmSteps:["onlyNumbers","normalSum","mod11","mod10"]},{dvpos:11,pesos:[3,2,10,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","mod10"]}],validate:function(e){return t(e,this)}},{chars:12,match:/^P/i,dvs:[{dvpos:8,pesos:[1,3,4,5,6,7,8,10],algorithmSteps:["onlyNumbers","normalSum","mod11","mod10"]}],validate:function(e){return t(e,this)}}],r.DF=[{chars:13,dvs:[{dvpos:11,pesos:[4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:12,pesos:[5,4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.ES=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.BA=[{chars:8,match:/^[0123458]/,dvs:[{dvpos:7,pesos:[7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]},{dvpos:6,pesos:[8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]}],validate:function(e){return t(e,this)}},{chars:8,match:/^[679]/,dvs:[{dvpos:7,pesos:[7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:6,pesos:[8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}},{chars:9,match:/^[0-9][0123458]/,dvs:[{dvpos:8,pesos:[8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]},{dvpos:7,pesos:[9,8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod10","minusRestOf10"]}],validate:function(e){return t(e,this)}},{chars:9,match:/^[0-9][679]/,dvs:[{dvpos:8,pesos:[8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:7,pesos:[9,8,7,6,5,4,3,0,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.AM=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.RN=[{chars:9,match:/^20/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}},{chars:10,match:/^20/,dvs:[{dvpos:8,pesos:[10,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.RO=[{chars:14,dvs:[{dvpos:13,pesos:[6,5,4,3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.PR=[{chars:10,dvs:[{dvpos:8,pesos:[3,2,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]},{dvpos:9,pesos:[4,3,2,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.SC=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.RJ=[{chars:8,dvs:[{dvpos:7,pesos:[2,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.PA=[{chars:9,match:/^15/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.SE=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.PB=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.CE=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.PI=[{chars:9,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.MA=[{chars:9,match:/^12/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.MT=[{chars:11,dvs:[{dvpos:10,pesos:[3,2,9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.MS=[{chars:9,match:/^28/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.TO=[{chars:11,match:/^[0-9]{2}((0[123])|(99))/,dvs:[{dvpos:10,pesos:[9,8,0,0,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.AL=[{chars:9,match:/^24[03578]/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","minusRestOf11"]}],validate:function(e){return t(e,this)}}],r.RR=[{chars:9,match:/^24/,dvs:[{dvpos:8,pesos:[1,2,3,4,5,6,7,8],algorithmSteps:["onlyNumbers","normalSum","mod9","voidFn"]}],validate:function(e){return t(e,this)}}],r.GO=[{chars:9,match:/^1[015]/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","normalSum","mod11","goSpec"]}],validate:function(e){return t(e,this)}}],r.AP=[{chars:9,match:/^03/,dvs:[{dvpos:8,pesos:[9,8,7,6,5,4,3,2],algorithmSteps:["onlyNumbers","apSpec","mod11","apSpec"]}],validate:function(e){return t(e,this)}}],{ie:a,cpf:i,cnpj:n}})},{}],2:[function(e,t,n){!function(e,i){"object"==typeof n&&"undefined"!=typeof t?t.exports=i():"function"==typeof define&&define.amd?define(i):e.moment=i()}(this,function(){"use strict";function n(){return li.apply(null,arguments)}function i(e){li=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function o(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,n,i){return Re(e,t,n,i,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function d(e){return null==e._pf&&(e._pf=u()),e._pf}function p(e){if(null==e._isValid){var t=d(e),n=ci.call(t.parsedDateParts,function(e){return null!=e});e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function f(e){var t=c(NaN);return null!=e?l(d(t),e):d(t).userInvalidated=!0,t}function h(e){return void 0===e}function m(e,t){var n,i,a;if(h(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),h(t._i)||(e._i=t._i),h(t._f)||(e._f=t._f),h(t._l)||(e._l=t._l),h(t._strict)||(e._strict=t._strict),h(t._tzm)||(e._tzm=t._tzm),h(t._isUTC)||(e._isUTC=t._isUTC),h(t._offset)||(e._offset=t._offset),h(t._pf)||(e._pf=d(t)),h(t._locale)||(e._locale=t._locale),ui.length>0)for(n in ui)i=ui[n],a=t[i],h(a)||(e[i]=a);return e}function g(e){m(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),di===!1&&(di=!0,n.updateOffset(this),di=!1)}function v(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function y(e){return 0>e?Math.ceil(e):Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=y(t)),n}function $(e,t,n){var i,a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),o=0;for(i=0;a>i;i++)(n&&e[i]!==t[i]||!n&&b(e[i])!==b(t[i]))&&o++;return o+r}function w(e){n.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var i=!0;return l(function(){return null!=n.deprecationHandler&&n.deprecationHandler(null,e),i&&(w(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),i=!1),t.apply(this,arguments)},t)}function S(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),pi[e]||(w(t),pi[e]=!0)}function x(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e){return"[object Object]"===Object.prototype.toString.call(e)}function D(e){var t,n;for(n in e)t=e[n],x(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function _(e,t){var n,i=l({},e);for(n in t)s(t,n)&&(M(e[n])&&M(t[n])?(i[n]={},l(i[n],e[n]),l(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);return i}function E(e){null!=e&&this.set(e)}function T(e){return e?e.toLowerCase().replace("_","-"):e}function C(e){for(var t,n,i,a,r=0;r<e.length;){for(a=T(e[r]).split("-"),t=a.length,n=T(e[r+1]),n=n?n.split("-"):null;t>0;){if(i=O(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&$(a,n,!0)>=t-1)break;t--}r++}return null}function O(n){var i=null;if(!gi[n]&&"undefined"!=typeof t&&t&&t.exports)try{i=hi._abbr,e("./locale/"+n),A(i)}catch(a){}return gi[n]}function A(e,t){var n;return e&&(n=h(t)?Y(e):N(e,t),n&&(hi=n)),hi._abbr}function N(e,t){return null!==t?(t.abbr=e,null!=gi[e]?(S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),t=_(gi[e]._config,t)):null!=t.parentLocale&&(null!=gi[t.parentLocale]?t=_(gi[t.parentLocale]._config,t):S("parentLocaleUndefined","specified parentLocale is not defined yet")),gi[e]=new E(t),A(e),gi[e]):(delete gi[e],null)}function P(e,t){if(null!=t){var n;null!=gi[e]&&(t=_(gi[e]._config,t)),n=new E(t),n.parentLocale=gi[e],gi[e]=n,A(e)}else null!=gi[e]&&(null!=gi[e].parentLocale?gi[e]=gi[e].parentLocale:null!=gi[e]&&delete gi[e]);return gi[e]}function Y(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return hi;if(!a(e)){if(t=O(e))return t;e=[e]}return C(e)}function I(){return fi(gi)}function R(e,t){var n=e.toLowerCase();vi[n]=vi[n+"s"]=vi[t]=e}function V(e){return"string"==typeof e?vi[e]||vi[e.toLowerCase()]:void 0}function F(e){var t,n,i={};for(n in e)s(e,n)&&(t=V(n),t&&(i[t]=e[n]));return i}function H(e,t){return function(i){return null!=i?(L(this,e,i),n.updateOffset(this,t),this):U(this,e)}}function U(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function L(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function W(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=V(e),x(this[e]))return this[e](t);return this}function q(e,t,n){var i=""+Math.abs(e),a=t-i.length,r=e>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}function j(e,t,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),e&&(wi[e]=a),t&&(wi[t[0]]=function(){return q(a.apply(this,arguments),t[1],t[2])}),n&&(wi[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,i=e.match(yi);for(t=0,n=i.length;n>t;t++)wi[i[t]]?i[t]=wi[i[t]]:i[t]=G(i[t]);return function(t){var a,r="";for(a=0;n>a;a++)r+=i[a]instanceof Function?i[a].call(t,e):i[a];return r}}function z(e,t){return e.isValid()?(t=X(t,e.localeData()),$i[t]=$i[t]||B(t),$i[t](e)):e.localeData().invalidDate()}function X(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(bi.lastIndex=0;i>=0&&bi.test(e);)e=e.replace(bi,n),bi.lastIndex=0,i-=1;return e}function Z(e,t,n){Fi[e]=x(t)?t:function(e,i){return e&&n?n:t}}function K(e,t){return s(Fi,e)?Fi[e](t._strict,t._locale):new RegExp(J(e))}function J(e){return Q(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,a){return t||n||i||a}))}function Q(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){n[t]=b(e)}),n=0;n<e.length;n++)Hi[e[n]]=i}function te(e,t){ee(e,function(e,n,i,a){i._w=i._w||{},t(e,i._w,i,a)})}function ne(e,t,n){null!=t&&s(Hi,e)&&Hi[e](t,n._a,n,e)}function ie(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ae(e,t){return a(this._months)?this._months[e.month()]:this._months[Zi.test(t)?"format":"standalone"][e.month()]}function re(e,t){return a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zi.test(t)?"format":"standalone"][e.month()]}function oe(e,t,n){var i,a,r,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;12>i;++i)r=c([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(a=mi.call(this._shortMonthsParse,o),-1!==a?a:null):(a=mi.call(this._longMonthsParse,o),-1!==a?a:null):"MMM"===t?(a=mi.call(this._shortMonthsParse,o),-1!==a?a:(a=mi.call(this._longMonthsParse,o),-1!==a?a:null)):(a=mi.call(this._longMonthsParse,o),-1!==a?a:(a=mi.call(this._shortMonthsParse,o),-1!==a?a:null))}function se(e,t,n){var i,a,r;if(this._monthsParseExact)return oe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(a=c([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function le(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),"number"!=typeof t)return e;return n=Math.min(e.date(),ie(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ce(e){return null!=e?(le(this,e),n.updateOffset(this,!0),this):U(this,"Month")}function ue(){return ie(this.year(),this.month())}function de(e){return this._monthsParseExact?(s(this,"_monthsRegex")||fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}function pe(e){return this._monthsParseExact?(s(this,"_monthsRegex")||fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}function fe(){function e(e,t){return t.length-e.length}var t,n,i=[],a=[],r=[];for(t=0;12>t;t++)n=c([2e3,t]),i.push(this.monthsShort(n,"")),a.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(e),a.sort(e),r.sort(e),t=0;12>t;t++)i[t]=Q(i[t]),a[t]=Q(a[t]),r[t]=Q(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function he(e){var t,n=e._a;return n&&-2===d(e).overflow&&(t=n[Li]<0||n[Li]>11?Li:n[Wi]<1||n[Wi]>ie(n[Ui],n[Li])?Wi:n[qi]<0||n[qi]>24||24===n[qi]&&(0!==n[ji]||0!==n[Gi]||0!==n[Bi])?qi:n[ji]<0||n[ji]>59?ji:n[Gi]<0||n[Gi]>59?Gi:n[Bi]<0||n[Bi]>999?Bi:-1,d(e)._overflowDayOfYear&&(Ui>t||t>Wi)&&(t=Wi),d(e)._overflowWeeks&&-1===t&&(t=zi),d(e)._overflowWeekday&&-1===t&&(t=Xi),d(e).overflow=t),e}function me(e){var t,n,i,a,r,o,s=e._i,l=ta.exec(s)||na.exec(s);if(l){for(d(e).iso=!0,t=0,n=aa.length;n>t;t++)if(aa[t][1].exec(l[1])){a=aa[t][0],i=aa[t][2]!==!1;break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=ra.length;n>t;t++)if(ra[t][1].exec(l[3])){r=(l[2]||" ")+ra[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(l[4]){if(!ia.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=a+(r||"")+(o||""),Ce(e)}else e._isValid=!1}function ge(e){var t=oa.exec(e._i);return null!==t?void(e._d=new Date((+t[1]))):(me(e),void(e._isValid===!1&&(delete e._isValid,n.createFromInputFallback(e))))}function ve(e,t,n,i,a,r,o){var s=new Date(e,t,n,i,a,r,o);return 100>e&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function ye(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function be(e){return $e(e)?366:365}function $e(e){return e%4===0&&e%100!==0||e%400===0}function we(){return $e(this.year())}function ke(e,t,n){var i=7+t-n,a=(7+ye(e,0,i).getUTCDay()-t)%7;return-a+i-1}function Se(e,t,n,i,a){var r,o,s=(7+n-i)%7,l=ke(e,i,a),c=1+7*(t-1)+s+l;return 0>=c?(r=e-1,o=be(r)+c):c>be(e)?(r=e+1,o=c-be(e)):(r=e,o=c),{year:r,dayOfYear:o}}function xe(e,t,n){var i,a,r=ke(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1;return 1>o?(a=e.year()-1,i=o+Me(a,t,n)):o>Me(e.year(),t,n)?(i=o-Me(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function Me(e,t,n){var i=ke(e,t,n),a=ke(e+1,t,n);return(be(e)-i+a)/7}function De(e,t,n){return null!=e?e:null!=t?t:n}function _e(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ee(e){var t,n,i,a,r=[];if(!e._d){for(i=_e(e),e._w&&null==e._a[Wi]&&null==e._a[Li]&&Te(e),e._dayOfYear&&(a=De(e._a[Ui],i[Ui]),e._dayOfYear>be(a)&&(d(e)._overflowDayOfYear=!0),n=ye(a,0,e._dayOfYear),e._a[Li]=n.getUTCMonth(),e._a[Wi]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=r[t]=i[t];for(;7>t;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[qi]&&0===e._a[ji]&&0===e._a[Gi]&&0===e._a[Bi]&&(e._nextDay=!0,e._a[qi]=0),e._d=(e._useUTC?ye:ve).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qi]=24)}}function Te(e){var t,n,i,a,r,o,s,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(r=1,o=4,n=De(t.GG,e._a[Ui],xe(Ve(),1,4).year),i=De(t.W,1),a=De(t.E,1),(1>a||a>7)&&(l=!0)):(r=e._locale._week.dow,o=e._locale._week.doy,n=De(t.gg,e._a[Ui],xe(Ve(),r,o).year),i=De(t.w,1),null!=t.d?(a=t.d,(0>a||a>6)&&(l=!0)):null!=t.e?(a=t.e+r,(t.e<0||t.e>6)&&(l=!0)):a=r),1>i||i>Me(n,r,o)?d(e)._overflowWeeks=!0:null!=l?d(e)._overflowWeekday=!0:(s=Se(n,i,a,r,o),e._a[Ui]=s.year,e._dayOfYear=s.dayOfYear)}function Ce(e){if(e._f===n.ISO_8601)return void me(e);e._a=[],d(e).empty=!0;var t,i,a,r,o,s=""+e._i,l=s.length,c=0;for(a=X(e._f,e._locale).match(yi)||[],t=0;t<a.length;t++)r=a[t],i=(s.match(K(r,e))||[])[0],i&&(o=s.substr(0,s.indexOf(i)),o.length>0&&d(e).unusedInput.push(o),s=s.slice(s.indexOf(i)+i.length),c+=i.length),wi[r]?(i?d(e).empty=!1:d(e).unusedTokens.push(r),ne(r,i,e)):e._strict&&!i&&d(e).unusedTokens.push(r);d(e).charsLeftOver=l-c,s.length>0&&d(e).unusedInput.push(s),d(e).bigHour===!0&&e._a[qi]<=12&&e._a[qi]>0&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[qi]=Oe(e._locale,e._a[qi],e._meridiem),Ee(e),he(e)}function Oe(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&12>t&&(t+=12),i||12!==t||(t=0),t):t}function Ae(e){var t,n,i,a,r;if(0===e._f.length)return d(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)r=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Ce(t),p(t)&&(r+=d(t).charsLeftOver,r+=10*d(t).unusedTokens.length,d(t).score=r,(null==i||i>r)&&(i=r,n=t));l(e,n||t)}function Ne(e){if(!e._d){var t=F(e._i);e._a=o([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Ee(e)}}function Pe(e){var t=new g(he(Ye(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ye(e){var t=e._i,n=e._f;return e._locale=e._locale||Y(e._l),null===t||void 0===n&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new g(he(t)):(a(n)?Ae(e):n?Ce(e):r(t)?e._d=t:Ie(e),p(e)||(e._d=null),e))}function Ie(e){var t=e._i;void 0===t?e._d=new Date(n.now()):r(t)?e._d=new Date(t.valueOf()):"string"==typeof t?ge(e):a(t)?(e._a=o(t.slice(0),function(e){return parseInt(e,10)}),Ee(e)):"object"==typeof t?Ne(e):"number"==typeof t?e._d=new Date(t):n.createFromInputFallback(e)}function Re(e,t,n,i,a){var r={};return"boolean"==typeof n&&(i=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=a,r._l=n,r._i=e,r._f=t,r._strict=i,Pe(r)}function Ve(e,t,n,i){return Re(e,t,n,i,!1)}function Fe(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Ve();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function He(){var e=[].slice.call(arguments,0);return Fe("isBefore",e)}function Ue(){var e=[].slice.call(arguments,0);return Fe("isAfter",e)}function Le(e){var t=F(e),n=t.year||0,i=t.quarter||0,a=t.month||0,r=t.week||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+o+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=Y(),this._bubble()}function We(e){return e instanceof Le}function qe(e,t){j(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+q(~~(e/60),2)+t+q(~~e%60,2)})}function je(e,t){var n=(t||"").match(e)||[],i=n[n.length-1]||[],a=(i+"").match(da)||["-",0,0],r=+(60*a[1])+b(a[2]);return"+"===a[0]?r:-r}function Ge(e,t){var i,a;return t._isUTC?(i=t.clone(),a=(v(e)||r(e)?e.valueOf():Ve(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+a),n.updateOffset(i,!1),i):Ve(e).local()}function Be(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function ze(e,t){var i,a=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=je(Ii,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&t&&(i=Be(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?dt(this,rt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?a:Be(this):null!=e?this:NaN}function Xe(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ze(e){return this.utcOffset(0,e)}function Ke(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Be(this),"m")),this}function Je(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(je(Yi,this._i)),this}function Qe(e){return!!this.isValid()&&(e=e?Ve(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function et(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function tt(){if(!h(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=Ye(e),e._a){var t=e._isUTC?c(e._a):Ve(e._a);this._isDSTShifted=this.isValid()&&$(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function nt(){return!!this.isValid()&&!this._isUTC}function it(){return!!this.isValid()&&this._isUTC}function at(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function rt(e,t){var n,i,a,r=e,o=null;return We(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(r={},t?r[t]=e:r.milliseconds=e):(o=pa.exec(e))?(n="-"===o[1]?-1:1,r={y:0,d:b(o[Wi])*n,h:b(o[qi])*n,m:b(o[ji])*n,s:b(o[Gi])*n,ms:b(o[Bi])*n}):(o=fa.exec(e))?(n="-"===o[1]?-1:1,r={y:ot(o[2],n),M:ot(o[3],n),w:ot(o[4],n),d:ot(o[5],n),h:ot(o[6],n),m:ot(o[7],n),s:ot(o[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(a=lt(Ve(r.from),Ve(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),i=new Le(r),We(e)&&s(e,"_locale")&&(i._locale=e._locale),i}function ot(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function st(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function lt(e,t){var n;return e.isValid()&&t.isValid()?(t=Ge(t,e),e.isBefore(t)?n=st(e,t):(n=st(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ct(e){return 0>e?-1*Math.round(-1*e):Math.round(e)}function ut(e,t){return function(n,i){var a,r;return null===i||isNaN(+i)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),r=n,n=i,i=r),n="string"==typeof n?+n:n,a=rt(n,i),dt(this,a,e),this}}function dt(e,t,i,a){var r=t._milliseconds,o=ct(t._days),s=ct(t._months);e.isValid()&&(a=null==a||a,r&&e._d.setTime(e._d.valueOf()+r*i),o&&L(e,"Date",U(e,"Date")+o*i),s&&le(e,U(e,"Month")+s*i),a&&n.updateOffset(e,o||s))}function pt(e,t){var n=e||Ve(),i=Ge(n,this).startOf("day"),a=this.diff(i,"days",!0),r=-6>a?"sameElse":-1>a?"lastWeek":0>a?"lastDay":1>a?"sameDay":2>a?"nextDay":7>a?"nextWeek":"sameElse",o=t&&(x(t[r])?t[r]():t[r]);return this.format(o||this.localeData().calendar(r,this,Ve(n)))}function ft(){return new g(this)}function ht(e,t){var n=v(e)?e:Ve(e);return!(!this.isValid()||!n.isValid())&&(t=V(h(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function mt(e,t){var n=v(e)?e:Ve(e);return!(!this.isValid()||!n.isValid())&&(t=V(h(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function gt(e,t,n,i){return i=i||"()",("("===i[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))}function vt(e,t){var n,i=v(e)?e:Ve(e);return!(!this.isValid()||!i.isValid())&&(t=V(t||"millisecond"),"millisecond"===t?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function yt(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function bt(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function $t(e,t,n){var i,a,r,o;return this.isValid()?(i=Ge(e,this),i.isValid()?(a=6e4*(i.utcOffset()-this.utcOffset()),t=V(t),"year"===t||"month"===t||"quarter"===t?(o=wt(this,i),"quarter"===t?o/=3:"year"===t&&(o/=12)):(r=this-i,o="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-a)/864e5:"week"===t?(r-a)/6048e5:r),
n?o:y(o)):NaN):NaN}function wt(e,t){var n,i,a=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(a,"months");return 0>t-r?(n=e.clone().add(a-1,"months"),i=(t-r)/(r-n)):(n=e.clone().add(a+1,"months"),i=(t-r)/(n-r)),-(a+i)||0}function kt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function St(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?x(Date.prototype.toISOString)?this.toDate().toISOString():z(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):z(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function xt(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)}function Mt(e,t){return this.isValid()&&(v(e)&&e.isValid()||Ve(e).isValid())?rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Dt(e){return this.from(Ve(),e)}function _t(e,t){return this.isValid()&&(v(e)&&e.isValid()||Ve(e).isValid())?rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Et(e){return this.to(Ve(),e)}function Tt(e){var t;return void 0===e?this._locale._abbr:(t=Y(e),null!=t&&(this._locale=t),this)}function Ct(){return this._locale}function Ot(e){switch(e=V(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function At(e){return e=V(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Nt(){return this._d.valueOf()-6e4*(this._offset||0)}function Pt(){return Math.floor(this.valueOf()/1e3)}function Yt(){return this._offset?new Date(this.valueOf()):this._d}function It(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Rt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Vt(){return this.isValid()?this.toISOString():null}function Ft(){return p(this)}function Ht(){return l({},d(this))}function Ut(){return d(this).overflow}function Lt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Wt(e,t){j(0,[e,e.length],0,t)}function qt(e){return zt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function jt(e){return zt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Gt(){return Me(this.year(),1,4)}function Bt(){var e=this.localeData()._week;return Me(this.year(),e.dow,e.doy)}function zt(e,t,n,i,a){var r;return null==e?xe(this,i,a).year:(r=Me(e,i,a),t>r&&(t=r),Xt.call(this,e,t,n,i,a))}function Xt(e,t,n,i,a){var r=Se(e,t,n,i,a),o=ye(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Zt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Kt(e){return xe(e,this._week.dow,this._week.doy).week}function Jt(){return this._week.dow}function Qt(){return this._week.doy}function en(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function tn(e){var t=xe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function nn(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function an(e,t){return a(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function rn(e){return this._weekdaysShort[e.day()]}function on(e){return this._weekdaysMin[e.day()]}function sn(e,t,n){var i,a,r,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;7>i;++i)r=c([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(a=mi.call(this._weekdaysParse,o),-1!==a?a:null):"ddd"===t?(a=mi.call(this._shortWeekdaysParse,o),-1!==a?a:null):(a=mi.call(this._minWeekdaysParse,o),-1!==a?a:null):"dddd"===t?(a=mi.call(this._weekdaysParse,o),-1!==a?a:(a=mi.call(this._shortWeekdaysParse,o),-1!==a?a:(a=mi.call(this._minWeekdaysParse,o),-1!==a?a:null))):"ddd"===t?(a=mi.call(this._shortWeekdaysParse,o),-1!==a?a:(a=mi.call(this._weekdaysParse,o),-1!==a?a:(a=mi.call(this._minWeekdaysParse,o),-1!==a?a:null))):(a=mi.call(this._minWeekdaysParse,o),-1!==a?a:(a=mi.call(this._weekdaysParse,o),-1!==a?a:(a=mi.call(this._shortWeekdaysParse,o),-1!==a?a:null)))}function ln(e,t,n){var i,a,r;if(this._weekdaysParseExact)return sn.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;7>i;i++){if(a=c([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function cn(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=nn(e,this.localeData()),this.add(e-t,"d")):t}function un(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function dn(e){return this.isValid()?null==e?this.day()||7:this.day(this.day()%7?e:e-7):null!=e?this:NaN}function pn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||mn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}function fn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||mn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}function hn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||mn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}function mn(){function e(e,t){return t.length-e.length}var t,n,i,a,r,o=[],s=[],l=[],u=[];for(t=0;7>t;t++)n=c([2e3,1]).day(t),i=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),r=this.weekdays(n,""),o.push(i),s.push(a),l.push(r),u.push(i),u.push(a),u.push(r);for(o.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;7>t;t++)s[t]=Q(s[t]),l[t]=Q(l[t]),u[t]=Q(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function gn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function vn(){return this.hours()%12||12}function yn(){return this.hours()||24}function bn(e,t){j(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function $n(e,t){return t._meridiemParse}function wn(e){return"p"===(e+"").toLowerCase().charAt(0)}function kn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Sn(e,t){t[Bi]=b(1e3*("0."+e))}function xn(){return this._isUTC?"UTC":""}function Mn(){return this._isUTC?"Coordinated Universal Time":""}function Dn(e){return Ve(1e3*e)}function _n(){return Ve.apply(null,arguments).parseZone()}function En(e,t,n){var i=this._calendar[e];return x(i)?i.call(t,n):i}function Tn(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function Cn(){return this._invalidDate}function On(e){return this._ordinal.replace("%d",e)}function An(e){return e}function Nn(e,t,n,i){var a=this._relativeTime[n];return x(a)?a(e,t,n,i):a.replace(/%d/i,e)}function Pn(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}function Yn(e,t,n,i){var a=Y(),r=c().set(i,t);return a[n](r,e)}function In(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Yn(e,t,n,"month");var i,a=[];for(i=0;12>i;i++)a[i]=Yn(e,i,n,"month");return a}function Rn(e,t,n,i){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var a=Y(),r=e?a._week.dow:0;if(null!=n)return Yn(t,(n+r)%7,i,"day");var o,s=[];for(o=0;7>o;o++)s[o]=Yn(t,(o+r)%7,i,"day");return s}function Vn(e,t){return In(e,t,"months")}function Fn(e,t){return In(e,t,"monthsShort")}function Hn(e,t,n){return Rn(e,t,n,"weekdays")}function Un(e,t,n){return Rn(e,t,n,"weekdaysShort")}function Ln(e,t,n){return Rn(e,t,n,"weekdaysMin")}function Wn(){var e=this._data;return this._milliseconds=Ha(this._milliseconds),this._days=Ha(this._days),this._months=Ha(this._months),e.milliseconds=Ha(e.milliseconds),e.seconds=Ha(e.seconds),e.minutes=Ha(e.minutes),e.hours=Ha(e.hours),e.months=Ha(e.months),e.years=Ha(e.years),this}function qn(e,t,n,i){var a=rt(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function jn(e,t){return qn(this,e,t,1)}function Gn(e,t){return qn(this,e,t,-1)}function Bn(e){return 0>e?Math.floor(e):Math.ceil(e)}function zn(){var e,t,n,i,a,r=this._milliseconds,o=this._days,s=this._months,l=this._data;return r>=0&&o>=0&&s>=0||0>=r&&0>=o&&0>=s||(r+=864e5*Bn(Zn(s)+o),o=0,s=0),l.milliseconds=r%1e3,e=y(r/1e3),l.seconds=e%60,t=y(e/60),l.minutes=t%60,n=y(t/60),l.hours=n%24,o+=y(n/24),a=y(Xn(o)),s+=a,o-=Bn(Zn(a)),i=y(s/12),s%=12,l.days=o,l.months=s,l.years=i,this}function Xn(e){return 4800*e/146097}function Zn(e){return 146097*e/4800}function Kn(e){var t,n,i=this._milliseconds;if(e=V(e),"month"===e||"year"===e)return t=this._days+i/864e5,n=this._months+Xn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Zn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function Jn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12)}function Qn(e){return function(){return this.as(e)}}function ei(e){return e=V(e),this[e+"s"]()}function ti(e){return function(){return this._data[e]}}function ni(){return y(this.days()/7)}function ii(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}function ai(e,t,n){var i=rt(e).abs(),a=nr(i.as("s")),r=nr(i.as("m")),o=nr(i.as("h")),s=nr(i.as("d")),l=nr(i.as("M")),c=nr(i.as("y")),u=a<ir.s&&["s",a]||1>=r&&["m"]||r<ir.m&&["mm",r]||1>=o&&["h"]||o<ir.h&&["hh",o]||1>=s&&["d"]||s<ir.d&&["dd",s]||1>=l&&["M"]||l<ir.M&&["MM",l]||1>=c&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,ii.apply(null,u)}function ri(e,t){return void 0!==ir[e]&&(void 0===t?ir[e]:(ir[e]=t,!0))}function oi(e){var t=this.localeData(),n=ai(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function si(){var e,t,n,i=ar(this._milliseconds)/1e3,a=ar(this._days),r=ar(this._months);e=y(i/60),t=y(e/60),i%=60,e%=60,n=y(r/12),r%=12;var o=n,s=r,l=a,c=t,u=e,d=i,p=this.asSeconds();return p?(0>p?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(c||u||d?"T":"")+(c?c+"H":"")+(u?u+"M":"")+(d?d+"S":""):"P0D"}var li,ci;ci=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;n>i;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var ui=n.momentProperties=[],di=!1,pi={};n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;var fi;fi=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var hi,mi,gi={},vi={},yi=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,bi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,$i={},wi={},ki=/\d/,Si=/\d\d/,xi=/\d{3}/,Mi=/\d{4}/,Di=/[+-]?\d{6}/,_i=/\d\d?/,Ei=/\d\d\d\d?/,Ti=/\d\d\d\d\d\d?/,Ci=/\d{1,3}/,Oi=/\d{1,4}/,Ai=/[+-]?\d{1,6}/,Ni=/\d+/,Pi=/[+-]?\d+/,Yi=/Z|[+-]\d\d:?\d\d/gi,Ii=/Z|[+-]\d\d(?::?\d\d)?/gi,Ri=/[+-]?\d+(\.\d{1,3})?/,Vi=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Fi={},Hi={},Ui=0,Li=1,Wi=2,qi=3,ji=4,Gi=5,Bi=6,zi=7,Xi=8;mi=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),j("MMMM",0,0,function(e){return this.localeData().months(this,e)}),R("month","M"),Z("M",_i),Z("MM",_i,Si),Z("MMM",function(e,t){return t.monthsShortRegex(e)}),Z("MMMM",function(e,t){return t.monthsRegex(e)}),ee(["M","MM"],function(e,t){t[Li]=b(e)-1}),ee(["MMM","MMMM"],function(e,t,n,i){var a=n._locale.monthsParse(e,i,n._strict);null!=a?t[Li]=a:d(n).invalidMonth=e});var Zi=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Ki="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ji="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Qi=Vi,ea=Vi,ta=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,na=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,ia=/Z|[+-]\d\d(?::?\d\d)?/,aa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ra=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],oa=/^\/?Date\((\-?\d+)/i;n.createFromInputFallback=k("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),j("Y",0,0,function(){var e=this.year();return 9999>=e?""+e:"+"+e}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),R("year","y"),Z("Y",Pi),Z("YY",_i,Si),Z("YYYY",Oi,Mi),Z("YYYYY",Ai,Di),Z("YYYYYY",Ai,Di),ee(["YYYYY","YYYYYY"],Ui),ee("YYYY",function(e,t){t[Ui]=2===e.length?n.parseTwoDigitYear(e):b(e)}),ee("YY",function(e,t){t[Ui]=n.parseTwoDigitYear(e)}),ee("Y",function(e,t){t[Ui]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var sa=H("FullYear",!0);n.ISO_8601=function(){};var la=k("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=Ve.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:f()}),ca=k("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=Ve.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:f()}),ua=function(){return Date.now?Date.now():+new Date};qe("Z",":"),qe("ZZ",""),Z("Z",Ii),Z("ZZ",Ii),ee(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=je(Ii,e)});var da=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var pa=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,fa=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;rt.fn=Le.prototype;var ha=ut(1,"add"),ma=ut(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ga=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Wt("gggg","weekYear"),Wt("ggggg","weekYear"),Wt("GGGG","isoWeekYear"),Wt("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),Z("G",Pi),Z("g",Pi),Z("GG",_i,Si),Z("gg",_i,Si),Z("GGGG",Oi,Mi),Z("gggg",Oi,Mi),Z("GGGGG",Ai,Di),Z("ggggg",Ai,Di),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=b(e)}),te(["gg","GG"],function(e,t,i,a){t[a]=n.parseTwoDigitYear(e)}),j("Q",0,"Qo","quarter"),R("quarter","Q"),Z("Q",ki),ee("Q",function(e,t){t[Li]=3*(b(e)-1)}),j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),Z("w",_i),Z("ww",_i,Si),Z("W",_i),Z("WW",_i,Si),te(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=b(e)});var va={dow:0,doy:6};j("D",["DD",2],"Do","date"),R("date","D"),Z("D",_i),Z("DD",_i,Si),Z("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ee(["D","DD"],Wi),ee("Do",function(e,t){t[Wi]=b(e.match(_i)[0],10)});var ya=H("Date",!0);j("d",0,"do","day"),j("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),j("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),j("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),Z("d",_i),Z("e",_i),Z("E",_i),Z("dd",function(e,t){return t.weekdaysMinRegex(e)}),Z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Z("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,n,i){var a=n._locale.weekdaysParse(e,i,n._strict);null!=a?t.d=a:d(n).invalidWeekday=e}),te(["d","e","E"],function(e,t,n,i){t[i]=b(e)});var ba="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$a="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wa="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ka=Vi,Sa=Vi,xa=Vi;j("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),Z("DDD",Ci),Z("DDDD",xi),ee(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),j("H",["HH",2],0,"hour"),j("h",["hh",2],0,vn),j("k",["kk",2],0,yn),j("hmm",0,0,function(){return""+vn.apply(this)+q(this.minutes(),2)}),j("hmmss",0,0,function(){return""+vn.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+q(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)}),bn("a",!0),bn("A",!1),R("hour","h"),Z("a",$n),Z("A",$n),Z("H",_i),Z("h",_i),Z("HH",_i,Si),Z("hh",_i,Si),Z("hmm",Ei),Z("hmmss",Ti),Z("Hmm",Ei),Z("Hmmss",Ti),ee(["H","HH"],qi),ee(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ee(["h","hh"],function(e,t,n){t[qi]=b(e),d(n).bigHour=!0}),ee("hmm",function(e,t,n){var i=e.length-2;t[qi]=b(e.substr(0,i)),t[ji]=b(e.substr(i)),d(n).bigHour=!0}),ee("hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[qi]=b(e.substr(0,i)),t[ji]=b(e.substr(i,2)),t[Gi]=b(e.substr(a)),d(n).bigHour=!0}),ee("Hmm",function(e,t,n){var i=e.length-2;t[qi]=b(e.substr(0,i)),t[ji]=b(e.substr(i))}),ee("Hmmss",function(e,t,n){var i=e.length-4,a=e.length-2;t[qi]=b(e.substr(0,i)),t[ji]=b(e.substr(i,2)),t[Gi]=b(e.substr(a))});var Ma=/[ap]\.?m?\.?/i,Da=H("Hours",!0);j("m",["mm",2],0,"minute"),R("minute","m"),Z("m",_i),Z("mm",_i,Si),ee(["m","mm"],ji);var _a=H("Minutes",!1);j("s",["ss",2],0,"second"),R("second","s"),Z("s",_i),Z("ss",_i,Si),ee(["s","ss"],Gi);var Ea=H("Seconds",!1);j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return 10*this.millisecond()}),j(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),j(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),j(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),j(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),j(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),Z("S",Ci,ki),Z("SS",Ci,Si),Z("SSS",Ci,xi);var Ta;for(Ta="SSSS";Ta.length<=9;Ta+="S")Z(Ta,Ni);for(Ta="S";Ta.length<=9;Ta+="S")ee(Ta,Sn);var Ca=H("Milliseconds",!1);j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var Oa=g.prototype;Oa.add=ha,Oa.calendar=pt,Oa.clone=ft,Oa.diff=$t,Oa.endOf=At,Oa.format=xt,Oa.from=Mt,Oa.fromNow=Dt,Oa.to=_t,Oa.toNow=Et,Oa.get=W,Oa.invalidAt=Ut,Oa.isAfter=ht,Oa.isBefore=mt,Oa.isBetween=gt,Oa.isSame=vt,Oa.isSameOrAfter=yt,Oa.isSameOrBefore=bt,Oa.isValid=Ft,Oa.lang=ga,Oa.locale=Tt,Oa.localeData=Ct,Oa.max=ca,Oa.min=la,Oa.parsingFlags=Ht,Oa.set=W,Oa.startOf=Ot,Oa.subtract=ma,Oa.toArray=It,Oa.toObject=Rt,Oa.toDate=Yt,Oa.toISOString=St,Oa.toJSON=Vt,Oa.toString=kt,Oa.unix=Pt,Oa.valueOf=Nt,Oa.creationData=Lt,Oa.year=sa,Oa.isLeapYear=we,Oa.weekYear=qt,Oa.isoWeekYear=jt,Oa.quarter=Oa.quarters=Zt,Oa.month=ce,Oa.daysInMonth=ue,Oa.week=Oa.weeks=en,Oa.isoWeek=Oa.isoWeeks=tn,Oa.weeksInYear=Bt,Oa.isoWeeksInYear=Gt,Oa.date=ya,Oa.day=Oa.days=cn,Oa.weekday=un,Oa.isoWeekday=dn,Oa.dayOfYear=gn,Oa.hour=Oa.hours=Da,Oa.minute=Oa.minutes=_a,Oa.second=Oa.seconds=Ea,Oa.millisecond=Oa.milliseconds=Ca,Oa.utcOffset=ze,Oa.utc=Ze,Oa.local=Ke,Oa.parseZone=Je,Oa.hasAlignedHourOffset=Qe,Oa.isDST=et,Oa.isDSTShifted=tt,Oa.isLocal=nt,Oa.isUtcOffset=it,Oa.isUtc=at,Oa.isUTC=at,Oa.zoneAbbr=xn,Oa.zoneName=Mn,Oa.dates=k("dates accessor is deprecated. Use date instead.",ya),Oa.months=k("months accessor is deprecated. Use month instead",ce),Oa.years=k("years accessor is deprecated. Use year instead",sa),Oa.zone=k("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Xe);var Aa=Oa,Na={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Pa={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ya="Invalid date",Ia="%d",Ra=/\d{1,2}/,Va={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Fa=E.prototype;Fa._calendar=Na,Fa.calendar=En,Fa._longDateFormat=Pa,Fa.longDateFormat=Tn,Fa._invalidDate=Ya,Fa.invalidDate=Cn,Fa._ordinal=Ia,Fa.ordinal=On,Fa._ordinalParse=Ra,Fa.preparse=An,Fa.postformat=An,Fa._relativeTime=Va,Fa.relativeTime=Nn,Fa.pastFuture=Pn,Fa.set=D,Fa.months=ae,Fa._months=Ki,Fa.monthsShort=re,Fa._monthsShort=Ji,Fa.monthsParse=se,Fa._monthsRegex=ea,Fa.monthsRegex=pe,Fa._monthsShortRegex=Qi,Fa.monthsShortRegex=de,Fa.week=Kt,Fa._week=va,Fa.firstDayOfYear=Qt,Fa.firstDayOfWeek=Jt,Fa.weekdays=an,Fa._weekdays=ba,Fa.weekdaysMin=on,Fa._weekdaysMin=wa,Fa.weekdaysShort=rn,Fa._weekdaysShort=$a,Fa.weekdaysParse=ln,Fa._weekdaysRegex=ka,Fa.weekdaysRegex=pn,Fa._weekdaysShortRegex=Sa,Fa.weekdaysShortRegex=fn,Fa._weekdaysMinRegex=xa,Fa.weekdaysMinRegex=hn,Fa.isPM=wn,Fa._meridiemParse=Ma,Fa.meridiem=kn,A("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),n.lang=k("moment.lang is deprecated. Use moment.locale instead.",A),n.langData=k("moment.langData is deprecated. Use moment.localeData instead.",Y);var Ha=Math.abs,Ua=Qn("ms"),La=Qn("s"),Wa=Qn("m"),qa=Qn("h"),ja=Qn("d"),Ga=Qn("w"),Ba=Qn("M"),za=Qn("y"),Xa=ti("milliseconds"),Za=ti("seconds"),Ka=ti("minutes"),Ja=ti("hours"),Qa=ti("days"),er=ti("months"),tr=ti("years"),nr=Math.round,ir={s:45,m:45,h:22,d:26,M:11},ar=Math.abs,rr=Le.prototype;rr.abs=Wn,rr.add=jn,rr.subtract=Gn,rr.as=Kn,rr.asMilliseconds=Ua,rr.asSeconds=La,rr.asMinutes=Wa,rr.asHours=qa,rr.asDays=ja,rr.asWeeks=Ga,rr.asMonths=Ba,rr.asYears=za,rr.valueOf=Jn,rr._bubble=zn,rr.get=ei,rr.milliseconds=Xa,rr.seconds=Za,rr.minutes=Ka,rr.hours=Ja,rr.days=Qa,rr.weeks=ni,rr.months=er,rr.years=tr,rr.humanize=oi,rr.toISOString=si,rr.toString=si,rr.toJSON=si,rr.locale=Tt,rr.localeData=Ct,rr.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",si),rr.lang=ga,j("X",0,0,"unix"),j("x",0,0,"valueOf"),Z("x",Pi),Z("X",Ri),ee("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ee("x",function(e,t,n){n._d=new Date(b(e))}),n.version="2.13.0",i(Ve),n.fn=Aa,n.min=He,n.max=Ue,n.now=ua,n.utc=c,n.unix=Dn,n.months=Vn,n.isDate=r,n.locale=A,n.invalid=f,n.duration=rt,n.isMoment=v,n.weekdays=Hn,n.parseZone=_n,n.localeData=Y,n.isDuration=We,n.monthsShort=Fn,n.weekdaysMin=Ln,n.defineLocale=N,n.updateLocale=P,n.locales=I,n.weekdaysShort=Un,n.normalizeUnits=V,n.relativeTimeThreshold=ri,n.prototype=Aa;var or=n;return or})},{}],3:[function(e,t,n){!function(e,i){"function"==typeof define&&define.amd?define([],i):"object"==typeof n?t.exports=i():e.StringMask=i()}(this,function(){function e(e,t){for(var n=0,i=t-1,a={escape:!0};i>=0&&a&&a.escape;)a=o[e.charAt(i)],n+=a&&a.escape?1:0,i--;return n>0&&n%2===1}function t(e,t){var n=e.replace(/[^0]/g,"").length,i=t.replace(/[^\d]/g,"").length;return i-n}function n(e,t,n,i){return i&&"function"==typeof i.transform&&(t=i.transform(t)),n.reverse?t+e:e+t}function i(e,t,n){var a=e.charAt(t),r=o[a];return""!==a&&(!(!r||r.escape)||i(e,t+n,n))}function a(e,t,n){var i=e.split("");return i.splice(n>=0?n:0,0,t),i.join("")}function r(e,t){this.options=t||{},this.options={reverse:this.options.reverse||!1,usedefaults:this.options.usedefaults||this.options.reverse},this.pattern=e}var o={0:{pattern:/\d/,_default:"0"},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,optional:!0,recursive:!0},S:{pattern:/[a-zA-Z]/},U:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleUpperCase()}},L:{pattern:/[a-zA-Z]/,transform:function(e){return e.toLocaleLowerCase()}},$:{escape:!0}};return r.prototype.process=function(r){function s(e){if(!m&&i(l,v,g.inc))return!0;if(m||(m=h.length>0),m){var t=h.shift();if(h.push(t),e.reverse&&d>=0)return v++,l=a(l,t,v),!0;if(!e.reverse&&d<r.length)return l=a(l,t,v),!0}return v<l.length&&v>=0}if(!r)return"";r+="";for(var l=this.pattern,c=!0,u="",d=this.options.reverse?r.length-1:0,p=t(l,r),f=!1,h=[],m=!1,g={start:this.options.reverse?l.length-1:0,end:this.options.reverse?-1:l.length,inc:this.options.reverse?-1:1},v=g.start;s(this.options);v+=g.inc){var y=l.charAt(v),b=r.charAt(d),$=o[y];if(!m||b){if(this.options.reverse&&e(l,v)){u=n(u,y,this.options,$),v+=g.inc;continue}if(!this.options.reverse&&f){u=n(u,y,this.options,$),f=!1;continue}if(!this.options.reverse&&$&&$.escape){f=!0;continue}}if(!m&&$&&$.recursive)h.push(y);else{if(m&&!b){$&&$.recursive||(u=n(u,y,this.options,$));continue}if(h.length>0&&$&&!$.recursive){c=!1;continue}if(!m&&h.length>0&&!b)continue}if($)if($.optional){if($.pattern.test(b)&&p)u=n(u,b,this.options,$),d+=g.inc,p--;else if(h.length>0&&b){c=!1;break}}else if($.pattern.test(b))u=n(u,b,this.options,$),d+=g.inc;else{if(b||!$._default||!this.options.usedefaults){c=!1;break}u=n(u,$._default,this.options,$)}else u=n(u,y,this.options,$),!m&&h.length&&h.push(y)}return{result:u,valid:c}},r.prototype.apply=function(e){return this.process(e).result},r.prototype.validate=function(e){return this.process(e).valid},r.process=function(e,t,n){return new r(t,n).process(e)},r.apply=function(e,t,n){return new r(t,n).apply(e)},r.validate=function(e,t,n){return new r(t,n).validate(e)},r})},{}],4:[function(e,t,n){"use strict";t.exports=angular.module("ui.utils.masks",[e("./global/global-masks"),e("./br/br-masks"),e("./us/us-masks"),e("./ch/ch-masks")]).name},{"./br/br-masks":6,"./ch/ch-masks":15,"./global/global-masks":19,"./us/us-masks":27}],5:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("mask-factory"),r=new i("00000.00000 00000.000000 00000.000000 0 00000000000000");t.exports=a({clearValue:function(e){return e.replace(/[^0-9]/g,"").slice(0,47)},format:function(e){return 0===e.length?e:r.apply(e).replace(/[^0-9]$/,"")},validations:{brBoletoBancario:function(e){return 47===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],6:[function(e,t,n){"use strict";var i=angular.module("ui.utils.masks.br",[e("../helpers")]).directive("uiBrBoletoBancarioMask",e("./boleto-bancario/boleto-bancario")).directive("uiBrCepMask",e("./cep/cep")).directive("uiBrCnpjMask",e("./cnpj/cnpj")).directive("uiBrCpfMask",e("./cpf/cpf")).directive("uiBrCpfcnpjMask",e("./cpf-cnpj/cpf-cnpj")).directive("uiBrIeMask",e("./inscricao-estadual/ie")).directive("uiNfeAccessKeyMask",e("./nfe/nfe")).directive("uiBrCarPlateMask",e("./car-plate/car-plate")).directive("uiBrPhoneNumber",e("./phone/br-phone"));t.exports=i.name},{"../helpers":25,"./boleto-bancario/boleto-bancario":5,"./car-plate/car-plate":7,"./cep/cep":8,"./cnpj/cnpj":9,"./cpf-cnpj/cpf-cnpj":10,"./cpf/cpf":11,"./inscricao-estadual/ie":12,"./nfe/nfe":13,"./phone/br-phone":14}],7:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("mask-factory"),r=new i("UUU-0000");t.exports=a({clearValue:function(e){return e.replace(/[^a-zA-Z0-9]/g,"").slice(0,7)},format:function(e){return(r.apply(e)||"").replace(/[^a-zA-Z0-9]$/,"")},validations:{carPlate:function(e){return 7===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],8:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("mask-factory"),r=new i("00000-000");t.exports=a({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,8)},format:function(e){return(r.apply(e)||"").replace(/[^0-9]$/,"")},validations:{cep:function(e){return 8===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],9:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("br-validations"),r=e("mask-factory"),o=new i("00.000.000/0000-00");t.exports=r({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,14)},format:function(e){return(o.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{cnpj:function(e){return a.cnpj.validate(e)}}})},{"br-validations":1,"mask-factory":"mask-factory","string-mask":3}],10:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("br-validations"),r=e("mask-factory"),o=new i("00.000.000/0000-00"),s=new i("000.000.000-00");t.exports=r({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,14)},format:function(e){var t;return t=e.length>11?o.apply(e):s.apply(e)||"",t.trim().replace(/[^0-9]$/,"")},validations:{cpf:function(e){return e.length>11||a.cpf.validate(e)},cnpj:function(e){return e.length<=11||a.cnpj.validate(e)}}})},{"br-validations":1,"mask-factory":"mask-factory","string-mask":3}],11:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("br-validations"),r=e("mask-factory"),o=new i("000.000.000-00");t.exports=r({clearValue:function(e){return e.replace(/[^\d]/g,"").slice(0,11)},format:function(e){return(o.apply(e)||"").trim().replace(/[^0-9]$/,"")},validations:{cpf:function(e){return a.cpf.validate(e)}}})},{"br-validations":1,"mask-factory":"mask-factory","string-mask":3}],12:[function(e,t,n){"use strict";function i(e){function t(e){
return e?e.replace(/[^0-9]/g,""):e}function n(e,n){if(e&&o[e]){if("SP"===e&&/^P/i.test(n))return o.SP[1].mask;for(var i=o[e],a=0;i[a].chars&&i[a].chars<t(n).length&&a<i.length-1;)a++;return i[a].mask}}function i(e,i){var a=n(i,e);if(!a)return e;var r=a.process(t(e)),o=r.result||"";return o=o.trim().replace(/[^0-9]$/,""),"SP"===i&&/^p/i.test(e)?"P"+o:o}var o={AC:[{mask:new a("00.000.000/000-00")}],AL:[{mask:new a("000000000")}],AM:[{mask:new a("00.000.000-0")}],AP:[{mask:new a("000000000")}],BA:[{chars:8,mask:new a("000000-00")},{mask:new a("0000000-00")}],CE:[{mask:new a("00000000-0")}],DF:[{mask:new a("00000000000-00")}],ES:[{mask:new a("00000000-0")}],GO:[{mask:new a("00.000.000-0")}],MA:[{mask:new a("000000000")}],MG:[{mask:new a("000.000.000/0000")}],MS:[{mask:new a("000000000")}],MT:[{mask:new a("0000000000-0")}],PA:[{mask:new a("00-000000-0")}],PB:[{mask:new a("00000000-0")}],PE:[{chars:9,mask:new a("0000000-00")},{mask:new a("00.0.000.0000000-0")}],PI:[{mask:new a("000000000")}],PR:[{mask:new a("000.00000-00")}],RJ:[{mask:new a("00.000.00-0")}],RN:[{chars:9,mask:new a("00.000.000-0")},{mask:new a("00.0.000.000-0")}],RO:[{mask:new a("0000000000000-0")}],RR:[{mask:new a("00000000-0")}],RS:[{mask:new a("000/0000000")}],SC:[{mask:new a("000.000.000")}],SE:[{mask:new a("00000000-0")}],SP:[{mask:new a("000.000.000.000")},{mask:new a("-00000000.0/000")}],TO:[{mask:new a("00000000000")}]};return{restrict:"A",require:"ngModel",link:function(n,a,o,s){function l(e){return s.$isEmpty(e)?e:i(e,u)}function c(e){if(s.$isEmpty(e))return e;var n=i(e,u),a=t(n);return s.$viewValue!==n&&(s.$setViewValue(n),s.$render()),u&&"SP"===u.toUpperCase()&&/^p/i.test(e)?"P"+a:a}var u=(e(o.uiBrIeMask)(n)||"").toUpperCase();s.$formatters.push(l),s.$parsers.push(c),s.$validators.ie=function(e){return s.$isEmpty(e)||r.ie(u).validate(e)},n.$watch(o.uiBrIeMask,function(e){u=(e||"").toUpperCase(),c(s.$viewValue),s.$validate()})}}}var a=e("string-mask"),r=e("br-validations");i.$inject=["$parse"],t.exports=i},{"br-validations":1,"string-mask":3}],13:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("mask-factory"),r=new i("0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000");t.exports=a({clearValue:function(e){return e.replace(/[^0-9]/g,"").slice(0,44)},format:function(e){return(r.apply(e)||"").replace(/[^0-9]$/,"")},validations:{nfeAccessKey:function(e){return 44===e.length}}})},{"mask-factory":"mask-factory","string-mask":3}],14:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("mask-factory"),r=new i("(00) 0000-0000"),o=new i("(00) 00000-0000"),s=new i("0000-000-0000");t.exports=a({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,11)},format:function(e){var t;return t=0===e.indexOf("0800")?s.apply(e):e.length<11?r.apply(e)||"":o.apply(e),t.trim().replace(/[^0-9]$/,"")},getModelValue:function(e,t){var n=this.clearValue(e);return"number"===t?parseInt(n):n},validations:{brPhoneNumber:function(e){var t=e&&e.toString().length;return 10===t||11===t}}})},{"mask-factory":"mask-factory","string-mask":3}],15:[function(e,t,n){"use strict";var i=angular.module("ui.utils.masks.ch",[e("../helpers")]).directive("uiChPhoneNumber",e("./phone/ch-phone"));t.exports=i.name},{"../helpers":25,"./phone/ch-phone":16}],16:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("mask-factory"),r=new i("+00 00 000 00 00");t.exports=a({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,11)},format:function(e){var t;return t=r.apply(e)||"",t.trim().replace(/[^0-9]$/,"")},validations:{chPhoneNumber:function(e){var t=e&&e.toString().length;return 11===t}}})},{"mask-factory":"mask-factory","string-mask":3}],17:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("mask-factory"),r=16,o=new i("0000 0000 0000 0000");t.exports=a({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"").slice(0,r)},format:function(e){var t;return t=o.apply(e)||"",t.trim().replace(/[^0-9]$/,"")},validations:{creditCard:function(e){var t=e&&e.toString().length;return t===r}}})},{"mask-factory":"mask-factory","string-mask":3}],18:[function(e,t,n){"use strict";function i(e){return/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}([-+][0-9]{2}:[0-9]{2}|Z)$/.test(e.toString())}function a(e){var t={"pt-br":"DD/MM/YYYY"},n=t[e.id]||"YYYY-MM-DD";return{restrict:"A",require:"ngModel",link:function(e,t,a,s){function l(e){if(s.$isEmpty(e))return e;var t=e;("object"==typeof e||i(e))&&(t=r(e).format(n)),t=t.replace(/[^0-9]/g,"");var a=c.apply(t)||"";return a.trim().replace(/[^0-9]$/,"")}var c=new o(n.replace(/[YMD]/g,"0"));s.$formatters.push(l),s.$parsers.push(function(e){if(s.$isEmpty(e))return e;var t=l(e);return s.$viewValue!==t&&(s.$setViewValue(t),s.$render()),r(t,n).toDate()}),s.$validators.date=function(e,t){return!!s.$isEmpty(e)||r(t,n).isValid()&&t.length===n.length}}}}var r=e("moment"),o=e("string-mask");a.$inject=["$locale"],t.exports=a},{moment:2,"string-mask":3}],19:[function(e,t,n){"use strict";var i=angular.module("ui.utils.masks.global",[e("../helpers")]).directive("uiDateMask",e("./date/date")).directive("uiMoneyMask",e("./money/money")).directive("uiNumberMask",e("./number/number")).directive("uiPercentageMask",e("./percentage/percentage")).directive("uiScientificNotationMask",e("./scientific-notation/scientific-notation")).directive("uiTimeMask",e("./time/time")).directive("uiCreditCard",e("./credit-card/credit-card"));t.exports=i.name},{"../helpers":25,"./credit-card/credit-card":17,"./date/date":18,"./money/money":20,"./number/number":21,"./percentage/percentage":22,"./scientific-notation/scientific-notation":23,"./time/time":24}],20:[function(e,t,n){"use strict";function i(e,t,n){return{restrict:"A",require:"ngModel",link:function(i,o,s,l){function c(e){var t=e>0?p+new Array(e+1).join("0"):"",n=h+" #"+f+"##0"+t;return new a(n,{reverse:!0})}function u(e){if(l.$isEmpty(e))return e;var t=angular.isDefined(s.uiNegativeNumber)&&0>e?"-":"",i=n.prepareNumberToFormatter(e,m);return t+g.apply(i)}function d(e){if(l.$isEmpty(e))return e;var t=e.replace(/[^\d]+/g,"");t=t.replace(/^[0]+([1-9])/,"$1"),t=t||"0";var n=g.apply(t);if(angular.isDefined(s.uiNegativeNumber)){var i="-"===e[0],a="-"===e.slice(-1);a^i&&t&&(t*=-1,n="-"+n)}return e!==n&&(l.$setViewValue(n),l.$render()),n?parseInt(n.replace(/[^\d\-]+/g,""))/Math.pow(10,m):null}var p=e.NUMBER_FORMATS.DECIMAL_SEP,f=e.NUMBER_FORMATS.GROUP_SEP,h=e.NUMBER_FORMATS.CURRENCY_SYM,m=t(s.uiMoneyMask)(i);angular.isDefined(s.uiHideGroupSep)&&(f=""),isNaN(m)&&(m=2),m=parseInt(m);var g=c(m);if(l.$formatters.push(u),l.$parsers.push(d),s.uiMoneyMask&&i.$watch(s.uiMoneyMask,function(e){m=isNaN(e)?2:e,m=parseInt(m),g=c(m),d(l.$viewValue)}),s.min){var v;l.$validators.min=function(e){return r.minNumber(l,e,v)},i.$watch(s.min,function(e){v=e,l.$validate()})}if(s.max){var y;l.$validators.max=function(e){return r.maxNumber(l,e,y)},i.$watch(s.max,function(e){y=e,l.$validate()})}}}}var a=e("string-mask"),r=e("validators");i.$inject=["$locale","$parse","PreFormatters"],t.exports=i},{"string-mask":3,validators:"validators"}],21:[function(e,t,n){"use strict";function i(e,t,n,i){return{restrict:"A",require:"ngModel",link:function(r,o,s,l){function c(e){if(l.$isEmpty(e))return null;var t=n.clearDelimitersAndLeadingZeros(e)||"0",i=m.apply(t),a=parseFloat(g.apply(t));if(angular.isDefined(s.uiNegativeNumber)){var r="-"===e[0],o="-"===e.slice(-1);(o^r||"-"===e)&&(a*=-1,i="-"+(0!==a?i:""))}return l.$viewValue!==i&&(l.$setViewValue(i),l.$render()),a}function u(e){if(l.$isEmpty(e))return e;var t=angular.isDefined(s.uiNegativeNumber)&&0>e?"-":"",i=n.prepareNumberToFormatter(e,h);return t+m.apply(i)}function d(){"-"===l.$viewValue&&(l.$setViewValue(""),l.$render())}var p=e.NUMBER_FORMATS.DECIMAL_SEP,f=e.NUMBER_FORMATS.GROUP_SEP,h=t(s.uiNumberMask)(r);angular.isDefined(s.uiHideGroupSep)&&(f=""),isNaN(h)&&(h=2);var m=i.viewMask(h,p,f),g=i.modelMask(h);if(o.on("blur",d),l.$formatters.push(u),l.$parsers.push(c),s.uiNumberMask&&r.$watch(s.uiNumberMask,function(e){h=isNaN(e)?2:e,m=i.viewMask(h,p,f),g=i.modelMask(h),c(l.$viewValue)}),s.min){var v;l.$validators.min=function(e){return a.minNumber(l,e,v)},r.$watch(s.min,function(e){v=e,l.$validate()})}if(s.max){var y;l.$validators.max=function(e){return a.maxNumber(l,e,y)},r.$watch(s.max,function(e){y=e,l.$validate()})}}}}var a=e("validators");i.$inject=["$locale","$parse","PreFormatters","NumberMasks"],t.exports=i},{validators:"validators"}],22:[function(e,t,n){"use strict";function i(e,t,n,i){function r(e,t,i){return n.clearDelimitersAndLeadingZeros((parseFloat(e)*i).toFixed(t))}return{restrict:"A",require:"ngModel",link:function(t,o,s,l){function c(e){if(l.$isEmpty(e))return e;var t=r(e,f,m.multiplier);return v.apply(t)+" %"}function u(e){if(l.$isEmpty(e))return null;var t=n.clearDelimitersAndLeadingZeros(e)||"0";e.length>1&&-1===e.indexOf("%")&&(t=t.slice(0,t.length-1)),h&&1===e.length&&"%"!==e&&(t="0");var i=v.apply(t)+" %",a=parseFloat(y.apply(t));return l.$viewValue!==i&&(l.$setViewValue(i),l.$render()),a}var d=e.NUMBER_FORMATS.DECIMAL_SEP,p=e.NUMBER_FORMATS.GROUP_SEP,f=parseInt(s.uiPercentageMask),h=!1;o.bind("keydown keypress",function(e){h=8===e.which});var m={multiplier:100,decimalMask:2};angular.isDefined(s.uiHideGroupSep)&&(p=""),angular.isDefined(s.uiPercentageValue)&&(m.multiplier=1,m.decimalMask=0),isNaN(f)&&(f=2);var g=f+m.decimalMask,v=i.viewMask(f,d,p),y=i.modelMask(g);if(l.$formatters.push(c),l.$parsers.push(u),s.uiPercentageMask&&t.$watch(s.uiPercentageMask,function(e){f=isNaN(e)?2:e,angular.isDefined(s.uiPercentageValue)&&(m.multiplier=1,m.decimalMask=0),g=f+m.decimalMask,v=i.viewMask(f,d,p),y=i.modelMask(g),u(l.$viewValue)}),s.min){var b;l.$validators.min=function(e){return a.minNumber(l,e,b)},t.$watch(s.min,function(e){b=e,l.$validate()})}if(s.max){var $;l.$validators.max=function(e){return a.maxNumber(l,e,$)},t.$watch(s.max,function(e){$=e,l.$validate()})}}}}var a=e("validators");i.$inject=["$locale","$parse","PreFormatters","NumberMasks"],t.exports=i},{validators:"validators"}],23:[function(e,t,n){"use strict";function i(e,t){function n(e){var t="0";if(e>0){t+=i;for(var n=0;e>n;n++)t+="0"}return new a(t,{reverse:!0})}var i=e.NUMBER_FORMATS.DECIMAL_SEP,r=2;return{restrict:"A",require:"ngModel",link:function(e,a,o,s){function l(e){var t=e.toString(),n=t.match(/(-?[0-9]*)[\.]?([0-9]*)?[Ee]?([\+-]?[0-9]*)?/);return{integerPartOfSignificand:n[1],decimalPartOfSignificand:n[2],exponent:0|n[3]}}function c(e){if(s.$isEmpty(e))return e;"string"==typeof e?e=e.replace(i,"."):"number"==typeof e&&(e=e.toExponential(d));var t,n,a=l(e),r=a.integerPartOfSignificand||0,o=r.toString();angular.isDefined(a.decimalPartOfSignificand)&&(o+=a.decimalPartOfSignificand);var c=(r>=1||-1>=r)&&(angular.isDefined(a.decimalPartOfSignificand)&&a.decimalPartOfSignificand.length>d||0===d&&o.length>=2);return c&&(n=o.slice(d+1,o.length),o=o.slice(0,d+1)),t=p.apply(o),0!==a.exponent&&(n=a.exponent),angular.isDefined(n)&&(t+="e"+n),t}function u(e){if(s.$isEmpty(e))return e;var t=c(e),n=parseFloat(t.replace(i,"."));return s.$viewValue!==t&&(s.$setViewValue(t),s.$render()),n}var d=t(o.uiScientificNotationMask)(e);isNaN(d)&&(d=r);var p=n(d);s.$formatters.push(c),s.$parsers.push(u),s.$validators.max=function(e){return s.$isEmpty(e)||e<Number.MAX_VALUE}}}}var a=e("string-mask");i.$inject=["$locale","$parse"],t.exports=i},{"string-mask":3}],24:[function(e,t,n){"use strict";var i=e("string-mask");t.exports=function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,a){function r(e){if(a.$isEmpty(e))return e;var t=e.replace(/[^0-9]/g,"").slice(0,l)||"";return(c.apply(t)||"").replace(/[^0-9]$/,"")}var o="00:00:00";angular.isDefined(n.uiTimeMask)&&"short"===n.uiTimeMask&&(o="00:00");var s=o.length,l=o.replace(":","").length,c=new i(o);a.$formatters.push(r),a.$parsers.push(function(e){if(a.$isEmpty(e))return e;var t=r(e),n=t;return a.$viewValue!==t&&(a.$setViewValue(t),a.$render()),n}),a.$validators.time=function(e){if(a.$isEmpty(e))return!0;var t=e.toString().split(/:/).filter(function(e){return!!e}),n=parseInt(t[0]),i=parseInt(t[1]),r=parseInt(t[2]||0);return e.toString().length===s&&24>n&&60>i&&60>r}}}}},{"string-mask":3}],25:[function(e,t,n){"use strict";var i=e("string-mask"),a=angular.module("ui.utils.masks.helpers",[]);t.exports=a.name,a.factory("PreFormatters",[function(){function e(e){if("0"===e)return"0";var t=e.replace(/^-/,"").replace(/^0*/,"");return t.replace(/[^0-9]/g,"")}function t(t,n){return e(parseFloat(t).toFixed(n))}return{clearDelimitersAndLeadingZeros:e,prepareNumberToFormatter:t}}]).factory("NumberMasks",[function(){return{viewMask:function(e,t,n){var a="#"+n+"##0";if(e>0){a+=t;for(var r=0;e>r;r++)a+="0"}return new i(a,{reverse:!0})},modelMask:function(e){var t="###0";if(e>0){t+=".";for(var n=0;e>n;n++)t+="0"}return new i(t,{reverse:!0})}}}])},{"string-mask":3}],26:[function(e,t,n){"use strict";var i=e("string-mask"),a=e("mask-factory"),r=new i("(000) 000-0000"),o=new i("+00-00-000-000000");t.exports=a({clearValue:function(e){return e.toString().replace(/[^0-9]/g,"")},format:function(e){var t;return t=e.length<11?r.apply(e)||"":o.apply(e),t.trim().replace(/[^0-9]$/,"")},validations:{usPhoneNumber:function(e){return e.length>9}}})},{"mask-factory":"mask-factory","string-mask":3}],27:[function(e,t,n){"use strict";var i=angular.module("ui.utils.masks.us",[e("../helpers")]).directive("uiUsPhoneNumber",e("./phone/us-phone"));t.exports=i.name},{"../helpers":25,"./phone/us-phone":26}],"mask-factory":[function(e,t,n){"use strict";t.exports=function(e){return function(){return{restrict:"A",require:"ngModel",link:function(t,n,i,a){a.$formatters.push(function(t){if(a.$isEmpty(t))return t;var n=e.clearValue(t);return e.format(n)}),a.$parsers.push(function(t){if(a.$isEmpty(t))return t;var n=e.clearValue(t),i=e.format(n);if(a.$viewValue!==i&&(a.$setViewValue(i),a.$render()),angular.isUndefined(e.getModelValue))return n;var r=typeof a.$modelValue;return e.getModelValue(i,r)}),angular.forEach(e.validations,function(e,t){a.$validators[t]=function(t,n){return a.$isEmpty(t)||e(t,n)}})}}}}},{}],validators:[function(e,t,n){"use strict";t.exports={maxNumber:function(e,t,n){var i=parseFloat(n,10);return e.$isEmpty(t)||isNaN(i)||i>=t},minNumber:function(e,t,n){var i=parseFloat(n,10);return e.$isEmpty(t)||isNaN(i)||t>=i}}},{}]},{},[4]),angular.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return t==-1?0:e.length-t-1}function n(e,n){var i=n;void 0===i&&(i=Math.min(t(e),3));var a=Math.pow(10,i),r=(e*a|0)%a;return{v:i,f:r}}var i={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["a.m.","p.m."],DAY:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],ERANAMES:["voor Christus","na Christus"],ERAS:["v.Chr.","n.Chr."],FIRSTDAYOFWEEK:0,MONTH:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],SHORTDAY:["zo","ma","di","wo","do","vr","za"],SHORTMONTH:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],STANDALONEMONTH:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE d MMMM y",longDate:"d MMMM y",medium:"d MMM y HH:mm:ss",mediumDate:"d MMM y",mediumTime:"HH:mm:ss","short":"dd-MM-yy HH:mm",shortDate:"dd-MM-yy",shortTime:"HH:mm"},NUMBER_FORMATS:{CURRENCY_SYM:"€",DECIMAL_SEP:",",GROUP_SEP:".",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"¤ -",negSuf:"",posPre:"¤ ",posSuf:""}]},id:"nl-nl",localeID:"nl_NL",pluralCat:function(e,t){var a=0|e,r=n(e,t);return 1==a&&0==r.v?i.ONE:i.OTHER}})}]);