﻿(function($){var defaultOptions={instanceGlobal:'EasyDnnSolutions1_1_instance',google:{maps:{api:{key:'',libraries:[]}}}},$window=$(window),getExplicitStyleValue=function($element,styleProperty){var propertyValue='',styleAttribute=$element.attr('style'),zIndexStartPosition,semicolonPosition;if(typeof styleAttribute!='string')
return propertyValue;zIndexStartPosition=styleAttribute.indexOf(' '+styleProperty+':');if(zIndexStartPosition==-1){zIndexStartPosition=styleAttribute.indexOf(';'+styleProperty+':');if(zIndexStartPosition==-1){zIndexStartPosition=styleAttribute.indexOf(styleProperty+':');if(zIndexStartPosition!=0)
return propertyValue;}else
zIndexStartPosition++;}else
zIndexStartPosition++;propertyValue=styleAttribute.substr(zIndexStartPosition+styleProperty.length+1);semicolonPosition=propertyValue.indexOf(';');if(semicolonPosition==-1)
return propertyValue.trim();propertyValue=propertyValue.substr(0,semicolonPosition).trim();return propertyValue;};GoogleHelper=function(parent){var self=this;self.parent=parent;self.maps={api:{loaded:(typeof window.google=='object'&&typeof window.google.maps=='object'),callbacks:[]}}
self.options=parent.options.google;self.public={maps:{api:{callback:function(){var i=0,l=self.maps.api.callbacks.length;self.maps.api.loaded=true;for(;i<l;i++)
self.maps.api.callbacks[i]();},load:function(){var tagId='eds_googleMapsApi',gMapsKey=self.options.maps.api.key,script,src='https://maps.googleapis.com/maps/api/js?v=3.50&callback='+self.parent.options.instanceGlobal+'.google.maps.api.callback';if($('script#'+tagId,self.parent.$head).length==0){if(typeof gMapsKey!='string')
gMapsKey='';if(gMapsKey!='')
gMapsKey='&key='+gMapsKey;script=document.createElement('script');script.type='text/javascript';script.id=tagId;if(self.options.maps.api.libraries)
src+='&libraries='+self.options.maps.api.libraries.join(',');src+=gMapsKey;script.src=src;self.parent.$head[0].appendChild(script);}
return self.parent;},onLoad:function(toExecute){if(self.maps.api.loaded)
toExecute();else{self.maps.api.callbacks.push(toExecute)
self.public.maps.api.load();}
return self.parent;}}}};return self.public;}
window.EasyDnnSolutions1_1=function(instanceOptions){var self=this;self.options=$.extend(true,{},defaultOptions,instanceOptions);self.google=new GoogleHelper(this);self.$head=$('html > head');$(function(){$('body').on('click','.eds_openModal',function(){var $clicked=$(this),$modalTarget=$('.eds_modalWrapper').filter(function(){return $clicked.data('targetId')==this.id||$(this).hasClass($clicked.data('targetClass'));}),$dnnModuleElements=$modalTarget.parents('.DnnModule'),$modalContent,$modalResizeWrapper,$modalContentTitle,initialHeight,resizeContent=function(){var windowHeight=$window.height(),ContentHDiff=Math.round($modalContent.outerHeight(true)-$modalContent.height()),resizeWrapperHDiff=Math.round($modalResizeWrapper.outerHeight(true)-$modalResizeWrapper.height()),titleHeight=$modalContentTitle.outerHeight(true),maxHeight=windowHeight-ContentHDiff-resizeWrapperHDiff-titleHeight;if(maxHeight<initialHeight)
$modalResizeWrapper.height(maxHeight);else
$modalResizeWrapper.css('height','');};$dnnModuleElements.each(function(){var $this=$(this);$this.data('previousZIndex',getExplicitStyleValue($this,'z-index')).css('z-index',99999);});$modalTarget.addClass("eds_modalVisible");$("> .eds_modalContent",$modalTarget).addClass("eds_fadeInDown");if($modalTarget.hasClass('eds_resizable')){$modalContent=$('>',$modalTarget);$modalContentTitle=$('> h3',$modalContent);$modalResizeWrapper=$('> div',$modalContent);initialHeight=$modalResizeWrapper.height();resizeContent()
$window.on('resize.eds_modalWrapper',function(){resizeContent();});}}).on('click','.eds_modalClose',function(){var $clicked=$(this),$modalTarget=$('.eds_modalWrapper'),$dnnModuleElements=$modalTarget.parents('.DnnModule');$dnnModuleElements.each(function(){var $this=$(this);$this.css('z-index',$this.data('previousZIndex'));});$modalTarget.filter(function(){return $clicked.data('targetId')==this.id||$(this).hasClass($clicked.data('targetClass'));}).removeClass("eds_modalVisible").css('z-index','');});});}
var initOptions=null;if($('#eds_js1_1').length>0){initOptions=$('#eds_js1_1').data('initJson')}
if($('meta[name="eds__GmapsInitData"]').length>0){initOptions=JSON.parse($('meta[name="eds__GmapsInitData"]').attr("content"));}
if(window[initOptions.instanceGlobal]==undefined&&initOptions!=null)
window[initOptions.instanceGlobal]=new EasyDnnSolutions1_1(initOptions);})(eds3_5_jq);
;;;/*
 AngularJS v1.8.2
 (c) 2010-2020 Google LLC. http://angularjs.org
 License: MIT
*/
(function(z){'use strict';function ve(a){if(D(a))w(a.objectMaxDepth)&&(Xb.objectMaxDepth=Yb(a.objectMaxDepth)?a.objectMaxDepth:NaN),w(a.urlErrorParamsEnabled)&&Ga(a.urlErrorParamsEnabled)&&(Xb.urlErrorParamsEnabled=a.urlErrorParamsEnabled);else return Xb}function Yb(a){return X(a)&&0<a}function F(a,b){b=b||Error;return function(){var d=arguments[0],c;c="["+(a?a+":":"")+d+"] http://errors.angularjs.org/1.8.2/"+(a?a+"/":"")+d;for(d=1;d<arguments.length;d++){c=c+(1==d?"?":"&")+"p"+(d-1)+"=";var e=encodeURIComponent,
f;f=arguments[d];f="function"==typeof f?f.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof f?"undefined":"string"!=typeof f?JSON.stringify(f):f;c+=e(f)}return new b(c)}}function za(a){if(null==a||$a(a))return!1;if(H(a)||C(a)||x&&a instanceof x)return!0;var b="length"in Object(a)&&a.length;return X(b)&&(0<=b&&b-1 in a||"function"===typeof a.item)}function r(a,b,d){var c,e;if(a)if(B(a))for(c in a)"prototype"!==c&&"length"!==c&&"name"!==c&&a.hasOwnProperty(c)&&b.call(d,a[c],c,a);else if(H(a)||
za(a)){var f="object"!==typeof a;c=0;for(e=a.length;c<e;c++)(f||c in a)&&b.call(d,a[c],c,a)}else if(a.forEach&&a.forEach!==r)a.forEach(b,d,a);else if(Pc(a))for(c in a)b.call(d,a[c],c,a);else if("function"===typeof a.hasOwnProperty)for(c in a)a.hasOwnProperty(c)&&b.call(d,a[c],c,a);else for(c in a)ta.call(a,c)&&b.call(d,a[c],c,a);return a}function Qc(a,b,d){for(var c=Object.keys(a).sort(),e=0;e<c.length;e++)b.call(d,a[c[e]],c[e]);return c}function Zb(a){return function(b,d){a(d,b)}}function we(){return++qb}
function $b(a,b,d){for(var c=a.$$hashKey,e=0,f=b.length;e<f;++e){var g=b[e];if(D(g)||B(g))for(var k=Object.keys(g),h=0,l=k.length;h<l;h++){var m=k[h],p=g[m];d&&D(p)?ha(p)?a[m]=new Date(p.valueOf()):ab(p)?a[m]=new RegExp(p):p.nodeName?a[m]=p.cloneNode(!0):ac(p)?a[m]=p.clone():"__proto__"!==m&&(D(a[m])||(a[m]=H(p)?[]:{}),$b(a[m],[p],!0)):a[m]=p}}c?a.$$hashKey=c:delete a.$$hashKey;return a}function S(a){return $b(a,Ha.call(arguments,1),!1)}function xe(a){return $b(a,Ha.call(arguments,1),!0)}function fa(a){return parseInt(a,
10)}function bc(a,b){return S(Object.create(a),b)}function E(){}function Ta(a){return a}function ia(a){return function(){return a}}function cc(a){return B(a.toString)&&a.toString!==la}function A(a){return"undefined"===typeof a}function w(a){return"undefined"!==typeof a}function D(a){return null!==a&&"object"===typeof a}function Pc(a){return null!==a&&"object"===typeof a&&!Rc(a)}function C(a){return"string"===typeof a}function X(a){return"number"===typeof a}function ha(a){return"[object Date]"===la.call(a)}
function H(a){return Array.isArray(a)||a instanceof Array}function dc(a){switch(la.call(a)){case "[object Error]":return!0;case "[object Exception]":return!0;case "[object DOMException]":return!0;default:return a instanceof Error}}function B(a){return"function"===typeof a}function ab(a){return"[object RegExp]"===la.call(a)}function $a(a){return a&&a.window===a}function bb(a){return a&&a.$evalAsync&&a.$watch}function Ga(a){return"boolean"===typeof a}function ye(a){return a&&X(a.length)&&ze.test(la.call(a))}
function ac(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function Ae(a){var b={};a=a.split(",");var d;for(d=0;d<a.length;d++)b[a[d]]=!0;return b}function ua(a){return K(a.nodeName||a[0]&&a[0].nodeName)}function cb(a,b){var d=a.indexOf(b);0<=d&&a.splice(d,1);return d}function Ia(a,b,d){function c(a,b,c){c--;if(0>c)return"...";var d=b.$$hashKey,f;if(H(a)){f=0;for(var g=a.length;f<g;f++)b.push(e(a[f],c))}else if(Pc(a))for(f in a)b[f]=e(a[f],c);else if(a&&"function"===typeof a.hasOwnProperty)for(f in a)a.hasOwnProperty(f)&&
(b[f]=e(a[f],c));else for(f in a)ta.call(a,f)&&(b[f]=e(a[f],c));d?b.$$hashKey=d:delete b.$$hashKey;return b}function e(a,b){if(!D(a))return a;var d=g.indexOf(a);if(-1!==d)return k[d];if($a(a)||bb(a))throw oa("cpws");var d=!1,e=f(a);void 0===e&&(e=H(a)?[]:Object.create(Rc(a)),d=!0);g.push(a);k.push(e);return d?c(a,e,b):e}function f(a){switch(la.call(a)){case "[object Int8Array]":case "[object Int16Array]":case "[object Int32Array]":case "[object Float32Array]":case "[object Float64Array]":case "[object Uint8Array]":case "[object Uint8ClampedArray]":case "[object Uint16Array]":case "[object Uint32Array]":return new a.constructor(e(a.buffer),
a.byteOffset,a.length);case "[object ArrayBuffer]":if(!a.slice){var b=new ArrayBuffer(a.byteLength);(new Uint8Array(b)).set(new Uint8Array(a));return b}return a.slice(0);case "[object Boolean]":case "[object Number]":case "[object String]":case "[object Date]":return new a.constructor(a.valueOf());case "[object RegExp]":return b=new RegExp(a.source,a.toString().match(/[^/]*$/)[0]),b.lastIndex=a.lastIndex,b;case "[object Blob]":return new a.constructor([a],{type:a.type})}if(B(a.cloneNode))return a.cloneNode(!0)}
var g=[],k=[];d=Yb(d)?d:NaN;if(b){if(ye(b)||"[object ArrayBuffer]"===la.call(b))throw oa("cpta");if(a===b)throw oa("cpi");H(b)?b.length=0:r(b,function(a,c){"$$hashKey"!==c&&delete b[c]});g.push(a);k.push(b);return c(a,b,d)}return e(a,d)}function ec(a,b){return a===b||a!==a&&b!==b}function va(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var d=typeof a,c;if(d===typeof b&&"object"===d)if(H(a)){if(!H(b))return!1;if((d=a.length)===b.length){for(c=0;c<d;c++)if(!va(a[c],
b[c]))return!1;return!0}}else{if(ha(a))return ha(b)?ec(a.getTime(),b.getTime()):!1;if(ab(a))return ab(b)?a.toString()===b.toString():!1;if(bb(a)||bb(b)||$a(a)||$a(b)||H(b)||ha(b)||ab(b))return!1;d=T();for(c in a)if("$"!==c.charAt(0)&&!B(a[c])){if(!va(a[c],b[c]))return!1;d[c]=!0}for(c in b)if(!(c in d)&&"$"!==c.charAt(0)&&w(b[c])&&!B(b[c]))return!1;return!0}return!1}function db(a,b,d){return a.concat(Ha.call(b,d))}function Va(a,b){var d=2<arguments.length?Ha.call(arguments,2):[];return!B(b)||b instanceof
RegExp?b:d.length?function(){return arguments.length?b.apply(a,db(d,arguments,0)):b.apply(a,d)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function Sc(a,b){var d=b;"string"===typeof a&&"$"===a.charAt(0)&&"$"===a.charAt(1)?d=void 0:$a(b)?d="$WINDOW":b&&z.document===b?d="$DOCUMENT":bb(b)&&(d="$SCOPE");return d}function eb(a,b){if(!A(a))return X(b)||(b=b?2:null),JSON.stringify(a,Sc,b)}function Tc(a){return C(a)?JSON.parse(a):a}function fc(a,b){a=a.replace(Be,"");var d=Date.parse("Jan 01, 1970 00:00:00 "+
a)/6E4;return Y(d)?b:d}function Uc(a,b){a=new Date(a.getTime());a.setMinutes(a.getMinutes()+b);return a}function gc(a,b,d){d=d?-1:1;var c=a.getTimezoneOffset();b=fc(b,c);return Uc(a,d*(b-c))}function Aa(a){a=x(a).clone().empty();var b=x("<div></div>").append(a).html();try{return a[0].nodeType===Pa?K(b):b.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(a,b){return"<"+K(b)})}catch(d){return K(b)}}function Vc(a){try{return decodeURIComponent(a)}catch(b){}}function hc(a){var b={};r((a||"").split("&"),
function(a){var c,e,f;a&&(e=a=a.replace(/\+/g,"%20"),c=a.indexOf("="),-1!==c&&(e=a.substring(0,c),f=a.substring(c+1)),e=Vc(e),w(e)&&(f=w(f)?Vc(f):!0,ta.call(b,e)?H(b[e])?b[e].push(f):b[e]=[b[e],f]:b[e]=f))});return b}function Ce(a){var b=[];r(a,function(a,c){H(a)?r(a,function(a){b.push(ba(c,!0)+(!0===a?"":"="+ba(a,!0)))}):b.push(ba(c,!0)+(!0===a?"":"="+ba(a,!0)))});return b.length?b.join("&"):""}function ic(a){return ba(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ba(a,
b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,b?"%20":"+")}function De(a,b){var d,c,e=Qa.length;for(c=0;c<e;++c)if(d=Qa[c]+b,C(d=a.getAttribute(d)))return d;return null}function Ee(a,b){var d,c,e={};r(Qa,function(b){b+="app";!d&&a.hasAttribute&&a.hasAttribute(b)&&(d=a,c=a.getAttribute(b))});r(Qa,function(b){b+="app";var e;!d&&(e=a.querySelector("["+b.replace(":","\\:")+"]"))&&(d=e,c=e.getAttribute(b))});
d&&(Fe?(e.strictDi=null!==De(d,"strict-di"),b(d,c?[c]:[],e)):z.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function Wc(a,b,d){D(d)||(d={});d=S({strictDi:!1},d);var c=function(){a=x(a);if(a.injector()){var c=a[0]===z.document?"document":Aa(a);throw oa("btstrpd",c.replace(/</,"&lt;").replace(/>/,"&gt;"));}b=b||[];b.unshift(["$provide",function(b){b.value("$rootElement",a)}]);d.debugInfoEnabled&&b.push(["$compileProvider",
function(a){a.debugInfoEnabled(!0)}]);b.unshift("ng");c=fb(b,d.strictDi);c.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",d);c(b)(a)})}]);return c},e=/^NG_ENABLE_DEBUG_INFO!/,f=/^NG_DEFER_BOOTSTRAP!/;z&&e.test(z.name)&&(d.debugInfoEnabled=!0,z.name=z.name.replace(e,""));if(z&&!f.test(z.name))return c();z.name=z.name.replace(f,"");ca.resumeBootstrap=function(a){r(a,function(a){b.push(a)});return c()};B(ca.resumeDeferredBootstrap)&&
ca.resumeDeferredBootstrap()}function Ge(){z.name="NG_ENABLE_DEBUG_INFO!"+z.name;z.location.reload()}function He(a){a=ca.element(a).injector();if(!a)throw oa("test");return a.get("$$testability")}function Xc(a,b){b=b||"_";return a.replace(Ie,function(a,c){return(c?b:"")+a.toLowerCase()})}function Je(){var a;if(!Yc){var b=rb();(sb=A(b)?z.jQuery:b?z[b]:void 0)&&sb.fn.on?(x=sb,S(sb.fn,{scope:Wa.scope,isolateScope:Wa.isolateScope,controller:Wa.controller,injector:Wa.injector,inheritedData:Wa.inheritedData})):
x=U;a=x.cleanData;x.cleanData=function(b){for(var c,e=0,f;null!=(f=b[e]);e++)(c=(x._data(f)||{}).events)&&c.$destroy&&x(f).triggerHandler("$destroy");a(b)};ca.element=x;Yc=!0}}function Ke(){U.legacyXHTMLReplacement=!0}function gb(a,b,d){if(!a)throw oa("areq",b||"?",d||"required");return a}function tb(a,b,d){d&&H(a)&&(a=a[a.length-1]);gb(B(a),b,"not a function, got "+(a&&"object"===typeof a?a.constructor.name||"Object":typeof a));return a}function Ja(a,b){if("hasOwnProperty"===a)throw oa("badname",
b);}function Le(a,b,d){if(!b)return a;b=b.split(".");for(var c,e=a,f=b.length,g=0;g<f;g++)c=b[g],a&&(a=(e=a)[c]);return!d&&B(a)?Va(e,a):a}function ub(a){for(var b=a[0],d=a[a.length-1],c,e=1;b!==d&&(b=b.nextSibling);e++)if(c||a[e]!==b)c||(c=x(Ha.call(a,0,e))),c.push(b);return c||a}function T(){return Object.create(null)}function jc(a){if(null==a)return"";switch(typeof a){case "string":break;case "number":a=""+a;break;default:a=!cc(a)||H(a)||ha(a)?eb(a):a.toString()}return a}function Me(a){function b(a,
b,c){return a[b]||(a[b]=c())}var d=F("$injector"),c=F("ng");a=b(a,"angular",Object);a.$$minErr=a.$$minErr||F;return b(a,"module",function(){var a={};return function(f,g,k){var h={};if("hasOwnProperty"===f)throw c("badname","module");g&&a.hasOwnProperty(f)&&(a[f]=null);return b(a,f,function(){function a(b,c,d,f){f||(f=e);return function(){f[d||"push"]([b,c,arguments]);return t}}function b(a,c,d){d||(d=e);return function(b,e){e&&B(e)&&(e.$$moduleName=f);d.push([a,c,arguments]);return t}}if(!g)throw d("nomod",
f);var e=[],n=[],s=[],G=a("$injector","invoke","push",n),t={_invokeQueue:e,_configBlocks:n,_runBlocks:s,info:function(a){if(w(a)){if(!D(a))throw c("aobj","value");h=a;return this}return h},requires:g,name:f,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:b("$provide","decorator",n),animation:b("$animateProvider","register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider",
"register"),directive:b("$compileProvider","directive"),component:b("$compileProvider","component"),config:G,run:function(a){s.push(a);return this}};k&&G(k);return t})}})}function ja(a,b){if(H(a)){b=b||[];for(var d=0,c=a.length;d<c;d++)b[d]=a[d]}else if(D(a))for(d in b=b||{},a)if("$"!==d.charAt(0)||"$"!==d.charAt(1))b[d]=a[d];return b||a}function Ne(a,b){var d=[];Yb(b)&&(a=ca.copy(a,null,b));return JSON.stringify(a,function(a,b){b=Sc(a,b);if(D(b)){if(0<=d.indexOf(b))return"...";d.push(b)}return b})}
function Oe(a){S(a,{errorHandlingConfig:ve,bootstrap:Wc,copy:Ia,extend:S,merge:xe,equals:va,element:x,forEach:r,injector:fb,noop:E,bind:Va,toJson:eb,fromJson:Tc,identity:Ta,isUndefined:A,isDefined:w,isString:C,isFunction:B,isObject:D,isNumber:X,isElement:ac,isArray:H,version:Pe,isDate:ha,callbacks:{$$counter:0},getTestability:He,reloadWithDebugInfo:Ge,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Ke,$$minErr:F,$$csp:Ba,$$encodeUriSegment:ic,$$encodeUriQuery:ba,$$lowercase:K,$$stringify:jc,$$uppercase:vb});
lc=Me(z);lc("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:Qe});a.provider("$compile",Zc).directive({a:Re,input:$c,textarea:$c,form:Se,script:Te,select:Ue,option:Ve,ngBind:We,ngBindHtml:Xe,ngBindTemplate:Ye,ngClass:Ze,ngClassEven:$e,ngClassOdd:af,ngCloak:bf,ngController:cf,ngForm:df,ngHide:ef,ngIf:ff,ngInclude:gf,ngInit:hf,ngNonBindable:jf,ngPluralize:kf,ngRef:lf,ngRepeat:mf,ngShow:nf,ngStyle:of,ngSwitch:pf,ngSwitchWhen:qf,ngSwitchDefault:rf,ngOptions:sf,ngTransclude:tf,ngModel:uf,
ngList:vf,ngChange:wf,pattern:ad,ngPattern:ad,required:bd,ngRequired:bd,minlength:cd,ngMinlength:cd,maxlength:dd,ngMaxlength:dd,ngValue:xf,ngModelOptions:yf}).directive({ngInclude:zf,input:Af}).directive(wb).directive(ed);a.provider({$anchorScroll:Bf,$animate:Cf,$animateCss:Df,$$animateJs:Ef,$$animateQueue:Ff,$$AnimateRunner:Gf,$$animateAsyncRun:Hf,$browser:If,$cacheFactory:Jf,$controller:Kf,$document:Lf,$$isDocumentHidden:Mf,$exceptionHandler:Nf,$filter:fd,$$forceReflow:Of,$interpolate:Pf,$interval:Qf,
$$intervalFactory:Rf,$http:Sf,$httpParamSerializer:Tf,$httpParamSerializerJQLike:Uf,$httpBackend:Vf,$xhrFactory:Wf,$jsonpCallbacks:Xf,$location:Yf,$log:Zf,$parse:$f,$rootScope:ag,$q:bg,$$q:cg,$sce:dg,$sceDelegate:eg,$sniffer:fg,$$taskTrackerFactory:gg,$templateCache:hg,$templateRequest:ig,$$testability:jg,$timeout:kg,$window:lg,$$rAF:mg,$$jqLite:ng,$$Map:og,$$cookieReader:pg})}]).info({angularVersion:"1.8.2"})}function xb(a,b){return b.toUpperCase()}function yb(a){return a.replace(qg,xb)}function mc(a){a=
a.nodeType;return 1===a||!a||9===a}function gd(a,b){var d,c,e,f=b.createDocumentFragment(),g=[],k;if(nc.test(a)){d=f.appendChild(b.createElement("div"));c=(rg.exec(a)||["",""])[1].toLowerCase();e=U.legacyXHTMLReplacement?a.replace(sg,"<$1></$2>"):a;if(10>wa)for(c=hb[c]||hb._default,d.innerHTML=c[1]+e+c[2],k=c[0];k--;)d=d.firstChild;else{c=qa[c]||[];for(k=c.length;-1<--k;)d.appendChild(z.document.createElement(c[k])),d=d.firstChild;d.innerHTML=e}g=db(g,d.childNodes);d=f.firstChild;d.textContent=""}else g.push(b.createTextNode(a));
f.textContent="";f.innerHTML="";r(g,function(a){f.appendChild(a)});return f}function U(a){if(a instanceof U)return a;var b;C(a)&&(a=V(a),b=!0);if(!(this instanceof U)){if(b&&"<"!==a.charAt(0))throw oc("nosel");return new U(a)}if(b){b=z.document;var d;a=(d=tg.exec(a))?[b.createElement(d[1])]:(d=gd(a,b))?d.childNodes:[];pc(this,a)}else B(a)?hd(a):pc(this,a)}function qc(a){return a.cloneNode(!0)}function zb(a,b){!b&&mc(a)&&x.cleanData([a]);a.querySelectorAll&&x.cleanData(a.querySelectorAll("*"))}function id(a){for(var b in a)return!1;
return!0}function jd(a){var b=a.ng339,d=b&&Ka[b],c=d&&d.events,d=d&&d.data;d&&!id(d)||c&&!id(c)||(delete Ka[b],a.ng339=void 0)}function kd(a,b,d,c){if(w(c))throw oc("offargs");var e=(c=Ab(a))&&c.events,f=c&&c.handle;if(f){if(b){var g=function(b){var c=e[b];w(d)&&cb(c||[],d);w(d)&&c&&0<c.length||(a.removeEventListener(b,f),delete e[b])};r(b.split(" "),function(a){g(a);Bb[a]&&g(Bb[a])})}else for(b in e)"$destroy"!==b&&a.removeEventListener(b,f),delete e[b];jd(a)}}function rc(a,b){var d=a.ng339;if(d=
d&&Ka[d])b?delete d.data[b]:d.data={},jd(a)}function Ab(a,b){var d=a.ng339,d=d&&Ka[d];b&&!d&&(a.ng339=d=++ug,d=Ka[d]={events:{},data:{},handle:void 0});return d}function sc(a,b,d){if(mc(a)){var c,e=w(d),f=!e&&b&&!D(b),g=!b;a=(a=Ab(a,!f))&&a.data;if(e)a[yb(b)]=d;else{if(g)return a;if(f)return a&&a[yb(b)];for(c in b)a[yb(c)]=b[c]}}}function Cb(a,b){return a.getAttribute?-1<(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" "):!1}function Db(a,b){if(b&&a.setAttribute){var d=
(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),c=d;r(b.split(" "),function(a){a=V(a);c=c.replace(" "+a+" "," ")});c!==d&&a.setAttribute("class",V(c))}}function Eb(a,b){if(b&&a.setAttribute){var d=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),c=d;r(b.split(" "),function(a){a=V(a);-1===c.indexOf(" "+a+" ")&&(c+=a+" ")});c!==d&&a.setAttribute("class",V(c))}}function pc(a,b){if(b)if(b.nodeType)a[a.length++]=b;else{var d=b.length;if("number"===typeof d&&b.window!==b){if(d)for(var c=
0;c<d;c++)a[a.length++]=b[c]}else a[a.length++]=b}}function ld(a,b){return Fb(a,"$"+(b||"ngController")+"Controller")}function Fb(a,b,d){9===a.nodeType&&(a=a.documentElement);for(b=H(b)?b:[b];a;){for(var c=0,e=b.length;c<e;c++)if(w(d=x.data(a,b[c])))return d;a=a.parentNode||11===a.nodeType&&a.host}}function md(a){for(zb(a,!0);a.firstChild;)a.removeChild(a.firstChild)}function Gb(a,b){b||zb(a);var d=a.parentNode;d&&d.removeChild(a)}function vg(a,b){b=b||z;if("complete"===b.document.readyState)b.setTimeout(a);
else x(b).on("load",a)}function hd(a){function b(){z.document.removeEventListener("DOMContentLoaded",b);z.removeEventListener("load",b);a()}"complete"===z.document.readyState?z.setTimeout(a):(z.document.addEventListener("DOMContentLoaded",b),z.addEventListener("load",b))}function nd(a,b){var d=Hb[b.toLowerCase()];return d&&od[ua(a)]&&d}function wg(a,b){var d=function(c,d){c.isDefaultPrevented=function(){return c.defaultPrevented};var f=b[d||c.type],g=f?f.length:0;if(g){if(A(c.immediatePropagationStopped)){var k=
c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0;c.stopPropagation&&c.stopPropagation();k&&k.call(c)}}c.isImmediatePropagationStopped=function(){return!0===c.immediatePropagationStopped};var h=f.specialHandlerWrapper||xg;1<g&&(f=ja(f));for(var l=0;l<g;l++)c.isImmediatePropagationStopped()||h(a,c,f[l])}};d.elem=a;return d}function xg(a,b,d){d.call(a,b)}function yg(a,b,d){var c=b.relatedTarget;c&&(c===a||zg.call(a,c))||d.call(a,b)}function ng(){this.$get=
function(){return S(U,{hasClass:function(a,b){a.attr&&(a=a[0]);return Cb(a,b)},addClass:function(a,b){a.attr&&(a=a[0]);return Eb(a,b)},removeClass:function(a,b){a.attr&&(a=a[0]);return Db(a,b)}})}}function La(a,b){var d=a&&a.$$hashKey;if(d)return"function"===typeof d&&(d=a.$$hashKey()),d;d=typeof a;return d="function"===d||"object"===d&&null!==a?a.$$hashKey=d+":"+(b||we)():d+":"+a}function pd(){this._keys=[];this._values=[];this._lastKey=NaN;this._lastIndex=-1}function qd(a){a=Function.prototype.toString.call(a).replace(Ag,
"");return a.match(Bg)||a.match(Cg)}function Dg(a){return(a=qd(a))?"function("+(a[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function fb(a,b){function d(a){return function(b,c){if(D(b))r(b,Zb(a));else return a(b,c)}}function c(a,b){Ja(a,"service");if(B(b)||H(b))b=n.instantiate(b);if(!b.$get)throw Ca("pget",a);return p[a+"Provider"]=b}function e(a,b){return function(){var c=t.invoke(b,this);if(A(c))throw Ca("undef",a);return c}}function f(a,b,d){return c(a,{$get:!1!==d?e(a,b):b})}function g(a){gb(A(a)||
H(a),"modulesToLoad","not an array");var b=[],c;r(a,function(a){function d(a){var b,c;b=0;for(c=a.length;b<c;b++){var e=a[b],f=n.get(e[0]);f[e[1]].apply(f,e[2])}}if(!m.get(a)){m.set(a,!0);try{C(a)?(c=lc(a),t.modules[a]=c,b=b.concat(g(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):B(a)?b.push(n.invoke(a)):H(a)?b.push(n.invoke(a)):tb(a,"module")}catch(e){throw H(a)&&(a=a[a.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ca("modulerr",
a,e.stack||e.message||e);}}});return b}function k(a,c){function d(b,e){if(a.hasOwnProperty(b)){if(a[b]===h)throw Ca("cdep",b+" <- "+l.join(" <- "));return a[b]}try{return l.unshift(b),a[b]=h,a[b]=c(b,e),a[b]}catch(f){throw a[b]===h&&delete a[b],f;}finally{l.shift()}}function e(a,c,f){var g=[];a=fb.$$annotate(a,b,f);for(var h=0,k=a.length;h<k;h++){var l=a[h];if("string"!==typeof l)throw Ca("itkn",l);g.push(c&&c.hasOwnProperty(l)?c[l]:d(l,f))}return g}return{invoke:function(a,b,c,d){"string"===typeof c&&
(d=c,c=null);c=e(a,c,d);H(a)&&(a=a[a.length-1]);d=a;if(wa||"function"!==typeof d)d=!1;else{var f=d.$$ngIsClass;Ga(f)||(f=d.$$ngIsClass=/^class\b/.test(Function.prototype.toString.call(d)));d=f}return d?(c.unshift(null),new (Function.prototype.bind.apply(a,c))):a.apply(b,c)},instantiate:function(a,b,c){var d=H(a)?a[a.length-1]:a;a=e(a,b,c);a.unshift(null);return new (Function.prototype.bind.apply(d,a))},get:d,annotate:fb.$$annotate,has:function(b){return p.hasOwnProperty(b+"Provider")||a.hasOwnProperty(b)}}}
b=!0===b;var h={},l=[],m=new Ib,p={$provide:{provider:d(c),factory:d(f),service:d(function(a,b){return f(a,["$injector",function(a){return a.instantiate(b)}])}),value:d(function(a,b){return f(a,ia(b),!1)}),constant:d(function(a,b){Ja(a,"constant");p[a]=b;s[a]=b}),decorator:function(a,b){var c=n.get(a+"Provider"),d=c.$get;c.$get=function(){var a=t.invoke(d,c);return t.invoke(b,null,{$delegate:a})}}}},n=p.$injector=k(p,function(a,b){ca.isString(b)&&l.push(b);throw Ca("unpr",l.join(" <- "));}),s={},
G=k(s,function(a,b){var c=n.get(a+"Provider",b);return t.invoke(c.$get,c,void 0,a)}),t=G;p.$injectorProvider={$get:ia(G)};t.modules=n.modules=T();var N=g(a),t=G.get("$injector");t.strictDi=b;r(N,function(a){a&&t.invoke(a)});t.loadNewModules=function(a){r(g(a),function(a){a&&t.invoke(a)})};return t}function Bf(){var a=!0;this.disableAutoScrolling=function(){a=!1};this.$get=["$window","$location","$rootScope",function(b,d,c){function e(a){var b=null;Array.prototype.some.call(a,function(a){if("a"===
ua(a))return b=a,!0});return b}function f(a){if(a){a.scrollIntoView();var c;c=g.yOffset;B(c)?c=c():ac(c)?(c=c[0],c="fixed"!==b.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):X(c)||(c=0);c&&(a=a.getBoundingClientRect().top,b.scrollBy(0,a-c))}else b.scrollTo(0,0)}function g(a){a=C(a)?a:X(a)?a.toString():d.hash();var b;a?(b=k.getElementById(a))?f(b):(b=e(k.getElementsByName(a)))?f(b):"top"===a&&f(null):f(null)}var k=b.document;a&&c.$watch(function(){return d.hash()},function(a,b){a===
b&&""===a||vg(function(){c.$evalAsync(g)})});return g}]}function ib(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;H(a)&&(a=a.join(" "));H(b)&&(b=b.join(" "));return a+" "+b}function Eg(a){C(a)&&(a=a.split(" "));var b=T();r(a,function(a){a.length&&(b[a]=!0)});return b}function ra(a){return D(a)?a:{}}function Fg(a,b,d,c,e){function f(){pa=null;k()}function g(){t=y();t=A(t)?null:t;va(t,P)&&(t=P);N=P=t}function k(){var a=N;g();if(v!==h.url()||a!==t)v=h.url(),N=t,r(J,function(a){a(h.url(),t)})}
var h=this,l=a.location,m=a.history,p=a.setTimeout,n=a.clearTimeout,s={},G=e(d);h.isMock=!1;h.$$completeOutstandingRequest=G.completeTask;h.$$incOutstandingRequestCount=G.incTaskCount;h.notifyWhenNoOutstandingRequests=G.notifyWhenNoPendingTasks;var t,N,v=l.href,kc=b.find("base"),pa=null,y=c.history?function(){try{return m.state}catch(a){}}:E;g();h.url=function(b,d,e){A(e)&&(e=null);l!==a.location&&(l=a.location);m!==a.history&&(m=a.history);if(b){var f=N===e;b=ga(b).href;if(v===b&&(!c.history||f))return h;
var k=v&&Da(v)===Da(b);v=b;N=e;!c.history||k&&f?(k||(pa=b),d?l.replace(b):k?(d=l,e=b,f=e.indexOf("#"),e=-1===f?"":e.substr(f),d.hash=e):l.href=b,l.href!==b&&(pa=b)):(m[d?"replaceState":"pushState"](e,"",b),g());pa&&(pa=b);return h}return(pa||l.href).replace(/#$/,"")};h.state=function(){return t};var J=[],I=!1,P=null;h.onUrlChange=function(b){if(!I){if(c.history)x(a).on("popstate",f);x(a).on("hashchange",f);I=!0}J.push(b);return b};h.$$applicationDestroyed=function(){x(a).off("hashchange popstate",
f)};h.$$checkUrlChange=k;h.baseHref=function(){var a=kc.attr("href");return a?a.replace(/^(https?:)?\/\/[^/]*/,""):""};h.defer=function(a,b,c){var d;b=b||0;c=c||G.DEFAULT_TASK_TYPE;G.incTaskCount(c);d=p(function(){delete s[d];G.completeTask(a,c)},b);s[d]=c;return d};h.defer.cancel=function(a){if(s.hasOwnProperty(a)){var b=s[a];delete s[a];n(a);G.completeTask(E,b);return!0}return!1}}function If(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(a,b,d,c,e){return new Fg(a,
c,b,d,e)}]}function Jf(){this.$get=function(){function a(a,c){function e(a){a!==p&&(n?n===a&&(n=a.n):n=a,f(a.n,a.p),f(a,p),p=a,p.n=null)}function f(a,b){a!==b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw F("$cacheFactory")("iid",a);var g=0,k=S({},c,{id:a}),h=T(),l=c&&c.capacity||Number.MAX_VALUE,m=T(),p=null,n=null;return b[a]={put:function(a,b){if(!A(b)){if(l<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});e(c)}a in h||g++;h[a]=b;g>l&&this.remove(n.key);return b}},get:function(a){if(l<Number.MAX_VALUE){var b=
m[a];if(!b)return;e(b)}return h[a]},remove:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;b===p&&(p=b.p);b===n&&(n=b.n);f(b.n,b.p);delete m[a]}a in h&&(delete h[a],g--)},removeAll:function(){h=T();g=0;m=T();p=n=null},destroy:function(){m=k=h=null;delete b[a]},info:function(){return S({},k,{size:g})}}}var b={};a.info=function(){var a={};r(b,function(b,e){a[e]=b.info()});return a};a.get=function(a){return b[a]};return a}}function hg(){this.$get=["$cacheFactory",function(a){return a("templates")}]}
function Zc(a,b){function d(a,b,c){var d=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,e=T();r(a,function(a,f){a=a.trim();if(a in p)e[f]=p[a];else{var g=a.match(d);if(!g)throw $("iscp",b,f,a,c?"controller bindings definition":"isolate scope definition");e[f]={mode:g[1][0],collection:"*"===g[2],optional:"?"===g[3],attrName:g[4]||f};g[4]&&(p[a]=e[f])}});return e}function c(a){var b=a.charAt(0);if(!b||b!==K(b))throw $("baddir",a);if(a!==a.trim())throw $("baddir",a);}function e(a){var b=a.require||a.controller&&
a.name;!H(b)&&D(b)&&r(b,function(a,c){var d=a.match(l);a.substring(d[0].length)||(b[c]=d[0]+c)});return b}var f={},g=/^\s*directive:\s*([\w-]+)\s+(.*)$/,k=/(([\w-]+)(?::([^;]+))?;?)/,h=Ae("ngSrc,ngSrcset,src,srcset"),l=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,m=/^(on[a-z]+|formaction)$/,p=T();this.directive=function pa(b,d){gb(b,"name");Ja(b,"directive");C(b)?(c(b),gb(d,"directiveFactory"),f.hasOwnProperty(b)||(f[b]=[],a.factory(b+"Directive",["$injector","$exceptionHandler",function(a,c){var d=[];r(f[b],function(f,
g){try{var h=a.invoke(f);B(h)?h={compile:ia(h)}:!h.compile&&h.link&&(h.compile=ia(h.link));h.priority=h.priority||0;h.index=g;h.name=h.name||b;h.require=e(h);var k=h,l=h.restrict;if(l&&(!C(l)||!/[EACM]/.test(l)))throw $("badrestrict",l,b);k.restrict=l||"EA";h.$$moduleName=f.$$moduleName;d.push(h)}catch(m){c(m)}});return d}])),f[b].push(d)):r(b,Zb(pa));return this};this.component=function y(a,b){function c(a){function e(b){return B(b)||H(b)?function(c,d){return a.invoke(b,this,{$element:c,$attrs:d})}:
b}var f=b.template||b.templateUrl?b.template:"",g={controller:d,controllerAs:Gg(b.controller)||b.controllerAs||"$ctrl",template:e(f),templateUrl:e(b.templateUrl),transclude:b.transclude,scope:{},bindToController:b.bindings||{},restrict:"E",require:b.require};r(b,function(a,b){"$"===b.charAt(0)&&(g[b]=a)});return g}if(!C(a))return r(a,Zb(Va(this,y))),this;var d=b.controller||function(){};r(b,function(a,b){"$"===b.charAt(0)&&(c[b]=a,B(d)&&(d[b]=a))});c.$inject=["$injector"];return this.directive(a,
c)};this.aHrefSanitizationTrustedUrlList=function(a){return w(a)?(b.aHrefSanitizationTrustedUrlList(a),this):b.aHrefSanitizationTrustedUrlList()};Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(a){this.aHrefSanitizationTrustedUrlList=a}});this.imgSrcSanitizationTrustedUrlList=function(a){return w(a)?(b.imgSrcSanitizationTrustedUrlList(a),this):b.imgSrcSanitizationTrustedUrlList()};Object.defineProperty(this,"imgSrcSanitizationWhitelist",
{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(a){this.imgSrcSanitizationTrustedUrlList=a}});var n=!0;this.debugInfoEnabled=function(a){return w(a)?(n=a,this):n};var s=!1;this.strictComponentBindingsEnabled=function(a){return w(a)?(s=a,this):s};var G=10;this.onChangesTtl=function(a){return arguments.length?(G=a,this):G};var t=!0;this.commentDirectivesEnabled=function(a){return arguments.length?(t=a,this):t};var N=!0;this.cssClassDirectivesEnabled=function(a){return arguments.length?
(N=a,this):N};var v=T();this.addPropertySecurityContext=function(a,b,c){var d=a.toLowerCase()+"|"+b.toLowerCase();if(d in v&&v[d]!==c)throw $("ctxoverride",a,b,v[d],c);v[d]=c;return this};(function(){function a(b,c){r(c,function(a){v[a.toLowerCase()]=b})}a(W.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]);a(W.CSS,["*|style"]);a(W.URL,"area|href area|ping a|href a|ping blockquote|cite body|background del|cite input|src ins|cite q|cite".split(" "));a(W.MEDIA_URL,"audio|src img|src img|srcset source|src source|srcset track|src video|src video|poster".split(" "));
a(W.RESOURCE_URL,"*|formAction applet|code applet|codebase base|href embed|src frame|src form|action head|profile html|manifest iframe|src link|href media|src object|codebase object|data script|src".split(" "))})();this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(a,b,c,e,p,M,L,u,R){function q(){try{if(!--Ja)throw Ua=void 0,$("infchng",G);L.$apply(function(){for(var a=0,b=Ua.length;a<b;++a)try{Ua[a]()}catch(d){c(d)}Ua=
void 0})}finally{Ja++}}function ma(a,b){if(!a)return a;if(!C(a))throw $("srcset",b,a.toString());for(var c="",d=V(a),e=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,e=/\s/.test(d)?e:/(,)/,d=d.split(e),e=Math.floor(d.length/2),f=0;f<e;f++)var g=2*f,c=c+u.getTrustedMediaUrl(V(d[g])),c=c+(" "+V(d[g+1]));d=V(d[2*f]).split(/\s/);c+=u.getTrustedMediaUrl(V(d[0]));2===d.length&&(c+=" "+V(d[1]));return c}function w(a,b){if(b){var c=Object.keys(b),d,e,f;d=0;for(e=c.length;d<e;d++)f=c[d],this[f]=b[f]}else this.$attr=
{};this.$$element=a}function O(a,b,c){Fa.innerHTML="<span "+b+">";b=Fa.firstChild.attributes;var d=b[0];b.removeNamedItem(d.name);d.value=c;a.attributes.setNamedItem(d)}function sa(a,b){try{a.addClass(b)}catch(c){}}function da(a,b,c,d,e){a instanceof x||(a=x(a));var f=Xa(a,b,a,c,d,e);da.$$addScopeClass(a);var g=null;return function(b,c,d){if(!a)throw $("multilink");gb(b,"scope");e&&e.needsNewScope&&(b=b.$parent.$new());d=d||{};var h=d.parentBoundTranscludeFn,k=d.transcludeControllers;d=d.futureParentElement;
h&&h.$$boundTransclude&&(h=h.$$boundTransclude);g||(g=(d=d&&d[0])?"foreignobject"!==ua(d)&&la.call(d).match(/SVG/)?"svg":"html":"html");d="html"!==g?x(ja(g,x("<div></div>").append(a).html())):c?Wa.clone.call(a):a;if(k)for(var l in k)d.data("$"+l+"Controller",k[l].instance);da.$$addScopeInfo(d,b);c&&c(d,b);f&&f(b,d,d,h);c||(a=f=null);return d}}function Xa(a,b,c,d,e,f){function g(a,c,d,e){var f,k,l,m,p,I,t;if(n)for(t=Array(c.length),m=0;m<h.length;m+=3)f=h[m],t[f]=c[f];else t=c;m=0;for(p=h.length;m<
p;)k=t[h[m++]],c=h[m++],f=h[m++],c?(c.scope?(l=a.$new(),da.$$addScopeInfo(x(k),l)):l=a,I=c.transcludeOnThisElement?ka(a,c.transclude,e):!c.templateOnThisElement&&e?e:!e&&b?ka(a,b):null,c(f,l,k,d,I)):f&&f(a,k.childNodes,void 0,e)}for(var h=[],k=H(a)||a instanceof x,l,m,p,I,n,t=0;t<a.length;t++){l=new w;11===wa&&jb(a,t,k);m=tc(a[t],[],l,0===t?d:void 0,e);(f=m.length?aa(m,a[t],l,b,c,null,[],[],f):null)&&f.scope&&da.$$addScopeClass(l.$$element);l=f&&f.terminal||!(p=a[t].childNodes)||!p.length?null:Xa(p,
f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b);if(f||l)h.push(t,f,l),I=!0,n=n||f;f=null}return I?g:null}function jb(a,b,c){var d=a[b],e=d.parentNode,f;if(d.nodeType===Pa)for(;;){f=e?d.nextSibling:a[b+1];if(!f||f.nodeType!==Pa)break;d.nodeValue+=f.nodeValue;f.parentNode&&f.parentNode.removeChild(f);c&&f===a[b+1]&&a.splice(b+1,1)}}function ka(a,b,c){function d(e,f,g,h,k){e||(e=a.$new(!1,k),e.$$transcluded=!0);return b(e,f,{parentBoundTranscludeFn:c,transcludeControllers:g,
futureParentElement:h})}var e=d.$$slots=T(),f;for(f in b.$$slots)e[f]=b.$$slots[f]?ka(a,b.$$slots[f],c):null;return d}function tc(a,b,d,e,f){var g=d.$attr,h;switch(a.nodeType){case 1:h=ua(a);Y(b,xa(h),"E",e,f);for(var l,m,n,t,J,s=a.attributes,v=0,G=s&&s.length;v<G;v++){var P=!1,N=!1,r=!1,y=!1,u=!1,M;l=s[v];m=l.name;t=l.value;n=xa(m.toLowerCase());(J=n.match(Ra))?(r="Attr"===J[1],y="Prop"===J[1],u="On"===J[1],m=m.replace(rd,"").toLowerCase().substr(4+J[1].length).replace(/_(.)/g,function(a,b){return b.toUpperCase()})):
(M=n.match(Sa))&&ca(M[1])&&(P=m,N=m.substr(0,m.length-5)+"end",m=m.substr(0,m.length-6));if(y||u)d[n]=t,g[n]=l.name,y?Ea(a,b,n,m):b.push(sd(p,L,c,n,m,!1));else{n=xa(m.toLowerCase());g[n]=m;if(r||!d.hasOwnProperty(n))d[n]=t,nd(a,n)&&(d[n]=!0);Ia(a,b,t,n,r);Y(b,n,"A",e,f,P,N)}}"input"===h&&"hidden"===a.getAttribute("type")&&a.setAttribute("autocomplete","off");if(!Qa)break;g=a.className;D(g)&&(g=g.animVal);if(C(g)&&""!==g)for(;a=k.exec(g);)n=xa(a[2]),Y(b,n,"C",e,f)&&(d[n]=V(a[3])),g=g.substr(a.index+
a[0].length);break;case Pa:na(b,a.nodeValue);break;case 8:if(!Oa)break;F(a,b,d,e,f)}b.sort(ia);return b}function F(a,b,c,d,e){try{var f=g.exec(a.nodeValue);if(f){var h=xa(f[1]);Y(b,h,"M",d,e)&&(c[h]=V(f[2]))}}catch(k){}}function U(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw $("uterdir",b,c);1===a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return x(d)}function W(a,b,c){return function(d,e,f,g,h){e=U(e[0],
b,c);return a(d,e,f,g,h)}}function Z(a,b,c,d,e,f){var g;return a?da(b,c,d,e,f):function(){g||(g=da(b,c,d,e,f),b=c=f=null);return g.apply(this,arguments)}}function aa(a,b,d,e,f,g,h,k,l){function m(a,b,c,d){if(a){c&&(a=W(a,c,d));a.require=u.require;a.directiveName=Q;if(s===u||u.$$isolateScope)a=Ba(a,{isolateScope:!0});h.push(a)}if(b){c&&(b=W(b,c,d));b.require=u.require;b.directiveName=Q;if(s===u||u.$$isolateScope)b=Ba(b,{isolateScope:!0});k.push(b)}}function p(a,e,f,g,l){function m(a,b,c,d){var e;bb(a)||
(d=c,c=b,b=a,a=void 0);N&&(e=P);c||(c=N?Q.parent():Q);if(d){var f=l.$$slots[d];if(f)return f(a,b,e,c,R);if(A(f))throw $("noslot",d,Aa(Q));}else return l(a,b,e,c,R)}var n,u,L,y,G,P,M,Q;b===f?(g=d,Q=d.$$element):(Q=x(f),g=new w(Q,d));G=e;s?y=e.$new(!0):t&&(G=e.$parent);l&&(M=m,M.$$boundTransclude=l,M.isSlotFilled=function(a){return!!l.$$slots[a]});J&&(P=ea(Q,g,M,J,y,e,s));s&&(da.$$addScopeInfo(Q,y,!0,!(v&&(v===s||v===s.$$originalDirective))),da.$$addScopeClass(Q,!0),y.$$isolateBindings=s.$$isolateBindings,
u=Da(e,g,y,y.$$isolateBindings,s),u.removeWatches&&y.$on("$destroy",u.removeWatches));for(n in P){u=J[n];L=P[n];var Hg=u.$$bindings.bindToController;L.instance=L();Q.data("$"+u.name+"Controller",L.instance);L.bindingInfo=Da(G,g,L.instance,Hg,u)}r(J,function(a,b){var c=a.require;a.bindToController&&!H(c)&&D(c)&&S(P[b].instance,X(b,c,Q,P))});r(P,function(a){var b=a.instance;if(B(b.$onChanges))try{b.$onChanges(a.bindingInfo.initialChanges)}catch(d){c(d)}if(B(b.$onInit))try{b.$onInit()}catch(e){c(e)}B(b.$doCheck)&&
(G.$watch(function(){b.$doCheck()}),b.$doCheck());B(b.$onDestroy)&&G.$on("$destroy",function(){b.$onDestroy()})});n=0;for(u=h.length;n<u;n++)L=h[n],Ca(L,L.isolateScope?y:e,Q,g,L.require&&X(L.directiveName,L.require,Q,P),M);var R=e;s&&(s.template||null===s.templateUrl)&&(R=y);a&&a(R,f.childNodes,void 0,l);for(n=k.length-1;0<=n;n--)L=k[n],Ca(L,L.isolateScope?y:e,Q,g,L.require&&X(L.directiveName,L.require,Q,P),M);r(P,function(a){a=a.instance;B(a.$postLink)&&a.$postLink()})}l=l||{};for(var n=-Number.MAX_VALUE,
t=l.newScopeDirective,J=l.controllerDirectives,s=l.newIsolateScopeDirective,v=l.templateDirective,L=l.nonTlbTranscludeDirective,G=!1,P=!1,N=l.hasElementTranscludeDirective,y=d.$$element=x(b),u,Q,M,R=e,q,ma=!1,Jb=!1,O,sa=0,C=a.length;sa<C;sa++){u=a[sa];var E=u.$$start,jb=u.$$end;E&&(y=U(b,E,jb));M=void 0;if(n>u.priority)break;if(O=u.scope)u.templateUrl||(D(O)?(ba("new/isolated scope",s||t,u,y),s=u):ba("new/isolated scope",s,u,y)),t=t||u;Q=u.name;if(!ma&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&
!u.$$tlb)){for(O=sa+1;ma=a[O++];)if(ma.transclude&&!ma.$$tlb||ma.replace&&(ma.templateUrl||ma.template)){Jb=!0;break}ma=!0}!u.templateUrl&&u.controller&&(J=J||T(),ba("'"+Q+"' controller",J[Q],u,y),J[Q]=u);if(O=u.transclude)if(G=!0,u.$$tlb||(ba("transclusion",L,u,y),L=u),"element"===O)N=!0,n=u.priority,M=y,y=d.$$element=x(da.$$createComment(Q,d[Q])),b=y[0],oa(f,Ha.call(M,0),b),R=Z(Jb,M,e,n,g&&g.name,{nonTlbTranscludeDirective:L});else{var ka=T();if(D(O)){M=z.document.createDocumentFragment();var Xa=
T(),F=T();r(O,function(a,b){var c="?"===a.charAt(0);a=c?a.substring(1):a;Xa[a]=b;ka[b]=null;F[b]=c});r(y.contents(),function(a){var b=Xa[xa(ua(a))];b?(F[b]=!0,ka[b]=ka[b]||z.document.createDocumentFragment(),ka[b].appendChild(a)):M.appendChild(a)});r(F,function(a,b){if(!a)throw $("reqslot",b);});for(var K in ka)ka[K]&&(R=x(ka[K].childNodes),ka[K]=Z(Jb,R,e));M=x(M.childNodes)}else M=x(qc(b)).contents();y.empty();R=Z(Jb,M,e,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope});R.$$slots=ka}if(u.template)if(P=
!0,ba("template",v,u,y),v=u,O=B(u.template)?u.template(y,d):u.template,O=Na(O),u.replace){g=u;M=nc.test(O)?td(ja(u.templateNamespace,V(O))):[];b=M[0];if(1!==M.length||1!==b.nodeType)throw $("tplrt",Q,"");oa(f,y,b);C={$attr:{}};O=tc(b,[],C);var Ig=a.splice(sa+1,a.length-(sa+1));(s||t)&&fa(O,s,t);a=a.concat(O).concat(Ig);ga(d,C);C=a.length}else y.html(O);if(u.templateUrl)P=!0,ba("template",v,u,y),v=u,u.replace&&(g=u),p=ha(a.splice(sa,a.length-sa),y,d,f,G&&R,h,k,{controllerDirectives:J,newScopeDirective:t!==
u&&t,newIsolateScopeDirective:s,templateDirective:v,nonTlbTranscludeDirective:L}),C=a.length;else if(u.compile)try{q=u.compile(y,d,R);var Y=u.$$originalDirective||u;B(q)?m(null,Va(Y,q),E,jb):q&&m(Va(Y,q.pre),Va(Y,q.post),E,jb)}catch(ca){c(ca,Aa(y))}u.terminal&&(p.terminal=!0,n=Math.max(n,u.priority))}p.scope=t&&!0===t.scope;p.transcludeOnThisElement=G;p.templateOnThisElement=P;p.transclude=R;l.hasElementTranscludeDirective=N;return p}function X(a,b,c,d){var e;if(C(b)){var f=b.match(l);b=b.substring(f[0].length);
var g=f[1]||f[3],f="?"===f[2];"^^"===g?c=c.parent():e=(e=d&&d[b])&&e.instance;if(!e){var h="$"+b+"Controller";e="^^"===g&&c[0]&&9===c[0].nodeType?null:g?c.inheritedData(h):c.data(h)}if(!e&&!f)throw $("ctreq",b,a);}else if(H(b))for(e=[],g=0,f=b.length;g<f;g++)e[g]=X(a,b[g],c,d);else D(b)&&(e={},r(b,function(b,f){e[f]=X(a,b,c,d)}));return e||null}function ea(a,b,c,d,e,f,g){var h=T(),k;for(k in d){var l=d[k],m={$scope:l===g||l.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},p=l.controller;"@"===
p&&(p=b[l.name]);m=M(p,m,!0,l.controllerAs);h[l.name]=m;a.data("$"+l.name+"Controller",m.instance)}return h}function fa(a,b,c){for(var d=0,e=a.length;d<e;d++)a[d]=bc(a[d],{$$isolateScope:b,$$newScope:c})}function Y(b,c,e,g,h,k,l){if(c===h)return null;var m=null;if(f.hasOwnProperty(c)){h=a.get(c+"Directive");for(var p=0,n=h.length;p<n;p++)if(c=h[p],(A(g)||g>c.priority)&&-1!==c.restrict.indexOf(e)){k&&(c=bc(c,{$$start:k,$$end:l}));if(!c.$$bindings){var I=m=c,t=c.name,u={isolateScope:null,bindToController:null};
D(I.scope)&&(!0===I.bindToController?(u.bindToController=d(I.scope,t,!0),u.isolateScope={}):u.isolateScope=d(I.scope,t,!1));D(I.bindToController)&&(u.bindToController=d(I.bindToController,t,!0));if(u.bindToController&&!I.controller)throw $("noctrl",t);m=m.$$bindings=u;D(m.isolateScope)&&(c.$$isolateBindings=m.isolateScope)}b.push(c);m=c}}return m}function ca(b){if(f.hasOwnProperty(b))for(var c=a.get(b+"Directive"),d=0,e=c.length;d<e;d++)if(b=c[d],b.multiElement)return!0;return!1}function ga(a,b){var c=
b.$attr,d=a.$attr;r(a,function(d,e){"$"!==e.charAt(0)&&(b[e]&&b[e]!==d&&(d=d.length?d+(("style"===e?";":" ")+b[e]):b[e]),a.$set(e,d,!0,c[e]))});r(b,function(b,e){a.hasOwnProperty(e)||"$"===e.charAt(0)||(a[e]=b,"class"!==e&&"style"!==e&&(d[e]=c[e]))})}function ha(a,b,d,f,g,h,k,l){var m=[],p,n,t=b[0],u=a.shift(),J=bc(u,{templateUrl:null,transclude:null,replace:null,$$originalDirective:u}),s=B(u.templateUrl)?u.templateUrl(b,d):u.templateUrl,L=u.templateNamespace;b.empty();e(s).then(function(c){var e,
I;c=Na(c);if(u.replace){c=nc.test(c)?td(ja(L,V(c))):[];e=c[0];if(1!==c.length||1!==e.nodeType)throw $("tplrt",u.name,s);c={$attr:{}};oa(f,b,e);var v=tc(e,[],c);D(u.scope)&&fa(v,!0);a=v.concat(a);ga(d,c)}else e=t,b.html(c);a.unshift(J);p=aa(a,e,d,g,b,u,h,k,l);r(f,function(a,c){a===e&&(f[c]=b[0])});for(n=Xa(b[0].childNodes,g);m.length;){c=m.shift();I=m.shift();var y=m.shift(),P=m.shift(),v=b[0];if(!c.$$destroyed){if(I!==t){var G=I.className;l.hasElementTranscludeDirective&&u.replace||(v=qc(e));oa(y,
x(I),v);sa(x(v),G)}I=p.transcludeOnThisElement?ka(c,p.transclude,P):P;p(n,c,v,f,I)}}m=null}).catch(function(a){dc(a)&&c(a)});return function(a,b,c,d,e){a=e;b.$$destroyed||(m?m.push(b,c,d,a):(p.transcludeOnThisElement&&(a=ka(b,p.transclude,e)),p(n,b,c,d,a)))}}function ia(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function ba(a,b,c,d){function e(a){return a?" (module: "+a+")":""}if(b)throw $("multidir",b.name,e(b.$$moduleName),c.name,e(c.$$moduleName),
a,Aa(d));}function na(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:function(a){a=a.parent();var b=!!a.length;b&&da.$$addBindingClass(a);return function(a,c){var e=c.parent();b||da.$$addBindingClass(e);da.$$addBindingInfo(e,d.expressions);a.$watch(d,function(a){c[0].nodeValue=a})}}})}function ja(a,b){a=K(a||"html");switch(a){case "svg":case "math":var c=z.document.createElement("div");c.innerHTML="<"+a+">"+b+"</"+a+">";return c.childNodes[0].childNodes;default:return b}}function qa(a,b){if("srcdoc"===
b)return u.HTML;if("src"===b||"ngSrc"===b)return-1===["img","video","audio","source","track"].indexOf(a)?u.RESOURCE_URL:u.MEDIA_URL;if("xlinkHref"===b)return"image"===a?u.MEDIA_URL:"a"===a?u.URL:u.RESOURCE_URL;if("form"===a&&"action"===b||"base"===a&&"href"===b||"link"===a&&"href"===b)return u.RESOURCE_URL;if("a"===a&&("href"===b||"ngHref"===b))return u.URL}function ya(a,b){var c=b.toLowerCase();return v[a+"|"+c]||v["*|"+c]}function za(a){return ma(u.valueOf(a),"ng-prop-srcset")}function Ea(a,b,c,
d){if(m.test(d))throw $("nodomevents");a=ua(a);var e=ya(a,d),f=Ta;"srcset"!==d||"img"!==a&&"source"!==a?e&&(f=u.getTrusted.bind(u,e)):f=za;b.push({priority:100,compile:function(a,b){var e=p(b[c]),g=p(b[c],function(a){return u.valueOf(a)});return{pre:function(a,b){function c(){var g=e(a);b[0][d]=f(g)}c();a.$watch(g,c)}}}})}function Ia(a,c,d,e,f){var g=ua(a),k=qa(g,e),l=h[e]||f,p=b(d,!f,k,l);if(p){if("multiple"===e&&"select"===g)throw $("selmulti",Aa(a));if(m.test(e))throw $("nodomevents");c.push({priority:100,
compile:function(){return{pre:function(a,c,f){c=f.$$observers||(f.$$observers=T());var g=f[e];g!==d&&(p=g&&b(g,!0,k,l),d=g);p&&(f[e]=p(a),(c[e]||(c[e]=[])).$$inter=!0,(f.$$observers&&f.$$observers[e].$$scope||a).$watch(p,function(a,b){"class"===e&&a!==b?f.$updateClass(a,b):f.$set(e,a)}))}}}})}}function oa(a,b,c){var d=b[0],e=b.length,f=d.parentNode,g,h;if(a)for(g=0,h=a.length;g<h;g++)if(a[g]===d){a[g++]=c;h=g+e-1;for(var k=a.length;g<k;g++,h++)h<k?a[g]=a[h]:delete a[g];a.length-=e-1;a.context===d&&
(a.context=c);break}f&&f.replaceChild(c,d);a=z.document.createDocumentFragment();for(g=0;g<e;g++)a.appendChild(b[g]);x.hasData(d)&&(x.data(c,x.data(d)),x(d).off("$destroy"));x.cleanData(a.querySelectorAll("*"));for(g=1;g<e;g++)delete b[g];b[0]=c;b.length=1}function Ba(a,b){return S(function(){return a.apply(null,arguments)},a,b)}function Ca(a,b,d,e,f,g){try{a(b,d,e,f,g)}catch(h){c(h,Aa(d))}}function ra(a,b){if(s)throw $("missingattr",a,b);}function Da(a,c,d,e,f){function g(b,c,e){B(d.$onChanges)&&
!ec(c,e)&&(Ua||(a.$$postDigest(q),Ua=[]),m||(m={},Ua.push(h)),m[b]&&(e=m[b].previousValue),m[b]=new Kb(e,c))}function h(){d.$onChanges(m);m=void 0}var k=[],l={},m;r(e,function(e,h){var m=e.attrName,n=e.optional,I,t,u,s;switch(e.mode){case "@":n||ta.call(c,m)||(ra(m,f.name),d[h]=c[m]=void 0);n=c.$observe(m,function(a){if(C(a)||Ga(a))g(h,a,d[h]),d[h]=a});c.$$observers[m].$$scope=a;I=c[m];C(I)?d[h]=b(I)(a):Ga(I)&&(d[h]=I);l[h]=new Kb(uc,d[h]);k.push(n);break;case "=":if(!ta.call(c,m)){if(n)break;ra(m,
f.name);c[m]=void 0}if(n&&!c[m])break;t=p(c[m]);s=t.literal?va:ec;u=t.assign||function(){I=d[h]=t(a);throw $("nonassign",c[m],m,f.name);};I=d[h]=t(a);n=function(b){s(b,d[h])||(s(b,I)?u(a,b=d[h]):d[h]=b);return I=b};n.$stateful=!0;n=e.collection?a.$watchCollection(c[m],n):a.$watch(p(c[m],n),null,t.literal);k.push(n);break;case "<":if(!ta.call(c,m)){if(n)break;ra(m,f.name);c[m]=void 0}if(n&&!c[m])break;t=p(c[m]);var v=t.literal,L=d[h]=t(a);l[h]=new Kb(uc,d[h]);n=a[e.collection?"$watchCollection":"$watch"](t,
function(a,b){if(b===a){if(b===L||v&&va(b,L))return;b=L}g(h,a,b);d[h]=a});k.push(n);break;case "&":n||ta.call(c,m)||ra(m,f.name);t=c.hasOwnProperty(m)?p(c[m]):E;if(t===E&&n)break;d[h]=function(b){return t(a,b)}}});return{initialChanges:l,removeWatches:k.length&&function(){for(var a=0,b=k.length;a<b;++a)k[a]()}}}var Ma=/^\w/,Fa=z.document.createElement("div"),Oa=t,Qa=N,Ja=G,Ua;w.prototype={$normalize:xa,$addClass:function(a){a&&0<a.length&&R.addClass(this.$$element,a)},$removeClass:function(a){a&&
0<a.length&&R.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=ud(a,b);c&&c.length&&R.addClass(this.$$element,c);(c=ud(b,a))&&c.length&&R.removeClass(this.$$element,c)},$set:function(a,b,d,e){var f=nd(this.$$element[0],a),g=vd[a],h=a;f?(this.$$element.prop(a,b),e=f):g&&(this[g]=b,h=g);this[a]=b;e?this.$attr[a]=e:(e=this.$attr[a])||(this.$attr[a]=e=Xc(a,"-"));"img"===ua(this.$$element)&&"srcset"===a&&(this[a]=b=ma(b,"$set('srcset', value)"));!1!==d&&(null===b||A(b)?this.$$element.removeAttr(e):
Ma.test(e)?f&&!1===b?this.$$element.removeAttr(e):this.$$element.attr(e,b):O(this.$$element[0],e,b));(a=this.$$observers)&&r(a[h],function(a){try{a(b)}catch(d){c(d)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=T()),e=d[a]||(d[a]=[]);e.push(b);L.$evalAsync(function(){e.$$inter||!c.hasOwnProperty(a)||A(c[a])||b(c[a])});return function(){cb(e,b)}}};var Ka=b.startSymbol(),La=b.endSymbol(),Na="{{"===Ka&&"}}"===La?Ta:function(a){return a.replace(/\{\{/g,Ka).replace(/}}/g,La)},Ra=
/^ng(Attr|Prop|On)([A-Z].*)$/,Sa=/^(.+)Start$/;da.$$addBindingInfo=n?function(a,b){var c=a.data("$binding")||[];H(b)?c=c.concat(b):c.push(b);a.data("$binding",c)}:E;da.$$addBindingClass=n?function(a){sa(a,"ng-binding")}:E;da.$$addScopeInfo=n?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:E;da.$$addScopeClass=n?function(a,b){sa(a,b?"ng-isolate-scope":"ng-scope")}:E;da.$$createComment=function(a,b){var c="";n&&(c=" "+(a||"")+": ",b&&(c+=b+" "));return z.document.createComment(c)};
return da}]}function Kb(a,b){this.previousValue=a;this.currentValue=b}function xa(a){return a.replace(rd,"").replace(Jg,function(a,d,c){return c?d.toUpperCase():d})}function ud(a,b){var d="",c=a.split(/\s+/),e=b.split(/\s+/),f=0;a:for(;f<c.length;f++){for(var g=c[f],k=0;k<e.length;k++)if(g===e[k])continue a;d+=(0<d.length?" ":"")+g}return d}function td(a){a=x(a);var b=a.length;if(1>=b)return a;for(;b--;){var d=a[b];(8===d.nodeType||d.nodeType===Pa&&""===d.nodeValue.trim())&&Kg.call(a,b,1)}return a}
function Gg(a,b){if(b&&C(b))return b;if(C(a)){var d=wd.exec(a);if(d)return d[3]}}function Kf(){var a={};this.has=function(b){return a.hasOwnProperty(b)};this.register=function(b,d){Ja(b,"controller");D(b)?S(a,b):a[b]=d};this.$get=["$injector",function(b){function d(a,b,d,g){if(!a||!D(a.$scope))throw F("$controller")("noscp",g,b);a.$scope[b]=d}return function(c,e,f,g){var k,h,l;f=!0===f;g&&C(g)&&(l=g);if(C(c)){g=c.match(wd);if(!g)throw xd("ctrlfmt",c);h=g[1];l=l||g[3];c=a.hasOwnProperty(h)?a[h]:Le(e.$scope,
h,!0);if(!c)throw xd("ctrlreg",h);tb(c,h,!0)}if(f)return f=(H(c)?c[c.length-1]:c).prototype,k=Object.create(f||null),l&&d(e,l,k,h||c.name),S(function(){var a=b.invoke(c,k,e,h);a!==k&&(D(a)||B(a))&&(k=a,l&&d(e,l,k,h||c.name));return k},{instance:k,identifier:l});k=b.instantiate(c,e,h);l&&d(e,l,k,h||c.name);return k}}]}function Lf(){this.$get=["$window",function(a){return x(a.document)}]}function Mf(){this.$get=["$document","$rootScope",function(a,b){function d(){e=c.hidden}var c=a[0],e=c&&c.hidden;
a.on("visibilitychange",d);b.$on("$destroy",function(){a.off("visibilitychange",d)});return function(){return e}}]}function Nf(){this.$get=["$log",function(a){return function(b,d){a.error.apply(a,arguments)}}]}function vc(a){return D(a)?ha(a)?a.toISOString():eb(a):a}function Tf(){this.$get=function(){return function(a){if(!a)return"";var b=[];Qc(a,function(a,c){null===a||A(a)||B(a)||(H(a)?r(a,function(a){b.push(ba(c)+"="+ba(vc(a)))}):b.push(ba(c)+"="+ba(vc(a))))});return b.join("&")}}}function Uf(){this.$get=
function(){return function(a){function b(a,e,f){H(a)?r(a,function(a,c){b(a,e+"["+(D(a)?c:"")+"]")}):D(a)&&!ha(a)?Qc(a,function(a,c){b(a,e+(f?"":"[")+c+(f?"":"]"))}):(B(a)&&(a=a()),d.push(ba(e)+"="+(null==a?"":ba(vc(a)))))}if(!a)return"";var d=[];b(a,"",!0);return d.join("&")}}}function wc(a,b){if(C(a)){var d=a.replace(Lg,"").trim();if(d){var c=b("Content-Type"),c=c&&0===c.indexOf(yd),e;(e=c)||(e=(e=d.match(Mg))&&Ng[e[0]].test(d));if(e)try{a=Tc(d)}catch(f){if(!c)return a;throw Lb("baddata",a,f);}}}return a}
function zd(a){var b=T(),d;C(a)?r(a.split("\n"),function(a){d=a.indexOf(":");var e=K(V(a.substr(0,d)));a=V(a.substr(d+1));e&&(b[e]=b[e]?b[e]+", "+a:a)}):D(a)&&r(a,function(a,d){var f=K(d),g=V(a);f&&(b[f]=b[f]?b[f]+", "+g:g)});return b}function Ad(a){var b;return function(d){b||(b=zd(a));return d?(d=b[K(d)],void 0===d&&(d=null),d):b}}function Bd(a,b,d,c){if(B(c))return c(a,b,d);r(c,function(c){a=c(a,b,d)});return a}function Sf(){var a=this.defaults={transformResponse:[wc],transformRequest:[function(a){return D(a)&&
"[object File]"!==la.call(a)&&"[object Blob]"!==la.call(a)&&"[object FormData]"!==la.call(a)?eb(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ja(xc),put:ja(xc),patch:ja(xc)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},b=!1;this.useApplyAsync=function(a){return w(a)?(b=!!a,this):b};var d=this.interceptors=[],c=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",
{get:function(){return this.xsrfTrustedOrigins},set:function(a){this.xsrfTrustedOrigins=a}});this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(e,f,g,k,h,l,m,p){function n(b){function c(a,b){for(var d=0,e=b.length;d<e;){var f=b[d++],g=b[d++];a=a.then(f,g)}b.length=0;return a}function d(a,b){var c,e={};r(a,function(a,d){B(a)?(c=a(b),null!=c&&(e[d]=c)):e[d]=a});return e}function f(a){var b=S({},a);b.data=Bd(a.data,a.headers,a.status,g.transformResponse);
a=a.status;return 200<=a&&300>a?b:l.reject(b)}if(!D(b))throw F("$http")("badreq",b);if(!C(p.valueOf(b.url)))throw F("$http")("badreq",b.url);var g=S({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer,jsonpCallbackParam:a.jsonpCallbackParam},b);g.headers=function(b){var c=a.headers,e=S({},b.headers),f,g,h,c=S({},c.common,c[K(b.method)]);a:for(f in c){g=K(f);for(h in e)if(K(h)===g)continue a;e[f]=c[f]}return d(e,ja(b))}(b);g.method=
vb(g.method);g.paramSerializer=C(g.paramSerializer)?m.get(g.paramSerializer):g.paramSerializer;e.$$incOutstandingRequestCount("$http");var h=[],k=[];b=l.resolve(g);r(v,function(a){(a.request||a.requestError)&&h.unshift(a.request,a.requestError);(a.response||a.responseError)&&k.push(a.response,a.responseError)});b=c(b,h);b=b.then(function(b){var c=b.headers,d=Bd(b.data,Ad(c),void 0,b.transformRequest);A(d)&&r(c,function(a,b){"content-type"===K(b)&&delete c[b]});A(b.withCredentials)&&!A(a.withCredentials)&&
(b.withCredentials=a.withCredentials);return s(b,d).then(f,f)});b=c(b,k);return b=b.finally(function(){e.$$completeOutstandingRequest(E,"$http")})}function s(c,d){function e(a){if(a){var c={};r(a,function(a,d){c[d]=function(c){function d(){a(c)}b?h.$applyAsync(d):h.$$phase?d():h.$apply(d)}});return c}}function k(a,c,d,e,f){function g(){m(c,a,d,e,f)}R&&(200<=a&&300>a?R.put(O,[a,c,zd(d),e,f]):R.remove(O));b?h.$applyAsync(g):(g(),h.$$phase||h.$apply())}function m(a,b,d,e,f){b=-1<=b?b:0;(200<=b&&300>
b?L.resolve:L.reject)({data:a,status:b,headers:Ad(d),config:c,statusText:e,xhrStatus:f})}function s(a){m(a.data,a.status,ja(a.headers()),a.statusText,a.xhrStatus)}function v(){var a=n.pendingRequests.indexOf(c);-1!==a&&n.pendingRequests.splice(a,1)}var L=l.defer(),u=L.promise,R,q,ma=c.headers,x="jsonp"===K(c.method),O=c.url;x?O=p.getTrustedResourceUrl(O):C(O)||(O=p.valueOf(O));O=G(O,c.paramSerializer(c.params));x&&(O=t(O,c.jsonpCallbackParam));n.pendingRequests.push(c);u.then(v,v);!c.cache&&!a.cache||
!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(R=D(c.cache)?c.cache:D(a.cache)?a.cache:N);R&&(q=R.get(O),w(q)?q&&B(q.then)?q.then(s,s):H(q)?m(q[1],q[0],ja(q[2]),q[3],q[4]):m(q,200,{},"OK","complete"):R.put(O,u));A(q)&&((q=kc(c.url)?g()[c.xsrfCookieName||a.xsrfCookieName]:void 0)&&(ma[c.xsrfHeaderName||a.xsrfHeaderName]=q),f(c.method,O,d,k,ma,c.timeout,c.withCredentials,c.responseType,e(c.eventHandlers),e(c.uploadEventHandlers)));return u}function G(a,b){0<b.length&&(a+=(-1===a.indexOf("?")?
"?":"&")+b);return a}function t(a,b){var c=a.split("?");if(2<c.length)throw Lb("badjsonp",a);c=hc(c[1]);r(c,function(c,d){if("JSON_CALLBACK"===c)throw Lb("badjsonp",a);if(d===b)throw Lb("badjsonp",b,a);});return a+=(-1===a.indexOf("?")?"?":"&")+b+"=JSON_CALLBACK"}var N=k("$http");a.paramSerializer=C(a.paramSerializer)?m.get(a.paramSerializer):a.paramSerializer;var v=[];r(d,function(a){v.unshift(C(a)?m.get(a):m.invoke(a))});var kc=Og(c);n.pendingRequests=[];(function(a){r(arguments,function(a){n[a]=
function(b,c){return n(S({},c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){r(arguments,function(a){n[a]=function(b,c,d){return n(S({},d||{},{method:a,url:b,data:c}))}})})("post","put","patch");n.defaults=a;return n}]}function Wf(){this.$get=function(){return function(){return new z.XMLHttpRequest}}}function Vf(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(a,b,d,c){return Pg(a,c,a.defer,b,d[0])}]}function Pg(a,b,d,c,e){function f(a,b,d){a=a.replace("JSON_CALLBACK",
b);var f=e.createElement("script"),m=null;f.type="text/javascript";f.src=a;f.async=!0;m=function(a){f.removeEventListener("load",m);f.removeEventListener("error",m);e.body.removeChild(f);f=null;var g=-1,s="unknown";a&&("load"!==a.type||c.wasCalled(b)||(a={type:"error"}),s=a.type,g="error"===a.type?404:200);d&&d(g,s)};f.addEventListener("load",m);f.addEventListener("error",m);e.body.appendChild(f);return m}return function(e,k,h,l,m,p,n,s,G,t){function N(a){J="timeout"===a;pa&&pa();y&&y.abort()}function v(a,
b,c,e,f,g){w(P)&&d.cancel(P);pa=y=null;a(b,c,e,f,g)}k=k||a.url();if("jsonp"===K(e))var q=c.createCallback(k),pa=f(k,q,function(a,b){var d=200===a&&c.getResponse(q);v(l,a,d,"",b,"complete");c.removeCallback(q)});else{var y=b(e,k),J=!1;y.open(e,k,!0);r(m,function(a,b){w(a)&&y.setRequestHeader(b,a)});y.onload=function(){var a=y.statusText||"",b="response"in y?y.response:y.responseText,c=1223===y.status?204:y.status;0===c&&(c=b?200:"file"===ga(k).protocol?404:0);v(l,c,b,y.getAllResponseHeaders(),a,"complete")};
y.onerror=function(){v(l,-1,null,null,"","error")};y.ontimeout=function(){v(l,-1,null,null,"","timeout")};y.onabort=function(){v(l,-1,null,null,"",J?"timeout":"abort")};r(G,function(a,b){y.addEventListener(b,a)});r(t,function(a,b){y.upload.addEventListener(b,a)});n&&(y.withCredentials=!0);if(s)try{y.responseType=s}catch(I){if("json"!==s)throw I;}y.send(A(h)?null:h)}if(0<p)var P=d(function(){N("timeout")},p);else p&&B(p.then)&&p.then(function(){N(w(p.$$timeoutId)?"timeout":"abort")})}}function Pf(){var a=
"{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a};this.endSymbol=function(a){return a?(b=a,this):b};this.$get=["$parse","$exceptionHandler","$sce",function(d,c,e){function f(a){return"\\\\\\"+a}function g(c){return c.replace(p,a).replace(n,b)}function k(a,b,c,d){var e=a.$watch(function(a){e();return d(a)},b,c);return e}function h(f,h,n,p){function v(a){try{return a=n&&!r?e.getTrusted(n,a):e.valueOf(a),p&&!w(a)?a:jc(a)}catch(b){c(Ma.interr(f,b))}}var r=n===e.URL||n===e.MEDIA_URL;if(!f.length||
-1===f.indexOf(a)){if(h)return;h=g(f);r&&(h=e.getTrusted(n,h));h=ia(h);h.exp=f;h.expressions=[];h.$$watchDelegate=k;return h}p=!!p;for(var q,y,J=0,I=[],P,Q=f.length,M=[],L=[],u;J<Q;)if(-1!==(q=f.indexOf(a,J))&&-1!==(y=f.indexOf(b,q+l)))J!==q&&M.push(g(f.substring(J,q))),J=f.substring(q+l,y),I.push(J),J=y+m,L.push(M.length),M.push("");else{J!==Q&&M.push(g(f.substring(J)));break}u=1===M.length&&1===L.length;var R=r&&u?void 0:v;P=I.map(function(a){return d(a,R)});if(!h||I.length){var x=function(a){for(var b=
0,c=I.length;b<c;b++){if(p&&A(a[b]))return;M[L[b]]=a[b]}if(r)return e.getTrusted(n,u?M[0]:M.join(""));n&&1<M.length&&Ma.throwNoconcat(f);return M.join("")};return S(function(a){var b=0,d=I.length,e=Array(d);try{for(;b<d;b++)e[b]=P[b](a);return x(e)}catch(g){c(Ma.interr(f,g))}},{exp:f,expressions:I,$$watchDelegate:function(a,b){var c;return a.$watchGroup(P,function(d,e){var f=x(d);b.call(this,f,d!==e?c:f,a);c=f})}})}}var l=a.length,m=b.length,p=new RegExp(a.replace(/./g,f),"g"),n=new RegExp(b.replace(/./g,
f),"g");h.startSymbol=function(){return a};h.endSymbol=function(){return b};return h}]}function Qf(){this.$get=["$$intervalFactory","$window",function(a,b){var d={},c=function(a){b.clearInterval(a);delete d[a]},e=a(function(a,c,e){a=b.setInterval(a,c);d[a]=e;return a},c);e.cancel=function(a){if(!a)return!1;if(!a.hasOwnProperty("$$intervalId"))throw Qg("badprom");if(!d.hasOwnProperty(a.$$intervalId))return!1;a=a.$$intervalId;var b=d[a],e=b.promise;e.$$state&&(e.$$state.pur=!0);b.reject("canceled");
c(a);return!0};return e}]}function Rf(){this.$get=["$browser","$q","$$q","$rootScope",function(a,b,d,c){return function(e,f){return function(g,k,h,l){function m(){p?g.apply(null,n):g(s)}var p=4<arguments.length,n=p?Ha.call(arguments,4):[],s=0,G=w(l)&&!l,t=(G?d:b).defer(),r=t.promise;h=w(h)?h:0;r.$$intervalId=e(function(){G?a.defer(m):c.$evalAsync(m);t.notify(s++);0<h&&s>=h&&(t.resolve(s),f(r.$$intervalId));G||c.$apply()},k,t,G);return r}}}]}function Cd(a,b){var d=ga(a);b.$$protocol=d.protocol;b.$$host=
d.hostname;b.$$port=fa(d.port)||Rg[d.protocol]||null}function Dd(a,b,d){if(Sg.test(a))throw kb("badpath",a);var c="/"!==a.charAt(0);c&&(a="/"+a);a=ga(a);for(var c=(c&&"/"===a.pathname.charAt(0)?a.pathname.substring(1):a.pathname).split("/"),e=c.length;e--;)c[e]=decodeURIComponent(c[e]),d&&(c[e]=c[e].replace(/\//g,"%2F"));d=c.join("/");b.$$path=d;b.$$search=hc(a.search);b.$$hash=decodeURIComponent(a.hash);b.$$path&&"/"!==b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function yc(a,b){return a.slice(0,
b.length)===b}function ya(a,b){if(yc(b,a))return b.substr(a.length)}function Da(a){var b=a.indexOf("#");return-1===b?a:a.substr(0,b)}function zc(a,b,d){this.$$html5=!0;d=d||"";Cd(a,this);this.$$parse=function(a){var d=ya(b,a);if(!C(d))throw kb("ipthprfx",a,b);Dd(d,this,!0);this.$$path||(this.$$path="/");this.$$compose()};this.$$normalizeUrl=function(a){return b+a.substr(1)};this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;w(f=ya(a,c))?(g=f,g=d&&w(f=ya(d,f))?
b+(ya("/",f)||f):a+g):w(f=ya(b,c))?g=b+f:b===c+"/"&&(g=b);g&&this.$$parse(g);return!!g}}function Ac(a,b,d){Cd(a,this);this.$$parse=function(c){var e=ya(a,c)||ya(b,c),f;A(e)||"#"!==e.charAt(0)?this.$$html5?f=e:(f="",A(e)&&(a=c,this.replace())):(f=ya(d,e),A(f)&&(f=e));Dd(f,this,!1);c=this.$$path;var e=a,g=/^\/[A-Z]:(\/.*)/;yc(f,e)&&(f=f.replace(e,""));g.exec(f)||(c=(f=g.exec(c))?f[1]:c);this.$$path=c;this.$$compose()};this.$$normalizeUrl=function(b){return a+(b?d+b:"")};this.$$parseLinkUrl=function(b,
d){return Da(a)===Da(b)?(this.$$parse(b),!0):!1}}function Ed(a,b,d){this.$$html5=!0;Ac.apply(this,arguments);this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;a===Da(c)?f=c:(g=ya(b,c))?f=a+d+g:b===c+"/"&&(f=b);f&&this.$$parse(f);return!!f};this.$$normalizeUrl=function(b){return a+d+b}}function Mb(a){return function(){return this[a]}}function Fd(a,b){return function(d){if(A(d))return this[a];this[a]=b(d);this.$$compose();return this}}function Yf(){var a="!",
b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(b){return w(b)?(a=b,this):a};this.html5Mode=function(a){if(Ga(a))return b.enabled=a,this;if(D(a)){Ga(a.enabled)&&(b.enabled=a.enabled);Ga(a.requireBase)&&(b.requireBase=a.requireBase);if(Ga(a.rewriteLinks)||C(a.rewriteLinks))b.rewriteLinks=a.rewriteLinks;return this}return b};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(d,c,e,f,g){function k(a,b){return a===b||ga(a).href===ga(b).href}function h(a,
b,d){var e=m.url(),f=m.$$state;try{c.url(a,b,d),m.$$state=c.state()}catch(g){throw m.url(e),m.$$state=f,g;}}function l(a,b){d.$broadcast("$locationChangeSuccess",m.absUrl(),a,m.$$state,b)}var m,p;p=c.baseHref();var n=c.url(),s;if(b.enabled){if(!p&&b.requireBase)throw kb("nobase");s=n.substring(0,n.indexOf("/",n.indexOf("//")+2))+(p||"/");p=e.history?zc:Ed}else s=Da(n),p=Ac;var r=s.substr(0,Da(s).lastIndexOf("/")+1);m=new p(s,r,"#"+a);m.$$parseLinkUrl(n,n);m.$$state=c.state();var t=/^\s*(javascript|mailto):/i;
f.on("click",function(a){var e=b.rewriteLinks;if(e&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&2!==a.which&&2!==a.button){for(var g=x(a.target);"a"!==ua(g[0]);)if(g[0]===f[0]||!(g=g.parent())[0])return;if(!C(e)||!A(g.attr(e))){var e=g.prop("href"),h=g.attr("href")||g.attr("xlink:href");D(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=ga(e.animVal).href);t.test(e)||!e||g.attr("target")||a.isDefaultPrevented()||!m.$$parseLinkUrl(e,h)||(a.preventDefault(),m.absUrl()!==c.url()&&d.$apply())}}});m.absUrl()!==
n&&c.url(m.absUrl(),!0);var N=!0;c.onUrlChange(function(a,b){yc(a,r)?(d.$evalAsync(function(){var c=m.absUrl(),e=m.$$state,f;m.$$parse(a);m.$$state=b;f=d.$broadcast("$locationChangeStart",a,c,b,e).defaultPrevented;m.absUrl()===a&&(f?(m.$$parse(c),m.$$state=e,h(c,!1,e)):(N=!1,l(c,e)))}),d.$$phase||d.$digest()):g.location.href=a});d.$watch(function(){if(N||m.$$urlUpdatedByLocation){m.$$urlUpdatedByLocation=!1;var a=c.url(),b=m.absUrl(),f=c.state(),g=m.$$replace,n=!k(a,b)||m.$$html5&&e.history&&f!==
m.$$state;if(N||n)N=!1,d.$evalAsync(function(){var b=m.absUrl(),c=d.$broadcast("$locationChangeStart",b,a,m.$$state,f).defaultPrevented;m.absUrl()===b&&(c?(m.$$parse(a),m.$$state=f):(n&&h(b,g,f===m.$$state?null:m.$$state),l(a,f)))})}m.$$replace=!1});return m}]}function Zf(){var a=!0,b=this;this.debugEnabled=function(b){return w(b)?(a=b,this):a};this.$get=["$window",function(d){function c(a){dc(a)&&(a.stack&&f?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&
(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=d.console||{},e=b[a]||b.log||E;return function(){var a=[];r(arguments,function(b){a.push(c(b))});return Function.prototype.apply.call(e,b,a)}}var f=wa||/\bEdge\//.test(d.navigator&&d.navigator.userAgent);return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function Tg(a){return a+""}function Ug(a,b){return"undefined"!==typeof a?a:
b}function Gd(a,b){return"undefined"===typeof a?b:"undefined"===typeof b?a:a+b}function Vg(a,b){switch(a.type){case q.MemberExpression:if(a.computed)return!1;break;case q.UnaryExpression:return 1;case q.BinaryExpression:return"+"!==a.operator?1:!1;case q.CallExpression:return!1}return void 0===b?Hd:b}function Z(a,b,d){var c,e,f=a.isPure=Vg(a,d);switch(a.type){case q.Program:c=!0;r(a.body,function(a){Z(a.expression,b,f);c=c&&a.expression.constant});a.constant=c;break;case q.Literal:a.constant=!0;a.toWatch=
[];break;case q.UnaryExpression:Z(a.argument,b,f);a.constant=a.argument.constant;a.toWatch=a.argument.toWatch;break;case q.BinaryExpression:Z(a.left,b,f);Z(a.right,b,f);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case q.LogicalExpression:Z(a.left,b,f);Z(a.right,b,f);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.constant?[]:[a];break;case q.ConditionalExpression:Z(a.test,b,f);Z(a.alternate,b,f);Z(a.consequent,b,f);a.constant=a.test.constant&&
a.alternate.constant&&a.consequent.constant;a.toWatch=a.constant?[]:[a];break;case q.Identifier:a.constant=!1;a.toWatch=[a];break;case q.MemberExpression:Z(a.object,b,f);a.computed&&Z(a.property,b,f);a.constant=a.object.constant&&(!a.computed||a.property.constant);a.toWatch=a.constant?[]:[a];break;case q.CallExpression:c=d=a.filter?!b(a.callee.name).$stateful:!1;e=[];r(a.arguments,function(a){Z(a,b,f);c=c&&a.constant;e.push.apply(e,a.toWatch)});a.constant=c;a.toWatch=d?e:[a];break;case q.AssignmentExpression:Z(a.left,
b,f);Z(a.right,b,f);a.constant=a.left.constant&&a.right.constant;a.toWatch=[a];break;case q.ArrayExpression:c=!0;e=[];r(a.elements,function(a){Z(a,b,f);c=c&&a.constant;e.push.apply(e,a.toWatch)});a.constant=c;a.toWatch=e;break;case q.ObjectExpression:c=!0;e=[];r(a.properties,function(a){Z(a.value,b,f);c=c&&a.value.constant;e.push.apply(e,a.value.toWatch);a.computed&&(Z(a.key,b,!1),c=c&&a.key.constant,e.push.apply(e,a.key.toWatch))});a.constant=c;a.toWatch=e;break;case q.ThisExpression:a.constant=
!1;a.toWatch=[];break;case q.LocalsExpression:a.constant=!1,a.toWatch=[]}}function Id(a){if(1===a.length){a=a[0].expression;var b=a.toWatch;return 1!==b.length?b:b[0]!==a?b:void 0}}function Jd(a){return a.type===q.Identifier||a.type===q.MemberExpression}function Kd(a){if(1===a.body.length&&Jd(a.body[0].expression))return{type:q.AssignmentExpression,left:a.body[0].expression,right:{type:q.NGValueParameter},operator:"="}}function Ld(a){this.$filter=a}function Md(a){this.$filter=a}function Nb(a,b,d){this.ast=
new q(a,d);this.astCompiler=d.csp?new Md(b):new Ld(b)}function Bc(a){return B(a.valueOf)?a.valueOf():Wg.call(a)}function $f(){var a=T(),b={"true":!0,"false":!1,"null":null,undefined:void 0},d,c;this.addLiteral=function(a,c){b[a]=c};this.setIdentifierFns=function(a,b){d=a;c=b;return this};this.$get=["$filter",function(e){function f(b,c){var d,f;switch(typeof b){case "string":return f=b=b.trim(),d=a[f],d||(d=new Ob(G),d=(new Nb(d,e,G)).parse(b),a[f]=p(d)),s(d,c);case "function":return s(b,c);default:return s(E,
c)}}function g(a,b,c){return null==a||null==b?a===b:"object"!==typeof a||(a=Bc(a),"object"!==typeof a||c)?a===b||a!==a&&b!==b:!1}function k(a,b,c,d,e){var f=d.inputs,h;if(1===f.length){var k=g,f=f[0];return a.$watch(function(a){var b=f(a);g(b,k,f.isPure)||(h=d(a,void 0,void 0,[b]),k=b&&Bc(b));return h},b,c,e)}for(var l=[],m=[],n=0,p=f.length;n<p;n++)l[n]=g,m[n]=null;return a.$watch(function(a){for(var b=!1,c=0,e=f.length;c<e;c++){var k=f[c](a);if(b||(b=!g(k,l[c],f[c].isPure)))m[c]=k,l[c]=k&&Bc(k)}b&&
(h=d(a,void 0,void 0,m));return h},b,c,e)}function h(a,b,c,d,e){function f(){h(m)&&k()}function g(a,b,c,d){m=u&&d?d[0]:n(a,b,c,d);h(m)&&a.$$postDigest(f);return s(m)}var h=d.literal?l:w,k,m,n=d.$$intercepted||d,s=d.$$interceptor||Ta,u=d.inputs&&!n.inputs;g.literal=d.literal;g.constant=d.constant;g.inputs=d.inputs;p(g);return k=a.$watch(g,b,c,e)}function l(a){var b=!0;r(a,function(a){w(a)||(b=!1)});return b}function m(a,b,c,d){var e=a.$watch(function(a){e();return d(a)},b,c);return e}function p(a){a.constant?
a.$$watchDelegate=m:a.oneTime?a.$$watchDelegate=h:a.inputs&&(a.$$watchDelegate=k);return a}function n(a,b){function c(d){return b(a(d))}c.$stateful=a.$stateful||b.$stateful;c.$$pure=a.$$pure&&b.$$pure;return c}function s(a,b){if(!b)return a;a.$$interceptor&&(b=n(a.$$interceptor,b),a=a.$$intercepted);var c=!1,d=function(d,e,f,g){d=c&&g?g[0]:a(d,e,f,g);return b(d)};d.$$intercepted=a;d.$$interceptor=b;d.literal=a.literal;d.oneTime=a.oneTime;d.constant=a.constant;b.$stateful||(c=!a.inputs,d.inputs=a.inputs?
a.inputs:[a],b.$$pure||(d.inputs=d.inputs.map(function(a){return a.isPure===Hd?function(b){return a(b)}:a})));return p(d)}var G={csp:Ba().noUnsafeEval,literals:Ia(b),isIdentifierStart:B(d)&&d,isIdentifierContinue:B(c)&&c};f.$$getAst=function(a){var b=new Ob(G);return(new Nb(b,e,G)).getAst(a).ast};return f}]}function bg(){var a=!0;this.$get=["$rootScope","$exceptionHandler",function(b,d){return Nd(function(a){b.$evalAsync(a)},d,a)}];this.errorOnUnhandledRejections=function(b){return w(b)?(a=b,this):
a}}function cg(){var a=!0;this.$get=["$browser","$exceptionHandler",function(b,d){return Nd(function(a){b.defer(a)},d,a)}];this.errorOnUnhandledRejections=function(b){return w(b)?(a=b,this):a}}function Nd(a,b,d){function c(){return new e}function e(){var a=this.promise=new f;this.resolve=function(b){h(a,b)};this.reject=function(b){m(a,b)};this.notify=function(b){n(a,b)}}function f(){this.$$state={status:0}}function g(){for(;!w&&x.length;){var a=x.shift();if(!a.pur){a.pur=!0;var c=a.value,c="Possibly unhandled rejection: "+
("function"===typeof c?c.toString().replace(/ \{[\s\S]*$/,""):A(c)?"undefined":"string"!==typeof c?Ne(c,void 0):c);dc(a.value)?b(a.value,c):b(c)}}}function k(c){!d||c.pending||2!==c.status||c.pur||(0===w&&0===x.length&&a(g),x.push(c));!c.processScheduled&&c.pending&&(c.processScheduled=!0,++w,a(function(){var e,f,k;k=c.pending;c.processScheduled=!1;c.pending=void 0;try{for(var l=0,n=k.length;l<n;++l){c.pur=!0;f=k[l][0];e=k[l][c.status];try{B(e)?h(f,e(c.value)):1===c.status?h(f,c.value):m(f,c.value)}catch(p){m(f,
p),p&&!0===p.$$passToExceptionHandler&&b(p)}}}finally{--w,d&&0===w&&a(g)}}))}function h(a,b){a.$$state.status||(b===a?p(a,v("qcycle",b)):l(a,b))}function l(a,b){function c(b){g||(g=!0,l(a,b))}function d(b){g||(g=!0,p(a,b))}function e(b){n(a,b)}var f,g=!1;try{if(D(b)||B(b))f=b.then;B(f)?(a.$$state.status=-1,f.call(b,c,d,e)):(a.$$state.value=b,a.$$state.status=1,k(a.$$state))}catch(h){d(h)}}function m(a,b){a.$$state.status||p(a,b)}function p(a,b){a.$$state.value=b;a.$$state.status=2;k(a.$$state)}function n(c,
d){var e=c.$$state.pending;0>=c.$$state.status&&e&&e.length&&a(function(){for(var a,c,f=0,g=e.length;f<g;f++){c=e[f][0];a=e[f][3];try{n(c,B(a)?a(d):d)}catch(h){b(h)}}})}function s(a){var b=new f;m(b,a);return b}function G(a,b,c){var d=null;try{B(c)&&(d=c())}catch(e){return s(e)}return d&&B(d.then)?d.then(function(){return b(a)},s):b(a)}function t(a,b,c,d){var e=new f;h(e,a);return e.then(b,c,d)}function q(a){if(!B(a))throw v("norslvr",a);var b=new f;a(function(a){h(b,a)},function(a){m(b,a)});return b}
var v=F("$q",TypeError),w=0,x=[];S(f.prototype,{then:function(a,b,c){if(A(a)&&A(b)&&A(c))return this;var d=new f;this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([d,a,b,c]);0<this.$$state.status&&k(this.$$state);return d},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return G(b,y,a)},function(b){return G(b,s,a)},b)}});var y=t;q.prototype=f.prototype;q.defer=c;q.reject=s;q.when=t;q.resolve=y;q.all=function(a){var b=new f,c=
0,d=H(a)?[]:{};r(a,function(a,e){c++;t(a).then(function(a){d[e]=a;--c||h(b,d)},function(a){m(b,a)})});0===c&&h(b,d);return b};q.race=function(a){var b=c();r(a,function(a){t(a).then(b.resolve,b.reject)});return b.promise};return q}function mg(){this.$get=["$window","$timeout",function(a,b){var d=a.requestAnimationFrame||a.webkitRequestAnimationFrame,c=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,e=!!d,f=e?function(a){var b=d(a);return function(){c(b)}}:
function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};f.supported=e;return f}]}function ag(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++qb;this.$$ChildScope=null;this.$$suspended=!1}b.prototype=a;return b}var b=10,d=F("$rootScope"),c=null,e=null;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$exceptionHandler","$parse","$browser",
function(f,g,k){function h(a){a.currentScope.$$destroyed=!0}function l(a){9===wa&&(a.$$childHead&&l(a.$$childHead),a.$$nextSibling&&l(a.$$nextSibling));a.$parent=a.$$nextSibling=a.$$prevSibling=a.$$childHead=a.$$childTail=a.$root=a.$$watchers=null}function m(){this.$id=++qb;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$suspended=this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=
0;this.$$isolateBindings=null}function p(a){if(v.$$phase)throw d("inprog",v.$$phase);v.$$phase=a}function n(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function s(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function G(){}function t(){for(;y.length;)try{y.shift()()}catch(a){f(a)}e=null}function q(){null===e&&(e=k.defer(function(){v.$apply(t)},null,"$applyAsync"))}m.prototype={constructor:m,$new:function(b,c){var d;c=c||this;b?(d=new m,
d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=a(this)),d=new this.$$ChildScope);d.$parent=c;d.$$prevSibling=c.$$childTail;c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d;(b||c!==this)&&d.$on("$destroy",h);return d},$watch:function(a,b,d,e){var f=g(a);b=B(b)?b:E;if(f.$$watchDelegate)return f.$$watchDelegate(this,b,d,f,a);var h=this,k=h.$$watchers,l={fn:b,last:G,get:f,exp:e||a,eq:!!d};c=null;k||(k=h.$$watchers=[],k.$$digestWatchIndex=-1);k.unshift(l);
k.$$digestWatchIndex++;n(this,1);return function(){var a=cb(k,l);0<=a&&(n(h,-1),a<k.$$digestWatchIndex&&k.$$digestWatchIndex--);c=null}},$watchGroup:function(a,b){function c(){h=!1;try{k?(k=!1,b(e,e,g)):b(e,d,g)}finally{for(var f=0;f<a.length;f++)d[f]=e[f]}}var d=Array(a.length),e=Array(a.length),f=[],g=this,h=!1,k=!0;if(!a.length){var l=!0;g.$evalAsync(function(){l&&b(e,e,g)});return function(){l=!1}}if(1===a.length)return this.$watch(a[0],function(a,c,f){e[0]=a;d[0]=c;b(e,a===c?e:d,f)});r(a,function(a,
b){var d=g.$watch(a,function(a){e[b]=a;h||(h=!0,g.$evalAsync(c))});f.push(d)});return function(){for(;f.length;)f.shift()()}},$watchCollection:function(a,b){function c(a){e=a;var b,d,g,h;if(!A(e)){if(D(e))if(za(e))for(f!==n&&(f=n,t=f.length=0,l++),a=e.length,t!==a&&(l++,f.length=t=a),b=0;b<a;b++)h=f[b],g=e[b],d=h!==h&&g!==g,d||h===g||(l++,f[b]=g);else{f!==p&&(f=p={},t=0,l++);a=0;for(b in e)ta.call(e,b)&&(a++,g=e[b],h=f[b],b in f?(d=h!==h&&g!==g,d||h===g||(l++,f[b]=g)):(t++,f[b]=g,l++));if(t>a)for(b in l++,
f)ta.call(e,b)||(t--,delete f[b])}else f!==e&&(f=e,l++);return l}}c.$$pure=g(a).literal;c.$stateful=!c.$$pure;var d=this,e,f,h,k=1<b.length,l=0,m=g(a,c),n=[],p={},s=!0,t=0;return this.$watch(m,function(){s?(s=!1,b(e,e,d)):b(e,h,d);if(k)if(D(e))if(za(e)){h=Array(e.length);for(var a=0;a<e.length;a++)h[a]=e[a]}else for(a in h={},e)ta.call(e,a)&&(h[a]=e[a]);else h=e})},$digest:function(){var a,g,h,l,m,n,s,r=b,q,y=w.length?v:this,N=[],A,z;p("$digest");k.$$checkUrlChange();this===v&&null!==e&&(k.defer.cancel(e),
t());c=null;do{s=!1;q=y;for(n=0;n<w.length;n++){try{z=w[n],l=z.fn,l(z.scope,z.locals)}catch(C){f(C)}c=null}w.length=0;a:do{if(n=!q.$$suspended&&q.$$watchers)for(n.$$digestWatchIndex=n.length;n.$$digestWatchIndex--;)try{if(a=n[n.$$digestWatchIndex])if(m=a.get,(g=m(q))!==(h=a.last)&&!(a.eq?va(g,h):Y(g)&&Y(h)))s=!0,c=a,a.last=a.eq?Ia(g,null):g,l=a.fn,l(g,h===G?g:h,q),5>r&&(A=4-r,N[A]||(N[A]=[]),N[A].push({msg:B(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,newVal:g,oldVal:h}));else if(a===c){s=
!1;break a}}catch(E){f(E)}if(!(n=!q.$$suspended&&q.$$watchersCount&&q.$$childHead||q!==y&&q.$$nextSibling))for(;q!==y&&!(n=q.$$nextSibling);)q=q.$parent}while(q=n);if((s||w.length)&&!r--)throw v.$$phase=null,d("infdig",b,N);}while(s||w.length);for(v.$$phase=null;J<x.length;)try{x[J++]()}catch(D){f(D)}x.length=J=0;k.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var a=
this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===v&&k.$$applicationDestroyed();n(this,-this.$$watchersCount);for(var b in this.$$listenerCount)s(this,this.$$listenerCount[b],b);a&&a.$$childHead===this&&(a.$$childHead=this.$$nextSibling);a&&a.$$childTail===this&&(a.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=
this.$evalAsync=this.$applyAsync=E;this.$on=this.$watch=this.$watchGroup=function(){return E};this.$$listeners={};this.$$nextSibling=null;l(this)}},$eval:function(a,b){return g(a)(this,b)},$evalAsync:function(a,b){v.$$phase||w.length||k.defer(function(){w.length&&v.$digest()},null,"$evalAsync");w.push({scope:this,fn:g(a),locals:b})},$$postDigest:function(a){x.push(a)},$apply:function(a){try{p("$apply");try{return this.$eval(a)}finally{v.$$phase=null}}catch(b){f(b)}finally{try{v.$digest()}catch(c){throw f(c),
c;}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&y.push(b);a=g(a);q()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&(delete c[d],s(e,1,a))}},$emit:function(a,b){var c=[],d,e=this,g=!1,h={name:a,targetScope:e,stopPropagation:function(){g=!0},preventDefault:function(){h.defaultPrevented=
!0},defaultPrevented:!1},k=db([h],arguments,1),l,m;do{d=e.$$listeners[a]||c;h.currentScope=e;l=0;for(m=d.length;l<m;l++)if(d[l])try{d[l].apply(null,k)}catch(n){f(n)}else d.splice(l,1),l--,m--;if(g)break;e=e.$parent}while(e);h.currentScope=null;return h},$broadcast:function(a,b){var c=this,d=this,e={name:a,targetScope:this,preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[a])return e;for(var g=db([e],arguments,1),h,k;c=d;){e.currentScope=c;d=c.$$listeners[a]||
[];h=0;for(k=d.length;h<k;h++)if(d[h])try{d[h].apply(null,g)}catch(l){f(l)}else d.splice(h,1),h--,k--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}e.currentScope=null;return e}};var v=new m,w=v.$$asyncQueue=[],x=v.$$postDigestQueue=[],y=v.$$applyAsyncQueue=[],J=0;return v}]}function Qe(){var a=/^\s*(https?|s?ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(b){return w(b)?
(a=b,this):a};this.imgSrcSanitizationTrustedUrlList=function(a){return w(a)?(b=a,this):b};this.$get=function(){return function(d,c){var e=c?b:a,f=ga(d&&d.trim()).href;return""===f||f.match(e)?d:"unsafe:"+f}}}function Xg(a){if("self"===a)return a;if(C(a)){if(-1<a.indexOf("***"))throw Ea("iwcard",a);a=Od(a).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*");return new RegExp("^"+a+"$")}if(ab(a))return new RegExp("^"+a.source+"$");throw Ea("imatcher");}function Pd(a){var b=[];w(a)&&r(a,function(a){b.push(Xg(a))});
return b}function eg(){this.SCE_CONTEXTS=W;var a=["self"],b=[];this.trustedResourceUrlList=function(b){arguments.length&&(a=Pd(b));return a};Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(a){this.trustedResourceUrlList=a}});this.bannedResourceUrlList=function(a){arguments.length&&(b=Pd(a));return b};Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(a){this.bannedResourceUrlList=
a}});this.$get=["$injector","$$sanitizeUri",function(d,c){function e(a,b){var c;"self"===a?(c=Cc(b,Qd))||(z.document.baseURI?c=z.document.baseURI:(Na||(Na=z.document.createElement("a"),Na.href=".",Na=Na.cloneNode(!1)),c=Na.href),c=Cc(b,c)):c=!!a.exec(b.href);return c}function f(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};
return b}var g=function(a){throw Ea("unsafe");};d.has("$sanitize")&&(g=d.get("$sanitize"));var k=f(),h={};h[W.HTML]=f(k);h[W.CSS]=f(k);h[W.MEDIA_URL]=f(k);h[W.URL]=f(h[W.MEDIA_URL]);h[W.JS]=f(k);h[W.RESOURCE_URL]=f(h[W.URL]);return{trustAs:function(a,b){var c=h.hasOwnProperty(a)?h[a]:null;if(!c)throw Ea("icontext",a,b);if(null===b||A(b)||""===b)return b;if("string"!==typeof b)throw Ea("itype",a);return new c(b)},getTrusted:function(d,f){if(null===f||A(f)||""===f)return f;var k=h.hasOwnProperty(d)?
h[d]:null;if(k&&f instanceof k)return f.$$unwrapTrustedValue();B(f.$$unwrapTrustedValue)&&(f=f.$$unwrapTrustedValue());if(d===W.MEDIA_URL||d===W.URL)return c(f.toString(),d===W.MEDIA_URL);if(d===W.RESOURCE_URL){var k=ga(f.toString()),n,s,r=!1;n=0;for(s=a.length;n<s;n++)if(e(a[n],k)){r=!0;break}if(r)for(n=0,s=b.length;n<s;n++)if(e(b[n],k)){r=!1;break}if(r)return f;throw Ea("insecurl",f.toString());}if(d===W.HTML)return g(f);throw Ea("unsafe");},valueOf:function(a){return a instanceof k?a.$$unwrapTrustedValue():
a}}}]}function dg(){var a=!0;this.enabled=function(b){arguments.length&&(a=!!b);return a};this.$get=["$parse","$sceDelegate",function(b,d){if(a&&8>wa)throw Ea("iequirks");var c=ja(W);c.isEnabled=function(){return a};c.trustAs=d.trustAs;c.getTrusted=d.getTrusted;c.valueOf=d.valueOf;a||(c.trustAs=c.getTrusted=function(a,b){return b},c.valueOf=Ta);c.parseAs=function(a,d){var e=b(d);return e.literal&&e.constant?e:b(d,function(b){return c.getTrusted(a,b)})};var e=c.parseAs,f=c.getTrusted,g=c.trustAs;r(W,
function(a,b){var d=K(b);c[("parse_as_"+d).replace(Dc,xb)]=function(b){return e(a,b)};c[("get_trusted_"+d).replace(Dc,xb)]=function(b){return f(a,b)};c[("trust_as_"+d).replace(Dc,xb)]=function(b){return g(a,b)}});return c}]}function fg(){this.$get=["$window","$document",function(a,b){var d={},c=!((!a.nw||!a.nw.process)&&a.chrome&&(a.chrome.app&&a.chrome.app.runtime||!a.chrome.app&&a.chrome.runtime&&a.chrome.runtime.id))&&a.history&&a.history.pushState,e=fa((/android (\d+)/.exec(K((a.navigator||{}).userAgent))||
[])[1]),f=/Boxee/i.test((a.navigator||{}).userAgent),g=b[0]||{},k=g.body&&g.body.style,h=!1,l=!1;k&&(h=!!("transition"in k||"webkitTransition"in k),l=!!("animation"in k||"webkitAnimation"in k));return{history:!(!c||4>e||f),hasEvent:function(a){if("input"===a&&wa)return!1;if(A(d[a])){var b=g.createElement("div");d[a]="on"+a in b}return d[a]},csp:Ba(),transitions:h,animations:l,android:e}}]}function gg(){this.$get=ia(function(a){return new Yg(a)})}function Yg(a){function b(){var a=e.pop();return a&&
a.cb}function d(a){for(var b=e.length-1;0<=b;--b){var c=e[b];if(c.type===a)return e.splice(b,1),c.cb}}var c={},e=[],f=this.ALL_TASKS_TYPE="$$all$$",g=this.DEFAULT_TASK_TYPE="$$default$$";this.completeTask=function(e,h){h=h||g;try{e()}finally{var l;l=h||g;c[l]&&(c[l]--,c[f]--);l=c[h];var m=c[f];if(!m||!l)for(l=m?d:b;m=l(h);)try{m()}catch(p){a.error(p)}}};this.incTaskCount=function(a){a=a||g;c[a]=(c[a]||0)+1;c[f]=(c[f]||0)+1};this.notifyWhenNoPendingTasks=function(a,b){b=b||f;c[b]?e.push({type:b,cb:a}):
a()}}function ig(){var a;this.httpOptions=function(b){return b?(a=b,this):a};this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(b,d,c,e,f){function g(k,h){g.totalPendingRequests++;if(!C(k)||A(d.get(k)))k=f.getTrustedResourceUrl(k);var l=c.defaults&&c.defaults.transformResponse;H(l)?l=l.filter(function(a){return a!==wc}):l===wc&&(l=null);return c.get(k,S({cache:d,transformResponse:l},a)).finally(function(){g.totalPendingRequests--}).then(function(a){return d.put(k,a.data)},
function(a){h||(a=Zg("tpload",k,a.status,a.statusText),b(a));return e.reject(a)})}g.totalPendingRequests=0;return g}]}function jg(){this.$get=["$rootScope","$browser","$location",function(a,b,d){return{findBindings:function(a,b,d){a=a.getElementsByClassName("ng-binding");var g=[];r(a,function(a){var c=ca.element(a).data("$binding");c&&r(c,function(c){d?(new RegExp("(^|\\s)"+Od(b)+"(\\s|\\||$)")).test(c)&&g.push(a):-1!==c.indexOf(b)&&g.push(a)})});return g},findModels:function(a,b,d){for(var g=["ng-",
"data-ng-","ng\\:"],k=0;k<g.length;++k){var h=a.querySelectorAll("["+g[k]+"model"+(d?"=":"*=")+'"'+b+'"]');if(h.length)return h}},getLocation:function(){return d.url()},setLocation:function(b){b!==d.url()&&(d.url(b),a.$digest())},whenStable:function(a){b.notifyWhenNoOutstandingRequests(a)}}}]}function kg(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,b,d,c,e){function f(f,h,l){B(f)||(l=h,h=f,f=E);var m=Ha.call(arguments,3),p=w(l)&&!l,n=(p?c:d).defer(),s=n.promise,r;
r=b.defer(function(){try{n.resolve(f.apply(null,m))}catch(b){n.reject(b),e(b)}finally{delete g[s.$$timeoutId]}p||a.$apply()},h,"$timeout");s.$$timeoutId=r;g[r]=n;return s}var g={};f.cancel=function(a){if(!a)return!1;if(!a.hasOwnProperty("$$timeoutId"))throw $g("badprom");if(!g.hasOwnProperty(a.$$timeoutId))return!1;a=a.$$timeoutId;var c=g[a],d=c.promise;d.$$state&&(d.$$state.pur=!0);c.reject("canceled");delete g[a];return b.defer.cancel(a)};return f}]}function ga(a){if(!C(a))return a;wa&&(aa.setAttribute("href",
a),a=aa.href);aa.setAttribute("href",a);a=aa.hostname;!ah&&-1<a.indexOf(":")&&(a="["+a+"]");return{href:aa.href,protocol:aa.protocol?aa.protocol.replace(/:$/,""):"",host:aa.host,search:aa.search?aa.search.replace(/^\?/,""):"",hash:aa.hash?aa.hash.replace(/^#/,""):"",hostname:a,port:aa.port,pathname:"/"===aa.pathname.charAt(0)?aa.pathname:"/"+aa.pathname}}function Og(a){var b=[Qd].concat(a.map(ga));return function(a){a=ga(a);return b.some(Cc.bind(null,a))}}function Cc(a,b){a=ga(a);b=ga(b);return a.protocol===
b.protocol&&a.host===b.host}function lg(){this.$get=ia(z)}function Rd(a){function b(a){try{return decodeURIComponent(a)}catch(b){return a}}var d=a[0]||{},c={},e="";return function(){var a,g,k,h,l;try{a=d.cookie||""}catch(m){a=""}if(a!==e)for(e=a,a=e.split("; "),c={},k=0;k<a.length;k++)g=a[k],h=g.indexOf("="),0<h&&(l=b(g.substring(0,h)),A(c[l])&&(c[l]=b(g.substring(h+1))));return c}}function pg(){this.$get=Rd}function fd(a){function b(d,c){if(D(d)){var e={};r(d,function(a,c){e[c]=b(c,a)});return e}return a.factory(d+
"Filter",c)}this.register=b;this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}];b("currency",Sd);b("date",Td);b("filter",bh);b("json",ch);b("limitTo",dh);b("lowercase",eh);b("number",Ud);b("orderBy",Vd);b("uppercase",fh)}function bh(){return function(a,b,d,c){if(!za(a)){if(null==a)return a;throw F("filter")("notarray",a);}c=c||"$";var e;switch(Ec(b)){case "function":break;case "boolean":case "null":case "number":case "string":e=!0;case "object":b=gh(b,d,c,e);break;default:return a}return Array.prototype.filter.call(a,
b)}}function gh(a,b,d,c){var e=D(a)&&d in a;!0===b?b=va:B(b)||(b=function(a,b){if(A(a))return!1;if(null===a||null===b)return a===b;if(D(b)||D(a)&&!cc(a))return!1;a=K(""+a);b=K(""+b);return-1!==a.indexOf(b)});return function(f){return e&&!D(f)?Fa(f,a[d],b,d,!1):Fa(f,a,b,d,c)}}function Fa(a,b,d,c,e,f){var g=Ec(a),k=Ec(b);if("string"===k&&"!"===b.charAt(0))return!Fa(a,b.substring(1),d,c,e);if(H(a))return a.some(function(a){return Fa(a,b,d,c,e)});switch(g){case "object":var h;if(e){for(h in a)if(h.charAt&&
"$"!==h.charAt(0)&&Fa(a[h],b,d,c,!0))return!0;return f?!1:Fa(a,b,d,c,!1)}if("object"===k){for(h in b)if(f=b[h],!B(f)&&!A(f)&&(g=h===c,!Fa(g?a:a[h],f,d,c,g,g)))return!1;return!0}return d(a,b);case "function":return!1;default:return d(a,b)}}function Ec(a){return null===a?"null":typeof a}function Sd(a){var b=a.NUMBER_FORMATS;return function(a,c,e){A(c)&&(c=b.CURRENCY_SYM);A(e)&&(e=b.PATTERNS[1].maxFrac);var f=c?/\u00A4/g:/\s*\u00A4\s*/g;return null==a?a:Wd(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,e).replace(f,
c)}}function Ud(a){var b=a.NUMBER_FORMATS;return function(a,c){return null==a?a:Wd(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function hh(a){var b=0,d,c,e,f,g;-1<(c=a.indexOf(Xd))&&(a=a.replace(Xd,""));0<(e=a.search(/e/i))?(0>c&&(c=e),c+=+a.slice(e+1),a=a.substring(0,e)):0>c&&(c=a.length);for(e=0;a.charAt(e)===Fc;e++);if(e===(g=a.length))d=[0],c=1;else{for(g--;a.charAt(g)===Fc;)g--;c-=e;d=[];for(f=0;e<=g;e++,f++)d[f]=+a.charAt(e)}c>Yd&&(d=d.splice(0,Yd-1),b=c-1,c=1);return{d:d,e:b,i:c}}function ih(a,
b,d,c){var e=a.d,f=e.length-a.i;b=A(b)?Math.min(Math.max(d,f),c):+b;d=b+a.i;c=e[d];if(0<d){e.splice(Math.max(a.i,d));for(var g=d;g<e.length;g++)e[g]=0}else for(f=Math.max(0,f),a.i=1,e.length=Math.max(1,d=b+1),e[0]=0,g=1;g<d;g++)e[g]=0;if(5<=c)if(0>d-1){for(c=0;c>d;c--)e.unshift(0),a.i++;e.unshift(1);a.i++}else e[d-1]++;for(;f<Math.max(0,b);f++)e.push(0);if(b=e.reduceRight(function(a,b,c,d){b+=a;d[c]=b%10;return Math.floor(b/10)},0))e.unshift(b),a.i++}function Wd(a,b,d,c,e){if(!C(a)&&!X(a)||isNaN(a))return"";
var f=!isFinite(a),g=!1,k=Math.abs(a)+"",h="";if(f)h="\u221e";else{g=hh(k);ih(g,e,b.minFrac,b.maxFrac);h=g.d;k=g.i;e=g.e;f=[];for(g=h.reduce(function(a,b){return a&&!b},!0);0>k;)h.unshift(0),k++;0<k?f=h.splice(k,h.length):(f=h,h=[0]);k=[];for(h.length>=b.lgSize&&k.unshift(h.splice(-b.lgSize,h.length).join(""));h.length>b.gSize;)k.unshift(h.splice(-b.gSize,h.length).join(""));h.length&&k.unshift(h.join(""));h=k.join(d);f.length&&(h+=c+f.join(""));e&&(h+="e+"+e)}return 0>a&&!g?b.negPre+h+b.negSuf:b.posPre+
h+b.posSuf}function Pb(a,b,d,c){var e="";if(0>a||c&&0>=a)c?a=-a+1:(a=-a,e="-");for(a=""+a;a.length<b;)a=Fc+a;d&&(a=a.substr(a.length-b));return e+a}function ea(a,b,d,c,e){d=d||0;return function(f){f=f["get"+a]();if(0<d||f>-d)f+=d;0===f&&-12===d&&(f=12);return Pb(f,b,c,e)}}function lb(a,b,d){return function(c,e){var f=c["get"+a](),g=vb((d?"STANDALONE":"")+(b?"SHORT":"")+a);return e[g][f]}}function Zd(a){var b=(new Date(a,0,1)).getDay();return new Date(a,0,(4>=b?5:12)-b)}function $d(a){return function(b){var d=
Zd(b.getFullYear());b=+new Date(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))-+d;b=1+Math.round(b/6048E5);return Pb(b,a)}}function Gc(a,b){return 0>=a.getFullYear()?b.ERAS[0]:b.ERAS[1]}function Td(a){function b(a){var b;if(b=a.match(d)){a=new Date(0);var f=0,g=0,k=b[8]?a.setUTCFullYear:a.setFullYear,h=b[8]?a.setUTCHours:a.setHours;b[9]&&(f=fa(b[9]+b[10]),g=fa(b[9]+b[11]));k.call(a,fa(b[1]),fa(b[2])-1,fa(b[3]));f=fa(b[4]||0)-f;g=fa(b[5]||0)-g;k=fa(b[6]||0);b=Math.round(1E3*parseFloat("0."+
(b[7]||0)));h.call(a,f,g,k,b)}return a}var d=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,d,f){var g="",k=[],h,l;d=d||"mediumDate";d=a.DATETIME_FORMATS[d]||d;C(c)&&(c=jh.test(c)?fa(c):b(c));X(c)&&(c=new Date(c));if(!ha(c)||!isFinite(c.getTime()))return c;for(;d;)(l=kh.exec(d))?(k=db(k,l,1),d=k.pop()):(k.push(d),d=null);var m=c.getTimezoneOffset();f&&(m=fc(f,m),c=gc(c,f,!0));r(k,function(b){h=lh[b];g+=h?h(c,a.DATETIME_FORMATS,
m):"''"===b?"'":b.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function ch(){return function(a,b){A(b)&&(b=2);return eb(a,b)}}function dh(){return function(a,b,d){b=Infinity===Math.abs(Number(b))?Number(b):fa(b);if(Y(b))return a;X(a)&&(a=a.toString());if(!za(a))return a;d=!d||isNaN(d)?0:fa(d);d=0>d?Math.max(0,a.length+d):d;return 0<=b?Hc(a,d,d+b):0===d?Hc(a,b,a.length):Hc(a,Math.max(0,d+b),d)}}function Hc(a,b,d){return C(a)?a.slice(b,d):Ha.call(a,b,d)}function Vd(a){function b(b){return b.map(function(b){var c=
1,d=Ta;if(B(b))d=b;else if(C(b)){if("+"===b.charAt(0)||"-"===b.charAt(0))c="-"===b.charAt(0)?-1:1,b=b.substring(1);if(""!==b&&(d=a(b),d.constant))var e=d(),d=function(a){return a[e]}}return{get:d,descending:c}})}function d(a){switch(typeof a){case "number":case "boolean":case "string":return!0;default:return!1}}function c(a,b){var c=0,d=a.type,h=b.type;if(d===h){var h=a.value,l=b.value;"string"===d?(h=h.toLowerCase(),l=l.toLowerCase()):"object"===d&&(D(h)&&(h=a.index),D(l)&&(l=b.index));h!==l&&(c=
h<l?-1:1)}else c="undefined"===d?1:"undefined"===h?-1:"null"===d?1:"null"===h?-1:d<h?-1:1;return c}return function(a,f,g,k){if(null==a)return a;if(!za(a))throw F("orderBy")("notarray",a);H(f)||(f=[f]);0===f.length&&(f=["+"]);var h=b(f),l=g?-1:1,m=B(k)?k:c;a=Array.prototype.map.call(a,function(a,b){return{value:a,tieBreaker:{value:b,type:"number",index:b},predicateValues:h.map(function(c){var e=c.get(a);c=typeof e;if(null===e)c="null";else if("object"===c)a:{if(B(e.valueOf)&&(e=e.valueOf(),d(e)))break a;
cc(e)&&(e=e.toString(),d(e))}return{value:e,type:c,index:b}})}});a.sort(function(a,b){for(var d=0,e=h.length;d<e;d++){var f=m(a.predicateValues[d],b.predicateValues[d]);if(f)return f*h[d].descending*l}return(m(a.tieBreaker,b.tieBreaker)||c(a.tieBreaker,b.tieBreaker))*l});return a=a.map(function(a){return a.value})}}function Ra(a){B(a)&&(a={link:a});a.restrict=a.restrict||"AC";return ia(a)}function Qb(a,b,d,c,e){this.$$controls=[];this.$error={};this.$$success={};this.$pending=void 0;this.$name=e(b.name||
b.ngForm||"")(d);this.$dirty=!1;this.$valid=this.$pristine=!0;this.$submitted=this.$invalid=!1;this.$$parentForm=mb;this.$$element=a;this.$$animate=c;ae(this)}function ae(a){a.$$classCache={};a.$$classCache[be]=!(a.$$classCache[nb]=a.$$element.hasClass(nb))}function ce(a){function b(a,b,c){c&&!a.$$classCache[b]?(a.$$animate.addClass(a.$$element,b),a.$$classCache[b]=!0):!c&&a.$$classCache[b]&&(a.$$animate.removeClass(a.$$element,b),a.$$classCache[b]=!1)}function d(a,c,d){c=c?"-"+Xc(c,"-"):"";b(a,nb+
c,!0===d);b(a,be+c,!1===d)}var c=a.set,e=a.unset;a.clazz.prototype.$setValidity=function(a,g,k){A(g)?(this.$pending||(this.$pending={}),c(this.$pending,a,k)):(this.$pending&&e(this.$pending,a,k),de(this.$pending)&&(this.$pending=void 0));Ga(g)?g?(e(this.$error,a,k),c(this.$$success,a,k)):(c(this.$error,a,k),e(this.$$success,a,k)):(e(this.$error,a,k),e(this.$$success,a,k));this.$pending?(b(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,d(this,"",null)):(b(this,"ng-pending",!1),this.$valid=
de(this.$error),this.$invalid=!this.$valid,d(this,"",this.$valid));g=this.$pending&&this.$pending[a]?void 0:this.$error[a]?!1:this.$$success[a]?!0:null;d(this,a,g);this.$$parentForm.$setValidity(a,g,this)}}function de(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function Ic(a){a.$formatters.push(function(b){return a.$isEmpty(b)?b:b.toString()})}function Sa(a,b,d,c,e,f){var g=K(b[0].type);if(!e.android){var k=!1;b.on("compositionstart",function(){k=!0});b.on("compositionupdate",
function(a){if(A(a.data)||""===a.data)k=!1});b.on("compositionend",function(){k=!1;l()})}var h,l=function(a){h&&(f.defer.cancel(h),h=null);if(!k){var e=b.val();a=a&&a.type;"password"===g||d.ngTrim&&"false"===d.ngTrim||(e=V(e));(c.$viewValue!==e||""===e&&c.$$hasNativeValidators)&&c.$setViewValue(e,a)}};if(e.hasEvent("input"))b.on("input",l);else{var m=function(a,b,c){h||(h=f.defer(function(){h=null;b&&b.value===c||l(a)}))};b.on("keydown",function(a){var b=a.keyCode;91===b||15<b&&19>b||37<=b&&40>=b||
m(a,this,this.value)});if(e.hasEvent("paste"))b.on("paste cut drop",m)}b.on("change",l);if(ee[g]&&c.$$hasNativeValidators&&g===d.type)b.on("keydown wheel mousedown",function(a){if(!h){var b=this.validity,c=b.badInput,d=b.typeMismatch;h=f.defer(function(){h=null;b.badInput===c&&b.typeMismatch===d||l(a)})}});c.$render=function(){var a=c.$isEmpty(c.$viewValue)?"":c.$viewValue;b.val()!==a&&b.val(a)}}function Rb(a,b){return function(d,c){var e,f;if(ha(d))return d;if(C(d)){'"'===d.charAt(0)&&'"'===d.charAt(d.length-
1)&&(d=d.substring(1,d.length-1));if(mh.test(d))return new Date(d);a.lastIndex=0;if(e=a.exec(d))return e.shift(),f=c?{yyyy:c.getFullYear(),MM:c.getMonth()+1,dd:c.getDate(),HH:c.getHours(),mm:c.getMinutes(),ss:c.getSeconds(),sss:c.getMilliseconds()/1E3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(e,function(a,c){c<b.length&&(f[b[c]]=+a)}),e=new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1E3*f.sss||0),100>f.yyyy&&e.setFullYear(f.yyyy),e}return NaN}}function ob(a,b,d,c){return function(e,f,g,k,h,l,m,
p){function n(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function s(a){return w(a)&&!ha(a)?r(a)||void 0:a}function r(a,b){var c=k.$options.getOption("timezone");v&&v!==c&&(b=Uc(b,fc(v)));var e=d(a,b);!isNaN(e)&&c&&(e=gc(e,c));return e}Jc(e,f,g,k,a);Sa(e,f,g,k,h,l);var t="time"===a||"datetimelocal"===a,q,v;k.$parsers.push(function(c){if(k.$isEmpty(c))return null;if(b.test(c))return r(c,q);k.$$parserName=a});k.$formatters.push(function(a){if(a&&!ha(a))throw pb("datefmt",a);if(n(a)){q=a;var b=
k.$options.getOption("timezone");b&&(v=b,q=gc(q,b,!0));var d=c;t&&C(k.$options.getOption("timeSecondsFormat"))&&(d=c.replace("ss.sss",k.$options.getOption("timeSecondsFormat")).replace(/:$/,""));a=m("date")(a,d,b);t&&k.$options.getOption("timeStripZeroSeconds")&&(a=a.replace(/(?::00)?(?:\.000)?$/,""));return a}v=q=null;return""});if(w(g.min)||g.ngMin){var x=g.min||p(g.ngMin)(e),z=s(x);k.$validators.min=function(a){return!n(a)||A(z)||d(a)>=z};g.$observe("min",function(a){a!==x&&(z=s(a),x=a,k.$validate())})}if(w(g.max)||
g.ngMax){var y=g.max||p(g.ngMax)(e),J=s(y);k.$validators.max=function(a){return!n(a)||A(J)||d(a)<=J};g.$observe("max",function(a){a!==y&&(J=s(a),y=a,k.$validate())})}}}function Jc(a,b,d,c,e){(c.$$hasNativeValidators=D(b[0].validity))&&c.$parsers.push(function(a){var d=b.prop("validity")||{};if(d.badInput||d.typeMismatch)c.$$parserName=e;else return a})}function fe(a){a.$parsers.push(function(b){if(a.$isEmpty(b))return null;if(nh.test(b))return parseFloat(b);a.$$parserName="number"});a.$formatters.push(function(b){if(!a.$isEmpty(b)){if(!X(b))throw pb("numfmt",
b);b=b.toString()}return b})}function na(a){w(a)&&!X(a)&&(a=parseFloat(a));return Y(a)?void 0:a}function Kc(a){var b=a.toString(),d=b.indexOf(".");return-1===d?-1<a&&1>a&&(a=/e-(\d+)$/.exec(b))?Number(a[1]):0:b.length-d-1}function ge(a,b,d){a=Number(a);var c=(a|0)!==a,e=(b|0)!==b,f=(d|0)!==d;if(c||e||f){var g=c?Kc(a):0,k=e?Kc(b):0,h=f?Kc(d):0,g=Math.max(g,k,h),g=Math.pow(10,g);a*=g;b*=g;d*=g;c&&(a=Math.round(a));e&&(b=Math.round(b));f&&(d=Math.round(d))}return 0===(a-b)%d}function he(a,b,d,c,e){if(w(c)){a=
a(c);if(!a.constant)throw pb("constexpr",d,c);return a(b)}return e}function Lc(a,b){function d(a,b){if(!a||!a.length)return[];if(!b||!b.length)return a;var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],m=0;m<b.length;m++)if(e===b[m])continue a;c.push(e)}return c}function c(a){if(!a)return a;var b=a;H(a)?b=a.map(c).join(" "):D(a)?b=Object.keys(a).filter(function(b){return a[b]}).join(" "):C(a)||(b=a+"");return b}a="ngClass"+a;var e;return["$parse",function(f){return{restrict:"AC",link:function(g,
k,h){function l(a,b){var c=[];r(a,function(a){if(0<b||p[a])p[a]=(p[a]||0)+b,p[a]===+(0<b)&&c.push(a)});return c.join(" ")}function m(a){if(a===b){var c=s,c=l(c&&c.split(" "),1);h.$addClass(c)}else c=s,c=l(c&&c.split(" "),-1),h.$removeClass(c);n=a}var p=k.data("$classCounts"),n=!0,s;p||(p=T(),k.data("$classCounts",p));"ngClass"!==a&&(e||(e=f("$index",function(a){return a&1})),g.$watch(e,m));g.$watch(f(h[a],c),function(a){if(n===b){var c=s&&s.split(" "),e=a&&a.split(" "),f=d(c,e),c=d(e,c),f=l(f,-1),
c=l(c,1);h.$addClass(c);h.$removeClass(f)}s=a})}}}]}function sd(a,b,d,c,e,f){return{restrict:"A",compile:function(g,k){var h=a(k[c]);return function(a,c){c.on(e,function(c){var e=function(){h(a,{$event:c})};if(b.$$phase)if(f)a.$evalAsync(e);else try{e()}catch(g){d(g)}else a.$apply(e)})}}}}function Sb(a,b,d,c,e,f,g,k,h){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=void 0;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=
[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=void 0;this.$name=h(d.name||"",!1)(a);this.$$parentForm=mb;this.$options=Tb;this.$$updateEvents="";this.$$updateEventHandler=this.$$updateEventHandler.bind(this);this.$$parsedNgModel=e(d.ngModel);this.$$parsedNgModelAssign=this.$$parsedNgModel.assign;this.$$ngModelGet=this.$$parsedNgModel;this.$$ngModelSet=this.$$parsedNgModelAssign;this.$$pendingDebounce=
null;this.$$parserValid=void 0;this.$$parserName="parse";this.$$currentValidationRunId=0;this.$$scope=a;this.$$rootScope=a.$root;this.$$attr=d;this.$$element=c;this.$$animate=f;this.$$timeout=g;this.$$parse=e;this.$$q=k;this.$$exceptionHandler=b;ae(this);oh(this)}function oh(a){a.$$scope.$watch(function(b){b=a.$$ngModelGet(b);b===a.$modelValue||a.$modelValue!==a.$modelValue&&b!==b||a.$$setModelValue(b);return b})}function Mc(a){this.$$options=a}function ie(a,b){r(b,function(b,c){w(a[c])||(a[c]=b)})}
function Oa(a,b){a.prop("selected",b);a.attr("selected",b)}function je(a,b,d){if(a){C(a)&&(a=new RegExp("^"+a+"$"));if(!a.test)throw F("ngPattern")("noregexp",b,a,Aa(d));return a}}function Ub(a){a=fa(a);return Y(a)?-1:a}var Xb={objectMaxDepth:5,urlErrorParamsEnabled:!0},ke=/^\/(.+)\/([a-z]*)$/,ta=Object.prototype.hasOwnProperty,K=function(a){return C(a)?a.toLowerCase():a},vb=function(a){return C(a)?a.toUpperCase():a},wa,x,sb,Ha=[].slice,Kg=[].splice,ph=[].push,la=Object.prototype.toString,Rc=Object.getPrototypeOf,
oa=F("ng"),ca=z.angular||(z.angular={}),lc,qb=0;wa=z.document.documentMode;var Y=Number.isNaN||function(a){return a!==a};E.$inject=[];Ta.$inject=[];var ze=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,V=function(a){return C(a)?a.trim():a},Od=function(a){return a.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Ba=function(){if(!w(Ba.rules)){var a=z.document.querySelector("[ng-csp]")||z.document.querySelector("[data-ng-csp]");if(a){var b=
a.getAttribute("ng-csp")||a.getAttribute("data-ng-csp");Ba.rules={noUnsafeEval:!b||-1!==b.indexOf("no-unsafe-eval"),noInlineStyle:!b||-1!==b.indexOf("no-inline-style")}}else{a=Ba;try{new Function(""),b=!1}catch(d){b=!0}a.rules={noUnsafeEval:b,noInlineStyle:!1}}}return Ba.rules},rb=function(){if(w(rb.name_))return rb.name_;var a,b,d=Qa.length,c,e;for(b=0;b<d;++b)if(c=Qa[b],a=z.document.querySelector("["+c.replace(":","\\:")+"jq]")){e=a.getAttribute(c+"jq");break}return rb.name_=e},Be=/:/g,Qa=["ng-",
"data-ng-","ng:","x-ng-"],Fe=function(a){var b=a.currentScript;if(!b)return!0;if(!(b instanceof z.HTMLScriptElement||b instanceof z.SVGScriptElement))return!1;b=b.attributes;return[b.getNamedItem("src"),b.getNamedItem("href"),b.getNamedItem("xlink:href")].every(function(b){if(!b)return!0;if(!b.value)return!1;var c=a.createElement("a");c.href=b.value;if(a.location.origin===c.origin)return!0;switch(c.protocol){case "http:":case "https:":case "ftp:":case "blob:":case "file:":case "data:":return!0;default:return!1}})}(z.document),
Ie=/[A-Z]/g,Yc=!1,Pa=3,Pe={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};U.expando="ng339";var Ka=U.cache={},ug=1;U._data=function(a){return this.cache[a[this.expando]]||{}};var qg=/-([a-z])/g,qh=/^-ms-/,Bb={mouseleave:"mouseout",mouseenter:"mouseover"},oc=F("jqLite"),tg=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,nc=/<|&#?\w+;/,rg=/<([\w:-]+)/,sg=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,qa={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr",
"tbody","table"]};qa.tbody=qa.tfoot=qa.colgroup=qa.caption=qa.thead;qa.th=qa.td;var hb={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]},Nc;for(Nc in qa){var le=qa[Nc],me=le.slice().reverse();hb[Nc]=[me.length,"<"+me.join("><")+">","</"+le.join("></")+">"]}hb.optgroup=hb.option;var zg=z.Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)},Wa=U.prototype={ready:hd,toString:function(){var a=[];r(this,function(b){a.push(""+b)});return"["+a.join(", ")+
"]"},eq:function(a){return 0<=a?x(this[a]):x(this[this.length+a])},length:0,push:ph,sort:[].sort,splice:[].splice},Hb={};r("multiple selected checked disabled readOnly required open".split(" "),function(a){Hb[K(a)]=a});var od={};r("input select option textarea button form details".split(" "),function(a){od[a]=!0});var vd={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};r({data:sc,removeData:rc,hasData:function(a){for(var b in Ka[a.ng339])return!0;
return!1},cleanData:function(a){for(var b=0,d=a.length;b<d;b++)rc(a[b]),kd(a[b])}},function(a,b){U[b]=a});r({data:sc,inheritedData:Fb,scope:function(a){return x.data(a,"$scope")||Fb(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return x.data(a,"$isolateScope")||x.data(a,"$isolateScopeNoTemplate")},controller:ld,injector:function(a){return Fb(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:Cb,css:function(a,b,d){b=yb(b.replace(qh,"ms-"));if(w(d))a.style[b]=
d;else return a.style[b]},attr:function(a,b,d){var c=a.nodeType;if(c!==Pa&&2!==c&&8!==c&&a.getAttribute){var c=K(b),e=Hb[c];if(w(d))null===d||!1===d&&e?a.removeAttribute(b):a.setAttribute(b,e?c:d);else return a=a.getAttribute(b),e&&null!==a&&(a=c),null===a?void 0:a}},prop:function(a,b,d){if(w(d))a[b]=d;else return a[b]},text:function(){function a(a,d){if(A(d)){var c=a.nodeType;return 1===c||c===Pa?a.textContent:""}a.textContent=d}a.$dv="";return a}(),val:function(a,b){if(A(b)){if(a.multiple&&"select"===
ua(a)){var d=[];r(a.options,function(a){a.selected&&d.push(a.value||a.text)});return d}return a.value}a.value=b},html:function(a,b){if(A(b))return a.innerHTML;zb(a,!0);a.innerHTML=b},empty:md},function(a,b){U.prototype[b]=function(b,c){var e,f,g=this.length;if(a!==md&&A(2===a.length&&a!==Cb&&a!==ld?b:c)){if(D(b)){for(e=0;e<g;e++)if(a===sc)a(this[e],b);else for(f in b)a(this[e],f,b[f]);return this}e=a.$dv;g=A(e)?Math.min(g,1):g;for(f=0;f<g;f++){var k=a(this[f],b,c);e=e?e+k:k}return e}for(e=0;e<g;e++)a(this[e],
b,c);return this}});r({removeData:rc,on:function(a,b,d,c){if(w(c))throw oc("onargs");if(mc(a)){c=Ab(a,!0);var e=c.events,f=c.handle;f||(f=c.handle=wg(a,e));c=0<=b.indexOf(" ")?b.split(" "):[b];for(var g=c.length,k=function(b,c,g){var k=e[b];k||(k=e[b]=[],k.specialHandlerWrapper=c,"$destroy"===b||g||a.addEventListener(b,f));k.push(d)};g--;)b=c[g],Bb[b]?(k(Bb[b],yg),k(b,void 0,!0)):k(b)}},off:kd,one:function(a,b,d){a=x(a);a.on(b,function e(){a.off(b,d);a.off(b,e)});a.on(b,d)},replaceWith:function(a,
b){var d,c=a.parentNode;zb(a);r(new U(b),function(b){d?c.insertBefore(b,d.nextSibling):c.replaceChild(b,a);d=b})},children:function(a){var b=[];r(a.childNodes,function(a){1===a.nodeType&&b.push(a)});return b},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,b){var d=a.nodeType;if(1===d||11===d){b=new U(b);for(var d=0,c=b.length;d<c;d++)a.appendChild(b[d])}},prepend:function(a,b){if(1===a.nodeType){var d=a.firstChild;r(new U(b),function(b){a.insertBefore(b,d)})}},
wrap:function(a,b){var d=x(b).eq(0).clone()[0],c=a.parentNode;c&&c.replaceChild(d,a);d.appendChild(a)},remove:Gb,detach:function(a){Gb(a,!0)},after:function(a,b){var d=a,c=a.parentNode;if(c){b=new U(b);for(var e=0,f=b.length;e<f;e++){var g=b[e];c.insertBefore(g,d.nextSibling);d=g}}},addClass:Eb,removeClass:Db,toggleClass:function(a,b,d){b&&r(b.split(" "),function(b){var e=d;A(e)&&(e=!Cb(a,b));(e?Eb:Db)(a,b)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){return a.nextElementSibling},
find:function(a,b){return a.getElementsByTagName?a.getElementsByTagName(b):[]},clone:qc,triggerHandler:function(a,b,d){var c,e,f=b.type||b,g=Ab(a);if(g=(g=g&&g.events)&&g[f])c={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:E,type:f,target:a},b.type&&(c=S(c,
b)),b=ja(g),e=d?[c].concat(d):[c],r(b,function(b){c.isImmediatePropagationStopped()||b.apply(a,e)})}},function(a,b){U.prototype[b]=function(b,c,e){for(var f,g=0,k=this.length;g<k;g++)A(f)?(f=a(this[g],b,c,e),w(f)&&(f=x(f))):pc(f,a(this[g],b,c,e));return w(f)?f:this}});U.prototype.bind=U.prototype.on;U.prototype.unbind=U.prototype.off;var rh=Object.create(null);pd.prototype={_idx:function(a){a!==this._lastKey&&(this._lastKey=a,this._lastIndex=this._keys.indexOf(a));return this._lastIndex},_transformKey:function(a){return Y(a)?
rh:a},get:function(a){a=this._transformKey(a);a=this._idx(a);if(-1!==a)return this._values[a]},has:function(a){a=this._transformKey(a);return-1!==this._idx(a)},set:function(a,b){a=this._transformKey(a);var d=this._idx(a);-1===d&&(d=this._lastIndex=this._keys.length);this._keys[d]=a;this._values[d]=b},delete:function(a){a=this._transformKey(a);a=this._idx(a);if(-1===a)return!1;this._keys.splice(a,1);this._values.splice(a,1);this._lastKey=NaN;this._lastIndex=-1;return!0}};var Ib=pd,og=[function(){this.$get=
[function(){return Ib}]}],Bg=/^([^(]+?)=>/,Cg=/^[^(]*\(\s*([^)]*)\)/m,sh=/,/,th=/^\s*(_?)(\S+?)\1\s*$/,Ag=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Ca=F("$injector");fb.$$annotate=function(a,b,d){var c;if("function"===typeof a){if(!(c=a.$inject)){c=[];if(a.length){if(b)throw C(d)&&d||(d=a.name||Dg(a)),Ca("strictdi",d);b=qd(a);r(b[1].split(sh),function(a){a.replace(th,function(a,b,d){c.push(d)})})}a.$inject=c}}else H(a)?(b=a.length-1,tb(a[b],"fn"),c=a.slice(0,b)):tb(a,"fn",!0);return c};var ne=F("$animate"),
Ef=function(){this.$get=E},Ff=function(){var a=new Ib,b=[];this.$get=["$$AnimateRunner","$rootScope",function(d,c){function e(a,b,c){var d=!1;b&&(b=C(b)?b.split(" "):H(b)?b:[],r(b,function(b){b&&(d=!0,a[b]=c)}));return d}function f(){r(b,function(b){var c=a.get(b);if(c){var d=Eg(b.attr("class")),e="",f="";r(c,function(a,b){a!==!!d[b]&&(a?e+=(e.length?" ":"")+b:f+=(f.length?" ":"")+b)});r(b,function(a){e&&Eb(a,e);f&&Db(a,f)});a.delete(b)}});b.length=0}return{enabled:E,on:E,off:E,pin:E,push:function(g,
k,h,l){l&&l();h=h||{};h.from&&g.css(h.from);h.to&&g.css(h.to);if(h.addClass||h.removeClass)if(k=h.addClass,l=h.removeClass,h=a.get(g)||{},k=e(h,k,!0),l=e(h,l,!1),k||l)a.set(g,h),b.push(g),1===b.length&&c.$$postDigest(f);g=new d;g.complete();return g}}}]},Cf=["$provide",function(a){var b=this,d=null,c=null;this.$$registeredAnimations=Object.create(null);this.register=function(c,d){if(c&&"."!==c.charAt(0))throw ne("notcsel",c);var g=c+"-animation";b.$$registeredAnimations[c.substr(1)]=g;a.factory(g,
d)};this.customFilter=function(a){1===arguments.length&&(c=B(a)?a:null);return c};this.classNameFilter=function(a){if(1===arguments.length&&(d=a instanceof RegExp?a:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(d.toString()))throw d=null,ne("nongcls","ng-animate");return d};this.$get=["$$animateQueue",function(a){function b(a,c,d){if(d){var e;a:{for(e=0;e<d.length;e++){var f=d[e];if(1===f.nodeType){e=f;break a}}e=void 0}!e||e.parentNode||e.previousElementSibling||(d=null)}d?d.after(a):c.prepend(a)}return{on:a.on,
off:a.off,pin:a.pin,enabled:a.enabled,cancel:function(a){a.cancel&&a.cancel()},enter:function(c,d,h,l){d=d&&x(d);h=h&&x(h);d=d||h.parent();b(c,d,h);return a.push(c,"enter",ra(l))},move:function(c,d,h,l){d=d&&x(d);h=h&&x(h);d=d||h.parent();b(c,d,h);return a.push(c,"move",ra(l))},leave:function(b,c){return a.push(b,"leave",ra(c),function(){b.remove()})},addClass:function(b,c,d){d=ra(d);d.addClass=ib(d.addclass,c);return a.push(b,"addClass",d)},removeClass:function(b,c,d){d=ra(d);d.removeClass=ib(d.removeClass,
c);return a.push(b,"removeClass",d)},setClass:function(b,c,d,f){f=ra(f);f.addClass=ib(f.addClass,c);f.removeClass=ib(f.removeClass,d);return a.push(b,"setClass",f)},animate:function(b,c,d,f,m){m=ra(m);m.from=m.from?S(m.from,c):c;m.to=m.to?S(m.to,d):d;m.tempClasses=ib(m.tempClasses,f||"ng-inline-animate");return a.push(b,"animate",m)}}}]}],Hf=function(){this.$get=["$$rAF",function(a){function b(b){d.push(b);1<d.length||a(function(){for(var a=0;a<d.length;a++)d[a]();d=[]})}var d=[];return function(){var a=
!1;b(function(){a=!0});return function(d){a?d():b(d)}}}]},Gf=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(a,b,d,c,e){function f(a){this.setHost(a);var b=d();this._doneCallbacks=[];this._tick=function(a){c()?e(a,0,!1):b(a)};this._state=0}f.chain=function(a,b){function c(){if(d===a.length)b(!0);else a[d](function(a){!1===a?b(!1):(d++,c())})}var d=0;c()};f.all=function(a,b){function c(f){e=e&&f;++d===a.length&&b(e)}var d=0,e=!0;r(a,function(a){a.done(c)})};
f.prototype={setHost:function(a){this.host=a||{}},done:function(a){2===this._state?a():this._doneCallbacks.push(a)},progress:E,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){!1===b?c():a()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},"catch":function(a){return this.getPromise()["catch"](a)},"finally":function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&
this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(a){var b=this;0===b._state&&(b._state=1,b._tick(function(){b._resolve(a)}))},_resolve:function(a){2!==this._state&&(r(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=2)}};return f}]},Df=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,b,d){return function(b,e){function f(){a(function(){g.addClass&&
(b.addClass(g.addClass),g.addClass=null);g.removeClass&&(b.removeClass(g.removeClass),g.removeClass=null);g.to&&(b.css(g.to),g.to=null);k||h.complete();k=!0});return h}var g=e||{};g.$$prepared||(g=Ia(g));g.cleanupStyles&&(g.from=g.to=null);g.from&&(b.css(g.from),g.from=null);var k,h=new d;return{start:f,end:f}}}]},$=F("$compile"),uc=new function(){};Zc.$inject=["$provide","$$sanitizeUriProvider"];Kb.prototype.isFirstChange=function(){return this.previousValue===uc};var rd=/^((?:x|data)[:\-_])/i,Jg=
/[:\-_]+(.)/g,xd=F("$controller"),wd=/^(\S+)(\s+as\s+([\w$]+))?$/,Of=function(){this.$get=["$document",function(a){return function(b){b?!b.nodeType&&b instanceof x&&(b=b[0]):b=a[0].body;return b.offsetWidth+1}}]},yd="application/json",xc={"Content-Type":yd+";charset=utf-8"},Mg=/^\[|^\{(?!\{)/,Ng={"[":/]$/,"{":/}$/},Lg=/^\)]\}',?\n/,Lb=F("$http"),Ma=ca.$interpolateMinErr=F("$interpolate");Ma.throwNoconcat=function(a){throw Ma("noconcat",a);};Ma.interr=function(a,b){return Ma("interr",a,b.toString())};
var Qg=F("$interval"),Xf=function(){this.$get=function(){function a(a){var b=function(a){b.data=a;b.called=!0};b.id=a;return b}var b=ca.callbacks,d={};return{createCallback:function(c){c="_"+(b.$$counter++).toString(36);var e="angular.callbacks."+c,f=a(c);d[e]=b[c]=f;return e},wasCalled:function(a){return d[a].called},getResponse:function(a){return d[a].data},removeCallback:function(a){delete b[d[a].id];delete d[a]}}}},uh=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Rg={http:80,https:443,ftp:21},kb=F("$location"),
Sg=/^\s*[\\/]{2,}/,vh={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){for(var a=this.$$path,b=this.$$hash,d=Ce(this.$$search),b=b?"#"+ic(b):"",a=a.split("/"),c=a.length;c--;)a[c]=ic(a[c].replace(/%2F/g,"/"));this.$$url=a.join("/")+(d?"?"+d:"")+b;this.$$absUrl=this.$$normalizeUrl(this.$$url);this.$$urlUpdatedByLocation=!0},absUrl:Mb("$$absUrl"),url:function(a){if(A(a))return this.$$url;var b=uh.exec(a);(b[1]||""===a)&&this.path(decodeURIComponent(b[1]));(b[2]||b[1]||""===a)&&this.search(b[3]||
"");this.hash(b[5]||"");return this},protocol:Mb("$$protocol"),host:Mb("$$host"),port:Mb("$$port"),path:Fd("$$path",function(a){a=null!==a?a.toString():"";return"/"===a.charAt(0)?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(C(a)||X(a))a=a.toString(),this.$$search=hc(a);else if(D(a))a=Ia(a,{}),r(a,function(b,c){null==b&&delete a[c]}),this.$$search=a;else throw kb("isrcharg");break;default:A(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}this.$$compose();
return this},hash:Fd("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};r([Ed,Ac,zc],function(a){a.prototype=Object.create(vh);a.prototype.state=function(b){if(!arguments.length)return this.$$state;if(a!==zc||!this.$$html5)throw kb("nostate");this.$$state=A(b)?null:b;this.$$urlUpdatedByLocation=!0;return this}});var Ya=F("$parse"),Wg={}.constructor.prototype.valueOf,Vb=T();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){Vb[a]=
!0});var wh={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Ob=function(a){this.options=a};Ob.prototype={constructor:Ob,lex:function(a){this.text=a;this.index=0;for(this.tokens=[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,
text:a}),this.index++;else if(this.isWhitespace(a))this.index++;else{var b=a+this.peek(),d=b+this.peek(2),c=Vb[b],e=Vb[d];Vb[a]||c||e?(a=e?d:c?b:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(a,b){return-1!==b.indexOf(a)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a&&"string"===
typeof a},isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdentifierStart:function(a){return this.options.isIdentifierStart?this.options.isIdentifierStart(a,this.codePointAt(a)):this.isValidIdentifierStart(a)},isValidIdentifierStart:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isIdentifierContinue:function(a){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(a,this.codePointAt(a)):this.isValidIdentifierContinue(a)},
isValidIdentifierContinue:function(a,b){return this.isValidIdentifierStart(a,b)||this.isNumber(a)},codePointAt:function(a){return 1===a.length?a.charCodeAt(0):(a.charCodeAt(0)<<10)+a.charCodeAt(1)-56613888},peekMultichar:function(){var a=this.text.charAt(this.index),b=this.peek();if(!b)return a;var d=a.charCodeAt(0),c=b.charCodeAt(0);return 55296<=d&&56319>=d&&56320<=c&&57343>=c?a+b:a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,b,d){d=d||this.index;b=
w(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,d)+"]":" "+d;throw Ya("lexerr",a,b,this.text);},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var d=K(this.text.charAt(this.index));if("."===d||this.isNumber(d))a+=d;else{var c=this.peek();if("e"===d&&this.isExpOperator(c))a+=d;else if(this.isExpOperator(d)&&c&&this.isNumber(c)&&"e"===a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||c&&this.isNumber(c)||"e"!==a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:b,
text:a,constant:!0,value:Number(a)})},readIdent:function(){var a=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var b=this.peekMultichar();if(!this.isIdentifierContinue(b))break;this.index+=b.length}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var b=this.index;this.index++;for(var d="",c=a,e=!1;this.index<this.text.length;){var f=this.text.charAt(this.index),c=c+f;if(e)"u"===f?(e=this.text.substring(this.index+
1,this.index+5),e.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+e+"]"),this.index+=4,d+=String.fromCharCode(parseInt(e,16))):d+=wh[f]||f,e=!1;else if("\\"===f)e=!0;else{if(f===a){this.index++;this.tokens.push({index:b,text:c,constant:!0,value:d});return}d+=f}this.index++}this.throwError("Unterminated quote",b)}};var q=function(a,b){this.lexer=a;this.options=b};q.Program="Program";q.ExpressionStatement="ExpressionStatement";q.AssignmentExpression="AssignmentExpression";q.ConditionalExpression=
"ConditionalExpression";q.LogicalExpression="LogicalExpression";q.BinaryExpression="BinaryExpression";q.UnaryExpression="UnaryExpression";q.CallExpression="CallExpression";q.MemberExpression="MemberExpression";q.Identifier="Identifier";q.Literal="Literal";q.ArrayExpression="ArrayExpression";q.Property="Property";q.ObjectExpression="ObjectExpression";q.ThisExpression="ThisExpression";q.LocalsExpression="LocalsExpression";q.NGValueParameter="NGValueParameter";q.prototype={ast:function(a){this.text=
a;this.tokens=this.lexer.lex(a);a=this.program();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);return a},program:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:q.Program,body:a}},expressionStatement:function(){return{type:q.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var a=this.expression();this.expect("|");)a=this.filter(a);return a},
expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();if(this.expect("=")){if(!Jd(a))throw Ya("lval");a={type:q.AssignmentExpression,left:a,right:this.assignment(),operator:"="}}return a},ternary:function(){var a=this.logicalOR(),b,d;return this.expect("?")&&(b=this.expression(),this.consume(":"))?(d=this.expression(),{type:q.ConditionalExpression,test:a,alternate:b,consequent:d}):a},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a={type:q.LogicalExpression,
operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:q.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a=this.relational(),b;b=this.expect("==","!=","===","!==");)a={type:q.BinaryExpression,operator:b.text,left:a,right:this.relational()};return a},relational:function(){for(var a=this.additive(),b;b=this.expect("<",">","<=",">=");)a={type:q.BinaryExpression,operator:b.text,
left:a,right:this.additive()};return a},additive:function(){for(var a=this.multiplicative(),b;b=this.expect("+","-");)a={type:q.BinaryExpression,operator:b.text,left:a,right:this.multiplicative()};return a},multiplicative:function(){for(var a=this.unary(),b;b=this.expect("*","/","%");)a={type:q.BinaryExpression,operator:b.text,left:a,right:this.unary()};return a},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:q.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},
primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?a=Ia(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?a={type:q.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",
this.peek());for(var b;b=this.expect("(","[",".");)"("===b.text?(a={type:q.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===b.text?(a={type:q.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===b.text?a={type:q.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){a=[a];for(var b={type:q.CallExpression,callee:this.identifier(),arguments:a,filter:!0};this.expect(":");)a.push(this.expression());
return b},parseArguments:function(){var a=[];if(")"!==this.peekToken().text){do a.push(this.filterChain());while(this.expect(","))}return a},identifier:function(){var a=this.consume();a.identifier||this.throwError("is not a valid identifier",a);return{type:q.Identifier,name:a.text}},constant:function(){return{type:q.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text){do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","))}this.consume("]");
return{type:q.ArrayExpression,elements:a}},object:function(){var a=[],b;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;b={type:q.Property,kind:"init"};this.peek().constant?(b.key=this.constant(),b.computed=!1,this.consume(":"),b.value=this.expression()):this.peek().identifier?(b.key=this.identifier(),b.computed=!1,this.peek(":")?(this.consume(":"),b.value=this.expression()):b.value=b.key):this.peek("[")?(this.consume("["),b.key=this.expression(),this.consume("]"),b.computed=!0,this.consume(":"),
b.value=this.expression()):this.throwError("invalid key",this.peek());a.push(b)}while(this.expect(","))}this.consume("}");return{type:q.ObjectExpression,properties:a}},throwError:function(a,b){throw Ya("syntax",b.text,a,b.index+1,this.text,this.text.substring(b.index));},consume:function(a){if(0===this.tokens.length)throw Ya("ueoe",this.text);var b=this.expect(a);b||this.throwError("is unexpected, expecting ["+a+"]",this.peek());return b},peekToken:function(){if(0===this.tokens.length)throw Ya("ueoe",
this.text);return this.tokens[0]},peek:function(a,b,d,c){return this.peekAhead(0,a,b,d,c)},peekAhead:function(a,b,d,c,e){if(this.tokens.length>a){a=this.tokens[a];var f=a.text;if(f===b||f===d||f===c||f===e||!(b||d||c||e))return a}return!1},expect:function(a,b,d,c){return(a=this.peek(a,b,d,c))?(this.tokens.shift(),a):!1},selfReferential:{"this":{type:q.ThisExpression},$locals:{type:q.LocalsExpression}}};var Hd=2;Ld.prototype={compile:function(a){var b=this;this.state={nextId:0,filters:{},fn:{vars:[],
body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]};Z(a,b.$filter);var d="",c;this.stage="assign";if(c=Kd(a))this.state.computing="assign",d=this.nextId(),this.recurse(c,d),this.return_(d),d="fn.assign="+this.generateFunction("assign","s,v,l");c=Id(a.body);b.stage="inputs";r(c,function(a,c){var d="fn"+c;b.state[d]={vars:[],body:[],own:{}};b.state.computing=d;var k=b.nextId();b.recurse(a,k);b.return_(k);b.state.inputs.push({name:d,isPure:a.isPure});a.watchId=c});this.state.computing="fn";this.stage=
"main";this.recurse(a);a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+d+this.watchFns()+"return fn;";a=(new Function("$filter","getStringValue","ifDefined","plus",a))(this.$filter,Tg,Ug,Gd);this.state=this.stage=void 0;return a},USE:"use",STRICT:"strict",watchFns:function(){var a=[],b=this.state.inputs,d=this;r(b,function(b){a.push("var "+b.name+"="+d.generateFunction(b.name,"s"));b.isPure&&a.push(b.name,".isPure="+JSON.stringify(b.isPure)+
";")});b.length&&a.push("fn.inputs=["+b.map(function(a){return a.name}).join(",")+"];");return a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],b=this;r(this.state.filters,function(d,c){a.push(d+"=$filter("+b.escape(c)+")")});return a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},
recurse:function(a,b,d,c,e,f){var g,k,h=this,l,m,p;c=c||E;if(!f&&w(a.watchId))b=b||this.nextId(),this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,d,c,e,!0));else switch(a.type){case q.Program:r(a.body,function(b,c){h.recurse(b.expression,void 0,void 0,function(a){k=a});c!==a.body.length-1?h.current().body.push(k,";"):h.return_(k)});break;case q.Literal:m=this.escape(a.value);this.assign(b,m);c(b||m);break;case q.UnaryExpression:this.recurse(a.argument,void 0,
void 0,function(a){k=a});m=a.operator+"("+this.ifDefined(k,0)+")";this.assign(b,m);c(m);break;case q.BinaryExpression:this.recurse(a.left,void 0,void 0,function(a){g=a});this.recurse(a.right,void 0,void 0,function(a){k=a});m="+"===a.operator?this.plus(g,k):"-"===a.operator?this.ifDefined(g,0)+a.operator+this.ifDefined(k,0):"("+g+")"+a.operator+"("+k+")";this.assign(b,m);c(m);break;case q.LogicalExpression:b=b||this.nextId();h.recurse(a.left,b);h.if_("&&"===a.operator?b:h.not(b),h.lazyRecurse(a.right,
b));c(b);break;case q.ConditionalExpression:b=b||this.nextId();h.recurse(a.test,b);h.if_(b,h.lazyRecurse(a.alternate,b),h.lazyRecurse(a.consequent,b));c(b);break;case q.Identifier:b=b||this.nextId();d&&(d.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name);h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",a.name)),function(){h.if_("inputs"===h.stage||"s",function(){e&&1!==e&&h.if_(h.isNull(h.nonComputedMember("s",a.name)),
h.lazyAssign(h.nonComputedMember("s",a.name),"{}"));h.assign(b,h.nonComputedMember("s",a.name))})},b&&h.lazyAssign(b,h.nonComputedMember("l",a.name)));c(b);break;case q.MemberExpression:g=d&&(d.context=this.nextId())||this.nextId();b=b||this.nextId();h.recurse(a.object,g,void 0,function(){h.if_(h.notNull(g),function(){a.computed?(k=h.nextId(),h.recurse(a.property,k),h.getStringValue(k),e&&1!==e&&h.if_(h.not(h.computedMember(g,k)),h.lazyAssign(h.computedMember(g,k),"{}")),m=h.computedMember(g,k),h.assign(b,
m),d&&(d.computed=!0,d.name=k)):(e&&1!==e&&h.if_(h.isNull(h.nonComputedMember(g,a.property.name)),h.lazyAssign(h.nonComputedMember(g,a.property.name),"{}")),m=h.nonComputedMember(g,a.property.name),h.assign(b,m),d&&(d.computed=!1,d.name=a.property.name))},function(){h.assign(b,"undefined")});c(b)},!!e);break;case q.CallExpression:b=b||this.nextId();a.filter?(k=h.filter(a.callee.name),l=[],r(a.arguments,function(a){var b=h.nextId();h.recurse(a,b);l.push(b)}),m=k+"("+l.join(",")+")",h.assign(b,m),c(b)):
(k=h.nextId(),g={},l=[],h.recurse(a.callee,k,g,function(){h.if_(h.notNull(k),function(){r(a.arguments,function(b){h.recurse(b,a.constant?void 0:h.nextId(),void 0,function(a){l.push(a)})});m=g.name?h.member(g.context,g.name,g.computed)+"("+l.join(",")+")":k+"("+l.join(",")+")";h.assign(b,m)},function(){h.assign(b,"undefined")});c(b)}));break;case q.AssignmentExpression:k=this.nextId();g={};this.recurse(a.left,void 0,g,function(){h.if_(h.notNull(g.context),function(){h.recurse(a.right,k);m=h.member(g.context,
g.name,g.computed)+a.operator+k;h.assign(b,m);c(b||m)})},1);break;case q.ArrayExpression:l=[];r(a.elements,function(b){h.recurse(b,a.constant?void 0:h.nextId(),void 0,function(a){l.push(a)})});m="["+l.join(",")+"]";this.assign(b,m);c(b||m);break;case q.ObjectExpression:l=[];p=!1;r(a.properties,function(a){a.computed&&(p=!0)});p?(b=b||this.nextId(),this.assign(b,"{}"),r(a.properties,function(a){a.computed?(g=h.nextId(),h.recurse(a.key,g)):g=a.key.type===q.Identifier?a.key.name:""+a.key.value;k=h.nextId();
h.recurse(a.value,k);h.assign(h.member(b,g,a.computed),k)})):(r(a.properties,function(b){h.recurse(b.value,a.constant?void 0:h.nextId(),void 0,function(a){l.push(h.escape(b.key.type===q.Identifier?b.key.name:""+b.key.value)+":"+a)})}),m="{"+l.join(",")+"}",this.assign(b,m));c(b||m);break;case q.ThisExpression:this.assign(b,"s");c(b||"s");break;case q.LocalsExpression:this.assign(b,"l");c(b||"l");break;case q.NGValueParameter:this.assign(b,"v"),c(b||"v")}},getHasOwnProperty:function(a,b){var d=a+"."+
b,c=this.current().own;c.hasOwnProperty(d)||(c[d]=this.nextId(!1,a+"&&("+this.escape(b)+" in "+a+")"));return c[d]},assign:function(a,b){if(a)return this.current().body.push(a,"=",b,";"),a},filter:function(a){this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0));return this.state.filters[a]},ifDefined:function(a,b){return"ifDefined("+a+","+this.escape(b)+")"},plus:function(a,b){return"plus("+a+","+b+")"},return_:function(a){this.current().body.push("return ",a,";")},if_:function(a,
b,d){if(!0===a)b();else{var c=this.current().body;c.push("if(",a,"){");b();c.push("}");d&&(c.push("else{"),d(),c.push("}"))}},not:function(a){return"!("+a+")"},isNull:function(a){return a+"==null"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){var d=/[^$_a-zA-Z0-9]/g;return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(b)?a+"."+b:a+'["'+b.replace(d,this.stringEscapeFn)+'"]'},computedMember:function(a,b){return a+"["+b+"]"},member:function(a,b,d){return d?this.computedMember(a,b):this.nonComputedMember(a,
b)},getStringValue:function(a){this.assign(a,"getStringValue("+a+")")},lazyRecurse:function(a,b,d,c,e,f){var g=this;return function(){g.recurse(a,b,d,c,e,f)}},lazyAssign:function(a,b){var d=this;return function(){d.assign(a,b)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(C(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(X(a))return a.toString();if(!0===a)return"true";if(!1===
a)return"false";if(null===a)return"null";if("undefined"===typeof a)return"undefined";throw Ya("esc");},nextId:function(a,b){var d="v"+this.state.nextId++;a||this.current().vars.push(d+(b?"="+b:""));return d},current:function(){return this.state[this.state.computing]}};Md.prototype={compile:function(a){var b=this;Z(a,b.$filter);var d,c;if(d=Kd(a))c=this.recurse(d);d=Id(a.body);var e;d&&(e=[],r(d,function(a,c){var d=b.recurse(a);d.isPure=a.isPure;a.input=d;e.push(d);a.watchId=c}));var f=[];r(a.body,
function(a){f.push(b.recurse(a.expression))});a=0===a.body.length?E:1===a.body.length?f[0]:function(a,b){var c;r(f,function(d){c=d(a,b)});return c};c&&(a.assign=function(a,b,d){return c(a,d,b)});e&&(a.inputs=e);return a},recurse:function(a,b,d){var c,e,f=this,g;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case q.Literal:return this.value(a.value,b);case q.UnaryExpression:return e=this.recurse(a.argument),this["unary"+a.operator](e,b);case q.BinaryExpression:return c=this.recurse(a.left),
e=this.recurse(a.right),this["binary"+a.operator](c,e,b);case q.LogicalExpression:return c=this.recurse(a.left),e=this.recurse(a.right),this["binary"+a.operator](c,e,b);case q.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case q.Identifier:return f.identifier(a.name,b,d);case q.MemberExpression:return c=this.recurse(a.object,!1,!!d),a.computed||(e=a.property.name),a.computed&&(e=this.recurse(a.property)),a.computed?this.computedMember(c,
e,b,d):this.nonComputedMember(c,e,b,d);case q.CallExpression:return g=[],r(a.arguments,function(a){g.push(f.recurse(a))}),a.filter&&(e=this.$filter(a.callee.name)),a.filter||(e=this.recurse(a.callee,!0)),a.filter?function(a,c,d,f){for(var p=[],n=0;n<g.length;++n)p.push(g[n](a,c,d,f));a=e.apply(void 0,p,f);return b?{context:void 0,name:void 0,value:a}:a}:function(a,c,d,f){var p=e(a,c,d,f),n;if(null!=p.value){n=[];for(var s=0;s<g.length;++s)n.push(g[s](a,c,d,f));n=p.value.apply(p.context,n)}return b?
{value:n}:n};case q.AssignmentExpression:return c=this.recurse(a.left,!0,1),e=this.recurse(a.right),function(a,d,f,g){var p=c(a,d,f,g);a=e(a,d,f,g);p.context[p.name]=a;return b?{value:a}:a};case q.ArrayExpression:return g=[],r(a.elements,function(a){g.push(f.recurse(a))}),function(a,c,d,e){for(var f=[],n=0;n<g.length;++n)f.push(g[n](a,c,d,e));return b?{value:f}:f};case q.ObjectExpression:return g=[],r(a.properties,function(a){a.computed?g.push({key:f.recurse(a.key),computed:!0,value:f.recurse(a.value)}):
g.push({key:a.key.type===q.Identifier?a.key.name:""+a.key.value,computed:!1,value:f.recurse(a.value)})}),function(a,c,d,e){for(var f={},n=0;n<g.length;++n)g[n].computed?f[g[n].key(a,c,d,e)]=g[n].value(a,c,d,e):f[g[n].key]=g[n].value(a,c,d,e);return b?{value:f}:f};case q.ThisExpression:return function(a){return b?{value:a}:a};case q.LocalsExpression:return function(a,c){return b?{value:c}:c};case q.NGValueParameter:return function(a,c,d){return b?{value:d}:d}}},"unary+":function(a,b){return function(d,
c,e,f){d=a(d,c,e,f);d=w(d)?+d:0;return b?{value:d}:d}},"unary-":function(a,b){return function(d,c,e,f){d=a(d,c,e,f);d=w(d)?-d:-0;return b?{value:d}:d}},"unary!":function(a,b){return function(d,c,e,f){d=!a(d,c,e,f);return b?{value:d}:d}},"binary+":function(a,b,d){return function(c,e,f,g){var k=a(c,e,f,g);c=b(c,e,f,g);k=Gd(k,c);return d?{value:k}:k}},"binary-":function(a,b,d){return function(c,e,f,g){var k=a(c,e,f,g);c=b(c,e,f,g);k=(w(k)?k:0)-(w(c)?c:0);return d?{value:k}:k}},"binary*":function(a,b,
d){return function(c,e,f,g){c=a(c,e,f,g)*b(c,e,f,g);return d?{value:c}:c}},"binary/":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)/b(c,e,f,g);return d?{value:c}:c}},"binary%":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)%b(c,e,f,g);return d?{value:c}:c}},"binary===":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)===b(c,e,f,g);return d?{value:c}:c}},"binary!==":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)!==b(c,e,f,g);return d?{value:c}:c}},"binary==":function(a,b,d){return function(c,
e,f,g){c=a(c,e,f,g)==b(c,e,f,g);return d?{value:c}:c}},"binary!=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)!=b(c,e,f,g);return d?{value:c}:c}},"binary<":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)<b(c,e,f,g);return d?{value:c}:c}},"binary>":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)>b(c,e,f,g);return d?{value:c}:c}},"binary<=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)<=b(c,e,f,g);return d?{value:c}:c}},"binary>=":function(a,b,d){return function(c,e,f,g){c=
a(c,e,f,g)>=b(c,e,f,g);return d?{value:c}:c}},"binary&&":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)&&b(c,e,f,g);return d?{value:c}:c}},"binary||":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)||b(c,e,f,g);return d?{value:c}:c}},"ternary?:":function(a,b,d,c){return function(e,f,g,k){e=a(e,f,g,k)?b(e,f,g,k):d(e,f,g,k);return c?{value:e}:e}},value:function(a,b){return function(){return b?{context:void 0,name:void 0,value:a}:a}},identifier:function(a,b,d){return function(c,e,f,g){c=
e&&a in e?e:c;d&&1!==d&&c&&null==c[a]&&(c[a]={});e=c?c[a]:void 0;return b?{context:c,name:a,value:e}:e}},computedMember:function(a,b,d,c){return function(e,f,g,k){var h=a(e,f,g,k),l,m;null!=h&&(l=b(e,f,g,k),l+="",c&&1!==c&&h&&!h[l]&&(h[l]={}),m=h[l]);return d?{context:h,name:l,value:m}:m}},nonComputedMember:function(a,b,d,c){return function(e,f,g,k){e=a(e,f,g,k);c&&1!==c&&e&&null==e[b]&&(e[b]={});f=null!=e?e[b]:void 0;return d?{context:e,name:b,value:f}:f}},inputs:function(a,b){return function(d,
c,e,f){return f?f[b]:a(d,c,e)}}};Nb.prototype={constructor:Nb,parse:function(a){a=this.getAst(a);var b=this.astCompiler.compile(a.ast),d=a.ast;b.literal=0===d.body.length||1===d.body.length&&(d.body[0].expression.type===q.Literal||d.body[0].expression.type===q.ArrayExpression||d.body[0].expression.type===q.ObjectExpression);b.constant=a.ast.constant;b.oneTime=a.oneTime;return b},getAst:function(a){var b=!1;a=a.trim();":"===a.charAt(0)&&":"===a.charAt(1)&&(b=!0,a=a.substring(2));return{ast:this.ast.ast(a),
oneTime:b}}};var Ea=F("$sce"),W={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Dc=/_([a-z])/g,Zg=F("$templateRequest"),$g=F("$timeout"),aa=z.document.createElement("a"),Qd=ga(z.location.href),Na;aa.href="http://[::1]";var ah="[::1]"===aa.hostname;Rd.$inject=["$document"];fd.$inject=["$provide"];var Yd=22,Xd=".",Fc="0";Sd.$inject=["$locale"];Ud.$inject=["$locale"];var lh={yyyy:ea("FullYear",4,0,!1,!0),yy:ea("FullYear",2,0,!0,!0),y:ea("FullYear",1,0,!1,!0),
MMMM:lb("Month"),MMM:lb("Month",!0),MM:ea("Month",2,1),M:ea("Month",1,1),LLLL:lb("Month",!1,!0),dd:ea("Date",2),d:ea("Date",1),HH:ea("Hours",2),H:ea("Hours",1),hh:ea("Hours",2,-12),h:ea("Hours",1,-12),mm:ea("Minutes",2),m:ea("Minutes",1),ss:ea("Seconds",2),s:ea("Seconds",1),sss:ea("Milliseconds",3),EEEE:lb("Day"),EEE:lb("Day",!0),a:function(a,b){return 12>a.getHours()?b.AMPMS[0]:b.AMPMS[1]},Z:function(a,b,d){a=-1*d;return a=(0<=a?"+":"")+(Pb(Math[0<a?"floor":"ceil"](a/60),2)+Pb(Math.abs(a%60),2))},
ww:$d(2),w:$d(1),G:Gc,GG:Gc,GGG:Gc,GGGG:function(a,b){return 0>=a.getFullYear()?b.ERANAMES[0]:b.ERANAMES[1]}},kh=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,jh=/^-?\d+$/;Td.$inject=["$locale"];var eh=ia(K),fh=ia(vb);Vd.$inject=["$parse"];var Re=ia({restrict:"E",compile:function(a,b){if(!b.href&&!b.xlinkHref)return function(a,b){if("a"===b[0].nodeName.toLowerCase()){var e="[object SVGAnimatedString]"===la.call(b.prop("href"))?"xlink:href":"href";
b.on("click",function(a){b.attr(e)||a.preventDefault()})}}}}),wb={};r(Hb,function(a,b){function d(a,d,e){a.$watch(e[c],function(a){e.$set(b,!!a)})}if("multiple"!==a){var c=xa("ng-"+b),e=d;"checked"===a&&(e=function(a,b,e){e.ngModel!==e[c]&&d(a,b,e)});wb[c]=function(){return{restrict:"A",priority:100,link:e}}}});r(vd,function(a,b){wb[b]=function(){return{priority:100,link:function(a,c,e){if("ngPattern"===b&&"/"===e.ngPattern.charAt(0)&&(c=e.ngPattern.match(ke))){e.$set("ngPattern",new RegExp(c[1],
c[2]));return}a.$watch(e[b],function(a){e.$set(b,a)})}}}});r(["src","srcset","href"],function(a){var b=xa("ng-"+a);wb[b]=["$sce",function(d){return{priority:99,link:function(c,e,f){var g=a,k=a;"href"===a&&"[object SVGAnimatedString]"===la.call(e.prop("href"))&&(k="xlinkHref",f.$attr[k]="xlink:href",g=null);f.$set(b,d.getTrustedMediaUrl(f[b]));f.$observe(b,function(b){b?(f.$set(k,b),wa&&g&&e.prop(g,f[k])):"href"===a&&f.$set(k,null)})}}}]});var mb={$addControl:E,$getControls:ia([]),$$renameControl:function(a,
b){a.$name=b},$removeControl:E,$setValidity:E,$setDirty:E,$setPristine:E,$setSubmitted:E,$$setSubmitted:E};Qb.$inject=["$element","$attrs","$scope","$animate","$interpolate"];Qb.prototype={$rollbackViewValue:function(){r(this.$$controls,function(a){a.$rollbackViewValue()})},$commitViewValue:function(){r(this.$$controls,function(a){a.$commitViewValue()})},$addControl:function(a){Ja(a.$name,"input");this.$$controls.push(a);a.$name&&(this[a.$name]=a);a.$$parentForm=this},$getControls:function(){return ja(this.$$controls)},
$$renameControl:function(a,b){var d=a.$name;this[d]===a&&delete this[d];this[b]=a;a.$name=b},$removeControl:function(a){a.$name&&this[a.$name]===a&&delete this[a.$name];r(this.$pending,function(b,d){this.$setValidity(d,null,a)},this);r(this.$error,function(b,d){this.$setValidity(d,null,a)},this);r(this.$$success,function(b,d){this.$setValidity(d,null,a)},this);cb(this.$$controls,a);a.$$parentForm=mb},$setDirty:function(){this.$$animate.removeClass(this.$$element,Za);this.$$animate.addClass(this.$$element,
Wb);this.$dirty=!0;this.$pristine=!1;this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Za,Wb+" ng-submitted");this.$dirty=!1;this.$pristine=!0;this.$submitted=!1;r(this.$$controls,function(a){a.$setPristine()})},$setUntouched:function(){r(this.$$controls,function(a){a.$setUntouched()})},$setSubmitted:function(){for(var a=this;a.$$parentForm&&a.$$parentForm!==mb;)a=a.$$parentForm;a.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,
"ng-submitted");this.$submitted=!0;r(this.$$controls,function(a){a.$$setSubmitted&&a.$$setSubmitted()})}};ce({clazz:Qb,set:function(a,b,d){var c=a[b];c?-1===c.indexOf(d)&&c.push(d):a[b]=[d]},unset:function(a,b,d){var c=a[b];c&&(cb(c,d),0===c.length&&delete a[b])}});var oe=function(a){return["$timeout","$parse",function(b,d){function c(a){return""===a?d('this[""]').assign:d(a).assign||E}return{name:"form",restrict:a?"EAC":"E",require:["form","^^?form"],controller:Qb,compile:function(d,f){d.addClass(Za).addClass(nb);
var g=f.name?"name":a&&f.ngForm?"ngForm":!1;return{pre:function(a,d,e,f){var p=f[0];if(!("action"in e)){var n=function(b){a.$apply(function(){p.$commitViewValue();p.$setSubmitted()});b.preventDefault()};d[0].addEventListener("submit",n);d.on("$destroy",function(){b(function(){d[0].removeEventListener("submit",n)},0,!1)})}(f[1]||p.$$parentForm).$addControl(p);var s=g?c(p.$name):E;g&&(s(a,p),e.$observe(g,function(b){p.$name!==b&&(s(a,void 0),p.$$parentForm.$$renameControl(p,b),s=c(p.$name),s(a,p))}));
d.on("$destroy",function(){p.$$parentForm.$removeControl(p);s(a,void 0);S(p,mb)})}}}}}]},Se=oe(),df=oe(!0),mh=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,xh=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,yh=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,
nh=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,pe=/^(\d{4,})-(\d{2})-(\d{2})$/,qe=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Oc=/^(\d{4,})-W(\d\d)$/,re=/^(\d{4,})-(\d\d)$/,se=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ee=T();r(["date","datetime-local","month","time","week"],function(a){ee[a]=!0});var te={text:function(a,b,d,c,e,f){Sa(a,b,d,c,e,f);Ic(c)},date:ob("date",pe,Rb(pe,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":ob("datetimelocal",qe,Rb(qe,"yyyy MM dd HH mm ss sss".split(" ")),
"yyyy-MM-ddTHH:mm:ss.sss"),time:ob("time",se,Rb(se,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:ob("week",Oc,function(a,b){if(ha(a))return a;if(C(a)){Oc.lastIndex=0;var d=Oc.exec(a);if(d){var c=+d[1],e=+d[2],f=d=0,g=0,k=0,h=Zd(c),e=7*(e-1);b&&(d=b.getHours(),f=b.getMinutes(),g=b.getSeconds(),k=b.getMilliseconds());return new Date(c,0,h.getDate()+e,d,f,g,k)}}return NaN},"yyyy-Www"),month:ob("month",re,Rb(re,["yyyy","MM"]),"yyyy-MM"),number:function(a,b,d,c,e,f,g,k){Jc(a,b,d,c,"number");fe(c);Sa(a,
b,d,c,e,f);var h;if(w(d.min)||d.ngMin){var l=d.min||k(d.ngMin)(a);h=na(l);c.$validators.min=function(a,b){return c.$isEmpty(b)||A(h)||b>=h};d.$observe("min",function(a){a!==l&&(h=na(a),l=a,c.$validate())})}if(w(d.max)||d.ngMax){var m=d.max||k(d.ngMax)(a),p=na(m);c.$validators.max=function(a,b){return c.$isEmpty(b)||A(p)||b<=p};d.$observe("max",function(a){a!==m&&(p=na(a),m=a,c.$validate())})}if(w(d.step)||d.ngStep){var n=d.step||k(d.ngStep)(a),s=na(n);c.$validators.step=function(a,b){return c.$isEmpty(b)||
A(s)||ge(b,h||0,s)};d.$observe("step",function(a){a!==n&&(s=na(a),n=a,c.$validate())})}},url:function(a,b,d,c,e,f){Sa(a,b,d,c,e,f);Ic(c);c.$validators.url=function(a,b){var d=a||b;return c.$isEmpty(d)||xh.test(d)}},email:function(a,b,d,c,e,f){Sa(a,b,d,c,e,f);Ic(c);c.$validators.email=function(a,b){var d=a||b;return c.$isEmpty(d)||yh.test(d)}},radio:function(a,b,d,c){var e=!d.ngTrim||"false"!==V(d.ngTrim);A(d.name)&&b.attr("name",++qb);b.on("change",function(a){var g;b[0].checked&&(g=d.value,e&&(g=
V(g)),c.$setViewValue(g,a&&a.type))});c.$render=function(){var a=d.value;e&&(a=V(a));b[0].checked=a===c.$viewValue};d.$observe("value",c.$render)},range:function(a,b,d,c,e,f){function g(a,c){b.attr(a,d[a]);var e=d[a];d.$observe(a,function(a){a!==e&&(e=a,c(a))})}function k(a){p=na(a);Y(c.$modelValue)||(m?(a=b.val(),p>a&&(a=p,b.val(a)),c.$setViewValue(a)):c.$validate())}function h(a){n=na(a);Y(c.$modelValue)||(m?(a=b.val(),n<a&&(b.val(n),a=n<p?p:n),c.$setViewValue(a)):c.$validate())}function l(a){s=
na(a);Y(c.$modelValue)||(m?c.$viewValue!==b.val()&&c.$setViewValue(b.val()):c.$validate())}Jc(a,b,d,c,"range");fe(c);Sa(a,b,d,c,e,f);var m=c.$$hasNativeValidators&&"range"===b[0].type,p=m?0:void 0,n=m?100:void 0,s=m?1:void 0,r=b[0].validity;a=w(d.min);e=w(d.max);f=w(d.step);var q=c.$render;c.$render=m&&w(r.rangeUnderflow)&&w(r.rangeOverflow)?function(){q();c.$setViewValue(b.val())}:q;a&&(p=na(d.min),c.$validators.min=m?function(){return!0}:function(a,b){return c.$isEmpty(b)||A(p)||b>=p},g("min",k));
e&&(n=na(d.max),c.$validators.max=m?function(){return!0}:function(a,b){return c.$isEmpty(b)||A(n)||b<=n},g("max",h));f&&(s=na(d.step),c.$validators.step=m?function(){return!r.stepMismatch}:function(a,b){return c.$isEmpty(b)||A(s)||ge(b,p||0,s)},g("step",l))},checkbox:function(a,b,d,c,e,f,g,k){var h=he(k,a,"ngTrueValue",d.ngTrueValue,!0),l=he(k,a,"ngFalseValue",d.ngFalseValue,!1);b.on("change",function(a){c.$setViewValue(b[0].checked,a&&a.type)});c.$render=function(){b[0].checked=c.$viewValue};c.$isEmpty=
function(a){return!1===a};c.$formatters.push(function(a){return va(a,h)});c.$parsers.push(function(a){return a?h:l})},hidden:E,button:E,submit:E,reset:E,file:E},$c=["$browser","$sniffer","$filter","$parse",function(a,b,d,c){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,f,g,k){k[0]&&(te[K(g.type)]||te.text)(e,f,g,k[0],b,a,d,c)}}}}],Af=function(){var a={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(a){this.setAttribute("value",a)}};
return{restrict:"E",priority:200,compile:function(b,d){if("hidden"===K(d.type))return{pre:function(b,d,f,g){b=d[0];b.parentNode&&b.parentNode.insertBefore(b,b.nextSibling);Object.defineProperty&&Object.defineProperty(b,"value",a)}}}}},zh=/^(true|false|\d+)$/,xf=function(){function a(a,d,c){var e=w(c)?c:9===wa?"":null;a.prop("value",e);d.$set("value",c)}return{restrict:"A",priority:100,compile:function(b,d){return zh.test(d.ngValue)?function(b,d,f){b=b.$eval(f.ngValue);a(d,f,b)}:function(b,d,f){b.$watch(f.ngValue,
function(b){a(d,f,b)})}}}},We=["$compile",function(a){return{restrict:"AC",compile:function(b){a.$$addBindingClass(b);return function(b,c,e){a.$$addBindingInfo(c,e.ngBind);c=c[0];b.$watch(e.ngBind,function(a){c.textContent=jc(a)})}}}}],Ye=["$interpolate","$compile",function(a,b){return{compile:function(d){b.$$addBindingClass(d);return function(c,d,f){c=a(d.attr(f.$attr.ngBindTemplate));b.$$addBindingInfo(d,c.expressions);d=d[0];f.$observe("ngBindTemplate",function(a){d.textContent=A(a)?"":a})}}}}],
Xe=["$sce","$parse","$compile",function(a,b,d){return{restrict:"A",compile:function(c,e){var f=b(e.ngBindHtml),g=b(e.ngBindHtml,function(b){return a.valueOf(b)});d.$$addBindingClass(c);return function(b,c,e){d.$$addBindingInfo(c,e.ngBindHtml);b.$watch(g,function(){var d=f(b);c.html(a.getTrustedHtml(d)||"")})}}}}],wf=ia({restrict:"A",require:"ngModel",link:function(a,b,d,c){c.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),Ze=Lc("",!0),af=Lc("Odd",0),$e=Lc("Even",1),bf=Ra({compile:function(a,
b){b.$set("ngCloak",void 0);a.removeClass("ng-cloak")}}),cf=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ed={},Ah={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var b=xa("ng-"+a);ed[b]=["$parse","$rootScope","$exceptionHandler",function(d,c,e){return sd(d,c,e,b,a,Ah[a])}]});var ff=["$animate","$compile",function(a,b){return{multiElement:!0,
transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(d,c,e,f,g){var k,h,l;d.$watch(e.ngIf,function(d){d?h||g(function(d,f){h=f;d[d.length++]=b.$$createComment("end ngIf",e.ngIf);k={clone:d};a.enter(d,c.parent(),c)}):(l&&(l.remove(),l=null),h&&(h.$destroy(),h=null),k&&(l=ub(k.clone),a.leave(l).done(function(a){!1!==a&&(l=null)}),k=null))})}}}],gf=["$templateRequest","$anchorScroll","$animate",function(a,b,d){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",
controller:ca.noop,compile:function(c,e){var f=e.ngInclude||e.src,g=e.onload||"",k=e.autoscroll;return function(c,e,m,p,n){var r=0,q,t,x,v=function(){t&&(t.remove(),t=null);q&&(q.$destroy(),q=null);x&&(d.leave(x).done(function(a){!1!==a&&(t=null)}),t=x,x=null)};c.$watch(f,function(f){var m=function(a){!1===a||!w(k)||k&&!c.$eval(k)||b()},t=++r;f?(a(f,!0).then(function(a){if(!c.$$destroyed&&t===r){var b=c.$new();p.template=a;a=n(b,function(a){v();d.enter(a,null,e).done(m)});q=b;x=a;q.$emit("$includeContentLoaded",
f);c.$eval(g)}},function(){c.$$destroyed||t!==r||(v(),c.$emit("$includeContentError",f))}),c.$emit("$includeContentRequested",f)):(v(),p.template=null)})}}}}],zf=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(b,d,c,e){la.call(d[0]).match(/SVG/)?(d.empty(),a(gd(e.template,z.document).childNodes)(b,function(a){d.append(a)},{futureParentElement:d})):(d.html(e.template),a(d.contents())(b))}}}],hf=Ra({priority:450,compile:function(){return{pre:function(a,
b,d){a.$eval(d.ngInit)}}}}),vf=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,b,d,c){var e=d.ngList||", ",f="false"!==d.ngTrim,g=f?V(e):e;c.$parsers.push(function(a){if(!A(a)){var b=[];a&&r(a.split(g),function(a){a&&b.push(f?V(a):a)});return b}});c.$formatters.push(function(a){if(H(a))return a.join(e)});c.$isEmpty=function(a){return!a||!a.length}}}},nb="ng-valid",be="ng-invalid",Za="ng-pristine",Wb="ng-dirty",pb=F("ngModel");Sb.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" ");
Sb.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var a=this.$$parse(this.$$attr.ngModel+"()"),b=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(b){var c=this.$$parsedNgModel(b);B(c)&&(c=a(b));return c};this.$$ngModelSet=function(a,c){B(this.$$parsedNgModel(a))?b(a,{$$$p:c}):this.$$parsedNgModelAssign(a,c)}}else if(!this.$$parsedNgModel.assign)throw pb("nonassign",this.$$attr.ngModel,Aa(this.$$element));},$render:E,$isEmpty:function(a){return A(a)||
""===a||null===a||a!==a},$$updateEmptyClasses:function(a){this.$isEmpty(a)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1;this.$pristine=!0;this.$$animate.removeClass(this.$$element,Wb);this.$$animate.addClass(this.$$element,Za)},$setDirty:function(){this.$dirty=!0;this.$pristine=!1;this.$$animate.removeClass(this.$$element,
Za);this.$$animate.addClass(this.$$element,Wb);this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1;this.$untouched=!0;this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0;this.$untouched=!1;this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce);this.$viewValue=this.$$lastCommittedViewValue;this.$render()},$validate:function(){if(!Y(this.$modelValue)){var a=
this.$$lastCommittedViewValue,b=this.$$rawModelValue,d=this.$valid,c=this.$modelValue,e=this.$options.getOption("allowInvalid"),f=this;this.$$runValidators(b,a,function(a){e||d===a||(f.$modelValue=a?b:void 0,f.$modelValue!==c&&f.$$writeModelToScope())})}},$$runValidators:function(a,b,d){function c(){var c=!0;r(h.$validators,function(d,e){var g=Boolean(d(a,b));c=c&&g;f(e,g)});return c?!0:(r(h.$asyncValidators,function(a,b){f(b,null)}),!1)}function e(){var c=[],d=!0;r(h.$asyncValidators,function(e,
g){var h=e(a,b);if(!h||!B(h.then))throw pb("nopromise",h);f(g,void 0);c.push(h.then(function(){f(g,!0)},function(){d=!1;f(g,!1)}))});c.length?h.$$q.all(c).then(function(){g(d)},E):g(!0)}function f(a,b){k===h.$$currentValidationRunId&&h.$setValidity(a,b)}function g(a){k===h.$$currentValidationRunId&&d(a)}this.$$currentValidationRunId++;var k=this.$$currentValidationRunId,h=this;(function(){var a=h.$$parserName;if(A(h.$$parserValid))f(a,null);else return h.$$parserValid||(r(h.$validators,function(a,
b){f(b,null)}),r(h.$asyncValidators,function(a,b){f(b,null)})),f(a,h.$$parserValid),h.$$parserValid;return!0})()?c()?e():g(!1):g(!1)},$commitViewValue:function(){var a=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce);if(this.$$lastCommittedViewValue!==a||""===a&&this.$$hasNativeValidators)this.$$updateEmptyClasses(a),this.$$lastCommittedViewValue=a,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()},$$parseAndValidate:function(){var a=this.$$lastCommittedViewValue,b=this;this.$$parserValid=
A(a)?void 0:!0;this.$setValidity(this.$$parserName,null);this.$$parserName="parse";if(this.$$parserValid)for(var d=0;d<this.$parsers.length;d++)if(a=this.$parsers[d](a),A(a)){this.$$parserValid=!1;break}Y(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var c=this.$modelValue,e=this.$options.getOption("allowInvalid");this.$$rawModelValue=a;e&&(this.$modelValue=a,b.$modelValue!==c&&b.$$writeModelToScope());this.$$runValidators(a,this.$$lastCommittedViewValue,function(d){e||(b.$modelValue=
d?a:void 0,b.$modelValue!==c&&b.$$writeModelToScope())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue);r(this.$viewChangeListeners,function(a){try{a()}catch(b){this.$$exceptionHandler(b)}},this)},$setViewValue:function(a,b){this.$viewValue=a;this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(b)},$$debounceViewValueCommit:function(a){var b=this.$options.getOption("debounce");X(b[a])?b=b[a]:X(b["default"])&&-1===this.$options.getOption("updateOn").indexOf(a)?
b=b["default"]:X(b["*"])&&(b=b["*"]);this.$$timeout.cancel(this.$$pendingDebounce);var d=this;0<b?this.$$pendingDebounce=this.$$timeout(function(){d.$commitViewValue()},b):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){d.$commitViewValue()})},$overrideModelOptions:function(a){this.$options=this.$options.createChild(a);this.$$setUpdateOnEvents()},$processModelValue:function(){var a=this.$$format();this.$viewValue!==a&&(this.$$updateEmptyClasses(a),this.$viewValue=this.$$lastCommittedViewValue=
a,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,E))},$$format:function(){for(var a=this.$formatters,b=a.length,d=this.$modelValue;b--;)d=a[b](d);return d},$$setModelValue:function(a){this.$modelValue=this.$$rawModelValue=a;this.$$parserValid=void 0;this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler);if(this.$$updateEvents=this.$options.getOption("updateOn"))this.$$element.on(this.$$updateEvents,
this.$$updateEventHandler)},$$updateEventHandler:function(a){this.$$debounceViewValueCommit(a&&a.type)}};ce({clazz:Sb,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]}});var uf=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Sb,priority:1,compile:function(b){b.addClass(Za).addClass("ng-untouched").addClass(nb);return{pre:function(a,b,e,f){var g=f[0];b=f[1]||g.$$parentForm;if(f=f[2])g.$options=f.$options;g.$$initGetterSetters();b.$addControl(g);
e.$observe("name",function(a){g.$name!==a&&g.$$parentForm.$$renameControl(g,a)});a.$on("$destroy",function(){g.$$parentForm.$removeControl(g)})},post:function(b,c,e,f){function g(){k.$setTouched()}var k=f[0];k.$$setUpdateOnEvents();c.on("blur",function(){k.$touched||(a.$$phase?b.$evalAsync(g):b.$apply(g))})}}}}}],Tb,Bh=/(\s+|^)default(\s+|$)/;Mc.prototype={getOption:function(a){return this.$$options[a]},createChild:function(a){var b=!1;a=S({},a);r(a,function(d,c){"$inherit"===d?"*"===c?b=!0:(a[c]=
this.$$options[c],"updateOn"===c&&(a.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===c&&(a.updateOnDefault=!1,a[c]=V(d.replace(Bh,function(){a.updateOnDefault=!0;return" "})))},this);b&&(delete a["*"],ie(a,this.$$options));ie(a,Tb.$$options);return new Mc(a)}};Tb=new Mc({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var yf=function(){function a(a,d){this.$$attrs=a;this.$$scope=d}a.$inject=["$attrs","$scope"];a.prototype={$onInit:function(){var a=
this.parentCtrl?this.parentCtrl.$options:Tb,d=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=a.createChild(d)}};return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:a}},jf=Ra({terminal:!0,priority:1E3}),Ch=F("ngOptions"),Dh=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,
sf=["$compile","$document","$parse",function(a,b,d){function c(a,b,c){function e(a,b,c,d,f){this.selectValue=a;this.viewValue=b;this.label=c;this.group=d;this.disabled=f}function f(a){var b;if(!r&&za(a))b=a;else{b=[];for(var c in a)a.hasOwnProperty(c)&&"$"!==c.charAt(0)&&b.push(c)}return b}var p=a.match(Dh);if(!p)throw Ch("iexp",a,Aa(b));var n=p[5]||p[7],r=p[6];a=/ as /.test(p[0])&&p[1];var q=p[9];b=d(p[2]?p[1]:n);var t=a&&d(a)||b,w=q&&d(q),v=q?function(a,b){return w(c,b)}:function(a){return La(a)},
x=function(a,b){return v(a,B(a,b))},A=d(p[2]||p[1]),y=d(p[3]||""),J=d(p[4]||""),I=d(p[8]),z={},B=r?function(a,b){z[r]=b;z[n]=a;return z}:function(a){z[n]=a;return z};return{trackBy:q,getTrackByValue:x,getWatchables:d(I,function(a){var b=[];a=a||[];for(var d=f(a),e=d.length,g=0;g<e;g++){var k=a===d?g:d[g],l=a[k],k=B(l,k),l=v(l,k);b.push(l);if(p[2]||p[1])l=A(c,k),b.push(l);p[4]&&(k=J(c,k),b.push(k))}return b}),getOptions:function(){for(var a=[],b={},d=I(c)||[],g=f(d),k=g.length,n=0;n<k;n++){var p=d===
g?n:g[n],r=B(d[p],p),s=t(c,r),p=v(s,r),w=A(c,r),z=y(c,r),r=J(c,r),s=new e(p,s,w,z,r);a.push(s);b[p]=s}return{items:a,selectValueMap:b,getOptionFromViewValue:function(a){return b[x(a)]},getViewValueFromOption:function(a){return q?Ia(a.viewValue):a.viewValue}}}}}var e=z.document.createElement("option"),f=z.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(a,b,c,d){d[0].registerOption=E},post:function(d,k,h,l){function m(a){var b=(a=v.getOptionFromViewValue(a))&&
a.element;b&&!b.selected&&(b.selected=!0);return a}function p(a,b){a.element=b;b.disabled=a.disabled;a.label!==b.label&&(b.label=a.label,b.textContent=a.label);b.value=a.selectValue}var n=l[0],q=l[1],A=h.multiple;l=0;for(var t=k.children(),z=t.length;l<z;l++)if(""===t[l].value){n.hasEmptyOption=!0;n.emptyOption=t.eq(l);break}k.empty();l=!!n.emptyOption;x(e.cloneNode(!1)).val("?");var v,B=c(h.ngOptions,k,d),C=b[0].createDocumentFragment();n.generateUnknownOptionValue=function(a){return"?"};A?(n.writeValue=
function(a){if(v){var b=a&&a.map(m)||[];v.items.forEach(function(a){a.element.selected&&-1===Array.prototype.indexOf.call(b,a)&&(a.element.selected=!1)})}},n.readValue=function(){var a=k.val()||[],b=[];r(a,function(a){(a=v.selectValueMap[a])&&!a.disabled&&b.push(v.getViewValueFromOption(a))});return b},B.trackBy&&d.$watchCollection(function(){if(H(q.$viewValue))return q.$viewValue.map(function(a){return B.getTrackByValue(a)})},function(){q.$render()})):(n.writeValue=function(a){if(v){var b=k[0].options[k[0].selectedIndex],
c=v.getOptionFromViewValue(a);b&&b.removeAttribute("selected");c?(k[0].value!==c.selectValue&&(n.removeUnknownOption(),k[0].value=c.selectValue,c.element.selected=!0),c.element.setAttribute("selected","selected")):n.selectUnknownOrEmptyOption(a)}},n.readValue=function(){var a=v.selectValueMap[k.val()];return a&&!a.disabled?(n.unselectEmptyOption(),n.removeUnknownOption(),v.getViewValueFromOption(a)):null},B.trackBy&&d.$watch(function(){return B.getTrackByValue(q.$viewValue)},function(){q.$render()}));
l&&(a(n.emptyOption)(d),k.prepend(n.emptyOption),8===n.emptyOption[0].nodeType?(n.hasEmptyOption=!1,n.registerOption=function(a,b){""===b.val()&&(n.hasEmptyOption=!0,n.emptyOption=b,n.emptyOption.removeClass("ng-scope"),q.$render(),b.on("$destroy",function(){var a=n.$isEmptyOptionSelected();n.hasEmptyOption=!1;n.emptyOption=void 0;a&&q.$render()}))}):n.emptyOption.removeClass("ng-scope"));d.$watchCollection(B.getWatchables,function(){var a=v&&n.readValue();if(v)for(var b=v.items.length-1;0<=b;b--){var c=
v.items[b];w(c.group)?Gb(c.element.parentNode):Gb(c.element)}v=B.getOptions();var d={};v.items.forEach(function(a){var b;if(w(a.group)){b=d[a.group];b||(b=f.cloneNode(!1),C.appendChild(b),b.label=null===a.group?"null":a.group,d[a.group]=b);var c=e.cloneNode(!1);b.appendChild(c);p(a,c)}else b=e.cloneNode(!1),C.appendChild(b),p(a,b)});k[0].appendChild(C);q.$render();q.$isEmpty(a)||(b=n.readValue(),(B.trackBy||A?va(a,b):a===b)||(q.$setViewValue(b),q.$render()))})}}}}],kf=["$locale","$interpolate","$log",
function(a,b,d){var c=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(f,g,k){function h(a){g.text(a||"")}var l=k.count,m=k.$attr.when&&g.attr(k.$attr.when),p=k.offset||0,n=f.$eval(m)||{},q={},w=b.startSymbol(),t=b.endSymbol(),x=w+l+"-"+p+t,v=ca.noop,z;r(k,function(a,b){var c=e.exec(b);c&&(c=(c[1]?"-":"")+K(c[2]),n[c]=g.attr(k.$attr[b]))});r(n,function(a,d){q[d]=b(a.replace(c,x))});f.$watch(l,function(b){var c=parseFloat(b),e=Y(c);e||c in n||(c=a.pluralCat(c-p));c===z||e&&Y(z)||(v(),e=q[c],A(e)?
(null!=b&&d.debug("ngPluralize: no rule defined for '"+c+"' in "+m),v=E,h()):v=f.$watch(e,h),z=c)})}}}],ue=F("ngRef"),lf=["$parse",function(a){return{priority:-1,restrict:"A",compile:function(b,d){var c=xa(ua(b)),e=a(d.ngRef),f=e.assign||function(){throw ue("nonassign",d.ngRef);};return function(a,b,h){var l;if(h.hasOwnProperty("ngRefRead"))if("$element"===h.ngRefRead)l=b;else{if(l=b.data("$"+h.ngRefRead+"Controller"),!l)throw ue("noctrl",h.ngRefRead,d.ngRef);}else l=b.data("$"+c+"Controller");l=
l||b;f(a,l);b.on("$destroy",function(){e(a)===l&&f(a,null)})}}}}],mf=["$parse","$animate","$compile",function(a,b,d){var c=F("ngRepeat"),e=function(a,b,c,d,e,f,g){a[c]=d;e&&(a[e]=f);a.$index=b;a.$first=0===b;a.$last=b===g-1;a.$middle=!(a.$first||a.$last);a.$odd=!(a.$even=0===(b&1))},f=function(a,b,c){return La(c)},g=function(a,b){return b};return{restrict:"A",multiElement:!0,transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,compile:function(k,h){var l=h.ngRepeat,m=d.$$createComment("end ngRepeat",
l),p=l.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw c("iexp",l);var n=p[1],q=p[2],w=p[3],t=p[4],p=n.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/);if(!p)throw c("iidexp",n);var x=p[3]||p[1],v=p[2];if(w&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(w)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(w)))throw c("badident",w);var A;if(t){var z={$id:La},y=a(t);A=function(a,b,c,d){v&&
(z[v]=b);z[x]=c;z.$index=d;return y(a,z)}}return function(a,d,h,k,n){var p=T();a.$watchCollection(q,function(h){var k,q,t=d[0],s,y=T(),B,C,E,D,H,F,K;w&&(a[w]=h);if(za(h))H=h,q=A||f;else for(K in q=A||g,H=[],h)ta.call(h,K)&&"$"!==K.charAt(0)&&H.push(K);B=H.length;K=Array(B);for(k=0;k<B;k++)if(C=h===H?k:H[k],E=h[C],D=q(a,C,E,k),p[D])F=p[D],delete p[D],y[D]=F,K[k]=F;else{if(y[D])throw r(K,function(a){a&&a.scope&&(p[a.id]=a)}),c("dupes",l,D,E);K[k]={id:D,scope:void 0,clone:void 0};y[D]=!0}z&&(z[x]=void 0);
for(s in p){F=p[s];D=ub(F.clone);b.leave(D);if(D[0].parentNode)for(k=0,q=D.length;k<q;k++)D[k].$$NG_REMOVED=!0;F.scope.$destroy()}for(k=0;k<B;k++)if(C=h===H?k:H[k],E=h[C],F=K[k],F.scope){s=t;do s=s.nextSibling;while(s&&s.$$NG_REMOVED);F.clone[0]!==s&&b.move(ub(F.clone),null,t);t=F.clone[F.clone.length-1];e(F.scope,k,x,E,v,C,B)}else n(function(a,c){F.scope=c;var d=m.cloneNode(!1);a[a.length++]=d;b.enter(a,null,t);t=d;F.clone=a;y[F.id]=F;e(F.scope,k,x,E,v,C,B)});p=y})}}}}],nf=["$animate",function(a){return{restrict:"A",
multiElement:!0,link:function(b,d,c){b.$watch(c.ngShow,function(b){a[b?"removeClass":"addClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ef=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngHide,function(b){a[b?"addClass":"removeClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],of=Ra(function(a,b,d){a.$watchCollection(d.ngStyle,function(a,d){d&&a!==d&&r(d,function(a,c){b.css(c,"")});a&&b.css(a)})}),pf=["$animate","$compile",function(a,
b){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(d,c,e,f){var g=[],k=[],h=[],l=[],m=function(a,b){return function(c){!1!==c&&a.splice(b,1)}};d.$watch(e.ngSwitch||e.on,function(c){for(var d,e;h.length;)a.cancel(h.pop());d=0;for(e=l.length;d<e;++d){var q=ub(k[d].clone);l[d].$destroy();(h[d]=a.leave(q)).done(m(h,d))}k.length=0;l.length=0;(g=f.cases["!"+c]||f.cases["?"])&&r(g,function(c){c.transclude(function(d,e){l.push(e);var f=c.element;d[d.length++]=b.$$createComment("end ngSwitchWhen");
k.push({clone:d});a.enter(d,f.parent(),f)})})})}}}],qf=Ra({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){a=d.ngSwitchWhen.split(d.ngSwitchWhenSeparator).sort().filter(function(a,b,c){return c[b-1]!==a});r(a,function(a){c.cases["!"+a]=c.cases["!"+a]||[];c.cases["!"+a].push({transclude:e,element:b})})}}),rf=Ra({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){c.cases["?"]=c.cases["?"]||[];c.cases["?"].push({transclude:e,
element:b})}}),Eh=F("ngTransclude"),tf=["$compile",function(a){return{restrict:"EAC",compile:function(b){var d=a(b.contents());b.empty();return function(a,b,f,g,k){function h(){d(a,function(a){b.append(a)})}if(!k)throw Eh("orphan",Aa(b));f.ngTransclude===f.$attr.ngTransclude&&(f.ngTransclude="");f=f.ngTransclude||f.ngTranscludeSlot;k(function(a,c){var d;if(d=a.length)a:{d=0;for(var f=a.length;d<f;d++){var g=a[d];if(g.nodeType!==Pa||g.nodeValue.trim()){d=!0;break a}}d=void 0}d?b.append(a):(h(),c.$destroy())},
null,f);f&&!k.isSlotFilled(f)&&h()}}}}],Te=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,d){"text/ng-template"===d.type&&a.put(d.id,b[0].text)}}}],Fh={$setViewValue:E,$render:E},Gh=["$element","$scope",function(a,b){function d(){g||(g=!0,b.$$postDigest(function(){g=!1;e.ngModelCtrl.$render()}))}function c(a){k||(k=!0,b.$$postDigest(function(){b.$$destroyed||(k=!1,e.ngModelCtrl.$setViewValue(e.readValue()),a&&e.ngModelCtrl.$render())}))}var e=this,f=new Ib;e.selectValueMap=
{};e.ngModelCtrl=Fh;e.multiple=!1;e.unknownOption=x(z.document.createElement("option"));e.hasEmptyOption=!1;e.emptyOption=void 0;e.renderUnknownOption=function(b){b=e.generateUnknownOptionValue(b);e.unknownOption.val(b);a.prepend(e.unknownOption);Oa(e.unknownOption,!0);a.val(b)};e.updateUnknownOption=function(b){b=e.generateUnknownOptionValue(b);e.unknownOption.val(b);Oa(e.unknownOption,!0);a.val(b)};e.generateUnknownOptionValue=function(a){return"? "+La(a)+" ?"};e.removeUnknownOption=function(){e.unknownOption.parent()&&
e.unknownOption.remove()};e.selectEmptyOption=function(){e.emptyOption&&(a.val(""),Oa(e.emptyOption,!0))};e.unselectEmptyOption=function(){e.hasEmptyOption&&Oa(e.emptyOption,!1)};b.$on("$destroy",function(){e.renderUnknownOption=E});e.readValue=function(){var b=a.val(),b=b in e.selectValueMap?e.selectValueMap[b]:b;return e.hasOption(b)?b:null};e.writeValue=function(b){var c=a[0].options[a[0].selectedIndex];c&&Oa(x(c),!1);e.hasOption(b)?(e.removeUnknownOption(),c=La(b),a.val(c in e.selectValueMap?
c:b),Oa(x(a[0].options[a[0].selectedIndex]),!0)):e.selectUnknownOrEmptyOption(b)};e.addOption=function(a,b){if(8!==b[0].nodeType){Ja(a,'"option value"');""===a&&(e.hasEmptyOption=!0,e.emptyOption=b);var c=f.get(a)||0;f.set(a,c+1);d()}};e.removeOption=function(a){var b=f.get(a);b&&(1===b?(f.delete(a),""===a&&(e.hasEmptyOption=!1,e.emptyOption=void 0)):f.set(a,b-1))};e.hasOption=function(a){return!!f.get(a)};e.$hasEmptyOption=function(){return e.hasEmptyOption};e.$isUnknownOptionSelected=function(){return a[0].options[0]===
e.unknownOption[0]};e.$isEmptyOptionSelected=function(){return e.hasEmptyOption&&a[0].options[a[0].selectedIndex]===e.emptyOption[0]};e.selectUnknownOrEmptyOption=function(a){null==a&&e.emptyOption?(e.removeUnknownOption(),e.selectEmptyOption()):e.unknownOption.parent().length?e.updateUnknownOption(a):e.renderUnknownOption(a)};var g=!1,k=!1;e.registerOption=function(a,b,f,g,k){if(f.$attr.ngValue){var q,r;f.$observe("value",function(a){var d,f=b.prop("selected");w(r)&&(e.removeOption(q),delete e.selectValueMap[r],
d=!0);r=La(a);q=a;e.selectValueMap[r]=a;e.addOption(a,b);b.attr("value",r);d&&f&&c()})}else g?f.$observe("value",function(a){e.readValue();var d,f=b.prop("selected");w(q)&&(e.removeOption(q),d=!0);q=a;e.addOption(a,b);d&&f&&c()}):k?a.$watch(k,function(a,d){f.$set("value",a);var g=b.prop("selected");d!==a&&e.removeOption(d);e.addOption(a,b);d&&g&&c()}):e.addOption(f.value,b);f.$observe("disabled",function(a){if("true"===a||a&&b.prop("selected"))e.multiple?c(!0):(e.ngModelCtrl.$setViewValue(null),e.ngModelCtrl.$render())});
b.on("$destroy",function(){var a=e.readValue(),b=f.value;e.removeOption(b);d();(e.multiple&&a&&-1!==a.indexOf(b)||a===b)&&c(!0)})}}],Ue=function(){return{restrict:"E",require:["select","?ngModel"],controller:Gh,priority:1,link:{pre:function(a,b,d,c){var e=c[0],f=c[1];if(f){if(e.ngModelCtrl=f,b.on("change",function(){e.removeUnknownOption();a.$apply(function(){f.$setViewValue(e.readValue())})}),d.multiple){e.multiple=!0;e.readValue=function(){var a=[];r(b.find("option"),function(b){b.selected&&!b.disabled&&
(b=b.value,a.push(b in e.selectValueMap?e.selectValueMap[b]:b))});return a};e.writeValue=function(a){r(b.find("option"),function(b){var c=!!a&&(-1!==Array.prototype.indexOf.call(a,b.value)||-1!==Array.prototype.indexOf.call(a,e.selectValueMap[b.value]));c!==b.selected&&Oa(x(b),c)})};var g,k=NaN;a.$watch(function(){k!==f.$viewValue||va(g,f.$viewValue)||(g=ja(f.$viewValue),f.$render());k=f.$viewValue});f.$isEmpty=function(a){return!a||0===a.length}}}else e.registerOption=E},post:function(a,b,d,c){var e=
c[1];if(e){var f=c[0];e.$render=function(){f.writeValue(e.$viewValue)}}}}}},Ve=["$interpolate",function(a){return{restrict:"E",priority:100,compile:function(b,d){var c,e;w(d.ngValue)||(w(d.value)?c=a(d.value,!0):(e=a(b.text(),!0))||d.$set("value",b.text()));return function(a,b,d){var h=b.parent();(h=h.data("$selectController")||h.parent().data("$selectController"))&&h.registerOption(a,b,d,c,e)}}}}],bd=["$parse",function(a){return{restrict:"A",require:"?ngModel",link:function(b,d,c,e){if(e){var f=
c.hasOwnProperty("required")||a(c.ngRequired)(b);c.ngRequired||(c.required=!0);e.$validators.required=function(a,b){return!f||!e.$isEmpty(b)};c.$observe("required",function(a){f!==a&&(f=a,e.$validate())})}}}}],ad=["$parse",function(a){return{restrict:"A",require:"?ngModel",compile:function(b,d){var c,e;d.ngPattern&&(c=d.ngPattern,e="/"===d.ngPattern.charAt(0)&&ke.test(d.ngPattern)?function(){return d.ngPattern}:a(d.ngPattern));return function(a,b,d,h){if(h){var l=d.pattern;d.ngPattern?l=e(a):c=d.pattern;
var m=je(l,c,b);d.$observe("pattern",function(a){var d=m;m=je(a,c,b);(d&&d.toString())!==(m&&m.toString())&&h.$validate()});h.$validators.pattern=function(a,b){return h.$isEmpty(b)||A(m)||m.test(b)}}}}}}],dd=["$parse",function(a){return{restrict:"A",require:"?ngModel",link:function(b,d,c,e){if(e){var f=c.maxlength||a(c.ngMaxlength)(b),g=Ub(f);c.$observe("maxlength",function(a){f!==a&&(g=Ub(a),f=a,e.$validate())});e.$validators.maxlength=function(a,b){return 0>g||e.$isEmpty(b)||b.length<=g}}}}}],cd=
["$parse",function(a){return{restrict:"A",require:"?ngModel",link:function(b,d,c,e){if(e){var f=c.minlength||a(c.ngMinlength)(b),g=Ub(f)||-1;c.$observe("minlength",function(a){f!==a&&(g=Ub(a)||-1,f=a,e.$validate())});e.$validators.minlength=function(a,b){return e.$isEmpty(b)||b.length>=g}}}}}];z.angular.bootstrap?z.console&&console.log("WARNING: Tried to load AngularJS more than once."):(Je(),Oe(ca),ca.module("ngLocale",[],["$provide",function(a){function b(a){a+="";var b=a.indexOf(".");return-1==
b?0:a.length-b-1}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),
WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},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:"-\u00a4",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(a,
c){var e=a|0,f=c;void 0===f&&(f=Math.min(b(a),3));Math.pow(10,f);return 1==e&&0==f?"one":"other"}})}]),x(function(){Ee(z.document,Wc)}))})(window);!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'));

;;;;(function(window){try{new MouseEvent('test');return false;}catch(e){var MouseEvent=function(eventType,params){params=params||{bubbles:false,cancelable:false};var mouseEvent=document.createEvent('MouseEvent');mouseEvent.initMouseEvent(eventType,params.bubbles,params.cancelable,window,0,0,0,0,0,false,false,false,false,0,null);return mouseEvent;}
MouseEvent.prototype=Event.prototype;window.MouseEvent=MouseEvent;}})(window);if(typeof(dnnsfjQuery)=='undefined')dnnsfjQuery=jQuery||$;(function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance" in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}})(this,document);if(!window.console)window.console={};if(!window.console.log)window.console.log=function(){};var dnnsf=dnnsf||{};if(typeof g_dnnsfState!='undefined')
for(var key in g_dnnsfState)
dnnsf[key]=g_dnnsfState[key];dnnsf.init=function($,appState){dnnsf.$=$;if(!window.dnnsfjQuery)
window.dnnsfjQuery=$;if(!window.jQuery)
window.jQuery=$;(function(fn){if($.isReady)fn();else $(fn);})(function(){if(window.top!=window&&window.location.href.indexOf('isAdminIframe=true')!=-1){$('body').css('overflow','hidden').attr('scroll','no');}});};dnnsf.urlParam=function(name){var results=new RegExp('[\\?&]'+name+'=([^&#]*)').exec(decodeURIComponent(window.location.href));if(!results){return 0;}
return results[1]||0;};dnnsf.parseQueryString=function(queryString){var qs={},match,pl=/\+/g,search=/([^&=]+)=?([^&]*)/g,decode=function(s){return decodeURIComponent(s.replace(pl," "));},query=(queryString.indexOf('?')==0?queryString.substring(1):queryString);if(query.indexOf('#')!=-1)
query=query.substring(0,query.indexOf('#'));while(match=search.exec(query))
qs[decode(match[1])]=decode(match[2]);return qs;};dnnsf.updateQueryStringParam=function(key,value){var baseUrl=[location.protocol,'//',location.host,location.pathname].join(''),urlQueryString=document.location.search,newParam=key+'='+value,params='?'+newParam;if(urlQueryString){keyRegex=new RegExp('([\?&])'+key+'[^&]*');if(urlQueryString.match(keyRegex)!==null){params=urlQueryString.replace(keyRegex,"$1"+newParam);}else{params=urlQueryString+'&'+newParam;}}
history.pushState({},"",baseUrl+params+location.hash);};dnnsf.urlParams={};(window.onpopstate=function(){dnnsf.urlParams=dnnsf.parseQueryString(window.location.search);})();dnnsf.getUrlParts=function(url){var a=document.createElement('a');a.href=url;var path=a.pathname||'/';if(path[0]!='/')
path='/'+path;return{href:a.href,host:a.host,hostname:a.hostname,port:a.port,pathname:path,protocol:a.protocol,hash:a.hash,search:a.search,query:dnnsf.parseQueryString(a.search),relativeUrl:path+a.search+a.hash,getUrl:function(){return this.pathname+($.isEmptyObject(this.query)?'':'?'+$.param(this.query))+this.hash;}};}
dnnsf.scrollTo=function(scroll){if(isNaN(parseInt(scroll)))
return;if(window.top!=window){window.top.postMessage(JSON.stringify({type:dnnsf.urlParam('comm-prefix')+"-scroll",offset:scroll}),"*");}else{$('html, body').animate({scrollTop:scroll},500);}};dnnsf.initStickyLoading=function(mid){var context={timeOutVar:null,parent:$('#'+mid),el:$('#'+mid+' .common-data-loading'),el2:$('#'+mid+' .common-loading-text')};var elOffset=0;if(context.el.parent().height()<=270){elOffset=context.el.parent().height()/2-context.el.height()/2;}else{elOffset=200;}
var el2Offset=elOffset+50;context.el.css("top",elOffset+'px');context.el2.css("top",el2Offset+'px');$(window).off('scroll',onWindowScroll).on('scroll',context,onWindowScroll);}
function onWindowScroll(event){var context=event.data;clearTimeout(context.timeOutVar);context.timeOutVar=setTimeout(function(){if(context.parent.offset&&window.pageYOffset>context.parent.offset().top){var top=window.pageYOffset-context.parent.offset().top+200;context.el.fadeOut(0).css({"top":top+"px"}).fadeIn(300);context.el2.fadeOut(0).css({"top":50+top+"px"}).fadeIn(300);}
else{context.el.css({"top":'200px'});context.el2.css({"top":"250px"});}},500);};dnnsf.log=function(){if(!this.isDebug||!window.console||!console.log)
return;var args=Array.prototype.slice.call(arguments);args.push(new Date().getTime()-this.start);Function.apply.call(console.log,console,args);};dnnsf.canAccessIFrame=function(ifr){var key=(+new Date)+""+Math.random();try{var global=ifr.contentWindow;global[key]="check";return global[key]==="check";}
catch(e){return false;}}
dnnsf.getWebApiEndpoint=function(controllerName,actionName,args){if(!args)args={};delete args.$$_q;var url=dnnsf.webApiServiceRoot+controllerName+'/'+actionName;var queryString="";for(var name in args){if(args.hasOwnProperty(name))
queryString+='&'+name+'='+encodeURIComponent(args[name]);}
if(queryString){url+="?"+queryString.substr(1);}
return url;}
dnnsf.adminApi=function(method,args,options,isWebApi){options=options||{};options.apiUrl=options.apiUrl||g_dnnsfState.adminApi;options.moduleId=options.moduleId||g_dnnsfState.moduleId||-1;options.tabId=options.tabId||g_dnnsfState.tabId;options.apiVersion=options.apiVersion||g_dnnsfState.apiVersion;options.alias=options.alias||dnnsf.alias||g_dnnsfState.alias;if(isWebApi){var webApiRootUrl=g_dnnsfState.siteRoot;var webApiUrl=webApiRootUrl+options.apiUrl.replace(/^\/|\/$/g,'');url=webApiUrl+"/"+method+'?_alias='+options.alias}
else{url=options.apiUrl+'?method='+method+
(options.apiVersion=='2.0'?('&_alias='+options.alias+'&_mid='+options.moduleId+'&_tabid='+options.tabId):('&alias='+options.alias+'&mid='+options.moduleId+'&tabid='+options.tabId))}
if(!args)
return url;for(var name in args){if(name==="$$_q")
continue;if(args.hasOwnProperty(name))
url+='&'+name+'='+encodeURIComponent(args[name]);}
return url;};dnnsf.parseCssBlock=function(styleContent){var rules={};dnnsf.$.each(styleContent.split(';'),function(i,part){var isep=part.indexOf(':');if(isep==-1)
return;rules[dnnsf.$.trim(part.substr(0,isep))]=dnnsf.$.trim(part.substr(isep+1));});return rules;};dnnsf.createClass=function(name,rules){var style=document.createElement('style');style.type='text/css';document.getElementsByTagName('head')[0].appendChild(style);if(!(style.sheet||{}).insertRule){(style.styleSheet||style.sheet).addRule(name,rules);}
else{style.innerHTML=name+"{"+rules+"}";}};dnnsf.stackTrace=function(){};dnnsf.eval=function(obj){if(typeof(obj)!='string')
return obj;if(!isNaN(parseInt(obj)))
return parseInt(obj);if(!isNaN(parseFloat(obj)))
return parseFloat(obj);if(obj[0]=='['||obj[0]=='{')
return eval(obj);if(obj=="false")
return false;if(obj=="true")
return true;return obj;};dnnsf.toArray=function(obj){if(!obj)return[];if(!$.isArray(obj))
obj=[obj];return obj;};dnnsf.tryParseBool=function(o){if(typeof(o)!=='string')
return o;if(o.toLowerCase()=='true')
return true;if(o.toLowerCase()=='false')
return false;return o;};dnnsf.stringToBool=function(input){return typeof input==='boolean'&&input||(input?JSON.parse(input.toLowerCase()):false);}
dnnsf.uniqueId=function(baseId,altId){if(!altId||altId==-1)
return baseId+new Date().getTime()+Math.floor(Math.random()*10000);return baseId+altId;}
dnnsf.generateUuid=function(){return([1e7]+ -1e3+ -4e3+ -8e3+ -1e11).replace(/[018]/g,function(c){return(c^(crypto.getRandomValues(new Uint8Array(1))[0]&(15>>(c/4)))).toString(16);});}
dnnsf.randomString=function(length){var chars='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';var result='';for(var i=length;i>0;--i)result+=chars[Math.round(Math.random()*(chars.length-1))];return result;}
dnnsf.initParameters=function(def,field,ensureItSupportsExpressions){if(!def||def.Parameters==undefined||!field)
return;for(var i=0;i<def.Parameters.length;i++){var p=def.Parameters[i];if(ensureItSupportsExpressions&&(p.Type=='Select'||p.Type=='FieldSelect')&&($.type(field.Parameters[p.Id])!="object"||(!field.Parameters[p.Id].hasOwnProperty('Value')&&!field.Parameters[p.Id].hasOwnProperty('IsExpression'))))
field.Parameters[p.Id]={Value:field.Parameters[p.Id],IsExpression:false,Expression:''};if(p.Type=='ActionList'&&!field.Parameters[p.Id]){field.Parameters[p.Id]=[];}else if(p.Type=='ActionList'&&field.Parameters[p.Id]){field.Parameters[p.Id]=$.grep(field.Parameters[p.Id],function(e){return!e.IsDeleted});}
if(typeof field.Parameters[p.Id]!='undefined')
continue;if(p.Id!='DataSource'){if(typeof field.Parameters[p.Id]!='undefined')
continue;if(p.Type=='Select'||p.Type=='FieldSelect'||p.Type=='MultipleFieldSelect')
field.Parameters[p.Id]={Expression:'',Value:p.DefaultValue?g_localizeMaybeJson(p.DefaultValue):'',IsExpression:false};else field.Parameters[p.Id]=p.DefaultValue?g_localizeMaybeJson(p.DefaultValue):'';}else{if(typeof field.Parameters[p.Id]!='undefined'){if(!field.Parameters[p.Id].hasOwnProperty('SupportsExpressions')){if(field.Parameters[p.Id].hasOwnProperty('IsExpression')){field.Parameters[p.Id].SupportsExpressions=true;}
else{field.Parameters[p.Id]={SupportsExpressions:false,Expression:'',Value:field.Parameters[p.Id],IsExpression:false,Parameters:{}}}}
continue;}
field.Parameters[p.Id]=p.DefaultValue?g_localizeMaybeJson(p.DefaultValue):({SupportsExpressions:p.Settings&&p.Settings['SupportsExpressions']=='true',Expression:'',Value:'',IsExpression:false,Parameters:{}});}
if(!field.Parameters[p.Id]&&!p.DefaultValue&&p.Settings&&p.Settings['Defaults']){var val=p.Settings['Defaults'];if(val&&(val[0]=='['||val[0]=='{')){var processBool=(val[0]!='[');val=$.parseJSON(val);if(!processBool){field.Parameters[p.Id]={};for(var j=0;val.length>j;++j)
field.Parameters[p.Id][val[j]]=true;return;}}
field.Parameters[p.Id]=val;}
if(typeof(field.Parameters[p.Id])==='object'){$.each(field.Parameters[p.Id],function(key,value){field.Parameters[p.Id][key]=dnnsf.tryParseBool(value);});}else{field.Parameters[p.Id]=dnnsf.tryParseBool(field.Parameters[p.Id]);}}}
dnnsf.includeJs=function(window,file,callback){var head=window.document.getElementsByTagName('head')[0];var script=window.document.createElement('script');script.type='text/javascript';script.src=file;script.onload=script.onreadystatechange=function(){if(callback)callback();head.removeChild(script);script.onload=null;};head.appendChild(script);}
dnnsf.includeCss=function(path){$('<link>').appendTo('head').attr({type:'text/css',rel:'stylesheet',href:path});}
dnnsf.asQueryString=function(obj){var qs='';for(var k in obj){if(!obj.hasOwnProperty(k))
continue;qs+=encodeURIComponent(k)+'='+encodeURIComponent(obj[k])+'&';}
if(qs.length)
qs=qs.substring(0,qs.length-1)
return qs;}
dnnsf.appendQueryToUrl=function(url,query){if(url[url.length-1]=='?'||url[url.length-1]=='&')
url=url.substr(0,url.length-1);var sep=url.indexOf('?')==-1?'?':'&';if("string"==typeof query)
url+=sep+query;else for(var k in query){if(!query.hasOwnProperty(k))
continue;url+=sep+encodeURIComponent(k)+'='+encodeURIComponent(query[k]);sep='&';}
return url;};dnnsf.getTimezoneOffset=function(){function pad(num){var norm=Math.abs(Math.floor(num));return(norm<10?'0':'')+norm;}
var local=new Date();var tzo=-local.getTimezoneOffset();var sign=tzo>=0?'+':'-';return sign+pad(tzo/60)
+':'+pad(tzo%60);};dnnsf.loadJsFromHtml=function(html){var scripts=$(html).find('script');if(scripts.length<=0)
return;var filesToLoad=[];$.each(scripts,function(i,v){if($(v).attr('src')!=undefined)
filesToLoad.push({src:$(v).attr('src')})
else
filesToLoad.push({toEval:$(v).text()})});loadJs(filesToLoad[0]);function loadJs(js){if(js.toEval){eval(js.toEval)
filesToLoad.shift();filesToLoad.length&&loadJs(filesToLoad[0]);}else{filesToLoad.shift();$.ajax({cache:true,url:js.src,dataType:"script",success:function(){if(filesToLoad.length&&filesToLoad[0].toEval){eval(filesToLoad[0].toEval);filesToLoad.shift();}
filesToLoad.length&&loadJs(filesToLoad[0]);}});}}}
dnnsf.events={_listeners:{},listen:function(messageType,mid,fn){if(!dnnsf.events._listeners[messageType])
dnnsf.events._listeners[messageType]={};dnnsf.events._listeners[messageType]['mid'+mid]=fn;},broadcast:function(messageType,data,fnDone){if(!dnnsf.events._listeners[messageType]){fnDone&&fnDone();return;}
var listenerCount=Object.keys(dnnsf.events._listeners[messageType]).length;var listenerResponses=[];$.each(dnnsf.events._listeners[messageType],function(i,fn){var fnHandleResponse=function(response){response&&listenerResponses.push(response);listenerCount--;if(listenerCount==0)
fnDone(listenerResponses);};fn(data,fnHandleResponse);});},emittedEvents:[],on:function(event,fn){if(this.emittedEvents[event]==null){this.emittedEvents[event]=[];}
var id=dnnsf.uniqueId('event');this.emittedEvents[event][id]={id:id,callback:typeof fn==="function"?fn:function(){console.log(this);console.error('dnnsfEvents: '+event+': Check the callBack function')}}
return id;},emit:function(event,data){if(this.emittedEvents[event]!=null){for(id in this.emittedEvents[event]){if(this.emittedEvents[event].hasOwnProperty(id))
this.emittedEvents[event][id].callback.call(data||{});}}},unbind:function(event,id){if(this.emittedEvents[event]!=null&&this.emittedEvents[event][id]!=null){delete this.emittedEvents[event][id];}}}
dnnsf.configUtils={groupDefinitions:function(defs,fnInclude){var defGroups={};$.each(defs,function(i,o){if(fnInclude&&!fnInclude(o))
return;o.Groups&&$.each(o.Groups,function(ig,group){if(!defGroups[group])
defGroups[group]=[];defGroups[group].push(o);});if(!defGroups[o.Settings['Group']])
defGroups[o.Settings['Group']]=[];defGroups[o.Settings['Group']].push(o);});return defGroups;}}
dnnsf.hasProps=function(obj){for(var k in obj)
if(obj.hasOwnProperty(k))
return true;return false;};dnnsf.copyToClipboard=function(val){var $temp=$("<textarea>");$("body").append($temp);$temp.css({'position':'absolute','top':'0','z-index':'-9999999'});$temp.val(val).select();$temp.focus();var result=document.execCommand("copy");$temp.remove();return result;}
dnnsf.promiseResponse=function(method,url,getSvcFramework){return new Promise(function(resolve,reject){var xhr=new XMLHttpRequest();xhr.open(method,url);if(getSvcFramework){var svcFramework=getSvcFramework(dnnsf.moduleId);xhr.setRequestHeader("RequestVerificationToken",svcFramework.getAntiForgeryValue());}
xhr.onload=function(){if(this.status>=200&&this.status<300){resolve(xhr);}};xhr.onerror=function(){reject(xhr);};xhr.send();});};dnnsf.getBootstrapVersions=function(){if(!$||!$.fn.tooltip||!$.fn.tooltip.Constructor){return undefined;}
var latestPlugin;var result=[$.fn.tooltip.Constructor.VERSION];var noConflict=$.fn.tooltip.noConflict;if(noConflict){noConflict=noConflict.bind($.fn.tooltip);latestPlugin=noConflict();$.fn.tooltip=latestPlugin;}
while(noConflict){noConflict();var oldPlugin=$.fn.tooltip;$.fn.tooltip=latestPlugin;if(!oldPlugin||!oldPlugin.Constructor){break;}
result.push(oldPlugin.Constructor.VERSION);noConflict=oldPlugin.noConflict;if(noConflict){noConflict=noConflict.bind(oldPlugin);}}
return result;};dnnsf.bootstrap3Loaded=function(){var versionList=dnnsf.getBootstrapVersions();return versionList&&versionList.some(function(versionStr){return parseInt(versionStr[0])===3;});}
dnnsf.bootstrap5Loaded=function(){var versionList=dnnsf.getBootstrapVersions();return versionList&&versionList.some(function(versionStr){return parseInt(versionStr[0])===5;});}
dnnsf.api=dnnsf.api||{};var initDnnsf=function(angular){angular.module('dnnsf',[]).service('dnnsf',['$timeout',function($timeout){this.env=dnnsf;this.start=new Date().getTime();for(var key in dnnsf)
this[key]=dnnsf[key];}]).factory('dnnsfHttp',['$http',function($http){function createShortMethods(httpSvc,names){$.each(arguments,function(idx,name){if(typeof name!='string')
return;httpSvc[name]=function(moduleId,url,config,withAntiForgery){return httpSvc(moduleId,$.extend({},config||{},{method:name,url:url}),withAntiForgery);};});}
function createShortMethodsWithData(httpSvc,names){$.each(arguments,function(idx,name){if(typeof name!='string')
return;httpSvc[name]=function(moduleId,url,data,config,withAntiForgery){return httpSvc(moduleId,$.extend({},config||{},{method:name,url:url,data:data}),withAntiForgery);};});}
var dnnsfHttp=function(moduleId,options,withAntiForgery){if(withAntiForgery==undefined){withAntiForgery=true;}
options=options||{};if(withAntiForgery&&!dnnsfjQuery.ServicesFramework){console.error('Could not initialize DNN ServicesFramework to inject authorization headers. The request will be made without authorization. Make sure that the IServicesFramework.RequestAjaxScriptSupport and RequestAjaxAntiForgerySupport methods are called when rendering the page on the server side.');}
if(withAntiForgery&&dnnsfjQuery.ServicesFramework){var svcFramework=dnnsfjQuery.ServicesFramework(moduleId);var stubXhr={headers:{},setRequestHeader:function(key,value){stubXhr.headers[key]=value;}};svcFramework.setModuleHeaders(stubXhr);options.headers=$.extend({},options.headers||{},stubXhr.headers);}
return $http(options);};createShortMethods(dnnsfHttp,'get','delete','head','jsonp');createShortMethodsWithData(dnnsfHttp,'post','put','patch');return dnnsfHttp;}]).factory('myInterceptor',['$log','$q',function($log,$q){var myInterceptor={'response':function(response){if(response.status==200&&response.data&&response.data.error){console.log("App HTTP error",response);}
return response;},'responseError':function(rejection){if(rejection.status&&rejection.status!=404&&!rejection.config.ignoreInterceptor){console.log("HTTP error",rejection);}
return $q.reject(rejection);}};return myInterceptor;}]).config(['$httpProvider',function($httpProvider){$httpProvider.interceptors.push('myInterceptor');}]);}
window.angular?initDnnsf(angular):'';window.dnnsfAngular15?initDnnsf(dnnsfAngular15):'';
;;;// jscompress.com bootstrap 3.4.1
if ("undefined" == typeof dnnsfjQuery) throw new Error("Bootstrap's JavaScript requires dnnsfjQuery"); !function (t) { "use strict"; var e = t.fn.jquery ? t.fn.jquery.split(" ")[0].split(".") : t.fn.dnnsfjQuery.split(" ")[0].split("."); if (e[0] < 2 && e[1] < 9 || 1 == e[0] && 9 == e[1] && e[2] < 1 || 3 < e[0]) throw new Error("Bootstrap's JavaScript requires dnnsfjQuery version 1.9.1 or higher, but lower than version 4") }(dnnsfjQuery), function (n) { "use strict"; n.fn.emulateTransitionEnd = function (t) { var e = !1, i = this; n(this).one("bsTransitionEnd", function () { e = !0 }); return setTimeout(function () { e || n(i).trigger(n.support.transition.end) }, t), this }, n(function () { n.support.transition = function () { var t = document.createElement("bootstrap"), e = { WebkitTransition: "webkitTransitionEnd", MozTransition: "transitionend", OTransition: "oTransitionEnd otransitionend", transition: "transitionend" }; for (var i in e) if (void 0 !== t.style[i]) return { end: e[i] }; return !1 }(), n.support.transition && (n.event.special.bsTransitionEnd = { bindType: n.support.transition.end, delegateType: n.support.transition.end, handle: function (t) { if (n(t.target).is(this)) return t.handleObj.handler.apply(this, arguments) } }) }) }(dnnsfjQuery), function (s) { "use strict"; function a(t) { s(t).on("click", e, this.close) } var e = '[data-dismiss="alert"]'; a.VERSION = "3.4.1", a.TRANSITION_DURATION = 150, a.prototype.close = function (t) { var e = s(this), i = e.attr("data-target"); i = "#" === (i = i || (i = e.attr("href")) && i.replace(/.*(?=#[^\s]*$)/, "")) ? [] : i; var n = s(document).find(i); function o() { n.detach().trigger("closed.bs.alert").remove() } t && t.preventDefault(), n.length || (n = e.closest(".alert")), n.trigger(t = s.Event("close.bs.alert")), t.isDefaultPrevented() || (n.removeClass("in"), s.support.transition && n.hasClass("fade") ? n.one("bsTransitionEnd", o).emulateTransitionEnd(a.TRANSITION_DURATION) : o()) }; var t = s.fn.alert; s.fn.alert = function (i) { return this.each(function () { var t = s(this), e = t.data("bs.alert"); e || t.data("bs.alert", e = new a(this)), "string" == typeof i && e[i].call(t) }) }, s.fn.alert.Constructor = a, s.fn.alert.noConflict = function () { return s.fn.alert = t, this }, s(document).on("click.bs.alert.data-api", e, a.prototype.close) }(dnnsfjQuery), function (s) { "use strict"; var o = function (t, e) { this.$element = s(t), this.options = s.extend({}, o.DEFAULTS, e), this.isLoading = !1 }; function i(n) { return this.each(function () { var t = s(this), e = t.data("bs.button"), i = "object" == typeof n && n; e || t.data("bs.button", e = new o(this, i)), "toggle" == n ? e.toggle() : n && e.setState(n) }) } o.VERSION = "3.4.1", o.DEFAULTS = { loadingText: "loading..." }, o.prototype.setState = function (t) { var e = "disabled", i = this.$element, n = i.is("input") ? "val" : "html", o = i.data(); t += "Text", null == o.resetText && i.data("resetText", i[n]()), setTimeout(s.proxy(function () { i[n](null == o[t] ? this.options[t] : o[t]), "loadingText" == t ? (this.isLoading = !0, i.addClass(e).attr(e, e).prop(e, !0)) : this.isLoading && (this.isLoading = !1, i.removeClass(e).removeAttr(e).prop(e, !1)) }, this), 0) }, o.prototype.toggle = function () { var t, e = !0, i = this.$element.closest('[data-toggle="buttons"]'); i.length ? ("radio" == (t = this.$element.find("input")).prop("type") ? (t.prop("checked") && (e = !1), i.find(".active").removeClass("active"), this.$element.addClass("active")) : "checkbox" == t.prop("type") && (t.prop("checked") !== this.$element.hasClass("active") && (e = !1), this.$element.toggleClass("active")), t.prop("checked", this.$element.hasClass("active")), e && t.trigger("change")) : (this.$element.attr("aria-pressed", !this.$element.hasClass("active")), this.$element.toggleClass("active")) }; var t = s.fn.button; s.fn.button = i, s.fn.button.Constructor = o, s.fn.button.noConflict = function () { return s.fn.button = t, this }, s(document).on("click.bs.button.data-api", '[data-toggle^="button"]', function (t) { var e = s(t.target).closest(".btn"); i.call(e, "toggle"), s(t.target).is('input[type="radio"], input[type="checkbox"]') || (t.preventDefault(), e.is("input,button") ? e.trigger("focus") : e.find("input:visible,button:visible").first().trigger("focus")) }).on("focus.bs.button.data-api blur.bs.button.data-api", '[data-toggle^="button"]', function (t) { s(t.target).closest(".btn").toggleClass("focus", /^focus(in)?$/.test(t.type)) }) }(dnnsfjQuery), function (p) { "use strict"; function c(t, e) { this.$element = p(t), this.$indicators = this.$element.find(".carousel-indicators"), this.options = e, this.paused = null, this.sliding = null, this.interval = null, this.$active = null, this.$items = null, this.options.keyboard && this.$element.on("keydown.bs.carousel", p.proxy(this.keydown, this)), "hover" != this.options.pause || "ontouchstart" in document.documentElement || this.$element.on("mouseenter.bs.carousel", p.proxy(this.pause, this)).on("mouseleave.bs.carousel", p.proxy(this.cycle, this)) } function r(o) { return this.each(function () { var t = p(this), e = t.data("bs.carousel"), i = p.extend({}, c.DEFAULTS, t.data(), "object" == typeof o && o), n = "string" == typeof o ? o : i.slide; e || t.data("bs.carousel", e = new c(this, i)), "number" == typeof o ? e.to(o) : n ? e[n]() : i.interval && e.pause().cycle() }) } c.VERSION = "3.4.1", c.TRANSITION_DURATION = 600, c.DEFAULTS = { interval: 5e3, pause: "hover", wrap: !0, keyboard: !0 }, c.prototype.keydown = function (t) { if (!/input|textarea/i.test(t.target.tagName)) { switch (t.which) { case 37: this.prev(); break; case 39: this.next(); break; default: return }t.preventDefault() } }, c.prototype.cycle = function (t) { return t || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(p.proxy(this.next, this), this.options.interval)), this }, c.prototype.getItemIndex = function (t) { return this.$items = t.parent().children(".item"), this.$items.index(t || this.$active) }, c.prototype.getItemForDirection = function (t, e) { var i = this.getItemIndex(e); if (("prev" == t && 0 === i || "next" == t && i == this.$items.length - 1) && !this.options.wrap) return e; var n = (i + ("prev" == t ? -1 : 1)) % this.$items.length; return this.$items.eq(n) }, c.prototype.to = function (t) { var e = this, i = this.getItemIndex(this.$active = this.$element.find(".item.active")); if (!(t > this.$items.length - 1 || t < 0)) return this.sliding ? this.$element.one("slid.bs.carousel", function () { e.to(t) }) : i == t ? this.pause().cycle() : this.slide(i < t ? "next" : "prev", this.$items.eq(t)) }, c.prototype.pause = function (t) { return t || (this.paused = !0), this.$element.find(".next, .prev").length && p.support.transition && (this.$element.trigger(p.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this }, c.prototype.next = function () { if (!this.sliding) return this.slide("next") }, c.prototype.prev = function () { if (!this.sliding) return this.slide("prev") }, c.prototype.slide = function (t, e) { var i = this.$element.find(".item.active"), n = e || this.getItemForDirection(t, i), o = this.interval, s = "next" == t ? "left" : "right", a = this; if (n.hasClass("active")) return this.sliding = !1; var r, l = n[0], h = p.Event("slide.bs.carousel", { relatedTarget: l, direction: s }); if (this.$element.trigger(h), !h.isDefaultPrevented()) { this.sliding = !0, o && this.pause(), this.$indicators.length && (this.$indicators.find(".active").removeClass("active"), (r = p(this.$indicators.children()[this.getItemIndex(n)])) && r.addClass("active")); var d = p.Event("slid.bs.carousel", { relatedTarget: l, direction: s }); return p.support.transition && this.$element.hasClass("slide") ? (n.addClass(t), "object" == typeof n && n.length && n[0].offsetWidth, i.addClass(s), n.addClass(s), i.one("bsTransitionEnd", function () { n.removeClass([t, s].join(" ")).addClass("active"), i.removeClass(["active", s].join(" ")), a.sliding = !1, setTimeout(function () { a.$element.trigger(d) }, 0) }).emulateTransitionEnd(c.TRANSITION_DURATION)) : (i.removeClass("active"), n.addClass("active"), this.sliding = !1, this.$element.trigger(d)), o && this.cycle(), this } }; var t = p.fn.carousel; p.fn.carousel = r, p.fn.carousel.Constructor = c, p.fn.carousel.noConflict = function () { return p.fn.carousel = t, this }; function e(t) { var e, i, n = p(this), o = (o = n.attr("href")) && o.replace(/.*(?=#[^\s]+$)/, ""), s = n.attr("data-target") || o, a = p(document).find(s); a.hasClass("carousel") && (e = p.extend({}, a.data(), n.data()), (i = n.attr("data-slide-to")) && (e.interval = !1), r.call(a, e), i && a.data("bs.carousel").to(i), t.preventDefault()) } p(document).on("click.bs.carousel.data-api", "[data-slide]", e).on("click.bs.carousel.data-api", "[data-slide-to]", e), p(window).on("load", function () { p('[data-ride="carousel"]').each(function () { var t = p(this); r.call(t, t.data()) }) }) }(dnnsfjQuery), function (a) { "use strict"; var r = function (t, e) { this.$element = a(t), this.options = a.extend({}, r.DEFAULTS, e), this.$trigger = a('[data-toggle="collapse"][href="#' + t.id + '"],[data-toggle="collapse"][data-target="#' + t.id + '"]'), this.transitioning = null, this.options.parent ? this.$parent = this.getParent() : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle() }; function o(t) { var e, i = t.attr("data-target") || (e = t.attr("href")) && e.replace(/.*(?=#[^\s]+$)/, ""); return a(document).find(i) } function l(n) { return this.each(function () { var t = a(this), e = t.data("bs.collapse"), i = a.extend({}, r.DEFAULTS, t.data(), "object" == typeof n && n); !e && i.toggle && /show|hide/.test(n) && (i.toggle = !1), e || t.data("bs.collapse", e = new r(this, i)), "string" == typeof n && e[n]() }) } r.VERSION = "3.4.1", r.TRANSITION_DURATION = 350, r.DEFAULTS = { toggle: !0 }, r.prototype.dimension = function () { return this.$element.hasClass("width") ? "width" : "height" }, r.prototype.show = function () { if (!this.transitioning && !this.$element.hasClass("in")) { var t, e = this.$parent && this.$parent.children(".panel").children(".in, .collapsing"); if (!(e && e.length && (t = e.data("bs.collapse")) && t.transitioning)) { var i = a.Event("show.bs.collapse"); if (this.$element.trigger(i), !i.isDefaultPrevented()) { e && e.length && (l.call(e, "hide"), t || e.data("bs.collapse", null)); var n = this.dimension(); this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded", !0), this.$trigger.removeClass("collapsed").attr("aria-expanded", !0), this.transitioning = 1; var o = function () { this.$element.removeClass("collapsing").addClass("collapse in")[n](""), this.transitioning = 0, this.$element.trigger("shown.bs.collapse") }; if (!a.support.transition) return o.call(this); var s = a.camelCase(["scroll", n].join("-")); this.$element.one("bsTransitionEnd", a.proxy(o, this)).emulateTransitionEnd(r.TRANSITION_DURATION)[n](this.$element[0][s]) } } } }, r.prototype.hide = function () { if (!this.transitioning && this.$element.hasClass("in")) { var t = a.Event("hide.bs.collapse"); if (this.$element.trigger(t), !t.isDefaultPrevented()) { var e = this.dimension(); this.$element[e](this.$element[e]())[0].offsetHeight, this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded", !1), this.$trigger.addClass("collapsed").attr("aria-expanded", !1), this.transitioning = 1; var i = function () { this.transitioning = 0, this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse") }; if (!a.support.transition) return i.call(this); this.$element[e](0).one("bsTransitionEnd", a.proxy(i, this)).emulateTransitionEnd(r.TRANSITION_DURATION) } } }, r.prototype.toggle = function () { this[this.$element.hasClass("in") ? "hide" : "show"]() }, r.prototype.getParent = function () { return a(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(a.proxy(function (t, e) { var i = a(e); this.addAriaAndCollapsedClass(o(i), i) }, this)).end() }, r.prototype.addAriaAndCollapsedClass = function (t, e) { var i = t.hasClass("in"); t.attr("aria-expanded", i), e.toggleClass("collapsed", !i).attr("aria-expanded", i) }; var t = a.fn.collapse; a.fn.collapse = l, a.fn.collapse.Constructor = r, a.fn.collapse.noConflict = function () { return a.fn.collapse = t, this }, a(document).on("click.bs.collapse.data-api", '[data-toggle="collapse"]', function (t) { var e = a(this); e.attr("data-target") || t.preventDefault(); var i = o(e), n = i.data("bs.collapse") ? "toggle" : e.data(); l.call(i, n) }) }(dnnsfjQuery), function (a) { "use strict"; function n(t) { a(t).on("click.bs.dropdown", this.toggle) } var r = '[data-toggle="dropdown"], [data-toggle="dropdown-bs3"]'; function l(t) { var e = t.attr("data-target"), i = "#" !== (e = e || (e = t.attr("href")) && /#[A-Za-z]/.test(e) && e.replace(/.*(?=#[^\s]*$)/, "")) ? a(document).find(e) : null; return i && i.length ? i : t.parent() } function s(n) { n && 3 === n.which || (a(".dropdown-backdrop").remove(), a(r).each(function () { var t = a(this), e = l(t), i = { relatedTarget: this }; e.hasClass("open") && (n && "click" == n.type && /input|textarea/i.test(n.target.tagName) && a.contains(e[0], n.target) || (e.trigger(n = a.Event("hide.bs.dropdown", i)), n.isDefaultPrevented() || (t.attr("aria-expanded", "false"), e.removeClass("open").trigger(a.Event("hidden.bs.dropdown", i))))) })) } n.VERSION = "3.4.1", n.prototype.toggle = function (t) { var e = a(this); if (!e.is(".disabled, :disabled")) { var i = l(e), n = i.hasClass("open"); if (s(), !n) { "ontouchstart" in document.documentElement && !i.closest(".navbar-nav").length && a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click", s); var o = { relatedTarget: this }; if (i.trigger(t = a.Event("show.bs.dropdown", o)), t.isDefaultPrevented()) return; e.trigger("focus").attr("aria-expanded", "true"), i.toggleClass("open").trigger(a.Event("shown.bs.dropdown", o)) } return !1 } }, n.prototype.keydown = function (t) { if (/(38|40|27|32)/.test(t.which) && !/input|textarea/i.test(t.target.tagName)) { var e = a(this); if (t.preventDefault(), t.stopPropagation(), !e.is(".disabled, :disabled")) { var i = l(e), n = i.hasClass("open"); if (!n && 27 != t.which || n && 27 == t.which) return 27 == t.which && i.find(r).trigger("focus"), e.trigger("click"); var o, s = i.find(".dropdown-menu li:not(.disabled):visible a"); s.length && (o = s.index(t.target), 38 == t.which && 0 < o && o--, 40 == t.which && o < s.length - 1 && o++, ~o || (o = 0), s.eq(o).trigger("focus")) } } }; var t = a.fn.dropdown; a.fn.dropdown = function (i) { return this.each(function () { var t = a(this), e = t.data("bs.dropdown"); e || t.data("bs.dropdown", e = new n(this)), "string" == typeof i && e[i].call(t) }) }, a.fn.dropdown.Constructor = n, a.fn.dropdown.noConflict = function () { return a.fn.dropdown = t, this }, a(document).on("click.bs.dropdown.data-api", s).on("click.bs.dropdown.data-api", ".dropdown form", function (t) { t.stopPropagation() }).on("click.bs.dropdown.data-api", r, n.prototype.toggle).on("keydown.bs.dropdown.data-api", r, n.prototype.keydown).on("keydown.bs.dropdown.data-api", ".dropdown-menu", n.prototype.keydown) }(dnnsfjQuery), function (a) { "use strict"; function s(t, e) { this.options = e, this.$body = a(document.body), this.$element = a(t), this.$dialog = this.$element.find(".modal-dialog"), this.$backdrop = null, this.isShown = null, this.originalBodyPad = null, this.scrollbarWidth = 0, this.ignoreBackdropClick = !1, this.fixedContent = ".navbar-fixed-top, .navbar-fixed-bottom", this.options.remote && this.$element.find(".modal-content").load(this.options.remote, a.proxy(function () { this.$element.trigger("loaded.bs.modal") }, this)) } function r(n, o) { return this.each(function () { var t = a(this), e = t.data("bs.modal"), i = a.extend({}, s.DEFAULTS, t.data(), "object" == typeof n && n); e || t.data("bs.modal", e = new s(this, i)), "string" == typeof n ? e[n](o) : i.show && e.show(o) }) } s.VERSION = "3.4.1", s.TRANSITION_DURATION = 300, s.BACKDROP_TRANSITION_DURATION = 150, s.DEFAULTS = { backdrop: !0, keyboard: !0, show: !0 }, s.prototype.toggle = function (t) { return this.isShown ? this.hide() : this.show(t) }, s.prototype.show = function (i) { var n = this, t = a.Event("show.bs.modal", { relatedTarget: i }); this.$element.trigger(t), this.isShown || t.isDefaultPrevented() || (this.isShown = !0, this.checkScrollbar(), this.setScrollbar(), this.$body.addClass("modal-open"), this.escape(), this.resize(), this.$element.on("click.dismiss.bs.modal", '[data-dismiss="modal"]', a.proxy(this.hide, this)), this.$dialog.on("mousedown.dismiss.bs.modal", function () { n.$element.one("mouseup.dismiss.bs.modal", function (t) { a(t.target).is(n.$element) && (n.ignoreBackdropClick = !0) }) }), this.backdrop(function () { var t = a.support.transition && n.$element.hasClass("fade"); n.$element.parent().length || n.$element.appendTo(n.$body), n.$element.show().scrollTop(0), n.adjustDialog(), t && n.$element[0].offsetWidth, n.$element.addClass("in"), n.enforceFocus(); var e = a.Event("shown.bs.modal", { relatedTarget: i }); t ? n.$dialog.one("bsTransitionEnd", function () { n.$element.trigger("focus").trigger(e) }).emulateTransitionEnd(s.TRANSITION_DURATION) : n.$element.trigger("focus").trigger(e) })) }, s.prototype.hide = function (t) { t && t.preventDefault(), t = a.Event("hide.bs.modal"), this.$element.trigger(t), this.isShown && !t.isDefaultPrevented() && (this.isShown = !1, this.escape(), this.resize(), a(document).off("focusin.bs.modal"), this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"), this.$dialog.off("mousedown.dismiss.bs.modal"), a.support.transition && this.$element.hasClass("fade") ? this.$element.one("bsTransitionEnd", a.proxy(this.hideModal, this)).emulateTransitionEnd(s.TRANSITION_DURATION) : this.hideModal()) }, s.prototype.enforceFocus = function () { a(document).off("focusin.bs.modal").on("focusin.bs.modal", a.proxy(function (t) { document === t.target || this.$element[0] === t.target || this.$element.has(t.target).length || this.$element.trigger("focus") }, this)) }, s.prototype.escape = function () { this.isShown && this.options.keyboard ? this.$element.on("keydown.dismiss.bs.modal", a.proxy(function (t) { 27 == t.which && this.hide() }, this)) : this.isShown || this.$element.off("keydown.dismiss.bs.modal") }, s.prototype.resize = function () { this.isShown ? a(window).on("resize.bs.modal", a.proxy(this.handleUpdate, this)) : a(window).off("resize.bs.modal") }, s.prototype.hideModal = function () { var t = this; this.$element.hide(), this.backdrop(function () { t.$body.removeClass("modal-open"), t.resetAdjustments(), t.resetScrollbar(), t.$element.trigger("hidden.bs.modal") }) }, s.prototype.removeBackdrop = function () { this.$backdrop && this.$backdrop.remove(), this.$backdrop = null }, s.prototype.backdrop = function (t) { var e, i = this, n = this.$element.hasClass("fade") ? "fade" : ""; if (this.isShown && this.options.backdrop) { var o = a.support.transition && n; if (this.$backdrop = a(document.createElement("div")).addClass("modal-backdrop " + n).appendTo(this.$body), this.$element.on("click.dismiss.bs.modal", a.proxy(function (t) { this.ignoreBackdropClick ? this.ignoreBackdropClick = !1 : t.target === t.currentTarget && ("static" == this.options.backdrop ? this.$element[0].focus() : this.hide()) }, this)), o && this.$backdrop[0].offsetWidth, this.$backdrop.addClass("in"), !t) return; o ? this.$backdrop.one("bsTransitionEnd", t).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION) : t() } else { !this.isShown && this.$backdrop ? (this.$backdrop.removeClass("in"), e = function () { i.removeBackdrop(), t && t() }, a.support.transition && this.$element.hasClass("fade") ? this.$backdrop.one("bsTransitionEnd", e).emulateTransitionEnd(s.BACKDROP_TRANSITION_DURATION) : e()) : t && t() } }, s.prototype.handleUpdate = function () { this.adjustDialog() }, s.prototype.adjustDialog = function () { var t = this.$element[0].scrollHeight > document.documentElement.clientHeight; this.$element.css({ paddingLeft: !this.bodyIsOverflowing && t ? this.scrollbarWidth : "", paddingRight: this.bodyIsOverflowing && !t ? this.scrollbarWidth : "" }) }, s.prototype.resetAdjustments = function () { this.$element.css({ paddingLeft: "", paddingRight: "" }) }, s.prototype.checkScrollbar = function () { var t, e = window.innerWidth; e || (e = (t = document.documentElement.getBoundingClientRect()).right - Math.abs(t.left)), this.bodyIsOverflowing = document.body.clientWidth < e, this.scrollbarWidth = this.measureScrollbar() }, s.prototype.setScrollbar = function () { var t = parseInt(this.$body.css("padding-right") || 0, 10); this.originalBodyPad = document.body.style.paddingRight || ""; var o = this.scrollbarWidth; this.bodyIsOverflowing && (this.$body.css("padding-right", t + o), a(this.fixedContent).each(function (t, e) { var i = e.style.paddingRight, n = a(e).css("padding-right"); a(e).data("padding-right", i).css("padding-right", parseFloat(n) + o + "px") })) }, s.prototype.resetScrollbar = function () { this.$body.css("padding-right", this.originalBodyPad), a(this.fixedContent).each(function (t, e) { var i = a(e).data("padding-right"); a(e).removeData("padding-right"), e.style.paddingRight = i || "" }) }, s.prototype.measureScrollbar = function () { var t = document.createElement("div"); t.className = "modal-scrollbar-measure", this.$body.append(t); var e = t.offsetWidth - t.clientWidth; return this.$body[0].removeChild(t), e }; var t = a.fn.modal; a.fn.modal = r, a.fn.modal.Constructor = s, a.fn.modal.noConflict = function () { return a.fn.modal = t, this }, a(document).on("click.bs.modal.data-api", '[data-toggle="modal"],[data-toggle="modal-bs3"]', function (t) { var e = a(this), i = e.attr("href"), n = e.attr("data-target") || i && i.replace(/.*(?=#[^\s]+$)/, ""), o = a(document).find(n), s = o.data("bs.modal") ? "toggle" : a.extend({ remote: !/#/.test(i) && i }, o.data(), e.data()); e.is("a") && t.preventDefault(), o.one("show.bs.modal", function (t) { t.isDefaultPrevented() || o.one("hidden.bs.modal", function () { e.is(":visible") && e.trigger("focus") }) }), r.call(o, s, this) }) }(dnnsfjQuery), function (g) { "use strict"; var n = ["sanitize", "whiteList", "sanitizeFn"], u = ["background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href"], t = { "*": ["class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i], a: ["target", "href", "title", "rel"], area: [], b: [], br: [], col: [], code: [], div: [], em: [], hr: [], h1: [], h2: [], h3: [], h4: [], h5: [], h6: [], i: [], img: ["src", "alt", "title", "width", "height"], li: [], ol: [], p: [], pre: [], s: [], small: [], span: [], sub: [], sup: [], strong: [], u: [], ul: [] }, m = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi, v = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; function o(t, e, i) { if (0 === t.length) return t; if (i && "function" == typeof i) return i(t); if (!document.implementation || !document.implementation.createHTMLDocument) return t; var n = document.implementation.createHTMLDocument("sanitization"); n.body.innerHTML = t; for (var o = g.map(e, function (t, e) { return e }), s = g(n.body).find("*"), a = 0, r = s.length; a < r; a++) { var l = s[a], h = l.nodeName.toLowerCase(); if (-1 !== g.inArray(h, o)) for (var d = g.map(l.attributes, function (t) { return t }), p = [].concat(e["*"] || [], e[h] || []), c = 0, f = d.length; c < f; c++)!function (t, e) { var i = t.nodeName.toLowerCase(); if (-1 !== g.inArray(i, e)) return -1 === g.inArray(i, u) || Boolean(t.nodeValue.match(m) || t.nodeValue.match(v)); for (var n = g(e).filter(function (t, e) { return e instanceof RegExp }), o = 0, s = n.length; o < s; o++)if (i.match(n[o])) return 1 }(d[c], p) && l.removeAttribute(d[c].nodeName); else l.parentNode.removeChild(l) } return n.body.innerHTML } function b(t, e) { this.type = null, this.options = null, this.enabled = null, this.timeout = null, this.hoverState = null, this.$element = null, this.inState = null, this.init("tooltip", t, e) } b.VERSION = "3.4.1", b.TRANSITION_DURATION = 150, b.DEFAULTS = { animation: !0, placement: "top", selector: !1, template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', trigger: "hover focus", title: "", delay: 0, html: !1, container: !1, viewport: { selector: "body", padding: 0 }, sanitize: !0, sanitizeFn: null, whiteList: t }, b.prototype.init = function (t, e, i) { if (this.enabled = !0, this.type = t, this.$element = g(e), this.options = this.getOptions(i), this.$viewport = this.options.viewport && g(document).find(g.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.$element) : this.options.viewport.selector || this.options.viewport), this.inState = { click: !1, hover: !1, focus: !1 }, this.$element[0] instanceof document.constructor && !this.options.selector) throw new Error("`selector` option must be specified when initializing " + this.type + " on the window.document object!"); for (var n = this.options.trigger.split(" "), o = n.length; o--;) { var s, a, r = n[o]; "click" == r ? this.$element.on("click." + this.type, this.options.selector, g.proxy(this.toggle, this)) : "manual" != r && (s = "hover" == r ? "mouseenter" : "focusin", a = "hover" == r ? "mouseleave" : "focusout", this.$element.on(s + "." + this.type, this.options.selector, g.proxy(this.enter, this)), this.$element.on(a + "." + this.type, this.options.selector, g.proxy(this.leave, this))) } this.options.selector ? this._options = g.extend({}, this.options, { trigger: "manual", selector: "" }) : this.fixTitle() }, b.prototype.getDefaults = function () { return b.DEFAULTS }, b.prototype.getOptions = function (t) { var e = this.$element.data(); for (var i in e) e.hasOwnProperty(i) && -1 !== g.inArray(i, n) && delete e[i]; return (t = g.extend({}, this.getDefaults(), e, t)).delay && "number" == typeof t.delay && (t.delay = { show: t.delay, hide: t.delay }), t.sanitize && (t.template = o(t.template, t.whiteList, t.sanitizeFn)), t }, b.prototype.getDelegateOptions = function () { var i = {}, n = this.getDefaults(); return this._options && g.each(this._options, function (t, e) { n[t] != e && (i[t] = e) }), i }, b.prototype.enter = function (t) { var e = t instanceof this.constructor ? t : g(t.currentTarget).data("bs." + this.type); if (e || (e = new this.constructor(t.currentTarget, this.getDelegateOptions()), g(t.currentTarget).data("bs." + this.type, e)), t instanceof g.Event && (e.inState["focusin" == t.type ? "focus" : "hover"] = !0), e.tip().hasClass("in") || "in" == e.hoverState) e.hoverState = "in"; else { if (clearTimeout(e.timeout), e.hoverState = "in", !e.options.delay || !e.options.delay.show) return e.show(); e.timeout = setTimeout(function () { "in" == e.hoverState && e.show() }, e.options.delay.show) } }, b.prototype.isInStateTrue = function () { for (var t in this.inState) if (this.inState[t]) return !0; return !1 }, b.prototype.leave = function (t) { var e = t instanceof this.constructor ? t : g(t.currentTarget).data("bs." + this.type); if (e || (e = new this.constructor(t.currentTarget, this.getDelegateOptions()), g(t.currentTarget).data("bs." + this.type, e)), t instanceof g.Event && (e.inState["focusout" == t.type ? "focus" : "hover"] = !1), !e.isInStateTrue()) { if (clearTimeout(e.timeout), e.hoverState = "out", !e.options.delay || !e.options.delay.hide) return e.hide(); e.timeout = setTimeout(function () { "out" == e.hoverState && e.hide() }, e.options.delay.hide) } }, b.prototype.show = function () { var t = g.Event("show.bs." + this.type); if (this.hasContent() && this.enabled) { this.$element.trigger(t); var e = g.contains(this.$element[0].ownerDocument.documentElement, this.$element[0]); if (t.isDefaultPrevented() || !e) return; var i = this, n = this.tip(), o = this.getUID(this.type); this.setContent(), n.attr("id", o), this.$element.attr("aria-describedby", o), this.options.animation && n.addClass("fade"); var s = "function" == typeof this.options.placement ? this.options.placement.call(this, n[0], this.$element[0]) : this.options.placement, a = /\s?auto?\s?/i, r = a.test(s); r && (s = s.replace(a, "") || "top"), n.detach().css({ top: 0, left: 0, display: "block" }).addClass(s).data("bs." + this.type, this), this.options.container ? n.appendTo(g(document).find(this.options.container)) : n.insertAfter(this.$element), this.$element.trigger("inserted.bs." + this.type); var l, h, d = this.getPosition(), p = n[0].offsetWidth, c = n[0].offsetHeight; r && (l = s, h = this.getPosition(this.$viewport), s = "bottom" == s && window.innerHeight < d.bottom + c ? "top" : "top" == s && d.top - window.scrollY < c ? "bottom" : "right" == s && d.right + p > h.width ? "left" : "left" == s && d.left - p < h.left ? "right" : s, n.removeClass(l).addClass(s)); var f = this.getCalculatedOffset(s, d, p, c); this.applyPlacement(f, s); var u = function () { var t = i.hoverState; i.$element.trigger("shown.bs." + i.type), i.hoverState = null, "out" == t && i.leave(i) }; g.support.transition && this.$tip.hasClass("fade") ? n.one("bsTransitionEnd", u).emulateTransitionEnd(b.TRANSITION_DURATION) : u() } }, b.prototype.applyPlacement = function (t, e) { var i = this.tip(), n = i[0].offsetWidth, o = i[0].offsetHeight, s = parseInt(i.css("margin-top"), 10), a = parseInt(i.css("margin-left"), 10); isNaN(s) && (s = 0), isNaN(a) && (a = 0), t.top += s, t.left += a, g.offset.setOffset(i[0], g.extend({ using: function (t) { i.css({ top: Math.round(t.top), left: Math.round(t.left) }) } }, t), 0), i.addClass("in"); var r = i[0].offsetWidth, l = i[0].offsetHeight; "top" == e && l != o && (t.top = t.top + o - l); var h = this.getViewportAdjustedDelta(e, t, r, l); h.left ? t.left += h.left : t.top += h.top; var d = /top|bottom/.test(e), p = d ? 2 * h.left - n + r : 2 * h.top - o + l, c = d ? "offsetWidth" : "offsetHeight"; i.offset(t), this.replaceArrow(p, i[0][c], d) }, b.prototype.replaceArrow = function (t, e, i) { this.arrow().css(i ? "left" : "top", 50 * (1 - t / e) + "%").css(i ? "top" : "left", "") }, b.prototype.setContent = function () { var t = this.tip(), e = this.getTitle(); this.options.html ? (this.options.sanitize && (e = o(e, this.options.whiteList, this.options.sanitizeFn)), t.find(".tooltip-inner").html(e)) : t.find(".tooltip-inner").text(e), t.removeClass("fade in top bottom left right") }, b.prototype.hide = function (t) { var e = this, i = g(this.$tip), n = g.Event("hide.bs." + this.type); function o() { "in" != e.hoverState && i.detach(), e.$element && e.$element.removeAttr("aria-describedby").trigger("hidden.bs." + e.type), t && t() } if (this.$element.trigger(n), !n.isDefaultPrevented()) return i.removeClass("in"), g.support.transition && i.hasClass("fade") ? i.one("bsTransitionEnd", o).emulateTransitionEnd(b.TRANSITION_DURATION) : o(), this.hoverState = null, this }, b.prototype.fixTitle = function () { var t = this.$element; !t.attr("title") && "string" == typeof t.attr("data-original-title") || t.attr("data-original-title", t.attr("title") || "").attr("title", "") }, b.prototype.hasContent = function () { return this.getTitle() }, b.prototype.getPosition = function (t) { var e = (t = t || this.$element)[0], i = "BODY" == e.tagName, n = e.getBoundingClientRect(); null == n.width && (n = g.extend({}, n, { width: n.right - n.left, height: n.bottom - n.top })); var o = window.SVGElement && e instanceof window.SVGElement, s = i ? { top: 0, left: 0 } : o ? null : t.offset(), a = { scroll: i ? document.documentElement.scrollTop || document.body.scrollTop : t.scrollTop() }, r = i ? { width: g(window).width(), height: g(window).height() } : null; return g.extend({}, n, a, r, s) }, b.prototype.getCalculatedOffset = function (t, e, i, n) { return "bottom" == t ? { top: e.top + e.height, left: e.left + e.width / 2 - i / 2 } : "top" == t ? { top: e.top - n, left: e.left + e.width / 2 - i / 2 } : "left" == t ? { top: e.top + e.height / 2 - n / 2, left: e.left - i } : { top: e.top + e.height / 2 - n / 2, left: e.left + e.width } }, b.prototype.getViewportAdjustedDelta = function (t, e, i, n) { var o = { top: 0, left: 0 }; if (!this.$viewport) return o; var s, a, r, l, h = this.options.viewport && this.options.viewport.padding || 0, d = this.getPosition(this.$viewport); return /right|left/.test(t) ? (s = e.top - h - d.scroll, a = e.top + h - d.scroll + n, s < d.top ? o.top = d.top - s : a > d.top + d.height && (o.top = d.top + d.height - a)) : (r = e.left - h, l = e.left + h + i, r < d.left ? o.left = d.left - r : l > d.right && (o.left = d.left + d.width - l)), o }, b.prototype.getTitle = function () { var t = this.$element, e = this.options; return t.attr("data-original-title") || ("function" == typeof e.title ? e.title.call(t[0]) : e.title) }, b.prototype.getUID = function (t) { for (; t += ~~(1e6 * Math.random()), document.getElementById(t);); return t }, b.prototype.tip = function () { if (!this.$tip && (this.$tip = g(this.options.template), 1 != this.$tip.length)) throw new Error(this.type + " `template` option must consist of exactly 1 top-level element!"); return this.$tip }, b.prototype.arrow = function () { return this.$arrow = this.$arrow || this.tip().find(".tooltip-arrow") }, b.prototype.enable = function () { this.enabled = !0 }, b.prototype.disable = function () { this.enabled = !1 }, b.prototype.toggleEnabled = function () { this.enabled = !this.enabled }, b.prototype.toggle = function (t) { var e = this; t && ((e = g(t.currentTarget).data("bs." + this.type)) || (e = new this.constructor(t.currentTarget, this.getDelegateOptions()), g(t.currentTarget).data("bs." + this.type, e))), t ? (e.inState.click = !e.inState.click, e.isInStateTrue() ? e.enter(e) : e.leave(e)) : e.tip().hasClass("in") ? e.leave(e) : e.enter(e) }, b.prototype.destroy = function () { var t = this; clearTimeout(this.timeout), this.hide(function () { t.$element.off("." + t.type).removeData("bs." + t.type), t.$tip && t.$tip.detach(), t.$tip = null, t.$arrow = null, t.$viewport = null, t.$element = null }) }, b.prototype.sanitizeHtml = function (t) { return o(t, this.options.whiteList, this.options.sanitizeFn) }; var e = g.fn.tooltip; g.fn.tooltip = function (n) { return this.each(function () { var t = g(this), e = t.data("bs.tooltip"), i = "object" == typeof n && n; !e && /destroy|hide/.test(n) || (e || t.data("bs.tooltip", e = new b(this, i)), "string" == typeof n && e[n]()) }) }, g.fn.tooltip.Constructor = b, g.fn.tooltip.noConflict = function () { return g.fn.tooltip = e, this } }(dnnsfjQuery), function (o) { "use strict"; function s(t, e) { this.init("popover", t, e) } if (!o.fn.tooltip) throw new Error("Popover requires tooltip.js"); s.VERSION = "3.4.1", s.DEFAULTS = o.extend({}, o.fn.tooltip.Constructor.DEFAULTS, { placement: "right", trigger: "click", content: "", template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>' }), ((s.prototype = o.extend({}, o.fn.tooltip.Constructor.prototype)).constructor = s).prototype.getDefaults = function () { return s.DEFAULTS }, s.prototype.setContent = function () { var t, e = this.tip(), i = this.getTitle(), n = this.getContent(); this.options.html ? (t = typeof n, this.options.sanitize && (i = this.sanitizeHtml(i), "string" == t && (n = this.sanitizeHtml(n))), e.find(".popover-title").html(i), e.find(".popover-content").children().detach().end()["string" == t ? "html" : "append"](n)) : (e.find(".popover-title").text(i), e.find(".popover-content").children().detach().end().text(n)), e.removeClass("fade top bottom left right in"), e.find(".popover-title").html() || e.find(".popover-title").hide() }, s.prototype.hasContent = function () { return this.getTitle() || this.getContent() }, s.prototype.getContent = function () { var t = this.$element, e = this.options; return t.attr("data-content") || ("function" == typeof e.content ? e.content.call(t[0]) : e.content) }, s.prototype.arrow = function () { return this.$arrow = this.$arrow || this.tip().find(".arrow") }; var t = o.fn.popover; o.fn.popover = function (n) { return this.each(function () { var t = o(this), e = t.data("bs.popover"), i = "object" == typeof n && n; !e && /destroy|hide/.test(n) || (e || t.data("bs.popover", e = new s(this, i)), "string" == typeof n && e[n]()) }) }, o.fn.popover.Constructor = s, o.fn.popover.noConflict = function () { return o.fn.popover = t, this } }(dnnsfjQuery), function (s) { "use strict"; function o(t, e) { this.$body = s(document.body), this.$scrollElement = s(t).is(document.body) ? s(window) : s(t), this.options = s.extend({}, o.DEFAULTS, e), this.selector = (this.options.target || "") + " .nav li > a", this.offsets = [], this.targets = [], this.activeTarget = null, this.scrollHeight = 0, this.$scrollElement.on("scroll.bs.scrollspy", s.proxy(this.process, this)), this.refresh(), this.process() } function e(n) { return this.each(function () { var t = s(this), e = t.data("bs.scrollspy"), i = "object" == typeof n && n; e || t.data("bs.scrollspy", e = new o(this, i)), "string" == typeof n && e[n]() }) } o.VERSION = "3.4.1", o.DEFAULTS = { offset: 10 }, o.prototype.getScrollHeight = function () { return this.$scrollElement[0].scrollHeight || Math.max(this.$body[0].scrollHeight, document.documentElement.scrollHeight) }, o.prototype.refresh = function () { var t = this, n = "offset", o = 0; this.offsets = [], this.targets = [], this.scrollHeight = this.getScrollHeight(), s.isWindow(this.$scrollElement[0]) || (n = "position", o = this.$scrollElement.scrollTop()), this.$body.find(this.selector).map(function () { var t = s(this), e = t.data("target") || t.attr("href"), i = /^#./.test(e) && s(e); return i && i.length && i.is(":visible") ? [[i[n]().top + o, e]] : null }).sort(function (t, e) { return t[0] - e[0] }).each(function () { t.offsets.push(this[0]), t.targets.push(this[1]) }) }, o.prototype.process = function () { var t, e = this.$scrollElement.scrollTop() + this.options.offset, i = this.getScrollHeight(), n = this.options.offset + i - this.$scrollElement.height(), o = this.offsets, s = this.targets, a = this.activeTarget; if (this.scrollHeight != i && this.refresh(), n <= e) return a != (t = s[s.length - 1]) && this.activate(t); if (a && e < o[0]) return this.activeTarget = null, this.clear(); for (t = o.length; t--;)a != s[t] && e >= o[t] && (void 0 === o[t + 1] || e < o[t + 1]) && this.activate(s[t]) }, o.prototype.activate = function (t) { this.activeTarget = t, this.clear(); var e = this.selector + '[data-target="' + t + '"],' + this.selector + '[href="' + t + '"]', i = s(e).parents("li").addClass("active"); i.parent(".dropdown-menu").length && (i = i.closest("li.dropdown").addClass("active")), i.trigger("activate.bs.scrollspy") }, o.prototype.clear = function () { s(this.selector).parentsUntil(this.options.target, ".active").removeClass("active") }; var t = s.fn.scrollspy; s.fn.scrollspy = e, s.fn.scrollspy.Constructor = o, s.fn.scrollspy.noConflict = function () { return s.fn.scrollspy = t, this }, s(window).on("load.bs.scrollspy.data-api", function () { s('[data-spy="scroll"]').each(function () { var t = s(this); e.call(t, t.data()) }) }) }(dnnsfjQuery), function (r) { "use strict"; function a(t) { this.element = r(t) } function e(i) { return this.each(function () { var t = r(this), e = t.data("bs.tab"); e || t.data("bs.tab", e = new a(this)), "string" == typeof i && e[i]() }) } a.VERSION = "3.4.1", a.TRANSITION_DURATION = 150, a.prototype.show = function () { var t, e, i, n, o = this.element, s = o.closest("ul:not(.dropdown-menu)"), a = (a = o.data("target")) || (a = o.attr("href")) && a.replace(/.*(?=#[^\s]*$)/, ""); o.parent("li").hasClass("active") || (t = s.find(".active:last a"), e = r.Event("hide.bs.tab", { relatedTarget: o[0] }), i = r.Event("show.bs.tab", { relatedTarget: t[0] }), t.trigger(e), o.trigger(i), i.isDefaultPrevented() || e.isDefaultPrevented() || (n = r(document).find(a), this.activate(o.closest("li"), s), this.activate(n, n.parent(), function () { t.trigger({ type: "hidden.bs.tab", relatedTarget: o[0] }), o.trigger({ type: "shown.bs.tab", relatedTarget: t[0] }) }))) }, a.prototype.activate = function (t, e, i) { var n = e.find("> .active"), o = i && r.support.transition && (n.length && n.hasClass("fade") || !!e.find("> .fade").length); function s() { n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !1), t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded", !0), o ? (t[0].offsetWidth, t.addClass("in")) : t.removeClass("fade"), t.parent(".dropdown-menu").length && t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded", !0), i && i() } n.length && o ? n.one("bsTransitionEnd", s).emulateTransitionEnd(a.TRANSITION_DURATION) : s(), n.removeClass("in") }; var t = r.fn.tab; r.fn.tab = e, r.fn.tab.Constructor = a, r.fn.tab.noConflict = function () { return r.fn.tab = t, this }; function i(t) { t.preventDefault(), e.call(r(this), "show") } r(document).on("click.bs.tab.data-api", '[data-toggle="tab"]', i).on("click.bs.tab.data-api", '[data-toggle="pill"]', i) }(dnnsfjQuery), function (l) { "use strict"; var h = function (t, e) { this.options = l.extend({}, h.DEFAULTS, e); var i = this.options.target === h.DEFAULTS.target ? l(this.options.target) : l(document).find(this.options.target); this.$target = i.on("scroll.bs.affix.data-api", l.proxy(this.checkPosition, this)).on("click.bs.affix.data-api", l.proxy(this.checkPositionWithEventLoop, this)), this.$element = l(t), this.affixed = null, this.unpin = null, this.pinnedOffset = null, this.checkPosition() }; function i(n) { return this.each(function () { var t = l(this), e = t.data("bs.affix"), i = "object" == typeof n && n; e || t.data("bs.affix", e = new h(this, i)), "string" == typeof n && e[n]() }) } h.VERSION = "3.4.1", h.RESET = "affix affix-top affix-bottom", h.DEFAULTS = { offset: 0, target: window }, h.prototype.getState = function (t, e, i, n) { var o = this.$target.scrollTop(), s = this.$element.offset(), a = this.$target.height(); if (null != i && "top" == this.affixed) return o < i && "top"; if ("bottom" == this.affixed) return null != i ? !(o + this.unpin <= s.top) && "bottom" : !(o + a <= t - n) && "bottom"; var r = null == this.affixed, l = r ? o : s.top; return null != i && o <= i ? "top" : null != n && t - n <= l + (r ? a : e) && "bottom" }, h.prototype.getPinnedOffset = function () { if (this.pinnedOffset) return this.pinnedOffset; this.$element.removeClass(h.RESET).addClass("affix"); var t = this.$target.scrollTop(), e = this.$element.offset(); return this.pinnedOffset = e.top - t }, h.prototype.checkPositionWithEventLoop = function () { setTimeout(l.proxy(this.checkPosition, this), 1) }, h.prototype.checkPosition = function () { if (this.$element.is(":visible")) { var t = this.$element.height(), e = this.options.offset, i = e.top, n = e.bottom, o = Math.max(l(document).height(), l(document.body).height()); "object" != typeof e && (n = i = e), "function" == typeof i && (i = e.top(this.$element)), "function" == typeof n && (n = e.bottom(this.$element)); var s = this.getState(o, t, i, n); if (this.affixed != s) { null != this.unpin && this.$element.css("top", ""); var a = "affix" + (s ? "-" + s : ""), r = l.Event(a + ".bs.affix"); if (this.$element.trigger(r), r.isDefaultPrevented()) return; this.affixed = s, this.unpin = "bottom" == s ? this.getPinnedOffset() : null, this.$element.removeClass(h.RESET).addClass(a).trigger(a.replace("affix", "affixed") + ".bs.affix") } "bottom" == s && this.$element.offset({ top: o - t - n }) } }; var t = l.fn.affix; l.fn.affix = i, l.fn.affix.Constructor = h, l.fn.affix.noConflict = function () { return l.fn.affix = t, this }, l(window).on("load", function () { l('[data-spy="affix"]').each(function () { var t = l(this), e = t.data(); e.offset = e.offset || {}, null != e.offsetBottom && (e.offset.bottom = e.offsetBottom), null != e.offsetTop && (e.offset.top = e.offsetTop), i.call(t, e) }) }) }(dnnsfjQuery);
;;;/*
 AngularJS v1.8.2
 (c) 2010-2020 Google LLC. http://angularjs.org
 License: MIT
*/
(function(Y,z){'use strict';function Fa(a,b,c){if(!a)throw Pa("areq",b||"?",c||"required");return a}function Ga(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;Z(a)&&(a=a.join(" "));Z(b)&&(b=b.join(" "));return a+" "+b}function Qa(a){var b={};a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from);return b}function $(a,b,c){var d="";a=Z(a)?a:a&&G(a)&&a.length?a.split(/\s+/):[];s(a,function(a,k){a&&0<a.length&&(d+=0<k?" ":"",d+=c?b+a:a+b)});return d}function Ha(a){if(a instanceof A)switch(a.length){case 0:return a;
case 1:if(1===a[0].nodeType)return a;break;default:return A(va(a))}if(1===a.nodeType)return A(a)}function va(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var c=a[b];if(1===c.nodeType)return c}}function Ra(a,b,c){s(b,function(b){a.addClass(b,c)})}function Sa(a,b,c){s(b,function(b){a.removeClass(b,c)})}function aa(a){return function(b,c){c.addClass&&(Ra(a,b,c.addClass),c.addClass=null);c.removeClass&&(Sa(a,b,c.removeClass),c.removeClass=null)}}function pa(a){a=a||{};if(!a.$$prepared){var b=a.domOperation||
N;a.domOperation=function(){a.$$domOperationFired=!0;b();b=N};a.$$prepared=!0}return a}function ha(a,b){Ia(a,b);Ja(a,b)}function Ia(a,b){b.from&&(a.css(b.from),b.from=null)}function Ja(a,b){b.to&&(a.css(b.to),b.to=null)}function T(a,b,c){var d=b.options||{};c=c.options||{};var f=(d.addClass||"")+" "+(c.addClass||""),k=(d.removeClass||"")+" "+(c.removeClass||"");a=Ta(a.attr("class"),f,k);c.preparationClasses&&(d.preparationClasses=ba(c.preparationClasses,d.preparationClasses),delete c.preparationClasses);
f=d.domOperation!==N?d.domOperation:null;wa(d,c);f&&(d.domOperation=f);d.addClass=a.addClass?a.addClass:null;d.removeClass=a.removeClass?a.removeClass:null;b.addClass=d.addClass;b.removeClass=d.removeClass;return d}function Ta(a,b,c){function d(a){G(a)&&(a=a.split(" "));var c={};s(a,function(a){a.length&&(c[a]=!0)});return c}var f={};a=d(a);b=d(b);s(b,function(a,c){f[c]=1});c=d(c);s(c,function(a,c){f[c]=1===f[c]?null:-1});var k={addClass:"",removeClass:""};s(f,function(c,b){var d,f;1===c?(d="addClass",
f=!a[b]||a[b+"-remove"]):-1===c&&(d="removeClass",f=a[b]||a[b+"-add"]);f&&(k[d].length&&(k[d]+=" "),k[d]+=b)});return k}function K(a){return a instanceof A?a[0]:a}function Ua(a,b,c,d){a="";c&&(a=$(c,"ng-",!0));d.addClass&&(a=ba(a,$(d.addClass,"-add")));d.removeClass&&(a=ba(a,$(d.removeClass,"-remove")));a.length&&(d.preparationClasses=a,b.addClass(a))}function xa(a,b){var c=b?"paused":"",d=ca+"PlayState";ma(a,[d,c]);return[d,c]}function ma(a,b){a.style[b[0]]=b[1]}function ba(a,b){return a?b?a+" "+
b:a:b}function Ka(a,b,c){var d=Object.create(null),f=a.getComputedStyle(b)||{};s(c,function(a,c){var b=f[a];if(b){var L=b.charAt(0);if("-"===L||"+"===L||0<=L)b=Va(b);0===b&&(b=null);d[c]=b}});return d}function Va(a){var b=0;a=a.split(/\s*,\s*/);s(a,function(a){"s"===a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));a=parseFloat(a)||0;b=b?Math.max(a,b):a});return b}function ya(a){return 0===a||null!=a}function La(a,b){var c=M,d=a+"s";b?c+="Duration":d+=" linear all";return[c,d]}function Ma(a,b,c){s(c,
function(c){a[c]=za(a[c])?a[c]:b.style.getPropertyValue(c)})}var M,Aa,ca,Ba;void 0===Y.ontransitionend&&void 0!==Y.onwebkittransitionend?(M="WebkitTransition",Aa="webkitTransitionEnd transitionend"):(M="transition",Aa="transitionend");void 0===Y.onanimationend&&void 0!==Y.onwebkitanimationend?(ca="WebkitAnimation",Ba="webkitAnimationEnd animationend"):(ca="animation",Ba="animationend");var qa=ca+"Delay",Ca=ca+"Duration",na=M+"Delay",Na=M+"Duration",Pa=z.$$minErr("ng"),ra={blockTransitions:function(a,
b){var c=b?"-"+b+"s":"";ma(a,[na,c]);return[na,c]}},Wa={transitionDuration:Na,transitionDelay:na,transitionProperty:M+"Property",animationDuration:Ca,animationDelay:qa,animationIterationCount:ca+"IterationCount"},Xa={transitionDuration:Na,transitionDelay:na,animationDuration:Ca,animationDelay:qa},Da,wa,s,Z,za,sa,Ea,ta,G,R,A,N;z.module("ngAnimate",[],function(){N=z.noop;Da=z.copy;wa=z.extend;A=z.element;s=z.forEach;Z=z.isArray;G=z.isString;ta=z.isObject;R=z.isUndefined;za=z.isDefined;Ea=z.isFunction;
sa=z.isElement}).info({angularVersion:"1.8.2"}).directive("ngAnimateSwap",["$animate",function(a){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(b,c,d,f,k){var e,Q;b.$watchCollection(d.ngAnimateSwap||d["for"],function(b){e&&a.leave(e);Q&&(Q.$destroy(),Q=null);(b||0===b)&&k(function(b,d){e=b;Q=d;a.enter(b,null,c)})})}}}]).directive("ngAnimateChildren",["$interpolate",function(a){return{link:function(b,c,d){function f(a){c.data("$$ngAnimateChildren","on"===a||"true"===
a)}var k=d.ngAnimateChildren;G(k)&&0===k.length?c.data("$$ngAnimateChildren",!0):(f(a(k)(b)),d.$observe("ngAnimateChildren",f))}}}]).factory("$$rAFScheduler",["$$rAF",function(a){function b(a){d=d.concat(a);c()}function c(){if(d.length){for(var b=d.shift(),e=0;e<b.length;e++)b[e]();f||a(function(){f||c()})}}var d,f;d=b.queue=[];b.waitUntilQuiet=function(b){f&&f();f=a(function(){f=null;b();c()})};return b}]).provider("$$animateQueue",["$animateProvider",function(a){function b(a){return{addClass:a.addClass,
removeClass:a.removeClass,from:a.from,to:a.to}}function c(a){if(!a)return null;a=a.split(" ");var b=Object.create(null);s(a,function(a){b[a]=!0});return b}function d(a,b){if(a&&b){var d=c(b);return a.split(" ").some(function(a){return d[a]})}}function f(a,b,c){return e[a].some(function(a){return a(b,c)})}function k(a,b){var c=0<(a.addClass||"").length,d=0<(a.removeClass||"").length;return b?c&&d:c||d}var e=this.rules={skip:[],cancel:[],join:[]};e.join.push(function(a,b){return!a.structural&&k(a)});
e.skip.push(function(a,b){return!a.structural&&!k(a)});e.skip.push(function(a,b){return"leave"===b.event&&a.structural});e.skip.push(function(a,b){return b.structural&&2===b.state&&!a.structural});e.cancel.push(function(a,b){return b.structural&&a.structural});e.cancel.push(function(a,b){return 2===b.state&&a.structural});e.cancel.push(function(a,b){if(b.structural)return!1;var c=a.addClass,f=a.removeClass,k=b.addClass,e=b.removeClass;return R(c)&&R(f)||R(k)&&R(e)?!1:d(c,e)||d(f,k)});this.$get=["$$rAF",
"$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(c,d,e,C,U,oa,H,u,t,I,da){function ia(a){O.delete(a.target)}function v(){var a=!1;return function(b){a?b():d.$$postDigest(function(){a=!0;b()})}}function ua(a,b,c){var g=[],l=m[c];l&&s(l,function(l){Oa.call(l.node,b)?g.push(l.callback):"leave"===c&&Oa.call(l.node,a)&&g.push(l.callback)});return g}function h(a,b,c){var l=va(b);return a.filter(function(a){return!(a.node===
l&&(!c||a.callback===c))})}function q(a,J,w){function e(a,b,l,g){u(function(){var a=ua(ia,m,b);a.length?c(function(){s(a,function(a){a(h,l,g)});"close"!==l||m.parentNode||D.off(m)}):"close"!==l||m.parentNode||D.off(m)});a.progress(b,l,g)}function I(a){var b=h,c=n;c.preparationClasses&&(b.removeClass(c.preparationClasses),c.preparationClasses=null);c.activeClasses&&(b.removeClass(c.activeClasses),c.activeClasses=null);W(h,n);ha(h,n);n.domOperation();q.complete(!a)}var n=Da(w),h=Ha(a),m=K(h),ia=m&&
m.parentNode,n=pa(n),q=new H,u=v();Z(n.addClass)&&(n.addClass=n.addClass.join(" "));n.addClass&&!G(n.addClass)&&(n.addClass=null);Z(n.removeClass)&&(n.removeClass=n.removeClass.join(" "));n.removeClass&&!G(n.removeClass)&&(n.removeClass=null);n.from&&!ta(n.from)&&(n.from=null);n.to&&!ta(n.to)&&(n.to=null);if(!(B&&m&&fa(m,J,w)&&Ya(m,n)))return I(),q;var x=0<=["enter","move","leave"].indexOf(J),r=da(),P=r||O.get(m);w=!P&&y.get(m)||{};var p=!!w.state;P||p&&1===w.state||(P=!E(m,ia,J));if(P)return r&&
e(q,J,"start",b(n)),I(),r&&e(q,J,"close",b(n)),q;x&&F(m);r={structural:x,element:h,event:J,addClass:n.addClass,removeClass:n.removeClass,close:I,options:n,runner:q};if(p){if(f("skip",r,w)){if(2===w.state)return I(),q;T(h,w,r);return w.runner}if(f("cancel",r,w))if(2===w.state)w.runner.end();else if(w.structural)w.close();else return T(h,w,r),w.runner;else if(f("join",r,w))if(2===w.state)T(h,r,{});else return Ua(t,h,x?J:null,n),J=r.event=w.event,n=T(h,w,r),w.runner}else T(h,r,{});(p=r.structural)||
(p="animate"===r.event&&0<Object.keys(r.options.to||{}).length||k(r));if(!p)return I(),g(m),q;var C=(w.counter||0)+1;r.counter=C;l(m,1,r);d.$$postDigest(function(){h=Ha(a);var c=y.get(m),d=!c,c=c||{},t=0<(h.parent()||[]).length&&("animate"===c.event||c.structural||k(c));if(d||c.counter!==C||!t){d&&(W(h,n),ha(h,n));if(d||x&&c.event!==J)n.domOperation(),q.end();t||g(m)}else J=!c.structural&&k(c,!0)?"setClass":c.event,l(m,2),c=oa(h,J,c.options),q.setHost(c),e(q,J,"start",b(n)),c.done(function(a){I(!a);
(a=y.get(m))&&a.counter===C&&g(m);e(q,J,"close",b(n))})});return q}function F(a){a=a.querySelectorAll("[data-ng-animate]");s(a,function(a){var b=parseInt(a.getAttribute("data-ng-animate"),10),c=y.get(a);if(c)switch(b){case 2:c.runner.end();case 1:y.delete(a)}})}function g(a){a.removeAttribute("data-ng-animate");y.delete(a)}function E(a,b,c){c=C[0].body;var l=K(e),g=a===c||"HTML"===a.nodeName,d=a===l,t=!1,m=O.get(a),h;for((a=A.data(a,"$ngAnimatePin"))&&(b=K(a));b;){d||(d=b===l);if(1!==b.nodeType)break;
a=y.get(b)||{};if(!t){var f=O.get(b);if(!0===f&&!1!==m){m=!0;break}else!1===f&&(m=!1);t=a.structural}if(R(h)||!0===h)a=A.data(b,"$$ngAnimateChildren"),za(a)&&(h=a);if(t&&!1===h)break;g||(g=b===c);if(g&&d)break;if(!d&&(a=A.data(b,"$ngAnimatePin"))){b=K(a);continue}b=b.parentNode}return(!t||h)&&!0!==m&&d&&g}function l(a,b,c){c=c||{};c.state=b;a.setAttribute("data-ng-animate",b);c=(b=y.get(a))?wa(b,c):c;y.set(a,c)}var y=new U,O=new U,B=null,P=d.$watch(function(){return 0===u.totalPendingRequests},function(a){a&&
(P(),d.$$postDigest(function(){d.$$postDigest(function(){null===B&&(B=!0)})}))}),m=Object.create(null);U=a.customFilter();var la=a.classNameFilter();I=function(){return!0};var fa=U||I,Ya=la?function(a,b){var c=[a.getAttribute("class"),b.addClass,b.removeClass].join(" ");return la.test(c)}:I,W=aa(t),Oa=Y.Node.prototype.contains||function(a){return this===a||!!(this.compareDocumentPosition(a)&16)},D={on:function(a,b,c){var l=va(b);m[a]=m[a]||[];m[a].push({node:l,callback:c});A(b).on("$destroy",function(){y.get(l)||
D.off(a,b,c)})},off:function(a,b,c){if(1!==arguments.length||G(arguments[0])){var l=m[a];l&&(m[a]=1===arguments.length?null:h(l,b,c))}else for(l in b=arguments[0],m)m[l]=h(m[l],b)},pin:function(a,b){Fa(sa(a),"element","not an element");Fa(sa(b),"parentElement","not an element");a.data("$ngAnimatePin",b)},push:function(a,b,c,l){c=c||{};c.domOperation=l;return q(a,b,c)},enabled:function(a,b){var c=arguments.length;if(0===c)b=!!B;else if(sa(a)){var l=K(a);if(1===c)b=!O.get(l);else{if(!O.has(l))A(a).on("$destroy",
ia);O.set(l,!b)}}else b=B=!!a;return b}};return D}]}]).provider("$$animateCache",function(){var a=0,b=Object.create(null);this.$get=[function(){return{cacheKey:function(b,d,f,k){var e=b.parentNode;b=[e.$$ngAnimateParentKey||(e.$$ngAnimateParentKey=++a),d,b.getAttribute("class")];f&&b.push(f);k&&b.push(k);return b.join(" ")},containsCachedAnimationWithoutDuration:function(a){return(a=b[a])&&!a.isValid||!1},flush:function(){b=Object.create(null)},count:function(a){return(a=b[a])?a.total:0},get:function(a){return(a=
b[a])&&a.value},put:function(a,d,f){b[a]?(b[a].total++,b[a].value=d):b[a]={total:1,value:d,isValid:f}}}}]}).provider("$$animation",["$animateProvider",function(a){var b=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(a,d,f,k,e,Q,L){function x(a){function b(a){if(a.processed)return a;a.processed=!0;var d=a.domNode,t=d.parentNode;f.set(d,a);for(var h;t;){if(h=f.get(t)){h.processed||(h=b(h));break}t=t.parentNode}(h||
c).children.push(a);return a}var c={children:[]},d,f=new e;for(d=0;d<a.length;d++){var da=a[d];f.set(da.domNode,a[d]={domNode:da.domNode,element:da.element,fn:da.fn,children:[]})}for(d=0;d<a.length;d++)b(a[d]);return function(a){var b=[],c=[],d;for(d=0;d<a.children.length;d++)c.push(a.children[d]);a=c.length;var t=0,f=[];for(d=0;d<c.length;d++){var g=c[d];0>=a&&(a=t,t=0,b.push(f),f=[]);f.push(g);g.children.forEach(function(a){t++;c.push(a)});a--}f.length&&b.push(f);return b}(c)}var C=[],U=aa(a);return function(e,
H,u){function t(a){a=a.hasAttribute("ng-animate-ref")?[a]:a.querySelectorAll("[ng-animate-ref]");var b=[];s(a,function(a){var c=a.getAttribute("ng-animate-ref");c&&c.length&&b.push(a)});return b}function I(a){var b=[],c={};s(a,function(a,d){var l=K(a.element),g=0<=["enter","move"].indexOf(a.event),l=a.structural?t(l):[];if(l.length){var f=g?"to":"from";s(l,function(a){var b=a.getAttribute("ng-animate-ref");c[b]=c[b]||{};c[b][f]={animationID:d,element:A(a)}})}else b.push(a)});var d={},g={};s(c,function(c,
t){var f=c.from,e=c.to;if(f&&e){var h=a[f.animationID],k=a[e.animationID],E=f.animationID.toString();if(!g[E]){var I=g[E]={structural:!0,beforeStart:function(){h.beforeStart();k.beforeStart()},close:function(){h.close();k.close()},classes:da(h.classes,k.classes),from:h,to:k,anchors:[]};I.classes.length?b.push(I):(b.push(h),b.push(k))}g[E].anchors.push({out:f.element,"in":e.element})}else f=f?f.animationID:e.animationID,e=f.toString(),d[e]||(d[e]=!0,b.push(a[f]))});return b}function da(a,b){a=a.split(" ");
b=b.split(" ");for(var c=[],d=0;d<a.length;d++){var g=a[d];if("ng-"!==g.substring(0,3))for(var t=0;t<b.length;t++)if(g===b[t]){c.push(g);break}}return c.join(" ")}function ia(a){for(var c=b.length-1;0<=c;c--){var d=f.get(b[c])(a);if(d)return d}}function v(a,b){function c(a){(a=a.data("$$animationRunner"))&&a.setHost(b)}a.from&&a.to?(c(a.from.element),c(a.to.element)):c(a.element)}function ua(){var a=e.data("$$animationRunner");!a||"leave"===H&&u.$$domOperationFired||a.end()}function h(b){e.off("$destroy",
ua);e.removeData("$$animationRunner");U(e,u);ha(e,u);u.domOperation();E&&a.removeClass(e,E);F.complete(!b)}u=pa(u);var q=0<=["enter","move","leave"].indexOf(H),F=new k({end:function(){h()},cancel:function(){h(!0)}});if(!b.length)return h(),F;var g=Ga(e.attr("class"),Ga(u.addClass,u.removeClass)),E=u.tempClasses;E&&(g+=" "+E,u.tempClasses=null);q&&e.data("$$animatePrepareClasses","ng-"+H+"-prepare");e.data("$$animationRunner",F);C.push({element:e,classes:g,event:H,structural:q,options:u,beforeStart:function(){E=
(E?E+" ":"")+"ng-animate";a.addClass(e,E);var b=e.data("$$animatePrepareClasses");b&&a.removeClass(e,b)},close:h});e.on("$destroy",ua);if(1<C.length)return F;d.$$postDigest(function(){var b=[];s(C,function(a){a.element.data("$$animationRunner")?b.push(a):a.close()});C.length=0;var d=I(b),g=[];s(d,function(a){var b=a.from?a.from.element:a.element,c=u.addClass,d=L.cacheKey(b[0],a.event,(c?c+" ":"")+"ng-animate",u.removeClass);g.push({element:b,domNode:K(b),fn:function(){var b,c=a.close;if(L.containsCachedAnimationWithoutDuration(d))c();
else{a.beforeStart();if((a.anchors?a.from.element||a.to.element:a.element).data("$$animationRunner")){var g=ia(a);g&&(b=g.start)}b?(b=b(),b.done(function(a){c(!a)}),v(a,b)):c()}}})});for(var d=x(g),t=0;t<d.length;t++)for(var f=d[t],e=0;e<f.length;e++){var h=f[e],k=h.element;d[t][e]=h.fn;0===t?k.removeData("$$animatePrepareClasses"):(h=k.data("$$animatePrepareClasses"))&&a.addClass(k,h)}Q(d)});return F}}]}]).provider("$animateCss",["$animateProvider",function(a){this.$get=["$window","$$jqLite","$$AnimateRunner",
"$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(a,c,d,f,k,e,Q,L,x){function C(d,f,e,x){var v,s="stagger-"+e;0<k.count(e)&&(v=k.get(s),v||(f=$(f,"-stagger"),c.addClass(d,f),v=Ka(a,d,x),v.animationDuration=Math.max(v.animationDuration,0),v.transitionDuration=Math.max(v.transitionDuration,0),c.removeClass(d,f),k.put(s,v,!0)));return v||{}}function U(a){u.push(a);L.waitUntilQuiet(function(){k.flush();for(var a=e(),b=0;b<u.length;b++)u[b](a);u.length=0})}
function z(c,d,f,e){d=k.get(f);d||(d=Ka(a,c,Wa),"infinite"===d.animationIterationCount&&(d.animationIterationCount=1));k.put(f,d,e||0<d.transitionDuration||0<d.animationDuration);c=d;f=c.animationDelay;e=c.transitionDelay;c.maxDelay=f&&e?Math.max(f,e):f||e;c.maxDuration=Math.max(c.animationDuration*c.animationIterationCount,c.transitionDuration);return c}var H=aa(c),u=[];return function(a,b){function e(){v()}function L(){v(!0)}function v(b){if(!(P||la&&m)){P=!0;m=!1;V&&!g.$$skipPreparationClasses&&
c.removeClass(a,V);ba&&c.removeClass(a,ba);xa(l,!1);ra.blockTransitions(l,!1);s(y,function(a){l.style[a[0]]=""});H(a,g);ha(a,g);Object.keys(E).length&&s(E,function(a,b){a?l.style.setProperty(b,a):l.style.removeProperty(b)});if(g.onDone)g.onDone();w&&w.length&&a.off(w.join(" "),q);var d=a.data("$$animateCss");d&&(f.cancel(d[0].timer),a.removeData("$$animateCss"));fa&&fa.complete(!b)}}function u(a){p.blockTransition&&ra.blockTransitions(l,a);p.blockKeyframeAnimation&&xa(l,!!a)}function h(){fa=new d({end:e,
cancel:L});U(N);v();return{$$willAnimate:!1,start:function(){return fa},end:e}}function q(a){a.stopPropagation();var b=a.originalEvent||a;b.target===l&&(a=b.$manualTimeStamp||Date.now(),b=parseFloat(b.elapsedTime.toFixed(3)),Math.max(a-J,0)>=G&&b>=D&&(la=!0,v()))}function F(){function b(){if(!P){u(!1);s(y,function(a){l.style[a[0]]=a[1]});H(a,g);c.addClass(a,ba);if(p.recalculateTimingStyles){T=l.getAttribute("class")+" "+V;ka=k.cacheKey(l,ja,g.addClass,g.removeClass);r=z(l,T,ka,!1);ga=r.maxDelay;W=
Math.max(ga,0);D=r.maxDuration;if(0===D){v();return}p.hasTransitions=0<r.transitionDuration;p.hasAnimations=0<r.animationDuration}p.applyAnimationDelay&&(ga="boolean"!==typeof g.delay&&ya(g.delay)?parseFloat(g.delay):ga,W=Math.max(ga,0),r.animationDelay=ga,ea=[qa,ga+"s"],y.push(ea),l.style[ea[0]]=ea[1]);G=1E3*W;R=1E3*D;if(g.easing){var e,h=g.easing;p.hasTransitions&&(e=M+"TimingFunction",y.push([e,h]),l.style[e]=h);p.hasAnimations&&(e=ca+"TimingFunction",y.push([e,h]),l.style[e]=h)}r.transitionDuration&&
w.push(Aa);r.animationDuration&&w.push(Ba);J=Date.now();var m=G+1.5*R;e=J+m;var h=a.data("$$animateCss")||[],F=!0;if(h.length){var n=h[0];(F=e>n.expectedEndTime)?f.cancel(n.timer):h.push(v)}F&&(m=f(d,m,!1),h[0]={timer:m,expectedEndTime:e},h.push(v),a.data("$$animateCss",h));if(w.length)a.on(w.join(" "),q);g.to&&(g.cleanupStyles&&Ma(E,l,Object.keys(g.to)),Ja(a,g))}}function d(){var b=a.data("$$animateCss");if(b){for(var c=1;c<b.length;c++)b[c]();a.removeData("$$animateCss")}}if(!P)if(l.parentNode){var e=
function(a){if(la)m&&a&&(m=!1,v());else if(m=!a,r.animationDuration)if(a=xa(l,m),m)y.push(a);else{var b=y,c=b.indexOf(a);0<=a&&b.splice(c,1)}},h=0<aa&&(r.transitionDuration&&0===X.transitionDuration||r.animationDuration&&0===X.animationDuration)&&Math.max(X.animationDelay,X.transitionDelay);h?f(b,Math.floor(h*aa*1E3),!1):b();A.resume=function(){e(!0)};A.pause=function(){e(!1)}}else v()}var g=b||{};g.$$prepared||(g=pa(Da(g)));var E={},l=K(a);if(!l||!l.parentNode||!x.enabled())return h();var y=[],O=
a.attr("class"),B=Qa(g),P,m,la,fa,A,W,G,D,R,J,w=[];if(0===g.duration||!Q.animations&&!Q.transitions)return h();var ja=g.event&&Z(g.event)?g.event.join(" "):g.event,Y=ja&&g.structural,n="",S="";Y?n=$(ja,"ng-",!0):ja&&(n=ja);g.addClass&&(S+=$(g.addClass,"-add"));g.removeClass&&(S.length&&(S+=" "),S+=$(g.removeClass,"-remove"));g.applyClassesEarly&&S.length&&H(a,g);var V=[n,S].join(" ").trim(),T=O+" "+V,O=B.to&&0<Object.keys(B.to).length;if(!(0<(g.keyframeStyle||"").length||O||V))return h();var X,ka=
k.cacheKey(l,ja,g.addClass,g.removeClass);if(k.containsCachedAnimationWithoutDuration(ka))return V=null,h();0<g.stagger?(B=parseFloat(g.stagger),X={transitionDelay:B,animationDelay:B,transitionDuration:0,animationDuration:0}):X=C(l,V,ka,Xa);g.$$skipPreparationClasses||c.addClass(a,V);g.transitionStyle&&(B=[M,g.transitionStyle],ma(l,B),y.push(B));0<=g.duration&&(B=0<l.style[M].length,B=La(g.duration,B),ma(l,B),y.push(B));g.keyframeStyle&&(B=[ca,g.keyframeStyle],ma(l,B),y.push(B));var aa=X?0<=g.staggerIndex?
g.staggerIndex:k.count(ka):0;(n=0===aa)&&!g.skipBlocking&&ra.blockTransitions(l,9999);var r=z(l,T,ka,!Y),ga=r.maxDelay;W=Math.max(ga,0);D=r.maxDuration;var p={};p.hasTransitions=0<r.transitionDuration;p.hasAnimations=0<r.animationDuration;p.hasTransitionAll=p.hasTransitions&&"all"===r.transitionProperty;p.applyTransitionDuration=O&&(p.hasTransitions&&!p.hasTransitionAll||p.hasAnimations&&!p.hasTransitions);p.applyAnimationDuration=g.duration&&p.hasAnimations;p.applyTransitionDelay=ya(g.delay)&&(p.applyTransitionDuration||
p.hasTransitions);p.applyAnimationDelay=ya(g.delay)&&p.hasAnimations;p.recalculateTimingStyles=0<S.length;if(p.applyTransitionDuration||p.applyAnimationDuration)D=g.duration?parseFloat(g.duration):D,p.applyTransitionDuration&&(p.hasTransitions=!0,r.transitionDuration=D,B=0<l.style[M+"Property"].length,y.push(La(D,B))),p.applyAnimationDuration&&(p.hasAnimations=!0,r.animationDuration=D,y.push([Ca,D+"s"]));if(0===D&&!p.recalculateTimingStyles)return h();var ba=$(V,"-active");if(null!=g.delay){var ea;
"boolean"!==typeof g.delay&&(ea=parseFloat(g.delay),W=Math.max(ea,0));p.applyTransitionDelay&&y.push([na,ea+"s"]);p.applyAnimationDelay&&y.push([qa,ea+"s"])}null==g.duration&&0<r.transitionDuration&&(p.recalculateTimingStyles=p.recalculateTimingStyles||n);G=1E3*W;R=1E3*D;g.skipBlocking||(p.blockTransition=0<r.transitionDuration,p.blockKeyframeAnimation=0<r.animationDuration&&0<X.animationDelay&&0===X.animationDuration);g.from&&(g.cleanupStyles&&Ma(E,l,Object.keys(g.from)),Ia(a,g));p.blockTransition||
p.blockKeyframeAnimation?u(D):g.skipBlocking||ra.blockTransitions(l,!1);return{$$willAnimate:!0,end:e,start:function(){if(!P)return A={end:e,cancel:L,resume:null,pause:null},fa=new d(A),U(F),fa}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(a){a.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(a,c,d,f,k,e,Q){function L(a){return a.replace(/\bng-\S+\b/g,"")}function x(a,b){G(a)&&
(a=a.split(" "));G(b)&&(b=b.split(" "));return a.filter(function(a){return-1===b.indexOf(a)}).join(" ")}function C(c,e,f){function k(a){var b={},c=K(a).getBoundingClientRect();s(["width","height","top","left"],function(a){var d=c[a];switch(a){case "top":d+=H.scrollTop;break;case "left":d+=H.scrollLeft}b[a]=Math.floor(d)+"px"});return b}function v(){var c=L(f.attr("class")||""),d=x(c,q),c=x(q,c),d=a(h,{to:k(f),addClass:"ng-anchor-in "+d,removeClass:"ng-anchor-out "+c,delay:!0});return d.$$willAnimate?
d:null}function C(){h.remove();e.removeClass("ng-animate-shim");f.removeClass("ng-animate-shim")}var h=A(K(e).cloneNode(!0)),q=L(h.attr("class")||"");e.addClass("ng-animate-shim");f.addClass("ng-animate-shim");h.addClass("ng-anchor");u.append(h);var F;c=function(){var c=a(h,{addClass:"ng-anchor-out",delay:!0,from:k(e)});return c.$$willAnimate?c:null}();if(!c&&(F=v(),!F))return C();var g=c||F;return{start:function(){function a(){c&&c.end()}var b,c=g.start();c.done(function(){c=null;if(!F&&(F=v()))return c=
F.start(),c.done(function(){c=null;C();b.complete()}),c;C();b.complete()});return b=new d({end:a,cancel:a})}}}function z(a,b,c,e){var f=oa(a,N),k=oa(b,N),h=[];s(e,function(a){(a=C(c,a.out,a["in"]))&&h.push(a)});if(f||k||0!==h.length)return{start:function(){function a(){s(b,function(a){a.end()})}var b=[];f&&b.push(f.start());k&&b.push(k.start());s(h,function(a){b.push(a.start())});var c=new d({end:a,cancel:a});d.all(b,function(a){c.complete(a)});return c}}}function oa(c){var d=c.element,e=c.options||
{};c.structural&&(e.event=c.event,e.structural=!0,e.applyClassesEarly=!0,"leave"===c.event&&(e.onDone=e.domOperation));e.preparationClasses&&(e.event=ba(e.event,e.preparationClasses));c=a(d,e);return c.$$willAnimate?c:null}if(!k.animations&&!k.transitions)return N;var H=Q[0].body;c=K(f);var u=A(c.parentNode&&11===c.parentNode.nodeType||H.contains(c)?c:H);return function(a){return a.from&&a.to?z(a.from,a.to,a.classes,a.anchors):oa(a)}}]}]).provider("$$animateJs",["$animateProvider",function(a){this.$get=
["$injector","$$AnimateRunner","$$jqLite",function(b,c,d){function f(c){c=Z(c)?c:c.split(" ");for(var d=[],f={},k=0;k<c.length;k++){var s=c[k],z=a.$$registeredAnimations[s];z&&!f[s]&&(d.push(b.get(z)),f[s]=!0)}return d}var k=aa(d);return function(a,b,d,x){function C(){x.domOperation();k(a,x)}function z(a,b,d,f,e){switch(d){case "animate":b=[b,f.from,f.to,e];break;case "setClass":b=[b,t,I,e];break;case "addClass":b=[b,t,e];break;case "removeClass":b=[b,I,e];break;default:b=[b,e]}b.push(f);if(a=a.apply(a,
b))if(Ea(a.start)&&(a=a.start()),a instanceof c)a.done(e);else if(Ea(a))return a;return N}function A(a,b,d,e,f){var h=[];s(e,function(e){var l=e[f];l&&h.push(function(){var e,f,h=!1,k=function(a){h||(h=!0,(f||N)(a),e.complete(!a))};e=new c({end:function(){k()},cancel:function(){k(!0)}});f=z(l,a,b,d,function(a){k(!1===a)});return e})});return h}function H(a,b,d,e,f){var h=A(a,b,d,e,f);if(0===h.length){var k,q;"beforeSetClass"===f?(k=A(a,"removeClass",d,e,"beforeRemoveClass"),q=A(a,"addClass",d,e,"beforeAddClass")):
"setClass"===f&&(k=A(a,"removeClass",d,e,"removeClass"),q=A(a,"addClass",d,e,"addClass"));k&&(h=h.concat(k));q&&(h=h.concat(q))}if(0!==h.length)return function(a){var b=[];h.length&&s(h,function(a){b.push(a())});b.length?c.all(b,a):a();return function(a){s(b,function(b){a?b.cancel():b.end()})}}}var u=!1;3===arguments.length&&ta(d)&&(x=d,d=null);x=pa(x);d||(d=a.attr("class")||"",x.addClass&&(d+=" "+x.addClass),x.removeClass&&(d+=" "+x.removeClass));var t=x.addClass,I=x.removeClass,G=f(d),K,v;if(G.length){var M,
h;"leave"===b?(h="leave",M="afterLeave"):(h="before"+b.charAt(0).toUpperCase()+b.substr(1),M=b);"enter"!==b&&"move"!==b&&(K=H(a,b,x,G,h));v=H(a,b,x,G,M)}if(K||v){var q;return{$$willAnimate:!0,end:function(){q?q.end():(u=!0,C(),ha(a,x),q=new c,q.complete(!0));return q},start:function(){function b(c){u=!0;C();ha(a,x);q.complete(c)}if(q)return q;q=new c;var d,f=[];K&&f.push(function(a){d=K(a)});f.length?f.push(function(a){C();a(!0)}):C();v&&f.push(function(a){d=v(a)});q.setHost({end:function(){u||((d||
N)(void 0),b(void 0))},cancel:function(){u||((d||N)(!0),b(!0))}});c.chain(f,b);return q}}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(a,c){function d(c){return a(c.element,c.event,c.classes,c.options)}return function(a){if(a.from&&a.to){var b=d(a.from),e=d(a.to);if(b||e)return{start:function(){function a(){return function(){s(d,function(a){a.end()})}}var d=[];b&&d.push(b.start());e&&
d.push(e.start());c.all(d,function(a){f.complete(a)});var f=new c({end:a(),cancel:a()});return f}}}else return d(a)}}]}])})(window,window.angular);

;;;/*
 AngularJS v1.8.2
 (c) 2010-2020 Google LLC. http://angularjs.org
 License: MIT
*/
(function(s,e){'use strict';function O(e){var g=[];B(g,D).chars(e);return g.join("")}var C=e.$$minErr("$sanitize"),E,g,F,G,H,q,D,I,J,B;e.module("ngSanitize",[]).provider("$sanitize",function(){function h(a,d){return A(a.split(","),d)}function A(a,d){var c={},b;for(b=0;b<a.length;b++)c[d?q(a[b]):a[b]]=!0;return c}function t(a,d){d&&d.length&&g(a,A(d))}function P(a){for(var d={},c=0,b=a.length;c<b;c++){var k=a[c];d[k.name]=k.value}return d}function K(a){return a.replace(/&/g,"&amp;").replace(Q,function(a){var c=
a.charCodeAt(0);a=a.charCodeAt(1);return"&#"+(1024*(c-55296)+(a-56320)+65536)+";"}).replace(u,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function z(a){for(;a;){if(a.nodeType===s.Node.ELEMENT_NODE)for(var d=a.attributes,c=0,b=d.length;c<b;c++){var k=d[c],f=k.name.toLowerCase();if("xmlns:ns1"===f||0===f.lastIndexOf("ns1:",0))a.removeAttributeNode(k),c--,b--}(d=a.firstChild)&&z(d);a=v("nextSibling",a)}}function v(a,d){var c=d[a];if(c&&I.call(d,c))throw C("elclob",
d.outerHTML||d.outerText);return c}var y=!1,f=!1;this.$get=["$$sanitizeUri",function(a){y=!0;f&&g(m,l);return function(d){var c=[];J(d,B(c,function(b,c){return!/^unsafe:/.test(a(b,c))}));return c.join("")}}];this.enableSvg=function(a){return H(a)?(f=a,this):f};this.addValidElements=function(a){y||(G(a)&&(a={htmlElements:a}),t(l,a.svgElements),t(r,a.htmlVoidElements),t(m,a.htmlVoidElements),t(m,a.htmlElements));return this};this.addValidAttrs=function(a){y||g(L,A(a,!0));return this};E=e.bind;g=e.extend;
F=e.forEach;G=e.isArray;H=e.isDefined;q=e.$$lowercase;D=e.noop;J=function(a,d){null===a||void 0===a?a="":"string"!==typeof a&&(a=""+a);var c=M(a);if(!c)return"";var b=5;do{if(0===b)throw C("uinput");b--;a=c.innerHTML;c=M(a)}while(a!==c.innerHTML);for(b=c.firstChild;b;){switch(b.nodeType){case 1:d.start(b.nodeName.toLowerCase(),P(b.attributes));break;case 3:d.chars(b.textContent)}var k;if(!(k=b.firstChild)&&(1===b.nodeType&&d.end(b.nodeName.toLowerCase()),k=v("nextSibling",b),!k))for(;null==k;){b=
v("parentNode",b);if(b===c)break;k=v("nextSibling",b);1===b.nodeType&&d.end(b.nodeName.toLowerCase())}b=k}for(;b=c.firstChild;)c.removeChild(b)};B=function(a,d){var c=!1,b=E(a,a.push);return{start:function(a,f){a=q(a);!c&&w[a]&&(c=a);c||!0!==m[a]||(b("<"),b(a),F(f,function(c,f){var e=q(f),h="img"===a&&"src"===e||"background"===e;!0!==L[e]||!0===N[e]&&!d(c,h)||(b(" "),b(f),b('="'),b(K(c)),b('"'))}),b(">"))},end:function(a){a=q(a);c||!0!==m[a]||!0===r[a]||(b("</"),b(a),b(">"));a==c&&(c=!1)},chars:function(a){c||
b(K(a))}}};I=s.Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)};var Q=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=/([^#-~ |!])/g,r=h("area,br,col,hr,img,wbr"),x=h("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),p=h("rp,rt"),n=g({},p,x),x=g({},x,h("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),p=g({},p,h("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),
l=h("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),w=h("script,style"),m=g({},r,x,p,n),N=h("background,cite,href,longdesc,src,xlink:href,xml:base"),n=h("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),
p=h("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",
!0),L=g({},N,p,n),M=function(a,d){function c(b){b="<remove></remove>"+b;try{var c=(new a.DOMParser).parseFromString(b,"text/html").body;c.firstChild.remove();return c}catch(d){}}var b;try{b=!!c("")}catch(f){b=!1}if(b)return c;if(!d||!d.implementation)throw C("noinert");b=d.implementation.createHTMLDocument("inert");var e=(b.documentElement||b.getDocumentElement()).querySelector("body");return function(a){e.innerHTML=a;d.documentMode&&z(e);return e}}(s,s.document)}).info({angularVersion:"1.8.2"});
e.module("ngSanitize").filter("linky",["$sanitize",function(h){var g=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,t=/^mailto:/i,q=e.$$minErr("linky"),s=e.isDefined,z=e.isFunction,v=e.isObject,y=e.isString;return function(f,e,u){function r(e){e&&l.push(O(e))}function x(f,h){var g,a=p(f);l.push("<a ");for(g in a)l.push(g+'="'+a[g]+'" ');!s(e)||"target"in a||l.push('target="',e,'" ');l.push('href="',f.replace(/"/g,"&quot;"),'">');r(h);l.push("</a>")}if(null==
f||""===f)return f;if(!y(f))throw q("notstring",f);for(var p=z(u)?u:v(u)?function(){return u}:function(){return{}},n=f,l=[],w,m;f=n.match(g);)w=f[0],f[2]||f[4]||(w=(f[3]?"http://":"mailto:")+w),m=f.index,r(n.substr(0,m)),x(w,f[0].replace(t,"")),n=n.substring(m+f[0].length);r(n);return h(l.join(""))}}])})(window,window.angular);

;;;function af_compareVersionNumbers(e,t){var n=e.split("."),i=t.split(".");function r(e){for(var t=0;t<e.length;++t)if(!/^\d+$/.test(e[t]))return;return 1}if(!r(n)||!r(i))return NaN;for(var o=0;o<n.length;++o){if(i.length===o)return 1;if(n[o]!==i[o])return Number(n[o])>Number(i[o])?1:-1}return n.length!=i.length?-1:0}function ActionFormApi(){var n={},r=this;function o(e,t){n["formPopup"+e]=t}function a(e){$("#dnn"+e+"popup").on("hidden.bs.modal",function(){n["formPopup"+e]=!1,$("#dnn"+e+"popup").off("hidden.bs.modal"),$("#dnn"+e+"popup").off("shown.bs.modal")})}function i(e,t){var n,i;767<window.innerWidth?(n=t.width.includes("px")?t.width:"100%",(i=$("#dnn"+e+"popup")).on("shown.bs.modal",function(){a(e)}).find(".modal-dialog:first").css({width:t.width,"max-width":t.width}).find(".modal-content").css({width:n,"max-width":n}),window.bootstrap&&window.bootstrap.Modal?new bootstrap.Modal(i,{}).show():i.modal()):$("#dnn"+e+"popup").on("shown.bs.modal",function(){a(e)}).modal().find(".modal-dialog:first").removeAttr("style")}function s(e,t,n){e=$('[href="javascript: showFormInline'+e+'();"]').attr("target");null==e||""===e||"_self"===e?($("#"+t+" .frontEndTemplate").slideUp("fast"),$("#"+t+" .form-root").slideDown("fast")):"_blank"===e&&(window.open().location=n)}function t(e,t){$("#"+t+" .frontEndTemplate").slideDown(),$("#"+t+" .form-root").slideUp()}function l(e,t,n){n||0===$("#dnn"+e+"popup").length?initForm(t,function(){i(e,t.popupSettings)}):i(e,t.popupSettings)}this.openPopupByName=function(e,t,n){var i=$('[af-name="'+e+'"]').attr("data-moduleid");r.isFormPopupOpen(i)||(o(i,!0),(e=r.getSettings(i).options).qs=t,e.openMode,e.manualMode="Popup",l(i,e,n))},this.openPopupById=function(e,t,n){var i;r.isFormPopupOpen(e)||(o(e,!0),(i=r.getSettings(e).options).qs=t,i.manualMode="Popup",i.openMode="Manual",l(e,i,n))},this.closePopupById=function(e){$("#dnn"+e+"popup").modal("hide")},this.initForm=function(e,t){e=r.getSettings(e).options;e.qs=t,e.openMode="Always",initForm(e)},this.showFormInline=function(e,t){e=r.getSettings(e).options;e.qs=t,"Manual"==e.openMode&&(e.manualMode="Inline",initForm(e)),s(e.moduleId,e.rootElementClientId,e.ctlUrl)},this.hideFormInline=function(e){e=r.getSettings(e).options;t(e.moduleId,e.rootElementClientId)},this.showFormLoading=function(e,t){$("#pnlContent"+e+"> .common-loading-container").show(),dnnsf.initStickyLoading("pnlContent"+e)},this.hideFormLoading=function(e,t){$("#pnlContent"+e+"> .common-loading-container").hide()},this.showTabsProLoading=function(e,t){dnnsf.events.broadcast("loadForm",{loading:!0,moduleId:e})},this.openFileManager=function(e,t,n){angular.element("#"+e+">.file-manager").scope().openFileManager(t,n)},this.hideForm=function(e){e=r.getSettings(e).options;$("#"+e.rootElementClientId+" div").hide()},this.refreshField=function(e,t){var n,i=$("#dnn"+e+"root");i.length?(i=(n=i.scope()).form.fields[t])?n.getFieldData(i):console.error("Field with id '"+t+"' is not available in this form."):console.error("Could not find form module with id '"+e+"'")},this.getSettings=function(e){return dnnsf["af-"+e]},this.patchSettings=function(e,t){var n=r.getSettings(e)||{};$.extend(n,t),dnnsf["af-"+e]=n},this.isFormPopupOpen=function(e){return!!n["formPopup"+e]},this.__exports={},this.__exports.showFormPopup=i,this.__exports.showFormInline=s,this.__exports.hideFormInline=t,this.__exports.checkIfInitialized=l}!function(){function Ro(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ho(e,t,n,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var a=e[r];t(i,a,n(a),e)}return i}function zo(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function jo(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Lo(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Uo(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}function qo(e,t){return!(null==e||!e.length)&&-1<Jo(e,t,0)}function Vo(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function Bo(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function Wo(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Yo(e,t,n,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function Ko(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Go(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function Qo(e,i,t){var r;return t(e,function(e,t,n){if(i(e,t,n))return r=t,!1}),r}function Zo(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function Jo(e,t,n){return t==t?function(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):Zo(e,ea,n)}function Xo(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function ea(e){return e!=e}function ta(e,t){var n=null==e?0:e.length;return n?ra(e,t)/n:Fa}function na(t){return function(e){return null==e?xa:e[t]}}function e(t){return function(e){return null==t?xa:t[e]}}function ia(e,i,r,o,t){return t(e,function(e,t,n){r=o?(o=!1,e):i(r,e,t,n)}),r}function ra(e,t){for(var n,i=-1,r=e.length;++i<r;){var o=t(e[i]);o!==xa&&(n=n===xa?o:n+o)}return n}function oa(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function aa(e){return e&&e.slice(0,wa(e)+1).replace(bs,"")}function sa(t){return function(e){return t(e)}}function la(t,e){return Bo(e,function(e){return t[e]})}function ua(e,t){return e.has(t)}function ca(e,t){for(var n=-1,i=e.length;++n<i&&-1<Jo(t,e[n],0););return n}function pa(e,t){for(var n=e.length;n--&&-1<Jo(t,e[n],0););return n}function da(e){return"\\"+_[e]}function fa(e){return C.test(e)}function ha(e){var n=-1,i=Array(e.size);return e.forEach(function(e,t){i[++n]=[t,e]}),i}function ga(t,n){return function(e){return t(n(e))}}function ma(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n];a!==t&&a!==Da||(e[n]=Da,o[r++]=n)}return o}function va(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function ba(e){return(fa(e)?function(e){for(var t=D.lastIndex=0;D.test(e);)++t;return t}:S)(e)}function ya(e){return fa(e)?e.match(D)||[]:e.split("")}function wa(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}var xa,$a="Expected a function",ka="__lodash_hash_undefined__",Da="__lodash_placeholder__",Ca=128,_a=9007199254740991,Fa=NaN,Ma=4294967295,Sa=[["ary",Ca],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],Ta="[object Arguments]",Oa="[object Array]",Ea="[object Boolean]",Ia="[object Date]",Aa="[object Error]",Pa="[object Function]",Na="[object GeneratorFunction]",Ra="[object Map]",Ha="[object Number]",za="[object Object]",ja="[object Promise]",La="[object RegExp]",Ua="[object Set]",qa="[object String]",Va="[object Symbol]",Ba="[object WeakMap]",Wa="[object ArrayBuffer]",Ya="[object DataView]",Ka="[object Float32Array]",Ga="[object Float64Array]",Qa="[object Int8Array]",Za="[object Int16Array]",Ja="[object Int32Array]",Xa="[object Uint8Array]",es="[object Uint8ClampedArray]",ts="[object Uint16Array]",ns="[object Uint32Array]",is=/\b__p \+= '';/g,rs=/\b(__p \+=) '' \+/g,os=/(__e\(.*?\)|\b__t\)) \+\n'';/g,as=/&(?:amp|lt|gt|quot|#39);/g,ss=/[&<>"']/g,ls=RegExp(as.source),us=RegExp(ss.source),cs=/<%-([\s\S]+?)%>/g,ps=/<%([\s\S]+?)%>/g,ds=/<%=([\s\S]+?)%>/g,fs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hs=/^\w*$/,gs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ms=/[\\^$.*+?()[\]{}|]/g,vs=RegExp(ms.source),bs=/^\s+/,n=/\s/,ys=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ws=/\{\n\/\* \[wrapped with (.+)\] \*/,xs=/,? & /,$s=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ks=/[()=,{}\[\]\/\s]/,Ds=/\\(\\)?/g,Cs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,_s=/\w*$/,Fs=/^[-+]0x[0-9a-f]+$/i,Ms=/^0b[01]+$/i,Ss=/^\[object .+?Constructor\]$/,Ts=/^0o[0-7]+$/i,Os=/^(?:0|[1-9]\d*)$/,Es=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Is=/($^)/,As=/['\n\r\u2028\u2029\\]/g,t="\\ud800-\\udfff",i="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",r="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",s="\\ufe0e\\ufe0f",l="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",u="['’]",c="["+t+"]",p="["+l+"]",d="["+i+"]",f="\\d+",h="["+r+"]",g="["+o+"]",m="[^"+t+l+f+r+o+a+"]",v="\\ud83c[\\udffb-\\udfff]",b="[^"+t+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",w="[\\ud800-\\udbff][\\udc00-\\udfff]",x="["+a+"]",$="\\u200d",k="(?:"+g+"|"+m+")",l="(?:"+x+"|"+m+")",r="(?:['’](?:d|ll|m|re|s|t|ve))?",o="(?:['’](?:D|LL|M|RE|S|T|VE))?",a="(?:"+d+"|"+v+")"+"?",m="["+s+"]?",a=m+a+("(?:"+$+"(?:"+[b,y,w].join("|")+")"+m+a+")*"),h="(?:"+[h,y,w].join("|")+")"+a,c="(?:"+[b+d+"?",d,y,w,c].join("|")+")",Ps=RegExp(u,"g"),Ns=RegExp(d,"g"),D=RegExp(v+"(?="+v+")|"+c+a,"g"),Rs=RegExp([x+"?"+g+"+"+r+"(?="+[p,x,"$"].join("|")+")",l+"+"+o+"(?="+[p,x+k,"$"].join("|")+")",x+"?"+k+"+"+r,x+"+"+o,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",f,h].join("|"),"g"),C=RegExp("["+$+t+i+s+"]"),Hs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],js=-1,Ls={};Ls[Ka]=Ls[Ga]=Ls[Qa]=Ls[Za]=Ls[Ja]=Ls[Xa]=Ls[es]=Ls[ts]=Ls[ns]=!0,Ls[Ta]=Ls[Oa]=Ls[Wa]=Ls[Ea]=Ls[Ya]=Ls[Ia]=Ls[Aa]=Ls[Pa]=Ls[Ra]=Ls[Ha]=Ls[za]=Ls[La]=Ls[Ua]=Ls[qa]=Ls[Ba]=!1;var Us={};Us[Ta]=Us[Oa]=Us[Wa]=Us[Ya]=Us[Ea]=Us[Ia]=Us[Ka]=Us[Ga]=Us[Qa]=Us[Za]=Us[Ja]=Us[Ra]=Us[Ha]=Us[za]=Us[La]=Us[Ua]=Us[qa]=Us[Va]=Us[Xa]=Us[es]=Us[ts]=Us[ns]=!0,Us[Aa]=Us[Pa]=Us[Ba]=!1;var _={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qs=parseFloat,Vs=parseInt,i="object"==typeof global&&global&&global.Object===Object&&global,s="object"==typeof self&&self&&self.Object===Object&&self,Bs=i||s||Function("return this")(),s="object"==typeof exports&&exports&&!exports.nodeType&&exports,F=s&&"object"==typeof module&&module&&!module.nodeType&&module,Ws=F&&F.exports===s,M=Ws&&i.process,i=function(){try{var e=F&&F.require&&F.require("util").types;return e||M&&M.binding&&M.binding("util")}catch(e){}}(),Ys=i&&i.isArrayBuffer,Ks=i&&i.isDate,Gs=i&&i.isMap,Qs=i&&i.isRegExp,Zs=i&&i.isSet,Js=i&&i.isTypedArray,S=na("length"),Xs=e({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),el=e({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),tl=e({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),nl=function e(t){function h(e){if(sn(e)&&!eo(e)&&!(e instanceof m)){if(e instanceof g)return e;if(Qn.call(e,"__wrapped__"))return Et(e)}return new g(e)}function o(){}function g(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=xa}function m(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ma,this.__views__=[]}function n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function v(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a;++t<n;)this.add(e[t])}function b(e){this.size=(this.__data__=new r(e)).size}function i(e,t){var n,i=eo(e),r=!i&&Xr(e),o=!i&&!r&&no(e),a=!i&&!r&&!o&&so(e),s=i||r||o||a,l=s?oa(e.length,qn):[],u=l.length;for(n in e)!t&&!Qn.call(e,n)||s&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||vt(n,u))||l.push(n);return l}function s(e){var t=e.length;return t?e[ie(0,t-1)]:xa}function f(e,t,n){(n===xa||Jt(e[t],n))&&(n!==xa||t in e)||c(e,t,n)}function y(e,t,n){var i=e[t];Qn.call(e,t)&&Jt(i,n)&&(n!==xa||t in e)||c(e,t,n)}function l(e,t){for(var n=e.length;n--;)if(Jt(e[n][0],t))return n;return-1}function u(e,i,r,o){return Gi(e,function(e,t,n){i(o,e,r(e),n)}),o}function w(e,t){return e&&Ee(t,xn(t),e)}function c(e,t,n){"__proto__"==t&&hi?hi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function p(e,t){for(var n=-1,i=t.length,r=Nn(i),o=null==e;++n<i;)r[n]=o?xa:yn(e,t[n]);return r}function d(e,t,n){return e==e&&(n!==xa&&(e=e<=n?e:n),t!==xa&&(e=t<=e?e:t)),e}function x(n,i,r,e,t,o){var a,s=1&i,l=2&i,u=4&i;if((a=r?t?r(n,e,t,o):r(n):a)!==xa)return a;if(!an(n))return n;var c,p,d=eo(n);if(d){if(e=(f=n).length,h=new f.constructor(e),e&&"string"==typeof f[0]&&Qn.call(f,"index")&&(h.index=f.index,h.input=f.input),a=h,!s)return Oe(n,a)}else{var f=sr(n),h=f==Pa||f==Na;if(no(n))return Ce(n,s);if(f==za||f==Ta||h&&!t){if(a=l||h?{}:gt(n),!s)return l?(h=c=n,p=(p=a)&&Ee(h,$n(h),p),Ee(c,ar(c),p)):(p=w(a,c=n),Ee(c,or(c),p))}else{if(!Us[f])return t?n:{};a=function(e,t,n){var i=e.constructor;switch(t){case Wa:return _e(e);case Ea:case Ia:return new i(+e);case Ya:return function(e,t){return new e.constructor(t?_e(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case Ka:case Ga:case Qa:case Za:case Ja:case Xa:case es:case ts:case ns:return Fe(e,n);case Ra:return new i;case Ha:case qa:return new i(e);case La:return function(e){var t=new e.constructor(e.source,_s.exec(e));return t.lastIndex=e.lastIndex,t}(e);case Ua:return new i;case Va:return function(e){return Bi?Ln(Bi.call(e)):{}}(e)}}(n,f,s)}}s=(o=o||new b).get(n);if(s)return s;o.set(n,a),ao(n)?n.forEach(function(e){a.add(x(e,i,r,e,n,o))}):ro(n)&&n.forEach(function(e,t){a.set(t,x(e,i,r,t,n,o))});var g=d?xa:(u?l?st:at:l?$n:xn)(n);return zo(g||n,function(e,t){g&&(e=n[t=e]),y(a,t,x(e,i,r,t,n,o))}),a}function $(e,t,n){var i=n.length;if(null==e)return!i;for(e=Ln(e);i--;){var r=n[i],o=t[r],a=e[r];if(a===xa&&!(r in e)||!o(a))return!1}return!0}function k(e,t,n){if("function"!=typeof e)throw new Vn($a);return dr(function(){e.apply(xa,n)},t)}function D(e,t,n,i){var r=-1,o=qo,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Bo(t,sa(n))),i?(o=Vo,a=!1):200<=t.length&&(o=ua,a=!1,t=new v(t));e:for(;++r<s;){var c=e[r],p=null==n?c:n(c),c=i||0!==c?c:0;if(a&&p==p){for(var d=u;d--;)if(t[d]===p)continue e;l.push(c)}else o(t,p,i)||l.push(c)}return l}function C(e,i){var r=!0;return Gi(e,function(e,t,n){return r=!!i(e,t,n)}),r}function _(e,t,n){for(var i=-1,r=e.length;++i<r;){var o,a,s=e[i],l=t(s);null!=l&&(o===xa?l==l&&!pn(l):n(l,o))&&(o=l,a=s)}return a}function F(e,i){var r=[];return Gi(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function M(e,t,n,i,r){var o=-1,a=e.length;for(n=n||mt,r=r||[];++o<a;){var s=e[o];0<t&&n(s)?1<t?M(s,t-1,n,i,r):Wo(r,s):i||(r[r.length]=s)}return r}function S(e,t){return e&&Zi(e,t,xn)}function T(e,t){return e&&Ji(e,t,xn)}function O(t,e){return Uo(e,function(e){return nn(t[e])})}function E(e,t){for(var n=0,i=(t=ke(t,e)).length;null!=e&&n<i;)e=e[Tt(t[n++])];return n&&n==i?e:xa}function I(e,t,n){t=t(e);return eo(e)?t:Wo(t,n(e))}function A(e){return null==e?e===xa?"[object Undefined]":"[object Null]":fi&&fi in Ln(e)?function(e){var t=Qn.call(e,fi),n=e[fi];try{e[fi]=xa;var i=!0}catch(e){}var r=Xn.call(e);return i&&(t?e[fi]=n:delete e[fi]),r}(e):Xn.call(e)}function P(e,t){return t<e}function N(e,t){return null!=e&&Qn.call(e,t)}function R(e,t){return null!=e&&t in Ln(e)}function H(e,t,n){for(var i=n?Vo:qo,r=e[0].length,o=e.length,a=o,s=Nn(o),l=1/0,u=[];a--;){var c=e[a];a&&t&&(c=Bo(c,sa(t))),l=_i(c.length,l),s[a]=!n&&(t||120<=r&&120<=c.length)?new v(a&&c):xa}var c=e[0],p=-1,d=s[0];e:for(;++p<r&&u.length<l;){var f=c[p],h=t?t(f):f,f=n||0!==f?f:0;if(!(d?ua(d,h):i(u,h,n))){for(a=o;--a;){var g=s[a];if(!(g?ua(g,h):i(e[a],h,n)))continue e}d&&d.push(h),u.push(f)}}return u}function z(e,t,n){t=null==(e=Ct(e,t=ke(t,e)))?e:e[Tt(Rt(t))];return null==t?xa:Ro(t,e,n)}function j(e){return sn(e)&&A(e)==Ta}function L(e,t,n,i,r){return e===t||(null==e||null==t||!sn(e)&&!sn(t)?e!=e&&t!=t:function(e,t,n,i,r,o){var a=eo(e),s=eo(t),l=a?Oa:sr(e),u=s?Oa:sr(t),c=(l=l==Ta?za:l)==za,s=(u=u==Ta?za:u)==za,u=l==u;if(u&&no(e)){if(!no(t))return!1;c=!(a=!0)}if(u&&!c)return o=o||new b,a||so(e)?rt(e,t,n,i,r,o):function(e,t,n,i,r,o,a){switch(n){case Ya:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wa:return!(e.byteLength!=t.byteLength||!o(new oi(e),new oi(t)));case Ea:case Ia:case Ha:return Jt(+e,+t);case Aa:return e.name==t.name&&e.message==t.message;case La:case qa:return e==t+"";case Ra:var s=ha;case Ua:var l=1&i;if(s=s||va,e.size!=t.size&&!l)return!1;l=a.get(e);if(l)return l==t;i|=2,a.set(e,t);s=rt(s(e),s(t),i,r,o,a);return a.delete(e),s;case Va:if(Bi)return Bi.call(e)==Bi.call(t)}return!1}(e,t,l,n,i,r,o);if(!(1&n)){c=c&&Qn.call(e,"__wrapped__"),s=s&&Qn.call(t,"__wrapped__");if(c||s){c=c?e.value():e,s=s?t.value():t;return o=o||new b,r(c,s,n,i,o)}}return!!u&&(o=o||new b,function(e,t,n,i,r,o){var a=1&n,s=at(e),l=s.length;if(l!=at(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:Qn.call(t,c)))return!1}var p=o.get(e),d=o.get(t);if(p&&d)return p==t&&d==e;var f=!0;o.set(e,t),o.set(t,e);for(var h=a;++u<l;){c=s[u];var g,m=e[c],v=t[c];if(!((g=i?a?i(v,m,c,t,e,o):i(m,v,c,e,t,o):g)===xa?m===v||r(m,v,n,i,o):g)){f=!1;break}h=h||"constructor"==c}f&&!h&&(p=e.constructor,d=t.constructor,p!=d&&"constructor"in e&&"constructor"in t&&!("function"==typeof p&&p instanceof p&&"function"==typeof d&&d instanceof d)&&(f=!1));return o.delete(e),o.delete(t),f}(e,t,n,i,r,o))}(e,t,n,i,L,r))}function U(e,t,n,i){var r=n.length,o=r,a=!i;if(null==e)return!o;for(e=Ln(e);r--;){var s=n[r];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<o;){var l=(s=n[r])[0],u=e[l],c=s[1];if(a&&s[2]){if(u===xa&&!(l in e))return!1}else{var p,d=new b;if(!((p=i?i(u,c,l,e,t,d):p)===xa?L(c,u,3,i,d):p))return!1}}return!0}function q(e){return!(!an(e)||(t=e,!!Jn&&Jn in t))&&(nn(e)?ni:Ss).test(Ot(e));var t}function V(e){return"function"==typeof e?e:null==e?Sn:"object"==typeof e?eo(e)?Q(e[0],e[1]):G(e):In(e)}function B(e){if(!xt(e))return Di(e);var t,n=[];for(t in Ln(e))Qn.call(e,t)&&"constructor"!=t&&n.push(t);return n}function W(e){if(!an(e))return function(e){var t=[];if(null!=e)for(var n in Ln(e))t.push(n);return t}(e);var t,n=xt(e),i=[];for(t in e)("constructor"!=t||!n&&Qn.call(e,t))&&i.push(t);return i}function Y(e,t){return e<t}function K(e,i){var r=-1,o=Xt(e)?Nn(e.length):[];return Gi(e,function(e,t,n){o[++r]=i(e,t,n)}),o}function G(t){var n=dt(t);return 1==n.length&&n[0][2]?kt(n[0][0],n[0][1]):function(e){return e===t||U(e,t,n)}}function Q(n,i){return yt(n)&&$t(i)?kt(Tt(n),i):function(e){var t=yn(e,n);return t===xa&&t===i?wn(e,n):L(i,t,3)}}function Z(i,r,o,a,s){i!==r&&Zi(r,function(e,t){var n;s=s||new b,an(e)?function(e,t,n,i,r,o,a){var s=_t(e,n),l=_t(t,n),u=a.get(l);if(u)return f(e,n,u);var c=o?o(s,l,n+"",e,t,a):xa,p=c===xa;{var d;p&&(d=eo(l),u=!d&&no(l),t=!d&&!u&&so(l),c=l,d||u||t?c=eo(s)?s:en(s)?Oe(s):u?Ce(l,!(p=!1)):t?Fe(l,!(p=!1)):[]:un(l)||Xr(l)?Xr(c=s)?c=vn(s):an(s)&&!nn(s)||(c=gt(l)):p=!1)}p&&(a.set(l,c),r(c,l,i,o,a),a.delete(l)),f(e,n,c)}(i,r,t,o,Z,a,s):(n=a?a(_t(i,t),e,t+"",i,r,s):xa,f(i,t,n=n===xa?e:n))},$n)}function J(e,t){var n=e.length;if(n)return vt(t+=t<0?n:0,n)?e[t]:xa}function X(e,i,n){i=i.length?Bo(i,function(t){return eo(t)?function(e){return E(e,1===t.length?t[0]:t)}:t}):[Sn];var r=-1;return i=Bo(i,sa(ct())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(K(e,function(t,e,n){return{criteria:Bo(i,function(e){return e(t)}),index:++r,value:t}}),function(e,t){return function(e,t,n){for(var i=-1,r=e.criteria,o=t.criteria,a=r.length,s=n.length;++i<a;){var l=Me(r[i],o[i]);if(l)return s<=i?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)})}function ee(e,t,n){for(var i=-1,r=t.length,o={};++i<r;){var a=t[i],s=E(e,a);n(s,a)&&ae(o,ke(a,e),s)}return o}function te(e,t,n,i){var r=i?Xo:Jo,o=-1,a=t.length,s=e;for(e===t&&(t=Oe(t)),n&&(s=Bo(e,sa(n)));++o<a;)for(var l=0,u=t[o],c=n?n(u):u;-1<(l=r(s,c,l,i));)s!==e&&ci.call(s,l,1),ci.call(e,l,1);return e}function ne(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r,o=t[n];n!=i&&o===r||(vt(r=o)?ci.call(e,o,1):ge(e,o))}return e}function ie(e,t){return e+yi(Si()*(t-e+1))}function re(e,t){var n="";if(!e||t<1||_a<t)return n;for(;t%2&&(n+=e),(t=yi(t/2))&&(e+=e),t;);return n}function oe(e,t){return fr(Dt(e,t,Sn),e+"")}function ae(e,t,n,i){if(!an(e))return e;for(var r=-1,o=(t=ke(t,e)).length,a=o-1,s=e;null!=s&&++r<o;){var l,u=Tt(t[r]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;r!=a&&(l=s[u],(c=i?i(l,u,s):xa)===xa&&(c=an(l)?l:vt(t[r+1])?[]:{})),y(s,u,c),s=s[u]}return e}function se(e,t,n){var i=-1,r=e.length;(n=r<n?r:n)<0&&(n+=r),r=n<(t=t<0?r<-t?0:r+t:t)?0:n-t>>>0,t>>>=0;for(var o=Nn(r);++i<r;)o[i]=e[i+t];return o}function le(e,i){var r;return Gi(e,function(e,t,n){return!(r=i(e,t,n))}),!!r}function ue(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var o=i+r>>>1,a=e[o];null!==a&&!pn(a)&&(n?a<=t:a<t)?i=1+o:r=o}return r}return ce(e,t,Sn,n)}function ce(e,t,n,i){var r=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,l=pn(t),u=t===xa;r<o;){var c=yi((r+o)/2),p=n(e[c]),d=p!==xa,f=null===p,h=p==p,g=pn(p),p=a?i||h:u?h&&(i||d):s?h&&d&&(i||!f):l?h&&d&&!f&&(i||!g):!f&&!g&&(i?p<=t:p<t);p?r=c+1:o=c}return _i(o,4294967294)}function pe(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a,s=e[n],l=t?t(s):s;n&&Jt(l,a)||(a=l,o[r++]=0===s?0:s)}return o}function de(e){return"number"==typeof e?e:pn(e)?Fa:+e}function fe(e){if("string"==typeof e)return e;if(eo(e))return Bo(e,fe)+"";if(pn(e))return Wi?Wi.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function he(e,t,n){var i=-1,r=qo,o=e.length,a=!0,s=[],l=s;if(n)a=!1,r=Vo;else if(200<=o){var u=t?null:ir(e);if(u)return va(u);a=!1,r=ua,l=new v}else l=t?[]:s;e:for(;++i<o;){var c=e[i],p=t?t(c):c,c=n||0!==c?c:0;if(a&&p==p){for(var d=l.length;d--;)if(l[d]===p)continue e;t&&l.push(p),s.push(c)}else r(l,p,n)||(l!==s&&l.push(p),s.push(c))}return s}function ge(e,t){return null==(e=Ct(e,t=ke(t,e)))||delete e[Tt(Rt(t))]}function me(e,t,n,i){return ae(e,t,n(E(e,t)),i)}function ve(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?se(e,i?0:o,i?o+1:r):se(e,i?o+1:0,i?r:o)}function be(e,t){var n=e;return Yo(t,function(e,t){return t.func.apply(t.thisArg,Wo([e],t.args))},n=e instanceof m?e.value():n)}function ye(e,t,n){var i=e.length;if(i<2)return i?he(e[0]):[];for(var r=-1,o=Nn(i);++r<i;)for(var a=e[r],s=-1;++s<i;)s!=r&&(o[r]=D(o[r]||a,e[s],t,n));return he(M(o,1),t,n)}function we(e,t,n){for(var i=-1,r=e.length,o=t.length,a={};++i<r;)n(a,e[i],i<o?t[i]:xa);return a}function xe(e){return en(e)?e:[]}function $e(e){return"function"==typeof e?e:Sn}function ke(e,t){return eo(e)?e:yt(e,t)?[e]:hr(bn(e))}function De(e,t,n){var i=e.length;return n=n===xa?i:n,!t&&i<=n?e:se(e,t,n)}function Ce(e,t){if(t)return e.slice();t=e.length,t=ai?ai(t):new e.constructor(t);return e.copy(t),t}function _e(e){var t=new e.constructor(e.byteLength);return new oi(t).set(new oi(e)),t}function Fe(e,t){return new e.constructor(t?_e(e.buffer):e.buffer,e.byteOffset,e.length)}function Me(e,t){if(e!==t){var n=e!==xa,i=null===e,r=e==e,o=pn(e),a=t!==xa,s=null===t,l=t==t,u=pn(t);if(!s&&!u&&!o&&t<e||o&&a&&l&&!s&&!u||i&&a&&l||!n&&l||!r)return 1;if(!i&&!o&&!u&&e<t||u&&n&&r&&!i&&!o||s&&n&&r||!a&&r||!l)return-1}return 0}function Se(e,t,n,i){for(var r=-1,o=e.length,a=n.length,s=-1,l=t.length,u=Ci(o-a,0),c=Nn(l+u),p=!i;++s<l;)c[s]=t[s];for(;++r<a;)(p||r<o)&&(c[n[r]]=e[r]);for(;u--;)c[s++]=e[r++];return c}function Te(e,t,n,i){for(var r=-1,o=e.length,a=-1,s=n.length,l=-1,u=t.length,c=Ci(o-s,0),p=Nn(c+u),d=!i;++r<c;)p[r]=e[r];for(var f=r;++l<u;)p[f+l]=t[l];for(;++a<s;)(d||r<o)&&(p[f+n[a]]=e[r++]);return p}function Oe(e,t){var n=-1,i=e.length;for(t=t||Nn(i);++n<i;)t[n]=e[n];return t}function Ee(e,t,n,i){var r=!n;n=n||{};for(var o=-1,a=t.length;++o<a;){var s=t[o],l=i?i(n[s],e[s],s,n,e):xa;(r?c:y)(n,s,l=l===xa?e[s]:l)}return n}function Ie(r,o){return function(e,t){var n=eo(e)?Ho:u,i=o?o():{};return n(e,r,ct(t,2),i)}}function Ae(s){return oe(function(e,t){var n=-1,i=t.length,r=1<i?t[i-1]:xa,o=2<i?t[2]:xa,r=3<s.length&&"function"==typeof r?(i--,r):xa;for(o&&bt(t[0],t[1],o)&&(r=i<3?xa:r,i=1),e=Ln(e);++n<i;){var a=t[n];a&&s(e,a,n,r)}return e})}function Pe(o,a){return function(e,t){if(null==e)return e;if(!Xt(e))return o(e,t);for(var n=e.length,i=a?n:-1,r=Ln(e);(a?i--:++i<n)&&!1!==t(r[i],i,r););return e}}function Ne(l){return function(e,t,n){for(var i=-1,r=Ln(e),o=n(e),a=o.length;a--;){var s=o[l?a:++i];if(!1===t(r[s],s,r))break}return e}}function Re(i){return function(e){var t=fa(e=bn(e))?ya(e):xa,n=t?t[0]:e.charAt(0),e=t?De(t,1).join(""):e.slice(1);return n[i]()+e}}function He(t){return function(e){return Yo(Fn(_n(e).replace(Ps,"")),t,"")}}function ze(i){return function(){var e=arguments;switch(e.length){case 0:return new i;case 1:return new i(e[0]);case 2:return new i(e[0],e[1]);case 3:return new i(e[0],e[1],e[2]);case 4:return new i(e[0],e[1],e[2],e[3]);case 5:return new i(e[0],e[1],e[2],e[3],e[4]);case 6:return new i(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new i(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=Yi(i.prototype),n=i.apply(t,e);return an(n)?n:t}}function je(o,a,s){var l=ze(o);return function e(){for(var t=arguments.length,n=Nn(t),i=t,r=ut(e);i--;)n[i]=arguments[i];r=t<3&&n[0]!==r&&n[t-1]!==r?[]:ma(n,r);return(t-=r.length)<s?Ze(o,a,qe,e.placeholder,xa,n,r,xa,xa,s-t):Ro(this&&this!==Bs&&this instanceof e?l:o,this,n)}}function Le(o){return function(e,t,n){var i,r=Ln(e);Xt(e)||(i=ct(t,3),e=xn(e),t=function(e){return i(r[e],e,r)});n=o(e,t,n);return-1<n?r[i?e[n]:n]:xa}}function Ue(l){return ot(function(r){var o=r.length,e=o,t=g.prototype.thru;for(l&&r.reverse();e--;){var n=r[e];if("function"!=typeof n)throw new Vn($a);t&&!s&&"wrapper"==lt(n)&&(s=new g([],!0))}for(e=s?e:o;++e<o;)var i=lt(n=r[e]),a="wrapper"==i?rr(n):xa,s=a&&wt(a[0])&&424==a[1]&&!a[4].length&&1==a[9]?s[lt(a[0])].apply(s,a[3]):1==n.length&&wt(n)?s[i]():s.thru(n);return function(){var e=arguments,t=e[0];if(s&&1==e.length&&eo(t))return s.plant(t).value();for(var n=0,i=o?r[n].apply(this,e):t;++n<o;)i=r[n].call(this,i);return i}})}function qe(a,s,l,u,c,p,d,f,h,g){var m=s&Ca,v=1&s,b=2&s,y=24&s,w=512&s,x=b?xa:ze(a);return function e(){for(var t=Nn(o=arguments.length),n=o;n--;)t[n]=arguments[n];if(y&&(i=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(t,r=ut(e))),u&&(t=Se(t,u,c,y)),p&&(t=Te(t,p,d,y)),o-=i,y&&o<g)return Ze(a,s,qe,e.placeholder,l,t,ma(t,r),f,h,g-o);var i=v?l:this,r=b?i[a]:a,o=t.length;return f?t=function(e,t){for(var n=e.length,i=_i(t.length,n),r=Oe(e);i--;){var o=t[i];e[i]=vt(o,n)?r[o]:xa}return e}(t,f):w&&1<o&&t.reverse(),m&&h<o&&(t.length=h),(r=this&&this!==Bs&&this instanceof e?x||ze(r):r).apply(i,t)}}function Ve(n,a){return function(e,t){return e=e,i=n,r=a(t),o={},S(e,function(e,t,n){i(o,r(e),t,n)}),o;var i,r,o}}function Be(i,r){return function(e,t){var n;if(e===xa&&t===xa)return r;if(e!==xa&&(n=e),t!==xa){if(n===xa)return t;t="string"==typeof e||"string"==typeof t?(e=fe(e),fe(t)):(e=de(e),de(t)),n=i(e,t)}return n}}function We(i){return ot(function(e){return e=Bo(e,sa(ct())),oe(function(t){var n=this;return i(e,function(e){return Ro(e,n,t)})})})}function Ye(e,t){var n=(t=t===xa?" ":fe(t)).length;if(n<2)return n?re(t,e):t;n=re(t,bi(e/ba(t)));return fa(t)?De(ya(n),0,e).join(""):n.slice(0,e)}function Ke(s,e,l,u){var c=1&e,p=ze(s);return function e(){for(var t=-1,n=arguments.length,i=-1,r=u.length,o=Nn(r+n),a=this&&this!==Bs&&this instanceof e?p:s;++i<r;)o[i]=u[i];for(;n--;)o[i++]=arguments[++t];return Ro(a,c?l:this,o)}}function Ge(i){return function(e,t,n){return n&&"number"!=typeof n&&bt(e,t,n)&&(t=n=xa),e=fn(e),t===xa?(t=e,e=0):t=fn(t),function(e,t,n,i){for(var r=-1,o=Ci(bi((t-e)/(n||1)),0),a=Nn(o);o--;)a[i?o:++r]=e,e+=n;return a}(e,t,n=n===xa?e<t?1:-1:fn(n),i)}}function Qe(n){return function(e,t){return"string"==typeof e&&"string"==typeof t||(e=mn(e),t=mn(t)),n(e,t)}}function Ze(e,t,n,i,r,o,a,s,l,u){var c=8&t;t|=c?32:64,4&(t&=~(c?64:32))||(t&=-4);u=[e,t,r,c?o:xa,c?a:xa,c?xa:o,c?xa:a,s,l,u],n=n.apply(xa,u);return wt(e)&&pr(n,u),n.placeholder=i,Ft(n,e,t)}function Je(e){var i=jn[e];return function(e,t){if(e=mn(e),(t=null==t?0:_i(hn(t),292))&&$i(e)){var n=(bn(e)+"e").split("e");return+((n=(bn(i(n[0]+"e"+(+n[1]+t)))+"e").split("e"))[0]+"e"+(+n[1]-t))}return i(e)}}function Xe(o){return function(e){var t,n,i,r=sr(e);return r==Ra?ha(e):r==Ua?(r=e,n=-1,i=Array(r.size),r.forEach(function(e){i[++n]=[e,e]}),i):Bo(o(t=e),function(e){return[e,t[e]]})}}function et(e,t,n,i,r,o,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new Vn($a);var u,c,p=i?i.length:0;p||(t&=-97,i=r=xa),a=a===xa?a:Ci(hn(a),0),s=s===xa?s:hn(s),p-=r?r.length:0,64&t&&(u=i,c=r,i=r=xa);var d,f,h,g,m=l?xa:rr(e),a=[e,t,n,i,r,u,c,o,a,s];return m&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<131,a=i==Ca&&8==n||i==Ca&&256==n&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!o&&!a)return;1&i&&(e[2]=t[2],r|=1&n?0:4);n=t[3];{var s;n&&(s=e[3],e[3]=s?Se(s,n,t[4]):n,e[4]=s?ma(e[3],Da):t[4])}(n=t[5])&&(s=e[5],e[5]=s?Te(s,n,t[6]):n,e[6]=s?ma(e[5],Da):t[6]),(n=t[7])&&(e[7]=n),i&Ca&&(e[8]=null==e[8]?t[8]:_i(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=r}(a,m),e=a[0],t=a[1],n=a[2],i=a[3],r=a[4],!(s=a[9]=a[9]===xa?l?0:e.length:Ci(a[9]-p,0))&&24&t&&(t&=-25),n=t&&1!=t?8==t||16==t?je(e,t,s):32!=t&&33!=t||r.length?qe.apply(xa,a):Ke(e,t,n,i):(f=n,h=1&t,g=ze(d=e),function e(){return(this&&this!==Bs&&this instanceof e?g:d).apply(h?f:this,arguments)}),Ft((m?Xi:pr)(n,a),e,t)}function tt(e,t,n,i){return e===xa||Jt(e,Yn[n])&&!Qn.call(i,n)?t:e}function nt(e,t,n,i,r,o){return an(e)&&an(t)&&(o.set(t,e),Z(e,t,xa,nt,o),o.delete(t)),e}function it(e){return un(e)?xa:e}function rt(e,t,n,i,r,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&s<l))return!1;var u=o.get(e),l=o.get(t);if(u&&l)return u==t&&l==e;var c=-1,p=!0,d=2&n?new v:xa;for(o.set(e,t),o.set(t,e);++c<s;){var f,h=e[c],g=t[c];if((f=i?a?i(g,h,c,t,e,o):i(h,g,c,e,t,o):f)!==xa){if(f)continue;p=!1;break}if(d){if(!Go(t,function(e,t){return!ua(d,t)&&(h===e||r(h,e,n,i,o))&&d.push(t)})){p=!1;break}}else if(h!==g&&!r(h,g,n,i,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function ot(e){return fr(Dt(e,xa,Pt),e+"")}function at(e){return I(e,xn,or)}function st(e){return I(e,$n,ar)}function lt(e){for(var t=e.name+"",n=Hi[t],i=Qn.call(Hi,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function ut(e){return(Qn.call(h,"placeholder")?h:e).placeholder}function ct(){var e=(e=h.iteratee||Tn)===Tn?V:e;return arguments.length?e(arguments[0],arguments[1]):e}function pt(e,t){var n,i=e.__data__;return("string"==(e=typeof(n=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function dt(e){for(var t=xn(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,$t(r)]}return t}function ft(e,t){t=t,t=null==(e=e)?xa:e[t];return q(t)?t:xa}function ht(e,t,n){for(var i=-1,r=(t=ke(t,e)).length,o=!1;++i<r;){var a=Tt(t[i]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++i!=r?o:!!(r=null==e?0:e.length)&&on(r)&&vt(a,r)&&(eo(e)||Xr(e))}function gt(e){return"function"!=typeof e.constructor||xt(e)?{}:Yi(si(e))}function mt(e){return eo(e)||Xr(e)||!!(pi&&e&&e[pi])}function vt(e,t){var n=typeof e;return!!(t=null==t?_a:t)&&("number"==n||"symbol"!=n&&Os.test(e))&&-1<e&&e%1==0&&e<t}function bt(e,t,n){if(!an(n))return!1;var i=typeof t;return!!("number"==i?Xt(n)&&vt(t,n.length):"string"==i&&t in n)&&Jt(n[t],e)}function yt(e,t){if(!eo(e)){var n=typeof e;return"number"==n||"symbol"==n||"boolean"==n||null==e||pn(e)||hs.test(e)||!fs.test(e)||null!=t&&e in Ln(t)}}function wt(e){var t=lt(e),n=h[t];if("function"==typeof n&&t in m.prototype){if(e===n)return 1;n=rr(n);return n&&e===n[0]}}function xt(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Yn)}function $t(e){return e==e&&!an(e)}function kt(t,n){return function(e){return null!=e&&e[t]===n&&(n!==xa||t in Ln(e))}}function Dt(o,a,s){return a=Ci(a===xa?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=Ci(e.length-a,0),i=Nn(n);++t<n;)i[t]=e[a+t];for(var t=-1,r=Nn(a+1);++t<a;)r[t]=e[t];return r[a]=s(i),Ro(o,this,r)}}function Ct(e,t){return t.length<2?e:E(e,se(t,0,-1))}function _t(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function Ft(e,t,n){var i,r,t=t+"";return fr(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(1<n?"& ":"")+t[i],t=t.join(2<n?", ":" "),e.replace(ys,"{\n/* [wrapped with "+t+"] */\n")}(t,(i=(t=(t=t).match(ws))?t[1].split(xs):[],r=n,zo(Sa,function(e){var t="_."+e[0];r&e[1]&&!qo(i,t)&&i.push(t)}),i.sort())))}function Mt(n){var i=0,r=0;return function(){var e=Fi(),t=16-(e-r);if(r=e,0<t){if(800<=++i)return arguments[0]}else i=0;return n.apply(xa,arguments)}}function St(e,t){var n=-1,i=e.length,r=i-1;for(t=t===xa?i:t;++n<t;){var o=ie(n,r),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}function Tt(e){if("string"==typeof e||pn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ot(e){if(null!=e){try{return Gn.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Et(e){if(e instanceof m)return e.clone();var t=new g(e.__wrapped__,e.__chain__);return t.__actions__=Oe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function It(e,t,n){var i=null==e?0:e.length;if(!i)return-1;n=null==n?0:hn(n);return n<0&&(n=Ci(i+n,0)),Zo(e,ct(t,3),n)}function At(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i-1;return n!==xa&&(r=hn(n),r=n<0?Ci(i+r,0):_i(r,i-1)),Zo(e,ct(t,3),r,!0)}function Pt(e){return null!=e&&e.length?M(e,1):[]}function Nt(e){return e&&e.length?e[0]:xa}function Rt(e){var t=null==e?0:e.length;return t?e[t-1]:xa}function Ht(e,t){return e&&e.length&&t&&t.length?te(e,t):e}function zt(e){return null==e?e:Ti.call(e)}function jt(t){if(!t||!t.length)return[];var n=0;return t=Uo(t,function(e){if(en(e))return n=Ci(e.length,n),!0}),oa(n,function(e){return Bo(t,na(e))})}function Lt(e,t){if(!e||!e.length)return[];e=jt(e);return null==t?e:Bo(e,function(e){return Ro(t,xa,e)})}function Ut(e){e=h(e);return e.__chain__=!0,e}function qt(e,t){return t(e)}function Vt(e,t){return(eo(e)?zo:Gi)(e,ct(t,3))}function Bt(e,t){return(eo(e)?jo:Qi)(e,ct(t,3))}function Wt(e,t){return(eo(e)?Bo:K)(e,ct(t,3))}function Yt(e,t,n){return t=n?xa:t,t=e&&null==t?e.length:t,et(e,Ca,xa,xa,xa,xa,t)}function Kt(e,t){var n;if("function"!=typeof t)throw new Vn($a);return e=hn(e),function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=xa),n}}function Gt(i,n,e){function r(e){var t=l,n=u;return l=u=xa,h=e,p=i.apply(n,t)}function o(e){var t=e-f;return f===xa||n<=t||t<0||m&&c<=e-h}function a(){var e,t=Lr();return o(t)?s(t):(d=dr(a,(t=n-((e=t)-f),m?_i(t,c-(e-h)):t)),xa)}function s(e){return d=xa,v&&l?r(e):(l=u=xa,p)}function t(){var e=Lr(),t=o(e);if(l=arguments,u=this,f=e,t){if(d===xa)return h=t=f,d=dr(a,n),g?r(t):p;if(m)return nr(d),d=dr(a,n),r(f)}return d===xa&&(d=dr(a,n)),p}var l,u,c,p,d,f,h=0,g=!1,m=!1,v=!0;if("function"!=typeof i)throw new Vn($a);return n=mn(n)||0,an(e)&&(g=!!e.leading,m="maxWait"in e,c=m?Ci(mn(e.maxWait)||0,n):c,v="trailing"in e?!!e.trailing:v),t.cancel=function(){d!==xa&&nr(d),h=0,l=f=u=d=xa},t.flush=function(){return d===xa?p:s(Lr())},t}function Qt(i,r){if("function"!=typeof i||null!=r&&"function"!=typeof r)throw new Vn($a);function o(){var e=arguments,t=r?r.apply(this,e):e[0],n=o.cache;return n.has(t)?n.get(t):(e=i.apply(this,e),o.cache=n.set(t,e)||n,e)}return o.cache=new(Qt.Cache||a),o}function Zt(t){if("function"!=typeof t)throw new Vn($a);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}function Jt(e,t){return e===t||e!=e&&t!=t}function Xt(e){return null!=e&&on(e.length)&&!nn(e)}function en(e){return sn(e)&&Xt(e)}function tn(e){if(!sn(e))return!1;var t=A(e);return t==Aa||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!un(e)}function nn(e){if(!an(e))return!1;e=A(e);return e==Pa||e==Na||"[object AsyncFunction]"==e||"[object Proxy]"==e}function rn(e){return"number"==typeof e&&e==hn(e)}function on(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=_a}function an(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function sn(e){return null!=e&&"object"==typeof e}function ln(e){return"number"==typeof e||sn(e)&&A(e)==Ha}function un(e){if(!sn(e)||A(e)!=za)return!1;e=si(e);if(null===e)return!0;e=Qn.call(e,"constructor")&&e.constructor;return"function"==typeof e&&e instanceof e&&Gn.call(e)==ei}function cn(e){return"string"==typeof e||!eo(e)&&sn(e)&&A(e)==qa}function pn(e){return"symbol"==typeof e||sn(e)&&A(e)==Va}function dn(e){if(!e)return[];if(Xt(e))return(cn(e)?ya:Oe)(e);if(di&&e[di])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[di]());var t=sr(e);return(t==Ra?ha:t==Ua?va:Dn)(e)}function fn(e){return e?(e=mn(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function hn(e){var t=fn(e),e=t%1;return t==t?e?t-e:t:0}function gn(e){return e?d(hn(e),0,Ma):0}function mn(e){if("number"==typeof e)return e;if(pn(e))return Fa;if("string"!=typeof(e=an(e)?an(t="function"==typeof e.valueOf?e.valueOf():e)?t+"":t:e))return 0===e?e:+e;e=aa(e);var t=Ms.test(e);return t||Ts.test(e)?Vs(e.slice(2),t?2:8):Fs.test(e)?Fa:+e}function vn(e){return Ee(e,$n(e))}function bn(e){return null==e?"":fe(e)}function yn(e,t,n){t=null==e?xa:E(e,t);return t===xa?n:t}function wn(e,t){return null!=e&&ht(e,t,R)}function xn(e){return(Xt(e)?i:B)(e)}function $n(e){return Xt(e)?i(e,!0):W(e)}function kn(e,n){if(null==e)return{};var t=Bo(st(e),function(e){return[e]});return n=ct(n),ee(e,t,function(e,t){return n(e,t[0])})}function Dn(e){return null==e?[]:la(e,xn(e))}function Cn(e){return Ao(bn(e).toLowerCase())}function _n(e){return(e=bn(e))&&e.replace(Es,Xs).replace(Ns,"")}function Fn(e,t,n){return e=bn(e),(t=n?xa:t)===xa?(n=e,Hs.test(n)?e.match(Rs)||[]:e.match($s)||[]):e.match(t)||[]}function Mn(e){return function(){return e}}function Sn(e){return e}function Tn(e){return V("function"==typeof e?e:x(e,1))}function On(i,t,e){var n=xn(t),r=O(t,n);null!=e||an(t)&&(r.length||!n.length)||(e=t,t=i,i=this,r=O(t,xn(t)));var o=!(an(e)&&"chain"in e&&!e.chain),a=nn(i);return zo(r,function(e){var n=t[e];i[e]=n,a&&(i.prototype[e]=function(){var e=this.__chain__;if(o||e){var t=i(this.__wrapped__);return(t.__actions__=Oe(this.__actions__)).push({func:n,args:arguments,thisArg:i}),t.__chain__=e,t}return n.apply(i,Wo([this.value()],arguments))})}),i}function En(){}function In(e){return yt(e)?na(Tt(e)):(t=e,function(e){return E(e,t)});var t}function An(){return[]}function Pn(){return!1}var Nn=(t=null==t?Bs:nl.defaults(Bs.Object(),t,nl.pick(Bs,zs))).Array,Rn=t.Date,Hn=t.Error,zn=t.Function,jn=t.Math,Ln=t.Object,Un=t.RegExp,qn=t.String,Vn=t.TypeError,Bn=Nn.prototype,Wn=zn.prototype,Yn=Ln.prototype,Kn=t["__core-js_shared__"],Gn=Wn.toString,Qn=Yn.hasOwnProperty,Zn=0,Jn=(No=/[^.]+$/.exec(Kn&&Kn.keys&&Kn.keys.IE_PROTO||""))?"Symbol(src)_1."+No:"",Xn=Yn.toString,ei=Gn.call(Ln),ti=Bs._,ni=Un("^"+Gn.call(Qn).replace(ms,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ii=Ws?t.Buffer:xa,ri=t.Symbol,oi=t.Uint8Array,ai=ii?ii.allocUnsafe:xa,si=ga(Ln.getPrototypeOf,Ln),li=Ln.create,ui=Yn.propertyIsEnumerable,ci=Bn.splice,pi=ri?ri.isConcatSpreadable:xa,di=ri?ri.iterator:xa,fi=ri?ri.toStringTag:xa,hi=function(){try{var e=ft(Ln,"defineProperty");return e({},"",{}),e}catch(e){}}(),gi=t.clearTimeout!==Bs.clearTimeout&&t.clearTimeout,mi=Rn&&Rn.now!==Bs.Date.now&&Rn.now,vi=t.setTimeout!==Bs.setTimeout&&t.setTimeout,bi=jn.ceil,yi=jn.floor,wi=Ln.getOwnPropertySymbols,xi=ii?ii.isBuffer:xa,$i=t.isFinite,ki=Bn.join,Di=ga(Ln.keys,Ln),Ci=jn.max,_i=jn.min,Fi=Rn.now,Mi=t.parseInt,Si=jn.random,Ti=Bn.reverse,Oi=ft(t,"DataView"),Ei=ft(t,"Map"),Ii=ft(t,"Promise"),Ai=ft(t,"Set"),Pi=ft(t,"WeakMap"),Ni=ft(Ln,"create"),Ri=Pi&&new Pi,Hi={},zi=Ot(Oi),ji=Ot(Ei),Li=Ot(Ii),Ui=Ot(Ai),qi=Ot(Pi),Vi=ri?ri.prototype:xa,Bi=Vi?Vi.valueOf:xa,Wi=Vi?Vi.toString:xa,Yi=function(e){if(!an(e))return{};if(li)return li(e);Ki.prototype=e;e=new Ki;return Ki.prototype=xa,e};function Ki(){}h.templateSettings={escape:cs,evaluate:ps,interpolate:ds,variable:"",imports:{_:h}},(h.prototype=o.prototype).constructor=h,(g.prototype=Yi(o.prototype)).constructor=g,(m.prototype=Yi(o.prototype)).constructor=m,n.prototype.clear=function(){this.__data__=Ni?Ni(null):{},this.size=0},n.prototype.delete=function(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e},n.prototype.get=function(e){var t=this.__data__;if(Ni){var n=t[e];return n===ka?xa:n}return Qn.call(t,e)?t[e]:xa},n.prototype.has=function(e){var t=this.__data__;return Ni?t[e]!==xa:Qn.call(t,e)},n.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ni&&t===xa?ka:t,this},r.prototype.clear=function(){this.__data__=[],this.size=0},r.prototype.delete=function(e){var t=this.__data__;return!((e=l(t,e))<0||(e==t.length-1?t.pop():ci.call(t,e,1),--this.size,0))},r.prototype.get=function(e){var t=this.__data__;return(e=l(t,e))<0?xa:t[e][1]},r.prototype.has=function(e){return-1<l(this.__data__,e)},r.prototype.set=function(e,t){var n=this.__data__,i=l(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},a.prototype.clear=function(){this.size=0,this.__data__={hash:new n,map:new(Ei||r),string:new n}},a.prototype.delete=function(e){return e=pt(this,e).delete(e),this.size-=e?1:0,e},a.prototype.get=function(e){return pt(this,e).get(e)},a.prototype.has=function(e){return pt(this,e).has(e)},a.prototype.set=function(e,t){var n=pt(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},v.prototype.add=v.prototype.push=function(e){return this.__data__.set(e,ka),this},v.prototype.has=function(e){return this.__data__.has(e)},b.prototype.clear=function(){this.__data__=new r,this.size=0},b.prototype.delete=function(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e},b.prototype.get=function(e){return this.__data__.get(e)},b.prototype.has=function(e){return this.__data__.has(e)},b.prototype.set=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!Ei||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this};var Gi=Pe(S),Qi=Pe(T,!0),Zi=Ne(),Ji=Ne(!0),Xi=Ri?function(e,t){return Ri.set(e,t),e}:Sn,er=hi?function(e,t){return hi(e,"toString",{configurable:!0,enumerable:!1,value:Mn(t),writable:!0})}:Sn,tr=oe,nr=gi||function(e){return Bs.clearTimeout(e)},ir=Ai&&1/va(new Ai([,-0]))[1]==1/0?function(e){return new Ai(e)}:En,rr=Ri?function(e){return Ri.get(e)}:En,or=wi?function(t){return null==t?[]:(t=Ln(t),Uo(wi(t),function(e){return ui.call(t,e)}))}:An,ar=wi?function(e){for(var t=[];e;)Wo(t,or(e)),e=si(e);return t}:An,sr=A;(Oi&&sr(new Oi(new ArrayBuffer(1)))!=Ya||Ei&&sr(new Ei)!=Ra||Ii&&sr(Ii.resolve())!=ja||Ai&&sr(new Ai)!=Ua||Pi&&sr(new Pi)!=Ba)&&(sr=function(e){var t=A(e),e=t==za?e.constructor:xa,e=e?Ot(e):"";if(e)switch(e){case zi:return Ya;case ji:return Ra;case Li:return ja;case Ui:return Ua;case qi:return Ba}return t});var lr,ur,cr=Kn?nn:Pn,pr=Mt(Xi),dr=vi||function(e,t){return Bs.setTimeout(e,t)},fr=Mt(er),hr=(ur=(lr=Qt(lr=function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(gs,function(e,t,n,i){r.push(n?i.replace(Ds,"$1"):t||e)}),r},function(e){return 500===ur.size&&ur.clear(),e})).cache,lr),gr=oe(function(e,t){return en(e)?D(e,M(t,1,en,!0)):[]}),mr=oe(function(e,t){var n=Rt(t);return en(n)&&(n=xa),en(e)?D(e,M(t,1,en,!0),ct(n,2)):[]}),vr=oe(function(e,t){var n=Rt(t);return en(n)&&(n=xa),en(e)?D(e,M(t,1,en,!0),xa,n):[]}),br=oe(function(e){var t=Bo(e,xe);return t.length&&t[0]===e[0]?H(t):[]}),yr=oe(function(e){var t=Rt(e),n=Bo(e,xe);return t===Rt(n)?t=xa:n.pop(),n.length&&n[0]===e[0]?H(n,ct(t,2)):[]}),wr=oe(function(e){var t=Rt(e),n=Bo(e,xe);return(t="function"==typeof t?t:xa)&&n.pop(),n.length&&n[0]===e[0]?H(n,xa,t):[]}),xr=oe(Ht),$r=ot(function(e,t){var n=null==e?0:e.length,i=p(e,t);return ne(e,Bo(t,function(e){return vt(e,n)?+e:e}).sort(Me)),i}),kr=oe(function(e){return he(M(e,1,en,!0))}),Dr=oe(function(e){var t=Rt(e);return en(t)&&(t=xa),he(M(e,1,en,!0),ct(t,2))}),Cr=oe(function(e){var t="function"==typeof(t=Rt(e))?t:xa;return he(M(e,1,en,!0),xa,t)}),_r=oe(function(e,t){return en(e)?D(e,t):[]}),Fr=oe(function(e){return ye(Uo(e,en))}),Mr=oe(function(e){var t=Rt(e);return en(t)&&(t=xa),ye(Uo(e,en),ct(t,2))}),Sr=oe(function(e){var t="function"==typeof(t=Rt(e))?t:xa;return ye(Uo(e,en),xa,t)}),Tr=oe(jt),Or=oe(function(e){var t=e.length,t="function"==typeof(t=1<t?e[t-1]:xa)?(e.pop(),t):xa;return Lt(e,t)}),Er=ot(function(t){function e(e){return p(e,t)}var n=t.length,i=n?t[0]:0,r=this.__wrapped__;return!(1<n||this.__actions__.length)&&r instanceof m&&vt(i)?((r=r.slice(i,+i+(n?1:0))).__actions__.push({func:qt,args:[e],thisArg:xa}),new g(r,this.__chain__).thru(function(e){return n&&!e.length&&e.push(xa),e})):this.thru(e)}),Ir=Ie(function(e,t,n){Qn.call(e,n)?++e[n]:c(e,n,1)}),Ar=Le(It),Pr=Le(At),Nr=Ie(function(e,t,n){Qn.call(e,n)?e[n].push(t):c(e,n,[t])}),Rr=oe(function(e,t,n){var i=-1,r="function"==typeof t,o=Xt(e)?Nn(e.length):[];return Gi(e,function(e){o[++i]=r?Ro(t,e,n):z(e,t,n)}),o}),Hr=Ie(function(e,t,n){c(e,n,t)}),zr=Ie(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),jr=oe(function(e,t){if(null==e)return[];var n=t.length;return 1<n&&bt(e,t[0],t[1])?t=[]:2<n&&bt(t[0],t[1],t[2])&&(t=[t[0]]),X(e,M(t,1),[])}),Lr=mi||function(){return Bs.Date.now()},Ur=oe(function(e,t,n){var i,r=1;return n.length&&(i=ma(n,ut(Ur)),r|=32),et(e,r,t,n,i)}),qr=oe(function(e,t,n){var i,r=3;return n.length&&(i=ma(n,ut(qr)),r|=32),et(t,r,e,n,i)}),Vr=oe(function(e,t){return k(e,1,t)}),Br=oe(function(e,t,n){return k(e,mn(t)||0,n)});Qt.Cache=a;var Wr,Yr=tr(function(i,r){var o=(r=1==r.length&&eo(r[0])?Bo(r[0],sa(ct())):Bo(M(r,1),sa(ct()))).length;return oe(function(e){for(var t=-1,n=_i(e.length,o);++t<n;)e[t]=r[t].call(this,e[t]);return Ro(i,this,e)})}),Kr=oe(function(e,t){return et(e,32,xa,t,ma(t,ut(Kr)))}),Gr=oe(function(e,t){return et(e,64,xa,t,ma(t,ut(Gr)))}),Qr=ot(function(e,t){return et(e,256,xa,xa,xa,t)}),Zr=Qe(P),Jr=Qe(function(e,t){return t<=e}),Xr=j(function(){return arguments}())?j:function(e){return sn(e)&&Qn.call(e,"callee")&&!ui.call(e,"callee")},eo=Nn.isArray,to=Ys?sa(Ys):function(e){return sn(e)&&A(e)==Wa},no=xi||Pn,io=Ks?sa(Ks):function(e){return sn(e)&&A(e)==Ia},ro=Gs?sa(Gs):function(e){return sn(e)&&sr(e)==Ra},oo=Qs?sa(Qs):function(e){return sn(e)&&A(e)==La},ao=Zs?sa(Zs):function(e){return sn(e)&&sr(e)==Ua},so=Js?sa(Js):function(e){return sn(e)&&on(e.length)&&!!Ls[A(e)]},lo=Qe(Y),uo=Qe(function(e,t){return e<=t}),co=Ae(function(e,t){if(xt(t)||Xt(t))return Ee(t,xn(t),e),xa;for(var n in t)Qn.call(t,n)&&y(e,n,t[n])}),po=Ae(function(e,t){Ee(t,$n(t),e)}),fo=Ae(function(e,t,n,i){Ee(t,$n(t),e,i)}),ho=Ae(function(e,t,n,i){Ee(t,xn(t),e,i)}),go=ot(p),mo=oe(function(e,t){e=Ln(e);var n=-1,i=t.length,r=2<i?t[2]:xa;for(r&&bt(t[0],t[1],r)&&(i=1);++n<i;)for(var o=t[n],a=$n(o),s=-1,l=a.length;++s<l;){var u=a[s],c=e[u];(c===xa||Jt(c,Yn[u])&&!Qn.call(e,u))&&(e[u]=o[u])}return e}),vo=oe(function(e){return e.push(xa,nt),Ro($o,xa,e)}),bo=Ve(function(e,t,n){e[t=null!=t&&"function"!=typeof t.toString?Xn.call(t):t]=n},Mn(Sn)),yo=Ve(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Xn.call(t)),Qn.call(e,t)?e[t].push(n):e[t]=[n]},ct),wo=oe(z),xo=Ae(function(e,t,n){Z(e,t,n)}),$o=Ae(function(e,t,n,i){Z(e,t,n,i)}),ko=ot(function(t,e){var n={};if(null==t)return n;var i=!1;e=Bo(e,function(e){return e=ke(e,t),i=i||1<e.length,e}),Ee(t,st(t),n),i&&(n=x(n,7,it));for(var r=e.length;r--;)ge(n,e[r]);return n}),Do=ot(function(e,t){return null==e?{}:ee(n=e,t,function(e,t){return wn(n,t)});var n}),Co=Xe(xn),_o=Xe($n),Fo=He(function(e,t,n){return t=t.toLowerCase(),e+(n?Cn(t):t)}),Mo=He(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),So=He(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),To=Re("toLowerCase"),Oo=He(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Eo=He(function(e,t,n){return e+(n?" ":"")+Ao(t)}),Io=He(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ao=Re("toUpperCase"),Po=oe(function(e,t){try{return Ro(e,xa,t)}catch(e){return tn(e)?e:new Hn(e)}}),Wn=ot(function(t,e){return zo(e,function(e){e=Tt(e),c(t,e,Ur(t[e],t))}),t}),No=Ue(),ii=Ue(!0),Rn=oe(function(t,n){return function(e){return z(e,t,n)}}),t=oe(function(t,n){return function(e){return z(t,e,n)}}),ri=We(Bo),Vi=We(Lo),gi=We(Go),Oi=Ge(),Ii=Ge(!0),Pi=Be(function(e,t){return e+t},0),Kn=Je("ceil"),vi=Be(function(e,t){return e/t},1),er=Je("floor"),mi=Be(function(e,t){return e*t},1),tr=Je("round"),xi=Be(function(e,t){return e-t},0);return h.after=function(e,t){if("function"!=typeof t)throw new Vn($a);return e=hn(e),function(){if(--e<1)return t.apply(this,arguments)}},h.ary=Yt,h.assign=co,h.assignIn=po,h.assignInWith=fo,h.assignWith=ho,h.at=go,h.before=Kt,h.bind=Ur,h.bindAll=Wn,h.bindKey=qr,h.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return eo(e)?e:[e]},h.chain=Ut,h.chunk=function(e,t,n){t=(n?bt(e,t,n):t===xa)?1:Ci(hn(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var r=0,o=0,a=Nn(bi(i/t));r<i;)a[o++]=se(e,r,r+=t);return a},h.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},h.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Nn(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Wo(eo(n)?Oe(n):[n],M(t,1))},h.cond=function(i){var r=null==i?0:i.length,t=ct();return i=r?Bo(i,function(e){if("function"!=typeof e[1])throw new Vn($a);return[t(e[0]),e[1]]}):[],oe(function(e){for(var t=-1;++t<r;){var n=i[t];if(Ro(n[0],this,e))return Ro(n[1],this,e)}})},h.conforms=function(e){return t=x(e,1),n=xn(t),function(e){return $(e,t,n)};var t,n},h.constant=Mn,h.countBy=Ir,h.create=function(e,t){return e=Yi(e),null==t?e:w(e,t)},h.curry=function e(t,n,i){n=et(t,8,xa,xa,xa,xa,xa,n=i?xa:n);return n.placeholder=e.placeholder,n},h.curryRight=function e(t,n,i){n=et(t,16,xa,xa,xa,xa,xa,n=i?xa:n);return n.placeholder=e.placeholder,n},h.debounce=Gt,h.defaults=mo,h.defaultsDeep=vo,h.defer=Vr,h.delay=Br,h.difference=gr,h.differenceBy=mr,h.differenceWith=vr,h.drop=function(e,t,n){var i=null==e?0:e.length;return i?se(e,(t=n||t===xa?1:hn(t))<0?0:t,i):[]},h.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?se(e,0,(t=i-(t=n||t===xa?1:hn(t)))<0?0:t):[]},h.dropRightWhile=function(e,t){return e&&e.length?ve(e,ct(t,3),!0,!0):[]},h.dropWhile=function(e,t){return e&&e.length?ve(e,ct(t,3),!0):[]},h.fill=function(e,t,n,i){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&bt(e,t,n)&&(n=0,i=r),function(e,t,n,i){var r=e.length;for((n=hn(n))<0&&(n=r<-n?0:r+n),(i=i===xa||r<i?r:hn(i))<0&&(i+=r),i=i<n?0:gn(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},h.filter=function(e,t){return(eo(e)?Uo:F)(e,ct(t,3))},h.flatMap=function(e,t){return M(Wt(e,t),1)},h.flatMapDeep=function(e,t){return M(Wt(e,t),1/0)},h.flatMapDepth=function(e,t,n){return n=n===xa?1:hn(n),M(Wt(e,t),n)},h.flatten=Pt,h.flattenDeep=function(e){return null!=e&&e.length?M(e,1/0):[]},h.flattenDepth=function(e,t){return null!=e&&e.length?M(e,t=t===xa?1:hn(t)):[]},h.flip=function(e){return et(e,512)},h.flow=No,h.flowRight=ii,h.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},h.functions=function(e){return null==e?[]:O(e,xn(e))},h.functionsIn=function(e){return null==e?[]:O(e,$n(e))},h.groupBy=Nr,h.initial=function(e){return null!=e&&e.length?se(e,0,-1):[]},h.intersection=br,h.intersectionBy=yr,h.intersectionWith=wr,h.invert=bo,h.invertBy=yo,h.invokeMap=Rr,h.iteratee=Tn,h.keyBy=Hr,h.keys=xn,h.keysIn=$n,h.map=Wt,h.mapKeys=function(e,i){var r={};return i=ct(i,3),S(e,function(e,t,n){c(r,i(e,t,n),e)}),r},h.mapValues=function(e,i){var r={};return i=ct(i,3),S(e,function(e,t,n){c(r,t,i(e,t,n))}),r},h.matches=function(e){return G(x(e,1))},h.matchesProperty=function(e,t){return Q(e,x(t,1))},h.memoize=Qt,h.merge=xo,h.mergeWith=$o,h.method=Rn,h.methodOf=t,h.mixin=On,h.negate=Zt,h.nthArg=function(t){return t=hn(t),oe(function(e){return J(e,t)})},h.omit=ko,h.omitBy=function(e,t){return kn(e,Zt(ct(t)))},h.once=function(e){return Kt(2,e)},h.orderBy=function(e,t,n,i){return null==e?[]:X(e,t=!eo(t)?null==t?[]:[t]:t,n=!eo(n=i?xa:n)?null==n?[]:[n]:n)},h.over=ri,h.overArgs=Yr,h.overEvery=Vi,h.overSome=gi,h.partial=Kr,h.partialRight=Gr,h.partition=zr,h.pick=Do,h.pickBy=kn,h.property=In,h.propertyOf=function(t){return function(e){return null==t?xa:E(t,e)}},h.pull=xr,h.pullAll=Ht,h.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?te(e,t,ct(n,2)):e},h.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?te(e,t,xa,n):e},h.pullAt=$r,h.range=Oi,h.rangeRight=Ii,h.rearg=Qr,h.reject=function(e,t){return(eo(e)?Uo:F)(e,Zt(ct(t,3)))},h.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=ct(t,3);++i<o;){var a=e[i];t(a,i,e)&&(n.push(a),r.push(i))}return ne(e,r),n},h.rest=function(e,t){if("function"!=typeof e)throw new Vn($a);return oe(e,t=t===xa?t:hn(t))},h.reverse=zt,h.sampleSize=function(e,t,n){return t=(n?bt(e,t,n):t===xa)?1:hn(t),(eo(e)?function(e,t){return St(Oe(e),d(t,0,e.length))}:function(e,t){return St(e=Dn(e),d(t,0,e.length))})(e,t)},h.set=function(e,t,n){return null==e?e:ae(e,t,n)},h.setWith=function(e,t,n,i){return i="function"==typeof i?i:xa,null==e?e:ae(e,t,n,i)},h.shuffle=function(e){return(eo(e)?function(e){return St(Oe(e))}:function(e){return St(Dn(e))})(e)},h.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n=n&&"number"!=typeof n&&bt(e,t,n)?(t=0,i):(t=null==t?0:hn(t),n===xa?i:hn(n)),se(e,t,n)):[]},h.sortBy=jr,h.sortedUniq=function(e){return e&&e.length?pe(e):[]},h.sortedUniqBy=function(e,t){return e&&e.length?pe(e,ct(t,2)):[]},h.split=function(e,t,n){return n&&"number"!=typeof n&&bt(e,t,n)&&(t=n=xa),(n=n===xa?Ma:n>>>0)?(e=bn(e))&&("string"==typeof t||null!=t&&!oo(t))&&(!(t=fe(t))&&fa(e))?De(ya(e),0,n):e.split(t,n):[]},h.spread=function(n,i){if("function"!=typeof n)throw new Vn($a);return i=null==i?0:Ci(hn(i),0),oe(function(e){var t=e[i],e=De(e,0,i);return t&&Wo(e,t),Ro(n,this,e)})},h.tail=function(e){var t=null==e?0:e.length;return t?se(e,1,t):[]},h.take=function(e,t,n){return e&&e.length?se(e,0,(t=n||t===xa?1:hn(t))<0?0:t):[]},h.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?se(e,(t=i-(t=n||t===xa?1:hn(t)))<0?0:t,i):[]},h.takeRightWhile=function(e,t){return e&&e.length?ve(e,ct(t,3),!1,!0):[]},h.takeWhile=function(e,t){return e&&e.length?ve(e,ct(t,3)):[]},h.tap=function(e,t){return t(e),e},h.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new Vn($a);return an(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Gt(e,t,{leading:i,maxWait:t,trailing:r})},h.thru=qt,h.toArray=dn,h.toPairs=Co,h.toPairsIn=_o,h.toPath=function(e){return eo(e)?Bo(e,Tt):pn(e)?[e]:Oe(hr(bn(e)))},h.toPlainObject=vn,h.transform=function(e,i,r){var t,n=eo(e),o=n||no(e)||so(e);return i=ct(i,4),null==r&&(t=e&&e.constructor,r=o?n?new t:[]:an(e)&&nn(t)?Yi(si(e)):{}),(o?zo:S)(e,function(e,t,n){return i(r,e,t,n)}),r},h.unary=function(e){return Yt(e,1)},h.union=kr,h.unionBy=Dr,h.unionWith=Cr,h.uniq=function(e){return e&&e.length?he(e):[]},h.uniqBy=function(e,t){return e&&e.length?he(e,ct(t,2)):[]},h.uniqWith=function(e,t){return t="function"==typeof t?t:xa,e&&e.length?he(e,xa,t):[]},h.unset=function(e,t){return null==e||ge(e,t)},h.unzip=jt,h.unzipWith=Lt,h.update=function(e,t,n){return null==e?e:me(e,t,$e(n))},h.updateWith=function(e,t,n,i){return i="function"==typeof i?i:xa,null==e?e:me(e,t,$e(n),i)},h.values=Dn,h.valuesIn=function(e){return null==e?[]:la(e,$n(e))},h.without=_r,h.words=Fn,h.wrap=function(e,t){return Kr($e(t),e)},h.xor=Fr,h.xorBy=Mr,h.xorWith=Sr,h.zip=Tr,h.zipObject=function(e,t){return we(e||[],t||[],y)},h.zipObjectDeep=function(e,t){return we(e||[],t||[],ae)},h.zipWith=Or,h.entries=Co,h.entriesIn=_o,h.extend=po,h.extendWith=fo,On(h,h),h.add=Pi,h.attempt=Po,h.camelCase=Fo,h.capitalize=Cn,h.ceil=Kn,h.clamp=function(e,t,n){return n===xa&&(n=t,t=xa),n!==xa&&(n=(n=mn(n))==n?n:0),t!==xa&&(t=(t=mn(t))==t?t:0),d(mn(e),t,n)},h.clone=function(e){return x(e,4)},h.cloneDeep=function(e){return x(e,5)},h.cloneDeepWith=function(e,t){return x(e,5,t="function"==typeof t?t:xa)},h.cloneWith=function(e,t){return x(e,4,t="function"==typeof t?t:xa)},h.conformsTo=function(e,t){return null==t||$(e,t,xn(t))},h.deburr=_n,h.defaultTo=function(e,t){return null==e||e!=e?t:e},h.divide=vi,h.endsWith=function(e,t,n){e=bn(e),t=fe(t);var i=e.length,i=n=n===xa?i:d(hn(n),0,i);return 0<=(n-=t.length)&&e.slice(n,i)==t},h.eq=Jt,h.escape=function(e){return(e=bn(e))&&us.test(e)?e.replace(ss,el):e},h.escapeRegExp=function(e){return(e=bn(e))&&vs.test(e)?e.replace(ms,"\\$&"):e},h.every=function(e,t,n){return(eo(e)?Lo:C)(e,ct(t=n&&bt(e,t,n)?xa:t,3))},h.find=Ar,h.findIndex=It,h.findKey=function(e,t){return Qo(e,ct(t,3),S)},h.findLast=Pr,h.findLastIndex=At,h.findLastKey=function(e,t){return Qo(e,ct(t,3),T)},h.floor=er,h.forEach=Vt,h.forEachRight=Bt,h.forIn=function(e,t){return null==e?e:Zi(e,ct(t,3),$n)},h.forInRight=function(e,t){return null==e?e:Ji(e,ct(t,3),$n)},h.forOwn=function(e,t){return e&&S(e,ct(t,3))},h.forOwnRight=function(e,t){return e&&T(e,ct(t,3))},h.get=yn,h.gt=Zr,h.gte=Jr,h.has=function(e,t){return null!=e&&ht(e,t,N)},h.hasIn=wn,h.head=Nt,h.identity=Sn,h.includes=function(e,t,n,i){return e=Xt(e)?e:Dn(e),n=n&&!i?hn(n):0,i=e.length,n<0&&(n=Ci(i+n,0)),cn(e)?n<=i&&-1<e.indexOf(t,n):!!i&&-1<Jo(e,t,n)},h.indexOf=function(e,t,n){var i=null==e?0:e.length;return i?(n=null==n?0:hn(n),Jo(e,t,n=n<0?Ci(i+n,0):n)):-1},h.inRange=function(e,t,n){return t=fn(t),n===xa?(n=t,t=0):n=fn(n),(e=e=mn(e))>=_i(t=t,n=n)&&e<Ci(t,n)},h.invoke=wo,h.isArguments=Xr,h.isArray=eo,h.isArrayBuffer=to,h.isArrayLike=Xt,h.isArrayLikeObject=en,h.isBoolean=function(e){return!0===e||!1===e||sn(e)&&A(e)==Ea},h.isBuffer=no,h.isDate=io,h.isElement=function(e){return sn(e)&&1===e.nodeType&&!un(e)},h.isEmpty=function(e){if(null==e)return!0;if(Xt(e)&&(eo(e)||"string"==typeof e||"function"==typeof e.splice||no(e)||so(e)||Xr(e)))return!e.length;var t,n=sr(e);if(n==Ra||n==Ua)return!e.size;if(xt(e))return!B(e).length;for(t in e)if(Qn.call(e,t))return!1;return!0},h.isEqual=function(e,t){return L(e,t)},h.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:xa)?n(e,t):xa;return i===xa?L(e,t,xa,n):!!i},h.isError=tn,h.isFinite=function(e){return"number"==typeof e&&$i(e)},h.isFunction=nn,h.isInteger=rn,h.isLength=on,h.isMap=ro,h.isMatch=function(e,t){return e===t||U(e,t,dt(t))},h.isMatchWith=function(e,t,n){return n="function"==typeof n?n:xa,U(e,t,dt(t),n)},h.isNaN=function(e){return ln(e)&&e!=+e},h.isNative=function(e){if(cr(e))throw new Hn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return q(e)},h.isNil=function(e){return null==e},h.isNull=function(e){return null===e},h.isNumber=ln,h.isObject=an,h.isObjectLike=sn,h.isPlainObject=un,h.isRegExp=oo,h.isSafeInteger=function(e){return rn(e)&&-_a<=e&&e<=_a},h.isSet=ao,h.isString=cn,h.isSymbol=pn,h.isTypedArray=so,h.isUndefined=function(e){return e===xa},h.isWeakMap=function(e){return sn(e)&&sr(e)==Ba},h.isWeakSet=function(e){return sn(e)&&"[object WeakSet]"==A(e)},h.join=function(e,t){return null==e?"":ki.call(e,t)},h.kebabCase=Mo,h.last=Rt,h.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=i;return n!==xa&&(r=(r=hn(n))<0?Ci(i+r,0):_i(r,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,r):Zo(e,ea,r,!0)},h.lowerCase=So,h.lowerFirst=To,h.lt=lo,h.lte=uo,h.max=function(e){return e&&e.length?_(e,Sn,P):xa},h.maxBy=function(e,t){return e&&e.length?_(e,ct(t,2),P):xa},h.mean=function(e){return ta(e,Sn)},h.meanBy=function(e,t){return ta(e,ct(t,2))},h.min=function(e){return e&&e.length?_(e,Sn,Y):xa},h.minBy=function(e,t){return e&&e.length?_(e,ct(t,2),Y):xa},h.stubArray=An,h.stubFalse=Pn,h.stubObject=function(){return{}},h.stubString=function(){return""},h.stubTrue=function(){return!0},h.multiply=mi,h.nth=function(e,t){return e&&e.length?J(e,hn(t)):xa},h.noConflict=function(){return Bs._===this&&(Bs._=ti),this},h.noop=En,h.now=Lr,h.pad=function(e,t,n){e=bn(e);var i=(t=hn(t))?ba(e):0;return!t||t<=i?e:Ye(yi(i=(t-i)/2),n)+e+Ye(bi(i),n)},h.padEnd=function(e,t,n){e=bn(e);var i=(t=hn(t))?ba(e):0;return t&&i<t?e+Ye(t-i,n):e},h.padStart=function(e,t,n){e=bn(e);var i=(t=hn(t))?ba(e):0;return t&&i<t?Ye(t-i,n)+e:e},h.parseInt=function(e,t,n){return t=n||null==t?0:t&&+t,Mi(bn(e).replace(bs,""),t||0)},h.random=function(e,t,n){var i;if(n&&"boolean"!=typeof n&&bt(e,t,n)&&(t=n=xa),n===xa&&("boolean"==typeof t?(n=t,t=xa):"boolean"==typeof e&&(n=e,e=xa)),e===xa&&t===xa?(e=0,t=1):(e=fn(e),t===xa?(t=e,e=0):t=fn(t)),t<e&&(i=e,e=t,t=i),n||e%1||t%1){n=Si();return _i(e+n*(t-e+qs("1e-"+((n+"").length-1))),t)}return ie(e,t)},h.reduce=function(e,t,n){var i=eo(e)?Yo:ia,r=arguments.length<3;return i(e,ct(t,4),n,r,Gi)},h.reduceRight=function(e,t,n){var i=eo(e)?Ko:ia,r=arguments.length<3;return i(e,ct(t,4),n,r,Qi)},h.repeat=function(e,t,n){return t=(n?bt(e,t,n):t===xa)?1:hn(t),re(bn(e),t)},h.replace=function(){var e=arguments,t=bn(e[0]);return e.length<3?t:t.replace(e[1],e[2])},h.result=function(e,t,n){var i=-1,r=(t=ke(t,e)).length;for(r||(r=1,e=xa);++i<r;){var o=null==e?xa:e[Tt(t[i])];o===xa&&(i=r,o=n),e=nn(o)?o.call(e):o}return e},h.round=tr,h.runInContext=e,h.sample=function(e){return(eo(e)?s:function(e){return s(Dn(e))})(e)},h.size=function(e){if(null==e)return 0;if(Xt(e))return cn(e)?ba(e):e.length;var t=sr(e);return t==Ra||t==Ua?e.size:B(e).length},h.snakeCase=Oo,h.some=function(e,t,n){return(eo(e)?Go:le)(e,ct(t=n&&bt(e,t,n)?xa:t,3))},h.sortedIndex=function(e,t){return ue(e,t)},h.sortedIndexBy=function(e,t,n){return ce(e,t,ct(n,2))},h.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=ue(e,t);if(i<n&&Jt(e[i],t))return i}return-1},h.sortedLastIndex=function(e,t){return ue(e,t,!0)},h.sortedLastIndexBy=function(e,t,n){return ce(e,t,ct(n,2),!0)},h.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ue(e,t,!0)-1;if(Jt(e[n],t))return n}return-1},h.startCase=Eo,h.startsWith=function(e,t,n){return e=bn(e),n=null==n?0:d(hn(n),0,e.length),t=fe(t),e.slice(n,n+t.length)==t},h.subtract=xi,h.sum=function(e){return e&&e.length?ra(e,Sn):0},h.sumBy=function(e,t){return e&&e.length?ra(e,ct(t,2)):0},h.template=function(a,e,t){var n=h.templateSettings;t&&bt(a,e,t)&&(e=xa),a=bn(a),e=fo({},e,n,tt);var s,l,i=xn(n=fo({},e.imports,n.imports,tt)),r=la(n,i),u=0,n=e.interpolate||Is,c="__p += '",n=Un((e.escape||Is).source+"|"+n.source+"|"+(n===ds?Cs:Is).source+"|"+(e.evaluate||Is).source+"|$","g"),o="//# sourceURL="+(Qn.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++js+"]")+"\n";if(a.replace(n,function(e,t,n,i,r,o){return n=n||i,c+=a.slice(u,o).replace(As,da),t&&(s=!0,c+="' +\n__e("+t+") +\n'"),r&&(l=!0,c+="';\n"+r+";\n__p += '"),n&&(c+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=o+e.length,e}),c+="';\n",e=Qn.call(e,"variable")&&e.variable){if(ks.test(e))throw new Hn("Invalid `variable` option passed into `_.template`")}else c="with (obj) {\n"+c+"\n}\n";if(c=(l?c.replace(is,""):c).replace(rs,"$1").replace(os,"$1;"),c="function("+(e||"obj")+") {\n"+(e?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(l?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+c+"return __p\n}",(e=Po(function(){return zn(i,o+"return "+c).apply(xa,r)})).source=c,tn(e))throw e;return e},h.times=function(e,t){if((e=hn(e))<1||_a<e)return[];var n=Ma,i=_i(e,Ma);for(t=ct(t),e-=Ma,i=oa(i,t);++n<e;)t(n);return i},h.toFinite=fn,h.toInteger=hn,h.toLength=gn,h.toLower=function(e){return bn(e).toLowerCase()},h.toNumber=mn,h.toSafeInteger=function(e){return e?d(hn(e),-_a,_a):0===e?e:0},h.toString=bn,h.toUpper=function(e){return bn(e).toUpperCase()},h.trim=function(e,t,n){return(e=bn(e))&&(n||t===xa)?aa(e):e&&(t=fe(t))?(e=ya(e),t=ya(t),De(e,ca(e,t),pa(e,t)+1).join("")):e},h.trimEnd=function(e,t,n){return(e=bn(e))&&(n||t===xa)?e.slice(0,wa(e)+1):e&&(t=fe(t))?De(e=ya(e),0,pa(e,ya(t))+1).join(""):e},h.trimStart=function(e,t,n){return(e=bn(e))&&(n||t===xa)?e.replace(bs,""):e&&(t=fe(t))?De(e=ya(e),ca(e,ya(t))).join(""):e},h.truncate=function(e,t){var n,i=30,r="...";an(t)&&(n="separator"in t?t.separator:n,i="length"in t?hn(t.length):i,r="omission"in t?fe(t.omission):r);var o,t=(e=bn(e)).length;if((t=fa(e)?(o=ya(e)).length:t)<=i)return e;if((t=i-ba(r))<1)return r;if(i=o?De(o,0,t).join(""):e.slice(0,t),n===xa)return i+r;if(o&&(t+=i.length-t),oo(n)){if(e.slice(t).search(n)){var a,s=i;for((n=!n.global?Un(n.source,bn(_s.exec(n))+"g"):n).lastIndex=0;a=n.exec(s);)var l=a.index;i=i.slice(0,l===xa?t:l)}}else e.indexOf(fe(n),t)==t||-1<(t=i.lastIndexOf(n))&&(i=i.slice(0,t));return i+r},h.unescape=function(e){return(e=bn(e))&&ls.test(e)?e.replace(as,tl):e},h.uniqueId=function(e){var t=++Zn;return bn(e)+t},h.upperCase=Io,h.upperFirst=Ao,h.each=Vt,h.eachRight=Bt,h.first=Nt,On(h,(Wr={},S(h,function(e,t){Qn.call(h.prototype,t)||(Wr[t]=e)}),Wr),{chain:!1}),h.VERSION="4.17.21",zo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),zo(["drop","take"],function(n,i){m.prototype[n]=function(e){e=e===xa?1:Ci(hn(e),0);var t=this.__filtered__&&!i?new m(this):this.clone();return t.__filtered__?t.__takeCount__=_i(e,t.__takeCount__):t.__views__.push({size:_i(e,Ma),type:n+(t.__dir__<0?"Right":"")}),t},m.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),zo(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;m.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ct(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),zo(["head","last"],function(e,t){var n="take"+(t?"Right":"");m.prototype[e]=function(){return this[n](1).value()[0]}}),zo(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");m.prototype[e]=function(){return this.__filtered__?new m(this):this[n](1)}}),m.prototype.compact=function(){return this.filter(Sn)},m.prototype.find=function(e){return this.filter(e).head()},m.prototype.findLast=function(e){return this.reverse().find(e)},m.prototype.invokeMap=oe(function(t,n){return"function"==typeof t?new m(this):this.map(function(e){return z(e,t,n)})}),m.prototype.reject=function(e){return this.filter(Zt(ct(e)))},m.prototype.slice=function(e,t){e=hn(e);var n=this;return n.__filtered__&&(0<e||t<0)?new m(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),n=t!==xa?(t=hn(t))<0?n.dropRight(-t):n.take(t-e):n)},m.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},m.prototype.toArray=function(){return this.take(Ma)},S(m.prototype,function(u,e){var c=/^(?:filter|find|map|reject)|While$/.test(e),p=/^(?:head|last)$/.test(e),d=h[p?"take"+("last"==e?"Right":""):e],f=p||/^find/.test(e);d&&(h.prototype[e]=function(){function e(e){return e=d.apply(h,Wo([e],n)),p&&a?e[0]:e}var t=this.__wrapped__,n=p?[1]:arguments,i=t instanceof m,r=n[0],o=i||eo(t);o&&c&&"function"==typeof r&&1!=r.length&&(i=o=!1);var a=this.__chain__,s=!!this.__actions__.length,r=f&&!a,s=i&&!s;if(f||!o)return r&&s?u.apply(this,n):(l=this.thru(e),r?p?l.value()[0]:l.value():l);var t=s?t:new m(this),l=u.apply(t,n);return l.__actions__.push({func:qt,args:[e],thisArg:xa}),new g(l,a)})}),zo(["pop","push","shift","sort","splice","unshift"],function(e){var n=Bn[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var t=arguments;if(!r||this.__chain__)return this[i](function(e){return n.apply(eo(e)?e:[],t)});var e=this.value();return n.apply(eo(e)?e:[],t)}}),S(m.prototype,function(e,t){var n,i=h[t];i&&(n=i.name+"",Qn.call(Hi,n)||(Hi[n]=[]),Hi[n].push({name:t,func:i}))}),Hi[qe(xa,2).name]=[{name:"wrapper",func:xa}],m.prototype.clone=function(){var e=new m(this.__wrapped__);return e.__actions__=Oe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oe(this.__views__),e},m.prototype.reverse=function(){var e;return this.__filtered__?((e=new m(this)).__dir__=-1,e.__filtered__=!0):(e=this.clone()).__dir__*=-1,e},m.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=eo(e),i=t<0,r=n?e.length:0,o=function(e,t,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=_i(t,e+a);break;case"takeRight":e=Ci(e,t-a)}}return{start:e,end:t}}(0,r,this.__views__),a=o.start,s=(o=o.end)-a,l=i?o:a-1,u=this.__iteratees__,c=u.length,p=0,d=_i(s,this.__takeCount__);if(!n||!i&&r==s&&d==s)return be(e,this.__actions__);var f=[];e:for(;s--&&p<d;){for(var h=-1,g=e[l+=t];++h<c;){var m=u[h],v=m.iteratee,m=m.type,v=v(g);if(2==m)g=v;else if(!v){if(1==m)continue e;break e}}f[p++]=g}return f},h.prototype.at=Er,h.prototype.chain=function(){return Ut(this)},h.prototype.commit=function(){return new g(this.value(),this.__chain__)},h.prototype.next=function(){this.__values__===xa&&(this.__values__=dn(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?xa:this.__values__[this.__index__++]}},h.prototype.plant=function(e){for(var t,n=this;n instanceof o;){var i=Et(n);i.__index__=0,i.__values__=xa,t?r.__wrapped__=i:t=i;var r=i,n=n.__wrapped__}return r.__wrapped__=e,t},h.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof m){e=e;return(e=(e=this.__actions__.length?new m(this):e).reverse()).__actions__.push({func:qt,args:[zt],thisArg:xa}),new g(e,this.__chain__)}return this.thru(zt)},h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=function(){return be(this.__wrapped__,this.__actions__)},h.prototype.first=h.prototype.head,di&&(h.prototype[di]=function(){return this}),h}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Bs._=nl,define(function(){return nl})):F?((F.exports=nl)._=nl,s._=nl):Bs._=nl}.call(this),function(g){"use strict";var m=["ng"],e=g.module("loadOnDemand",[]);function v(e){var t=[];return g.forEach(e.requires,function(e){-1==m.indexOf(e)&&t.push(e)}),t}e.factory("scriptCache",["$cacheFactory",function(e){return e("scriptCache",{capacity:10})}]),e.provider("$loadOnDemand",["$controllerProvider","$provide","$compileProvider","$filterProvider",function(e,t,n,i){var l={},h={$controllerProvider:e,$compileProvider:n,$filterProvider:i,$provide:t};this.$get=["scriptCache","$timeout","$log","$document","$injector","$compile",function(c,p,d,e,f,t){return{getConfig:function(e){return l[e]||null},loadedModules:[],load:function(e,t){if(-1!=this.loadedModules.indexOf(e))return t();this.loadedModules.push(e);var o=this,n=e,i="script:"+n.script,a=[];if(a.push=function(e){-1==this.indexOf(e)&&Array.prototype.push.apply(this,arguments)},!n){var r='Module "'+e+'" not configured';throw d.error(r),r}var s=[];function l(e,t){-1==s.indexOf(e)&&p(t)}function u(t,n){if(-1<m.indexOf(t))return n();var e=g.module(t),i=v(e);function r(e){!e||-1<(e=i.indexOf(e))&&i.splice(e,1),0===i.length&&p(function(){n(t)})}e=v(e);g.forEach(e,function(e){if(a.push(e),function(e){try{g.module(e)}catch(e){if(/No module/.test(e))return!1}return!0}(e))return r(e);var t=o.getConfig(e);return t?l(t.script,function(){u(e,function(e){r(e)})}):(d.warn('module "'+e+"' not loaded and not configured"),r(e)),null}),0==e.length&&r()}c.get(i)?p(function(){t(!0)}):(n.css&&$.each(n.css,function(e,t){var n;n=t,t=$("<link>"),$("head").append(t),t.attr({rel:"stylesheet",type:"text/css",href:n})}),l(n.script,function(){a.push(e),u(e,function(){!function(t,e,n){var i,r,o,a,s,l,u,c;if(n){var p=[];for(o=n.length-1;0<=o;o--){s=n[o],m.push(s),l=g.module(s),p=p.concat(l._runBlocks);try{for(a=l._invokeQueue,i=0,r=a.length;i<r;i++){if(u=a[i],!e.hasOwnProperty(u[0]))return $log.error("unsupported provider "+u[0]);(c=e[u[0]])[u[1]].apply(c,u[2])}}catch(e){throw e.message&&(e.message+=" from "+s),$log.error(e.message),e}n.pop()}g.forEach(p,function(e){t.invoke(e)})}}(f,h,a),p(function(){t(!1)})})}))}}}],this.config=function(e){function t(e){e&&o.push(e)}var n,i,r,o,a,s;n=g.element(window.document),o=[n],a=["ng:app","ng-app","x-ng-app","data-ng-app"],s=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/,g.forEach(a,function(e){a[e]=!0,t(document.getElementById(e)),e=e.replace(":","\\:"),n.querySelectorAll&&(g.forEach(n.querySelectorAll("."+e),t),g.forEach(n.querySelectorAll("."+e+"\\:"),t),g.forEach(n.querySelectorAll("["+e+"]"),t))}),g.forEach(o,function(t){var e;i||(e=" "+n.className+" ",(e=s.exec(e))?(i=t,r=(e[2]||"").replace(/\s+/g,",")):g.forEach(t.attributes,function(e){!i&&a[e.name]&&(i=t,r=e.value)}))}),i&&function e(t){-1==m.indexOf(t)&&(m.push(t),t=g.module(t),g.forEach(t.requires,e))}(r),g.isArray(e)?g.forEach(e,function(e){l[e.name]=e}):l[e.name]=e}}]),e.directive("loadOnDemand",["$http","scriptCache","$log","$loadOnDemand","$compile","$timeout","$injector","$interval",function(e,t,n,i,s,l,u,c){return{replace:!1,link:{pre:function(o,a,e){var t,n=e.loadOnDemand;e.src;o.$watch(n,function(e){i.getConfig(e);e?i.load(e,function(){l(function(){var t,n,i,r;t=e,n=g.element(a).children(),i=30,r=c(function(){l(function(){var e=g.element(a).children();e[0]!=n[0]&&(console.warn("[LoadOnDemand] Avoided compiling stale content.",a),n=e),s(n[0])(o,function(e,t){$(a)&&$(a).replaceWith(e)}),u.has(t+"Directive")||0===i?c.cancel(r):i--})},100)})}):(t&&(t.$destroy(),t=null),a.html(""))})},post:function(e,t,n){}}}}])}(window.dnnsfAngular15||window.angular),function(e){"use strict";"function"==typeof define&&define.amd?define(["dnnsfjQuery"],e):e(dnnsfjQuery)}(function(d){"use strict";var n={escapeRegExChars:function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},createNode:function(e){var t=document.createElement("div");return t.className=e,t.style.position="absolute",t.style.display="none",t}},i=27,r=9,o=13,a=38,s=39,l=40;function u(e,t){var n=d.noop,i=this,n={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:u.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:n,onSearchComplete:n,onSearchError:n,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(e,t,n){return-1!==e.value.toLowerCase().indexOf(n)},paramName:"query",transformResult:function(e){return"string"==typeof e?d.parseJSON(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};i.element=e,i.el=d(e),i.suggestions=[],i.badQueries=[],i.selectedIndex=-1,i.currentValue=i.element.value,i.intervalId=0,i.cachedResponse={},i.onChangeInterval=null,i.onChange=null,i.isLocal=!1,i.suggestionsContainer=null,i.noSuggestionsContainer=null,i.options=d.extend({},n,t),i.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},i.hint=null,i.hintValue="",i.selection=null,i.initialize(),i.setOptions(t)}u.utils=n,(d.Autocomplete=u).formatResult=function(e,t){if(!t)return e.value;t="("+n.escapeRegExChars(t)+")";return e.value.replace(new RegExp(t,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")},u.prototype={killerFn:null,initialize:function(){var e,t=this,n="."+t.classes.suggestion,i=t.classes.selected,r=t.options;t.element.setAttribute("autocomplete","off"),t.killerFn=function(e){d(e.target).closest("."+t.options.containerClass).length||(t.killSuggestions(),t.disableKillerFn())},t.noSuggestionsContainer=d('<div class="autocomplete-no-suggestion"></div>').html(this.options.noSuggestionNotice).get(0),t.suggestionsContainer=u.utils.createNode(r.containerClass),(e=d(t.suggestionsContainer)).appendTo(r.appendTo),"auto"!==r.width&&e.css("width",r.width),e.on("mouseover.autocomplete",n,function(){t.activate(d(this).data("index"))}),e.on("mouseout.autocomplete",function(){t.selectedIndex=-1,e.children("."+i).removeClass(i)}),e.on("click.autocomplete",n,function(){return t.select(d(this).data("index")),!1}),t.fixPositionCapture=function(){t.visible&&t.fixPosition()},d(window).on("resize.autocomplete",t.fixPositionCapture),t.el.on("keydown.autocomplete",function(e){t.onKeyPress(e)}),t.el.on("keyup.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("blur.autocomplete",function(){t.onBlur()}),t.el.on("focus.autocomplete",function(){t.onFocus()}),t.el.on("change.autocomplete",function(e){t.onKeyUp(e)}),t.el.on("input.autocomplete",function(e){t.onKeyUp(e)})},onFocus:function(){this.fixPosition(),this.el.val().length>=this.options.minChars&&this.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){this.currentRequest&&(this.currentRequest.abort(),this.currentRequest=null)},setOptions:function(e){var t=this,n=t.options;d.extend(n,e),t.isLocal=d.isArray(n.lookup),t.isLocal&&(n.lookup=t.verifySuggestionsFormat(n.lookup)),n.orientation=t.validateOrientation(n.orientation,"bottom"),d(t.suggestionsContainer).css({"max-height":n.maxHeight+"px",width:n.width+"px","z-index":n.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){this.disabled=!0,clearInterval(this.onChangeInterval),this.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e,t,n,i,r,o,a,s,l=this,u=d(l.suggestionsContainer),c=u.parent().get(0);c!==document.body&&!l.options.forceFixPosition||(a=l.options.orientation,e=u.outerHeight(),s=l.el.outerHeight(),t={top:(o=l.el.offset()).top,left:o.left},"auto"===a&&(n=d(window).height(),r=-(i=d(window).scrollTop())+o.top-e,o=i+n-(o.top+s+e),a=Math.max(r,o)===r?"top":"bottom"),t.top+="top"===a?-e:s,c!==document.body&&(s=u.css("opacity"),l.visible||u.css("opacity",0).show(),c=u.offsetParent().offset(),t.top-=c.top,t.left-=c.left,l.visible||u.css("opacity",s).hide()),"auto"===l.options.width&&(t.width=l.el.outerWidth()+"px"),u.css(t))},enableKillerFn:function(){d(document).on("click.autocomplete",this.killerFn)},disableKillerFn:function(){d(document).off("click.autocomplete",this.killerFn)},killSuggestions:function(){var e=this;e.stopKillSuggestions(),e.intervalId=window.setInterval(function(){e.visible&&(e.options.preserveInput||e.el.val(e.currentValue),e.hide()),e.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var e=this.el.val().length,t=this.element.selectionStart;return"number"==typeof t?t===e:!document.selection||((t=document.selection.createRange()).moveStart("character",-e),e===t.text.length)},onKeyPress:function(e){var t=this;if(t.disabled||t.visible||e.which!==l||!t.currentValue){if(!t.disabled&&t.visible){switch(e.which){case i:t.el.val(t.currentValue),t.hide();break;case s:if(t.hint&&t.options.onHint&&t.isCursorAtEnd()){t.selectHint();break}return;case r:if(t.hint&&t.options.onHint)return void t.selectHint();if(-1===t.selectedIndex)return void t.hide();if(t.select(t.selectedIndex),!1===t.options.tabDisabled)return;break;case o:if(-1===t.selectedIndex)return void t.hide();t.select(t.selectedIndex);break;case a:t.moveUp();break;case l:t.moveDown();break;default:return}e.stopImmediatePropagation(),e.preventDefault()}}else t.suggest()},onKeyUp:function(e){var t=this;if(!t.disabled){switch(e.which){case a:case l:return}clearInterval(t.onChangeInterval),t.currentValue!==t.el.val()&&(t.findBestHint(),0<t.options.deferRequestBy?t.onChangeInterval=setInterval(function(){t.onValueChange()},t.options.deferRequestBy):t.onValueChange())}},onValueChange:function(){var e=this,t=e.options,n=e.el.val(),i=e.getQuery(n);e.selection&&e.currentValue!==i&&(e.selection=null,(t.onInvalidateSelection||d.noop).call(e.element)),clearInterval(e.onChangeInterval),e.currentValue=n,e.selectedIndex=-1,t.triggerSelectOnValidInput&&e.isExactMatch(i)?e.select(0):i.length<t.minChars?e.hide():e.getSuggestions(i)},isExactMatch:function(e){var t=this.suggestions;return 1===t.length&&t[0].value.toLowerCase()===e.toLowerCase()},getQuery:function(e){var t=this.options.delimiter;return t?(t=e.split(t),d.trim(t[t.length-1])):e},getSuggestionsLocal:function(t){var e=this.options,n=t.toLowerCase(),i=e.lookupFilter,r=parseInt(e.lookupLimit,10),e={suggestions:d.grep(e.lookup,function(e){return i(e,t,n)})};return r&&e.suggestions.length>r&&(e.suggestions=e.suggestions.slice(0,r)),e},getSuggestions:function(i){var e,t,n,r=this,o=r.options,a=o.serviceUrl;o.params[o.paramName]=i,n=o.ignoreParams?null:o.params,!1!==o.onSearchStart.call(r.element,o.params)&&(d.isFunction(o.lookup)?o.lookup(i,function(e){r.suggestions=e.suggestions,r.suggest(),o.onSearchComplete.call(r.element,i,e.suggestions)}):(e=r.isLocal?r.getSuggestionsLocal(i):(d.isFunction(a)&&(a=a.call(r.element,i)),t=a+"?"+d.param(n||{}),r.cachedResponse[t]))&&d.isArray(e.suggestions)?(r.suggestions=e.suggestions,r.suggest(),o.onSearchComplete.call(r.element,i,e.suggestions)):r.isBadQuery(i)?o.onSearchComplete.call(r.element,i,[]):(r.abortAjax(),n={url:a,data:n,type:o.type,dataType:o.dataType},d.extend(n,o.ajaxSettings),r.currentRequest=d.ajax(n).done(function(e){r.currentRequest=null,e=o.transformResult(e,i),r.processResponse(e,i,t),o.onSearchComplete.call(r.element,i,e.suggestions)}).fail(function(e,t,n){o.onSearchError.call(r.element,i,e,t,n)})))},isBadQuery:function(e){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,n=t.length;n--;)if(0===e.indexOf(t[n]))return!0;return!1},hide:function(){var e=this,t=d(e.suggestionsContainer);d.isFunction(e.options.onHide)&&e.visible&&e.options.onHide.call(e.element,t),e.visible=!1,e.selectedIndex=-1,clearInterval(e.onChangeInterval),d(e.suggestionsContainer).hide(),e.signalHint(null)},suggest:function(){var e,t,n,i,r,o,a,s,l,u,c,p;this.suggestions.length?(t=(e=this).options,n=t.groupBy,i=t.formatResult,r=e.getQuery(e.currentValue),o=e.classes.suggestion,a=e.classes.selected,s=d(e.suggestionsContainer),l=d(e.noSuggestionsContainer),u=t.beforeRender,c="",t.triggerSelectOnValidInput&&e.isExactMatch(r)?e.select(0):(d.each(e.suggestions,function(e,t){n&&(c+=function(e){e=e.data[n];return p===e?"":'<div class="autocomplete-group"><strong>'+(p=e)+"</strong></div>"}(t)),c+='<div class="'+o+'" data-index="'+e+'">'+i(t,r,e)+"</div>"}),this.adjustContainerWidth(),l.detach(),s.html(c),d.isFunction(u)&&u.call(e.element,s,e.suggestions),e.fixPosition(),s.show(),t.autoSelectFirst&&(e.selectedIndex=0,s.scrollTop(0),s.children("."+o).first().addClass(a)),e.visible=!0,e.findBestHint())):this.options.showNoSuggestionNotice?this.noSuggestions():this.hide()},noSuggestions:function(){var e=d(this.suggestionsContainer),t=d(this.noSuggestionsContainer);this.adjustContainerWidth(),t.detach(),e.empty(),e.append(t),this.fixPosition(),e.show(),this.visible=!0},adjustContainerWidth:function(){var e=this.options,t=d(this.suggestionsContainer);"auto"===e.width&&(e=this.el.outerWidth(),t.css("width",0<e?e:300))},findBestHint:function(){var i=this.el.val().toLowerCase(),r=null;i&&(d.each(this.suggestions,function(e,t){var n=0===t.value.toLowerCase().indexOf(i);return n&&(r=t),!n}),this.signalHint(r))},signalHint:function(e){var t="",n=this;e&&(t=n.currentValue+e.value.substr(n.currentValue.length)),n.hintValue!==t&&(n.hintValue=t,n.hint=e,(this.options.onHint||d.noop)(t))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?d.map(e,function(e){return{value:e,data:null}}):e},validateOrientation:function(e,t){return e=d.trim(e||"").toLowerCase(),e=-1===d.inArray(e,["auto","bottom","top"])?t:e},processResponse:function(e,t,n){var i=this,r=i.options;e.suggestions=i.verifySuggestionsFormat(e.suggestions),r.noCache||(i.cachedResponse[n]=e,r.preventBadQueries&&!e.suggestions.length&&i.badQueries.push(t)),t===i.getQuery(i.currentValue)&&(i.suggestions=e.suggestions,i.suggest())},activate:function(e){var t=this,n=t.classes.selected,i=d(t.suggestionsContainer),r=i.find("."+t.classes.suggestion);return i.find("."+n).removeClass(n),t.selectedIndex=e,-1!==t.selectedIndex&&r.length>t.selectedIndex?(t=r.get(t.selectedIndex),d(t).addClass(n),t):null},selectHint:function(){var e=d.inArray(this.hint,this.suggestions);this.select(e)},select:function(e){this.hide(),this.onSelect(e),this.disableKillerFn()},moveUp:function(){var e=this;if(-1!==e.selectedIndex)return 0===e.selectedIndex?(d(e.suggestionsContainer).children().first().removeClass(e.classes.selected),e.selectedIndex=-1,e.el.val(e.currentValue),void e.findBestHint()):void e.adjustScroll(e.selectedIndex-1)},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(e){var t,n,i,r=this,o=r.activate(e);o&&(t=d(o).outerHeight(),n=o.offsetTop,o=(i=d(r.suggestionsContainer).scrollTop())+r.options.maxHeight-t,n<i?d(r.suggestionsContainer).scrollTop(n):o<n&&d(r.suggestionsContainer).scrollTop(n-r.options.maxHeight+t),r.options.preserveInput||r.el.val(r.getValue(r.suggestions[e].value)),r.signalHint(null))},onSelect:function(e){var t=this,n=t.options.onSelect,e=t.suggestions[e];t.currentValue=t.getValue(e.value),t.currentValue===t.el.val()||t.options.preserveInput||t.el.val(t.currentValue),t.signalHint(null),t.suggestions=[],t.selection=e,d.isFunction(n)&&n.call(t.element,e)},getValue:function(e){var t,n=this.options.delimiter;return!n||1===(n=(t=this.currentValue).split(n)).length?e:t.substr(0,t.length-n[n.length-1].length)+e},dispose:function(){this.el.off(".autocomplete").removeData("autocomplete"),this.disableKillerFn(),d(window).off("resize.autocomplete",this.fixPositionCapture),d(this.suggestionsContainer).remove()}},d.fn.devbridgeAutocomplete=function(n,i){var r="autocomplete";return arguments.length?this.each(function(){var e=d(this),t=e.data(r);"string"==typeof n?t&&"function"==typeof t[n]&&t[n](i):(t&&t.dispose&&t.dispose(),t=new u(this,n),e.data(r,t))}):this.first().data(r)}}),function(l){l.extend(l.fn,{validate:function(e){if(this.length){var n=l.data(this[0],"validator");if(n)return n;this[0];return this.attr("novalidate","novalidate"),n=new l.validator(e,this[0]),l.data(this[0],"validator",n),n.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){n.settings.submitHandler&&(n.submitButton=e.target),l(e.target).hasClass("cancel")&&(n.cancelSubmit=!0)}),this.submit(function(t){function e(){var e;return!n.settings.submitHandler||(n.submitButton&&(e=l("<input type='hidden'/>").attr("name",n.submitButton.name).val(n.submitButton.value).appendTo(n.currentForm)),n.settings.submitHandler.call(n,n.currentForm,t),n.submitButton&&e.remove(),!1)}return n.settings.debug&&t.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,e()):n.form()?n.pendingRequest?!(n.formSubmitted=!0):e():(n.focusInvalid(),!1)})),n}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){if(l(this[0]).is("form"))return this.validate().form();var e=!0,t=(l(this).parents(".form-root").length?l(this).parents(".form-root:first"):l(this[0].form)).validate();return this.each(function(){e&=t.element(this)}),e},removeAttrs:function(e){var n={},i=this;return l.each(e.split(/\s/),function(e,t){n[t]=i.attr(t),i.removeAttr(t)}),n},rules:function(e,t){var n=this[0];if(e){var i=l(n).parents(".form-root").length?l(n).parents(".form-root:first"):l(n.form),r=l.data(i[0],"validator").settings,o=r.rules,a=l.validator.staticRules(n);switch(e){case"add":l.extend(a,l.validator.normalizeRule(t)),delete a.messages,o[n.name]=a,t.messages&&(r.messages[n.name]=l.extend(r.messages[n.name],t.messages));break;case"remove":if(!t)return delete o[n.name],a;var s={};return l.each(t.split(/\s/),function(e,t){s[t]=a[t],delete a[t]}),s}}i=l.validator.normalizeRules(l.extend({},l.validator.classRules(n),l.validator.attributeRules(n),l.validator.dataRules(n),l.validator.staticRules(n)),n);return i.required&&(e=i.required,delete i.required,i=l.extend({required:e},i)),i}}),l.extend(l.expr[":"],{blank:function(e){return!l.trim(""+e.value)},filled:function(e){return!!l.trim(""+e.value)},unchecked:function(e){return!e.checked}}),l.validator=function(e,t){this.settings=l.extend(!0,{},l.validator.defaults,e),this.currentForm=t,this.init()},l.validator.format=function(n,e){return 1===arguments.length?function(){var e=l.makeArray(arguments);return e.unshift(n),l.validator.format.apply(this,e)}:((e=2<arguments.length&&e.constructor!==Array?l.makeArray(arguments).slice(1):e).constructor!==Array&&(e=[e]),l.each(e,function(e,t){n=n.replace(new RegExp("\\{"+e+"\\}","g"),function(){return t})}),n)},l.extend(l.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:l([]),errorLabelContainer:l([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e,t){this.lastActive=e,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(e)).hide())},onfocusout:function(e,t){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(e,t){9===t.which&&""===this.elementValue(e)||(e.name in this.submitted||e===this.lastElement||!this.optional(e))&&this.element(e)},onclick:function(e,t){e.name in this.submitted||!this.optional(e)?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(e,t,n){("radio"===e.type?this.findByName(e.name):l(e)).addClass(t).removeClass(n)},unhighlight:function(e,t,n){("radio"===e.type?this.findByName(e.name):l(e)).removeClass(t).addClass(n)}},setDefaults:function(e){l.extend(l.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:l.validator.format("Please enter no more than {0} characters."),minlength:l.validator.format("Please enter at least {0} characters."),rangelength:l.validator.format("Please enter a value between {0} and {1} characters long."),range:l.validator.format("Please enter a value between {0} and {1}."),max:l.validator.format("Please enter a value less than or equal to {0}."),min:l.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=l(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||l(this.currentForm),this.containers=l(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i=this.groups={};l.each(this.settings.groups,function(n,e){"string"==typeof e&&(e=e.split(/\s/)),l.each(e,function(e,t){i[t]=n})});var n=this.settings.rules;function e(e){var t=l(this).parents(".form-root").length?l(this).parents(".form-root:first"):l(this[0].form),n=l.data(t[0],"validator"),t="on"+e.type.replace(/^validate/,"");n.settings[t]&&n.settings[t].call(n,this[0],e)}l.each(n,function(e,t){n[e]=l.validator.normalizeRule(t)}),l(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",e).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",e),this.settings.invalidHandler&&l(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(e){return this.checkForm(e),l.extend(this.submitted,this.errorMap),this.invalid=l.extend({},this.errorMap),this.valid()||l(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(e){this.prepareForm();for(var t=0,n=this.currentElements=this.elements(e);n[t];t++)this.check(n[t]);return this.valid()},element:function(e){var t=this.clean(e),n=this.validationTargetFor(t),e=!0;return void 0===(this.lastElement=n)?delete this.invalid[t.name]:(this.prepareElement(n),this.currentElements=l(n),(e=!1!==this.check(n))?delete this.invalid[n.name]:this.invalid[n.name]=!0),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e},showErrors:function(t){if(t){for(var e in l.extend(this.errorMap,t),this.errorList=[],t)this.errorList.push({message:t[e],element:this.findByName(e)[0]});this.successList=l.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){l.fn.resetForm&&l(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,n=0;for(t in e)n++;return n},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{l(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===l.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(e){e=e||l(this.currentForm);var t=this,n={};return e.find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in n||!t.objectLength(l(this).rules()))&&(n[this.name]=!0)})},clean:function(e){return l(e)[0]},errors:function(){var e=this.settings.errorClass.replace(" ",".");return l(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=l([]),this.toHide=l([]),this.currentElements=l([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(e){var t=l(e).attr("type"),n=l(e).val();return"text"===t&&void 0!==l(e).attr("ng-currency")?l(e).attr("data-val"):"radio"===t||"checkbox"===t?l("input[name='"+l(e).attr("name")+"']:checked").val():"select"===e.nodeName.toLowerCase()?l(e).attr("data-val"):"string"==typeof n?n.replace(/\r/g,""):n},check:function(t){t=this.validationTargetFor(this.clean(t));var e,n,i=l(t).rules(),r=!1,o=this.elementValue(t);for(n in i){var a={method:n,parameters:i[n]};try{if("dependency-mismatch"===(e=l.validator.methods[n].call(this,o,t,a.parameters))){r=!0;continue}if(r=!1,"pending"===e)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!e)return this.formatAndAdd(t,a),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+a.method+"' method.",e),e}}if(!r)return this.objectLength(i)&&this.successList.push(t),!0},customDataMessage:function(e,t){return l(e).data("msg-"+t.toLowerCase())||e.attributes&&l(e).attr("data-msg-"+t.toLowerCase())},customMessage:function(e,t){e=this.settings.messages[e];return e&&(e.constructor===String?e:e[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(e,t){return this.findDefined(this.customMessage(e.name,t),this.customDataMessage(e,t),!this.settings.ignoreTitle&&e.title||void 0,l.validator.messages[t],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t.method),i=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,t.parameters,e):i.test(n)&&(n=l.validator.format(n.replace(i,"{$1}"),t.parameters)),this.errorList.push({message:n,element:e}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return e=this.settings.wrapper?e.add(e.parent(this.settings.wrapper)):e},defaultShowErrors:function(){for(var e,t=0;this.errorList[t];t++){var n=this.errorList[t];this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return l(this.errorList).map(function(){return this.element})},showLabel:function(e,t){var n=this.errorsFor(e);n.length?(n.removeClass(this.settings.validClass).addClass(this.settings.errorClass),n.html(t)):(n=l("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(t||""),this.settings.wrapper&&(n=n.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(n).length||(this.settings.errorPlacement?this.settings.errorPlacement(n,l(e)):n.insertAfter(e))),!t&&this.settings.success&&(n.text(""),"string"==typeof this.settings.success?n.addClass(this.settings.success):this.settings.success(n,e)),this.toShow=this.toShow.add(n)},errorsFor:function(e){var t=this.idOrName(e);return this.errors().filter(function(){return l(this).attr("for")===t})},idOrName:function(e){return this.groups[e.name]||!this.checkable(e)&&e.id||e.name},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),l(e).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(e){return l(this.currentForm).find("[name='"+e+"']")},getLength:function(e,t){switch(t.nodeName.toLowerCase()){case"select":return l("option:selected",t).length;case"input":if(this.checkable(t))return this.findByName(t.name).filter(":checked").length}return e.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e,t){return e},string:function(e,t){t=l(t).parents(".form-root").length?l(t).parents(".form-root:first"):l(t.form);return!!l(e,t[0]).length},function:function(e,t){return e(t)}},optional:function(e){var t=this.elementValue(e);return!l.validator.methods.required.call(this,t,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,this.pending[e.name]=!0)},stopRequest:function(e,t){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],t&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(l(this.currentForm).submit(),this.formSubmitted=!1):!t&&0===this.pendingRequest&&this.formSubmitted&&(l(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return l.data(e,"previousValue")||l.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,t){e.constructor===String?this.classRuleSettings[e]=t:l.extend(this.classRuleSettings,e)},classRules:function(e){var t={},e=l(e).attr("class");return e&&l.each(e.split(" "),function(){this in l.validator.classRuleSettings&&l.extend(t,l.validator.classRuleSettings[this])}),t},attributeRules:function(e){var t,n={},i=l(e);for(t in l.validator.methods){var r="required"===t?!!(r=""===(r=i.get(0).getAttribute(t))?!0:r):i.attr(t);r?n[t]=r:i[0].getAttribute("type")===t&&"number"!=t&&(n[t]=!0)}return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(e){var t,n,i={},r=l(e);for(t in l.validator.methods)void 0!==(n=r.data("rule-"+t.toLowerCase()))&&(i[t]=n);return i},staticRules:function(e){var t={},n=l(e).parents(".form-root").length?l(e).parents(".form-root:first"):l(e.form),n=l.data(n[0],"validator");return t=n.settings.rules?l.validator.normalizeRule(n.settings.rules[e.name])||{}:t},normalizeRules:function(r,o){return l.each(r,function(e,t){if(!1!==t){if(t.param||t.depends){var n=!0;switch(typeof t.depends){case"string":var i=l(o).parents(".form-root").length?l(o).parents(".form-root:first"):l(o.form),n=!!l(t.depends,i[0]).length;break;case"function":n=t.depends.call(o,o)}n?r[e]=void 0===t.param||t.param:delete r[e]}}else delete r[e]}),l.each(r,function(e,t){r[e]=l.isFunction(t)?t(o):t}),l.each(["minlength","maxlength"],function(){r[this]&&(r[this]=Number(r[this]))}),l.each(["rangelength"],function(){var e;r[this]&&(l.isArray(r[this])?r[this]=[Number(r[this][0]),Number(r[this][1])]:"string"==typeof r[this]&&(e=r[this].split(/[\s,]+/),r[this]=[Number(e[0]),Number(e[1])]))}),l.validator.autoCreateRanges&&(r.min&&r.max&&(r.range=[r.min,r.max],delete r.min,delete r.max),r.minlength&&r.maxlength&&(r.rangelength=[r.minlength,r.maxlength],delete r.minlength,delete r.maxlength)),r},normalizeRule:function(e){var t;return"string"==typeof e&&(t={},l.each(e.split(/\s/),function(){t[this]=!0}),e=t),e},addMethod:function(e,t,n){l.validator.methods[e]=t,l.validator.messages[e]=void 0!==n?n:l.validator.messages[e],t.length<3&&l.validator.addClassRules(e,l.validator.normalizeRule(e))},methods:{required:function(e,t,n){if(!this.depend(n,t))return"dependency-mismatch";if("select"!==t.nodeName.toLowerCase())return this.checkable(t)?0<this.getLength(e,t):0<l.trim(e).length;t=l(t).val();return t&&0<t.length},remote:function(i,r,e){if(this.optional(r))return"dependency-mismatch";var o=this.previousValue(r);if(this.settings.messages[r.name]||(this.settings.messages[r.name]={}),o.originalMessage=this.settings.messages[r.name].remote,this.settings.messages[r.name].remote=o.message,e="string"==typeof e?{url:e}:e,o.old===i)return o.valid;o.old=i;var a=this;this.startRequest(r);var t={};return t[r.name]=i,l.ajax(l.extend(!0,{url:e,mode:"abort",port:"validate"+r.name,dataType:"json",data:t,success:function(e){a.settings.messages[r.name].remote=o.originalMessage;var t,n=!0===e||"true"===e;n?(t=a.formSubmitted,a.prepareElement(r),a.formSubmitted=t,a.successList.push(r),delete a.invalid[r.name],a.showErrors()):(t={},e=e||a.defaultMessage(r,"remote"),t[r.name]=o.message=l.isFunction(e)?e(i):e,a.invalid[r.name]=!0,a.showErrors(t)),o.valid=n,a.stopRequest(r,n)}},e)),"pending"},minlength:function(e,t,n){e=l.isArray(e)?e.length:this.getLength(l.trim(e),t);return this.optional(t)||n<=e},maxlength:function(e,t,n){e=l.isArray(e)?e.length:this.getLength(l.trim(e),t);return this.optional(t)||e<=n},rangelength:function(e,t,n){e=l.isArray(e)?e.length:this.getLength(l.trim(e),t);return this.optional(t)||e>=n[0]&&e<=n[1]},min:function(e,t,n){return this.optional(t)||n<=e},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},email:function(e,t){return this.optional(t)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(e)},url:function(e,t){return this.optional(t)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(e)},number:function(e,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},creditcard:function(e,t){if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(e))return!1;for(var n=0,i=0,r=!1,o=(e=e.replace(/\D/g,"")).length-1;0<=o;o--){var a=e.charAt(o),i=parseInt(a,10);r&&9<(i*=2)&&(i-=9),n+=i,r=!r}return n%10==0},equalTo:function(e,t,n){n=l(n);return this.settings.onfocusout&&n.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){l(t).valid()}),e===n.val()}}}),l.format=l.validator.format}(dnnsfjQuery),function(i){var r,o={};i.ajaxPrefilter?i.ajaxPrefilter(function(e,t,n){var i=e.port;"abort"===e.mode&&(o[i]&&o[i].abort(),o[i]=n)}):(r=i.ajax,i.ajax=function(e){var t=("mode"in e?e:i.ajaxSettings).mode,n=("port"in e?e:i.ajaxSettings).port;return"abort"===t?(o[n]&&o[n].abort(),o[n]=r.apply(this,arguments)):r.apply(this,arguments)})}(dnnsfjQuery),function(r){r.extend(r.fn,{validateDelegate:function(n,e,i){return this.bind(e,function(e){var t=r(e.target);if(t.is(n))return i.apply(t,arguments)})}})}(dnnsfjQuery),function(s,l,u){function i(){this.controls={bold:{groupIndex:0,visible:!0,tags:["b","strong"],css:{fontWeight:"bold"},tooltip:"Bold",hotkey:{ctrl:1,key:66}},copy:{groupIndex:8,visible:!1,tooltip:"Copy"},createLink:{groupIndex:6,visible:!0,exec:function(){var e=this;c.wysiwyg.controls&&c.wysiwyg.controls.link?c.wysiwyg.controls.link.init(this):c.wysiwyg.autoload?c.wysiwyg.autoload.control("wysiwyg.link.js",function(){e.controls.createLink.exec.apply(e)}):o.error("$.wysiwyg.controls.link not defined. You need to include wysiwyg.link.js file")},tags:["a"],tooltip:"Create link"},unLink:{groupIndex:6,visible:!0,exec:function(){this.editorDoc.execCommand("unlink",!1,null)},tooltip:"Remove link"},cut:{groupIndex:8,visible:!1,tooltip:"Cut"},decreaseFontSize:{groupIndex:9,visible:!1,tags:["small"],tooltip:"Decrease font size",exec:function(){this.decreaseFontSize()}},h1:{groupIndex:7,visible:!0,className:"h1",command:c.browser.mozilla?"heading":"FormatBlock",arguments:c.browser.mozilla?"h1":"<h1>",tags:["h1"],tooltip:"Header 1"},h2:{groupIndex:7,visible:!0,className:"h2",command:c.browser.mozilla?"heading":"FormatBlock",arguments:c.browser.mozilla?"h2":"<h2>",tags:["h2"],tooltip:"Header 2"},h3:{groupIndex:7,visible:!0,className:"h3",command:c.browser.mozilla?"heading":"FormatBlock",arguments:c.browser.mozilla?"h3":"<h3>",tags:["h3"],tooltip:"Header 3"},highlight:{tooltip:"Highlight",className:"highlight",groupIndex:1,visible:!1,css:{backgroundColor:"rgb(255, 255, 102)"},exec:function(){var e,t,n=c.browser.msie||c.browser.opera?"backcolor":"hilitecolor";if(c.browser.msie)e=this.getInternalRange().parentElement();else for(e=(t=this.getInternalSelection()).extentNode||t.focusNode;e.style===u;)if((e=e.parentNode).tagName&&"body"===e.tagName.toLowerCase())return;t="rgb(255, 255, 102)"===e.style.backgroundColor||"#ffff66"===e.style.backgroundColor?"#ffffff":"#ffff66",this.editorDoc.execCommand(n,!1,t)}},html:{groupIndex:10,visible:!1,exec:function(e,t){var n;this.options.resizeOptions&&c.fn.resizable&&(n=this.element.height()),this.viewHTML?(this.setContent("function"==typeof t?t(this.original.value):this.original.value),c(this.original).hide(),this.editor.show(),this.options.resizeOptions&&c.fn.resizable&&(n===this.element.height()&&this.element.height(n+this.editor.height()),this.element.resizable(c.extend(!0,{alsoResize:this.editor},this.options.resizeOptions))),this.ui.toolbar.find("li").each(function(){var e=c(this);e.hasClass("html")?e.removeClass("active"):e.removeClass("disabled")})):(this.saveContent(e),c(this.original).css({width:this.editor.width(),height:this.editor.height(),resize:"none"}).show(),this.editor.hide(),this.options.resizeOptions&&c.fn.resizable&&(n===this.element.height()&&this.element.height(this.ui.toolbar.height()),this.element.resizable("destroy")),this.ui.toolbar.find("li").each(function(){var e=c(this);e.hasClass("html")?e.addClass("active"):!1===e.hasClass("fullscreen")&&e.removeClass("active").addClass("disabled")})),this.viewHTML=!this.viewHTML},tooltip:"View source code"},increaseFontSize:{groupIndex:9,visible:!1,tags:["big"],tooltip:"Increase font size",exec:function(){this.increaseFontSize()}},indent:{groupIndex:2,visible:!0,tooltip:"Indent"},insertHorizontalRule:{groupIndex:6,visible:!0,tags:["hr"],tooltip:"Insert Horizontal Rule"},insertImage:{groupIndex:6,visible:!0,exec:function(){var e=this;c.wysiwyg.controls&&c.wysiwyg.controls.image?c.wysiwyg.controls.image.init(this):c.wysiwyg.autoload?c.wysiwyg.autoload.control("wysiwyg.image.js",function(){e.controls.insertImage.exec.apply(e)}):o.error("$.wysiwyg.controls.image not defined. You need to include wysiwyg.image.js file")},tags:["img"],tooltip:"Insert image"},insertOrderedList:{groupIndex:5,visible:!0,tags:["ol"],tooltip:"Insert Ordered List"},insertTable:{groupIndex:6,visible:!0,exec:function(){var e=this;c.wysiwyg.controls&&c.wysiwyg.controls.table?c.wysiwyg.controls.table(this):c.wysiwyg.autoload?c.wysiwyg.autoload.control("wysiwyg.table.js",function(){e.controls.insertTable.exec.apply(e)}):o.error("$.wysiwyg.controls.table not defined. You need to include wysiwyg.table.js file")},tags:["table"],tooltip:"Insert table"},insertUnorderedList:{groupIndex:5,visible:!0,tags:["ul"],tooltip:"Insert Unordered List"},italic:{groupIndex:0,visible:!0,tags:["i","em"],css:{fontStyle:"italic"},tooltip:"Italic",hotkey:{ctrl:1,key:73}},justifyCenter:{groupIndex:1,visible:!0,tags:["center"],css:{textAlign:"center"},tooltip:"Justify Center"},justifyFull:{groupIndex:1,visible:!0,css:{textAlign:"justify"},tooltip:"Justify Full"},justifyLeft:{visible:!0,groupIndex:1,css:{textAlign:"left"},tooltip:"Justify Left"},justifyRight:{groupIndex:1,visible:!0,css:{textAlign:"right"},tooltip:"Justify Right"},ltr:{groupIndex:10,visible:!1,exec:function(){var e=this.dom.getElement("p");return!!e&&(c(e).attr("dir","ltr"),!0)},tooltip:"Left to Right"},outdent:{groupIndex:2,visible:!0,tooltip:"Outdent"},paragraph:{groupIndex:7,visible:!1,className:"paragraph",command:"FormatBlock",arguments:c.browser.msie||c.browser.opera?"<p>":"p",tags:["p"],tooltip:"Paragraph"},paste:{groupIndex:8,visible:!1,tooltip:"Paste"},redo:{groupIndex:4,visible:!0,tooltip:"Redo"},removeFormat:{groupIndex:10,visible:!0,exec:function(){this.removeFormat()},tooltip:"Remove formatting"},rtl:{groupIndex:10,visible:!1,exec:function(){var e=this.dom.getElement("p");return!!e&&(c(e).attr("dir","rtl"),!0)},tooltip:"Right to Left"},strikeThrough:{groupIndex:0,visible:!0,tags:["s","strike"],css:{textDecoration:"line-through"},tooltip:"Strike-through"},subscript:{groupIndex:3,visible:!0,tags:["sub"],tooltip:"Subscript"},superscript:{groupIndex:3,visible:!0,tags:["sup"],tooltip:"Superscript"},underline:{groupIndex:0,visible:!0,tags:["u"],css:{textDecoration:"underline"},tooltip:"Underline",hotkey:{ctrl:1,key:85}},undo:{groupIndex:4,visible:!0,tooltip:"Undo"},code:{visible:!0,groupIndex:6,tooltip:"Code snippet",exec:function(){var e=this.getInternalRange(),t=c(e.commonAncestorContainer),e=e.commonAncestorContainer.nodeName.toLowerCase();t.parent("code").length?t.unwrap():"body"!==e&&t.wrap("<code/>")}},cssWrap:{visible:!1,groupIndex:6,tooltip:"CSS Wrapper",exec:function(){c.wysiwyg.controls.cssWrap.init(this)}}},this.defaults={html:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" style="margin:0"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body style="margin:0;">INITIAL_CONTENT</body></html>',debug:!1,controls:{},css:!1,events:{},autoGrow:!1,autoSave:!0,brIE:!1,formHeight:270,formWidth:440,iFrameClass:null,initialContent:"<p>Initial content</p>",maxHeight:1e4,maxLength:0,messages:{nonSelection:"Select the text you wish to link"},toolbarHtml:'<ul role="menu" class="toolbar"></ul>',removeHeadings:!1,replaceDivWithP:!1,resizeOptions:!1,rmUnusedControls:!1,rmUnwantedBr:!0,tableFiller:"Lorem ipsum",initialMinHeight:null,controlImage:{forceRelativeUrls:!1},controlLink:{forceRelativeUrls:!1},plugins:{autoload:!1,i18n:!1,rmFormat:{rmMsWordMarkup:!1}},dialog:"default"},this.availableControlProperties=["arguments","callback","callbackArguments","className","command","css","custom","exec","groupIndex","hotkey","icon","separator","tags","tooltip","visible"],this.editor=null,this.editorDoc=null,this.element=null,this.options={},this.original=null,this.savedRange=null,this.timers=[],this.validKeyCodes=[8,9,13,16,17,18,19,20,27,33,34,35,36,37,38,39,40,45,46],this.isDestroyed=!1,this.dom={ie:{parent:null},w3c:{parent:null}},(this.dom.parent=this).dom.ie.parent=this.dom,this.dom.w3c.parent=this.dom,this.ui={},(this.ui.self=this).ui.toolbar=null,this.ui.initialHeight=null,this.dom.getAncestor=function(e,t){for(t=t.toLowerCase();e&&e.tagName!==u&&"body"!==e.tagName.toLowerCase();){if(t===e.tagName.toLowerCase())return e;e=e.parentNode}if(!e.tagName&&(e.previousSibling||e.nextSibling)){if(e.previousSibling&&e.previousSibling.tagName.toLowerCase()===t)return e.previousSibling;if(e.nextSibling&&e.nextSibling.tagName.toLowerCase()===t)return e.nextSibling}return null},this.dom.getElement=function(e){return e=e.toLowerCase(),(s.getSelection?this.w3c:this.ie).getElement(e)},this.dom.ie.getElement=function(e){var t,n=this.parent,i=n.parent.getInternalSelection(),r=i.createRange();if("Control"===i.type){if(1!==r.length)return null;t=r.item(0)}else t=r.parentElement();return n.getAncestor(t,e)},this.dom.w3c.getElement=function(e){var t,n=this.parent,i=n.parent.getInternalRange();if(!i)return null;if(!(t=(t=3===(t=i.commonAncestorContainer).nodeType?t.parentNode:t)===i.startContainer?t.childNodes[i.startOffset]:t).tagName&&(t.previousSibling||t.nextSibling)){if(t.previousSibling&&t.previousSibling.tagName.toLowerCase()===e)return t.previousSibling;if(t.nextSibling&&t.nextSibling.tagName.toLowerCase()===e)return t.nextSibling}return n.getAncestor(t,e)},this.ui.addHoverClass=function(){c(this).addClass("wysiwyg-button-hover")},this.ui.appendControls=function(){function e(e,t){t.groupIndex&&n!==t.groupIndex&&(n=t.groupIndex,o=!1),t.visible&&(o||(i.appendItemSeparator(),o=!0),t.custom?i.appendItemCustom(e,t):i.appendItem(e,t))}var t,n,i=this,r=this.self.parseControls(),o=!0,a=[],s={};for(c.each(r,function(e,t){var n="empty";u!==t.groupIndex&&(n=""===t.groupIndex?"empty":t.groupIndex),u===s[n]&&(a.push(n),s[n]={}),s[n][e]=t}),a.sort(function(e,t){return"number"==typeof e&&"number"==typeof t?e-t:(e=e.toString(),(t=t.toString())<e?1:e===t?0:-1)}),0<a.length&&(n=a[0]),t=0;t<a.length;t+=1)c.each(s[a[t]],e)},this.ui.appendItem=function(i,r){var o=this.self,e=r.className||r.command||i||"empty",t=r.tooltip||r.command||i||"";return c('<li role="menuitem" unselectable="on">'+e+"</li>").addClass(e).attr("title",t).hover(this.addHoverClass,this.removeHoverClass).click(function(e){if(c(this).hasClass("disabled"))return!1;o.triggerControl(i,r);var t,n=c(e.target);for(t in o.controls)if(n.hasClass(t)){o.ui.toolbar.find("."+t).toggleClass("active"),o.editorDoc.rememberCommand=!0;break}return this.blur(),o.ui.returnRange(),o.ui.focus(),!0}).appendTo(o.ui.toolbar)},this.ui.appendItemCustom=function(e,t){var n=this.self,i=t.tooltip||t.command||e||"";return t.callback&&c(s).bind("trigger-"+e+".wysiwyg",t.callback),c('<li role="menuitem" unselectable="on" style="background: url(\''+t.icon+"') no-repeat;\"></li>").addClass("custom-command-"+e).addClass("wysiwyg-custom-command").addClass(e).attr("title",i).hover(this.addHoverClass,this.removeHoverClass).click(function(){return!c(this).hasClass("disabled")&&(n.triggerControl.apply(n,[e,t]),this.blur(),n.ui.returnRange(),n.ui.focus(),n.triggerControlCallback(e),!0)}).appendTo(n.ui.toolbar)},this.ui.appendItemSeparator=function(){var e=this.self;return c('<li role="separator" class="separator"></li>').appendTo(e.ui.toolbar)},this.autoSaveFunction=function(){this.saveContent()},this.ui.checkTargets=function(s){var l=this.self;c.each(l.options.controls,function(e,t){var n,i,r,o,a=t.className||t.command||e||"empty";if("fullscreen"!==a&&l.ui.toolbar.find("."+a).removeClass("active"),t.tags||t.options&&t.options.tags)for(n=t.tags||t.options&&t.options.tags,i=s;i&&1===i.nodeType;)-1!==c.inArray(i.tagName.toLowerCase(),n)&&l.ui.toolbar.find("."+a).addClass("active"),i=i.parentNode;if(t.css||t.options&&t.options.css)for(r=t.css||t.options&&t.options.css,o=c(s);o&&1===o[0].nodeType;)(function(e){var n=0,i=0;c.each(e,function(e,t){"function"==typeof t?t.apply(l,[o.css(e).toString().toLowerCase(),l])&&(n+=1):o.css(e).toString().toLowerCase()===t&&(n+=1),i+=1}),i===n&&l.ui.toolbar.find("."+a).addClass("active")})(r),o=o.parent()})},this.ui.designMode=function(){var t,n=this.self;(t=function(e){if("on"===n.editorDoc.designMode)return n.timers.designMode&&s.clearTimeout(n.timers.designMode),n.innerDocument()!==n.editorDoc&&n.ui.initFrame(),0;try{n.editorDoc.designMode="on"}catch(e){}0<--e&&(n.timers.designMode=s.setTimeout(function(){t(e)},100))})(3)},this.destroy=function(){this.isDestroyed=!0;for(var e=this.element.closest("form"),t=0;t<this.timers.length;t+=1)s.clearTimeout(this.timers[t]);return c(this.original).appendTo(c(this.element.parent())),e.unbind(".wysiwyg"),this.element.remove(),c.removeData(this.original,"wysiwyg"),c(this.original).show(),this},this.getRangeText=function(){var e=this.getInternalRange();return e&&(e.toString?e=e.toString():e.text&&(e=e.text)),e},this.execute=function(e,t){this.editorDoc.execCommand(e,!1,t=void 0===t?null:t)},this.extendOptions=function(t){var n={};return"object"==typeof t.controls&&(n=t.controls,delete t.controls),(t=c.extend(!0,{},this.defaults,t)).controls=c.extend(!0,{},n,this.controls,n),t.rmUnusedControls&&c.each(t.controls,function(e){n[e]||delete t.controls[e]}),t},this.ui.focus=function(){var e=this.self;return e.editor.get(0).contentWindow.focus(),e},this.ui.returnRange=function(){var e,t=this.self;if(null!==t.savedRange){if(s.getSelection){0<(e=s.getSelection()).rangeCount&&e.removeAllRanges();try{e.addRange(t.savedRange)}catch(e){o.error(e)}}else s.document.createRange?s.getSelection().addRange(t.savedRange):s.document.selection&&t.savedRange.select();t.savedRange=null}},this.increaseFontSize=function(){var e,t,n,i,r;c.browser.mozilla||c.browser.opera?this.editorDoc.execCommand("increaseFontSize",!1,null):c.browser.webkit?(e=this.getInternalRange(),t=this.getInternalSelection(),n=this.editorDoc.createElement("big"),!0===e.collapsed&&3===e.commonAncestorContainer.nodeType?(i=(r=e.commonAncestorContainer.nodeValue.toString()).lastIndexOf(" ",e.startOffset)+1,r=-1===r.indexOf(" ",e.startOffset)?r:r.indexOf(" ",e.startOffset),e.setStart(e.commonAncestorContainer,i),e.setEnd(e.commonAncestorContainer,r),e.surroundContents(n)):(e.surroundContents(n),t.removeAllRanges()),t.addRange(e)):o.error("Internet Explorer?")},this.decreaseFontSize=function(){var e,t,n,i,r;c.browser.mozilla||c.browser.opera?this.editorDoc.execCommand("decreaseFontSize",!1,null):c.browser.webkit?(e=this.getInternalRange(),t=this.getInternalSelection(),n=this.editorDoc.createElement("small"),!0===e.collapsed&&3===e.commonAncestorContainer.nodeType?(i=(r=e.commonAncestorContainer.nodeValue.toString()).lastIndexOf(" ",e.startOffset)+1,r=-1===r.indexOf(" ",e.startOffset)?r:r.indexOf(" ",e.startOffset),e.setStart(e.commonAncestorContainer,i),e.setEnd(e.commonAncestorContainer,r),e.surroundContents(n)):(e.surroundContents(n),t.removeAllRanges()),t.addRange(e)):o.error("Internet Explorer?")},this.getContent=function(){return this.viewHTML&&this.setContent(this.original.value),this.events.filter("getContent",this.editorDoc.body.innerHTML)},this.events={_events:{},bind:function(e,t){"object"!=typeof this._events.eventName&&(this._events[e]=[]),this._events[e].push(t)},trigger:function(e,n){var i;"object"==typeof this._events.eventName&&(i=this.editor,c.each(this._events[e],function(e,t){"function"==typeof t&&t.apply(i,n)}))},filter:function(e,n){var i,r;return"object"==typeof this._events[e]&&(i=this.editor,r=Array.prototype.slice.call(arguments,1),c.each(this._events[e],function(e,t){"function"==typeof t&&(n=t.apply(i,r))})),n}},this.getElementByAttributeValue=function(e,t,n){for(var i,r=this.editorDoc.getElementsByTagName(e),o=0;o<r.length;o+=1)if(i=r[o].getAttribute(t),(i=c.browser.msie?i.substr(i.length-n.length):i)===n)return r[o];return!1},this.getInternalRange=function(){var e=this.getInternalSelection();return e?e.rangeCount&&0<e.rangeCount?e.getRangeAt(0):e.createRange?e.createRange():null:null},this.getInternalSelection=function(){var e=this.editor.get(0).contentWindow;return e&&e.getSelection?e.getSelection():this.editorDoc.getSelection?this.editorDoc.getSelection():this.editorDoc.selection||null},this.getRange=function(){var e=this.getSelection();if(!e)return null;if(e.rangeCount&&0<e.rangeCount)e.getRangeAt(0);else if(e.createRange)return e.createRange();return null},this.getSelection=function(){return s.getSelection&&null!==s.getSelection()&&s.getSelection().createRange?s.getSelection():s.document.selection},this.ui.grow=function(){var e=this.self,t=c(e.editorDoc.body),n=c.browser.msie?t[0].scrollHeight:t.height()+2+20,i=e.ui.initialHeight,i=Math.max(n,i),i=Math.min(i,e.options.maxHeight);return e.editor.attr("scrolling",i<e.options.maxHeight?"no":"auto"),t.css("overflow",i<e.options.maxHeight?"hidden":""),e.editor.get(0).height=i,e},this.init=function(e,t){var n=this,i=c(e).closest("form"),r=e.width||e.clientWidth||0,o=e.height||e.clientHeight||0;this.options=this.extendOptions(t),this.original=e,this.ui.toolbar=c(this.options.toolbarHtml),c.browser.msie&&parseInt(c.browser.version,10)<8&&(this.options.autoGrow=!1),0===r&&e.cols&&(r=8*e.cols+21),0===o&&e.rows&&(o=16*e.rows+16),this.editor=c("https:"===s.location.protocol?'<iframe src="javascript:false;"></iframe>':"<iframe></iframe>").attr("frameborder","0"),this.options.iFrameClass?this.editor.addClass(this.options.iFrameClass):(this.editor.css({minHeight:(o-6).toString()+"px",width:50<r?r.toString()+"px":""}),c.browser.msie&&parseInt(c.browser.version,10)<7&&this.editor.css("height",o.toString()+"px")),e.id&&(o=e.id+"-wysiwyg-iframe",l.getElementById(o)||this.editor.attr("id",o)),this.editor.attr("tabindex",c(e).attr("tabindex")),this.element=c("<div/>").addClass("wysiwyg"),this.options.iFrameClass||this.element.css({width:0<r?r.toString()+"px":"100%"}),c(e).hide().before(this.element),this.viewHTML=!1,this.initialContent=c(e).val(),this.ui.initFrame(),this.options.resizeOptions&&c.fn.resizable&&this.element.resizable(c.extend(!0,{alsoResize:this.editor},this.options.resizeOptions)),this.options.autoSave&&i.bind("submit.wysiwyg",function(){n.autoSaveFunction()}),i.bind("reset.wysiwyg",function(){n.resetFunction()})},this.ui.initFrame=function(){var e,t,n,i=this.self,r=c('<div class="toolbar-wrap"><div style="clear: both">\x3c!-- --\x3e</div>').prepend(i.ui.toolbar);if(i.ui.appendControls(),i.element.append(r).append(i.editor).append(i.original),i.editorDoc=i.innerDocument(),i.isDestroyed)return null;if(i.ui.designMode(),i.editorDoc.open(),i.editorDoc.write(i.options.html.replace(/INITIAL_CONTENT/,function(){return i.wrapInitialContent()})),i.editorDoc.close(),c.wysiwyg.plugin.bind(i),c(i.editorDoc).trigger("initFrame.wysiwyg"),c(i.editorDoc).bind("click.wysiwyg",function(e){i.ui.checkTargets(e.target||e.srcElement)}),c(i.original).focus(function(){0===c(this).filter(":visible").length||c.browser.opera||i.ui.focus()}),c(c.wysiwyg.quirk.quirks).each(function(e,t){t.init(i)}),c(i.editorDoc).keydown(function(e){return 8===e.keyCode&&/^<([\w]+)[^>]*>(<br\/?>)?<\/\1>$/.test(i.getContent())?(e.stopPropagation(),!1):!(i.editorDoc.rememberCommand=!1)}),c.browser.msie||c(i.editorDoc).keydown(function(e){var t,n;if(e.ctrlKey||e.metaKey)for(t in i.options.controls)if((n=i.options.controls[t]).hotkey&&n.hotkey.ctrl&&e.keyCode===n.hotkey.key)return i.triggerControl.apply(i,[t,n]),!1;return!0}),i.options.brIE&&c(i.editorDoc).keydown(function(e){if(13!==e.keyCode)return!0;if(c.browser.msie||c.browser.opera){var t=i.getRange();t?(t.pasteHTML("<br/>"),t.collapse(!1),t.select()):i.insertHtml("<br/>")}else{var n=i.editorDoc.getSelection();if(!(n&&n.getRangeAt&&n.rangeCount))return!0;e=n.getRangeAt(0);if(!e)return!0;t=l.createElement("br");e.deleteContents(),e.insertNode(t),e.setStartAfter(t),e.collapse(!0),n.removeAllRanges(),n.addRange(e)}return!1}),i.options.plugins.rmFormat.rmMsWordMarkup&&c(i.editorDoc).bind("paste.wysiwyg",function(e){c.wysiwyg.rmFormat&&("object"==typeof i.options.plugins.rmFormat.rmMsWordMarkup?c.wysiwyg.rmFormat.run(i,{rules:{msWordMarkup:i.options.plugins.rmFormat.rmMsWordMarkup}}):c.wysiwyg.rmFormat.run(i,{rules:{msWordMarkup:{enabled:!0}}}))}),i.options.autoSave&&c(i.editorDoc).keydown(function(){i.autoSaveFunction()}).keyup(function(){i.autoSaveFunction()}).mousedown(function(){i.autoSaveFunction()}).bind(c.support.noCloneEvent?"input.wysiwyg":"paste.wysiwyg",function(){i.autoSaveFunction()}),i.options.autoGrow&&(null!==i.options.initialMinHeight?i.ui.initialHeight=i.options.initialMinHeight:i.ui.initialHeight=c(i.editorDoc).height(),c(i.editorDoc.body).css("border","1px solid white"),t=function(){i.ui.grow()},c(i.editorDoc).keyup(t),c(i.editorDoc).bind("editorRefresh.wysiwyg",t),i.ui.grow()),i.options.css)if(String===i.options.css.constructor&&(i.options.css=i.options.css.split()),Array===i.options.css.constructor){var o,a={};for(o in i.options.css)Object===i.options.css[o].constructor?c.extend(a,i.options.css[o]):String===i.options.css[o].constructor&&(c.browser.msie?(e=i.editorDoc.createStyleSheet(i.options.css[o]),c(e).attr({media:"all"})):(e=c("<link/>").attr({href:i.options.css[o],media:"all",rel:"stylesheet",type:"text/css"}),c(i.editorDoc).find("head").append(e)));i.timers.initFrame_Css=s.setTimeout(function(e){c(i.editorDoc.body).css(a)},0),delete a}else Object===i.options.css.constructor&&(i.timers.initFrame_Css=s.setTimeout(function(){c(i.editorDoc.body).css(i.options.css)},0));0===i.initialContent.length&&("function"==typeof i.options.initialContent?i.setContent(i.options.initialContent()):i.setContent(i.options.initialContent)),0<i.options.maxLength&&c(i.editorDoc).keydown(function(e){c(i.editorDoc).text().length>=i.options.maxLength&&-1===c.inArray(e.which,i.validKeyCodes)&&e.preventDefault()}),c.each(i.options.events,function(e,t){c(i.editorDoc).bind(e+".wysiwyg",function(e){t.apply(i.editorDoc,[e,i])})}),c.browser.msie?c(i.editorDoc).bind("beforedeactivate.wysiwyg",function(){i.savedRange=i.getInternalRange()}):c(i.editorDoc).bind("blur.wysiwyg",function(){i.savedRange=i.getInternalRange()}),c(i.editorDoc.body).addClass("wysiwyg"),i.options.events&&i.options.events.save&&(t=i.options.events.save,c(i.editorDoc).bind("keyup.wysiwyg",t),c(i.editorDoc).bind("change.wysiwyg",t),c.support.noCloneEvent?c(i.editorDoc).bind("input.wysiwyg",t):(c(i.editorDoc).bind("paste.wysiwyg",t),c(i.editorDoc).bind("cut.wysiwyg",t))),i.options.xhtml5&&i.options.unicode&&(n={ne:8800,le:8804,para:182,xi:958,darr:8595,nu:957,oacute:243,Uacute:218,omega:969,prime:8242,pound:163,igrave:236,thorn:254,forall:8704,emsp:8195,lowast:8727,brvbar:166,alefsym:8501,nbsp:160,delta:948,clubs:9827,lArr:8656,Omega:937,Auml:196,cedil:184,and:8743,plusmn:177,ge:8805,raquo:187,uml:168,equiv:8801,laquo:171,rdquo:8221,Epsilon:917,divide:247,fnof:402,chi:967,Dagger:8225,iacute:237,rceil:8969,sigma:963,Oslash:216,acute:180,frac34:190,lrm:8206,upsih:978,Scaron:352,part:8706,exist:8707,nabla:8711,image:8465,prop:8733,zwj:8205,omicron:959,aacute:225,Yuml:376,Yacute:221,weierp:8472,rsquo:8217,otimes:8855,kappa:954,thetasym:977,harr:8596,Ouml:214,Iota:921,ograve:242,sdot:8901,copy:169,oplus:8853,acirc:226,sup:8835,zeta:950,Iacute:205,Oacute:211,crarr:8629,Nu:925,bdquo:8222,lsquo:8216,apos:39,Beta:914,eacute:233,egrave:232,lceil:8968,Kappa:922,piv:982,Ccedil:199,ldquo:8220,Xi:926,cent:162,uarr:8593,hellip:8230,Aacute:193,ensp:8194,sect:167,Ugrave:217,aelig:230,ordf:170,curren:164,sbquo:8218,macr:175,Phi:934,Eta:919,rho:961,Omicron:927,sup2:178,euro:8364,aring:229,Theta:920,mdash:8212,uuml:252,otilde:245,eta:951,uacute:250,rArr:8658,nsub:8836,agrave:224,notin:8713,ndash:8211,Psi:936,Ocirc:212,sube:8838,szlig:223,micro:181,not:172,sup1:185,middot:183,iota:953,ecirc:234,lsaquo:8249,thinsp:8201,sum:8721,ntilde:241,scaron:353,cap:8745,atilde:227,lang:10216,__replacement:65533,isin:8712,gamma:947,Euml:203,ang:8736,upsilon:965,Ntilde:209,hearts:9829,Alpha:913,Tau:932,spades:9824,dagger:8224,THORN:222,int:8747,lambda:955,Eacute:201,Uuml:220,infin:8734,rlm:8207,Aring:197,ugrave:249,Egrave:200,Acirc:194,rsaquo:8250,ETH:208,oslash:248,alpha:945,Ograve:210,Prime:8243,mu:956,ni:8715,real:8476,bull:8226,beta:946,icirc:238,eth:240,prod:8719,larr:8592,ordm:186,perp:8869,Gamma:915,reg:174,ucirc:251,Pi:928,psi:968,tilde:732,asymp:8776,zwnj:8204,Agrave:192,deg:176,AElig:198,times:215,Delta:916,sim:8764,Otilde:213,Mu:924,uArr:8657,circ:710,theta:952,Rho:929,sup3:179,diams:9830,tau:964,Chi:935,frac14:188,oelig:339,shy:173,or:8744,dArr:8659,phi:966,iuml:239,Lambda:923,rfloor:8971,iexcl:161,cong:8773,ccedil:231,Icirc:206,frac12:189,loz:9674,rarr:8594,cup:8746,radic:8730,frasl:8260,euml:235,OElig:338,hArr:8660,Atilde:195,Upsilon:933,there4:8756,ouml:246,oline:8254,Ecirc:202,yacute:253,auml:228,permil:8240,sigmaf:962,iquest:191,empty:8709,pi:960,Ucirc:219,supe:8839,Igrave:204,yen:165,rang:10217,trade:8482,lfloor:8970,minus:8722,Zeta:918,sub:8834,epsilon:949,yuml:255,Sigma:931,Iuml:207,ocirc:244},i.events.bind("getContent",function(e){return e.replace(/&(?:amp;)?(?!amp|lt|gt|quot)([a-z][a-z0-9]*);/gi,function(e,t){return n[t]||(t=t.toLowerCase(),n[t]||(t="__replacement")),String.fromCharCode(n[t])})})),c(i.original).trigger("ready.jwysiwyg",[i.editorDoc,i])},this.innerDocument=function(){var e=this.editor.get(0);if("iframe"===e.nodeName.toLowerCase()){if(e.contentDocument)return e.contentDocument;if(e.contentWindow)return e.contentWindow.document;if(this.isDestroyed)return null;o.error("Unexpected error in innerDocument")}return e},this.insertHtml=function(e){var t;return e&&0!==e.length&&(c.browser.msie?(this.ui.focus(),this.editorDoc.execCommand("insertImage",!1,"#jwysiwyg#"),(t=this.getElementByAttributeValue("img","src","#jwysiwyg#"))&&c(t).replaceWith(e)):c.browser.mozilla?1===c(e).length?((t=this.getInternalRange()).deleteContents(),t.insertNode(c(e).get(0))):this.editorDoc.execCommand("insertHTML",!1,e):this.editorDoc.execCommand("insertHTML",!1,e)||(this.editor.focus(),this.editorDoc.execCommand("insertHTML",!1,e)),this.saveContent()),this},this.parseControls=function(){var n=this;return c.each(this.options.controls,function(t,e){c.each(e,function(e){if(-1===c.inArray(e,n.availableControlProperties))throw t+'["'+e+'"]: property "'+e+'" not exists in Wysiwyg.availableControlProperties'})}),this.options.parseControls?this.options.parseControls.call(this):this.options.controls},this.removeFormat=function(){return c.browser.msie&&this.ui.focus(),this.options.removeHeadings&&this.editorDoc.execCommand("formatBlock",!1,"<p>"),this.editorDoc.execCommand("removeFormat",!1,null),this.editorDoc.execCommand("unlink",!1,null),c.wysiwyg.rmFormat&&c.wysiwyg.rmFormat.enabled&&("object"==typeof this.options.plugins.rmFormat.rmMsWordMarkup?c.wysiwyg.rmFormat.run(this,{rules:{msWordMarkup:this.options.plugins.rmFormat.rmMsWordMarkup}}):c.wysiwyg.rmFormat.run(this,{rules:{msWordMarkup:{enabled:!0}}})),this},this.ui.removeHoverClass=function(){c(this).removeClass("wysiwyg-button-hover")},this.resetFunction=function(){this.setContent(this.initialContent)},this.saveContent=function(e){var t;if(!this.viewHTML)return this.original&&(e="function"==typeof e?e(this.getContent()):this.getContent(),this.options.rmUnwantedBr&&(e=e.replace(/<br\/?>$/,"")),this.options.replaceDivWithP&&((t=c("<div/>").addClass("temp").append(e)).children("div").each(function(){var e,t=c(this),n=t.find("p");if(0===n.length){if(n=c("<p></p>"),0<this.attributes.length)for(e=0;e<this.attributes.length;e+=1)n.attr(this.attributes[e].name,t.attr(this.attributes[e].name));n.append(t.html()),t.replaceWith(n)}}),e=t.html()),(t=c.Event("change")).source=this,c(this.original).val(e).trigger(t),this.options.events&&this.options.events.save&&this.options.events.save.call(this)),this},this.setContent=function(e){return this.editorDoc.body.innerHTML=e,this.saveContent(),this},this.triggerControl=function(e,t){var n=t.command||e,i=t.arguments||[];if(t.exec)t.exec.apply(this,t.callbackArguments);else{this.ui.focus(),this.ui.withoutCss();try{this.editorDoc.execCommand(n,!1,i)}catch(e){o.error(e)}}this.options.autoSave&&this.autoSaveFunction()},this.triggerControlCallback=function(e){c(s).trigger("trigger-"+e+".wysiwyg",[this])},this.ui.withoutCss=function(){var t=this.self;if(c.browser.mozilla)try{t.editorDoc.execCommand("styleWithCSS",!1,!1)}catch(e){try{t.editorDoc.execCommand("useCSS",!1,!0)}catch(e){}}return t},this.wrapInitialContent=function(){return this.initialContent}}var c,e,t,o,n;c=s.jQuery,o=s.console||{log:c.noop,error:function(e){c.error(e)}},n=c.fn.prop!==u&&c.fn.removeProp!==u,c.browser===u&&(c.browser=(t={},(e=function(e){e=e.toLowerCase();e=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:e[1]||"",version:e[2]||"0"}}(navigator.userAgent)).browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),t)),c.wysiwyg={messages:{noObject:"Something goes wrong, check object"},addControl:function(e,n,i){return e.each(function(){var e=c(this).data("wysiwyg"),t={};if(!e)return this;t[n]=c.extend(!0,{visible:!0,custom:!0},i),c.extend(!0,e.options.controls,t),t=c(e.options.toolbarHtml),e.ui.toolbar.replaceWith(t),e.ui.toolbar=t,e.ui.appendControls()})},clear:function(e){return e.each(function(){var e=c(this).data("wysiwyg");if(!e)return this;e.setContent("")})},resize:function(e){return e.each(function(){var e=c(this).data("wysiwyg");if(!e)return this;e.ui.grow()})},console:o,destroy:function(e){return e.each(function(){var e=c(this).data("wysiwyg");if(!e)return this;e.destroy()})},document:function(e){e=e.data("wysiwyg");return e?c(e.editorDoc):u},focus:function(e){var t=e.data("wysiwyg");return t?(t.ui.focus(),e):u},getContent:function(e){e=e.data("wysiwyg");return e?e.getContent():u},getSelection:function(e){e=e.data("wysiwyg");return e?e.getRangeText():u},init:function(e,n){return e.each(function(){var e,t=c.extend(!0,{},n);"textarea"!==this.nodeName.toLowerCase()||c(this).data("wysiwyg")||((e=new i).init(this,t),c.data(this,"wysiwyg",e),c(e.editorDoc).trigger("afterInit.wysiwyg"))})},insertHtml:function(e,t){return e.each(function(){var e=c(this).data("wysiwyg");if(!e)return this;e.insertHtml(t)})},plugin:{listeners:{},bind:function(r){var o=this;c.each(this.listeners,function(e,t){for(var n,i=0;i<t.length;i+=1)n=o.parseName(t[i]),c(r.editorDoc).bind(e+".wysiwyg",{plugin:n},function(e){var t=e.data.plugin.name,e=e.data.plugin.method;c.wysiwyg[t][e].apply(c.wysiwyg[t],[r])})})},exists:function(e){return"string"==typeof e&&(e=this.parseName(e),!(!c.wysiwyg[e.name]||!c.wysiwyg[e.name][e.method]))},listen:function(e,t){var n=this.parseName(t);return!(!c.wysiwyg[n.name]||!c.wysiwyg[n.name][n.method]||(this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t),0))},parseName:function(e){var t;return"string"==typeof e&&!((t=e.split(".")).length<2)&&{name:t[0],method:t[1]}},register:function(t){return t.name||o.error("Plugin name missing"),c.each(c.wysiwyg,function(e){e===t.name&&o.error("Plugin with name '"+t.name+"' was already registered")}),c.wysiwyg[t.name]=t,!0}},quirk:{quirks:[],assert:function(e,t){if(!e)throw new Error(t)},register:function(e){this.assert("function"==typeof e.init,"quirk.init must be a function"),this.quirks.push(e)}},removeFormat:function(e){return e.each(function(){var e=c(this).data("wysiwyg");if(!e)return this;e.removeFormat()})},save:function(e){return e.each(function(){var e=c(this).data("wysiwyg");if(!e)return this;e.saveContent()})},selectAll:function(e){var t=e.data("wysiwyg");if(!t)return this;e=t.editorDoc.body,s.getSelection?t.getInternalSelection().selectAllChildren(e):((t=e.createTextRange()).moveToElementText(e),t.select())},setContent:function(e,t){return e.each(function(){var e=c(this).data("wysiwyg");if(!e)return this;e.setContent(t)})},triggerControl:function(e,t){return e.each(function(){var e=c(this).data("wysiwyg");if(!e)return this;e.controls[t]||o.error("Control '"+t+"' not exists"),e.triggerControl.apply(e,[t,e.controls[t]])})},support:{prop:n},utils:{extraSafeEntities:[["<",">","'",'"'," "],[32]],encodeEntities:function(e){var n,i=this,r=[];return 0===this.extraSafeEntities[1].length&&c.each(this.extraSafeEntities[0],function(e,t){i.extraSafeEntities[1].push(t.charCodeAt(0))}),n=e.split(""),c.each(n,function(e){var t=n[e].charCodeAt(0);c.inArray(t,i.extraSafeEntities[1])&&(t<65||127<t||90<t&&t<97)?r.push("&#"+t+";"):r.push(n[e])}),r.join("")}}},c.wysiwyg.dialog=function(t,e){var n=t&&t.options&&t.options.dialog?t.options.dialog:e.theme||"default",i=new c.wysiwyg.dialog.createDialog(n),r=this,o=c(r);return this.options={modal:!0,draggable:!0,title:"Title",content:"Content",width:"auto",height:"auto",zIndex:2e3,open:!1,close:!1},this.isOpen=!1,c.extend(this.options,e),this.object=i,this.open=function(){this.isOpen=!0,i.init.apply(r,[]);var e=i.show.apply(r,[]);o.trigger("afterOpen",[e])},this.show=function(){this.isOpen=!0,o.trigger("beforeShow"),o.trigger("afterShow")},this.hide=function(){this.isOpen=!1,o.trigger("beforeHide");var e=i.hide.apply(r,[]);o.trigger("afterHide",[e])},this.close=function(){this.isOpen=!1;var e=i.hide.apply(r,[]);o.trigger("beforeClose",[e]),i.destroy.apply(r,[]),o.trigger("afterClose",[e]),t.ui.focus()},this.options.open&&o.bind("afterOpen",this.options.open),this.options.close&&o.bind("afterClose",this.options.close),this},c.extend(!0,c.wysiwyg.dialog,{_themes:{},_theme:"",register:function(e,t){c.wysiwyg.dialog._themes[e]=t},deregister:function(e){delete c.wysiwyg.dialog._themes[e]},createDialog:function(e){return new c.wysiwyg.dialog._themes[e]},getDimensions:function(){var e=l.body.scrollWidth,t=l.body.scrollHeight;return[e,t=c.browser.opera?Math.max(c(l).height(),c(s).height(),l.documentElement.clientHeight):t]}}),c(function(){c.ui&&c.wysiwyg.dialog.register("jqueryui",function(){var n=this;this._$dialog=null,this.init=function(){var e=this.options.content;"object"==typeof e&&("function"==typeof e.html?e=e.html():"function"==typeof e.toString&&(e=e.toString())),n._$dialog=c("<div></div>").attr("title",this.options.title).html(e);var t="auto"===this.options.height?300:this.options.height,e="auto"===this.options.width?450:this.options.width;return n._$dialog.dialog({modal:this.options.modal,draggable:this.options.draggable,height:t,width:e}),n._$dialog},this.show=function(){return n._$dialog.dialog("open"),n._$dialog},this.hide=function(){return n._$dialog.dialog("close"),n._$dialog},this.destroy=function(){return n._$dialog.dialog("destroy"),n._$dialog}}),c.wysiwyg.dialog.register("default",function(){var r=this;this._$dialog=null,this.init=function(){var e=this,t=this.options.content;"object"==typeof t&&("function"==typeof t.html?t=t.html():"function"==typeof t.toString&&(t=t.toString())),r._$dialog=c('<div class="wysiwyg-dialog"></div>').css({"z-index":this.options.zIndex});var n=c('<div class="wysiwyg-dialog-topbar"><div class="wysiwyg-dialog-close-wrapper"></div><div class="wysiwyg-dialog-title">'+this.options.title+"</div></div>"),i=c('<a href="#" class="wysiwyg-dialog-close-button">X</a>');i.click(function(){e.close()}),n.find(".wysiwyg-dialog-close-wrapper").prepend(i);t=c('<div class="wysiwyg-dialog-content">'+t+"</div>");r._$dialog.append(n).append(t);n="auto"===this.options.height?300:this.options.height,t="auto"===this.options.width?450:this.options.width;return r._$dialog.hide().css({width:t,height:n,left:(c(s).width()-t)/2,top:(c(s).height()-n)/3}),c("body").append(r._$dialog),r._$dialog},this.show=function(){var e,o;return this.options.modal&&(e=c.wysiwyg.dialog.getDimensions(),e=c('<div class="wysiwyg-dialog-modal-div"></div>').css({width:e[0],height:e[1]}),r._$dialog.wrap(e)),this.options.draggable&&(o=!1,r._$dialog.find("div.wysiwyg-dialog-topbar").bind("mousedown",function(e){e.preventDefault(),c(this).css({cursor:"move"});var t=c(this),n=c(this).parents(".wysiwyg-dialog"),i=e.pageX-parseInt(n.css("left"),10),r=e.pageY-parseInt(n.css("top"),10);o=!0,c(this).css({cursor:"move"}),c(l).bind("mousemove",function(e){e.preventDefault(),o&&n.css({top:e.pageY-r,left:e.pageX-i})}).bind("mouseup",function(e){e.preventDefault(),o=!1,t.css({cursor:"auto"}),c(l).unbind("mousemove").unbind("mouseup")})})),r._$dialog.show(),r._$dialog},this.hide=function(){return r._$dialog.hide(),r._$dialog},this.destroy=function(){return this.options.modal&&r._$dialog.unwrap(),this.options.draggable&&r._$dialog.find("div.wysiwyg-dialog-topbar").unbind("mousedown"),r._$dialog.remove(),r._$dialog}})}),c.fn.wysiwyg=function(e){var t,n=arguments;return void 0!==c.wysiwyg[e]?(n=Array.prototype.concat.call([n[0]],[this],Array.prototype.slice.call(n,1)),c.wysiwyg[e].apply(c.wysiwyg,Array.prototype.slice.call(n,1))):"object"!=typeof e&&e?c.wysiwyg.plugin.exists(e)?(t=c.wysiwyg.plugin.parseName(e),n=Array.prototype.concat.call([n[0]],[this],Array.prototype.slice.call(n,1)),c.wysiwyg[t.name][t.method].apply(c.wysiwyg[t.name],Array.prototype.slice.call(n,1))):void o.error("Method '"+e+"' does not exist on jQuery.wysiwyg.\nTry to include some extra controls or plugins"):(Array.prototype.unshift.call(n,this),c.wysiwyg.init.apply(c.wysiwyg,n))},c.fn.getWysiwyg=function(){return this.data("wysiwyg")}}(window,document),function(J){J.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),J.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/popup.html","uib/template/datepicker/year.html","uib/template/modal/backdrop.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),J.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(u,c,p,e){var d=e.has("$animateCss")?e.get("$animateCss"):null;return{link:function(t,n,e){var i=p(e.expanding),r=p(e.expanded),o=p(e.collapsing),a=p(e.collapsed);function s(){n.removeClass("collapsing").addClass("collapse").css({height:"auto"}),r(t)}function l(){n.css({height:"0"}),n.removeClass("collapsing").addClass("collapse"),a(t)}t.$eval(e.uibCollapse)||n.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css({height:"auto"}),t.$watch(e.uibCollapse,function(e){e?function(){if(!n.hasClass("collapse")&&!n.hasClass("in"))return l();c.resolve(o(t)).then(function(){n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),d?d(n,{removeClass:"in",to:{height:"0"}}).start().finally(l):u.removeClass(n,"in",{to:{height:"0"}}).then(l)})}():n.hasClass("collapse")&&n.hasClass("in")||c.resolve(i(t)).then(function(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),d?d(n,{addClass:"in",easing:"ease",to:{height:n[0].scrollHeight+"px"}}).start().finally(s):u.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(s)})})}}}]),J.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,n,i){this.groups=[],this.closeOthers=function(t){(J.isDefined(n.closeOthers)?e.$eval(n.closeOthers):i.closeOthers)&&J.forEach(this.groups,function(e){e!==t&&(e.isOpen=!1)})},this.addGroup=function(t){var n=this;this.groups.push(t),t.$on("$destroy",function(e){n.removeGroup(t)})},this.removeGroup=function(e){e=this.groups.indexOf(e);-1!==e&&this.groups.splice(e,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(t,n,e,i){i.addGroup(t),t.openClass=e.openClass||"panel-open",t.panelClass=e.panelClass||"panel-default",t.$watch("isOpen",function(e){n.toggleClass(t.openClass,!!e),e&&i.closeOthers(t)}),t.toggleOpen=function(e){t.isDisabled||e&&32!==e.which||(t.isOpen=!t.isOpen)};e="accordiongroup-"+t.$id+"-"+Math.floor(1e4*Math.random());t.headingId=e+"-tab",t.panelId=e+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,i,r){i.setHeading(r(e,J.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(e,n,t,i){e.$watch(function(){return i[t.uibAccordionTransclude]},function(e){var t;e&&((t=J.element(n[0].querySelector("[uib-accordion-header]"))).html(""),t.append(e))})}}}),J.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(e,t,n,i){e.closeable=!!t.close;t=J.isDefined(t.dismissOnTimeout)?n(t.dismissOnTimeout)(e.$parent):null;t&&i(function(){e.close()},parseInt(t,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}),J.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(a){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,n,i,e){var r=e[0],o=e[1],e=a(i.uibUncheckable);n.find("input").css({display:"none"}),o.$render=function(){n.toggleClass(r.activeClass,J.equals(o.$modelValue,t.$eval(i.uibBtnRadio)))},n.on(r.toggleEvent,function(){var e;i.disabled||((e=n.hasClass(r.activeClass))&&!J.isDefined(i.uncheckable)||t.$apply(function(){o.$setViewValue(e?null:t.$eval(i.uibBtnRadio)),o.$render()}))}),i.uibUncheckable&&t.$watch(e,function(e){i.$set("uncheckable",e?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,e,t,i){var r=i[0],o=i[1];function a(){return s(t.btnCheckboxTrue,!0)}function s(e,t){return J.isDefined(e)?n.$eval(e):t}e.find("input").css({display:"none"}),o.$render=function(){e.toggleClass(r.activeClass,J.equals(o.$modelValue,a()))},e.on(r.toggleEvent,function(){t.disabled||n.$apply(function(){o.$setViewValue(e.hasClass(r.activeClass)?s(t.btnCheckboxFalse,!1):a()),o.$render()})})}}}),J.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(r,o,t,e,a){var n,i,s=this,l=s.slides=r.slides=[],u="uib-slideDirection",c=r.active,p=[],d=!1;function f(){for(;p.length;)p.shift()}function h(e){for(var t=0;t<l.length;t++)l[t].slide.active=t===e}function g(e){for(var t=0;t<l.length;t++)if(l[t].slide===e)return t}function m(){n&&(t.cancel(n),n=null)}function v(){m();var e=+r.interval;!isNaN(e)&&0<e&&(n=t(b,e))}function b(){var e=+r.interval;i&&!isNaN(e)&&0<e&&l.length?r.next():r.pause()}s.addSlide=function(e,t){l.push({slide:e,element:t}),l.sort(function(e,t){return+e.slide.index>+t.slide.index}),e.index!==r.active&&(1!==l.length||J.isNumber(r.active))||(r.$currentTransition&&(r.$currentTransition=null),c=e.index,r.active=e.index,h(c),s.select(l[g(e)]),1===l.length&&r.play())},s.getCurrentIndex=function(){for(var e=0;e<l.length;e++)if(l[e].slide.index===c)return e},s.next=r.next=function(){var e=(s.getCurrentIndex()+1)%l.length;if(0!=e||!r.noWrap())return s.select(l[e],"next");r.pause()},s.prev=r.prev=function(){var e=s.getCurrentIndex()-1<0?l.length-1:s.getCurrentIndex()-1;if(!r.noWrap()||e!=l.length-1)return s.select(l[e],"prev");r.pause()},s.removeSlide=function(e){var t=g(e),e=p.indexOf(l[t]);-1!==e&&p.splice(e,1),l.splice(t,1),0<l.length&&c===t?t>=l.length?(c=l.length-1,h(r.active=c),s.select(l[l.length-1])):(c=t,h(r.active=c),s.select(l[t])):t<c&&(c--,r.active=c),0===l.length&&(c=null,r.active=null,f())},s.select=r.select=function(e,t){var n=g(e.slide);void 0===t&&(t=n>s.getCurrentIndex()?"next":"prev"),e.slide.index===c||r.$currentTransition?e&&e.slide.index!==c&&r.$currentTransition&&p.push(l[n]):function i(e,t,n){if(d)return;J.extend(e,{direction:n});J.extend(l[c].slide||{},{direction:n});a.enabled(o)&&!r.$currentTransition&&l[t].element&&1<s.slides.length&&(l[t].element.data(u,e.direction),n=s.getCurrentIndex(),J.isNumber(n)&&l[n].element&&l[n].element.data(u,e.direction),r.$currentTransition=!0,a.on("addClass",l[t].element,function(e,t){var n;"close"===t&&(r.$currentTransition=null,a.off("addClass",e),p.length&&(n=p.pop().slide,t=n.index,e=t>s.getCurrentIndex()?"next":"prev",f(),i(n,t,e)))}));r.active=e.index;c=e.index;h(t);v()}(e.slide,n,t)},r.indexOfSlide=function(e){return+e.slide.index},r.isActive=function(e){return r.active===e.slide.index},r.pause=function(){r.noPause||(i=!1,m())},r.play=function(){i||(i=!0,v())},r.$on("$destroy",function(){d=!0,m()}),r.$watch("noTransition",function(e){a.enabled(o,!e)}),r.$watch("interval",v),r.$watchCollection("slides",function(e){e.length||(r.$currentTransition=null,f())}),r.$watch("active",function(e){if(J.isNumber(e)&&c!==e){for(var t=0;t<l.length;t++)if(l[t].slide.index===e){e=t;break}l[e]&&(h(c=e),s.select(l[e]))}})}]).directive("uibCarousel",function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",function(){return{require:"^uibCarousel",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(e,t,n,i){i.addSlide(e,t),e.$on("$destroy",function(){i.removeSlide(e)})}}}).animation(".item",["$animateCss",function(o){var a="uib-slideDirection";function s(e,t,n){e.removeClass(t),n&&n()}return{beforeAddClass:function(e,t,n){if("active"===t){var i=e.data(a),r="next"===i?"left":"right",t=s.bind(this,e,r+" "+i,n);return e.addClass(i),o(e,{addClass:r}).start().done(t),function(){}}n()},beforeRemoveClass:function(e,t,n){if("active"===t){var i="next"===e.data(a)?"left":"right",t=s.bind(this,e,i,n);return o(e,{addClass:i}).start().done(t),function(){}}n()}}}]),J.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter",function(d,f,n,i){var h,l,g=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function m(r,o){var a=[],s=r.split(""),e=r.indexOf("'");if(-1<e){var t=!1;r=r.split("");for(var n=e;n<r.length;n++)t?("'"===r[n]&&(n+1<r.length&&"'"===r[n+1]?(r[n+1]="$",s[n+1]=""):(s[n]="",t=!1)),r[n]="$"):"'"===r[n]&&(r[n]="$",t=!(s[n]=""));r=r.join("")}return J.forEach(l,function(e){var t=r.indexOf(e.key);if(-1<t){r=r.split(""),s[t]="("+e.regex+")",r[t]="$";for(var n=t+1,i=t+e.key.length;n<i;n++)s[n]="",r[n]="$";r=r.join(""),a.push({index:t,key:e.key,apply:e[o],matcher:e.regex})}}),{regex:new RegExp("^"+s.join("")+"$"),map:i(a,"index")}}function r(e){return parseInt(e,10)}function o(e,t){e=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(e)?t:e}function a(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function s(e,t,n){n=n?-1:1;t=o(t,e.getTimezoneOffset());return a(e,n*(t-e.getTimezoneOffset()))}this.init=function(){h=f.id,this.parsers={},this.formatters={},l=[{key:"yyyy",regex:"\\d{4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(e){this.year=+e+2e3},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){var t=e.getMonth();return/^[0-9]$/.test(t)?n(e,"MM"):n(e,"M")}},{key:"MMMM",regex:f.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=f.DATETIME_FORMATS.MONTH.indexOf(e)},formatter:function(e){return n(e,"MMMM")}},{key:"MMM",regex:f.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=f.DATETIME_FORMATS.SHORTMONTH.indexOf(e)},formatter:function(e){return n(e,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){var t=e.getDate();return/^[1-9]$/.test(t)?n(e,"dd"):n(e,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"d")}},{key:"EEEE",regex:f.DATETIME_FORMATS.DAY.join("|"),formatter:function(e){return n(e,"EEEE")}},{key:"EEE",regex:f.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(e){return n(e,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e},formatter:function(e){return n(e,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"s")}},{key:"a",regex:f.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)},formatter:function(e){return n(e,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(e){var t=e.match(/([+-])(\d{2})(\d{2})/),n=t[1],e=t[2],t=t[3];this.hours+=r(n+e),this.minutes+=r(n+t)},formatter:function(e){return n(e,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(e){return n(e,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(e){return n(e,"w")}},{key:"GGGG",regex:f.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(e){return n(e,"GGGG")}},{key:"GGG",regex:f.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GGG")}},{key:"GG",regex:f.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GG")}},{key:"G",regex:f.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"G")}}]},this.init(),this.filter=function(r,e){if(!J.isDate(r)||isNaN(r)||!e)return"";e=f.DATETIME_FORMATS[e]||e,f.id!==h&&this.init(),this.formatters[e]||(this.formatters[e]=m(e,"formatter"));var o=this.formatters[e].map,a=e;return o.reduce(function(e,t,n){var i=a.match(new RegExp("(.*)"+t.key));i&&J.isString(i[1])&&(e+=i[1],a=a.replace(i[1]+t.key,""));n=n===o.length-1?a:"";return t.apply?e+t.apply.call(null,r)+n:e+n},"")},this.parse=function(e,t,n){if(!J.isString(e)||!t)return e;t=(t=f.DATETIME_FORMATS[t]||t).replace(g,"\\$&"),f.id!==h&&this.init(),this.parsers[t]||(this.parsers[t]=m(t,"apply"));var i=this.parsers[t],t=i.regex,r=i.map,o=e.match(t),a=!1;if(o&&o.length){for(var s,l=J.isDate(n)&&!isNaN(n.getTime())?{year:n.getFullYear(),month:n.getMonth(),date:n.getDate(),hours:n.getHours(),minutes:n.getMinutes(),seconds:n.getSeconds(),milliseconds:n.getMilliseconds()}:(n&&d.warn("dateparser:","baseDate is not a valid date"),{year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),u=1,c=o.length;u<c;u++){var p=r[u-1];"Z"===p.matcher&&(a=!0),p.apply&&p.apply.call(l,o[u])}e=a?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,t=a?Date.prototype.setUTCHours:Date.prototype.setHours;return function(e,t,n){if(n<1)return!1;if(1===t&&28<n)return 29===n&&(e%4==0&&e%100!=0||e%400==0);return 3!==t&&5!==t&&8!==t&&10!==t||n<31}(l.year,l.month,l.date)&&(!J.isDate(n)||isNaN(n.getTime())||a?(s=new Date(0),e.call(s,l.year,l.month,l.date),t.call(s,l.hours||0,l.minutes||0,l.seconds||0,l.milliseconds||0)):(s=new Date(n),e.call(s,l.year,l.month,l.date),t.call(s,l.hours,l.minutes,l.seconds,l.milliseconds))),s}},this.toTimezone=function(e,t){return e&&t?s(e,t):e},this.fromTimezone=function(e,t){return e&&t?s(e,t,!0):e},this.timezoneToOffset=o,this.addDateMinutes=a,this.convertTimezoneToLocal=s}]),J.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(u){var n=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,c=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(e,t){var i=[],a=[],s={},t=t.uibIsClass.match(n),l=t[2],r=t[1].split(",");return function(n,e,t){i.push(n),a.push({scope:n,element:e}),r.forEach(function(e,t){!function(e,t){var n=e.match(c),i=t.$eval(n[1]),r=n[2],o=s[e];o||(n=function(t){var n=null;a.some(function(e){if(e.scope.$eval(l)===t)return n=e,!0}),o.lastActivated!==n&&(o.lastActivated&&u.removeClass(o.lastActivated.element,i),n&&u.addClass(n.element,i),o.lastActivated=n)},s[e]=o={lastActivated:null,scope:t,watchFn:n,compareWithExp:r,watcher:t.$watch(r,n)});o.watchFn(t.$eval(r))}(e,n)}),n.$on("$destroy",o)};function o(e){var t,n=e.targetScope,e=i.indexOf(n);i.splice(e,1),a.splice(e,1),i.length?(t=i[0],J.forEach(s,function(e){e.scope===n&&(e.watcher=t.$watch(e.compareWithExp,e.watchFn),e.scope=t)})):s={}}}}}]),J.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(s,u){var t,l={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},c={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/};return{getRawNode:function(e){return!e.nodeName&&e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(e){var t,n=(e=this.getRawNode(e)).offsetParent||s[0].documentElement;for(;n&&n!==s[0].documentElement&&(t=n,"static"===(u.getComputedStyle(t).position||"static"));)n=n.offsetParent;return n||s[0].documentElement},scrollbarWidth:function(){var e;return J.isUndefined(t)&&(e=J.element('<div class="uib-position-scrollbar-measure"></div>'),s.find("body").append(e),t=e[0].offsetWidth-e[0].clientWidth,t=isFinite(t)?t:0,e.remove()),t},isScrollable:function(e,t){e=this.getRawNode(e);t=t?l.hidden:l.normal,e=u.getComputedStyle(e);return t.test(e.overflow+e.overflowY+e.overflowX)},scrollParent:function(e,t){e=this.getRawNode(e);var n=t?l.hidden:l.normal,i=s[0].documentElement,t=u.getComputedStyle(e),r="absolute"===t.position,o=e.parentElement||i;if(o===i||"fixed"===t.position)return i;for(;o.parentElement&&o!==i;){var a=u.getComputedStyle(o);if(!(r=r&&"static"!==a.position?!1:r)&&n.test(a.overflow+a.overflowY+a.overflowX))break;o=o.parentElement}return o},position:function(e,t){e=this.getRawNode(e);var n=this.offset(e);t&&(i=u.getComputedStyle(e),n.top-=this.parseStyle(i.marginTop),n.left-=this.parseStyle(i.marginLeft));var t=this.offsetParent(e),i={top:0,left:0};return t!==s[0].documentElement&&((i=this.offset(t)).top+=t.clientTop-t.scrollTop,i.left+=t.clientLeft-t.scrollLeft),{width:Math.round(J.isNumber(n.width)?n.width:e.offsetWidth),height:Math.round(J.isNumber(n.height)?n.height:e.offsetHeight),top:Math.round(n.top-i.top),left:Math.round(n.left-i.left)}},offset:function(e){var t=(e=this.getRawNode(e)).getBoundingClientRect();return{width:Math.round(J.isNumber(t.width)?t.width:e.offsetWidth),height:Math.round(J.isNumber(t.height)?t.height:e.offsetHeight),top:Math.round(t.top+(u.pageYOffset||s[0].documentElement.scrollTop)),left:Math.round(t.left+(u.pageXOffset||s[0].documentElement.scrollLeft))}},viewportOffset:function(e,t,n){n=!1!==n;var i=(e=this.getRawNode(e)).getBoundingClientRect(),r={top:0,left:0,bottom:0,right:0},t=t?s[0].documentElement:this.scrollParent(e),e=t.getBoundingClientRect();return r.top=e.top+t.clientTop,r.left=e.left+t.clientLeft,t===s[0].documentElement&&(r.top+=u.pageYOffset,r.left+=u.pageXOffset),r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,n&&(t=u.getComputedStyle(t),r.top+=this.parseStyle(t.paddingTop),r.bottom-=this.parseStyle(t.paddingBottom),r.left+=this.parseStyle(t.paddingLeft),r.right-=this.parseStyle(t.paddingRight)),{top:Math.round(i.top-r.top),bottom:Math.round(r.bottom-i.bottom),left:Math.round(i.left-r.left),right:Math.round(r.right-i.right)}},parsePlacement:function(e){var t=c.auto.test(e);return(e=(e=t?e.replace(c.auto,""):e).split("-"))[0]=e[0]||"top",c.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",c.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,t,n,i){e=this.getRawNode(e),t=this.getRawNode(t);var r=J.isDefined(t.offsetWidth)?t.offsetWidth:t.prop("offsetWidth"),o=J.isDefined(t.offsetHeight)?t.offsetHeight:t.prop("offsetHeight");n=this.parsePlacement(n);var a,s=i?this.offset(e):this.position(e),l={top:0,left:0,placement:""};switch(n[2]&&(a=this.viewportOffset(e),i=u.getComputedStyle(t),e=r+Math.round(Math.abs(this.parseStyle(i.marginLeft)+this.parseStyle(i.marginRight))),t=o+Math.round(Math.abs(this.parseStyle(i.marginTop)+this.parseStyle(i.marginBottom))),n[0]="top"===n[0]&&t>a.top&&t<=a.bottom?"bottom":"bottom"===n[0]&&t>a.bottom&&t<=a.top?"top":"left"===n[0]&&e>a.left&&e<=a.right?"right":"right"===n[0]&&e>a.right&&e<=a.left?"left":n[0],n[1]="top"===n[1]&&t-s.height>a.bottom&&t-s.height<=a.top?"bottom":"bottom"===n[1]&&t-s.height>a.top&&t-s.height<=a.bottom?"top":"left"===n[1]&&e-s.width>a.right&&e-s.width<=a.left?"right":"right"===n[1]&&e-s.width>a.left&&e-s.width<=a.right?"left":n[1],"center"===n[1]&&(c.vertical.test(n[0])?(i=s.width/2-r/2,a.left+i<0&&e-s.width<=a.right?n[1]="left":a.right+i<0&&e-s.width<=a.left&&(n[1]="right")):(e=s.height/2-t/2,a.top+e<0&&t-s.height<=a.bottom?n[1]="top":a.bottom+e<0&&t-s.height<=a.top&&(n[1]="bottom")))),n[0]){case"top":l.top=s.top-o;break;case"bottom":l.top=s.top+s.height;break;case"left":l.left=s.left-r;break;case"right":l.left=s.left+s.width}switch(n[1]){case"top":l.top=s.top;break;case"bottom":l.top=s.top+s.height-o;break;case"left":l.left=s.left;break;case"right":l.left=s.left+s.width-r;break;case"center":c.vertical.test(n[0])?l.left=s.left+s.width/2-r/2:l.top=s.top+s.height/2-o/2}return l.top=Math.round(l.top),l.left=Math.round(l.left),l.placement="center"===n[1]?n[0]:n[0]+"-"+n[1],l},positionArrow:function(e,t){var n=(e=this.getRawNode(e)).querySelector(".tooltip-inner, .popover-inner");if(n){var i=J.element(n).hasClass("tooltip-inner"),r=i?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(r){var o={top:"",bottom:"",left:"",right:""};if("center"!==(t=this.parsePlacement(t))[1]){var a="border-"+t[0]+"-width",s=u.getComputedStyle(r)[a],a="border-";c.vertical.test(t[0])?a+=t[0]+"-"+t[1]:a+=t[1]+"-"+t[0],a+="-radius";a=u.getComputedStyle(i?n:e)[a];switch(t[0]){case"top":o.bottom=i?"0":"-"+s;break;case"bottom":o.top=i?"0":"-"+s;break;case"left":o.right=i?"0":"-"+s;break;case"right":o.left=i?"0":"-"+s}o[t[1]]=a,J.element(r).css(o)}else J.element(r).css(o)}}}}}]),J.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.position"]).value("$datepickerSuppressError",!1).value("uibDatepickerAttributeWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerSuppressError","uibDatepickerAttributeWarning","uibDateParser",function(i,n,e,r,o,a,s,l,t,u,c){var p,d=this,f={$setViewValue:J.noop},h={},g=[],m=!!n.datepickerOptions;this.modes=["day","month","year"],m?["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","initDate","maxDate","maxMode","minDate","minMode","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(t){switch(t){case"customClass":case"dateDisabled":i[t]=i.datepickerOptions[t]||J.noop;break;case"datepickerMode":i.datepickerMode=(J.isDefined(i.datepickerOptions.datepickerMode)?i.datepickerOptions:l).datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":d[t]=J.isDefined(i.datepickerOptions[t])?r(i.datepickerOptions[t])(i.$parent):l[t];break;case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":d[t]=(J.isDefined(i.datepickerOptions[t])?i.datepickerOptions:l)[t];break;case"startingDay":J.isDefined(i.datepickerOptions.startingDay)?d.startingDay=i.datepickerOptions.startingDay:J.isNumber(l.startingDay)?d.startingDay=l.startingDay:d.startingDay=(o.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":i.datepickerOptions[t]?i.$watch(function(){return i.datepickerOptions[t]},function(e){e?J.isDate(e)?d[t]=c.fromTimezone(new Date(e),h.timezone):d[t]=new Date(s(e,"medium")):d[t]=null,d.refreshView()}):d[t]=l[t]?c.fromTimezone(new Date(l[t]),h.timezone):null;break;case"maxMode":case"minMode":i.datepickerOptions[t]?i.$watch(function(){return i.datepickerOptions[t]},function(e){d[t]=i[t]=J.isDefined(e)?e:datepickerOptions[t],("minMode"===t&&d.modes.indexOf(i.datepickerOptions.datepickerMode)<d.modes.indexOf(d[t])||"maxMode"===t&&d.modes.indexOf(i.datepickerOptions.datepickerMode)>d.modes.indexOf(d[t]))&&(i.datepickerMode=d[t],i.datepickerOptions.datepickerMode=d[t])}):d[t]=i[t]=l[t]||null;break;case"initDate":i.datepickerOptions.initDate?(d.activeDate=c.fromTimezone(i.datepickerOptions.initDate,h.timezone)||new Date,i.$watch(function(){return i.datepickerOptions.initDate},function(e){e&&(f.$isEmpty(f.$modelValue)||f.$invalid)&&(d.activeDate=c.fromTimezone(e,h.timezone),d.refreshView())})):d.activeDate=new Date}}):(J.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle"],function(e){d[e]=J.isDefined(n[e])?r(n[e])(i.$parent):l[e],J.isDefined(n[e])&&u&&a.warn("uib-datepicker "+e+" attribute usage is deprecated, use datepicker-options attribute instead")}),J.forEach(["showWeeks","yearRows","yearColumns","shortcutPropagation"],function(e){d[e]=J.isDefined(n[e])?i.$parent.$eval(n[e]):l[e],J.isDefined(n[e])&&u&&a.warn("uib-datepicker "+e+" attribute usage is deprecated, use datepicker-options attribute instead")}),J.forEach(["dateDisabled","customClass"],function(e){J.isDefined(n[e])&&u&&a.warn("uib-datepicker "+e+" attribute usage is deprecated, use datepicker-options attribute instead")}),J.isDefined(n.startingDay)?(u&&a.warn("uib-datepicker startingDay attribute usage is deprecated, use datepicker-options attribute instead"),d.startingDay=i.$parent.$eval(n.startingDay)):J.isNumber(l.startingDay)?d.startingDay=l.startingDay:d.startingDay=(o.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7,J.forEach(["minDate","maxDate"],function(t){n[t]?(u&&a.warn("uib-datepicker "+t+" attribute usage is deprecated, use datepicker-options attribute instead"),g.push(i.$parent.$watch(n[t],function(e){e?J.isDate(e)?d[t]=c.fromTimezone(new Date(e),h.timezone):d[t]=new Date(s(e,"medium")):d[t]=null,d.refreshView()}))):d[t]=l[t]?c.fromTimezone(new Date(l[t]),h.timezone):null}),J.forEach(["minMode","maxMode"],function(t){n[t]?(u&&a.warn("uib-datepicker "+t+" attribute usage is deprecated, use datepicker-options attribute instead"),g.push(i.$parent.$watch(n[t],function(e){d[t]=i[t]=J.isDefined(e)?e:n[t],("minMode"===t&&d.modes.indexOf(i.datepickerMode)<d.modes.indexOf(d[t])||"maxMode"===t&&d.modes.indexOf(i.datepickerMode)>d.modes.indexOf(d[t]))&&(i.datepickerMode=d[t])}))):d[t]=i[t]=l[t]||null}),J.isDefined(n.initDate)?(u&&a.warn("uib-datepicker initDate attribute usage is deprecated, use datepicker-options attribute instead"),p=c.fromTimezone(i.$parent.$eval(n.initDate),h.timezone),this.activeDate=isNaN(p)?new Date:p,g.push(i.$parent.$watch(n.initDate,function(e){e&&(f.$isEmpty(f.$modelValue)||f.$invalid)&&(e=c.fromTimezone(e,h.timezone),d.activeDate=isNaN(e)?new Date:e,d.refreshView())}))):this.activeDate=new Date,n.datepickerMode&&u&&a.warn("uib-datepicker datepickerMode attribute usage is deprecated, use datepicker-options attribute instead"),i.datepickerMode=i.datepickerMode||l.datepickerMode),i.uniqueId="datepicker-"+i.$id+"-"+Math.floor(1e4*Math.random()),i.disabled=J.isDefined(n.disabled)||!1,J.isDefined(n.ngDisabled)&&g.push(i.$parent.$watch(n.ngDisabled,function(e){i.disabled=e,d.refreshView()})),i.isActive=function(e){return 0===d.compare(e.date,d.activeDate)&&(i.activeDateId=e.uid,!0)},this.init=function(e){h=(f=e).$options||l.ngModelOptions,this.activeDate=f.$modelValue||new Date,f.$render=function(){d.render()}},this.render=function(){var e;f.$viewValue&&(e=new Date(f.$viewValue),!isNaN(e)?this.activeDate=c.fromTimezone(e,h.timezone):t||a.error('Datepicker directive: "ng-model" value must be a Date object')),this.refreshView()},this.refreshView=function(){var e;this.element&&(i.selectedDt=null,this._refreshView(),i.activeDt&&(i.activeDateId=i.activeDt.uid),e=f.$viewValue?new Date(f.$viewValue):null,e=c.fromTimezone(e,h.timezone),f.$setValidity("dateDisabled",!e||this.element&&!this.isDisabled(e)))},this.createDateObject=function(e,t){var n=f.$viewValue?new Date(f.$viewValue):null,n=c.fromTimezone(n,h.timezone),t={date:e,label:c.filter(e,t),selected:n&&0===this.compare(e,n),disabled:this.isDisabled(e),current:0===this.compare(e,new Date),customClass:this.customClass(e)||null};return n&&0===this.compare(e,n)&&(i.selectedDt=t),d.activeDate&&0===this.compare(t.date,d.activeDate)&&(i.activeDt=t),t},this.isDisabled=function(e){return i.disabled||this.minDate&&this.compare(e,this.minDate)<0||this.maxDate&&0<this.compare(e,this.maxDate)||i.dateDisabled&&i.dateDisabled({date:e,mode:i.datepickerMode})},this.customClass=function(e){return i.customClass({date:e,mode:i.datepickerMode})},this.split=function(e,t){for(var n=[];0<e.length;)n.push(e.splice(0,t));return n},i.select=function(e){var t;i.datepickerMode===d.minMode?((t=f.$viewValue?c.fromTimezone(new Date(f.$viewValue),h.timezone):new Date(0,0,0,0,0,0,0)).setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t=c.toTimezone(t,h.timezone),f.$setViewValue(t),f.$render()):(d.activeDate=e,v(d.modes[d.modes.indexOf(i.datepickerMode)-1]),i.$emit("uib:datepicker.mode"))},i.move=function(e){var t=d.activeDate.getFullYear()+e*(d.step.years||0),e=d.activeDate.getMonth()+e*(d.step.months||0);d.activeDate.setFullYear(t,e,1),d.refreshView()},i.toggleMode=function(e){e=e||1,i.datepickerMode===d.maxMode&&1===e||i.datepickerMode===d.minMode&&-1===e||(v(d.modes[d.modes.indexOf(i.datepickerMode)+e]),i.$emit("uib:datepicker.mode"))},i.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};function v(e){i.datepickerMode=e,m&&(i.datepickerOptions.datepickerMode=e)}i.$on("uib:datepicker.focus",function(){d.element[0].focus()}),i.keydown=function(e){var t=i.keys[e.which];!t||e.shiftKey||e.altKey||i.disabled||(e.preventDefault(),d.shortcutPropagation||e.stopPropagation(),"enter"===t||"space"===t?d.isDisabled(d.activeDate)||i.select(d.activeDate):!e.ctrlKey||"up"!==t&&"down"!==t?(d.handleKeyDown(t,e),d.refreshView()):i.toggleMode("up"===t?1:-1))},i.$on("$destroy",function(){for(;g.length;)g.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(u,e,c){var n=[31,28,31,30,31,30,31,31,30,31,30,31];function r(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?n[t]:29}this.step={months:1},this.element=e,this.init=function(e){J.extend(e,this),u.showWeeks=e.showWeeks,e.refreshView()},this.getDates=function(e,t){for(var n,i=new Array(t),r=new Date(e),o=0;o<t;)n=new Date(r),i[o++]=n,r.setDate(r.getDate()+1);return i},this._refreshView=function(){this.activeDate=new Date(this.activeDate);var e=this.activeDate.getFullYear(),t=this.activeDate.getMonth(),n=new Date(this.activeDate);n.setFullYear(e,t,1);e=this.startingDay-n.getDay(),e=0<e?7-e:-e,n=new Date(n);0<e&&n.setDate(1-e);for(var i=this.getDates(n,42),r=0;r<42;r++)i[r]=J.extend(this.createDateObject(i[r],this.formatDay),{secondary:i[r].getMonth()!==t,uid:u.uniqueId+"-"+r});u.labels=new Array(7);for(var o=0;o<7;o++)u.labels[o]={abbr:c(i[o].date,this.formatDayHeader),full:c(i[o].date,"EEEE")};if(u.title=c(this.activeDate,this.formatDayTitle),u.rows=this.split(i,7),u.showWeeks){u.weekNumbers=[];for(var a=(11-this.startingDay)%7,s=u.rows.length,l=0;l<s;l++)u.weekNumbers.push(function(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));e=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((e-t)/864e5)/7)+1}(u.rows[l][a].date))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),i.setFullYear(t.getFullYear()),n-i},this.handleKeyDown=function(e,t){var n,i=this.activeDate.getDate();"left"===e?i-=1:"up"===e?i-=7:"right"===e?i+=1:"down"===e?i+=7:"pageup"===e||"pagedown"===e?(n=this.activeDate.getMonth()+("pageup"===e?-1:1),this.activeDate.setMonth(n,1),i=Math.min(r(this.activeDate.getFullYear(),this.activeDate.getMonth()),i)):"home"===e?i=1:"end"===e&&(i=r(this.activeDate.getFullYear(),this.activeDate.getMonth())),this.activeDate.setDate(i)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(r,e,o){this.step={years:1},this.element=e,this.init=function(e){J.extend(e,this),e.refreshView()},this._refreshView=function(){for(var e,t=new Array(12),n=this.activeDate.getFullYear(),i=0;i<12;i++)(e=new Date(this.activeDate)).setFullYear(n,i,1),t[i]=J.extend(this.createDateObject(e,this.formatMonth),{uid:r.uniqueId+"-"+i});r.title=o(this.activeDate,this.formatMonthTitle),r.rows=this.split(t,3)},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),i=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),i.setFullYear(t.getFullYear()),n-i},this.handleKeyDown=function(e,t){var n,i=this.activeDate.getMonth();"left"===e?i-=1:"up"===e?i-=3:"right"===e?i+=1:"down"===e?i+=3:"pageup"===e||"pagedown"===e?(n=this.activeDate.getFullYear()+("pageup"===e?-1:1),this.activeDate.setFullYear(n)):"home"===e?i=0:"end"===e&&(i=11),this.activeDate.setMonth(i)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(r,e,t){var o,a;function s(e){return parseInt((e-1)/a,10)*a+1}this.element=e,this.yearpickerInit=function(){o=this.yearColumns,a=this.yearRows*o,this.step={years:a}},this._refreshView=function(){for(var e,t=new Array(a),n=0,i=s(this.activeDate.getFullYear());n<a;n++)(e=new Date(this.activeDate)).setFullYear(i+n,0,1),t[n]=J.extend(this.createDateObject(e,this.formatYear),{uid:r.uniqueId+"-"+n});r.title=[t[0].label,t[a-1].label].join(" - "),r.rows=this.split(t,o),r.columns=o},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e,t){var n=this.activeDate.getFullYear();"left"===e?n-=1:"up"===e?n-=o:"right"===e?n+=1:"down"===e?n+=o:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*a:"home"===e?n=s(this.activeDate.getFullYear()):"end"===e&&(n=s(this.activeDate.getFullYear())+a-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerMode:"=?",datepickerOptions:"=?",dateDisabled:"&",customClass:"&",shortcutPropagation:"&?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,i){var r=i[0],i=i[1];r.init(i)}}}).directive("uibDaypicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],controller:"UibDaypickerController",link:function(e,t,n,i){var r=i[0];i[1].init(r)}}}).directive("uibMonthpicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],controller:"UibMonthpickerController",link:function(e,t,n,i){var r=i[0];i[1].init(r)}}}).directive("uibYearpicker",function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],controller:"UibYearpickerController",link:function(e,t,n,i){var r=i[0];J.extend(r,i[1]),r.yearpickerInit(),r.refreshView()}}}).value("uibDatepickerPopupAttributeWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepicker/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","uibDatepickerPopupAttributeWarning",function(r,i,o,t,a,s,n,l,u,c,p,d,f,h,g,m){var v,b,y,w,x,$,k,D,C,_,F,M,S,T={},O=!1,E=[];function I(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}function A(e){var t=d.parse(e,v,r.date);if(isNaN(t))for(var n=0;n<S.length;n++)if(t=d.parse(e,S[n],r.date),!isNaN(t))return t;return t}function P(e){if(!(e=J.isNumber(e)?new Date(e):e))return null;if(J.isDate(e)&&!isNaN(e))return e;if(J.isString(e)){var t=A(e);if(!isNaN(t))return d.toTimezone(t,F.timezone)}return _.$options&&_.$options.allowInvalid?e:void 0}function N(e,t){e=e||t;return!o.ngRequired&&!e||(!(e=J.isNumber(e)?new Date(e):e)||(!(!J.isDate(e)||isNaN(e))||!!J.isString(e)&&!isNaN(A(t))))}function R(e){var t,n;!r.isOpen&&r.disabled||(t=M[0],n=i[0].contains(e.target),e=void 0!==t.contains&&t.contains(e.target),!r.isOpen||n||e||r.$apply(function(){r.isOpen=!1}))}function H(e){27===e.which&&r.isOpen?(e.preventDefault(),e.stopPropagation(),r.$apply(function(){r.isOpen=!1}),i[0].focus()):40!==e.which||r.isOpen||(e.preventDefault(),e.stopPropagation(),r.$apply(function(){r.isOpen=!0}))}function z(){var e,t;r.isOpen&&(e=J.element(M[0].querySelector(".uib-datepicker-popup")),t=o.popupPlacement||f.placement,t=c.positionElements(i,e,t,y),e.css({top:t.top+"px",left:t.left+"px"}),e.hasClass("uib-position-measure")&&e.removeClass("uib-position-measure"))}r.watchData={},this.init=function(e){if(F=(_=e).$options||g.ngModelOptions,b=J.isDefined(o.closeOnDateSelection)?r.$parent.$eval(o.closeOnDateSelection):f.closeOnDateSelection,y=J.isDefined(o.datepickerAppendToBody)?r.$parent.$eval(o.datepickerAppendToBody):f.appendToBody,w=J.isDefined(o.onOpenFocus)?r.$parent.$eval(o.onOpenFocus):f.onOpenFocus,x=(J.isDefined(o.datepickerPopupTemplateUrl)?o:f).datepickerPopupTemplateUrl,$=(J.isDefined(o.datepickerTemplateUrl)?o:f).datepickerTemplateUrl,S=J.isDefined(o.altInputFormats)?r.$parent.$eval(o.altInputFormats):f.altInputFormats,r.showButtonBar=J.isDefined(o.showButtonBar)?r.$parent.$eval(o.showButtonBar):f.showButtonBar,f.html5Types[o.type]?(v=f.html5Types[o.type],O=!0):(v=o.uibDatepickerPopup||f.datepickerPopup,o.$observe("uibDatepickerPopup",function(e,t){e=e||f.datepickerPopup;if(e!==v&&(v=e,_.$modelValue=null,!v))throw new Error("uibDatepickerPopup must have a date format specified.")})),!v)throw new Error("uibDatepickerPopup must have a date format specified.");if(O&&o.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");k=J.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>"),r.ngModelOptions=J.copy(F),!(r.ngModelOptions.timezone=null)===r.ngModelOptions.updateOnDefault&&(r.ngModelOptions.updateOn=r.ngModelOptions.updateOn?r.ngModelOptions.updateOn+" default":"default"),k.attr({"ng-model":"date","ng-model-options":"ngModelOptions","ng-change":"dateSelection(date)","template-url":x}),(D=J.element(k.children()[0])).attr("template-url",$),O&&"month"===o.type&&(D.attr("datepicker-mode",'"month"'),D.attr("min-mode","month")),r.datepickerOptions&&D.attr("datepicker-options","datepickerOptions"),J.forEach(["minMode","maxMode","datepickerMode","shortcutPropagation"],function(e){var t,n,i;o[e]&&(m&&a.warn("uib-datepicker settings via uib-datepicker-popup attributes are deprecated and will be removed in UI Bootstrap 1.3, use datepicker-options attribute instead"),t=s(o[e]),n={get:function(){return t(r.$parent)}},D.attr(I(e),"watchData."+e),"datepickerMode"===e&&(i=t.assign,n.set=function(e){i(r.$parent,e)}),Object.defineProperty(r.watchData,e,n))}),J.forEach(["minDate","maxDate","initDate"],function(t){var e;o[t]&&(m&&a.warn("uib-datepicker settings via uib-datepicker-popup attributes are deprecated and will be removed in UI Bootstrap 1.3, use datepicker-options attribute instead"),e=s(o[t]),E.push(r.$parent.$watch(e,function(e){"minDate"===t||"maxDate"===t?(null===e?T[t]=null:J.isDate(e)?T[t]=d.fromTimezone(new Date(e),F.timezone):T[t]=new Date(p(e,"medium")),r.watchData[t]=null===e?null:T[t]):(e=e?new Date(e):new Date,r.watchData[t]=d.fromTimezone(e,F.timezone))})),D.attr(I(t),"watchData."+t))}),o.dateDisabled&&(m&&a.warn("uib-datepicker settings via uib-datepicker-popup attributes are deprecated and will be removed in UI Bootstrap 1.3, use datepicker-options attribute instead"),D.attr("date-disabled","dateDisabled({ date: date, mode: mode })")),J.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","showWeeks","startingDay","yearRows","yearColumns"],function(e){J.isDefined(o[e])&&(m&&a.warn("uib-datepicker settings via uib-datepicker-popup attributes are deprecated and will be removed in UI Bootstrap 1.3, use datepicker-options attribute instead"),D.attr(I(e),o[e]))}),o.customClass&&(m&&a.warn("uib-datepicker settings via uib-datepicker-popup attributes are deprecated and will be removed in UI Bootstrap 1.3, use datepicker-options attribute instead"),D.attr("custom-class","customClass({ date: date, mode: mode })")),O?_.$formatters.push(function(e){return r.date=d.fromTimezone(e,F.timezone),e}):(_.$$parserName="date",_.$validators.date=N,_.$parsers.unshift(P),_.$formatters.push(function(e){return _.$isEmpty(e)?r.date=e:(r.date=d.fromTimezone(e,F.timezone),J.isNumber(r.date)&&(r.date=new Date(r.date)),d.filter(r.date,v))})),_.$viewChangeListeners.push(function(){r.date=A(_.$viewValue)}),i.on("keydown",H),M=t(k)(r),k.remove(),y?l.find("body").append(M):i.after(M),r.$on("$destroy",function(){for(!0===r.isOpen&&(u.$$phase||r.$apply(function(){r.isOpen=!1})),M.remove(),i.off("keydown",H),l.off("click",R),C&&C.off("scroll",z),J.element(n).off("resize",z);E.length;)E.shift()()})},r.getText=function(e){return r[e+"Text"]||f[e+"Text"]},r.isDisabled=function(e){return"today"===e&&(e=new Date),r.watchData.minDate&&r.compare(e,T.minDate)<0||r.watchData.maxDate&&0<r.compare(e,T.maxDate)},r.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},r.dateSelection=function(e){J.isDefined(e)&&(r.date=e);e=r.date?d.filter(r.date,v):null;i.val(e),_.$setViewValue(e),b&&(r.isOpen=!1,i[0].focus())},r.keydown=function(e){27===e.which&&(e.stopPropagation(),r.isOpen=!1,i[0].focus())},r.select=function(e,t){t.stopPropagation(),"today"===e&&(t=new Date,J.isDate(r.date)?(e=new Date(r.date)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate()):e=new Date(t.setHours(0,0,0,0))),r.dateSelection(e)},r.close=function(e){e.stopPropagation(),r.isOpen=!1,i[0].focus()},r.disabled=J.isDefined(o.disabled)||!1,o.ngDisabled&&E.push(r.$parent.$watch(s(o.ngDisabled),function(e){r.disabled=e})),r.$watch("isOpen",function(e){e?r.disabled?r.isOpen=!1:h(function(){z(),w&&r.$broadcast("uib:datepicker.focus"),l.on("click",R);var e=o.popupPlacement||f.placement;y||c.parsePlacement(e)[2]?(C=C||J.element(c.scrollParent(i)))&&C.on("scroll",z):C=null,J.element(n).on("resize",z)},0,!1):(l.off("click",R),C&&C.off("scroll",z),J.element(n).off("resize",z))}),r.$on("uib:datepicker.mode",function(){h(z,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&",customClass:"&"},link:function(e,t,n,i){var r=i[0];i[1].init(r)}}}).directive("uibDatepickerPopupWrap",function(){return{replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/popup.html"}}}),J.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(o){return function(n,i){var r;return function(){var e=this,t=Array.prototype.slice.call(arguments);r&&o.cancel(r),r=o(function(){n.apply(e,t)},i)}}}]),J.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(t,n){var i=null;this.open=function(e){i||(t.on("click",r),t.on("keydown",o)),i&&i!==e&&(i.isOpen=!1),i=e},this.close=function(e){i===e&&(i=null,t.off("click",r),t.off("keydown",o))};var r=function(e){var t;i&&(e&&"disabled"===i.getAutoClose()||e&&3===e.which||(t=i.getToggleElement(),e&&t&&t[0].contains(e.target)||(t=i.getDropdownElement(),e&&"outsideClick"===i.getAutoClose()&&t&&t[0].contains(e.target)||(i.isOpen=!1,n.$$phase||i.$apply()))))},o=function(e){27===e.which?(i.focusToggleElement(),r()):i.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&i.isOpen&&(e.preventDefault(),e.stopPropagation(),i.focusDropdownEntry(e.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(a,s,t,n,e,l,u,c,i,p,d){var f,r,h=this,g=a.$new(),m=e.appendToOpenClass,v=e.openClass,b=J.noop,y=t.onToggle?n(t.onToggle):J.noop,w=!1,x=null,o=!1,$=i.find("body");s.addClass("dropdown"),this.init=function(){var e;t.isOpen&&(r=n(t.isOpen),b=r.assign,a.$watch(r,function(e){g.isOpen=!!e})),!J.isDefined(t.dropdownAppendTo)||(e=n(t.dropdownAppendTo)(g))&&(x=J.element(e)),w=J.isDefined(t.dropdownAppendToBody),o=J.isDefined(t.keyboardNav),(x=w&&!x?$:x)&&h.dropdownMenu&&(x.append(h.dropdownMenu),s.on("$destroy",function(){h.dropdownMenu.remove()}))},this.toggle=function(e){return g.isOpen=arguments.length?!!e:!g.isOpen},this.isOpen=function(){return g.isOpen},g.getToggleElement=function(){return h.toggleElement},g.getAutoClose=function(){return t.autoClose||"always"},g.getElement=function(){return s},g.isKeynavEnabled=function(){return o},g.focusDropdownEntry=function(e){var t=(h.dropdownMenu?J.element(h.dropdownMenu):s.find("ul").eq(0)).find("a");switch(e){case 40:J.isNumber(h.selectedOption)?h.selectedOption=h.selectedOption===t.length-1?h.selectedOption:h.selectedOption+1:h.selectedOption=0;break;case 38:J.isNumber(h.selectedOption)?h.selectedOption=0===h.selectedOption?0:h.selectedOption-1:h.selectedOption=t.length-1}t[h.selectedOption].focus()},g.getDropdownElement=function(){return h.dropdownMenu},g.focusToggleElement=function(){h.toggleElement&&h.toggleElement[0].focus()},g.$watch("isOpen",function(e,t){var n,i,r;x&&h.dropdownMenu&&(o={top:(n=c.positionElements(s,h.dropdownMenu,"bottom-left",!0)).top+"px",display:e?"block":"none"},(r=h.dropdownMenu.hasClass("dropdown-menu-right"))?(o.left="auto",o.right=window.innerWidth-(n.left+s.prop("offsetWidth"))+"px"):(o.left=n.left+"px",o.right="auto"),w||(i=c.offset(x),o.top=n.top-i.top+"px",r?o.right=window.innerWidth-(n.left-i.left+s.prop("offsetWidth"))+"px":o.left=n.left-i.left+"px"),h.dropdownMenu.css(o));var o=x||s;o.hasClass(x?m:v)===!e&&u[e?"addClass":"removeClass"](o,x?m:v).then(function(){J.isDefined(e)&&e!==t&&y(a,{open:!!e})}),e?(h.dropdownMenuTemplateUrl&&d(h.dropdownMenuTemplateUrl).then(function(e){f=g.$new(),p(e.trim())(f,function(e){h.dropdownMenu.replaceWith(e),h.dropdownMenu=e})}),g.focusToggleElement(),l.open(g)):(h.dropdownMenuTemplateUrl&&(f&&f.$destroy(),o=J.element('<ul class="dropdown-menu"></ul>'),h.dropdownMenu.replaceWith(o),h.dropdownMenu=o),l.close(g),h.selectedOption=null),J.isFunction(b)&&b(a,e)}),a.$on("$locationChangeSuccess",function(){"disabled"!==g.getAutoClose()&&(g.isOpen=!1)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,n,i){i.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,i){i&&!J.isDefined(n.dropdownNested)&&(t.addClass("dropdown-menu"),(n=n.templateUrl)&&(i.dropdownMenuTemplateUrl=n),i.dropdownMenu||(i.dropdownMenu=t))}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(t,n,i,r){var e;r&&(n.addClass("dropdown-toggle"),r.toggleElement=n,e=function(e){e.preventDefault(),n.hasClass("disabled")||i.disabled||t.$apply(function(){r.toggle()})},n.bind("click",e),n.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(r.isOpen,function(e){n.attr("aria-expanded",!!e)}),t.$on("$destroy",function(){n.unbind("click",e)}))}}}),J.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var i=[];return{add:function(e,t){i.push({key:e,value:t})},get:function(e){for(var t=0;t<i.length;t++)if(e===i[t].key)return i[t]},keys:function(){for(var e=[],t=0;t<i.length;t++)e.push(i[t].key);return e},top:function(){return i[i.length-1]},remove:function(e){for(var t=-1,n=0;n<i.length;n++)if(e===i[n].key){t=n;break}return i.splice(t,1)[0]},removeTop:function(){return i.splice(i.length-1,1)[0]},length:function(){return i.length}}}}}),J.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap"]).factory("$$multiMap",function(){return{createNew:function(){var i={};return{entries:function(){return Object.keys(i).map(function(e){return{key:e,value:i[e]}})},get:function(e){return i[e]},hasKey:function(e){return!!i[e]},keys:function(){return Object.keys(i)},put:function(e,t){i[e]||(i[e]=[]),i[e].push(t)},remove:function(e,t){var n=i[e];n&&(-1!==(t=n.indexOf(t))&&n.splice(t,1),n.length||delete i[e])}}}}}).provider("$uibResolve",function(){var e=this;this.resolver=null,this.setResolver=function(e){this.resolver=e},this.$get=["$injector","$q",function(o,a){var s=e.resolver?o.get(e.resolver):null;return{resolve:function(e,t,n,i){if(s)return s.resolve(e,t,n,i);var r=[];return J.forEach(e,function(e){J.isFunction(e)||J.isArray(e)?r.push(a.resolve(o.invoke(e))):J.isString(e)?r.push(a.resolve(o.get(e))):r.push(a.resolve(e))}),a.all(r).then(function(n){var i={},r=0;return J.forEach(e,function(e,t){i[t]=n[r++]}),i})}}}]}).directive("uibModalBackdrop",["$animateCss","$injector","$uibModalStack",function(o,e,t){return{replace:!0,templateUrl:"uib/template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),n}};function n(n,i,r){r.modalInClass&&(o(i,{addClass:r.modalInClass}).start(),n.$on(t.NOW_CLOSING_EVENT,function(e,t){t=t();n.modalOptions.animation?o(i,{removeClass:r.modalInClass}).start().then(t):t()}))}}]).directive("uibModalWindow",["$uibModalStack","$q","$animate","$animateCss","$document",function(o,a,s,l,u){return{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(t,n,i){n.addClass(i.windowClass||""),n.addClass(i.windowTopClass||""),t.size=i.size,t.close=function(e){var t=o.getTop();t&&t.value.backdrop&&"static"!==t.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),o.dismiss(t.key,"backdrop click"))},n.on("click",t.close),t.$isRendered=!0;var r=a.defer();i.$observe("modalRender",function(e){"true"===e&&r.resolve()}),r.promise.then(function(){var e=null;i.modalInClass&&(e=l(n,{addClass:i.modalInClass}).start(),t.$on(o.NOW_CLOSING_EVENT,function(e,t){t=t();(l?l(n,{removeClass:i.modalInClass}).start():s.removeClass(n,i.modalInClass)).then(t)})),a.when(e).then(function(){var e=o.getTop();e&&o.modalRendered(e.key),u[0].activeElement&&n[0].contains(u[0].activeElement)||(n[0].querySelector("[autofocus]")||n[0]).focus()})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",function(){return{link:function(e,t,n,i,r){r(e.$parent,function(e){t.empty(),t.append(e)})}}}).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap",function(o,s,a,l,u,c,e,t){var p,d,n,f="modal-open",h=t.createNew(),g=e.createNew(),m={NOW_CLOSING_EVENT:"modal.stack.now-closing"};function v(){for(var e=-1,t=h.keys(),n=0;n<t.length;n++)h.get(t[n]).value.backdrop&&(e=n);return e}function i(t,e){var n=h.get(t).value,i=n.appendTo;h.remove(t),r(n.modalDomEl,n.modalScope,function(){var e=n.openedClass||f;g.remove(e,t),i.toggleClass(e,g.hasKey(e)),b(!0)},n.closedDeferred),p&&-1===v()&&(r(p,d,function(){0}),d=p=void 0),e&&e.focus?e.focus():i.focus&&i.focus()}function b(e){var t;0<h.length()&&(t=h.top().value).modalDomEl.toggleClass(t.windowTopClass||"",e)}function r(e,t,n,i){var r,o=null;return t.$broadcast(m.NOW_CLOSING_EVENT,function(){return r||(r=c.defer(),o=r.promise),function(){r.resolve()}}),c.when(o).then(a);function a(){a.done||(a.done=!0,s(e,{event:"leave"}).start().then(function(){e.remove(),i&&i.resolve()}),t.$destroy(),n&&n())}}function y(e){if(e.isDefaultPrevented())return e;var t=h.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),u.$apply(function(){m.dismiss(t.key,"escape key press")}));break;case 9:m.loadFocusElementList(t);var n=!1;e.shiftKey?(m.isFocusInFirstItem(e)||m.isModalFocused(e,t))&&(n=m.focusLastFocusableElement()):m.isFocusInLastItem(e)&&(n=m.focusFirstFocusableElement()),n&&(e.preventDefault(),e.stopPropagation())}}function w(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}return u.$watch(v,function(e){d&&(d.index=e)}),a.on("keydown",y),u.$on("$destroy",function(){a.off("keydown",y)}),m.open=function(e,t){var n=a[0].activeElement,i=t.openedClass||f;b(!1),h.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,closedDeferred:t.closedDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard,openedClass:t.openedClass,windowTopClass:t.windowTopClass,animation:t.animation,appendTo:t.appendTo}),g.put(i,e);var r=t.appendTo,e=v();if(!r.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");0<=e&&!p&&((d=u.$new(!0)).modalOptions=t,d.index=e,(p=J.element('<div uib-modal-backdrop="modal-backdrop"></div>')).attr("backdrop-class",t.backdropClass),t.animation&&p.attr("modal-animation","true"),l(p)(d),o.enter(p,r));e=J.element('<div uib-modal-window="modal-window"></div>');e.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,"window-top-class":t.windowTopClass,size:t.size,index:h.length()-1,animate:"animate"}).html(t.content),t.animation&&e.attr("modal-animation","true"),o.enter(l(e)(t.scope),r).then(function(){t.scope.$$uibDestructionScheduled||o.addClass(r,i)}),h.top().value.modalDomEl=e,h.top().value.modalOpener=n,m.clearFocusListCache()},m.close=function(e,t){var n=h.get(e);return n&&w(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),i(e,n.value.modalOpener),!0):!n},m.dismiss=function(e,t){var n=h.get(e);return n&&w(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),i(e,n.value.modalOpener),!0):!n},m.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},m.getTop=function(){return h.top()},m.modalRendered=function(e){e=h.get(e);e&&e.value.renderDeferred.resolve()},m.focusFirstFocusableElement=function(){return 0<n.length&&(n[0].focus(),!0)},m.focusLastFocusableElement=function(){return 0<n.length&&(n[n.length-1].focus(),!0)},m.isModalFocused=function(e,t){if(e&&t){t=t.value.modalDomEl;if(t&&t.length)return(e.target||e.srcElement)===t[0]}return!1},m.isFocusInFirstItem=function(e){return 0<n.length&&(e.target||e.srcElement)===n[0]},m.isFocusInLastItem=function(e){return 0<n.length&&(e.target||e.srcElement)===n[n.length-1]},m.clearFocusListCache=function(){n=[]},m.loadFocusElementList=function(e){void 0!==n&&n.length||!e||(e=e.value.modalDomEl)&&e.length&&(n=e[0].querySelectorAll("a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]"))},m}]).provider("$uibModal",function(){var b={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(p,r,d,f,h,g,m){var e={};var v=null;return e.getPromiseChain=function(){return v},e.open=function(o){var a=r.defer(),s=r.defer(),l=r.defer(),u=r.defer(),c={result:a.promise,opened:s.promise,closed:l.promise,rendered:u.promise,close:function(e){return m.close(c,e)},dismiss:function(e){return m.dismiss(c,e)}};if((o=J.extend({},b.options,o)).resolve=o.resolve||{},o.appendTo=o.appendTo||d.find("body").eq(0),!o.template&&!o.templateUrl)throw new Error("One of template or templateUrl options is required.");var e,t,n=r.all([(e=o).template?r.when(e.template):f(J.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl),g.resolve(o.resolve,{},null,null)]);function i(){return n}return t=v=r.all([v]).then(i,i).then(function(e){var t=o.scope||p,n=t.$new();n.$close=c.close,n.$dismiss=c.dismiss,n.$on("$destroy",function(){n.$$uibDestructionScheduled||n.$dismiss("$uibUnscheduledDestruction")});var i,r={};o.controller&&(r.$scope=n,r.$uibModalInstance=c,J.forEach(e[1],function(e,t){r[t]=e}),i=h(o.controller,r),o.controllerAs&&(o.bindToController&&(i.$close=n.$close,i.$dismiss=n.$dismiss,J.extend(i,t),J.isFunction(i.$onInit)&&i.$onInit()),n[o.controllerAs]=i)),m.open(c,{scope:n,deferred:a,renderDeferred:u,closedDeferred:l,content:e[0],animation:o.animation,backdrop:o.backdrop,keyboard:o.keyboard,backdropClass:o.backdropClass,windowTopClass:o.windowTopClass,windowClass:o.windowClass,windowTemplateUrl:o.windowTemplateUrl,size:o.size,openedClass:o.openedClass,appendTo:o.appendTo}),s.resolve(!0)},function(e){s.reject(e),a.reject(e)}).finally(function(){v===t&&(v=null)}),c},e}]};return b}),J.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(e){return{create:function(n,i,r){n.setNumPages=r.numPages?e(r.numPages).assign:J.noop,n.ngModelCtrl={$setViewValue:J.noop},n._watchers=[],n.init=function(e,t){n.ngModelCtrl=e,n.config=t,e.$render=function(){n.render()},r.itemsPerPage?n._watchers.push(i.$parent.$watch(r.itemsPerPage,function(e){n.itemsPerPage=parseInt(e,10),i.totalPages=n.calculateTotalPages(),n.updatePage()})):n.itemsPerPage=t.itemsPerPage,i.$watch("totalItems",function(e,t){!J.isDefined(e)&&e===t||(i.totalPages=n.calculateTotalPages(),n.updatePage())})},n.calculateTotalPages=function(){var e=n.itemsPerPage<1?1:Math.ceil(i.totalItems/n.itemsPerPage);return Math.max(e||0,1)},n.render=function(){i.page=parseInt(n.ngModelCtrl.$viewValue,10)||1},i.selectPage=function(e,t){t&&t.preventDefault(),(!i.ngDisabled||!t)&&i.page!==e&&0<e&&e<=i.totalPages&&(t&&t.target&&t.target.blur(),n.ngModelCtrl.$setViewValue(e),n.ngModelCtrl.$render())},i.getText=function(e){return i[e+"Text"]||n.config[e+"Text"]},i.noPrevious=function(){return 1===i.page},i.noNext=function(){return i.page===i.totalPages},n.updatePage=function(){n.setNumPages(i.$parent,i.totalPages),i.page>i.totalPages?i.selectPage(i.totalPages):n.ngModelCtrl.$render()},i.$on("$destroy",function(){for(;n._watchers.length;)n._watchers.shift()()})}}}]),J.module("ui.bootstrap.pager",["ui.bootstrap.paging"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(e,t,n,i){e.align=J.isDefined(t.align)?e.$parent.$eval(t.align):i.align,n.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(o){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPagerController",controllerAs:"pager",templateUrl:function(e,t){return t.templateUrl||"uib/template/pager/pager.html"},replace:!0,link:function(e,t,n,i){var r=i[0],i=i[1];i&&r.init(i,o)}}}]),J.module("ui.bootstrap.pagination",["ui.bootstrap.paging"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(t,n,e,i,r){var o=this,c=J.isDefined(n.maxSize)?t.$parent.$eval(n.maxSize):r.maxSize,p=J.isDefined(n.rotate)?t.$parent.$eval(n.rotate):r.rotate,d=J.isDefined(n.forceEllipses)?t.$parent.$eval(n.forceEllipses):r.forceEllipses,f=J.isDefined(n.boundaryLinkNumbers)?t.$parent.$eval(n.boundaryLinkNumbers):r.boundaryLinkNumbers,h=J.isDefined(n.pageLabel)?function(e){return t.$parent.$eval(n.pageLabel,{$page:e})}:J.identity;function g(e,t,n){return{number:e,text:t,active:n}}t.boundaryLinks=J.isDefined(n.boundaryLinks)?t.$parent.$eval(n.boundaryLinks):r.boundaryLinks,t.directionLinks=J.isDefined(n.directionLinks)?t.$parent.$eval(n.directionLinks):r.directionLinks,i.create(this,t,n),n.maxSize&&o._watchers.push(t.$parent.$watch(e(n.maxSize),function(e){c=parseInt(e,10),o.render()}));var a=this.render;this.render=function(){a(),0<t.page&&t.page<=t.totalPages&&(t.pages=function(e,t){var n=[],i=1,r=t,o=J.isDefined(c)&&c<t;o&&(p?t<(r=(i=Math.max(e-Math.floor(c/2),1))+c-1)&&(i=(r=t)-c+1):(i=(Math.ceil(e/c)-1)*c+1,r=Math.min(i+c-1,t)));for(var a,s,l=i;l<=r;l++){var u=g(l,h(l),l===e);n.push(u)}return o&&0<c&&(!p||d||f)&&(1<i&&((!f||3<i)&&(o=g(i-1,"...",!1),n.unshift(o)),f&&(3===i&&(a=g(2,"2",!1),n.unshift(a)),a=g(1,"1",!1),n.unshift(a))),r<t&&((!f||r<t-2)&&(s=g(r+1,"...",!1),n.push(s)),f&&(r===t-2&&(s=g(t-1,t-1,!1),n.push(s)),t=g(t,t,!1),n.push(t)))),n}(t.page,t.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,o){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"uib/template/pagination/pagination.html"},replace:!0,link:function(e,t,n,i){var r=i[0],i=i[1];i&&r.init(i,o)}}}]),J.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){var s={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},l={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},u={};this.options=function(e){J.extend(u,e)},this.setTriggers=function(e){J.extend(l,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(e,o,H,z,j,a,t,L,n){var U=n.createNew();function i(e){27!==e.which||(e=U.top())&&(e.value.close(),U.removeTop())}return z.on("keypress",i),t.$on("$destroy",function(){z.off("keypress",i)}),function(A,P,n,N){function R(e){var t=(e||N.trigger||n).split(" "),e=t.map(function(e){return l[e]||e});return{show:t,hide:e}}N=J.extend({},s,u,N);var e=A.replace(/[A-Z]/g,function(e,t){return(t?"-":"")+e.toLowerCase()}),t=a.startSymbol(),i=a.endSymbol(),r="<div "+e+'-popup title="'+t+"title"+i+'" '+(N.useContentExp?'content-exp="contentExp()" ':'content="'+t+"content"+i+'" ')+'placement="'+t+"placement"+i+'" popup-class="'+t+"popupClass"+i+'" animation="animation" is-open="isOpen"origin-scope="origScope" class="uib-position-measure"></div>';return{compile:function(e,t){var I=o(r);return function(n,i,r,e){function t(){o&&o.html()&&(c=c||H(function(){var e=j.positionElements(i,o,g.placement,d);o.css({top:e.top+"px",left:e.left+"px"}),o.hasClass(e.placement.split("-")[0])||(o.removeClass(p.split("-")[0]),o.addClass(e.placement.split("-")[0])),o.hasClass(N.placementClassPrefix+e.placement)||(o.removeClass(N.placementClassPrefix+p),o.addClass(N.placementClassPrefix+e.placement)),o.hasClass("uib-position-measure")?(j.positionArrow(o,e.placement),o.removeClass("uib-position-measure")):p!==e.placement&&j.positionArrow(o,e.placement),p=e.placement,c=null},0,!1))}var o,a,s,l,u,c,p,d=!!J.isDefined(N.appendToBody)&&N.appendToBody,f=R(void 0),h=J.isDefined(r[P+"Enable"]),g=n.$new(!0),m=!1,v=!!J.isDefined(r[P+"IsOpen"])&&L(r[P+"IsOpen"]),b=!!N.useContentExp&&L(r[A]),y=[];function w(){(g.isOpen?$:x)()}function x(){h&&!n.$eval(r[P+"Enable"])||(_(),function(){g.title=r[P+"Title"],g.content=b?b(n):r[A];g.popupClass=r[P+"Class"],g.placement=J.isDefined(r[P+"Placement"])?r[P+"Placement"]:N.placement;var e=j.parsePlacement(g.placement);p=e[1]?e[0]+"-"+e[1]:e[0];var t=parseInt(r[P+"PopupDelay"],10),e=parseInt(r[P+"PopupCloseDelay"],10);g.popupDelay=isNaN(t)?N.popupDelay:t,g.popupCloseDelay=isNaN(e)?N.popupCloseDelay:e}(),g.popupDelay?l=l||H(k,g.popupDelay,!1):k())}function $(){D(),g.popupCloseDelay?u=u||H(C,g.popupCloseDelay,!1):C()}function k(){if(D(),_(),!g.content)return J.noop;o||(a=g.$new(),o=I(a,function(e){d?z.find("body").append(e):i.after(e)}),function(){y.length=0,b?(y.push(n.$watch(b,function(e){!(g.content=e)&&g.isOpen&&C()})),y.push(a.$watch(function(){m||(m=!0,a.$$postDigest(function(){m=!1,g&&g.isOpen&&t()}))}))):y.push(r.$observe(A,function(e){(!(g.content=e)&&g.isOpen?C:t)()}));y.push(r.$observe(P+"Title",function(e){g.title=e,g.isOpen&&t()})),y.push(r.$observe(P+"Placement",function(e){g.placement=e||N.placement;e=j.parsePlacement(g.placement);p=e[1]?e[0]+"-"+e[1]:e[0],g.isOpen&&t()}))}()),g.$evalAsync(function(){M(g.isOpen=!0),t()})}function D(){l&&(H.cancel(l),l=null),c&&(H.cancel(c),c=null)}function C(){g&&g.$evalAsync(function(){g&&(M(g.isOpen=!1),g.animation?s=s||H(F,150,!1):F())})}function _(){u&&(H.cancel(u),u=null),s&&(H.cancel(s),s=null)}function F(){D(),_(),y.length&&(J.forEach(y,function(e){e()}),y.length=0),o&&(o.remove(),o=null),a&&(a.$destroy(),a=null)}function M(e){v&&J.isFunction(v.assign)&&v.assign(n,e)}function S(e){g&&g.isOpen&&o&&(i[0].contains(e.target)||o[0].contains(e.target)||$())}g.origScope=n,g.isOpen=!1,U.add(g,{close:C}),g.contentExp=function(){return g.content},r.$observe("disabled",function(e){e&&D(),e&&g.isOpen&&C()}),v&&n.$watch(v,function(e){g&&!e===g.isOpen&&w()});function T(){f.show.forEach(function(e){"outsideClick"===e?i.off("click",w):(i.off(e,x),i.off(e,w))}),f.hide.forEach(function(e){"outsideClick"===e?z.off("click",S):i.off(e,$)})}var O;O=r[P+"Trigger"],T(),"none"!==(f=R(O)).show&&f.show.forEach(function(e,t){"outsideClick"===e?(i.on("click",w),z.on("click",S)):e===f.hide[t]?i.on(e,w):e&&(i.on(e,x),i.on(f.hide[t],$)),i.on("keypress",function(e){27===e.which&&$()})});var E=n.$eval(r[P+"Animation"]);g.animation=J.isDefined(E)?!!E:N.animation;var E=P+"AppendToBody",E=E in r&&void 0===r[E]||n.$eval(r[E]),d=J.isDefined(E)?E:d;n.$on("$destroy",function(){T(),F(),U.remove(g),g=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(c,i,p,d){return{link:function(e,r,t){function o(){n&&(n.remove(),n=null),a&&(a.$destroy(),a=null),s&&(c.leave(s).then(function(){n=null}),n=s,s=null)}var a,n,s,l=e.$eval(t.tooltipTemplateTranscludeScope),u=0;e.$watch(i.parseAsResourceUrl(t.uibTooltipTemplateTransclude),function(n){var i=++u;n?(d(n,!0).then(function(e){var t;i===u&&(t=l.$new(),e=p(e)(t,function(e){o(),c.enter(e,r)}),s=e,(a=t).$emit("$includeContentLoaded",n))},function(){i===u&&(o(),e.$emit("$includeContentError",n))}),e.$emit("$includeContentRequested",n)):o()}),e.$on("$destroy",o)}}}]).directive("uibTooltipClasses",["$uibPosition",function(r){return{restrict:"A",link:function(e,t,n){var i;e.placement&&(i=r.parsePlacement(e.placement),t.addClass(i[0])),e.popupClass&&t.addClass(e.popupClass),e.animation()&&t.addClass(n.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),J.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{replace:!0,scope:{title:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{replace:!0,scope:{contentExp:"&",title:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{replace:!0,scope:{title:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),J.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(e,t,n){var i=this,r=J.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;function o(){return J.isDefined(e.maxParam)?e.maxParam:n.max}this.bars=[],e.max=o(),this.addBar=function(t,e,n){r||e.css({transition:"none"}),this.bars.push(t),t.max=o(),t.title=n&&J.isDefined(n.title)?n.title:"progressbar",t.$watch("value",function(e){t.recalculatePercentage()}),t.recalculatePercentage=function(){var e=i.bars.reduce(function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent},0);100<e&&(t.percent-=e-100)},t.$on("$destroy",function(){e=null,i.removeBar(t)})},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach(function(e){e.recalculatePercentage()})},e.$watch("maxParam",function(e){i.bars.forEach(function(e){e.max=o(),e.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(e,t,n,i){i.addBar(e,t,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(e,t,n,i){i.addBar(e,J.element(t.children()[0]),{title:n.title})}}}),J.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(t,n,i){var r={$setViewValue:J.noop};this.init=function(e){(r=e).$render=this.render,r.$formatters.push(function(e){return e=J.isNumber(e)&&e<<0!==e?Math.round(e):e}),this.stateOn=J.isDefined(n.stateOn)?t.$parent.$eval(n.stateOn):i.stateOn,this.stateOff=J.isDefined(n.stateOff)?t.$parent.$eval(n.stateOff):i.stateOff;e=J.isDefined(n.titles)?t.$parent.$eval(n.titles):i.titles;this.titles=J.isArray(e)&&0<e.length?e:i.titles;e=J.isDefined(n.ratingStates)?t.$parent.$eval(n.ratingStates):new Array(J.isDefined(n.max)?t.$parent.$eval(n.max):i.max);t.range=this.buildTemplateObjects(e)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;t<n;t++)e[t]=J.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t]);return e},this.getTitle=function(e){return e>=this.titles.length?e+1:this.titles[e]},t.rate=function(e){!t.readonly&&0<=e&&e<=t.range.length&&(r.$setViewValue(r.$viewValue===e?0:e),r.$render())},t.enter=function(e){t.readonly||(t.value=e),t.onHover({value:e})},t.reset=function(){t.value=r.$viewValue,t.onLeave()},t.onKeydown=function(e){/(37|38|39|40)/.test(e.which)&&(e.preventDefault(),e.stopPropagation(),t.rate(t.value+(38===e.which||39===e.which?1:-1)))},this.render=function(){t.value=r.$viewValue}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",replace:!0,link:function(e,t,n,i){var r=i[0],i=i[1];r.init(i)}}}),J.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){var n,i,r=this;function o(e){for(var t=0;t<r.tabs.length;t++)if(r.tabs[t].index===e)return t}r.tabs=[],r.select=function(e){var t;i||(t=o(n),(t=r.tabs[t])&&(t.tab.onDeselect(),t.tab.active=!1),(e=r.tabs[e])?(e.tab.onSelect(),e.tab.active=!0,r.active=e.index,n=e.index):!e&&J.isNumber(n)&&(r.active=null,n=null))},r.addTab=function(e){r.tabs.push({tab:e,index:e.index}),r.tabs.sort(function(e,t){return e.index>t.index?1:e.index<t.index?-1:0}),e.index!==r.active&&(J.isNumber(r.active)||1!==r.tabs.length)||(e=o(e.index),r.select(e))},r.removeTab=function(e){var t=o(e.index);e.index===r.active&&(e=t===r.tabs.length-1?t-1:t+1%r.tabs.length,r.select(e)),r.tabs.splice(t,1)},e.$watch("tabset.active",function(e){J.isNumber(e)&&e!==n&&r.select(o(e))}),e.$on("$destroy",function(){i=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tabset.html"},link:function(e,t,n){e.vertical=!!J.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!J.isDefined(n.justified)&&e.$parent.$eval(n.justified),J.isUndefined(n.active)&&(e.active=0)}}}).directive("uibTab",["$parse",function(o){return{require:"^uibTabset",replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(n,e,t,i,r){n.disabled=!1,t.disable&&n.$parent.$watch(o(t.disable),function(e){n.disabled=!!e}),J.isUndefined(t.index)&&(i.tabs&&i.tabs.length?n.index=Math.max.apply(null,i.tabs.map(function(e){return e.index}))+1:n.index=0),J.isUndefined(t.classes)&&(n.classes=""),n.select=function(){if(!n.disabled){for(var e,t=0;t<i.tabs.length;t++)if(i.tabs[t].tab===n){e=t;break}i.select(e)}},i.addTab(n),n.$on("$destroy",function(){i.removeTab(n)}),n.$transcludeFn=r}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(e,t){e.$watch("headingElement",function(e){e&&(t.html(""),t.append(e))})}}}).directive("uibTabContentTransclude",function(){return{restrict:"A",require:"^uibTabset",link:function(e,n,t){var i=e.$eval(t.uibTabContentTransclude).tab;i.$transcludeFn(i.$parent,function(e){J.forEach(e,function(e){var t;(t=e).tagName&&(t.hasAttribute("uib-tab-heading")||t.hasAttribute("data-uib-tab-heading")||t.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===t.tagName.toLowerCase()||"data-uib-tab-heading"===t.tagName.toLowerCase()||"x-uib-tab-heading"===t.tagName.toLowerCase())?i.headingElement=e:n.append(e)})})}}}),J.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(r,e,i,t,n,o,a){var s=new Date,l=[],u={$setViewValue:J.noop},c=J.isDefined(i.meridians)?r.$parent.$eval(i.meridians):a.meridians||o.DATETIME_FORMATS.AMPMS;r.tabindex=J.isDefined(i.tabindex)?i.tabindex:0,e.removeAttr("tabindex"),this.init=function(e,t){(u=e).$render=this.render,u.$formatters.unshift(function(e){return e?new Date(e):null});var n=t.eq(0),e=t.eq(1),t=t.eq(2);(J.isDefined(i.mousewheel)?r.$parent.$eval(i.mousewheel):a.mousewheel)&&this.setupMousewheelEvents(n,e,t),(J.isDefined(i.arrowkeys)?r.$parent.$eval(i.arrowkeys):a.arrowkeys)&&this.setupArrowkeyEvents(n,e,t),r.readonlyInput=J.isDefined(i.readonlyInput)?r.$parent.$eval(i.readonlyInput):a.readonlyInput,this.setupInputEvents(n,e,t)};var p=a.hourStep;i.hourStep&&l.push(r.$parent.$watch(t(i.hourStep),function(e){p=+e}));var d,f,h=a.minuteStep;i.minuteStep&&l.push(r.$parent.$watch(t(i.minuteStep),function(e){h=+e})),l.push(r.$parent.$watch(t(i.min),function(e){e=new Date(e);d=isNaN(e)?void 0:e})),l.push(r.$parent.$watch(t(i.max),function(e){e=new Date(e);f=isNaN(e)?void 0:e}));var g=!1;i.ngDisabled&&l.push(r.$parent.$watch(t(i.ngDisabled),function(e){g=e})),r.noIncrementHours=function(){var e=D(s,60*p);return g||f<e||e<s&&e<d},r.noDecrementHours=function(){var e=D(s,60*-p);return g||e<d||s<e&&f<e},r.noIncrementMinutes=function(){var e=D(s,h);return g||f<e||e<s&&e<d},r.noDecrementMinutes=function(){var e=D(s,-h);return g||e<d||s<e&&f<e},r.noIncrementSeconds=function(){var e=C(s,m);return g||f<e||e<s&&e<d},r.noDecrementSeconds=function(){var e=C(s,-m);return g||e<d||s<e&&f<e},r.noToggleMeridian=function(){return s.getHours()<12?g||D(s,720)>f:g||D(s,-720)<d};var m=a.secondStep;function v(){var e=+r.hours;if(r.showMeridian?0<e&&e<13:0<=e&&e<24)return r.showMeridian&&(12===e&&(e=0),r.meridian===c[1]&&(e+=12)),e}function b(){var e=+r.minutes;return 0<=e&&e<60?e:void 0}function y(e){return null===e?"":J.isDefined(e)&&e.toString().length<2?"0"+e:e.toString()}function w(e){x(),u.$setViewValue(new Date(s)),$(e)}function x(){u.$setValidity("time",!0),r.invalidHours=!1,r.invalidMinutes=!1,r.invalidSeconds=!1}function $(e){var t,n,i;u.$modelValue?(t=s.getHours(),n=s.getMinutes(),i=s.getSeconds(),r.showMeridian&&(t=0===t||12===t?12:t%12),r.hours="h"===e?t:y(t),"m"!==e&&(r.minutes=y(n)),r.meridian=s.getHours()<12?c[0]:c[1],"s"!==e&&(r.seconds=y(i)),r.meridian=s.getHours()<12?c[0]:c[1]):(r.hours=null,r.minutes=null,r.seconds=null,r.meridian=c[0])}function k(e){s=C(s,e),w()}function D(e,t){return C(e,60*t)}function C(e,t){t=new Date(e.getTime()+1e3*t),e=new Date(e);return e.setHours(t.getHours(),t.getMinutes(),t.getSeconds()),e}i.secondStep&&l.push(r.$parent.$watch(t(i.secondStep),function(e){m=+e})),r.showSeconds=a.showSeconds,i.showSeconds&&l.push(r.$parent.$watch(t(i.showSeconds),function(e){r.showSeconds=!!e})),r.showMeridian=a.showMeridian,i.showMeridian&&l.push(r.$parent.$watch(t(i.showMeridian),function(e){var t;r.showMeridian=!!e,u.$error.time?(t=v(),e=b(),J.isDefined(t)&&J.isDefined(e)&&(s.setHours(t),w())):$()})),this.setupMousewheelEvents=function(e,t,n){function i(e){var t=(e=e.originalEvent?e.originalEvent:e).wheelDelta||-e.deltaY;return e.detail||0<t}e.bind("mousewheel wheel",function(e){g||r.$apply(i(e)?r.incrementHours():r.decrementHours()),e.preventDefault()}),t.bind("mousewheel wheel",function(e){g||r.$apply(i(e)?r.incrementMinutes():r.decrementMinutes()),e.preventDefault()}),n.bind("mousewheel wheel",function(e){g||r.$apply(i(e)?r.incrementSeconds():r.decrementSeconds()),e.preventDefault()})},this.setupArrowkeyEvents=function(e,t,n){e.bind("keydown",function(e){g||(38===e.which?(e.preventDefault(),r.incrementHours(),r.$apply()):40===e.which&&(e.preventDefault(),r.decrementHours(),r.$apply()))}),t.bind("keydown",function(e){g||(38===e.which?(e.preventDefault(),r.incrementMinutes(),r.$apply()):40===e.which&&(e.preventDefault(),r.decrementMinutes(),r.$apply()))}),n.bind("keydown",function(e){g||(38===e.which?(e.preventDefault(),r.incrementSeconds(),r.$apply()):40===e.which&&(e.preventDefault(),r.decrementSeconds(),r.$apply()))})},this.setupInputEvents=function(e,t,n){if(r.readonlyInput)return r.updateHours=J.noop,r.updateMinutes=J.noop,void(r.updateSeconds=J.noop);function i(e,t,n){u.$setViewValue(null),u.$setValidity("time",!1),J.isDefined(e)&&(r.invalidHours=e),J.isDefined(t)&&(r.invalidMinutes=t),J.isDefined(n)&&(r.invalidSeconds=n)}r.updateHours=function(){var e=v(),t=b();u.$setDirty(),J.isDefined(e)&&J.isDefined(t)?(s.setHours(e),s.setMinutes(t),s<d||f<s?i(!0):w("h")):i(!0)},e.bind("blur",function(e){u.$setTouched(),null===r.hours||""===r.hours?i(!0):!r.invalidHours&&r.hours<10&&r.$apply(function(){r.hours=y(r.hours)})}),r.updateMinutes=function(){var e=b(),t=v();u.$setDirty(),J.isDefined(e)&&J.isDefined(t)?(s.setHours(t),s.setMinutes(e),s<d||f<s?i(void 0,!0):w("m")):i(void 0,!0)},t.bind("blur",function(e){u.$setTouched(),null===r.minutes?i(void 0,!0):!r.invalidMinutes&&r.minutes<10&&r.$apply(function(){r.minutes=y(r.minutes)})}),r.updateSeconds=function(){var e,e=0<=(e=+r.seconds)&&e<60?e:void 0;u.$setDirty(),J.isDefined(e)?(s.setSeconds(e),w("s")):i(void 0,void 0,!0)},n.bind("blur",function(e){!r.invalidSeconds&&r.seconds<10&&r.$apply(function(){r.seconds=y(r.seconds)})})},this.render=function(){var e=u.$viewValue;isNaN(e)?(u.$setValidity("time",!1),n.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):((s=e?e:s)<d||f<s?(u.$setValidity("time",!1),r.invalidHours=!0,r.invalidMinutes=!0):x(),$())},r.showSpinners=J.isDefined(i.showSpinners)?r.$parent.$eval(i.showSpinners):a.showSpinners,r.incrementHours=function(){r.noIncrementHours()||k(60*p*60)},r.decrementHours=function(){r.noDecrementHours()||k(60*-p*60)},r.incrementMinutes=function(){r.noIncrementMinutes()||k(60*h)},r.decrementMinutes=function(){r.noDecrementMinutes()||k(60*-h)},r.incrementSeconds=function(){r.noIncrementSeconds()||k(m)},r.decrementSeconds=function(){r.noDecrementSeconds()||k(-m)},r.toggleMeridian=function(){var e=b(),t=v();r.noToggleMeridian()||(J.isDefined(e)&&J.isDefined(t)?k(720*(s.getHours()<12?60:-60)):r.meridian=r.meridian===c[0]?c[1]:c[0])},r.blur=function(){u.$setTouched()},r.$on("$destroy",function(){for(;l.length;)l.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(e,t){return t.templateUrl||n.templateUrl},link:function(e,t,n,i){var r=i[0],i=i[1];i&&r.init(i,t.find("input"))}}}]),J.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(e){var t=e.match(i);if(!t)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+e+'".');return{itemName:t[3],source:n(t[4]),viewMapper:n(t[2]||t[1]),modelMapper:n(t[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(s,l,a,e,n,t,u,i,r,o,c,p,d){var f,h,g=[9,13,27,38,40],m=s.$eval(a.typeaheadMinLength);m||0===m||(m=1),s.$watch(a.typeaheadMinLength,function(e){m=e||0===e?e:1});var v=s.$eval(a.typeaheadWaitMs)||0,b=!1!==s.$eval(a.typeaheadEditable);s.$watch(a.typeaheadEditable,function(e){b=!1!==e});var y,w,x=n(a.typeaheadLoading).assign||J.noop,$=n(a.typeaheadOnSelect),k=!!J.isDefined(a.typeaheadSelectOnBlur)&&s.$eval(a.typeaheadSelectOnBlur),D=n(a.typeaheadNoResults).assign||J.noop,C=a.typeaheadInputFormatter?n(a.typeaheadInputFormatter):void 0,_=!!a.typeaheadAppendToBody&&s.$eval(a.typeaheadAppendToBody),F=a.typeaheadAppendTo?s.$eval(a.typeaheadAppendTo):null,M=!1!==s.$eval(a.typeaheadFocusFirst),S=!!a.typeaheadSelectOnExact&&s.$eval(a.typeaheadSelectOnExact),T=n(a.typeaheadIsOpen).assign||J.noop,O=s.$eval(a.typeaheadShowHint)||!1,E=n(a.ngModel),I=n(a.ngModel+"($$$p)"),A=d.parse(a.uibTypeahead),P=s.$new(),d=s.$on("$destroy",function(){P.$destroy()});P.$on("$destroy",d);var N,R,H="typeahead-"+P.$id+"-"+Math.floor(1e4*Math.random());l.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":H}),O&&((N=J.element("<div></div>")).css("position","relative"),l.after(N),(R=l.clone()).attr("placeholder",""),R.attr("tabindex","-1"),R.val(""),R.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),l.css({position:"relative","vertical-align":"top","background-color":"transparent"}),N.append(R),R.after(l));var z=J.element("<div uib-typeahead-popup></div>");z.attr({id:H,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),J.isDefined(a.typeaheadTemplateUrl)&&z.attr("template-url",a.typeaheadTemplateUrl),J.isDefined(a.typeaheadPopupTemplateUrl)&&z.attr("popup-template-url",a.typeaheadPopupTemplateUrl);var j=function(){O&&R.val("")},L=function(){P.matches=[],P.activeIdx=-1,l.attr("aria-expanded",!1),j()},U=function(e){return H+"-option-"+e};P.$watch("activeIdx",function(e){e<0?l.removeAttr("aria-activedescendant"):l.attr("aria-activedescendant",U(e))});var q=function(e,t){return!!(P.matches.length>t&&e)&&e.toUpperCase()===P.matches[t].label.toUpperCase()},V=function(r,o){var a={$viewValue:r};x(s,!0),D(s,!1),t.when(A.source(s,a)).then(function(e){var t=r===f.$viewValue;if(t&&y)if(e&&0<e.length){P.activeIdx=M?0:-1,D(s,!1);for(var n,i=P.matches.length=0;i<e.length;i++)a[A.itemName]=e[i],P.matches.push({id:U(i),label:A.viewMapper(P,a),model:e[i]});P.query=r,K(),l.attr("aria-expanded",!0),S&&1===P.matches.length&&q(r,0)&&(J.isNumber(P.debounceUpdate)||J.isObject(P.debounceUpdate)?c(function(){P.select(0,o)},J.isNumber(P.debounceUpdate)?P.debounceUpdate:P.debounceUpdate.default):P.select(0,o)),O&&(n=P.matches[0].label,J.isString(r)&&0<r.length&&n.slice(0,r.length).toUpperCase()===r.toUpperCase()?R.val(r+n.slice(r.length)):R.val(""))}else L(),D(s,!0);t&&x(s,!1)},function(){L(),x(s,!1),D(s,!0)})};_&&(J.element(r).on("resize",Y),i.find("body").on("scroll",Y));var B,W=c(function(){P.matches.length&&K(),P.moveInProgress=!1},200);function Y(){P.moveInProgress||(P.moveInProgress=!0,P.$digest()),W()}function K(){P.position=_?p.offset(l):p.position(l),P.position.top+=l.prop("offsetHeight")}P.moveInProgress=!1,P.query=void 0;function G(){B&&u.cancel(B)}L(),P.assignIsOpen=function(e){T(s,e)},P.select=function(e,t){var n,i,r,o={};w=!0,o[A.itemName]=i=P.matches[e].model,n=A.modelMapper(s,o),r=s,e=n,J.isFunction(E(s))&&h&&h.$options&&h.$options.getterSetter?I(r,{$$$p:e}):E.assign(r,e),f.$setValidity("editable",!0),f.$setValidity("parse",!0),$(s,{$item:i,$model:n,$label:A.viewMapper(s,o),$event:t}),L(),!1!==P.$eval(a.typeaheadFocusOnSelect)&&u(function(){l[0].focus()},0,!1)},l.on("keydown",function(e){if(0!==P.matches.length&&-1!==g.indexOf(e.which)){if(-1===P.activeIdx&&(9===e.which||13===e.which)||9===e.which&&e.shiftKey)return L(),void P.$digest();var t;switch(e.preventDefault(),e.which){case 9:case 13:P.$apply(function(){J.isNumber(P.debounceUpdate)||J.isObject(P.debounceUpdate)?c(function(){P.select(P.activeIdx,e)},J.isNumber(P.debounceUpdate)?P.debounceUpdate:P.debounceUpdate.default):P.select(P.activeIdx,e)});break;case 27:e.stopPropagation(),L(),P.$digest();break;case 38:P.activeIdx=(0<P.activeIdx?P.activeIdx:P.matches.length)-1,P.$digest(),(t=z.find("li")[P.activeIdx]).parentNode.scrollTop=t.offsetTop;break;case 40:P.activeIdx=(P.activeIdx+1)%P.matches.length,P.$digest(),(t=z.find("li")[P.activeIdx]).parentNode.scrollTop=t.offsetTop}}}),l.bind("focus",function(e){y=!0,0!==m||f.$viewValue||u(function(){V(f.$viewValue,e)},0)}),l.bind("blur",function(e){k&&P.matches.length&&-1!==P.activeIdx&&!w&&(w=!0,P.$apply(function(){J.isObject(P.debounceUpdate)&&J.isNumber(P.debounceUpdate.blur)?c(function(){P.select(P.activeIdx,e)},P.debounceUpdate.blur):P.select(P.activeIdx,e)})),!b&&f.$error.editable&&(f.$viewValue="",l.val("")),w=y=!1});function Q(e){l[0]!==e.target&&3!==e.which&&0!==P.matches.length&&(L(),o.$$phase||P.$digest())}i.on("click",Q),s.$on("$destroy",function(){i.off("click",Q),(_||F)&&Z.remove(),_&&(J.element(r).off("resize",Y),i.find("body").off("scroll",Y)),z.remove(),O&&N.remove()});var Z=e(z)(P);_?i.find("body").append(Z):F?J.element(F).eq(0).append(Z):l.after(Z),this.init=function(e,t){f=e,h=t,P.debounceUpdate=f.$options&&n(f.$options.debounce)(s),f.$parsers.unshift(function(e){var t;return y=!0,0===m||e&&e.length>=m?0<v?(G(),t=e,B=u(function(){V(t)},v)):V(e):(x(s,!1),G(),L()),b?e:e?void f.$setValidity("editable",!1):(f.$setValidity("editable",!0),null)}),f.$formatters.push(function(e){var t,n={};return b||f.$setValidity("editable",!0),C?(n.$model=e,C(s,n)):(n[A.itemName]=e,t=A.viewMapper(s,n),n[A.itemName]=void 0,t!==A.viewMapper(s,n)?t:e)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(e,t,n,i){i[2].init(i[0],i[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(r){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(i,e,t){i.templateUrl=t.templateUrl,i.isOpen=function(){var e=0<i.matches.length;return i.assignIsOpen({isOpen:e}),e},i.isActive=function(e){return i.active===e},i.selectActive=function(e){i.active=e},i.selectMatch=function(e,t){var n=i.debounce();J.isNumber(n)||J.isObject(n)?r(function(){i.select({activeIdx:e,evt:t})},J.isNumber(n)?n:n.default):i.select({activeIdx:e,evt:t})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(i,r,o){return{scope:{index:"=",match:"=",query:"="},link:function(t,n,e){e=o(e.templateUrl)(t.$parent)||"uib/template/typeahead/typeahead-match.html";i(e).then(function(e){e=J.element(e.trim());n.replaceWith(e),r(e)(t)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,e,i){var r;return r=e.has("$sanitize"),function(e,t){return!r&&/<.*>/g.test(e)&&i.warn("Unsafe use of typeahead please use ngSanitize"),e=t?(""+e).replace(new RegExp(t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):e,e=!r?n.trustAsHtml(e):e}}]),J.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion-group.html",'<div class="panel" ng-class="panelClass || \'panel-default\'">\n  <div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n    <h4 class="panel-title">\n      <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading"><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n    </h4>\n  </div>\n  <div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n    <div class="panel-body" ng-transclude></div>\n  </div>\n</div>\n')}]),J.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude></div>')}]),J.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("uib/template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n    <button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n        <span aria-hidden="true">&times;</span>\n        <span class="sr-only">Close</span>\n    </button>\n    <div ng-transclude></div>\n</div>\n')}]),J.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n  <div class="carousel-inner" ng-transclude></div>\n  <a role="button" href class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1">\n    <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n    <span class="sr-only">previous</span>\n  </a>\n  <a role="button" href class="right carousel-control" ng-click="next()" ng-show="slides.length > 1">\n    <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n    <span class="sr-only">next</span>\n  </a>\n  <ol class="carousel-indicators" ng-show="slides.length > 1">\n    <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n      <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n    </li>\n  </ol>\n</div>\n')}]),J.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/slide.html",'<div ng-class="{\n    \'active\': active\n  }" class="item text-center" ng-transclude></div>\n')}]),J.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/datepicker.html",'<div class="uib-datepicker" ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n  <uib-daypicker ng-switch-when="day" tabindex="0"></uib-daypicker>\n  <uib-monthpicker ng-switch-when="month" tabindex="0"></uib-monthpicker>\n  <uib-yearpicker ng-switch-when="year" tabindex="0"></uib-yearpicker>\n</div>\n')}]),J.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/day.html",'<table class="uib-daypicker" 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 uib-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 uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n    <tr>\n      <th ng-if="showWeeks" class="text-center"></th>\n      <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-weeks" ng-repeat="row in rows track by $index">\n      <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n      <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default btn-sm"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          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')}]),J.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/month.html",'<table class="uib-monthpicker" 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 uib-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 uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-months" ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),J.module("uib/template/datepicker/popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/popup.html",'<div>\n  <ul class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n    <li ng-transclude></li>\n    <li ng-if="showButtonBar" class="uib-button-bar">\n      <span class="btn-group pull-left">\n        <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n        <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}</button>\n      </span>\n      <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}</button>\n    </li>\n  </ul>\n</div>\n')}]),J.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/year.html",'<table class="uib-yearpicker" 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 uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-years" ng-repeat="row in rows track by $index">\n      <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),J.module("uib/template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/backdrop.html",'<div class="modal-backdrop"\n     uib-modal-animation-class="fade"\n     modal-in-class="in"\n     ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),J.module("uib/template/modal/window.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n    uib-modal-animation-class="fade"\n    modal-in-class="in"\n    ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n    <div class="modal-dialog {{size ? \'modal-\' + size : \'\'}}"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),J.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(e){e.put("uib/template/pager/pager.html",'<ul class="pager">\n  <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n  <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>\n')}]),J.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("uib/template/pagination/pagination.html",'<ul class="pagination">\n  <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n  <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n  <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n  <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n  <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),J.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),J.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),J.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="tooltip-arrow"></div>\n  <div class="tooltip-inner"\n    uib-tooltip-template-transclude="contentExp()"\n    tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),J.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-html.html",'<div class="popover"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n      <div class="popover-content" ng-bind-html="contentExp()"></div>\n  </div>\n</div>\n')}]),J.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-template.html",'<div class="popover"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n      <div class="popover-content"\n        uib-tooltip-template-transclude="contentExp()"\n        tooltip-template-transclude-scope="originScope()"></div>\n  </div>\n</div>\n')}]),J.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover.html",'<div class="popover"\n  tooltip-animation-class="fade"\n  uib-tooltip-classes\n  ng-class="{ in: isOpen() }">\n  <div class="arrow"></div>\n\n  <div class="popover-inner">\n      <h3 class="popover-title" ng-bind="title" ng-if="title"></h3>\n      <div class="popover-content" ng-bind="content"></div>\n  </div>\n</div>\n')}]),J.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n')}]),J.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),J.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n</div>\n')}]),J.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n    <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}" aria-valuetext="{{r.title}}"></i>\n</span>\n')}]),J.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n  <a href ng-click="select()" class="nav-link" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),J.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{tabset.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 tabset.tabs"\n         ng-class="{active: tabset.active === tab.index}"\n         uib-tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),J.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n  <tbody>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</td>\n      <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n    <tr>\n      <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n        <input style="width:50px;" type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n      </td>\n      <td class="uib-separator">:</td>\n      <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n        <input style="width:50px;" type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n      </td>\n      <td ng-show="showSeconds" class="uib-separator">:</td>\n      <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n        <input style="width:50px;" type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n      </td>\n      <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian || \'AM\'}}</button></td>\n    </tr>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</td>\n      <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n  </tbody>\n</table>\n')}]),J.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-match.html",'<a href\n   tabindex="-1"\n   ng-bind-html="match.label | uibTypeaheadHighlight:query"\n   ng-attr-title="{{match.label}}"></a>\n')}]),J.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" 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, $event)" role="option" id="{{::match.id}}">\n        <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]),J.module("ui.bootstrap.carousel").run(function(){J.$$csp().noInlineStyle||J.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>')}),J.module("ui.bootstrap.position").run(function(){J.$$csp().noInlineStyle||J.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll;}</style>')}),J.module("ui.bootstrap.datepicker").run(function(){J.$$csp().noInlineStyle||J.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}.uib-left,.uib-right{width:100%}</style>')}),J.module("ui.bootstrap.tooltip").run(function(){J.$$csp().noInlineStyle||J.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover{display:block !important;}</style>')}),J.module("ui.bootstrap.timepicker").run(function(){J.$$csp().noInlineStyle||J.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>')}),J.module("ui.bootstrap.typeahead").run(function(){J.$$csp().noInlineStyle||J.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>')})}(window.dnnsfAngular15||window.angular),function(I){var y=new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"),w=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat");function x(e,t,n,i){for(var r=i;n<=r;r--){var o=e.substring(t,t+r);if(o.length<n)return null;if(function(e){for(var t=0;t<e.length;t++)if(-1=="1234567890".indexOf(e.charAt(t)))return;return 1}(o))return o}return null}function l(e,t,n){n&&n.DATETIME_FORMATS&&(y=n.DATETIME_FORMATS.MONTH.concat(n.DATETIME_FORMATS.SHORTMONTH),w=n.DATETIME_FORMATS.DAY.concat(n.DATETIME_FORMATS.SHORTDAY)),e+="",t+="";for(var i,r,o,a=0,s=0,l="",n=new Date,u=n.getFullYear(),c=n.getMonth()+1,p=n.getDate(),d=n.getHours(),f=n.getMinutes(),h=n.getSeconds(),g="";s<t.length;){for(i=t.charAt(s),l="";t.charAt(s)==i&&s<t.length;)l+=t.charAt(s++);if("yyyy"==l||"yy"==l||"y"==l){if("yyyy"==l&&(o=r=4),"yy"==l&&(o=r=2),"y"==l&&(r=2,o=4),null==(u=x(e,a,r,o)))return 0;a+=u.length,2==u.length&&(u=70<u?+u+1900:+u+2e3)}else if("MMM"==l||"NNN"==l||"MMMM"==l){for(var c=0,m=0;m<y.length;m++){var v=y[m];if(e.substring(a,a+v.length).toLowerCase()==v.toLowerCase()&&("MMM"==l||"MMMM"==l||"NNN"==l&&11<m)){12<(c=m+1)&&(c-=12),a+=v.length;break}}if(c<1||12<c)return 0}else if("EE"==l||"E"==l)for(m=0;m<w.length;m++){var b=w[m];if(e.substring(a,a+b.length).toLowerCase()==b.toLowerCase()){a+=b.length;break}}else if("MM"==l||"M"==l){if(null==(c=x(e,a,l.length,2))||c<1||12<c)return 0;a+=c.length}else if("dd"==l||"d"==l){if(null==(p=x(e,a,l.length,2))||p<1||31<p)return 0;a+=p.length}else if("hh"==l||"h"==l){if(null==(d=x(e,a,l.length,2))||d<1||12<d)return 0;a+=d.length}else if("HH"==l||"H"==l){if(null==(d=x(e,a,l.length,2))||d<0||23<d)return 0;a+=d.length}else if("KK"==l||"K"==l){if(null==(d=x(e,a,l.length,2))||d<0||11<d)return 0;a+=d.length}else if("kk"==l||"k"==l){if(null==(d=x(e,a,l.length,2))||d<1||24<d)return 0;a+=d.length,d--}else if("mm"==l||"m"==l){if(null==(f=x(e,a,l.length,2))||f<0||59<f)return 0;a+=f.length}else if("ss"==l||"s"==l){if(null==(h=x(e,a,l.length,2))||h<0||59<h)return 0;a+=h.length}else if("a"==l){if("am"==e.substring(a,a+2).toLowerCase())g="AM";else{if("pm"!=e.substring(a,a+2).toLowerCase())return 0;g="PM"}a+=2}else{if(e.substring(a,a+l.length)!=l)return 0;a+=l.length}}if(a!=e.length)return 0;if(2==c)if(u%4==0&&u%100!=0||u%400==0){if(29<p)return 0}else if(28<p)return 0;return(4==c||6==c||9==c||11==c)&&30<p?0:(d<12&&"PM"==g?d=+d+12:11<d&&"AM"==g&&(d-=12),new Date(u,c-1,p,d,f,h).getTime())}I.module("ui.bootstrap.datetimepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("uiDatetimePickerConfig",{dateFormat:"yyyy-MM-dd HH:mm",defaultTime:"00:00:00",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},initialPicker:"date",reOpenDefault:!1,enableDate:!0,enableTime:!0,closeOnDateSelection:!0,closeOnTimeNow:!0,appendToBody:!0,inlineMode:!1,altInputFormats:[],ngModelOptions:{},saveAs:!1,readAs:!1}).controller("DateTimePickerController",["$scope","$element","$attrs","$compile","$parse","$document","$timeout","$uibPosition","dateFilter","uibDateParser","uiDatetimePickerConfig","$rootScope","$locale",function(a,s,l,o,e,u,n,t,c,p,d,i,r){d.buttonBar=r.DATETIME_FORMATS.buttonBar||{show:!0,now:{show:!0,text:"Now"},today:{show:!0,text:"Today"},clear:{show:!0,text:"Clear"},date:{show:!0,text:"Date"},time:{show:!0,text:"Time"},close:{show:!0,text:"Close"}};var f,h,g,m=d.dateFormat,v={},b=[],y=I.isDefined(l.closeOnDateSelection)?a.$parent.$eval(l.closeOnDateSelection):d.closeOnDateSelection,w=I.isDefined(l.closeOnTimeNow)?a.$parent.$eval(l.closeOnTimeNow):d.closeOnTimeNow,x=I.isDefined(l.datepickerAppendToBody)?a.$parent.$eval(l.datepickerAppendToBody):d.appendToBody,k=I.isDefined(l.altInputFormats)?a.$parent.$eval(l.altInputFormats):d.altInputFormats,D=I.isDefined(l.saveAs)?a.$parent.$eval(l.saveAs)||l.saveAs:d.saveAs,C=I.isDefined(l.readAs)?a.$parent.$eval(l.readAs):d.readAs,_=I.isDefined(l.datepickerInlineMode)?"True"==l.datepickerInlineMode:d.inlineMode;function F(e){var t=g[0],n=s[0].contains(e.target)||0<$(e.target).closest(".datetime-picker-dropdown").length,e=void 0!==t.contains&&t.contains(e.target);!a.isOpen||n||e||a.$apply(function(){a.close(!1)})}function M(e){27===e.which&&a.isOpen?(e.preventDefault(),e.stopPropagation(),a.$apply(function(){a.close(!1)}),s[0].focus()):40!==e.which||a.isOpen||(e.preventDefault(),e.stopPropagation(),a.$apply(function(){a.isOpen=!0}))}function S(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}function T(e){var t=p.parse(e,m,a.date);if(isNaN(t))for(var n=0;n<k.length;n++)if(t=p.parse(e,k[n],a.date),!isNaN(t))return t;return t}function O(e){return!(a.datepickerOptions.minDate&&e<a.datepickerOptions.minDate)&&!(a.datepickerOptions.maxDate&&e>a.datepickerOptions.maxDate)}function E(e,t){e=e||t;return!(l.ngRequired||l.required||e)||(!(e=I.isNumber(e)?new Date(e):e)||(I.isDate(e)&&!isNaN(e)?O(e):I.isDate(new Date(e))&&!isNaN(new Date(e).valueOf())?O(new Date(e)):!!I.isString(e)&&(!isNaN(T(t))&&O(T(t)))))}this.init=function(e){if(_&&(s.attr("type","hidden"),y=!1),h=(f=e).$options||d.ngModelOptions,a.buttonBar=I.isDefined(l.buttonBar)?a.$parent.$eval(l.buttonBar):d.buttonBar,a.enableDate=(I.isDefined(a.enableDate)?a:d).enableDate,a.enableTime=(I.isDefined(a.enableTime)?a:d).enableTime,a.initialPicker=I.isDefined(l.initialPicker)?l.initialPicker:a.enableDate?d.initialPicker:"time",a.reOpenDefault=(I.isDefined(l.reOpenDefault)?l:d).reOpenDefault,"date"==a.initialPicker&&!a.enableDate)throw new Error("datetimePicker can't have initialPicker set to date and have enableDate set to false.");a.showPicker=a.enableDate?a.initialPicker:"time";var t=!1;if(d.html5Types[l.type]?(m=d.html5Types[l.type],t=!0):(m=l.datetimePicker||d.dateFormat,l.$observe("datetimePicker",function(e){e=e||d.dateFormat;if(e!==m&&(m=e,f.$modelValue=null,!m))throw new Error("datetimePicker must have a date format specified.")})),!m)throw new Error("datetimePicker must have a date format specified.");var n=I.element('<div date-picker-wrap><div uib-datepicker></div></div><div time-picker-wrap><div uib-timepicker style="margin:0 auto"></div></div>');h?(timezone=h.timezone,a.ngModelOptions=I.copy(h),!(a.ngModelOptions.timezone=null)===a.ngModelOptions.updateOnDefault&&(a.ngModelOptions.updateOn=a.ngModelOptions.updateOn?a.ngModelOptions.updateOn+" default":"default"),n.attr("ng-model-options","ngModelOptions")):timezone=null,n.attr({"ng-model":"date","ng-change":"dateSelection(date)"});e=I.element(n.children()[0]);a.datepickerOptions||(a.datepickerOptions={}),t&&"month"===l.type&&(a.datepickerOptions.datepickerMode="month",a.datepickerOptions.minMode="month"),e.attr("datepicker-options","datepickerOptions"),I.isDefined(a.datepickerOptions.datepickerMode)||(a.datepickerOptions.datepickerMode="day");var i,r=I.element(n.children()[1]);for(i in a.timepickerOptions||(a.timepickerOptions={}),a.timepickerOptions)"templateUrl"==i?r.attr(S(i),a.timepickerOptions.templateUrl):r.attr(S(i),"timepickerOptions."+i);I.forEach(["minDate","maxDate","initDate"],function(e){a.datepickerOptions[e]&&("minDate"==e?r.attr("min","datepickerOptions.minDate"):"maxDate"==e&&r.attr("max","datepickerOptions.maxDate"))}),t?f.$formatters.push(function(e){return e}):(f.$$parserName="datetime",f.$validators.datetime=E,f.$formatters.push(function(e){return f.$isEmpty(e)?a.date=e:(a.date=p.fromTimezone(e,h.timezone),m=m.replace(/M!/,"MM").replace(/d!/,"dd"),p.filter(a.date,m))})),D&&(I.isFunction(D)?f.$parsers.push(D):f.$parsers.push(function(e){if(!e||I.isString(e)||!I.isDate(e)||isNaN(e))return e;if("ISO"===D)return e.toISOString();if("json"===D)return e.toJSON();if("number"===D)return e.valueOf();return t?p.fromTimezone(e,h.timezone).toLocaleString():(m=m.replace(/M!/,"MM").replace(/d!/,"dd"),p.filter(p.fromTimezone(e,h.timezone),m))}),I.isFunction(C)?f.$formatters.push(C):f.$formatters.push(function(e){if(f.$isEmpty(e))return e;var t=new Date(e);return I.isDate(t)&&!isNaN(t)?t:e})),f.$viewChangeListeners.push(function(){a.date=T(f.$viewValue)}),s.bind("keydown",M),g=o(n)(a),n.remove(),x&&!_?u.find("body").append(g):(s.after(g),a.isOpen=!0)},a.getText=function(e){return a.buttonBar[e].text||d.buttonBar[e].text},a.keydown=function(e){27===e.which&&(a.close(!1),s[0].focus())},a.doShow=function(e){return!(_&&"close"===e||"clear"===e)&&(I.isDefined(a.buttonBar[e].show)?a:d).buttonBar[e].show},keepInView=function(){var e,t=s.siblings(".datetime-picker-dropdown");t[0]&&((e=t[0].getBoundingClientRect()).bottom>=(window.innerHeight||document.documentElement.clientHeight)&&t.css({top:e.bottom-t.height()}),e.right>=(window.innerWidth||document.documentElement.clientWidth)&&t.css({right:"0",left:"auto"}))},a.dateSelection=function(e,t){!a.enableTime||"time"!==a.showPicker&&"initialValue"!==t||!e&&null==e||(I.isDefined(a.date)&&null!=a.date||(a.date=new Date),e&&null!=e&&((o=new Date(a.date)).setHours(e.getHours()),o.setMinutes(e.getMinutes()),o.setSeconds(e.getSeconds()),o.setMilliseconds(e.getMilliseconds()),e=o)),I.isDefined(e)&&(a.date||(i=(I.isDefined(l.defaultTime)?l:d).defaultTime,r=new Date("2001-01-01 "+i),isNaN(r)||null==e||(e.setHours(r.getHours()),e.setMinutes(r.getMinutes()),e.setSeconds(r.getSeconds()),e.setMilliseconds(r.getMilliseconds()))),a.date=e);var n,i,r,o=a.date?c(a.date,m):null,r=(n=a.date||o,i=new Date(n),r=-i.getTimezoneOffset(),e=0<=r?"+":"-",n=function(e){e=Math.abs(Math.floor(e));return(e<10?"0":"")+e},i.getFullYear()+"-"+n(i.getMonth()+1)+"-"+n(i.getDate())+"T"+n(i.getHours())+":"+n(i.getMinutes())+":"+n(i.getSeconds())+e+n(r/60)+":"+n(r%60));s.val(o),s.attr("data-val",r),f.$setViewValue(o),y&&"initialValue"!==t&&("time"!=a.showPicker&&null!=o?a.enableTime?a.open("time"):a.close(!1):w&&"time"===a.showPicker&&null!=o&&"now"===t&&a.close(!1))},a.$watch("isOpen",function(e){a.dropdownStyle={display:e?"block":"none"},e?(v.openDate=a.date,e=x?t.offset(s):t.position(s),s.closest(".modal")&&200<e.top&&(e.top-=200),a.dropdownStyle.top=x&&!_?e.top+s.prop("offsetHeight")+"px":void 0,a.dropdownStyle.left=e.left+"px",n(function(){a.$broadcast("uib:datepicker.focus"),u.bind("mouseup",F)},0,!1),a.open(a.showPicker)):u.unbind("mouseup",F)}),a.isDisabled=function(e){"today"!==e&&"now"!==e||(e=p.fromTimezone(new Date,timezone));var t={};return I.forEach(["minDate","maxDate"],function(e){a.datepickerOptions[e]?I.isDate(a.datepickerOptions[e])?t[e]=p.fromTimezone(new Date(a.datepickerOptions[e]),timezone):t[e]=new Date(c(a.datepickerOptions[e],"medium")):t[e]=null}),a.datepickerOptions&&t.minDate&&a.compare(e,t.minDate)<0||t.maxDate&&0<a.compare(e,t.maxDate)},a.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},a.select=function(e,t){I.isDefined(t)&&(t.preventDefault(),t.stopPropagation());var n=null;if("today"!==e&&"now"!=e||(t=new Date,I.isDate(a.date)?((n=new Date(a.date)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())):n=t),"clear"===e)return s.val(""),s.attr("data-val",""),f.$setViewValue(""),void a.close(!1);a.dateSelection(n,e),a.$$childHead.date=a.date},a.open=function(e,t){I.isDefined(t)&&(t.preventDefault(),t.stopPropagation()),n(function(){a.showPicker=e,_||keepInView()},0),"time"==e&&n(function(){a.date=T(f.$viewValue)},50)},a.close=function(e,t){I.isDefined(t)&&(t.preventDefault(),t.stopPropagation()),_||(a.isOpen=!1),a.enableDate&&a.enableTime&&(a.showPicker=!1===a.reOpenDefault?"date":a.reOpenDefault),I.isDefined(e)?a.whenClosed({args:{closePressed:e,openDate:v.openDate||null,closeDate:a.date}}):s[0].focus()},a.$on("$destroy",function(){!0===a.isOpen&&(i.$$phase||a.$apply(function(){a.close()})),b.forEach(function(e){e()}),g.remove(),s.unbind("keydown",M),u.unbind("mouseup",F)})}]).directive("datetimePicker",function(){return{restrict:"A",require:["ngModel","datetimePicker"],controller:"DateTimePickerController",scope:{isOpen:"=?",datepickerOptions:"=?",timepickerOptions:"=?",enableDate:"=?",enableTime:"=?",initialPicker:"=?",reOpenDefault:"=?",whenClosed:"&",initialValue:"@"},link:function(r,t,o,a){var e,s=!1;r.initialValue&&$(t).val(r.initialValue),r.$watch(function(){return a[0].$modelValue},function(e){s&&(0==(e=l(e,o.datetimePicker))?t.attr("data-val",""):(e=new Date(e),r.dateSelection(e,"modelChange")))}),r.$watch("initialValue",function(e,t,n){var i;e==t&&s||(i=e,t=a[0],e=a[1],t.$modelValue=t.$viewValue=i,s||(e.init(t),i&&(i=new Date(l(i,o.datetimePicker)),r.date=i,r.dateSelection(i,"initialValue")),s=!0))}),$(t).closest(".field-container").find(".container-btn-vertical-center").length&&(e=$(t).attr("datetime-picker"),$(t).inputmask(e,{placeholder:e}))}}}).directive("datePickerWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/date-picker.html"}}).directive("timePickerWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/time-picker.html"}}),I.module("ui.bootstrap.datetimepicker").run(["$templateCache",function(e){"use strict";e.put("template/date-picker.html",'<ul class="dropdown-menu dropdown-menu-left datetime-picker-dropdown bstrap30 bstrap3-material dnnsf-dropdown-menu" ng-if="isOpen && showPicker == \'date\'" ng-style=dropdownStyle style=left:inherit ng-keydown=keydown($event) ng-click="$event.preventDefault(); $event.stopPropagation()"><li style="padding:0 5px 5px 5px" class=date-picker-menu><div ng-transclude></div></li><li style=padding:5px ng-if=buttonBar.show><span class="btn-group pull-left" style=margin-right:10px ng-if="doShow(\'today\') || doShow(\'clear\')"><button type=button class="btn btn-sm btn-info" ng-if="doShow(\'today\')" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'today\') }}</button> <button type=button class="btn btn-sm btn-danger" ng-if="doShow(\'clear\')" ng-click="select(\'clear\', $event)">{{ getText(\'clear\') }}</button></span> <span class="btn-group pull-right" ng-if="(doShow(\'time\') && enableTime) || doShow(\'close\')"><button type=button class="btn btn-sm btn-default" ng-if="doShow(\'time\') && enableTime" ng-click="open(\'time\', $event)">{{ getText(\'time\')}}</button> <button type=button class="btn btn-sm btn-success" ng-if="doShow(\'close\')" ng-click="close(true, $event)">{{ getText(\'close\') }}</button></span> <span class=clearfix></span></li></ul>'),e.put("template/time-picker.html",'<ul class="dropdown-menu dropdown-menu-left datetime-picker-dropdown bstrap30 bstrap3-material dnnsf-dropdown-menu" ng-if="isOpen && showPicker == \'time\'" ng-style=dropdownStyle style="left:inherit;min-height:0" ng-keydown=keydown($event) ng-click="$event.preventDefault(); $event.stopPropagation()"><li style="padding:0 5px 5px 5px" class=time-picker-menu><div ng-transclude></div></li><li style=padding:5px ng-if=buttonBar.show><span class="btn-group pull-left" style=margin-right:10px ng-if="doShow(\'now\') || doShow(\'clear\')"><button type=button class="btn btn-sm btn-info" ng-if="doShow(\'now\')" ng-click="select(\'now\', $event)" ng-disabled="isDisabled(\'now\')">{{ getText(\'now\') }}</button> <button type=button class="btn btn-sm btn-danger" ng-if="doShow(\'clear\')" ng-click="select(\'clear\', $event)">{{ getText(\'clear\') }}</button></span> <span class="btn-group pull-right" ng-if="(doShow(\'date\') && enableDate) || doShow(\'close\')"><button type=button class="btn btn-sm btn-default" ng-if="doShow(\'date\') && enableDate" ng-click="open(\'date\', $event)">{{ getText(\'date\')}}</button> <button type=button class="btn btn-sm btn-success" ng-if="doShow(\'close\')" ng-click="close(true, $event)">{{ getText(\'close\') }}</button></span> <span class=clearfix></span></li></ul>')}])}(window.dnnsfAngular15||window.angular),"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(i,t){"use strict";var n={_positionClasses:["bottom-left","bottom-right","top-right","top-left","bottom-center","top-center","mid-center"],_defaultIcons:["success","error","info","warning"],init:function(e,t){this.prepareOptions(e,i.toast.options),this.process()},prepareOptions:function(e,t){var n={};"string"==typeof e||e instanceof Array?n.text=e:n=e,this.options=i.extend({},t,n)},process:function(){this.setup(),this.addToDom(),this.position(),this.bindToast(),this.animate()},setup:function(){var e="";if(this._toastEl=this._toastEl||i("<div></div>",{class:"jq-toast-single"}),e+='<span class="jq-toast-loader"></span>',this.options.allowToastClose&&(e+='<span class="close-jq-toast-single">&times;</span>'),this.options.text instanceof Array){this.options.heading&&(e+='<h2 class="jq-toast-heading">'+this.options.heading+"</h2>"),e+='<ul class="jq-toast-ul">';for(var t=0;t<this.options.text.length;t++)e+='<li class="jq-toast-li" id="jq-toast-item-'+t+'">'+this.options.text[t]+"</li>";e+="</ul>"}else this.options.heading&&(e+='<h2 class="jq-toast-heading">'+this.options.heading+"</h2>"),e+=this.options.text;this._toastEl.html(e),!1!==this.options.bgColor&&this._toastEl.css("background-color",this.options.bgColor),!1!==this.options.textColor&&this._toastEl.css("color",this.options.textColor),this.options.textAlign&&this._toastEl.css("text-align",this.options.textAlign),!1!==this.options.icon&&(this._toastEl.addClass("jq-has-icon"),-1!==i.inArray(this.options.icon,this._defaultIcons)&&this._toastEl.addClass("jq-icon-"+this.options.icon))},position:function(){"string"==typeof this.options.position&&-1!==i.inArray(this.options.position,this._positionClasses)?"bottom-center"===this.options.position?this._container.css({left:i(t).outerWidth()/2-this._container.outerWidth()/2,bottom:20}):"top-center"===this.options.position?this._container.css({left:i(t).outerWidth()/2-this._container.outerWidth()/2,top:20}):"mid-center"===this.options.position?this._container.css({left:i(t).outerWidth()/2-this._container.outerWidth()/2,top:i(t).outerHeight()/2-this._container.outerHeight()/2}):this._container.addClass(this.options.position):"object"==typeof this.options.position?this._container.css({top:this.options.position.top||"auto",bottom:this.options.position.bottom||"auto",left:this.options.position.left||"auto",right:this.options.position.right||"auto"}):this._container.addClass("bottom-left")},bindToast:function(){var t=this;this._toastEl.on("afterShown",function(){t.processLoader()}),this._toastEl.find(".close-jq-toast-single").on("click",function(e){e.preventDefault(),"fade"===t.options.showHideTransition?(t._toastEl.trigger("beforeHide"),t._toastEl.fadeOut(function(){t._toastEl.trigger("afterHidden")})):"slide"===t.options.showHideTransition?(t._toastEl.trigger("beforeHide"),t._toastEl.slideUp(function(){t._toastEl.trigger("afterHidden")})):(t._toastEl.trigger("beforeHide"),t._toastEl.hide(function(){t._toastEl.trigger("afterHidden")}))}),"function"==typeof this.options.beforeShow&&this._toastEl.on("beforeShow",function(){t.options.beforeShow()}),"function"==typeof this.options.afterShown&&this._toastEl.on("afterShown",function(){t.options.afterShown()}),"function"==typeof this.options.beforeHide&&this._toastEl.on("beforeHide",function(){t.options.beforeHide()}),"function"==typeof this.options.afterHidden&&this._toastEl.on("afterHidden",function(){t.options.afterHidden()})},addToDom:function(){var e,t=i(".jq-toast-wrap");0===t.length?(t=i("<div></div>",{class:"jq-toast-wrap"}),i("body").append(t)):this.options.stack&&!isNaN(parseInt(this.options.stack,10))||t.empty(),t.find(".jq-toast-single:hidden").remove(),t.append(this._toastEl),!this.options.stack||isNaN(parseInt(this.options.stack),10)||0<(e=t.find(".jq-toast-single").length-this.options.stack)&&i(".jq-toast-wrap").find(".jq-toast-single").slice(0,e).remove(),this._container=t},canAutoHide:function(){return!1!==this.options.hideAfter&&!isNaN(parseInt(this.options.hideAfter,10))},processLoader:function(){if(!this.canAutoHide()||!1===this.options.loader)return!1;var e=this._toastEl.find(".jq-toast-loader"),t=(this.options.hideAfter-400)/1e3+"s",n=this.options.loaderBg,i=(i=e.attr("style")||"").substring(0,i.indexOf("-webkit-transition"));e.attr("style",i+="-webkit-transition: width "+t+" ease-in;-o-transition: width "+t+" ease-in;transition: width "+t+" ease-in; background-color: "+n+";").addClass("jq-toast-loaded")},animate:function(){var e=this;""!==this.options.showHideTransition&&(this._toastEl.hide(),this._toastEl.trigger("beforeShow"),"fade"===this.options.showHideTransition.toLowerCase()?this._toastEl.fadeIn(function(){e._toastEl.trigger("afterShown")}):"slide"===this.options.showHideTransition.toLowerCase()?this._toastEl.slideDown(function(){e._toastEl.trigger("afterShown")}):this._toastEl.show(function(){e._toastEl.trigger("afterShown")})),this.canAutoHide()&&t.setTimeout(function(){"fade"===e.options.showHideTransition.toLowerCase()?(e._toastEl.trigger("beforeHide"),e._toastEl.fadeOut(function(){e._toastEl.trigger("afterHidden")})):"slide"===e.options.showHideTransition.toLowerCase()?(e._toastEl.trigger("beforeHide"),e._toastEl.slideUp(function(){e._toastEl.trigger("afterHidden")})):(e._toastEl.trigger("beforeHide"),e._toastEl.hide(function(){e._toastEl.trigger("afterHidden")}))},(e=this).options.hideAfter)},reset:function(e){("all"===e?i(".jq-toast-wrap"):this._toastEl).remove()},update:function(e){this.prepareOptions(e,this.options),this.setup(),this.bindToast()}};i.toast=function(e){var t=Object.create(n);return t.init(e,this),{reset:function(e){t.reset(e)},update:function(e){t.update(e)}}},i.toast.options={text:"",heading:"",showHideTransition:"",allowToastClose:!0,hideAfter:3e3,loader:!0,loaderBg:"#9EC600",stack:5,position:"bottom-left",bgColor:!1,textColor:!1,textAlign:"left",icon:!1,beforeShow:function(){},afterShown:function(){},beforeHide:function(){},afterHidden:function(){}}}(dnnsfjQuery,window,document),$(document).ready(function(){$(".af-init-onchange").each(function(){$(this).val()&&$(this).change()})}),dnnsf.api.actionForm=new ActionFormApi,showFormPopup=dnnsf.api.actionForm.__exports.showFormPopup,showFormInline=dnnsf.api.actionForm.__exports.showFormInline,hideFormInline=dnnsf.api.actionForm.__exports.hideFormInline,checkIfInitialized=dnnsf.api.actionForm.__exports.checkIfInitialized;
;;;var $jscomp={scope:{},findInternal:function(a,f,c){a instanceof String&&(a=String(a));for(var l=a.length,g=0;g<l;g++){var b=a[g];if(f.call(c,b,g,a))return{i:g,v:b}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[f]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,f,c,l){if(f){c=$jscomp.global;a=a.split(".");for(l=0;l<a.length-1;l++){var g=a[l];g in c||(c[g]={});c=c[g]}a=a[a.length-1];l=c[a];f=f(l);f!=l&&null!=f&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:f})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6-impl","es3");(function(a,f,c){"function"===typeof define&&define.amd?define(["jQuery"],a):"object"===typeof exports?module.exports=a(require("jQuery")):a(f||c)})(function(a){var f=function(b,h,e){var d={invalid:[],getCaret:function(){try{var a,n=0,h=b.get(0),e=document.selection,k=h.selectionStart;if(e&&-1===navigator.appVersion.indexOf("MSIE 10"))a=e.createRange(),a.moveStart("character",-d.val().length),n=a.text.length;else if(k||"0"===k)n=k;return n}catch(A){}},setCaret:function(a){try{if(b.is(":focus")){var p,d=b.get(0);d.setSelectionRange?d.setSelectionRange(a,a):(p=d.createTextRange(),p.collapse(!0),p.moveEnd("character",a),p.moveStart("character",a),p.select())}}catch(z){}},events:function(){b.on("keydown.mask",function(a){b.data("mask-keycode",a.keyCode||a.which);b.data("mask-previus-value",b.val())}).on(a.jMaskGlobals.useInput?"input.mask":"keyup.mask",d.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){b.keydown().keyup()},100)}).on("change.mask",function(){b.data("changed",!0)}).on("blur.mask",function(){c===d.val()||b.data("changed")||b.trigger("change");b.data("changed",!1)}).on("blur.mask",function(){c=d.val()}).on("focus.mask",function(b){!0===e.selectOnFocus&&a(b.target).select()}).on("focusout.mask",function(){e.clearIfNotMatch&&!g.test(d.val())&&d.val("")})},getRegexMask:function(){for(var a=[],b,d,e,k,c=0;c<h.length;c++)(b=m.translation[h.charAt(c)])?(d=b.pattern.toString().replace(/.{1}$|^.{1}/g,""),e=b.optional,(b=b.recursive)?(a.push(h.charAt(c)),k={digit:h.charAt(c),pattern:d}):a.push(e||b?d+"?":d)):a.push(h.charAt(c).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));a=a.join("");k&&(a=a.replace(new RegExp("("+k.digit+"(.*"+k.digit+")?)"),"($1)?").replace(new RegExp(k.digit,"g"),k.pattern));return new RegExp(a)},destroyEvents:function(){b.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(a){var d=b.is("input")?"val":"text";if(0<arguments.length){if(b[d]()!==a)b[d](a);d=b}else d=b[d]();return d},calculateCaretPosition:function(a,d){var h=d.length,e=b.data("mask-previus-value")||"",k=e.length;8===b.data("mask-keycode")&&e!==d?a-=d.slice(0,a).length-e.slice(0,a).length:e!==d&&(a=a>=k?h:a+(d.slice(0,a).length-e.slice(0,a).length));return a},behaviour:function(e){e=e||window.event;d.invalid=[];var h=b.data("mask-keycode");if(-1===a.inArray(h,m.byPassKeys)){var h=d.getMasked(),c=d.getCaret();setTimeout(function(a,b){d.setCaret(d.calculateCaretPosition(a,b))},10,c,h);d.val(h);d.setCaret(c);return d.callbacks(e)}},getMasked:function(a,b){var c=[],p=void 0===b?d.val():b+"",k=0,g=h.length,f=0,l=p.length,n=1,v="push",w=-1,r,u;e.reverse?(v="unshift",n=-1,r=0,k=g-1,f=l-1,u=function(){return-1<k&&-1<f}):(r=g-1,u=function(){return k<g&&f<l});for(var y;u();){var x=h.charAt(k),t=p.charAt(f),q=m.translation[x];if(q)t.match(q.pattern)?(c[v](t),q.recursive&&(-1===w?w=k:k===r&&(k=w-n),r===w&&(k-=n)),k+=n):t===y?y=void 0:q.optional?(k+=n,f-=n):q.fallback?(c[v](q.fallback),k+=n,f-=n):d.invalid.push({p:f,v:t,e:q.pattern}),f+=n;else{if(!a)c[v](x);t===x?f+=n:y=x;k+=n}}p=h.charAt(r);g!==l+1||m.translation[p]||c.push(p);return c.join("")},callbacks:function(a){var f=d.val(),p=f!==c,g=[f,a,b,e],k=function(a,b,d){"function"===typeof e[a]&&b&&e[a].apply(this,d)};k("onChange",!0===p,g);k("onKeyPress",!0===p,g);k("onComplete",f.length===h.length,g);k("onInvalid",0<d.invalid.length,[f,a,b,d.invalid,e])}};b=a(b);var m=this,c=d.val(),g;h="function"===typeof h?h(d.val(),void 0,b,e):h;m.mask=h;m.options=e;m.remove=function(){var a=d.getCaret();d.destroyEvents();d.val(m.getCleanVal());d.setCaret(a);return b};m.getCleanVal=function(){return d.getMasked(!0)};m.getMaskedVal=function(a){return d.getMasked(!1,a)};m.init=function(c){c=c||!1;e=e||{};m.clearIfNotMatch=a.jMaskGlobals.clearIfNotMatch;m.byPassKeys=a.jMaskGlobals.byPassKeys;m.translation=a.extend({},a.jMaskGlobals.translation,e.translation);m=a.extend(!0,{},m,e);g=d.getRegexMask();if(c)d.events(),d.val(d.getMasked());else{e.placeholder&&b.attr("placeholder",e.placeholder);b.data("mask")&&b.attr("autocomplete","off");c=0;for(var f=!0;c<h.length;c++){var l=m.translation[h.charAt(c)];if(l&&l.recursive){f=!1;break}}f&&b.attr("maxlength",h.length);d.destroyEvents();d.events();c=d.getCaret();d.val(d.getMasked());d.setCaret(c)}};m.init(!b.is("input"))};a.maskWatchers={};var c=function(){var b=a(this),c={},e=b.attr("data-mask");b.attr("data-mask-reverse")&&(c.reverse=!0);b.attr("data-mask-clearifnotmatch")&&(c.clearIfNotMatch=!0);"true"===b.attr("data-mask-selectonfocus")&&(c.selectOnFocus=!0);if(l(b,e,c))return b.data("mask",new f(this,e,c))},l=function(b,c,e){e=e||{};var d=a(b).data("mask"),h=JSON.stringify;b=a(b).val()||a(b).text();try{return"function"===typeof c&&(c=c(b)),"object"!==typeof d||h(d.options)!==h(e)||d.mask!==c}catch(u){}},g=function(a){var b=document.createElement("div"),c;a="on"+a;c=a in b;c||(b.setAttribute(a,"return;"),c="function"===typeof b[a]);return c};a.fn.mask=function(b,c){c=c||{};var e=this.selector,d=a.jMaskGlobals,h=d.watchInterval,d=c.watchInputs||d.watchInputs,g=function(){if(l(this,b,c))return a(this).data("mask",new f(this,b,c))};a(this).each(g);e&&""!==e&&d&&(clearInterval(a.maskWatchers[e]),a.maskWatchers[e]=setInterval(function(){a(document).find(e).each(g)},h));return this};a.fn.masked=function(a){return this.data("mask").getMaskedVal(a)};a.fn.unmask=function(){clearInterval(a.maskWatchers[this.selector]);delete a.maskWatchers[this.selector];return this.each(function(){var b=a(this).data("mask");b&&b.remove().removeData("mask")})};a.fn.cleanVal=function(){return this.data("mask").getCleanVal()};a.applyDataMask=function(b){b=b||a.jMaskGlobals.maskElements;(b instanceof a?b:a(b)).filter(a.jMaskGlobals.dataMaskAttr).each(c)};g={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&g("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};a.jMaskGlobals=a.jMaskGlobals||{};g=a.jMaskGlobals=a.extend(!0,{},g,a.jMaskGlobals);g.dataMask&&a.applyDataMask();setInterval(function(){a.jMaskGlobals.watchDataMask&&a.applyDataMask()},g.watchInterval)},window.jQuery,window.Zepto);
;;;(function(factory){if(typeof define==='function'&&define.amd){define(['jQuery'],factory);}else{factory(jQuery);}}(function($){var pluses=/\+/g;function encode(s){return config.raw?s:encodeURIComponent(s);}
function decode(s){return config.raw?s:decodeURIComponent(s);}
function stringifyCookieValue(value){return encode(config.json?JSON.stringify(value):String(value));}
function parseCookieValue(s){if(s.indexOf('"')===0){s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\');}
try{s=decodeURIComponent(s.replace(pluses,' '));return config.json?JSON.parse(s):s;}catch(e){}}
function read(s,converter){var value=config.raw?s:parseCookieValue(s);return $.isFunction(converter)?converter(value):value;}
var config=$.cookie=function(key,value,options){if(value!==undefined&&!$.isFunction(value)){options=$.extend({},config.defaults,options);if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days);}
return(document.cookie=[encode(key),'=',stringifyCookieValue(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''));}
var result=key?undefined:{};var cookies=document.cookie?document.cookie.split('; '):[];for(var i=0,l=cookies.length;i<l;i++){var parts=cookies[i].split('=');var name=decode(parts.shift());var cookie=parts.join('=');if(key&&key===name){result=read(cookie,value);break;}
if(!key&&(cookie=read(cookie))!==undefined){result[name]=cookie;}}
return result;};config.defaults={};$.removeCookie=function(key,options){if($.cookie(key)===undefined){return false;}
$.cookie(key,'',$.extend({},options,{expires:-1}));return!$.cookie(key);};}));
;;;(function(angular){angular.module('blueimp.fileupload',[]);angular.module('afControls',['dnnsf','blueimp.fileupload']);})(window.dnnsfAngular15||window.angular);var afApp=(function($,angular){var formRoot;const timeZoneOffset=new Date().getTimezoneOffset();angular.module('afControls').factory('afSettings',function(){return{settings:{}}});function ActionFormCtrl($scope,$http,$timeout,$sce,$cookieStore,$element,dataSources,dnnsf,afSettings,dnnsfHttp){$scope.dnnsf=dnnsf;$scope.$sce=$sce;$scope.Math=Math;$scope.testTags=[];$scope.form={fields:[]};$scope.getField=function(htmlElement){var field=_.find(_.values($scope.form.fields),function(_field){return _field.id===htmlElement.id;});if(!field)return null;return field;};$scope.controls={};$scope.registerControl=function(control){var controlKey=control.field.TitleCompacted||control.field.name;$scope.controls[controlKey]=control;};$scope.parse=function(val){if(val===undefined||val===null)
return false;val=val.constructor===Array?val.toString():val.toString().replace(/,(\d{3})/g,'$1');if($.isNumeric(val))
return parseFloat(val);if(val.toLowerCase()=="true")
return true;if(val.toLowerCase()=="false")
return false;return val;};$scope.load=function(mid){formRoot=$('#dnn'+mid+'root');var res=dnnsf.api.actionForm.getSettings(mid);if(res.Data.error){alert('Error: '+res.Data.error);return;}
$scope.form=res.Data;$scope.settings=afSettings.settings=res.Settings;$scope.$$=$;$scope.form.dirty=function(){return formRoot.find('.ng-dirty').length>0;}
$(document).mouseup(function(e){var container=$(".field-container.checkbox-list .panel.panel-default");if(!container.is(e.target)&&container.has(e.target).length===0){$.each($scope.form.fields,function(i,field){if(field.show){setTimeout(function(){field.show=false;$scope.$apply();},0);}});}});$.each(res.Settings.Fields,function(i,f){res.Settings.Fields[f.TitleCompacted]=f;});var createOnChangeHandler=function(_scope,fieldId,onChangeScript){var refresh=function(){console.warn('The refresh() method is obsolete. Please use the $timeout service that is now provided in the context of the script execution.');var scope=_scope;while(scope){if(scope.$$phase){return;}}
_scope.$apply();};var onChangeFunc=new Function('form','item','scope','refresh','$timeout',onChangeScript);return function(form,item){try{var field=$('#'+fieldId);var allowSubmit=onChangeFunc.call(field,form,item,_scope,refresh,$timeout);var fieldElement=field[0];if(fieldElement){fieldElement.preventSubmit=false;if(allowSubmit===false){fieldElement.preventSubmit=true;}}}catch(e){console.error('Error running Action Form on change script',e);}}}
$.each($scope.form.fields,function(k,field){if(field.onChange){field.onChange=createOnChangeHandler($scope,field.id,field.onChange);}
if(field.options){field.ddValue=field.tbValue=field.value;if(_.find(['closed-multiple-dropdown','closed-multiple-checkbox','dropdown-checkboxes'],function(type){return field.type==type;})){field.getValue=function(value){return value.indexOf('/')===0?value.substring(1):value;}}
if(field.type=='closed-multiple-checkbox'||field.type=='dropdown-checkboxes'){var selItems=field.value;$.each(field.options,function(k,oItem){oItem.selected=$.inArray(oItem.value,selItems)!=-1;});}else{for(var i=0;i<field.options.length;i++)
if(field.options[i].value==field.value){field.selected=field.options[i];break;}}
var other=$.grep(field.options,function(oOpt,iOpt){return oOpt.filter=='other';});other=other.length?other[0]:null;if(other&&field.value&&$.grep(field.options,function(oOpt,iOpt){return oOpt.value==field.value;}).length==0){field.ddValue=other.value;field.otherValue=field.value;field.selected=_.filter(field.options,function(o){return o.filter=="other";})[0];}
if(field.type=='address-region'){$scope.setRegionFieldValue=function(source){switch(source){case'dropdown':{if(field.ddValue!=='Other'){field.tbValue=field.otherValue='';field.value=field.ddValue;field.showOtherTextbox=false;if(field.value&&field.countryField){var selectedRegion=_.find($scope.countries[field.countryField].regions,function(obj){return obj.value==field.value;});field.viewValue=selectedRegion?selectedRegion.text:field.value;}}else{field.value='';field.showOtherTextbox=true;field.otherValue=field.value;}
break;}
case'textbox':{field.ddValue=field.otherValue='';field.value=field.tbValue;break;}
case'other':{field.ddValue='Other';field.value=field.otherValue;field.showOtherTextbox=true;break;}}}}
if(field.type=='closed-multiple-checkbox'||field.type=='dropdown-checkboxes'){$scope.concatValues(field);$scope.$watch('form.fields.'+field.name+'.value',function(){var selItems=field.value;$.each(field.options,function(k,oItem){oItem.selected=$.inArray(oItem.value,selItems)!=-1;});},true);field.checkAll=function(){$.each(field.options,function(k,oItem){if(field.visible!==false)
oItem.selected=true;});setTimeout(function(){field.onChange&&field.onChange($scope.form,field);$("[name='"+field.id+"']").valid();},0)};field.uncheckAll=function(){$.each(field.options,function(k,oItem){if(field.visible!==false)
oItem.selected=false;});setTimeout(function(){field.onChange&&field.onChange($scope.form,field);$("[name='"+field.id+"']").valid();},0)};}else{$scope.$watch('form.fields.'+field.name+'.value',function(newValue,oldValue){newValue!==oldValue&&setDropdownSelected(field,newValue);});}
if(field.linkedTo){if(!_.find(field.options,function(option){return field.tbValue.constructor===Array?$.inArray(option.value,field.tbValue)!=-1:option.value==field.tbValue})){field.value='';}
$.each($.map(field.linkedTo.split(','),function(x){return x.trim()}),function(i,linkedField){$scope.$watch('form.fields.'+linkedField+'.value',function(newValue,oldValue){if(typeof newValue!='undefined'&&!angular.equals(newValue,oldValue)){console.log($scope.form.fields[linkedField]);$scope.getFieldData(field);}});$scope.$watch('form.fields.'+linkedField+'.options',function(newValue,oldValue){if(typeof newValue!='undefined'&&$scope.form.fields[linkedField].linkedTo){$scope.getFieldData(field);}},true);});}
if(field.options.length){field.optionsFilters=[];$.each(field.options,function(ii,oo){if($.inArray(oo.filter,field.optionsFilters)==-1)
field.optionsFilters.push(oo.filter);});field.optionsNames=[];field.optionsByName={};$.each(field.options,function(ii,oo){if(!field.optionsByName[oo.text]){field.optionsNames.push(oo.text);field.optionsByName[oo.text]=[];}
field.optionsByName[oo.text].push(oo);});}}
if(field.type==='open-dnn-editor'){var dnnTextEditorIframe=$('#'+field.id);if(dnnTextEditorIframe.length&&dnnsf.canAccessIFrame(dnnTextEditorIframe[0])&&dnnTextEditorIframe[0].contentWindow.getContent){dnnTextEditorIframe.attr("data-content",field.value);dnnTextEditorIframe[0].contentWindow.setContent(field.value);}}});if($scope.form.onLoad){eval('( function(form) { var $scope = scope = this; try { '+$scope.form.onLoad+'; } catch (e) { console.log(\'Error running Action Form on load script\', e); } } )').call($scope,$scope.form);}
if($scope.form.SaveInCookie){var saveInCookiesTimer;function saveInCookies(){$timeout.cancel(saveInCookiesTimer);saveInCookiesTimer=$timeout(function(){var saveData=getFormData($element.closest('.form-root'));dnnsfHttp($scope.settings.ModuleId,{method:'POST',url:$scope.form.submitUrl+"&event=autosave&submission="+($scope.form.submissionKey||''),headers:{'Content-Type':'application/x-www-form-urlencoded'},data:$.param(saveData)}).then(function(response,status){$cookieStore.put($scope.form.SaveInCookie,response.data.submissionKey,{path:'/',expires:365});});},500);}
$scope.$watch('form.fields',saveInCookies,true);}
$scope.showLoader=false;formRoot.find('.c-form.hidden').removeClass('hidden');dnnsf.events.emit('formLoaded');setTimeout((_)=>{$scope.checkBootstrapIsLoaded();},1000);};$scope.checkBootstrapIsLoaded=function(){if(!dnnsf.isEditor)
return;if(afSettings.FormTemplateUiLibrary=='Unknown')
return;var bs3Loaded=dnnsf.bootstrap3Loaded();var bs5Loaded=dnnsf.bootstrap5Loaded();if(!bs5Loaded&&bs3Loaded)
return;if(!bs3Loaded){var err=`This form template requires Bootstrap 3 to run correctly. <br />
                       Change the template in Form Settings or
                       include Bootstrap 3 in your skin or under Site Settings / Site Behavior / Default Pages / HTML Page Header Tags.
                       This warning is only shown to admins.<br />
                       <a href="https://getbootstrap.com/docs/3.4/getting-started/">Read more</a>.`;}else{var err=`Both Bootstrap 3 and Bootstrap 5 are loaded on the page, which might result in unexpected behavior.
                           Consider removing Bootstrap 5 or change the Form Template to match. <br />
                           This warning is only shown to admins.`;}
$('#dnn'+afSettings.settings.ModuleId+'root').append(`<div class="af-warning" role="alert">${err}</div>`);};function setDropdownSelected(field,val){for(var i=0;i<field.options.length;i++)
if(field.options[i].value==val){field.selected=field.options[i];break;}}
$scope.refreshCaptcha=function(mid,fieldName){var field=$scope.form.fields[fieldName];var svcFramework=$.ServicesFramework(mid);var apiUrl=svcFramework.getServiceRoot("DnnSharp/ActionForm");dnnsfHttp($scope.settings.ModuleId,{method:'GET',url:apiUrl+'RefreshField/Captcha?_portalId= '+dnnsf.portalId+'&tabId='+dnnsf.tabId+'&_alias='+dnnsf.alias+'&_mid='+mid+'&language='+dnnsf.locale+'&fieldId='+field.fieldId+'&fieldName='+fieldName,headers:{'Content-Type':'application/x-www-form-urlencoded'}}).then(function(response){$timeout(function(){$scope.form.fields[fieldName].value=response.data.CaptchaEncrypted;$('#dnn'+mid+fieldName+'captchaenc').val(response.data.CaptchaEncrypted);$('#dnn'+mid+'root').find("img[data-fieldid="+field.fieldId+"]").attr('src',response.data.ImageUrl);});});}
$scope.getFieldData=function(field){$timeout(function(){var saveData=getFormData($element.closest('.form-root'));field.$_loading=true;dnnsfHttp($scope.settings.ModuleId,{method:'POST',url:$scope.form.getItemsUrl+"&fieldId="+$scope.form.fields[field.name].fieldId+'&fieldName='+field.name,headers:{'Content-Type':'application/x-www-form-urlencoded'},data:$.param(saveData)}).then(function(result){var data=result.data;$('#'+field.id).closest('.field-container').removeClass('has-error').find('span.text-danger').html('');if(data.error){data.validationErrors=[{'fieldId':field.name,'message':data.error}];delete data.error;parseFormResponse2(formRoot,null,data);field.$_loading=false;field.options=[];field.value='';return;}
field.options=data;var found=false;for(var i=0;i<field.options.length;i++)
if(field.tbValue.constructor===Array?$.inArray(field.options[i].value,field.tbValue)!=-1:field.options[i].value==field.tbValue){field.selected=field.options[i];if(field.tbValue.constructor===Array){$.each(field.tbValue,function(i,v){$.each(field.options,function(j,k){k.value==v&&(field.options[j].selected=true);found=true;});});}else{_.forEach(field.options,function(option,index){if(option.value===field.tbValue){option.selected=true;found=true;return false;}});}
field.value=field.tbValue;break;}
if(!found)
field.value='';$scope.concatValues(field);field.$_loading=false;});});};$scope.concatValues=function(ctl){if(!ctl.options)
return;var vals=[];var texts=[];$.each(ctl.options,function(k,o){if(o.selected&&o.visible!==false){vals.push(o.value);texts.push(o.text);}});ctl.value=vals;if(ctl.selectedItemsText)
texts.length==0?ctl.text=localization.dropdownNoSelection:ctl.text=localization.dropdownSelectedBefore+' '+texts.length+' '+localization.dropdownSelectedAfter;else
texts.length==0?ctl.text=localization.dropdownNoSelection:ctl.text=texts.join(',');};$scope.countries={};$scope.wireRegion=function(regionField,countryField){if(!$scope.countries[countryField])
$scope.countries[countryField]={regionFields:[]};$scope.countries[countryField].regionFields.push(regionField);$scope.loadRegions(regionField,countryField,function(){var field=$scope.form.fields[regionField];var regions=$scope.countries[countryField].regions;if(regions.length){for(var i=0;i<regions.length;i++)
if(regions[i].value==field.value){$scope.form.fields[regionField].ddValue=regions[i].value;return;}
for(var i=0;i<regions.length;i++)
if(regions[i].text==field.value){$scope.form.fields[regionField].ddValue=regions[i].value;return;}
if(field.otherTextbox&&$scope.initCountry){$scope.initCountry=false;var isValueInOptions=$.grep(field.options,function(option,iOpt){return option.value==field.value;}).length>0;if(!isValueInOptions&&field.value){field.ddValue='Other';field.otherValue=field.value;field.showOtherTextbox=true;return;}}
$scope.setRegionFieldValue('dropdown');}});};$scope.loadRegions=function(regionField,countryField,fnDone){dnnsf.log('loadRegions',countryField,$scope.countries[countryField],$scope.form.fields[countryField]);$scope.$watch('form.fields.'+countryField,function(){if(!$scope.countries[countryField]||!$scope.form.fields[countryField])
return;$scope.countries[countryField].loading=true;var field=$scope.form.fields[regionField];var data={};data[countryField]=$scope.form.fields[countryField].value;dnnsfHttp($scope.settings.ModuleId,{method:'POST',url:$scope.form.getItemsUrl+"&fieldId="+field.fieldId+'&fieldName='+field.name,headers:{'Content-Type':'application/x-www-form-urlencoded'},data:$.param(data)}).then(function(result){$scope.countries[countryField].loading=false;$scope.countries[countryField].regions=result.data;if($scope.countries[countryField].regions.length){$.each($scope.countries[countryField].regionFields,function(i,regionField){$scope.form.fields[regionField].countryField=countryField;if($scope.form.fields[regionField]){$scope.form.fields[regionField].ddValue="";$scope.form.fields[regionField].tbValue="";$scope.form.fields[regionField].otherValue="";}});}else{$.each($scope.countries[countryField].regionFields,function(i,regionField){if($scope.form.fields[regionField]){$scope.form.fields[regionField].ddValue="";$scope.form.fields[regionField].tbValue="";$scope.form.fields[regionField].otherValue="";}});}
fnDone&&fnDone();});},true);};$scope.showSelected=function(node,selected,name){if(selected){$scope.form.fields[name].value=node.value;$scope.form.fields[name].text=node.text;}else{$scope.form.fields[name].value="";$scope.form.fields[name].text="";}}
$scope.closeDropdown=function(e,name){$scope.form.fields[name].showdrop=false;$scope.$apply();}
$scope.uptStarRating=function(value,name){$scope.form.fields[name].value=value;}
$scope.updateField=function(field,val){$scope.form.fields[field].value=val;if($scope.form.fields[field].options&&$scope.form.fields[field].options.length){setDropdownSelected($scope.form.fields[field],val);}
$scope.form.fields[field].onChange&&$scope.form.fields[field].onChange($scope.form,field);}}
ActionFormCtrl.$inject=['$scope','$http','$timeout','$sce','$cookieStore','$element','dataSources','dnnsf','afSettings','dnnsfHttp'];var initForm=function(options,fnDone){var formRoot;var svcFramework=$.ServicesFramework(options.moduleId);options.apiUrl=svcFramework.getServiceRoot("DnnSharp/ActionForm");options.adminApiUrl=options.virtualDirectory+"/DesktopModules/DnnSharp/ActionForm/AdminApi.ashx";if(options){dnnsf.portalId=options.portalId;}
var formSettings=dnnsf.api.actionForm.getSettings(options.moduleId);var queryString=$.extend({},dnnsf.getUrlParts(location.search).query,formSettings&&!$.isEmptyObject(formSettings.passQs)&&formSettings.passQs,options.qs&&!$.isEmptyObject(options.qs)&&options.qs);dnnsf.api.actionForm.patchSettings(options.moduleId,{options:options});$('#'+options.rootElementClientId).addClass(options.cssName);$('#'+options.rootElementClientId).attr({'af-name':options.popupSettings.name,'data-moduleid':options.moduleId});if(options.openMode!="Always"&&!options.manualMode){window['showFormPopup'+options.moduleId]=function(){dnnsf.api.actionForm.openPopupById(options.moduleId);};window['hideFormPopup'+options.moduleId]=function(){$('#dnn'+options.moduleId+'popup').modal('hide')}
window['showFormInline'+options.moduleId]=function(){dnnsf.api.actionForm.initForm(options.moduleId);showFormInline(options.moduleId,options.rootElementClientId);}
window['hideFormInline'+options.moduleId]=function(){hideFormInline(options.moduleId,options.rootElementClientId);}
if(!options.manualMode&&options.openMode!="Always"&&options.openMode!="Manual")
$('#'+options.rootElementClientId).html($('<div class="frontEndTemplate"></div>').html(options.frontEndTemplate));return;}else{setTimeout(function(){options.showLoading&&$('#'+options.rootElementClientId+' > .common-loading-container').show();options.tabsProLoading&&$('#'+options.rootElementClientId).closest('.tab-pane').hasClass('active')&&dnnsf.events.broadcast('loadForm',{'loading':true,moduleId:options.moduleId});dnnsf.initStickyLoading(options.rootElementClientId);},0);(!options.manualMode&&options.openMode!="Always")&&$('#'+options.rootElementClientId).html($('<div class="frontEndTemplate"></div>').html(options.frontEndTemplate));}
$.extend(queryString,{'_portalId':options.portalId,'referrer':document.referrer,'openMode':options.openMode==="Manual"?options.manualMode:options.openMode,'_tabId':options.tabId,'_alias':options.alias,'_mid':options.moduleId,'_url':document.URL});$.ajax({headers:{"DNNSF-Time-Offset":timeZoneOffset,"RequestVerificationToken":svcFramework.getAntiForgeryValue()},url:options.apiUrl+'/settings/initializeForm?'+$.param(queryString)+(options.dnnPageQuery?'&'+options.dnnPageQuery:''),type:"post",data:options.requestForm,async:true,success:function(res){res.CssIncludes&&res.CssIncludes.forEach(function(cssPath){dnnsf.includeCss(cssPath);});if(!res.Html){dnnsf.api.actionForm.hideFormLoading(options.moduleId);}
$('#'+options.rootElementClientId).find('.af-alert').remove();options.hasErrors=false;if(res.ResultType=="ActionResult"){options.manualMode=="Popup"&&(dnnsf.api.actionForm.isFormPopupOpen['formPopup'+options.moduleId]=false);parseFormResponse(res.ActionResult,{error:function(err){options.hasErrors=true;var pnlMessage=$('<div class="af-alert alert alert-danger"></div>').html(res.ActionResult.Error);$('#'+options.rootElementClientId).html($('<div class="frontEndTemplate"></div>').append(pnlMessage));}});}
res.Settings.apiUrl=options.apiUrl;res.Settings.timeZoneOffset=timeZoneOffset;dnnsf.api.actionForm.patchSettings(options.moduleId,res);if(!$.isEmptyObject(res.ActionResult)&&res.ActionResult.Content){formRoot=$(res.ActionResult.Content);var pnlMessage=$('<div class="af-alert alert alert-info"></div>').append(formRoot);$('#'+options.rootElementClientId).append(pnlMessage);}else{$('#'+options.rootElementClientId).find('#dnn'+options.moduleId+'root').length?$('#dnn'+options.moduleId+'root').replaceWith(res.Html):$('#'+options.rootElementClientId).append($.parseHTML(res.Html));dnnsf.loadJsFromHtml(res.Html);formRoot=$('#dnn'+options.moduleId+'root');}
if(res.JsIncludes.length){res.JsIncludes.forEach(function(jsPath,index,array){if(index!==array.length-1){$.getScript(jsPath);}else{$.getScript(jsPath,function(){initFormController();fnDone&&fnDone();});}});}else{initFormController();fnDone&&fnDone();}},error:function(err){console.error(this.url,err)
options.hasErrors=true;var pnlMessage=$('<div class="af-alert alert alert-info"></div>').html(err.responseText);$('#'+options.rootElementClientId).html($('<div class="frontEndTemplate"></div>').append(pnlMessage));}});function initFormController(){if(options.hasErrors)return;if(!formRoot.length||formRoot[0].initialized)
return;formRoot[0].onFormSubmit=formRoot[0].onFormSubmit||[];formRoot[0].initialized=true;dnnsf.init($,options);dnnsf.localization=localization=dnnsf.api.actionForm.getSettings(options.moduleId).Localization;dnnsf.useLocalization&&dnnsf.useLocalization();var app=angular.module('ActionForm'+formRoot.attr('id'),['ngSanitize','ngAnimate','dnnsf','afControls','loadOnDemand','ui.bootstrap','ui.bootstrap.datetimepicker']);var dynamicDependencies=['ui.bootstrap.contextMenu','cp.ngConfirm']
$.each(dynamicDependencies,function(i,dep){try{if(angular.module(dep))
app.requires.push(dep);}catch(e){}});app.run(["$http",function($http){$http.defaults.headers.common["DNNSF-Time-Offset"]=timeZoneOffset;}]);app.controller('ActionFormCtrl',ActionFormCtrl);app.directive('hasRepeaters',[function(){return{restrict:'A',priority:Number.MIN_SAFE_INTEGER,scope:false,link:function(scope){setTimeout(function(){if(!scope.$root.repeaters){options.showLoading&&$('#'+options.rootElementClientId+' > .common-loading-container').hide();options.tabsProLoading&&dnnsf.events.broadcast('loadForm',{'loading':false,moduleId:scope.settings.ModuleId});}},0)}}}]);app.directive('addCustomAttributes',[function(){return{restrict:'A',scope:false,link:function(scope,element,attrs){if(scope.settings.Fields[attrs.afField]){var customAttributesList=scope.settings.Fields[attrs.afField].CustomAttributes;customAttributesList.forEach(function(attribute){element.attr(attribute.name,attribute.value);});}}}}]);app.directive('repeatDone',[function(){return{restrict:'AE',scope:false,link:{pre:function(scope,element,attrs){scope.$root.repeaters=true;},post:function(scope,element,attrs){setTimeout(function(){if(scope.$last){options.showLoading&&$('#'+options.rootElementClientId+' > .common-loading-container').hide();options.tabsProLoading&&dnnsf.events.broadcast('loadForm',{'loading':false,moduleId:scope.settings.ModuleId});}},0);}}}}]);app.directive('maxSelection',[function(){return{restrict:'AE',scope:{value:'=',maxSelection:'=',ngModel:'='},link:{post:function(scope,element,attrs){scope.$watch('value',function(newValue,oldValue){if((newValue!==oldValue&&newValue.length===scope.maxSelection)||scope.maxSelection<=0){element.attr('disabled',!scope.ngModel);}else{element.attr('disabled',false);}});}}}}]);app.factory('dataSources',['$http','dnnsf',function($http,dnnsf){return{get:function(settings,fnReady){var p=$.extend({},settings,{Method:'GetData',tabId:options.tabId,mid:options.moduleId,alias:options.alias});$http({method:'GET',url:options.adminApiUrl+'?'+$.param(p),cache:true}).then(function(response,status){fnReady&&fnReady(response.data);});}};}]);app.provider('$cookieStore',[function(){var self=this;self.defaultOptions={};self.setDefaultOptions=function(options){self.defaultOptions=options;};self.$get=function(){return{get:function(name){var jsonCookie=$.cookie(name);if(jsonCookie){return angular.fromJson(jsonCookie);}},put:function(name,value,options){options=$.extend({},self.defaultOptions,options);$.cookie(name,angular.toJson(value),options);},remove:function(name,options){options=$.extend({},self.defaultOptions,options);$.removeCookie(name,options);}};};}]);app.directive('dropdownWatch',['$interval',function($interval){return{restrict:'A',scope:{dropdownName:'=',disableCheckboxes:'@'},controller:['$scope','$element',function($scope,$element){$scope.dropdownName.show=false;var dropdownPanel=$element.parent().parent().next().children('.panel');var disabled=$element[0].disabled;if(disabled&&$scope.disableCheckboxes==="True"){$element.prop("disabled",false);}
$scope.$watch("dropdownName.show",function(newVal,oldVal){if(!newVal)
return;if(disabled&&$scope.disableCheckboxes==="True"){dropdownPanel.find('a').parent().addClass("dnnsf-disabled-checkboxes");dropdownPanel.find('.normalCheckBox').each(function(){$(this).prop("disabled",true).addClass("disabled").parent().addClass("not-allowed");});}
var dropdownOpen=$interval(function(){if(dropdownPanel.width()>0){resizeDropdown(dropdownPanel,$scope.dropdownName);$interval.cancel(dropdownOpen);}},50);});function resizeDropdown(dropdownPanel,dropdownName){if(dropdownPanel.attr('data-window-width')==$(window).width())
return;if(dropdownName.show){dropdownPanel.css('opacity','0');if(dropdownPanel.attr('data-window-width')){dropdownPanel.width(dropdownPanel.width()-15);dropdownPanel.attr('style','');}
dropdownPanel.css('display','table');var inputWidth=dropdownPanel.parent().prev().children().first().width();var contentWidth=dropdownPanel.width()+15;var rect=dropdownPanel[0].getBoundingClientRect();var windowWidth=$(window).width();dropdownPanel.attr('data-window-width',windowWidth);dropdownPanel.css('display','inline-block');if(inputWidth>contentWidth){dropdownPanel.width(inputWidth);dropdownPanel.parent().width(inputWidth);dropdownPanel.css('opacity','1');}
else{if(rect.right>windowWidth){contentWidth=contentWidth-(rect.right-windowWidth)-15;dropdownPanel.css('overflow-x','scroll');}
dropdownPanel.width(contentWidth);dropdownPanel.parent().width(contentWidth);dropdownPanel.css('opacity','1');}}};}]};}]);app.directive('maxNumber',[function(){return{restrict:'A',require:'ngModel',link:function(scope,element,attrs,ngModel){if(typeof parseFloat(attrs.maxNumber)=='number'){scope.$watch(attrs.ngModel,function(newVal,oldVal){if(newVal>parseFloat(attrs.maxNumber)){ngModel.$setViewValue(parseFloat(attrs.maxNumber));ngModel.$render();$(element).closest('.form-group').addClass('has-error');setTimeout(function(){$(element).closest('.form-group').removeClass('has-error');},1000);}})}}}}]);app.directive('inputMask',function(){return{restrict:'A',link:function(scope,el,attrs){delete $.jMaskGlobals.translation['#'];var label=attrs.placeholder||"";var mask=attrs.inputMask.replace(/[0-9a-zA-Z]/g,'_');var maskOptionsObject={translation:{'9':{pattern:/\d/,optional:true},'a':{pattern:/[a-zA-Z]/},'*':{pattern:/[0-9a-zA-Z]/}},placeholder:label||mask};var parsedMaskOptions;if(attrs.maskOptions){try{parsedMaskOptions=JSON.parse(attrs.maskOptions);}catch(error){console.error("Couldn't parse JSON in "+attrs.afFieldTitle+" Mask Options")}}else{parsedMaskOptions={}}
$(el).mask(attrs.inputMask,$.extend(maskOptionsObject,parsedMaskOptions));el.on('focus',function(){el.attr('placeholder',mask);})
el.on('keyup blur',function(){label&&el.attr('placeholder',label);el.trigger('change');});if(scope.form.fields[attrs.afField].value){setTimeout(function(){el.trigger('input');},0);}}};});app.directive('onblur',function(){return{restrict:'A',scope:{onblur:'&'},link:function(scope,el,attrs){$(el).parents('.element-area:first').click(function(e){e.stopPropagation();});$(document).click(function(){scope.onblur();scope.$apply();});}};});app.directive('domWatch',function(){return{restrict:'A',link:function(scope,el,attrs){$(el).on(attrs.domWatch,function(){scope.$eval(attrs.ngModel+"='"+el.val()+"'");scope.$apply();});}};});app.directive('afBindvalue',['$compile','$timeout','$parse',function($compile,$timeout,$parse){return{restrict:'A',scope:false,require:'ngModel',link:function(scope,element,attrs,ngModel){var options=null;if(attrs.afBindfrom)
options=scope.$eval(attrs.afBindfrom);if(element.filter(':input').length==0){ngModel.$render=function(){if(ngModel.$viewValue===undefined||ngModel.$viewValue===null)
return;if(!element.hasClass('model-only'))
element.html(ngModel.$viewValue);};}
scope.$watch(attrs.afBindvalue,function(value){if(!scope.form.fields||!scope.form.fields[attrs.afField])
return;var field=scope.form.fields[attrs.afField];if(field.touched)
return;if(attrs.afBindfrom){var options=scope.$eval(attrs.afBindfrom);if(!options)
return;var optionsFound=$.grep(options,function(o){return o.value===value});if(optionsFound.length>0){ngModel.$setViewValue(optionsFound[0]);};}
else{ngModel.$setViewValue(value);}
ngModel.$render();});}};}]);app.directive('afRichedit',['$compile','$timeout','$parse',function($compile,$timeout,$parse){return{require:'ngModel',link:function(scope,elm,attrs,ngModel){var fnInitRichEdit=function(){if(!$(elm).is(':visible')){$timeout(fnInitRichEdit,200);return;}
$(elm).wysiwyg({autoGrow:false,maxHeight:600,initialMinHeight:50,initialContent:'',brIE:false,replaceDivWithP:true,events:{save:function(){try{ngModel.$setViewValue(this.getContent());}catch(e){}}}});$('.wysiwyg [role="menuitem"]').each(function(){var l=localization['wysiwyg.'+$(this).attr('class')];l&&$(this).attr('title',l);});ngModel.$render=function(){$(elm).wysiwyg('setContent',ngModel.$viewValue||'');};$(elm).width('100%');};$timeout(fnInitRichEdit,100);}};}]);!window.dnnsfAngularLock&&angular.bootstrap(formRoot,['ActionForm'+formRoot.attr('id')]);var $_scope=angular.element(formRoot).scope();$.fn.popover&&formRoot.find('span.popupOnHover').popover({trigger:'hover'});function findErrorElement(sourceElement,errorElementClass){var errorElement=sourceElement.find(errorElementClass);if(!errorElement.length)
errorElement=sourceElement.closest('.field-container').find(errorElementClass);if(!errorElement.length){errorElement=sourceElement.closest('.field-container').siblings(errorElementClass);}
return errorElement;}
var validationSettings={errorElement:'span',errorClass:'text-danger',highlight:function(element,errorClass){$(element).parents('.field-container:first').addClass('has-error');},unhighlight:function(element,errorClass){if($(element).hasClass('ignore')){return;}
$(element).removeAttr('aria-describedby');var fieldsGroup=element.attributes['class']?element.attributes['class'].value.match(/(group\d+-AtLeastOneIsFilled)/):'',AtLeastOneIsFilled=fieldsGroup?$(element).closest('.form-root').find('.form-group .'+fieldsGroup[0]+':not(.required)'):'';if(AtLeastOneIsFilled.length&&!$(element).hasClass('required')){$.each(AtLeastOneIsFilled,function(index,input){if(input.type!='checkbox'&&input.type!='radio'){$(input).parent().removeClass('has-error');}else{$(input).closest('.form-group div.has-error').removeClass('has-error');}});$(element).next('.text-danger').hide();}
else{$(element).parents('.field-container:first').removeClass('has-error').find('.text-danger').hide();}},errorPlacement:function(error,element){var elementId=element.attr('id')||element.closest('.field-container').find('[data-ng-model]').attr('id')
error.attr({'id':'error-'+elementId,'role':'alert'});element.attr('aria-describedby','error-'+elementId);if(element.hasClass('multiple-choice-checkbox')){var parentElement=element.closest('.checkbox-list');error.attr('id','error-'+parentElement.attr('id'));element.attr('aria-describedby','error-'+parentElement.attr('id'));}
var errPlace=findErrorElement(element,'.err-placeholder');if(errPlace.length){if(errPlace.find('span.text-danger').text()!=error.text())
errPlace.append(error);}else{if(element.is(':checkbox')||element.is(':radio')){element.parent().append(error);}else{element.next().is('.text-danger')?element.next().replaceWith(error):error.insertAfter(element.filter(function(){return!element.closest('.field-container').hasClass('ng-hide')}));}
var tabParent=element.closest('.tab-pane');tabParent.length&&!tabParent.hasClass('active')&&$('[href="#'+tabParent.attr('id')+'"]').addClass('has-error');}},success:function(element){element.closest('.field-container').addClass("is-valid")},onkeyup:function(element){return true},ignore:'.ignore,:hidden,:disabled,.flatpickr-time .numInput',}
if(options.onFocusoutValidation){_.assign(validationSettings,{onfocusout:function(element){if($(element).hasClass('ignore-focusout-validation'))
return true;$(element).valid();},onkeyup:$.noop});}else{_.assign(validationSettings,{onkeyup:function(element){$(element).valid();}});}
formRoot.validate&&formRoot.validate(validationSettings);$.validator&&$.validator.addMethod("required-file",function(value,element){return value!==""||$(element).scope().queue.length||$(element).scope().loadedFiles.length;});$.validator&&$.validator.addMethod("required-fromclass",function(value,element){return $(element).hasClass('afvalid');});$.validator&&$.validator.addMethod("required-cblist",function(value,element){var group=$(element).attr('data-validation-group');var valid=false;$('[data-validation-group="'+group+'"]').each(function(){if(this.checked)
valid=true;});return valid;},localization.validation.required);$.validator&&$.validator.addMethod("required-ddwithcb",function(value,element){var cboxes=$(element).closest('.field-container').find(':checkbox');var valid=false;$.each(cboxes,function(i,v){if($(v).is(':checked'))
valid=true;});return valid;},localization.validation.required);$.validator&&$.validator.addMethod("required-dnnsf",function(value,element){if(element.nodeName.toLowerCase()==="select"){var val=$(element).val();return val&&val.length>0;}
if(this.checkable(element)){return this.getLength(value,element)>0;}
if($_scope.form.RequiredFieldAllowsWhiteSpace){return value.length>0;}
else{return $.trim(value).length>0;}},localization.validation.required);formRoot.find('[data-password-confirm]').each(function(){$(this).rules("add",{equalTo:'#'+$(this).attr('data-password-confirm'),messages:{equalTo:localization['validation.passwordNoMatch']}});});formRoot.find('[data-textbox-confirm]').each(function(){var firstField=$(this).attr('af-field-title');var secondField=$('#'+$(this).attr('data-textbox-confirm')).attr('af-field-title');$(this).rules("add",{equalTo:'#'+$(this).attr('data-textbox-confirm'),messages:{equalTo:firstField+' & '+secondField+' '+localization['validation.fieldsDoNotMatch']}});});if(formRoot.closest('#Table1').length){formRoot.closest('#Table1').addClass('container').parent().addClass(formRoot.attr('data-rootclass'));$('body').addClass('bstrap30 bstrap3-material');}
if(formRoot.closest('.container').length==0){formRoot.closest('.phFormTemplate').addClass('container');}
function parseVar(strVar){if(!isNaN(parseInt(strVar)))
return parseInt(strVar);if(!isNaN(parseFloat(strVar)))
return parseFloat(strVar);if(strVar[0]=='['){return eval(strVar.replace('\n',''));}
if(strVar=="false")
return false;if(strVar=="true")
return true;return strVar;}
for(var key in localization){if(key.indexOf('validation.')==0){var relKey=key.substr('validation.'.length);if($.validator)
$.validator.messages[relKey]=localization[key].indexOf('{0}')==-1?localization[key]:$.validator.format(localization[key]);}else if(key.indexOf('$.datepicker.')==0&&$.datepicker){var relKey=key.substr('$.datepicker.'.length);var s={};s[relKey]=parseVar(localization[key]);$.datepicker.setDefaults(s);}}
formRoot.find('.datepicker').change(function(){$(this).keyup();});$('.modal').on('shown.bs.modal',function(){var x=0;var checkModals=setInterval(function(){$('.modal:visible').each(function(){var popup=$(this);popup.find('.modal-dialog:first').css('z-index',popup.find('.modal-backdrop:first').css('z-index')+1);popup.after(popup.find('.modal-dialog:first').siblings('.modal-backdrop'));});if(++x===5){window.clearInterval(checkModals);}},1000);});formRoot.find(".datepicker").each(function(){var opts={dateFormat:$(this).attr('data-dateformat'),changeMonth:$(this).attr('data-changemonth')=='true',changeYear:$(this).attr('data-changeyear')=='true',fixFocusIE:false,onSelect:function(dateText,inst){this.fixFocusIE=true;},onClose:function(dateText,inst){this.fixFocusIE=true;inst.input.trigger('change');},beforeShow:function(input,inst){var result=true;this.fixFocusIE=false;return result;}};if($(this).attr('data-yearrange'))
opts["yearRange"]=$(this).attr('data-yearrange');if($(this).attr('data-opts')){opts=$.extend(opts,eval('('+$(this).attr('data-opts')+')'));}
$(this).datepicker(opts);var theme=$(this).attr('data-theme');$('#ui-datepicker-div').each(function(){if($(this).parent("."+theme).size()==0)
$(this).wrap('<div class="'+theme+'"></div>');});});formRoot.find('.file-upload').each(function(){this["aform"]=formRoot;});if(window.aform_incFileUplad){if(!$().fileupload)
return;formRoot.find('.file-upload').each(function(){if(!this.aform)
return;var $root=$(this).parents('.fileupload-root:first');var formRoot=this.aform;var _this=$(this);$root.find('.files').empty().append($('<p/>').text(angular.element(formRoot).scope().form.fields[_this.attr('data-af-field')].value));var btn=$root.find('.fileinput-button');if(btn.find('.dnnInputFileWrapper').size()>0){btn.find('input').appendTo(btn);btn.find('.dnnInputFileWrapper').remove();}else{if(btn.find('input')[0])
btn.find('input')[0].wrapper='hack';}})
window.aform_incFileUplad=false;}
$(document).on('keydown','input:text.preventdefault',function(evt){if(evt.keyCode==13){evt.preventDefault();evt.stopImmediatePropagation();}});$('body').on('keydown','input:text:not(.preventdefault),input:password:not(.preventdefault)',function(evt){var btn=$(evt.currentTarget).closest('.form-root').find('.submit[data-default-button=on]:first');if(evt.keyCode==13&&btn.length){btn.click();evt.preventDefault();}});try{formRoot.find('.button').button('reset');}catch(e){}
formRoot.on('click',".form-button",function(){submitForm(this);});function submitForm(el,fnDone,qs){var fieldsToIgnoreSelectors=':disabled, .ignore';$_scope.fieldsToIgnoreClass='';if($_scope.settings.SubmitHiddenFields.Value){fieldsToIgnoreSelectors+=',.ignore-submit-hidden-fields, .richedit'}else{fieldsToIgnoreSelectors+=',:hidden';$_scope.fieldsToIgnoreClass='.ng-hide';};var connectedForms={};var btnSettings=$_scope.settings.Fields[$(el).attr('data-name')];if(!btnSettings){btnSettings={'isConnected':false}}
else{var tokenizedConnectedForms=$_scope.form.fields[btnSettings.TitleCompacted].connectedForms;btnSettings.isConnected=tokenizedConnectedForms&&tokenizedConnectedForms.length>0;btnSettings.isConnected&&(connectedForms=tokenizedConnectedForms);}
var _this=el;formRoot.find(".server-error").html("").hide();var causesValidation=$(_this).attr('data-validation')=='on';var fieldsToValidate=formRoot.find('input,textarea,select,.checkbox-list').not(fieldsToIgnoreSelectors);$.each(connectedForms,function(i,v){var formControls={};formControls.fields=angular.element('#dnn'+v.FormId+'root').scope().controls;if(!$.isEmptyObject(formControls.fields)){$_scope.controls["#dnn"+v.FormId]=formControls;}
var formEl=$('#dnn'+v.FormId+'root');var fields=formEl.find('.field-container').not($_scope.fieldsToIgnoreClass).find('input,textarea,select,.checkbox-list').not(fieldsToIgnoreSelectors);if(fields.length){causesValidation&&formEl.is(':visible')&&fields.valid();}});if(causesValidation){fieldsToValidate.each(function(index,input){if(!$(input).attr('keyup-listener')){$(input).attr('keyup-listener','true')
$(input).on("keyup change",function(event){$(event.target).valid();});}});}
if(causesValidation&&fieldsToValidate.size()&&!fieldsToValidate.valid()){refreshCaptchaOnError($_scope);formRoot.find('.has-error:first').find('input,textarea,select').focus();$('.has-error').first()[0].scrollIntoView({behavior:"smooth",block:"center"});fnDone&&fnDone({value:false,refresh:angular.element(formRoot).scope().settings.TabsPro_RefreshTabStateOnLeave.Value});return false;}
if(_this.preventSubmit)
return;formRoot[0].$btn=$(_this);if(qs&&!$.isEmptyObject(qs)){formRoot[0].qs=qs;}
formRoot.bind('fileuploadsubmit',function(e,data){var currentData=getFormData(formRoot);data.formData=currentData;});var $btn=$(_this);$($btn).data('connectedForms',connectedForms);try{$btn.hasClass('af-btn-loading')&&$btn.button('loading');}catch(e){}
$btn.data().tabEvent&&$btn.data('tabEvent',false);var abortSubmit=false;var waitFor=0;$.each(Object.keys($_scope.controls),function(i,controlKey){var control=$_scope.controls[controlKey];if(control.fields&&!$.isEmptyObject(control.fields)){$.each(Object.keys(control.fields),function(i,_controlKey){if(control.fields[_controlKey].onSubmit)
waitFor++;})}
else{if(control.onSubmit)
waitFor++;}});if(formRoot[0].onFormSubmit.length)
for(var i in formRoot[0].onFormSubmit)
formRoot[0].onFormSubmit[i]($btn);if(!waitFor){formRoot[0].submitData($btn,fnDone,btnSettings);}
else if(waitFor&&(!formRoot.find(".table-striped.files tr.file-table").length&&!formRoot.find("[submit-data]").length&&!btnSettings.isConnected)){return formRoot[0].submitData($btn,fnDone,btnSettings);}else{var submitControl=function(control){if(!control.onSubmit)
return
control.onSubmit(function(){if(abortSubmit)
return;waitFor--;if(waitFor==0)
formRoot[0].submitData($btn,fnDone,btnSettings);},function(error){if(abortSubmit)
return;formRoot.find(".server-error").html(error).show();afResetButton(formRoot,$btn);abortSubmit=true;});}
$.each(Object.keys($_scope.controls),function(i,controlKey){var control=$_scope.controls[controlKey];if(control.fields&&!$.isEmptyObject(control.fields)){$.each(Object.keys(control.fields),function(i,_controlkey){submitControl(control.fields[_controlkey]);})}
else
submitControl(control);});}}
formRoot[0].submitData=function($btn,fnDone,btnSettings){isConnected=btnSettings.isConnected;if(formRoot[0].qs&&!$.isEmptyObject(formRoot[0].qs)){var submitUrl=dnnsf.getUrlParts($btn.attr('data-submiturl'))
submitUrl.query=$.extend(submitUrl.query,formRoot[0].qs);$btn.attr('data-submiturl',submitUrl.getUrl(submitUrl));}
var list=[],deleteUrl="";if(formRoot[0].submitting)
return;var data=getFormData(formRoot);if(isConnected){data={'$_thisForm':data};$.each($($btn).data('connectedForms'),function(i,v){var fields={}
fields[v.FormName]=getFormData($('#dnn'+v.FormId+'root'));$.extend(data,fields)});}
$.each(Object.keys($_scope.controls),function(i,controlKey){var control=$_scope.controls[controlKey];if(!control.deleteFiles)
return;list=control.deleteFiles();deleteUrl=control.deleteUrl();if(list){$.each(list,function(i,filename){$.ajax({headers:{"DNNSF-Time-Offset":timeZoneOffset,"RequestVerificationToken":svcFramework.getAntiForgeryValue()},url:deleteUrl+'&f='+filename,type:"post",dataType:"json"}).done(function(data){formRoot[0].submitting=false;parseFormResponse2(formRoot,$btn,data);});});}});var submitFormData=function(event,onDone){formRoot[0].submitting=true;var setDisableState=function(){var btns=formRoot.find('.submit').not($btn);$.each(btns,function(i,formButton){$(formButton).attr('disabled')&&$(formButton).data('disabled',true);!$btn.data().tabEvent&&$(formButton).attr('disabled','disabled');})}
formRoot.find('.submit-progress').css('visibility','visible').stop(true,true).fadeIn();var xhr=new XMLHttpRequest();var executed=[];var executedOnDone=false;var qs=$.param({"referrer":document.referrer,"_url":document.URL});if(isConnected){xhr.open("POST",options.apiUrl+"/MultiForm/Submit?"+$btn.attr("data-submitquery")+'&'+qs,true);xhr.setRequestHeader("Content-type","application/json");}else{xhr.open("POST",$btn.attr("data-submiturl")+'&'+qs,true);xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");}
xhr.setRequestHeader("DNNSF-Time-Offset",timeZoneOffset);xhr.setRequestHeader("RequestVerificationToken",svcFramework.getAntiForgeryValue());xhr.onprogress=function(){var response=xhr.response.split("\n");if(response[response.length-1]=="")
response.pop();$.each(response,function(i,v){if(executed.indexOf(i)!=-1)
return;try{var responseObj=JSON.parse(v);}catch(e){return;}
if(isConnected&&responseObj.validationErrors){responseObj.connectedForms=$($btn).data('connectedForms');}
parseFormResponse2(formRoot,$btn,responseObj);if(onDone&&responseObj.validationErrors){onDone(responseObj);executedOnDone=true;}
executed.push(i);});};xhr.onreadystatechange=function(){formRoot[0].submitting=false;var response=xhr.response.split("\n");if(response[response.length-1]==""){response.pop();}
if(xhr.readyState==4&&response.length){try{var resJson=JSON.parse(response[0]);}
catch(e){parseFormResponse2(formRoot,$btn,{'error':localization.actionErrorDefaultMessage,'reset':true});console.log(response);return;}
if(onDone){response=_.filter(response,function(value,key){return executed.indexOf(key)==-1;});!executedOnDone&&onDone(response.length&&JSON.parse(response[0]));}
if(isConnected)
$_scope.controls={};}};var ignoreEvent=false;if(event=='TabsPro_OnTabLeave'){var ignoreTabLeave=$_scope.settings.TabsPro_IgnoreTabLeaveIfNoChanges&&$_scope.settings.TabsPro_IgnoreTabLeaveIfNoChanges.Value;var formSettings=dnnsf.api.actionForm.getSettings($_scope.settings.ModuleId);var hasChanges=formSettings.submittedData&&!_.isEqual(formSettings.submittedData,data);if(ignoreTabLeave&&hasChanges==false){onDone({});formRoot[0].submitting=false;ignoreEvent=true;}
dnnsf.api.actionForm.patchSettings($_scope.settings.ModuleId,{submittedData:data});}
if(ignoreEvent)
return;setDisableState();if(isConnected)
xhr.send(JSON.stringify(data));else
xhr.send($.param(data));}
var event=dnnsf.getUrlParts($btn.attr("data-submiturl")).query['event'];switch(event){case'TabsPro_OnTabLeave':if(!options.hasTabLeaveActions)
return fnDone({value:true,refresh:angular.element(formRoot).scope().settings.TabsPro_RefreshTabStateOnLeave.Value});submitFormData(event,function(data){if(data&&data.validationErrors!=undefined){fnDone({value:false,refresh:angular.element(formRoot).scope().settings.TabsPro_RefreshTabStateOnLeave.Value});}else{if(!angular.element(formRoot).scope()){var waitForInitialization=setInterval(function(){if(angular.element(formRoot.selector).scope()){fnDone({value:true,refresh:angular.element(formRoot.selector).scope().settings.TabsPro_RefreshTabStateOnLeave.Value});clearInterval(waitForInitialization);}},5)}else
fnDone({value:true,refresh:angular.element(formRoot).scope().settings.TabsPro_RefreshTabStateOnLeave.Value});}})
break;default:submitFormData(event);}};if(options.hasTabEnterActions||options.hasTabLeaveActions){dnnsf.events.listen('OnTabsLeave',options.moduleId,function(data,fnDone){var isTarget=false;$.each(data.targetModuleList,function(index,moduleId){if(options.moduleId==moduleId)
isTarget=true;})
if(isTarget&&options.hasTabLeaveActions){var submitUrl=dnnsf.getUrlParts($_scope.form.submitUrl)
submitUrl.query=$.extend(submitUrl.query,{'event':'TabsPro_OnTabLeave'});var btn=document.createElement("button");$(btn).attr('class','form-button');$(btn).attr('data-submiturl',submitUrl.getUrl(submitUrl));if($_scope.settings.TabsPro_IgnoreValidationOnLeave.Value){$(btn).attr('data-validation','off');}else{$(btn).attr('data-validation','on');}
$(btn).data('tabEvent',true);submitForm(btn,fnDone);}else{fnDone();}});}
if(options.hasTabEnterActions){dnnsf.events.listen('OnTabsEnter',options.moduleId,function(data,fnDone){if(!options.hasTabEnterActions){return fnDone&&fnDone();}
var newQs={'event':'TabsPro_OnTabEnter'};if(data.qs&&!$.isEmptyObject(data.qs)){$.extend(newQs,data.qs);dnnsf.api.actionForm.patchSettings(options.moduleId,{passQs:data.qs});}
var isTarget=false;$.each(data.targetModuleList,function(index,moduleId){if(options.moduleId==moduleId)
isTarget=true;})
if(isTarget){var submitUrl=dnnsf.getUrlParts($_scope.form.submitUrl)
submitUrl.query=$.extend(submitUrl.query,newQs);var btn=document.createElement("button");$(btn).attr('class','form-button');$(btn).attr('data-submiturl',submitUrl.getUrl(submitUrl));$(btn).attr('data-validation','off');$(btn).data('tabEvent',true);submitForm(btn,fnDone,data.qs);}else{fnDone();}});}
dnnsf.events.listen('ActionFormPing',options.moduleId,function(data,fnDone){$.each(data.targetModuleList,function(index,moduleId){if(options.moduleId==moduleId){fnDone(options.moduleId);}else{fnDone();}})});};}
function getFormData(formRoot){var $_scope=angular.element(formRoot).scope();var data={};formRoot.find(':input,[data-val],.value-node').not("button[class^='trumbowyg-'], textarea.g-recaptcha-response").each(function(){if(!$(this).attr("id")||$(this).closest($_scope.fieldsToIgnoreClass).length)
return;var name=$(this).attr("field-id")||$(this).attr("id").replace(/dnn\d+/,"");if(!data[name])
data[name]='';if($(this).attr('type')=='radio'){if(this.checked)
data[name]=$(this).val();}else if($(this).attr('data-val')||$(this).attr('data-val')===''){data[name]=$(this).attr('data-val');}
else if($(this).hasClass('value-node')){data[name]=$(this).html();}else{data[name]=$(this).val();}});var checkboxes=_.map(formRoot.find('.field-container').not($_scope.fieldsToIgnoreClass).find('[type="checkbox"][id]:not([id=""])'),function(checkbox){return[$(checkbox).attr('id').replace(/dnn\d+/,''),$(checkbox)]});var part_checkboxes=_.partition(checkboxes,function(checkbox){return checkbox[0].indexOf('-')==-1});_.each(part_checkboxes[0],function(checkbox){data[checkbox[0]]=checkbox[1].is(':checked')?'True':'False'});var checkbox_lists=_.groupBy(part_checkboxes[1],function(checkbox){return checkbox[0].substr(0,checkbox[0].indexOf('-'))});_.each(checkbox_lists,function(list,name){data[name]=JSON.stringify(_.map(_.filter(list,function(checkbox){return checkbox[1].is(':checked')}),function(checkbox){return checkbox[1].val()}))});formRoot.find(".itemwithqty input:visible").each(function(){data[$(this).attr("id").replace(/dnn\d+/,"")]=$('#'+$(this).attr("id")+'Qty').val()+' '+$(this).val();});formRoot.find('iframe.dnnsf-text-editor').each(function(){if(dnnsf.canAccessIFrame(this)&&this.contentWindow.getContent){data[$(this).attr("name").replace(/dnn\d+/,"")]=this.contentWindow.getContent();}});$.each(Object.keys($_scope.controls),function(i,controlKey){var control=$_scope.controls[controlKey];if(!control.getValue)
return;var fieldId=control.field.TitleCompacted||control.field.name;data[fieldId]=control.getValue();});_.forEach($_scope.form.fields,function(afField){if(afField.type==="recaptcha"){data[afField.name]=afField.value;return false;}});return data;}
function resetRecaptchaValidation(widgetId,formRoot){var recaptchaElement=$("div[vc-recaptcha]",formRoot);if(!recaptchaElement.length){return;}
if(typeof grecaptcha==='undefined'){console.error('grecaptcha is undefined');return;}
grecaptcha.reset(widgetId);var recaptchaParent=recaptchaElement.closest('.field-container');var recaptchaError=recaptchaParent.find('.text-danger');setTimeout(function(){recaptchaParent.removeAttr('aria-describedby');recaptchaError.remove();},3000);}
function afResetButton(formRoot,$btn){if(!$btn){return;}
setTimeout(function(){try{$btn.button('reset');}catch(e){}
var btns=formRoot.find('.submit').not($btn);$.each(btns,function(i,formButton){if($(formButton).data('disabled')){$(formButton).data('disabled',false)}else{$(formButton).removeAttr('disabled');}})
formRoot&&formRoot.find('.submit-progress').stop(true,true).fadeOut(function(){$(this).css('visibility','hidden');});},500);}
function refreshCaptchaOnError(scope){formRoot.find('.imgcode').each(function(index,captchaImg){scope.refreshCaptcha(scope.settings.ModuleId,$(captchaImg).attr('data-af-field'));});}
function parseFormResponse2(formRoot,$btn,data){parseFormResponse(data,{executeJsFunction:function(fnName){window.parent[fnName](window.frameElement);},executeJsCode:function(jsCode){if(!form)
var form=formRoot.scope()&&formRoot.scope().form;var toEval=new Function('form',jsCode);toEval.call(this,form);},error:function(err,reset){formRoot.find(".server-error").append($.parseHTML(err)).show();$('.g-recaptchadnnsf',formRoot).each(function(index,recaptchaElement){grecaptcha.reset($(this).attr('data-widgetid'));if($(recaptchaElement).attr('data-size')==='invisible'){grecaptcha.execute($(this).attr('data-widgetid'));}});},validationErrors:function(_data){var displayErrors=function(errors,mid){refreshCaptchaOnError(formRoot.scope());$.each(errors,function(i,err){var fieldId=mid+err.fieldId;var field=$('#dnn'+fieldId);var parent=field.closest('.field-container');if(!parent.length)
parent=$('[name="dnn'+fieldId+'"]').closest('.field-container');var tabParent=parent.closest('.tab-pane');tabParent.length&&!tabParent.hasClass('active')&&$('[href="#'+tabParent.attr('id')+'"]').addClass('has-error');field.attr('aria-describedby','error-'+field.attr('id'));parent.addClass('has-error');$('#dnn'+fieldId)
parent.find('.text-danger').length?parent.find('.text-danger').html(err.message).show():parent.append('<span id="'+'error-'+field.attr('id')+'" class="text-danger">'+err.message+'</span>');var errorElements=$('.has-error');if(errorElements.length){errorElements.first()[0].scrollIntoView({behavior:"smooth",block:"center"});}else{console.error("Action Form: Validation error on a hidden field.")}});}
var mid=$(formRoot).parent().attr('data-moduleid');if(_data.validationErrors.constructor===Array){displayErrors(_data.validationErrors,mid);}else{$.each(_data.validationErrors,function(i,v){if(v.length){var form;if(i!='$_thisForm'){form=_data.connectedForms.find(function(j,k){return j.FormName.toLowerCase()==i.toLowerCase();})}
displayErrors(v,form?form.FormId:mid);}});}
resetRecaptchaValidation(formRoot.scope().widgetId,formRoot);return;},redirect:function(url,isPushState){if(data.forceDownload){var urlPath=dnnsf.getUrlParts(url).pathname;var fileNameAndExtension=urlPath.substring(urlPath.lastIndexOf("/")+1);if(!window.ActiveXObject){var save=document.createElement('a');save.href=url;save.target='_blank';save.download=fileNameAndExtension||'unknown';var evt=new MouseEvent('click',{'view':window,'bubbles':true,'cancelable':false});save.dispatchEvent(evt);(window.URL||window.webkitURL).revokeObjectURL(save.href);afResetButton(formRoot,$btn);}
else if(!!window.ActiveXObject&&document.execCommand){var _window=window.open(url,'_blank');_window.document.close();_window.document.execCommand('SaveAs',true,fileNameAndExtension||url)
_window.close();afResetButton(formRoot,$btn);}
return;}
if(!data.popup&&!data.newTab){if(isPushState){setTimeout(function(){window.history.pushState({},'',url+location.hash);afResetButton(formRoot,$btn);},500)}else{window.location=url;if(url.indexOf("mailto:")!=-1||url.indexOf("tel:")!=-1||url.indexOf("ftp:")!=-1){afResetButton(formRoot,$btn);}}
return;}
if(data.newTab){if(!!window.ApplePaySession){window.location=url;}else{window.open(url,'_blank');afResetButton(formRoot,$btn);}
return;}
var popup=$('<div class="af-modal modal fade">'+'<div class="modal-dialog modal-lg">'+'<div class="modal-content">'+'<div class="modal-header">'+'<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>'+'<h4 class="modal-title">'+data.popupTitle+'</h4>'+'</div>'+'<div class="modal-body">'+'<iframe width="100%" src="'+url+'" frameborder="0" scrolling="yes"></iframe>'+'</div>'+'</div>'+'</div>'+'</div>').appendTo('body');popup.modal({backdrop:true});popup.on('hidden.bs.modal',function(){window.clearInterval(resizeInterval);popup.remove();$('.modal-backdrop').remove();});afResetButton(formRoot,$btn);var __prevHeight=0;var resizeInterval=setInterval(function(){var iframe=$('.af-modal:visible').find('iframe');try{var bodyHeight=iframe[0].contentWindow.document.body.scrollHeight;if(bodyHeight!=__prevHeight){__prevHeight=bodyHeight;iframe.height(Math.max(200,bodyHeight));}}catch(e){iframe.height(window.innerHeight-240);}},1000);},message:function(msg,type){if(!type||type=='success'){formRoot.find(".c-form").slideUp();formRoot.find(".submit-confirm2").hide();$('html, body').animate({scrollTop:formRoot.offset().top-200},500);}
formRoot.find(".submit-confirm").html(msg).show();var scope=formRoot.find(".submit-confirm").scope();angular.element(formRoot).injector().invoke(function($compile){$compile(formRoot.find(".submit-confirm").contents())(scope);});},appendHtml:function(appendHtml,appendTo,reset){$(appendTo).append(appendHtml);reset&&afResetButton(formRoot,$btn);},data:function(data){var moduleId=data.baseId.replace('dnn','');dnnsf.api.actionForm.patchSettings(moduleId,{Data:data});angular.element(formRoot).scope().load(moduleId);angular.element(formRoot).scope().$apply();angular.element(formRoot).scope().$broadcast('updateFormData');},noOp:function(){}},$btn,formRoot);}
function parseFormResponse(data,handlers,afButton,afFormRoot){handlers=$.extend({keepOnPage:function(url){window.location.reload(true);},redirect:function(url){window.location=url;},appendHtml:function(appendHtml,appendTo){$(appendTo).append(appendHtml);},error:function(err){},message:function(msg,type){},data:function(msg,type){},executeJsCode:function(jsCode){try{eval(jsCode)}catch(e){console.error(e);}}},handlers);if(data.functionName){handlers.executeJsFunction&&handlers.executeJsFunction(data.functionName);}if(data.JsCode){handlers.executeJsCode&&handlers.executeJsCode(data.JsCode);}else if(data.Error||data.error){handlers.error&&handlers.error(data.Error||data.error,data.reset);}else if(data.validationErrors){handlers.validationErrors&&handlers.validationErrors(data);}else if(data.Content){handlers.message&&handlers.message(data.Content,data.Type);}else if(data.KeepOnPage){handlers.KeepOnPage&&handlers.KeepOnPage(data.Url);}else if(data.Url){handlers.redirect&&handlers.redirect(data.Url,data.PushState);return;}else if(data.appendHtml){handlers.appendHtml&&handlers.appendHtml(data.appendHtml,data.appendTo,data.reset);return;}else if(data.data){handlers.data&&handlers.data(data.data);}else if(data.noOp){handlers.noOp&&handlers.noOp();}
afResetButton(afFormRoot||formRoot,afButton);}
return{initForm:initForm,getFormData:getFormData,afResetButton:afResetButton,parseFormResponse:parseFormResponse}})($,window.dnnsfAngular15||window.angular);var initForm=afApp.initForm,getFormData=afApp.getFormData,afResetButton=afApp.afResetButton,parseFormResponse=afApp.parseFormResponse;function browseGrid(settings){$('body').append('<div class="loader-wrapper" id="modalLoader"><div class="loader"></div></div>');$.get(window.dnnsf.commonUrl+'/static/dnnsf/tpl/gridModal.html',function(data){var iframeData=data.replace('gridUrl',settings.url);iframeData=iframeData.replace('popupHeight',$(window).height()-150+'px');$('body').append(iframeData);$('#gridFrame').load(function(){$('#gridFrame').contents().find('body').css({'overflow':'auto'});$('#gridFrame').contents().find('body table').css({'width':'90%','margin':'0 auto'});setTimeout(function(){$('#gridModal').modal('show');$('#modalLoader').remove();},500);$('#gridModal').on('shown.bs.modal',function(e){getData();});});$('#gridModal').on('hidden.bs.modal',function(e){$('#gridModal').remove();});});function getData(){var iframe=window.frames['gridFrame'].document;$('body',iframe).on('click','.grid-item',function(){if(!$(this).has('span.grid-field-value').size())
return;var gridScope=window.frames['gridFrame'].angular.element($(this).closest('.item-value')).scope();$.each(settings.mappings,function(e,f){var elem=$('* [data-ng-model^="form.fields.'+e+'"]');var parent=angular.element(elem).closest('.form-root').scope();parent.form.fields[e].value=gridScope.item[f];parent.form.fields[e].onChange&&parent.form.fields[e].onChange(parent.form);parent.$apply();});$('#gridModal').modal('hide');}).on('mouseenter','.grid-item',function(){$(this).closest('.item-value').addClass('hover-item');}).on('mouseleave','.grid-item',function(){$(this).closest('.item-value').removeClass('hover-item');});};}
;;;(function(angular){"use strict";angular.module("angulartextbox",[]).directive('angulartextbox',['$timeout',function($timeout){return{restrict:'A',scope:false,link:function(scope,element,attrs){if(attrs.autocompleteUrl){element.devbridgeAutocomplete({paramName:'query',serviceUrl:attrs.autocompleteUrl,deferRequestBy:attrs.deferRequestBy||300,transformResult:function(response){return{suggestions:$.map($.parseJSON(response),function(dataItem){return{value:dataItem.Text,data:dataItem.Value};})};},onSelect:function(suggestion){$timeout(function(){var autocompleteField=scope.form.fields[element.attr('data-af-field')];autocompleteField.value=suggestion.value;autocompleteField.data=suggestion.data;autocompleteField.onChange&&autocompleteField.onChange(scope.form);});}});}
if(element.attr('type')=='password'){element.css('display','inline-block');scope.showPassword=function(event){var eventTarget=$(event.currentTarget);eventTarget.closest('.field-container').find('input[type="password"]').attr('type','text');eventTarget.css('display','none');eventTarget.siblings('button').css('display','inline-block');};scope.hidePassword=function(event){var eventTarget=$(event.currentTarget);eventTarget.closest('.field-container').find('input[type="text"]').attr('type','password');eventTarget.css('display','none');eventTarget.siblings('button').css('display','inline-block');};};}};}])})(window.dnnsfAngular15||window.angular);
;;;;(function(angular){angular.module('afControls').directive('afTextbox',['$compile','$timeout','$parse','$sce','$http','$templateCache',function($compile,$timeout,$parse,$sce,$http,$templateCache){return{restrict:'A',scope:{settings:'=',field:'=',registerToEvent:'&'},link:function(scope,element,attrs){console.log(scope.settings);var templateUrl=scope.settings.FormTemplateBaseUrl+"/controls/textbox.html";$http.get(templateUrl,{cache:$templateCache}).success(function(tplContent){element.replaceWith($compile(tplContent)(scope));});}};}]);})(window.dnnsfAngular15||window.angular);
;;;/*!
 * typeahead.js 0.11.1
 * https://github.com/twitter/typeahead.js
 * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT
 */

!function(a,b){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){var b=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(a){return!a||/^\s*$/.test(a)},escapeRegExChars:function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(a){return"string"==typeof a},isNumber:function(a){return"number"==typeof a},isArray:a.isArray,isFunction:a.isFunction,isObject:a.isPlainObject,isUndefined:function(a){return"undefined"==typeof a},isElement:function(a){return!(!a||1!==a.nodeType)},isJQuery:function(b){return b instanceof a},toStr:function(a){return b.isUndefined(a)||null===a?"":a+""},bind:a.proxy,each:function(b,c){function d(a,b){return c(b,a)}a.each(b,d)},map:a.map,filter:a.grep,every:function(b,c){var d=!0;return b?(a.each(b,function(a,e){return(d=c.call(null,e,a,b))?void 0:!1}),!!d):d},some:function(b,c){var d=!1;return b?(a.each(b,function(a,e){return(d=c.call(null,e,a,b))?!1:void 0}),!!d):d},mixin:a.extend,identity:function(a){return a},clone:function(b){return a.extend(!0,{},b)},getIdGenerator:function(){var a=0;return function(){return a++}},templatify:function(b){function c(){return String(b)}return a.isFunction(b)?b:c},defer:function(a){setTimeout(a,0)},debounce:function(a,b,c){var d,e;return function(){var f,g,h=this,i=arguments;return f=function(){d=null,c||(e=a.apply(h,i))},g=c&&!d,clearTimeout(d),d=setTimeout(f,b),g&&(e=a.apply(h,i)),e}},throttle:function(a,b){var c,d,e,f,g,h;return g=0,h=function(){g=new Date,e=null,f=a.apply(c,d)},function(){var i=new Date,j=b-(i-g);return c=this,d=arguments,0>=j?(clearTimeout(e),e=null,g=i,f=a.apply(c,d)):e||(e=setTimeout(h,j)),f}},stringify:function(a){return b.isString(a)?a:JSON.stringify(a)},noop:function(){}}}(),c=function(){"use strict";function a(a){var g,h;return h=b.mixin({},f,a),g={css:e(),classes:h,html:c(h),selectors:d(h)},{css:g.css,html:g.html,classes:g.classes,selectors:g.selectors,mixin:function(a){b.mixin(a,g)}}}function c(a){return{wrapper:'<span class="'+a.wrapper+'"></span>',menu:'<div class="'+a.menu+'"></div>'}}function d(a){var c={};return b.each(a,function(a,b){c[b]="."+a}),c}function e(){var a={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return b.isMsie()&&b.mixin(a.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),a}var f={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return a}(),d=function(){"use strict";function c(b){b&&b.el||a.error("EventBus initialized without el"),this.$el=a(b.el)}var d,e;return d="typeahead:",e={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},b.mixin(c.prototype,{_trigger:function(b,c){var e;return e=a.Event(d+b),(c=c||[]).unshift(e),this.$el.trigger.apply(this.$el,c),e},before:function(a){var b,c;return b=[].slice.call(arguments,1),c=this._trigger("before"+a,b),c.isDefaultPrevented()},trigger:function(a){var b;this._trigger(a,[].slice.call(arguments,1)),(b=e[a])&&this._trigger(b,[].slice.call(arguments,1))}}),c}(),e=function(){"use strict";function a(a,b,c,d){var e;if(!c)return this;for(b=b.split(i),c=d?h(c,d):c,this._callbacks=this._callbacks||{};e=b.shift();)this._callbacks[e]=this._callbacks[e]||{sync:[],async:[]},this._callbacks[e][a].push(c);return this}function b(b,c,d){return a.call(this,"async",b,c,d)}function c(b,c,d){return a.call(this,"sync",b,c,d)}function d(a){var b;if(!this._callbacks)return this;for(a=a.split(i);b=a.shift();)delete this._callbacks[b];return this}function e(a){var b,c,d,e,g;if(!this._callbacks)return this;for(a=a.split(i),d=[].slice.call(arguments,1);(b=a.shift())&&(c=this._callbacks[b]);)e=f(c.sync,this,[b].concat(d)),g=f(c.async,this,[b].concat(d)),e()&&j(g);return this}function f(a,b,c){function d(){for(var d,e=0,f=a.length;!d&&f>e;e+=1)d=a[e].apply(b,c)===!1;return!d}return d}function g(){var a;return a=window.setImmediate?function(a){setImmediate(function(){a()})}:function(a){setTimeout(function(){a()},0)}}function h(a,b){return a.bind?a.bind(b):function(){a.apply(b,[].slice.call(arguments,0))}}var i=/\s+/,j=g();return{onSync:c,onAsync:b,off:d,trigger:e}}(),f=function(a){"use strict";function c(a,c,d){for(var e,f=[],g=0,h=a.length;h>g;g++)f.push(b.escapeRegExChars(a[g]));return e=d?"\\b("+f.join("|")+")\\b":"("+f.join("|")+")",c?new RegExp(e):new RegExp(e,"i")}var d={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(e){function f(b){var c,d,f;return(c=h.exec(b.data))&&(f=a.createElement(e.tagName),e.className&&(f.className=e.className),d=b.splitText(c.index),d.splitText(c[0].length),f.appendChild(d.cloneNode(!0)),b.parentNode.replaceChild(f,d)),!!c}function g(a,b){for(var c,d=3,e=0;e<a.childNodes.length;e++)c=a.childNodes[e],c.nodeType===d?e+=b(c)?1:0:g(c,b)}var h;e=b.mixin({},d,e),e.node&&e.pattern&&(e.pattern=b.isArray(e.pattern)?e.pattern:[e.pattern],h=c(e.pattern,e.caseSensitive,e.wordsOnly),g(e.node,f))}}(window.document),g=function(){"use strict";function c(c,e){c=c||{},c.input||a.error("input is missing"),e.mixin(this),this.$hint=a(c.hint),this.$input=a(c.input),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=d(this.$input),this._checkLanguageDirection(),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=b.noop)}function d(b){return a('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:b.css("font-family"),fontSize:b.css("font-size"),fontStyle:b.css("font-style"),fontVariant:b.css("font-variant"),fontWeight:b.css("font-weight"),wordSpacing:b.css("word-spacing"),letterSpacing:b.css("letter-spacing"),textIndent:b.css("text-indent"),textRendering:b.css("text-rendering"),textTransform:b.css("text-transform")}).insertAfter(b)}function f(a,b){return c.normalizeQuery(a)===c.normalizeQuery(b)}function g(a){return a.altKey||a.ctrlKey||a.metaKey||a.shiftKey}var h;return h={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},c.normalizeQuery=function(a){return b.toStr(a).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},b.mixin(c.prototype,e,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function(a){var b=h[a.which||a.keyCode];this._managePreventDefault(b,a),b&&this._shouldTrigger(b,a)&&this.trigger(b+"Keyed",a)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(a,b){var c;switch(a){case"up":case"down":c=!g(b);break;default:c=!1}c&&b.preventDefault()},_shouldTrigger:function(a,b){var c;switch(a){case"tab":c=!g(b);break;default:c=!0}return c},_checkLanguageDirection:function(){var a=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==a&&(this.dir=a,this.$hint.attr("dir",a),this.trigger("langDirChanged",a))},_setQuery:function(a,b){var c,d;c=f(a,this.query),d=c?this.query.length!==a.length:!1,this.query=a,b||c?!b&&d&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var a,c,d,e,f=this;return a=b.bind(this._onBlur,this),c=b.bind(this._onFocus,this),d=b.bind(this._onKeydown,this),e=b.bind(this._onInput,this),this.$input.on("blur.tt",a).on("focus.tt",c).on("keydown.tt",d),!b.isMsie()||b.isMsie()>9?this.$input.on("input.tt",e):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(a){h[a.which||a.keyCode]||b.defer(b.bind(f._onInput,f,a))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(a,b){this.setInputValue(a),this._setQuery(a,b)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(a){this.$input.val(a),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(a){this.$hint.val(a)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var a,b,c,d;a=this.getInputValue(),b=this.getHint(),c=a!==b&&0===b.indexOf(a),d=""!==a&&c&&!this.hasOverflow(),!d&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var a=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=a},isCursorAtEnd:function(){var a,c,d;return a=this.$input.val().length,c=this.$input[0].selectionStart,b.isNumber(c)?c===a:document.selection?(d=document.selection.createRange(),d.moveStart("character",-a),a===d.text.length):!0},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=a("<div>")}}),c}(),h=function(){"use strict";function c(c,e){c=c||{},c.templates=c.templates||{},c.templates.notFound=c.templates.notFound||c.templates.empty,c.source||a.error("missing source"),c.node||a.error("missing node"),c.name&&!h(c.name)&&a.error("invalid dataset name: "+c.name),e.mixin(this),this.highlight=!!c.highlight,this.name=c.name||j(),this.limit=c.limit||5,this.displayFn=d(c.display||c.displayKey),this.templates=g(c.templates,this.displayFn),this.source=c.source.__ttAdapter?c.source.__ttAdapter():c.source,this.async=b.isUndefined(c.async)?this.source.length>2:!!c.async,this._resetLastSuggestion(),this.$el=a(c.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function d(a){function c(b){return b[a]}return a=a||b.stringify,b.isFunction(a)?a:c}function g(c,d){function e(b){return a("<div>").text(d(b))}return{notFound:c.notFound&&b.templatify(c.notFound),pending:c.pending&&b.templatify(c.pending),header:c.header&&b.templatify(c.header),footer:c.footer&&b.templatify(c.footer),suggestion:c.suggestion||e}}function h(a){return/^[_a-zA-Z0-9-]+$/.test(a)}var i,j;return i={val:"tt-selectable-display",obj:"tt-selectable-object"},j=b.getIdGenerator(),c.extractData=function(b){var c=a(b);return c.data(i.obj)?{val:c.data(i.val)||"",obj:c.data(i.obj)||null}:null},b.mixin(c.prototype,e,{_overwrite:function(a,b){b=b||[],b.length?this._renderSuggestions(a,b):this.async&&this.templates.pending?this._renderPending(a):!this.async&&this.templates.notFound?this._renderNotFound(a):this._empty(),this.trigger("rendered",this.name,b,!1)},_append:function(a,b){b=b||[],b.length&&this.$lastSuggestion.length?this._appendSuggestions(a,b):b.length?this._renderSuggestions(a,b):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(a),this.trigger("rendered",this.name,b,!0)},_renderSuggestions:function(a,b){var c;c=this._getSuggestionsFragment(a,b),this.$lastSuggestion=c.children().last(),this.$el.html(c).prepend(this._getHeader(a,b)).append(this._getFooter(a,b))},_appendSuggestions:function(a,b){var c,d;c=this._getSuggestionsFragment(a,b),d=c.children().last(),this.$lastSuggestion.after(c),this.$lastSuggestion=d},_renderPending:function(a){var b=this.templates.pending;this._resetLastSuggestion(),b&&this.$el.html(b({query:a,dataset:this.name}))},_renderNotFound:function(a){var b=this.templates.notFound;this._resetLastSuggestion(),b&&this.$el.html(b({query:a,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(c,d){var e,g=this;return e=document.createDocumentFragment(),b.each(d,function(b){var d,f;f=g._injectQuery(c,b),d=a(g.templates.suggestion(f)).data(i.obj,b).data(i.val,g.displayFn(b)).addClass(g.classes.suggestion+" "+g.classes.selectable),e.appendChild(d[0])}),this.highlight&&f({className:this.classes.highlight,node:e,pattern:c}),a(e)},_getFooter:function(a,b){return this.templates.footer?this.templates.footer({query:a,suggestions:b,dataset:this.name}):null},_getHeader:function(a,b){return this.templates.header?this.templates.header({query:a,suggestions:b,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=a()},_injectQuery:function(a,c){return b.isObject(c)?b.mixin({_query:a},c):c},update:function(b){function c(a){g||(g=!0,a=(a||[]).slice(0,e.limit),h=a.length,e._overwrite(b,a),h<e.limit&&e.async&&e.trigger("asyncRequested",b))}function d(c){c=c||[],!f&&h<e.limit&&(e.cancel=a.noop,h+=c.length,e._append(b,c.slice(0,e.limit-h)),e.async&&e.trigger("asyncReceived",b))}var e=this,f=!1,g=!1,h=0;this.cancel(),this.cancel=function(){f=!0,e.cancel=a.noop,e.async&&e.trigger("asyncCanceled",b)},this.source(b,c,d),!g&&c([])},cancel:a.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=a("<div>")}}),c}(),i=function(){"use strict";function c(c,d){function e(b){var c=f.$node.find(b.node).first();return b.node=c.length?c:a("<div>").appendTo(f.$node),new h(b,d)}var f=this;c=c||{},c.node||a.error("node is required"),d.mixin(this),this.$node=a(c.node),this.query=null,this.datasets=b.map(c.datasets,e)}return b.mixin(c.prototype,e,{_onSelectableClick:function(b){this.trigger("selectableClicked",a(b.currentTarget))},_onRendered:function(a,b,c,d){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",b,c,d)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){function a(a){return a.isEmpty()}return b.every(this.datasets,a)},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var a=this.getActiveSelectable();a&&a.removeClass(this.classes.cursor)},_ensureVisible:function(a){var b,c,d,e;b=a.position().top,c=b+a.outerHeight(!0),d=this.$node.scrollTop(),e=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),0>b?this.$node.scrollTop(d+b):c>e&&this.$node.scrollTop(d+(c-e))},bind:function(){var a,c=this;return a=b.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,a),b.each(this.datasets,function(a){a.onSync("asyncRequested",c._propagate,c).onSync("asyncCanceled",c._propagate,c).onSync("asyncReceived",c._propagate,c).onSync("rendered",c._onRendered,c).onSync("cleared",c._onCleared,c)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open),this._removeCursor()},setLanguageDirection:function(a){this.$node.attr("dir",a)},selectableRelativeToCursor:function(a){var b,c,d,e;return c=this.getActiveSelectable(),b=this._getSelectables(),d=c?b.index(c):-1,e=d+a,e=(e+1)%(b.length+1)-1,e=-1>e?b.length-1:e,-1===e?null:b.eq(e)},setCursor:function(a){this._removeCursor(),(a=a&&a.first())&&(a.addClass(this.classes.cursor),this._ensureVisible(a))},getSelectableData:function(a){return a&&a.length?h.extractData(a):null},getActiveSelectable:function(){var a=this._getSelectables().filter(this.selectors.cursor).first();return a.length?a:null},getTopSelectable:function(){var a=this._getSelectables().first();return a.length?a:null},update:function(a){function c(b){b.update(a)}var d=a!==this.query;return d&&(this.query=a,b.each(this.datasets,c)),d},empty:function(){function a(a){a.clear()}b.each(this.datasets,a),this.query=null,this.$node.addClass(this.classes.empty)},destroy:function(){function c(a){a.destroy()}this.$node.off(".tt"),this.$node=a("<div>"),b.each(this.datasets,c)}}),c}(),j=function(){"use strict";function a(){i.apply(this,[].slice.call(arguments,0))}var c=i.prototype;return b.mixin(a.prototype,i.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),c.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),c.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),c._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),c._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(a){return this.$node.css("ltr"===a?this.css.ltr:this.css.rtl),c.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),a}(),k=function(){"use strict";function c(c,e){var f,g,h,i,j,k,l,m,n,o,p;c=c||{},c.input||a.error("missing input"),c.menu||a.error("missing menu"),c.eventBus||a.error("missing event bus"),e.mixin(this),this.eventBus=c.eventBus,this.minLength=b.isNumber(c.minLength)?c.minLength:1,this.input=c.input,this.menu=c.menu,this.enabled=!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks(),this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this),f=d(this,"activate","open","_onFocused"),g=d(this,"deactivate","_onBlurred"),h=d(this,"isActive","isOpen","_onEnterKeyed"),i=d(this,"isActive","isOpen","_onTabKeyed"),j=d(this,"isActive","_onEscKeyed"),k=d(this,"isActive","open","_onUpKeyed"),l=d(this,"isActive","open","_onDownKeyed"),m=d(this,"isActive","isOpen","_onLeftKeyed"),n=d(this,"isActive","isOpen","_onRightKeyed"),o=d(this,"_openIfActive","_onQueryChanged"),p=d(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",f,this).onSync("blurred",g,this).onSync("enterKeyed",h,this).onSync("tabKeyed",i,this).onSync("escKeyed",j,this).onSync("upKeyed",k,this).onSync("downKeyed",l,this).onSync("leftKeyed",m,this).onSync("rightKeyed",n,this).onSync("queryChanged",o,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function d(a){var c=[].slice.call(arguments,1);return function(){var d=[].slice.call(arguments);b.each(c,function(b){return a[b].apply(a,d)})}}return b.mixin(c.prototype,{_hacks:function(){var c,d;c=this.input.$input||a("<div>"),d=this.menu.$node||a("<div>"),c.on("blur.tt",function(a){var e,f,g;e=document.activeElement,f=d.is(e),g=d.has(e).length>0,b.isMsie()&&(f||g)&&(a.preventDefault(),a.stopImmediatePropagation(),b.defer(function(){c.focus()}))}),d.on("mousedown.tt",function(a){a.preventDefault()})},_onSelectableClicked:function(a,b){this.select(b)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(a,b,c,d){this._updateHint(),this.eventBus.trigger("render",c,d,b)},_onAsyncRequested:function(a,b,c){this.eventBus.trigger("asyncrequest",c,b)},_onAsyncCanceled:function(a,b,c){this.eventBus.trigger("asynccancel",c,b)},_onAsyncReceived:function(a,b,c){this.eventBus.trigger("asyncreceive",c,b)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())&&this.select(c)&&b.preventDefault()},_onTabKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())?this.select(c)&&b.preventDefault():(c=this.menu.getTopSelectable())&&this.autocomplete(c)&&b.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(a,b){this._minLengthMet(b)?this.menu.update(b):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(a,b){this.dir!==b&&(this.dir=b,this.menu.setLanguageDirection(b))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(a){return a=b.isString(a)?a:this.input.getQuery()||"",a.length>=this.minLength},_updateHint:function(){var a,c,d,e,f,h,i;a=this.menu.getTopSelectable(),c=this.menu.getSelectableData(a),d=this.input.getInputValue(),!c||b.isBlankString(d)||this.input.hasOverflow()?this.input.clearHint():(e=g.normalizeQuery(d),f=b.escapeRegExChars(e),h=new RegExp("^(?:"+f+")(.+$)","i"),i=h.exec(c.val),i&&this.input.setHint(d+i[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(a){this.input.setQuery(b.toStr(a))},getVal:function(){return this.input.getQuery()},select:function(a){var b=this.menu.getSelectableData(a);return b&&!this.eventBus.before("select",b.obj)?(this.input.setQuery(b.val,!0),this.eventBus.trigger("select",b.obj),this.close(),!0):!1},autocomplete:function(a){var b,c,d;return b=this.input.getQuery(),c=this.menu.getSelectableData(a),d=c&&b!==c.val,d&&!this.eventBus.before("autocomplete",c.obj)?(this.input.setQuery(c.val),this.eventBus.trigger("autocomplete",c.obj),!0):!1},moveCursor:function(a){var b,c,d,e,f;return b=this.input.getQuery(),c=this.menu.selectableRelativeToCursor(a),d=this.menu.getSelectableData(c),e=d?d.obj:null,f=this._minLengthMet()&&this.menu.update(b),f||this.eventBus.before("cursorchange",e)?!1:(this.menu.setCursor(c),d?this.input.setInputValue(d.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",e),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),c}();!function(){"use strict";function e(b,c){b.each(function(){var b,d=a(this);(b=d.data(p.typeahead))&&c(b,d)})}function f(a,b){return a.clone().addClass(b.classes.hint).removeData().css(b.css.hint).css(l(a)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function h(a,b){a.data(p.attrs,{dir:a.attr("dir"),autocomplete:a.attr("autocomplete"),spellcheck:a.attr("spellcheck"),style:a.attr("style")}),a.addClass(b.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!a.attr("dir")&&a.attr("dir","auto")}catch(c){}return a}function l(a){return{backgroundAttachment:a.css("background-attachment"),backgroundClip:a.css("background-clip"),backgroundColor:a.css("background-color"),backgroundImage:a.css("background-image"),backgroundOrigin:a.css("background-origin"),backgroundPosition:a.css("background-position"),backgroundRepeat:a.css("background-repeat"),backgroundSize:a.css("background-size")}}function m(a){var c,d;c=a.data(p.www),d=a.parent().filter(c.selectors.wrapper),b.each(a.data(p.attrs),function(c,d){b.isUndefined(c)?a.removeAttr(d):a.attr(d,c)}),a.removeData(p.typeahead).removeData(p.www).removeData(p.attr).removeClass(c.classes.input),d.length&&(a.detach().insertAfter(d),d.remove())}function n(c){var d,e;return d=b.isJQuery(c)||b.isElement(c),e=d?a(c).first():[],e.length?e:null}var o,p,q;o=a.fn.typeahead,p={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},q={initialize:function(e,l){function m(){var c,m,q,r,s,t,u,v,w,x,y;b.each(l,function(a){a.highlight=!!e.highlight}),c=a(this),m=a(o.html.wrapper),q=n(e.hint),r=n(e.menu),s=e.hint!==!1&&!q,t=e.menu!==!1&&!r,s&&(q=f(c,o)),t&&(r=a(o.html.menu).css(o.css.menu)),q&&q.val(""),c=h(c,o),(s||t)&&(m.css(o.css.wrapper),c.css(s?o.css.input:o.css.inputWithNoHint),c.wrap(m).parent().prepend(s?q:null).append(t?r:null)),y=t?j:i,u=new d({el:c}),v=new g({hint:q,input:c},o),w=new y({node:r,datasets:l},o),x=new k({input:v,menu:w,eventBus:u,minLength:e.minLength},o),c.data(p.www,o),c.data(p.typeahead,x)}var o;return l=b.isArray(l)?l:[].slice.call(arguments,1),e=e||{},o=c(e.classNames),this.each(m)},isEnabled:function(){var a;return e(this.first(),function(b){a=b.isEnabled()}),a},enable:function(){return e(this,function(a){a.enable()}),this},disable:function(){return e(this,function(a){a.disable()}),this},isActive:function(){var a;return e(this.first(),function(b){a=b.isActive()}),a},activate:function(){return e(this,function(a){a.activate()}),this},deactivate:function(){return e(this,function(a){a.deactivate()}),this},isOpen:function(){var a;return e(this.first(),function(b){a=b.isOpen()}),a},open:function(){return e(this,function(a){a.open()}),this},close:function(){return e(this,function(a){a.close()}),this},select:function(b){var c=!1,d=a(b);return e(this.first(),function(a){c=a.select(d)}),c},autocomplete:function(b){var c=!1,d=a(b);return e(this.first(),function(a){c=a.autocomplete(d)}),c},moveCursor:function(a){var b=!1;return e(this.first(),function(c){b=c.moveCursor(a)}),b},val:function(a){var b;return arguments.length?(e(this,function(b){b.setVal(a)}),this):(e(this.first(),function(a){b=a.getVal()}),b)},destroy:function(){return e(this,function(a,b){m(b),a.destroy()}),this}},a.fn.typeahead=function(a){return q[a]?q[a].apply(this,[].slice.call(arguments,1)):q.initialize.apply(this,arguments)},a.fn.typeahead.noConflict=function(){return a.fn.typeahead=o,this}}()});
;;;