/*!
 * jQuery JavaScript Library v2.2.0
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-01-08T20:02Z
 */
var AuthenticationContext,awa,behaviorKey;(function(n,t){typeof module=="object"&&typeof module.exports=="object"?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)})(typeof window!="undefined"?window:this,function(n,t){function ii(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function ri(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if(typeof t=="string"){if(wf.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return ct.call(t,n)>-1!==r})}function hr(n,t){while((n=n[t])&&n.nodeType!==1);return n}function bf(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function vt(){u.removeEventListener("DOMContentLoaded",vt);n.removeEventListener("load",vt);i.ready()}function ft(){this.expando=i.expando+ft.uid++}function lr(n,t,r){var u;if(r===undefined&&n.nodeType===1)if(u="data-"+t.replace(cr,"-$&").toLowerCase(),r=n.getAttribute(u),typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:kf.test(r)?i.parseJSON(r):r}catch(f){}e.set(n,t,r)}else r=undefined;return r}function vr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||o!=="px"&&+s)&&et.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3];r=r||[];f=+s||1;do e=e||".5",f=f/e,i.style(n,t,f+o);while(e!==(e=c()/s)&&e!==1&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function o(n,t){var r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[];return t===undefined||t&&i.nodeName(n,t)?i.merge([n],r):r}function ui(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function kr(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(i.type(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(br.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(pr.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes);s=h.firstChild;s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&ui(s),r)for(v=0;e=s[v++];)wr.test(e.type||"")&&r.push(e)}return h}function yt(){return!0}function nt(){return!1}function gr(){try{return u.activeElement}catch(n){}}function fi(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)fi(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=nt;else if(!f)return this;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function nu(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n:n}function fe(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function ee(n){var t=re.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function tu(n,t){var f,c,o,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle;h.events={};for(o in u)for(f=0,c=u[o].length;f<c;f++)i.event.add(t,o,u[o][f])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function oe(n,t){var i=t.nodeName.toLowerCase();i==="input"&&yr.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function b(n,t,u,e){t=gi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,d=v-1,y=t[0],k=i.isFunction(y);if(k||v>1&&typeof y=="string"&&!f.checkClone&&ie.test(y))return n.each(function(i){var r=n.eq(i);k&&(t[0]=y.call(this,i,r.html()));b(r,t,u,e)});if(v&&(l=kr(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,l.childNodes.length===1&&(l=p),p||e)){for(c=i.map(o(l,"script"),fe),a=c.length;h<v;h++)s=l,h!==d&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ee),h=0;h<a;h++)s=c[h],wr.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):i.globalEval(s.textContent.replace(ue,"")))}return n}function iu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&ui(o(u,"script")),u.parentNode.removeChild(u));return n}function ru(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.detach(),u}function oi(n){var r=u,t=ei[n];return t||(t=ru(n,r),t!=="none"&&t||(pt=(pt||i("<iframe frameborder='0' width='0' height='0'/>")).appendTo(r.documentElement),r=pt[0].contentDocument,r.write(),r.close(),t=ru(n,r),pt.detach()),ei[n]=t),t}function tt(n,t,r){var o,s,h,u,e=n.style;return r=r||wt(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&si.test(u)&&uu.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),u!==undefined?u+"":u}function ci(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function su(n){if(n in ou)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=eu.length;t--;)if(n=eu[t]+i,n in ou)return n}function hu(n,t,i){var r=et.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+w[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+w[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function lu(t,r,e){var h=!0,o=r==="width"?t.offsetWidth:t.offsetHeight,s=wt(t),c=i.css(t,"boxSizing",!1,s)==="border-box";if(u.msFullscreenElement&&n.top!==n&&t.getClientRects().length&&(o=Math.round(t.getBoundingClientRect()[r]*100)),o<=0||o==null){if(o=tt(t,r,s),(o<0||o==null)&&(o=t.style[r]),si.test(o))return o;h=c&&(f.boxSizingReliable()||o===t.style[r]);o=parseFloat(o)||0}return o+cu(t,r,e||(c?"border":"content"),h,s)+"px"}function au(n,t){for(var e,u,s,o=[],f=0,h=n.length;f<h;f++)(u=n[f],u.style)&&(o[f]=r.get(u,"olddisplay"),e=u.style.display,t?(o[f]||e!=="none"||(u.style.display=""),u.style.display===""&&ot(u)&&(o[f]=r.access(u,"olddisplay",oi(u.nodeName)))):(s=ot(u),e==="none"&&s||r.set(u,"olddisplay",s?e:i.css(u,"display"))));for(f=0;f<h;f++)(u=n[f],u.style)&&(t&&u.style.display!=="none"&&u.style.display!==""||(u.style.display=t?o[f]||"":"none"));return n}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function pu(){return n.setTimeout(function(){it=undefined}),it=i.now()}function kt(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function wu(n,t,i){for(var u,f=(l.tweeners[t]||[]).concat(l.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function ce(n,t,u){var f,a,p,v,o,w,h,b,l=this,y={},s=n.style,c=n.nodeType&&ot(n),e=r.get(n,"fxshow");u.queue||(o=i._queueHooks(n,"fx"),o.unqueued==null&&(o.unqueued=0,w=o.empty.fire,o.empty.fire=function(){o.unqueued||w()}),o.unqueued++,l.always(function(){l.always(function(){o.unqueued--;i.queue(n,"fx").length||o.empty.fire()})}));n.nodeType===1&&("height"in t||"width"in t)&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],h=i.css(n,"display"),b=h==="none"?r.get(n,"olddisplay")||oi(n.nodeName):h,b==="inline"&&i.css(n,"float")==="none"&&(s.display="inline-block"));u.overflow&&(s.overflow="hidden",l.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]}));for(f in t)if(a=t[f],vu.exec(a)){if(delete t[f],p=p||a==="toggle",a===(c?"hide":"show"))if(a==="show"&&e&&e[f]!==undefined)c=!0;else continue;y[f]=e&&e[f]||i.style(n,f)}else h=undefined;if(i.isEmptyObject(y))(h==="none"?oi(n.nodeName):h)==="inline"&&(s.display=h);else{e?"hidden"in e&&(c=e.hidden):e=r.access(n,"fxshow",{});p&&(e.hidden=!c);c?i(n).show():l.done(function(){i(n).hide()});l.done(function(){var t;r.remove(n,"fxshow");for(t in y)i.style(n,t,y[t])});for(f in y)v=wu(c?e[f]:0,f,l),f in e||(e[f]=v.start,c&&(v.end=v.start,v.start=f==="width"||f==="height"?1:0))}}function le(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function l(n,t,r){var f,o,s=0,a=l.prefilters.length,e=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=it||pu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,f=u.tweens.length;r<f;r++)u.tweens[r].run(i);return e.notifyWith(n,[u,i,t]),i<1&&f?t:(e.resolveWith(n,[u]),!1)},u=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:it||pu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(e.notifyWith(n,[u,1,0]),e.resolveWith(n,[u,t])):e.rejectWith(n,[u,t]),this}}),h=u.props;for(le(h,u.opts.specialEasing);s<a;s++)if(f=l.prefilters[s].call(u,n,h,u.opts),f)return i.isFunction(f.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(f.stop,f)),f;return i.map(h,wu,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function k(n){return n.getAttribute&&n.getAttribute("class")||""}function uf(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function ff(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===yi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function wi(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function we(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function be(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function bi(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||de.test(n)?u(n,i):bi(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)bi(n+"["+f+"]",t[f],r,u)}function sf(n){return i.isWindow(n)?n:n.nodeType===9&&n.defaultView}var y=[],u=n.document,v=y.slice,gi=y.concat,ni=y.push,ct=y.indexOf,lt={},lf=lt.toString,ti=lt.hasOwnProperty,f={},nr="2.2.0",i=function(n,t){return new i.fn.init(n,t)},af=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,vf=/^-ms-/,yf=/-([\da-z])/gi,pf=function(n,t){return t.toUpperCase()},p,ur,fr,er,or,sr,h,at,a,g,br,pt,ei,it,bt,vu,yu,bu,rt,ku,du,dt,gu,li,of,ut,ki,gt,di,hf,cf;i.fn=i.prototype={jquery:nr,constructor:i,selector:"",length:0,toArray:function(){return v.call(this)},get:function(n){return n!=null?n<0?this[n+this.length]:this[n]:v.call(this)},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(v.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ni,sort:y.sort,splice:y.splice};i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n=="object"||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if((e=arguments[u])!=null)for(f in e)(r=n[f],t=e[f],n!==t)&&(h&&t&&(i.isPlainObject(t)||(o=i.isArray(t)))?(o?(o=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):t!==undefined&&(n[f]=t));return n};i.extend({expando:"jQuery"+(nr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray,isWindow:function(n){return n!=null&&n===n.window},isNumeric:function(n){var t=n&&n.toString();return!i.isArray(n)&&t-parseFloat(t)+1>=0},isPlainObject:function(n){return i.type(n)!=="object"||n.nodeType||i.isWindow(n)?!1:n.constructor&&!ti.call(n.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(n){for(var t in n)return!1;return!0},type:function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?lt[lf.call(n)]||"object":typeof n},globalEval:function(n){var t,r=eval;n=i.trim(n);n&&(n.indexOf("use strict")===1?(t=u.createElement("script"),t.text=n,u.head.appendChild(t).parentNode.removeChild(t)):r(n))},camelCase:function(n){return n.replace(vf,"ms-").replace(yf,pf)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t){var r,i=0;if(ii(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(af,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(ii(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ni.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:ct.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(ii(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return gi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return(typeof t=="string"&&(u=n[t],t=n,n=u),!i.isFunction(n))?undefined:(f=v.call(arguments,2),r=function(){return n.apply(t||this,f.concat(v.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},now:Date.now,support:f});typeof Symbol=="function"&&(i.fn[Symbol.iterator]=y[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){lt["[object "+t+"]"]=t.toLowerCase()});p=function(n){function u(n,t,r,u){var l,w,a,s,nt,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||v!==1&&v!==9&&v!==11)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(v!==11&&(d=sr.exec(n)))if(l=d[1]){if(v===9)if(a=t.getElementById(l)){if(a.id===l)return r.push(a),r}else return r;else if(p&&(a=p.getElementById(l))&&et(t,a)&&a.id===l)return r.push(a),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((l=d[3])&&f.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(l)),r}if(f.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(v!==1)p=t,g=n;else if(t.nodeName.toLowerCase()!=="object"){for((s=t.getAttribute("id"))?s=s.replace(hr,"\\$&"):t.setAttribute("id",s=e),y=ft(n),w=y.length,nt=yi.test(s)?"#"+s:"[id='"+s+"']";w--;)y[w]=nt+" "+yt(y[w]);g=y.join(",");p=gt.test(n)&&ii(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(tt){}finally{s===e&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ni(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[e]=!0,n}function a(n){var t=i.createElement("div");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ti(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||li)-(~n.sourceIndex||li);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function cr(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ii(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function bi(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function ri(n,t,i){var r=t.dir,u=i&&r==="parentNode",f=ki++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,o){var s,h,c,l=[v,f];if(o){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,o))return!0}else while(t=t[r])if(t.nodeType===1||u){if(c=t[e]||(t[e]={}),h=c[t.uniqueID]||(c[t.uniqueID]={}),(s=h[r])&&s[0]===v&&s[1]===f)return l[2]=s[2];if(h[r]=l,l[2]=n(t,i,o))return!0}}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function ar(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function pt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,f){return r&&!r[e]&&(r=fi(r)),u&&!u[e]&&(u=fi(u,f)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||ar(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?pt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=pt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=pt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=ri(function(n){return n===o},c,!0),a=ri(function(n){return nt(o,n)>-1},c,!0),f=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])f=[ri(ui(f),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[e]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(f),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}f.push(u)}return ui(f)}function vr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=gi.call(l));w=pt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,f,t,st,oi,ft,wt,si,ht,w,ut,b,i,s,h,o,d,ct,et,e="sizzle"+1*new Date,c=n.document,v=0,ki=0,hi=ni(),ci=ni(),lt=ni(),bt=function(n,t){return n===t&&(ut=!0),0},li=-2147483648,di={}.hasOwnProperty,g=[],gi=g.pop,nr=g.push,k=g.push,ai=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},kt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",vi="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",dt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+vi+")*)|.*)\\)|)",tr=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),ir=new RegExp("^"+r+"*,"+r+"*"),rr=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),ur=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),fr=new RegExp(dt),yi=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+vi),PSEUDO:new RegExp("^"+dt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+kt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},er=/^(?:input|select|textarea|button)$/i,or=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,sr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,gt=/[+~]/,hr=/'|\\/g,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},pi=function(){b()};try{k.apply(g=ai.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(yr){k={apply:g.length?function(n,t){nr.apply(n,ai.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}f=u.support={};oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l===i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,h=!oi(i),(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),f.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),f.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),f.getElementsByClassName=ot.test(i.getElementsByClassName),f.getById=a(function(n){return s.appendChild(n).id=e,!i.getElementsByName||!i.getElementsByName(e).length}),f.getById?(t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i=t.getElementById(n);return i?[i]:[]}},t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}}):(delete t.find.ID,t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}}),t.find.TAG=f.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):f.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=f.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(f.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+e+"'><\/a><select id='"+e+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+kt+")");n.querySelectorAll("[id~="+e+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+e+"+*").length||o.push(".#.+[+~]")}),a(function(n){var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");n.querySelectorAll(":enabled").length||o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(f.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){f.disconnectedMatch=ct.call(n,"div");ct.call(n,"[s!='']:x");d.push("!=",dt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},bt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,r&1||!f.sortDetached&&t.compareDocumentPosition(n)===r)?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:r&4?-1:1}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(o&&s){if(o===s)return wi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(ur,"='$1']"),f.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||f.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(e){}return u(t,i,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)};u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var e=t.attrHandle[r.toLowerCase()],u=e&&di.call(t.attrHandle,r.toLowerCase())?e(n,r,!h):undefined;return u!==undefined?u:f.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!f.detectDuplicates,w=!f.sortStable&&n.slice(0),n.sort(bt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n};st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i};t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&fr.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(tr," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",f=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=f&&t.nodeName.toLowerCase(),g=!h&&!f,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(f?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((f?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[e]||(c[e]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var f,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[e]?r(i):r.length>1?(f=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,f)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=wt(n.replace(at,"$1"));return i[e]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return yi.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return or.test(n.nodeName)},input:function(n){return er.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=cr(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=lr(rt);return bi.prototype=t.filters=t.pseudos,t.setFilters=new bi,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=ir.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[]));e=!1;(f=rr.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},wt=u.compile=function(n,t){var r,u=[],f=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[e]?u.push(i):f.push(i);i=lt(n,vr(f,u));i.selector=n}return i},si=u.select=function(n,i,r,u){var s,e,o,a,v,l=typeof n=="function"&&n,c=!u&&ft(n=l.selector||n);if(r=r||[],c.length===1){if(e=c[0]=c[0].slice(0),e.length>2&&(o=e[0]).type==="ID"&&f.getById&&i.nodeType===9&&h&&t.relative[e[1].type]){if(i=(t.find.ID(o.matches[0].replace(y,p),i)||[])[0],i)l&&(i=i.parentNode);else return r;n=n.slice(e.shift().value.length)}for(s=vt.needsContext.test(n)?0:e.length;s--;){if(o=e[s],t.relative[a=o.type])break;if((v=t.find[a])&&(u=v(o.matches[0].replace(y,p),gt.test(e[0].type)&&ii(i.parentNode)||i))){if(e.splice(s,1),n=u.length&&yt(e),!n)return k.apply(r,u),r;break}}}return(l||wt(n,c))(u,i,!h,r,!i||gt.test(n)&&ii(i.parentNode)||i),r},f.sortStable=e.split("").sort(bt).join("")===e,f.detectDuplicates=!!ut,b(),f.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("div"))&1}),a(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ti("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),f.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ti("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ti(kt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=p;i.expr=p.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=p.uniqueSort;i.text=p.getText;i.isXMLDoc=p.isXML;i.contains=p.contains;var d=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},tr=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},ir=i.expr.match.needsContext,rr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,wf=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))};i.fn.extend({find:function(n){var t,u=this.length,r=[],f=this;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(t=0;t<u;t++)i.find(n,f[t],r);return r=this.pushStack(u>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},filter:function(n){return this.pushStack(ri(this,n||[],!1))},not:function(n){return this.pushStack(ri(this,n||[],!0))},is:function(n){return!!ri(this,typeof n=="string"&&ir.test(n)?i(n):n||[],!1).length}});fr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;er=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||ur,typeof n=="string"){if(f=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:fr.exec(n),f&&(f[1]||!t)){if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),rr.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&e.parentNode&&(this.length=1,this[0]=e),this.context=u,this.selector=n,this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?r.ready!==undefined?r.ready(n):n(i):(n.selector!==undefined&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))};er.prototype=i.fn;ur=i(u);or=/^(?:parents|prev(?:Until|All))/;sr={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=ir.test(n)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?ct.call(i(n),this[0]):ct.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return d(n,"parentNode")},parentsUntil:function(n,t,i){return d(n,"parentNode",i)},next:function(n){return hr(n,"nextSibling")},prev:function(n){return hr(n,"previousSibling")},nextAll:function(n){return d(n,"nextSibling")},prevAll:function(n){return d(n,"previousSibling")},nextUntil:function(n,t,i){return d(n,"nextSibling",i)},prevUntil:function(n,t,i){return d(n,"previousSibling",i)},siblings:function(n){return tr((n.parentNode||{}).firstChild,n)},children:function(n){return tr(n.firstChild)},contents:function(n){return n.contentDocument||i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(sr[n]||i.uniqueSort(f),or.test(n)&&f.reverse()),this.pushStack(f)}});h=/\S+/g;i.Callbacks=function(n){n=typeof n=="string"?bf(n):i.extend({},n);var o,r,h,f,t=[],e=[],u=-1,c=function(){for(f=n.once,h=o=!0;e.length;u=-1)for(r=e.shift();++u<t.length;)t[u].apply(r[0],r[1])===!1&&n.stopOnFalse&&(u=t.length,r=!1);n.memory||(r=!1);o=!1;f&&(t=r?[]:"")},s={add:function(){return t&&(r&&!o&&(u=t.length-1,e.push(r)),function f(r){i.each(r,function(r,u){i.isFunction(u)?n.unique&&s.has(u)||t.push(u):u&&u.length&&i.type(u)!=="string"&&f(u)})}(arguments),r&&!o&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var f;(f=i.inArray(r,t,f))>-1;)t.splice(f,1),f<=u&&u--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return f=e=[],t=r="",this},disabled:function(){return!t},lock:function(){return f=e=[],r||(t=r=""),this},locked:function(){return!!f},fireWith:function(n,t){return f||(t=t||[],t=[n,t.slice?t.slice():t],e.push(t),o||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(f.notify).done(f.resolve).fail(f.reject):f[e[0]+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return n!=null?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[n^1][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=v.call(arguments),r=u.length,e=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?v.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);t<r;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().progress(h(t,c,o)).done(h(t,s,u)).fail(f.reject):--e;return e||f.resolveWith(s,u),f.promise()}});i.fn.ready=function(n){return i.ready.promise().done(n),this};i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||(at.resolveWith(u,[i]),i.fn.triggerHandler&&(i(u).triggerHandler("ready"),i(u).off("ready")))}});i.ready.promise=function(t){return at||(at=i.Deferred(),u.readyState!=="complete"&&(u.readyState==="loading"||u.documentElement.doScroll)?(u.addEventListener("DOMContentLoaded",vt),n.addEventListener("load",vt)):n.setTimeout(i.ready)),at.promise(t)};i.ready.promise();a=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=r==null;if(i.type(r)==="object"){f=!0;for(s in r)a(n,t,s,r[s],!0,e,o)}else if(u!==undefined&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e};g=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};ft.uid=1;ft.prototype={register:function(n,t){var i=t||{};return n.nodeType?n[this.expando]=i:Object.defineProperty(n,this.expando,{value:i,writable:!0,configurable:!0}),n[this.expando]},cache:function(n){if(!g(n))return{};var t=n[this.expando];return t||(t={},g(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if(typeof t=="string")u[t]=i;else for(r in t)u[r]=t[r];return u},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][t]},access:function(n,t,r){var u;return t===undefined||t&&typeof t=="string"&&r===undefined?(u=this.get(n,t),u!==undefined?u:this.get(n,i.camelCase(t))):(this.set(n,t,r),r!==undefined?r:t)},remove:function(n,t){var f,r,e,u=n[this.expando];if(u!==undefined){if(t===undefined)this.register(n);else for(i.isArray(t)?r=t.concat(t.map(i.camelCase)):(e=i.camelCase(t),t in u?r=[t,e]:(r=e,r=r in u?[r]:r.match(h)||[])),f=r.length;f--;)delete u[r[f]];(t===undefined||i.isEmptyObject(u))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new ft,e=new ft,kf=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,cr=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(n===undefined){if(this.length&&(s=e.get(u),u.nodeType===1&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),lr(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return typeof n=="object"?this.each(function(){e.set(this,n)}):a(this,function(t){var r,f;if(u&&t===undefined)return(r=e.get(u,n)||e.get(u,n.replace(cr,"-$&").toLowerCase()),r!==undefined)?r:(f=i.camelCase(n),r=e.get(u,f),r!==undefined)?r:(r=lr(u,f,undefined),r!==undefined)?r:void 0;f=i.camelCase(n);this.each(function(){var i=e.get(this,f);e.set(this,f,t);n.indexOf("-")>-1&&i!==undefined&&e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||i.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var ar=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+ar+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],ot=function(n,t){return n=t||n,i.css(n,"display")==="none"||!i.contains(n.ownerDocument,n)};var yr=/^(?:checkbox|radio)$/i,pr=/<([\w:-]+)/,wr=/^$|\/(?:java|ecma)script/i,c={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;br=/<|&#?\w+;/,function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio");t.setAttribute("checked","checked");t.setAttribute("name","t");n.appendChild(t);f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked;n.innerHTML="<textarea>x<\/textarea>";f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var df=/^key/,gf=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dr=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(h)||[""],b=t.length;b--;)(w=dr.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o)&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;){if(c=dr.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!c||c.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){n=i.event.fix(n);var o,s,e,u,t,h=[],c=v.call(arguments),l=(r.get(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,l),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(t=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.rnamespace||n.rnamespace.test(t.namespace))&&(n.handleObj=t,n.data=t.data,e=((i.event.special[t.origType]||{}).handle||t.handler).apply(u.elem,c),e!==undefined&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,t){var e,u,f,o,h=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&(n.type!=="click"||isNaN(n.button)||n.button<1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&(r.disabled!==!0||n.type!=="click")){for(u=[],e=0;e<s;e++)o=t[e],f=o.selector+" ",u[f]===undefined&&(u[f]=o.needsContext?i(f,this).index(r)>-1:i.find(f,this,null,[r]).length),u[f]&&u.push(o);u.length&&h.push({elem:r,handlers:u})}return s<t.length&&h.push({elem:this,handlers:t.slice(s)}),h},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var e,i,r,f=t.button;return n.pageX==null&&t.clientX!=null&&(e=n.target.ownerDocument||u,i=e.documentElement,r=e.body,n.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),n.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),n.which||f===undefined||(n.which=f&1?1:f&2?3:f&4?2:0),n}},fix:function(n){if(n[i.expando])return n;var f,e,o,r=n.type,s=n,t=this.fixHooks[r];for(t||(this.fixHooks[r]=t=gf.test(r)?this.mouseHooks:df.test(r)?this.keyHooks:{}),o=t.props?this.props.concat(t.props):this.props,n=new i.Event(s),f=o.length;f--;)e=o[f],n[e]=s[e];return n.target||(n.target=u),n.target.nodeType===3&&(n.target=n.target.parentNode),t.filter?t.filter(n,s):n},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==gr()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===gr()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&i.nodeName(this,"input"))return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?yt:nt):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:nt,isPropagationStopped:nt,isImmediatePropagationStopped:nt,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=yt;n&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=yt;n&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=yt;n&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return fi(this,n,t,i,r)},one:function(n,t,i,r){return fi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=nt),this.each(function(){i.event.remove(this,n,r,t)})}});var ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,te=/<script|<style|<link/i,ie=/checked\s*(?:[^=]|=\s*.checked.)/i,re=/^true\/(.*)/,ue=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(ne,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!f.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)oe(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)tu(s[u],e[u]);else tu(n,h);return e=o(h,"script"),e.length>0&&ui(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;(t=n[o])!==undefined;o++)if(g(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=undefined}t[e.expando]&&(t[e.expando]=undefined)}}});i.fn.extend({domManip:b,detach:function(n){return iu(this,n,!0)},remove:function(n){return iu(this,n)},text:function(n){return a(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return b(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=nu(this,n);t.appendChild(n)}})},prepend:function(){return b(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=nu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return b(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return b(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return a(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!te.test(n)&&!c[(pr.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return b(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ni.apply(f,u.get());return this.pushStack(f)}});ei={HTML:"block",BODY:"block"};var uu=/^margin/,si=new RegExp("^("+ar+")(?!px)[a-z%]+$","i"),wt=function(t){var i=t.ownerDocument.defaultView;return i.opener||(i=n),i.getComputedStyle(t)},hi=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f},st=u.documentElement;(function(){function o(){t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";t.innerHTML="";st.appendChild(r);var i=n.getComputedStyle(t);s=i.top!=="1%";c=i.marginLeft==="2px";e=i.width==="4px";t.style.marginRight="50%";h=i.marginRight==="4px";st.removeChild(r)}var s,e,h,c,r=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle=t.style.backgroundClip==="content-box",r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(t),i.extend(f,{pixelPosition:function(){return o(),s},boxSizingReliable:function(){return e==null&&o(),e},pixelMarginRight:function(){return e==null&&o(),h},reliableMarginLeft:function(){return e==null&&o(),c},reliableMarginRight:function(){var f,i=t.appendChild(u.createElement("div"));return i.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",st.appendChild(r),f=!parseFloat(n.getComputedStyle(i).marginRight),st.removeChild(r),t.removeChild(i),f}}))})();var se=/^(none|table(?!-c[ea]).+)/,he={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:"0",fontWeight:"400"},eu=["Webkit","O","Moz","ms"],ou=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=tt(n,"opacity");return i===""?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var e,h,o,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=su(s)||s),o=i.cssHooks[t]||i.cssHooks[s],r!==undefined){if(h=typeof r,h==="string"&&(e=et.exec(r))&&e[1]&&(r=vr(n,t,e),h="number"),r==null||r!==r)return;h==="number"&&(r+=e&&e[3]||(i.cssNumber[s]?"":"px"));f.clearCloneStyle||r!==""||t.indexOf("background")!==0||(c[t]="inherit");o&&"set"in o&&(r=o.set(n,r,u))===undefined||(c[t]=r)}else return o&&"get"in o&&(e=o.get(n,!1,u))!==undefined?e:c[t]}},css:function(n,t,r,u){var f,s,o,e=i.camelCase(t);return(t=i.cssProps[e]||(i.cssProps[e]=su(e)||e),o=i.cssHooks[t]||i.cssHooks[e],o&&"get"in o&&(f=o.get(n,!0,r)),f===undefined&&(f=tt(n,t,u)),f==="normal"&&t in fu&&(f=fu[t]),r===""||r)?(s=parseFloat(f),r===!0||isFinite(s)?s||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return se.test(i.css(n,"display"))&&n.offsetWidth===0?hi(n,he,function(){return lu(n,t,u)}):lu(n,t,u)},set:function(n,r,u){var f,e=u&&wt(n),o=u&&cu(n,t,u,i.css(n,"boxSizing",!1,e)==="border-box",e);return o&&(f=et.exec(r))&&(f[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),hu(n,r,o)}}});i.cssHooks.marginLeft=ci(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(tt(n,"marginLeft"))||n.getBoundingClientRect().left-hi(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.cssHooks.marginRight=ci(f.reliableMarginRight,function(n,t){if(t)return hi(n,{display:"inline-block"},tt,[n,"marginRight"])});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};uu.test(n)||(i.cssHooks[n+t].set=hu)});i.fn.extend({css:function(n,t){return a(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=wt(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)},show:function(){return au(this,!0)},hide:function(){return au(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){ot(this)?i(this).show():i(this).hide()})}});i.Tween=s;s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}};s.prototype.init.prototype=s.prototype;s.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=s.prototype.init;i.fx.step={};vu=/^(?:toggle|show|hide)$/;yu=/queueHooks$/;i.Animation=i.extend(l,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return vr(i.elem,n,et.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],l.tweeners[r]=l.tweeners[r]||[],l.tweeners[r].unshift(t)},prefilters:[ce],prefilter:function(n,t){t?l.prefilters.unshift(n):l.prefilters.push(n)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ot).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=l(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&yu.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||o[t].queue===n)&&(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(kt(t,!0),n,i,u)}});i.each({slideDown:kt("show"),slideUp:kt("hide"),slideToggle:kt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(it=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();it=undefined};i.fx.timer=function(n){i.timers.push(n);n()?i.fx.start():i.timers.pop()};i.fx.interval=13;i.fx.start=function(){bt||(bt=n.setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){n.clearInterval(bt);bt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox";f.checkOn=n.value!=="";f.optSelected=i.selected;t.disabled=!0;f.optDisabled=!i.disabled;n=u.createElement("input");n.value="t";n.type="radio";f.radioValue=n.value==="t"}();rt=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return a(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(t=t.toLowerCase(),f=i.attrHooks[t]||(i.expr.match.bool.test(t)?bu:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(h);if(f&&n.nodeType===1)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)&&(n[u]=!1),n.removeAttribute(r)}});bu={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=rt[t]||i.find.attr;rt[t]=function(n,t,i){var u,f;return i||(f=rt[t],rt[t]=u,u=r(n,t,i)!=null?t.toLowerCase():null,rt[t]=f),u}});ku=/^(?:input|select|textarea|button)$/i;du=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return a(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):ku.test(n.nodeName)||du.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});dt=/[\t\r\n\f]/g;i.fn.extend({addClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,k(this)))});if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=k(r),t=r.nodeType===1&&(" "+u+" ").replace(dt," "),t){for(s=0;f=o[s++];)t.indexOf(" "+f+" ")<0&&(t+=f+" ");e=i.trim(t);u!==e&&r.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,k(this)))});if(!arguments.length)return this.attr("class","");if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=k(r),t=r.nodeType===1&&(" "+u+" ").replace(dt," "),t){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=i.trim(t);u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return typeof t=="boolean"&&u==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,k(this),t),t)}):this.each(function(){var t,e,f,o;if(u==="string")for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(n===undefined||u==="boolean")&&(t=k(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+k(t)+" ").replace(dt," ").indexOf(i)>-1)return!0;return!1}});gu=/\r/g;i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;this.nodeType===1&&(u=f?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":i.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(u,"value"))!==undefined)?r:(r=u.value,typeof r=="string"?r.replace(gu,""):r==null?"":r):void 0}});i.extend({valHooks:{option:{get:function(n){return i.trim(n.value)}},select:{get:function(n){for(var o,t,s=n.options,r=n.selectedIndex,u=n.type==="select-one"||r<0,h=u?null:[],c=u?r+1:s.length,e=r<0?c:u?r:0;e<c;e++)if(t=s[e],(t.selected||e===r)&&(f.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(o=i(t).val(),u)return o;h.push(o)}return h},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};f.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});li=/^(?:focusinfocus|focusoutblur)$/;i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=ti.call(t,"type")?t.type:t,y=ti.call(t,"namespace")?t.namespace.split("."):[];if((s=c=e=e||u,e.nodeType!==3&&e.nodeType!==8)&&!li.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=e),f=f==null?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,li.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&g(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||(!l._default||l._default.apply(p.pop(),f)===!1)&&g(e)&&a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=undefined,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t);u.isDefaultPrevented()&&r.preventDefault()}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}});f.focusin="onfocusin"in n;f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var ht=n.location,ai=i.now(),vi=/\?/;i.parseJSON=function(n){return JSON.parse(n+"")};i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var ae=/#.*$/,nf=/([?&])_=[^&]*/,ve=/^(.*?):[ \t]*([^\r\n]*)$/mg,ye=/^(?:GET|HEAD)$/,pe=/^\/\//,tf={},yi={},rf="*/".concat("*"),pi=u.createElement("a");pi.href=ht.href;i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ht.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ht.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":rf,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?wi(wi(n,i.ajaxSettings),t):wi(i.ajaxSettings,n)},ajaxPrefilter:uf(tf),ajaxTransport:uf(yi),ajax:function(t,r){function b(t,r,u,h){var v,rt,it,p,b,a=r;s!==2&&(s=2,d&&n.clearTimeout(d),l=undefined,k=h||"",e.readyState=t>0?4:0,v=t>=200&&t<300||t===304,u&&(p=we(f,e,u)),p=be(f,p,e,v),v?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||f.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,it=p.error,v=!it)):(it=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",v?nt.resolveWith(c,[rt,a,e]):nt.rejectWith(c,[e,a,it]),e.statusCode(w),w=undefined,y&&g.trigger(v?"ajaxSuccess":"ajaxError",[e,f,v?rt:it]),tt.fireWith(c,[e,a]),y&&(g.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined);r=r||{};var l,o,k,p,d,a,y,v,f=i.ajaxSetup({},r),c=f.context||f,g=f.context&&(c.nodeType||c.jquery)?i(c):i.event,nt=i.Deferred(),tt=i.Callbacks("once memory"),w=f.statusCode||{},it={},rt={},s=0,ut="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s===2){if(!p)for(p={};t=ve.exec(k);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s===2?k:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return s||(n=rt[i]=rt[i]||n,it[n]=t),this},overrideMimeType:function(n){return s||(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s<2)for(t in n)w[t]=[w[t],n[t]];else e.always(n[e.status]);return this},abort:function(n){var t=n||ut;return l&&l.abort(t),b(0,t),this}};if(nt.promise(e).complete=tt.add,e.success=e.done,e.error=e.fail,f.url=((t||f.url||ht.href)+"").replace(ae,"").replace(pe,ht.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=i.trim(f.dataType||"*").toLowerCase().match(h)||[""],f.crossDomain==null){a=u.createElement("a");try{a.href=f.url;a.href=a.href;f.crossDomain=pi.protocol+"//"+pi.host!=a.protocol+"//"+a.host}catch(ft){f.crossDomain=!0}}if(f.data&&f.processData&&typeof f.data!="string"&&(f.data=i.param(f.data,f.traditional)),ff(tf,f,r,e),s===2)return e;y=i.event&&f.global;y&&i.active++==0&&i.event.trigger("ajaxStart");f.type=f.type.toUpperCase();f.hasContent=!ye.test(f.type);o=f.url;f.hasContent||(f.data&&(o=f.url+=(vi.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=nf.test(o)?o.replace(nf,"$1_="+ai++):o+(vi.test(o)?"&":"?")+"_="+ai++));f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o]));(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType);e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", "+rf+"; q=0.01":""):f.accepts["*"]);for(v in f.headers)e.setRequestHeader(v,f.headers[v]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s===2))return e.abort();ut="abort";for(v in{success:1,error:1,complete:1})e[v](f[v]);if(l=ff(yi,f,r,e),l){if(e.readyState=1,y&&g.trigger("ajaxSend",[e,f]),s===2)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=1;l.send(it,b)}catch(ft){if(s<2)b(-1,ft);else throw ft;}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}});i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=undefined),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}});i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};i.fn.extend({wrapAll:function(n){var t;return i.isFunction(n)?this.each(function(t){i(this).wrapAll(n.call(this,t))}):(this[0]&&(t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this)},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});i.expr.filters.hidden=function(n){return!i.expr.filters.visible(n)};i.expr.filters.visible=function(n){return n.offsetWidth>0||n.offsetHeight>0||n.getClientRects().length>0};var ke=/%20/g,de=/\[\]$/,ef=/\r?\n/g,ge=/^(?:submit|button|image|reset|file)$/i,no=/^(?:input|select|textarea|keygen)/i;return i.param=function(n,t){var r,u=[],f=function(n,t){t=i.isFunction(t)?t():t==null?"":t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(t===undefined&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)bi(r,n[r],t,f);return u.join("&").replace(ke,"+")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&no.test(this.nodeName)&&!ge.test(n)&&(this.checked||!yr.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(ef,"\r\n")}}):{name:t.name,value:r.replace(ef,"\r\n")}}).get()}}),i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},of={0:200,1223:204},ut=i.ajaxSettings.xhr(),f.cors=!!ut&&"withCredentials"in ut,f.ajax=ut=!!ut,i.ajaxTransport(function(t){var i,r;if(f.cors||ut&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType);t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(of[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=i("error");e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e(n.type==="error"?404:200,n.type)});u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),ki=[],gt=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=ki.pop()||i.expando+"_"+ai++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(gt.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&gt.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp")return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(gt,"$1"+f):t.jsonp!==!1&&(t.url+=(vi.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){e===undefined?i(n).removeProp(f):n[f]=e;t[f]&&(t.jsonpCallback=r.jsonpCallback,ki.push(f));o&&i.isFunction(e)&&e(o[0]);o=e=undefined}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(r=t,t=!1);t=t||(f.createHTMLDocument?u.implementation.createHTMLDocument(""):u);var e=rr.exec(n),o=!r&&[];return e?[t.createElement(e[1])]:(e=kr([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},di=i.fn.load,i.fn.load=function(n,t,r){if(typeof n!="string"&&di)return di.apply(this,arguments);var f,o,s,u=this,e=n.indexOf(" ");return e>-1&&(f=i.trim(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=undefined):t&&typeof t=="object"&&(o="POST"),u.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments;u.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){u.each(function(){r.apply(u,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};l==="static"&&(n.style.position="relative");u=a.offset();s=i.css(n,"top");c=i.css(n,"left");v=(l==="absolute"||l==="fixed")&&(s+c).indexOf("auto")>-1;v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);i.isFunction(t)&&(t=t.call(n,r,i.extend({},u)));t.top!=null&&(f.top=t.top-u.top+h);t.left!=null&&(f.left=t.left-u.left+o);"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var t,f,r=this[0],u={top:0,left:0},e=r&&r.ownerDocument;if(e)return(t=e.documentElement,!i.contains(t,r))?u:(u=r.getBoundingClientRect(),f=sf(e),{top:u.top+f.pageYOffset-t.clientTop,left:u.left+f.pageXOffset-t.clientLeft})},position:function(){if(this[0]){var n,r,u=this[0],t={top:0,left:0};return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0)-n.scrollTop(),t.left+=i.css(n[0],"borderLeftWidth",!0)-n.scrollLeft()),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||st})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return a(this,function(n,i,u){var f=sf(n);if(u===undefined)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=ci(f.pixelPosition,function(n,r){if(r)return r=tt(n,t),si.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(u,f){var e=arguments.length&&(r||typeof u!="boolean"),o=r||(u===!0||f===!0?"margin":"border");return a(this,function(t,r,u){var f;return i.isWindow(t)?t.document.documentElement["client"+n]:t.nodeType===9?(f=t.documentElement,Math.max(t.body["scroll"+n],f["scroll"+n],t.body["offset"+n],f["offset"+n],f["client"+n])):u===undefined?i.css(t,r,o):i.style(t,r,u,o)},t,e?u:undefined,e,null)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)},size:function(){return this.length}}),i.fn.andSelf=i.fn.addBack,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),hf=n.jQuery,cf=n.$,i.noConflict=function(t){return n.$===i&&(n.$=cf),t&&n.jQuery===i&&(n.jQuery=hf),i},t||(n.jQuery=n.$=i),i});
/*!
 * Bootstrap v3.3.6 (http://getbootstrap.com)
 * Copyright 2011-2015 Twitter, Inc.
 * Licensed under the MIT license
 */
if(typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||t[0]==1&&t[1]==9&&t[2]<1||t[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;(u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented())||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.6";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";u.resetText==null&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](u[t]==null?this.options[t]:u[t]);t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):n.prop("type")=="checkbox"&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");n(t.target).is('input[type="radio"]')||n(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));this.options.pause!="hover"||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.6";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f=n=="prev"&&i===0||n=="next"&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r=n=="prev"?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f=i=="next"?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),this.$element.trigger(s),s.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.6";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return u.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&t.which===3||(n(e).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&t.type=="click"&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented())||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f))))}))}function o(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})}var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.6";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&t.which!=27||s&&t.which==27)return t.which==27&&o.find(i).trigger("focus"),e.trigger("click");(h=" li:not(.disabled):visible a",f=o.find(".dropdown-menu"+h),f.length)&&(u=f.index(t.target),t.which==38&&u>0&&u--,t.which==40&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=o;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.6";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}};t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){r=n.support.transition&&f;this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.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(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusin"?"focus":"hover"]=!0),i.tip().hasClass("in")||i.hoverState=="in"){i.hoverState="in";return}if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusout"?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)}};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i=i=="bottom"&&f.bottom+s>e.bottom?"top":i=="top"&&f.top-s<e.top?"bottom":i=="right"&&f.right+o>e.width?"left":i=="left"&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i));w=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(w,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;n=="out"&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;i=="top"&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function e(){u.hoverState!="in"&&r.detach();u.$element.removeAttr("aria-describedby").trigger("hidden.bs."+u.type);i&&i()}var u=this,r=n(this.$tip),f=n.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r=u.tagName=="BODY",i=u.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.6";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?typeof t=="string"?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(i).is(document.body)?n(window):n(i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})}t.VERSION="3.3.6";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(t[n+1]===undefined||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.6";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.6";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&u<=i?"top":r!=null&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin=i=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom);t.offsetTop!=null&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery);Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0;i<this.length;++i)if(this[i]==n)return i;return-1});Array.prototype.map||(Array.prototype.map=function(n){for(var i=[],t=0;t<this.length;++t)i.push(n(this[t]));return i});Array.prototype.filter||(Array.prototype.filter=function(n){for(var i=[],t=0;t<this.length;++t)n(this[t])&&i.push(this[t]);return i});Function.prototype.bind||(Function.prototype.bind=function(n){if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var r=Array.prototype.slice.call(arguments,1),u=this,t=function(){},i=function(){return u.apply(this instanceof t?this:n,r.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(t.prototype=this.prototype),i.prototype=new t,i});Array.prototype.forEach||(Array.prototype.forEach=function(n){for(var i=[],t=0;t<this.length;++t)i.push(n(this[t]));return i});Date.prototype.toISOString||(Date.prototype.toISOString=function(){return this.getUTCFullYear()+"-"+(this.getUTCMonth()+1)+"-"+this.getUTCDate()+"T"+this.getUTCHours()+":"+this.getUTCMinutes()+":"+this.getSeconds()+"."+this.getUTCMilliseconds()+"Z"});typeof String.prototype.trim!="function"&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});Array.isArray||(Array.isArray=function(n){return Object.prototype.toString.call(n)==="[object Array]"});Array.prototype.some||(Array.prototype.some=function(n){"use strict";var t;if(this==null)throw new TypeError("Array.prototype.some called on null or undefined");if(typeof n!="function")throw new TypeError;var i=Object(this),r=i.length>>>0,u=arguments.length>=2?arguments[1]:void 0;for(t=0;t<r;t++)if(t in i&&n.call(u,i[t],t,i))return!0;return!1});Object.keys||(Object.keys=function(n){if(n!==Object(n))throw new TypeError("Object.keys called on a non-object");var t=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.push(i);return t});
/*! http://mths.be/endswith v0.2.0 by @mathias */
String.prototype.endsWith||function(){"use strict";var n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),i={}.toString,t=function(n){var f,r,c,e,u;if(this==null)throw TypeError();if(f=String(this),n&&i.call(n)=="[object RegExp]")throw TypeError();var o=f.length,s=String(n),h=s.length,t=o;if(arguments.length>1&&(r=arguments[1],r!==undefined&&(t=r?Number(r):0,t!=t&&(t=0))),c=Math.min(Math.max(t,0),o),e=c-h,e<0)return!1;for(u=-1;++u<h;)if(f.charCodeAt(e+u)!=s.charCodeAt(u))return!1;return!0};n?n(String.prototype,"endsWith",{value:t,configurable:!0,writable:!0}):String.prototype.endsWith=t}();
/*! http://mths.be/startswith v0.2.0 by @mathias */
String.prototype.startsWith||function(){"use strict";var n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),i={}.toString,t=function(n){var u,f,r;if(this==null)throw TypeError();if(u=String(this),n&&i.call(n)=="[object RegExp]")throw TypeError();var e=u.length,o=String(n),s=o.length,h=arguments.length>1?arguments[1]:undefined,t=h?Number(h):0;if(t!=t&&(t=0),f=Math.min(Math.max(t,0),e),s+f>e)return!1;for(r=-1;++r<s;)if(u.charCodeAt(f+r)!=o.charCodeAt(r))return!1;return!0};n?n(String.prototype,"startsWith",{value:t,configurable:!0,writable:!0}):String.prototype.startsWith=t}();
/*!
* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
*/
(function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x<style>"+t+"<\/style>",r.insertBefore(i.lastChild,r.firstChild)}function l(){var n=i.elements;return typeof n=="string"?n.split(" "):n}function w(n,t){var r=i.elements;typeof r!="string"&&(r=r.join(" "));typeof n!="string"&&(n=n.join(" "));i.elements=r+" "+n;s(t)}function o(n){var t=c[n[h]];return t||(t={},e++,n[h]=e,c[e]=t),t}function a(n,i,u){if(i||(i=t),r)return i.createElement(n);u||(u=o(i));var f;return f=u.cache[n]?u.cache[n].cloneNode():y.test(n)?(u.cache[n]=u.createElem(n)).cloneNode():u.createElem(n),f.canHaveChildren&&!v.test(n)&&!f.tagUrn?u.frag.appendChild(f):f}function b(n,i){if(n||(n=t),r)return n.createDocumentFragment();i=i||o(n);for(var f=i.frag.cloneNode(),u=0,e=l(),s=e.length;u<s;u++)f.createElement(e[u]);return f}function k(n,t){t.cache||(t.cache={},t.createElem=n.createElement,t.createFrag=n.createDocumentFragment,t.frag=t.createFrag());n.createElement=function(r){return i.shivMethods?a(r,n,t):t.createElem(r)};n.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/[\w\-:]+/g,function(n){return t.createElem(n),t.frag.createElement(n),'c("'+n+'")'})+");return n}")(i,t.frag)}function s(n){n||(n=t);var u=o(n);return!i.shivCSS||f||u.hasCSS||(u.hasCSS=!!p(n,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||k(n,u),n}var u=n.html5||{},v=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,y=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,h="_html5shiv",e=0,c={},r,i;(function(){try{var n=t.createElement("a");n.innerHTML="<xyz><\/xyz>";f="hidden"in n;r=n.childNodes.length==1||function(){t.createElement("a");var n=t.createDocumentFragment();return typeof n.cloneNode=="undefined"||typeof n.createDocumentFragment=="undefined"||typeof n.createElement=="undefined"}()}catch(i){f=!0;r=!0}})();i={elements:u.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:u.shivCSS!==!1,supportsUnknownElements:r,shivMethods:u.shivMethods!==!1,type:"default",shivDocument:s,createElement:a,createDocumentFragment:b,addElements:w};n.html5=i;s(t);typeof module=="object"&&module.exports&&(module.exports=i)})(typeof window!="undefined"?window:this,document);
/*!
 * @license AngularJS v1.5.5
 * (c) 2010-2016 Google, Inc. http://angularjs.org
 * License: MIT
 */
(function(n){"use strict";function l(n,t){return t=t||Error,function(){var f=2,i=arguments,o=i[0],u="["+(n?n+":":"")+o+"] ",s=i[1],e,r;for(u+=s.replace(/\{\d+\}/g,function(n){var r=+n.slice(1,-1),t=r+f;return t<i.length?os(i[t]):n}),u+="\nhttp://errors.angularjs.org/1.5.5/"+(n?n+"/":"")+o,r=f,e="?";r<i.length;r++,e="&")u+=e+"p"+(r-f)+"="+encodeURIComponent(os(i[r]));return new t(u)}}function ei(n){if(n==null||fr(n))return!1;if(c(n)||h(n)||e&&n instanceof e)return!0;var t="length"in Object(n)&&n.length;return w(t)&&(t>=0&&(t-1 in n||n instanceof Array)||typeof n.item=="function")}function t(n,i,r){var u,e,o;if(n)if(f(n))for(u in n)u!="prototype"&&u!="length"&&u!="name"&&(!n.hasOwnProperty||n.hasOwnProperty(u))&&i.call(r,n[u],u,n);else if(c(n)||ei(n))for(o=typeof n!="object",u=0,e=n.length;u<e;u++)(o||u in n)&&i.call(r,n[u],u,n);else if(n.forEach&&n.forEach!==t)n.forEach(i,r,n);else if(vo(n))for(u in n)i.call(r,n[u],u,n);else if(typeof n.hasOwnProperty=="function")for(u in n)n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else for(u in n)at.call(n,u)&&i.call(r,n[u],u,n);return n}function ho(n,t,i){for(var r=Object.keys(n).sort(),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function co(n){return function(t,i){n(i,t)}}function ou(){return++la}function lo(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function yf(n,t,i){for(var e,l,o,a,u,r,v=n.$$hashKey,h=0,y=t.length;h<y;++h)if(e=t[h],s(e)||f(e))for(l=Object.keys(e),o=0,a=l.length;o<a;o++)u=l[o],r=e[u],i&&s(r)?et(r)?n[u]=new Date(r.valueOf()):ur(r)?n[u]=new RegExp(r):r.nodeName?n[u]=r.cloneNode(!0):bf(r)?n[u]=r.clone():(s(n[u])||(n[u]=c(r)?[]:{}),yf(n[u],[r],!0)):n[u]=r;return lo(n,v),n}function v(n){return yf(n,ir.call(arguments,1),!1)}function aa(n){return yf(n,ir.call(arguments,1),!0)}function tt(n){return parseInt(n,10)}function pf(n,t){return v(Object.create(n),t)}function o(){}function rr(n){return n}function ft(n){return function(){return n}}function ao(n){return f(n.toString)&&n.toString!==rt}function r(n){return typeof n=="undefined"}function u(n){return typeof n!="undefined"}function s(n){return n!==null&&typeof n=="object"}function vo(n){return n!==null&&typeof n=="object"&&!so(n)}function h(n){return typeof n=="string"}function w(n){return typeof n=="number"}function et(n){return rt.call(n)==="[object Date]"}function f(n){return typeof n=="function"}function ur(n){return rt.call(n)==="[object RegExp]"}function fr(n){return n&&n.window===n}function er(n){return n&&n.$evalAsync&&n.$watch}function va(n){return rt.call(n)==="[object File]"}function ya(n){return rt.call(n)==="[object FormData]"}function pa(n){return rt.call(n)==="[object Blob]"}function oi(n){return typeof n=="boolean"}function su(n){return n&&f(n.then)}function wa(n){return n&&w(n.length)&&yo.test(rt.call(n))}function ba(n){return rt.call(n)==="[object ArrayBuffer]"}function bf(n){return!!(n&&(n.nodeName||n.prop&&n.attr&&n.find))}function ka(n){for(var i={},r=n.split(","),t=0;t<r.length;t++)i[r[t]]=!0;return i}function vt(n){return a(n.nodeName||n[0]&&n[0].nodeName)}function or(n,t){var i=n.indexOf(t);return i>=0&&n.splice(i,1),i}function ni(n,i){function o(n,t){var e=t.$$hashKey,i,u,f;if(c(n))for(u=0,f=n.length;u<f;u++)t.push(r(n[u]));else if(vo(n))for(i in n)t[i]=r(n[i]);else if(n&&typeof n.hasOwnProperty=="function")for(i in n)n.hasOwnProperty(i)&&(t[i]=r(n[i]));else for(i in n)at.call(n,i)&&(t[i]=r(n[i]));return lo(t,e),t}function r(n){var i,r,t;if(!s(n))return n;if(i=u.indexOf(n),i!==-1)return e[i];if(fr(n)||er(n))throw fi("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");return r=!1,t=h(n),t===undefined&&(t=c(n)?[]:Object.create(so(n)),r=!0),u.push(n),e.push(t),r?o(n,t):t}function h(n){var t,i;switch(rt.call(n)){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 n.constructor(r(n.buffer));case"[object ArrayBuffer]":return n.slice?n.slice(0):(t=new ArrayBuffer(n.byteLength),new Uint8Array(t).set(new Uint8Array(n)),t);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new n.constructor(n.valueOf());case"[object RegExp]":return i=new RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),i.lastIndex=n.lastIndex,i;case"[object Blob]":return new n.constructor([n],{type:n.type})}if(f(n.cloneNode))return n.cloneNode(!0)}var u=[],e=[];if(i){if(wa(i)||ba(i))throw fi("cpta","Can't copy! TypedArray destination cannot be mutated.");if(n===i)throw fi("cpi","Can't copy! Source and destination are identical.");return c(i)?i.length=0:t(i,function(n,t){t!=="$$hashKey"&&delete i[t]}),u.push(n),e.push(i),o(n,i)}return r(n)}function ot(n,t){var i,u,r;if(c(n))for(t=t||[],i=0,u=n.length;i<u;i++)t[i]=n[i];else if(s(n)){t=t||{};for(r in n)r.charAt(0)==="$"&&r.charAt(1)==="$"||(t[r]=n[r])}return t||n}function st(n,t){if(n===t)return!0;if(n===null||t===null)return!1;if(n!==n&&t!==t)return!0;var e=typeof n,s=typeof t,o,i,r;if(e==s&&e=="object")if(c(n)){if(!c(t))return!1;if((o=n.length)==t.length){for(i=0;i<o;i++)if(!st(n[i],t[i]))return!1;return!0}}else{if(et(n))return et(t)?st(n.getTime(),t.getTime()):!1;if(ur(n))return ur(t)?n.toString()==t.toString():!1;if(er(n)||er(t)||fr(n)||fr(t)||c(t)||et(t)||ur(t))return!1;r=p();for(i in n)if(i.charAt(0)!=="$"&&!f(n[i])){if(!st(n[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&i.charAt(0)!=="$"&&u(t[i])&&!f(t[i]))return!1;return!0}return!1}function hr(n,t,i){return n.concat(ir.call(t,i))}function cr(n,t){return ir.call(n,t||0)}function po(n,t){var i=arguments.length>2?cr(arguments,2):[];return!f(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,hr(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function wo(t,i){var r=i;return typeof t=="string"&&t.charAt(0)==="$"&&t.charAt(1)==="$"?r=undefined:fr(i)?r="$WINDOW":i&&n.document===i?r="$DOCUMENT":er(i)&&(r="$SCOPE"),r}function lr(n,t){return r(n)?undefined:(w(t)||(t=t?2:null),JSON.stringify(n,wo,t))}function bo(n){return h(n)?JSON.parse(n):n}function go(n,t){n=n.replace(ko,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(i)?t:i}function da(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function kf(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset(),u=go(t,r);return da(n,i*(u-r))}function yt(n){n=e(n).clone();try{n.empty()}catch(i){}var t=e("<div>").append(n).html();try{return n[0].nodeType===ki?a(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+a(t)})}catch(i){return a(t)}}function ns(n){try{return decodeURIComponent(n)}catch(t){}}function ts(n){var i={};return t((n||"").split("&"),function(n){var f,t,r;n&&(t=n=n.replace(/\+/g,"%20"),f=n.indexOf("="),f!==-1&&(t=n.substring(0,f),r=n.substring(f+1)),t=ns(t),u(t)&&(r=u(r)?ns(r):!0,at.call(i,t)?c(i[t])?i[t].push(r):i[t]=[i[t],r]:i[t]=r))}),i}function df(n){var i=[];return t(n,function(n,r){c(n)?t(n,function(n){i.push(ct(r,!0)+(n===!0?"":"="+ct(n,!0)))}):i.push(ct(r,!0)+(n===!0?"":"="+ct(n,!0)))}),i.length?i.join("&"):""}function hu(n){return ct(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ct(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ga(n,t){for(var i,u=si.length,r=0;r<u;++r)if(i=si[r]+t,h(i=n.getAttribute(i)))return i;return null}function nv(n,i){var r,u,f={};t(si,function(t){var i=t+"app";!r&&n.hasAttribute&&n.hasAttribute(i)&&(r=n,u=n.getAttribute(i))});t(si,function(t){var f=t+"app",i;!r&&(i=n.querySelector("["+f.replace(":","\\:")+"]"))&&(r=i,u=i.getAttribute(f))});r&&(f.strictDi=ga(r,"strict-di")!==null,i(r,u?[u]:[],f))}function is(i,r,u){var o;s(u)||(u={});o={strictDi:!1};u=v(o,u);var h=function(){var f,t;if(i=e(i),i.injector()){f=i[0]===n.document?"document":yt(i);throw fi("btstrpd","App already bootstrapped with this element '{0}'",f.replace(/</,"&lt;").replace(/>/,"&gt;"));}return r=r||[],r.unshift(["$provide",function(n){n.value("$rootElement",i)}]),u.debugInfoEnabled&&r.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),r.unshift("ng"),t=br(r,u.strictDi),t.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),t},c=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;if(n&&c.test(n.name)&&(u.debugInfoEnabled=!0,n.name=n.name.replace(c,"")),n&&!l.test(n.name))return h();n.name=n.name.replace(l,"");ut.resumeBootstrap=function(n){return t(n,function(n){r.push(n)}),h()};f(ut.resumeDeferredBootstrap)&&ut.resumeDeferredBootstrap()}function tv(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function iv(n){var t=ut.element(n).injector();if(!t)throw fi("test","no injector found for element argument to getTestability");return t.get("$$testability")}function us(n,t){return t=t||"_",n.replace(rs,function(n,i){return(i?t:"")+n.toLowerCase()})}function rv(){var i,t;gf||(t=sr(),bt=r(t)?n.jQuery:t?n[t]:undefined,bt&&bt.fn.on?(e=bt,v(bt.fn,{scope:hi.scope,isolateScope:hi.isolateScope,controller:hi.controller,injector:hi.injector,inheritedData:hi.inheritedData}),i=bt.cleanData,bt.cleanData=function(n){for(var t,u=0,r;(r=n[u])!=null;u++)t=bt._data(r,"events"),t&&t.$destroy&&bt(r).triggerHandler("$destroy");i(n)}):e=b,ut.element=e,gf=!0)}function cu(n,t,i){if(!n)throw fi("areq","Argument '{0}' is {1}",t||"?",i||"required");return n}function wi(n,t,i){return i&&c(n)&&(n=n[n.length-1]),cu(f(n),t,"not a function, got "+(n&&typeof n=="object"?n.constructor.name||"Object":typeof n)),n}function bi(n,t){if(n==="hasOwnProperty")throw fi("badname","hasOwnProperty is not a valid {0} name",t);}function fs(n,t,i){var r;if(!t)return n;var u=t.split("."),e,o=n,s=u.length;for(r=0;r<s;r++)e=u[r],n&&(n=(o=n)[e]);return!i&&f(n)?po(o,n):n}function lu(n){for(var t=n[0],u=n[n.length-1],i,r=1;t!==u&&(t=t.nextSibling);r++)(i||n[r]!==t)&&(i||(i=e(ir.call(n,0,r))),i.push(t));return i||n}function p(){return Object.create(null)}function fv(n){function t(n,t,i){return n[t]||(n[t]=i())}var r=l("$injector"),u=l("ng"),i=t(n,"angular",Object);return i.$$minErr=i.$$minErr||l,t(i,"module",function(){var n={};return function(i,e,o){var s=function(n,t){if(n==="hasOwnProperty")throw u("badname","hasOwnProperty is not a valid {0} name",t);};return s(i,"module"),e&&n.hasOwnProperty(i)&&(n[i]=null),t(n,i,function(){function s(n,i,r,f){return f||(f=t),function(){return f[r||"push"]([n,i,arguments]),u}}function n(n,r){return function(e,o){return o&&f(o)&&(o.$$moduleName=i),t.push([n,r,arguments]),u}}if(!e)throw r("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var t=[],h=[],c=[],l=s("$injector","invoke","push",h),u={_invokeQueue:t,_configBlocks:h,_runBlocks:c,requires:e,name:i,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:s("$provide","value"),constant:s("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:l,run:function(n){return c.push(n),this}};return o&&l(o),u})}})}function ev(n){var t=[];return JSON.stringify(n,function(n,i){if(i=wo(n,i),s(i)){if(t.indexOf(i)>=0)return"...";t.push(i)}return i})}function os(n){return typeof n=="function"?n.toString().replace(/ \{[\s\S]*$/,""):r(n)?"undefined":typeof n!="string"?ev(n):n}function ov(i){v(i,{bootstrap:is,copy:ni,extend:v,merge:aa,equals:st,element:e,forEach:t,injector:br,noop:o,bind:po,toJson:lr,fromJson:bo,identity:rr,isUndefined:r,isDefined:u,isString:h,isFunction:f,isObject:s,isNumber:w,isElement:bf,isArray:c,version:ss,isDate:et,lowercase:a,uppercase:tr,callbacks:{counter:0},getTestability:iv,$$minErr:l,$$csp:ti,reloadWithDebugInfo:tv});vf=fv(n);vf("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:bw});n.provider("$compile",gs).directive({a:il,input:al,textarea:al,form:gb,script:eg,select:cg,style:ag,option:lg,ngBind:pk,ngBindHtml:bk,ngBindTemplate:wk,ngClass:dk,ngClassEven:nd,ngClassOdd:gk,ngCloak:td,ngController:id,ngForm:nk,ngHide:gd,ngIf:ud,ngInclude:fd,ngInit:od,ngNonBindable:vd,ngPluralize:bd,ngRepeat:kd,ngShow:dd,ngStyle:ng,ngSwitch:tg,ngSwitchWhen:ig,ngSwitchDefault:rg,ngOptions:wd,ngTransclude:fg,ngModel:cd,ngList:sd,ngChange:kk,pattern:ra,ngPattern:ra,required:ia,ngRequired:ia,minlength:fa,ngMinlength:fa,maxlength:ua,ngMaxlength:ua,ngValue:yk,ngModelOptions:ad}).directive({ngInclude:ed}).directive(tu).directive(vl);n.provider({$anchorScroll:ay,$animate:ky,$animateCss:np,$$animateJs:wy,$$animateQueue:by,$$AnimateRunner:gy,$$animateAsyncRun:dy,$browser:ip,$cacheFactory:rp,$controller:ep,$document:op,$exceptionHandler:sp,$filter:lc,$$forceReflow:hp,$interpolate:nw,$interval:tw,$http:bp,$httpParamSerializer:yp,$httpParamSerializerJQLike:pp,$httpBackend:dp,$xhrFactory:kp,$location:ew,$log:ow,$parse:aw,$rootScope:ww,$q:vw,$$q:yw,$sce:gw,$sceDelegate:dw,$sniffer:nb,$templateCache:up,$templateRequest:tb,$$testability:ib,$timeout:rb,$window:ub,$$rAF:pw,$$jqLite:ry,$$HashMap:uy,$$cookieReader:fb})}])}function hv(){return++sv}function yr(n){return n.replace(cv,function(n,t,i,r){return r?i.toUpperCase():i}).replace(lv,"Moz$1")}function ie(n){return!vv.test(n)}function hs(n){var t=n.nodeType;return t===kt||!t||t===es}function wv(n){for(var t in ar[n.ng339])return!0;return!1}function bv(n){for(var t=0,i=n.length;t<i;t++)pr(n[t])}function cs(n,i){var r,o,f,u=i.createDocumentFragment(),e=[],s;if(ie(n))e.push(i.createTextNode(n));else{for(r=r||u.appendChild(i.createElement("div")),o=(yv.exec(n)||["",""])[1].toLowerCase(),f=lt[o]||lt._default,r.innerHTML=f[1]+n.replace(pv,"<$1><\/$2>")+f[2],s=f[0];s--;)r=r.lastChild;e=hr(e,r.childNodes);r=u.firstChild;r.textContent=""}return u.textContent="",u.innerHTML="",t(e,function(n){u.appendChild(n)}),u}function kv(t,i){i=i||n.document;var r;return(r=av.exec(t))?[i.createElement(r[1])]:(r=cs(t,i))?r.childNodes:[]}function ls(n,t){var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)}function b(n){if(n instanceof b)return n;var t;if(h(n)&&(n=y(n),t=!0),!(this instanceof b)){if(t&&n.charAt(0)!="<")throw te("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new b(n)}t?fe(this,kv(n)):fe(this,n)}function re(n){return n.cloneNode(!0)}function pu(n,t){var r,i,u;if(t||pr(n),n.querySelectorAll)for(r=n.querySelectorAll("*"),i=0,u=r.length;i<u;i++)pr(r[i])}function vs(n,i,r,f){var h;if(u(f))throw te("offargs","jqLite#off() does not support the `selector` argument");var e=wu(n),o=e&&e.events,s=e&&e.handle;if(s)if(i)h=function(t){var i=o[t];u(r)&&or(i||[],r);u(r)&&i&&i.length>0||(vr(n,t,s),delete o[t])},t(i.split(" "),function(n){h(n);yu[n]&&h(yu[n])});else for(i in o)i!=="$destroy"&&vr(n,i,s),delete o[i]}function pr(n,t){var r=n.ng339,i=r&&ar[r];if(i){if(t){delete i.data[t];return}i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),vs(n));delete ar[r];n.ng339=undefined}}function wu(n,t){var i=n.ng339,r=i&&ar[i];return t&&!r&&(n.ng339=i=hv(),r=ar[i]={events:{},data:{},handle:undefined}),r}function ue(n,t,i){if(hs(n)){var f=u(i),e=!f&&t&&!s(t),h=!t,o=wu(n,!e),r=o&&o.data;if(f)r[t]=i;else{if(h)return r;if(e)return r&&r[t];v(r,t)}}}function bu(n,t){return n.getAttribute?(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function ku(n,i){i&&n.setAttribute&&t(i.split(" "),function(t){n.setAttribute("class",y((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+y(t)+" "," ")))})}function du(n,i){if(i&&n.setAttribute){var r=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");t(i.split(" "),function(n){n=y(n);r.indexOf(" "+n+" ")===-1&&(r+=n+" ")});n.setAttribute("class",y(r))}}function fe(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,typeof i=="number"&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function ys(n,t){return gu(n,"$"+(t||"ngController")+"Controller")}function gu(n,t,i){var f,r,o;for(n.nodeType==es&&(n=n.documentElement),f=c(t)?t:[t];n;){for(r=0,o=f.length;r<o;r++)if(u(i=e.data(n,f[r])))return i;n=n.parentNode||n.nodeType===ne&&n.host}}function ps(n){for(pu(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function nf(n,t){t||pu(n);var i=n.parentNode;i&&i.removeChild(n)}function dv(t,i){if(i=i||n,i.document.readyState==="complete")i.setTimeout(t);else e(i).on("load",t)}function ws(n,t){var i=wr[t.toLowerCase()];return i&&ee[vt(n)]&&i}function gv(n){return oe[n]}function ny(n,t){var i=function(i,u){var f,e,s,h,o;if(i.isDefaultPrevented=function(){return i.defaultPrevented},f=t[u||i.type],e=f?f.length:0,e)for(r(i.immediatePropagationStopped)&&(s=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();s&&s.call(i)}),i.isImmediatePropagationStopped=function(){return i.immediatePropagationStopped===!0},h=f.specialHandlerWrapper||ty,e>1&&(f=ot(f)),o=0;o<e;o++)i.isImmediatePropagationStopped()||h(n,i,f[o])};return i.elem=n,i}function ty(n,t,i){i.call(n,t)}function iy(n,t,i){var r=t.relatedTarget;r&&(r===n||as.call(n,r))||i.call(n,t)}function ry(){this.$get=function(){return v(b,{hasClass:function(n,t){return n.attr&&(n=n[0]),bu(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),du(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),ku(n,t)}})}}function ci(n,t){var r=n&&n.$$hashKey,i;return r?(typeof r=="function"&&(r=n.$$hashKey()),r):(i=typeof n,i=="function"||i=="object"&&n!==null?n.$$hashKey=i+":"+(t||ou)():i+":"+n)}function di(n,i){if(i){var r=0;this.nextUid=function(){return++r}}t(n,this.put,this)}function bs(n){var t=Function.prototype.toString.call(n).replace(hy,"");return t.match(fy)||t.match(ey)}function cy(n){var t=bs(n);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ly(n,i,r){var u,e,f;if(typeof n=="function"){if(!(u=n.$inject)){if(u=[],n.length){if(i){h(r)&&r||(r=n.name||cy(n));throw li("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",r);}e=bs(n);t(e[1].split(oy),function(n){n.replace(sy,function(n,t,i){u.push(i)})})}n.$inject=u}}else c(n)?(f=n.length-1,wi(n[f],"fn"),u=n.slice(0,f)):wi(n,"fn",!0);return u}function br(n,i){function v(n){return function(i,r){if(s(i))t(i,co(n));else return n(i,r)}}function g(n,t){if(bi(n,"service"),(f(t)||c(t))&&(t=o.instantiate(t)),!t.$get)throw li("pget","Provider '{0}' must define $get factory method.",n);return e[n+l]=t}function it(n,t){return function(){var i=u.invoke(t,this);if(r(i))throw li("undef","Provider '{0}' must return a value from $get factory method.",n);return i}}function w(n,t,i){return g(n,{$get:i!==!1?it(n,t):t})}function rt(n,t){return w(n,["$injector",function(n){return n.instantiate(t)}])}function et(n,t){return w(n,ft(t),!1)}function ot(n,t){bi(n,"constant");e[n]=t;k[n]=t}function st(n,t){var i=o.get(n+l),r=i.$get;i.$get=function(){var n=u.invoke(r,i);return u.invoke(t,null,{$delegate:n})}}function nt(n){cu(r(n)||c(n),"modulesToLoad","not an array");var i=[],u;return t(n,function(n){function r(n){for(var i,r,t=0,u=n.length;t<u;t++)i=n[t],r=o.get(i[0]),r[i[1]].apply(r,i[2])}if(!b.get(n)){b.put(n,!0);try{h(n)?(u=vf(n),i=i.concat(nt(u.requires)).concat(u._runBlocks),r(u._invokeQueue),r(u._configBlocks)):f(n)?i.push(o.invoke(n)):c(n)?i.push(o.invoke(n)):wi(n,"module")}catch(t){c(n)&&(n=n[n.length-1]);t.message&&t.stack&&t.stack.indexOf(t.message)==-1&&(t=t.message+"\n"+t.stack);throw li("modulerr","Failed to instantiate module {0} due to:\n{1}",n,t.stack||t.message||t);}}}),i}function tt(n,t){function r(i,r){if(n.hasOwnProperty(i)){if(n[i]===y)throw li("cdep","Circular dependency found: {0}",i+" <- "+a.join(" <- "));return n[i]}try{return a.unshift(i),n[i]=y,n[i]=t(i,r)}catch(u){n[i]===y&&delete n[i];throw u;}finally{a.shift()}}function u(n,t,u){for(var f,o=[],s=br.$$annotate(n,i,u),e=0,h=s.length;e<h;e++){if(f=s[e],typeof f!="string")throw li("itkn","Incorrect injection token! Expected service name as string, got {0}",f);o.push(t&&t.hasOwnProperty(f)?t[f]:r(f,u))}return o}function f(n){return gt<=11?!1:typeof n=="function"&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(n))}function o(n,t,i,r){typeof i=="string"&&(r=i,i=null);var e=u(n,i,r);return c(n)&&(n=n[n.length-1]),f(n)?(e.unshift(null),new(Function.prototype.bind.apply(n,e))):n.apply(t,e)}function s(n,t,i){var f=c(n)?n[n.length-1]:n,r=u(n,t,i);return r.unshift(null),new(Function.prototype.bind.apply(f,r))}return{invoke:o,instantiate:s,get:r,annotate:br.$$annotate,has:function(t){return e.hasOwnProperty(t+l)||n.hasOwnProperty(t)}}}var d;i=i===!0;var y={},l="Provider",a=[],b=new di([],!0),e={$provide:{provider:v(g),factory:v(w),service:v(rt),value:v(et),constant:v(ot),decorator:st}},o=e.$injector=tt(e,function(n,t){ut.isString(t)&&a.push(t);throw li("unpr","Unknown provider: {0}",a.join(" <- "));}),k={},p=tt(k,function(n,t){var i=o.get(n+l,t);return u.invoke(i.$get,i,undefined,n)}),u=p;return e["$injector"+l]={$get:ft(p)},d=nt(n),u=p.get("$injector"),u.strictDi=i,t(d,function(n){n&&u.invoke(n)}),u}function ay(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,r){function s(n){var t=null;return Array.prototype.some.call(n,function(n){if(vt(n)==="a")return t=n,!0}),t}function c(){var n=e.yOffset,i,r;return f(n)?n=n():bf(n)?(i=n[0],r=t.getComputedStyle(i),n=r.position!=="fixed"?0:i.getBoundingClientRect().bottom):w(n)||(n=0),n}function u(n){var i,r;n?(n.scrollIntoView(),i=c(),i&&(r=n.getBoundingClientRect().top,t.scrollBy(0,r-i))):t.scrollTo(0,0)}function e(n){n=h(n)?n:i.hash();var t;n?(t=o.getElementById(n))?u(t):(t=s(o.getElementsByName(n)))?u(t):n==="top"&&u(null):u(null)}var o=t.document;return n&&r.$watch(function(){return i.hash()},function(n,t){(n!==t||n!=="")&&dv(function(){r.$evalAsync(e)})}),e}]}function kr(n,t){return!n&&!t?"":n?t?(c(n)&&(n=n.join(" ")),c(t)&&(t=t.join(" ")),n+" "+t):n:t}function yy(n){for(var i,t=0;t<n.length;t++)if(i=n[t],i.nodeType===vy)return i}function py(n){h(n)&&(n=n.split(" "));var i=p();return t(n,function(n){n.length&&(i[n]=!0)}),i}function ai(n){return s(n)?n:{}}function tp(n,i,u,f){function d(n){try{n.apply(null,cr(arguments,1))}finally{if(l--,l===0)while(b.length)try{b.pop()()}catch(t){u.error(t)}}}function et(n){var t=n.indexOf("#");return t===-1?"":n.substr(t)}function tt(){y=null;it();rt()}function it(){h=ht();h=r(h)?null:h;st(h,k)&&(h=k);k=h}function rt(){(v!==s.url()||a!==h)&&(v=s.url(),a=h,t(g,function(n){n(s.url(),h)}))}var s=this,c=n.location,p=n.history,ut=n.setTimeout,ft=n.clearTimeout,w={},l,b,g,nt,k;s.isMock=!1;l=0;b=[];s.$$completeOutstandingRequest=d;s.$$incOutstandingRequestCount=function(){l++};s.notifyWhenNoOutstandingRequests=function(n){l===0?n():b.push(n)};var h,a,v=c.href,ot=i.find("base"),y=null,ht=f.history?function(){try{return p.state}catch(n){}}:o;it();a=h;s.url=function(t,i,u){var o,e;return r(u)&&(u=null),c!==n.location&&(c=n.location),p!==n.history&&(p=n.history),t?(o=a===u,v===t&&(!f.history||o))?s:(e=v&&vi(v)===vi(t),v=t,a=u,!f.history||e&&o?((!e||y)&&(y=t),i?c.replace(t):e?c.hash=et(t):c.href=t,c.href!==t&&(y=t)):(p[i?"replaceState":"pushState"](u,"",t),it(),a=h),s):y||c.href.replace(/%27/g,"'")};s.state=function(){return h};g=[];nt=!1;k=null;s.onUrlChange=function(t){if(!nt){if(f.history)e(n).on("popstate",tt);e(n).on("hashchange",tt);nt=!0}return g.push(t),t};s.$$applicationDestroyed=function(){e(n).off("hashchange popstate",tt)};s.$$checkUrlChange=rt;s.baseHref=function(){var n=ot.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};s.defer=function(n,t){var i;return l++,i=ut(function(){delete w[i];d(n)},t||0),w[i]=!0,i};s.defer.cancel=function(n){return w[n]?(delete w[n],ft(n),d(o),!0):!1}}function ip(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new tp(n,r,t,i)}]}function rp(){this.$get=function(){function i(t,i){function y(n){n!=o&&(u?u==n&&(u=n.n):u=n,c(n.n,n.p),c(n,o),o=n,o.n=null)}function c(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw l("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var s=0,a=v({},i,{id:t}),f=p(),h=i&&i.capacity||Number.MAX_VALUE,e=p(),o=null,u=null;return n[t]={put:function(n,t){if(!r(t)){if(h<Number.MAX_VALUE){var i=e[n]||(e[n]={key:n});y(i)}return n in f||s++,f[n]=t,s>h&&this.remove(u.key),t}},get:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;y(t)}return f[n]},remove:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;t==o&&(o=t.p);t==u&&(u=t.n);c(t.n,t.p);delete e[n]}n in f&&(delete f[n],s--)},removeAll:function(){f=p();s=0;e=p();o=u=null},destroy:function(){f=null;a=null;e=null;delete n[t]},info:function(){return v({},a,{size:s})}}}var n={};return i.info=function(){var i={};return t(n,function(n,t){i[t]=n.info()}),i},i.get=function(t){return n[t]},i}}function up(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function fp(){}function gs(i,l){function tt(n,i,r){var f=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,u=p();return t(n,function(n,t){if(n in nt){u[t]=nt[n];return}var e=n.match(f);if(!e)throw d("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",i,t,n,r?"controller bindings definition":"isolate scope definition");u[t]={mode:e[1][0],collection:e[2]==="*",optional:e[3]==="?",attrName:e[4]||t};e[4]&&(nt[n]=u[t])}),u}function ct(n,t){var i={isolateScope:null,bindToController:null},r,u;if(s(n.scope)&&(n.bindToController===!0?(i.bindToController=tt(n.scope,t,!0),i.isolateScope={}):i.isolateScope=tt(n.scope,t,!1)),s(n.bindToController)&&(i.bindToController=tt(n.bindToController,t,!0)),s(i.bindToController))if(r=n.controller,u=n.controllerAs,r){if(!rh(r,u))throw d("noident","Cannot bind to controller without identifier for directive '{0}'.",t);}else throw d("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return i}function lt(n){var t=n.charAt(0);if(!t||t!==a(t))throw d("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",n);if(n!==n.trim())throw d("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",n);}var b={},g="Directive",it=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,ut=/(([\w\-]+)(?:\:([^;]+))?;?)/,et=ka("ngSrc,ngSrcset,src,srcset"),ot=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,ht=/^(on[a-z]+|formaction)$/,nt=p(),w,k;this.directive=function wt(n,r){return bi(n,"directive"),h(n)?(lt(n),cu(r,"directiveFactory"),b.hasOwnProperty(n)||(b[n]=[],i.factory(n+g,["$injector","$exceptionHandler",function(i,r){var u=[];return t(b[n],function(t,e){try{var o=i.invoke(t);f(o)?o={compile:ft(o)}:!o.compile&&o.link&&(o.compile=ft(o.link));o.priority=o.priority||0;o.index=e;o.name=o.name||n;o.require=o.require||o.controller&&o.name;o.restrict=o.restrict||"EA";o.$$moduleName=t.$$moduleName;u.push(o)}catch(s){r(s)}}),u}])),b[n].push(r)):t(n,co(wt)),this};this.component=function(n,i){function u(n){function u(t){return f(t)||c(t)?function(i,r){return n.invoke(t,this,{$element:i,$attrs:r})}:t}var o=!i.template&&!i.templateUrl?"":i.template,e={controller:r,controllerAs:rh(i.controller)||i.controllerAs||"$ctrl",template:u(o),templateUrl:u(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return t(i,function(n,t){t.charAt(0)==="$"&&(e[t]=n)}),e}var r=i.controller||function(){};return t(i,function(n,t){t.charAt(0)==="$"&&(u[t]=n,f(r)&&(r[t]=n))}),u.$inject=["$injector"],this.directive(n,u)};this.aHrefSanitizationWhitelist=function(n){return u(n)?(l.aHrefSanitizationWhitelist(n),this):l.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return u(n)?(l.imgSrcSanitizationWhitelist(n),this):l.imgSrcSanitizationWhitelist()};w=!0;this.debugInfoEnabled=function(n){return u(n)?(w=n,this):w};k=10;this.onChangesTtl=function(n){return arguments.length?(k=n,this):k};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(i,u,l,nt,tt,ft,lt,wt,bt,dt){function vr(){try{if(!--bi){ti=undefined;throw d("infchng","{0} $onChanges() iterations reached. Aborting!\n",k);}lt.$apply(function(){for(var n=0,t=ti.length;n<t;++n)ti[n]();ti=undefined})}finally{bi++}}function ci(n,t){if(t)for(var u=Object.keys(t),r,i=0,f=u.length;i<f;i++)r=u[i],this[r]=t[r];else this.$attr={};this.$$element=n}function yr(n,t,i){wi.innerHTML="<span "+t+">";var u=wi.firstChild.attributes,r=u[0];u.removeNamedItem(r.name);r.value=i;n.attributes.setNamedItem(r)}function fi(n,t){try{n.addClass(t)}catch(i){}}function ni(t,i,r,u,f){var l,o,a,h,c,s;for(t instanceof e||(t=e(t)),l=/\S+/,o=0,a=t.length;o<a;o++)h=t[o],h.nodeType===ki&&h.nodeValue.match(l)&&ls(h,t[o]=n.document.createElement("span"));return c=li(t,i,t,r,u,f),ni.$$addScopeClass(t),s=null,function(n,i,r){var u,l;cu(n,"scope");f&&f.needsNewScope&&(n=n.$parent.$new());r=r||{};var o=r.parentBoundTranscludeFn,h=r.transcludeControllers,a=r.futureParentElement;if(o&&o.$$boundTransclude&&(o=o.$$boundTransclude),s||(s=br(a)),u=s!=="html"?e(yi(s,e("<div>").append(t).html())):i?hi.clone.call(t):t,h)for(l in h)u.data("$"+l+"Controller",h[l].instance);return ni.$$addScopeInfo(u,n),i&&i(u,n),c&&c(n,u,u,o),u}}function br(n){var t=n&&n[0];return t?vt(t)!=="foreignobject"&&rt.call(t).match(/SVG/)?"svg":"html":"html"}function li(n,t,i,r,u,f){function w(n,i,r,u){var o,h,c,l,f,p,v,w,a,b;if(y)for(b=i.length,a=new Array(b),f=0;f<s.length;f+=3)v=s[f],a[v]=i[v];else a=i;for(f=0,p=s.length;f<p;)c=a[s[f++]],o=s[f++],h=s[f++],o?(o.scope?(l=n.$new(),ni.$$addScopeInfo(e(c),l)):l=n,w=o.transcludeOnThisElement?ri(n,o.transclude,u):!o.templateOnThisElement&&u?u:!u&&t?ri(n,t):null,o(h,l,c,r,w)):h&&h(n,c.childNodes,undefined,u)}for(var s=[],c,l,o,a,v,p,y,h=0;h<n.length;h++)c=new ci,l=ai(n[h],[],c,h===0?r:undefined,u),o=l.length?ur(l,n[h],c,t,i,null,[],[],f):null,o&&o.scope&&ni.$$addScopeClass(c.$$element),v=o&&o.terminal||!(a=n[h].childNodes)||!a.length?null:li(a,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||v)&&(s.push(h,o,v),p=!0,y=y||o),f=null;return p?w:null}function ri(n,t,i){function u(r,u,f,e,o){return r||(r=n.$new(!1,o),r.$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}var f=u.$$slots=p();for(var r in t.$$slots)f[r]=t.$$slots[r]?ri(n,t.$$slots[r],i):null;return u}function ai(n,t,i,r,u){var nt=n.nodeType,tt=i.$attr,o,c,k,d,g;switch(nt){case kt:ei(t,pt(vt(n)),"E",r,u);for(var l,e,f,a,v,p,w=n.attributes,b=0,rt=w&&w.length;b<rt;b++)k=!1,d=!1,l=w[b],e=l.name,v=y(l.value),a=pt(e),(p=pr.test(a))&&(e=e.replace(se,"").substr(8).replace(/_(.)/g,function(n,t){return t.toUpperCase()})),g=a.match(wr),g&&dr(g[1])&&(k=e,d=e.substr(0,e.length-5)+"end",e=e.substr(0,e.length-6)),f=pt(e.toLowerCase()),tt[f]=e,(p||!i.hasOwnProperty(f))&&(i[f]=v,ws(n,f)&&(i[f]=!0)),ru(n,t,v,f,p),ei(t,f,"A",r,u,k,d);if(c=n.className,s(c)&&(c=c.animVal),h(c)&&c!=="")while(o=ut.exec(c))f=pt(o[2]),ei(t,f,"C",r,u)&&(i[f]=y(o[3])),c=c.substr(o.index+o[0].length);break;case ki:if(gt===11)while(n.parentNode&&n.nextSibling&&n.nextSibling.nodeType===ki)n.nodeValue=n.nodeValue+n.nextSibling.nodeValue,n.parentNode.removeChild(n.nextSibling);tu(t,n.nodeValue);break;case au:try{o=it.exec(n.nodeValue);o&&(f=pt(o[1]),ei(t,f,"M",r,u)&&(i[f]=y(o[2])))}catch(ft){}}return t.sort(nu),t}function tr(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw d("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,i);n.nodeType==kt&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(u>0)}else r.push(n);return e(r)}function ir(n,t,i){return function(r,u,f,e,o){return u=tr(u[0],t,i),n(r,u,f,e,o)}}function vi(n,t,i,r,u,f){var e;return n?ni(t,i,r,u,f):function(){return e||(e=ni(t,i,r,u,f),t=i=f=null),e.apply(this,arguments)}}function ur(n,i,u,o,h,a,w,b,k){function or(n,t,i,r){n&&(i&&(n=ir(n,i,r)),n.require=g.require,n.directiveName=ot,(nt===g||g.$$isolateScope)&&(n=hr(n,{isolateScope:!0})),w.push(n));t&&(i&&(t=ir(t,i,r)),t.require=g.require,t.directiveName=ot,(nt===g||g.$$isolateScope)&&(t=hr(t,{isolateScope:!0})),b.push(t))}function ct(n,o,h,l,a){function bt(n,t,i,u){var e,f;if(er(n)||(u=i,i=t,t=n,n=undefined),ti&&(e=g),i||(i=ti?y.parent():y),u){if(f=a.$$slots[u],f)return f(n,t,e,i,st);if(r(f))throw d("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',u,yt(y));}else return a(n,t,e,i,st)}var it,wt,p,k,ot,g,ft,y,rt,at,vt,lt,st;i===h?(rt=u,y=u.$$element):(y=e(h),rt=new ci(y,u));ot=o;nt?k=o.$new(!0):ut&&(ot=o.$parent);a&&(ft=bt,ft.$$boundTransclude=a,ft.isSlotFilled=function(n){return!!a.$$slots[n]});et&&(g=kr(y,rt,ft,et,k,o,nt));nt&&(ni.$$addScopeInfo(y,k,!0,!(ht&&(ht===nt||ht===nt.$$originalDirective))),ni.$$addScopeClass(y,!0),k.$$isolateBindings=nt.$$isolateBindings,at=pi(o,rt,k,k.$$isolateBindings,nt),at.removeWatches&&k.$on("$destroy",at.removeWatches));for(vt in g){var ct=et[vt],tt=g[vt],pt=ct.$$bindings.bindToController;tt.bindingInfo=tt.identifier&&pt?pi(ot,rt,tt.instance,pt,ct):{};lt=tt();lt!==tt.instance&&(tt.instance=lt,y.data("$"+ct.name+"Controller",lt),tt.bindingInfo.removeWatches&&tt.bindingInfo.removeWatches(),tt.bindingInfo=pi(ot,rt,tt.instance,pt,ct))}for(t(et,function(n,t){var i=n.require;n.bindToController&&!c(i)&&s(i)&&v(g[t].instance,ui(t,i,y,g))}),t(g,function(n){var t=n.instance;f(t.$onChanges)&&t.$onChanges(n.bindingInfo.initialChanges);f(t.$onInit)&&t.$onInit();f(t.$onDestroy)&&ot.$on("$destroy",function(){t.$onDestroy()})}),it=0,wt=w.length;it<wt;it++)p=w[it],lr(p,p.isolateScope?k:o,y,rt,p.require&&ui(p.directiveName,p.require,y,g),ft);for(st=o,nt&&(nt.template||nt.templateUrl===null)&&(st=k),n&&n(st,h.childNodes,undefined,a),it=b.length-1;it>=0;it--)p=b[it],lr(p,p.isolateScope?k:o,y,rt,p.require&&ui(p.directiveName,p.require,y,g),ft);t(g,function(n){var t=n.instance;f(t.$postLink)&&t.$postLink()})}var st,ei,dt,oi,wt,gi,ft,ki,hi,li;k=k||{};var bt=-Number.MAX_VALUE,ut=k.newScopeDirective,et=k.controllerDirectives,nt=k.newIsolateScopeDirective,ht=k.templateDirective,gt=k.nonTlbTranscludeDirective,wi=!1,bi=!1,ti=k.hasElementTranscludeDirective,tt=u.$$element=e(i),g,ot,it,ri=a,lt=o,at,di=!1,fi=!1,rt;for(st=0,ei=n.length;st<ei;st++){if(g=n[st],dt=g.$$start,oi=g.$$end,dt&&(tt=tr(i,dt,oi)),it=undefined,bt>g.priority)break;if((rt=g.scope)&&(g.templateUrl||(s(rt)?(ii("new/isolated scope",nt||ut,g,tt),nt=g):ii("new/isolated scope",nt,g,tt)),ut=ut||g),ot=g.name,!di&&(g.replace&&(g.templateUrl||g.template)||g.transclude&&!g.$$tlb)){for(gi=st+1;wt=n[gi++];)if(wt.transclude&&!wt.$$tlb||wt.replace&&(wt.templateUrl||wt.template)){fi=!0;break}di=!0}if(!g.templateUrl&&g.controller&&(rt=g.controller,et=et||p(),ii("'"+ot+"' controller",et[ot],g,tt),et[ot]=g),rt=g.transclude)if(wi=!0,g.$$tlb||(ii("transclusion",gt,g,tt),gt=g),rt=="element")ti=!0,bt=g.priority,it=tt,tt=u.$$element=e(ni.$$createComment(ot,u[ot])),i=tt[0],si(h,cr(it),i),it[0].$$parentNode=it[0].parentNode,lt=vi(fi,it,o,bt,ri&&ri.name,{nonTlbTranscludeDirective:gt});else{if(ft=p(),it=e(re(i)).contents(),s(rt)){it=[];ki=p();hi=p();t(rt,function(n,t){var i=n.charAt(0)==="?";n=i?n.substring(1):n;ki[n]=t;ft[t]=null;hi[t]=i});t(tt.contents(),function(n){var t=ki[pt(vt(n))];t?(hi[t]=!0,ft[t]=ft[t]||[],ft[t].push(n)):it.push(n)});t(hi,function(n,t){if(!n)throw d("reqslot","Required transclusion slot `{0}` was not filled.",t);});for(li in ft)ft[li]&&(ft[li]=vi(fi,ft[li],o))}tt.empty();lt=vi(fi,it,o,undefined,undefined,{needsNewScope:g.$$isolateScope||g.$$newScope});lt.$$slots=ft}if(g.template)if(bi=!0,ii("template",ht,g,tt),ht=g,rt=f(g.template)?g.template(tt,u):g.template,rt=nr(rt),g.replace){if(ri=g,it=ie(rt)?[]:th(yi(g.templateNamespace,y(rt))),i=it[0],it.length!=1||i.nodeType!==kt)throw d("tplrt","Template for directive '{0}' must have exactly one root element. {1}",ot,"");si(h,tt,i);var rr={$attr:{}},ur=ai(i,[],rr),ar=n.splice(st+1,n.length-(st+1));(nt||ut)&&fr(ur,nt,ut);n=n.concat(ur).concat(ar);sr(u,rr);ei=n.length}else tt.html(rt);if(g.templateUrl)bi=!0,ii("template",ht,g,tt),ht=g,g.replace&&(ri=g),ct=gr(n.splice(st,n.length-st),tt,u,h,wi&&lt,w,b,{controllerDirectives:et,newScopeDirective:ut!==g&&ut,newIsolateScopeDirective:nt,templateDirective:ht,nonTlbTranscludeDirective:gt}),ei=n.length;else if(g.compile)try{at=g.compile(tt,u,lt);f(at)?or(null,at,dt,oi):at&&or(at.pre,at.post,dt,oi)}catch(vr){l(vr,yt(tt))}g.terminal&&(ct.terminal=!0,bt=Math.max(bt,g.priority))}return ct.scope=ut&&ut.scope===!0,ct.transcludeOnThisElement=wi,ct.templateOnThisElement=bi,ct.transclude=lt,k.hasElementTranscludeDirective=ti,ct}function ui(n,i,r,u){var f,a,e,y;if(h(i)){var o=i.match(ot),l=i.substring(o[0].length),v=o[1]||o[3],p=o[2]==="?";if(v==="^^"?r=r.parent():(f=u&&u[l],f=f&&f.instance),f||(a="$"+l+"Controller",f=v?r.inheritedData(a):r.data(a)),!f&&!p)throw d("ctreq","Controller '{0}', required by directive '{1}', can't be found!",l,n);}else if(c(i))for(f=[],e=0,y=i.length;e<y;e++)f[e]=ui(n,i[e],r,u);else s(i)&&(f={},t(i,function(t,i){f[i]=ui(n,t,r,u)}));return f||null}function kr(n,t,i,r,u,f,e){var c=p(),l,h;for(l in r){var o=r[l],a={$scope:o===e||o.$$isolateScope?u:f,$element:n,$attrs:t,$transclude:i},s=o.controller;s=="@"&&(s=t[o.name]);h=ft(s,a,!0,o.controllerAs);c[o.name]=h;n.data("$"+o.name+"Controller",h.instance)}return c}function fr(n,t,i){for(var r=0,u=n.length;r<u;r++)n[r]=pf(n[r],{$$isolateScope:t,$$newScope:i})}function ei(n,t,u,f,e,o,h){var a,y;if(t===e)return null;if(a=null,b.hasOwnProperty(t))for(var c,p=i.get(t+g),v=0,w=p.length;v<w;v++)try{c=p[v];(r(f)||f>c.priority)&&c.restrict.indexOf(u)!=-1&&(o&&(c=pf(c,{$$start:o,$$end:h})),c.$$bindings||(y=c.$$bindings=ct(c,c.name),s(y.isolateScope)&&(c.$$isolateBindings=y.isolateScope)),n.push(c),a=c)}catch(k){l(k)}return a}function dr(n){if(b.hasOwnProperty(n))for(var r,u=i.get(n+g),t=0,f=u.length;t<f;t++)if(r=u[t],r.multiElement)return!0;return!1}function sr(n,i){var u=i.$attr,f=n.$attr,r=n.$$element;t(n,function(t,r){r.charAt(0)!="$"&&(i[r]&&i[r]!==t&&(t+=(r==="style"?";":" ")+i[r]),n.$set(r,t,!0,u[r]))});t(i,function(t,i){i=="class"?(fi(r,t),n["class"]=(n["class"]?n["class"]+" ":"")+t):i=="style"?(r.attr("style",r.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):i.charAt(0)=="$"||n.hasOwnProperty(i)||(n[i]=t,f[i]=u[i])})}function gr(n,i,r,u,o,h,c,l){var v=[],p,w,b=i[0],a=n.shift(),g=pf(a,{templateUrl:null,transclude:null,replace:null,$$originalDirective:a}),k=f(a.templateUrl)?a.templateUrl(i,r):a.templateUrl,tt=a.templateNamespace;return i.empty(),nt(k).then(function(f){var nt,rt,ut,st,ft,ct;if(f=nr(f),a.replace){if(ut=ie(f)?[]:th(yi(tt,y(f))),nt=ut[0],ut.length!=1||nt.nodeType!==kt)throw d("tplrt","Template for directive '{0}' must have exactly one root element. {1}",a.name,k);rt={$attr:{}};si(u,i,nt);ft=ai(nt,[],rt);s(a.scope)&&fr(ft,!0);n=ft.concat(n);sr(r,rt)}else nt=b,i.html(f);for(n.unshift(g),p=ur(n,nt,r,o,i,a,h,c,l),t(u,function(n,t){n==nt&&(u[t]=i[0])}),w=li(i[0].childNodes,o);v.length;){var et=v.shift(),ot=v.shift(),lt=v.shift(),ht=v.shift(),it=i[0];et.$$destroyed||(ot!==b&&(ct=ot.className,l.hasElementTranscludeDirective&&a.replace||(it=re(nt)),si(lt,e(ot),it),fi(e(it),ct)),st=p.transcludeOnThisElement?ri(et,p.transclude,ht):ht,p(w,et,it,u,st))}v=null}),function(n,t,i,r,u){var f=u;t.$$destroyed||(v?v.push(t,i,r,f):(p.transcludeOnThisElement&&(f=ri(t,p.transclude,u)),p(w,t,i,r,f)))}}function nu(n,t){var i=t.priority-n.priority;return i!==0?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function ii(n,t,i,r){function u(n){return n?" (module: "+n+")":""}if(t)throw d("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,u(t.$$moduleName),i.name,u(i.$$moduleName),n,yt(r));}function tu(n,t){var i=u(t,!0);i&&n.push({priority:0,compile:function(n){var t=n.parent(),r=!!t.length;return r&&ni.$$addBindingClass(t),function(n,t){var u=t.parent();r||ni.$$addBindingClass(u);ni.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){t[0].nodeValue=n})}}})}function yi(t,i){t=a(t||"html");switch(t){case"svg":case"math":var r=n.document.createElement("div");return r.innerHTML="<"+t+">"+i+"<\/"+t+">",r.childNodes[0].childNodes;default:return i}}function iu(n,t){if(t=="srcdoc")return wt.HTML;var i=vt(n);if(t=="xlinkHref"||i=="form"&&t=="action"||i!="img"&&(t=="src"||t=="ngSrc"))return wt.RESOURCE_URL}function ru(n,t,i,r,f){var o=iu(n,r),e;if(f=et[r]||f,e=u(i,!0,o,f),e){if(r==="multiple"&&vt(n)==="select")throw d("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",yt(n));t.push({priority:100,compile:function(){return{pre:function(n,t,s){var c=s.$$observers||(s.$$observers=p()),h;if(ht.test(r))throw d("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");(h=s[r],h!==i&&(e=h&&u(h,!0,o,f),i=h),e)&&(s[r]=e(n),(c[r]||(c[r]=[])).$$inter=!0,(s.$$observers&&s.$$observers[r].$$scope||n).$watch(e,function(n,t){r==="class"&&n!=t?s.$updateClass(n,t):s.$set(r,n)}))}}}})}}function si(t,i,r){var f=i[0],s=i.length,l=f.parentNode,u,a,c;if(t)for(u=0,a=t.length;u<a;u++)if(t[u]==f){t[u++]=r;for(var o=u,h=o+s-1,v=t.length;o<v;o++,h++)h<v?t[o]=t[h]:delete t[o];t.length-=s-1;t.context===f&&(t.context=r);break}for(l&&l.replaceChild(r,f),c=n.document.createDocumentFragment(),u=0;u<s;u++)c.appendChild(i[u]);for(e.hasData(f)&&(e.data(r,e.data(f)),e(f).off("$destroy")),e.cleanData(c.querySelectorAll("*")),u=1;u<s;u++)delete i[u];i[0]=r;i.length=1}function hr(n,t){return v(function(){return n.apply(null,arguments)},n,t)}function lr(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(e){l(e,yt(i))}}function pi(n,i,r,e,s){function v(t,i,u){f(r.$onChanges)&&i!==u&&(ti||(n.$$postDigest(vr),ti=[]),c||(c={},ti.push(y)),c[t]&&(u=c[t].previousValue),c[t]=new rf(u,i))}function y(){r.$onChanges(c);c=undefined}var l=[],a={},c;return t(e,function(t,f){var e=t.attrName,p=t.optional,nt=t.mode,y,c,g,k,w,b;switch(nt){case"@":p||at.call(i,e)||(r[f]=i[e]=void 0);i.$observe(e,function(n){if(h(n)||oi(n)){var t=r[f];v(f,n,t);r[f]=n}});i.$$observers[e].$$scope=n;y=i[e];h(y)?r[f]=u(y)(n):oi(y)&&(r[f]=y);a[f]=new rf(tf,r[f]);break;case"=":if(!at.call(i,e)){if(p)break;i[e]=void 0}if(p&&!i[e])break;c=tt(i[e]);k=c.literal?st:function(n,t){return n===t||n!==n&&t!==t};g=c.assign||function(){y=r[f]=c(n);throw d("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",i[e],e,s.name);};y=r[f]=c(n);b=function(t){return k(t,r[f])||(k(t,y)?g(n,t=r[f]):r[f]=t),y=t};b.$stateful=!0;w=t.collection?n.$watchCollection(i[e],b):n.$watch(tt(i[e],b),null,c.literal);l.push(w);break;case"<":if(!at.call(i,e)){if(p)break;i[e]=void 0}if(p&&!i[e])break;c=tt(i[e]);r[f]=c(n);a[f]=new rf(tf,r[f]);w=n.$watch(c,function(n,t){n===t&&(t=r[f]);v(f,n,t);r[f]=n},c.literal);l.push(w);break;case"&":if(c=i.hasOwnProperty(e)?tt(i[e]):o,c===o&&p)break;r[f]=function(t){return c(n,t)}}}),{initialChanges:a,removeWatches:l.length&&function(){for(var n=0,t=l.length;n<t;++n)l[n]()}}}var ar=/^\w/,wi=n.document.createElement("div"),bi=k,ti;ci.prototype={$normalize:pt,$addClass:function(n){n&&n.length>0&&bt.addClass(this.$$element,n)},$removeClass:function(n){n&&n.length>0&&bt.removeClass(this.$$element,n)},$updateClass:function(n,t){var r=nh(n,t),i;r&&r.length&&bt.addClass(this.$$element,r);i=nh(t,n);i&&i.length&&bt.removeClass(this.$$element,i)},$set:function(n,i,u,f){var d=this.$$element[0],w=ws(d,n),a=gv(n),b=n,s,o,v,c,p;if(w?(this.$$element.prop(n,i),f=w):a&&(this[a]=i,b=a),this[n]=i,f?this.$attr[n]=f:(f=this.$attr[n],f||(this.$attr[n]=f=us(n,"-"))),s=vt(this.$$element),s==="a"&&(n==="href"||n==="xlinkHref")||s==="img"&&n==="src")this[n]=i=dt(i,n==="src");else if(s==="img"&&n==="srcset"){var e="",k=y(i),g=/\s/.test(k)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,h=k.split(g),nt=Math.floor(h.length/2);for(o=0;o<nt;o++)v=o*2,e+=dt(y(h[v]),!0),e+=" "+y(h[v+1]);c=y(h[o*2]).split(/\s/);e+=dt(y(c[0]),!0);c.length===2&&(e+=" "+y(c[1]));this[n]=i=e}u!==!1&&(i===null||r(i)?this.$$element.removeAttr(f):ar.test(f)?this.$$element.attr(f,i):yr(this.$$element[0],f,i));p=this.$$observers;p&&t(p[b],function(n){try{n(i)}catch(t){l(t)}})},$observe:function(n,t){var i=this,f=i.$$observers||(i.$$observers=p()),u=f[n]||(f[n]=[]);return u.push(t),lt.$evalAsync(function(){u.$$inter||!i.hasOwnProperty(n)||r(i[n])||t(i[n])}),function(){or(u,t)}}};var di=u.startSymbol(),gi=u.endSymbol(),nr=di=="{{"&&gi=="}}"?rr:function(n){return n.replace(/\{\{/g,di).replace(/}}/g,gi)},pr=/^ngAttr[A-Z]/,wr=/^(.+)Start$/;return ni.$$addBindingInfo=w?function(n,t){var i=n.data("$binding")||[];c(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:o,ni.$$addBindingClass=w?function(n){fi(n,"ng-binding")}:o,ni.$$addScopeInfo=w?function(n,t,i,r){var u=i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";n.data(u,t)}:o,ni.$$addScopeClass=w?function(n,t){fi(n,t?"ng-isolate-scope":"ng-scope")}:o,ni.$$createComment=function(t,i){var r="";return w&&(r=" "+(t||"")+": "+(i||"")+" "),n.document.createComment(r)},ni}]}function rf(n,t){this.previousValue=n;this.currentValue=t}function pt(n){return yr(n.replace(se,""))}function nh(n,t){var u="",e=n.split(/\s+/),o=t.split(/\s+/),i,f,r;n:for(i=0;i<e.length;i++){for(f=e[i],r=0;r<o.length;r++)if(f==o[r])continue n;u+=(u.length>0?" ":"")+f}return u}function th(n){var t,i;if(n=e(n),t=n.length,t<=1)return n;while(t--)i=n[t],i.nodeType===au&&ha.call(n,t,1);return n}function rh(n,t){if(t&&h(t))return t;if(h(n)){var i=he.exec(n);if(i)return i[3]}}function ep(){var n={},t=!1;this.has=function(t){return n.hasOwnProperty(t)};this.register=function(t,i){bi(t,"controller");s(t)?v(n,t):n[t]=i};this.allowGlobals=function(){t=!0};this.$get=["$injector","$window",function(i,r){function u(n,t,i,r){if(!(n&&s(n.$scope)))throw l("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);n.$scope[t]=i}return function(e,o,l,a){var y,b,p,w,k;if(l=l===!0,a&&h(a)&&(w=a),h(e)){if(b=e.match(he),!b)throw ih("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);p=b[1];w=w||b[3];e=n.hasOwnProperty(p)?n[p]:fs(o.$scope,p,!0)||(t?fs(r,p,!0):undefined);wi(e,p,!0)}return l?(k=(c(e)?e[e.length-1]:e).prototype,y=Object.create(k||null),w&&u(o,w,y,p||e.name),v(function(){var n=i.invoke(e,y,o,p);return n!==y&&(s(n)||f(n))&&(y=n,w&&u(o,w,y,p||e.name)),y},{instance:y,identifier:w})):(y=i.instantiate(e,o,p),w&&u(o,w,y,p||e.name),y)}}]}function op(){this.$get=["$window",function(n){return e(n.document)}]}function sp(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function le(n){return s(n)?et(n)?n.toISOString():lr(n):n}function yp(){this.$get=function(){return function(n){if(!n)return"";var i=[];return ho(n,function(n,u){n===null||r(n)||(c(n)?t(n,function(n){i.push(ct(u)+"="+ct(le(n)))}):i.push(ct(u)+"="+ct(le(n))))}),i.join("&")}}}function pp(){this.$get=function(){return function(n){function i(n,f,e){n===null||r(n)||(c(n)?t(n,function(n,t){i(n,f+"["+(s(n)?t:"")+"]")}):s(n)&&!et(n)?ho(n,function(n,t){i(n,f+(e?"":"[")+t+(e?"":"]"))}):u.push(ct(f)+"="+ct(le(n))))}if(!n)return"";var u=[];return i(n,"",!0),u.join("&")}}}function ae(n,t){var i,r;return h(n)&&(i=n.replace(ap,"").trim(),i&&(r=t("Content-Type"),(r&&r.indexOf(uh)===0||wp(i))&&(n=bo(i)))),n}function wp(n){var t=n.match(cp);return t&&lp[t[0]].test(n)}function eh(n){function u(n,t){n&&(i[n]=i[n]?i[n]+", "+t:t)}var i=p(),r;return h(n)?t(n.split("\n"),function(n){r=n.indexOf(":");u(a(y(n.substr(0,r))),y(n.substr(r+1)))}):s(n)&&t(n,function(n,t){u(a(t),y(n))}),i}function oh(n){var t;return function(i){if(t||(t=eh(n)),i){var r=t[a(i)];return r===void 0&&(r=null),r}return t}}function sh(n,i,r,u){return f(u)?u(n,i,r):(t(u,function(t){n=t(n,i,r)}),n)}function ve(n){return 200<=n&&n<300}function bp(){var n=this.defaults={transformResponse:[ae],transformRequest:[function(n){return s(n)&&!va(n)&&!pa(n)&&!ya(n)?lr(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ot(ce),put:ot(ce),patch:ot(ce)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},i=!1,e,o;this.useApplyAsync=function(n){return u(n)?(i=!!n,this):i};e=!0;this.useLegacyPromiseExtensions=function(n){return u(n)?(e=!!n,this):e};o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(y,p,w,b,k,d){function g(i){function w(n){var t=v({},n);return t.data=sh(n.data,n.headers,n.status,u.transformResponse),ve(n.status)?t:k.reject(t)}function g(n,i){var r,u={};return t(n,function(n,t){f(n)?(r=n(i),r!=null&&(u[t]=r)):u[t]=n}),u}function tt(t){var i=n.headers,u=v({},t.headers),r,f,e;i=v({},i.common,i[a(t.method)]);n:for(r in i){f=a(r);for(e in u)if(a(e)===f)continue n;u[r]=i[r]}return g(u,ot(t))}var u,y,p;if(!s(i))throw l("$http")("badreq","Http request configuration must be an object.  Received: {0}",i);if(!h(i.url))throw l("$http")("badreq","Http request configuration url must be a string.  Received: {0}",i.url);u=v({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse,paramSerializer:n.paramSerializer},i);u.headers=tt(i);u.method=tr(u.method);u.paramSerializer=h(u.paramSerializer)?d.get(u.paramSerializer):u.paramSerializer;var b=function(i){var u=i.headers,f=sh(i.data,oh(u),undefined,i.transformRequest);return r(f)&&t(u,function(n,t){a(t)==="content-type"&&delete u[t]}),r(i.withCredentials)&&!r(n.withCredentials)&&(i.withCredentials=n.withCredentials),ut(i,f).then(w,w)},c=[b,undefined],o=k.when(u);for(t(nt,function(n){(n.request||n.requestError)&&c.unshift(n.request,n.requestError);(n.response||n.responseError)&&c.push(n.response,n.responseError)});c.length;)y=c.shift(),p=c.shift(),o=o.then(y,p);return e?(o.success=function(n){return wi(n,"fn"),o.then(function(t){n(t.data,t.status,t.headers,u)}),o},o.error=function(n){return wi(n,"fn"),o.then(null,function(t){n(t.data,t.status,t.headers,u)}),o}):(o.success=fh("success"),o.error=fh("error")),o}function it(){t(arguments,function(n){g[n]=function(t,i){return g(v({},i||{},{method:n,url:t}))}})}function rt(){t(arguments,function(n){g[n]=function(t,i,r){return g(v({},r||{},{method:n,url:t,data:i}))}})}function ut(f,e){function it(n){if(n){var r={};return t(n,function(n,t){r[t]=function(t){function r(){n(t)}i?b.$applyAsync(r):b.$$phase?r():b.$apply(r)}}),r}}function et(n,t,r,u){function f(){a(t,n,r,u)}h&&(ve(n)?h.put(l,[n,t,eh(r),u]):h.remove(l));i?b.$applyAsync(f):(f(),b.$$phase||b.$apply())}function a(n,t,i,r){t=t>=-1?t:0;(ve(t)?v.resolve:v.reject)({data:n,status:t,headers:oh(i),config:f,statusText:r})}function rt(n){a(n.data,n.status,ot(n.headers()),n.statusText)}function ut(){var n=g.pendingRequests.indexOf(f);n!==-1&&g.pendingRequests.splice(n,1)}var v=k.defer(),w=v.promise,h,o,nt=f.headers,l=ft(f.url,f.paramSerializer(f.params)),d;return g.pendingRequests.push(f),w.then(ut,ut),(f.cache||n.cache)&&f.cache!==!1&&(f.method==="GET"||f.method==="JSONP")&&(h=s(f.cache)?f.cache:s(n.cache)?n.cache:tt),h&&(o=h.get(l),u(o)?su(o)?o.then(rt,rt):c(o)?a(o[1],o[0],ot(o[2]),o[3]):a(o,200,{},"OK"):h.put(l,w)),r(o)&&(d=hc(f.url)?p()[f.xsrfCookieName||n.xsrfCookieName]:undefined,d&&(nt[f.xsrfHeaderName||n.xsrfHeaderName]=d),y(f.method,l,e,et,nt,f.timeout,f.withCredentials,f.responseType,it(f.eventHandlers),it(f.uploadEventHandlers))),w}function ft(n,t){return t.length>0&&(n+=(n.indexOf("?")==-1?"?":"&")+t),n}var tt=w("$http"),nt;return n.paramSerializer=h(n.paramSerializer)?d.get(n.paramSerializer):n.paramSerializer,nt=[],t(o,function(n){nt.unshift(h(n)?d.get(n):d.invoke(n))}),g.pendingRequests=[],it("get","delete","head","jsonp"),rt("post","put","patch"),g.defaults=n,g}]}function kp(){this.$get=function(){return function(){return new n.XMLHttpRequest}}}function dp(){this.$get=["$browser","$window","$document","$xhrFactory",function(n,t,i,r){return gp(n,r,n.defer,t.angular.callbacks,i[0])}]}function gp(n,i,f,e,s){function h(n,t,i){var r=s.createElement("script"),u=null;return r.type="text/javascript",r.src=n,r.async=!0,u=function(n){vr(r,"load",u);vr(r,"error",u);s.body.removeChild(r);r=null;var f=-1,o="unknown";n&&(n.type!=="load"||e[t].called||(n={type:"error"}),o=n.type,f=n.type==="error"?404:200);i&&i(f,o)},vu(r,"load",u),vu(r,"error",u),s.body.appendChild(r),u}return function(s,c,l,v,y,p,w,b,k,d){function ft(){tt&&tt();g&&g.abort()}function ut(t,i,r,e,s){u(rt)&&f.cancel(rt);tt=g=null;t(i,r,e,s);n.$$completeOutstandingRequest(o)}var nt,tt,g,it,rt;if(n.$$incOutstandingRequestCount(),c=c||n.url(),a(s)=="jsonp")nt="_"+(e.counter++).toString(36),e[nt]=function(n){e[nt].data=n;e[nt].called=!0},tt=h(c.replace("JSON_CALLBACK","angular.callbacks."+nt),nt,function(n,t){ut(v,n,e[nt].data,"",t);e[nt]=o});else{if(g=i(s,c),g.open(s,c,!0),t(y,function(n,t){u(n)&&g.setRequestHeader(t,n)}),g.onload=function(){var i=g.statusText||"",t="response"in g?g.response:g.responseText,n=g.status===1223?204:g.status;n===0&&(n=t?200:ui(c).protocol=="file"?404:0);ut(v,n,t,g.getAllResponseHeaders(),i)},it=function(){ut(v,-1,null,null,"")},g.onerror=it,g.onabort=it,t(k,function(n,t){g.addEventListener(t,n)}),t(d,function(n,t){g.upload.addEventListener(t,n)}),w&&(g.withCredentials=!0),b)try{g.responseType=b}catch(et){if(b!=="json")throw et;}g.send(r(l)?null:l)}p>0?rt=f(ft,p):su(p)&&p.then(ft)}}function nw(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,e,o){function l(n){return"\\\\\\"+n}function s(i){return i.replace(y,n).replace(p,t)}function w(n){if(n==null)return"";switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=lr(n)}return n}function b(n,t,i,r){var u;return u=n.$watch(function(n){return u(),r(n)},t,i)}function h(h,l,y,p){function lt(n){try{return n=ct(n),p&&!u(n)?n:w(n)}catch(t){e(ii.interr(h,t))}}var g,ot,et,ct;if(!h.length||h.indexOf(n)===-1)return l||(ot=s(h),g=ft(ot),g.exp=h,g.expressions=[],g.$$watchDelegate=b),g;p=!!p;for(var nt,it,k=0,tt=[],rt=[],st=h.length,ut,d=[],ht=[];k<st;)if((nt=h.indexOf(n,k))!=-1&&(it=h.indexOf(t,nt+c))!=-1)k!==nt&&d.push(s(h.substring(k,nt))),ut=h.substring(nt+c,it),tt.push(ut),rt.push(i(ut,lt)),k=it+a,ht.push(d.length),d.push("");else{k!==st&&d.push(s(h.substring(k)));break}return y&&d.length>1&&ii.throwNoconcat(h),!l||tt.length?(et=function(n){for(var t=0,i=tt.length;t<i;t++){if(p&&r(n[t]))return;d[ht[t]]=n[t]}return d.join("")},ct=function(n){return y?o.getTrusted(y,n):o.valueOf(n)},v(function(n){var t=0,i=tt.length,r=new Array(i);try{for(;t<i;t++)r[t]=rt[t](n);return et(r)}catch(u){e(ii.interr(h,u))}},{exp:h,expressions:tt,$$watchDelegate:function(n,t){var i;return n.$watchGroup(rt,function(r,u){var e=et(r);f(t)&&t.call(this,e,r!==u?i:e,n);i=e})}})):void 0}var c=n.length,a=t.length,y=new RegExp(n.replace(/./g,l),"g"),p=new RegExp(t.replace(/./g,l),"g");return h.startSymbol=function(){return n},h.endSymbol=function(){return t},h}]}function tw(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(n,t,i,r,f){function o(o,s,h,c){function w(){p?o.apply(null,b):o(a)}var p=arguments.length>4,b=p?cr(arguments,4):[],k=t.setInterval,d=t.clearInterval,a=0,y=u(c)&&!c,v=(y?r:i).defer(),l=v.promise;return h=u(h)?h:0,l.$$intervalId=k(function(){y?f.defer(w):n.$evalAsync(w);v.notify(a++);h>0&&a>=h&&(v.resolve(a),d(l.$$intervalId),delete e[l.$$intervalId]);y||n.$apply()},s),e[l.$$intervalId]=v,l}var e={};return o.cancel=function(n){return n&&n.$$intervalId in e?(e[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete e[n.$$intervalId],!0):!1},o}]}function ye(n){for(var t=n.split("/"),i=t.length;i--;)t[i]=hu(t[i]);return t.join("/")}function hh(n,t){var i=ui(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=tt(i.port)||rw[i.protocol]||null}function ch(n,t){var r=n.charAt(0)!=="/",i;r&&(n="/"+n);i=ui(n);t.$$path=decodeURIComponent(r&&i.pathname.charAt(0)==="/"?i.pathname.substring(1):i.pathname);t.$$search=ts(i.search);t.$$hash=decodeURIComponent(i.hash);t.$$path&&t.$$path.charAt(0)!="/"&&(t.$$path="/"+t.$$path)}function wt(n,t){if(t.indexOf(n)===0)return t.substr(n.length)}function vi(n){var t=n.indexOf("#");return t==-1?n:n.substr(0,t)}function dr(n){return n.replace(/(#.+)|#$/,"$1")}function uw(n){return n.substr(0,vi(n).lastIndexOf("/")+1)}function fw(n){return n.substring(0,n.indexOf("/",n.indexOf("//")+2))}function pe(n,t,i){this.$$html5=!0;i=i||"";hh(n,this);this.$$parse=function(n){var i=wt(t,n);if(!h(i))throw uf("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',n,t);ch(i,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=df(this.$$search),i=this.$$hash?"#"+hu(this.$$hash):"";this.$$url=ye(this.$$path)+(n?"?"+n:"")+i;this.$$absUrl=t+this.$$url.substr(1)};this.$$parseLinkUrl=function(r,f){if(f&&f[0]==="#")return this.hash(f.slice(1)),!0;var e,s,o;return u(e=wt(n,r))?(s=e,o=u(e=wt(i,e))?t+(wt("/",e)||e):n+s):u(e=wt(t,r))?o=t+e:t==r+"/"&&(o=t),o&&this.$$parse(o),!!o}}function we(n,t,i){hh(n,this);this.$$parse=function(u){function o(n,t,i){var u=/^\/[A-Z]:(\/.*)/,r;return(t.indexOf(i)===0&&(t=t.replace(i,"")),u.exec(t))?n:(r=u.exec(n),r?r[1]:n)}var e=wt(n,u)||wt(t,u),f;r(e)||e.charAt(0)!=="#"?this.$$html5?f=e:(f="",r(e)&&(n=u,this.replace())):(f=wt(i,e),r(f)&&(f=e));ch(f,this);this.$$path=o(this.$$path,f,n);this.$$compose()};this.$$compose=function(){var t=df(this.$$search),r=this.$$hash?"#"+hu(this.$$hash):"";this.$$url=ye(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+(this.$$url?i+this.$$url:"")};this.$$parseLinkUrl=function(t){return vi(n)==vi(t)?(this.$$parse(t),!0):!1}}function lh(n,t,i){this.$$html5=!0;we.apply(this,arguments);this.$$parseLinkUrl=function(r,u){if(u&&u[0]==="#")return this.hash(u.slice(1)),!0;var f,e;return n==vi(r)?f=r:(e=wt(t,r))?f=n+i+e:t===r+"/"&&(f=t),f&&this.$$parse(f),!!f};this.$$compose=function(){var t=df(this.$$search),r=this.$$hash?"#"+hu(this.$$hash):"";this.$$url=ye(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+i+this.$$url}}function ff(n){return function(){return this[n]}}function vh(n,t){return function(i){return r(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function ew(){var t="",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return u(n)?(t=n,this):t};this.html5Mode=function(t){return oi(t)?(n.enabled=t,this):s(t)?(oi(t.enabled)&&(n.enabled=t.enabled),oi(t.requireBase)&&(n.requireBase=t.requireBase),oi(t.rewriteLinks)&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,u,f,o,h){function k(n,t,i){var r=c.url(),f=c.$$state;try{u.url(n,t,i);c.$$state=u.state()}catch(e){c.url(r);c.$$state=f;throw e;}}function d(n,t){i.$broadcast("$locationChangeSuccess",c.absUrl(),n,c.$$state,t)}var c,y,w=u.baseHref(),l=u.url(),a,p,b,v;if(n.enabled){if(!w&&n.requireBase)throw uf("nobase","$location in HTML5 mode requires a <base> tag to be present!");a=fw(l)+(w||"/");y=f.history?pe:lh}else a=vi(l),y=we;p=uw(a);c=new y(a,p,"#"+t);c.$$parseLinkUrl(l,l);c.$$state=u.state();b=/^\s*(javascript|mailto):/i;o.on("click",function(t){var r,f,l;if(n.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&t.which!=2&&t.button!=2){for(r=e(t.target);vt(r[0])!=="a";)if(r[0]===o[0]||!(r=r.parent())[0])return;(f=r.prop("href"),l=r.attr("href")||r.attr("xlink:href"),s(f)&&f.toString()==="[object SVGAnimatedString]"&&(f=ui(f.animVal).href),b.test(f))||!f||r.attr("target")||t.isDefaultPrevented()||c.$$parseLinkUrl(f,l)&&(t.preventDefault(),c.absUrl()!=u.url()&&(i.$apply(),h.angular["ff-684208-preventDefault"]=!0))}});dr(c.absUrl())!=dr(l)&&u.url(c.absUrl(),!0);v=!0;u.onUrlChange(function(n,t){if(r(wt(p,n))){h.location.href=n;return}i.$evalAsync(function(){var r=c.absUrl(),u=c.$$state,f;(n=dr(n),c.$$parse(n),c.$$state=t,f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented,c.absUrl()===n)&&(f?(c.$$parse(r),c.$$state=u,k(r,!1,u)):(v=!1,d(r,u)))});i.$$phase||i.$digest()});return i.$watch(function(){var t=dr(u.url()),e=dr(c.absUrl()),n=u.state(),o=c.$$replace,r=t!==e||c.$$html5&&f.history&&n!==c.$$state;(v||r)&&(v=!1,i.$evalAsync(function(){var u=c.absUrl(),f=i.$broadcast("$locationChangeStart",u,t,c.$$state,n).defaultPrevented;c.absUrl()===u&&(f?(c.$$parse(t),c.$$state=n):(r&&k(u,o,n===c.$$state?null:c.$$state),d(t,n)))}));c.$$replace=!1}),c}]}function ow(){var n=!0,i=this;this.debugEnabled=function(t){return u(t)?(n=t,this):n};this.$get=["$window",function(r){function f(n){return n instanceof Error&&(n.stack?n=n.message&&n.stack.indexOf(n.message)===-1?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var i=r.console||{},u=i[n]||i.log||o,e=!1;try{e=!!u.apply}catch(s){}return e?function(){var n=[];return t(arguments,function(t){n.push(f(t))}),u.apply(i,n)}:function(n,t){u(n,t==null?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var t=u("debug");return function(){n&&t.apply(i,arguments)}}()}}]}function gi(n,t){if(n==="__defineGetter__"||n==="__defineSetter__"||n==="__lookupGetter__"||n==="__lookupSetter__"||n==="__proto__")throw it("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return n}function yh(n){return n+""}function ri(n,t){if(n)if(n.constructor===n)throw it("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);else if(n.window===n)throw it("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);else if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw it("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);else if(n===Object)throw it("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t);return n}function ph(n,t){if(n)if(n.constructor===n)throw it("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);else if(n===sw||n===hw||n===cw)throw it("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t);}function ef(n,t){if(n&&(n===0..constructor||n===(!1).constructor||n==="".constructor||n==={}.constructor||n===[].constructor||n===Function.constructor))throw it("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t);}function lw(n,t){return typeof n!="undefined"?n:t}function bh(n,t){return typeof n=="undefined"?t:typeof t=="undefined"?n:n+t}function kh(n,t){var i=n(t);return!i.$stateful}function k(n,r){var u,f;switch(n.type){case i.Program:u=!0;t(n.body,function(n){k(n.expression,r);u=u&&n.expression.constant});n.constant=u;break;case i.Literal:n.constant=!0;n.toWatch=[];break;case i.UnaryExpression:k(n.argument,r);n.constant=n.argument.constant;n.toWatch=n.argument.toWatch;break;case i.BinaryExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.left.toWatch.concat(n.right.toWatch);break;case i.LogicalExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.constant?[]:[n];break;case i.ConditionalExpression:k(n.test,r);k(n.alternate,r);k(n.consequent,r);n.constant=n.test.constant&&n.alternate.constant&&n.consequent.constant;n.toWatch=n.constant?[]:[n];break;case i.Identifier:n.constant=!1;n.toWatch=[n];break;case i.MemberExpression:k(n.object,r);n.computed&&k(n.property,r);n.constant=n.object.constant&&(!n.computed||n.property.constant);n.toWatch=[n];break;case i.CallExpression:u=n.filter?kh(r,n.callee.name):!1;f=[];t(n.arguments,function(n){k(n,r);u=u&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=u;n.toWatch=n.filter&&kh(r,n.callee.name)?f:[n];break;case i.AssignmentExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=[n];break;case i.ArrayExpression:u=!0;f=[];t(n.elements,function(n){k(n,r);u=u&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=u;n.toWatch=f;break;case i.ObjectExpression:u=!0;f=[];t(n.properties,function(n){k(n.value,r);u=u&&n.value.constant;n.value.constant||f.push.apply(f,n.value.toWatch)});n.constant=u;n.toWatch=f;break;case i.ThisExpression:n.constant=!1;n.toWatch=[];break;case i.LocalsExpression:n.constant=!1;n.toWatch=[]}}function dh(n){if(n.length==1){var i=n[0].expression,t=i.toWatch;return t.length!==1?t:t[0]!==i?t:undefined}}function gh(n){return n.type===i.Identifier||n.type===i.MemberExpression}function nc(n){if(n.body.length===1&&gh(n.body[0].expression))return{type:i.AssignmentExpression,left:n.body[0].expression,right:{type:i.NGValueParameter},operator:"="}}function tc(n){return n.body.length===0||n.body.length===1&&(n.body[0].expression.type===i.Literal||n.body[0].expression.type===i.ArrayExpression||n.body[0].expression.type===i.ObjectExpression)}function ic(n){return n.constant}function rc(n,t){this.astBuilder=n;this.$filter=t}function uc(n,t){this.astBuilder=n;this.$filter=t}function hf(n){return n=="constructor"}function be(n){return f(n.valueOf)?n.valueOf():fc.call(n)}function aw(){var e=p(),s=p(),r={"true":!0,"false":!1,"null":null,undefined:undefined},n,i;this.addLiteral=function(n,t){r[n]=t};this.setIdentifierFns=function(t,r){return n=t,i=r,this};this.$get=["$filter",function(h){function w(n,t,i){var r,l,u,f;i=i||c;switch(typeof n){case"string":if(n=n.trim(),u=n,f=i?s:e,r=f[u],!r){n.charAt(0)===":"&&n.charAt(1)===":"&&(l=!0,n=n.substring(2));var p=i?g:d,w=new of(p),tt=new sf(w,h,p);r=tt.parse(n);r.constant?r.$$watchDelegate=nt:l?r.$$watchDelegate=r.literal?k:b:r.inputs&&(r.$$watchDelegate=v);i&&(r=a(r));f[u]=r}return y(r,t);case"function":return y(n,t);default:return y(o,t)}}function a(n){function t(t,i,r,u){var f=c;c=!0;try{return n(t,i,r,u)}finally{c=f}}if(!n)return n;t.$$watchDelegate=n.$$watchDelegate;t.assign=a(n.assign);t.constant=n.constant;t.literal=n.literal;for(var i=0;n.inputs&&i<n.inputs.length;++i)n.inputs[i]=a(n.inputs[i]);return t.inputs=n.inputs,t}function l(n,t){return n==null||t==null?n===t:typeof n=="object"&&(n=be(n),typeof n=="object")?!1:n===t||n!==n&&t!==t}function v(n,t,i,r,u){var f=r.inputs,o,c,s,h,e,a;if(f.length===1)return c=l,f=f[0],n.$watch(function(n){var t=f(n);return l(t,c)||(o=r(n,undefined,undefined,[t]),c=t&&be(t)),o},t,i,u);for(s=[],h=[],e=0,a=f.length;e<a;e++)s[e]=l,h[e]=null;return n.$watch(function(n){for(var i,u=!1,t=0,e=f.length;t<e;t++)i=f[t](n),(u||(u=!l(i,s[t])))&&(h[t]=i,s[t]=i&&be(i));return u&&(o=r(n,undefined,undefined,h)),o},t,i,u)}function b(n,t,i,r){var e,o;return e=n.$watch(function(n){return r(n)},function(n,i,r){o=n;f(t)&&t.apply(this,arguments);u(n)&&r.$$postDigest(function(){u(o)&&e()})},i)}function k(n,i,r,e){function h(n){var i=!0;return t(n,function(n){u(n)||(i=!1)}),i}var o,s;return o=n.$watch(function(n){return e(n)},function(n,t,r){s=n;f(i)&&i.call(this,n,t,r);h(n)&&r.$$postDigest(function(){h(s)&&o()})},r)}function nt(n,t,i,r){var u;return u=n.$watch(function(n){return u(),r(n)},t,i)}function y(n,t){if(!t)return n;var r=n.$$watchDelegate,f=!1,e=r!==k&&r!==b,i=e?function(i,r,u,e){var o=f&&e?e[0]:n(i,r,u,e);return t(o,i,r)}:function(i,r,f,e){var o=n(i,r,f,e),s=t(o,i,r);return u(o)?s:o};return n.$$watchDelegate&&n.$$watchDelegate!==v?i.$$watchDelegate=n.$$watchDelegate:t.$stateful||(i.$$watchDelegate=v,f=!n.inputs,i.inputs=n.inputs?n.inputs:[n]),i}var p=ti().noUnsafeEval,d={csp:p,expensiveChecks:!1,literals:ni(r),isIdentifierStart:f(n)&&n,isIdentifierContinue:f(i)&&i},g={csp:p,expensiveChecks:!0,literals:ni(r),isIdentifierStart:f(n)&&n,isIdentifierContinue:f(i)&&i},c=!1;return w.$$runningExpensiveChecks=function(){return c},w}]}function vw(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return ec(function(t){n.$evalAsync(t)},t)}]}function yw(){this.$get=["$browser","$exceptionHandler",function(n,t){return ec(function(t){n.defer(t)},t)}]}function ec(n,i){function a(){this.$$state={status:0}}function o(n,t){return function(i){t.call(n,i)}}function d(n){var e,t,u,r,o;for(u=n.pending,n.processScheduled=!1,n.pending=undefined,r=0,o=u.length;r<o;++r){t=u[r][0];e=u[r][n.status];try{f(e)?t.resolve(e(n.value)):n.status===1?t.resolve(n.value):t.reject(n.value)}catch(s){t.reject(s);i(s)}}}function y(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,n(function(){d(t)}))}function u(){this.promise=new a}function tt(n){var r=new u,f=0,i=c(n)?[]:{};return t(n,function(n,t){f++;p(n).then(function(n){i.hasOwnProperty(t)||(i[t]=n,--f||r.resolve(i))},function(n){i.hasOwnProperty(t)||r.reject(n)})}),f===0&&r.resolve(i),r.promise}var w=l("$q",TypeError),k=function(){var n=new u;return n.resolve=o(n,n.resolve),n.reject=o(n,n.reject),n.notify=o(n,n.notify),n},e;v(a.prototype,{then:function(n,t,i){if(r(n)&&r(t)&&r(i))return this;var f=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([f,n,t,i]),this.$$state.status>0&&y(this.$$state),f.promise},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return b(t,!0,n)},function(t){return b(t,!1,n)},t)}});v(u.prototype,{resolve:function(n){this.promise.$$state.status||(n===this.promise?this.$$reject(w("qcycle","Expected promise to be resolved with value other than itself '{0}'",n)):this.$$resolve(n))},$$resolve:function(n){function c(n){t||(t=!0,u.$$resolve(n))}function h(n){t||(t=!0,u.$$reject(n))}var r,u=this,t=!1;try{(s(n)||f(n))&&(r=n&&n.then);f(r)?(this.promise.$$state.status=-1,r.call(n,c,h,o(this,this.notify))):(this.promise.$$state.value=n,this.promise.$$state.status=1,y(this.promise.$$state))}catch(e){h(e);i(e)}},reject:function(n){this.promise.$$state.status||this.$$reject(n)},$$reject:function(n){this.promise.$$state.value=n;this.promise.$$state.status=2;y(this.promise.$$state)},notify:function(t){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&n(function(){for(var u,e,n=0,o=r.length;n<o;n++){e=r[n][0];u=r[n][3];try{e.notify(f(u)?u(t):t)}catch(s){i(s)}}})}});var g=function(n){var t=new u;return t.reject(n),t.promise},h=function(n,t){var i=new u;return t?i.resolve(n):i.reject(n),i.promise},b=function(n,t,i){var r=null;try{f(i)&&(r=i())}catch(u){return h(u,!1)}return su(r)?r.then(function(){return h(n,t)},function(n){return h(n,!1)}):h(n,t)},p=function(n,t,i,r){var f=new u;return f.resolve(n),f.promise.then(t,i,r)},nt=p;return e=function(n){function i(n){t.resolve(n)}function r(n){t.reject(n)}if(!f(n))throw w("norslvr","Expected resolverFn, got '{0}'",n);var t=new u;return n(i,r),t.promise},e.prototype=a.prototype,e.defer=k,e.reject=g,e.when=p,e.resolve=nt,e.all=tt,e}function pw(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function ww(){function h(n){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=ou();this.$$ChildScope=null}return t.prototype=n,t}var u=10,e=l("$rootScope"),n=null,i=null;this.digestTtl=function(n){return arguments.length&&(u=n),u};this.$get=["$exceptionHandler","$parse","$browser",function(c,l,a){function ut(n){n.currentScope.$$destroyed=!0}function w(n){gt===9&&(n.$$childHead&&w(n.$$childHead),n.$$nextSibling&&w(n.$$nextSibling));n.$parent=n.$$nextSibling=n.$$prevSibling=n.$$childHead=n.$$childTail=n.$root=n.$$watchers=null}function p(){this.$id=ou();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function nt(n){if(v.$$phase)throw e("inprog","{0} already in progress",v.$$phase);v.$$phase=n}function d(){v.$$phase=null}function g(n,t){do n.$$watchersCount+=t;while(n=n.$parent)}function tt(n,t,i){do n.$$listenerCount[i]-=t,n.$$listenerCount[i]===0&&delete n.$$listenerCount[i];while(n=n.$parent)}function it(){}function rt(){while(k.length)try{k.shift()()}catch(n){c(n)}i=null}function ft(){i===null&&(i=a.defer(function(){v.$apply(rt)}))}p.prototype={constructor:p,$new:function(n,t){var i;return t=t||this,n?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=h(this)),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,(n||t!=this)&&i.$on("$destroy",ut),i},$watch:function(t,i,r,u){var e=l(t);if(e.$$watchDelegate)return e.$$watchDelegate(this,i,r,e,t);var h=this,s=h.$$watchers,c={fn:i,last:it,get:e,exp:u||t,eq:!!r};return n=null,f(i)||(c.fn=o),s||(s=h.$$watchers=[]),s.unshift(c),g(this,1),function(){or(s,c)>=0&&g(h,-1);n=null}},$watchGroup:function(n,i){function c(){o=!1;h?(h=!1,i(r,r,u)):i(r,f,u)}var f=new Array(n.length),r=new Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?n.length===1?this.$watch(n[0],function(n,t,u){r[0]=n;f[0]=t;i(r,n===t?r:f,u)}):(t(n,function(n,t){var i=u.$watch(n,function(n,i){r[t]=n;f[t]=i;o||(o=!0,u.$evalAsync(c))});e.push(i)}),function(){while(e.length)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&i(r,r,u)}),function(){s=!1})},$watchCollection:function(n,t){function y(n){var l,o,y,t,h,v;if(i=n,!r(i)){if(s(i))if(ei(i))for(u!==c&&(u=c,e=u.length=0,f++),l=i.length,e!==l&&(f++,u.length=e=l),v=0;v<l;v++)h=u[v],t=i[v],y=h!==h&&t!==t,y||h===t||(f++,u[v]=t);else{u!==a&&(u=a={},e=0,f++);l=0;for(o in i)at.call(i,o)&&(l++,t=i[o],h=u[o],o in u?(y=h!==h&&t!==t,y||h===t||(f++,u[o]=t)):(e++,u[o]=t,f++));if(e>l){f++;for(o in u)at.call(i,o)||(e--,delete u[o])}}else u!==i&&(u=i,f++);return f}}function b(){var n,r;if(v?(v=!1,t(i,i,h)):t(i,o,h),p)if(s(i))if(ei(i))for(o=new Array(i.length),n=0;n<i.length;n++)o[n]=i[n];else{o={};for(r in i)at.call(i,r)&&(o[r]=i[r])}else o=i}y.$stateful=!0;var h=this,i,u,o,p=t.length>1,f=0,w=l(n,y),c=[],a={},v=!0,e=0;return this.$watch(w,b)},$digest:function(){var t,o,s,ot,ht,k,g,h,tt=u,ut,r,ft=this,l=[],p,w;nt("$digest");a.$$checkUrlChange();this===v&&i!==null&&(a.defer.cancel(i),rt());n=null;do{for(h=!1,r=ft;y.length;){try{w=y.shift();w.scope.$eval(w.expression,w.locals)}catch(et){c(et)}n=null}n:do{if(k=r.$$watchers)for(g=k.length;g--;)try{if(t=k[g],t)if(ht=t.get,(o=ht(r))===(s=t.last)||(t.eq?st(o,s):typeof o=="number"&&typeof s=="number"&&isNaN(o)&&isNaN(s))){if(t===n){h=!1;break n}}else h=!0,n=t,t.last=t.eq?ni(o,null):o,ot=t.fn,ot(o,s===it?o:s,r),tt<5&&(p=4-tt,l[p]||(l[p]=[]),l[p].push({msg:f(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:o,oldVal:s}))}catch(et){c(et)}if(!(ut=r.$$watchersCount&&r.$$childHead||r!==ft&&r.$$nextSibling))while(r!==ft&&!(ut=r.$$nextSibling))r=r.$parent}while(r=ut);if((h||y.length)&&!tt--){d();throw e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",u,l);}}while(h||y.length);for(d();b.length;)try{b.shift()()}catch(et){c(et)}},$destroy:function(){var n,t;if(!this.$$destroyed){n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===v&&a.$$applicationDestroyed();g(this,-this.$$watchersCount);for(t in this.$$listenerCount)tt(this,this.$$listenerCount[t],t);n&&n.$$childHead==this&&(n.$$childHead=this.$$nextSibling);n&&n.$$childTail==this&&(n.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=o;this.$on=this.$watch=this.$watchGroup=function(){return o};this.$$listeners={};this.$$nextSibling=null;w(this)}},$eval:function(n,t){return l(n)(this,t)},$evalAsync:function(n,t){v.$$phase||y.length||a.defer(function(){y.length&&v.$digest()});y.push({scope:this,expression:l(n),locals:t})},$$postDigest:function(n){b.push(n)},$apply:function(n){try{nt("$apply");try{return this.$eval(n)}finally{d()}}catch(t){c(t)}finally{try{v.$digest()}catch(t){c(t);throw t;}}},$applyAsync:function(n){function i(){t.$eval(n)}var t=this;n&&k.push(i);n=l(n);ft()},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=r.indexOf(t);i!==-1&&(r[i]=null,tt(u,1,n))}},$emit:function(n){var o=[],u,r=this,e=!1,t={name:n,targetScope:r,stopPropagation:function(){e=!0},preventDefault:function(){t.defaultPrevented=!0},defaultPrevented:!1},s=hr([t],arguments,1),i,f;do{for(u=r.$$listeners[n]||o,t.currentScope=r,i=0,f=u.length;i<f;i++){if(!u[i]){u.splice(i,1);i--;f--;continue}try{u[i].apply(null,s)}catch(h){c(h)}}if(e)return t.currentScope=null,t;r=r.$parent}while(r);return t.currentScope=null,t},$broadcast:function(n){var r=this,t=r,e=r,u={name:n,targetScope:r,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},s,f,i,o;if(!r.$$listenerCount[n])return u;for(s=hr([u],arguments,1);t=e;){for(u.currentScope=t,f=t.$$listeners[n]||[],i=0,o=f.length;i<o;i++){if(!f[i]){f.splice(i,1);i--;o--;continue}try{f[i].apply(null,s)}catch(h){c(h)}}if(!(e=t.$$listenerCount[n]&&t.$$childHead||t!==r&&t.$$nextSibling))while(t!==r&&!(e=t.$$nextSibling))t=t.$parent}return u.currentScope=null,u}};var v=new p,y=v.$$asyncQueue=[],b=v.$$postDigestQueue=[],k=v.$$applyAsyncQueue=[];return v}]}function bw(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return u(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return u(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return(u=ui(i).href,u!==""&&!u.match(f))?"unsafe:"+u:i}}}function kw(n){if(n==="self")return n;if(h(n)){if(n.indexOf("***")>-1)throw dt("iwcard","Illegal sequence *** in string matcher.  String: {0}",n);return n=wf(n).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+n+"$")}if(ur(n))return new RegExp("^"+n.source+"$");throw dt("imatcher",'Matchers may only be "self", string patterns or RegExp objects');}function oc(n){var i=[];return u(n)&&t(n,function(n){i.push(kw(n))}),i}function dw(){this.SCE_CONTEXTS=ht;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=oc(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=oc(n)),t};this.$get=["$injector",function(i){function s(n,t){return n==="self"?hc(t):!!n.exec(t.href)}function h(i){for(var e=ui(i.toString()),f=!1,r=0,u=n.length;r<u;r++)if(s(n[r],e)){f=!0;break}if(f)for(r=0,u=t.length;r<u;r++)if(s(t[r],e)){f=!1;break}return f}function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function c(n,t){var i=u.hasOwnProperty(n)?u[n]:null;if(!i)throw dt("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",n,t);if(t===null||r(t)||t==="")return t;if(typeof t!="string")throw dt("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",n);return new i(t)}function l(n){return n instanceof e?n.$$unwrapTrustedValue():n}function a(n,t){if(t===null||r(t)||t==="")return t;var i=u.hasOwnProperty(n)?u[n]:null;if(i&&t instanceof i)return t.$$unwrapTrustedValue();if(n===ht.RESOURCE_URL){if(h(t))return t;throw dt("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString());}else if(n===ht.HTML)return o(t);throw dt("unsafe","Attempting to use an unsafe value in a safe context.");}var o=function(){throw dt("unsafe","Attempting to use an unsafe value in a safe context.");},e,u;return i.has("$sanitize")&&(o=i.get("$sanitize")),e=f(),u={},u[ht.HTML]=f(e),u[ht.CSS]=f(e),u[ht.URL]=f(e),u[ht.JS]=f(e),u[ht.RESOURCE_URL]=f(u[ht.URL]),{trustAs:c,getTrusted:a,valueOf:l}}]}function gw(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(i,r){var u;if(n&&gt<8)throw dt("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");u=ot(ht);u.isEnabled=function(){return n};u.trustAs=r.trustAs;u.getTrusted=r.getTrusted;u.valueOf=r.valueOf;n||(u.trustAs=u.getTrusted=function(n,t){return t},u.valueOf=rr);u.parseAs=function(n,t){var r=i(t);return r.literal&&r.constant?r:i(t,function(t){return u.getTrusted(n,t)})};var f=u.parseAs,e=u.getTrusted,o=u.trustAs;return t(ht,function(n,t){var i=a(t);u[yr("parse_as_"+i)]=function(t){return f(n,t)};u[yr("get_trusted_"+i)]=function(t){return e(n,t)};u[yr("trust_as_"+i)]=function(t){return o(n,t)}}),u}]}function nb(){this.$get=["$window","$document",function(n,t){var o={},y=n.chrome&&n.chrome.app&&n.chrome.app.runtime,p=!y&&n.history&&n.history.pushState,s=tt((/android (\d+)/.exec(a((n.navigator||{}).userAgent))||[])[1]),w=/Boxee/i.test((n.navigator||{}).userAgent),c=t[0]||{},i,u=c.body&&c.body.style,f=!1,e=!1,l,v;if(u){for(v in u)if(l=/^(Moz|webkit|ms)(?=[A-Z])/.exec(v)){i=l[0];i=i.substr(0,1).toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in u&&"webkit");f=!!("transition"in u||i+"Transition"in u);e=!!("animation"in u||i+"Animation"in u);!s||f&&e||(f=h(u.webkitTransition),e=h(u.webkitAnimation))}return{history:!!(p&&!(s<4)&&!w),hasEvent:function(n){if(n==="input"&&gt<=11)return!1;if(r(o[n])){var t=c.createElement("div");o[n]="on"+n in t}return o[n]},csp:ti(),vendorPrefix:i,transitions:f,animations:e,android:s}}]}function tb(){var n;this.httpOptions=function(t){return t?(n=t,this):n};this.$get=["$templateCache","$http","$q","$sce",function(t,i,r,u){function f(e,o){function l(n){if(!o)throw sc("tpload","Failed to load template: {0} (HTTP status: {1} {2})",e,n.status,n.statusText);return r.reject(n)}f.totalPendingRequests++;h(e)&&t.get(e)||(e=u.getTrustedResourceUrl(e));var s=i.defaults&&i.defaults.transformResponse;return c(s)?s=s.filter(function(n){return n!==ae}):s===ae&&(s=null),i.get(e,v({cache:t,transformResponse:s},n))["finally"](function(){f.totalPendingRequests--}).then(function(n){return t.put(e,n.data),n.data},l)}return f.totalPendingRequests=0,f}]}function ib(){this.$get=["$rootScope","$browser","$location",function(n,i,r){var u={};return u.findBindings=function(n,i,r){var f=n.getElementsByClassName("ng-binding"),u=[];return t(f,function(n){var f=ut.element(n).data("$binding");f&&t(f,function(t){if(r){var f=new RegExp("(^|\\s)"+wf(i)+"(\\s|\\||$)");f.test(t)&&u.push(n)}else t.indexOf(i)!=-1&&u.push(n)})}),u},u.findModels=function(n,t,i){for(var u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r){var e=i?"=":"*=",o="["+u[r]+"model"+e+'"'+t+'"]',f=n.querySelectorAll(o);if(f.length)return f}},u.getLocation=function(){return r.url()},u.setLocation=function(t){t!==r.url()&&(r.url(t),n.$digest())},u.whenStable=function(n){i.notifyWhenNoOutstandingRequests(n)},u}]}function rb(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,r,e){function h(h,c,l){f(h)||(l=c,c=h,h=o);var w=cr(arguments,3),p=u(l)&&!l,a=(p?r:i).defer(),v=a.promise,y;return y=t.defer(function(){try{a.resolve(h.apply(null,w))}catch(t){a.reject(t);e(t)}finally{delete s[v.$$timeoutId]}p||n.$apply()},c),v.$$timeoutId=y,s[y]=a,v}var s={};return h.cancel=function(n){return n&&n.$$timeoutId in s?(s[n.$$timeoutId].reject("canceled"),delete s[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},h}]}function ui(n){var t=n;return gt&&(g.setAttribute("href",t),t=g.href),g.setAttribute("href",t),{href:g.href,protocol:g.protocol?g.protocol.replace(/:$/,""):"",host:g.host,search:g.search?g.search.replace(/^\?/,""):"",hash:g.hash?g.hash.replace(/^#/,""):"",hostname:g.hostname,port:g.port,pathname:g.pathname.charAt(0)==="/"?g.pathname:"/"+g.pathname}}function hc(n){var t=h(n)?ui(n):n;return t.protocol===ke.protocol&&t.host===ke.host}function ub(){this.$get=ft(n)}function cc(n){function u(n){try{return decodeURIComponent(n)}catch(t){return n}}var f=n[0]||{},t={},i="";return function(){var s,n,e,o,h,c=f.cookie||"";if(c!==i)for(i=c,s=i.split("; "),t={},e=0;e<s.length;e++)n=s[e],o=n.indexOf("="),o>0&&(h=u(n.substring(0,o)),r(t[h])&&(t[h]=u(n.substring(o+1))));return t}}function fb(){this.$get=cc}function lc(n){function i(u,f){if(s(u)){var e={};return t(u,function(n,t){e[t]=i(t,n)}),e}return n.factory(u+r,f)}var r="Filter";this.register=i;this.$get=["$injector",function(n){return function(t){return n.get(t+r)}}];i("currency",yc);i("date",dc);i("filter",eb);i("json",bb);i("limitTo",kb);i("lowercase",gc);i("number",pc);i("orderBy",tl);i("uppercase",nl)}function eb(){return function(n,t,i){if(!ei(n)){if(n==null)return n;throw l("filter")("notarray","Expected array but received: {0}",n);}var f=de(t),r,u;switch(f){case"function":r=t;break;case"boolean":case"null":case"number":case"string":u=!0;case"object":r=ob(t,i,u);break;default:return n}return Array.prototype.filter.call(n,r)}}function ob(n,t,i){var u=s(n)&&"$"in n;return t===!0?t=st:f(t)||(t=function(n,t){return r(n)?!1:n===null||t===null?n===t:s(t)||s(n)&&!ao(n)?!1:(n=a(""+n),t=a(""+t),n.indexOf(t)!==-1)}),function(r){return u&&!s(r)?yi(r,n.$,t,!1):yi(r,n,t,i)}}function yi(n,t,i,u,e){var v=de(n),l=de(t),o,s,h,a;if(l==="string"&&t.charAt(0)==="!")return!yi(n,t.substring(1),i,u);if(c(n))return n.some(function(n){return yi(n,t,i,u)});switch(v){case"object":if(u){for(o in n)if(o.charAt(0)!=="$"&&yi(n[o],t,i,!0))return!0;return e?!1:yi(n,t,i,!1)}if(l==="object"){for(o in t)if((s=t[o],!f(s)&&!r(s))&&(h=o==="$",a=h?n:n[o],!yi(a,s,i,h,h)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function de(n){return n===null?"null":typeof n}function yc(n){var t=n.NUMBER_FORMATS;return function(n,i,u){return r(i)&&(i=t.CURRENCY_SYM),r(u)&&(u=t.PATTERNS[1].maxFrac),n==null?n:wc(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,u).replace(/\u00A4/g,i)}}function pc(n){var t=n.NUMBER_FORMATS;return function(n,i){return n==null?n:wc(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function sb(n){var e=0,r,t,i,f,u;for((t=n.indexOf(vc))>-1&&(n=n.replace(vc,"")),(i=n.search(/e/i))>0?(t<0&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):t<0&&(t=n.length),i=0;n.charAt(i)==ge;i++);if(i==(u=n.length))r=[0],t=1;else{for(u--;n.charAt(u)==ge;)u--;for(t-=i,r=[],f=0;i<=u;i++,f++)r[f]=+n.charAt(i)}return t>ac&&(r=r.splice(0,ac-1),e=t-1,t=1),{d:r,e:e,i:t}}function hb(n,t,i,u){var f=n.d,o=f.length-n.i,e,a,s,h,c,l;if(t=r(t)?Math.min(Math.max(i,o),u):+t,e=t+n.i,a=f[e],e>0)for(f.splice(Math.max(n.i,e)),s=e;s<f.length;s++)f[s]=0;else for(o=Math.max(0,o),n.i=1,f.length=Math.max(1,e=t+1),f[0]=0,h=1;h<e;h++)f[h]=0;if(a>=5)if(e-1<0){for(c=0;c>e;c--)f.unshift(0),n.i++;f.unshift(1);n.i++}else f[e-1]++;for(;o<Math.max(0,t);o++)f.push(0);l=f.reduceRight(function(n,t,i,r){return t=t+n,r[i]=t%10,Math.floor(t/10)},0);l&&(f.unshift(l),n.i++)}function wc(n,t,i,r,u){var s;if(!(h(n)||w(n))||isNaN(n))return"";var y=!isFinite(n),a=!1,p=Math.abs(n)+"",e="",o;if(y)e="∞";else{o=sb(p);hb(o,u,t.minFrac,t.maxFrac);var f=o.d,c=o.i,v=o.e,l=[];for(a=f.reduce(function(n,t){return n&&!t},!0);c<0;)f.unshift(0),c++;for(c>0?l=f.splice(c):(l=f,f=[0]),s=[],f.length>=t.lgSize&&s.unshift(f.splice(-t.lgSize).join(""));f.length>t.gSize;)s.unshift(f.splice(-t.gSize).join(""));f.length&&s.unshift(f.join(""));e=s.join(i);l.length&&(e+=r+l.join(""));v&&(e+="e+"+v)}return n<0&&!a?t.negPre+e+t.negSuf:t.posPre+e+t.posSuf}function cf(n,t,i,r){var u="";for((n<0||r&&n<=0)&&(r?n=-n+1:(n=-n,u="-")),n=""+n;n.length<t;)n=ge+n;return i&&(n=n.substr(n.length-t)),u+n}function nt(n,t,i,r,u){return i=i||0,function(f){var e=f["get"+n]();return(i>0||e>-i)&&(e+=i),e===0&&i==-12&&(e=12),cf(e,t,r,u)}}function nu(n,t,i){return function(r,u){var f=r["get"+n](),e=(i?"STANDALONE":"")+(t?"SHORT":""),o=tr(e+n);return u[o][f]}}function cb(n,t,i){var r=-1*i,u=r>=0?"+":"";return u+(cf(Math[r>0?"floor":"ceil"](r/60),2)+cf(Math.abs(r%60),2))}function bc(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(t<=4?5:12)-t)}function lb(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function kc(n){return function(t){var i=bc(t.getFullYear()),r=lb(t),u=+r-+i,f=1+Math.round(u/6048e5);return cf(f,n)}}function ab(n,t){return n.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function no(n,t){return n.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function vb(n,t){return n.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function dc(n){function r(n){var t;if(t=n.match(i)){var r=new Date(0),u=0,f=0,e=t[8]?r.setUTCFullYear:r.setFullYear,o=t[8]?r.setUTCHours:r.setHours;t[9]&&(u=tt(t[9]+t[10]),f=tt(t[9]+t[11]));e.call(r,tt(t[1]),tt(t[2])-1,tt(t[3]));var s=tt(t[4]||0)-u,h=tt(t[5]||0)-f,c=tt(t[6]||0),l=Math.round(parseFloat("0."+(t[7]||0))*1e3);return o.call(r,s,h,c,l),r}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u,f){var l="",e=[],s,c,o;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,h(i)&&(i=wb.test(i)?tt(i):r(i)),w(i)&&(i=new Date(i)),!et(i)||!isFinite(i.getTime()))return i;while(u)c=pb.exec(u),c?(e=hr(e,c,1),u=e.pop()):(e.push(u),u=null);return o=i.getTimezoneOffset(),f&&(o=go(f,o),i=kf(i,f,!0)),t(e,function(t){s=yb[t];l+=s?s(i,n.DATETIME_FORMATS,o):t==="''"?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function bb(){return function(n,t){return r(t)&&(t=2),lr(n,t)}}function kb(){return function(n,t,i){return(t=Math.abs(Number(t))===Infinity?Number(t):tt(t),isNaN(t))?n:(w(n)&&(n=n.toString()),!c(n)&&!h(n))?n:(i=!i||isNaN(i)?0:tt(i),i=i<0?Math.max(0,n.length+i):i,t>=0?n.slice(i,i+t):i===0?n.slice(t,n.length):n.slice(Math.max(0,i+t),i))}}function tl(n){function i(t,i){return i=i?-1:1,t.map(function(t){var u=1,r=rr,e;return f(t)?r=t:h(t)&&((t.charAt(0)=="+"||t.charAt(0)=="-")&&(u=t.charAt(0)=="-"?-1:1,t=t.substring(1)),t!==""&&(r=n(t),r.constant&&(e=r(),r=function(n){return n[e]}))),{get:r,descending:u*i}})}function t(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}function r(n,i){return typeof n.valueOf=="function"&&(n=n.valueOf(),t(n))?n:ao(n)&&(n=n.toString(),t(n))?n:i}function u(n,t){var i=typeof n;return n===null?(i="string",n="null"):i==="string"?n=n.toLowerCase():i==="object"&&(n=r(n,t)),{value:n,type:i}}function e(n,t){var i=0;return n.type===t.type?n.value!==t.value&&(i=n.value<t.value?-1:1):i=n.type<t.type?-1:1,i}return function(n,t,r){function s(n,t){return{value:n,predicateValues:f.map(function(i){return u(i.get(n),t)})}}function h(n,t){for(var r=0,i=0,u=f.length;i<u;++i)if(r=e(n.predicateValues[i],t.predicateValues[i])*f[i].descending,r)break;return r}var f,o;if(n==null)return n;if(!ei(n))throw l("orderBy")("notarray","Expected array but received: {0}",n);return c(t)||(t=[t]),t.length===0&&(t=["+"]),f=i(t,r),f.push({get:function(){return{}},descending:r?-1:1}),o=Array.prototype.map.call(n,s),o.sort(h),o.map(function(n){return n.value})}}function pi(n){return f(n)&&(n={link:n}),n.restrict=n.restrict||"AC",ft(n)}function db(n,t){n.$name=t}function rl(n,i,r,u,f){var e=this,o=[];e.$error={};e.$$success={};e.$pending=undefined;e.$name=f(i.name||i.ngForm||"")(r);e.$dirty=!1;e.$pristine=!0;e.$valid=!0;e.$invalid=!1;e.$submitted=!1;e.$$parentForm=iu;e.$rollbackViewValue=function(){t(o,function(n){n.$rollbackViewValue()})};e.$commitViewValue=function(){t(o,function(n){n.$commitViewValue()})};e.$addControl=function(n){bi(n.$name,"input");o.push(n);n.$name&&(e[n.$name]=n);n.$$parentForm=e};e.$$renameControl=function(n,t){var i=n.$name;e[i]===n&&delete e[i];e[t]=n;n.$name=t};e.$removeControl=function(n){n.$name&&e[n.$name]===n&&delete e[n.$name];t(e.$pending,function(t,i){e.$setValidity(i,null,n)});t(e.$error,function(t,i){e.$setValidity(i,null,n)});t(e.$$success,function(t,i){e.$setValidity(i,null,n)});or(o,n);n.$$parentForm=iu};dl({ctrl:this,$element:n,set:function(n,t,i){var r=n[t],u;r?(u=r.indexOf(i),u===-1&&r.push(i)):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(or(r,i),r.length===0&&delete n[t])},$animate:u});e.$setDirty=function(){u.removeClass(n,nr);u.addClass(n,af);e.$dirty=!0;e.$pristine=!1;e.$$parentForm.$setDirty()};e.$setPristine=function(){u.setClass(n,nr,af+" "+to);e.$dirty=!1;e.$pristine=!0;e.$submitted=!1;t(o,function(n){n.$setPristine()})};e.$setUntouched=function(){t(o,function(n){n.$setUntouched()})};e.$setSubmitted=function(){u.addClass(n,to);e.$submitted=!0;e.$$parentForm.$setSubmitted()}}function uo(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function ek(n,t,i,r,u,f){ru(n,t,i,r,u,f);uo(r)}function ru(n,t,i,r,u,f){var h=a(t[0].type),s,e,o,c;if(!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(n){if(e&&(f.defer.cancel(e),e=null),!s){var u=t.val(),o=n&&n.type;h==="password"||i.ngTrim&&i.ngTrim==="false"||(u=y(u));(r.$viewValue!==u||u===""&&r.$$hasNativeValidators)&&r.$setViewValue(u,o)}},u.hasEvent("input"))t.on("input",o);else{c=function(n,t,i){e||(e=f.defer(function(){e=null;t&&t.value===i||o(n)}))};t.on("keydown",function(n){var t=n.keyCode;t===91||15<t&&t<19||37<=t&&t<=40||c(n,this,this.value)});if(u.hasEvent("paste"))t.on("paste cut",c)}t.on("change",o);if(hl[h]&&r.$$hasNativeValidators&&h===i.type)t.on(fk,function(n){if(!e){var t=this[oo],i=t.badInput,r=t.typeMismatch;e=f.defer(function(){e=null;(t.badInput!==i||t.typeMismatch!==r)&&o(n)})}});r.$render=function(){var n=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==n&&t.val(n)}}function ok(n,t){var i;if(et(n))return n;if(h(n)&&(io.lastIndex=0,i=io.exec(n),i)){var r=+i[1],s=+i[2],u=0,f=0,e=0,o=0,c=bc(r),l=(s-1)*7;return t&&(u=t.getHours(),f=t.getMinutes(),e=t.getSeconds(),o=t.getMilliseconds()),new Date(r,0,c.getDate()+l,u,f,e,o)}return NaN}function lf(n,i){return function(r,u){var e,f;if(et(r))return r;if(h(r)){if(r.charAt(0)=='"'&&r.charAt(r.length-1)=='"'&&(r=r.substring(1,r.length-1)),tk.test(r))return new Date(r);if(n.lastIndex=0,e=n.exec(r),e)return e.shift(),f=u?{yyyy:u.getFullYear(),MM:u.getMonth()+1,dd:u.getDate(),HH:u.getHours(),mm:u.getMinutes(),ss:u.getSeconds(),sss:u.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},t(e,function(n,t){t<i.length&&(f[i[t]]=+n)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,f.sss*1e3||0)}return NaN}}function uu(n,t,i,f){return function(e,o,s,h,c,l,a){function b(n){return n&&!(n.getTime&&n.getTime()!==n.getTime())}function k(n){return u(n)&&!et(n)?i(n)||undefined:n}var v,y,p,w;cl(e,o,s,h);ru(e,o,s,h,c,l);v=h&&h.$options&&h.$options.timezone;h.$$parserName=n;h.$parsers.push(function(n){if(h.$isEmpty(n))return null;if(t.test(n)){var r=i(n,y);return v&&(r=kf(r,v)),r}return undefined});h.$formatters.push(function(n){if(n&&!et(n))throw eu("datefmt","Expected `{0}` to be a date",n);return b(n)?(y=n,y&&v&&(y=kf(y,v,!0)),a("date")(n,f,v)):(y=null,"")});(u(s.min)||s.ngMin)&&(h.$validators.min=function(n){return!b(n)||r(p)||i(n)>=p},s.$observe("min",function(n){p=k(n);h.$validate()}));(u(s.max)||s.ngMax)&&(h.$validators.max=function(n){return!b(n)||r(w)||i(n)<=w},s.$observe("max",function(n){w=k(n);h.$validate()}))}}function cl(n,t,i,r){var u=t[0],f=r.$$hasNativeValidators=s(u.validity);f&&r.$parsers.push(function(n){var i=t.prop(oo)||{};return i.badInput||i.typeMismatch?undefined:n})}function sk(n,t,i,f,e,o){var s,h;cl(n,t,i,f);ru(n,t,i,f,e,o);f.$$parserName="number";f.$parsers.push(function(n){return f.$isEmpty(n)?null:uk.test(n)?parseFloat(n):undefined});f.$formatters.push(function(n){if(!f.$isEmpty(n)){if(!w(n))throw eu("numfmt","Expected `{0}` to be a number",n);n=n.toString()}return n});(u(i.min)||i.ngMin)&&(f.$validators.min=function(n){return f.$isEmpty(n)||r(s)||n>=s},i.$observe("min",function(n){u(n)&&!w(n)&&(n=parseFloat(n,10));s=w(n)&&!isNaN(n)?n:undefined;f.$validate()}));(u(i.max)||i.ngMax)&&(f.$validators.max=function(n){return f.$isEmpty(n)||r(h)||n<=h},i.$observe("max",function(n){u(n)&&!w(n)&&(n=parseFloat(n,10));h=w(n)&&!isNaN(n)?n:undefined;f.$validate()}))}function hk(n,t,i,r,u,f){ru(n,t,i,r,u,f);uo(r);r.$$parserName="url";r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||ik.test(i)}}function ck(n,t,i,r,u,f){ru(n,t,i,r,u,f);uo(r);r.$$parserName="email";r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||rk.test(i)}}function lk(n,t,i,u){r(i.name)&&t.attr("name",ou());var f=function(n){t[0].checked&&u.$setViewValue(i.value,n&&n.type)};t.on("click",f);u.$render=function(){var n=i.value;t[0].checked=n==u.$viewValue};i.$observe("value",u.$render)}function ll(n,t,i,r,f){var e;if(u(r)){if(e=n(r),!e.constant)throw eu("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",i,r);return e(t)}return f}function ak(n,t,i,r,u,f,e,o){var s=ll(o,n,"ngTrueValue",i.ngTrueValue,!0),h=ll(o,n,"ngFalseValue",i.ngFalseValue,!1),c=function(n){r.$setViewValue(t[0].checked,n&&n.type)};t.on("click",c);r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n===!1};r.$formatters.push(function(n){return st(n,s)});r.$parsers.push(function(n){return n?s:h})}function fo(n,i){return n="ngClass"+n,["$animate",function(r){function f(n,t){var f=[],i,u,r;n:for(i=0;i<n.length;i++){for(u=n[i],r=0;r<t.length;r++)if(u==t[r])continue n;f.push(u)}return f}function u(n){var i=[];return c(n)?(t(n,function(n){i=i.concat(u(n))}),i):h(n)?n.split(" "):s(n)?(t(n,function(n,t){n&&(i=i.concat(t.split(" ")))}),i):n}return{restrict:"AC",link:function(e,o,s){function a(n){var t=l(n,1);s.$addClass(t)}function y(n){var t=l(n,-1);s.$removeClass(t)}function l(n,i){var r=o.data("$classCounts")||p(),u=[];return t(n,function(n){(i>0||r[n])&&(r[n]=(r[n]||0)+i,r[n]===+(i>0)&&u.push(n))}),o.data("$classCounts",r),u.join(" ")}function w(n,t){var i=f(t,n),u=f(n,t);i=l(i,1);u=l(u,-1);i&&i.length&&r.addClass(o,i);u&&u.length&&r.removeClass(o,u)}function v(n){var t,r;(i===!0||e.$index%2===i)&&(t=u(n||[]),h?st(n,h)||(r=u(h),w(r,t)):a(t));h=c(n)?n.map(function(n){return ot(n)}):ot(n)}var h;e.$watch(s[n],v,!0);s.$observe("class",function(){v(e.$eval(s[n]))});n!=="ngClass"&&e.$watch("$index",function(t,r){var o=t&1,f;o!==(r&1)&&(f=u(e.$eval(s[n])),o===i?a(f):y(f))})}}}]}function dl(n){function c(n,i,e){r(i)?l("$pending",n,e):a("$pending",n,e);oi(i)?i?(u(t.$error,n,e),o(t.$$success,n,e)):(o(t.$error,n,e),u(t.$$success,n,e)):(u(t.$error,n,e),u(t.$$success,n,e));t.$pending?(f(wl,!0),t.$valid=t.$invalid=undefined,s("",null)):(f(wl,!1),t.$valid=gl(t.$error),t.$invalid=!t.$valid,s("",t.$valid));var h;h=t.$pending&&t.$pending[n]?undefined:t.$error[n]?!1:t.$$success[n]?!0:null;s(n,h);t.$$parentForm.$setValidity(n,h,t)}function l(n,i,r){t[n]||(t[n]={});o(t[n],i,r)}function a(n,i,r){t[n]&&u(t[n],i,r);gl(t[n])&&(t[n]=undefined)}function f(n,t){t&&!i[n]?(h.addClass(e,n),i[n]=!0):!t&&i[n]&&(h.removeClass(e,n),i[n]=!1)}function s(n,t){n=n?"-"+us(n,"-"):"";f(fu+n,t===!0);f(yl+n,t===!1)}var t=n.ctrl,e=n.$element,i={},o=n.set,u=n.unset,h=n.$animate;i[yl]=!(i[fu]=e.hasClass(fu));t.$setValidity=c}function gl(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function sg(n){n[0].hasAttribute("selected")&&(n[0].selected=!0)}var ea=/^\/(.+)\/([a-z]*)$/,oo="validity",at=Object.prototype.hasOwnProperty,a=function(n){return h(n)?n.toLowerCase():n},tr=function(n){return h(n)?n.toUpperCase():n},oa=function(n){return h(n)?n.replace(/[A-Z]/g,function(n){return String.fromCharCode(n.charCodeAt(0)|32)}):n},sa=function(n){return h(n)?n.replace(/[a-z]/g,function(n){return String.fromCharCode(n.charCodeAt(0)&-33)}):n},c,yo,y,wf,ti,sr,ko,si,rs,gf,ss,as,hi,wr,ee,oe,d,tf,se,ih,he,ii,ah,it,gr,wh,of,i,sf,fc,dt,ht,sc,g,ke,gc,nl,il,tu,iu,to,ro;"i"!=="I".toLowerCase()&&(a=oa,tr=sa);var gt,e,bt,ir=[].slice,ha=[].splice,ca=[].push,rt=Object.prototype.toString,so=Object.getPrototypeOf,fi=l("ng"),ut=n.angular||(n.angular={}),vf,la=0;gt=n.document.documentMode;o.$inject=[];rr.$inject=[];c=Array.isArray;yo=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;y=function(n){return h(n)?n.trim():n};wf=function(n){return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};ti=function(){function r(){try{return new Function(""),!1}catch(n){return!0}}var i,t;return u(ti.rules)||(i=n.document.querySelector("[ng-csp]")||n.document.querySelector("[data-ng-csp]"),i?(t=i.getAttribute("ng-csp")||i.getAttribute("data-ng-csp"),ti.rules={noUnsafeEval:!t||t.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!t||t.indexOf("no-inline-style")!==-1}):ti.rules={noUnsafeEval:r(),noInlineStyle:!1}),ti.rules};sr=function(){if(u(sr.name_))return sr.name_;for(var r,e=si.length,i,f,t=0;t<e;++t)if(i=si[t],r=n.document.querySelector("["+i.replace(":","\\:")+"jq]")){f=r.getAttribute(i+"jq");break}return sr.name_=f};ko=/:/g;si=["ng-","data-ng-","ng:","x-ng-"];rs=/[A-Z]/g;gf=!1;var kt=1,uv=2,ki=3,au=8,es=9,ne=11;ss={full:"1.5.5",major:1,minor:5,dot:5,codeName:"material-conspiration"};b.expando="ng339";var ar=b.cache={},sv=1,vu=function(n,t,i){n.addEventListener(t,i,!1)},vr=function(n,t,i){n.removeEventListener(t,i,!1)};b._data=function(n){return this.cache[n[this.expando]]||{}};var cv=/([\:\-\_]+(.))/g,lv=/^moz([A-Z])/,yu={mouseleave:"mouseout",mouseenter:"mouseover"},te=l("jqLite");var av=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,vv=/<|&#?\w+;/,yv=/<([\w:-]+)/,pv=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,lt={option:[1,'<select multiple="multiple">',"<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};lt.optgroup=lt.option;lt.tbody=lt.tfoot=lt.colgroup=lt.caption=lt.thead;lt.th=lt.td;as=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)};hi=b.prototype={ready:function(t){function i(){r||(r=!0,t())}var r=!1;if(n.document.readyState==="complete")n.setTimeout(i);else{this.on("DOMContentLoaded",i);b(n).on("load",i)}},toString:function(){var n=[];return t(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return n>=0?e(this[n]):e(this[this.length+n])},length:0,push:ca,sort:[].sort,splice:[].splice};wr={};t("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(n){wr[a(n)]=n});ee={};t("input,select,option,textarea,button,form,details".split(","),function(n){ee[n]=!0});oe={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};t({data:ue,removeData:pr,hasData:wv,cleanData:bv},function(n,t){b[t]=n});t({data:ue,inheritedData:gu,scope:function(n){return e.data(n,"$scope")||gu(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return e.data(n,"$isolateScope")||e.data(n,"$isolateScopeNoTemplate")},controller:ys,injector:function(n){return gu(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:bu,css:function(n,t,i){if(t=yr(t),u(i))n.style[t]=i;else return n.style[t]},attr:function(n,t,i){var f=n.nodeType,r,e;if(f!==ki&&f!==uv&&f!==au)if(r=a(t),wr[r])if(u(i))i?(n[t]=!0,n.setAttribute(t,r)):(n[t]=!1,n.removeAttribute(r));else return n[t]||(n.attributes.getNamedItem(t)||o).specified?r:undefined;else if(u(i))n.setAttribute(t,i);else if(n.getAttribute)return e=n.getAttribute(t,2),e===null?undefined:e},prop:function(n,t,i){if(u(i))n[t]=i;else return n[t]},text:function(){function n(n,t){if(r(t)){var i=n.nodeType;return i===kt||i===ki?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,i){if(r(i)){if(n.multiple&&vt(n)==="select"){var u=[];return t(n.options,function(n){n.selected&&u.push(n.value||n.text)}),u.length===0?null:u}return n.value}n.value=i},html:function(n,t){if(r(t))return n.innerHTML;pu(n,!0);n.innerHTML=t},empty:ps},function(n,t){b.prototype[t]=function(t,i){var u,h,e=this.length,f,l,o,c;if(n!==ps&&r(n.length==2&&n!==bu&&n!==ys?t:i)){if(s(t)){for(u=0;u<e;u++)if(n===ue)n(this[u],t);else for(h in t)n(this[u],h,t[h]);return this}for(f=n.$dv,l=r(f)?Math.min(e,1):e,o=0;o<l;o++)c=n(this[o],t,i),f=f?f+c:c;return f}for(u=0;u<e;u++)n(this[u],t,i);return this}});t({removeData:pr,on:function(n,t,i,r){if(u(r))throw te("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(hs(n)){var f=wu(n,!0),e=f.events,o=f.handle;o||(o=f.handle=ny(n,e));for(var h=t.indexOf(" ")>=0?t.split(" "):[t],c=h.length,s=function(t,r,u){var f=e[t];f||(f=e[t]=[],f.specialHandlerWrapper=r,t==="$destroy"||u||vu(n,t,o));f.push(i)};c--;)t=h[c],yu[t]?(s(yu[t],iy),s(t,undefined,!0)):s(t)}},off:vs,one:function(n,t,i){n=e(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,i){var r,u=n.parentNode;pu(n);t(new b(i),function(t){r?u.insertBefore(t,r.nextSibling):u.replaceChild(t,n);r=t})},children:function(n){var i=[];return t(n.childNodes,function(n){n.nodeType===kt&&i.push(n)}),i},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){var r=n.nodeType,i,u,f;if(r===kt||r===ne)for(t=new b(t),i=0,u=t.length;i<u;i++)f=t[i],n.appendChild(f)},prepend:function(n,i){if(n.nodeType===kt){var r=n.firstChild;t(new b(i),function(t){n.insertBefore(t,r)})}},wrap:function(n,t){ls(n,e(t).eq(0).clone()[0])},remove:nf,detach:function(n){nf(n,!0)},after:function(n,t){var u=n,e=n.parentNode,i,f,r;for(t=new b(t),i=0,f=t.length;i<f;i++)r=t[i],e.insertBefore(r,u.nextSibling),u=r},addClass:du,removeClass:ku,toggleClass:function(n,i,u){i&&t(i.split(" "),function(t){var i=u;r(i)&&(i=!bu(n,t));(i?du:ku)(n,t)})},parent:function(n){var t=n.parentNode;return t&&t.nodeType!==ne?t:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:re,triggerHandler:function(n,i,r){var u,f,e,s=i.type||i,h=wu(n),c=h&&h.events,l=c&&c[s];l&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:o,type:s,target:n},i.type&&(u=v(u,i)),f=ot(l),e=r?[u].concat(r):[u],t(f,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){b.prototype[t]=function(t,i,f){for(var o,s=0,h=this.length;s<h;s++)r(o)?(o=n(this[s],t,i,f),u(o)&&(o=e(o))):fe(o,n(this[s],t,i,f));return u(o)?o:this};b.prototype.bind=b.prototype.on;b.prototype.unbind=b.prototype.off});di.prototype={put:function(n,t){this[ci(n,this.nextUid)]=t},get:function(n){return this[ci(n,this.nextUid)]},remove:function(n){var t=this[n=ci(n,this.nextUid)];return delete this[n],t}};var uy=[function(){this.$get=[function(){return di}]}],fy=/^([^\(]+?)=>/,ey=/^[^\(]*\(\s*([^\)]*)\)/m,oy=/,/,sy=/^\s*(_?)(\S+?)\1\s*$/,hy=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,li=l("$injector");br.$$annotate=ly;var ks=l("$animate"),vy=1,ds="ng-animate";var wy=function(){this.$get=o},by=function(){var n=new di,i=[];this.$get=["$$AnimateRunner","$rootScope",function(r,u){function f(n,i,r){var u=!1;return i&&(i=h(i)?i.split(" "):c(i)?i:[],t(i,function(t){t&&(u=!0,n[t]=r)})),u}function e(){t(i,function(i){var f=n.get(i);if(f){var e=py(i.attr("class")),r="",u="";t(f,function(n,t){var i=!!e[t];n!==i&&(n?r+=(r.length?" ":"")+t:u+=(u.length?" ":"")+t)});t(i,function(n){r&&du(n,r);u&&ku(n,u)});n.remove(i)}});i.length=0}function s(t,r,o){var s=n.get(t)||{},h=f(s,r,!0),c=f(s,o,!1);(h||c)&&(n.put(t,s),i.push(t),i.length===1&&u.$$postDigest(e))}return{enabled:o,on:o,off:o,pin:o,push:function(n,t,i,u){u&&u();i=i||{};i.from&&n.css(i.from);i.to&&n.css(i.to);(i.addClass||i.removeClass)&&s(n,i.addClass,i.removeClass);var f=new r;return f.complete(),f}}}]},ky=["$provide",function(n){var t=this;this.$$registeredAnimations=Object.create(null);this.register=function(i,r){if(i&&i.charAt(0)!==".")throw ks("notcsel","Expecting class selector starting with '.' got '{0}'.",i);var u=i+"-animation";t.$$registeredAnimations[i.substr(1)]=u;n.factory(u,r)};this.classNameFilter=function(n){if(arguments.length===1&&(this.$$classNameFilter=n instanceof RegExp?n:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+ds+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw ks("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',ds);}return this.$$classNameFilter};this.$get=["$$animateQueue",function(n){function t(n,t,i){if(i){var r=yy(i);!r||r.parentNode||r.previousElementSibling||(i=null)}i?i.after(n):t.prepend(n)}return{on:n.on,off:n.off,pin:n.pin,enabled:n.enabled,cancel:function(n){n.end&&n.end()},enter:function(i,r,u,f){return r=r&&e(r),u=u&&e(u),r=r||u.parent(),t(i,r,u),n.push(i,"enter",ai(f))},move:function(i,r,u,f){return r=r&&e(r),u=u&&e(u),r=r||u.parent(),t(i,r,u),n.push(i,"move",ai(f))},leave:function(t,i){return n.push(t,"leave",ai(i),function(){t.remove()})},addClass:function(t,i,r){return r=ai(r),r.addClass=kr(r.addclass,i),n.push(t,"addClass",r)},removeClass:function(t,i,r){return r=ai(r),r.removeClass=kr(r.removeClass,i),n.push(t,"removeClass",r)},setClass:function(t,i,r,u){return u=ai(u),u.addClass=kr(u.addClass,i),u.removeClass=kr(u.removeClass,r),n.push(t,"setClass",u)},animate:function(t,i,r,u,f){return f=ai(f),f.from=f.from?v(f.from,i):i,f.to=f.to?v(f.to,r):r,u=u||"ng-inline-animate",f.tempClasses=kr(f.tempClasses,u),n.push(t,"animate",f)}}}]}],dy=function(){this.$get=["$$rAF",function(n){function i(i){(t.push(i),t.length>1)||n(function(){for(var n=0;n<t.length;n++)t[n]();t=[]})}var t=[];return function(){var n=!1;return i(function(){n=!0}),function(t){n?t():i(t)}}}]},gy=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(n,i,r,u,f){function e(n){this.setHost(n);var t=r(),i=function(n){f(n,0,!1)};this._doneCallbacks=[];this._tick=function(n){var r=u[0];r&&r.hidden?i(n):t(n)};this._state=0}var h=0,c=1,s=2;return e.chain=function(n,t){function r(){if(i===n.length){t(!0);return}n[i](function(n){if(n===!1){t(!1);return}i++;r()})}var i=0;r()},e.all=function(n,i){function f(t){r=r&&t;++u===n.length&&i(r)}var u=0,r=!0;t(n,function(n){n.done(f)})},e.prototype={setHost:function(n){this.host=n||{}},done:function(n){this._state===s?n():this._doneCallbacks.push(n)},progress:o,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){t===!1?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(n){var t=this;t._state===h&&(t._state=c,t._tick(function(){t._resolve(n)}))},_resolve:function(n){this._state!==s&&(t(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=s)}},e}]},np=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(n,t,i){return function(t,r){function o(){return n(function(){s();e||f.complete();e=!0}),f}function s(){u.addClass&&(t.addClass(u.addClass),u.addClass=null);u.removeClass&&(t.removeClass(u.removeClass),u.removeClass=null);u.to&&(t.css(u.to),u.to=null)}var u=r||{},e,f;return u.$$prepared||(u=ni(u)),u.cleanupStyles&&(u.from=u.to=null),u.from&&(t.css(u.from),u.from=null),f=new i,{start:o,end:o}}}]};d=l("$compile");tf=new fp;gs.$inject=["$provide","$$sanitizeUriProvider"];rf.prototype.isFirstChange=function(){return this.previousValue===tf};se=/^((?:x|data)[\:\-_])/i;ih=l("$controller");he=/^(\S+)(\s+as\s+([\w$]+))?$/;var hp=function(){this.$get=["$document",function(n){return function(t){return t?!t.nodeType&&t instanceof e&&(t=t[0]):t=n[0].body,t.offsetWidth+1}}]},uh="application/json",ce={"Content-Type":uh+";charset=utf-8"},cp=/^\[|^\{(?!\{)/,lp={"[":/]$/,"{":/}$/},ap=/^\)\]\}',?\n/,vp=l("$http"),fh=function(n){return function(){throw vp("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",n);}};ii=ut.$interpolateMinErr=l("$interpolate");ii.throwNoconcat=function(n){throw ii("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",n);};ii.interr=function(n,t){return ii("interr","Can't interpolate: {0}\n{1}",n,t.toString())};var iw=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,rw={http:80,https:443,ftp:21},uf=l("$location");ah={$$html5:!1,$$replace:!1,absUrl:ff("$$absUrl"),url:function(n){if(r(n))return this.$$url;var t=iw.exec(n);return(t[1]||n==="")&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||n==="")&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:ff("$$protocol"),host:ff("$$host"),port:ff("$$port"),path:vh("$$path",function(n){return n=n!==null?n.toString():"",n.charAt(0)=="/"?n:"/"+n}),search:function(n,i){switch(arguments.length){case 0:return this.$$search;case 1:if(h(n)||w(n))n=n.toString(),this.$$search=ts(n);else if(s(n))n=ni(n,{}),t(n,function(t,i){t==null&&delete n[i]}),this.$$search=n;else throw uf("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");break;default:r(i)||i===null?delete this.$$search[n]:this.$$search[n]=i}return this.$$compose(),this},hash:vh("$$hash",function(n){return n!==null?n.toString():""}),replace:function(){return this.$$replace=!0,this}};t([lh,we,pe],function(n){n.prototype=Object.create(ah);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==pe||!this.$$html5)throw uf("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=r(t)?null:t,this}});it=l("$parse");var sw=Function.prototype.call,hw=Function.prototype.apply,cw=Function.prototype.bind;gr=p();t("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(n){gr[n]=!0});wh={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};of=function(n){this.options=n};of.prototype={constructor:of,lex:function(n){var t,r;for(this.text=n,this.index=0,this.tokens=[];this.index<this.text.length;)if(t=this.text.charAt(this.index),t==='"'||t==="'")this.readString(t);else if(this.isNumber(t)||t==="."&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var i=t+this.peek(),u=i+this.peek(2),o=gr[t],f=gr[i],e=gr[u];o||f||e?(r=e?u:f?i:t,this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(n,t){return t.indexOf(n)!==-1},peek:function(n){var t=n||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(n){return"0"<=n&&n<="9"&&typeof n=="string"},isWhitespace:function(n){return n===" "||n==="\r"||n==="\t"||n==="\n"||n==='\v'||n===" "},isIdentifierStart:function(n){return this.options.isIdentifierStart?this.options.isIdentifierStart(n,this.codePointAt(n)):this.isValidIdentifierStart(n)},isValidIdentifierStart:function(n){return"a"<=n&&n<="z"||"A"<=n&&n<="Z"||"_"===n||n==="$"},isIdentifierContinue:function(n){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(n,this.codePointAt(n)):this.isValidIdentifierContinue(n)},isValidIdentifierContinue:function(n,t){return this.isValidIdentifierStart(n,t)||this.isNumber(n)},codePointAt:function(n){return n.length===1?n.charCodeAt(0):(n.charCodeAt(0)<<10)+n.charCodeAt(1)-56613888},peekMultichar:function(){var n=this.text.charAt(this.index),t=this.peek(),i,r;return t?(i=n.charCodeAt(0),r=t.charCodeAt(0),i>=55296&&i<=56319&&r>=56320&&r<=57343)?n+t:n:n},isExpOperator:function(n){return n==="-"||n==="+"||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;var r=u(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw it("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",n,r,this.text);},readNumber:function(){for(var n="",r=this.index,t,i;this.index<this.text.length;){if(t=a(this.text.charAt(this.index)),t=="."||this.isNumber(t))n+=t;else if(i=this.peek(),t=="e"&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&n.charAt(n.length-1)=="e")n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||n.charAt(n.length-1)!="e")break;else this.throwError("Invalid exponent");this.index++}this.tokens.push({index:r,text:n,constant:!0,value:Number(n)})},readIdent:function(){var t=this.index,n;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){if(n=this.peekMultichar(),!this.isIdentifierContinue(n))break;this.index+=n.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(n){var f=this.index,t,r,o;this.index++;for(var i="",e=n,u=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),e+=t,u)t==="u"?(r=this.text.substring(this.index+1,this.index+5),r.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+r+"]"),this.index+=4,i+=String.fromCharCode(parseInt(r,16))):(o=wh[t],i=i+(o||t)),u=!1;else if(t==="\\")u=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:e,constant:!0,value:i});return}i+=t}this.index++}this.throwError("Unterminated quote",f)}};i=function(n,t){this.lexer=n;this.options=t};i.Program="Program";i.ExpressionStatement="ExpressionStatement";i.AssignmentExpression="AssignmentExpression";i.ConditionalExpression="ConditionalExpression";i.LogicalExpression="LogicalExpression";i.BinaryExpression="BinaryExpression";i.UnaryExpression="UnaryExpression";i.CallExpression="CallExpression";i.MemberExpression="MemberExpression";i.Identifier="Identifier";i.Literal="Literal";i.ArrayExpression="ArrayExpression";i.Property="Property";i.ObjectExpression="ObjectExpression";i.ThisExpression="ThisExpression";i.LocalsExpression="LocalsExpression";i.NGValueParameter="NGValueParameter";i.prototype={ast:function(n){this.text=n;this.tokens=this.lexer.lex(n);var t=this.program();return this.tokens.length!==0&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var n=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&n.push(this.expressionStatement()),!this.expect(";"))return{type:i.Program,body:n}},expressionStatement:function(){return{type:i.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var n=this.expression(),t;t=this.expect("|");)n=this.filter(n);return n},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary();return this.expect("=")&&(n={type:i.AssignmentExpression,left:n,right:this.assignment(),operator:"="}),n},ternary:function(){var n=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:i.ConditionalExpression,test:n,alternate:t,consequent:r}):n},logicalOR:function(){for(var n=this.logicalAND();this.expect("||");)n={type:i.LogicalExpression,operator:"||",left:n,right:this.logicalAND()};return n},logicalAND:function(){for(var n=this.equality();this.expect("&&");)n={type:i.LogicalExpression,operator:"&&",left:n,right:this.equality()};return n},equality:function(){for(var n=this.relational(),t;t=this.expect("==","!=","===","!==");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.relational()};return n},relational:function(){for(var n=this.additive(),t;t=this.expect("<",">","<=",">=");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.additive()};return n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.multiplicative()};return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.unary()};return n},unary:function(){var n;return(n=this.expect("+","-","!"))?{type:i.UnaryExpression,operator:n.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var n,t;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?n=ni(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?n={type:i.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?n=this.identifier():this.peek().constant?n=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)t.text==="("?(n={type:i.CallExpression,callee:n,arguments:this.parseArguments()},this.consume(")")):t.text==="["?(n={type:i.MemberExpression,object:n,property:this.expression(),computed:!0},this.consume("]")):t.text==="."?n={type:i.MemberExpression,object:n,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return n},filter:function(n){for(var t=[n],r={type:i.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return r},parseArguments:function(){var n=[];if(this.peekToken().text!==")")do n.push(this.expression());while(this.expect(","));return n},identifier:function(){var n=this.consume();return n.identifier||this.throwError("is not a valid identifier",n),{type:i.Identifier,name:n.text}},constant:function(){return{type:i.Literal,value:this.consume().value}},arrayDeclaration:function(){var n=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;n.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:i.ArrayExpression,elements:n}},object:function(){var t=[],n;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;n={type:i.Property,kind:"init"};this.peek().constant?n.key=this.constant():this.peek().identifier?n.key=this.identifier():this.throwError("invalid key",this.peek());this.consume(":");n.value=this.expression();t.push(n)}while(this.expect(","));return this.consume("}"),{type:i.ObjectExpression,properties:t}},throwError:function(n,t){throw it("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,n,t.index+1,this.text,this.text.substring(t.index));},consume:function(n){if(this.tokens.length===0)throw it("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(n);return t||this.throwError("is unexpected, expecting ["+n+"]",this.peek()),t},peekToken:function(){if(this.tokens.length===0)throw it("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(n,t,i,r){return this.peekAhead(0,n,t,i,r)},peekAhead:function(n,t,i,r,u){if(this.tokens.length>n){var e=this.tokens[n],f=e.text;if(f===t||f===i||f===r||f===u||!t&&!i&&!r&&!u)return e}return!1},expect:function(n,t,i,r){var u=this.peek(n,t,i,r);return u?(this.tokens.shift(),u):!1},selfReferential:{"this":{type:i.ThisExpression},$locals:{type:i.LocalsExpression}}};rc.prototype={compile:function(n,i){var r=this,u=this.astBuilder.ast(n),e,s,o,h,c,f;return this.state={nextId:0,filters:{},expensiveChecks:i,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},k(u,r.$filter),e="",this.stage="assign",(s=nc(u))&&(this.state.computing="assign",o=this.nextId(),this.recurse(s,o),this.return_(o),e="fn.assign="+this.generateFunction("assign","s,v,l")),h=dh(u.body),r.stage="inputs",t(h,function(n,t){var i="fn"+t,u;r.state[i]={vars:[],body:[],own:{}};r.state.computing=i;u=r.nextId();r.recurse(n,u);r.return_(u);r.state.inputs.push(i);n.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(u),c='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+e+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",c)(this.$filter,gi,ri,ph,yh,ef,lw,bh,n),this.state=this.stage=undefined,f.literal=tc(u),f.constant=ic(u),f},USE:"use",STRICT:"strict",watchFns:function(){var n=[],i=this.state.inputs,r=this;return t(i,function(t){n.push("var "+t+"="+r.generateFunction(t,"s"))}),i.length&&n.push("fn.inputs=["+i.join(",")+"];"),n.join("")},generateFunction:function(n,t){return"function("+t+"){"+this.varsPrefix(n)+this.body(n)+"};"},filterPrefix:function(){var n=[],i=this;return(t(this.state.filters,function(t,r){n.push(t+"=$filter("+i.escape(r)+")")}),n.length)?"var "+n.join(",")+";":""},varsPrefix:function(n){return this.state[n].vars.length?"var "+this.state[n].vars.join(",")+";":""},body:function(n){return this.state[n].body.join("")},recurse:function(n,r,f,e,s,h){var l,v,c=this,y,a;if(e=e||o,!h&&u(n.watchId)){r=r||this.nextId();this.if_("i",this.lazyAssign(r,this.computedMember("i",n.watchId)),this.lazyRecurse(n,r,f,e,s,!0));return}switch(n.type){case i.Program:t(n.body,function(t,i){c.recurse(t.expression,undefined,undefined,function(n){v=n});i!==n.body.length-1?c.current().body.push(v,";"):c.return_(v)});break;case i.Literal:a=this.escape(n.value);this.assign(r,a);e(a);break;case i.UnaryExpression:this.recurse(n.argument,undefined,undefined,function(n){v=n});a=n.operator+"("+this.ifDefined(v,0)+")";this.assign(r,a);e(a);break;case i.BinaryExpression:this.recurse(n.left,undefined,undefined,function(n){l=n});this.recurse(n.right,undefined,undefined,function(n){v=n});a=n.operator==="+"?this.plus(l,v):n.operator==="-"?this.ifDefined(l,0)+n.operator+this.ifDefined(v,0):"("+l+")"+n.operator+"("+v+")";this.assign(r,a);e(a);break;case i.LogicalExpression:r=r||this.nextId();c.recurse(n.left,r);c.if_(n.operator==="&&"?r:c.not(r),c.lazyRecurse(n.right,r));e(r);break;case i.ConditionalExpression:r=r||this.nextId();c.recurse(n.test,r);c.if_(r,c.lazyRecurse(n.alternate,r),c.lazyRecurse(n.consequent,r));e(r);break;case i.Identifier:r=r||this.nextId();f&&(f.context=c.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),f.computed=!1,f.name=n.name);gi(n.name);c.if_(c.stage==="inputs"||c.not(c.getHasOwnProperty("l",n.name)),function(){c.if_(c.stage==="inputs"||"s",function(){s&&s!==1&&c.if_(c.not(c.nonComputedMember("s",n.name)),c.lazyAssign(c.nonComputedMember("s",n.name),"{}"));c.assign(r,c.nonComputedMember("s",n.name))})},r&&c.lazyAssign(r,c.nonComputedMember("l",n.name)));(c.state.expensiveChecks||hf(n.name))&&c.addEnsureSafeObject(r);e(r);break;case i.MemberExpression:l=f&&(f.context=this.nextId())||this.nextId();r=r||this.nextId();c.recurse(n.object,l,undefined,function(){c.if_(c.notNull(l),function(){s&&s!==1&&c.addEnsureSafeAssignContext(l);n.computed?(v=c.nextId(),c.recurse(n.property,v),c.getStringValue(v),c.addEnsureSafeMemberName(v),s&&s!==1&&c.if_(c.not(c.computedMember(l,v)),c.lazyAssign(c.computedMember(l,v),"{}")),a=c.ensureSafeObject(c.computedMember(l,v)),c.assign(r,a),f&&(f.computed=!0,f.name=v)):(gi(n.property.name),s&&s!==1&&c.if_(c.not(c.nonComputedMember(l,n.property.name)),c.lazyAssign(c.nonComputedMember(l,n.property.name),"{}")),a=c.nonComputedMember(l,n.property.name),(c.state.expensiveChecks||hf(n.property.name))&&(a=c.ensureSafeObject(a)),c.assign(r,a),f&&(f.computed=!1,f.name=n.property.name))},function(){c.assign(r,"undefined")});e(r)},!!s);break;case i.CallExpression:r=r||this.nextId();n.filter?(v=c.filter(n.callee.name),y=[],t(n.arguments,function(n){var t=c.nextId();c.recurse(n,t);y.push(t)}),a=v+"("+y.join(",")+")",c.assign(r,a),e(r)):(v=c.nextId(),l={},y=[],c.recurse(n.callee,v,l,function(){c.if_(c.notNull(v),function(){c.addEnsureSafeFunction(v);t(n.arguments,function(n){c.recurse(n,c.nextId(),undefined,function(n){y.push(c.ensureSafeObject(n))})});l.name?(c.state.expensiveChecks||c.addEnsureSafeObject(l.context),a=c.member(l.context,l.name,l.computed)+"("+y.join(",")+")"):a=v+"("+y.join(",")+")";a=c.ensureSafeObject(a);c.assign(r,a)},function(){c.assign(r,"undefined")});e(r)}));break;case i.AssignmentExpression:if(v=this.nextId(),l={},!gh(n.left))throw it("lval","Trying to assign a value to a non l-value");this.recurse(n.left,undefined,l,function(){c.if_(c.notNull(l.context),function(){c.recurse(n.right,v);c.addEnsureSafeObject(c.member(l.context,l.name,l.computed));c.addEnsureSafeAssignContext(l.context);a=c.member(l.context,l.name,l.computed)+n.operator+v;c.assign(r,a);e(r||a)})},1);break;case i.ArrayExpression:y=[];t(n.elements,function(n){c.recurse(n,c.nextId(),undefined,function(n){y.push(n)})});a="["+y.join(",")+"]";this.assign(r,a);e(a);break;case i.ObjectExpression:y=[];t(n.properties,function(n){c.recurse(n.value,c.nextId(),undefined,function(t){y.push(c.escape(n.key.type===i.Identifier?n.key.name:""+n.key.value)+":"+t)})});a="{"+y.join(",")+"}";this.assign(r,a);e(a);break;case i.ThisExpression:this.assign(r,"s");e("s");break;case i.LocalsExpression:this.assign(r,"l");e("l");break;case i.NGValueParameter:this.assign(r,"v");e("v")}},getHasOwnProperty:function(n,t){var i=n+"."+t,r=this.current().own;return r.hasOwnProperty(i)||(r[i]=this.nextId(!1,n+"&&("+this.escape(t)+" in "+n+")")),r[i]},assign:function(n,t){if(n)return this.current().body.push(n,"=",t,";"),n},filter:function(n){return this.state.filters.hasOwnProperty(n)||(this.state.filters[n]=this.nextId(!0)),this.state.filters[n]},ifDefined:function(n,t){return"ifDefined("+n+","+this.escape(t)+")"},plus:function(n,t){return"plus("+n+","+t+")"},return_:function(n){this.current().body.push("return ",n,";")},if_:function(n,t,i){if(n===!0)t();else{var r=this.current().body;r.push("if(",n,"){");t();r.push("}");i&&(r.push("else{"),i(),r.push("}"))}},not:function(n){return"!("+n+")"},notNull:function(n){return n+"!=null"},nonComputedMember:function(n,t){return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(t)?n+"."+t:n+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(n,t){return n+"["+t+"]"},member:function(n,t,i){return i?this.computedMember(n,t):this.nonComputedMember(n,t)},addEnsureSafeObject:function(n){this.current().body.push(this.ensureSafeObject(n),";")},addEnsureSafeMemberName:function(n){this.current().body.push(this.ensureSafeMemberName(n),";")},addEnsureSafeFunction:function(n){this.current().body.push(this.ensureSafeFunction(n),";")},addEnsureSafeAssignContext:function(n){this.current().body.push(this.ensureSafeAssignContext(n),";")},ensureSafeObject:function(n){return"ensureSafeObject("+n+",text)"},ensureSafeMemberName:function(n){return"ensureSafeMemberName("+n+",text)"},ensureSafeFunction:function(n){return"ensureSafeFunction("+n+",text)"},getStringValue:function(n){this.assign(n,"getStringValue("+n+")")},ensureSafeAssignContext:function(n){return"ensureSafeAssignContext("+n+",text)"},lazyRecurse:function(n,t,i,r,u,f){var e=this;return function(){e.recurse(n,t,i,r,u,f)}},lazyAssign:function(n,t){var i=this;return function(){i.assign(n,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)},escape:function(n){if(h(n))return"'"+n.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(w(n))return n.toString();if(n===!0)return"true";if(n===!1)return"false";if(n===null)return"null";if(typeof n=="undefined")return"undefined";throw it("esc","IMPOSSIBLE");},nextId:function(n,t){var i="v"+this.state.nextId++;return n||this.current().vars.push(i+(t?"="+t:"")),i},current:function(){return this.state[this.state.computing]}};uc.prototype={compile:function(n,i){var s=this,r=this.astBuilder.ast(n),l,h,c,f,e,u;return this.expression=n,this.expensiveChecks=i,k(r,s.$filter),(l=nc(r))&&(h=this.recurse(l)),c=dh(r.body),c&&(f=[],t(c,function(n,t){var i=s.recurse(n);n.input=i;f.push(i);n.watchId=t})),e=[],t(r.body,function(n){e.push(s.recurse(n.expression))}),u=r.body.length===0?o:r.body.length===1?e[0]:function(n,i){var r;return t(e,function(t){r=t(n,i)}),r},h&&(u.assign=function(n,t,i){return h(n,i,t)}),f&&(u.inputs=f),u.literal=tc(r),u.constant=ic(r),u},recurse:function(n,r,u){var s,f,e=this,o;if(n.input)return this.inputs(n.input,n.watchId);switch(n.type){case i.Literal:return this.value(n.value,r);case i.UnaryExpression:return f=this.recurse(n.argument),this["unary"+n.operator](f,r);case i.BinaryExpression:return s=this.recurse(n.left),f=this.recurse(n.right),this["binary"+n.operator](s,f,r);case i.LogicalExpression:return s=this.recurse(n.left),f=this.recurse(n.right),this["binary"+n.operator](s,f,r);case i.ConditionalExpression:return this["ternary?:"](this.recurse(n.test),this.recurse(n.alternate),this.recurse(n.consequent),r);case i.Identifier:return gi(n.name,e.expression),e.identifier(n.name,e.expensiveChecks||hf(n.name),r,u,e.expression);case i.MemberExpression:return s=this.recurse(n.object,!1,!!u),n.computed||(gi(n.property.name,e.expression),f=n.property.name),n.computed&&(f=this.recurse(n.property)),n.computed?this.computedMember(s,f,r,u,e.expression):this.nonComputedMember(s,f,e.expensiveChecks,r,u,e.expression);case i.CallExpression:return o=[],t(n.arguments,function(n){o.push(e.recurse(n))}),n.filter&&(f=this.$filter(n.callee.name)),n.filter||(f=this.recurse(n.callee,!0)),n.filter?function(n,t,i,u){for(var s,h=[],e=0;e<o.length;++e)h.push(o[e](n,t,i,u));return s=f.apply(undefined,h,u),r?{context:undefined,name:undefined,value:s}:s}:function(n,t,i,u){var s=f(n,t,i,u),c,l,h;if(s.value!=null){for(ri(s.context,e.expression),ph(s.value,e.expression),l=[],h=0;h<o.length;++h)l.push(ri(o[h](n,t,i,u),e.expression));c=ri(s.value.apply(s.context,l),e.expression)}return r?{value:c}:c};case i.AssignmentExpression:return s=this.recurse(n.left,!0,1),f=this.recurse(n.right),function(n,t,i,u){var o=s(n,t,i,u),h=f(n,t,i,u);return ri(o.value,e.expression),ef(o.context),o.context[o.name]=h,r?{value:h}:h};case i.ArrayExpression:return o=[],t(n.elements,function(n){o.push(e.recurse(n))}),function(n,t,i,u){for(var f=[],e=0;e<o.length;++e)f.push(o[e](n,t,i,u));return r?{value:f}:f};case i.ObjectExpression:return o=[],t(n.properties,function(n){o.push({key:n.key.type===i.Identifier?n.key.name:""+n.key.value,value:e.recurse(n.value)})}),function(n,t,i,u){for(var e={},f=0;f<o.length;++f)e[o[f].key]=o[f].value(n,t,i,u);return r?{value:e}:e};case i.ThisExpression:return function(n){return r?{value:n}:n};case i.LocalsExpression:return function(n,t){return r?{value:t}:t};case i.NGValueParameter:return function(n,t,i){return r?{value:i}:i}}},"unary+":function(n,t){return function(i,r,f,e){var o=n(i,r,f,e);return o=u(o)?+o:0,t?{value:o}:o}},"unary-":function(n,t){return function(i,r,f,e){var o=n(i,r,f,e);return o=u(o)?-o:0,t?{value:o}:o}},"unary!":function(n,t){return function(i,r,u,f){var e=!n(i,r,u,f);return t?{value:e}:e}},"binary+":function(n,t,i){return function(r,u,f,e){var s=n(r,u,f,e),h=t(r,u,f,e),o=bh(s,h);return i?{value:o}:o}},"binary-":function(n,t,i){return function(r,f,e,o){var s=n(r,f,e,o),h=t(r,f,e,o),c=(u(s)?s:0)-(u(h)?h:0);return i?{value:c}:c}},"binary*":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)*t(r,u,f,e);return i?{value:o}:o}},"binary/":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)/t(r,u,f,e);return i?{value:o}:o}},"binary%":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)%t(r,u,f,e);return i?{value:o}:o}},"binary===":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)===t(r,u,f,e);return i?{value:o}:o}},"binary!==":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)!==t(r,u,f,e);return i?{value:o}:o}},"binary==":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)==t(r,u,f,e);return i?{value:o}:o}},"binary!=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)!=t(r,u,f,e);return i?{value:o}:o}},"binary<":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)<t(r,u,f,e);return i?{value:o}:o}},"binary>":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)>t(r,u,f,e);return i?{value:o}:o}},"binary<=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)<=t(r,u,f,e);return i?{value:o}:o}},"binary>=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)>=t(r,u,f,e);return i?{value:o}:o}},"binary&&":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)&&t(r,u,f,e);return i?{value:o}:o}},"binary||":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)||t(r,u,f,e);return i?{value:o}:o}},"ternary?:":function(n,t,i,r){return function(u,f,e,o){var s=n(u,f,e,o)?t(u,f,e,o):i(u,f,e,o);return r?{value:s}:s}},value:function(n,t){return function(){return t?{context:undefined,name:undefined,value:n}:n}},identifier:function(n,t,i,r,u){return function(f,e){var o=e&&n in e?e:f,s;return r&&r!==1&&o&&!o[n]&&(o[n]={}),s=o?o[n]:undefined,t&&ri(s,u),i?{context:o,name:n,value:s}:s}},computedMember:function(n,t,i,r,u){return function(f,e,o,s){var c=n(f,e,o,s),h,l;return c!=null&&(h=t(f,e,o,s),h=yh(h),gi(h,u),r&&r!==1&&(ef(c),c&&!c[h]&&(c[h]={})),l=c[h],ri(l,u)),i?{context:c,name:h,value:l}:l}},nonComputedMember:function(n,t,i,r,u,f){return function(e,o,s,h){var c=n(e,o,s,h),l;return u&&u!==1&&(ef(c),c&&!c[t]&&(c[t]={})),l=c!=null?c[t]:undefined,(i||hf(t))&&ri(l,f),r?{context:c,name:t,value:l}:l}},inputs:function(n,t){return function(i,r,u,f){return f?f[t]:n(i,r,u)}}};sf=function(n,t,r){this.lexer=n;this.$filter=t;this.options=r;this.ast=new i(n,r);this.astCompiler=r.csp?new uc(this.ast,t):new rc(this.ast,t)};sf.prototype={constructor:sf,parse:function(n){return this.astCompiler.compile(n,this.options.expensiveChecks)}};fc=Object.prototype.valueOf;dt=l("$sce");ht={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};sc=l("$compile");g=n.document.createElement("a");ke=ui(n.location.href);cc.$inject=["$document"];lc.$inject=["$provide"];var ac=22,vc=".",ge="0";yc.$inject=["$locale"];pc.$inject=["$locale"];var yb={yyyy:nt("FullYear",4,0,!1,!0),yy:nt("FullYear",2,0,!0,!0),y:nt("FullYear",1,0,!1,!0),MMMM:nu("Month"),MMM:nu("Month",!0),MM:nt("Month",2,1),M:nt("Month",1,1),LLLL:nu("Month",!1,!0),dd:nt("Date",2),d:nt("Date",1),HH:nt("Hours",2),H:nt("Hours",1),hh:nt("Hours",2,-12),h:nt("Hours",1,-12),mm:nt("Minutes",2),m:nt("Minutes",1),ss:nt("Seconds",2),s:nt("Seconds",1),sss:nt("Milliseconds",3),EEEE:nu("Day"),EEE:nu("Day",!0),a:ab,Z:cb,ww:kc(2),w:kc(1),G:no,GG:no,GGG:no,GGGG:vb},pb=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,wb=/^\-?\d+$/;dc.$inject=["$locale"];gc=ft(a);nl=ft(tr);tl.$inject=["$parse"];il=ft({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref)return function(n,t){if(t[0].nodeName.toLowerCase()==="a"){var i=rt.call(t.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}}});tu={};t(wr,function(n,t){function r(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}if(n!="multiple"){var i=pt("ng-"+t),u=r;n==="checked"&&(u=function(n,t,u){u.ngModel!==u[i]&&r(n,t,u)});tu[i]=function(){return{restrict:"A",priority:100,link:u}}}});t(oe,function(n,t){tu[t]=function(){return{priority:100,link:function(n,i,r){if(t==="ngPattern"&&r.ngPattern.charAt(0)=="/"){var u=r.ngPattern.match(ea);if(u){r.$set("ngPattern",new RegExp(u[1],u[2]));return}}n.$watch(r[t],function(n){r.$set(t,n)})}}}});t(["src","srcset","href"],function(n){var t=pt("ng-"+n);tu[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;n==="href"&&rt.call(r.prop("href"))==="[object SVGAnimatedString]"&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){if(!t){n==="href"&&u.$set(f,null);return}u.$set(f,t);gt&&e&&r.prop(e,u[f])})}}}});iu={$addControl:o,$$renameControl:db,$removeControl:o,$setValidity:o,$setDirty:o,$setPristine:o,$setSubmitted:o};to="ng-submitted";rl.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var ul=function(n){return["$timeout","$parse",function(t,i){function r(n){return n===""?i('this[""]').assign:i(n).assign||o}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:rl,compile:function(i,u){i.addClass(nr).addClass(fu);var f=u.name?"name":n&&u.ngForm?"ngForm":!1;return{pre:function(n,i,u,e){var s=e[0],c,l,h;if(!("action"in u)){c=function(t){n.$apply(function(){s.$commitViewValue();s.$setSubmitted()});t.preventDefault()};vu(i[0],"submit",c);i.on("$destroy",function(){t(function(){vr(i[0],"submit",c)},0,!1)})}l=e[1]||s.$$parentForm;l.$addControl(s);h=f?r(s.$name):o;f&&(h(n,s),u.$observe(f,function(t){s.$name!==t&&(h(n,undefined),s.$$parentForm.$$renameControl(s,t),h=r(s.$name),h(n,s))}));i.on("$destroy",function(){s.$$parentForm.$removeControl(s);h(n,undefined);v(s,iu)})}}}}}]},gb=ul(),nk=ul(!0),tk=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,ik=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,rk=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,uk=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,fl=/^(\d{4,})-(\d{2})-(\d{2})$/,el=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,io=/^(\d{4,})-W(\d\d)$/,ol=/^(\d{4,})-(\d\d)$/,sl=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,fk="keydown wheel mousedown",hl=p();t("date,datetime-local,month,time,week".split(","),function(n){hl[n]=!0});ro={text:ek,date:uu("date",fl,lf(fl,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":uu("datetimelocal",el,lf(el,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:uu("time",sl,lf(sl,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:uu("week",io,ok,"yyyy-Www"),month:uu("month",ol,lf(ol,["yyyy","MM"]),"yyyy-MM"),number:sk,url:hk,email:ck,radio:lk,checkbox:ak,hidden:o,button:o,submit:o,reset:o,file:o};var al=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(ro[a(e.type)]||ro.text)(u,f,e,o[0],t,n,i,r)}}}}],vk=/^(true|false|\d+)$/,yk=function(){return{restrict:"A",priority:100,compile:function(n,t){return vk.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},pk=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,i,u){n.$$addBindingInfo(i,u.ngBind);i=i[0];t.$watch(u.ngBind,function(n){i.textContent=r(n)?"":n})}}}}],wk=["$interpolate","$compile",function(n,t){return{compile:function(i){return t.$$addBindingClass(i),function(i,u,f){var e=n(u.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(u,e.expressions);u=u[0];f.$observe("ngBindTemplate",function(n){u.textContent=r(n)?"":n})}}}}],bk=["$sce","$parse","$compile",function(n,t,i){return{restrict:"A",compile:function(r,u){var f=t(u.ngBindHtml),e=t(u.ngBindHtml,function(n){return(n||"").toString()});return i.$$addBindingClass(r),function(t,r,u){i.$$addBindingInfo(r,u.ngBindHtml);t.$watch(e,function(){r.html(n.getTrustedHtml(f(t))||"")})}}}}],kk=ft({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}});var dk=fo("",!0),gk=fo("Odd",0),nd=fo("Even",1),td=pi({compile:function(n,t){t.$set("ngCloak",undefined);n.removeClass("ng-cloak")}}),id=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],vl={},rd={blur:!0,focus:!0};t("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=pt("ng-"+n);vl[t]=["$parse","$rootScope",function(i,r){return{restrict:"A",compile:function(u,f){var e=i(f[t],null,!0);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};rd[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var ud=["$animate","$compile",function(n,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.$$createComment("end ngIf",u.ngIf);h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=lu(h.clone),n.leave(o).then(function(){o=null}),h=null))})}}}],fd=["$templateRequest","$anchorScroll","$animate",function(n,t,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ut.noop,compile:function(r,f){var o=f.ngInclude||f.src,s=f.onload||"",e=f.autoscroll;return function(r,f,h,c,l){var p=0,a,v,y,w=function(){v&&(v.remove(),v=null);a&&(a.$destroy(),a=null);y&&(i.leave(y).then(function(){v=null}),v=y,y=null)};r.$watch(o,function(o){var v=function(){u(e)&&(!e||r.$eval(e))&&t()},h=++p;o?(n(o,!0).then(function(n){var t,u;r.$$destroyed||h===p&&(t=r.$new(),c.template=n,u=l(t,function(n){w();i.enter(n,null,f).then(v)}),a=t,y=u,a.$emit("$includeContentLoaded",o),r.$eval(s))},function(){r.$$destroyed||h===p&&(w(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(w(),c.template=null)})}}}}],ed=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){if(rt.call(r[0]).match(/SVG/)){r.empty();t(cs(f.template,n.document).childNodes)(i,function(n){r.append(n)},{futureParentElement:r});return}r.html(f.template);t(r.contents())(i)}}}],od=pi({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),sd=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,i,u,f){var e=i.attr(u.$attr.ngList)||", ",o=u.ngTrim!=="false",s=o?y(e):e,h=function(n){if(!r(n)){var i=[];return n&&t(n.split(s),function(n){n&&i.push(o?y(n):n)}),i}};f.$parsers.push(h);f.$formatters.push(function(n){return c(n)?n.join(e):undefined});f.$isEmpty=function(n){return!n||!n.length}}}},fu="ng-valid",yl="ng-invalid",nr="ng-pristine",af="ng-dirty",eo="ng-untouched",pl="ng-touched",wl="ng-pending",bl="ng-empty",kl="ng-not-empty",eu=l("ngModel"),hd=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(n,i,e,s,h,c,l,a,v,y){var d;this.$viewValue=Number.NaN;this.$modelValue=Number.NaN;this.$$rawModelValue=undefined;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=undefined;this.$name=y(e.name||"",!1)(n);this.$$parentForm=iu;var k=h(e.ngModel),tt=k.assign,nt=k,it=tt,g=null,b,p=this;this.$$setOptions=function(n){if(p.$options=n,n&&n.getterSetter){var t=h(e.ngModel+"()"),i=h(e.ngModel+"($$$p)");nt=function(n){var i=k(n);return f(i)&&(i=t(n)),i};it=function(n,t){f(k(n))?i(n,{$$$p:t}):tt(n,t)}}else if(!k.assign)throw eu("nonassign","Expression '{0}' is non-assignable. Element: {1}",e.ngModel,yt(s));};this.$render=o;this.$isEmpty=function(n){return r(n)||n===""||n===null||n!==n};this.$$updateEmptyClasses=function(n){p.$isEmpty(n)?(c.removeClass(s,kl),c.addClass(s,bl)):(c.removeClass(s,bl),c.addClass(s,kl))};d=0;dl({ctrl:this,$element:s,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]},$animate:c});this.$setPristine=function(){p.$dirty=!1;p.$pristine=!0;c.removeClass(s,af);c.addClass(s,nr)};this.$setDirty=function(){p.$dirty=!0;p.$pristine=!1;c.removeClass(s,nr);c.addClass(s,af);p.$$parentForm.$setDirty()};this.$setUntouched=function(){p.$touched=!1;p.$untouched=!0;c.setClass(s,eo,pl)};this.$setTouched=function(){p.$touched=!0;p.$untouched=!1;c.setClass(s,pl,eo)};this.$rollbackViewValue=function(){l.cancel(g);p.$viewValue=p.$$lastCommittedViewValue;p.$render()};this.$validate=function(){if(!w(p.$modelValue)||!isNaN(p.$modelValue)){var t=p.$$lastCommittedViewValue,n=p.$$rawModelValue,i=p.$valid,r=p.$modelValue,u=p.$options&&p.$options.allowInvalid;p.$$runValidators(n,t,function(t){u||i===t||(p.$modelValue=t?n:undefined,p.$modelValue!==r&&p.$$writeModelToScope())})}};this.$$runValidators=function(n,i,u){function h(){var n=p.$$parserName||"parse";if(r(b))f(n,null);else return b||(t(p.$validators,function(n,t){f(t,null)}),t(p.$asyncValidators,function(n,t){f(t,null)})),f(n,b),b;return!0}function c(){var r=!0;return(t(p.$validators,function(t,u){var e=t(n,i);r=r&&e;f(u,e)}),!r)?(t(p.$asyncValidators,function(n,t){f(t,null)}),!1):!0}function l(){var r=[],u=!0;t(p.$asyncValidators,function(t,e){var o=t(n,i);if(!su(o))throw eu("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",o);f(e,undefined);r.push(o.then(function(){f(e,!0)},function(){u=!1;f(e,!1)}))});r.length?v.all(r).then(function(){e(u)},o):e(!0)}function f(n,t){s===d&&p.$setValidity(n,t)}function e(n){s===d&&u(n)}d++;var s=d;if(!h()){e(!1);return}if(!c()){e(!1);return}l()};this.$commitViewValue=function(){var n=p.$viewValue;(l.cancel(g),p.$$lastCommittedViewValue!==n||n===""&&p.$$hasNativeValidators)&&(p.$$updateEmptyClasses(n),p.$$lastCommittedViewValue=n,p.$pristine&&this.$setDirty(),this.$$parseAndValidate())};this.$$parseAndValidate=function(){function e(){p.$modelValue!==f&&p.$$writeModelToScope()}var o=p.$$lastCommittedViewValue,t=o,i,f,u;if(b=r(t)?undefined:!0,b)for(i=0;i<p.$parsers.length;i++)if(t=p.$parsers[i](t),r(t)){b=!1;break}w(p.$modelValue)&&isNaN(p.$modelValue)&&(p.$modelValue=nt(n));f=p.$modelValue;u=p.$options&&p.$options.allowInvalid;p.$$rawModelValue=t;u&&(p.$modelValue=t,e());p.$$runValidators(t,p.$$lastCommittedViewValue,function(n){u||(p.$modelValue=n?t:undefined,e())})};this.$$writeModelToScope=function(){it(n,p.$modelValue);t(p.$viewChangeListeners,function(n){try{n()}catch(t){i(t)}})};this.$setViewValue=function(n,t){p.$viewValue=n;(!p.$options||p.$options.updateOnDefault)&&p.$$debounceViewValueCommit(t)};this.$$debounceViewValueCommit=function(t){var r=0,f=p.$options,i;f&&u(f.debounce)&&(i=f.debounce,w(i)?r=i:w(i[t])?r=i[t]:w(i["default"])&&(r=i["default"]));l.cancel(g);r?g=l(function(){p.$commitViewValue()},r):a.$$phase?p.$commitViewValue():n.$apply(function(){p.$commitViewValue()})};n.$watch(function(){var t=nt(n);if(t!==p.$modelValue&&(p.$modelValue===p.$modelValue||t===t)){p.$modelValue=p.$$rawModelValue=t;b=undefined;for(var r=p.$formatters,u=r.length,i=t;u--;)i=r[u](i);p.$viewValue!==i&&(p.$$updateEmptyClasses(i),p.$viewValue=p.$$lastCommittedViewValue=i,p.$render(),p.$$runValidators(t,i,o))}return t})}],cd=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:hd,priority:1,compile:function(t){return t.addClass(nr).addClass(eo).addClass(fu),{pre:function(n,t,i,r){var u=r[0],f=r[1]||u.$$parentForm;u.$$setOptions(r[2]&&r[2].$options);f.$addControl(u);i.$observe("name",function(n){u.$name!==n&&u.$$parentForm.$$renameControl(u,n)});n.$on("$destroy",function(){u.$$parentForm.$removeControl(u)})},post:function(t,i,r,u){var f=u[0];if(f.$options&&f.$options.updateOn)i.on(f.$options.updateOn,function(n){f.$$debounceViewValueCommit(n&&n.type)});i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(f.$setTouched):t.$apply(f.$setTouched))})}}}}}],ld=/(\s+|^)default(\s+|$)/,ad=function(){return{restrict:"A",controller:["$scope","$attrs",function(n,t){var i=this;this.$options=ni(n.$eval(t.ngModelOptions));u(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=y(this.$options.updateOn.replace(ld,function(){return i.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}};var vd=pi({terminal:!0,priority:1e3}),yd=l("ngOptions"),pd=/^\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]+?))?$/,wd=["$compile","$document","$parse",function(i,r,f){function h(n,t,i){function tt(n,t,i,r,u){this.selectValue=n;this.viewValue=t;this.label=i;this.group=r;this.disabled=u}function w(n){var t,i;if(!s&&ei(n))t=n;else{t=[];for(i in n)n.hasOwnProperty(i)&&i.charAt(0)!=="$"&&t.push(i)}return t}var r=n.match(pd);if(!r)throw yd("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",n,yt(t));var o=r[5]||r[7],s=r[6],l=/ as /.test(r[0])&&r[1],u=r[9],b=f(r[2]?r[1]:o),k=l&&f(l),d=k||b,g=u&&f(u),h=u?function(n,t){return g(i,t)}:function(n){return ci(n)},a=function(n,t){return h(n,c(n,t))},v=f(r[2]||r[1]),nt=f(r[3]||""),y=f(r[4]||""),p=f(r[8]),e={},c=s?function(n,t){return e[s]=t,e[o]=n,e}:function(n){return e[o]=n,e};return{trackBy:u,getTrackByValue:a,getWatchables:f(p,function(n){var u=[],f,o,t,a,p;for(n=n||[],f=w(n),o=f.length,t=0;t<o;t++){var s=n===f?t:f[t],l=n[s],e=c(l,s),b=h(l,e);u.push(b);(r[2]||r[1])&&(a=v(i,e),u.push(a));r[4]&&(p=y(i,e),u.push(p))}return u}),getOptions:function(){for(var o=[],r={},f=p(i)||[],e=w(f),g=e.length,t=0;t<g;t++){var s=f===e?t:e[t],it=f[s],n=c(it,s),l=d(i,n),b=h(l,n),rt=v(i,n),ft=nt(i,n),et=y(i,n),k=new tt(b,l,rt,ft,et);o.push(k);r[b]=k}return{items:o,selectValueMap:r,getOptionFromViewValue:function(n){return r[a(n)]},getViewValueFromOption:function(n){return u?ut.copy(n.viewValue):n.viewValue}}}}}function a(n,f,o,a){function ft(n,t){var i=s.cloneNode(!1);t.appendChild(i);lt(n,i)}function lt(n,t){n.element=t;t.disabled=n.disabled;n.label!==t.label&&(t.label=n.label,t.textContent=n.label);n.value!==t.value&&(t.value=n.selectValue)}function et(){var r=v&&b.readValue(),n,t,e,i,o;if(v)for(n=v.items.length-1;n>=0;n--)t=v.items[n],t.group?nf(t.element.parentNode):nf(t.element);v=w.getOptions();e={};k&&f.prepend(y);v.items.forEach(function(n){var t;u(n.group)?(t=e[n.group],t||(t=l.cloneNode(!1),tt.appendChild(t),t.label=n.group,e[n.group]=t),ft(n,t)):ft(n,tt)});f[0].appendChild(tt);p.$render();p.$isEmpty(r)||(i=b.readValue(),o=w.trackBy||ut,(o?st(r,i):r===i)||(p.$setViewValue(i),p.$render()))}for(var k,d,b=a[0],p=a[1],ut=o.multiple,y,g=0,nt=f.children(),ot=nt.length;g<ot;g++)if(nt[g].value===""){y=nt.eq(g);break}k=!!y;d=e(s.cloneNode(!1));d.val("?");var v,w=h(o.ngOptions,f,n),tt=r[0].createDocumentFragment(),ht=function(){k||f.prepend(y);f.val("");y.prop("selected",!0);y.attr("selected",!0)},it=function(){k||y.remove()},ct=function(){f.prepend(d);f.val("?");d.prop("selected",!0);d.attr("selected",!0)},rt=function(){d.remove()};ut?(p.$isEmpty=function(n){return!n||n.length===0},b.writeValue=function(n){v.items.forEach(function(n){n.element.selected=!1});n&&n.forEach(function(n){var t=v.getOptionFromViewValue(n);t&&(t.element.selected=!0)})},b.readValue=function(){var i=f.val()||[],n=[];return t(i,function(t){var i=v.selectValueMap[t];i&&!i.disabled&&n.push(v.getViewValueFromOption(i))}),n},w.trackBy&&n.$watchCollection(function(){if(c(p.$viewValue))return p.$viewValue.map(function(n){return w.getTrackByValue(n)})},function(){p.$render()})):(b.writeValue=function(n){var t=v.getOptionFromViewValue(n);t?(f[0].value!==t.selectValue&&(rt(),it(),f[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):n===null||k?(rt(),ht()):(it(),ct())},b.readValue=function(){var n=v.selectValueMap[f.val()];return n&&!n.disabled?(it(),rt(),v.getViewValueFromOption(n)):null},w.trackBy&&n.$watch(function(){return w.getTrackByValue(p.$viewValue)},function(){p.$render()}));k?(y.remove(),i(y)(n),y.removeClass("ng-scope")):y=e(s.cloneNode(!1));f.empty();et();n.$watchCollection(w.getWatchables,et)}var s=n.document.createElement("option"),l=n.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(n,t,i,r){r[0].registerOption=o},post:a}}}],bd=["$locale","$interpolate","$log",function(n,i,u){var f=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(s,h,c){function g(n){h.text(n||"")}var p=c.count,b=c.$attr.when&&h.attr(c.$attr.when),k=c.offset||0,v=s.$eval(b)||{},d={},nt=i.startSymbol(),tt=i.endSymbol(),it=nt+p+"-"+k+tt,y=ut.noop,l;t(c,function(n,t){var i=e.exec(t),r;i&&(r=(i[1]?"-":"")+a(i[2]),v[r]=h.attr(c.$attr[t]))});t(v,function(n,t){d[t]=i(n.replace(f,it))});s.$watch(p,function(t){var i=parseFloat(t),e=isNaN(i),f;e||i in v||(i=n.pluralCat(i-k));i===l||e&&w(l)&&isNaN(l)||(y(),f=d[i],r(f)?(t!=null&&u.debug("ngPluralize: no rule defined for '"+i+"' in "+b),y=o,g()):y=s.$watch(f,g),l=i)})}}}],kd=["$parse","$animate","$compile",function(n,i,r){var f="$$NG_REMOVED",u=l("ngRepeat"),e=function(n,t,i,r,u,f,e){n[i]=r;u&&(n[u]=f);n.$index=t;n.$first=t===0;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=(t&1)==0)},o=function(n){return n.clone[0]},s=function(n){return n.clone[n.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(h,c){var w=c.ngRepeat,rt=r.$$createComment("end ngRepeat",w),l=w.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),b,v,k,d,tt,it,y;if(!l)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",w);var g=l[1],ut=l[2],a=l[3],nt=l[4];if(l=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!l)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);if(b=l[3]||l[1],v=l[2],a&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(a)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(a)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",a);return y={$id:ci},nt?k=n(nt):(tt=function(n,t){return ci(t)},it=function(n){return n}),function(n,r,h,c,l){k&&(d=function(t,i,r){return v&&(y[v]=t),y[b]=i,y.$index=r,k(n,y)});var g=p();n.$watchCollection(ut,function(h){var c,pt,st=r[0],ft,ht=p(),et,ut,ot,k,yt,nt,y,ct,lt,vt,wt;if(a&&(n[a]=h),ei(h))nt=h,yt=d||tt;else{yt=d||it;nt=[];for(vt in h)at.call(h,vt)&&vt.charAt(0)!=="$"&&nt.push(vt)}for(et=nt.length,ct=new Array(et),c=0;c<et;c++)if(ut=h===nt?c:nt[c],ot=h[ut],k=yt(ut,ot,c),g[k])y=g[k],delete g[k],ht[k]=y,ct[c]=y;else if(ht[k]){t(ct,function(n){n&&n.scope&&(g[n.id]=n)});throw u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",w,k,ot);}else ct[c]={id:k,scope:undefined,clone:undefined},ht[k]=!0;for(wt in g){if(y=g[wt],lt=lu(y.clone),i.leave(lt),lt[0].parentNode)for(c=0,pt=lt.length;c<pt;c++)lt[c][f]=!0;y.scope.$destroy()}for(c=0;c<et;c++)if(ut=h===nt?c:nt[c],ot=h[ut],y=ct[c],y.scope){ft=st;do ft=ft.nextSibling;while(ft&&ft[f]);o(y)!=ft&&i.move(lu(y.clone),null,st);st=s(y);e(y.scope,c,b,ot,v,ut,et)}else l(function(n,t){y.scope=t;var r=rt.cloneNode(!1);n[n.length++]=r;i.enter(n,null,st);st=r;y.clone=n;ht[y.id]=y;e(y.scope,c,b,ot,v,ut,et)});g=ht})}}}}],na="ng-hide",ta="ng-hide-animate",dd=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,na,{tempClasses:ta})})}}}],gd=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,na,{tempClasses:ta})})}}}],ng=pi(function(n,i,r){n.$watch(r.ngStyle,function(n,r){r&&n!==r&&t(r,function(n,t){i.css(t,"")});n&&i.css(n)},!0)}),tg=["$animate","$compile",function(n,i){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(r,u,f,e){var l=f.ngSwitch||f.on,c=[],h=[],o=[],s=[],a=function(n,t){return function(){n.splice(t,1)}};r.$watch(l,function(r){for(var l,v,u=0,f=o.length;u<f;++u)n.cancel(o[u]);for(o.length=0,u=0,f=s.length;u<f;++u)l=lu(h[u].clone),s[u].$destroy(),v=o[u]=n.leave(l),v.then(a(o,u));h.length=0;s.length=0;(c=e.cases["!"+r]||e.cases["?"])&&t(c,function(t){t.transclude(function(r,u){var f,e;s.push(u);f=t.element;r[r.length++]=i.$$createComment("end ngSwitchWhen");e={clone:r};h.push(e);n.enter(r,f.parent(),f)})})})}}}],ig=pi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),rg=pi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),ug=l("ngTransclude"),fg=pi({restrict:"EAC",link:function(n,t,i,r,u){function f(n){n.length&&(t.empty(),t.append(n))}if(i.ngTransclude===i.$attr.ngTransclude&&(i.ngTransclude=""),!u)throw ug("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",yt(t));var e=i.ngTransclude||i.ngTranscludeSlot;u(f,null,e)}}),eg=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){if(i.type=="text/ng-template"){var r=i.id,u=t[0].text;n.put(r,u)}}}}],og={$setViewValue:o,$render:o};var hg=["$element","$scope",function(t,i){var r=this,f=new di;r.ngModelCtrl=og;r.unknownOption=e(n.document.createElement("option"));r.renderUnknownOption=function(n){var i="? "+ci(n)+" ?";r.unknownOption.val(i);t.prepend(r.unknownOption);t.val(i)};i.$on("$destroy",function(){r.renderUnknownOption=o});r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()};r.readValue=function(){return r.removeUnknownOption(),t.val()};r.writeValue=function(n){r.hasOption(n)?(r.removeUnknownOption(),t.val(n),n===""&&r.emptyOption.prop("selected",!0)):n==null&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(n)};r.addOption=function(n,t){if(t[0].nodeType!==au){bi(n,'"option value"');n===""&&(r.emptyOption=t);var i=f.get(n)||0;f.put(n,i+1);r.ngModelCtrl.$render();sg(t)}};r.removeOption=function(n){var t=f.get(n);t&&(t===1?(f.remove(n),n===""&&(r.emptyOption=undefined)):f.put(n,t-1))};r.hasOption=function(n){return!!f.get(n)};r.registerOption=function(n,t,i,f,e){if(f){var o;i.$observe("value",function(n){u(o)&&r.removeOption(o);o=n;r.addOption(n,t)})}else e?n.$watch(e,function(n,u){i.$set("value",n);u!==n&&r.removeOption(u);r.addOption(n,t)}):r.addOption(i.value,t);t.on("$destroy",function(){r.removeOption(i.value);r.ngModelCtrl.$render()})}}],cg=function(){function n(n,i,r,f){var e=f[1],o,h,s;if(e){o=f[0];o.ngModelCtrl=e;i.on("change",function(){n.$apply(function(){e.$setViewValue(o.readValue())})});r.multiple&&(o.readValue=function(){var n=[];return t(i.find("option"),function(t){t.selected&&n.push(t.value)}),n},o.writeValue=function(n){var r=new di(n);t(i.find("option"),function(n){n.selected=u(r.get(n.value))})},s=NaN,n.$watch(function(){s!==e.$viewValue||st(h,e.$viewValue)||(h=ot(e.$viewValue),e.$render());s=e.$viewValue}),e.$isEmpty=function(n){return!n||n.length===0})}}function i(n,t,i,r){var u=r[1],f;u&&(f=r[0],u.$render=function(){f.writeValue(u.$viewValue)})}return{restrict:"E",require:["select","?ngModel"],controller:hg,priority:1,link:{pre:n,post:i}}},lg=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,i){var f,r;return u(i.value)?f=n(i.value,!0):(r=n(t.text(),!0),r||i.$set("value",t.text())),function(n,t,i){var u="$selectController",e=t.parent(),o=e.data(u)||e.parent().data(u);o&&o.registerOption(n,t,i,f,r)}}}}],ag=ft({restrict:"E",terminal:!1}),ia=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){r&&(i.required=!0,r.$validators.required=function(n,t){return!i.required||!r.$isEmpty(t)},i.$observe("required",function(){r.$validate()}))}}},ra=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,u){if(u){var f,e=i.ngPattern||i.pattern;i.$observe("pattern",function(n){if(h(n)&&n.length>0&&(n=new RegExp("^"+n+"$")),n&&!n.test)throw l("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,n,yt(t));f=n||undefined;u.$validate()});u.$validators.pattern=function(n,t){return u.$isEmpty(t)||r(f)||f.test(t)}}}}},ua=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=-1;i.$observe("maxlength",function(n){var t=tt(n);u=isNaN(t)?-1:t;r.$validate()});r.$validators.maxlength=function(n,t){return u<0||r.$isEmpty(t)||t.length<=u}}}}},fa=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("minlength",function(n){u=tt(n)||0;r.$validate()});r.$validators.minlength=function(n,t){return r.$isEmpty(t)||t.length>=u}}}}};if(n.angular.bootstrap){n.console&&console.log("WARNING: Tried to load angular more than once.");return}rv();ov(ut);ut.module("ngLocale",[],["$provide",function(n){function i(n){n=n+"";var t=n.indexOf(".");return t==-1?0:n.length-t-1}function r(n,t){var r=t,u,f;return undefined===r&&(r=Math.min(i(n),3)),u=Math.pow(10,r),f=(n*u|0)%u,{v:r,f:f}}var t={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};n.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],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:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(n,i){var u=n|0,f=r(n,i);return u==1&&f.v==0?t.ONE:t.OTHER}})}]);e(n.document).ready(function(){nv(n.document,is)})})(window);window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}<\/style>');
/*!
 * @license AngularJS v1.5.5
 * (c) 2010-2016 Google, Inc. http://angularjs.org
 * License: MIT
 */
(function(n,t){"use strict";function e(){function i(n,i){return t.extend(Object.create(n),i)}function r(n,t){var r=t.caseInsensitiveMatch,i={originalPath:n,regexp:n},u=i.keys=[];return n=n.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(n,t,i,r){var f=r==="?"||r==="*?"?"?":null,e=r==="*"||r==="*?"?"*":null;return u.push({name:i,optional:!!f}),t=t||"",""+(f?"":t)+"(?:"+(f?t:"")+(e&&"(.+?)"||"([^/]+)")+(f||"")+")"+(f||"")}).replace(/([\/$\*])/g,"\\$1"),i.regexp=new RegExp("^"+n+"$",r?"i":""),i}var n={};this.when=function(i,u){var f=t.copy(u),e;return t.isUndefined(f.reloadOnSearch)&&(f.reloadOnSearch=!0),t.isUndefined(f.caseInsensitiveMatch)&&(f.caseInsensitiveMatch=this.caseInsensitiveMatch),n[i]=t.extend(f,i&&r(i,f)),i&&(e=i[i.length-1]=="/"?i.substr(0,i.length-1):i+"/",n[e]=t.extend({redirectTo:i},r(e,f))),this};this.caseInsensitiveMatch=!1;this.otherwise=function(n){return typeof n=="string"&&(n={redirectTo:n}),this.when(null,n),this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(r,u,e,o,s,h,c){function k(n,t){var s=t.keys,e={},r,i,o,u,f;if(!t.regexp||(r=t.regexp.exec(n),!r))return null;for(i=1,o=r.length;i<o;++i)u=s[i-1],f=r[i],u&&f&&(e[u.name]=f);return e}function p(n){var i=a.current;l=d();y=l&&i&&l.$$route===i.$$route&&t.equals(l.pathParams,i.pathParams)&&!l.reloadOnSearch&&!v;!y&&(i||l)&&r.$broadcast("$routeChangeStart",l,i).defaultPrevented&&n&&n.preventDefault()}function w(){var i=a.current,n=l;y?(i.params=n.params,t.copy(i.params,e),r.$broadcast("$routeUpdate",i)):(n||i)&&(v=!1,a.current=n,n&&n.redirectTo&&(t.isString(n.redirectTo)?u.path(b(n.redirectTo,n.params)).search(n.params).replace():u.url(n.redirectTo(n.pathParams,u.path(),u.search())).replace()),o.when(n).then(function(){if(n){var u=t.extend({},n.resolve),i,r;return t.forEach(u,function(n,i){u[i]=t.isString(n)?s.get(n):s.invoke(n,null,null,i)}),t.isDefined(i=n.template)?t.isFunction(i)&&(i=i(n.params)):t.isDefined(r=n.templateUrl)&&(t.isFunction(r)&&(r=r(n.params)),t.isDefined(r)&&(n.loadedTemplateUrl=c.valueOf(r),i=h(r))),t.isDefined(i)&&(u.$template=i),o.all(u)}}).then(function(u){n==a.current&&(n&&(n.locals=u,t.copy(n.params,e)),r.$broadcast("$routeChangeSuccess",n,i))},function(t){n==a.current&&r.$broadcast("$routeChangeError",n,i,t)}))}function d(){var f,r;return t.forEach(n,function(n){!r&&(f=k(u.path(),n))&&(r=i(n,{params:t.extend({},u.search(),f),pathParams:f}),r.$$route=n)}),r||n[null]&&i(n[null],{params:{},pathParams:{}})}function b(n,i){var r=[];return t.forEach((n||"").split(":"),function(n,t){if(t===0)r.push(n);else{var u=n.match(/(\w+)(?:[?*])?(.*)/),f=u[1];r.push(i[f]);r.push(u[2]||"");delete i[f]}}),r.join("")}var v=!1,l,y,a={routes:n,reload:function(){v=!0;var n={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0;v=!1}};r.$evalAsync(function(){p(n);n.defaultPrevented||w()})},updateParams:function(n){if(this.current&&this.current.$$route)n=t.extend({},this.current.params,n),u.path(b(this.current.$$route.originalPath,n)),u.search(n);else throw f("norout","Tried updating route when with no current route");}};return r.$on("$locationChangeStart",p),r.$on("$locationChangeSuccess",w),a}]}function o(){this.$get=function(){return{}}}function r(n,i,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(u,f,e,o,s){function v(){c&&(r.cancel(c),c=null);h&&(h.$destroy(),h=null);l&&(c=r.leave(l),c.then(function(){c=null}),l=null)}function y(){var e=n.current&&n.current.locals,c=e&&e.$template;if(t.isDefined(c)){var o=u.$new(),y=n.current,w=s(o,function(n){r.enter(n,null,l||f).then(function(){t.isDefined(a)&&(!a||u.$eval(a))&&i()});v()});l=w;h=y.scope=o;h.$emit("$viewContentLoaded");h.$eval(p)}else v()}var h,l,c,a=e.autoscroll,p=e.onload||"";u.$on("$routeChangeSuccess",y);y()}}}function u(n,t,i){return{restrict:"ECA",priority:-400,link:function(r,u){var f=i.current,e=f.locals,s,o;u.html(e.$template);s=n(u.contents());f.controller&&(e.$scope=r,o=t(f.controller,e),f.controllerAs&&(r[f.controllerAs]=o),u.data("$ngControllerController",o),u.children().data("$ngControllerController",o));r[f.resolveAs||"$resolve"]=e;s(r)}}}var i=t.module("ngRoute",["ng"]).provider("$route",e),f=t.$$minErr("ngRoute");i.provider("$routeParams",o);i.directive("ngView",r);i.directive("ngView",u);r.$inject=["$route","$anchorScroll","$animate"];u.$inject=["$compile","$controller","$route"]})(window,window.angular);
/*!
 * @license AngularJS v1.5.5
 * (c) 2010-2016 Google, Inc. http://angularjs.org
 * License: MIT
 */
(function(n,t){"use strict";function i(n,i,r){function e(n,r,f){var s,e,o,h;return f=f||{},e=f.expires,s=t.isDefined(f.path)?f.path:u,t.isUndefined(r)&&(e="Thu, 01 Jan 1970 00:00:00 GMT",r=""),t.isString(e)&&(e=new Date(e)),o=encodeURIComponent(n)+"="+encodeURIComponent(r),o+=s?";path="+s:"",o+=f.domain?";domain="+f.domain:"",o+=e?";expires="+e.toUTCString():"",o+=f.secure?";secure":"",h=o.length+1,h>4096&&i.warn("Cookie '"+n+"' possibly not set or overflowed because it was too large ("+h+" > 4096 bytes)!"),o}var u=r.baseHref(),f=n[0];return function(n,t,i){f.cookie=e(n,t,i)}}t.module("ngCookies",["ng"]).provider("$cookies",[function(){function i(i){return i?t.extend({},n,i):n}var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,r){return{get:function(t){return n()[t]},getObject:function(n){var i=this.get(n);return i?t.fromJson(i):i},getAll:function(){return n()},put:function(n,t,u){r(n,t,i(u))},putObject:function(n,i,r){this.put(n,t.toJson(i),r)},remove:function(n,t){r(n,undefined,i(t))}}}]}]);t.module("ngCookies").factory("$cookieStore",["$cookies",function(n){return{get:function(t){return n.getObject(t)},put:function(t,i){n.putObject(t,i)},remove:function(t){n.remove(t)}}}]);i.$inject=["$document","$log","$browser"];t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=i})})(window,window.angular);
/*!
 * @license AngularJS v1.5.5
 * (c) 2010-2016 Google, Inc. http://angularjs.org
 * License: MIT
 */
(function(n,t){"use strict";function f(){function i(t,i,u,f){return function(e,o,s){var h=s.$normalize(i);!n[h]||r(o,u)||s[h]||e.$watch(s[t],function(n){n=f?!n:!!n;o.attr(i,n)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(i){n=t.extend(n,i)};this.$get=function(){return{config:function(t){return n[t]},$$watchExpr:i}}}var u=t.module("ngAria",["ng"]).provider("$aria",f),i=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],r=function(n,t){if(t.indexOf(n[0].nodeName)!==-1)return!0};u.directive("ngShow",["$aria",function(n){return n.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(n){return n.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(n){return n.$$watchExpr("ngValue","aria-checked",i,!1)}]).directive("ngChecked",["$aria",function(n){return n.$$watchExpr("ngChecked","aria-checked",i,!1)}]).directive("ngReadonly",["$aria",function(n){return n.$$watchExpr("ngReadonly","aria-readonly",i,!1)}]).directive("ngRequired",["$aria",function(n){return n.$$watchExpr("ngRequired","aria-required",i,!1)}]).directive("ngModel",["$aria",function(n){function t(t,u,f,e){return n.config(u)&&!f.attr(t)&&(e||!r(f,i))}function u(n,t){return!t.attr("role")&&t.attr("type")===n&&t[0].nodeName!=="INPUT"}function f(n){var i=n.type,t=n.role;return(i||t)==="checkbox"||t==="menuitemcheckbox"?"checkbox":(i||t)==="radio"||t==="menuitemradio"?"radio":i==="range"||t==="progressbar"||t==="slider"?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(i,r){var e=f(r,i);return{pre:function(n,t,i,r){e==="checkbox"&&(r.$isEmpty=function(n){return n===!1})},post:function(i,r,f,o){function h(){return o.$modelValue}function c(){var n=f.value==o.$viewValue;r.attr("aria-checked",n)}function l(){r.attr("aria-checked",!o.$isEmpty(o.$viewValue))}var s=t("tabindex","tabindex",r,!1);switch(e){case"radio":case"checkbox":u(e,r)&&r.attr("role",e);t("aria-checked","ariaChecked",r,!1)&&i.$watch(h,e==="radio"?c:l);s&&r.attr("tabindex",0);break;case"range":if(u(e,r)&&r.attr("role","slider"),n.config("ariaValue")){var a=!r.attr("aria-valuemin")&&(f.hasOwnProperty("min")||f.hasOwnProperty("ngMin")),v=!r.attr("aria-valuemax")&&(f.hasOwnProperty("max")||f.hasOwnProperty("ngMax")),y=!r.attr("aria-valuenow");a&&f.$observe("min",function(n){r.attr("aria-valuemin",n)});v&&f.$observe("max",function(n){r.attr("aria-valuemax",n)});y&&i.$watch(h,function(n){r.attr("aria-valuenow",n)})}s&&r.attr("tabindex",0)}!f.hasOwnProperty("ngRequired")&&o.$validators.required&&t("aria-required","ariaRequired",r,!1)&&f.$observe("required",function(){r.attr("aria-required",!!f.required)});t("aria-invalid","ariaInvalid",r,!0)&&i.$watch(function(){return o.$invalid},function(n){r.attr("aria-invalid",!!n)})}}}}}]).directive("ngDisabled",["$aria",function(n){return n.$$watchExpr("ngDisabled","aria-disabled",i,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(n,t){t.attr("aria-live")||t.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(n,t){return{restrict:"A",compile:function(u,f){var e=t(f.ngClick,null,!0);return function(t,u,f){if(!r(u,i)&&(n.config("bindRoleForClick")&&!u.attr("role")&&u.attr("role","button"),n.config("tabindex")&&!u.attr("tabindex")&&u.attr("tabindex",0),n.config("bindKeypress")&&!f.ngKeypress))u.on("keypress",function(n){function r(){e(t,{$event:n})}var i=n.which||n.keyCode;(i===32||i===13)&&t.$apply(r)})}}}}]).directive("ngDblclick",["$aria",function(n){return function(t,u){!n.config("tabindex")||u.attr("tabindex")||r(u,i)||u.attr("tabindex",0)}}])})(window,window.angular);
/**
 * @license AngularJS v1.5.5
 * (c) 2010-2016 Google, Inc. http://angularjs.org
 * License: MIT
 */
(function(n,t){"use strict";function v(){var n=!1;this.$get=["$$sanitizeUri",function(i){return n&&t.extend(u,g),function(n){var t=[];return ut(n,a(t,function(n,t){return!/^unsafe:/.test(i(n,t))})),t.join("")}}];this.enableSvg=function(i){return t.isDefined(i)?(n=i,this):n}}function y(n){var i=[],r=a(i,t.noop);return r.chars(n),i.join("")}function r(n,i){for(var f={},u=n.split(","),r=0;r<u.length;r++)f[i?t.lowercase(u[r]):u[r]]=!0;return f}function ut(t,r){var s,u,o;t===null||t===undefined?t="":typeof t!="string"&&(t=""+t);i.innerHTML=t;s=5;do{if(s===0)throw e("uinput","Failed to sanitize html because the input is unstable");s--;n.document.documentMode&&f(i);t=i.innerHTML;i.innerHTML=t}while(t!==i.innerHTML);for(u=i.firstChild;u;){switch(u.nodeType){case 1:r.start(u.nodeName.toLowerCase(),ft(u.attributes));break;case 3:r.chars(u.textContent)}if(!(o=u.firstChild)&&(u.nodeType==1&&r.end(u.nodeName.toLowerCase()),o=u.nextSibling,!o))while(o==null){if(u=u.parentNode,u===i)break;o=u.nextSibling;u.nodeType==1&&r.end(u.nodeName.toLowerCase())}u=o}while(u=i.firstChild)i.removeChild(u)}function ft(n){for(var i,r={},t=0,u=n.length;t<u;t++)i=n[t],r[i.name]=i.value;return r}function l(n){return n.replace(/&/g,"&amp;").replace(p,function(n){var t=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((t-55296)*1024+(i-56320)+65536)+";"}).replace(w,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function a(n,i){var f=!1,r=t.bind(n,n.push);return{start:function(n,e){n=t.lowercase(n);!f&&nt[n]&&(f=n);f||u[n]!==!0||(r("<"),r(n),t.forEach(e,function(u,f){var e=t.lowercase(f),o=n==="img"&&e==="src"||e==="background";rt[e]===!0&&(c[e]!==!0||i(u,o))&&(r(" "),r(f),r('="'),r(l(u)),r('"'))}),r(">"))},end:function(n){n=t.lowercase(n);f||u[n]!==!0||o[n]===!0||(r("<\/"),r(n),r(">"));n==f&&(f=!1)},chars:function(n){f||r(l(n))}}}function f(t){var u,r,e,o,s,i;if(t.nodeType===n.Node.ELEMENT_NODE)for(u=t.attributes,r=0,e=u.length;r<e;r++)o=u[r],s=o.name.toLowerCase(),(s==="xmlns:ns1"||s.indexOf("ns1:")===0)&&(t.removeAttributeNode(o),r--,e--);i=t.firstChild;i&&f(i);i=t.nextSibling;i&&f(i)}var e=t.$$minErr("$sanitize"),p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,w=/([^\#-~ |!])/g,o=r("area,br,col,hr,img,wbr"),s=r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),h=r("rp,rt"),b=t.extend({},h,s),k=t.extend({},s,r("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),d=t.extend({},h,r("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),g=r("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"),nt=r("script,style"),u=t.extend({},o,k,d,b),c=r("background,cite,href,longdesc,src,xlink:href"),tt=r("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),it=r("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),rt=t.extend({},c,it,tt),i;(function(n){var t,f,r,u;if(n.document&&n.document.implementation)t=n.document.implementation.createHTMLDocument("inert");else throw e("noinert","Can't create an inert html document");f=t.documentElement||t.getDocumentElement();r=f.getElementsByTagName("body");r.length===1?i=r[0]:(u=t.createElement("html"),i=t.createElement("body"),u.appendChild(i),t.appendChild(u))})(n);t.module("ngSanitize",[]).provider("$sanitize",v);t.module("ngSanitize").filter("linky",["$sanitize",function(n){var i=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,r=/^mailto:/i,u=t.$$minErr("linky"),f=t.isString;return function(e,o,s){function p(n){n&&c.push(y(n))}function w(n,i){var r;if(c.push("<a "),t.isFunction(s)&&(s=s(n)),t.isObject(s))for(r in s)c.push(r+'="'+s[r]+'" ');else s={};!t.isDefined(o)||"target"in s||c.push('target="',o,'" ');c.push('href="',n.replace(/"/g,"&quot;"),'">');p(i);c.push("<\/a>")}if(e==null||e==="")return e;if(!f(e))throw u("notstring","Expected string but received: {0}",e);for(var h,l=e,c=[],a,v;h=l.match(i);)a=h[0],h[2]||h[4]||(a=(h[3]?"http://":"mailto:")+a),v=h.index,p(l.substr(0,v)),w(a,h[0].replace(r,"")),l=l.substring(v+h[0].length);return p(l),n(c.join(""))}}])})(window,window.angular);
/*!
 * @license AngularJS v1.5.5
 * (c) 2010-2016 Google, Inc. http://angularjs.org
 * License: MIT
 */
(function(n,t){"use strict";function f(){function n(n,t){if(n)return r(n)?n.indexOf(t)>=0:n.hasOwnProperty(t)}return["$animate",function(t){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(i,u,f,e,o){var l=u[0],a,y=f.ngMessage||f.when,h=f.ngMessageExp||f.whenExp,c=function(n){a=n?r(n)?n:n.split(/[\s,]+/):null;e.reRender()},s,v;h?(c(i.$eval(h)),i.$watchCollection(h,c)):c(y);e.register(l,v={test:function(t){return n(a,t)},attach:function(){s||o(i,function(n){t.enter(n,null,u);s=n;var i=s.$$attachId=e.getAttachId();s.on("$destroy",function(){s&&s.$$attachId===i&&(e.deregister(l),v.detach())})})},detach:function(){if(s){var n=s;s=null;t.leave(n)}}})}}}]}var r=t.isArray,i=t.forEach,u=t.isString,e=t.element;t.module("ngMessages",[]).directive("ngMessages",["$animate",function(n){function f(n,t){return u(t)&&t.length===0||e(n.$eval(t))}function e(n){return u(n)?n.length:!!n}var t="ng-active",r="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(u,o,s){function y(n,t){for(var i=t,u=[],r;i&&i!==n;){if(r=i.$$ngMessageNode,r&&r.length)return c[r];i.childNodes.length&&u.indexOf(i)==-1?(u.push(i),i=i.childNodes[i.childNodes.length-1]):i.previousSibling?i=i.previousSibling:(i=i.parentNode,u.push(i))}}function w(n,t,i){var r=c[i],u;h.head?(u=y(n,t),u?(r.next=u.next,u.next=r):(r.next=h.head,h.head=r)):h.head=r}function b(n,t,i){var r=c[i],u=y(n,t);u?u.next=r.next:h.head=r.next}var h=this,v=0,p=0,c,l,a;this.getAttachId=function(){return p++};c=this.messages={};this.render=function(c){var y,p;c=c||{};l=!1;a=c;for(var g=f(o,s.ngMessagesMultiple)||f(o,s.multiple),w=[],b={},v=h.head,k=!1,d=0;v!=null;)d++,y=v.message,p=!1,k||i(c,function(n,t){if(!p&&e(n)&&y.test(t)){if(b[t])return;b[t]=!0;p=!0;y.attach()}}),p?k=!g:w.push(y),v=v.next;i(w,function(n){n.detach()});w.length!==d?n.setClass(u,t,r):n.setClass(u,r,t)};o.$watchCollection(s.ngMessages||s["for"],h.render);u.on("$destroy",function(){i(c,function(n){n.message.detach()})});this.reRender=function(){l||(l=!0,o.$evalAsync(function(){l&&a&&h.render(a)}))};this.register=function(n,t){var i=v.toString();c[i]={message:t};w(u[0],n,i);n.$$ngMessageNode=i;v++;h.reRender()};this.deregister=function(n){var t=n.$$ngMessageNode;delete n.$$ngMessageNode;b(u[0],n,t);delete c[t];h.reRender()}}]}}]).directive("ngMessagesInclude",["$templateRequest","$document","$compile",function(n,t,i){return{restrict:"AE",require:"^^ngMessages",link:function(r,u,f){var o=f.ngMessagesInclude||f.src;n(o).then(function(n){i(n)(r,function(n){u.after(n);var r=i.$$createComment?i.$$createComment("ngMessagesInclude",o):t[0].createComment(" ngMessagesInclude: "+o+" "),f=e(r);u.after(f);u.remove()})})}}}]).directive("ngMessage",f()).directive("ngMessageExp",f())})(window,window.angular);
// @preserve Copyright (c) Microsoft Open Technologies, Inc.
AuthenticationContext=function(){"use strict";return AuthenticationContext=function(n){if(this.REQUEST_TYPE={LOGIN:"LOGIN",RENEW_TOKEN:"RENEW_TOKEN",UNKNOWN:"UNKNOWN"},this.CONSTANTS={ACCESS_TOKEN:"access_token",EXPIRES_IN:"expires_in",ID_TOKEN:"id_token",ERROR_DESCRIPTION:"error_description",SESSION_STATE:"session_state",STORAGE:{TOKEN_KEYS:"adal.token.keys",ACCESS_TOKEN_KEY:"adal.access.token.key",EXPIRATION_KEY:"adal.expiration.key",STATE_LOGIN:"adal.state.login",STATE_RENEW:"adal.state.renew",STATE_RENEW_RESOURCE:"adal.state.renew.resource",NONCE_IDTOKEN:"adal.nonce.idtoken",SESSION_STATE:"adal.session.state",USERNAME:"adal.username",IDTOKEN:"adal.idtoken",ERROR:"adal.error",ERROR_DESCRIPTION:"adal.error.description",LOGIN_REQUEST:"adal.login.request",LOGIN_ERROR:"adal.login.error",RENEW_STATUS:"adal.token.renew.status"},RESOURCE_DELIMETER:"|",ERR_MESSAGES:{NO_TOKEN:"User is not authorized"},LOADFRAME_TIMEOUT:"6000",TOKEN_RENEW_STATUS_CANCELED:"Canceled",TOKEN_RENEW_STATUS_COMPLETED:"Completed",TOKEN_RENEW_STATUS_IN_PROGRESS:"In Progress",LOGGING_LEVEL:{ERROR:0,WARN:1,INFO:2,VERBOSE:3},LEVEL_STRING_MAP:{0:"ERROR:",1:"WARNING:",2:"INFO:",3:"VERBOSE:"}},AuthenticationContext.prototype._singletonInstance)return AuthenticationContext.prototype._singletonInstance;if(AuthenticationContext.prototype._singletonInstance=this,this.instance="https://login.microsoftonline.com/",this.config={},this.callback=null,this.popUp=!1,this._user=null,this._activeRenewals={},this._loginInProgress=!1,this._renewActive=!1,this._renewStates=[],window.callBackMappedToRenewStates={},window.callBacksMappedToRenewStates={},n.displayCall&&typeof n.displayCall!="function")throw new Error("displayCall is not a function");if(!n.clientId)throw new Error("clientId is required");this.config=this._cloneConfig(n);this.config.instance&&(this.instance=this.config.instance);this.config.loginResource||(this.config.loginResource=this.config.clientId);this.config.redirectUri||(this.config.redirectUri=window.location.href);this.config.anonymousEndpoints||(this.config.anonymousEndpoints=[]);this.config.protectedEndpoints||(this.config.protectedEndpoints=[])},window.Logging={level:0,log:function(){}},AuthenticationContext.prototype.login=function(){var n=this._getItem(this.CONSTANTS.STORAGE.STATE_LOGIN)||this._guid(),t;this.config.state=n;this._idTokenNonce=this._getItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN)||this._guid();this.verbose("Expected state: "+n+" startPage:"+window.location);var i=window.location.href.indexOf("/signin")===-1&&window.location.href.indexOf("/signout")===-1?window.location:"/";this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,i);this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,"");this._saveItem(this.CONSTANTS.STORAGE.STATE_LOGIN,n);this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,this._idTokenNonce);this._saveItem(this.CONSTANTS.STORAGE.ERROR,"");this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"");t=this._getNavigateUrl("id_token",null)+"&prompt=login&nonce="+encodeURIComponent(this._idTokenNonce);this.frameCallInProgress=!1;this._loginInProgress=!0;this.config.displayCall?this.config.displayCall(t):this.promptUser(t)},AuthenticationContext.prototype.loginInProgress=function(){return this._loginInProgress},AuthenticationContext.prototype._hasResource=function(n){var t=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS);return t&&!this._isEmpty(t)&&t.indexOf(n+this.CONSTANTS.RESOURCE_DELIMETER)>-1},AuthenticationContext.prototype.getCachedToken=function(n){if(!this._hasResource(n))return null;var i=this._getItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+n),t=this._getItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+n),r=this.config.expireOffsetSeconds||120;return t&&t>this._now()+r?i:(this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+n,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+n,0),null)},AuthenticationContext.prototype.getCachedUser=function(){if(this._user)return this._user;var n=this._getItem(this.CONSTANTS.STORAGE.IDTOKEN);return this._user=this._createUser(n),this._user},AuthenticationContext.prototype.registerCallback=function(n,t,i){this._activeRenewals[t]=n;window.callBacksMappedToRenewStates[n]||(window.callBacksMappedToRenewStates[n]=[]);var r=this;window.callBacksMappedToRenewStates[n].push(i);window.callBackMappedToRenewStates[n]||(window.callBackMappedToRenewStates[n]=function(i,u){for(var f=0;f<window.callBacksMappedToRenewStates[n].length;++f)window.callBacksMappedToRenewStates[n][f](i,u);r._activeRenewals[t]=null;window.callBacksMappedToRenewStates[n]=null;window.callBackMappedToRenewStates[n]=null})},AuthenticationContext.prototype._renewToken=function(n,t){var r;this.info("renewToken is called for resource:"+n);var f=this._addAdalFrame("adalRenewFrame"+n),i="",u=this._getItem(this.CONSTANTS.STORAGE.STATE_LOGIN);i=u?u+"|"+n:this._guid()+"|"+n;this.config.state=i;this._renewStates.push(i);this.verbose("Renew token Expected state: "+i);r=this._getNavigateUrl("token",n,!0)+"&prompt=none";r=this._addHintParameters(r);this.callback=t;this.registerCallback(i,n,t);this.verbose("Navigate to:"+r);this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,"");f.src="about:blank";this._loadFrameTimeout(r,"adalRenewFrame"+n,n)},AuthenticationContext.prototype._renewIdToken=function(n){var t;this.info("renewIdToken is called");var u=this._addAdalFrame("adalIdTokenFrame"),i="",r=this._getItem(this.CONSTANTS.STORAGE.STATE_LOGIN);i=r?r+"|"+this.config.clientId:this._guid()+"|"+this.config.clientId;this._idTokenNonce=this._getItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN);this._idTokenNonce||(this._idTokenNonce=this._guid(),this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,this._idTokenNonce));this.config.state=i;this._renewStates.push(i);this.verbose("Renew Idtoken Expected state: "+i);t=this._getNavigateUrl("id_token",null,!0)+"&prompt=none";t=this._addHintParameters(t);t+="&nonce="+encodeURIComponent(this._idTokenNonce);this.registerCallback(i,this.config.clientId,n);this.idTokenNonce=null;this.verbose("Navigate to:"+t);this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,"");u.src="about:blank";this._loadFrameTimeout(t,"adalIdTokenFrame",this.config.clientId)},AuthenticationContext.prototype.renewActive=function(){return this._renewActive},AuthenticationContext.prototype.addMSALoginFrame=function(n){var t="adalMSAFrame",i=this._addAdalFrame(t),r=n;i.src="about:blank";this._loadFrame(r,t)},AuthenticationContext.prototype._urlContainsQueryStringParameter=function(n,t){var i=new RegExp("[\\?&]"+n+"=");return i.test(t)},AuthenticationContext.prototype._loadFrameTimeout=function(n,t,i){this.verbose("Set loading state to pending for: "+i);this._saveItem(this.CONSTANTS.STORAGE.RENEW_STATUS+i,this.CONSTANTS.TOKEN_RENEW_STATUS_IN_PROGRESS);this._loadFrame(n,t);var r=this;setTimeout(function(){if(r._getItem(r.CONSTANTS.STORAGE.RENEW_STATUS+i)===r.CONSTANTS.TOKEN_RENEW_STATUS_IN_PROGRESS){r.verbose("Loading frame has timed out after: "+r.CONSTANTS.LOADFRAME_TIMEOUT/1e3+" seconds for resource "+i);var n=r._activeRenewals[i];n&&window.callBackMappedToRenewStates[n]&&window.callBackMappedToRenewStates[n]("AADSTS_RENEW_TIMEOUT: Token renewal operation failed due to timeout",null);r._saveItem(r.CONSTANTS.STORAGE.RENEW_STATUS+i,r.CONSTANTS.TOKEN_RENEW_STATUS_CANCELED)}},r.CONSTANTS.LOADFRAME_TIMEOUT)},AuthenticationContext.prototype._loadFrame=function(n,t){var i=this,r;i.info("LoadFrame: "+t);r=t;setTimeout(function(){var t=i._addAdalFrame(r);(t.src===""||t.src==="about:blank")&&(t.src=n,i._loadFrame(n,r))},500)},AuthenticationContext.prototype.acquireToken=function(n,t,i){if(this._isEmpty(n)){this.warn("resource is required");t("resource is required",null);return}var r=this.getCachedToken(n);if(r){this.info("Token is already in cache for resource:"+n);t(null,r);return}if(i&&!this._user){this.warn("User login is required");t("User login is required",null);return}this._activeRenewals[n]?this.registerCallback(this._activeRenewals[n],n,t):n===this.config.clientId?(this.verbose("renewing idtoken"),this._renewIdToken(t)):this._renewToken(n,t)},AuthenticationContext.prototype.promptUser=function(n){n?(this.info("Navigate to:"+n),window.location.href=n):this.info("Navigate url is empty")},AuthenticationContext.prototype.clearCache=function(){var n,t;if(this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY,0),this._saveItem(this.CONSTANTS.STORAGE.SESSION_STATE,""),this._saveItem(this.CONSTANTS.STORAGE.STATE_LOGIN,""),this._renewStates=[],this._saveItem(this.CONSTANTS.STORAGE.USERNAME,""),this._saveItem(this.CONSTANTS.STORAGE.IDTOKEN,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,""),n=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS),!this._isEmpty(n))for(n=n.split(this.CONSTANTS.RESOURCE_DELIMETER),t=0;t<n.length;t++)this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+n[t],""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+n[t],0);this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,"")},AuthenticationContext.prototype.clearCacheForResource=function(n){this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW,"");this._saveItem(this.CONSTANTS.STORAGE.ERROR,"");this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"");this._hasResource(n)&&(this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+n,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+n,0))},AuthenticationContext.prototype.logOut=function(){var n,t,i;this.clearCache();n="common";t="";this._user=null;this.config.tenant&&(n=this.config.tenant);this.config.postLogoutRedirectUri&&(t="post_logout_redirect_uri="+encodeURIComponent(this.config.postLogoutRedirectUri));i=this.instance+n+"/oauth2/logout?"+t;this.info("Logout navigate to: "+i);this.promptUser(i)},AuthenticationContext.prototype._isEmpty=function(n){return typeof n=="undefined"||!n||0===n.length},AuthenticationContext.prototype.getUser=function(n){if(typeof n!="function")throw new Error("callback is not a function");if(this.callback=n,this._user){this.callback(null,this._user);return}var t=this._getItem(this.CONSTANTS.STORAGE.IDTOKEN);this._isEmpty(t)?(this.warn("User information is not available"),this.callback("User information is not available")):(this.info("User exists in cache: "),this._user=this._createUser(t),this.callback(null,this._user))},AuthenticationContext.prototype._addHintParameters=function(n){if(this._user&&this._user.profile&&this._user.profile.hasOwnProperty("upn")&&(n+="&login_hint="+encodeURIComponent(this._user.profile.upn),!this._urlContainsQueryStringParameter("domain_hint",n)&&this._user.profile.upn.indexOf("@")>-1)){var t=this._user.profile.upn.split("@");n+="&domain_hint="+encodeURIComponent(t[t.length-1])}return n},AuthenticationContext.prototype._createUser=function(n){var i=null,t=this._extractIdToken(n);return t&&t.hasOwnProperty("aud")&&(t.aud.toLowerCase()===this.config.clientId.toLowerCase()?(i={userName:"",profile:t},t.hasOwnProperty("upn")?i.userName=t.upn:t.hasOwnProperty("email")&&(i.userName=t.email)):this.warn("IdToken has invalid aud field")),i},AuthenticationContext.prototype._getHash=function(n){return n.indexOf("#/")>-1?n=n.substring(n.indexOf("#/")+2):n.indexOf("#")>-1&&(n=n.substring(1)),n},AuthenticationContext.prototype.isCallback=function(n){n=this._getHash(n);var t=this._deserialize(n);return t.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)||t.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)||t.hasOwnProperty(this.CONSTANTS.ID_TOKEN)},AuthenticationContext.prototype.getLoginError=function(){return this._getItem(this.CONSTANTS.STORAGE.LOGIN_ERROR)},AuthenticationContext.prototype.getRequestInfo=function(n){var i,t,r,f,u;if(n=this._getHash(n),i=this._deserialize(n),t={valid:!1,parameters:{},stateMatch:!1,stateResponse:"",requestType:this.REQUEST_TYPE.UNKNOWN},i&&(t.parameters=i,i.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)||i.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)||i.hasOwnProperty(this.CONSTANTS.ID_TOKEN))){if(t.valid=!0,r="",i.hasOwnProperty("state"))this.verbose("State: "+i.state),r=i.state;else return this.warn("No state returned"),t;if(t.stateResponse=r,r===this._getItem(this.CONSTANTS.STORAGE.STATE_LOGIN))return t.requestType=this.REQUEST_TYPE.LOGIN,t.stateMatch=!0,t;if(!t.stateMatch&&window.parent&&window.parent.AuthenticationContext())for(f=window.parent.AuthenticationContext()._renewStates,u=0;u<f.length;u++)if(f[u]===t.stateResponse){t.requestType=this.REQUEST_TYPE.RENEW_TOKEN;t.stateMatch=!0;break}}return t},AuthenticationContext.prototype._getResourceFromState=function(n){if(n){var t=n.indexOf("|");if(t>-1&&t+1<n.length)return n.substring(t+1)}return""},AuthenticationContext.prototype.saveTokenFromHash=function(n){var t,i;this.info("State status:"+n.stateMatch+"; Request type:"+n.requestType);this._saveItem(this.CONSTANTS.STORAGE.ERROR,"");this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"");t=this._getResourceFromState(n.stateResponse);n.parameters.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)?(this.info("Error :"+n.parameters.error+"; Error description:"+n.parameters[this.CONSTANTS.ERROR_DESCRIPTION]),this._saveItem(this.CONSTANTS.STORAGE.ERROR,n.parameters.error),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,n.parameters[this.CONSTANTS.ERROR_DESCRIPTION]),n.requestType===this.REQUEST_TYPE.LOGIN&&(this._loginInProgress=!1,this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,n.parameters.error_description))):n.stateMatch?(this.info("State is right"),n.parameters.hasOwnProperty(this.CONSTANTS.SESSION_STATE)&&this._saveItem(this.CONSTANTS.STORAGE.SESSION_STATE,n.parameters[this.CONSTANTS.SESSION_STATE]),n.parameters.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)&&(this.info("Fragment has access token"),this._hasResource(t)||(i=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS)||"",this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,i+t+this.CONSTANTS.RESOURCE_DELIMETER)),this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+t,n.parameters[this.CONSTANTS.ACCESS_TOKEN]),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+t,this._expiresIn(n.parameters[this.CONSTANTS.EXPIRES_IN]))),n.parameters.hasOwnProperty(this.CONSTANTS.ID_TOKEN)&&(this.info("Fragment has id token"),this._loginInProgress=!1,this._user=this._createUser(n.parameters[this.CONSTANTS.ID_TOKEN]),this._user&&this._user.profile?this._user.profile.nonce!==this._getItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN)?(this._user=null,this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,"Nonce is not same as "+this._idTokenNonce)):(this._saveItem(this.CONSTANTS.STORAGE.IDTOKEN,n.parameters[this.CONSTANTS.ID_TOKEN]),t=this.config.loginResource?this.config.loginResource:this.config.clientId,this._hasResource(t)||(i=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS)||"",this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,i+t+this.CONSTANTS.RESOURCE_DELIMETER)),this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+t,n.parameters[this.CONSTANTS.ID_TOKEN]),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+t,this._user.profile.exp)):(this._saveItem(this.CONSTANTS.STORAGE.ERROR,"invalid id_token"),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"Invalid id_token. id_token: "+n.parameters[this.CONSTANTS.ID_TOKEN])))):(this._saveItem(this.CONSTANTS.STORAGE.ERROR,"Invalid_state"),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"Invalid_state. state: "+n.stateResponse));this._saveItem(this.CONSTANTS.STORAGE.RENEW_STATUS+t,this.CONSTANTS.TOKEN_RENEW_STATUS_COMPLETED)},AuthenticationContext.prototype.getResourceForEndpoint=function(n){var i,t;if(this.config&&this.config.endpoints)for(i in this.config.endpoints)if(n.indexOf(i)>-1)return this.config.endpoints[i];if(n.indexOf("http://")>-1||n.indexOf("https://")>-1){if(this._getHostFromUri(n)===this._getHostFromUri(this.config.redirectUri))return this.config.loginResource}else{if(n&&this.config&&this.config.protectedEndpoints)for(t=0;t<this.config.protectedEndpoints.length;t++)if(this.config.protectedEndpoints[t]&&n.toLowerCase().indexOf(this.config.protectedEndpoints[t].toLowerCase())>-1)return this.config.loginResource;return null}return null},AuthenticationContext.prototype._getHostFromUri=function(n){var t=String(n).replace(/^(https?:)\/\//,"");return t.split("/")[0]},AuthenticationContext.prototype.handleWindowCallback=function(){var i=window.location.hash,n,t;if(this.isCallback(i)){if(n=this.getRequestInfo(i),this.info("Returned from redirect url"),this.saveTokenFromHash(n),t=null,n.requestType===this.REQUEST_TYPE.RENEW_TOKEN&&window.parent&&window.parent!==window){this.verbose("Window is in iframe");t=window.parent.callBackMappedToRenewStates[n.stateResponse];t&&t(this._getItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION),n.parameters[this.CONSTANTS.ACCESS_TOKEN]||n.parameters[this.CONSTANTS.ID_TOKEN]);return}window&&window.oauth2Callback&&(this.verbose("Window is redirecting"),t=this.callback);window.location=this._getItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST)}},AuthenticationContext.prototype._getNavigateUrl=function(n,t,i){var u="common",r;return this.config.tenant&&(u=this.config.tenant),r=this.instance+u+"/oauth2/authorize"+this._serialize(n,this.config,t,i)+this._addLibMetadata(),this.info("Navigate url:"+r),r},AuthenticationContext.prototype._extractIdToken=function(n){var i=this._decodeJwt(n),r,t;if(!i)return null;try{return(r=i.JWSPayload,t=this._base64DecodeStringUrlSafe(r),!t)?(this.info("The returned id_token could not be base64 url safe decoded."),null):JSON.parse(t)}catch(u){this.error("The returned id_token could not be decoded",u)}return null},AuthenticationContext.prototype._base64DecodeStringUrlSafe=function(n){return n=n.replace(/-/g,"+").replace(/_/g,"/"),window.atob?decodeURIComponent(escape(window.atob(n))):decodeURIComponent(escape(this._decode(n)))},AuthenticationContext.prototype._decode=function(n){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u,o,s,c,l,t,r,h,a,f,i;if(n=String(n).replace(/=+$/,""),u=n.length,u%4==1)throw new Error("The token to be decoded is not correctly encoded.");for(f="",i=0;i<u;i+=4){if(o=e.indexOf(n.charAt(i)),s=e.indexOf(n.charAt(i+1)),c=e.indexOf(n.charAt(i+2)),l=e.indexOf(n.charAt(i+3)),i+2===u-1){t=o<<18|s<<12|c<<6;r=t>>16&255;h=t>>8&255;f+=String.fromCharCode(r,h);break}else if(i+1===u-1){t=o<<18|s<<12;r=t>>16&255;f+=String.fromCharCode(r);break}t=o<<18|s<<12|c<<6|l;r=t>>16&255;h=t>>8&255;a=t&255;f+=String.fromCharCode(r,h,a)}return f},AuthenticationContext.prototype._decodeJwt=function(n){var i,t;return this._isEmpty(n)?null:(i=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,t=i.exec(n),!t||t.length<4)?(this.warn("The returned id_token is not parseable."),null):{header:t[1],JWSPayload:t[2],JWSSig:t[3]}},AuthenticationContext.prototype._convertUrlSafeToRegularBase64EncodedString=function(n){return n.replace("-","+").replace("_","/")},AuthenticationContext.prototype._serialize=function(n,t,i,r){var u=[],f;return t!==null&&(u.push("?response_type="+n),u.push("client_id="+encodeURIComponent(t.clientId)),i&&u.push("resource="+encodeURIComponent(i)),r?u.push("redirect_uri="+encodeURIComponent(t.redirectUri+"silentauth")):u.push("redirect_uri="+encodeURIComponent(t.redirectUri)),u.push("state="+encodeURIComponent(t.state)),t.hasOwnProperty("slice")&&u.push("slice="+encodeURIComponent(t.slice)),t.hasOwnProperty("extraQueryParameter")&&u.push(t.extraQueryParameter),f=t.correlationId?t.correlationId:this._guid(),u.push("client-request-id="+encodeURIComponent(f))),u.join("&")},AuthenticationContext.prototype._deserialize=function(n){for(var f=/\+/g,i=/([^&=]+)=([^&]*)/g,r=function(n){return decodeURIComponent(n.replace(f," "))},u={},t=i.exec(n);t;)u[r(t[1])]=r(t[2]),t=i.exec(n);return u},AuthenticationContext.prototype._guid=function(){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",u="0123456789abcdef",i=0,r="",n=0;n<36;n++)t[n]!=="-"&&t[n]!=="4"&&(i=Math.random()*16|0),t[n]==="x"?r+=u[i]:t[n]==="y"?(i&=3,i|=8,r+=u[i]):r+=t[n];return r},AuthenticationContext.prototype._expiresIn=function(n){return this._now()+parseInt(n,10)},AuthenticationContext.prototype._now=function(){return Math.round((new Date).getTime()/1e3)},AuthenticationContext.prototype._addAdalFrame=function(n){var i,t;if(typeof n!="undefined")return this.info("Add adal frame to document:"+n),i=document.getElementById(n),i||(document.createElement&&document.documentElement&&(window.opera||window.navigator.userAgent.indexOf("MSIE 5.0")===-1)?(t=document.createElement("iframe"),t.setAttribute("id",n),t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height=t.borderWidth="0px",i=document.getElementsByTagName("body")[0].appendChild(t)):document.body&&document.body.insertAdjacentHTML&&document.body.insertAdjacentHTML("beforeEnd",'<iframe name="'+n+'" id="'+n+'" style="display:none"><\/iframe>'),window.frames&&window.frames[n]&&(i=window.frames[n])),i},AuthenticationContext.prototype._saveItem=function(n,t){return this.config&&this.config.cacheLocation&&this.config.cacheLocation==="localStorage"?this._supportsLocalStorage()?(localStorage.setItem(n,t),!0):(this.info("Local storage is not supported"),!1):this._supportsSessionStorage()?(sessionStorage.setItem(n,t),!0):(this.info("Session storage is not supported"),!1)},AuthenticationContext.prototype._getItem=function(n){return this.config&&this.config.cacheLocation&&this.config.cacheLocation==="localStorage"?this._supportsLocalStorage()?localStorage.getItem(n):(this.info("Local storage is not supported"),null):this._supportsSessionStorage()?sessionStorage.getItem(n):(this.info("Session storage is not supported"),null)},AuthenticationContext.prototype._supportsLocalStorage=function(){try{var n="localStorage"in window&&window.localStorage;return n&&(window.localStorage.setItem("storageTest",""),window.localStorage.removeItem("storageTest")),n}catch(t){return!1}},AuthenticationContext.prototype._supportsSessionStorage=function(){try{var n="sessionStorage"in window&&window.sessionStorage;return n&&(window.sessionStorage.setItem("storageTest",""),window.sessionStorage.removeItem("storageTest")),n}catch(t){return!1}},AuthenticationContext.prototype._cloneConfig=function(n){var i,t;if(null===n||"object"!=typeof n)return n;i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},AuthenticationContext.prototype._addLibMetadata=function(){return"&x-client-SKU=Js&x-client-Ver="+this._libVersion()},AuthenticationContext.prototype.log=function(n,t,i){if(n<=Logging.level){var u=(new Date).toUTCString(),r="";r=this.config.correlationId?u+":"+this.config.correlationId+"-"+this._libVersion()+"-"+this.CONSTANTS.LEVEL_STRING_MAP[n]+" "+t:u+":"+this._libVersion()+"-"+this.CONSTANTS.LEVEL_STRING_MAP[n]+" "+t;i&&(r+="\nstack:\n"+i.stack);Logging.log(r)}},AuthenticationContext.prototype.error=function(n,t){this.log(this.CONSTANTS.LOGGING_LEVEL.ERROR,n,t)},AuthenticationContext.prototype.warn=function(n){this.log(this.CONSTANTS.LOGGING_LEVEL.WARN,n,null)},AuthenticationContext.prototype.info=function(n){this.log(this.CONSTANTS.LOGGING_LEVEL.INFO,n,null)},AuthenticationContext.prototype.verbose=function(n){this.log(this.CONSTANTS.LOGGING_LEVEL.VERBOSE,n,null)},AuthenticationContext.prototype._libVersion=function(){return"1.0.11"},typeof module!="undefined"&&module.exports&&(module.exports=AuthenticationContext,module.exports.inject=function(n){return new AuthenticationContext(n)}),AuthenticationContext}();
// @preserve Copyright (c) Microsoft Open Technologies, Inc.
(function(){"use strict";if(typeof module!="undefined"&&module.exports&&(module.exports.inject=function(n){return new AuthenticationContext(n)}),angular){var n=angular.module("AdalAngular",[]);n.provider("adalAuthenticationService",function(){var n=null,t={isAuthenticated:!1,userName:"",loginError:"",profile:""},r=!1,i=function(i){var u=n.getCachedToken(i),r;t.isAuthenticated=u!==null&&u.length>0;r=n.getCachedUser()||{userName:""};t.userName=r.userName;t.profile=r.profile;t.loginError=n.getLoginError()},u;this.init=function(t,r){if(t){var f=window.location.hash,u=window.location.href;f&&(u=u.replace(f,""));t.redirectUri=t.redirectUri||u;t.postLogoutRedirectUri=t.postLogoutRedirectUri||u;r&&r.interceptors&&r.interceptors.push("ProtectedResourceInterceptor");t.cacheLocation="localStorage";n=new AuthenticationContext(t)}else throw new Error("You must set configOptions, when calling init");i(n.config.loginResource)};this.$get=["$rootScope","$window","$q","$location","$timeout",function(u,f,e,o,s){function c(n,t){return t.requireADLogin?n.requireADLogin!==!1:!!n.requireADLogin}function l(t){if(n.config&&n.config.anonymousEndpoints)for(var i=0;i<n.config.anonymousEndpoints.length;i++)if(t.indexOf(n.config.anonymousEndpoints[i])>-1)return!0;return!1}var a=function(r,e,h){var a,c,l;if(n.verbose("Location change event from "+h+" to "+e),a=f.location&&f.location.hash?f.location.hash:undefined,a&&n.isCallback(a))if(n.verbose("Processing the hash: "+a),c=n.getRequestInfo(a),n.saveTokenFromHash(c),c.requestType!==n.REQUEST_TYPE.LOGIN&&(n.callback=f.parent.AuthenticationContext().callback,c.requestType===n.REQUEST_TYPE.RENEW_TOKEN&&(n.callback=f.parent.callBackMappedToRenewStates[c.stateResponse])),c.stateMatch)if(u.$broadcast("adal:stateMismatch","SUCCESS"),typeof n.callback=="function"){if(r.preventDefault(),c.requestType===n.REQUEST_TYPE.RENEW_TOKEN){if(c.parameters.access_token){n.callback(n._getItem(n.CONSTANTS.STORAGE.ERROR_DESCRIPTION),c.parameters.access_token);return}if(c.parameters.id_token){n.callback(n._getItem(n.CONSTANTS.STORAGE.ERROR_DESCRIPTION),c.parameters.id_token);return}if(c.parameters.error){n.callback(n._getItem(n.CONSTANTS.STORAGE.ERROR_DESCRIPTION),null);return}}}else i(n.config.loginResource),t.userName?(s(function(){i(n.config.loginResource);u.userInfo=t},1),u.$broadcast("adal:loginSuccess")):u.$broadcast("adal:loginFailure",n._getItem(n.CONSTANTS.STORAGE.ERROR_DESCRIPTION)),l=n._getItem(n.CONSTANTS.STORAGE.LOGIN_REQUEST),l&&(n.verbose("Redirecting to start page: "+l),r.preventDefault(),!o.$$html5&&l.indexOf("#")>-1&&o.url(l.substring(l.indexOf("#")+1)),f.location=l);else u.$broadcast("adal:stateMismatch",n._getItem(n.CONSTANTS.STORAGE.ERROR_DESCRIPTION));s(function(){i(n.config.loginResource);u.userInfo=t},1)},h=function(){n.info("Login event for:"+o.$$url);n.config&&n.config.localLoginUrl?o.path(n.config.localLoginUrl):(n.info("Start login at:"+window.location.href),u.$broadcast("adal:loginRedirect"),n.login())},v=function(i,r){r&&r.$$route&&(c(r.$$route,n.config)?t.isAuthenticated||n._renewActive||n.loginInProgress()||(n.info("Route change event for:"+o.$$url),h()):r.$$route.templateUrl&&!l(r.$$route.templateUrl)&&n.config.anonymousEndpoints.push(r.$$route.templateUrl))},y=function(i,r){r&&(c(r,n.config)?t.isAuthenticated||n._renewActive||n.loginInProgress()||(n.info("State change event for:"+o.$$url),h()):r.templateUrl&&!l(r.templateUrl)&&n.config.anonymousEndpoints.push(r.templateUrl))},p=function(t,i,r,u,f,e){n.verbose("State change error occured. Error: "+e);e&&e.data&&(n.info("Setting defaultPrevented to true if state change error occured because adal rejected a request. Error: "+e.data),t.preventDefault())};return u.$on("$routeChangeStart",v),u.$on("$stateChangeStart",y),u.$on("$locationChangeStart",a),u.$on("$stateChangeError",p),i(n.config.loginResource),u.userInfo=t,{config:n.config,login:function(){h()},loginInProgress:function(){return n.loginInProgress()},logOut:function(){n.logOut()},getCachedToken:function(t){return n.getCachedToken(t)},userInfo:t,acquireToken:function(t){var i=e.defer();return n._renewActive=!0,n.acquireToken(t,function(r,u){n._renewActive=!1;r?(n.error("Error when acquiring token for resource: "+t,r),i.reject(r)):i.resolve(u)},!0),i.promise},renewActive:function(){return n.renewActive()},getUser:function(){var t=e.defer();return n.getUser(function(i,r){i?(n.error("Error when getting user",i),t.reject(i)):t.resolve(r)}),t.promise},getResourceForEndpoint:function(t){return n.getResourceForEndpoint(t)},clearCache:function(){n.clearCache()},clearCacheForResource:function(t){n.clearCacheForResource(t)},info:function(t){n.info(t)},verbose:function(t){n.verbose(t)},silentLoginAAD:function(){var r=e.defer();return n._renewActive=!0,n.acquireToken(n.config.loginResource,function(f,e){f?(n.error("Error when acquiring token for resource: "+n.config.loginResource,f),n._renewActive=!1,r.reject(f)):s(function(){i(n.config.loginResource);u.userInfo=t;n._renewActive=!1;r.resolve(e)},1)},!1),r.promise},silentLoginMSA:function(t,i){t&&i&&n.addMSALoginFrame(t,i)},setUserInfo:function(r,f){s(function(){i(n.config.loginResource);u.userInfo=t;f()},1)},clearToken:function(){n._saveItem(n.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+n.config.loginResource,"");n._saveItem(n.CONSTANTS.STORAGE.EXPIRATION_KEY+n.config.loginResource,0)},enableProtectedResourceInterceptor:function(){r=!0},disableProtectedResourceInterceptor:function(){r=!1},getProtectedResourceInterceptorState:function(){return r}}}];u=function(){var r=!!document.documentMode&&document.documentMode==11,n,t,i;return r?!0:(n=!!document.documentMode&&document.documentMode==10,n)?!0:(t=!!document.documentMode&&document.documentMode==9,t)?!0:(i=!!window.StyleMedia,i)?!0:!1}});n.factory("ProtectedResourceInterceptor",["adalAuthenticationService","$q","$rootScope",function(n,t,i){return{request:function(i){var e,r,f,u;if(i)return(e=n.getProtectedResourceInterceptorState(),!e)?i:(i.headers=i.headers||{},r=n.getResourceForEndpoint(i.url),n.verbose("Url: "+i.url+" maps to resource: "+r),r===null)?i:(f=n.getCachedToken(r),f?(n.info("Token is available for this url "+i.url),i.headers.Authorization="Bearer "+f,i):n.loginInProgress()?(n.info("login is in progress."),i.data="login in progress, cancelling the request for "+i.url,t.reject(i)):(u=t.defer(),n.acquireToken(r).then(function(t){n.verbose("Token is available");i.headers.Authorization="Bearer "+t;u.resolve(i)},function(n){i.data=n;u.reject(i)}),u.promise))},responseError:function(r){if(n.info("Getting error in the response."),r){if(r.status===401){var u=n.getResourceForEndpoint(r.config.url);i.$broadcast("adal:notAuthorized",r,u)}else i.$broadcast("adal:errorResponse",r);return t.reject(r)}}}}])}else console.error("Angular.JS is not included")})();awa=awa||{};awa.isInitialized=!1;awa.verbosityLevels={NONE:0,ERROR:1,WARNING:2,INFORMATION:3};awa.behavior={UNDEFINED:0,NAVIGATIONBACK:1,NAVIGATION:2,NAVIGATIONFORWARD:3,APPLY:4,REMOVE:5,SORT:6,EXPAND:7,REDUCE:8,CONTEXTMENU:9,TAB:10,COPY:11,EXPERIMENTATION:12,PRINT:13,SHOW:14,HIDE:15,MAXIMIZE:16,MINIMIZE:17,BACKBUTTON:18,STARTPROCESS:20,PROCESSCHECKPOINT:21,COMPLETEPROCESS:22,SCENARIOCANCEL:23,DOWNLOADCOMMIT:40,DOWNLOAD:41,SEARCHAUTOCOMPLETE:60,SEARCH:61,SEARCHINITIATE:62,TEXTBOXINPUT:63,PURCHASE:80,ADDTOCART:81,VIEWCART:82,ADDWISHLIST:83,FINDSTORE:84,CHECKOUT:85,REMOVEFROMCART:86,PURCHASECOMPLETE:87,VIEWCHECKOUTPAGE:88,VIEWCARTPAGE:89,VIEWPDP:90,UPDATEITEMQUANTITY:91,INTENTTOBUY:92,PUSHTOINSTALL:93,SIGNIN:100,SIGNOUT:101,SOCIALSHARE:120,SOCIALLIKE:121,SOCIALREPLY:122,CALL:123,EMAIL:124,COMMUNITY:125,VOTE:140,SURVEYINITIATE:141,SURVEYCOMPLETE:142,REPORTAPPLICATION:143,REPORTREVIEW:144,SURVEYCHECKPOINT:145,CONTACT:160,REGISTRATIONINITIATE:161,REGISTRATIONCOMPLETE:162,CANCELSUBSCRIPTION:163,RENEWSUBSCRIPTION:164,CHANGESUBSCRIPTION:165,REGISTRATIONCHECKPOINT:166,CHATINITIATE:180,CHATEND:181,TRIALSIGNUP:200,TRIALINITIATE:201,PARTNERREFERRAL:220,VIDEOSTART:240,VIDEOPAUSE:241,VIDEOCONTINUE:242,VIDEOCHECKPOINT:243,VIDEOJUMP:244,VIDEOCOMPLETE:245,VIDEOBUFFERING:246,VIDEOERROR:247,VIDEOMUTE:248,VIDEOUNMUTE:249,VIDEOFULLSCREEN:250,VIDEOUNFULLSCREEN:251,VIDEOREPLAY:252,VIDEOPLAYERLOAD:253,VIDEOPLAYERCLICK:254,VIDEOVOLUMECONTROL:255,VIDEOAUDIOTRACKCONTROL:256,VIDEOCLOSEDCAPTIONCONTROL:257,VIDEOCLOSEDCAPTIONSTYLE:258,VIDEORESOLUTIONCONTROL:259,VIRTUALEVENTJOIN:260,VIRTUALEVENTEND:261,IMPRESSION:280,CLICK:281,RICHMEDIACOMPLETE:282,ADBUFFERING:283,ADERROR:284,ADSTART:285,ADCOMPLETE:286,ADSKIP:287,ADTIMEOUT:288,OTHER:300};awa.behaviorKeys=[];for(behaviorKey in awa.behavior)awa.behaviorKeys.push(behaviorKey);awa.actionType={CLICKLEFT:"CL",CLICKRIGHT:"CR",SCROLL:"S",ZOOM:"Z",RESIZE:"R",KEYBOARDENTER:"KE",KEYBOARDSPACE:"KS",OTHER:"O"};awa.cookie=function(){function r(n,i){var e=t(n),f,r,u;if(e&&i)for(f=e.split("&"),r=0;r<f.length;r++)if(u=f[r].split("="),u[0]&&i.toLowerCase()===u[0].toLowerCase())return u[1];return undefined}function t(t,i){for(var r,u,e,o=document.cookie.split(";"),f=0;f<o.length;f++){for(r=o[f];r.charAt(0)===" ";)r=r.substring(1);if(u=r.split("="),e=n(u.shift()),e===t&&u[0].indexOf(i)==(awa.utils.isValueAssigned(i)?0:-1))return n(u.join("="))}return undefined}function u(){for(var t,i,r,f=document.cookie.split(";"),e={},u=0;u<f.length;u++){for(t=f[u];t.charAt(0)===" ";)t=t.substring(1);i=t.split("=");r=n(i.shift());(r!="MSFPC"||r==="MSFPC"&&i[0].indexOf("GUID")==(awa.utils.isValueAssigned("GUID")?0:-1))&&(e[r]=n(i.join("=")))}return e}function n(n){var t=decodeURIComponent(n.replace("/+/g"," "));return t.indexOf('"')===0&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")),t}function i(n,t,i){var u,r;i?(r=new Date,r.setTime(r.getTime()+i*864e5),u="; expires="+r.toUTCString()):u="";window.document.cookie=n+"="+t+u+"; path=/;"}function f(n){i(n,"",-1)}return{getCookie:t,getCookieKeyValue:r,getAllCookies:u,setCookie:i,deleteCookie:f}}();awa.cv=function(){function y(){return u(r())}function r(){return f.concat(".",i.toString())}function h(){var n=r();if(u(n))return n}function p(i){var r,f,e,o,s;if(u(i)){for(r=i.split("."),f=r.length,r[f-1]=(parseInt(r[f-1],10)+1).toString(),e="",o=0;o<f;o++)e+=r[o],o<f-1&&(e+=".");if(s=r[0].length===n.baseLength?n.maxCorrelationVectorLength:t.maxCorrelationVectorLength,e.length<=s)return e}}function c(){var n=r();return u(n)?v(n.length+2):!1}function l(){return u(r())?v(f.length+1+(i+1+"").length):!1}function a(n){if(u(n)){var t=n.lastIndexOf(".");f=n.substr(0,t);i=parseInt(n.substr(t+1),10)}else return awa.logger.logWarning("Cannot set invalid correlation vector value"),null;return r()}function w(n){return n?a(n):(f=b(),i=0,h())}function b(){for(var n="",t=0;t<o.baseLength;t++)n+=e.charAt(Math.floor(Math.random()*e.length));return n}function k(){if(c())return f=f.concat(".",i.toString()),i=0,r()}function d(){if(l())return i=i+1,r()}function u(n){if(n){var t=n.split(".")[0];if(t){if(t.length===16)return s=1,g(n);if(t.length===22)return s=2,nt(n)}}}function g(n){if(t.validationPattern.test(n)&&n.length<=t.maxCorrelationVectorLength)return!0}function nt(t){if(n.validationPattern.test(t)&&t.length<=n.maxCorrelationVectorLength)return!0}function v(i){return s===1?i<=t.maxCorrelationVectorLength:i<=n.maxCorrelationVectorLength}function tt(){o=t}function it(){o=n}var f="",i=0,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={},n,o,s;return t.maxCorrelationVectorLength=63,t.baseLength=16,t.validationPattern=new RegExp("^["+e+"]{"+t.baseLength.toString()+"}(.[0-9]+)+$"),n={},n.maxCorrelationVectorLength=127,n.baseLength=22,n.validationPattern=new RegExp("^["+e+"]{"+n.baseLength.toString()+"}(.[0-9]+)+$"),o=n,s=2,{header:"MS-CV",tag:"cV",isInit:y,canExtend:c,canIncrement:l,getValue:h,setValue:a,init:w,extend:k,increment:d,incrementExternal:p,isValid:u,useCv1:tt,useCv2:it}}();awa.logger=function(){function n(n){awa.consoleVerbosity>=awa.verbosityLevels.ERROR&&console&&console.error&&console.error("JSLL: "+n)}function t(n){awa.consoleVerbosity>=awa.verbosityLevels.WARNING&&console&&console.warn&&console.warn("JSLL: "+n)}function i(n){awa.consoleVerbosity>=awa.verbosityLevels.INFORMATION&&console&&console.log&&console.log("JSLL: "+n)}return{logError:n,logWarning:t,logInformation:i}}();awa.capabilitiesCheck=function(){return function(){if(!JSON||!JSON.stringify)return awa.logger.logError("Unable to write event: the global JSON.stringify method does not exist"),awa.isAvailable=!1,!1}}();awa.utils=function(){function l(n,t){var i,r,u;if(t)try{return(i=JSON.stringify(t),i==="{}"&&n==="timing")?a():i}catch(f){return r='{"error": "ERROR: could not stringify {0} {1}"}',u=typeof t=="string"?t:"",r.replace("{0}",n).replace("{1}",u)}}function a(){for(var u,i=["navigationStart","unloadEventStart","unloadEventEnd","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","domLoading","domInteractive","domContentLoadedEventStart","domContentLoadedEventEnd","domComplete","loadEventStart","loadEventEnd"],f="{",t=0;t<i.length;t++)u=n[i[t]],r(u)&&(f+='"'+i[t]+'":'+u,t<i.length-1&&(f+=","));return f+"}"}function v(n){return{"microsoft.com":"c1.microsoft.com","xbox.com":"c.xbox.com","live.com":"c.live.com","microsoftstore.com":"c.microsoftstore.com","msn.com":"c.msn.com","windows.com":"c.windows.com"}[n]}function y(n,t){if(n==="string")return typeof t=="string"||t instanceof String||t instanceof Date;if(n==="bool")return typeof t=="boolean"||t instanceof Boolean;if(!(typeof t=="number"||t instanceof Number))return!1;if(n==="uint8"){if(t<0||t>255||t%1!=0)return!1}else if(n==="uint16"){if(t<0||t>65535||t%1!=0)return!1}else if(n==="uint32"){if(t<0||t>4294967295||t%1!=0)return!1}else if(n==="uint64"){if(t<0||t>18446744073709551615||t%1!=0)return!1}else if(n==="int8"){if(t<-128||t>127||t%1!=0)return!1}else if(n==="int16"){if(t<-32768||t>32767||t%1!=0)return!1}else if(n==="int32"){if(t<-2147483648||t>2147483647||t%1!=0)return!1}else if(n==="int64"){if(t<-9223372036854775808||t>9223372036854775807||t%1!=0)return!1}else if(n==="float"){if(t<-3402823e32||t>3402823e32)return!1}else if(n==="double"&&(t<-Number.MAX_VALUE||t>Number.MAX_VALUE))return!1;return!0}function p(){if(f===""){var n=o().toLowerCase();f=n.indexOf("windows phone")!==-1?"WindowsPhone":n.indexOf("win")!==-1?"Windows":n.indexOf("mac")!==-1?"MacOS":n.indexOf("x11")!==-1?"Unix":n.indexOf("android")!==-1?"Android":n.indexOf("linux")!==-1?"Linux":n.indexOf("webos")!==-1?"webOS":n.indexOf("blackberry")!==-1?"BlackBerry":n.indexOf("ipod")!==-1||n.indexOf("ipad")!==-1||n.indexOf("iphone")!==-1?"iOS":n.indexOf("symbian")!==-1?"Symbian":n.indexOf("nokia")!==-1?"Nokia":"Unknown"}return f}function w(){e=window.navigator&&window.navigator.userAgent?window.navigator.userAgent:""}function o(){return e===""&&w(),e}function b(n,t){var i;return n&&n[t]&&(i=n[t],delete n[t]),i}function k(n,t){n=i(n);var r=n.getBoundingClientRect(),u=d(r,t);return u>0?!0:!1}function d(n,t){var i=n.left,r=n.top,u=n.right,f=n.bottom,e=t.left,o=t.top,s=t.right,h=t.bottom,c=Math.max(0,Math.min(u,s)-Math.max(i,e)),l=Math.max(0,Math.min(f,h)-Math.max(r,o));return c*l}function i(n){return typeof jQuery=="function"&&n instanceof jQuery?n[0]:n}function t(n){var t=String(n);return t.length===1&&(t="0"+t),t}function g(n){return n.getUTCFullYear()+"-"+t(n.getUTCMonth()+1)+"-"+t(n.getUTCDate())+"T"+t(n.getUTCHours())+":"+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())+"."+String((n.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}function nt(){var n;try{n=window.performance.getEntries().filter(function(n){return n.initiatorType==="script"||n.initiatorType==="link"})}catch(t){}return n}function tt(){var t=undefined;return n.loadEventStart&&n.navigationStart&&n.loadEventStart>0&&(t=n.loadEventStart-n.navigationStart),t}function it(n){return"["+n+"]"}function rt(n,t){return h=t,s(n,ft)}function ut(n){return s(n,et)}function s(n,t){var r=n;if(r){for(r=i(r);!t(r);)if(r=r.parentNode,r=i(r),!r||!r.getAttribute)return null;return r}}function ft(n){var t=n.getAttribute(h);return r(t)||t===""}function et(n){return n.nodeName==="A"}function ot(n){var i,t;return n&&(t=n.split(":"),i=t.length>1&&t[0].toLowerCase()==="js"?n:ht+n),i}function u(n){for(var t in n)r(n[t])&&(JSON.stringify(n[t])!=="{}"||t==="callback")||delete n[t]}function r(n){return!(n===undefined||n===null||n==="")}function st(n,t){var r,i;u(n);for(r in t)i=t[r],typeof n[i]=="object"?u(n[i]):delete n[i]}var f="",e="",n=window.performance?window.performance.timing:undefined,ht="JS:",h="",c=function(){var t={},i=!1,n=0,f=arguments.length,r,u;for(Object.prototype.toString.call(arguments[0])==="[object Boolean]"&&(i=arguments[0],n++),r=function(n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=i&&Object.prototype.toString.call(n[r])==="[object Object]"?c(!0,t[r],n[r]):n[r])};n<f;n++)u=arguments[n],r(u);return t};return{stringifyField:l,getMuidHost:v,isOfCorrectType:y,getOs:p,getUserAgent:o,extractFieldFromObject:b,isElementTrulyVisible:k,dateToISOString:g,extend:c,returnDomObjectIfjQuery:i,findClosestByAttribute:rt,findClosestAnchor:ut,getPerformanceData:nt,getPageLoadTime:tt,removeInvalidElements:u,removeNonObjectsAndInvalidElements:st,bracketIt:it,getAppIdWithPrefix:ot,isValueAssigned:r}}();awa.ids=function(){function e(){function n(){return Math.floor(Math.random()*16).toString(16)}var t="xxxxxxxx-xxxx-4xxx-Rxxx-xxxxxxxxxxxx".replace(/x/g,n);return t.replace("R",(8|Math.floor(Math.random()*3)).toString(16))}function v(n){return n?n.MUID:f.getCookie("MUID")}function y(){return u}function p(){return h?u=e():h=!0,u}function o(n){return n?n[t]:f.getCookie(t)}function w(n){var t="";return t=n?n.MUID:f.getCookie("MUID"),t&&t.length?"t:"+t:t}function b(n){if(i=null,n){for(var t=0;t<l.length;t++)if(l[t]===n.substring(0,2)){i=n;break}i||awa.logger.logWarning("Unsupported app user id: "+n+". Supported app user ids are: c:, i:, and w:")}}function k(n){var t,i,r;if(!n||n.length<4)return!1;for(i=!1,r=n.substring(0,3).toString().toUpperCase(),t=0;t<a.length;t++)if(a[t]+":"===r&&n.length<=256){i=!0;break}return i}function r(t){var r,i;if(t){if(t===n)return;for(n=null,r=t.split(","),i=0;i<r.length;i++)k(r[i])?n?n+=","+r[i]:n=r[i]:awa.logger.logWarning("Unsupported flight id format for this app expId: "+r[i])}else{n=null;return}}function s(){return n}function d(n){n&&(c=n)}function g(){return c}function nt(n){return n?r(n[t]):r(o()),s()}var u=e(),f=awa.cookie,i=null,n=null,h=!1,t="Treatments",c,l=["c:","i:","w:"],a=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];return{getVisitorId:v,getMuidUserId:w,setAppUserId:b,getAppUserId:function(){return i},readExpIdFromCookie:nt,readExpIdFromCoreData:function(n){return r(n),s()},getImpressionGuid:y,getPageViewImpressionGuid:p,getGroups:o,setDeviceClass:d,getDeviceClass:g,setExpIdCookieName:function(n){t=n},getExpIdCookieName:function(){return t}}}();awa.vortexEvents=function(){function i(){n.length>0&&(awa.writeEvent(n),n=[])}function u(){if(document.readyState==="complete")while(n.length>0)awa.writeEvent(n.pop());else awa.ct.onDomReadyDo(awa.firstEventDoneTasks)}function f(u,f){if(f===!0){awa.writeEvent(u);return}if(r==="complete"){awa.writeEvent(u);return}n.push(u);t>1&&n.length>=t&&i()}function e(n){n.type==="CorsDisallowed"?awa.ct.captureCorsDisallowed(n):n.type==="EventTooLong"&&awa.ct.captureEventTooLong(n)}function o(n,t){awa.ct.captureClientError({errorInfo:n,displayedToUser:t})}function s(n){var t={name:"Ms.Webi.OutgoingRequest",cV:n.cV,data:{baseData:{operationName:n.currentOperationName,targetUri:n.requestUri,latencyMs:n.latencyMs,serviceErrorCode:n.serviceErrorCode||-1,succeeded:n.isSuccess,requestMethod:n.httpMethod,responseContentType:n.contentType,protocolStatusCode:n.httpStatusCode,dependencyOperationName:n.operationName,dependencyOperationVersion:n.operationVersion,dependencyName:n.serviceName,dependencyType:n.serviceType||"WebService",responseSizeBytes:n.responseSize},baseType:"Ms.Qos.OutgoingServiceRequest",impressionGuid:h.getImpressionGuid(),message:n.errorMessage,retryCount:n.retryCount,customData:n.customData}};awa.ct.captureQos(t)}var h=awa.ids,n=[],r="notInit",t=0;return{sendError:o,sendApiComplete:s,sendJsllEvent:e,SendOrScheduleEvent:f,batchQueuedEvents:i,drainQueuedEvents:u,batchEventsByNumber:function(n){t=n},addEventToQueue:function(t){n.push(t)},overrideQueueBehavior:function(n){n&&n.domReadyState&&(r=n.domReadyState)}}}();awa.errorHandler=function(){function n(n){var t=window.onerror;window.onerror=function(){t&&t.apply(this,arguments);n.apply(this,arguments)}}function t(n){return n.stack?n.stack.substring(0,1e3):""}function i(){if(arguments){var n={Page:window.location.href,Script:arguments[1]||"",Message:arguments[0]||"",LineNumber:arguments[2]||0,StackTrace:arguments[4]?t(arguments[4]):"",UserAgent:awa.utils.getUserAgent()||"",Platform:window.navigator.platform||""};u.sendError(n,!1)}}function r(){n(i)}var u=awa.vortexEvents;return{init:r}}();awa.timespanHandler=function(){function t(t,i){var r=(new Date).getTime();if(i)return r-n[t];n[t]=r}var n={};return{recordTimeSpan:t}}(),function(){function s(n,r,u){if(t(u)){var f="";return n.length>0&&(f+="&"),f+(i.isOfCorrectType("number",u)||i.isOfCorrectType("bool",u)?r+"="+u:typeof u=="object"?r+"="+JSON.stringify(u):r+"="+l+encodeURIComponent(u)+l)}return""}function a(n,u,f){if(t(f)){var e="";return n.length>1&&(e+=","),e+(i.isOfCorrectType("number",f)||i.isOfCorrectType("bool",f)?r+u+r+":"+f:typeof f=="object"?r+u+r+":"+JSON.stringify(f):r+u+r+":"+r+f+r)}return""}function h(t,i){for(var e,u,h,c,l,a,v,y,r="",o=0;o<et;o++)r+=s(r,f[o],t[f[o]]);e=t.data;for(u in e)if(u=="baseData"){h=e[u];for(c in h)r+=s(r,g+c,h[c])}else r+=s(r,kt+u,e[u]);l=t.ext;for(a in l){v=l[a];for(y in v)r+=s(r,"ext"+g+a+g+y,v[y])}return r+="&"+rt(),n.shareAuthStatus===!0&&n.authMethod==2&&ft()===!0&&(r+="&"+lt(i)),ct(r),r}function nt(n){for(var r,u,t="{",i=0;i<et;i++)t+=a(t,f[i],n[f[i]]);return r=n.data,r&&(t+=a(t,"data",r)),u=n.ext,u&&(t+=a(t,"ext",u)),t+="}",awa.requestBody=t,t}function ct(n){ot=n}function tt(n,t){var i=new Image;i.onload=function(){i.width===1&&u(n,t)};i.onerror=function(){awa.logger.logWarning("Telemetry image beacon not sent properly. Sending through POST.");v(t)};i.src=n}function it(i){var r="",e="",f="",u,o;if(i.length)for(f=i[0].ext.javascript.msfpc,u=0;u<i.length;u++)u>0&&(r+="\n"),r+=nt(i[u]);else f=i.ext.javascript.msfpc,r=nt(i);return o=n.endpoint+"/t.req?"+r,e="?"+rt(),e+=t(f)?"&ext-javascript-msfpc="+encodeURIComponent(l+f+l):"",{qp:e,requestBody:r,requestSrc:o}}function rt(){return"$mscomCookies="+n.mscomCookies}function lt(n){return"$nr="+t(n.Bounced)}function v(t){var f=it(t),i,r;d==="xhr"?(i=new XMLHttpRequest,i.open("POST",n.endpoint+f.qp,!0),i.withCredentials=!0,i.onload=function(){i.status===200?u(f.requestSrc,t):ht(i.statusText,i.status)},i.onerror=function(){ht(i.statusText,i.status)},i.send(f.requestBody)):d==="XDomainRequest"?(r=new window.XDomainRequest,r.onload=function(){u(f.requestSrc,t)},r.onerror=function(){bt(r)},r.open("POST",n.endpoint),r.send(f.requestBody)):awa.logger.logError("No event is sent.")}function ut(t){var i=it(t);navigator.sendBeacon(n.endpoint+i.qp,i.requestBody)?u(i.requestSrc,t):v(t)}function at(n,t,i){var f=document.head||document.getElementsByTagName("head")[0]||document.documentElement,r=document.createElement("script");r.onload=function(){u(n,t,!0)};r.onerror=function(){i?awa.logger.logError("No event is sent."):(o(),awa.writeEvent(t,!0))};r.async=!0;r.src=n;f.appendChild(r)}function ft(){return n.callback&&typeof n.callback.signedinStatus=="function"?n.callback.signedinStatus():n.isLoggedIn}function vt(){var n=i.getUserAgent(),t=n.indexOf("MSIE ");return t>0?parseInt(n.substring(t+5,n.indexOf(".",t)),10)<9:!1}var y,p,w,b,c,k;awa._schemas=awa._schemas||[];var i=awa.utils,t=i.isValueAssigned,n={endpoint:"https://web.vortex.data.microsoft.com/collect/v1",sendMode:1,batchSize:10,authMethod:0,validateEvents:!0,sendEvents:!0,logLevel:awa.verbosityLevels.NONE,syncMuid:!1,provisionMsfpc:!0,useDefaultContentName:!0,useShortNameForContentBlob:!1,debounceMs:{scroll:600,resize:3e3},muidDomain:"microsoft.com",biBlobAttributeTag:"data-m",isLoggedIn:!1,shareAuthStatus:!1,cookiesToCollect:["Bounced"],mscomCookies:!1,userConsentCookieName:"MSCC",userConsented:undefined,useBeacon:!0,urlCollectHash:!1,urlCollectQuery:!0,initCv:!1,enabledFeatures:!0,ix:{a:!1,g:!1},autoCapture:{pageView:!0,onLoad:!0,onUnload:!0,click:!0,scroll:!1,resize:!1,jsError:!0,addin:!0,perf:!0,assets:!1,lineage:!1,invalidEvents:!1,msTags:!0,awaTags:!0,eventTooLong:!0,corsDisallowed:!0},callback:{pageName:null,pageActionPageTags:null,pageViewPageTags:null,contentUpdatePageTags:null,pageActionContentTags:null,signedinStatus:null,jsllEventCallback:null,pageUnloadTimings:null},coreData:{referrerUri:document.referrer||undefined,requestUri:"",appId:window.location.hostname,pageName:"",title:"",pageType:"",env:"",product:"",market:"",serverImpressionGuid:"",expId:"",pageTags:{}}};awa.getConfig=function(){return n};y=[];for(p in n)typeof n[p]=="object"&&y.push(p);var f=["ver","name","time","flags","os","appId","cV","deviceClass"],et=f.length,yt=vt(),pt=yt?2083:15e3,ot="",e=!1,st=t(navigator)&&t(navigator.sendBeacon);awa.experimentIdTag="expId";awa.isAvailable=!0;awa.requestBody="";awa.getQueryStringParameters=function(){return ot};Object.freeze&&Object.freeze(awa.verbosityLevels);awa.capabilitiesCheck();var d=window.XDomainRequest?"XDomainRequest":"xhr",wt=function(){return d==="XDomainRequest"&&n.endpoint&&n.endpoint.indexOf(window.location.protocol)!==0?(awa.logger.logError("Unable to write event: CORS requests are not supported cross-protocol in this browser"),!1):!0},o=function(){e=!0;n.sendMode==1&&(awa.vortexEvents.overrideQueueBehavior({domReadyState:"complete"}),awa.vortexEvents.drainQueuedEvents())};awa.firstEventDone=o;awa.firstEventDoneTasks=function(){awa.vortexEvents.drainQueuedEvents()};var ht=function(n,t){awa.logger.logError("Failure sending data to vortex: "+n+"Error: "+t.toString())},u=function(t,i,r){awa.OnSuccessfulVortexRequest&&awa.OnSuccessfulVortexRequest(t);i&&typeof n.callback.jsllEventCallback=="function"&&n.callback.jsllEventCallback(i);e===!1&&(e=!0,n.sendMode!==1||r||o());awa.logger.logInformation("Success sending data to vortex")},bt=function(n){awa.logger.logError("Failure sending data to vortex using XDomainRequest.  Status code:"+n.status)},l="'",r='"',g="-",kt="*";for(awa.init=function(t){if(!awa.isInitialized){awa.isInitialized=!0;t&&(i.removeNonObjectsAndInvalidElements(t,y),n=i.extend(!0,n,t));var r=n.sendMode;r==0&&(e=!0,awa.vortexEvents.overrideQueueBehavior({domReadyState:"complete"}));r>=1&&awa.vortexEvents.overrideQueueBehavior({domReadyState:"notComplete"});r===2&&awa.vortexEvents.batchEventsByNumber(n.batchSize);awa.consoleVerbosity=n.logLevel;awa.ct.initialize(n);awa.ix.init(n);n.initCv&&awa.cv.init()}},w=function(r,u){var o,s,f,e,h,c;awa.translateEventFromIntermediateStructure&&(r=awa.translateEventFromIntermediateStructure(r));o=r.cV;s=r.appId;r.ver="2.1";r.cV=t(o)?o:awa.cv.getValue();r.time=t(r.time)?r.time:i.dateToISOString(new Date);r.os=i.getOs();r.deviceClass=awa.ids.getDeviceClass()||undefined;r.appId=i.getAppIdWithPrefix(s?s:n.coreData.appId);f=window.location.hostname;t(f)||(f=window.location.protocol=="file:"?"local":f);e={ver:"1.1",libVer:"4.2.8",domain:f,msfpc:u.MSFPC,userConsent:t(n.userConsented)?n.userConsented:t(u[n.userConsentCookieName])?!0:!1,anid:u.ANON?u.ANON.slice(0,34):undefined};h=r.serviceName?r.serviceName:n.coreData.serviceName;h&&(e.serviceName=h);r.ext?r.ext.javascript=e:r.ext={javascript:e};c=awa.ids.getMuidUserId(u);c&&(r.ext.user={localId:c});var p=n.coreData.env,y=r.ext.app?r.ext.app.env:undefined,l=t(y)?y:p,a=n.coreData.expId?awa.ids.readExpIdFromCoreData(n.coreData.expId):awa.ids.readExpIdFromCookie(u),v=awa.ids.getAppUserId();return(t(l)||t(a)||t(v))&&(r.ext.app||(r.ext.app={}),l&&(r.ext.app.env=l),a&&(r.ext.app.expId=a),v&&(r.ext.app.userId=v)),n.validateEvents&&awa.isEventValid&&!awa.isEventValid(r)?undefined:(awa._validateAndTranslateEvent(r),r)},awa.writeEvent=function(i,r){var c,l,y,p,f,a,b;if(!awa.isInitialized){awa.vortexEvents.addEventToQueue(i);return}var s=!0,o=awa.cookie.getAllCookies(),k=t(o.MSFPC);if(Object.prototype.toString.call(i)==="[object Array]"){for(c=[],l=0;l<i.length;l++)y=w(i[l],o),y&&c.push(y);if(c.length!=0)i=c,s=!1;else return}else if(i=w(i,o),!i)return;if(n.sendEvents){if(p=JSON.stringify(i).length+n.endpoint.length,s&&p+7>pt&&(awa.logger.logWarning("event is too large to send using get -- using post instead"),n.autoCapture.eventTooLong&&(f={},f.eventName=i.name,f.payloadLength=p,awa.ct.captureEventTooLong(f)),s=!1),!s&&!wt()){n.autoCapture.corsDisallowed&&(f={},f.eventName=i.name,f.type="CorsDisallowed",awa.ct.captureCorsDisallowed(f));return}if(s)if(e===!1||n.provisionMsfpc&&!k||n.shareAuthStatus===!0){if(k=!0,a="/t.js",n.shareAuthStatus===!0&&ft()===!0)if(n.authMethod===1){if(b=t(o.Bounced),b){tt(n.endpoint+"/asm.gif?"+h(i,o),i);return}a="/asm.js"}else n.authMethod===2&&(a="/asa.js");at(n.endpoint+a+"?"+h(i,o),i,r)}else st&&n.useBeacon===!0?ut(i):tt(n.endpoint+"/t.gif?"+h(i,o),i);else st&&n.useBeacon===!0&&n.shareAuthStatus===!1?ut(i):v(i)}else u(h(i,o),i)},awa.sendEventThroughIframe=function(t){var r=document.createElement("iframe");r.id="telframe";r.style.display="none";n.authMethod==1&&(r.addEventListener?r.addEventListener("load",o):r.attachEvent("onload",o));r.src=t;awa.cookie.setCookie("Bounced",i.dateToISOString(new Date),.5/24);document.body.appendChild(r)},awa._registerSchemas=function(n){for(var t=0;t<n.length;t++)awa._schemas[n[t].name]=n[t]},awa.console=window.console||{},awa.console.fallback=awa.console.log||function(){},b=["log","info","warn","error","trace"],c=0;c<b.length;c++)k=b[c],awa.console[k]||(awa.console[k]=awa.console.fallback);awa.extendCoreData=function(t){i.removeInvalidElements(t);n.coreData=i.extend(!0,n.coreData,t)};awa._validateAndTranslateEvent=function(n){return{event:n}}}();awa._registerSchemas([{name:"Ms.Cll.Javascript.CorsDisallowed","Ms.Cll.Javascript.CorsDisallowed":{part:"C",def:{fields:[{req:!0,name:"eventName",type:"string"},{name:"pageName",type:"string"},{name:"market",type:"string"},{name:"uri",type:"string"},{name:"impressionGuid",type:"string"},{name:"serverImpressionGuid",type:"string"}]}}},{name:"Ms.Cll.Javascript.EventTooLong","Ms.Cll.Javascript.EventTooLong":{part:"C",def:{fields:[{req:!0,name:"eventName",type:"string"},{req:!0,name:"payloadLength",type:"int32"},{name:"pageName",type:"string"},{name:"market",type:"string"},{name:"uri",type:"string"},{name:"impressionGuid",type:"string"},{name:"serverImpressionGuid",type:"string"}]}}},{name:"Ms.Cll.Javascript.Error","Ms.Telemetry.Error":{part:"B",def:{fields:[{name:"errorName",type:"string"},{name:"errorMessage",type:"string"},{name:"severity",type:"int32"},{name:"errorType",type:"string"},{name:"errorCode",type:"int32"},{name:"lineNumber",type:"uint32"},{name:"isDisplayed",type:"bool"},{name:"errorLocation",type:"string"},{name:"errorMethod",type:"string"}]}},"Ms.Cll.Javascript.Error":{part:"C",def:{fields:[{req:!0,name:"code",type:"int32"},{req:!0,name:"message",type:"string"},{name:"pageName",type:"string"},{name:"market",type:"string"},{name:"uri",type:"string"},{name:"impressionGuid",type:"string"},{name:"serverImpressionGuid",type:"string"}]}}},{name:"Ms.Cll.Javascript.EventDropped","Ms.Cll.Javascript.EventDropped":{part:"C",def:{fields:[{req:!0,name:"eventName",type:"string"},{name:"pageName",type:"string"},{name:"market",type:"string"},{name:"uri",type:"string"},{name:"impressionGuid",type:"string"},{name:"serverImpressionGuid",type:"string"},{name:"droppedInfo",type:"string"}]}}},{name:"Ms.Webi.ClientError","Ms.Webi.ClientError":{part:"B",def:{fields:[{req:!0,name:"errorInfo",type:"string"},{name:"wasDisplayed",type:"bool"},{name:"impressionGuid",type:"string"},{name:"serverImpressionGuid",type:"string"},{name:"pageName",type:"string"},{name:"market",type:"string"},{name:"uri",type:"string"},{name:"errorName",type:"string"},{name:"errorMessage",type:"string"},{name:"severity",type:"int32"},{name:"errorType",type:"string"},{name:"errorCode",type:"int32"},{name:"lineNumber",type:"uint32"},{name:"isDisplayed",type:"bool"},{name:"errorLocation",type:"string"},{name:"errorMethod",type:"string"}]}}},{name:"Ms.Webi.OutgoingRequest","Ms.Qos.OutgoingServiceRequest":{part:"B",def:{fields:[{req:!0,name:"operationName",type:"string"},{name:"targetUri",type:"string"},{req:!0,name:"latencyMs",type:"int32"},{name:"serviceErrorCode",type:"int32"},{req:!0,name:"succeeded",type:"bool"},{name:"requestMethod",type:"string"},{name:"responseContentType",type:"string"},{name:"protocol",type:"string"},{name:"protocolStatusCode",type:"string"},{req:!0,name:"dependencyOperationName",type:"string"},{name:"dependencyOperationVersion",type:"string"},{req:!0,name:"dependencyName",type:"string"},{name:"dependencyType",type:"string"},{name:"responseSizeBytes",type:"int32"},{name:"requestStatus",type:"int32"}]}},"Ms.Webi.OutgoingRequest":{part:"C",def:{fields:[{name:"impressionGuid",type:"string"},{name:"message",type:"string"},{name:"retryCount",type:"int32"},{name:"customData",type:"string"},{name:"serverImpressionGuid",type:"string"},{name:"pageName",type:"string"},{name:"market",type:"string"},{name:"uri",type:"string"}]}}},{name:"Ms.Webi.PageView","Ms.Content.PageView":{part:"B",def:{fields:[{name:"ver",type:"string"},{req:!0,name:"impressionGuid",type:"string"},{req:!0,name:"pageName",type:"string"},{name:"uri",type:"string"},{name:"referrerUri",type:"string"},{name:"pageType",type:"string"},{name:"pageTags",type:"string"},{name:"product",type:"string"},{name:"screenState",type:"int32"},{name:"actionType",type:"string"},{name:"behavior",type:"int32"},{name:"resHeight",type:"int32"},{name:"resWidth",type:"int32"},{name:"vpHeight",type:"int32"},{name:"vpWidth",type:"int32"},{name:"market",type:"string"}]}},"Ms.Webi.PageView":{part:"C",def:{fields:[{name:"cookieEnabled",type:"bool"},{name:"flashInstalled",type:"bool"},{name:"flashVersion",type:"string"},{name:"cookies",type:"string"},{name:"isJs",type:"bool"},{name:"title",type:"string"},{name:"isLoggedIn",type:"bool"},{name:"isManual",type:"bool"},{name:"serverImpressionGuid",type:"string"}]}}},{name:"Ms.Webi.ContentUpdate","Ms.Content.ContentUpdate":{part:"B",def:{fields:[{name:"ver",type:"string"},{req:!0,name:"impressionGuid",type:"string"},{req:!0,name:"pageName",type:"string"},{name:"uri",type:"string"},{name:"pageTags",type:"string"},{name:"pageHeight",type:"int32"},{name:"vpHeight",type:"int32"},{name:"vpWidth",type:"int32"},{name:"market",type:"string"},{name:"actionType",type:"string"},{name:"behavior",type:"int32"},{name:"vScrollOffset",type:"int32"},{name:"hScrollOffset",type:"int32"},{name:"contentVer",type:"string"},{req:!0,name:"content",type:"string"}]}},"Ms.Webi.ContentUpdate":{part:"C",def:{fields:[{name:"pageLoadTime",type:"int32"},{name:"title",type:"string"},{name:"isJs",type:"bool"},{name:"cookieEnabled",type:"bool"},{name:"isLoggedIn",type:"bool"},{name:"isManual",type:"bool"},{name:"isDomComplete",type:"bool"},{name:"serverImpressionGuid",type:"string"},{name:"timings",type:"string"}]}}},{name:"Ms.Webi.PageAction","Ms.Content.PageAction":{part:"B",def:{fields:[{name:"ver",type:"string"},{req:!0,name:"impressionGuid",type:"string"},{req:!0,name:"pageName",type:"string"},{name:"uri",type:"string"},{name:"destUri",type:"string"},{name:"market",type:"string"},{name:"pageType",type:"string"},{name:"pageTags",type:"string"},{name:"product",type:"string"},{name:"screenState",type:"int32"},{name:"actionType",type:"string"},{name:"behavior",type:"int32"},{name:"contentVer",type:"string"},{name:"content",type:"string"}]}},"Ms.Webi.PageAction":{part:"C",def:{fields:[{name:"timeToAction",type:"int32"},{name:"cookieEnabled",type:"bool"},{name:"cookies",type:"string"},{name:"isJs",type:"bool"},{name:"title",type:"string"},{name:"referrerUri",type:"string"},{name:"isLoggedIn",type:"bool"},{name:"isManual",type:"bool"},{name:"serverImpressionGuid",type:"string"}]}}},{name:"Ms.Webi.PageUnload","Ms.Content.PageUnload":{part:"B",def:{fields:[{name:"ver",type:"string"},{req:!0,name:"impressionGuid",type:"string"},{req:!0,name:"pageName",type:"string"},{name:"uri",type:"string"}]}},"Ms.Webi.PageUnload":{part:"C",def:{fields:[{name:"dwellTime",type:"int32"},{name:"scrollDepth",type:"string"},{name:"serverImpressionGuid",type:"string"},{name:"timings",type:"string"},{name:"vScrollOffset",type:"int32"},{name:"pageHeight",type:"int32"},{name:"vpHeight",type:"int32"},{name:"pageLoadTime",type:"int32"}]}}}]);awa.isEventValid=function(n){function r(n,t){var i=n.eventName+" - "+n.droppedInfo;t?(l("Dropped event "+i),awa.ct.captureEventDrop(n)):l("Dropped field from "+i)}function a(n,t){for(var i=0;i<n.length;i++)if(n[i]==t)return!0;return!1}function c(n,i){for(var e,u,l,f,h=[],v=i.length,o=0;o<v;o++){e=i[o];u=e.name;h.push(u);var y=e.type,c=n[u],s=e.req;if(awa.utils.isValueAssigned(c)){if(!awa.utils.isOfCorrectType(y,c)){if(r({eventName:t,droppedInfo:"Incorrect type: "+u},s),s===!0)return!1;delete n[u]}}else if(s===!0)return r({eventName:t,droppedInfo:"Missing field: "+u},!0),!1}l=0;for(f in n)f=="baseData"||f=="baseType"||a(h,f)||(r({eventName:t,droppedInfo:"Unexpected field "+f},!1),delete n[f]);return!0}var l=awa.logger.logWarning,u,f,e,o;if(n){var t=n.name,v=awa._schemas,s=n.data.baseType,h=t,i=v[t];if(i){if(s&&(u=n.data.baseData,f=i[s]?i[s].def.fields:undefined,u&&f&&!c(u,f))||h&&(e=n.data,o=i[h]?i[h].def.fields:undefined,e&&o&&!c(e,o)))return!1}else return r({eventName:t,droppedInfo:"Not registered in JSLL"},!0),!1;return!0}return!1};awa.translateEventFromIntermediateStructure=function(n){var u=n.name,t=n.data,i=awa.utils,e,r,o,f,s,h;if(i.isValueAssigned(t[u])){e=i.extend(!0,t[u]);delete t[u];r=[];for(o in t)r.push(o);return f=i.extend(!0,t[r[0]]),delete t[r[0]],delete n.content,s=i.extend(!0,JSON.stringify(f)!=="{}"?{baseData:f}:{},e,{baseType:r[0]}),h=i.extend(!0,n,{data:s}),h}return n};awa.ix=function(){function e(n){r=n.ix}function u(){var r="%010";return n(t)||n(i)?"https://dpm.demdex.net/id?d_orgid=A5FF776A5245AF830A490D44@AdobeOrg&d_cid="+(n(t)?"88170%01"+t+r:"")+(n(i)?(n(t)?"%01":"")+"88169%01"+i+r:"")+"&d_ver=2":undefined}function f(){return n(t)?"https://ad.doubleclick.net/ddm/activity/src=6952136;type=store0;cat=jsll;u58="+t+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=1?":undefined}function o(e){var o,s,h;e&&(t=e.mc1,i=e.anid,(n(t)||n(i))&&(r.a&&(o=new XMLHttpRequest,o.onreadystatechange=function(){o.readyState==4&&o.status==200&&awa.ct.captureSwap(JSON.parse(o.responseText))},s=u(),n(s)&&(o.open("GET",s,!0),o.setRequestHeader("Accept","application/json; charset=utf-8"),o.send())),r.g&&(s=f(),n(s)&&(h=new Image,h.src=s))))}var r={},t="",i="",n=awa.utils.isValueAssigned;return{init:e,set:o,testHook:{getAdobeUrl:u,getGoogleUrl:f,setMc1:function(n){t=n},setAnid:function(n){i=n}}}}();awa.ct=function(){function ui(t){var s,f,e,o,u;awa.isAvailable&&(n=t,r=n.autoCapture,i=n.useShortNameForContentBlob===!0?ht.shortNames:ht.longNames,r.pageView&&at({isAuto:!0}),r.click&&(window.addEventListener?(s=navigator.appVersion.indexOf("MSIE")!==-1?"click":"mousedown",window.addEventListener(s,y,!1),window.addEventListener("keyup",y,!1)):document.attachEvent&&(document.attachEvent("onclick",y),document.attachEvent("keyup",y))),r.jsError&&lr.init(),r.scroll&&(f=g(null,function(){w({isAuto:!0,actionType:awa.actionType.SCROLL})},n.debounceMs.scroll),window.addEventListener?window.addEventListener("scroll",f):window.attachEvent&&window.attachEvent("onscroll",f)),r.resize&&(e=g(function(){w({isAuto:!0,actionType:awa.actionType.RESIZE})},null,n.debounceMs.resize),window.addEventListener?window.addEventListener("resize",e):window.attachEvent&&window.attachEvent("onresize",e)),(r.onUnload||n.manualPageUnload)&&(o=function(){var n=kt();a.v=a.v>n.v?a.v:n.v},window.addEventListener?window.addEventListener("scroll",o):window.attachEvent&&window.attachEvent("onscroll",o)),r.onUnload&&(window.addEventListener?(window.addEventListener("beforeunload",v),window.addEventListener("unload",v)):window.attachEvent&&(window.attachEvent("onbeforeunload",v),window.attachEvent("onunload",v))),n.sendMode==2&&(u=awa.vortexEvents.batchQueuedEvents,window.addEventListener?(window.addEventListener("beforeunload",u),window.addEventListener("unload",u)):window.attachEvent&&(window.attachEvent("onbeforeunload",u),window.attachEvent("onunload",u))),n.authMethod==2&&n.shareAuthStatus==!0&&n.isLoggedIn==!0&&(window.addEventListener?window.addEventListener("message",ct):window.attachEvent&&window.attachEvent("onmessage",ct)),(n.syncMuid||n.autoCapture.onLoad)&&lt(awa.ct.domReadyTasksWrapper))}function ct(n){n.data=="firstEventDone"&&(n.origin=="https://web.vortex.data.microsoft.com"||n.origin=="https://login.microsoftonline.com")&&awa.firstEventDone()}function lt(n){/in/.test(document.readyState)?setTimeout(function(){awa.ct.onDomReadyDo(n)},100):n.call()}function fi(){n.syncMuid&&oi();r.onLoad&&(document.readyState==="complete"?nt():window.addEventListener?window.addEventListener("load",nt):window.attachEvent&&window.attachEvent("onload",nt))}function ei(){awa.ct.domReadyTasks()}function f(){if(n.callback&&typeof n.callback.pageName=="function")return n.callback.pageName();if(n.coreData.pageName)return n.coreData.pageName;var i=window.location.pathname,t=i.split("/");return t.length>2&&t[2]!==""?t[2]:"Home"}function d(){return n.coreData.title?n.coreData.title:document.title.substring(0,150)}function oi(){var r=t.getMuidHost(n.muidDomain||"microsoft.com"),u,i;r?(u=(window.location.protocol||"http:")+"//"+r+"/c.gif?DI=4050&did=1&t=",i=document.createElement("IMG"),i.style.display="none",i.src=u,i.hidden="",i["aria-hidden"]="true",i.role="presentation"):awa.logger.logWarning("Unable to get a muid host for the configured muidDomain '"+n.muidDomain+"'.  Unable to sync muid")}function si(n){return"which"in n?n.which===3:"button"in n?n.button===2:void 0}function hi(n){return"which"in n?n.which===1:"button"in n?n.button===1:void 0}function ci(n){if("keyCode"in n)return n.keyCode===13}function li(n){if("keyCode"in n)return n.keyCode===32}function y(n){var o={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},r=n||window.event,i=r.srcElement||r.target,u={isAuto:!0},f,e;if(si(r))u.actionType=k.CLICKRIGHT,f=t.findClosestByAttribute(i,"data-bi-bhvr"),t.isValueAssigned(f)||(u.behavior=awa.behavior.CONTEXTMENU);else if(hi(r))u.actionType=k.CLICKLEFT;else if(ci(r))u.actionType=k.KEYBOARDENTER;else if(li(r))u.actionType=k.KEYBOARDSPACE;else return;while(i&&i.tagName)if(o[i.tagName.toUpperCase()]){e=i.tagName.toUpperCase()==="INPUT"?ri[i.type.toUpperCase()]:!0;e&&(p(i,ii)||tt(i,u));break}else{i=i.parentElement||i.parentNode;continue}}function p(n,i){var r=t.findClosestByAttribute(n,i);return t.isValueAssigned(r)?!0:!1}function g(n,t,i){var r;return function(){var u=this,f=arguments,e=function(){r=null;t&&t.apply(u,f)},o=!r;clearTimeout(r);r=setTimeout(e,i);o&&n&&n.apply(u,f)}}function at(i){var v,a,y;yi();i=i||{};var p=ot.getAllCookies(),r={},c=awa.utils.extend(!0,n.coreData.pageTags);c.metaTags=u(r,!0);ut(c,p);typeof n.callback.pageViewPageTags=="function"&&(c=t.extend(!0,c,n.callback.pageViewPageTags()));v=bt();a={name:"Ms.Webi.PageView",data:{baseData:{ver:b,impressionGuid:h.getPageViewImpressionGuid(),pageName:i.pageName||f(),uri:i.uri||o(),referrerUri:i.referrerUri||n.coreData.referrerUri,market:r.market,pageType:r.pageType,product:r.product,resHeight:v.h,resWidth:v.w,pageTags:JSON.stringify(t.extend(!0,c,i.pageTags)),actionType:i.actionType||r.actionType,behavior:l(i.behavior)||(r.behavior?r.behavior:awa.behavior.UNDEFINED)},baseType:"Ms.Content.PageView",cookieEnabled:et(),cookies:pt(p),isJs:!0,title:i.title||d(),isLoggedIn:n.isLoggedIn,serverImpressionGuid:r.serverImpressionGuid,isManual:!0},flags:r.isSensitive?s:undefined};n.autoCapture.addin&&(y=sr(),a.data.flashInstalled=y.installed||!1,a.data.flashVersion=y.version||"");e(a,i,r.env,!0)}function nt(){w({isAuto:!0,isDomComplete:!0})}function w(i){var c,a,w,p,v,y,k;i=i||{};c={};a=awa.utils.extend(!0,n.coreData.pageTags);a.metaTags=u(c);w=ot.getAllCookies();ut(a,w);i&&i.isDomComplete&&r.perf===!0&&window.performance&&(window.performance.timing&&(a.timing=t.stringifyField("timing",window.performance.timing)),r.assets===!0&&(p=t.getPerformanceData(),p&&(a.AssetPerformance=t.stringifyField("AssetPerformance",p))));typeof n.callback.contentUpdatePageTags=="function"&&(a=t.extend(!0,a,n.callback.contentUpdatePageTags()));v=ft();y={};t.isValueAssigned(i.vScrollOffset)&&t.isValueAssigned(i.hScrollOffset)||(y=kt());k={name:"Ms.Webi.ContentUpdate",data:{baseData:{ver:b,impressionGuid:h.getImpressionGuid(),pageName:i.pageName||f(),uri:i.uri||o(),market:c.market,pageTags:JSON.stringify(t.extend(!0,a,i.pageTags)),pageHeight:i.pageHeight||document.body.scrollHeight,vpHeight:v.h,vpWidth:v.w,actionType:i.actionType||c.actionType,behavior:l(i.behavior)||(c.behavior?c.behavior:awa.behavior.UNDEFINED),vScrollOffset:i.vScrollOffset||y.v,hScrollOffset:i.hScrollOffset||y.h,contentVer:ni,content:vt(i.content)||it(tr(v))},baseType:"Ms.Content.ContentUpdate",timings:JSON.stringify(i.timings),title:i.title||d(),cookieEnabled:et(),isJs:!0,isManual:!0,isDomComplete:!1,isLoggedIn:n.isLoggedIn,serverImpressionGuid:c.serverImpressionGuid},flags:c.isSensitive?s:undefined};e(k,i,c.env,!1)}function ai(n){tt(null,n)}function vi(n,t){tt(n,t)}function tt(i,c){var k,w,g;if(c=c||{},k=c.isAuto?!1:p(i,ii),i&&p(i,ti)&&!k){awa.logger.logWarning("The element has do-not-track attribute set.  PageAction will not be sent.");return}var nt=ot.getAllCookies(),a={},y=awa.utils.extend(!0,n.coreData.pageTags),v={};i=t.returnDomObjectIfjQuery(i);i&&(a.targetUri=er(i),v=rt(i,!0),r.msTags&&(v=t.extend(v,or(i))),v.bhvr&&(a.behavior=l(t.extractFieldFromObject(v,"bhvr"))));y.metaTags=u(a);ut(y,nt);typeof n.callback.pageActionPageTags=="function"&&(y=t.extend(!0,y,n.callback.pageActionPageTags(i)));w=n.callback.pageActionContentTags;g={name:"Ms.Webi.PageAction",data:{baseData:{ver:b,impressionGuid:h.getImpressionGuid(),pageName:c.pageName||f(),uri:c.uri||o(),pageTags:t.stringifyField("pageTags",t.extend(!0,y,c.pageTags)),contentVer:ni,market:a.market,destUri:c.targetUri||a.targetUri,pageType:a.pageType,product:a.product,actionType:c.actionType||a.actionType,behavior:l(c.behavior)||(a.behavior?a.behavior:awa.behavior.UNDEFINED),content:vt(c.content)||t.bracketIt(JSON.stringify(t.extend(v,typeof w=="function"?w(i):{},c&&c.contentTags?c.contentTags:{})))},baseType:"Ms.Content.PageAction",timeToAction:yt(),cookieEnabled:et(),cookies:pt(nt),isJs:!0,title:c.title||d(),isLoggedIn:n.isLoggedIn,isManual:!0,referrerUri:c.referrerUri||n.coreData.referrerUri,serverImpressionGuid:a.serverImpressionGuid},flags:a.isSensitive?s:undefined};e(g,c,a.env,!0)}function yi(){awa.timespanHandler.recordTimeSpan("dwellTime",!1);a.v=0;st=!1}function v(t){var i;if(!st){st=!0;t=t||{};i={};u(i);var r=n.callback.pageUnloadTimings,o=document.body.scrollHeight,c={name:"Ms.Webi.PageUnload",data:{baseData:{ver:b,impressionGuid:h.getImpressionGuid(),pageName:t.pageName||f()},baseType:"Ms.Content.PageUnload",dwellTime:awa.timespanHandler.recordTimeSpan("dwellTime",!0),scrollDepth:t.scrollDepth||a.v.toString()+"/"+o.toString(),vScrollOffset:t.vScrollOffset||a.v,pageHeight:t.pageHeight||o,vpHeight:ft().h,serverImpressionGuid:i.serverImpressionGuid,timings:r?r():undefined},flags:i.isSensitive?s:undefined};e(c,t,i.env,!0)}}function pi(n){var t,i;n&&(t={},u(t),i={name:"Ms.Webi.ClientError",data:{errorInfo:JSON.stringify(n.errorInfo),wasDisplayed:n.displayedToUser||!1,impressionGuid:h.getImpressionGuid(),pageName:n.pageName||f(),uri:n.uri||o(),market:t.market,serverImpressionGuid:t.serverImpressionGuid},flags:t.isSensitive?s:undefined},e(i,n,t.env,!1))}function wi(n){var t,i;n&&(t={},u(t),i={name:"Ms.Cll.Javascript.CorsDisallowed",data:{eventName:n.eventName,pageName:f(),uri:n.uri||o(),market:t.market,impressionGuid:h.getImpressionGuid(),serverImpressionGuid:t.serverImpressionGuid},flags:t.isSensitive?s:undefined},e(i,n,t.env,!1))}function bi(n){var t,i;n&&(t={},u(t),i={name:"Ms.Cll.Javascript.EventTooLong",data:{eventName:n.eventName,payloadLength:n.payloadLength,pageName:n.pageName||f(),uri:n.uri||o(),market:t.market,impressionGuid:h.getImpressionGuid(),serverImpressionGuid:t.serverImpressionGuid},flags:t.isSensitive?s:undefined},e(i,n,t.env,!1))}function ki(n){var t,i;n&&r.invalidEvents&&(t={},u(t),i={name:"Ms.Cll.Javascript.EventDropped",data:{eventName:n.eventName,droppedInfo:n.droppedInfo,pageName:n.pageName||f(),uri:n.uri||o(),market:t.market,impressionGuid:h.getImpressionGuid(),serverImpressionGuid:t.serverImpressionGuid},flags:t.isSensitive?s:undefined},e(i,n,t.env,!1))}function di(){return}function gi(n){var i={},t;u(i);t=n.data;t.serverImpressionGuid=i.serverImpressionGuid;t.market=i.market;t.pageName=f();t.uri=o();e(n,undefined,i.env,!1)}function nr(n,i,r){r.appId&&(n.appId=r.appId);r.serviceName&&(n.serviceName=r.serviceName);i.isManual=r.isAuto!==!0?!0:undefined;r.isDomComplete&&(i.isDomComplete=r.isDomComplete,i.pageLoadTime=r.pageLoadTime||t.getPageLoadTime())}function vt(n){return t.isValueAssigned(n)?Object.prototype.toString.call(n)==="[object Array]"?JSON.stringify(n):t.bracketIt(JSON.stringify(n)):undefined}function e(n,i,r,u){n.time=t.dateToISOString(new Date);var f=n.data;i&&nr(n,f,i);r&&(n.ext={app:{env:r}});ar.SendOrScheduleEvent(n,u)}function yt(){if(window.performance&&window.performance.timing){var n=window.performance.timing.navigationStart;if(n!==0)return(new Date).getTime()-n}return-1}function tr(n){return{top:0,bottom:n.h,left:0,right:n.w}}function it(r){var u=[],f=document.querySelectorAll(t.bracketIt(i.areaName)+","+t.bracketIt(i.slotNumber)+","+t.bracketIt(n.biBlobAttributeTag));return ir(f,u,r),JSON.stringify(u)}function ir(n,i,r){var u,f,e;if(n)for(u=0;u<n.length;u++)f=n[u],p(f,ti)||t.isElementTrulyVisible(f,r)&&(e=rt(f,!1),e&&i.push(e))}function rr(t){for(var e=[],o=[],l=">",a=n.biBlobAttributeTag,v="data-module-id",s=undefined,r,u,h,c,f;t&&t.getAttribute;)h=t.getAttribute(a)||t[a],c=t.getAttribute(v)||t[v],h?(f=JSON.parse(h),f&&(r=f.cN||f.cT,u=f.id||undefined,(r||u)&&(e.push(r),c&&(s=r),o.push(u)))):(r=t.getAttribute(i.contentName)||t.getAttribute(i.contentType),u=t.getAttribute(i.id)||undefined,(r||u)&&(e.push(r),c&&(s=r),o.push(u))),t=t.parentElement;return{lineage:e.join(l),lineageById:o.join(l),containerName:s}}function rt(r,u){var f,c,l,o,a,s,h,e,v;if(!r)return"";if(f={},c=awa.utils.findClosestByAttribute(r,n.biBlobAttributeTag),c&&(l=c.getAttribute(n.biBlobAttributeTag)),l)f=JSON.parse(l);else for(o=t.findClosestByAttribute(r,t.bracketIt(i.id)),o=t.returnDomObjectIfjQuery(r),a=t.findClosestByAttribute(r,i.areaName),s=awa.utils.extend({},fr(a)),f={id:o.getAttribute(i.id)||r.id||"",aN:s.areaName,sN:o.getAttribute(i.slotNumber),cN:o.getAttribute(i.contentName)||ur(r)||o.getAttribute("alt")||"",cS:o.getAttribute(i.contentSource)||s.contentSource,tN:s.templateName,pid:o.getAttribute(i.productId),cT:o.getAttribute(i.contentType)||s.type},f.id&&f.aN&&f.sN&&f.cN||awa.logger.logWarning("Invalid content blob.  Missing required attributes (id, aN/area, sN/slot), cN/contentName.  Content information will still be collected!"),i.isShortNames||(f={contentId:f.id,areaName:f.aN,slotNumber:f.sN,contentName:f.cN,contentSource:f.cS,templateName:f.tN,productId:f.pid,contentType:f.cT}),h=0;h<o.attributes.length;h++)(e=o.attributes[h],e.name!==i.id&&e.name!==i.areaName&&e.name!==i.slotNumber&&e.name!==i.contentName&&e.name!==i.contentSource&&e.name!==i.templateName&&e.name!==i.productId&&e.name!==i.contentType&&e.name.indexOf("data-bi-")!==-1)&&(v=e.name.replace("data-bi-",""),f[v]=e.value);return awa.utils.removeInvalidElements(f),n.autoCapture.lineage&&u&&(f=awa.utils.extend(f,rr(r))),f}function ur(t){if(n.useDefaultContentName===!1||dt(t)||!t.tagName)return"";var i;switch(t.tagName){case"A":i=document.all?t.innerText||t.innerHTML:t.text||t.innerHTML;case"IMG":case"AREA":i=t.alt;default:i=t.value||t.name||t.alt||t.innerText||t.id}return i.substring(0,cr)}function fr(n){return n=t.returnDomObjectIfjQuery(n),n?{areaName:n.getAttribute(i.areaName),templateName:n.getAttribute(i.templateName),contentSource:n.getAttribute(i.contentSource),product:n.getAttribute(i.productId),type:n.getAttribute(i.contentType)}:void 0}function pt(t){var o="",s={},i=[],f=n.cookiesToCollect,u,r,e;if(n.shareAuthStatus===!1)i=f;else for(u=0;u<f.length;u++)f[u]!=="ANON"&&i.push(f[u]);try{try{window.varCustomerCookies&&window.varCustomerCookies.length>0&&(i=i.concat(window.varCustomerCookies))}catch(h){}for(r in i)i.hasOwnProperty(r)&&(s.hasOwnProperty(i[r])||(s[i[r]]="",e=t[i[r]],e&&e!==""&&(o+=i[r]+"="+e+";")))}catch(h){}return o}function er(n){var t="",i,r;switch(n.tagName){case"A":case"AREA":t=n.href||"";break;case"IMG":t=hr(n);break;case"INPUT":i=n.type;r=window.event;i&&ri[i.toUpperCase()]&&(t=n.form?n.form.action||window.location.pathname:window.location.pathname)}return t}function or(n){for(var r={},t,i;n;)if(!dt(n)){for(t in n.attributes)t&&n.attributes[t]&&(i=n.attributes[t].name,i&&i.toLowerCase().indexOf("ms.")===0&&(r[i]=n.attributes[t].value));n=n.parentElement||n.parentNode}return r}function sr(){var n={},i,r,t,u;if(navigator.plugins["Shockwave Flash"])n.installed=!0,i=navigator.plugins["Shockwave Flash"],n.version=i.description.split(" ")[2];else if(navigator.userAgent.indexOf("MSIE")!==-1)for(r=(new Date).getFullYear()-1992,t=r;t>0;t--)try{u=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+t);n.installed=!0;n.version=t+".0";break}catch(f){}return n}function ut(t,i){if(n.enabledFeatures){if(t.enabledFeatures)return;var r=i.Features;r&&(t.enabledFeatures=r)}}function u(i,r){var u={},f={};return n.autoCapture.awaTags&&(u=wt("awa-",!0)),i.env=c(u,n.coreData,"env"),i.pageType=c(u,n.coreData,"pageType"),i.product=c(u,n.coreData,"product"),i.market=c(u,n.coreData,"market"),i.serverImpressionGuid=c(u,n.coreData,"serverImpressionGuid"),i.isSensitive=c(u,n.coreData,"isSensitive"),!i.behavior&&r&&(i.behavior=l(c(u,n.coreData,"behavior"))),n.autoCapture.msTags&&(f=wt("ms.",!1),u=t.extend(!0,u,f)),u}function c(n,i,r){return i[r]?i[r]:t.extractFieldFromObject(n,r)}function wt(n,t){for(var u={},i,f,e,o=document.querySelectorAll("meta"),r=0;r<o.length;r++)i=o[r],i.name&&(f=i.name.toLowerCase(),f.indexOf(n)===0&&(e=t?i.name.replace(n,""):i.name,u[e]=i.content));return u}function bt(){var n={h:0,w:0};return window.screen&&(n.h=screen.height,n.w=screen.width),n}function ft(){var n={h:0,w:0};return window.screen&&(n.h=window.innerHeight||document.body.clientHeight||document.documentElement.clientHeight,n.w=window.innerWidth||document.body.clientWidth||document.documentElement.clientWidth),n}function kt(){return{h:parseInt(document.body.scrollLeft||document.documentElement.scrollLeft||window.pageXOffset||0,10),v:parseInt(document.body.scrollTop||document.documentElement.scrollTop||window.pageYOffset||0,10)}}function et(){return navigator.cookieEnabled}function hr(n){var r=n,i;if(r&&(i=t.findClosestAnchor(r),i&&i.length===1)){if(i[0].href)return i[0].href;if(i[0].src)return i[0].src}return""}function dt(n){if(!n||!n.attributes)return!1;try{var i=n.getAttribute("data-dc");return t.isValueAssigned(i)?i.toLowerCase()==="pii"?!0:!1:!1}catch(r){return!1}}function gt(n){for(var t=0;t<awa.behaviorKeys.length;t++)if(awa.behavior[awa.behaviorKeys[t]]===n)return!0;return awa.logger.logWarning("Unsupported behavior: "+n+"."),!1}function l(n){var i,r;if(t.isValueAssigned(n))if(i=Number(n),t.isOfCorrectType("uint16",i)){if(gt(i))return i}else if(t.isOfCorrectType("string",n)&&(r=awa.behavior[n.toUpperCase()],t.isOfCorrectType("uint16",r)))return r;return undefined}function o(){var i=window.location,r,u,f,e;return n.coreData.requestUri===""&&i?(r=i.protocol+"//"+i.hostname+(t.isValueAssigned(i.port)?":"+i.port:"")+i.pathname,n.urlCollectHash&&(r+=i.hash),n.urlCollectQuery&&(u=i.search,u||(f=window.location.hash,e=f.indexOf("?"),e!=-1&&(u=f.slice(e))),r+=u),r):n.coreData.requestUri}var b="1.0",ni="2.0",cr=200,s=524288,n={},r={},ot=awa.cookie,lr=awa.errorHandler,h=awa.ids,ar=awa.vortexEvents,t=awa.utils,k=awa.actionType,a={h:0,v:0},ti="data-bi-dnt",ii="data-bi-mto",st=!1,ht={longNames:{isShortNames:!1,id:"data-bi-id",areaName:"data-bi-area",slotNumber:"data-bi-slot",contentName:"data-bi-name",contentSource:"data-bi-source",templateName:"data-bi-view",productId:"data-bi-product",contentType:"data-bi-type"},shortNames:{isShortNames:!0,id:"data-bi-id",areaName:"data-bi-an",slotNumber:"data-bi-sn",contentName:"data-bi-cn",contentSource:"data-bi-cs",templateName:"data-bi-tn",productId:"data-bi-pid",contentType:"data-bi-ct"}},i=ht.longNames,ri={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};return{initialize:ui,capturePageView:at,captureContentUpdate:w,capturePageAction:vi,captureContentPageAction:ai,capturePageUnload:v,captureCorsDisallowed:wi,captureEventTooLong:bi,captureClientError:pi,captureEventDrop:ki,captureQos:gi,captureSwap:di,domReadyTasksWrapper:ei,onDomReadyDo:lt,domReadyTasks:fi,getTimeToClick:yt,getPageContent:it,testHook:{isBehaviorValid:gt,getValidBehavior:l,collectMetaTagsAndSetEventProperty:u,getElementContent:rt,getPageContent:it,debounce:g,getScreenResolution:bt,getViewportDimensions:ft}}}();awa.service=function(){function f(n){typeof n=="function"?t=n:typeof n=="string"&&(t=function(){return n})}var i=awa.timespanHandler,r=!0,u=!1,t=null,n=function(n){var s,h;if(typeof jQuery=="function"){r&&($.support.cors=!0);var c=n.additionalHeaders||{},l=n.body,v=l?JSON.stringify(l):n.data||undefined,y=n.maxRetry||0,o=0,p=$.noop,a=n.operationName||n.url,w=n.errorFormatter||function(n){return n},b=awa.ids,e,f={url:n.url,type:n.method,data:v,crossDomain:!0,headers:{},success:n.success,timeout:n.timeout,error:n.error,jsonp:n.jsonp,jsonpCallback:n.jsonpCallback,cache:n.cache,beforeSend:function(t){if(p(t),n.contractVersion&&t.setRequestHeader("MS-Contract-Version",n.contractVersion),(!awa.utils.isValueAssigned(n.addCvToRequestHeader)&&u||n.addCvToRequestHeader)&&awa.cv.isValid(e)&&t.setRequestHeader("MS-CV",e),c)for(var i in c)t.setRequestHeader(i,c[i])}};return n.dataType&&(f.dataType=n.dataType),n.noCacheBusting||(f.cache=!1),n.contentType&&(f.contentType=n.contentType),n.accept&&(f.headers.Accept=n.accept),n.accepts&&(f.accepts=n.accepts),n.async&&(f.async=n.async),n.xhrFields&&(f.xhrFields=n.xhrFields),n.complete&&(f.complete=n.complete),n.contents&&(f.contents=n.contents),n.context&&(f.context=n.context),n.dataFilter&&(f.dataFilter=n.dataFilter),n.global&&(f.global=n.global),n.ifModified&&(f.ifModified=n.ifModified),n.isLocal&&(f.isLocal=n.isLocal),n.mimeType&&(f.mimeType=n.mimeType),n.password&&(f.password=n.password),awa.utils.isValueAssigned(n.processData)&&(f.processData=n.processData),n.scriptCharset&&(f.scriptCharset=n.scriptCharset),n.statusCode&&(f.statusCode=n.statusCode),n.traditional&&(f.traditional=n.traditional),n.type&&(f.type=n.type),n.username&&(f.username=n.username),n.xhr&&(f.xhr=n.xhr),e=awa.cv.isValid(n.cV)?n.cV:awa.cv.increment(),s=function(i,r,u){var s=i.getResponseHeader("Content-Length"),h={name:"Ms.Webi.OutgoingRequest",cV:e,data:{baseData:{operationName:n.currentOperationName||window.location.href,targetUri:t?t(f.url):f.url,latencyMs:u,serviceErrorCode:!r&&i.responseJSON&&i.responseJSON.code&&!isNaN(i.responseJSON.code)?i.responseJSON.code:-1,succeeded:r,requestMethod:f.type,responseContentType:f.dataType,protocolStatusCode:i.status.toString(),dependencyOperationName:a,dependencyOperationVersion:n.version&&n.version.toString(),dependencyName:n.serviceName,dependencyType:"WebService",responseSizeBytes:s&&parseInt(s,10)},baseType:"Ms.Qos.OutgoingServiceRequest",impressionGuid:b.getImpressionGuid(),message:r?undefined:awa.utils.stringifyField("errorMessage",i.errorThrown),retryCount:o,customData:n.customDataCallBack&&typeof n.customDataCallBack=="function"?JSON.stringify(n.customDataCallBack(i)):undefined}};n.QosCallback&&typeof n.QosCallback=="function"&&n.QosCallback(i,h);awa.ct.captureQos(h)},h=function(){var t=a+"_Retry_"+o;return i.recordTimeSpan(t),$.ajax(f).then(function(n,r,u){var f=i.recordTimeSpan(t,!0);return s(u,!0,f),u},function(r,u){var c=i.recordTimeSpan(t,!0),f;return s(r,!1,c),f=$.Deferred(),y>o&&(r.status===0||r.status>=500&&r.status<600)?(o++,e=awa.cv.isValid(n.cV)?awa.cv.incrementExternal(e):awa.cv.increment(),setTimeout(function(){h().done(f.resolve).fail(f.reject)},50)):f.reject(r,u),f.promise()})},h().then(function(n,t,i){return i},function(t){return w(t,n)})}awa.logger.logError("jQuery is not defined, cannot use service module")};return{post:function(t){return n(awa.utils.extend({},t,{method:"POST"}))},get:function(t){return n(awa.utils.extend({maxRetry:1},t,{method:"GET"}))},put:function(t){return n(awa.utils.extend({},t,{method:"PUT"}))},del:function(t){return n(awa.utils.extend({},t,{method:"DELETE"}))},patch:function(t){return n(awa.utils.extend({},t,{method:"PATCH"}))},doNotChangeSupportCors:function(){r=!1},alwaysAddCvToRequestHeader:function(){u=!0},setTargetUriOverride:f}}();!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("MsSupportSdk",[],t):"object"==typeof exports?exports.MsSupportSdk=t():n.MsSupportSdk=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){n.exports=i(1)},function(n,t,i){var e,f,u=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},r;!function(n){var t,i,r;n.PROMISE_STATE_PENDING="pending";n.SDK_QUERY_PARAM_NAME={APP_ID:"appid",PARTNER_ID:"partnerid",MS_CV:"ms-cv",COMPONENT_ID:"sdk_componentid",TARGET_ORIGIN:"sdk_targetorigin",HOST_TYPE:"sdk_hosttype",XFRAME:"sdk_xframe",IS_PROXY:"sdk_isproxy",TIMEOUT:"sdk_timeout",SESSION_ID:"sdk_sessionid"},function(n){n[n.NONE=0]="NONE";n[n.IFRAME=1]="IFRAME";n[n.POPUP=2]="POPUP";n[n.EMBEDDED=3]="EMBEDDED";n[n.IOS=4]="IOS";n[n.ANDROID=5]="ANDROID";n[n.UWP=6]="UWP"}(n.HostType||(n.HostType={}));n.HostType;!function(n){n[n.UNLOADED="Unloaded"]="UNLOADED";n[n.ERROR="Error"]="ERROR";n[n.SIGNIN_REQUEST="SignInRequest"]="SIGNIN_REQUEST";n[n.SIGNIN_RESPONSE="SignInResponse"]="SIGNIN_RESPONSE";n[n.SIGNIN_REDIRECT="SignInRedirect"]="SIGNIN_REDIRECT"}(n.CommonEvent||(n.CommonEvent={}));n.CommonEvent;!function(n){n.LOADED="Loaded";n.HEIGHT_CHANGED="HeightChanged";n.CLIENT_CONFIG_UPDATE="__ClientConfigUpdate__"}(t=n.InternalEvent||(n.InternalEvent={}));!function(n){n.WEB="Web";n.IOS="iOS";n.ANDROID="Android";n.UWP="UWP"}(i=n.Platform||(n.Platform={}));!function(n){n.SG1="sg1.support.services.microsoft.com";n.DEV="dev.support.services.microsoft.com";n.STAGING="staging.support.services.microsoft.com";n.UAT="support-uat.microsoft.com";n.PARTNER="partner.support.services.microsoft.com";n.PRODUCTION="support.microsoft.com"}(r=n.SMCEnvironment||(n.SMCEnvironment={}))}(r||(r={}));!function(){}(r||(r={}));!function(n){var t;!function(n){function t(){function n(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return(n()+n()+n()+"4"+n().substr(0,3)+n()+n()+n()+n()).toLowerCase()}function i(){function n(){return Math.floor(16*Math.random()).toString(16)}var t="xxxxxxxx-xxxx-4xxx-Rxxx-xxxxxxxxxxxx".replace(/x/g,n);return t.replace("R",(8|Math.floor(3*Math.random())).toString(16))}n.generateUniqueId=t;n.createFormattedGuid=i}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(n){function t(n){for(var e,u,r,f,t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if("function"!=typeof Object.assign){if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(e=Object(n),u=0;u<t.length;u++)if(r=t[u],null!=r)for(f in r)Object.prototype.hasOwnProperty.call(r,f)&&(e[f]=r[f]);return e}return Object.assign.apply(Object,[n].concat(t))}function i(n){return"string"==typeof n?n:JSON.stringify(n)}function r(n){return"string"==typeof n?JSON.parse(n):n}function u(n,t){for(var i in n)if(t===i||t===n[i])return!0;return!1}n.cloneObject=t;n.stringify=i;n.parse=r;n.hasKeyOrValue=u}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t=function(){function t(t){t&&t.partnerId&&t.appId&&(this.sessionId=t.sessionId||n.utils.generateUniqueId(),this.partnerId=t.partnerId,this.appId=t.appId,this.platform=n.Platform.WEB,this.logger=t.logger,this.correlationVector=t.correlationVector)}return t}();n.SdkConfig=t}(r||(r={}));!function(n){var t;!function(n){function r(n,i){return t(n,"string",i)}function u(n,i){return t(n,"boolean",i)}function f(n,i){return t(n,"number",i)}function e(n,i){return t(n,"function",i)}function o(n,i){var r=t(n,"object",i);return r&&n&&"undefined"==typeof n.length&&(r=!1),r}function t(n,t,i){return(!i||"undefined"!=typeof n&&null!=n)&&(typeof n===t||"undefined"==typeof n||null==n)}function s(n,t,u){i(n,t,u,"string",r)}function h(n,t,r){i(n,t,r,"boolean",u)}function c(n,t,r){i(n,t,r,"number",f)}function l(n,t,r){i(n,t,r,"function",e)}function a(n,t,r){i(n,t,r,"array",o)}function v(n,t){if(null==t)throw new Error(n+" must NOT be null");}function i(n,t,i,r,u){if(!u(t,i))throw new TypeError(n+" must be of type "+r);}n.isString=r;n.isBoolean=u;n.isNumber=f;n.isFunction=e;n.isArray=o;n.verifyString=s;n.verifyBoolean=h;n.verifyNumber=c;n.verifyFunction=l;n.verifyArray=a;n.verifyNotNull=v}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(n){function t(n,t){for(var r=[],u=[],i=0;i<n.length;i++)r.push(parseInt(n[i]));for(i=0;i<t.length;i++)u.push(parseInt(t[i]));for(;r.length<u.length;)r.push(0);for(i=0;i<r.length&&i<u.length;i++){if(r[i]<u[i])return!0;if(r[i]>u[i])return!1}return!1}n.isLessThanMinimum=t}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t=function(){function n(){}return Object.defineProperty(n,"version",{get:function(){return"2.0.18180.1"},enumerable:!0,configurable:!0}),n}();n.SdkVersion=t}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){var r="Microsoft.Support.Sdk",u=function(){function i(i,u){u=u||n.SdkConfig.current;this.name=i;this.sdkVersion=n.SdkVersion.version;this.partnerId=u.partnerId;this.partnerAppId=u.appId;this.sessionId=u.sessionId;this.platform=u.platform||n.Platform.WEB;this.appId=t.appId||r;this.origin=n.utils.getCurrentOrigin()}return i}();i.BaseEvent=u}(i=t.model||(t.model={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t="Microsoft.Support.Sdk.ClientError",i=function(n){function i(i){n.call(this,t,i)}return u(i,n),i}(n.BaseEvent);n.ClientError=i}(t=n.model||(n.model={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){var i=function(t){function i(i,r,u){t.call(this,i,u);n.utils.verifyString("operationName",r,!0);this.operationName=r;this.startTimer()}return u(i,t),i.prototype.startTimer=function(){this._startTime=Date.now()},i.prototype.stopTimer=function(){this.latencyMs=Date.now()-this._startTime},i}(t.BaseEvent);t.QosEvent=i}(i=t.model||(t.model={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){function t(t){if(n.isString(t)&&t){var i=document.createElement("a");return i.href=t,i.hostname||(i.href=i.href),{protocol:i.protocol||void 0,hostname:i.hostname||void 0,port:i.port||void 0,pathname:i.pathname&&i.pathname.replace(/(^\/?)/,"/")||void 0,search:i.search||void 0,host:i.host||void 0,hash:i.hash||void 0}}}function i(n,t){var i={};return n&&n.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(n,r,u,f){return i[r]=t?decodeURIComponent(f):f}),i}function r(t,i){n.verifyNotNull("obj",t);for(var r in t)if(t.hasOwnProperty(r)&&r.toLowerCase()===i.toLowerCase())return t[r]}function u(){return window.location.origin||window.location.protocol+"//"+window.location.host}function f(n){var i=t(n),r=i.port&&s(i.protocol,i.port)?":"+i.port:"";return i.protocol+"//"+(i.hostname||"")+r}function e(n,r,u){var h=t(n),e=i(h&&h.search||"",!0),f,o,s;for(f in r)e[f]?u&&e[f]!=r[f]&&(e[f]=r[f]):e[f]=r[f];return o=jQuery.param(e),s=n.indexOf("?"),s>0?n.substr(0,s+1)+o:n+"?"+o}function o(){return window&&window.document&&window.document.referrer||window["MsSupportSdk.referrer"]}function s(n,t){return!(!t||"https:"===n&&"443"===t||"http:"===n&&"80"===t)}n.parseUrl=t;n.parseQueryString=i;n.getPropertyValue=r;n.getCurrentOrigin=u;n.getOriginFromUrl=f;n.appendParams=e;n.getReferrer=o}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){var i="Microsoft.Support.Sdk.IncomingRequest",r=function(t){function r(r,u){t.call(this,i,r,u);this.referrer=n.utils.getReferrer()}return u(r,t),r}(t.QosEvent);t.IncomingRequest=r}(i=t.model||(t.model={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t="Microsoft.Support.Sdk.OutgoingRequest",i=function(n){function i(i,r){n.call(this,t,i,r)}return u(i,n),i}(n.QosEvent);n.OutgoingRequest=i}(t=n.model||(n.model={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(t){var i=n.utils.stringify,r=function(){function n(n){this._config=n}return n.prototype.captureOutgoingRequestAsync=function(n,t,i,r,u,f){var e=this,o=this.createOutgoingRequest(t,i,r,u,f);return this.trackQosAsync(o,n,function(n){return e.writeEvent(n)})},n.prototype.captureIncomingRequestAsync=function(n,t,i,r){var u=this,f=this.createIncomingRequest(t,i,r);return this.trackQosAsync(f,n,function(n){return u.writeEvent(n)})},n.prototype.captureOutgoingRequest=function(n,t,i,r,u,f){var e=this,o=this.createOutgoingRequest(t,i,r,u,f);return this.trackQos(o,n,function(n){return e.writeEvent(n)})},n.prototype.captureIncomingRequest=function(n,t,i,r){var u=this,f=this.createIncomingRequest(t,i,r);return this.trackQos(f,n,function(n){return u.writeEvent(n)})},n.prototype.captureError=function(n,t){this.writeEvent(this.createClientError(n,t))},n.prototype.createOutgoingRequest=function(n,i,r,u,f){var e=new t.model.OutgoingRequest(n,this._config);return e.targetUri=i,e.requestMethod=r,e.dependencyName=u,e.dependencyOperationName=f,e},n.prototype.createIncomingRequest=function(n,r,u){var f=new t.model.IncomingRequest(n,this._config);return f.componentName=r,f.uiInfo=i(u),f},n.prototype.createClientError=function(n,i){var r=new t.model.ClientError(this._config);return r.errorMessage=n,r.errorName=i,r},n.prototype.trackQos=function(n,t,r){var u,f=!1;n.startTimer();try{u=t(n);f=null==n.succeeded||!!n.succeeded}catch(t){throw n.message=i(t.message),t;}finally{n.stopTimer();n.succeeded=f;r(n)}return u},n.prototype.trackQosAsync=function(n,t,r){var u=jQuery.Deferred();try{n.startTimer();t(n).then(function(t){n.stopTimer();n.succeeded=null==n.succeeded||!!n.succeeded;n.statusCode=n.statusCode||"200";r(n);u.resolve(t)},function(t){n.stopTimer();n.succeeded=!1;n.statusCode=n.statusCode||(t&&t.status?t.status.toString():"500");n.message=i(t);r(n);u.reject(t)})}catch(t){n.stopTimer();n.succeeded=!1;n.message=i(t.message);r(n);u.reject(t)}return u.promise()},n.prototype.writeEvent=function(n){this._config&&this._config.logger&&this._config.logger.writeEvent instanceof Function&&this._config.logger.writeEvent(n)},n}();t.DefaultEventWriter=r}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){function t(){var n=window.awa||window.Asimov;n&&n._registerSchemas([{name:"Microsoft.Support.Sdk.IncomingRequest","Ms.Qos.IncomingServiceRequest":{part:"B",def:{fields:[{req:!0,name:"operationName",type:"string"},{name:"targetUri",type:"string"},{req:!0,name:"latencyMs",type:"int32"},{name:"serviceErrorCode",type:"int32"},{req:!0,name:"succeeded",type:"bool"},{name:"requestMethod",type:"string"},{name:"responseContentType",type:"string"},{name:"protocol",type:"string"},{name:"protocolStatusCode",type:"string"},{name:"operationVersion",type:"string"},{name:"callerIpAddress",type:"string"},{name:"callerName",type:"string"},{name:"requestSizeBytes",type:"int32"},{name:"requestStatus",type:"int32"}]}},"Microsoft.Support.Sdk.IncomingRequest":{part:"C",def:{fields:[{name:"message",type:"string"},{name:"uiInfo",type:"string"},{req:!0,name:"sdkVersion",type:"string"},{req:!0,name:"partnerId",type:"string"},{name:"sessionId",type:"string"},{req:!0,name:"componentName",type:"string"},{req:!0,name:"partnerAppId",type:"string"},{req:!0,name:"platform",type:"string"},{name:"referrer",type:"string"},{name:"origin",type:"string"}]}}},{name:"Microsoft.Support.Sdk.OutgoingRequest","Ms.Qos.OutgoingServiceRequest":{part:"B",def:{fields:[{req:!0,name:"operationName",type:"string"},{name:"targetUri",type:"string"},{req:!0,name:"latencyMs",type:"int32"},{name:"serviceErrorCode",type:"int32"},{req:!0,name:"succeeded",type:"bool"},{name:"requestMethod",type:"string"},{name:"responseContentType",type:"string"},{name:"protocol",type:"string"},{name:"protocolStatusCode",type:"string"},{req:!0,name:"dependencyOperationName",type:"string"},{name:"dependencyOperationVersion",type:"string"},{req:!0,name:"dependencyName",type:"string"},{name:"dependencyType",type:"string"},{name:"responseSizeBytes",type:"int32"},{name:"requestStatus",type:"int32"}]}},"Microsoft.Support.Sdk.OutgoingRequest":{part:"C",def:{fields:[{name:"message",type:"string"},{req:!0,name:"sdkVersion",type:"string"},{req:!0,name:"partnerId",type:"string"},{name:"sessionId",type:"string"},{req:!0,name:"partnerAppId",type:"string"},{req:!0,name:"platform",type:"string"},{name:"origin",type:"string"}]}}},{name:"Microsoft.Support.Sdk.ClientError","Ms.Telemetry.Error":{part:"B",def:{fields:[{name:"errorName",type:"string"},{name:"errorMessage",type:"string"},{name:"severity",type:"int32"},{name:"errorType",type:"string"},{name:"errorCode",type:"int32"},{name:"lineNumber",type:"uint32"},{name:"isDisplayed",type:"bool"},{name:"errorLocation",type:"string"},{name:"errorMethod",type:"string"}]}},"Microsoft.Support.Sdk.ClientError":{part:"C",def:{fields:[{name:"uiInfo",type:"string"},{req:!0,name:"sdkVersion",type:"string"},{req:!0,name:"partnerId",type:"string"},{name:"sessionId",type:"string"},{req:!0,name:"partnerAppId",type:"string"},{req:!0,name:"platform",type:"string"},{name:"origin",type:"string"}]}}},{name:"survey.support.services.microsoft.com.SurveyOffer","survey.support.services.microsoft.com.SurveyOffer":{part:"C",def:{fields:[{req:!0,name:"responseId",type:"string"},{req:!0,name:"partnerId",type:"string"},{req:!0,name:"surveyId",type:"string"},{name:"flightId",type:"string"},{req:!0,name:"locale",type:"string"},{req:!0,name:"offerState",type:"string"},{name:"partnerContextJson",type:"string"}]}}},{name:"survey.support.services.microsoft.com.SurveyResponse","survey.support.services.microsoft.com.SurveyResponse":{part:"C",def:{fields:[{req:!0,name:"responseId",type:"string"},{req:!0,name:"partnerId",type:"string"},{req:!0,name:"surveyId",type:"string"},{name:"flightId",type:"string"},{req:!0,name:"quality",type:"string"},{name:"mode",type:"string"},{req:!0,name:"type",type:"string"},{req:!0,name:"locale",type:"string"},{req:!0,name:"isPartialResponse",type:"bool"},{req:!0,name:"displayTime",type:"string"},{req:!0,name:"surveyResponseJson",type:"string"},{name:"partnerContextJson",type:"string"}]}}}])}n.registerSchemas=t}(t=n.awa||(n.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){function t(n,t,i,r){i&&n&&n[t]&&(n[t][i]=r)}function i(n,t,i,r){i&&n&&n[t]&&(n[t][i]=r)}var r=function(){function n(){}return n.prototype.createBaseEventNoData=function(n,t){var i={name:n,appId:t},r={};return r[n]={},this.setContent(i,r),i},n.prototype.createBaseEvent=function(n){var i=n.name,u={name:i,appId:n.appId},r={};return r[i]={},t(r,i,"sdkVersion",n.sdkVersion),t(r,i,"partnerId",n.partnerId),t(r,i,"partnerAppId",n.partnerAppId),t(r,i,"sessionId",n.sessionId),t(r,i,"platform",n.platform),t(r,i,"origin",n.origin),this.setContent(u,r),u},n}();n.BaseEventBuilder=r;n.updatePartC=t;n.updatePartB=i}(t=n.awa||(n.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){var f="Ms.Qos.IncomingServiceRequest",r="Ms.Qos.OutgoingServiceRequest",u="Ms.Telemetry.Error",e=function(){function e(){}return e.prototype.createIncomingRequest=function(t){var e=this.createQosEvent(t,f),r=this.eventBuilder.getContent(e),u=t.name;return i.updatePartC(r,u,"componentName",t.componentName),i.updatePartC(r,u,"uiInfo",n.utils.stringify(t.uiInfo)),i.updatePartC(r,u,"referrer",t.referrer),e},e.prototype.createOutgoingRequest=function(t){var f=this.createQosEvent(t,r),u=this.eventBuilder.getContent(f);return i.updatePartB(u,r,"targetUri",n.utils.stringify(t.targetUri)),i.updatePartB(u,r,"requestMethod",n.utils.stringify(t.requestMethod)),i.updatePartB(u,r,"dependencyOperationName",t.dependencyOperationName||"None"),i.updatePartB(u,r,"dependencyName",t.dependencyName||"None"),f},e.prototype.createClientError=function(n){this.eventBuilder=t.awa.createBaseEventBuilder();var f=this.eventBuilder.createBaseEvent(n),r=this.eventBuilder.getContent(f);return r[u]={},i.updatePartB(r,u,"errorMessage",n.errorMessage),i.updatePartB(r,u,"errorName",n.errorName),f},e.prototype.createQosEvent=function(r,u){this.eventBuilder=t.awa.createBaseEventBuilder();var e=this.eventBuilder.createBaseEvent(r),f=this.eventBuilder.getContent(e);return f[u]={},n.utils.verifyString("operationName",r.operationName,!0),i.updatePartB(f,u,"operationName",r.operationName),i.updatePartB(f,u,"latencyMs",r.latencyMs),i.updatePartB(f,u,"protocolStatusCode",r.statusCode),i.updatePartB(f,u,"succeeded",r.succeeded),i.updatePartC(f,r.name,"message",n.utils.stringify(r.message||"")),e},e}();i.QosEventBuilder=e}(i=t.awa||(t.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t="content",i=function(n){function i(){n.apply(this,arguments)}return u(i,n),i.prototype.setContent=function(n,i){n&&(n[t]=i)},i.prototype.getContent=function(n){return n&&n[t]},i}(n.BaseEventBuilder);n.BaseEventBuilderV3=i}(t=n.awa||(n.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t="data",i=function(n){function i(){n.apply(this,arguments)}return u(i,n),i.prototype.setContent=function(n,i){n&&(n[t]=i)},i.prototype.getContent=function(n){return n&&n[t]},i}(n.BaseEventBuilder);n.BaseEventBuilderV4=i}(t=n.awa||(n.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(t){function i(t){var r,i=n.getAwaInstance();if(t&&t.appId&&i)try{"3"===n.getAwaMajorVersion()&&i.ids&&i.ids.getAppId instanceof Function&&(r=i.ids.getAppId(),i.ids.setAppId(t.appId));i.writeEvent(t)}finally{r&&i.ids.setAppId(r)}}function r(){var i,r=n.getAwaMajorVersion();switch(r){case"3":i=new t.BaseEventBuilderV3;break;case"4":i=new t.BaseEventBuilderV4;break;default:console.warn("unsupported awa version: "+r)}return i}var f=function(r){function f(i){r.call(this,i);t.registerSchemas();var u=n.getAwaInstance();i&&i.correlationVector&&u.cv.setValue(i.correlationVector);u.cv.getValue()||u.cv.init()}return u(f,r),f.prototype.captureOutgoingRequestAsync=function(n,r,u,f,e,o){return this.trackQosAsync(this.createOutgoingRequest(r,u,f,e,o),n,function(n){var r=new t.QosEventBuilder,u=r.createOutgoingRequest(n);i(u)})},f.prototype.captureIncomingRequestAsync=function(n,r,u,f){return this.trackQosAsync(this.createIncomingRequest(r,u,f),n,function(n){var r=new t.QosEventBuilder,u=r.createIncomingRequest(n);i(u)})},f.prototype.captureOutgoingRequest=function(i,r,u,f,e,o){return this.trackQos(this.createOutgoingRequest(r,u,f,e,o),i,function(i){var r=new t.QosEventBuilder,u=r.createOutgoingRequest(i);n.awa.writeAwaEvent(u)})},f.prototype.captureIncomingRequest=function(i,r,u,f){return this.trackQos(this.createIncomingRequest(r,u,f),i,function(i){var r=new t.QosEventBuilder,u=r.createIncomingRequest(i);n.awa.writeAwaEvent(u)})},f.prototype.captureError=function(i,r){var u=this.createClientError(i,r),f=new t.QosEventBuilder,e=f.createClientError(u);n.awa.writeAwaEvent(e)},f}(n.DefaultEventWriter);t.EventWriter=f;t.writeAwaEvent=i;t.createBaseEventBuilder=r}(t=n.awa||(n.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){function r(n,i){t.captureError(n,i)}function u(n,i,r,u,f,e){return t.captureOutgoingRequestAsync(n,i,r,u,f,e)}function f(n,i,r,u){return t.captureIncomingRequestAsync(n,i,r,u)}function e(n,i,r,u,f,e){return t.captureOutgoingRequest(n,i,r,u,f,e)}function o(n,i,r,u){return t.captureIncomingRequest(n,i,r,u)}function i(){return window.awa||window.Asimov}function s(){return window.Asimov?"3":window.awa?"4":void 0}function h(){var n=i();return n&&n.cv.getValue()}function c(r,u){n.appId=u;var f=r&&r.logger&&r.logger.writeEvent instanceof Function,e=!f&&i();t=void 0;e&&(t=new n.awa.EventWriter(r));t=t||new n.DefaultEventWriter(r);f||e||console.warn("Qos logging disabled since neither jsll nor customLogger is available!")}var t;n.captureError=r;n.captureOutgoingRequestAsync=u;n.captureIncomingRequestAsync=f;n.captureOutgoingRequest=e;n.captureIncomingRequest=o;n.getAwaInstance=i;n.getAwaMajorVersion=s;n.getCorrelationVector=h;n.init=c}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){function r(){if(jQuery&&jQuery.fn&&jQuery.fn.jquery&&"string"==typeof jQuery.fn.jquery){var t=jQuery.fn.jquery.split(".");return!n.utils.isLessThanMinimum(t,i.split("."))}return console.log("Jquery not loaded properly"),!1}var t,i="1.7.0",u="init",f="MsSupportSdk",e=function(){function e(){}return Object.defineProperty(e,"loading",{get:function(){return t&&"pending"===t.state()},enumerable:!0,configurable:!0}),Object.defineProperty(e,"loaded",{get:function(){return t&&"resolved"===t.state()},enumerable:!0,configurable:!0}),e.reset=function(){t=void 0},e.init=function(e){if(!r())throw new Error("Required Libraries not available. SDK requires Jquery version "+i+" or greater.");return n.SdkConfig.current=new n.SdkConfig(e),n.telemetry.init(n.SdkConfig.current),n.telemetry.captureIncomingRequestAsync(function(){return t||(t=jQuery.Deferred(),e&&e.partnerId&&e.appId?t.resolve():t.reject("Config with partnerId and appId is required")),t.promise()},u,f)},e}();n.Bootstrapper=e}(r||(r={}));!function(n){var t;!function(t){var f,i="HTTP_REQUEST",r="GET",u="POST";!function(t){function e(t){return t.url=f(t),n.telemetry.captureOutgoingRequestAsync(function(){return jQuery.ajax({url:t.url,type:r,crossDomain:!0,headers:t.additionalHeaders||{}})},t.operationName||i,t.url,r,t.dependencyName,t.dependencyOperationName)}function o(t){return t.url=f(t),n.telemetry.captureOutgoingRequestAsync(function(){return jQuery.ajax({url:t.url,type:u,crossDomain:!0,headers:t.additionalHeaders||{},contentType:"application/json",data:t.content?JSON.stringify(t.content):"",processData:!1})},t.operationName||i,t.url,u,t.dependencyName,t.dependencyOperationName)}function f(n){return n.queryParams?n.url+"?"+jQuery.param(n.queryParams):n.url}t.get=e;t.post=o}(f=t.httpRequest||(t.httpRequest={}))}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t,i,r;!function(n){n.NONE="none";n.ON="on"}(t=n.Accessibility||(n.Accessibility={}));!function(n){n.UNAVAILABLE="unavailable";n.OPEN="open";n.OUT_OF_HOURS="out_of_hours"}(i=n.Availability||(n.Availability={}));!function(n){n.CHAT="chat";n.CALLBACK="callback";n.SCHEDULE_CALLBACK="schedulecallback";n.TOLL_FREE="tollfree";n.EMAIL="email";n.COMMUNITY="community"}(r=n.Modality||(n.Modality={}))}(t=n.modalities||(n.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){var i=function(){function i(i,r,u,f,e,o,s,h,c){this.product=i;this.issue=r;this.language=u;this.country=f;this.accessibility=e||t.Accessibility.NONE;this.mode=s||void 0;this.preview=o;this.environment=h||n.SMCEnvironment.PRODUCTION;this.enhancedRoutingContext=c}return i}();t.ModalityConfig=i}(i=t.modalities||(t.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(){function n(n,t){var i=n.Name||t;if(!i)throw new Error("Unable to create modality object due to missing 'type'");this.type=i.toLowerCase()}return n}();n.ModalityObject=t}(t=n.modalities||(n.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(n){function t(t,i){if(n.call(this,t,i),!t||!t.Link)throw new Error("responseModality doesn't have 'Link' property");this.link=t.Link}return u(t,n),t}(n.ModalityObject);n.LinkModality=t}(t=n.modalities||(n.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){function r(t){return function(){var r=jQuery.Deferred(),u={operationName:s,url:t.WaitTime,dependencyName:i,dependencyOperationName:h};return n.utils.httpRequest.get(u).then(function(t){n.utils.isNumber(t.WaitTime,!0)&&t.WaitTime>=0?r.resolve(t.WaitTime):r.reject("Wait time not available")},function(t){r.reject("Failed to retrieve wait time: "+n.utils.stringify(t))}),r.promise()}}function u(t){return function(){var r=jQuery.Deferred(),u={operationName:o,url:t.QueueLength,dependencyName:i,dependencyOperationName:c};return n.utils.httpRequest.get(u).then(function(t){n.utils.isNumber(t.Length,!0)&&t.Length>=0?r.resolve(t.Length):r.reject("Queue length not available")},function(t){r.reject("Failed to retrieve queue length: "+n.utils.stringify(t))}),r.promise()}}function f(r){return function(){var u=jQuery.Deferred(),f={operationName:e,url:r.OpenNowLink,dependencyName:i,dependencyOperationName:l};return n.utils.httpRequest.get(f).then(function(i){n.utils.isBoolean(i.OpenNow,!0)&&n.utils.isBoolean(i.IsAvailable,!0)?i.OpenNow&&i.IsAvailable?u.resolve(t.Availability.OPEN):i.OpenNow&&!i.IsAvailable?u.resolve(t.Availability.UNAVAILABLE):u.resolve(t.Availability.OUT_OF_HOURS):u.reject("Error getting availability info")},function(t){u.reject("Error getting availability info: "+n.utils.stringify(t))}),u.promise()}}var e="api.modalities.getAvailability",o="api.modalities.getQueueLength",s="api.modalities.getWaitTime",i="SupportChannels",h="Waittime",c="QueueLength",l="OpenNow";t.getWaitTimeCallback=r;t.getQueueLengthCallback=u;t.getAvailabilityCallback=f}(i=t.modalities||(t.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(t){function i(i){if(t.call(this,i,n.Modality.CALLBACK),!i.HoopsLink||!i.OpenNowLink||!i.WaitTime)throw Error("Unable to create CallbackModality");this.hoopsLink=i.HoopsLink;this.getWaitTime=n.getWaitTimeCallback(i);this.getAvailability=n.getAvailabilityCallback(i)}return u(i,t),i}(n.LinkModality);n.CallbackModality=t}(t=n.modalities||(n.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(t){function i(i){if(t.call(this,i,n.Modality.CHAT),!i.HoopsLink||!i.OpenNowLink||!i.QueueLength)throw Error("Unable to create ChatModality");this.hoopsLink=i.HoopsLink;this.getQueueLength=n.getQueueLengthCallback(i);this.getAvailability=n.getAvailabilityCallback(i)}return u(i,t),i}(n.LinkModality);n.ChatModality=t}(t=n.modalities||(n.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(t){function i(i){if(t.call(this,i,n.Modality.TOLL_FREE),!i.Phone||!i.OpenNowLink||!i.HoopsLink)throw Error("Unable to create PhoneModality");this.phone=i.Phone;this.hoopsLink=i.HoopsLink;this.getAvailability=n.getAvailabilityCallback(i)}return u(i,t),i}(n.ModalityObject);n.PhoneModality=t}(t=n.modalities||(n.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(t){function i(i){t.call(this,i,n.Modality.SCHEDULE_CALLBACK)}return u(i,t),i}(n.LinkModality);n.ScheduleCallbackModality=t}(t=n.modalities||(n.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(){function n(n,t,i){this.confirmationTextId=n;this.warningTextId=t;this.modalityLinkValues=i}return n}();n.RenderingContext=t}(t=n.modalities||(n.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(){function n(n,t){this.modalities=n;this.renderingContext=t}return n}();n.ModalitiesResponse=t}(t=n.modalities||(n.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){var i=function(){function i(i,r,u,f,e,o,s,h,c,l){this.product=i;this.issue=r;this.partnerId=u;this.platform=f||n.Platform.WEB;this.language=e;this.country=o;this.accessibility=s||t.Accessibility.NONE;this.mode=c||void 0;this.preview=h;this.context=l||void 0}return i}();t.ModalityRequestContent=i}(i=t.modalities||(t.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){function i(t){if(!t)throw new Error("config is a mandatory parameter");n.utils.verifyString("environment",t.environment,!0);n.utils.verifyString("product",t.product,!0);n.utils.verifyString("issue",t.issue,!0);n.utils.verifyString("language",t.language,!0);n.utils.verifyString("country",t.country,!0);n.utils.verifyString("accessibility",t.accessibility);n.utils.verifyString("mode",t.mode);n.utils.verifyBoolean("preview",t.preview)}function f(n,t,i){var r=c.replace("[product]",t);return r=r.replace("[issue]",i),"https://"+n+r}function e(n){return"https://"+n+a}function r(n){var u=[],i,r;if(n&&n.Modalities&&n.Modalities.length>0)for(i=0;i<n.Modalities.length;i++)try{r=void 0;switch(n.Modalities[i].Name){case t.Modality.CHAT:r=new t.ChatModality(n.Modalities[i]);break;case t.Modality.CALLBACK:r=new t.CallbackModality(n.Modalities[i]);break;case t.Modality.SCHEDULE_CALLBACK:r=new t.ScheduleCallbackModality(n.Modalities[i]);break;case t.Modality.TOLL_FREE:r=new t.PhoneModality(n.Modalities[i]);break;default:r=new t.LinkModality(n.Modalities[i])}u.push(r)}catch(n){console.log("Could not parse modalities response. Error: "+n)}return u}function o(n){if(n&&n.RenderingContext)return new t.RenderingContext(n.RenderingContext.ConfirmationTextId,n.RenderingContext.WarningTextId,n.RenderingContext.ModalityLinkValues)}var u="SupportChannels",s="Get modalities v1.0",h="Get modalities v2.0",c="/api/products/[product]/issues/[issue]/modalities/v1.0",l="api.modalities.get",a="/api/v1.0/modalities",v="api.modalities.getv2",y=function(){function c(){}return c.get=function(t){var h;i(t);var o=jQuery.Deferred(),c=f(t.environment,t.product,t.issue),e={};return e[""+n.SDK_QUERY_PARAM_NAME.PARTNER_ID]=n.SdkConfig.current.partnerId,e.platform=n.SdkConfig.current.platform,e.language=t.language,e.country=t.country,t.accessibility&&(e.accessibility=t.accessibility),t.mode&&(e.mode=t.mode),t.preview&&(e.preview=t.preview),h={operationName:l,url:c,queryParams:e,dependencyName:u,dependencyOperationName:s},n.utils.httpRequest.get(h).then(function(n){var t=r(n);o.resolve(t)},function(t){o.reject("Could not fetch modality information: "+n.utils.stringify(t))}),o.promise()},c.getv2=function(f){i(f);var s=jQuery.Deferred(),c=e(f.environment),l=new t.ModalityRequestContent(f.product,f.issue,n.SdkConfig.current.partnerId,n.SdkConfig.current.platform,f.language,f.country,f.accessibility||void 0,f.preview,f.mode,f.enhancedRoutingContext),a={operationName:v,url:c,content:l,dependencyName:u,dependencyOperationName:h};return n.utils.httpRequest.post(a).then(function(n){var i=new t.ModalitiesResponse(r(n),o(n));s.resolve(i)},function(t){s.reject("Could not fetch modality information: "+n.utils.stringify(t))}),s.promise()},c}();t.API=y}(i=t.modalities||(t.modalities={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(t){var i,r;!function(n){n.AAD="aad";n.MSA="msa";n.DELEGATED="delegated"}(i=t.AuthType||(t.AuthType={}));!function(n){n.DEFAULT="default";n.NONE="none"}(r=t.SurveyType||(t.SurveyType={}));t.HostType=n.HostType}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(n){function t(n,t){if(n)for(var i=0;i<n.length;i++)if(n[i].type===t)return n[i]}n.getModalityByType=t}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(n){n.ALL_EVENTS="*";var t=function(){function t(){this.listeners={}}return t.prototype.subscribe=function(n,t){if("string"!=typeof n||!t)throw new Error("Event "+(n?"listener":"name")+" must be provided");var i=n.toLowerCase();this.listeners[i]=this.listeners[i]||[];this.listeners[i].push(t)},t.prototype.publish=function(t,i){var r,u,f;if("string"!=typeof t||!i)throw new Error("Event name must be provided");r=this.listeners[t.toLowerCase()]||[];r.push.apply(r,this.listeners[n.ALL_EVENTS]);u=function(n){window.setTimeout(function(){return r[n](i)},0)};for(f in r)u(f)},t.prototype.unsubscribe=function(n,t){if("string"!=typeof n||!t)throw new Error("Event "+(n?"listener":"name")+" must be provided");var r,i=n.toLowerCase();this.listeners[i]&&(r=this.listeners[i].indexOf(t))>=0&&this.listeners[i].splice(r,1)},t.prototype.unsubsribeAll=function(){this.listeners={}},t}();n.EventHub=t}(t=n.proxy||(n.proxy={}))}(r||(r={}));!function(n){var t;!function(){}(t=n.proxy||(n.proxy={}))}(r||(r={}));!function(n){var t;!function(n){function t(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];window.setTimeout(n,0,i)}n.runAsync=t}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(t){var i=function(){function t(t,i){var u=this,r;n.utils.verifyNotNull("target",t);this._target=t;this._origin=i&&i.replace(/\/+$/,"");r=function(n){return u.postMessageHandler(n)};window.addEventListener?window.addEventListener("message",r,!1):window.attachEvent&&window.attachEvent("onmessage",r)}return t.prototype.sendMessage=function(t){this._target.postMessage(n.utils.stringify(t),this._origin)},t.prototype.destroy=function(){},t.prototype.postMessageHandler=function(t){var i=this;"*"!=this._origin&&t.origin!=this._origin||n.utils.runAsync(function(){try{i.onMessage&&i.onMessage(t.data&&JSON.parse(t.data))}catch(n){console.log(n)}})},t}();t.WindowPostMessageProxy=i}(t=n.proxy||(n.proxy={}))}(r||(r={}));!function(n){var t;!function(t){var i=function(){function i(i,r,u){var e=this,f;n.utils.verifyString("componentId",i,!0);this._eventHub=new t.EventHub;this._componentId=i;for(f in r)this.addEventListener(f,r[f]);u&&(this._messageProxy=u,this._messageProxy.onMessage=function(n){n&&n.type&&n.id===e._componentId&&e._eventHub.publish(n.type,n)})}return i.prototype.dispatchEvent=function(n,t){var r={id:this._componentId,type:n,data:t||{}},i=jQuery.Deferred();if(this._messageProxy&&this._messageProxy.sendMessage instanceof Function)try{this._messageProxy.sendMessage(r);i.resolve()}catch(n){i.reject(n)}else i.reject(new Error("messageProxy unavailable!"));return i.promise()},i.prototype.addEventListener=function(n,t){n&&t&&this._eventHub.subscribe(n,t)},i.prototype.removeEventListener=function(n,t){n&&t&&this._eventHub.unsubscribe(n,t)},i.prototype.removeAllEventListeners=function(){this._eventHub.unsubsribeAll()},i}();t.SdkClientProxyImp=i}(t=n.proxy||(n.proxy={}))}(r||(r={}));!function(n){var t;!function(n){function t(){return r("Trident")}function i(){return window.navigator.userAgent}function r(n){return i().indexOf(n)>-1}n.isInternetExplorer=t}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t,i;!function(n){n.LIGHT="light"}(t=n.ThemeColor||(n.ThemeColor={}));!function(n){n.NONE="none";n.NORMAL="normal"}(i=n.DisplayType||(n.DisplayType={}))}(t=n.theme||(n.theme={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){function e(i,r,u){return n.telemetry.captureIncomingRequestAsync(function(){return new i(r).render()},t.RENDER_OPERATION_NAME,u,r.uiInfo)}function r(n){var t=jQuery(n);if(t.length>0)return t[0]}function u(t,i,r,u,f){var e=document.createElement("iframe");return e.src=n.utils.appendParams(t,r,!0),e.id=i,e.style.display=u&&u.display||"block",e.style.height=u&&u.height||"100%",e.style.width=u&&u.width||"100%",e.title=f||"",e.frameBorder="0",e}function o(n,t){var i=n&&n.uiInfo&&n.uiInfo.width,r=n&&n.uiInfo&&n.uiInfo.height,u;return i>=0&&r>=0||(i=t.width,r=t.height),u="resizable="+t.resizable+",scrollbars="+t.scrollbars,i>=0&&r>=0?u+",width="+i+",height="+r:u}function s(n,t){n&&t>0&&(n.style.height=t+"px")}function h(t,i,r){if(r.proxy.dispatchEvent(n.InternalEvent.CLIENT_CONFIG_UPDATE,r.config),t.state()===n.PROMISE_STATE_PENDING)try{window.clearTimeout(i);t.resolve(r.getComponentSdk())}catch(n){t.reject("Could not create component SDK. Error: "+n)}}function c(t){var i=function(i,r){console.log(i);t.config.onError&&t.config.onError instanceof Function&&t.config.onError({type:n.CommonEvent.ERROR,id:t.id,data:{message:i,exception:r}})};try{t.proxy&&t.config.authInfo&&t.config.authInfo.token?t.proxy.dispatchEvent(n.CommonEvent.SIGNIN_RESPONSE,{token:t.config.authInfo.token}):i("delegated auth token must be provided!")}catch(t){i("Could not handle delegated auth request. Error: "+n.utils.stringify(t),t)}}function i(t,i,r,u){var f=new n.proxy.WindowPostMessageProxy(t,n.utils.getOriginFromUrl(r));return new n.proxy.SdkClientProxyImp(i,u,f)}function l(f,e){var h=n.telemetry.getCorrelationVector(),c=n.SdkConfig.current.sessionId,o={},s;return o[""+n.SDK_QUERY_PARAM_NAME.APP_ID]=n.SdkConfig.current.appId,o[""+n.SDK_QUERY_PARAM_NAME.PARTNER_ID]=n.SdkConfig.current.partnerId,o[""+n.SDK_QUERY_PARAM_NAME.COMPONENT_ID]=f.id,o[""+n.SDK_QUERY_PARAM_NAME.TARGET_ORIGIN]=n.utils.getCurrentOrigin(),h&&(o[""+n.SDK_QUERY_PARAM_NAME.MS_CV]=h),c&&(o[""+n.SDK_QUERY_PARAM_NAME.SESSION_ID]=c),o[""+n.SDK_QUERY_PARAM_NAME.HOST_TYPE]=t.HostType.IFRAME,s=u(f.getXframeProxyUrl(),f.id+"-xframeproxy",o,{display:"none",height:"0",width:"0"}),r("body").appendChild(s),i(s.contentWindow,f.id,f.getComponentUrl(),e,f.config.onError)}function a(n,t,f){var e=jQuery.Deferred(),o=r(n.config.uiInfo.containerSelector);return o?(n.iframe=u(n.getComponentUrl(),n.id,t,void 0,n.config.uiInfo.accessibilityTitle),o.appendChild(n.iframe),n.proxy=i(n.iframe.contentWindow,n.id,n.getComponentUrl(),f,n.config.onError)):e.reject("Could not find hosting container: "+n.config.uiInfo.containerSelector),e}function v(t,r,u){var s=jQuery.Deferred(),h=o(t.config,t.getDefaultWindowProperties()),f=n.utils.isInternetExplorer()&&!!t.getXframeProxyUrl(),e;return r[""+n.SDK_QUERY_PARAM_NAME.XFRAME]=f,e=n.utils.appendParams(t.getComponentUrl(),r,!0),t.popup=window.open(e,t.id,h),t.proxy=f?l(t,u):i(t.popup,t.id,t.getComponentUrl(),u,t.config.onError),s}function y(t,i){return t&&!n.CommonEvent[i]?""+(t+i):i}var p=600,w=800,f;t.RENDER_OPERATION_NAME="ui.render";t.renderComponent=e;f=function(){function i(t,i,r){if(!t||!t.uiInfo||!t.uiInfo.type)throw new Error("config does not contain the type of UI to be rendered");this.config=n.utils.cloneObject({},t);this.id=n.utils.generateUniqueId();this.loadTimeoutMs=i||0;this.reportsHeightChanges=!!r}return i.prototype.render=function(){var i=this,f=n.telemetry.getCorrelationVector(),e=n.SdkConfig.current.sessionId,r={},u;r[""+n.SDK_QUERY_PARAM_NAME.APP_ID]=n.SdkConfig.current.appId;r[""+n.SDK_QUERY_PARAM_NAME.PARTNER_ID]=n.SdkConfig.current.partnerId;r[""+n.SDK_QUERY_PARAM_NAME.COMPONENT_ID]=this.id;r[""+n.SDK_QUERY_PARAM_NAME.TARGET_ORIGIN]=n.utils.getCurrentOrigin();f&&(r[""+n.SDK_QUERY_PARAM_NAME.MS_CV]=f);e&&(r[""+n.SDK_QUERY_PARAM_NAME.SESSION_ID]=e);r[""+n.SDK_QUERY_PARAM_NAME.HOST_TYPE]=this.config.uiInfo.type;u=this.getEventListeners();switch(this.loadTimeoutMs>0&&(u[n.InternalEvent.LOADED]=function(){return h(i.renderDeferred,i.renderTimeout,i)}),this.reportsHeightChanges&&(u[n.InternalEvent.HEIGHT_CHANGED]=function(n){return s(i.iframe,n.data)}),u[n.CommonEvent.SIGNIN_REQUEST]=function(t){t.data&&t.data.length>0&&t.data[0].type===n.ui.AuthType.DELEGATED?c(i):i.config.onSignInRequest instanceof Function&&window.setTimeout(function(){return i.config.onSignInRequest(t)},0)},this.config.uiInfo.type){case t.HostType.IFRAME:this.renderDeferred=a(this,r,u);break;case t.HostType.POPUP:this.renderDeferred=v(this,r,u);break;default:return jQuery.Deferred().reject("HostType: "+this.config.uiInfo.type+" is not supported")}return this.loadTimeoutMs>0?this.renderTimeout=window.setTimeout(function(){i.renderDeferred.state()===n.PROMISE_STATE_PENDING&&i.renderDeferred.reject("Load timeout expired: "+i.getComponentUrl())},this.loadTimeoutMs):this.renderDeferred.state()===n.PROMISE_STATE_PENDING&&this.renderDeferred.resolve(this.getComponentSdk()),this.renderDeferred.promise()},i.prototype.getDefaultWindowProperties=function(){return{width:p,height:w,resizable:1,scrollbars:1}},i.prototype.getEventListeners=function(){return i.getEventListeners(this.config)},i.getEventListeners=function(n,t){var r={};for(var i in n)"string"==typeof i&&i.length>2&&"on"===i.slice(0,2)&&n.hasOwnProperty(i)&&n[i]instanceof Function&&(r[y(t,i.substr(2))]=n[i]);return r},i}();t.UIComponent=f}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){function f(n){return t.renderComponent(r,n,v)}function e(i){var u=n.utils.getModalityByType(i.modalities,n.api.modalities.Modality.CHAT),f,r;if(!u)throw new Error("Chat is not supported for this product/issue/langugage/country.");return f=u.link,r={},i.surveyType&&i.surveyType===t.SurveyType.NONE&&(r.surveyType="NONE"),i.authInfo&&i.authInfo.type===t.AuthType.AAD&&(r.useAAD=!0),i.authInfo&&i.authInfo.type===t.AuthType.DELEGATED&&(r.authType="DELEGATED"),i.context&&n.utils.isArray(i.context)&&(r.context=n.utils.stringify(i.context)),i.subject&&(r.subject=i.subject),n.utils.appendParams(f,r,!0)}function o(n,t){return n.dispatchEvent(a,t),jQuery.Deferred().resolve()}function s(){return jQuery.Deferred().reject("Not implemented")}var h=15e3,c=!1,l="Chat",a="ChatMessage",v="Chat",r;i.render=f;r=function(i){function r(n){if(!n||!n.modalities&&!n.rejoinUrl)throw new Error("Chat must be passed an object with available modalities from the API or a rejoin url.");i.call(this,n,h,c)}return u(r,i),r.prototype.getComponentUrl=function(){return this.config.rejoinUrl||this.url||(this.url=e(this.config))},r.prototype.getComponentSdk=function(){var n=this;return this.chatSDK||(this.chatSDK={sendMessage:function(t){return o(n.proxy,t)},updateContext:function(){return s()}}),this.chatSDK},r.prototype.getXframeProxyUrl=function(){return n.utils.getOriginFromUrl(this.getComponentUrl())+"/xframeproxy/"},r.prototype.getEventListeners=function(){return t.UIComponent.getEventListeners(this.config,l)},r}(t.UIComponent);i.Component=r}(i=t.chat||(t.chat={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){function f(n){return t.renderComponent(r,n,h)}function e(i){var u=n.utils.getModalityByType(i.modalities,n.api.modalities.Modality.CALLBACK),f,r;if(!u)throw new Error("Callback is not supported for this product/issue/langugage/country.");return f=u.link,r={},i.authInfo&&i.authInfo.type&&i.authInfo.type===t.AuthType.AAD&&(r.useAAD=!0),n.utils.appendParams(f,r)}var o=15e3,s=!1,h="Callback",r;i.render=f;r=function(t){function i(n){t.call(this,n,o,s)}return u(i,t),i.prototype.getComponentUrl=function(){return e(this.config)},i.prototype.getComponentSdk=function(){return{}},i.prototype.getXframeProxyUrl=function(){return n.utils.getOriginFromUrl(this.getComponentUrl())+"/xframeproxy/"},i}(t.UIComponent);i.Component=r}(i=t.callback||(t.callback={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){function f(n){return t.renderComponent(r,n,h)}function e(i){var u=n.utils.getModalityByType(i.modalities,n.api.modalities.Modality.SCHEDULE_CALLBACK),f,r;if(!u)throw new Error("Schedule Callback is not supported for this product/issue/langugage/country.");return f=u.link,r={},i.authInfo&&i.authInfo.type&&i.authInfo.type===t.AuthType.AAD&&(r.useAAD=!0),n.utils.appendParams(f,r)}var o=15e3,s=!1,h="ScheduleCallback",r;i.render=f;r=function(t){function i(n){t.call(this,n,o,s)}return u(i,t),i.prototype.getComponentUrl=function(){return e(this.config)},i.prototype.getComponentSdk=function(){return{}},i.prototype.getXframeProxyUrl=function(){return n.utils.getOriginFromUrl(this.getComponentUrl())+"/xframeproxy/"},i}(t.UIComponent);i.Component=r}(i=t.scheduleCallback||(t.scheduleCallback={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t;!function(n){n.DISPLAYED="displayed";n.ACCEPTED="accepted";n.REJECTED="rejected"}(t=n.OfferState||(n.OfferState={}))}(t=n.survey||(n.survey={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){var i="survey.support.services.microsoft.com.SurveyOffer",r=n.telemetry.awa.updatePartC,u=function(){function t(){}return t.prototype.createSurveyOffer=function(t,u,f){var s=n.telemetry.awa.createBaseEventBuilder(),h=new n.telemetry.model.BaseEvent(i),o=s.createBaseEvent(h),e;return o&&(e=s.getContent(o),r(e,i,"responseId",t),r(e,i,"partnerId",n.SdkConfig.current.partnerId),r(e,i,"surveyId",u.surveyId),r(e,i,"flightId",u.flightId),r(e,i,"locale",u.locale),r(e,i,"offerState",f),r(e,i,"partnerContextJson",u.partnerContext)),o},t}();t.SurveyOfferBuilder=u}(i=t.survey||(t.survey={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){var i="survey.support.services.microsoft.com.SurveyResponse",r=n.telemetry.awa.updatePartC,u=function(){function t(){}return t.prototype.createSurveyResponse=function(t,u,f){var s=n.telemetry.awa.createBaseEventBuilder(),h=new n.telemetry.model.BaseEvent(i),o=s.createBaseEvent(h),e;return o&&(e=s.getContent(o),r(e,i,"responseId",t),r(e,i,"partnerId",n.SdkConfig.current.partnerId),r(e,i,"surveyId",f.surveyId),r(e,i,"flightId",u.flightId),r(e,i,"mode",u.mode),r(e,i,"quality",u.quality),r(e,i,"type",u.type),r(e,i,"locale",f.locale),r(e,i,"isPartialResponse",u.isPartialResponse),r(e,i,"displayTime",u.displayTime),r(e,i,"surveyResponseJson",JSON.stringify(u.surveyResponse)),r(e,i,"partnerContextJson",JSON.stringify(f.partnerContext))),o},t}();t.SurveyResponseBuilder=u}(i=t.survey||(t.survey={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){var i="WebSDK",u=142,f=141,r="A",e="Survey",o="survey.support.services.microsoft.com",s=function(){function s(t){this.surveyConfig=n.utils.cloneObject({},t);this.responseId=n.utils.createFormattedGuid()}return s.prototype.getResponseId=function(){return this.responseId},s.prototype.logOfferResponse=function(u){var s=new t.SurveyOfferBuilder,o=s.createSurveyOffer(this.responseId,this.surveyConfig,u);n.telemetry.awa.writeAwaEvent(o);var h={responseId:this.responseId,partnerId:n.SdkConfig.current.partnerId,surveyId:this.surveyConfig.surveyId,locale:this.surveyConfig.locale,flightId:this.surveyConfig.flightId,offerState:u,partnerContextJson:this.surveyConfig.partnerContext},c={appId:o.appId,behavior:f,Uri:window.location.href,referrerUri:document.referrer,pageName:i,actionType:r,pageHeight:window.innerHeight,content:h},e=n.telemetry.getAwaInstance();e&&e.ct&&e.ct.captureContentPageAction instanceof Function&&e.ct.captureContentPageAction(c)},s.prototype.render=function(i){var r=this;return n.telemetry.captureIncomingRequestAsync(function(){return new t.Component(r.surveyConfig,i,r.responseId).render()},n.ui.RENDER_OPERATION_NAME,e,i.uiInfo)},s.prototype.logSurveyResponse=function(f){var s=new t.SurveyResponseBuilder,o=s.createSurveyResponse(this.responseId,f,this.surveyConfig);n.telemetry.awa.writeAwaEvent(o);var h={responseId:this.responseId,partnerId:n.SdkConfig.current.partnerId,surveyId:this.surveyConfig.surveyId,flightId:f.flightId,mode:f.mode,quality:f.quality,type:f.type,locale:this.surveyConfig.locale,isPartialResponse:f.isPartialResponse,displayTime:f.displayTime,surveyResponseJson:f.surveyResponse,partnerContextJson:this.surveyConfig.partnerContext},c={appId:o.appId,behavior:u,Uri:window.location.href,referrerUri:document.referrer,pageName:i,actionType:r,pageHeight:window.innerHeight,content:h},e=n.telemetry.getAwaInstance();e&&e.ct&&e.ct.captureContentPageAction instanceof Function&&e.ct.captureContentPageAction(c)},s.prototype.getSurveyData=function(t){var e=this,i=jQuery.Deferred(),u,r,f;return(this.surveyConfig&&this.surveyConfig.locale&&this.surveyConfig.surveyId)?(u=t&&t.surveyPlatformHostName||o,r="https://"+u+"/surveyplatform/api/v1/locale/"+this.surveyConfig.locale+"/partner/"+n.SdkConfig.current.partnerId+"/survey/"+this.surveyConfig.surveyId,this.surveyConfig.flightId&&(r+="/flight/"+this.surveyConfig.flightId),t&&t.preview&&(r+="/preview/"+t.preview),f={url:r,operationName:"WebSdkGetSurveyData",dependencyName:"SurveyPlatform",dependencyOperationName:"getSurvey"},n.utils.httpRequest.get(f).then(function(n){var t=n;e.validateSurveyData(t)?i.resolve(t):i.reject("Survey response failed basic validation.")}).fail(function(n){i.reject(n.responseText)}),i):(i.reject("Invalid Parameters. Missing Locale or Survey ID."),i)},s.prototype.validateSurveyData=function(n){return n&&n.description&&n.flights&&n.flights[0]&&n.flights[0].flightId&&n.flights[0].mode&&n.flights[0].questions&&n.flights[0].questions[0]&&n.flights[0].title},s}();t.Survey=s}(i=t.survey||(t.survey={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){function e(n){return new i.Survey(n)}function o(t,i,u){var f={},e,o;return t.surveyId&&n.utils.isString(t.surveyId)&&(f[v]=t.surveyId),u&&n.utils.isString(u)&&(f[y]=u),t.locale&&n.utils.isString(t.locale)&&(f[p]=t.locale),t.flightId&&n.utils.isString(t.flightId)&&(f[w]=t.flightId),i.preview===!0&&(f[b]=!0),e=l,i.viewMode&&n.utils.isString(i.viewMode)&&(e=i.viewMode),f[k]=e,o=c,i.environment&&n.utils.isString(i.environment)&&(o=i.environment),f[r]=a,i.surveyPlatformEnvironment&&n.utils.isString(i.surveyPlatformEnvironment)&&(f[r]=i.surveyPlatformEnvironment),t.partnerContext&&(f[d]=JSON.stringify(t.partnerContext)),n.utils.appendParams(o,f)}var s=15e3,h=!0,c="https://survey.support.services.microsoft.com/viewsurvey.html",l="Wizard",a="Prod",v="surveyId",y="responseId",p="locale",w="flightId",b="preview",k="viewMode",r="platformEnvironment",d="context",g="xframeproxy.html",f;i.createSurvey=e;f=function(t){function i(n,i,r){if(!(n&&i&&n.surveyId&&n.locale))throw new Error("You must pass a product Id, Survey Id and locale when creating a survey component.");t.call(this,i,s,h);this.surveyConfig=n;this.responseId=r}return u(i,t),i.prototype.getComponentUrl=function(){return o(this.surveyConfig,this.config,this.responseId)},i.prototype.getComponentSdk=function(){return{}},i.prototype.getXframeProxyUrl=function(){return n.utils.getOriginFromUrl(this.getComponentUrl())+"/"+g+"/"},i}(t.UIComponent);i.Component=f}(i=t.survey||(t.survey={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){t.Environment=n.SMCEnvironment}(i=t.virtualAgent||(t.virtualAgent={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t;!function(n){var t;!function(n){n.DEFAULT="default";n.LINK="link";n.DISABLED="disabled";n.CUSTOM="custom"}(t=n.ExtensionType||(n.ExtensionType={}))}(t=n.content||(n.content={}))}(t=n.virtualAgent||(n.virtualAgent={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){function f(n){return t.renderComponent(r,n,it)}function e(n,t){return t.length>b?jQuery.Deferred().reject():(n.dispatchEvent(d,t),jQuery.Deferred().resolve())}function o(n){n.dispatchEvent(g,void 0)}function s(n){n.dispatchEvent(nt,void 0)}function h(n){n.dispatchEvent(tt,void 0)}function c(t){n.utils.verifyString("environment",t.environment,!0);n.utils.verifyString("locale",t.locale,!0)}function l(t){var i="https://"+t.environment+"/"+t.locale,r={};return t.replayInfo?i+=w:(i+=p,r=a(t)),n.utils.appendParams(i,r,!0)}function a(t){var i={},e,r;if(t.flights&&n.utils.isString(t.flights)&&(i.flighting=encodeURIComponent(t.flights)),t.preview&&n.utils.isBoolean(t.preview)&&(i["sky.preview"]=encodeURIComponent(String(t.preview))),t.queryParams&&n.utils.isString(t.queryParams))for(var o=t.queryParams.split("&"),u=0,f=o;u<f.length;u++)e=f[u],r=e.split("="),2===r.length&&(i[encodeURIComponent(r[0])]=encodeURIComponent(r[1]));return i}var v=15e3,y=!1,p="/contact/virtual-agent/",w="/contact/virtual-agent/replay",b=1024,k="VA",d="VAMessage",g="VAStartOver",nt="VAEndChat",tt="VAShowFeedback",it="VirtualAgent",r;i.render=f;r=function(r){function f(n){if(!n)throw new Error("config is a mandatory parameter");n.environment=n.environment||i.Environment.PRODUCTION;c(n);r.call(this,n,v,y)}return u(f,r),f.prototype.getComponentUrl=function(){return this.url||(this.url=l(this.config))},f.prototype.getComponentSdk=function(){var n=this;return this.virtualAgentSDK||(this.virtualAgentSDK={sendMessage:function(t){return e(n.proxy,t)},startOver:function(){return o(n.proxy)},endChat:function(){return s(n.proxy)},showFeedback:function(){return h(n.proxy)}}),this.virtualAgentSDK},f.prototype.getXframeProxyUrl=function(){return n.utils.getOriginFromUrl(this.getComponentUrl())+"/xframeproxy/"},f.prototype.getEventListeners=function(){if(!this.listeners&&(this.listeners=t.UIComponent.getEventListeners(this.config,k),this.config.content&&this.config.content.flowExtensionOption)){var n=this.config.content.flowExtensionOption,i=t.UIComponent.getEventListeners(n);jQuery.extend(this.listeners,i)}return this.listeners},f}(t.UIComponent);i.Component=r}(i=t.virtualAgent||(t.virtualAgent={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){function i(i){return n.utils.getOriginFromUrl(i)+"/"+t.DEFAULT_XFRAME_PROXY_PATH+"/"}function r(i){if(!n.utils.hasKeyOrValue(t.Environment,i.environment))throw"The environment property specified in config is invalid";return i.environment}t.Environment=n.SMCEnvironment;var u;!function(n){n.FORM="form";n.SUCCESS="success"}(u=t.WorkflowStep||(t.WorkflowStep={}));t.CASEMANAGEMENT_COMPONENT="caseManagement";t.LOAD_TIMEOUT_MS=15e3;t.REPORT_HEIGHT_CHANGE=!0;t.DEFAULT_CASE_MANAGEMENT_HOST=t.Environment.PRODUCTION;t.DEFAULT_XFRAME_PROXY_PATH="xframeproxy";t.DEFAULT_LOCALE="en-us";t.DEFAULT_PREVIEW=!1;t.DEFAULT_NOCHROME=!0;t.CASE_LOCALE="locale";t.CASE_SAP_ID="sapId";t.CASE_ENTITLEMENT_ID="entitlementId";t.CASE_PREVIEW="preview";t.CASE_ENVIRONMENT="environment";t.CASE_INCLUDED_WORKFLOW_STEPS="includedWorkflowSteps";t.CASE_NOCHROME="nochrome";t.CASE_NUMBER="caseNumber";t.CASE_HIDE_FORM_HEADERS="hideFormHeaders";t.CASE_TITLE_PRE_POPULATE="titlePrePopulate";t.CASE_FIELDS_PRE_POPULATE="fieldsPrePopulate";t.getCaseXFrameProxyUrl=i;t.getCaseBaseUrl=r}(i=t.caseManagement||(t.caseManagement={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){var r;!function(r){function o(n){return t.renderComponent(f,n,i.CASEMANAGEMENT_COMPONENT)}var e="commercial/cases/create",f;r.render=o;f=function(t){function r(n){if(!n||!(n.locale&&n.sapId&&n.entitlementId))throw new Error("You must pass locale and a SAP Id and entitlement Id when creating a case management component.");t.call(this,n,i.LOAD_TIMEOUT_MS,i.REPORT_HEIGHT_CHANGE)}return u(r,t),r.prototype.getComponentUrl=function(){return this.getCreateCaseUrl(this.config)},r.prototype.getComponentSdk=function(){return{}},r.prototype.getXframeProxyUrl=function(){return i.getCaseXFrameProxyUrl(this.getComponentUrl())},r.prototype.getCreateCaseUrl=function(t){var r={};return t[i.CASE_SAP_ID]&&n.utils.isString(t[i.CASE_SAP_ID])&&(r[i.CASE_SAP_ID]=t[i.CASE_SAP_ID]),t[i.CASE_ENTITLEMENT_ID]&&n.utils.isString(t[i.CASE_ENTITLEMENT_ID])&&(r[i.CASE_ENTITLEMENT_ID]=t[i.CASE_ENTITLEMENT_ID]),t[i.CASE_INCLUDED_WORKFLOW_STEPS]&&n.utils.isArray(t[i.CASE_INCLUDED_WORKFLOW_STEPS])&&(r[i.CASE_INCLUDED_WORKFLOW_STEPS]=t[i.CASE_INCLUDED_WORKFLOW_STEPS].join()),t[i.CASE_PREVIEW]&&n.utils.isBoolean(t[i.CASE_PREVIEW])&&(r[i.CASE_PREVIEW]=t[i.CASE_PREVIEW]),t[i.CASE_HIDE_FORM_HEADERS]&&n.utils.isBoolean(t[i.CASE_HIDE_FORM_HEADERS])&&(r[i.CASE_HIDE_FORM_HEADERS]=t[i.CASE_HIDE_FORM_HEADERS]),r[i.CASE_NOCHROME]=!0,t[i.CASE_LOCALE]&&n.utils.isString(t[i.CASE_LOCALE])?n.utils.appendParams("https://"+i.getCaseBaseUrl(t)+"/"+t[i.CASE_LOCALE]+"/"+e,r):n.utils.appendParams("https://"+i.getCaseBaseUrl(t)+"/"+e,r)},r}(t.UIComponent);r.CreateCaseComponent=f}(r=i.createCase||(i.createCase={}))}(i=t.caseManagement||(t.caseManagement={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){var r;!function(r){function e(n){return t.renderComponent(f,n,i.CASEMANAGEMENT_COMPONENT)}r.render=e;var f=function(t){function r(n){t.call(this,n,i.LOAD_TIMEOUT_MS,i.REPORT_HEIGHT_CHANGE)}return u(r,t),r.prototype.getComponentUrl=function(){return this.getManageCommunicationsUrl(this.config)},r.prototype.getComponentSdk=function(){return{}},r.prototype.getXframeProxyUrl=function(){return n.utils.getOriginFromUrl(this.getComponentUrl())+"/"+i.DEFAULT_XFRAME_PROXY_PATH+"/"},r.prototype.getManageCommunicationsUrl=function(t){var u={},f=t.locale?t.locale:i.DEFAULT_LOCALE;if(t.preview&&(u[i.CASE_PREVIEW]=!0),u[i.CASE_NOCHROME]=i.DEFAULT_NOCHROME,!t.caseNumber)throw"Error in ManageCaseCommunicationComponent component. Case number is a required parameter";return n.utils.appendParams("https://"+i.getCaseBaseUrl(t)+"/"+f+"/"+r.DEFAULT_CASE_COMMUNICATION_PATH+"/"+t[i.CASE_NUMBER],u)},r.DEFAULT_CASE_COMMUNICATION_PATH="commercial/cases",r}(t.UIComponent);r.ManageCaseCommunicationComponent=f}(r=i.manageCaseCommunication||(i.manageCaseCommunication={}))}(i=t.caseManagement||(t.caseManagement={}))}(t=n.ui||(n.ui={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){var i=function(){function t(){}return t.getCase=function(i){t.validateConfig(i);var r=t.calculateApiUrl(i),u={operationName:"api.caseManagement.getCase",url:r,dependencyName:"SelfAssistWeb",dependencyOperationName:"Get case details",additionalHeaders:{"x-requst-secured-context-token":i.authInfo.token}};return n.utils.httpRequest.get(u)},t.calculateApiUrl=function(t){var i=n.ui.caseManagement.getCaseBaseUrl(t);return"https://"+i+"/api/cases/"+t.caseNumber},t.validateConfig=function(t){if(!n.utils.isString(t.caseNumber))throw"getCase requires a case number";if(!(t.authInfo&&t.authInfo.token&&t.authInfo.type))throw"getCase requires authInfo with valid token and type";if(t.authInfo.type!==n.ui.AuthType.DELEGATED)throw"getCase only supports delegated authentication type";},t}();t.CaseManagementApi=i}(i=t.caseManagement||(t.caseManagement={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var i=function(){function n(){}return n}(),t;n.SearchResultFacet=i;t=function(){function n(){}return n}();n.SearchResultFacetValue=t}(t=n.search||(n.search={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var i=function(){function n(){}return n}(),t;n.SearchResultSet=i;t=function(){function n(){}return n}();n.SearchResult=t}(t=n.search||(n.search={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var i=function(n){function t(){n.apply(this,arguments)}return u(t,n),t}(n.SearchResultSet),t;n.KnowledgeSearchResultSet=i;t=function(n){function t(){n.apply(this,arguments)}return u(t,n),t}(n.SearchResult);n.KnowledgeSearchResult=t}(t=n.search||(n.search={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var i=function(){function n(n,t,i,r,u,f){this.confidentiality=n;this.contentType=t;this.language=i;this.productFamilyId=r;this.productNameId=u;this.productVersionId=f}return n}(),t;n.SearchFacets=i;t=function(){function n(n,t){this.count=n;this.sort=t}return n}();n.SearchFacet=t,function(n){n[n.CountDescending="CountDescending"]="CountDescending";n[n.CountAscending="CountAscending"]="CountAscending";n[n.ValueDescending="ValueDescending"]="ValueDescending";n[n.ValueAscending="ValueAscending"]="ValueAscending"}(n.SearchFacetSortOrder||(n.SearchFacetSortOrder={}));n.SearchFacetSortOrder}(t=n.search||(n.search={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(){function n(n,t,i,r,u,f,e,o,s,h){this.documentDateFrom=n;this.documentDateTo=t;this.confidentiality=i;this.contentType=r;this.audienceLanguage=u;this.audienceLocale=f;this.productFamilyId=e;this.productNameId=o;this.productVersionId=s;this.keyWords=h}return n}();n.SearchFilter=t}(t=n.search||(n.search={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(){function n(n,t){this.name=n;this.direction=t}return n}();n.SearchOrderByExpression=t,function(n){n[n.SearchScore="SearchScore"]="SearchScore";n[n.DocumentDate="DocumentDate"]="DocumentDate"}(n.OrderByFieldNames||(n.OrderByFieldNames={}));n.OrderByFieldNames;!function(n){n[n.Ascending="Ascending"]="Ascending";n[n.Descending="Descending"]="Descending"}(n.OrderByDirection||(n.OrderByDirection={}));n.OrderByDirection}(t=n.search||(n.search={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(){function n(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w){this.query=n;this.locale=t;this.scopes=i;this.count=r;this.skip=u;this.searchProvider=f;this.instantAnswerProvider=e;this.includeInstantAnswer=o;this.includeWebSearchResults=s;this.enableHitHighlights=h;this.filter=c;this.facets=l;this.orderBy=a;this.insiderMode=v;this.tenant=y;this.version=p;this.environment=w}return n}();n.SearchConfig=t}(t=n.search||(n.search={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(n){function t(t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k){n.call(this,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b);this.token=k}return u(t,n),t}(n.SearchConfig);n.KnowledgeSearchConfig=t}(t=n.search||(n.search={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){n.BASE_URI="supportsearch.microsoft.com";n.BASE_URI_STG="supportsearch-stg.microsoft.com";n.BASE_GATEWAYURI="api.support.microsoft.com/v1/search/knowledge";n.BASE_GATEWAYURI_STG="api-ppe.support.microsoft.com/v1/search/knowledge";n.SEARCH_ROUTE="search";n.DEFAULT_SEARCHRESULTSCOUNT=20;n.DEFAULT_LOCALE="en-us";n.DEFAULT_SCOPE="default";n.DEFAULT_VERSION="5.0"}(t=n.search||(n.search={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){function r(i,r){var u=jQuery.Deferred();return n.utils.httpRequest.get(r).then(function(n){var h=[],c=[],l=[],o,i,f,e,r;if(n.WebSearchResults&&0!=n.WebSearchResults.length)for(i=0;i<n.WebSearchResults.length;i++)o=new t.SearchResult,o.title=n.WebSearchResults[i].Title,o.displayUrl=n.WebSearchResults[i].DisplayUrl,o.targetUrl=n.WebSearchResults[i].TargetUrl,o.description=n.WebSearchResults[i].Description,h.push(o);if(n.FlightIds&&0!=n.FlightIds.length)for(i=0;i<n.FlightIds.length;i++)l.push(n.FlightIds[i]);if(n.Facets)for(f in n.Facets){for(var s=new t.SearchResultFacet,a=[],i=0;i<n.Facets[f].length;i++)e=new t.SearchResultFacetValue,e.name=n.Facets[f][i].Name,e.value=n.Facets[f][i].Value,e.facetType=n.Facets[f][i].FacetType,e.count=n.Facets[f][i].Count,e.from=n.Facets[f][i].From,e.to=n.Facets[f][i].To,a.push(e);s.field=f;s.values=a;c.push(s)}r=new t.SearchResultSet;r.totalResults=n.TotalResults;r.searchResults=h;r.facets=c;r.instantAnswerJson=n.AnswerContentJson;r.searchProvider=n.SearchProvider;r.instantAnswerProvider=n.InstantAnswerProvider;r.flightIds=l;r.tenant=n.CallerId;u.resolve(r)},function(n){console.log(n);u.reject(n)}),u.promise()}function u(i,r){var u=jQuery.Deferred();return n.utils.httpRequest.get(r).then(function(n){var h=[],c=[],l=[],r,i,e,o,f;if(n.WebSearchResults&&0!=n.WebSearchResults.length)for(i=0;i<n.WebSearchResults.length;i++)r=new t.KnowledgeSearchResult,r.title=n.WebSearchResults[i].Title,r.displayUrl=n.WebSearchResults[i].DisplayUrl,r.targetUrl=n.WebSearchResults[i].TargetUrl,r.description=n.WebSearchResults[i].Description,r.documentDate=n.WebSearchResults[i].DocumentDate,r.confidentiality=n.WebSearchResults[i].Confidentiality,r.contentType=n.WebSearchResults[i].ContentType,r.documentFamilyID=n.WebSearchResults[i].DocumentFamilyID,r.audienceLanguage=n.WebSearchResults[i].AudienceLanguage,r.audienceLocale=n.WebSearchResults[i].AudienceLocale,r.language=n.WebSearchResults[i].Language,h.push(r);if(n.FlightIds&&0!=n.FlightIds.length)for(i=0;i<n.FlightIds.length;i++)l.push(n.FlightIds[i]);if(n.Facets)for(e in n.Facets){for(var s=new t.SearchResultFacet,a=[],i=0;i<n.Facets[e].length;i++)o=new t.SearchResultFacetValue,o.name=n.Facets[e][i].Name,o.value=n.Facets[e][i].Value,o.facetType=n.Facets[e][i].FacetType,o.count=n.Facets[e][i].Count,o.from=n.Facets[e][i].From,o.to=n.Facets[e][i].To,a.push(o);s.field=e;s.values=a;c.push(s)}f=new t.KnowledgeSearchResultSet;f.totalResults=n.TotalResults;f.searchResults=h;f.facets=c;f.instantAnswerJson=n.AnswerContentJson;f.searchProvider=n.SearchProvider;f.instantAnswerProvider=n.InstantAnswerProvider;f.flightIds=l;f.tenant=n.CallerId;u.resolve(f)},function(n){console.log(n);u.reject(n)}),u.promise()}function i(n,i){function c(n,t){void 0!=n&&void 0!=n.toISOString&&(r+="&"+t+"="+n.toISOString())}function u(n,t){if(void 0!=n)for(var i=0;i<n.length;++i)r+="&"+t+"["+i+"]="+n}function f(n,i){void 0!=n&&(r+="&"+i,void 0!=n.count&&(r+="&"+i+".count="+n.count),void 0!=n.sort&&t.SearchFacetSortOrder[n.sort]===n.sort&&(r+="&"+i+".sort="+n.sort))}var r="",v;if(void 0==n.query)throw"Please specify a search query";if(r+="?query="+n.query,void 0==n.locale&&(n.locale=t.DEFAULT_LOCALE),r+="&locale="+n.locale,void 0==n.scopes&&(n.scopes=t.DEFAULT_SCOPE),r+="&scopes="+n.scopes,void 0!=n.count&&0!=n.count||(n.count=t.DEFAULT_SEARCHRESULTSCOUNT),r+="&count="+n.count,void 0==n.skip||0==n.skip||void 0==n.count&&0==n.count||(r+="&skip="+n.skip),void 0!=n.searchProvider&&(r+="&searchProvider="+n.searchProvider),void 0!=n.instantAnswerProvider&&(r+="&instantAnswerProvider="+n.instantAnswerProvider),void 0!=n.includeInstantAnswer&&(r+="&includeInstantAnswer="+n.includeInstantAnswer),void 0!=n.includeWebSearchResults&&(r+="&includeWebSearchResults="+n.includeWebSearchResults),void 0!=n.enableHitHighlights&&(r+="&enableHitHighlights="+n.enableHitHighlights),void 0!=n.insiderMode&&""!=n.insiderMode&&(r+="&insiderMode="+n.insiderMode),void 0!=n.version&&""!=n.version||(n.version=t.DEFAULT_VERSION),"6.0"===n.version&&(void 0!=n.filter&&(c(n.filter.documentDateFrom,"filter.documentDateFrom"),c(n.filter.documentDateTo,"filter.documentDateTo"),u(n.filter.confidentiality,"filter.confidentiality"),u(n.filter.contentType,"filter.contentType"),u(n.filter.audienceLanguage,"filter.audienceLanguage"),u(n.filter.audienceLocale,"filter.audienceLocale"),u(n.filter.productFamilyId,"filter.productFamilyId"),u(n.filter.productNameId,"filter.productNameId"),u(n.filter.productVersionId,"filter.productVersionId"),u(n.filter.keyWords,"filter.keyWords")),void 0!=n.facets&&(f(n.facets.confidentiality,"facets.confidentiality"),f(n.facets.contentType,"facets.contentType"),f(n.facets.language,"facets.language"),f(n.facets.productFamilyId,"facets.productFamilyId"),f(n.facets.productNameId,"facets.productNameId"),f(n.facets.productVersionId,"facets.productVersionId")),void 0!=n.orderBy))for(var s=0,h=0,l=n.orderBy;h<l.length;h++){var a=l[h],e=a.name,o=a.direction;void 0!=e&&t.OrderByFieldNames[e]===e&&(r+="&orderBy["+s+"].name="+e,void 0!=o&&t.OrderByDirection[o]===o&&(r+="&orderBy["+s+"].direction="+o),++s)}return v=i?n.environment&&"STAGING"===n.environment.toUpperCase()?t.BASE_GATEWAYURI_STG:t.BASE_GATEWAYURI:n.environment&&"STAGING"===n.environment.toUpperCase()?t.BASE_URI_STG:t.BASE_URI,"https://"+v+"/api/"+n.version+"/"+t.SEARCH_ROUTE+r}var f=function(){function t(){}return t.getSearchResults=function(t){var o=i(t,!1),s=t.tenant||n.SdkConfig.current.partnerId+":"+n.SdkConfig.current.appId,u={},f,e;return u["x-caller-name"]=s,f=n.telemetry.getCorrelationVector(),f&&(u["ms-cv"]=n.telemetry.getCorrelationVector()),e={operationName:"api.search.getResults",url:o,additionalHeaders:u,dependencyName:"supportsearch.microsoft.com",dependencyOperationName:"Get Search Results"},r(t,e)},t.getKnowledgeSearchResults=function(t){var o=i(t,!0),s=t.tenant||n.SdkConfig.current.partnerId+":"+n.SdkConfig.current.appId,r={},f,e;return r["x-caller-name"]=s,r.Authorization="Bearer "+t.token,f=n.telemetry.getCorrelationVector(),f&&(r["ms-cv"]=n.telemetry.getCorrelationVector()),e={operationName:"api.search.getKnowledgeSearchResults",url:o,additionalHeaders:r,dependencyName:"https://api.support.microsoft.com/v1/search",dependencyOperationName:"Get Knowledge Search Results"},u(t,e)},t}();t.SearchApi=f}(i=t.search||(t.search={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var i=function(){function n(){}return n}(),t;n.SuggestResultSet=i;t=function(){function n(){}return n}();n.QuerySuggestion=t}(t=n.suggest||(n.suggest={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t=function(){function n(n,t,i,r,u,f){this.query=n;this.locale=t;this.count=i;this.tenant=r;this.version=u;this.componentName=f}return n}();n.SuggestConfig=t}(t=n.suggest||(n.suggest={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){n.BASEURI="supportsuggest.microsoft.com";n.SUGGEST_ROUTE="suggest/msaas";n.DEFAULT_SUGGESTRESULTSCOUNT=10;n.DEFAULT_LOCALE="en-us";n.DEFAULT_SCOPE="default";n.DEFAULT_VERSION="1.0"}(t=n.suggest||(n.suggest={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){function i(i,r){var u=jQuery.Deferred();return n.utils.httpRequest.get(r).then(function(n){var e=[],o=[],f,i,r;if(n.Suggestions&&0!=n.Suggestions.length)for(i=0;i<n.Suggestions.length;i++)f=new t.QuerySuggestion,f.Value=n.Suggestions[i].Value,e.push(f);if(n.FlightIds&&0!=n.FlightIds.length)for(i=0;i<n.FlightIds.length;i++)o.push(n.FlightIds[i]);r=new t.SuggestResultSet;r.SuggestId=n.SuggestId;r.FlightIds=o;r.Tenant=n.Tenant;r.ProcessingMs=n.ProcessingMs;r.ComponentName=n.ComponentName;r.Suggestions=e;u.resolve(r)},function(n){console.log(n);u.reject(n)}),u.promise()}function r(n){var i="";if(void 0==n.query)throw"Please specify a suggest query";return i+="?query="+n.query,void 0==n.locale&&(n.locale=t.DEFAULT_LOCALE),i+="&locale="+n.locale,void 0!=n.count&&0!=n.count||(n.count=t.DEFAULT_SUGGESTRESULTSCOUNT),i+="&count="+n.count,void 0!=n.version&&""!=n.version||(n.version=t.DEFAULT_VERSION),"https://"+t.BASEURI+"/api/"+n.version+"/"+t.SUGGEST_ROUTE+i}var u=function(){function t(){}return t.getSuggestResults=function(t){var s=r(t),u,f,e,o;return void 0!=t.componentName&&""!=t.componentName||(t.componentName="Unspecified"),u={},f=t.tenant||n.SdkConfig.current.partnerId+":"+n.SdkConfig.current.appId,u["x-caller-name"]=f,u["x-caller-component"]=t.componentName,e=n.telemetry.getCorrelationVector(),e&&(u["ms-cv"]=n.telemetry.getCorrelationVector()),o={operationName:"api.suggest.getSuggest",url:s,additionalHeaders:u,dependencyName:"supportsuggest.microsoft.com",dependencyOperationName:"Get Suggest Results"},i(t,o)},t}();t.SuggestApi=u}(i=t.suggest||(t.suggest={}))}(t=n.api||(n.api={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){function f(n){return t.renderComponent(r,n,s)}var e=15e3,o=!0,s="AssistedSupportPlugin",r;i.render=f;r=function(t){function i(n){t.call(this,n,e,o)}return u(i,t),i.prototype.getComponentUrl=function(){return this.config.pluginUrl},i.prototype.getComponentSdk=function(){return{}},i.prototype.getXframeProxyUrl=function(){return n.utils.getOriginFromUrl(this.getComponentUrl())+"/xframeproxy/"},i}(t.UIComponent);i.Component=r}(i=t.assistedSupportPlugin||(t.assistedSupportPlugin={}))}(t=n.ui||(n.ui={}))}(r||(r={}));e=[i,t];f=function(n,t){"use strict";function u(n){return r.Bootstrapper.init(n)}var i,f;if(!window||!document)throw new Error("bootstrapper requires a window with a document");t.init=u;t.version=r.SdkVersion.version;!function(n){var t;!function(n){n.get=r.api.modalities.API.get;n.getv2=r.api.modalities.API.getv2;n.ModalityConfig=r.api.modalities.ModalityConfig;n.Accessibility=r.api.modalities.Accessibility;n.Availability=r.api.modalities.Availability;n.Environment=r.SMCEnvironment;n.Modality=r.api.modalities.Modality}(t=n.modalities||(n.modalities={}))}(i=t.api||(t.api={}));!function(n){var t;!function(n){n.getCase=r.api.caseManagement.CaseManagementApi.getCase}(t=n.caseManagement||(n.caseManagement={}))}(i=t.api||(t.api={}));!function(n){var t;!function(n){n.getSearchResults=r.api.search.SearchApi.getSearchResults;n.getKnowledgeSearchResults=r.api.search.SearchApi.getKnowledgeSearchResults;n.SearchFacetSortOrder=r.api.search.SearchFacetSortOrder;n.SearchOrderByFieldNames=r.api.search.OrderByFieldNames;n.SearchOrderByDirection=r.api.search.OrderByDirection}(t=n.search||(n.search={}))}(i=t.api||(t.api={}));!function(n){var t;!function(n){n.getSuggestResults=r.api.suggest.SuggestApi.getSuggestResults}(t=n.suggest||(n.suggest={}))}(i=t.api||(t.api={}));!function(n){var t,i,u,f,e,o,s;n.SurveyType=r.ui.SurveyType;n.AuthType=r.ui.AuthType;n.HostType=r.HostType;!function(n){n.render=r.ui.chat.render}(t=n.chat||(n.chat={}));!function(n){n.render=r.ui.callback.render}(i=n.callback||(n.callback={}));!function(n){n.render=r.ui.scheduleCallback.render}(u=n.scheduleCallback||(n.scheduleCallback={}));!function(n){n.render=r.ui.virtualAgent.render;n.Environment=r.SMCEnvironment}(f=n.virtualAgent||(n.virtualAgent={}));!function(n){n.createSurvey=r.ui.survey.createSurvey;n.OfferState=r.ui.survey.OfferState}(e=n.survey||(n.survey={}));!function(n){var t,i;!function(n){n.render=r.ui.caseManagement.createCase.render}(t=n.createCase||(n.createCase={}));!function(n){n.render=r.ui.caseManagement.manageCaseCommunication.render}(i=n.manageCaseCommunications||(n.manageCaseCommunications={}));n.Environment=r.SMCEnvironment;n.WorkflowStep=r.ui.caseManagement.WorkflowStep}(o=n.caseManagement||(n.caseManagement={}));!function(n){n.render=r.ui.assistedSupportPlugin.render}(s=n.assistedSupportPlugin||(n.assistedSupportPlugin={}))}(f=t.ui||(t.ui={}))}.apply(t,e);!(void 0!==f&&(n.exports=f))}])});!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("SupportSdkIntegration",[],t):"object"==typeof exports?exports.SupportSdkIntegration=t():n.SupportSdkIntegration=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={exports:{},id:r,loaded:!1};return n[r].call(u.exports,u,u.exports,t),u.loaded=!0,u.exports}var i={};return t.m=n,t.c=i,t.p="",t(0)}([function(n,t,i){n.exports=i(1)},function(n,t,i){var o,e,f=this&&this.__extends||function(n,t){function r(){this.constructor=n}for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},r,u;!function(n){var t=function(){function n(){}return Object.defineProperty(n,"version",{get:function(){return"2.0.18088.1"},enumerable:!0,configurable:!0}),n}();n.SdkVersion=t}(r||(r={}));!function(n){var t;!function(n){function r(n,i){return t(n,"string",i)}function u(n,i){return t(n,"boolean",i)}function f(n,i){return t(n,"number",i)}function e(n,i){return t(n,"function",i)}function o(n,i){var r=t(n,"object",i);return r&&n&&"undefined"==typeof n.length&&(r=!1),r}function t(n,t,i){return(!i||"undefined"!=typeof n&&null!=n)&&(typeof n===t||"undefined"==typeof n||null==n)}function s(n,t,u){i(n,t,u,"string",r)}function h(n,t,r){i(n,t,r,"boolean",u)}function c(n,t,r){i(n,t,r,"number",f)}function l(n,t,r){i(n,t,r,"function",e)}function a(n,t,r){i(n,t,r,"array",o)}function v(n,t){if(null==t)throw new Error(n+" must NOT be null");}function i(n,t,i,r,u){if(!u(t,i))throw new TypeError(n+" must be of type "+r);}n.isString=r;n.isBoolean=u;n.isNumber=f;n.isFunction=e;n.isArray=o;n.verifyString=s;n.verifyBoolean=h;n.verifyNumber=c;n.verifyFunction=l;n.verifyArray=a;n.verifyNotNull=v}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(n){function t(t){if(n.isString(t)&&t){var i=document.createElement("a");return i.href=t,i.hostname||(i.href=i.href),{protocol:i.protocol||void 0,hostname:i.hostname||void 0,port:i.port||void 0,pathname:i.pathname&&i.pathname.replace(/(^\/?)/,"/")||void 0,search:i.search||void 0,host:i.host||void 0,hash:i.hash||void 0}}}function i(n,t){var i={};return n&&n.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(n,r,u,f){return i[r]=t?decodeURIComponent(f):f}),i}function r(t,i){n.verifyNotNull("obj",t);for(var r in t)if(t.hasOwnProperty(r)&&r.toLowerCase()===i.toLowerCase())return t[r]}function u(){return window.location.origin||window.location.protocol+"//"+window.location.host}function f(n){var i=t(n),r=i.port&&s(i.protocol,i.port)?":"+i.port:"";return i.protocol+"//"+(i.hostname||"")+r}function e(n,r,u){var h=t(n),e=i(h&&h.search||"",!0),f,o,s;for(f in r)e[f]?u&&e[f]!=r[f]&&(e[f]=r[f]):e[f]=r[f];return o=jQuery.param(e),s=n.indexOf("?"),s>0?n.substr(0,s+1)+o:n+"?"+o}function o(){return window&&window.document&&window.document.referrer||window["MsSupportSdk.referrer"]}function s(n,t){return!(!t||"https:"===n&&"443"===t||"http:"===n&&"80"===t)}n.parseUrl=t;n.parseQueryString=i;n.getPropertyValue=r;n.getCurrentOrigin=u;n.getOriginFromUrl=f;n.appendParams=e;n.getReferrer=o}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(n){function t(){return r("Trident")}function i(){return window.navigator.userAgent}function r(n){return i().indexOf(n)>-1}n.isInternetExplorer=t}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t,i,r;n.PROMISE_STATE_PENDING="pending";n.SDK_QUERY_PARAM_NAME={APP_ID:"appid",PARTNER_ID:"partnerid",MS_CV:"ms-cv",COMPONENT_ID:"sdk_componentid",TARGET_ORIGIN:"sdk_targetorigin",HOST_TYPE:"sdk_hosttype",XFRAME:"sdk_xframe",IS_PROXY:"sdk_isproxy",TIMEOUT:"sdk_timeout",SESSION_ID:"sdk_sessionid"},function(n){n[n.NONE=0]="NONE";n[n.IFRAME=1]="IFRAME";n[n.POPUP=2]="POPUP";n[n.EMBEDDED=3]="EMBEDDED";n[n.IOS=4]="IOS";n[n.ANDROID=5]="ANDROID";n[n.UWP=6]="UWP"}(n.HostType||(n.HostType={}));n.HostType;!function(n){n[n.UNLOADED="Unloaded"]="UNLOADED";n[n.ERROR="Error"]="ERROR";n[n.SIGNIN_REQUEST="SignInRequest"]="SIGNIN_REQUEST";n[n.SIGNIN_RESPONSE="SignInResponse"]="SIGNIN_RESPONSE";n[n.SIGNIN_REDIRECT="SignInRedirect"]="SIGNIN_REDIRECT"}(n.CommonEvent||(n.CommonEvent={}));n.CommonEvent;!function(n){n.LOADED="Loaded";n.HEIGHT_CHANGED="HeightChanged";n.CLIENT_CONFIG_UPDATE="__ClientConfigUpdate__"}(t=n.InternalEvent||(n.InternalEvent={}));!function(n){n.WEB="Web";n.IOS="iOS";n.ANDROID="Android";n.UWP="UWP"}(i=n.Platform||(n.Platform={}));!function(n){n.SG1="sg1.support.services.microsoft.com";n.DEV="dev.support.services.microsoft.com";n.STAGING="staging.support.services.microsoft.com";n.UAT="support-uat.microsoft.com";n.PARTNER="partner.support.services.microsoft.com";n.PRODUCTION="support.microsoft.com"}(r=n.SMCEnvironment||(n.SMCEnvironment={}))}(r||(r={}));!function(n){var t;!function(t){function f(){return i()?n.Platform.ANDROID:u()?n.Platform.IOS:r()?n.Platform.UWP:n.Platform.WEB}function e(){return i()||r()||u()}function i(){return window.supportSdk&&window.supportSdk.notify instanceof Function&&window.supportSdk.notify}function r(){if(window&&window.external&&"notify"in window.external)return function(n){window.external.notify(n)}}function u(){return window&&window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.notify&&window.webkit.messageHandlers.notify.postMessage instanceof Function&&window.webkit.messageHandlers.notify.postMessage}t.getPlatform=f;t.getMessageBridge=e}(t=n.utils||(n.utils={}))}(r||(r={}));!function(){}(r||(r={}));!function(n){var t;!function(n){function t(){function n(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return(n()+n()+n()+"4"+n().substr(0,3)+n()+n()+n()+n()).toLowerCase()}function i(){function n(){return Math.floor(16*Math.random()).toString(16)}var t="xxxxxxxx-xxxx-4xxx-Rxxx-xxxxxxxxxxxx".replace(/x/g,n);return t.replace("R",(8|Math.floor(3*Math.random())).toString(16))}n.generateUniqueId=t;n.createFormattedGuid=i}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(n){function t(n){for(var e,u,r,f,t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if("function"!=typeof Object.assign){if(null==n)throw new TypeError("Cannot convert undefined or null to object");for(e=Object(n),u=0;u<t.length;u++)if(r=t[u],null!=r)for(f in r)Object.prototype.hasOwnProperty.call(r,f)&&(e[f]=r[f]);return e}return Object.assign.apply(Object,[n].concat(t))}function i(n){return"string"==typeof n?n:JSON.stringify(n)}function r(n){return"string"==typeof n?JSON.parse(n):n}function u(n,t){for(var i in n)if(t===i||t===n[i])return!0;return!1}n.cloneObject=t;n.stringify=i;n.parse=r;n.hasKeyOrValue=u}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t=function(){function t(t){t&&t.partnerId&&t.appId&&(this.sessionId=t.sessionId||n.utils.generateUniqueId(),this.partnerId=t.partnerId,this.appId=t.appId,this.platform=n.Platform.WEB,this.logger=t.logger,this.correlationVector=t.correlationVector)}return t}();n.SdkConfig=t}(r||(r={}));!function(n){var t;!function(n){function t(n,t){for(var r=[],u=[],i=0;i<n.length;i++)r.push(parseInt(n[i]));for(i=0;i<t.length;i++)u.push(parseInt(t[i]));for(;r.length<u.length;)r.push(0);for(i=0;i<r.length&&i<u.length;i++){if(r[i]<u[i])return!0;if(r[i]>u[i])return!1}return!1}n.isLessThanMinimum=t}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){var r="Microsoft.Support.Sdk",u=function(){function i(i,u){u=u||n.SdkConfig.current;this.name=i;this.sdkVersion=n.SdkVersion.version;this.partnerId=u.partnerId;this.partnerAppId=u.appId;this.sessionId=u.sessionId;this.platform=u.platform||n.Platform.WEB;this.appId=t.appId||r;this.origin=n.utils.getCurrentOrigin()}return i}();i.BaseEvent=u}(i=t.model||(t.model={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t="Microsoft.Support.Sdk.ClientError",i=function(n){function i(i){n.call(this,t,i)}return f(i,n),i}(n.BaseEvent);n.ClientError=i}(t=n.model||(n.model={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){var i=function(t){function i(i,r,u){t.call(this,i,u);n.utils.verifyString("operationName",r,!0);this.operationName=r;this.startTimer()}return f(i,t),i.prototype.startTimer=function(){this._startTime=Date.now()},i.prototype.stopTimer=function(){this.latencyMs=Date.now()-this._startTime},i}(t.BaseEvent);t.QosEvent=i}(i=t.model||(t.model={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(t){var i="Microsoft.Support.Sdk.IncomingRequest",r=function(t){function r(r,u){t.call(this,i,r,u);this.referrer=n.utils.getReferrer()}return f(r,t),r}(t.QosEvent);t.IncomingRequest=r}(i=t.model||(t.model={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t="Microsoft.Support.Sdk.OutgoingRequest",i=function(n){function i(i,r){n.call(this,t,i,r)}return f(i,n),i}(n.QosEvent);n.OutgoingRequest=i}(t=n.model||(n.model={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(t){var i=n.utils.stringify,r=function(){function n(n){this._config=n}return n.prototype.captureOutgoingRequestAsync=function(n,t,i,r,u,f){var e=this,o=this.createOutgoingRequest(t,i,r,u,f);return this.trackQosAsync(o,n,function(n){return e.writeEvent(n)})},n.prototype.captureIncomingRequestAsync=function(n,t,i,r){var u=this,f=this.createIncomingRequest(t,i,r);return this.trackQosAsync(f,n,function(n){return u.writeEvent(n)})},n.prototype.captureOutgoingRequest=function(n,t,i,r,u,f){var e=this,o=this.createOutgoingRequest(t,i,r,u,f);return this.trackQos(o,n,function(n){return e.writeEvent(n)})},n.prototype.captureIncomingRequest=function(n,t,i,r){var u=this,f=this.createIncomingRequest(t,i,r);return this.trackQos(f,n,function(n){return u.writeEvent(n)})},n.prototype.captureError=function(n,t){this.writeEvent(this.createClientError(n,t))},n.prototype.createOutgoingRequest=function(n,i,r,u,f){var e=new t.model.OutgoingRequest(n,this._config);return e.targetUri=i,e.requestMethod=r,e.dependencyName=u,e.dependencyOperationName=f,e},n.prototype.createIncomingRequest=function(n,r,u){var f=new t.model.IncomingRequest(n,this._config);return f.componentName=r,f.uiInfo=i(u),f},n.prototype.createClientError=function(n,i){var r=new t.model.ClientError(this._config);return r.errorMessage=n,r.errorName=i,r},n.prototype.trackQos=function(n,t,r){var u,f=!1;n.startTimer();try{u=t(n);f=null==n.succeeded||!!n.succeeded}catch(t){throw n.message=i(t.message),t;}finally{n.stopTimer();n.succeeded=f;r(n)}return u},n.prototype.trackQosAsync=function(n,t,r){var u=jQuery.Deferred();try{n.startTimer();t(n).then(function(t){n.stopTimer();n.succeeded=null==n.succeeded||!!n.succeeded;n.statusCode=n.statusCode||"200";r(n);u.resolve(t)},function(t){n.stopTimer();n.succeeded=!1;n.statusCode=n.statusCode||(t&&t.status?t.status.toString():"500");n.message=i(t);r(n);u.reject(t)})}catch(t){n.stopTimer();n.succeeded=!1;n.message=i(t.message);r(n);u.reject(t)}return u.promise()},n.prototype.writeEvent=function(n){this._config&&this._config.logger&&this._config.logger.writeEvent instanceof Function&&this._config.logger.writeEvent(n)},n}();t.DefaultEventWriter=r}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){function t(){var n=window.awa||window.Asimov;n&&n._registerSchemas([{name:"Microsoft.Support.Sdk.IncomingRequest","Ms.Qos.IncomingServiceRequest":{part:"B",def:{fields:[{req:!0,name:"operationName",type:"string"},{name:"targetUri",type:"string"},{req:!0,name:"latencyMs",type:"int32"},{name:"serviceErrorCode",type:"int32"},{req:!0,name:"succeeded",type:"bool"},{name:"requestMethod",type:"string"},{name:"responseContentType",type:"string"},{name:"protocol",type:"string"},{name:"protocolStatusCode",type:"string"},{name:"operationVersion",type:"string"},{name:"callerIpAddress",type:"string"},{name:"callerName",type:"string"},{name:"requestSizeBytes",type:"int32"},{name:"requestStatus",type:"int32"}]}},"Microsoft.Support.Sdk.IncomingRequest":{part:"C",def:{fields:[{name:"message",type:"string"},{name:"uiInfo",type:"string"},{req:!0,name:"sdkVersion",type:"string"},{req:!0,name:"partnerId",type:"string"},{name:"sessionId",type:"string"},{req:!0,name:"componentName",type:"string"},{req:!0,name:"partnerAppId",type:"string"},{req:!0,name:"platform",type:"string"},{name:"referrer",type:"string"},{name:"origin",type:"string"}]}}},{name:"Microsoft.Support.Sdk.OutgoingRequest","Ms.Qos.OutgoingServiceRequest":{part:"B",def:{fields:[{req:!0,name:"operationName",type:"string"},{name:"targetUri",type:"string"},{req:!0,name:"latencyMs",type:"int32"},{name:"serviceErrorCode",type:"int32"},{req:!0,name:"succeeded",type:"bool"},{name:"requestMethod",type:"string"},{name:"responseContentType",type:"string"},{name:"protocol",type:"string"},{name:"protocolStatusCode",type:"string"},{req:!0,name:"dependencyOperationName",type:"string"},{name:"dependencyOperationVersion",type:"string"},{req:!0,name:"dependencyName",type:"string"},{name:"dependencyType",type:"string"},{name:"responseSizeBytes",type:"int32"},{name:"requestStatus",type:"int32"}]}},"Microsoft.Support.Sdk.OutgoingRequest":{part:"C",def:{fields:[{name:"message",type:"string"},{req:!0,name:"sdkVersion",type:"string"},{req:!0,name:"partnerId",type:"string"},{name:"sessionId",type:"string"},{req:!0,name:"partnerAppId",type:"string"},{req:!0,name:"platform",type:"string"},{name:"origin",type:"string"}]}}},{name:"Microsoft.Support.Sdk.ClientError","Ms.Telemetry.Error":{part:"B",def:{fields:[{name:"errorName",type:"string"},{name:"errorMessage",type:"string"},{name:"severity",type:"int32"},{name:"errorType",type:"string"},{name:"errorCode",type:"int32"},{name:"lineNumber",type:"uint32"},{name:"isDisplayed",type:"bool"},{name:"errorLocation",type:"string"},{name:"errorMethod",type:"string"}]}},"Microsoft.Support.Sdk.ClientError":{part:"C",def:{fields:[{name:"uiInfo",type:"string"},{req:!0,name:"sdkVersion",type:"string"},{req:!0,name:"partnerId",type:"string"},{name:"sessionId",type:"string"},{req:!0,name:"partnerAppId",type:"string"},{req:!0,name:"platform",type:"string"},{name:"origin",type:"string"}]}}},{name:"survey.support.services.microsoft.com.SurveyOffer","survey.support.services.microsoft.com.SurveyOffer":{part:"C",def:{fields:[{req:!0,name:"responseId",type:"string"},{req:!0,name:"partnerId",type:"string"},{req:!0,name:"surveyId",type:"string"},{name:"flightId",type:"string"},{req:!0,name:"locale",type:"string"},{req:!0,name:"offerState",type:"string"},{name:"partnerContextJson",type:"string"}]}}},{name:"survey.support.services.microsoft.com.SurveyResponse","survey.support.services.microsoft.com.SurveyResponse":{part:"C",def:{fields:[{req:!0,name:"responseId",type:"string"},{req:!0,name:"partnerId",type:"string"},{req:!0,name:"surveyId",type:"string"},{name:"flightId",type:"string"},{req:!0,name:"quality",type:"string"},{name:"mode",type:"string"},{req:!0,name:"type",type:"string"},{req:!0,name:"locale",type:"string"},{req:!0,name:"isPartialResponse",type:"bool"},{req:!0,name:"displayTime",type:"string"},{req:!0,name:"surveyResponseJson",type:"string"},{name:"partnerContextJson",type:"string"}]}}}])}n.registerSchemas=t}(t=n.awa||(n.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){function t(n,t,i,r){i&&n&&n[t]&&(n[t][i]=r)}function i(n,t,i,r){i&&n&&n[t]&&(n[t][i]=r)}var r=function(){function n(){}return n.prototype.createBaseEventNoData=function(n,t){var i={name:n,appId:t},r={};return r[n]={},this.setContent(i,r),i},n.prototype.createBaseEvent=function(n){var i=n.name,u={name:i,appId:n.appId},r={};return r[i]={},t(r,i,"sdkVersion",n.sdkVersion),t(r,i,"partnerId",n.partnerId),t(r,i,"partnerAppId",n.partnerAppId),t(r,i,"sessionId",n.sessionId),t(r,i,"platform",n.platform),t(r,i,"origin",n.origin),this.setContent(u,r),u},n}();n.BaseEventBuilder=r;n.updatePartC=t;n.updatePartB=i}(t=n.awa||(n.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(t){var i;!function(i){var f="Ms.Qos.IncomingServiceRequest",r="Ms.Qos.OutgoingServiceRequest",u="Ms.Telemetry.Error",e=function(){function e(){}return e.prototype.createIncomingRequest=function(t){var e=this.createQosEvent(t,f),r=this.eventBuilder.getContent(e),u=t.name;return i.updatePartC(r,u,"componentName",t.componentName),i.updatePartC(r,u,"uiInfo",n.utils.stringify(t.uiInfo)),i.updatePartC(r,u,"referrer",t.referrer),e},e.prototype.createOutgoingRequest=function(t){var f=this.createQosEvent(t,r),u=this.eventBuilder.getContent(f);return i.updatePartB(u,r,"targetUri",n.utils.stringify(t.targetUri)),i.updatePartB(u,r,"requestMethod",n.utils.stringify(t.requestMethod)),i.updatePartB(u,r,"dependencyOperationName",t.dependencyOperationName||"None"),i.updatePartB(u,r,"dependencyName",t.dependencyName||"None"),f},e.prototype.createClientError=function(n){this.eventBuilder=t.awa.createBaseEventBuilder();var f=this.eventBuilder.createBaseEvent(n),r=this.eventBuilder.getContent(f);return r[u]={},i.updatePartB(r,u,"errorMessage",n.errorMessage),i.updatePartB(r,u,"errorName",n.errorName),f},e.prototype.createQosEvent=function(r,u){this.eventBuilder=t.awa.createBaseEventBuilder();var e=this.eventBuilder.createBaseEvent(r),f=this.eventBuilder.getContent(e);return f[u]={},n.utils.verifyString("operationName",r.operationName,!0),i.updatePartB(f,u,"operationName",r.operationName),i.updatePartB(f,u,"latencyMs",r.latencyMs),i.updatePartB(f,u,"protocolStatusCode",r.statusCode),i.updatePartB(f,u,"succeeded",r.succeeded),i.updatePartC(f,r.name,"message",n.utils.stringify(r.message||"")),e},e}();i.QosEventBuilder=e}(i=t.awa||(t.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t="content",i=function(n){function i(){n.apply(this,arguments)}return f(i,n),i.prototype.setContent=function(n,i){n&&(n[t]=i)},i.prototype.getContent=function(n){return n&&n[t]},i}(n.BaseEventBuilder);n.BaseEventBuilderV3=i}(t=n.awa||(n.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(n){var t="data",i=function(n){function i(){n.apply(this,arguments)}return f(i,n),i.prototype.setContent=function(n,i){n&&(n[t]=i)},i.prototype.getContent=function(n){return n&&n[t]},i}(n.BaseEventBuilder);n.BaseEventBuilderV4=i}(t=n.awa||(n.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){var t;!function(t){function i(t){var r,i=n.getAwaInstance();if(t&&t.appId&&i)try{"3"===n.getAwaMajorVersion()&&i.ids&&i.ids.getAppId instanceof Function&&(r=i.ids.getAppId(),i.ids.setAppId(t.appId));i.writeEvent(t)}finally{r&&i.ids.setAppId(r)}}function r(){var i,r=n.getAwaMajorVersion();switch(r){case"3":i=new t.BaseEventBuilderV3;break;case"4":i=new t.BaseEventBuilderV4;break;default:console.warn("unsupported awa version: "+r)}return i}var u=function(r){function u(i){r.call(this,i);t.registerSchemas();var u=n.getAwaInstance();i&&i.correlationVector&&u.cv.setValue(i.correlationVector);u.cv.getValue()||u.cv.init()}return f(u,r),u.prototype.captureOutgoingRequestAsync=function(n,r,u,f,e,o){return this.trackQosAsync(this.createOutgoingRequest(r,u,f,e,o),n,function(n){var r=new t.QosEventBuilder,u=r.createOutgoingRequest(n);i(u)})},u.prototype.captureIncomingRequestAsync=function(n,r,u,f){return this.trackQosAsync(this.createIncomingRequest(r,u,f),n,function(n){var r=new t.QosEventBuilder,u=r.createIncomingRequest(n);i(u)})},u.prototype.captureOutgoingRequest=function(i,r,u,f,e,o){return this.trackQos(this.createOutgoingRequest(r,u,f,e,o),i,function(i){var r=new t.QosEventBuilder,u=r.createOutgoingRequest(i);n.awa.writeAwaEvent(u)})},u.prototype.captureIncomingRequest=function(i,r,u,f){return this.trackQos(this.createIncomingRequest(r,u,f),i,function(i){var r=new t.QosEventBuilder,u=r.createIncomingRequest(i);n.awa.writeAwaEvent(u)})},u.prototype.captureError=function(i,r){var u=this.createClientError(i,r),f=new t.QosEventBuilder,e=f.createClientError(u);n.awa.writeAwaEvent(e)},u}(n.DefaultEventWriter);t.EventWriter=u;t.writeAwaEvent=i;t.createBaseEventBuilder=r}(t=n.awa||(n.awa={}))}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){function r(n,i){t.captureError(n,i)}function u(n,i,r,u,f,e){return t.captureOutgoingRequestAsync(n,i,r,u,f,e)}function f(n,i,r,u){return t.captureIncomingRequestAsync(n,i,r,u)}function e(n,i,r,u,f,e){return t.captureOutgoingRequest(n,i,r,u,f,e)}function o(n,i,r,u){return t.captureIncomingRequest(n,i,r,u)}function i(){return window.awa||window.Asimov}function s(){return window.Asimov?"3":window.awa?"4":void 0}function h(){var n=i();return n&&n.cv.getValue()}function c(r,u){n.appId=u;var f=r&&r.logger&&r.logger.writeEvent instanceof Function,e=!f&&i();t=void 0;e&&(t=new n.awa.EventWriter(r));t=t||new n.DefaultEventWriter(r);f||e||console.warn("Qos logging disabled since neither jsll nor customLogger is available!")}var t;n.captureError=r;n.captureOutgoingRequestAsync=u;n.captureIncomingRequestAsync=f;n.captureOutgoingRequest=e;n.captureIncomingRequest=o;n.getAwaInstance=i;n.getAwaMajorVersion=s;n.getCorrelationVector=h;n.init=c}(t=n.telemetry||(n.telemetry={}))}(r||(r={}));!function(n){var t;!function(n){n.ALL_EVENTS="*";var t=function(){function t(){this.listeners={}}return t.prototype.subscribe=function(n,t){if("string"!=typeof n||!t)throw new Error("Event "+(n?"listener":"name")+" must be provided");var i=n.toLowerCase();this.listeners[i]=this.listeners[i]||[];this.listeners[i].push(t)},t.prototype.publish=function(t,i){var r,u,f;if("string"!=typeof t||!i)throw new Error("Event name must be provided");r=this.listeners[t.toLowerCase()]||[];r.push.apply(r,this.listeners[n.ALL_EVENTS]);u=function(n){window.setTimeout(function(){return r[n](i)},0)};for(f in r)u(f)},t.prototype.unsubscribe=function(n,t){if("string"!=typeof n||!t)throw new Error("Event "+(n?"listener":"name")+" must be provided");var r,i=n.toLowerCase();this.listeners[i]&&(r=this.listeners[i].indexOf(t))>=0&&this.listeners[i].splice(r,1)},t.prototype.unsubsribeAll=function(){this.listeners={}},t}();n.EventHub=t}(t=n.proxy||(n.proxy={}))}(r||(r={}));!function(n){var t;!function(){}(t=n.proxy||(n.proxy={}))}(r||(r={}));!function(n){var t;!function(n){function t(n){for(var i=[],t=1;t<arguments.length;t++)i[t-1]=arguments[t];window.setTimeout(n,0,i)}n.runAsync=t}(t=n.utils||(n.utils={}))}(r||(r={}));!function(n){var t;!function(t){var i=function(){function t(t,i){var u=this,r;n.utils.verifyNotNull("target",t);this._target=t;this._origin=i&&i.replace(/\/+$/,"");r=function(n){return u.postMessageHandler(n)};window.addEventListener?window.addEventListener("message",r,!1):window.attachEvent&&window.attachEvent("onmessage",r)}return t.prototype.sendMessage=function(t){this._target.postMessage(n.utils.stringify(t),this._origin)},t.prototype.destroy=function(){},t.prototype.postMessageHandler=function(t){var i=this;"*"!=this._origin&&t.origin!=this._origin||n.utils.runAsync(function(){try{i.onMessage&&i.onMessage(t.data&&JSON.parse(t.data))}catch(n){console.log(n)}})},t}();t.WindowPostMessageProxy=i}(t=n.proxy||(n.proxy={}))}(r||(r={}));!function(n){var t;!function(t){var i=function(){function i(i,r,u){var e=this,f;n.utils.verifyString("componentId",i,!0);this._eventHub=new t.EventHub;this._componentId=i;for(f in r)this.addEventListener(f,r[f]);u&&(this._messageProxy=u,this._messageProxy.onMessage=function(n){n&&n.type&&n.id===e._componentId&&e._eventHub.publish(n.type,n)})}return i.prototype.dispatchEvent=function(n,t){var r={id:this._componentId,type:n,data:t||{}},i=jQuery.Deferred();if(this._messageProxy&&this._messageProxy.sendMessage instanceof Function)try{this._messageProxy.sendMessage(r);i.resolve()}catch(n){i.reject(n)}else i.reject(new Error("messageProxy unavailable!"));return i.promise()},i.prototype.addEventListener=function(n,t){n&&t&&this._eventHub.subscribe(n,t)},i.prototype.removeEventListener=function(n,t){n&&t&&this._eventHub.unsubscribe(n,t)},i.prototype.removeAllEventListeners=function(){this._eventHub.unsubsribeAll()},i}();t.SdkClientProxyImp=i}(t=n.proxy||(n.proxy={}))}(r||(r={}));!function(n){var t;!function(n){var t,i=r.utils,u=function(){function n(){}return n.prototype.sendMessage=function(n){var r={command:n.type,context:n.data},t=i.getMessageBridge();t&&t(i.stringify(r))},n.prototype.destroy=function(){},n.getInstance=function(){return t||(t=new n,window.supportSdk=window.supportSdk||{},window.supportSdk.receiveCommand=function(n,i){t.onMessage instanceof Function&&t.onMessage(i)}),t},n}();n.NativeMessageProxy=u}(t=n.proxy||(n.proxy={}))}(u||(u={}));!function(n){var t;!function(){}(t=n.proxy||(n.proxy={}))}(u||(u={}));!function(n){var t;!function(n){function o(n){try{return n&&n.SupportSdkIntegration&&n.SupportSdkIntegration.xframe}catch(n){return}}var u,i,t,f=r.utils,s="__window_handle_update__",h="__window_handle_update_ack__",c="__custom_message__",e="pending",l=6e4,a=500,v=function(){function n(){var n=this;this._windowHandleUpdateTimeout=l;this._messageHandlers={};this._messageHandlers[s]=function(t){return n.onWindowHandleUpdate(t)};this._messageHandlers[c]=function(t){n.onMessage instanceof Function&&n.onMessage(t)}}return n.prototype.destroy=function(){window.clearInterval(this._windowHandleUpdateTask);u=void 0;i=void 0;t&&(window.clearTimeout(t.timeout),t=void 0)},n.prototype.sendMessage=function(n){var r=this,t=o(i);t&&t.onMessage instanceof i.Function?t.onMessage({type:c,data:f.stringify(n)}):this.onError instanceof Function&&f.runAsync(function(){return r.onError(new Error("Unable to send message via xframe proxy."))})},n.prototype.init=function(n){var u=this,r=jQuery.Deferred(),f;return(this.initXFrameBridge(),n)?(i=n,window.clearInterval(this._windowHandleUpdateTask),this._windowHandleUpdateTask=window.setInterval(function(){f=u.updateWindowHandle();f.then(function(){r.state()===e&&r.resolve()},function(n){r.state()===e?(window.clearInterval(u._windowHandleUpdateTask),r.reject(n)):u.onError instanceof Function&&u.onError(n)})},a)):t={deferred:r,timeout:window.setTimeout(function(){t&&t.deferred&&t.deferred.state()===e&&t.deferred.reject(new Error("Window handle of xframe proxy was not received!"))},this._windowHandleUpdateTimeout)},r.promise()},n.getInstance=function(){return u||(u=new n),u},n.prototype.getWindow=function(){return window},n.prototype.initXFrameBridge=function(){var n=this;this.getWindow().SupportSdkIntegration.xframe.onMessage=function(t){n.xframeMessageHandler(t)}},n.prototype.xframeMessageHandler=function(n){var t=this._messageHandlers[n.type];t instanceof Function&&f.runAsync(function(){return t(f.parse(n.data))})},n.prototype.onWindowHandleUpdate=function(n){i=n.handle;var r=o(i);r&&r.onMessage instanceof i.Function&&(r.onMessage({type:h}),t&&t.deferred.state()===e&&(window.clearTimeout(t.timeout),t.deferred.resolve()))},n.prototype.updateWindowHandle=function(){var t=jQuery.Deferred(),r=window.setTimeout(function(){t.reject(new Error("Failed to update window handle!"))},this._windowHandleUpdateTimeout),n;return this._messageHandlers[h]=function(){window.clearTimeout(r);t.resolve()},n=o(i),n&&n.onMessage instanceof i.Function&&n.onMessage({type:s,data:{handle:this.getWindow()}}),t.promise()},n}();n.XFrameMessageProxy=v}(t=n.proxy||(n.proxy={}))}(u||(u={}));!function(n){var t;!function(n){var t=r.InternalEvent,i=5e3,u=function(u){function e(n,t){u.call(this,n,t);this._queue=[];for(var i in t)this.addEventListener(i,t[i])}return f(e,u),e.prototype.dispatchError=function(n){return this.dispatchEvent(r.CommonEvent.ERROR,"string"==typeof n?{message:n}:n||{})},e.prototype.dispatchSignInRequest=function(n){return this.dispatchEvent(r.CommonEvent.SIGNIN_REQUEST,n)},e.prototype.dispatchEvent=function(n,t){return this._messageProxy?u.prototype.dispatchEvent.call(this,n,t):(this._queue.push({id:this._componentId,type:n,data:t||{}}),jQuery.Deferred().resolve())},e.prototype.getClientConfig=function(n){var t=this;return r.telemetry.captureIncomingRequestAsync(function(){var i=jQuery.Deferred();return t.getCachedClientConfig().then(function(t){t?n&&!t[n]?i.reject("Could not find property '"+n+"' on client config"):i.resolve(n?t[n]:t):i.reject("Failed to get client config")}).fail(function(n){i.reject(n)}),i.promise()},"getClientConfig","SdkIntegration")},e.prototype.init=function(t){var i=this,r=jQuery.Deferred();return t().then(function(t){for(i._messageProxy=t,i._messageProxy.onMessage=function(n){return i.onMessage(n)},i._messageProxy instanceof n.XFrameMessageProxy&&(i._messageProxy.onError=i.onError),i.getCachedClientConfig();i._queue.length>0;){var u=i._queue.shift();i._messageProxy.sendMessage(u)}r.resolve()}).fail(function(n){r.reject(n)}),r.promise()},e.prototype.onMessage=function(n){n&&n.type&&n.id===this._componentId&&this._eventHub.publish(n.type,n)},e.prototype.getCachedClientConfig=function(){var n=this,r;return this._clientConfigDeferred||(this._clientConfigDeferred=jQuery.Deferred(),r=window.setTimeout(function(){return n._clientConfigDeferred.reject("Failed to get client config due to timeout.")},i),this.addEventListener(t.CLIENT_CONFIG_UPDATE,function(t){window.clearTimeout(r);n._cachedClientConfig=t.data;n._clientConfigDeferred.resolve(n._cachedClientConfig)})),this._clientConfigDeferred.promise()},e}(r.proxy.SdkClientProxyImp);n.SdkClientProxyImp=u}(t=n.proxy||(n.proxy={}))}(u||(u={}));o=[i,t];e=function(n,t){"use strict";function f(){var n=r.utils.parseQueryString(window&&window.location&&window.location.search);return!!(r.utils.getPropertyValue(n,r.SDK_QUERY_PARAM_NAME.PARTNER_ID)&&r.utils.getPropertyValue(n,r.SDK_QUERY_PARAM_NAME.APP_ID)&&r.utils.getPropertyValue(n,r.SDK_QUERY_PARAM_NAME.COMPONENT_ID))}function i(n){var i=r.utils.parseUrl(n).search,t=r.utils.parseQueryString(i);return{appId:r.utils.getPropertyValue(t,""+r.SDK_QUERY_PARAM_NAME.APP_ID)||void 0,partnerId:r.utils.getPropertyValue(t,""+r.SDK_QUERY_PARAM_NAME.PARTNER_ID)||void 0,componentId:r.utils.getPropertyValue(t,""+r.SDK_QUERY_PARAM_NAME.COMPONENT_ID)||void 0,targetOrigin:decodeURIComponent(r.utils.getPropertyValue(t,""+r.SDK_QUERY_PARAM_NAME.TARGET_ORIGIN)||"")||void 0,hostType:r.utils.getPropertyValue(t,""+r.SDK_QUERY_PARAM_NAME.HOST_TYPE)||r.HostType.NONE,correlationVector:r.utils.getPropertyValue(t,""+r.SDK_QUERY_PARAM_NAME.MS_CV)||void 0,sessionId:r.utils.getPropertyValue(t,""+r.SDK_QUERY_PARAM_NAME.SESSION_ID)||void 0}}function e(n,t,i){var f,e;return r.utils.verifyNotNull("config",n),f=new u.proxy.SdkClientProxyImp(n.componentId||"",n.listeners),n.appId&&n.partnerId&&n.componentId?(e="Microsoft.Support.Sdk.Integration",r.telemetry.init(n,e),r.telemetry.captureIncomingRequestAsync(function(){var t=function(){if(r.utils.getPlatform()!=r.Platform.WEB)return jQuery.Deferred().resolve(u.proxy.NativeMessageProxy.getInstance());var t=jQuery.Deferred();return s(n.partnerId,n.appId).then(function(){var i;if(r.utils.isInternetExplorer()&&window.opener)i=u.proxy.XFrameMessageProxy.getInstance(),i.init().then(function(){return t.resolve(i)}).fail(function(n){return t.reject(n)});else try{i=new r.proxy.WindowPostMessageProxy(window.opener||window.parent,n.targetOrigin);t.resolve(i)}catch(n){t.reject(n)}}).fail(function(n){return t.reject(n)}),t.promise()};return f.init(t)},"CreateProxy","SdkIntegration").then(function(){f.dispatchEvent(r.InternalEvent.LOADED,{succeeded:!0});r.utils.runAsync(t)}).fail(i)):r.utils.runAsync(function(){return i(new Error("Could not create SdkClientProxy. appid, partnerid or componentid were not provided."))}),f}function o(){var t,f,n=i(window.location.href),e,o;n.appId&&n.partnerId&&n.componentId?(e=window.open("",n.componentId,"",!1),u.proxy.XFrameMessageProxy.getInstance().init(e).then(function(){f=new r.proxy.SdkClientProxyImp(n.componentId,{"*":function(n){return t.dispatchEvent(n.type,n.data)}},u.proxy.XFrameMessageProxy.getInstance())},function(n){console.warn("Failed to initialize xframe message proxy. Error: "+n.message)}),o=new r.proxy.WindowPostMessageProxy(window.parent,n.targetOrigin),t=new r.proxy.SdkClientProxyImp(n.componentId,{"*":function(n){return f.dispatchEvent(n.type,n.data)}},o)):console.warn("Could not setup xFrameProxy. appid, partnerid or componentid were not provided in iframe url.")}function s(n,t){var u="https://cdn.support.services.microsoft.com/partnerconfig",i=jQuery.Deferred();return h().then(function(f){if(!f)return void i.resolve();if(n&&t){var o=n.toLowerCase()+"_"+t.toLowerCase(),s=r.utils.parseUrl(f).hostname.toLowerCase(),e={url:u+"?$filter=(PartitionKey eq '"+o+"') and (RowKey eq '"+s+"')",type:"GET",crossDomain:!0,headers:{Accept:"application/json;odata=nometadata"}};r.telemetry.captureOutgoingRequestAsync(function(){return jQuery.ajax(e)},"ReferralCheck",e.url,e.type,"PartnerConfigTable","TableQuery").then(function(n){n&&n.value?n.value.length>0&&n.value[0].PartitionKey===o&&n.value[0].RowKey===s?i.resolve():i.reject(l):i.reject(y)}).fail(function(){i.reject(a)})}else i.reject(v)}).fail(function(n){i.reject(n)}),i.promise()}function h(){var n=r.utils.getReferrer();return jQuery.Deferred().resolve(n)}var c;t.isInSdk=f;t.configFromUrl=i;t.createProxy=e;t.setupXFrameProxy=o;t.HostType=r.HostType;t.version=r.SdkVersion.version;!function(){}(c=t.xframe||(t.xframe={}));var l=new Error("Unauthorized"),a=new Error("Referral QOS Failure"),v=new Error("Referral Invalid Parameters"),y=new Error("Referral Invalid Response")}.apply(t,o);!(void 0!==e&&(n.exports=e))}])})