utl-1.com Open in urlscan Pro
18.173.187.102  Public Scan

URL: https://utl-1.com/1.6.34/utl.min.js
Submission: On August 21 via api from LU — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){var n=[],r=n.slice,i=n.concat,o=n.push,a=n.indexOf,s={},u=s.toString,c=s.hasOwnProperty,l={},f=e.document,p="2.1.4",h=function(e,t){return new h.fn.init(e,t)},d=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,v=/^-ms-/,g=/-([\da-z])/gi,m=function(e,t){return t.toUpperCase()};function $(e){var t="length"in e&&e.length,n=h.type(e);return"function"!==n&&!h.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}h.fn=h.prototype={jquery:p,constructor:h,selector:"",length:0,toArray:function(){return r.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=h.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return h.each(this,e,t)},map:function(e){return this.pushStack(h.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:o,sort:n.sort,splice:n.splice},h.extend=h.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||h.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(c&&r&&(h.isPlainObject(r)||(i=h.isArray(r)))?(i?(i=!1,o=n&&h.isArray(n)?n:[]):o=n&&h.isPlainObject(n)?n:{},a[t]=h.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},h.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===h.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!h.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"===h.type(e)&&!e.nodeType&&!h.isWindow(e)&&!(e.constructor&&!c.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?s[u.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=h.trim(e))&&(1===e.indexOf("use strict")?((t=f.createElement("script")).text=e,f.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(v,"ms-").replace(g,m)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,i=e.length,o=$(e);if(n){if(o)for(;r<i&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(o)for(;r<i&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(d,"")},makeArray:function(e,t){var n=t||[];return null!=e&&($(Object(e))?h.merge(n,"string"==typeof e?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,o=0,a=e.length,s=[];if($(e))for(;o<a;o++)null!=(r=t(e[o],o,n))&&s.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&s.push(r);return i.apply([],s)},guid:1,proxy:function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),h.isFunction(e))return i=r.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||h.guid++,o},now:Date.now,support:l}),h.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){s["[object "+t+"]"]=t.toLowerCase()}));var y=function(e){var t,n,r,i,o,a,s,u,c,l,f,p,h,d,v,g,m,$,y,x="sizzle"+1*new Date,b=e.document,w=0,C=0,S=ae(),T=ae(),k=ae(),E=function(e,t){return e===t&&(f=!0),0},A=1<<31,N={}.hasOwnProperty,O=[],D=O.pop,j=O.push,M=O.push,q=O.slice,R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F=L.replace("w","w#"),V="\\[[\\x20\\t\\r\\n\\f]*("+L+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+F+"))|)"+H+"*\\]",I=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+V+")*)|.*)\\)|)",_=new RegExp(H+"+","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),W=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),z=new RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),G=new RegExp(I),X=new RegExp("^"+F+"$"),Y={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+V),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),re=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},ie=function(){p()};try{M.apply(O=q.call(b.childNodes),b.childNodes),O[b.childNodes.length].nodeType}catch(e){M={apply:O.length?function(e,t){j.apply(e,q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,i){var o,s,c,l,f,d,m,$,w,C;if((t?t.ownerDocument||t:b)!==h&&p(t),r=r||[],l=(t=t||h).nodeType,"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return r;if(!i&&v){if(11!==l&&(o=Q.exec(e)))if(c=o[1]){if(9===l){if(!(s=t.getElementById(c))||!s.parentNode)return r;if(s.id===c)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(c))&&y(t,s)&&s.id===c)return r.push(s),r}else{if(o[2])return M.apply(r,t.getElementsByTagName(e)),r;if((c=o[3])&&n.getElementsByClassName)return M.apply(r,t.getElementsByClassName(c)),r}if(n.qsa&&(!g||!g.test(e))){if($=m=x,w=t,C=1!==l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){for(d=a(e),(m=t.getAttribute("id"))?$=m.replace(te,"\\$&"):t.setAttribute("id",$),$="[id='"+$+"'] ",f=d.length;f--;)d[f]=$+ge(d[f]);w=ee.test(e)&&de(t.parentNode)||t,C=d.join(",")}if(C)try{return M.apply(r,w.querySelectorAll(C)),r}catch(e){}finally{m||t.removeAttribute("id")}}}return u(e.replace(U,"$1"),t,r,i)}function ae(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function se(e){return e[x]=!0,e}function ue(e){var t=h.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),i=e.length;i--;)r.attrHandle[n[i]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return se((function(t){return t=+t,se((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function de(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:b;return a!==h&&9===a.nodeType&&a.documentElement?(h=a,d=a.documentElement,(i=a.defaultView)&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",ie,!1):i.attachEvent&&i.attachEvent("onunload",ie)),v=!o(a),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(a.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(a.getElementsByClassName),n.getById=ue((function(e){return d.appendChild(e).id=x,!a.getElementsByName||!a.getElementsByName(x).length})),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(ne,re);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(ne,re);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(v)return t.getElementsByClassName(e)},m=[],g=[],(n.qsa=Z.test(a.querySelectorAll))&&(ue((function(e){d.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+P+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")})),ue((function(e){var t=a.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Z.test($=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=$.call(e,"div"),$.call(e,"[s!='']:x"),m.push("!=",I)})),g=g.length&&new RegExp(g.join("|")),m=m.length&&new RegExp(m.join("|")),t=Z.test(d.compareDocumentPosition),y=t||Z.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===a||e.ownerDocument===b&&y(b,e)?-1:t===a||t.ownerDocument===b&&y(b,t)?1:l?R(l,e)-R(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===a?-1:t===a?1:i?-1:o?1:l?R(l,e)-R(l,t):0;if(i===o)return le(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?le(s[r],u[r]):s[r]===b?-1:u[r]===b?1:0},a):h},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&p(e),t=t.replace(z,"='$1']"),n.matchesSelector&&v&&(!m||!m.test(t))&&(!g||!g.test(t)))try{var r=$.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,h,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==h&&p(e),y(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==h&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):void 0;return void 0!==o?o:n.attributes||!v?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(E),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return l=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,re),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,re),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,re).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+H+"|$)"))&&S(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(_," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var c,l,f,p,h,d,v=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),$=!u&&!s;if(g){if(o){for(;v;){for(f=t;f=f[v];)if(s?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;d=v="only"===e&&!d&&"nextSibling"}return!0}if(d=[a?g.firstChild:g.lastChild],a&&$){for(h=(c=(l=g[x]||(g[x]={}))[e]||[])[0]===w&&c[1],p=c[0]===w&&c[2],f=h&&g.childNodes[h];f=++h&&f&&f[v]||(p=h=0)||d.pop();)if(1===f.nodeType&&++p&&f===t){l[e]=[w,h,p];break}}else if($&&(c=(t[x]||(t[x]={}))[e])&&c[0]===w)p=c[1];else for(;(f=++h&&f&&f[v]||(p=h=0)||d.pop())&&((s?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++p||($&&((f[x]||(f[x]={}))[e]=[w,p]),f!==t)););return(p-=i)===r||p%r==0&&p/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[x]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=R(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:se((function(e){var t=[],n=[],r=s(e.replace(U,"$1"));return r[x]?se((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:se((function(e){return function(t){return oe(e,t).length>0}})),contains:se((function(e){return e=e.replace(ne,re),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}})),lang:se((function(e){return X.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(ne,re).toLowerCase(),function(t){var n;do{if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,n){return[n<0?n+t:n]})),even:he((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:he((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:he((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:he((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ve(){}function ge(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function me(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=C++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,c=[w,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if((s=(u=t[x]||(t[x]={}))[r])&&s[0]===w&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function $e(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ye(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,c=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function xe(e,t,n,r,i,o){return r&&!r[x]&&(r=xe(r)),i&&!i[x]&&(i=xe(i,o)),se((function(o,a,s,u){var c,l,f,p=[],h=[],d=a.length,v=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?v:ye(v,p,e,s,u),m=n?i||(o?e:d||r)?[]:a:g;if(n&&n(g,m,s,u),r)for(c=ye(m,h),r(c,[],s,u),l=c.length;l--;)(f=c[l])&&(m[h[l]]=!(g[h[l]]=f));if(o){if(i||e){if(i){for(c=[],l=m.length;l--;)(f=m[l])&&c.push(g[l]=f);i(null,m=[],c,u)}for(l=m.length;l--;)(f=m[l])&&(c=i?R(o,f):p[l])>-1&&(o[c]=!(a[c]=f))}}else m=ye(m===a?m.splice(d,m.length):m),i?i(null,a,m,u):M.apply(a,m)}))}function be(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,l=me((function(e){return e===t}),s,!0),f=me((function(e){return R(t,e)>-1}),s,!0),p=[function(e,n,r){var i=!a&&(r||n!==c)||((t=n).nodeType?l(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[me($e(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[x]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return xe(u>1&&$e(p),u>1&&ge(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(U,"$1"),n,u<i&&be(e.slice(u,i)),i<o&&be(e=e.slice(i)),i<o&&ge(e))}p.push(n)}return $e(p)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,a=oe.tokenize=function(e,t){var n,i,o,a,s,u,c,l=T[e+" "];if(l)return t?0:l.slice(0);for(s=e,u=[],c=r.preFilter;s;){for(a in n&&!(i=B.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=W.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(U," ")}),s=s.slice(n.length)),r.filter)!(i=Y[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):T(e,u).slice(0)},s=oe.compile=function(e,t){var n,i=[],o=[],s=k[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=be(t[n]))[x]?i.push(s):o.push(s);(s=k(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,l){var f,p,d,v=0,g="0",m=o&&[],$=[],y=c,x=o||i&&r.find.TAG("*",l),b=w+=null==y?1:Math.random()||.1,C=x.length;for(l&&(c=a!==h&&a);g!==C&&null!=(f=x[g]);g++){if(i&&f){for(p=0;d=e[p++];)if(d(f,a,s)){u.push(f);break}l&&(w=b)}n&&((f=!d&&f)&&v--,o&&m.push(f))}if(v+=g,n&&g!==v){for(p=0;d=t[p++];)d(m,$,a,s);if(o){if(v>0)for(;g--;)m[g]||$[g]||($[g]=D.call(u));$=ye($)}M.apply(u,$),l&&!o&&$.length>0&&v+t.length>1&&oe.uniqueSort(u)}return l&&(w=b,c=y),m};return n?se(o):o}(o,i))).selector=e}return s},u=oe.select=function(e,t,i,o){var u,c,l,f,p,h="function"==typeof e&&e,d=!o&&a(e=h.selector||e);if(i=i||[],1===d.length){if((c=d[0]=d[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&n.getById&&9===t.nodeType&&v&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(ne,re),t)||[])[0]))return i;h&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(u=Y.needsContext.test(e)?0:c.length;u--&&(l=c[u],!r.relative[f=l.type]);)if((p=r.find[f])&&(o=p(l.matches[0].replace(ne,re),ee.test(c[0].type)&&de(t.parentNode)||t))){if(c.splice(u,1),!(e=o.length&&ge(c)))return M.apply(i,o),i;break}}return(h||s(e,d))(o,t,!v,i,ee.test(e)&&de(t.parentNode)||t),i},n.sortStable=x.split("").sort(E).join("")===x,n.detectDuplicates=!!f,p(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("div"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ce("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ce("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||ce(P,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),oe}(e);h.find=y,h.expr=y.selectors,h.expr[":"]=h.expr.pseudos,h.unique=y.uniqueSort,h.text=y.getText,h.isXMLDoc=y.isXML,h.contains=y.contains;var x=h.expr.match.needsContext,b=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function C(e,t,n){if(h.isFunction(t))return h.grep(e,(function(e,r){return!!t.call(e,r,e)!==n}));if(t.nodeType)return h.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(w.test(t))return h.filter(t,e,n);t=h.filter(t,e)}return h.grep(e,(function(e){return a.call(t,e)>=0!==n}))}h.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?h.find.matchesSelector(r,e)?[r]:[]:h.find.matches(e,h.grep(t,(function(e){return 1===e.nodeType})))},h.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(h(e).filter((function(){for(t=0;t<n;t++)if(h.contains(i[t],this))return!0})));for(t=0;t<n;t++)h.find(e,i[t],r);return(r=this.pushStack(n>1?h.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&x.test(e)?h(e):e||[],!1).length}});var S,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(h.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:T.exec(e))||!n[1]&&t)return!t||t.jquery?(t||S).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof h?t[0]:t,h.merge(this,h.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),b.test(n[1])&&h.isPlainObject(t))for(n in t)h.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=f.getElementById(n[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=f,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):h.isFunction(e)?void 0!==S.ready?S.ready(e):e(h):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),h.makeArray(e,this))}).prototype=h.fn,S=h(f);var k=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}h.extend({dir:function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&h(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),h.fn.extend({has:function(e){var t=h(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(h.contains(this,t[e]))return!0}))},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=x.test(e)||"string"!=typeof e?h(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&h.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?h.unique(o):o)},index:function(e){return e?"string"==typeof e?a.call(h(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(h.unique(h.merge(this.get(),h(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),h.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h.dir(e,"parentNode")},parentsUntil:function(e,t,n){return h.dir(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return h.dir(e,"nextSibling")},prevAll:function(e){return h.dir(e,"previousSibling")},nextUntil:function(e,t,n){return h.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return h.dir(e,"previousSibling",n)},siblings:function(e){return h.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return h.sibling(e.firstChild)},contents:function(e){return e.contentDocument||h.merge([],e.childNodes)}},(function(e,t){h.fn[e]=function(n,r){var i=h.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=h.filter(r,i)),this.length>1&&(E[e]||h.unique(i),k.test(e)&&i.reverse()),this.pushStack(i)}}));var N,O=/\S+/g,D={};function j(){f.removeEventListener("DOMContentLoaded",j,!1),e.removeEventListener("load",j,!1),h.ready()}h.Callbacks=function(e){e="string"==typeof e?D[e]||function(e){var t=D[e]={};return h.each(e.match(O)||[],(function(e,n){t[n]=!0})),t}(e):h.extend({},e);var t,n,r,i,o,a,s=[],u=!e.once&&[],c=function(f){for(t=e.memory&&f,n=!0,a=i||0,i=0,o=s.length,r=!0;s&&a<o;a++)if(!1===s[a].apply(f[0],f[1])&&e.stopOnFalse){t=!1;break}r=!1,s&&(u?u.length&&c(u.shift()):t?s=[]:l.disable())},l={add:function(){if(s){var n=s.length;!function t(n){h.each(n,(function(n,r){var i=h.type(r);"function"===i?e.unique&&l.has(r)||s.push(r):r&&r.length&&"string"!==i&&t(r)}))}(arguments),r?o=s.length:t&&(i=n,c(t))}return this},remove:function(){return s&&h.each(arguments,(function(e,t){for(var n;(n=h.inArray(t,s,n))>-1;)s.splice(n,1),r&&(n<=o&&o--,n<=a&&a--)})),this},has:function(e){return e?h.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],o=0,this},disable:function(){return s=u=t=void 0,this},disabled:function(){return!s},lock:function(){return u=void 0,t||l.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!s||n&&!u||(t=[e,(t=t||[]).slice?t.slice():t],r?u.push(t):c(t)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},h.extend({Deferred:function(e){var t=[["resolve","done",h.Callbacks("once memory"),"resolved"],["reject","fail",h.Callbacks("once memory"),"rejected"],["notify","progress",h.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return h.Deferred((function(n){h.each(t,(function(t,o){var a=h.isFunction(e[t])&&e[t];i[o[1]]((function(){var e=a&&a.apply(this,arguments);e&&h.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?h.extend(e,r):r}},i={};return r.pipe=r.then,h.each(t,(function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,i,o=0,a=r.call(arguments),s=a.length,u=1!==s||e&&h.isFunction(e.promise)?s:0,c=1===u?e:h.Deferred(),l=function(e,n,i){return function(o){n[e]=this,i[e]=arguments.length>1?r.call(arguments):o,i===t?c.notifyWith(n,i):--u||c.resolveWith(n,i)}};if(s>1)for(t=new Array(s),n=new Array(s),i=new Array(s);o<s;o++)a[o]&&h.isFunction(a[o].promise)?a[o].promise().done(l(o,i,a)).fail(c.reject).progress(l(o,n,t)):--u;return u||c.resolveWith(i,a),c.promise()}}),h.fn.ready=function(e){return h.ready.promise().done(e),this},h.extend({isReady:!1,readyWait:1,holdReady:function(e){e?h.readyWait++:h.ready(!0)},ready:function(e){(!0===e?--h.readyWait:h.isReady)||(h.isReady=!0,!0!==e&&--h.readyWait>0||(N.resolveWith(f,[h]),h.fn.triggerHandler&&(h(f).triggerHandler("ready"),h(f).off("ready"))))}}),h.ready.promise=function(t){return N||(N=h.Deferred(),"complete"===f.readyState?setTimeout(h.ready):(f.addEventListener("DOMContentLoaded",j,!1),e.addEventListener("load",j,!1))),N.promise(t)},h.ready.promise();var M=h.access=function(e,t,n,r,i,o,a){var s=0,u=e.length,c=null==n;if("object"===h.type(n))for(s in i=!0,n)h.access(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,h.isFunction(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(h(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):u?t(e[0],n):o};function q(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=h.expando+q.uid++}h.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},q.uid=1,q.accepts=h.acceptData,q.prototype={key:function(e){if(!q.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=q.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,h.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(h.isEmptyObject(o))h.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,h.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=this.key(e),a=this.cache[o];if(void 0===t)this.cache[o]={};else{h.isArray(t)?r=t.concat(t.map(h.camelCase)):(i=h.camelCase(t),r=t in a?[t,i]:(r=i)in a?[r]:r.match(O)||[]),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(e){return!h.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var R=new q,P=new q,H=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,L=/([A-Z])/g;function F(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(L,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:H.test(n)?h.parseJSON(n):n)}catch(e){}P.set(e,t,n)}else n=void 0;return n}h.extend({hasData:function(e){return P.hasData(e)||R.hasData(e)},data:function(e,t,n){return P.access(e,t,n)},removeData:function(e,t){P.remove(e,t)},_data:function(e,t,n){return R.access(e,t,n)},_removeData:function(e,t){R.remove(e,t)}}),h.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=P.get(o),1===o.nodeType&&!R.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=h.camelCase(r.slice(5)),F(o,r,i[r]));R.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){P.set(this,e)})):M(this,(function(t){var n,r=h.camelCase(e);if(o&&void 0===t)return void 0!==(n=P.get(o,e))||void 0!==(n=P.get(o,r))||void 0!==(n=F(o,r,void 0))?n:void 0;this.each((function(){var n=P.get(this,r);P.set(this,r,t),-1!==e.indexOf("-")&&void 0!==n&&P.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){P.remove(this,e)}))}}),h.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=R.get(e,t),n&&(!r||h.isArray(n)?r=R.access(e,t,h.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=h.queue(e,t),r=n.length,i=n.shift(),o=h._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){h.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return R.get(e,n)||R.access(e,n,{empty:h.Callbacks("once memory").add((function(){R.remove(e,[t+"queue",n])}))})}}),h.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?h.queue(this[0],e):void 0===t?this:this.each((function(){var n=h.queue(this,e,t);h._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&h.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){h.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=h.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=R.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var V,I,_=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=["Top","Right","Bottom","Left"],B=function(e,t){return e=t||e,"none"===h.css(e,"display")||!h.contains(e.ownerDocument,e)},W=/^(?:checkbox|radio)$/i;V=f.createDocumentFragment().appendChild(f.createElement("div")),(I=f.createElement("input")).setAttribute("type","radio"),I.setAttribute("checked","checked"),I.setAttribute("name","t"),V.appendChild(I),l.checkClone=V.cloneNode(!0).cloneNode(!0).lastChild.checked,V.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!V.cloneNode(!0).lastChild.defaultValue;var z="undefined";l.focusinBubbles="onfocusin"in e;var G=/^key/,X=/^(?:mouse|pointer|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,J=/^([^.]*)(?:\.(.+)|)$/;function K(){return!0}function Z(){return!1}function Q(){try{return f.activeElement}catch(e){}}h.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,c,l,f,p,d,v,g,m=R.get(e);if(m)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=h.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(t){return typeof h!==z&&h.event.triggered!==t.type?h.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(O)||[""]).length;c--;)d=g=(s=J.exec(t[c])||[])[1],v=(s[2]||"").split(".").sort(),d&&(f=h.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=h.event.special[d]||{},l=h.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&h.expr.match.needsContext.test(i),namespace:v.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,v,a)||e.addEventListener&&e.addEventListener(d,a,!1)),f.add&&(f.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,l):p.push(l),h.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,c,l,f,p,d,v,g,m=R.hasData(e)&&R.get(e);if(m&&(u=m.events)){for(c=(t=(t||"").match(O)||[""]).length;c--;)if(d=g=(s=J.exec(t[c])||[])[1],v=(s[2]||"").split(".").sort(),d){for(f=h.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)l=p[o],!i&&g!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(o,1),l.selector&&p.delegateCount--,f.remove&&f.remove.call(e,l));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,v,m.handle)||h.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)h.event.remove(e,d+t[c],n,r,!0);h.isEmptyObject(u)&&(delete m.handle,R.remove(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,u,l,p,d,v=[r||f],g=c.call(t,"type")?t.type:t,m=c.call(t,"namespace")?t.namespace.split("."):[];if(a=s=r=r||f,3!==r.nodeType&&8!==r.nodeType&&!Y.test(g+h.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=g.indexOf(":")<0&&"on"+g,(t=t[h.expando]?t:new h.Event(g,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=m.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:h.makeArray(n,[t]),d=h.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(r,n))){if(!i&&!d.noBubble&&!h.isWindow(r)){for(u=d.delegateType||g,Y.test(u+g)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(r.ownerDocument||f)&&v.push(s.defaultView||s.parentWindow||e)}for(o=0;(a=v[o++])&&!t.isPropagationStopped();)t.type=o>1?u:d.bindType||g,(p=(R.get(a,"events")||{})[t.type]&&R.get(a,"handle"))&&p.apply(a,n),(p=l&&a[l])&&p.apply&&h.acceptData(a)&&(t.result=p.apply(a,n),!1===t.result&&t.preventDefault());return t.type=g,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(v.pop(),n)||!h.acceptData(r)||l&&h.isFunction(r[g])&&!h.isWindow(r)&&((s=r[l])&&(r[l]=null),h.event.triggered=g,r[g](),h.event.triggered=void 0,s&&(r[l]=s)),t.result}},dispatch:function(e){e=h.event.fix(e);var t,n,i,o,a,s=[],u=r.call(arguments),c=(R.get(this,"events")||{})[e.type]||[],l=h.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(s=h.event.handlers.call(this,e,c),t=0;(o=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(a=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(a.namespace)||(e.handleObj=a,e.data=a.data,void 0!==(i=((h.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,u))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(!0!==u.disabled||"click"!==e.type){for(r=[],n=0;n<s;n++)void 0===r[i=(o=t[n]).selector+" "]&&(r[i]=o.needsContext?h(i,this).index(u)>=0:h.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||f).documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[h.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=X.test(i)?this.mouseHooks:G.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new h.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=f),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Q()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Q()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&h.nodeName(this,"input"))return this.click(),!1},_default:function(e){return h.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=h.extend(new h.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?h.event.trigger(i,null,t):h.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},h.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},h.Event=function(e,t){if(!(this instanceof h.Event))return new h.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?K:Z):this.type=e,t&&h.extend(this,t),this.timeStamp=e&&e.timeStamp||h.now(),this[h.expando]=!0},h.Event.prototype={isDefaultPrevented:Z,isPropagationStopped:Z,isImmediatePropagationStopped:Z,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=K,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=K,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=K,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){h.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||h.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),l.focusinBubbles||h.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){h.event.simulate(t,e.target,h.event.fix(e),!0)};h.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=R.access(r,t);i||r.addEventListener(e,n,!0),R.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=R.access(r,t)-1;i?R.access(r,t,i):(r.removeEventListener(e,n,!0),R.remove(r,t))}}})),h.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){for(a in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(a,t,n,e[a],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=Z;else if(!r)return this;return 1===i&&(o=r,(r=function(e){return h().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=h.guid++)),this.each((function(){h.event.add(this,e,r,n,t)}))},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,h(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Z),this.each((function(){h.event.remove(this,e,n,t)}))},trigger:function(e,t){return this.each((function(){h.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return h.event.trigger(e,t,n,!0)}});var ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,te=/<([\w:]+)/,ne=/<|&#?\w+;/,re=/<(?:script|style|link)/i,ie=/checked\s*(?:[^=]|=\s*.checked.)/i,oe=/^$|\/(?:java|ecma)script/i,ae=/^true\/(.*)/,se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ue={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,"",""]};function ce(e,t){return h.nodeName(e,"table")&&h.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function fe(e){var t=ae.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function pe(e,t){for(var n=0,r=e.length;n<r;n++)R.set(e[n],"globalEval",!t||R.get(t[n],"globalEval"))}function he(e,t){var n,r,i,o,a,s,u,c;if(1===t.nodeType){if(R.hasData(e)&&(o=R.access(e),a=R.set(t,o),c=o.events))for(i in delete a.handle,a.events={},c)for(n=0,r=c[i].length;n<r;n++)h.event.add(t,i,c[i][n]);P.hasData(e)&&(s=P.access(e),u=h.extend({},s),P.set(t,u))}}function de(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&h.nodeName(e,t)?h.merge([e],n):n}ue.optgroup=ue.option,ue.tbody=ue.tfoot=ue.colgroup=ue.caption=ue.thead,ue.th=ue.td,h.extend({clone:function(e,t,n){var r,i,o,a,s,u,c,f=e.cloneNode(!0),p=h.contains(e.ownerDocument,e);if(!(l.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||h.isXMLDoc(e)))for(a=de(f),r=0,i=(o=de(e)).length;r<i;r++)s=o[r],u=a[r],c=void 0,"input"===(c=u.nodeName.toLowerCase())&&W.test(s.type)?u.checked=s.checked:"input"!==c&&"textarea"!==c||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||de(e),a=a||de(f),r=0,i=o.length;r<i;r++)he(o[r],a[r]);else he(e,f);return(a=de(f,"script")).length>0&&pe(a,!p&&de(e,"script")),f},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,c,l=t.createDocumentFragment(),f=[],p=0,d=e.length;p<d;p++)if((i=e[p])||0===i)if("object"===h.type(i))h.merge(f,i.nodeType?[i]:i);else if(ne.test(i)){for(o=o||l.appendChild(t.createElement("div")),a=(te.exec(i)||["",""])[1].toLowerCase(),s=ue[a]||ue._default,o.innerHTML=s[1]+i.replace(ee,"<$1></$2>")+s[2],c=s[0];c--;)o=o.lastChild;h.merge(f,o.childNodes),(o=l.firstChild).textContent=""}else f.push(t.createTextNode(i));for(l.textContent="",p=0;i=f[p++];)if((!r||-1===h.inArray(i,r))&&(u=h.contains(i.ownerDocument,i),o=de(l.appendChild(i),"script"),u&&pe(o),n))for(c=0;i=o[c++];)oe.test(i.type||"")&&n.push(i);return l},cleanData:function(e){for(var t,n,r,i,o=h.event.special,a=0;void 0!==(n=e[a]);a++){if(h.acceptData(n)&&(i=n[R.expando])&&(t=R.cache[i])){if(t.events)for(r in t.events)o[r]?h.event.remove(n,r):h.removeEvent(n,r,t.handle);R.cache[i]&&delete R.cache[i]}delete P.cache[n[P.expando]]}}}),h.fn.extend({text:function(e){return M(this,(function(e){return void 0===e?h.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ce(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ce(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var n,r=e?h.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||h.cleanData(de(n)),n.parentNode&&(t&&h.contains(n.ownerDocument,n)&&pe(de(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(h.cleanData(de(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return h.clone(this,e,t)}))},html:function(e){return M(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!re.test(e)&&!ue[(te.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ee,"<$1></$2>");try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(h.cleanData(de(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,(function(t){e=this.parentNode,h.cleanData(de(this)),e&&e.replaceChild(t,this)})),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=i.apply([],e);var n,r,o,a,s,u,c=0,f=this.length,p=this,d=f-1,v=e[0],g=h.isFunction(v);if(g||f>1&&"string"==typeof v&&!l.checkClone&&ie.test(v))return this.each((function(n){var r=p.eq(n);g&&(e[0]=v.call(this,n,r.html())),r.domManip(e,t)}));if(f&&(r=(n=h.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===n.childNodes.length&&(n=r),r)){for(a=(o=h.map(de(n,"script"),le)).length;c<f;c++)s=n,c!==d&&(s=h.clone(s,!0,!0),a&&h.merge(o,de(s,"script"))),t.call(this[c],s,c);if(a)for(u=o[o.length-1].ownerDocument,h.map(o,fe),c=0;c<a;c++)s=o[c],oe.test(s.type||"")&&!R.access(s,"globalEval")&&h.contains(u,s)&&(s.src?h._evalUrl&&h._evalUrl(s.src):h.globalEval(s.textContent.replace(se,"")))}return this}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){h.fn[e]=function(e){for(var n,r=[],i=h(e),a=i.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),h(i[s])[t](n),o.apply(r,n.get());return this.pushStack(r)}}));var ve,ge={};function me(t,n){var r,i=h(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:h.css(i[0],"display");return i.detach(),o}function $e(e){var t=f,n=ge[e];return n||("none"!==(n=me(e,t))&&n||((t=(ve=(ve||h("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=me(e,t),ve.detach()),ge[e]=n),n}var ye=/^margin/,xe=new RegExp("^("+_+")(?!px)[a-z%]+$","i"),be=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)};function we(e,t,n){var r,i,o,a,s=e.style;return(n=n||be(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||h.contains(e.ownerDocument,e)||(a=h.style(e,t)),xe.test(a)&&ye.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ce(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var t,n,r=f.documentElement,i=f.createElement("div"),o=f.createElement("div");function a(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",r.appendChild(i);var a=e.getComputedStyle(o,null);t="1%"!==a.top,n="4px"===a.width,r.removeChild(i)}o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===o.style.backgroundClip,i.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",i.appendChild(o),e.getComputedStyle&&h.extend(l,{pixelPosition:function(){return a(),t},boxSizingReliable:function(){return null==n&&a(),n},reliableMarginRight:function(){var t,n=o.appendChild(f.createElement("div"));return n.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",o.style.width="1px",r.appendChild(i),t=!parseFloat(e.getComputedStyle(n,null).marginRight),r.removeChild(i),o.removeChild(n),t}}))}(),h.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};var Se=/^(none|table(?!-c[ea]).+)/,Te=new RegExp("^("+_+")(.*)$","i"),ke=new RegExp("^([+-])=("+_+")","i"),Ee={position:"absolute",visibility:"hidden",display:"block"},Ae={letterSpacing:"0",fontWeight:"400"},Ne=["Webkit","O","Moz","ms"];function Oe(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,i=Ne.length;i--;)if((t=Ne[i]+n)in e)return t;return r}function De(e,t,n){var r=Te.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function je(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=h.css(e,n+U[o],!0,i)),r?("content"===n&&(a-=h.css(e,"padding"+U[o],!0,i)),"margin"!==n&&(a-=h.css(e,"border"+U[o]+"Width",!0,i))):(a+=h.css(e,"padding"+U[o],!0,i),"padding"!==n&&(a+=h.css(e,"border"+U[o]+"Width",!0,i)));return a}function Me(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=be(e),a="border-box"===h.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=we(e,t,o))<0||null==i)&&(i=e.style[t]),xe.test(i))return i;r=a&&(l.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+je(e,t,n||(a?"border":"content"),r,o)+"px"}function qe(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=R.get(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&B(r)&&(o[a]=R.access(r,"olddisplay",$e(r.nodeName)))):(i=B(r),"none"===n&&i||R.set(r,"olddisplay",i?n:h.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function Re(e,t,n,r,i){return new Re.prototype.init(e,t,n,r,i)}h.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=we(e,"opacity");return""===n?"1":n}}}},cssNumber:{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(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=h.camelCase(t),u=e.style;if(t=h.cssProps[s]||(h.cssProps[s]=Oe(u,s)),a=h.cssHooks[t]||h.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=ke.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(h.css(e,t)),o="number"),null!=n&&n==n&&("number"!==o||h.cssNumber[s]||(n+="px"),l.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=h.camelCase(t);return t=h.cssProps[s]||(h.cssProps[s]=Oe(e.style,s)),(a=h.cssHooks[t]||h.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=we(e,t,r)),"normal"===i&&t in Ae&&(i=Ae[t]),""===n||n?(o=parseFloat(i),!0===n||h.isNumeric(o)?o||0:i):i}}),h.each(["height","width"],(function(e,t){h.cssHooks[t]={get:function(e,n,r){if(n)return Se.test(h.css(e,"display"))&&0===e.offsetWidth?h.swap(e,Ee,(function(){return Me(e,t,r)})):Me(e,t,r)},set:function(e,n,r){var i=r&&be(e);return De(0,n,r?je(e,t,r,"border-box"===h.css(e,"boxSizing",!1,i),i):0)}}})),h.cssHooks.marginRight=Ce(l.reliableMarginRight,(function(e,t){if(t)return h.swap(e,{display:"inline-block"},we,[e,"marginRight"])})),h.each({margin:"",padding:"",border:"Width"},(function(e,t){h.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+U[r]+t]=o[r]||o[r-2]||o[0];return i}},ye.test(e)||(h.cssHooks[e+t].set=De)})),h.fn.extend({css:function(e,t){return M(this,(function(e,t,n){var r,i,o={},a=0;if(h.isArray(t)){for(r=be(e),i=t.length;a<i;a++)o[t[a]]=h.css(e,t[a],!1,r);return o}return void 0!==n?h.style(e,t,n):h.css(e,t)}),e,t,arguments.length>1)},show:function(){return qe(this,!0)},hide:function(){return qe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){B(this)?h(this).show():h(this).hide()}))}}),h.Tween=Re,Re.prototype={constructor:Re,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(h.cssNumber[n]?"":"px")},cur:function(){var e=Re.propHooks[this.prop];return e&&e.get?e.get(this):Re.propHooks._default.get(this)},run:function(e){var t,n=Re.propHooks[this.prop];return this.options.duration?this.pos=t=h.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Re.propHooks._default.set(this),this}},Re.prototype.init.prototype=Re.prototype,Re.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=h.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){h.fx.step[e.prop]?h.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[h.cssProps[e.prop]]||h.cssHooks[e.prop])?h.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Re.propHooks.scrollTop=Re.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},h.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},h.fx=Re.prototype.init,h.fx.step={};var Pe,He,Le=/^(?:toggle|show|hide)$/,Fe=new RegExp("^(?:([+-])=|)("+_+")([a-z%]*)$","i"),Ve=/queueHooks$/,Ie=[function(e,t,n){var r,i,o,a,s,u,c,l=this,f={},p=e.style,d=e.nodeType&&B(e),v=R.get(e,"fxshow");n.queue||(null==(s=h._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,l.always((function(){l.always((function(){s.unqueued--,h.queue(e,"fx").length||s.empty.fire()}))})));1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],c=h.css(e,"display"),"inline"===("none"===c?R.get(e,"olddisplay")||$e(e.nodeName):c)&&"none"===h.css(e,"float")&&(p.display="inline-block"));n.overflow&&(p.overflow="hidden",l.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})));for(r in t)if(i=t[r],Le.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;d=!0}f[r]=v&&v[r]||h.style(e,r)}else c=void 0;if(h.isEmptyObject(f))"inline"===("none"===c?$e(e.nodeName):c)&&(p.display=c);else for(r in v?"hidden"in v&&(d=v.hidden):v=R.access(e,"fxshow",{}),o&&(v.hidden=!d),d?h(e).show():l.done((function(){h(e).hide()})),l.done((function(){var t;for(t in R.remove(e,"fxshow"),f)h.style(e,t,f[t])})),f)a=We(d?v[r]:0,r,l),r in v||(v[r]=a.start,d&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],_e={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Fe.exec(t),o=i&&i[3]||(h.cssNumber[e]?"":"px"),a=(h.cssNumber[e]||"px"!==o&&+r)&&Fe.exec(h.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{a/=s=s||".5",h.style(n.elem,e,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--u)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Ue(){return setTimeout((function(){Pe=void 0})),Pe=h.now()}function Be(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=U[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function We(e,t,n){for(var r,i=(_e[t]||[]).concat(_e["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ze(e,t,n){var r,i,o=0,a=Ie.length,s=h.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var t=Pe||Ue(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:h.extend({},t),opts:h.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Pe||Ue(),duration:n.duration,tweens:[],createTween:function(t,n){var r=h.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),l=c.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=h.camelCase(n)],o=e[n],h.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=h.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(l,c.opts.specialEasing);o<a;o++)if(r=Ie[o].call(c,e,l,c.opts))return r;return h.map(l,We,c),h.isFunction(c.opts.start)&&c.opts.start.call(e,c),h.fx.timer(h.extend(u,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}h.Animation=h.extend(ze,{tweener:function(e,t){h.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r<i;r++)n=e[r],_e[n]=_e[n]||[],_e[n].unshift(t)},prefilter:function(e,t){t?Ie.unshift(e):Ie.push(e)}}),h.speed=function(e,t,n){var r=e&&"object"==typeof e?h.extend({},e):{complete:n||!n&&t||h.isFunction(e)&&e,duration:e,easing:n&&t||t&&!h.isFunction(t)&&t};return r.duration=h.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in h.fx.speeds?h.fx.speeds[r.duration]:h.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){h.isFunction(r.old)&&r.old.call(this),r.queue&&h.dequeue(this,r.queue)},r},h.fn.extend({fadeTo:function(e,t,n,r){return this.filter(B).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=h.isEmptyObject(e),o=h.speed(t,n,r),a=function(){var t=ze(this,h.extend({},e),o);(i||R.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=h.timers,a=R.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&Ve.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||h.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=R.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=h.timers,a=r?r.length:0;for(n.finish=!0,h.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),h.each(["toggle","show","hide"],(function(e,t){var n=h.fn[t];h.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Be(t,!0),e,r,i)}})),h.each({slideDown:Be("show"),slideUp:Be("hide"),slideToggle:Be("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){h.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),h.timers=[],h.fx.tick=function(){var e,t=0,n=h.timers;for(Pe=h.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||h.fx.stop(),Pe=void 0},h.fx.timer=function(e){h.timers.push(e),e()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){He||(He=setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){clearInterval(He),He=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(e,t){return e=h.fx&&h.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}}))},function(){var e=f.createElement("input"),t=f.createElement("select"),n=t.appendChild(f.createElement("option"));e.type="checkbox",l.checkOn=""!==e.value,l.optSelected=n.selected,t.disabled=!0,l.optDisabled=!n.disabled,(e=f.createElement("input")).value="t",e.type="radio",l.radioValue="t"===e.value}();var Ge,Xe=h.expr.attrHandle;h.fn.extend({attr:function(e,t){return M(this,h.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){h.removeAttr(this,e)}))}}),h.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===z?h.prop(e,t,n):(1===o&&h.isXMLDoc(e)||(t=t.toLowerCase(),r=h.attrHooks[t]||(h.expr.match.bool.test(t)?Ge:undefined)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=h.find.attr(e,t))?void 0:i:null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void h.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(O);if(o&&1===e.nodeType)for(;n=o[i++];)r=h.propFix[n]||n,h.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!l.radioValue&&"radio"===t&&h.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),Ge={set:function(e,t,n){return!1===t?h.removeAttr(e,n):e.setAttribute(n,n),n}},h.each(h.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=Xe[t]||h.find.attr;Xe[t]=function(e,t,r){var i,o;return r||(o=Xe[t],Xe[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,Xe[t]=o),i}}));var Ye=/^(?:input|select|textarea|button)$/i;h.fn.extend({prop:function(e,t){return M(this,h.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[h.propFix[e]||e]}))}}),h.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!h.isXMLDoc(e))&&(t=h.propFix[t]||t,i=h.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||Ye.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),l.optSelected||(h.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){h.propFix[this.toLowerCase()]=this}));var Je=/[\t\r\n\f]/g;h.fn.extend({addClass:function(e){var t,n,r,i,o,a,s="string"==typeof e&&e,u=0,c=this.length;if(h.isFunction(e))return this.each((function(t){h(this).addClass(e.call(this,t,this.className))}));if(s)for(t=(e||"").match(O)||[];u<c;u++)if(r=1===(n=this[u]).nodeType&&(n.className?(" "+n.className+" ").replace(Je," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=h.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0===arguments.length||"string"==typeof e&&e,u=0,c=this.length;if(h.isFunction(e))return this.each((function(t){h(this).removeClass(e.call(this,t,this.className))}));if(s)for(t=(e||"").match(O)||[];u<c;u++)if(r=1===(n=this[u]).nodeType&&(n.className?(" "+n.className+" ").replace(Je," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?h.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):h.isFunction(e)?this.each((function(n){h(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var t,r=0,i=h(this),o=e.match(O)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else n!==z&&"boolean"!==n||(this.className&&R.set(this,"__className__",this.className),this.className=this.className||!1===e?"":R.get(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Je," ").indexOf(t)>=0)return!0;return!1}});var Ke=/\r/g;h.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=h.isFunction(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,h(this).val()):e)?i="":"number"==typeof i?i+="":h.isArray(i)&&(i=h.map(i,(function(e){return null==e?"":e+""}))),(t=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=h.valHooks[i.type]||h.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ke,""):null==n?"":n:void 0}}),h.extend({valHooks:{option:{get:function(e){var t=h.find.attr(e,"value");return null!=t?t:h.trim(h.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(((n=r[u]).selected||u===i)&&(l.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!h.nodeName(n.parentNode,"optgroup"))){if(t=h(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=h.makeArray(t),a=i.length;a--;)((r=i[a]).selected=h.inArray(r.value,o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),h.each(["radio","checkbox"],(function(){h.valHooks[this]={set:function(e,t){if(h.isArray(t))return e.checked=h.inArray(h(e).val(),t)>=0}},l.checkOn||(h.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.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(e,t){h.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),h.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var Ze=h.now(),Qe=/\?/;h.parseJSON=function(e){return JSON.parse(e+"")},h.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||h.error("Invalid XML: "+e),t};var et=/#.*$/,tt=/([?&])_=[^&]*/,nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,rt=/^(?:GET|HEAD)$/,it=/^\/\//,ot=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,at={},st={},ut="*/".concat("*"),ct=e.location.href,lt=ot.exec(ct.toLowerCase())||[];function ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(O)||[];if(h.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function pt(e,t,n,r){var i={},o=e===st;function a(s){var u;return i[s]=!0,h.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(u=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function ht(e,t){var n,r,i=h.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&h.extend(!0,e,r),e}h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ct,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(lt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ht(ht(e,h.ajaxSettings),t):ht(h.ajaxSettings,e)},ajaxPrefilter:ft(at),ajaxTransport:ft(st),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,i,o,a,s,u,c,l=h.ajaxSetup({},t),f=l.context||l,p=l.context&&(f.nodeType||f.jquery)?h(f):h.event,d=h.Deferred(),v=h.Callbacks("once memory"),g=l.statusCode||{},m={},$={},y=0,x="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(2===y){if(!o)for(o={};t=nt.exec(i);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===y?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return y||(e=$[n]=$[n]||e,m[e]=t),this},overrideMimeType:function(e){return y||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(y<2)for(t in e)g[t]=[g[t],e[t]];else b.always(e[b.status]);return this},abort:function(e){var t=e||x;return n&&n.abort(t),w(0,t),this}};if(d.promise(b).complete=v.add,b.success=b.done,b.error=b.fail,l.url=((e||l.url||ct)+"").replace(et,"").replace(it,lt[1]+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=h.trim(l.dataType||"*").toLowerCase().match(O)||[""],null==l.crossDomain&&(s=ot.exec(l.url.toLowerCase()),l.crossDomain=!(!s||s[1]===lt[1]&&s[2]===lt[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(lt[3]||("http:"===lt[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=h.param(l.data,l.traditional)),pt(at,l,t,b),2===y)return b;for(c in(u=h.event&&l.global)&&0==h.active++&&h.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!rt.test(l.type),r=l.url,l.hasContent||(l.data&&(r=l.url+=(Qe.test(r)?"&":"?")+l.data,delete l.data),!1===l.cache&&(l.url=tt.test(r)?r.replace(tt,"$1_="+Ze++):r+(Qe.test(r)?"&":"?")+"_="+Ze++)),l.ifModified&&(h.lastModified[r]&&b.setRequestHeader("If-Modified-Since",h.lastModified[r]),h.etag[r]&&b.setRequestHeader("If-None-Match",h.etag[r])),(l.data&&l.hasContent&&!1!==l.contentType||t.contentType)&&b.setRequestHeader("Content-Type",l.contentType),b.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+ut+"; q=0.01":""):l.accepts["*"]),l.headers)b.setRequestHeader(c,l.headers[c]);if(l.beforeSend&&(!1===l.beforeSend.call(f,b,l)||2===y))return b.abort();for(c in x="abort",{success:1,error:1,complete:1})b[c](l[c]);if(n=pt(st,l,t,b)){b.readyState=1,u&&p.trigger("ajaxSend",[b,l]),l.async&&l.timeout>0&&(a=setTimeout((function(){b.abort("timeout")}),l.timeout));try{y=1,n.send(m,w)}catch(e){if(!(y<2))throw e;w(-1,e)}}else w(-1,"No Transport");function w(e,t,o,s){var c,m,$,x,w,C=t;2!==y&&(y=2,a&&clearTimeout(a),n=void 0,i=s||"",b.readyState=e>0?4:0,c=e>=200&&e<300||304===e,o&&(x=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(l,b,o)),x=function(e,t,n,r){var i,o,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(l,x,b,c),c?(l.ifModified&&((w=b.getResponseHeader("Last-Modified"))&&(h.lastModified[r]=w),(w=b.getResponseHeader("etag"))&&(h.etag[r]=w)),204===e||"HEAD"===l.type?C="nocontent":304===e?C="notmodified":(C=x.state,m=x.data,c=!($=x.error))):($=C,!e&&C||(C="error",e<0&&(e=0))),b.status=e,b.statusText=(t||C)+"",c?d.resolveWith(f,[m,C,b]):d.rejectWith(f,[b,C,$]),b.statusCode(g),g=void 0,u&&p.trigger(c?"ajaxSuccess":"ajaxError",[b,l,c?m:$]),v.fireWith(f,[b,C]),u&&(p.trigger("ajaxComplete",[b,l]),--h.active||h.event.trigger("ajaxStop")))}return b},getJSON:function(e,t,n){return h.get(e,t,n,"json")},getScript:function(e,t){return h.get(e,void 0,t,"script")}}),h.each(["get","post"],(function(e,t){h[t]=function(e,n,r,i){return h.isFunction(n)&&(i=i||r,r=n,n=void 0),h.ajax({url:e,type:t,dataType:i,data:n,success:r})}})),h._evalUrl=function(e){return h.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},h.fn.extend({wrapAll:function(e){var t;return h.isFunction(e)?this.each((function(t){h(this).wrapAll(e.call(this,t))})):(this[0]&&(t=h(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this)},wrapInner:function(e){return h.isFunction(e)?this.each((function(t){h(this).wrapInner(e.call(this,t))})):this.each((function(){var t=h(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=h.isFunction(e);return this.each((function(n){h(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)})).end()}}),h.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},h.expr.filters.visible=function(e){return!h.expr.filters.hidden(e)};var dt=/%20/g,vt=/\[\]$/,gt=/\r?\n/g,mt=/^(?:submit|button|image|reset|file)$/i,$t=/^(?:input|select|textarea|keygen)/i;function yt(e,t,n,r){var i;if(h.isArray(t))h.each(t,(function(t,i){n||vt.test(e)?r(e,i):yt(e+"["+("object"==typeof i?t:"")+"]",i,n,r)}));else if(n||"object"!==h.type(t))r(e,t);else for(i in t)yt(e+"["+i+"]",t[i],n,r)}h.param=function(e,t){var n,r=[],i=function(e,t){t=h.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(e)||e.jquery&&!h.isPlainObject(e))h.each(e,(function(){i(this.name,this.value)}));else for(n in e)yt(n,e[n],t,i);return r.join("&").replace(dt,"+")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=h.prop(this,"elements");return e?h.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!h(this).is(":disabled")&&$t.test(this.nodeName)&&!mt.test(e)&&(this.checked||!W.test(e))})).map((function(e,t){var n=h(this).val();return null==n?null:h.isArray(n)?h.map(n,(function(e){return{name:t.name,value:e.replace(gt,"\r\n")}})):{name:t.name,value:n.replace(gt,"\r\n")}})).get()}}),h.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var xt=0,bt={},wt={0:200,1223:204},Ct=h.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",(function(){for(var e in bt)bt[e]()})),l.cors=!!Ct&&"withCredentials"in Ct,l.ajax=Ct=!!Ct,h.ajaxTransport((function(e){var t;if(l.cors||Ct&&!e.crossDomain)return{send:function(n,r){var i,o=e.xhr(),a=++xt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];for(i in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)o.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(delete bt[a],t=o.onload=o.onerror=null,"abort"===e?o.abort():"error"===e?r(o.status,o.statusText):r(wt[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=t(),o.onerror=t("error"),t=bt[a]=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return h.globalEval(e),e}}}),h.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),h.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=h("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),f.head.appendChild(t[0])},abort:function(){n&&n()}}}));var St=[],Tt=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=St.pop()||h.expando+"_"+Ze++;return this[e]=!0,e}}),h.ajaxPrefilter("json jsonp",(function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Tt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Tt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=h.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Tt,"$1"+i):!1!==t.jsonp&&(t.url+=(Qe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||h.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always((function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,St.push(i)),a&&h.isFunction(o)&&o(a[0]),a=o=void 0})),"script"})),h.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||f;var r=b.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=h.buildFragment([e],t,i),i&&i.length&&h(i).remove(),h.merge([],r.childNodes))};var kt=h.fn.load;h.fn.load=function(e,t,n){if("string"!=typeof e&&kt)return kt.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=h.trim(e.slice(s)),e=e.slice(0,s)),h.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&h.ajax({url:e,type:i,dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?h("<div>").append(h.parseHTML(e)).find(r):e)})).complete(n&&function(e,t){a.each(n,o||[e.responseText,t,e])}),this},h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){h.fn[t]=function(e){return this.on(t,e)}})),h.expr.filters.animated=function(e){return h.grep(h.timers,(function(t){return e===t.elem})).length};var Et=e.document.documentElement;function At(e){return h.isWindow(e)?e:9===e.nodeType&&e.defaultView}h.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,c=h.css(e,"position"),l=h(e),f={};"static"===c&&(e.style.position="relative"),s=l.offset(),o=h.css(e,"top"),u=h.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1?(a=(r=l.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),h.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):l.css(f)}},h.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){h.offset.setOffset(this,e,t)}));var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;return o?(t=o.documentElement,h.contains(t,r)?(typeof r.getBoundingClientRect!==z&&(i=r.getBoundingClientRect()),n=At(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===h.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),h.nodeName(e[0],"html")||(r=e.offset()),r.top+=h.css(e[0],"borderTopWidth",!0),r.left+=h.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-h.css(n,"marginTop",!0),left:t.left-r.left-h.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||Et;e&&!h.nodeName(e,"html")&&"static"===h.css(e,"position");)e=e.offsetParent;return e||Et}))}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,n){var r="pageYOffset"===n;h.fn[t]=function(i){return M(this,(function(t,i,o){var a=At(t);if(void 0===o)return a?a[n]:t[i];a?a.scrollTo(r?e.pageXOffset:o,r?o:e.pageYOffset):t[i]=o}),t,i,arguments.length,null)}})),h.each(["top","left"],(function(e,t){h.cssHooks[t]=Ce(l.pixelPosition,(function(e,n){if(n)return n=we(e,t),xe.test(n)?h(e).position()[t]+"px":n}))})),h.each({Height:"height",Width:"width"},(function(e,t){h.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){h.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return M(this,(function(t,n,r){var i;return h.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?h.css(t,n,a):h.style(t,n,r,a)}),t,o?r:void 0,o,null)}}))})),h.fn.size=function(){return this.length},h.fn.andSelf=h.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return h}));var Nt=e.jQuery,Ot=e.$;return h.noConflict=function(t){return e.$===h&&(e.$=Ot),t&&e.jQuery===h&&(e.jQuery=Nt),h},typeof t===z&&(e.jQuery=e.$=h),h})),function(e,t,n){"use strict";function r(e,t){return t=t||Error,function(){var n,r,i=arguments[0],o="["+(e?e+":":"")+i+"] ",a=arguments[1],s=arguments;for(n=(n=o+a.replace(/\{\d+\}/g,(function(e){var t=+e.slice(1,-1);return t+2<s.length?Ae(s[t+2]):e})))+"\nhttp://errors.angularjs.org/1.3.20/"+(e?e+"/":"")+i,r=2;r<arguments.length;r++)n=n+(2==r?"?":"&")+"p"+(r-2)+"="+encodeURIComponent(Ae(arguments[r]));return new t(n)}}var i=/^\/(.+)\/([a-z]*)$/,o=function(e){return q(e)?e.toLowerCase():e},a=Object.prototype.hasOwnProperty,s=function(e){return q(e)?e.toUpperCase():e};"i"!=="I".toLowerCase()&&(o=function(e){return q(e)?e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(32|e.charCodeAt(0))})):e},s=function(e){return q(e)?e.replace(/[a-z]/g,(function(e){return String.fromCharCode(-33&e.charCodeAt(0))})):e});var u,c,l,f,p=[].slice,h=[].splice,d=[].push,v=Object.prototype.toString,g=r("ng"),m=e.angular||(e.angular={}),$=0;function y(e){if(null==e||V(e))return!1;var t="length"in Object(e)&&e.length;return!(e.nodeType!==ke||!t)||(q(e)||H(e)||0===t||"number"==typeof t&&t>0&&t-1 in e)}function x(e,t,n){var r,i;if(e)if(L(e))for(r in e)"prototype"==r||"length"==r||"name"==r||e.hasOwnProperty&&!e.hasOwnProperty(r)||t.call(n,e[r],r,e);else if(H(e)||y(e)){var o="object"!=typeof e;for(r=0,i=e.length;r<i;r++)(o||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==x)e.forEach(t,n,e);else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);return e}function b(e){return Object.keys(e).sort()}function w(e){return function(t,n){e(n,t)}}function C(){return++$}function S(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function T(e){for(var t=e.$$hashKey,n=1,r=arguments.length;n<r;n++){var i=arguments[n];if(i)for(var o=Object.keys(i),a=0,s=o.length;a<s;a++){var u=o[a];e[u]=i[u]}}return S(e,t),e}function k(e){return parseInt(e,10)}function E(e,t){return T(Object.create(e),t)}function A(){}function N(e){return e}function O(e){return function(){return e}}function D(e){return void 0===e}function j(e){return void 0!==e}function M(e){return null!==e&&"object"==typeof e}function q(e){return"string"==typeof e}function R(e){return"number"==typeof e}function P(e){return"[object Date]"===v.call(e)}u=t.documentMode,A.$inject=[],N.$inject=[];var H=Array.isArray;function L(e){return"function"==typeof e}function F(e){return"[object RegExp]"===v.call(e)}function V(e){return e&&e.window===e}function I(e){return e&&e.$evalAsync&&e.$watch}function _(e){return"boolean"==typeof e}function U(e){return e&&L(e.then)}var B=function(e){return q(e)?e.trim():e},W=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function z(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function G(e){return o(e.nodeName||e[0]&&e[0].nodeName)}function X(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),t}function Y(e,t,n,r){if(V(e)||I(e))throw g("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(t){if(e===t)throw g("cpi","Can't copy! Source and destination are identical.");if(n=n||[],r=r||[],M(e)){var i=n.indexOf(e);if(-1!==i)return r[i];n.push(e),r.push(t)}var o;if(H(e)){t.length=0;for(var a=0;a<e.length;a++)o=Y(e[a],null,n,r),M(e[a])&&(n.push(e[a]),r.push(o)),t.push(o)}else{var s=t.$$hashKey;for(var u in H(t)?t.length=0:x(t,(function(e,n){delete t[n]})),e)e.hasOwnProperty(u)&&(o=Y(e[u],null,n,r),M(e[u])&&(n.push(e[u]),r.push(o)),t[u]=o);S(t,s)}}else if(t=e,e)if(H(e))t=Y(e,[],n,r);else if(P(e))t=new Date(e.getTime());else if(F(e))(t=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0])).lastIndex=e.lastIndex;else if(M(e)){var c=Object.create(Object.getPrototypeOf(e));t=Y(e,c,n,r)}return t}function J(e,t){if(H(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(M(e))for(var i in t=t||{},e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i]);return t||e}function K(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var r,i,o,a=typeof e;if(a==typeof t&&"object"==a){if(!H(e)){if(P(e))return!!P(t)&&K(e.getTime(),t.getTime());if(F(e))return!!F(t)&&e.toString()==t.toString();if(I(e)||I(t)||V(e)||V(t)||H(t)||P(t)||F(t))return!1;for(i in o={},e)if("$"!==i.charAt(0)&&!L(e[i])){if(!K(e[i],t[i]))return!1;o[i]=!0}for(i in t)if(!o.hasOwnProperty(i)&&"$"!==i.charAt(0)&&t[i]!==n&&!L(t[i]))return!1;return!0}if(!H(t))return!1;if((r=e.length)==t.length){for(i=0;i<r;i++)if(!K(e[i],t[i]))return!1;return!0}}return!1}var Z=function(){if(j(Z.isActive_))return Z.isActive_;var e=!(!t.querySelector("[ng-csp]")&&!t.querySelector("[data-ng-csp]"));if(!e)try{new Function("")}catch(t){e=!0}return Z.isActive_=e};function Q(e,t,n){return e.concat(p.call(t,n))}function ee(e,t){return p.call(e,t||0)}function te(e,t){var n=arguments.length>2?ee(arguments,2):[];return!L(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,Q(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function ne(e,r){var i=r;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?i=n:V(r)?i="$WINDOW":r&&t===r?i="$DOCUMENT":I(r)&&(i="$SCOPE"),i}function re(e,t){return void 0===e?n:(R(t)||(t=t?2:null),JSON.stringify(e,ne,t))}function ie(e){return q(e)?JSON.parse(e):e}function oe(e){e=c(e).clone();try{e.empty()}catch(e){}var t=c("<div>").append(e).html();try{return e[0].nodeType===Ee?o(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,(function(e,t){return"<"+o(t)}))}catch(e){return o(t)}}function ae(e){try{return decodeURIComponent(e)}catch(e){}}function se(e){var t,n,r={};return x((e||"").split("&"),(function(e){if(e&&(t=e.replace(/\+/g,"%20").split("="),j(n=ae(t[0])))){var i=!j(t[1])||ae(t[1]);a.call(r,n)?H(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}})),r}function ue(e){var t=[];return x(e,(function(e,n){H(e)?x(e,(function(e){t.push(le(n,!0)+(!0===e?"":"="+le(e,!0)))})):t.push(le(n,!0)+(!0===e?"":"="+le(e,!0)))})),t.length?t.join("&"):""}function ce(e){return le(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function le(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var fe=["ng-","data-ng-","ng:","x-ng-"];function pe(e,t){var n,r,i={};x(fe,(function(t){var i=t+"app";!n&&e.hasAttribute&&e.hasAttribute(i)&&(n=e,r=e.getAttribute(i))})),x(fe,(function(t){var i,o=t+"app";!n&&(i=e.querySelector("["+o.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(o))})),n&&(i.strictDi=null!==function(e,t){var n,r,i=fe.length;for(e=c(e),r=0;r<i;++r)if(n=fe[r]+t,q(n=e.attr(n)))return n;return null}(n,"strict-di"),t(n,r?[r]:[],i))}function he(n,r,i){M(i)||(i={});i=T({strictDi:!1},i);var o=function(){if((n=c(n)).injector()){var e=n[0]===t?"document":oe(n);throw g("btstrpd","App Already Bootstrapped with this Element '{0}'",e.replace(/</,"&lt;").replace(/>/,"&gt;"))}(r=r||[]).unshift(["$provide",function(e){e.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),r.unshift("ng");var o=bt(r,i.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply((function(){t.data("$injector",r),n(t)(e)}))}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name))return o();e.name=e.name.replace(s,""),m.resumeBootstrap=function(e){return x(e,(function(e){r.push(e)})),o()},L(m.resumeDeferredBootstrap)&&m.resumeDeferredBootstrap()}function de(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ve(e){var t=m.element(e).injector();if(!t)throw g("test","no injector found for element argument to getTestability");return t.get("$$testability")}var ge=/[A-Z]/g;function me(e,t){return t=t||"_",e.replace(ge,(function(e,n){return(n?t:"")+e.toLowerCase()}))}var $e,ye=!1;function xe(e,t,n){if(!e)throw g("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function be(e,t,n){return n&&H(e)&&(e=e[e.length-1]),xe(L(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function we(e,t){if("hasOwnProperty"===e)throw g("badname","hasOwnProperty is not a valid {0} name",t)}function Ce(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&L(e)?te(o,e):e}function Se(e){var t=e[0],n=e[e.length-1],r=[t];do{if(!(t=t.nextSibling))break;r.push(t)}while(t!==n);return c(r)}function Te(){return Object.create(null)}var ke=1,Ee=3;function Ae(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):void 0===e?"undefined":"string"!=typeof e?function(e){var t=[];return JSON.stringify(e,(function(e,n){if(M(n=ne(e,n))){if(t.indexOf(n)>=0)return"<<already seen>>";t.push(n)}return n}))}(e):e}var Ne={full:"1.3.20",major:1,minor:3,dot:20,codeName:"shallow-translucence"};Ge.expando="ng339";var Oe=Ge.cache={},De=1,je=function(e,t,n){e.addEventListener(t,n,!1)},Me=function(e,t,n){e.removeEventListener(t,n,!1)};Ge._data=function(e){return this.cache[e[this.expando]]||{}};var qe=/([\:\-\_]+(.))/g,Re=/^moz([A-Z])/,Pe={mouseleave:"mouseout",mouseenter:"mouseover"},He=r("jqLite");function Le(e){return e.replace(qe,(function(e,t,n,r){return r?n.toUpperCase():n})).replace(Re,"Moz$1")}var Fe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Ve=/<|&#?\w+;/,Ie=/<([\w:]+)/,_e=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ue={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,"",""]};function Be(e){return!Ve.test(e)}function We(e){var t=e.nodeType;return t===ke||!t||9===t}function ze(e,t){var n,r,i,o,a=t.createDocumentFragment(),s=[];if(Be(e))s.push(t.createTextNode(e));else{for(n=n||a.appendChild(t.createElement("div")),r=(Ie.exec(e)||["",""])[1].toLowerCase(),i=Ue[r]||Ue._default,n.innerHTML=i[1]+e.replace(_e,"<$1></$2>")+i[2],o=i[0];o--;)n=n.lastChild;s=Q(s,n.childNodes),(n=a.firstChild).textContent=""}return a.textContent="",a.innerHTML="",x(s,(function(e){a.appendChild(e)})),a}function Ge(e){if(e instanceof Ge)return e;var n,r,i,o;if(q(e)&&(e=B(e),n=!0),!(this instanceof Ge)){if(n&&"<"!=e.charAt(0))throw He("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Ge(e)}rt(this,n?(r=e,i=i||t,(o=Fe.exec(r))?[i.createElement(o[1])]:(o=ze(r,i))?o.childNodes:[]):e)}function Xe(e){return e.cloneNode(!0)}function Ye(e,t){if(t||Ke(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Ke(n[r])}function Je(e,t,n,r){if(j(r))throw He("offargs","jqLite#off() does not support the `selector` argument");var i=Ze(e),o=i&&i.events,a=i&&i.handle;if(a)if(t)x(t.split(" "),(function(t){if(j(n)){var r=o[t];if(X(r||[],n),r&&r.length>0)return}Me(e,t,a),delete o[t]}));else for(t in o)"$destroy"!==t&&Me(e,t,a),delete o[t]}function Ke(e,t){var r=e.ng339,i=r&&Oe[r];if(i){if(t)return void delete i.data[t];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),Je(e)),delete Oe[r],e.ng339=n}}function Ze(e,t){var r=e.ng339,i=r&&Oe[r];return t&&!i&&(e.ng339=r=++De,i=Oe[r]={events:{},data:{},handle:n}),i}function Qe(e,t,n){if(We(e)){var r=j(n),i=!r&&t&&!M(t),o=!t,a=Ze(e,!i),s=a&&a.data;if(r)s[t]=n;else{if(o)return s;if(i)return s&&s[t];T(s,t)}}}function et(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function tt(e,t){t&&e.setAttribute&&x(t.split(" "),(function(t){e.setAttribute("class",B((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+B(t)+" "," ")))}))}function nt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");x(t.split(" "),(function(e){e=B(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")})),e.setAttribute("class",B(n))}}function rt(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function it(e,t){return ot(e,"$"+(t||"ngController")+"Controller")}function ot(e,t,r){9==e.nodeType&&(e=e.documentElement);for(var i=H(t)?t:[t];e;){for(var o=0,a=i.length;o<a;o++)if((r=c.data(e,i[o]))!==n)return r;e=e.parentNode||11===e.nodeType&&e.host}}function at(e){for(Ye(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function st(e,t){t||Ye(e);var n=e.parentNode;n&&n.removeChild(e)}Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var ut=Ge.prototype={ready:function(n){var r=!1;function i(){r||(r=!0,n())}"complete"===t.readyState?setTimeout(i):(this.on("DOMContentLoaded",i),Ge(e).on("load",i))},toString:function(){var e=[];return x(this,(function(t){e.push(""+t)})),"["+e.join(", ")+"]"},eq:function(e){return c(e>=0?this[e]:this[this.length+e])},length:0,push:d,sort:[].sort,splice:[].splice},ct={};x("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(e){ct[o(e)]=e}));var lt={};x("input,select,option,textarea,button,form,details".split(","),(function(e){lt[e]=!0}));var ft={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};function pt(e,t){var n=ct[t.toLowerCase()];return n&&lt[G(e)]&&n}function ht(){this.$get=function(){return T(Ge,{hasClass:function(e,t){return e.attr&&(e=e[0]),et(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),nt(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),tt(e,t)}})}}function dt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"==r||"object"==r&&null!==e?e.$$hashKey=r+":"+(t||C)():r+":"+e}function vt(e,t){if(t){var n=0;this.nextUid=function(){return++n}}x(e,this.put,this)}x({data:Qe,removeData:Ke},(function(e,t){Ge[t]=e})),x({data:Qe,inheritedData:ot,scope:function(e){return c.data(e,"$scope")||ot(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return c.data(e,"$isolateScope")||c.data(e,"$isolateScopeNoTemplate")},controller:it,injector:function(e){return ot(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:et,css:function(e,t,n){if(t=Le(t),!j(n))return e.style[t];e.style[t]=n},attr:function(e,t,r){var i=e.nodeType;if(i!==Ee&&2!==i&&8!==i){var a=o(t);if(ct[a]){if(!j(r))return e[t]||(e.attributes.getNamedItem(t)||A).specified?a:n;r?(e[t]=!0,e.setAttribute(t,a)):(e[t]=!1,e.removeAttribute(a))}else if(j(r))e.setAttribute(t,r);else if(e.getAttribute){var s=e.getAttribute(t,2);return null===s?n:s}}},prop:function(e,t,n){if(!j(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(D(t)){var n=e.nodeType;return n===ke||n===Ee?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(D(t)){if(e.multiple&&"select"===G(e)){var n=[];return x(e.options,(function(e){e.selected&&n.push(e.value||e.text)})),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){if(D(t))return e.innerHTML;Ye(e,!0),e.innerHTML=t},empty:at},(function(e,t){Ge.prototype[t]=function(t,r){var i,o,a=this.length;if(e!==at&&(2==e.length&&e!==et&&e!==it?t:r)===n){if(M(t)){for(i=0;i<a;i++)if(e===Qe)e(this[i],t);else for(o in t)e(this[i],o,t[o]);return this}for(var s=e.$dv,u=s===n?Math.min(a,1):a,c=0;c<u;c++){var l=e(this[c],t,r);s=s?s+l:l}return s}for(i=0;i<a;i++)e(this[i],t,r);return this}})),x({removeData:Ke,on:function e(t,n,r,i){if(j(i))throw He("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(We(t)){var o=Ze(t,!0),a=o.events,s=o.handle;s||(s=o.handle=function(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(D(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped},o>1&&(i=J(i));for(var s=0;s<o;s++)n.isImmediatePropagationStopped()||i[s].call(e,n)}};return n.elem=e,n}(t,a));for(var u=n.indexOf(" ")>=0?n.split(" "):[n],c=u.length;c--;){var l=a[n=u[c]];l||(a[n]=[],"mouseenter"===n||"mouseleave"===n?e(t,Pe[n],(function(e){var t=e.relatedTarget;t&&(t===this||this.contains(t))||s(e,n)})):"$destroy"!==n&&je(t,n,s),l=a[n]),l.push(r)}}},off:Je,one:function(e,t,n){(e=c(e)).on(t,(function r(){e.off(t,n),e.off(t,r)})),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;Ye(e),x(new Ge(t),(function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t}))},children:function(e){var t=[];return x(e.childNodes,(function(e){e.nodeType===ke&&t.push(e)})),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===ke||11===n)for(var r=0,i=(t=new Ge(t)).length;r<i;r++){var o=t[r];e.appendChild(o)}},prepend:function(e,t){if(e.nodeType===ke){var n=e.firstChild;x(new Ge(t),(function(t){e.insertBefore(t,n)}))}},wrap:function(e,t){t=c(t).eq(0).clone()[0];var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)},remove:st,detach:function(e){st(e,!0)},after:function(e,t){for(var n=e,r=e.parentNode,i=0,o=(t=new Ge(t)).length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:nt,removeClass:tt,toggleClass:function(e,t,n){t&&x(t.split(" "),(function(t){var r=n;D(r)&&(r=!et(e,t)),(r?nt:tt)(e,t)}))},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Xe,triggerHandler:function(e,t,n){var r,i,o,a=t.type||t,s=Ze(e),u=s&&s.events,c=u&&u[a];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:A,type:a,target:e},t.type&&(r=T(r,t)),i=J(c),o=n?[r].concat(n):[r],x(i,(function(t){r.isImmediatePropagationStopped()||t.apply(e,o)})))}},(function(e,t){Ge.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)D(i)?j(i=e(this[o],t,n,r))&&(i=c(i)):rt(i,e(this[o],t,n,r));return j(i)?i:this},Ge.prototype.bind=Ge.prototype.on,Ge.prototype.unbind=Ge.prototype.off})),vt.prototype={put:function(e,t){this[dt(e,this.nextUid)]=t},get:function(e){return this[dt(e,this.nextUid)]},remove:function(e){var t=this[e=dt(e,this.nextUid)];return delete this[e],t}};var gt=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,mt=/,/,$t=/^\s*(_?)(\S+?)\1\s*$/,yt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,xt=r("$injector");function bt(e,t){t=!0===t;var r={},i="Provider",o=[],a=new vt([],!0),s={$provide:{provider:p(h),factory:p(v),service:p((function(e,t){return v(e,["$injector",function(e){return e.instantiate(t)}])})),value:p((function(e,t){return v(e,O(t),!1)})),constant:p((function(e,t){we(e,"constant"),s[e]=t,c[e]=t})),decorator:function(e,t){var n=u.get(e+i),r=n.$get;n.$get=function(){var e=l.invoke(r,n);return l.invoke(t,null,{$delegate:e})}}}},u=s.$injector=g(s,(function(e,t){throw m.isString(t)&&o.push(t),xt("unpr","Unknown provider: {0}",o.join(" <- "))})),c={},l=c.$injector=g(c,(function(e,t){var r=u.get(e+i,t);return l.invoke(r.$get,r,n,e)}));return x(function e(t){var n,r=[];return x(t,(function(t){if(!a.get(t)){a.put(t,!0);try{q(t)?(n=f(t),r=r.concat(e(n.requires)).concat(n._runBlocks),i(n._invokeQueue),i(n._configBlocks)):L(t)||H(t)?r.push(u.invoke(t)):be(t,"module")}catch(e){throw H(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1==e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),xt("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function i(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=u.get(r[0]);i[r[1]].apply(i,r[2])}}})),r}(e),(function(e){l.invoke(e||A)})),l;function p(e){return function(t,n){if(!M(t))return e(t,n);x(t,w(e))}}function h(e,t){if(we(e,"service"),(L(t)||H(t))&&(t=u.instantiate(t)),!t.$get)throw xt("pget","Provider '{0}' must define $get factory method.",e);return s[e+i]=t}function d(e,t){return function(){var n=l.invoke(t,this);if(D(n))throw xt("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function v(e,t,n){return h(e,{$get:!1!==n?d(e,t):t})}function g(e,n){function a(t,i){if(e.hasOwnProperty(t)){if(e[t]===r)throw xt("cdep","Circular dependency found: {0}",t+" <- "+o.join(" <- "));return e[t]}try{return o.unshift(t),e[t]=r,e[t]=n(t,i)}catch(n){throw e[t]===r&&delete e[t],n}finally{o.shift()}}function u(e,n,r,i){"string"==typeof r&&(i=r,r=null);var o,s,u,c=[],l=bt.$$annotate(e,t,i);for(s=0,o=l.length;s<o;s++){if("string"!=typeof(u=l[s]))throw xt("itkn","Incorrect injection token! Expected service name as string, got {0}",u);c.push(r&&r.hasOwnProperty(u)?r[u]:a(u,i))}return H(e)&&(e=e[o]),e.apply(n,c)}return{invoke:u,instantiate:function(e,t,n){var r=Object.create((H(e)?e[e.length-1]:e).prototype||null),i=u(e,r,t,n);return M(i)||L(i)?i:r},get:a,annotate:bt.$$annotate,has:function(t){return s.hasOwnProperty(t+i)||e.hasOwnProperty(t)}}}}function wt(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,r,i){var o=n.document;function a(e){if(e){e.scrollIntoView();var t=function(){var e=s.yOffset;if(L(e))e=e();else if(z(e)){var t=e[0];e="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else R(e)||(e=0);return e}();if(t){var r=e.getBoundingClientRect().top;n.scrollBy(0,r-t)}}else n.scrollTo(0,0)}function s(){var e,t,n,i=r.hash();i?(e=o.getElementById(i))?a(e):(t=o.getElementsByName(i),n=null,Array.prototype.some.call(t,(function(e){if("a"===G(e))return n=e,!0})),(e=n)?a(e):"top"===i&&a(null)):a(null)}return t&&i.$watch((function(){return r.hash()}),(function(t,n){var r,o;t===n&&""===t||(r=function(){i.$evalAsync(s)},"complete"===(o=o||e).document.readyState?o.setTimeout(r):c(o).on("load",r))})),s}]}bt.$$annotate=function(e,t,n){var r,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw q(n)&&n||(n=e.name||function(e){var t=e.toString().replace(yt,"").match(gt);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),xt("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);x(e.toString().replace(yt,"").match(gt)[1].split(mt),(function(e){e.replace($t,(function(e,t,n){r.push(n)}))}))}e.$inject=r}}else H(e)?(be(e[i=e.length-1],"fn"),r=e.slice(0,i)):be(e,"fn",!0);return r};var Ct=r("$animate"),St=["$provide",function(e){this.$$selectors={},this.register=function(t,n){var r=t+"-animation";if(t&&"."!=t.charAt(0))throw Ct("notcsel","Expecting class selector starting with '.' got '{0}'.",t);this.$$selectors[t.substr(1)]=r,e.factory(r,n)},this.classNameFilter=function(e){return 1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null),this.$$classNameFilter},this.$get=["$$q","$$asyncCallback","$rootScope",function(e,t,n){var r;function i(e,t,n){for(var r=0,i=t.length;r<i;++r){e[t[r]]=n}}function o(){return r||(r=e.defer(),t((function(){r.resolve(),r=null}))),r.promise}function a(e,t){if(m.isObject(t)){var n=T(t.from||{},t.to||{});e.css(n)}}return{animate:function(e,t,n){return a(e,{from:t,to:n}),o()},enter:function(e,t,n,r){return a(e,r),n?n.after(e):t.prepend(e),o()},leave:function(e,t){return a(e,t),e.remove(),o()},move:function(e,t,n,r){return this.enter(e,t,n,r)},addClass:function(e,t,n){return this.setClass(e,t,[],n)},$$addClassImmediately:function(e,t,n){return e=c(e),t=q(t)?t:H(t)?t.join(" "):"",x(e,(function(e){nt(e,t)})),a(e,n),o()},removeClass:function(e,t,n){return this.setClass(e,[],t,n)},$$removeClassImmediately:function(e,t,n){return e=c(e),t=q(t)?t:H(t)?t.join(" "):"",x(e,(function(e){tt(e,t)})),a(e,n),o()},setClass:function(t,r,o,a){var s=this,u="$$animateClasses",l=!1,f=(t=c(t)).data(u);f?a&&f.options&&(f.options=m.extend(f.options||{},a)):(f={classes:{},options:a},l=!0);var p,h,d,v=f.classes;return r=H(r)?r:r.split(" "),o=H(o)?o:o.split(" "),i(v,r,!0),i(v,o,!1),l&&(f.promise=(p=function(e){var n=t.data(u);if(t.removeData(u),n){var r=function(e,t){var n=[],r=[],i=Te();return x((e.attr("class")||"").split(/\s+/),(function(e){i[e]=!0})),x(t,(function(e,t){var o=i[t];!1===e&&o?r.push(t):!0!==e||o||n.push(t)})),n.length+r.length>0&&[n.length?n:null,r.length?r:null]}(t,n.classes);r&&s.$$setClassImmediately(t,r[0],r[1],n.options)}e()},(d=e.defer()).promise.$$cancelFn=function(){h&&h()},n.$$postDigest((function(){h=p((function(){d.resolve()}))})),d.promise),t.data(u,f)),f.promise},$$setClassImmediately:function(e,t,n,r){return t&&this.$$addClassImmediately(e,t),n&&this.$$removeClassImmediately(e,n),a(e,r),o()},enabled:A,cancel:A}}]}];function Tt(){this.$get=["$$rAF","$timeout",function(e,t){return e.supported?function(t){return e(t)}:function(e){return t(e,0,!1)}}]}function kt(e,t,r,i){var o=this,a=t[0],s=e.location,u=e.history,l=e.setTimeout,f=e.clearTimeout,p={};o.isMock=!1;var h=0,d=[];function v(e){try{e.apply(null,ee(arguments,1))}finally{if(0===--h)for(;d.length;)try{d.pop()()}catch(e){r.error(e)}}}o.$$completeOutstandingRequest=v,o.$$incOutstandingRequestCount=function(){h++},o.notifyWhenNoOutstandingRequests=function(e){x(m,(function(e){e()})),0===h?e():d.push(e)};var g,m=[];o.addPollFn=function(e){return D(g)&&function(e,t){!function n(){x(m,(function(e){e()})),g=t(n,e)}()}(100,l),m.push(e),e};var $,y,b=s.href,w=t.find("base"),C=null;N(),y=$,o.url=function(t,n,r){if(D(r)&&(r=null),s!==e.location&&(s=e.location),u!==e.history&&(u=e.history),t){var a=y===r;if(b===t&&(!i.history||a))return o;var c=b&&fn(b)===fn(t);return b=t,y=r,!i.history||c&&a?(c&&!C||(C=t),n?s.replace(t):c?s.hash=function(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}(t):s.href=t):(u[n?"replaceState":"pushState"](r,"",t),N(),y=$),o}return C||s.href.replace(/%27/g,"'")},o.state=function(){return $};var S=[],T=!1;function k(){N(),O()}var E=null;function N(){K($=D($=function(){try{return u.state}catch(e){}}())?null:$,E)&&($=E),E=$}function O(){b===o.url()&&y===$||(b=o.url(),y=$,x(S,(function(e){e(o.url(),$)})))}o.onUrlChange=function(t){return T||(i.history&&c(e).on("popstate",k),c(e).on("hashchange",k),T=!0),S.push(t),t},o.$$checkUrlChange=O,o.baseHref=function(){var e=w.attr("href");return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var j={},M="",R=o.baseHref();function P(e){try{return decodeURIComponent(e)}catch(t){return e}}o.cookies=function(e,t){var i,o,s,u,c;if(!e){if(a.cookie!==M)for(o=(M=a.cookie).split("; "),j={},u=0;u<o.length;u++)(c=(s=o[u]).indexOf("="))>0&&(e=P(s.substring(0,c)),j[e]===n&&(j[e]=P(s.substring(c+1))));return j}t===n?a.cookie=encodeURIComponent(e)+"=;path="+R+";expires=Thu, 01 Jan 1970 00:00:00 GMT":q(t)&&(i=(a.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path="+R).length+1)>4096&&r.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!")},o.defer=function(e,t){var n;return h++,n=l((function(){delete p[n],v(e)}),t||0),p[n]=!0,n},o.defer.cancel=function(e){return!!p[e]&&(delete p[e],f(e),v(A),!0)}}function Et(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new kt(e,r,t,n)}]}function At(){this.$get=function(){var e={};function t(t,n){if(t in e)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var i=0,o=T({},n,{id:t}),a={},s=n&&n.capacity||Number.MAX_VALUE,u={},c=null,l=null;return e[t]={put:function(e,t){s<Number.MAX_VALUE&&f(u[e]||(u[e]={key:e}));if(!D(t))return e in a||i++,a[e]=t,i>s&&this.remove(l.key),t},get:function(e){if(s<Number.MAX_VALUE){var t=u[e];if(!t)return;f(t)}return a[e]},remove:function(e){if(s<Number.MAX_VALUE){var t=u[e];if(!t)return;t==c&&(c=t.p),t==l&&(l=t.n),p(t.n,t.p),delete u[e]}delete a[e],i--},removeAll:function(){a={},i=0,u={},c=l=null},destroy:function(){a=null,o=null,u=null,delete e[t]},info:function(){return T({},o,{size:i})}};function f(e){e!=c&&(l?l==e&&(l=e.n):l=e,p(e.n,e.p),p(e,c),(c=e).n=null)}function p(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}}return t.info=function(){var t={};return x(e,(function(e,n){t[n]=e.info()})),t},t.get=function(t){return e[t]},t}}function Nt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var Ot=r("$compile");function Dt(e,r){var i={},a="Directive",s=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,u=/(([\w\-]+)(?:\:([^;]+))?;?)/,f=function(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),p=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,h=/^(on[a-z]+|formaction)$/;this.directive=function t(n,r){return we(n,"directive"),q(n)?(xe(r,"directiveFactory"),i.hasOwnProperty(n)||(i[n]=[],e.factory(n+a,["$injector","$exceptionHandler",function(e,t){var r=[];return x(i[n],(function(i,o){try{var a=e.invoke(i);L(a)?a={compile:O(a)}:!a.compile&&a.link&&(a.compile=O(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"EA",M(a.scope)&&(a.$$isolateBindings=(s=a.scope,u=a.name,c=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,l={},x(s,(function(e,t){var n=e.match(c);if(!n)throw Ot("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",u,t,e);l[t]={mode:n[1][0],collection:"*"===n[2],optional:"?"===n[3],attrName:n[4]||t}})),l)),r.push(a)}catch(e){t(e)}var s,u,c,l})),r}])),i[n].push(r)):x(n,w(t)),this},this.aHrefSanitizationWhitelist=function(e){return j(e)?(r.aHrefSanitizationWhitelist(e),this):r.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return j(e)?(r.imgSrcSanitizationWhitelist(e),this):r.imgSrcSanitizationWhitelist()};var d=!0;this.debugInfoEnabled=function(e){return j(e)?(d=e,this):d},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(e,r,v,g,m,$,y,b,w,C,S){var k=function(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)this[i=o[n]]=t[i]}else this.$attr={};this.$$element=e};function O(e,t){try{e.addClass(t)}catch(e){}}k.prototype={$normalize:Mt,$addClass:function(e){e&&e.length>0&&C.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&C.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=qt(e,t);n&&n.length&&C.addClass(this.$$element,n);var r=qt(t,e);r&&r.length&&C.removeClass(this.$$element,r)},$set:function(e,t,r,i){var o,a=this.$$element[0],s=pt(a,e),u=function(e,t){var n=e.nodeName;return("INPUT"===n||"TEXTAREA"===n)&&ft[t]}(a,e),c=e;if(s?(this.$$element.prop(e,t),i=s):u&&(this[u]=t,c=u),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=me(e,"-")),"a"===(o=G(this.$$element))&&"href"===e||"img"===o&&"src"===e)this[e]=t=S(t,"src"===e);else if("img"===o&&"srcset"===e){for(var l="",f=B(t),p=/\s/.test(f)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,h=f.split(p),d=Math.floor(h.length/2),g=0;g<d;g++){var m=2*g;l+=S(B(h[m]),!0),l+=" "+B(h[m+1])}var $=B(h[2*g]).split(/\s/);l+=S(B($[0]),!0),2===$.length&&(l+=" "+B($[1])),this[e]=t=l}!1!==r&&(null===t||t===n?this.$$element.removeAttr(i):this.$$element.attr(i,t));var y=this.$$observers;y&&x(y[c],(function(e){try{e(t)}catch(e){v(e)}}))},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=Te()),i=r[e]||(r[e]=[]);return i.push(t),y.$evalAsync((function(){!i.$$inter&&n.hasOwnProperty(e)&&t(n[e])})),function(){X(i,t)}}};var D=r.startSymbol(),j=r.endSymbol(),R="{{"==D||"}}"==j?N:function(e){return e.replace(/\{\{/g,D).replace(/}}/g,j)},P=/^ngAttr[A-Z]/;return F.$$addBindingInfo=d?function(e,t){var n=e.data("$binding")||[];H(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:A,F.$$addBindingClass=d?function(e){O(e,"ng-binding")}:A,F.$$addScopeInfo=d?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:A,F.$$addScopeClass=d?function(e,t){O(e,t?"ng-isolate-scope":"ng-scope")}:A,F;function F(e,t,n,r,i){e instanceof c||(e=c(e)),x(e,(function(t,n){t.nodeType==Ee&&t.nodeValue.match(/\S+/)&&(e[n]=c(t).wrap("<span></span>").parent()[0])}));var o=V(e,t,e,n,r,i);F.$$addScopeClass(e);var a=null;return function(t,n,r){xe(t,"scope");var i,s,u,l=(r=r||{}).parentBoundTranscludeFn,f=r.transcludeControllers,p=r.futureParentElement;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),a||(s=(i=p)&&i[0],a=s&&"foreignobject"!==G(s)&&s.toString().match(/SVG/)?"svg":"html"),u="html"!==a?c(ae(a,c("<div>").append(e).html())):n?ut.clone.call(e):e,f)for(var h in f)u.data("$"+h+"Controller",f[h].instance);return F.$$addScopeInfo(u,t),n&&n(u,t),o&&o(t,u,u,l),u}}function V(e,t,r,i,o,a){for(var s,u,l,f,p,h,d,v=[],g=0;g<e.length;g++)s=new k,(l=(u=U(e[g],[],s,0===g?i:n,o)).length?Y(u,e[g],s,t,r,null,[],[],a):null)&&l.scope&&F.$$addScopeClass(s.$$element),p=l&&l.terminal||!(f=e[g].childNodes)||!f.length?null:V(f,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||p)&&(v.push(g,l,p),h=!0,d=d||l),a=null;return h?function(e,r,i,o){var a,s,u,l,f,p,h,g,m;if(d){var $=r.length;for(m=new Array($),f=0;f<v.length;f+=3)h=v[f],m[h]=r[h]}else m=r;for(f=0,p=v.length;f<p;)u=m[v[f++]],a=v[f++],s=v[f++],a?(a.scope?(l=e.$new(),F.$$addScopeInfo(c(u),l)):l=e,g=a.transcludeOnThisElement?_(e,a.transclude,o,a.elementTranscludeOnThisElement):!a.templateOnThisElement&&o?o:!o&&t?_(e,t):null,a(s,l,u,i,g)):s&&s(e,u.childNodes,n,o)}:null}function _(e,t,n,r){return function(r,i,o,a,s){return r||((r=e.$new(!1,s)).$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}}function U(e,t,n,i,o){var a,c,l=e.nodeType,f=n.$attr;switch(l){case ke:Z(t,Mt(G(e)),"E",i,o);for(var p,h,d,v,g,m,$=e.attributes,y=0,x=$&&$.length;y<x;y++){var b=!1,w=!1;h=(p=$[y]).name,g=B(p.value),v=Mt(h),(m=P.test(v))&&(h=h.replace(jt,"").substr(8).replace(/_(.)/g,(function(e,t){return t.toUpperCase()})));var C=v.replace(/(Start|End)$/,"");Q(C)&&v===C+"Start"&&(b=h,w=h.substr(0,h.length-5)+"end",h=h.substr(0,h.length-6)),f[d=Mt(h.toLowerCase())]=h,!m&&n.hasOwnProperty(d)||(n[d]=g,pt(e,d)&&(n[d]=!0)),se(e,t,g,d,m),Z(t,d,"A",i,o,b,w)}if(M(c=e.className)&&(c=c.animVal),q(c)&&""!==c)for(;a=u.exec(c);)Z(t,d=Mt(a[2]),"C",i,o)&&(n[d]=B(a[3])),c=c.substr(a.index+a[0].length);break;case Ee:!function(e,t){var n=r(t,!0);n&&e.push({priority:0,compile:function(e){var t=e.parent(),r=!!t.length;return r&&F.$$addBindingClass(t),function(e,t){var i=t.parent();r||F.$$addBindingClass(i),F.$$addBindingInfo(i,n.expressions),e.$watch(n,(function(e){t[0].nodeValue=e}))}}})}(t,e.nodeValue);break;case 8:try{(a=s.exec(e.nodeValue))&&Z(t,d=Mt(a[1]),"M",i,o)&&(n[d]=B(a[2]))}catch(e){}}return t.sort(re),t}function W(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Ot("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType==ke&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return c(r)}function z(e,t,n){return function(r,i,o,a,s){return i=W(i[0],t,n),e(r,i,o,a,s)}}function Y(e,i,o,a,s,u,l,f,h){h=h||{};for(var d,g,y,b,w,C,S,T=-Number.MAX_VALUE,E=h.controllerDirectives,A=h.newIsolateScopeDirective,N=h.templateDirective,O=h.nonTlbTranscludeDirective,D=!1,j=!1,P=h.hasElementTranscludeDirective,V=o.$$element=c(i),_=u,G=a,X=0,Y=e.length;X<Y;X++){var Z=(y=e[X]).$$start,Q=y.$$end;if(Z&&(V=W(i,Z,Q)),w=n,T>y.priority)break;if((S=y.scope)&&(y.templateUrl||(M(S)?(ie("new/isolated scope",A||d,y,V),A=y):ie("new/isolated scope",A,y,V)),d=d||y),b=y.name,!y.templateUrl&&y.controller&&(S=y.controller,ie("'"+b+"' controller",(E=E||{})[b],y,V),E[b]=y),(S=y.transclude)&&(D=!0,y.$$tlb||(ie("transclusion",O,y,V),O=y),"element"==S?(P=!0,T=y.priority,w=V,V=o.$$element=c(t.createComment(" "+b+": "+o[b]+" ")),i=V[0],ue(s,ee(w),i),G=F(w,a,T,_&&_.name,{nonTlbTranscludeDirective:O})):(w=c(Xe(i)).contents(),V.empty(),G=F(w,a))),y.template)if(j=!0,ie("template",N,y,V),N=y,S=L(y.template)?y.template(V,o):y.template,S=R(S),y.replace){if(_=y,w=Be(S)?[]:Rt(ae(y.templateNamespace,B(S))),i=w[0],1!=w.length||i.nodeType!==ke)throw Ot("tplrt","Template for directive '{0}' must have exactly one root element. {1}",b,"");ue(s,V,i);var re={$attr:{}},se=U(i,[],re),fe=e.splice(X+1,e.length-(X+1));A&&J(se),e=e.concat(se).concat(fe),te(o,re),Y=e.length}else V.html(S);if(y.templateUrl)j=!0,ie("template",N,y,V),N=y,y.replace&&(_=y),de=ne(e.splice(X,e.length-X),V,o,s,D&&G,l,f,{controllerDirectives:E,newIsolateScopeDirective:A,templateDirective:N,nonTlbTranscludeDirective:O}),Y=e.length;else if(y.compile)try{L(C=y.compile(V,o,G))?pe(null,C,Z,Q):C&&pe(C.pre,C.post,Z,Q)}catch(e){v(e,oe(V))}y.terminal&&(de.terminal=!0,T=Math.max(T,y.priority))}return de.scope=d&&!0===d.scope,de.transcludeOnThisElement=D,de.elementTranscludeOnThisElement=P,de.templateOnThisElement=j,de.transclude=G,h.hasElementTranscludeDirective=P,de;function pe(e,t,n,r){e&&(n&&(e=z(e,n,r)),e.require=y.require,e.directiveName=b,(A===y||y.$$isolateScope)&&(e=ce(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=z(t,n,r)),t.require=y.require,t.directiveName=b,(A===y||y.$$isolateScope)&&(t=ce(t,{isolateScope:!0})),f.push(t))}function he(e,t,n,r){var i,o,a="data",s=!1,u=n;if(q(t)){if(o=t.match(p),t=t.substring(o[0].length),o[3]&&(o[1]?o[3]=null:o[1]=o[3]),"^"===o[1]?a="inheritedData":"^^"===o[1]&&(a="inheritedData",u=n.parent()),"?"===o[2]&&(s=!0),i=null,r&&"data"===a&&(i=r[t])&&(i=i.instance),!(i=i||u[a]("$"+t+"Controller"))&&!s)throw Ot("ctreq","Controller '{0}', required by directive '{1}', can't be found!",t,e);return i||null}return H(t)&&(i=[],x(t,(function(t){i.push(he(e,t,n,r))}))),i}function de(e,t,a,s,u){var p,h,d,v,y,b,w,C,S;if(i===a?(S=o,C=o.$$element):(C=c(a),S=new k(C,o)),A&&(y=t.$new(!0)),u&&((w=function(e,t,r){var i;I(e)||(r=t,t=e,e=n);P&&(i=b);r||(r=P?C.parent():C);return u(e,t,i,r,D)}).$$boundTransclude=u),E&&(g={},b={},x(E,(function(e){var n,r={$scope:e===A||e.$$isolateScope?y:t,$element:C,$attrs:S,$transclude:w};"@"==(v=e.controller)&&(v=S[e.name]),n=$(v,r,!0,e.controllerAs),b[e.name]=n,P||C.data("$"+e.name+"Controller",n.instance),g[e.name]=n}))),A){F.$$addScopeInfo(C,y,!0,!(N&&(N===A||N===A.$$originalDirective))),F.$$addScopeClass(C,!0);var T=g&&g[A.name],O=y;T&&T.identifier&&!0===A.bindToController&&(O=T.instance),x(y.$$isolateBindings=A.$$isolateBindings,(function(e,n){var i,o,a,s,u=e.attrName,c=e.optional;switch(e.mode){case"@":S.$observe(u,(function(e){O[n]=e})),S.$$observers[u].$$scope=t,S[u]&&(O[n]=r(S[u])(t));break;case"=":if(c&&!S[u])return;o=m(S[u]),s=o.literal?K:function(e,t){return e===t||e!=e&&t!=t},a=o.assign||function(){throw i=O[n]=o(t),Ot("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",S[u],A.name)},i=O[n]=o(t);var l,f=function(e){return s(e,O[n])||(s(e,i)?a(t,e=O[n]):O[n]=e),i=e};f.$stateful=!0,l=e.collection?t.$watchCollection(S[u],f):t.$watch(m(S[u],f),null,o.literal),y.$on("$destroy",l);break;case"&":o=m(S[u]),O[n]=function(e){return o(t,e)}}}))}for(g&&(x(g,(function(e){e()})),g=null),p=0,h=l.length;p<h;p++)le(d=l[p],d.isolateScope?y:t,C,S,d.require&&he(d.directiveName,d.require,C,b),w);var D=t;for(A&&(A.template||null===A.templateUrl)&&(D=y),e&&e(D,a.childNodes,n,u),p=f.length-1;p>=0;p--)le(d=f[p],d.isolateScope?y:t,C,S,d.require&&he(d.directiveName,d.require,C,b),w)}}function J(e){for(var t=0,n=e.length;t<n;t++)e[t]=E(e[t],{$$isolateScope:!0})}function Z(t,r,o,s,u,c,l){if(r===u)return null;var f=null;if(i.hasOwnProperty(r))for(var p,h=e.get(r+a),d=0,g=h.length;d<g;d++)try{p=h[d],(s===n||s>p.priority)&&-1!=p.restrict.indexOf(o)&&(c&&(p=E(p,{$$start:c,$$end:l})),t.push(p),f=p)}catch(e){v(e)}return f}function Q(t){if(i.hasOwnProperty(t))for(var n=e.get(t+a),r=0,o=n.length;r<o;r++)if(n[r].multiElement)return!0;return!1}function te(e,t){var n=t.$attr,r=e.$attr,i=e.$$element;x(e,(function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))})),x(t,(function(t,o){"class"==o?(O(i,t),e.class=(e.class?e.class+" ":"")+t):"style"==o?(i.attr("style",i.attr("style")+";"+t),e.style=(e.style?e.style+";":"")+t):"$"==o.charAt(0)||e.hasOwnProperty(o)||(e[o]=t,r[o]=n[o])}))}function ne(e,t,n,r,i,o,a,s){var u,l,f=[],p=t[0],h=e.shift(),d=E(h,{templateUrl:null,transclude:null,replace:null,$$originalDirective:h}),v=L(h.templateUrl)?h.templateUrl(t,n):h.templateUrl,m=h.templateNamespace;return t.empty(),g(v).then((function(g){var $,y,b,w;if(g=R(g),h.replace){if(b=Be(g)?[]:Rt(ae(m,B(g))),$=b[0],1!=b.length||$.nodeType!==ke)throw Ot("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h.name,v);y={$attr:{}},ue(r,t,$);var C=U($,[],y);M(h.scope)&&J(C),e=C.concat(e),te(n,y)}else $=p,t.html(g);for(e.unshift(d),u=Y(e,$,n,i,t,h,o,a,s),x(r,(function(e,n){e==$&&(r[n]=t[0])})),l=V(t[0].childNodes,i);f.length;){var S=f.shift(),T=f.shift(),k=f.shift(),E=f.shift(),A=t[0];if(!S.$$destroyed){if(T!==p){var N=T.className;s.hasElementTranscludeDirective&&h.replace||(A=Xe($)),ue(k,c(T),A),O(c(A),N)}w=u.transcludeOnThisElement?_(S,u.transclude,E):E,u(l,S,A,r,w)}}f=null})),function(e,t,n,r,i){var o=i;t.$$destroyed||(f?f.push(t,n,r,o):(u.transcludeOnThisElement&&(o=_(t,u.transclude,i)),u(l,t,n,r,o)))}}function re(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function ie(e,t,n,r){if(t)throw Ot("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",t.name,n.name,e,oe(r))}function ae(e,n){switch(e=o(e||"html")){case"svg":case"math":var r=t.createElement("div");return r.innerHTML="<"+e+">"+n+"</"+e+">",r.childNodes[0].childNodes;default:return n}}function se(e,t,n,i,o){var a=function(e,t){if("srcdoc"==t)return w.HTML;var n=G(e);return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?w.RESOURCE_URL:void 0}(e,i);o=f[i]||o;var s=r(n,!0,a,o);if(s){if("multiple"===i&&"select"===G(e))throw Ot("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",oe(e));t.push({priority:100,compile:function(){return{pre:function(e,t,u){var c=u.$$observers||(u.$$observers={});if(h.test(i))throw Ot("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");var l=u[i];l!==n&&(s=l&&r(l,!0,a,o),n=l),s&&(u[i]=s(e),(c[i]||(c[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||e).$watch(s,(function(e,t){"class"===i&&e!=t?u.$updateClass(e,t):u.$set(i,e)})))}}}})}}function ue(e,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(e)for(i=0,o=e.length;i<o;i++)if(e[i]==a){e[i++]=r;for(var f=i,p=f+s-1,h=e.length;f<h;f++,p++)p<h?e[f]=e[p]:delete e[f];e.length-=s-1,e.context===a&&(e.context=r);break}u&&u.replaceChild(r,a);var d=t.createDocumentFragment();d.appendChild(a),c(r).data(c(a).data()),l?($e=!0,l.cleanData([a])):delete c.cache[a[c.expando]];for(var v=1,g=n.length;v<g;v++){var m=n[v];c(m).remove(),d.appendChild(m),delete n[v]}n[0]=r,n.length=1}function ce(e,t){return T((function(){return e.apply(null,arguments)}),e,t)}function le(e,t,n,r,i,o){try{e(t,n,r,i,o)}catch(e){v(e,oe(n))}}}]}Dt.$inject=["$provide","$$sanitizeUriProvider"];var jt=/^((?:x|data)[\:\-_])/i;function Mt(e){return Le(e.replace(jt,""))}function qt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function Rt(e){var t=(e=c(e)).length;if(t<=1)return e;for(;t--;){8===e[t].nodeType&&h.call(e,t,1)}return e}var Pt=r("$controller");function Ht(){var e={},t=!1,i=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(t,n){we(t,"controller"),M(t)?T(e,t):e[t]=n},this.allowGlobals=function(){t=!0},this.$get=["$injector","$window",function(o,a){return function(r,u,c,l){var f,p,h,d;if(c=!0===c,l&&q(l)&&(d=l),q(r)){if(!(p=r.match(i)))throw Pt("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);h=p[1],d=d||p[3],be(r=e.hasOwnProperty(h)?e[h]:Ce(u.$scope,h,!0)||(t?Ce(a,h,!0):n),h,!0)}if(c){var v=(H(r)?r[r.length-1]:r).prototype;return f=Object.create(v||null),d&&s(u,d,f,h||r.name),T((function(){return o.invoke(r,f,u,h),f}),{instance:f,identifier:d})}return f=o.instantiate(r,u,h),d&&s(u,d,f,h||r.name),f};function s(e,t,n,i){if(!e||!M(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}}]}function Lt(){this.$get=["$window",function(e){return c(e.document)}]}function Ft(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}var Vt="application/json",It={"Content-Type":"application/json;charset=utf-8"},_t=/^\[|^\{(?!\{)/,Ut={"[":/]$/,"{":/}$/},Bt=/^\)\]\}',?\n/;function Wt(e,t){if(q(e)){var n=e.replace(Bt,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(Vt)||(o=(i=n).match(_t))&&Ut[o[0]].test(i))&&(e=ie(n))}}var i,o;return e}function zt(e){var t,n,r,i=Te();return e?(x(e.split("\n"),(function(e){r=e.indexOf(":"),t=o(B(e.substr(0,r))),n=B(e.substr(r+1)),t&&(i[t]=i[t]?i[t]+", "+n:n)})),i):i}function Gt(e){var t=M(e)?e:n;return function(n){if(t||(t=zt(e)),n){var r=t[o(n)];return void 0===r&&(r=null),r}return t}}function Xt(e,t,n,r){return L(r)?r(e,t,n):(x(r,(function(r){e=r(e,t,n)})),e)}function Yt(e){return 200<=e&&e<300}function Jt(){var e=this.defaults={transformResponse:[Wt],transformRequest:[function(e){return!M(e)||(t=e,"[object File]"===v.call(t))||function(e){return"[object Blob]"===v.call(e)}(e)||function(e){return"[object FormData]"===v.call(e)}(e)?e:re(e);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:J(It),put:J(It),patch:J(It)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},t=!1;this.useApplyAsync=function(e){return j(e)?(t=!!e,this):t};var i=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,u,c,l,f,p){var h=c("$http"),d=[];function v(i){if(!m.isObject(i))throw r("$http")("badreq","Http request configuration must be an object.  Received: {0}",i);var c=T({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse},i);c.headers=function(t){var n,r,i,a=e.headers,s=T({},t.headers);a=T({},a.common,a[o(t.method)]);e:for(n in a){for(i in r=o(n),s)if(o(i)===r)continue e;s[n]=a[n]}return u=s,l={},x(u,(function(e,t){L(e)?null!=(c=e())&&(l[t]=c):l[t]=e})),l;var u,c,l}(i),c.method=s(c.method);var p=[function(r){var i=r.headers,s=Xt(r.data,Gt(i),n,r.transformRequest);return D(s)&&x(i,(function(e,t){"content-type"===o(t)&&delete i[t]})),D(r.withCredentials)&&!D(e.withCredentials)&&(r.withCredentials=e.withCredentials),function(r,i){var o,s,c=f.defer(),p=c.promise,d=r.headers,g=function(e,t){if(!t)return e;var n=[];(function(e,t,n){for(var r=b(e),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i])})(t,(function(e,t){null===e||D(e)||(H(e)||(e=[e]),x(e,(function(e){M(e)&&(e=P(e)?e.toISOString():re(e)),n.push(le(t)+"="+le(e))})))})),n.length>0&&(e+=(-1==e.indexOf("?")?"?":"&")+n.join("&"));return e}(r.url,r.params);v.pendingRequests.push(r),p.then(C,C),!r.cache&&!e.cache||!1===r.cache||"GET"!==r.method&&"JSONP"!==r.method||(o=M(r.cache)?r.cache:M(e.cache)?e.cache:h);o&&(j(s=o.get(g))?U(s)?s.then(w,w):H(s)?y(s[1],s[0],J(s[2]),s[3]):y(s,200,{},"OK"):o.put(g,p));if(D(s)){var m=ar(r.url)?u.cookies()[r.xsrfCookieName||e.xsrfCookieName]:n;m&&(d[r.xsrfHeaderName||e.xsrfHeaderName]=m),a(r.method,g,i,$,d,r.timeout,r.withCredentials,r.responseType)}return p;function $(e,n,r,i){function a(){y(n,e,r,i)}o&&(Yt(e)?o.put(g,[e,n,zt(r),i]):o.remove(g)),t?l.$applyAsync(a):(a(),l.$$phase||l.$apply())}function y(e,t,n,i){(Yt(t=t>=-1?t:0)?c.resolve:c.reject)({data:e,status:t,headers:Gt(n),config:r,statusText:i})}function w(e){y(e.data,e.status,J(e.headers()),e.statusText)}function C(){var e=v.pendingRequests.indexOf(r);-1!==e&&v.pendingRequests.splice(e,1)}}(r,s).then(w,w)},n],g=f.when(c);for(x(d,(function(e){(e.request||e.requestError)&&p.unshift(e.request,e.requestError),(e.response||e.responseError)&&p.push(e.response,e.responseError)}));p.length;){var $=p.shift(),y=p.shift();g=g.then($,y)}return g.success=function(e){return be(e,"fn"),g.then((function(t){e(t.data,t.status,t.headers,c)})),g},g.error=function(e){return be(e,"fn"),g.then(null,(function(t){e(t.data,t.status,t.headers,c)})),g},g;function w(e){var t=T({},e);return e.data?t.data=Xt(e.data,e.headers,e.status,c.transformResponse):t.data=e.data,Yt(e.status)?t:f.reject(t)}}return x(i,(function(e){d.unshift(q(e)?p.get(e):p.invoke(e))})),v.pendingRequests=[],function(e){x(arguments,(function(e){v[e]=function(t,n){return v(T(n||{},{method:e,url:t}))}}))}("get","delete","head","jsonp"),function(e){x(arguments,(function(e){v[e]=function(t,n,r){return v(T(r||{},{method:e,url:t,data:n}))}}))}("post","put","patch"),v.defaults=e,v}]}function Kt(){return new e.XMLHttpRequest}function Zt(){this.$get=["$browser","$window","$document",function(e,t,r){return function(e,t,r,i,a){return function(a,u,c,l,f,p,h,d){if(e.$$incOutstandingRequestCount(),u=u||e.url(),"jsonp"==o(a)){var v="_"+(i.counter++).toString(36);i[v]=function(e){i[v].data=e,i[v].called=!0};var g=s(u.replace("JSON_CALLBACK","angular.callbacks."+v),v,(function(e,t){w(l,e,i[v].data,"",t),i[v]=A}))}else{var m=t();m.open(a,u,!0),x(f,(function(e,t){j(e)&&m.setRequestHeader(t,e)})),m.onload=function(){var e=m.statusText||"",t="response"in m?m.response:m.responseText,n=1223===m.status?204:m.status;0===n&&(n=t?200:"file"==or(u).protocol?404:0),w(l,n,t,m.getAllResponseHeaders(),e)};var $=function(){w(l,-1,null,null,"")};if(m.onerror=$,m.onabort=$,h&&(m.withCredentials=!0),d)try{m.responseType=d}catch(e){if("json"!==d)throw e}m.send(c||null)}if(p>0)var y=r(b,p);else U(p)&&p.then(b);function b(){g&&g(),m&&m.abort()}function w(t,i,o,a,s){y!==n&&r.cancel(y),g=m=null,t(i,o,a,s),e.$$completeOutstandingRequest(A)}};function s(e,t,n){var r=a.createElement("script"),o=null;return r.type="text/javascript",r.src=e,r.async=!0,o=function(e){Me(r,"load",o),Me(r,"error",o),a.body.removeChild(r),r=null;var s=-1,u="unknown";e&&("load"!==e.type||i[t].called||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},je(r,"load",o),je(r,"error",o),a.body.appendChild(r),o}}(e,Kt,e.defer,t.angular.callbacks,r[0])}]}var Qt=r("$interpolate");function en(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){var o=e.length,a=t.length,s=new RegExp(e.replace(/./g,c),"g"),u=new RegExp(t.replace(/./g,c),"g");function c(e){return"\\\\\\"+e}function l(c,l,f,p){p=!!p;for(var h,d,v,g=0,m=[],$=[],y=c.length,x=[],b=[];g<y;){if(-1==(h=c.indexOf(e,g))||-1==(d=c.indexOf(t,h+o))){g!==y&&x.push(k(c.substring(g)));break}g!==h&&x.push(k(c.substring(g,h))),v=c.substring(h+o,d),m.push(v),$.push(n(v,E)),g=d+a,b.push(x.length),x.push("")}if(f&&x.length>1)throw Qt("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",c);if(!l||m.length){var w=function(e){for(var t=0,n=m.length;t<n;t++){if(p&&D(e[t]))return;x[b[t]]=e[t]}return x.join("")},C=function(e){return f?i.getTrusted(f,e):i.valueOf(e)},S=function(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=re(e)}return e};return T((function(e){var t=0,n=m.length,i=new Array(n);try{for(;t<n;t++)i[t]=$[t](e);return w(i)}catch(e){var o=Qt("interr","Can't interpolate: {0}\n{1}",c,e.toString());r(o)}}),{exp:c,expressions:m,$$watchDelegate:function(e,t,n){var r;return e.$watchGroup($,(function(n,i){var o=w(n);L(t)&&t.call(this,o,n!==i?r:o,e),r=o}),n)}})}function k(n){return n.replace(s,e).replace(u,t)}function E(e){try{return e=C(e),p&&!j(e)?e:S(e)}catch(e){var t=Qt("interr","Can't interpolate: {0}\n{1}",c,e.toString());r(t)}}}return l.startSymbol=function(){return e},l.endSymbol=function(){return t},l}]}function tn(){this.$get=["$rootScope","$window","$q","$$q",function(e,t,n,r){var i={};function o(o,a,s,u){var c=t.setInterval,l=t.clearInterval,f=0,p=j(u)&&!u,h=(p?r:n).defer(),d=h.promise;return s=j(s)?s:0,d.then(null,null,o),d.$$intervalId=c((function(){h.notify(f++),s>0&&f>=s&&(h.resolve(f),l(d.$$intervalId),delete i[d.$$intervalId]),p||e.$apply()}),a),i[d.$$intervalId]=h,d}return o.cancel=function(e){return!(!e||!(e.$$intervalId in i))&&(i[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete i[e.$$intervalId],!0)},o}]}function nn(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a",short:"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(e){return 1===e?"one":"other"}}}}var rn=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,on={http:80,https:443,ftp:21},an=r("$location");function sn(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ce(t[n]);return t.join("/")}function un(e,t){var n=or(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=k(n.port)||on[n.protocol]||null}function cn(e,t){var n="/"!==e.charAt(0);n&&(e="/"+e);var r=or(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=se(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function ln(e,t){if(0===t.indexOf(e))return t.substr(e.length)}function fn(e){var t=e.indexOf("#");return-1==t?e:e.substr(0,t)}function pn(e){return e.replace(/(#.+)|#$/,"$1")}function hn(e,t,r){this.$$html5=!0,r=r||"",un(e,this),this.$$parse=function(e){var n=ln(t,e);if(!q(n))throw an("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);cn(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ue(this.$$search),n=this.$$hash?"#"+ce(this.$$hash):"";this.$$url=sn(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(i,o){return o&&"#"===o[0]?(this.hash(o.slice(1)),!0):((a=ln(e,i))!==n?(s=a,u=(a=ln(r,a))!==n?t+(ln("/",a)||a):e+s):(a=ln(t,i))!==n?u=t+a:t==i+"/"&&(u=t),u&&this.$$parse(u),!!u);var a,s,u}}function dn(e,t,n){un(e,this),this.$$parse=function(r){var i,o=ln(e,r)||ln(t,r);D(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",D(o)&&(e=r,this.replace())):D(i=ln(n,o))&&(i=o),cn(i,this),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;0===t.indexOf(n)&&(t=t.replace(n,""));if(i.exec(t))return e;return(r=i.exec(e))?r[1]:e}(this.$$path,i,e),this.$$compose()},this.$$compose=function(){var t=ue(this.$$search),r=this.$$hash?"#"+ce(this.$$hash):"";this.$$url=sn(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return fn(e)==fn(t)&&(this.$$parse(t),!0)}}function vn(e,t,n){this.$$html5=!0,dn.apply(this,arguments),this.$$parseLinkUrl=function(r,i){return i&&"#"===i[0]?(this.hash(i.slice(1)),!0):(e==fn(r)?o=r:(a=ln(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o);var o,a},this.$$compose=function(){var t=ue(this.$$search),r=this.$$hash?"#"+ce(this.$$hash):"";this.$$url=sn(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}var gn={$$html5:!1,$$replace:!1,absUrl:mn("$$absUrl"),url:function(e){if(D(e))return this.$$url;var t=rn.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:mn("$$protocol"),host:mn("$$host"),port:mn("$$port"),path:$n("$$path",(function(e){return"/"==(e=null!==e?e.toString():"").charAt(0)?e:"/"+e})),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(q(e)||R(e))e=e.toString(),this.$$search=se(e);else{if(!M(e))throw an("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");x(e=Y(e,{}),(function(t,n){null==t&&delete e[n]})),this.$$search=e}break;default:D(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:$n("$$hash",(function(e){return null!==e?e.toString():""})),replace:function(){return this.$$replace=!0,this}};function mn(e){return function(){return this[e]}}function $n(e,t){return function(n){return D(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function yn(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return j(t)?(e=t,this):e},this.html5Mode=function(e){return _(e)?(t.enabled=e,this):M(e)?(_(e.enabled)&&(t.enabled=e.enabled),_(e.requireBase)&&(t.requireBase=e.requireBase),_(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){var s,u,l,f,p=r.baseHref(),h=r.url();if(t.enabled){if(!p&&t.requireBase)throw an("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(f=h).substring(0,f.indexOf("/",f.indexOf("//")+2))+(p||"/"),u=i.history?hn:vn}else l=fn(h),u=dn;var d=function(e){return e.substr(0,fn(e).lastIndexOf("/")+1)}(l);(s=new u(l,d,"#"+e)).$$parseLinkUrl(h,h),s.$$state=r.state();var v=/^\s*(javascript|mailto):/i;function g(e,t,n){var i=s.url(),o=s.$$state;try{r.url(e,t,n),s.$$state=r.state()}catch(e){throw s.url(i),s.$$state=o,e}}o.on("click",(function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=c(e.target);"a"!==G(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return;var u=i.prop("href"),l=i.attr("href")||i.attr("xlink:href");M(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=or(u.animVal).href),v.test(u)||!u||i.attr("target")||e.isDefaultPrevented()||s.$$parseLinkUrl(u,l)&&(e.preventDefault(),s.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}})),pn(s.absUrl())!=pn(h)&&r.url(s.absUrl(),!0);var m=!0;return r.onUrlChange((function(e,t){D(ln(d,e))?a.location.href=e:(n.$evalAsync((function(){var r,i=s.absUrl(),o=s.$$state;s.$$parse(e),s.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,s.absUrl()===e&&(r?(s.$$parse(i),s.$$state=o,g(i,!1,o)):(m=!1,$(i,o)))})),n.$$phase||n.$digest())})),n.$watch((function(){var e=pn(r.url()),t=pn(s.absUrl()),o=r.state(),a=s.$$replace,u=e!==t||s.$$html5&&i.history&&o!==s.$$state;(m||u)&&(m=!1,n.$evalAsync((function(){var t=s.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,s.$$state,o).defaultPrevented;s.absUrl()===t&&(r?(s.$$parse(e),s.$$state=o):(u&&g(t,a,o===s.$$state?null:s.$$state),$(e,o)))}))),s.$$replace=!1})),s;function $(e,t){n.$broadcast("$locationChangeSuccess",s.absUrl(),e,s.$$state,t)}}]}function xn(){var e=!0,t=this;this.debugEnabled=function(t){return j(t)?(e=t,this):e},this.$get=["$window",function(n){return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:(r=o("debug"),function(){e&&r.apply(t,arguments)})};var r;function i(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function o(e){var t=n.console||{},r=t[e]||t.log||A,o=!1;try{o=!!r.apply}catch(e){}return o?function(){var e=[];return x(arguments,(function(t){e.push(i(t))})),r.apply(t,e)}:function(e,t){r(e,null==t?"":t)}}}]}x([vn,dn,hn],(function(e){e.prototype=Object.create(gn),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==hn||!this.$$html5)throw an("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=D(t)?null:t,this}}));var bn=r("$parse");function wn(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw bn("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Cn(e,t){if(!q(e+=""))throw bn("iseccst","Cannot convert object to primitive value! Expression: {0}",t);return e}function Sn(e,t){if(e){if(e.constructor===e)throw bn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw bn("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw bn("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw bn("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}var Tn=Function.prototype.call,kn=Function.prototype.apply,En=Function.prototype.bind;var An=Te();x({null:function(){return null},true:function(){return!0},false:function(){return!1},undefined:function(){}},(function(e,t){e.constant=e.literal=e.sharedGetter=!0,An[t]=e})),An.this=function(e){return e},An.this.sharedGetter=!0;var Nn=T(Te(),{"+":function(e,t,r,i){return r=r(e,t),i=i(e,t),j(r)?j(i)?r+i:r:j(i)?i:n},"-":function(e,t,n,r){return n=n(e,t),r=r(e,t),(j(n)?n:0)-(j(r)?r:0)},"*":function(e,t,n,r){return n(e,t)*r(e,t)},"/":function(e,t,n,r){return n(e,t)/r(e,t)},"%":function(e,t,n,r){return n(e,t)%r(e,t)},"===":function(e,t,n,r){return n(e,t)===r(e,t)},"!==":function(e,t,n,r){return n(e,t)!==r(e,t)},"==":function(e,t,n,r){return n(e,t)==r(e,t)},"!=":function(e,t,n,r){return n(e,t)!=r(e,t)},"<":function(e,t,n,r){return n(e,t)<r(e,t)},">":function(e,t,n,r){return n(e,t)>r(e,t)},"<=":function(e,t,n,r){return n(e,t)<=r(e,t)},">=":function(e,t,n,r){return n(e,t)>=r(e,t)},"&&":function(e,t,n,r){return n(e,t)&&r(e,t)},"||":function(e,t,n,r){return n(e,t)||r(e,t)},"!":function(e,t,n){return!n(e,t)},"=":!0,"|":!0}),On={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Dn=function(e){this.options=e};function jn(e){return e.constant}Dn.prototype={constructor:Dn,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(t))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 n=t+this.peek(),r=n+this.peek(2),i=Nn[t],o=Nn[n],a=Nn[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdent:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=j(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw bn("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=o(this.text.charAt(this.index));if("."==n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"==n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){for(var e=this.index;this.index<this.text.length;){var t=this.text.charAt(this.index);if(!this.isIdent(t)&&!this.isNumber(t))break;this.index++}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=On[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var Mn=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n};function qn(e,t,n,r,i){Sn(e,i),Sn(t,i);for(var o,a=n.split("."),s=0;a.length>1;s++){o=wn(a.shift(),i);var u=0===s&&t&&t[o]||e[o];u||(u={},e[o]=u),e=Sn(u,i)}return Sn(e[o=wn(a.shift(),i)],i),e[o]=r,r}Mn.ZERO=T((function(){return 0}),{sharedGetter:!0,constant:!0}),Mn.prototype={constructor:Mn,parse:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t.literal=!!t.literal,t.constant=!!t.constant,t},primary:function(){var e,t,n;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.peek().identifier&&this.peek().text in An?e=An[this.consume().text]:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(;t=this.expect("(","[",".");)"("===t.text?(e=this.functionCall(e,n),n=null):"["===t.text?(n=e,e=this.objectIndex(e)):"."===t.text?(n=e,e=this.fieldAccess(e)):this.throwError("IMPOSSIBLE");return e},throwError:function(e,t){throw bn("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},peekToken:function(){if(0===this.tokens.length)throw bn("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},consume:function(e){if(0===this.tokens.length)throw bn("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},unaryFn:function(e,t){var n=Nn[e];return T((function(e,r){return n(e,r,t)}),{constant:t.constant,inputs:[t]})},binaryFn:function(e,t,n,r){var i=Nn[t];return T((function(t,r){return i(t,r,e,n)}),{constant:e.constant&&n.constant,inputs:!r&&[e,n]})},identifier:function(){for(var e=this.consume().text;this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(");)e+=this.consume().text+this.consume().text;return function(e,t,r){var i=t.expensiveChecks,o=i?Pn:Rn,a=o[e];if(a)return a;var s=e.split("."),u=s.length;if(t.csp)a=u<6?Ln(s[0],s[1],s[2],s[3],s[4],r,i):function(e,t){var o,a=0;do{o=Ln(s[a++],s[a++],s[a++],s[a++],s[a++],r,i)(e,t),t=n,e=o}while(a<u);return o};else{var c="";i&&(c+="s = eso(s, fe);\nl = eso(l, fe);\n");var l=i;x(s,(function(e,t){wn(e,r);var n=(t?"s":'((l&&l.hasOwnProperty("'+e+'"))?l:s)')+"."+e;(i||Hn(e))&&(n="eso("+n+", fe)",l=!0),c+="if(s == null) return undefined;\ns="+n+";\n"})),c+="return s;";var f=new Function("s","l","eso","fe",c);f.toString=O(c),l&&(f=function(e,t){return function(n,r){return e(n,r,Sn,t)}}(f,r)),a=f}return a.sharedGetter=!0,a.assign=function(t,n,r){return qn(t,r,e,n,e)},o[e]=a,a}(e,this.options,this.text)},constant:function(){var e=this.consume().value;return T((function(){return e}),{constant:!0,literal:!0})},statements:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.filterChain()),!this.expect(";"))return 1===e.length?e[0]:function(t,n){for(var r,i=0,o=e.length;i<o;i++)r=e[i](t,n);return r}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},filter:function(e){var t,r,i=this.$filter(this.consume().text);if(this.peek(":"))for(t=[],r=[];this.expect(":");)t.push(this.expression());var o=[e].concat(t||[]);return T((function(o,a){var s=e(o,a);if(r){r[0]=s;for(var u=t.length;u--;)r[u+1]=t[u](o,a);return i.apply(n,r)}return i(s)}),{constant:!i.$stateful&&o.every(jn),inputs:!i.$stateful&&o})},expression:function(){return this.assignment()},assignment:function(){var e,t,n=this.ternary();return(t=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,t.index)+"] can not be assigned to",t),e=this.ternary(),T((function(t,r){return n.assign(t,e(t,r),r)}),{inputs:[n,e]})):n},ternary:function(){var e,t=this.logicalOR();if(this.expect("?")&&(e=this.assignment(),this.consume(":"))){var n=this.assignment();return T((function(r,i){return t(r,i)?e(r,i):n(r,i)}),{constant:t.constant&&e.constant&&n.constant})}return t},logicalOR:function(){for(var e,t=this.logicalAND();e=this.expect("||");)t=this.binaryFn(t,e.text,this.logicalAND(),!0);return t},logicalAND:function(){for(var e,t=this.equality();e=this.expect("&&");)t=this.binaryFn(t,e.text,this.equality(),!0);return t},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t=this.binaryFn(t,e.text,this.relational());return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t=this.binaryFn(t,e.text,this.additive());return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t=this.binaryFn(t,e.text,this.multiplicative());return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t=this.binaryFn(t,e.text,this.unary());return t},unary:function(){var e;return this.expect("+")?this.primary():(e=this.expect("-"))?this.binaryFn(Mn.ZERO,e.text,this.unary()):(e=this.expect("!"))?this.unaryFn(e.text,this.unary()):this.primary()},fieldAccess:function(e){var t=this.identifier();return T((function(r,i,o){var a=o||e(r,i);return null==a?n:t(a)}),{assign:function(n,r,i){var o=e(n,i);return o||e.assign(n,o={},i),t.assign(o,r)}})},objectIndex:function(e){var t=this.text,r=this.expression();return this.consume("]"),T((function(i,o){var a=e(i,o),s=Cn(r(i,o),t);return wn(s,t),a?Sn(a[s],t):n}),{assign:function(n,i,o){var a=wn(Cn(r(n,o),t),t),s=Sn(e(n,o),t);return s||e.assign(n,s={},o),s[a]=i}})},functionCall:function(e,t){var r=[];if(")"!==this.peekToken().text)do{r.push(this.expression())}while(this.expect(","));this.consume(")");var i=this.text,o=r.length?[]:null;return function(a,s){var u=t?t(a,s):j(t)?n:a,c=e(a,s,u)||A;if(o)for(var l=r.length;l--;)o[l]=Sn(r[l](a,s),i);Sn(u,i),function(e,t){if(e){if(e.constructor===e)throw bn("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===Tn||e===kn||e===En)throw bn("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}(c,i);var f=c.apply?c.apply(u,o):c(o[0],o[1],o[2],o[3],o[4]);return o&&(o.length=0),Sn(f,i)}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),T((function(t,n){for(var r=[],i=0,o=e.length;i<o;i++)r.push(e[i](t,n));return r}),{literal:!0,constant:e.every(jn),inputs:e})},object:function(){var e=[],t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;var n=this.consume();n.constant?e.push(n.value):n.identifier?e.push(n.text):this.throwError("invalid key",n),this.consume(":"),t.push(this.expression())}while(this.expect(","));return this.consume("}"),T((function(n,r){for(var i={},o=0,a=t.length;o<a;o++)i[e[o]]=t[o](n,r);return i}),{literal:!0,constant:t.every(jn),inputs:t})}};var Rn=Te(),Pn=Te();function Hn(e){return"constructor"==e}function Ln(e,t,r,i,o,a,s){wn(e,a),wn(t,a),wn(r,a),wn(i,a),wn(o,a);var u=function(e){return Sn(e,a)},c=s||Hn(e)?u:N,l=s||Hn(t)?u:N,f=s||Hn(r)?u:N,p=s||Hn(i)?u:N,h=s||Hn(o)?u:N;return function(a,s){var u=s&&s.hasOwnProperty(e)?s:a;return null==u?u:(u=c(u[e]),t?null==u?n:(u=l(u[t]),r?null==u?n:(u=f(u[r]),i?null==u?n:(u=p(u[i]),o?null==u?n:u=h(u[o]):u):u):u):u)}}var Fn=Object.prototype.valueOf;function Vn(e){return L(e.valueOf)?e.valueOf():Fn.call(e)}function In(){var e=Te(),t=Te();this.$get=["$filter","$sniffer",function(n,r){var i={csp:r.csp,expensiveChecks:!1},o={csp:r.csp,expensiveChecks:!0};return function(r,a,s){var h,d,v;switch(typeof r){case"string":v=r=r.trim();var g=s?t:e;if(!(h=g[v])){":"===r.charAt(0)&&":"===r.charAt(1)&&(d=!0,r=r.substring(2));var m=s?o:i,$=new Dn(m);(h=new Mn($,n,m).parse(r)).constant?h.$$watchDelegate=f:d?(h=function(e){var t=e;return e.sharedGetter&&((t=function(t,n){return e(t,n)}).literal=e.literal,t.constant=e.constant,t.assign=e.assign),t}(h)).$$watchDelegate=h.literal?l:c:h.inputs&&(h.$$watchDelegate=u),g[v]=h}return p(h,a);case"function":return p(r,a);default:return p(A,a)}};function a(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n];i.constant||(i.inputs?a(i.inputs,t):-1===t.indexOf(i)&&t.push(i))}return t}function s(e,t){return null==e||null==t?e===t:("object"!=typeof e||"object"!=typeof(e=Vn(e)))&&(e===t||e!=e&&t!=t)}function u(e,t,n,r){var i,o=r.$$inputs||(r.$$inputs=a(r.inputs,[]));if(1===o.length){var u=s;return o=o[0],e.$watch((function(e){var t=o(e);return s(t,u)||(i=r(e),u=t&&Vn(t)),i}),t,n)}for(var c=[],l=0,f=o.length;l<f;l++)c[l]=s;return e.$watch((function(e){for(var t=!1,n=0,a=o.length;n<a;n++){var u=o[n](e);(t||(t=!s(u,c[n])))&&(c[n]=u&&Vn(u))}return t&&(i=r(e)),i}),t,n)}function c(e,t,n,r){var i,o;return i=e.$watch((function(e){return r(e)}),(function(e,n,r){o=e,L(t)&&t.apply(this,arguments),j(e)&&r.$$postDigest((function(){j(o)&&i()}))}),n)}function l(e,t,n,r){var i,o;return i=e.$watch((function(e){return r(e)}),(function(e,n,r){o=e,L(t)&&t.call(this,e,n,r),a(e)&&r.$$postDigest((function(){a(o)&&i()}))}),n);function a(e){var t=!0;return x(e,(function(e){j(e)||(t=!1)})),t}}function f(e,t,n,r){var i;return i=e.$watch((function(e){return r(e)}),(function(e,n,r){L(t)&&t.apply(this,arguments),i()}),n)}function p(e,t){if(!t)return e;var n=e.$$watchDelegate,r=n!==l&&n!==c?function(n,r){var i=e(n,r);return t(i,n,r)}:function(n,r){var i=e(n,r),o=t(i,n,r);return j(i)?o:i};return e.$$watchDelegate&&e.$$watchDelegate!==u?r.$$watchDelegate=e.$$watchDelegate:t.$stateful||(r.$$watchDelegate=u,r.inputs=[e]),r}}]}function _n(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return Bn((function(t){e.$evalAsync(t)}),t)}]}function Un(){this.$get=["$browser","$exceptionHandler",function(e,t){return Bn((function(t){e.defer(t)}),t)}]}function Bn(e,t){var i=r("$q",TypeError);function o(){this.$$state={status:0}}function a(e,t){return function(n){t.call(e,n)}}function s(r){!r.processScheduled&&r.pending&&(r.processScheduled=!0,e((function(){!function(e){var r,i,o;o=e.pending,e.processScheduled=!1,e.pending=n;for(var a=0,s=o.length;a<s;++a){i=o[a][0],r=o[a][e.status];try{L(r)?i.resolve(r(e.value)):1===e.status?i.resolve(e.value):i.reject(e.value)}catch(e){i.reject(e),t(e)}}}(r)})))}function u(){this.promise=new o,this.resolve=a(this,this.resolve),this.reject=a(this,this.reject),this.notify=a(this,this.notify)}o.prototype={then:function(e,t,n){var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&s(this.$$state),r.promise},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then((function(t){return l(t,!0,e)}),(function(t){return l(t,!1,e)}),t)}},u.prototype={resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(i("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){var n,r;r=function(e,t,n){var r=!1;function i(t){return function(n){r||(r=!0,t.call(e,n))}}return[i(t),i(n)]}(this,this.$$resolve,this.$$reject);try{(M(e)||L(e))&&(n=e&&e.then),L(n)?(this.promise.$$state.status=-1,n.call(e,r[0],r[1],this.notify)):(this.promise.$$state.value=e,this.promise.$$state.status=1,s(this.promise.$$state))}catch(e){r[1](e),t(e)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,s(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e((function(){for(var e,i,o=0,a=r.length;o<a;o++){i=r[o][0],e=r[o][3];try{i.notify(L(e)?e(n):n)}catch(e){t(e)}}}))}};var c=function(e,t){var n=new u;return t?n.resolve(e):n.reject(e),n.promise},l=function(e,t,n){var r=null;try{L(n)&&(r=n())}catch(e){return c(e,!1)}return U(r)?r.then((function(){return c(e,t)}),(function(e){return c(e,!1)})):c(e,t)},f=function(e,t,n,r){var i=new u;return i.resolve(e),i.promise.then(t,n,r)};var p=function e(t){if(!L(t))throw i("norslvr","Expected resolverFn, got '{0}'",t);if(!(this instanceof e))return new e(t);var n=new u;return t((function(e){n.resolve(e)}),(function(e){n.reject(e)})),n.promise};return p.defer=function(){return new u},p.reject=function(e){var t=new u;return t.reject(e),t.promise},p.when=f,p.all=function(e){var t=new u,n=0,r=H(e)?[]:{};return x(e,(function(e,i){n++,f(e).then((function(e){r.hasOwnProperty(i)||(r[i]=e,--n||t.resolve(r))}),(function(e){r.hasOwnProperty(i)||t.reject(e)}))})),0===n&&t.resolve(r),t.promise},p}function Wn(){this.$get=["$window","$timeout",function(e,t){var n,r=e.requestAnimationFrame||e.webkitRequestAnimationFrame,i=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,o=!!r,a=o?function(e){var t=r(e);return function(){i(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};l.supported=o;var s=0,u=[];return l;function c(){for(var e=0;e<u.length;e++){var t=u[e];t&&(u[e]=null,t())}s=u.length=0}function l(e){var t=u.length;return s++,u.push(e),0===t&&(n=a(c)),function(){t>=0&&(u[t]=null,t=null,0==--s&&n&&(n(),n=null,u.length=0))}}}]}function zn(){var e=10,t=r("$rootScope"),n=null,i=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,o,s,u){function c(e){e.currentScope.$$destroyed=!0}function l(){this.$id=C(),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.$$isolateBindings=null}l.prototype={constructor:l,$new:function(e,t){var n;return t=t||this,e?(n=new l).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$id=C(),this.$$ChildScope=null}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!=this)&&n.$on("$destroy",c),n},$watch:function(e,t,r){var i=s(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,r,i);var o=this.$$watchers,a={fn:t,last:$,get:i,exp:e,eq:!!r};return n=null,L(t)||(a.fn=A),o||(o=this.$$watchers=[]),o.unshift(a),function(){X(o,a),n=null}},$watchGroup:function(e,t){var n=new Array(e.length),r=new Array(e.length),i=[],o=this,a=!1,s=!0;if(!e.length){var u=!0;return o.$evalAsync((function(){u&&t(r,r,o)})),function(){u=!1}}if(1===e.length)return this.$watch(e[0],(function(e,i,o){r[0]=e,n[0]=i,t(r,e===i?r:n,o)}));function c(){a=!1,s?(s=!1,t(r,r,o)):t(r,n,o)}return x(e,(function(e,t){var s=o.$watch(e,(function(e,i){r[t]=e,n[t]=i,a||(a=!0,o.$evalAsync(c))}));i.push(s)})),function(){for(;i.length;)i.shift()()}},$watchCollection:function(e,t){v.$stateful=!0;var n,r,i,o=this,u=t.length>1,c=0,l=s(e,v),f=[],p={},h=!0,d=0;function v(e){var t,i,o,a;if(!D(n=e)){if(M(n))if(y(n)){r!==f&&(d=(r=f).length=0,c++),t=n.length,d!==t&&(c++,r.length=d=t);for(var s=0;s<t;s++)a=r[s],o=n[s],a!=a&&o!=o||a===o||(c++,r[s]=o)}else{for(i in r!==p&&(r=p={},d=0,c++),t=0,n)n.hasOwnProperty(i)&&(t++,o=n[i],a=r[i],i in r?a!=a&&o!=o||a===o||(c++,r[i]=o):(d++,r[i]=o,c++));if(d>t)for(i in c++,r)n.hasOwnProperty(i)||(d--,delete r[i])}else r!==n&&(r=n,c++);return c}}return this.$watch(l,(function(){if(h?(h=!1,t(n,n,o)):t(n,i,o),u)if(M(n))if(y(n)){i=new Array(n.length);for(var e=0;e<n.length;e++)i[e]=n[e]}else for(var r in i={},n)a.call(n,r)&&(i[r]=n[r]);else i=n}))},$digest:function(){var r,a,s,c,l,d,m,y,x,w,C=e,S=this,T=[];v("$digest"),u.$$checkUrlChange(),this===f&&null!==i&&(u.defer.cancel(i),b()),n=null;do{for(d=!1,y=S;p.length;){try{(w=p.shift()).scope.$eval(w.expression,w.locals)}catch(e){o(e)}n=null}e:do{if(c=y.$$watchers)for(l=c.length;l--;)try{if(r=c[l])if((a=r.get(y))===(s=r.last)||(r.eq?K(a,s):"number"==typeof a&&"number"==typeof s&&isNaN(a)&&isNaN(s))){if(r===n){d=!1;break e}}else d=!0,n=r,r.last=r.eq?Y(a,null):a,r.fn(a,s===$?a:s,y),C<5&&(T[x=4-C]||(T[x]=[]),T[x].push({msg:L(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:a,oldVal:s}))}catch(e){o(e)}if(!(m=y.$$childHead||y!==S&&y.$$nextSibling))for(;y!==S&&!(m=y.$$nextSibling);)y=y.$parent}while(y=m);if((d||p.length)&&!C--)throw g(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,T)}while(d||p.length);for(g();h.length;)try{h.shift()()}catch(e){o(e)}},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;if(this.$broadcast("$destroy"),this.$$destroyed=!0,this!==f){for(var t in this.$$listenerCount)m(this,this.$$listenerCount[t],t);e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e.$$childTail==this&&(e.$$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=A,this.$on=this.$watch=this.$watchGroup=function(){return A},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}}},$eval:function(e,t){return s(e)(this,t)},$evalAsync:function(e,t){f.$$phase||p.length||u.defer((function(){p.length&&f.$digest()})),p.push({scope:this,expression:e,locals:t})},$$postDigest:function(e){h.push(e)},$apply:function(e){try{return v("$apply"),this.$eval(e)}catch(e){o(e)}finally{g();try{f.$digest()}catch(e){throw o(e),e}}},$applyAsync:function(e){var t=this;e&&d.push((function(){t.$eval(e)})),null===i&&(i=u.defer((function(){f.$apply(b)})))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(n[r]=null,m(i,1,e))}},$emit:function(e,t){var n,r,i,a=[],s=this,u=!1,c={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=Q([c],arguments,1);do{for(n=s.$$listeners[e]||a,c.currentScope=s,r=0,i=n.length;r<i;r++)if(n[r])try{n[r].apply(null,l)}catch(e){o(e)}else n.splice(r,1),r--,i--;if(u)return c.currentScope=null,c;s=s.$parent}while(s);return c.currentScope=null,c},$broadcast:function(e,t){var n=this,r=n,i=n,a={name:e,targetScope:n,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return a;for(var s,u,c,l=Q([a],arguments,1);r=i;){for(a.currentScope=r,u=0,c=(s=r.$$listeners[e]||[]).length;u<c;u++)if(s[u])try{s[u].apply(null,l)}catch(e){o(e)}else s.splice(u,1),u--,c--;if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return a.currentScope=null,a}};var f=new l,p=f.$$asyncQueue=[],h=f.$$postDigestQueue=[],d=f.$$applyAsyncQueue=[];return f;function v(e){if(f.$$phase)throw t("inprog","{0} already in progress",f.$$phase);f.$$phase=e}function g(){f.$$phase=null}function m(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function $(){}function b(){for(;d.length;)try{d.shift()()}catch(e){o(e)}i=null}}]}function Gn(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return j(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return j(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return""===(i=or(n).href)||i.match(o)?n:"unsafe:"+i}}}var Xn=r("$sce"),Yn={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Jn(e){var t=[];return j(e)&&x(e,(function(e){t.push(function(e){if("self"===e)return e;if(q(e)){if(e.indexOf("***")>-1)throw Xn("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=W(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+e+"$")}if(F(e))return new RegExp("^"+e.source+"$");throw Xn("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))})),t}function Kn(){this.SCE_CONTEXTS=Yn;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Jn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Jn(e)),t},this.$get=["$injector",function(r){var i=function(e){throw Xn("unsafe","Attempting to use an unsafe value in a safe context.")};function o(e,t){return"self"===e?ar(t):!!e.exec(t.href)}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}r.has("$sanitize")&&(i=r.get("$sanitize"));var s=a(),u={};return u[Yn.HTML]=a(s),u[Yn.CSS]=a(s),u[Yn.URL]=a(s),u[Yn.JS]=a(s),u[Yn.RESOURCE_URL]=a(u[Yn.URL]),{trustAs:function(e,t){var r=u.hasOwnProperty(e)?u[e]:null;if(!r)throw Xn("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||t===n||""===t)return t;if("string"!=typeof t)throw Xn("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new r(t)},getTrusted:function(r,a){if(null===a||a===n||""===a)return a;var s=u.hasOwnProperty(r)?u[r]:null;if(s&&a instanceof s)return a.$$unwrapTrustedValue();if(r===Yn.RESOURCE_URL){if(function(n){var r,i,a=or(n.toString()),s=!1;for(r=0,i=e.length;r<i;r++)if(o(e[r],a)){s=!0;break}if(s)for(r=0,i=t.length;r<i;r++)if(o(t[r],a)){s=!1;break}return s}(a))return a;throw Xn("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",a.toString())}if(r===Yn.HTML)return i(a);throw Xn("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof s?e.$$unwrapTrustedValue():e}}}]}function Zn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&u<8)throw Xn("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.");var r=J(Yn);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=N),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,(function(t){return r.getTrusted(e,t)}))};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return x(Yn,(function(e,t){var n=o(t);r[Le("parse_as_"+n)]=function(t){return i(e,t)},r[Le("get_trusted_"+n)]=function(t){return a(e,t)},r[Le("trust_as_"+n)]=function(t){return s(e,t)}})),r}]}function Qn(){this.$get=["$window","$document",function(e,t){var n,r,i={},a=k((/android (\d+)/.exec(o((e.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((e.navigator||{}).userAgent),c=t[0]||{},l=/^(Moz|webkit|ms)(?=[A-Z])/,f=c.body&&c.body.style,p=!1,h=!1;if(f){for(var d in f)if(r=l.exec(d)){n=(n=r[0]).substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in f&&"webkit"),p=!(!("transition"in f)&&!(n+"Transition"in f)),h=!(!("animation"in f)&&!(n+"Animation"in f)),!a||p&&h||(p=q(c.body.style.webkitTransition),h=q(c.body.style.webkitAnimation))}return{history:!(!e.history||!e.history.pushState||a<4||s),hasEvent:function(e){if("input"===e&&u<=11)return!1;if(D(i[e])){var t=c.createElement("div");i[e]="on"+e in t}return i[e]},csp:Z(),vendorPrefix:n,transitions:p,animations:h,android:a}}]}Ot=r("$compile");function er(){this.$get=["$templateCache","$http","$q","$sce",function(e,t,n,r){function i(o,a){i.totalPendingRequests++,q(o)&&e.get(o)||(o=r.getTrustedResourceUrl(o));var s=t.defaults&&t.defaults.transformResponse;H(s)?s=s.filter((function(e){return e!==Wt})):s===Wt&&(s=null);var u={cache:e,transformResponse:s};return t.get(o,u).finally((function(){i.totalPendingRequests--})).then((function(e){return e.data}),(function(e){if(!a)throw Ot("tpload","Failed to load template: {0}",o);return n.reject(e)}))}return i.totalPendingRequests=0,i}]}function tr(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={findBindings:function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return x(r,(function(e){var r=m.element(e).data("$binding");r&&x(r,(function(r){n?new RegExp("(^|\\s)"+W(t)+"(\\s|\\||$)").test(r)&&i.push(e):-1!=r.indexOf(t)&&i.push(e)}))})),i},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o="["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]',a=e.querySelectorAll(o);if(a.length)return a}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}};return r}]}function nr(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){var o={};function a(a,s,u){var c,l=j(u)&&!u,f=(l?r:n).defer(),p=f.promise;return c=t.defer((function(){try{f.resolve(a())}catch(e){f.reject(e),i(e)}finally{delete o[p.$$timeoutId]}l||e.$apply()}),s),p.$$timeoutId=c,o[c]=f,p}return a.cancel=function(e){return!(!e||!(e.$$timeoutId in o))&&(o[e.$$timeoutId].reject("canceled"),delete o[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},a}]}var rr=t.createElement("a"),ir=or(e.location.href);function or(e){var t=e;return u&&(rr.setAttribute("href",t),t=rr.href),rr.setAttribute("href",t),{href:rr.href,protocol:rr.protocol?rr.protocol.replace(/:$/,""):"",host:rr.host,search:rr.search?rr.search.replace(/^\?/,""):"",hash:rr.hash?rr.hash.replace(/^#/,""):"",hostname:rr.hostname,port:rr.port,pathname:"/"===rr.pathname.charAt(0)?rr.pathname:"/"+rr.pathname}}function ar(e){var t=q(e)?or(e):e;return t.protocol===ir.protocol&&t.host===ir.host}function sr(){this.$get=O(e)}function ur(e){var t="Filter";function n(r,i){if(M(r)){var o={};return x(r,(function(e,t){o[t]=n(t,e)})),o}return e.factory(r+t,i)}this.register=n,this.$get=["$injector",function(e){return function(n){return e.get(n+t)}}],n("currency",fr),n("date",Cr),n("filter",cr),n("json",Sr),n("limitTo",Er),n("lowercase",Tr),n("number",pr),n("orderBy",Ar),n("uppercase",kr)}function cr(){return function(e,t,n){if(!H(e))return e;var r,i;switch(null!==t?typeof t:"null"){case"function":r=t;break;case"boolean":case"null":case"number":case"string":i=!0;case"object":r=function(e,t,n){var r=M(e)&&"$"in e;!0===t?t=K:L(t)||(t=function(e,t){return!D(e)&&(null===e||null===t?e===t:!M(e)&&!M(t)&&(e=o(""+e),t=o(""+t),-1!==e.indexOf(t)))});return function(i){return r&&!M(i)?lr(i,e.$,t,!1):lr(i,e,t,n)}}(t,n,i);break;default:return e}return e.filter(r)}}function lr(e,t,n,r,i){var o=null!==e?typeof e:"null",a=null!==t?typeof t:"null";if("string"===a&&"!"===t.charAt(0))return!lr(e,t.substring(1),n,r);if(H(e))return e.some((function(e){return lr(e,t,n,r)}));switch(o){case"object":var s;if(r){for(s in e)if("$"!==s.charAt(0)&&lr(e[s],t,n,!0))return!0;return!i&&lr(e,t,n,!1)}if("object"===a){for(s in t){var u=t[s];if(!L(u)&&!D(u)){var c="$"===s;if(!lr(c?e:e[s],u,n,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function fr(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return D(n)&&(n=t.CURRENCY_SYM),D(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:hr(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function pr(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:hr(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}ur.$inject=["$provide"],fr.$inject=["$locale"],pr.$inject=["$locale"];function hr(e,t,n,r,i){if(!isFinite(e)||M(e))return"";var o=e<0,a=(e=Math.abs(e))+"",s="",u=[],c=!1;if(-1!==a.indexOf("e")){var l=a.match(/([\d\.]+)e(-?)(\d+)/);l&&"-"==l[2]&&l[3]>i+1?e=0:(s=a,c=!0)}if(c)i>0&&e<1&&(s=e.toFixed(i),e=parseFloat(s));else{var f=(a.split(".")[1]||"").length;D(i)&&(i=Math.min(Math.max(t.minFrac,f),t.maxFrac));var p=(""+(e=+(Math.round(+(e.toString()+"e"+i)).toString()+"e"+-i))).split("."),h=p[0];p=p[1]||"";var d,v=0,g=t.lgSize,m=t.gSize;if(h.length>=g+m)for(v=h.length-g,d=0;d<v;d++)(v-d)%m==0&&0!==d&&(s+=n),s+=h.charAt(d);for(d=v;d<h.length;d++)(h.length-d)%g==0&&0!==d&&(s+=n),s+=h.charAt(d);for(;p.length<i;)p+="0";i&&"0"!==i&&(s+=r+p.substr(0,i))}return 0===e&&(o=!1),u.push(o?t.negPre:t.posPre,s,o?t.negSuf:t.posSuf),u.join("")}function dr(e,t,n){var r="";for(e<0&&(r="-",e=-e),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function vr(e,t,n,r){return n=n||0,function(i){var o=i["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),dr(o,t,r)}}function gr(e,t){return function(n,r){var i=n["get"+e]();return r[s(t?"SHORT"+e:e)][i]}}function mr(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function $r(e){return function(t){var n,r=mr(t.getFullYear()),i=+(n=t,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+r;return dr(1+Math.round(i/6048e5),e)}}function yr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}var xr={yyyy:vr("FullYear",4),yy:vr("FullYear",2,0,!0),y:vr("FullYear",1),MMMM:gr("Month"),MMM:gr("Month",!0),MM:vr("Month",2,1),M:vr("Month",1,1),dd:vr("Date",2),d:vr("Date",1),HH:vr("Hours",2),H:vr("Hours",1),hh:vr("Hours",2,-12),h:vr("Hours",1,-12),mm:vr("Minutes",2),m:vr("Minutes",1),ss:vr("Seconds",2),s:vr("Seconds",1),sss:vr("Milliseconds",3),EEEE:gr("Day"),EEE:gr("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e){var t=-1*e.getTimezoneOffset(),n=t>=0?"+":"";return n+=dr(Math[t>0?"floor":"ceil"](t/60),2)+dr(Math.abs(t%60),2)},ww:$r(2),w:$r(1),G:yr,GG:yr,GGG:yr,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},br=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,wr=/^\-?\d+$/;function Cr(e){var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var o,a,s="",u=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,q(n)&&(n=wr.test(n)?k(n):function(e){var n;if(n=e.match(t)){var r=new Date(0),i=0,o=0,a=n[8]?r.setUTCFullYear:r.setFullYear,s=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=k(n[9]+n[10]),o=k(n[9]+n[11])),a.call(r,k(n[1]),k(n[2])-1,k(n[3]));var u=k(n[4]||0)-i,c=k(n[5]||0)-o,l=k(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(r,u,c,l,f),r}return e}(n)),R(n)&&(n=new Date(n)),!P(n))return n;for(;r;)(a=br.exec(r))?r=(u=Q(u,a,1)).pop():(u.push(r),r=null);return i&&"UTC"===i&&(n=new Date(n.getTime())).setMinutes(n.getMinutes()+n.getTimezoneOffset()),x(u,(function(t){s+=(o=xr[t])?o(n,e.DATETIME_FORMATS):t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function Sr(){return function(e,t){return D(t)&&(t=2),re(e,t)}}Cr.$inject=["$locale"];var Tr=O(o),kr=O(s);function Er(){return function(e,t){return R(e)&&(e=e.toString()),H(e)||q(e)?(t=Math.abs(Number(t))===1/0?Number(t):k(t))?t>0?e.slice(0,t):e.slice(t):q(e)?"":[]:e}}function Ar(e){return function(t,n,r){return y(t)?(0===(n=H(n)?n:[n]).length&&(n=["+"]),n=n.map((function(t){var n=!1,r=t||N;if(q(t)){if("+"!=t.charAt(0)&&"-"!=t.charAt(0)||(n="-"==t.charAt(0),t=t.substring(1)),""===t)return i(s,n);if((r=e(t)).constant){var o=r();return i((function(e,t){return s(e[o],t[o])}),n)}}return i((function(e,t){return s(r(e),r(t))}),n)})),p.call(t).sort(i((function(e,t){for(var r=0;r<n.length;r++){var i=n[r](e,t);if(0!==i)return i}return 0}),r))):t;function i(e,t){return t?function(t,n){return e(n,t)}:e}function o(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function a(e){return null===e?"null":"function"==typeof e.valueOf&&o(e=e.valueOf())||"function"==typeof e.toString&&o(e=e.toString())?e:""}function s(e,t){var n=typeof e,r=typeof t;return n===r&&"object"===n&&(e=a(e),t=a(t)),n===r?("string"===n&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):n<r?-1:1}}}function Nr(e){return L(e)&&(e={link:e}),e.restrict=e.restrict||"AC",O(e)}Ar.$inject=["$parse"];var Or=O({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref&&!t.name)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===v.call(t.prop("href"))?"xlink:href":"href";t.on("click",(function(e){t.attr(n)||e.preventDefault()}))}}}}),Dr={};x(ct,(function(e,t){if("multiple"!=e){var n=Mt("ng-"+t);Dr[n]=function(){return{restrict:"A",priority:100,link:function(e,r,i){e.$watch(i[n],(function(e){i.$set(t,!!e)}))}}}}})),x(ft,(function(e,t){Dr[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"==r.ngPattern.charAt(0)){var o=r.ngPattern.match(i);if(o)return void r.$set("ngPattern",new RegExp(o[1],o[2]))}e.$watch(r[t],(function(e){r.$set(t,e)}))}}}})),x(["src","srcset","href"],(function(e){var t=Mt("ng-"+e);Dr[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===v.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,(function(t){t?(i.$set(a,t),u&&o&&r.prop(o,i[a])):"href"===e&&i.$set(a,null)}))}}}}));var jr={$addControl:A,$$renameControl:function(e,t){e.$name=t},$removeControl:A,$setValidity:A,$setDirty:A,$setPristine:A,$setSubmitted:A},Mr="ng-submitted";function qr(e,t,r,i,o){var a=this,s=[],u=a.$$parentForm=e.parent().controller("form")||jr;a.$error={},a.$$success={},a.$pending=n,a.$name=o(t.name||t.ngForm||"")(r),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,u.$addControl(a),a.$rollbackViewValue=function(){x(s,(function(e){e.$rollbackViewValue()}))},a.$commitViewValue=function(){x(s,(function(e){e.$commitViewValue()}))},a.$addControl=function(e){we(e.$name,"input"),s.push(e),e.$name&&(a[e.$name]=e)},a.$$renameControl=function(e,t){var n=e.$name;a[n]===e&&delete a[n],a[t]=e,e.$name=t},a.$removeControl=function(e){e.$name&&a[e.$name]===e&&delete a[e.$name],x(a.$pending,(function(t,n){a.$setValidity(n,null,e)})),x(a.$error,(function(t,n){a.$setValidity(n,null,e)})),x(a.$$success,(function(t,n){a.$setValidity(n,null,e)})),X(s,e)},ji({ctrl:this,$element:e,set:function(e,t,n){var r=e[t];r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(X(r,n),0===r.length&&delete e[t])},parentForm:u,$animate:i}),a.$setDirty=function(){i.removeClass(e,wi),i.addClass(e,Ci),a.$dirty=!0,a.$pristine=!1,u.$setDirty()},a.$setPristine=function(){i.setClass(e,wi,Ci+" "+Mr),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,x(s,(function(e){e.$setPristine()}))},a.$setUntouched=function(){x(s,(function(e){e.$setUntouched()}))},a.$setSubmitted=function(){i.addClass(e,Mr),a.$submitted=!0,u.$setSubmitted()}}qr.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Rr=function(e){return["$timeout",function(t){return{name:"form",restrict:e?"EAC":"E",controller:qr,compile:function(r,i){r.addClass(wi).addClass(xi);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,r,i,a){if(!("action"in i)){var s=function(t){e.$apply((function(){a.$commitViewValue(),a.$setSubmitted()})),t.preventDefault()};je(r[0],"submit",s),r.on("$destroy",(function(){t((function(){Me(r[0],"submit",s)}),0,!1)}))}var u=a.$$parentForm;o&&(qn(e,null,a.$name,a,a.$name),i.$observe(o,(function(t){a.$name!==t&&(qn(e,null,a.$name,n,a.$name),u.$$renameControl(a,t),qn(e,null,a.$name,a,a.$name))}))),r.on("$destroy",(function(){u.$removeControl(a),o&&qn(e,null,i[o],n,a.$name),T(a,jr)}))}}}}}]},Pr=Rr(),Hr=Rr(!0),Lr=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Fr=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Vr=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Ir=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,_r=/^(\d{4})-(\d{2})-(\d{2})$/,Ur=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Br=/^(\d{4})-W(\d\d)$/,Wr=/^(\d{4})-(\d\d)$/,zr=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Gr={text:function(e,t,n,r,i,o){Yr(e,t,n,r,i,o),Xr(r)},date:Kr("date",_r,Jr(_r,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Kr("datetimelocal",Ur,Jr(Ur,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Kr("time",zr,Jr(zr,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Kr("week",Br,(function(e,t){if(P(e))return e;if(q(e)){Br.lastIndex=0;var n=Br.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,c=mr(r),l=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,c.getDate()+l,o,a,s,u)}}return NaN}),"yyyy-Www"),month:Kr("month",Wr,Jr(Wr,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,r,i,o,a){if(Zr(e,t,r,i),Yr(e,t,r,i,o,a),i.$$parserName="number",i.$parsers.push((function(e){return i.$isEmpty(e)?null:Ir.test(e)?parseFloat(e):n})),i.$formatters.push((function(e){if(!i.$isEmpty(e)){if(!R(e))throw Ei("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e})),j(r.min)||r.ngMin){var s;i.$validators.min=function(e){return i.$isEmpty(e)||D(s)||e>=s},r.$observe("min",(function(e){j(e)&&!R(e)&&(e=parseFloat(e,10)),s=R(e)&&!isNaN(e)?e:n,i.$validate()}))}if(j(r.max)||r.ngMax){var u;i.$validators.max=function(e){return i.$isEmpty(e)||D(u)||e<=u},r.$observe("max",(function(e){j(e)&&!R(e)&&(e=parseFloat(e,10)),u=R(e)&&!isNaN(e)?e:n,i.$validate()}))}},url:function(e,t,n,r,i,o){Yr(e,t,n,r,i,o),Xr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Fr.test(n)}},email:function(e,t,n,r,i,o){Yr(e,t,n,r,i,o),Xr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Vr.test(n)}},radio:function(e,t,n,r){D(n.name)&&t.attr("name",C());t.on("click",(function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)})),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)},checkbox:function(e,t,n,r,i,o,a,s){var u=Qr(s,e,"ngTrueValue",n.ngTrueValue,!0),c=Qr(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("click",(function(e){r.$setViewValue(t[0].checked,e&&e.type)})),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push((function(e){return K(e,u)})),r.$parsers.push((function(e){return e?u:c}))},hidden:A,button:A,submit:A,reset:A,file:A};function Xr(e){e.$formatters.push((function(t){return e.$isEmpty(t)?t:t.toString()}))}function Yr(e,t,n,r,i,a){var s=o(t[0].type);if(!i.android){var u=!1;t.on("compositionstart",(function(e){u=!0})),t.on("compositionend",(function(){u=!1,c()}))}var c=function(e){if(l&&(a.defer.cancel(l),l=null),!u){var i=t.val(),o=e&&e.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(i=B(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,o)}};if(i.hasEvent("input"))t.on("input",c);else{var l,f=function(e,t,n){l||(l=a.defer((function(){l=null,t&&t.value===n||c(e)})))};t.on("keydown",(function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||f(e,this,this.value)})),i.hasEvent("paste")&&t.on("paste cut",f)}t.on("change",c),r.$render=function(){t.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function Jr(e,t){return function(n,r){var i,o;if(P(n))return n;if(q(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Lr.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),o=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},x(i,(function(e,n){n<t.length&&(o[t[n]]=+e)})),new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0)}return NaN}}function Kr(e,t,r,i){return function(o,a,s,u,c,l,f){Zr(o,a,s,u),Yr(0,a,s,u,c,l);var p,h,d,v=u&&u.$options&&u.$options.timezone;(u.$$parserName=e,u.$parsers.push((function(e){if(u.$isEmpty(e))return null;if(t.test(e)){var i=r(e,p);return"UTC"===v&&i.setMinutes(i.getMinutes()-i.getTimezoneOffset()),i}return n})),u.$formatters.push((function(e){if(e&&!P(e))throw Ei("datefmt","Expected `{0}` to be a date",e);if(g(e)){if((p=e)&&"UTC"===v){var t=6e4*p.getTimezoneOffset();p=new Date(p.getTime()+t)}return f("date")(e,i,v)}return p=null,""})),j(s.min)||s.ngMin)&&(u.$validators.min=function(e){return!g(e)||D(h)||r(e)>=h},s.$observe("min",(function(e){h=m(e),u.$validate()})));(j(s.max)||s.ngMax)&&(u.$validators.max=function(e){return!g(e)||D(d)||r(e)<=d},s.$observe("max",(function(e){d=m(e),u.$validate()})));function g(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function m(e){return j(e)?P(e)?e:r(e):n}}}function Zr(e,t,r,i){var o=t[0];(i.$$hasNativeValidators=M(o.validity))&&i.$parsers.push((function(e){var r=t.prop("validity")||{};return r.badInput&&!r.typeMismatch?n:e}))}function Qr(e,t,n,r,i){var o;if(j(r)){if(!(o=e(r)).constant)throw Ei("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}var ei=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,a,s,u){u[0]&&(Gr[o(s.type)]||Gr.text)(i,a,s,u[0],t,e,n,r)}}}}],ti=/^(true|false|\d+)$/,ni=function(){return{restrict:"A",priority:100,compile:function(e,t){return ti.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,(function(e){n.$set("value",e)}))}}}},ri=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,r,i){e.$$addBindingInfo(r,i.ngBind),r=r[0],t.$watch(i.ngBind,(function(e){r.textContent=e===n?"":e}))}}}}],ii=["$interpolate","$compile",function(e,t){return{compile:function(r){return t.$$addBindingClass(r),function(r,i,o){var a=e(i.attr(o.$attr.ngBindTemplate));t.$$addBindingInfo(i,a.expressions),i=i[0],o.$observe("ngBindTemplate",(function(e){i.textContent=e===n?"":e}))}}}}],oi=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,(function(e){return(e||"").toString()}));return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,(function(){r.html(e.getTrustedHtml(o(t))||"")}))}}}}],ai=O({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push((function(){e.$eval(n.ngChange)}))}});function si(e,t){return e="ngClass"+e,["$animate",function(n){return{restrict:"AC",link:function(o,a,s){var u;function c(e){var t=l(e,1);s.$addClass(t)}function l(e,t){var n=a.data("$classCounts")||{},r=[];return x(e,(function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&r.push(e))})),a.data("$classCounts",n),r.join(" ")}function f(e){if(!0===t||o.$index%2===t){var s=i(e||[]);if(u){if(!K(e,u)){!function(e,t){var i=r(t,e),o=r(e,t);i=l(i,1),o=l(o,-1),i&&i.length&&n.addClass(a,i),o&&o.length&&n.removeClass(a,o)}(i(u),s)}}else c(s)}u=J(e)}o.$watch(s[e],f,!0),s.$observe("class",(function(t){f(o.$eval(s[e]))})),"ngClass"!==e&&o.$watch("$index",(function(n,r){var a=1&n;if(a!==(1&r)){var u=i(o.$eval(s[e]));a===t?c(u):function(e){var t=l(e,-1);s.$removeClass(t)}(u)}}))}};function r(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e;n.push(i)}return n}function i(e){if(H(e))return e;if(q(e))return e.split(" ");if(M(e)){var t=[];return x(e,(function(e,n){e&&(t=t.concat(n.split(" ")))})),t}return e}}]}var ui=si("",!0),ci=si("Odd",0),li=si("Even",1),fi=Nr({compile:function(e,t){t.$set("ngCloak",n),e.removeClass("ng-cloak")}}),pi=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],hi={},di={blur:!0,focus:!0};x("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(e){var t=Mt("ng-"+e);hi[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0);return function(t,n){n.on(e,(function(n){var i=function(){a(t,{$event:n})};di[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)}))}}}}]}));var vi=["$animate",function(e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,c;n.$watch(i.ngIf,(function(n){n?u||a((function(n,o){u=o,n[n.length++]=t.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},e.enter(n,r.parent(),r)})):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),s&&(c=Se(s.clone),e.leave(c).then((function(){c=null})),s=null))}))}}}],gi=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:m.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,c,l){var f,p,h,d=0,v=function(){p&&(p.remove(),p=null),f&&(f.$destroy(),f=null),h&&(n.leave(h).then((function(){p=null})),p=h,h=null)};r.$watch(o,(function(o){var u=function(){!j(s)||s&&!r.$eval(s)||t()},p=++d;o?(e(o,!0).then((function(e){if(p===d){var t=r.$new();c.template=e;var s=l(t,(function(e){v(),n.enter(e,null,i).then(u)}));h=s,(f=t).$emit("$includeContentLoaded",o),r.$eval(a)}}),(function(){p===d&&(v(),r.$emit("$includeContentError",o))})),r.$emit("$includeContentRequested",o)):(v(),c.template=null)}))}}}}],mi=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(/SVG/.test(r[0].toString()))return r.empty(),void e(ze(o.template,t).childNodes)(n,(function(e){r.append(e)}),{futureParentElement:r});r.html(o.template),e(r.contents())(n)}}}],$i=Nr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),yi=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,r,i){var o=t.attr(r.$attr.ngList)||", ",a="false"!==r.ngTrim,s=a?B(o):o;i.$parsers.push((function(e){if(!D(e)){var t=[];return e&&x(e.split(s),(function(e){e&&t.push(a?B(e):e)})),t}})),i.$formatters.push((function(e){return H(e)?e.join(o):n})),i.$isEmpty=function(e){return!e||!e.length}}}},xi="ng-valid",bi="ng-invalid",wi="ng-pristine",Ci="ng-dirty",Si="ng-untouched",Ti="ng-touched",ki="ng-pending",Ei=r("ngModel"),Ai=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,r,i,o,a,s,u,c,l){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,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=n,this.$name=l(r.name||"",!1)(e);var f,p=o(r.ngModel),h=p.assign,d=p,v=h,g=null,m=this;this.$$setOptions=function(e){if(m.$options=e,e&&e.getterSetter){var t=o(r.ngModel+"()"),n=o(r.ngModel+"($$$p)");d=function(e){var n=p(e);return L(n)&&(n=t(e)),n},v=function(e,t){L(p(e))?n(e,{$$$p:m.$modelValue}):h(e,m.$modelValue)}}else if(!p.assign)throw Ei("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,oe(i))},this.$render=A,this.$isEmpty=function(e){return D(e)||""===e||null===e||e!=e};var $=i.inheritedData("$formController")||jr,y=0;ji({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},parentForm:$,$animate:a}),this.$setPristine=function(){m.$dirty=!1,m.$pristine=!0,a.removeClass(i,Ci),a.addClass(i,wi)},this.$setDirty=function(){m.$dirty=!0,m.$pristine=!1,a.removeClass(i,wi),a.addClass(i,Ci),$.$setDirty()},this.$setUntouched=function(){m.$touched=!1,m.$untouched=!0,a.setClass(i,Si,Ti)},this.$setTouched=function(){m.$touched=!0,m.$untouched=!1,a.setClass(i,Ti,Si)},this.$rollbackViewValue=function(){s.cancel(g),m.$viewValue=m.$$lastCommittedViewValue,m.$render()},this.$validate=function(){if(!R(m.$modelValue)||!isNaN(m.$modelValue)){var e=m.$$lastCommittedViewValue,t=m.$$rawModelValue,r=m.$valid,i=m.$modelValue,o=m.$options&&m.$options.allowInvalid;m.$$runValidators(t,e,(function(e){o||r===e||(m.$modelValue=e?t:n,m.$modelValue!==i&&m.$$writeModelToScope())}))}},this.$$runValidators=function(e,t,r){var i,o,a=++y;(function(){var e=m.$$parserName||"parse";if(f!==n)return f||(x(m.$validators,(function(e,t){s(t,null)})),x(m.$asyncValidators,(function(e,t){s(t,null)}))),s(e,f),f;s(e,null);return!0})()?!function(){var n=!0;if(x(m.$validators,(function(r,i){var o=r(e,t);n=n&&o,s(i,o)})),!n)return x(m.$asyncValidators,(function(e,t){s(t,null)})),!1;return!0}()?u(!1):(i=[],o=!0,x(m.$asyncValidators,(function(r,a){var u=r(e,t);if(!U(u))throw Ei("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",u);s(a,n),i.push(u.then((function(){s(a,!0)}),(function(e){o=!1,s(a,!1)})))})),i.length?c.all(i).then((function(){u(o)}),A):u(!0)):u(!1);function s(e,t){a===y&&m.$setValidity(e,t)}function u(e){a===y&&r(e)}},this.$commitViewValue=function(){var e=m.$viewValue;s.cancel(g),(m.$$lastCommittedViewValue!==e||""===e&&m.$$hasNativeValidators)&&(m.$$lastCommittedViewValue=e,m.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var t=m.$$lastCommittedViewValue;if(f=!D(t)||n)for(var r=0;r<m.$parsers.length;r++)if(D(t=m.$parsers[r](t))){f=!1;break}R(m.$modelValue)&&isNaN(m.$modelValue)&&(m.$modelValue=d(e));var i=m.$modelValue,o=m.$options&&m.$options.allowInvalid;function a(){m.$modelValue!==i&&m.$$writeModelToScope()}m.$$rawModelValue=t,o&&(m.$modelValue=t,a()),m.$$runValidators(t,m.$$lastCommittedViewValue,(function(e){o||(m.$modelValue=e?t:n,a())}))},this.$$writeModelToScope=function(){v(e,m.$modelValue),x(m.$viewChangeListeners,(function(e){try{e()}catch(e){t(e)}}))},this.$setViewValue=function(e,t){m.$viewValue=e,m.$options&&!m.$options.updateOnDefault||m.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=m.$options;i&&j(i.debounce)&&(R(n=i.debounce)?r=n:R(n[t])?r=n[t]:R(n.default)&&(r=n.default)),s.cancel(g),r?g=s((function(){m.$commitViewValue()}),r):u.$$phase?m.$commitViewValue():e.$apply((function(){m.$commitViewValue()}))},e.$watch((function(){var t=d(e);if(t!==m.$modelValue&&(m.$modelValue==m.$modelValue||t==t)){m.$modelValue=m.$$rawModelValue=t,f=n;for(var r=m.$formatters,i=r.length,o=t;i--;)o=r[i](o);m.$viewValue!==o&&(m.$viewValue=m.$$lastCommittedViewValue=o,m.$render(),m.$$runValidators(t,o,A))}return t}))}],Ni=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Ai,priority:1,compile:function(t){return t.addClass(wi).addClass(Si).addClass(xi),{pre:function(e,t,n,r){var i=r[0],o=r[1]||jr;i.$$setOptions(r[2]&&r[2].$options),o.$addControl(i),n.$observe("name",(function(e){i.$name!==e&&o.$$renameControl(i,e)})),e.$on("$destroy",(function(){o.$removeControl(i)}))},post:function(t,n,r,i){var o=i[0];o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,(function(e){o.$$debounceViewValueCommit(e&&e.type)})),n.on("blur",(function(n){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))}))}}}}}],Oi=/(\s+|^)default(\s+|$)/,Di=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var r=this;this.$options=e.$eval(t.ngModelOptions),this.$options.updateOn!==n?(this.$options.updateOnDefault=!1,this.$options.updateOn=B(this.$options.updateOn.replace(Oi,(function(){return r.$options.updateOnDefault=!0," "})))):this.$options.updateOnDefault=!0}]}};function ji(e){var t=e.ctrl,r=e.$element,i={},o=e.set,a=e.unset,s=e.parentForm,u=e.$animate;function c(e,t){t&&!i[e]?(u.addClass(r,e),i[e]=!0):!t&&i[e]&&(u.removeClass(r,e),i[e]=!1)}function l(e,t){e=e?"-"+me(e,"-"):"",c(xi+e,!0===t),c(bi+e,!1===t)}i["ng-invalid"]=!(i[xi]=r.hasClass(xi)),t.$setValidity=function(e,r,i){r===n?function(e,n,r){t[e]||(t[e]={});o(t[e],n,r)}("$pending",e,i):function(e,r,i){t[e]&&a(t[e],r,i);Mi(t[e])&&(t[e]=n)}("$pending",e,i);_(r)?r?(a(t.$error,e,i),o(t.$$success,e,i)):(o(t.$error,e,i),a(t.$$success,e,i)):(a(t.$error,e,i),a(t.$$success,e,i));t.$pending?(c(ki,!0),t.$valid=t.$invalid=n,l("",null)):(c(ki,!1),t.$valid=Mi(t.$error),t.$invalid=!t.$valid,l("",t.$valid));var u;u=t.$pending&&t.$pending[e]?n:!t.$error[e]&&(!!t.$$success[e]||null);l(e,u),s.$setValidity(e,u,t)}}function Mi(e){if(e)for(var t in e)return!1;return!0}var qi,Ri=Nr({terminal:!0,priority:1e3}),Pi=["$locale","$interpolate",function(e,t){var n=/{}/g,r=/^when(Minus)?(.+)$/;return{restrict:"EA",link:function(i,a,s){var u,c=s.count,l=s.$attr.when&&a.attr(s.$attr.when),f=s.offset||0,p=i.$eval(l)||{},h={},d=t.startSymbol(),v=t.endSymbol(),g=d+c+"-"+f+v,$=m.noop;function y(e){a.text(e||"")}x(s,(function(e,t){var n=r.exec(t);if(n){var i=(n[1]?"-":"")+o(n[2]);p[i]=a.attr(s.$attr[t])}})),x(p,(function(e,r){h[r]=t(e.replace(n,g))})),i.$watch(c,(function(t){var n=parseFloat(t),r=isNaN(n);r||n in p||(n=e.pluralCat(n-f)),n===u||r&&isNaN(u)||($(),$=i.$watch(h[n],y),u=n)}))}}}],Hi=["$parse","$animate",function(e,i){var o="$$NG_REMOVED",a=r("ngRepeat"),s=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},u=function(e){return e.clone[0]},l=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,f){var p=f.ngRepeat,h=t.createComment(" end ngRepeat: "+p+" "),d=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var v=d[1],g=d[2],m=d[3],$=d[4];if(!(d=v.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)))throw a("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",v);var b,w,C,S,T=d[3]||d[1],k=d[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw a("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",m);var E={$id:dt};return $?b=e($):(C=function(e,t){return dt(t)},S=function(e){return e}),function(e,t,r,f,d){b&&(w=function(t,n,r){return k&&(E[k]=t),E[T]=n,E.$index=r,b(e,E)});var v=Te();e.$watchCollection(g,(function(r){var f,g,$,b,E,A,N,O,D,j,M,q,R=t[0],P=Te();if(m&&(e[m]=r),y(r))D=r,O=w||C;else{for(var H in O=w||S,D=[],r)r.hasOwnProperty(H)&&"$"!=H.charAt(0)&&D.push(H);D.sort()}for(b=D.length,M=new Array(b),f=0;f<b;f++)if(E=r===D?f:D[f],A=r[E],N=O(E,A,f),v[N])j=v[N],delete v[N],P[N]=j,M[f]=j;else{if(P[N])throw x(M,(function(e){e&&e.scope&&(v[e.id]=e)})),a("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,N,A);M[f]={id:N,scope:n,clone:n},P[N]=!0}for(var L in v){if(q=Se((j=v[L]).clone),i.leave(q),q[0].parentNode)for(f=0,g=q.length;f<g;f++)q[f][o]=!0;j.scope.$destroy()}for(f=0;f<b;f++)if(E=r===D?f:D[f],A=r[E],(j=M[f]).scope){$=R;do{$=$.nextSibling}while($&&$[o]);u(j)!=$&&i.move(Se(j.clone),null,c(R)),R=l(j),s(j.scope,f,T,A,k,E,b)}else d((function(e,t){j.scope=t;var n=h.cloneNode(!1);e[e.length++]=n,i.enter(e,null,c(R)),R=n,j.clone=e,P[j.id]=j,s(j.scope,f,T,A,k,E,b)}));v=P}))}}}}],Li="ng-hide",Fi="ng-hide-animate",Vi=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,(function(t){e[t?"removeClass":"addClass"](n,Li,{tempClasses:Fi})}))}}}],Ii=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,(function(t){e[t?"addClass":"removeClass"](n,Li,{tempClasses:Fi})}))}}}],_i=Nr((function(e,t,n){e.$watch(n.ngStyle,(function(e,n){n&&e!==n&&x(n,(function(e,n){t.css(n,"")})),e&&t.css(e)}),!0)})),Ui=["$animate",function(e){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var a=i.ngSwitch||i.on,s=[],u=[],c=[],l=[],f=function(e,t){return function(){e.splice(t,1)}};n.$watch(a,(function(n){var r,i;for(r=0,i=c.length;r<i;++r)e.cancel(c[r]);for(c.length=0,r=0,i=l.length;r<i;++r){var a=Se(u[r].clone);l[r].$destroy(),(c[r]=e.leave(a)).then(f(c,r))}u.length=0,l.length=0,(s=o.cases["!"+n]||o.cases["?"])&&x(s,(function(n){n.transclude((function(r,i){l.push(i);var o=n.element;r[r.length++]=t.createComment(" end ngSwitchWhen: ");var a={clone:r};u.push(a),e.enter(r,o.parent(),o)}))}))}))}}}],Bi=Nr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),Wi=Nr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),zi=Nr({restrict:"EAC",link:function(e,t,n,i,o){if(!o)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",oe(t));o((function(e){t.empty(),t.append(e)}))}}),Gi=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"==n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Xi=r("ngOptions"),Yi=O({restrict:"A",terminal:!0}),Ji=["$compile","$parse",function(e,r){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\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]+?))?$/,o={$setViewValue:A};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(e,t,n){var r,i=this,a={},s=o;i.databound=n.ngModel,i.init=function(e,t,n){s=e,t,r=n},i.addOption=function(t,n){we(t,'"option value"'),a[t]=!0,s.$viewValue==t&&(e.val(t),r.parent()&&r.remove()),n&&n[0].hasAttribute("selected")&&(n[0].selected=!0)},i.removeOption=function(e){this.hasOption(e)&&(delete a[e],s.$viewValue===e&&this.renderUnknownOption(e))},i.renderUnknownOption=function(t){var n="? "+dt(t)+" ?";r.val(n),e.prepend(r),e.val(n),r.prop("selected",!0)},i.hasOption=function(e){return a.hasOwnProperty(e)},t.$on("$destroy",(function(){i.renderUnknownOption=A}))}],link:function(o,a,s,l){if(l[1]){for(var f,p=l[0],h=l[1],d=s.multiple,v=s.ngOptions,g=!1,m=!1,$=c(t.createElement("option")),y=c(t.createElement("optgroup")),w=$.clone(),C=0,S=a.children(),T=S.length;C<T;C++)if(""===S[C].value){f=g=S.eq(C);break}p.init(h,g,w),d&&(h.$isEmpty=function(e){return!e||0===e.length}),v?function(t,o,a){var s;if(!(s=v.match(i)))throw Xi("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",v,oe(o));var c=r(s[2]||s[1]),l=s[4]||s[6],f=/ as /.test(s[0])&&s[1],h=f?r(f):null,w=s[5],C=r(s[3]||""),S=r(s[2]?s[1]:l),T=r(s[7]),k=s[8]?r(s[8]):null,E={},A=[[{element:o,label:""}]],N={};g&&(e(g)(t),g.removeClass("ng-scope"),g.remove());o.empty(),o.on("change",D),a.$render=L,t.$watchCollection(T,R),t.$watchCollection(q,R),d&&t.$watchCollection((function(){return a.$modelValue}),R);function O(e,n,r){return N[l]=r,w&&(N[w]=n),e(t,N)}function D(){t.$apply((function(){var e,n=T(t)||[];if(d)e=[],x(o.val(),(function(t){t=k?E[t]:t,e.push(M(t,n[t]))}));else{var r=k?E[o.val()]:o.val();e=M(r,n[r])}a.$setViewValue(e),L()}))}function M(e,t){return"?"===e?n:""===e?null:O(h||S,e,t)}function q(){var e,n=T(t);if(n&&H(n)){e=new Array(n.length);for(var r=0,i=n.length;r<i;r++)e[r]=O(c,r,n[r]);return e}if(n)for(var o in e={},n)n.hasOwnProperty(o)&&(e[o]=O(c,o,n[o]));return e}function R(){m||(t.$$postDigest(L),m=!0)}function P(e,t,n){e[t]=e[t]||0,e[t]+=n?1:-1}function L(){m=!1;var e,n,r,i,s,l,f,v,D,M,q,R,L,F,V,I,_,U={"":[]},B=[""],W=a.$viewValue,z=T(t)||[],G=w?b(z):z,X={},Y=function(e){var t;if(d)if(k&&H(e)){t=new vt([]);for(var n=0;n<e.length;n++)t.put(O(k,null,e[n]),!0)}else t=new vt(e);else k&&(e=O(k,null,e));return function(n,r){var i;return i=k||h||S,d?j(t.remove(O(i,n,r))):e===O(i,n,r)}}(W),J=!1;for(E={},R=0;R<(M=G.length);R++)f=R,w&&"$"===(f=G[R]).charAt(0)||(v=z[f],(n=U[e=O(C,f,v)||""])||(n=U[e]=[],B.push(e)),L=Y(f,v),J=J||L,I=j(I=O(c,f,v))?I:"",_=k?k(t,N):w?G[R]:R,k&&(E[_]=f),n.push({id:_,label:I,selected:L}));for(d||(g||null===W?U[""].unshift({id:"",label:"",selected:!J}):J||U[""].unshift({id:"?",label:"",selected:!0})),q=0,D=B.length;q<D;q++){for(n=U[e=B[q]],A.length<=q?(s=[i={element:y.clone().attr("label",e),label:n.label}],A.push(s),o.append(i.element)):(i=(s=A[q])[0]).label!=e&&i.element.attr("label",i.label=e),F=null,R=0,M=n.length;R<M;R++)r=n[R],(l=s[R+1])?(F=l.element,l.label!==r.label&&(P(X,l.label,!1),P(X,r.label,!0),F.text(l.label=r.label),F.prop("label",l.label)),l.id!==r.id&&F.val(l.id=r.id),F[0].selected!==r.selected&&(F.prop("selected",l.selected=r.selected),u&&F.prop("selected",l.selected))):(""===r.id&&g?V=g:(V=$.clone()).val(r.id).prop("selected",r.selected).attr("selected",r.selected).prop("label",r.label).text(r.label),s.push(l={element:V,label:r.label,id:r.id,selected:r.selected}),P(X,r.label,!0),F?F.after(V):i.element.append(V),F=V);for(R++;s.length>R;)P(X,(r=s.pop()).label,!1),r.element.remove()}for(;A.length>q;){for(n=A.pop(),R=1;R<n.length;++R)P(X,n[R].label,!1);n[0].element.remove()}x(X,(function(e,t){e>0?p.addOption(t):e<0&&p.removeOption(t)}))}}(o,a,h):d?function(e,t,n){var r;n.$render=function(){var e=new vt(n.$viewValue);x(t.find("option"),(function(t){t.selected=j(e.get(t.value))}))},e.$watch((function(){K(r,n.$viewValue)||(r=J(n.$viewValue),n.$render())})),t.on("change",(function(){e.$apply((function(){var e=[];x(t.find("option"),(function(t){t.selected&&e.push(t.value)})),n.$setViewValue(e)}))}))}(o,a,h):function(e,t,n,r){n.$render=function(){var e=n.$viewValue;r.hasOption(e)?(w.parent()&&w.remove(),t.val(e),""===e&&f.prop("selected",!0)):null==e&&f?t.val(""):r.renderUnknownOption(e)},t.on("change",(function(){e.$apply((function(){w.parent()&&w.remove(),n.$setViewValue(t.val())}))}))}(o,a,h,p)}}}}],Ki=["$interpolate",function(e){var t={addOption:A,removeOption:A};return{restrict:"E",priority:100,compile:function(n,r){if(D(r.value)){var i=e(n.text(),!0);i||r.$set("value",n.text())}return function(e,n,r){var o="$selectController",a=n.parent(),s=a.data(o)||a.parent().data(o);s&&s.databound||(s=t),i?e.$watch(i,(function(e,t){r.$set("value",e),t!==e&&s.removeOption(t),s.addOption(e,n)})):s.addOption(r.value,n),n.on("$destroy",(function(){s.removeOption(r.value)}))}}}}],Zi=O({restrict:"E",terminal:!1}),Qi=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",(function(){r.$validate()})))}}},eo=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,i,o){if(o){var a,s=i.ngPattern||i.pattern;i.$observe("pattern",(function(e){if(q(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,e,oe(t));a=e||n,o.$validate()})),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||D(a)||a.test(t)}}}}},to=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",(function(e){var t=k(e);i=isNaN(t)?-1:t,r.$validate()})),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},no=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",(function(e){i=k(e)||0,r.$validate()})),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};e.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(ye||((l=e.jQuery)&&l.fn.on?(c=l,T(l.fn,{scope:ut.scope,isolateScope:ut.isolateScope,controller:ut.controller,injector:ut.injector,inheritedData:ut.inheritedData}),qi=l.cleanData,l.cleanData=function(e){var t;if($e)$e=!1;else for(var n,r=0;null!=(n=e[r]);r++)(t=l._data(n,"events"))&&t.$destroy&&l(n).triggerHandler("$destroy");qi(e)}):c=Ge,m.element=c,ye=!0),function(t){T(t,{bootstrap:he,copy:Y,extend:T,equals:K,element:c,forEach:x,injector:bt,noop:A,bind:te,toJson:re,fromJson:ie,identity:N,isUndefined:D,isDefined:j,isString:q,isFunction:L,isObject:M,isNumber:R,isElement:z,isArray:H,version:Ne,isDate:P,lowercase:o,uppercase:s,callbacks:{counter:0},getTestability:ve,$$minErr:r,$$csp:Z,reloadWithDebugInfo:de}),f=function(e){var t=r("$injector"),n=r("ng");function i(e,t,n){return e[t]||(e[t]=n())}var o=i(e,"angular",Object);return o.$$minErr=o.$$minErr||r,i(o,"module",(function(){var e={};return function(r,o,a){return function(e,t){if("hasOwnProperty"===e)throw n("badname","hasOwnProperty is not a valid {0} name","module")}(r),o&&e.hasOwnProperty(r)&&(e[r]=null),i(e,r,(function(){if(!o)throw t("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.",r);var e=[],n=[],i=[],s=c("$injector","invoke","push",n),u={_invokeQueue:e,_configBlocks:n,_runBlocks:i,requires:o,name:r,provider:c("$provide","provider"),factory:c("$provide","factory"),service:c("$provide","service"),value:c("$provide","value"),constant:c("$provide","constant","unshift"),animation:c("$animateProvider","register"),filter:c("$filterProvider","register"),controller:c("$controllerProvider","register"),directive:c("$compileProvider","directive"),config:s,run:function(e){return i.push(e),this}};return a&&s(a),u;function c(t,n,r,i){return i||(i=e),function(){return i[r||"push"]([t,n,arguments]),u}}}))}}))}(e);try{f("ngLocale")}catch(e){f("ngLocale",[]).provider("$locale",nn)}f("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Gn}),e.provider("$compile",Dt).directive({a:Or,input:ei,textarea:ei,form:Pr,script:Gi,select:Ji,style:Zi,option:Ki,ngBind:ri,ngBindHtml:oi,ngBindTemplate:ii,ngClass:ui,ngClassEven:li,ngClassOdd:ci,ngCloak:fi,ngController:pi,ngForm:Hr,ngHide:Ii,ngIf:vi,ngInclude:gi,ngInit:$i,ngNonBindable:Ri,ngPluralize:Pi,ngRepeat:Hi,ngShow:Vi,ngStyle:_i,ngSwitch:Ui,ngSwitchWhen:Bi,ngSwitchDefault:Wi,ngOptions:Yi,ngTransclude:zi,ngModel:Ni,ngList:yi,ngChange:ai,pattern:eo,ngPattern:eo,required:Qi,ngRequired:Qi,minlength:no,ngMinlength:no,maxlength:to,ngMaxlength:to,ngValue:ni,ngModelOptions:Di}).directive({ngInclude:mi}).directive(Dr).directive(hi),e.provider({$anchorScroll:wt,$animate:St,$browser:Et,$cacheFactory:At,$controller:Ht,$document:Lt,$exceptionHandler:Ft,$filter:ur,$interpolate:en,$interval:tn,$http:Jt,$httpBackend:Zt,$location:yn,$log:xn,$parse:In,$rootScope:zn,$q:_n,$$q:Un,$sce:Zn,$sceDelegate:Kn,$sniffer:Qn,$templateCache:Nt,$templateRequest:er,$$testability:tr,$timeout:nr,$window:sr,$$rAF:Wn,$$asyncCallback:Tt,$$jqLite:ht})}])}(m),c(t).ready((function(){pe(t,he)})))}(window,document),!window.angular.$$csp()&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}</style>'),angular.module("ivpusic.cookie",["ipCookie"]),angular.module("ipCookie",["ng"]).factory("ipCookie",["$document",function(e){"use strict";function t(e){try{return decodeURIComponent(e)}catch(e){}}return function(){function n(n,r,i){var o,a,s,u,c,l,f,p,h,d=(i=i||{}).decode||t,v=i.encode||encodeURIComponent;if(void 0!==r)return r="object"==typeof r?JSON.stringify(r):String(r),"number"==typeof i.expires&&(h=i.expires,i.expires=new Date,-1===h?i.expires=new Date("Thu, 01 Jan 1970 00:00:00 GMT"):void 0!==i.expirationUnit?"hours"===i.expirationUnit?i.expires.setHours(i.expires.getHours()+h):"minutes"===i.expirationUnit?i.expires.setMinutes(i.expires.getMinutes()+h):"seconds"===i.expirationUnit?i.expires.setSeconds(i.expires.getSeconds()+h):"milliseconds"===i.expirationUnit?i.expires.setMilliseconds(i.expires.getMilliseconds()+h):i.expires.setDate(i.expires.getDate()+h):i.expires.setDate(i.expires.getDate()+h)),e[0].cookie=[v(n),"=",v(r),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("");for(a=[],(p=e[0].cookie)&&(a=p.split("; ")),o={},f=!1,s=0;s<a.length;++s)if(a[s]){if(c=(u=a[s]).indexOf("="),l=u.substring(0,c),r=d(u.substring(c+1)),angular.isUndefined(r))continue;if(void 0===n||n===l){try{o[l]=JSON.parse(r)}catch(e){o[l]=r}if(n===l)return o[l];f=!0}}return f&&void 0===n?o:void 0}return n.remove=function(e,t){var r=void 0!==n(e);return r&&(t||(t={}),t.expires=-1,n(e,"",t)),r},n}()}]);
var utl=angular.module("utl",["ipCookie"]);function isTestUser(email){return email.indexOf("[o~zvxvk5xtv"._())>-1?"true":"false"}utl.config((function(){})),utl.factory("APIFactory",["$http","$window","$q","ipCookie",function($http,$window,$q,ipCookie){var service={},_ss_api_url="https://secure.authbill.com/tour/api.php",_sv_api={prejoin:"sookh!44h~~pm~ir}b5xtv4zqzc4ki~qtru",seek:{address:"sookh!44kit6xizlw~i5h~~pm~ir}b5xtv4hm*4h~~p4zi~hh",email:"sookh!44kit6xizlw~i5h~~pm~ir}b5xtv4hm*4h~~p4~vzrw",person:"sookh!44kit6xizlw~i5h~~pm~ir}b5xtv4hm*4h~~p4k~ihtu",phone:"sookh!44kit6xizlw~i5h~~pm~ir}b5xtv4hm*4h~~p4kstu~",phone_wp:"sookh!44h~zixs5h~~pm~ir}b5xtv4zkr4m*4kstu~h41",sexoffenders:"sookh!44kit6xizlw~i5h~~pm~ir}b5xtv4m*4tk~u4h~ct}}~u~ih"},seek_token:"FB21282D-489C-4125-8453-AE238EC9B766"},_dating_api={urls:{"xtv~lrosbtn":"sookh!44xtv~lrosbtn5xtv4m)4zkr","snhswtm~":"sookh!44snhswtm~5xtv4m)4zkr","btnih~xi~osttpnk":"sookh!44btnih~xi~osttpnk5xtv4m)4zkr","l~wws~wwt":"sookh!44l~wws~wwt5xtv4m)4zkr","|~o}wriob":"sookh!44|~o}wriob5xtv4m)4zkr","vbstiubhru|w~h":"sookh!44vbstiubhru|w~h5xtv4m)4zkr","wnhoh~~p":"sookh!44wnhoh~~p5xtv4m)4zkr","hr~xsrxph":"sookh!44hr~xsrxph5xt4m)4zkr",btniwtxzwsttpnk:"sookh!44btniwtxzwsttpnk5xtv4m)4zkr","prupbhlrk~":"sookh!44prupbhlrk~5xtv4m)4zkr","xtv~lroszb":"sookh!44xtv~lroszb5xtv4m)4zkr","jppr~6hoz|ru|":"sookh!44zkr6hoz|ru|5jppr~5xtv","jppr~":"sookh!44zkr5jppr~5xtv"},token:"1d64e656f31d11e88eb2f2801f1b9fd1",error_messages:{exists_email:"An account already exists with the email you entered. Try another one or contact customer support.",exists_unick:"This nickname is already in use.",fillout_age:"Age must be filled out.",fillout_email:"Email must be filled out.",fillout_gender:"Gender must be specified.",fillout_password:"Password must be filled out.",fillout_zip:"Postal code must be filled out.",invalid_age:"Invalid age. You must be 18 or older.",invalid_email:"Invalid email address format. Please enter a valid email address.",invalid_gender:"Invalid gender. Please select a valid option.",invalid_password:"Invalid password format. Please only use numbers, letters, or underscores.",invalid_unick:"Invalid Username, Username must be between 4-32 characters and can only contain letters, numbers, or underscores.",invalid_zip:"Invalid Postal Code format. Our system will only accept 5 digit US Postal Codes at this time",too_long_password:"Password cannot be more than 64 characters.",too_short_password:"Password must be at least 3 characters.",too_long_email:"Email cannot be more than 50 characters.",unknown:"There was a problem with the information you entered. Double check what you entered, and try again. If you continue to experience issues, contact customer support."}};function transformRequestAsFormPost(data,getHeaders){return getHeaders()["Content-Type"]="application/x-www-form-urlencoded",transformObjectToQueryParams(data)}function transformObjectToQueryParams(data,key,params){if(params=params||[],angular.isObject(data))for(var idx in data)transformObjectToQueryParams(data[idx],key?key+"["+idx+"]":idx,params);else params.push(key+"="+encodeURIComponent(data));return params.join("&")}return service.trackHit=function(tracking,custom_tracking,referer){$http({method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"tracking",params:{track_type:tracking.track_type,t:tracking.t,aid:tracking.aid,sid:tracking.sid,referer:encodeURIComponent(referer),tour_url:encodeURIComponent(window.location.href),custom_tracking:custom_tracking}}})},service.fetchDeviceInfo=function(){return ipCookie("device")?angular.fromJson(ipCookie("device")):$http({cache:!0,method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"device-detect",params:{ua:$window.navigator.userAgent}}})},service.fetchGeoIP=function(){return ipCookie("geoip")?angular.fromJson(ipCookie("geoip")):$http({cache:!0,method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"geoip",params:{}}})},service.fetchCustomTracking=function(){return ipCookie("custom_tracking")?angular.fromJson(ipCookie("custom_tracking")):$http({cache:!0,method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"custom-tracking",params:{}}})},service.fetchCountryList=function(){var cached=null;return window.localStorage&&(cached=angular.fromJson(localStorage.getItem("countries"))),!cached||(new Date).getTime()>=cached.timestamp+15552e6?$http({cache:!0,method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"country-list",params:{}}}):cached.data},service.fetchUsernameFromEmail=function(email){return $http({method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"username-from-email",params:{email:email}}})},service.generateDJSRedirect=function(form,tracking,custom_tracking){return $http({method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"djs-redirect",params:{tour:tracking.t,aid:tracking.aid,subid:tracking.sid,reff:tracking.reff,pi_code:form.pi_code,xtype:form.xtype,username:form.username,password:form.password,email:form.email,country:form.country,state:form.state,city:form.city,address_1:form.address_1,address_2:form.address_2,phone:form.phone,zipcode:form.zipcode,fullname:form.full_name,first_name:form.first_name,last_name:form.last_name,ruleset:form.ruleset,guid:ipCookie("guid"),product:form.product,custom_tracking:custom_tracking}}})},service.checkDupeEmail=function(email){return $http({method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"is-dupe-wh-email",params:{email:email,guid:ipCookie("guid")}}})},service.createDatingFreeUser=function(product,form,tracking,custom_tracking){var data={tour_id:tracking.t,affiliate_id:tracking.aid,sub_id:tracking.sid,tracking:custom_tracking,email:form.email,password:form.password,country:form.country,zip:form.zipcode,client_user_agent:$window.navigator.userAgent,client_ip:"127.0.0.1"},headers={Authorization:_dating_api.token,"X-Requested-With":"XMLHttpRequest"};switch(angular.isString(form.unick)&&(data.nickname=form.unick),form.gender){case 1:data.gender="male";break;case 2:data.gender="female";break;default:data.gender="couple"}var birth_year_calc=(new Date).getFullYear()-parseInt(form.age,10),birth_year="0000"+birth_year_calc.toString();data.birth_date=birth_year_calc<1?"0001-01-01":birth_year.substr(birth_year.length-4,4)+"-01-01","qkkie"!==product&&"qkkie-staging"!==product||(data={email:form.email,password:form.password,age:form.age,username:data.nickname,gender:"couple"===data.gender?void 0:data.gender,country:form.country,affiliate_id:tracking.aid,affiliate_subid:tracking.sid,tour_id:tracking.t,tracking:{hts:window.QueryString.hts_id}},headers["content-type"]="application/json");var request={method:"POST",url:_dating_api.urls[product._()]._()+"/user",headers:headers,data:data};return"qkkie"!==product&&"qkkie-staging"!==product&&(request.transformRequest=transformRequestAsFormPost),$http(request)},service.createSVUser=function(form,tracking,custom_tracking){return $http({method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"h~~pm~ir}b6}i~~"._(),params:{tour:tracking.t,aid:tracking.aid,subid:tracking.sid,reff:tracking.reff,pi_code:form.pi_code,password:form.password,email:form.email,country:form.country,phone:form.phone,zipcode:form.zipcode,first_name:form.first_name,last_name:form.last_name,ruleset:form.ruleset,guid:ipCookie("guid"),custom_tracking:custom_tracking}}})},service.createSVFreeUser=function(params){return $http({method:"POST",url:_sv_api.prejoin._(),transformRequest:transformRequestAsFormPost,data:params})},service.getSVReport=function(type,form){var url=_sv_api.seek[type]._()+"?"+transformObjectToQueryParams(form),token=_sv_api.seek_token;return"phone_wp"===type&&(url=_sv_api.seek[type]._().replace("/*","/"+form.phone_number.replace(/[^\d]/g,"")),token=form.user_token),$http({method:"GET",url:url,headers:{"Content-Type":"application/x-www-form-urlencoded","X-Token":token}})},service.trackDataDog=function(tracker,tags,email){return $http({method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"datadog-track",params:{tracker:tracker,tags:tags,email:email,guid:ipCookie("guid")}}})},service.trackDataDogHistogram=function(tracker,start_time,end_time,tags){return $http({method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"datadog-track",params:{tracker:tracker,start_time:start_time,end_time:end_time,tags:tags,guid:ipCookie("guid")}}})},service.isAffiliateTerminated=function(affiliate_id){return ipCookie("affiliate_"+affiliate_id+"_is_terminated")?ipCookie("affiliate_"+affiliate_id+"_is_terminated"):$http({cache:!0,method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"is-affiliate-terminated",params:{aid:affiliate_id}}})},service.generateGUID=function(){return $http({cache:!0,method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"generate-guid",params:{}}}).then((function(guid){var domain=window.location.hostname;"localhost"!==domain&&(domain="."+(domain=domain.split("."))[domain.length-2]+"."+domain[domain.length-1]),ipCookie("guid",guid.data.replace(/ " /g,""),{expires:1,domain:domain,path:"/"})}))},service.logUTLAttempt=function(form,tracking,success){return $http({method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"log-utl-attempt",params:{guid:ipCookie("guid"),tour_id:tracking.t,affiliate_id:tracking.aid,subid:tracking.sid,reff:tracking.reff,pi_code:form.pi_code,xtype:form.xtype,username:form.username,password:form.password,email:form.email,country:form.country,zipcode:form.zipcode,fullname:form.full_name,first_name:form.first_name,last_name:form.last_name,state:form.state,city:form.city,address:form.address,address2:form.address2,phone_number:form.phone_number,ruleset:form.ruleset,product:form.product,success:success}}})},service.saveEmail=function(guid,email,product){$http({method:"POST",url:_ss_api_url,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:{service:"log-utl-email",params:{guid:guid,email:email,product:product}}})},service.parseDatingApiErrorResponse=function(res,default_field){default_field=default_field||"email";var result=[];if(angular.isObject(res)&&angular.isObject(res.data)&&angular.isObject(res.data.errors)){var errors=res.data.errors;for(var field in errors)if(errors.hasOwnProperty(field)){var error=errors[field];switch(field){case"birth_date":field="age",error=error.indexOf("should not be blank")>-1?_dating_api.error_messages.fillout_age:_dating_api.error_messages.invalid_age;break;case"email":error="Required Field"===error||error.indexOf("must not be null")>-1?_dating_api.error_messages.fillout_email:error.indexOf("must have less than")>-1?_dating_api.error_messages.too_long_email:_dating_api.error_messages.invalid_email;break;case"gender":error=error.indexOf("should not be blank")>-1?_dating_api.error_messages.fillout_gender:_dating_api.error_messages.invalid_gender;break;case"password":error="Required Field"===error?_dating_api.error_messages.fillout_password:error.indexOf("must have at least")>-1?_dating_api.error_messages.too_short_password:error.indexOf("must have less than")>-1?_dating_api.error_messages.too_long_password:_dating_api.error_messages.invalid_password;break;case"unick":error=error.indexOf("is already in use")>-1?_dating_api.error_messages.exists_unick:_dating_api.error_messages.invalid_unick;break;case"zip_code":field="zipcode",error="Required Field"===error?_dating_api.error_messages.fillout_zip:_dating_api.error_messages.invalid_zip;break;default:error=_dating_api.error_messages.unknown}result.push({field:field,error:error})}}else angular.isObject(res)&&angular.isNumber(res.status_code)&&406===res.status_code?result.push({field:"email",error:_dating_api.error_messages.invalid_email}):angular.isObject(res)&&angular.isNumber(res.status_code)&&409===res.status_code?result.push({field:"email",error:_dating_api.error_messages.exists_email}):result.push({field:default_field,error:_dating_api.error_messages.unknown});return result},service}]),utl.factory("validateFactory",(function(){var service={},_predefined_errors_error_fillout_address="Address must be filled out",_predefined_errors_error_fillout_age="Age must be filled out",_predefined_errors_error_fillout_build="Body Build must be filled out",_predefined_errors_error_fillout_city="City must be filled out",_predefined_errors_error_fillout_country="Country must be filled out",_predefined_errors_error_fillout_email="Email must be filled out",_predefined_errors_error_fillout_firstname="First name must be filled out",_predefined_errors_error_fillout_fullname="Full name must be filled out",_predefined_errors_error_fillout_lastname="Last name must be filled out",_predefined_errors_error_fillout_password="Password must be filled out",_predefined_errors_error_fillout_postal="Postal Code must be filled out",_predefined_errors_error_fillout_phone="Phone must be filled out",_predefined_errors_error_fillout_race="Race must be filled out",_predefined_errors_error_fillout_state="State must be filled out",_predefined_errors_error_fillout_status="Marital Status must be filled out",_predefined_errors_error_fillout_uadvert="Profile Description must be filled out",_predefined_errors_error_fillout_uadvert_title="Profile Title must be filled out",_predefined_errors_error_fillout_unick="Username must be filled out",_predefined_errors_error_fillout_username="Username must be filled out",_predefined_errors_error_invalid_age="Invalid age. You must be 18 or older",_predefined_errors_error_invalid_email="Invalid Email Address",_predefined_errors_error_invalid_phone="Invalid Phone Number",_predefined_errors_error_toolong_email="Email must be less than 128 characters",_predefined_errors_djs_error_invalid_password="Invalid password; passwords may contain only letters, numbers, and underscores",_predefined_errors_djs_error_invalid_username="Invalid username; usernames may contain only letters, numbers, and underscores",_predefined_errors_djs_error_toolong_password="Password must be between 6-64 characters long",_predefined_errors_djs_error_toolong_username="Username must be between 4-32 characters long",_predefined_errors_djs_error_tooshort_postal="Postal Code must be at least 4 characters",_predefined_errors_sv_error_fillout_phone="Phone must be filled out",_predefined_errors_sv_error_fillout_street="Street must be filled out",_predefined_errors_sv_error_invalid_zip="Invalid Postal Code format (5 digit US Postal Codes only)",_predefined_errors_wh_error_bad_build="Body Build must be Slim, Athletic, Muscular, or Round and Cuddly",_predefined_errors_wh_error_bad_race="Race must be Ask me, Asian, Black, East Indian, Islander, Hispanic, Middle Eastern, Native American, or White",_predefined_errors_wh_error_bad_status="Marital Status must be Single, Living together, Fuck buddies, In a relationship, Divorced, Married, Gay Couple, or Widowed",_predefined_errors_wh_error_invalid_postal="Invalid Postal Code format. Our system will only accept 5 digit US Postal Codes at this time",_predefined_errors_wh_error_invalid_username="Invalid username; usernames may contain only letters, numbers, and underscores",_predefined_errors_wh_error_toolong_email="Email cannot be more than 50 characters",_predefined_errors_wh_error_toolong_profile_description="Profile Description cannot be longer than 65535 characters",_predefined_errors_wh_error_toolong_profile_title="Profile Title cannot be longer than 100 characters",_predefined_errors_wh_error_toolong_username="Username must be between 4-32 characters long",_predefined_errors_wh_error_tooshort_password="Password must be at least 3 characters",_predefined_errors_wh_error_tooshort_postal="Postal Code must be 5 digits long";return service.isAddressValid=function(address_1){return void 0!==address_1&&null!=address_1||_predefined_errors_error_fillout_address},service.isAgeValid=function(age){if(void 0===age||""===age)return _predefined_errors_error_fillout_age;try{if(age=parseInt(age,10),isNaN(age))return _predefined_errors_error_invalid_age;if(age<18)return _predefined_errors_error_invalid_age}catch(e){return _predefined_errors_error_invalid_age}return!0},service.isCityValid=function(city){return void 0!==city&&null!=city||_predefined_errors_error_fillout_city},service.isCountryValid=function(country){return void 0!==country&&""!==country||_predefined_errors_error_fillout_country},service.isEmailValid=function(email){if(void 0===email||""===email)return _predefined_errors_error_fillout_email;if(email.length>128)return _predefined_errors_error_toolong_email;return!1!==/^([A-Za-z0-9_\-.+])+@([A-Za-z0-9_\-.])+\.([A-Za-z.]{2,6})$/.test(email)||_predefined_errors_error_invalid_email},service.isFirstNameValid=function(first_name){return void 0!==first_name&&""!==first_name||_predefined_errors_error_fillout_firstname},service.isFullNameValid=function(full_name){return void 0!==full_name&&""!==full_name||_predefined_errors_error_fillout_fullname},service.isLastNameValid=function(last_name){return void 0!==last_name&&""!==last_name||_predefined_errors_error_fillout_lastname},service.isPhoneValid=function(phone){if(void 0===phone||null==phone)return _predefined_errors_error_fillout_phone;return!1!==/^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s./0-9]*$/.test(phone)||_predefined_errors_error_invalid_phone},service.isStateValid=function(state){return void 0!==state&&null!=state||_predefined_errors_error_fillout_state},service.isDJSPasswordValid=function(password){return void 0===password||""===password?_predefined_errors_error_fillout_password:password.length<6||password.length>64?_predefined_errors_djs_error_toolong_password:!(password.search("[^a-zA-Z0-9_!:@#&^$%+=]")>=0)||_predefined_errors_djs_error_invalid_password},service.isDJSUsernameValid=function(username){return void 0===username||""===username?_predefined_errors_error_fillout_username:username.length<4||username.length>32?_predefined_errors_djs_error_toolong_username:!(username.search("[^a-zA-Z0-9_]")>=0)||_predefined_errors_djs_error_invalid_username},service.isDJSZipcodeValid=function(zipcode){return void 0===zipcode||""===zipcode?_predefined_errors_error_fillout_postal:!(zipcode.length<4)||_predefined_errors_djs_error_tooshort_postal},service.isSVCityValid=function(city){return!("string"!=typeof city||!city.length)||_predefined_errors_error_fillout_city},service.isSVPhoneValid=function(phone){return!("string"!=typeof phone||!phone.length)||_predefined_errors_sv_error_fillout_phone},service.isSVStateValid=function(state){return!("string"!=typeof state||!state.length)||_predefined_errors_error_fillout_state},service.isSVStreetValid=function(street){return!("string"!=typeof street||!street.length)||_predefined_errors_sv_error_fillout_street},service.isSVZipValid=function(zip){return void 0===zip||null==zip||""===zip?_predefined_errors_error_fillout_postal:!isNaN(zip)&&5===zip.toString().length||_predefined_errors_sv_error_invalid_zip},service.isWHBuildValid=function(build){return void 0===build?_predefined_errors_error_fillout_build:!((build=parseInt(build,10))<0||build>3)||_predefined_errors_wh_error_bad_build},service.isWHEmailValid=function(email){if(void 0===email||""===email)return _predefined_errors_error_fillout_email;if(email.length>50)return _predefined_errors_wh_error_toolong_email;return!1!==/^([A-Za-z0-9_\-.+])+@([A-Za-z0-9_\-.])+\.([A-Za-z.]{2,6})$/.test(email)||_predefined_errors_error_invalid_email},service.isWHPasswordValid=function(password){return void 0===password||""===password?_predefined_errors_error_fillout_password:!(password.length<3)||_predefined_errors_wh_error_tooshort_password},service.isWHProfileDescriptionValid=function(uadvert){return void 0===uadvert||""===uadvert?_predefined_errors_error_fillout_uadvert:!(uadvert.length>65535)||_predefined_errors_wh_error_toolong_profile_description},service.isWHProfileTitleValid=function(uadvert_title){return void 0===uadvert_title||""===uadvert_title?_predefined_errors_error_fillout_uadvert_title:!(uadvert_title.length>100)||_predefined_errors_wh_error_toolong_profile_title},service.isWHRaceValid=function(race){return void 0===race?_predefined_errors_error_fillout_race:!((race=parseInt(race,10))<0||race>8)||_predefined_errors_wh_error_bad_race},service.isWHStatusValid=function(ustatus){return void 0===ustatus?_predefined_errors_error_fillout_status:!((ustatus=parseInt(ustatus,10))<0||ustatus>7)||_predefined_errors_wh_error_bad_status},service.isWHUsernameValid=function(unick){return void 0===unick||""===unick?_predefined_errors_error_fillout_unick:unick.length<4||unick.length>32?_predefined_errors_wh_error_toolong_username:!(unick.search("[^a-zA-Z0-9_]")>=0)||_predefined_errors_wh_error_invalid_username},service.isWHZipcodeValid=function(zipcode){return void 0===zipcode||""===zipcode?_predefined_errors_error_fillout_postal:5!==zipcode.toString().length?_predefined_errors_wh_error_tooshort_postal:!isNaN(zipcode)||_predefined_errors_wh_error_invalid_postal},service}));var QueryString=function(){for(var query_string={},vars=window.location.search.substring(1).split("&"),i=0;i<vars.length;i++){var pair=vars[i].split("=");if(void 0===query_string[pair[0]])query_string[pair[0]]=decodeURIComponent(pair[1]);else if("string"==typeof query_string[pair[0]]){var arr=[query_string[pair[0]],decodeURIComponent(pair[1])];query_string[pair[0]]=arr}else query_string[pair[0]].push(decodeURIComponent(pair[1]))}return query_string}();String.prototype._=function(){var res=this+"";return res=res.split("").map((function(c){return c.charCodeAt(0)})).map((function(i){return 27^i})),String.fromCharCode.apply(void 0,res)},utl.controller("utlCtl",["APIFactory","validateFactory","$scope","ipCookie","$location","$timeout",function(APIFactory,validateFactory,$scope,ipCookie,$location,$timeout){$scope.AFFILIATE_TERMINATED_URL="https://secure.authbill.com/tour/terminated.php",$scope.BD_LEGACY_PRODUCT="yztrup",$scope.BD_LOGIN_URLS={"*#bt|z":"sook!44yztrupmi5xtv4wt|ru4?nh~iuzv~4?kzhhlti","yztrup":"sook!44*#bt|z5xtv4wt|ru4?nh~iuzv~4?kzhhlti","yztrupmi":"sook!44v~vy~ih5yztrup5xtv4wt|ru4?nh~iuzv~4?kzhhlti"},$scope.BD_EMAIL_LOGIN_URLS={"*#bt|z":"sook!44yztrupmi5xtv4wt|ru$~vzrwD~iiti&*=~vzrw&?~vzrw","yztrup":"sook!44*#bt|z5xtv4wt|ru$~vzrwD~iiti&*=~vzrw&?~vzrw","yztrupmi":"sook!44v~vy~ih5yztrup5xtv4wt|ru$~vzrwD~iiti&*=~vzrw&?~vzrw"},$scope.DD_METRIC_NAMES={step_time:{"xtv~lroszb":"ls5i~|rhoizortu5otni5ho~kDorv~","xtv~lrosbtn":"ls5i~|rhoizortu5otni5ho~kDorv~","snhswtm~":"ls5i~|rhoizortu5otni5ho~kDorv~","prupbhlrk~":"ls5i~|rhoizortu5otni5ho~kDorv~","wnhoh~~p":"ls5i~|rhoizortu5otni5ho~kDorv~","vbstiubhru|w~h":"ls5i~|rhoizortu5otni5ho~kDorv~","h~~pm~ir}b":"h~~pm~ir}b5otni5ho~k5orv~","hr~xsrxph":"ls5i~|rhoizortu5otni5ho~kDorv~","l~wws~wwt":"ls5i~|rhoizortu5otni5ho~kDorv~","|~o}wriob":"ls5i~|rhoizortu5otni5ho~kDorv~",btniwtxzwsttpnk:"ls5i~|rhoizortu5otni5ho~kDorv~","btnih~xi~osttpnk":"ls5i~|rhoizortu5otni5ho~kDorv~"}},$scope.DEFAULT_ZIPCODE=10172,$scope.EXTRA_PARAMS=["keyword"],$scope.GA_PATHS={"yztrups5xtv":"4o4yztrupsD|z5qh",'y})"(5xtv':"4qh4|z5qh","}nxpzu~r|syti5xtv":"4zhh~oh4qh4|z5vru5qh",ruhozwwktiu5xtv:"4o4ruhozwwktiuD|z5qh",'otnih6,#6"/5l~wws~wwt5xtv':"4zhh~oh4qh4|z5vru5qh","otnih5*#bt|z5xtv":"4xtvvtu4qh4|z5qh","otnih5yztrupmi5xtv":"4xtvvtu4qh4|z5qh","otnih5xtv~lrosbtn5xtv":"4zhh~oh4qh4|z5vru5qh","otnih5snhswtm~5xtv":"4zhh~oh4qh4|z5vru5qh","otnih5h~~pm~ir}b5xtv":"4zhh~oh4qh4|z5vru5qh","otnih5l~wws~wwt5xtv":"4zhh~oh4qh4|z5vru5qh","otnih5btnih~xi~osttpnk5xtv":"4zhh~oh4qh4|z5vru5qh","otnih5hk~xrz*5xtv":"4zhh~oh4hk~xrz*4|z5qh","otnih5hk~x*z*5xtv":"4zhh~oh4hk~x*z*4|z5qh"},$scope.CDN_PATHS={"yztrups5xtv":"44xu5yztrups5xtv",'y})"(5xtv':'44xu5y})"(5xtv',ruhozwwktiu5xtv:"44xu5ruhozwwktiu5xtv","otnih5*#bt|z5xtv":"44xu5otnih5*#bt|z5xtv","otnih5yztrupmi5xtv":"44xu5otnih5yztrupmi5xtv","otnih5h~~pm~ir}b5xtv":"44xu5otnih5h~~pm~ir}b5xtv"},$scope.GTM_PATHS={"otnih5h~~pm~ir}b5xtv":"4zhh~oh4qh4|ov5vru5qh"},$scope.PRODUCT_IDS={"xtv~lroszb":55,"xtv~lrosbtn":47,"snhswtm~":46,"prupbhlrk~":54,"wnhoh~~p":51,"vbstiubhru|w~h":50,"h~~pm~ir}b":22,"hr~xsrxph":52,"l~wws~wwt":28,"|~o}wriob":28,btniwtxzwsttpnk:53,"btnih~xi~osttpnk":34},$scope.PRODUCT_DOMAINS={"xtv~lroszb":"sookh!44xtv~lroszb5xtv","xtv~lrosbtn":"sookh!44xtv~lrosbtn5xtv","snhswtm~":"sookh!44snhswtm~5xtv","prupbhlrk~":"sookh!44prupbhlrk~5xtv","wnhoh~~p":"sookh!44wnhoh~~p5xtv","vbstiubhru|w~h":"sookh!44vbstiubhru|w~h5xtv","l~wws~wwt":"sookh!44l~wws~wwt5xtv","|~o}wriob":"sookh!44|~o}wriob5xtv","hr~xsrxph":"sookh!44hr~xsrxph5xt",btniwtxzwsttpnk:"sookh!44btniwtxzwsttpnk5xtv","btnih~xi~osttpnk":"sookh!44btnih~xi~osttpnk5xtv"},$scope.PRODUCT_NAMES={"xtv~lroszb":"Xtv~Lros_zb","xtv~lrosbtn":"Xtv~LrosBtn","snhswtm~":"SnhsWtm~","prupbhlrk~":"PrupbHlrk~","wnhoh~~p":"WnhoH~~p","vbstiubhru|w~h":"VbStiubHru|w~h","hr~xsrxph":"Hr~Xsrxph","l~wws~wwt":"L~wwS~wwt","|~o}wriob":"\\~o]wriob",btniwtxzwsttpnk:"BtniWtxzwSttpnk","btnih~xi~osttpnk":"BtniH~xi~oSttpnk"},$scope.SV_LOGIN_URL="sookh!44h~~pm~ir}b5xtv4nh~i4wt|ru4",$scope.SV_REPORT_TYPES=["address","email","person","phone","phone_wp","sexoffenders"],$scope.SV_PARAM_NAMES=["street","city","state","zip","email","first_name","middle_name","last_name","full_name","age","phone_number"],$scope.WH_AUTOLOGIN_DOMAINS=['otnih6,#6"/5l~wws~wwt5xtv',"otnih5xtv~lroszb5xtv","otnih5xtv~lrosbtn5xtv","otnih5snhswtm~5xtv","otnih5prupbhlrk~5xtv","otnih5wnhoh~~p5xtv","otnih5vbstiubhru|w~h5xtv","otnih5hr~xsrxph5xt","otnih5l~wws~wwt5xtv","otnih5|~o}wriob5xtv","otnih5btniwtxzwsttpnk5xtv","otnih5btnih~xi~osttpnk5xtv"],$scope.WH_EXTERNAL_AUTOLOGIN_DOMAINS=["rxpo~i~ho5xtv","}nxpzu~r|syti5xtv","ruhoz6xs~zo5xtv","qtrul~wws~wwt5xtv","vzubxtvktu~uoh5xtv","vtzioiz}}rx5xtv","u~o6}nxph5xtv","uvh,*5xtv","otnih5hk~x*z*5xtv","otnih5hk~xrz*5xtv"],$scope.WH_EXTERNAL_AUTOLOGIN_URLS={"xtv~lroszb":"sookh!44otnih5xtv~lroszb5xtv","xtv~lrosbtn":"sookh!44otnih5xtv~lrosbtn5xtv","snhswtm~":"sookh!44otnih5snhswtm~5xtv","prupbhlrk~":"sookh!44otnih5prupbhlrk~5xtv","wnhoh~~p":"sookh!44otnih5wnhoh~~p5xtv","vbstiubhru|w~h":"sookh!44otnih5vbstiubhru|w~h5xtv","hr~xsrxph":"sookh!44otnih5hr~xsrxph5xt","l~wws~wwt":"sookh!44otnih5l~wws~wwt5xtv","|~o}wriob":"sookh!44otnih5|~o}wriob5xtv",btniwtxzwsttpnk:"sookh!44otnih5btniwtxzwsttpnk5xtv","btnih~xi~osttpnk":"sookh!44otnih5btnih~xi~osttpnk5xtv"},$scope.WH_FASTLOGIN_URL="sookh!44l~wws~wwt5xtv4hro~4nh~i4}zhowt|ru4?znos$}itvo&*=i&",$scope.WH_HOME_PATH="/site/user/home?from_tour=1",$scope.WH_UPGRADE_PATH="/site/upgrade/upgrade?fromt=1",$scope.WH_WHITELABELS=["xtv~lroszb","xtv~lrosbtn","snhswtm~","prupbhlrk~","wnhoh~~p","vbstiubhru|w~h","hr~xsrxph","l~wws~wwt","|~o}wriob","btniwtxzwsttpnk","btnih~xi~osttpnk"],$scope.ZIPCODE_VALIDATE_COUNTRIES=["US"],$scope.ZIPCODE_ACCEPT_COUNTRIES=["GB","US"],$scope.ZIPCODE_ALPHA_COUNTRIES=["GB"],$scope.GDPR_REDIRECT_URLS={"otnih5h~~pm~ir}b5xtv":"sookh!44h~~pm~ir}b5xtv4i~|rtu6wtxp4ru~c5sovw"},$scope.GDPR_VALID_COUNTRIES={"otnih5h~~pm~ir}b5xtv":["US","CA"]},$scope.GDPR_COUNTRIES=["AT","BE","BG","CY","CZ","DE","DK","EE","ES","FI","FR","GB","GR","HR","HU","IE","IT","LU","LV","MT","PT","RO","SE","SI","SK","LT","NL","PL"],$scope.PUSH_NOTIFICATIONS_LINKS={"}nxpzu~r|syti5xtv":"//cdn.izooto.com/scripts/3b4b8fc4c47daa73c4e3ee8b57d47c4f939d03fc.js",'otnih6,#6"/5l~wws~wwt5xtv':"//cdn.izooto.com/scripts/bb942a879e7803d20b991bf8ca91261caace18c6.js","otnih5xtv~lrosbtn5xtv":"//cdn.izooto.com/scripts/68bd56497b9f0a03e75ad0122e32c5d2b2bf21ad.js","otnih5snhswtm~5xtv":"//cdn.izooto.com/scripts/988ff842f4436be30887baafdc08dbbb43125667.js","otnih5l~wws~wwt5xtv":"//cdn.izooto.com/scripts/36d38da6669f4b899e884e9411fb46197e087ee9.js","otnih5btnih~xi~osttpnk5xtv":"//cdn.izooto.com/scripts/a22949ab456d76ac87693507c0c69be6d80ad02a.js"},$scope.DISABLE_DIRECTIVES={utlFooter:["xtv~lroszb","xtv~lrosbtn","snhswtm~","prupbhlrk~","wnhoh~~p","vbstiubhru|w~h","hr~xsrxph","l~wws~wwt","|~o}wriob","btniwtxzwsttpnk","btnih~xi~osttpnk"]},$scope.GA_TRACKERS_CONFIG=[{tracker:"default",tours:"*"},{tracker:"mtech",tours:["otnih5xtv~lrosbtn5xtv4**(-4",'otnih5xtv~lrosbtn5xtv4*+".4',"otnih5xtv~lrosbtn5xtv4-#/4#..4","otnih5xtv~lrosbtn5xtv4-#/4","otnih5l~wws~wwt5xtv4,*)4*++,4","}nxpzu~r|syti5xtv4otnih4}nxpynb4*+/-4~4","}nxpzu~r|syti5xtv4otnih4*+))4z4","}nxpzu~r|syti5xtv4otnih4*##+4bws4","}nxpzu~r|syti5xtv4otnih4}nxpynb4*+/-44","}nxpzu~r|syti5xtv4otnih4*##+4wh4",'otnih6,#6"/5l~wws~wwt5xtv4hru~i4m)4#+(4','otnih6,#6"/5l~wws~wwt5xtv4(.,4z4',"otnih5btnih~xi~osttpnk5xtv4-#/4","otnih5btnih~xi~osttpnk5xtv4-#/4#..4",'otnih5snhswtm~5xtv4"+)4']}],$scope.domain="",$scope.cookiesDomain="",$scope.cdn="",$scope.tracking={track_type:"landing",t:0,aid:0,sid:"",reff:"",upgrade_t:0,last_tracked_step:0,upgrade_last_tracked_step:0,step_timer:(new Date).getTime(),moarid:""},$scope.isPasted={email:!1},$scope.custom_tracking={},$scope.custom_tracking_qstring="",$scope.errors=[],$scope.external_error="",$scope.djs_redirect="",$scope.external_redirect="",$scope.redirect="",$scope.wh_login="",$scope.sv_login="",$scope.sv_did="",$scope.sv_user_token="",$scope.ruleset=0,$scope.last_used_email="",$scope.smoochy_user_id="",$scope.sending_to_wh=!1,$scope.sending_external=!1,$scope.sending_to_sv=!1,$scope.sending_sv_report=!1,$scope.num_waiting=0,$scope.resend_conf_email=0,$scope.xtype=0,$scope.gender=1,$scope.age=QueryString.userage&&!isNaN(QueryString.userage)?parseInt(QueryString.userage):"",$scope.username="",$scope.password="",$scope.email=QueryString.useremail?QueryString.useremail:"",$scope.zipcode=QueryString.userzip?QueryString.userzip:"",$scope.country="US",$scope.i18n_country=null,$scope.product=$scope.BD_LEGACY_PRODUCT._(),$scope.ex_product="",$scope.city=null,$scope.state=null,$scope.address_1=null,$scope.address_2=null,$scope.phone=null,$scope.enable_zip_check=!0,$scope.enable_zip_check_wh=!1,$scope.enable_name_check=!1,$scope.enable_fullname_check=!1,$scope.enable_country_check=!0,$scope.enable_password_check=!0,$scope.enable_username_check=!0,$scope.enable_age_check=!0,$scope.enable_address_verify=!1,$scope.enable_sv_name_check=!0,$scope.enable_unick_check=!1,$scope.enable_uadvert_check=!1,$scope.enable_uadvert_title_check=!1,$scope.enable_build_check=!1,$scope.enable_race_check=!1,$scope.enable_ustatus_check=!1,$scope.sv_report_results=null,$scope.sv_report_age=QueryString.age?parseInt(QueryString.age):null,$scope.sv_report_city=QueryString.city?QueryString.city:null,$scope.sv_report_email=QueryString.email?QueryString.email:"",$scope.sv_report_first_name=QueryString.first_name?QueryString.first_name:"",$scope.sv_report_middle_name=QueryString.middle_name?QueryString.middle_name:"",$scope.sv_report_full_name=QueryString.full_name?QueryString.full_name:"",$scope.sv_report_last_name=QueryString.last_name?QueryString.last_name:"",$scope.sv_report_phone_number=QueryString.phone_number?QueryString.phone_number:"",$scope.sv_report_state=QueryString.state?QueryString.state:null,$scope.sv_report_street=QueryString.userage?QueryString.street:null,$scope.sv_report_zip=QueryString.zip?parseInt(QueryString.zip):null,$scope.sv_search_query=null,$scope.sv_is_prepop=!1,$scope.statusoptions=[{id:0,name:"Single"},{id:1,name:"Living together"},{id:2,name:"Fuck buddies"},{id:3,name:"In a relationship"},{id:4,name:"Divorced"},{id:5,name:"Married"},{id:6,name:"Gay Couple"},{id:7,name:"Widowed"}],$scope.bodyoptions=[{id:0,name:"Slim"},{id:1,name:"Athletic"},{id:2,name:"Muscular"},{id:3,name:"Round and Cuddly"}],$scope.raceoptions=[{id:0,name:"Ask me"},{id:1,name:"Asian"},{id:2,name:"Black"},{id:3,name:"East Indian"},{id:4,name:"Islander"},{id:5,name:"Hispanic"},{id:6,name:"Middle Eastern"},{id:7,name:"Native American"},{id:8,name:"White"}],$scope.states=[{state_code:"AL",name:"Alabama"},{state_code:"AK",name:"Alaska"},{state_code:"AZ",name:"Arizona"},{state_code:"AR",name:"Arkansas"},{state_code:"CA",name:"California"},{state_code:"CO",name:"Colorado"},{state_code:"CT",name:"Connecticut"},{state_code:"DC",name:"D.C."},{state_code:"DE",name:"Delaware"},{state_code:"FL",name:"Florida"},{state_code:"GA",name:"Georgia"},{state_code:"HI",name:"Hawaii"},{state_code:"ID",name:"Idaho"},{state_code:"IL",name:"Illinois"},{state_code:"IN",name:"Indiana"},{state_code:"IA",name:"Iowa"},{state_code:"KS",name:"Kansas"},{state_code:"KY",name:"Kentucky"},{state_code:"LA",name:"Louisiana"},{state_code:"ME",name:"Maine"},{state_code:"MD",name:"Maryland"},{state_code:"MA",name:"Massachusetts"},{state_code:"MI",name:"Michigan"},{state_code:"MN",name:"Minnesota"},{state_code:"MS",name:"Mississippi"},{state_code:"MO",name:"Missouri"},{state_code:"MT",name:"Montana"},{state_code:"NE",name:"Nebraska"},{state_code:"NV",name:"Nevada"},{state_code:"NH",name:"New Hampshire"},{state_code:"NJ",name:"New Jersey"},{state_code:"NM",name:"New Mexico"},{state_code:"NY",name:"New York"},{state_code:"NC",name:"North Carolina"},{state_code:"ND",name:"North Dakota"},{state_code:"OH",name:"Ohio"},{state_code:"OK",name:"Oklahoma"},{state_code:"OR",name:"Oregon"},{state_code:"PA",name:"Pennsylvania"},{state_code:"RI",name:"Rhode Island"},{state_code:"SC",name:"South Carolina"},{state_code:"SD",name:"South Dakota"},{state_code:"TN",name:"Tennessee"},{state_code:"TX",name:"Texas"},{state_code:"UT",name:"Utah"},{state_code:"VT",name:"Vermont"},{state_code:"VA",name:"Virginia"},{state_code:"WA",name:"Washington"},{state_code:"WV",name:"West Virginia"},{state_code:"WI",name:"Wisconsin"},{state_code:"WY",name:"Wyoming"}],$scope.cookie_domain=null,$scope.trackers={use_dd:!0,use_ga:!0},$scope.enable_step_timer_tracking=!1,$scope.user_choices=[],$scope.valid_user_choices={custom:function(){return!0},ok_explicit_content:["no","yes"],ok_only_sex:["no","yes"],ok_secret:["no","yes"],pref_age:["25-","25_40","40+"],pref_body_type:["average","bbw","big_boobs","big_butts","skinny"],pref_ethnicity:["asian","black","latina","other","white"],pref_gender:["men","women"],pref_relationship:["dating","fwb","married","ons"],user_age:function(label){return parseInt(label)>=18},user_body_type:["athletic","muscular","round","slim"],user_ethnicity:["asian","black","east_indian","islander","hispanic","middle_eastern","native_american","white"],user_eyes:["amber","blue","brown","gray","green","hazel"],user_gender:["man","woman"],user_hair:["auburn","black","blond","brown","chestnut","red","gray_white"],user_height:["172-","172_182","182+"],user_pubic_hair:["bald","shaved","unshaved"],user_relationship:["divorced","fuck_buddies","gay_couple","living_together","married","relationship","single","widowed"]},$scope.ga_campaign_set=!1,$scope.save_timeout=2e3,$scope.checking_field=!1,$scope.enable_email_save=!0,$scope.enable_phone_save=!0,$scope.translations={},$scope.check_autologin=!0,$scope.pushNotifications={isLoaded:!1,isSubscribed:!1,subscribeStep:0},$scope.isTagManagerLoaded=!1,$scope.gdprModal={},$scope.isCountryLoaded=!1,$scope.setTracking=function(){try{$scope.tracking.t=parseInt(QueryString.t),$scope.tracking.aid=parseInt(QueryString.aid)}catch(err){}$scope.tracking.sid=QueryString.sid,$scope.tracking.reff=document.referrer,void 0!==QueryString.upgrade_t&&($scope.tracking.upgrade_t=parseInt(QueryString.upgrade_t)),$scope.tracking.t?ipCookie("tour",$scope.tracking.t,{expires:180,domain:$scope.cookiesDomain,path:"/"}):ipCookie("tour")?$scope.tracking.t=parseInt(ipCookie("tour")):ipCookie("bdtour")?($scope.tracking.t=parseInt(ipCookie("bdtour")),ipCookie("tour",$scope.tracking.t,{expires:180,domain:$scope.cookiesDomain,path:"/"})):$scope.setDefaultTour(11894),$scope.tracking.aid?ipCookie("affsubid",$scope.tracking.aid+"-"+$scope.tracking.sid,{expires:180,domain:$scope.cookiesDomain,path:"/"}):ipCookie("affsubid")?$scope.parseAffSubid(ipCookie("affsubid")):ipCookie($scope.BD_LEGACY_PRODUCT._())?($scope.parseAffSubid(ipCookie($scope.BD_LEGACY_PRODUCT._())),ipCookie("affsubid",$scope.tracking.aid+"-"+$scope.tracking.sid,{expires:180,domain:$scope.cookiesDomain,path:"/"})):$scope.setDefaultAffSubid(103263,""),ipCookie("reff",$scope.tracking.reff,{expires:1,domain:$scope.cookiesDomain,path:"/"}),$scope.tracking.upgrade_t?ipCookie("upgrade_tour",$scope.tracking.upgrade_t,{expires:180,domain:$scope.cookiesDomain,path:"/"}):ipCookie("upgrade_tour")?$scope.tracking.upgrade_t=parseInt(ipCookie("upgrade_tour")):$scope.setDefaultUpgradeTour(0),$scope.tracking.moarid="|"+$scope.tracking.aid+"_"+$scope.tracking.t+"_"+$scope.tracking.sid},$scope.parseAffSubid=function(cookie){$scope.tracking.aid=parseInt(cookie.substring(0,cookie.indexOf("-"))),$scope.tracking.sid=cookie.substring(cookie.indexOf("-")+1)},$scope.setDefaultTour=function(tour_id){$scope.tracking.t=parseInt(tour_id),ipCookie("tour",$scope.tracking.t,{expires:180,domain:$scope.cookiesDomain,path:"/"})},$scope.setDefaultAffSubid=function(aid,sid){$scope.tracking.aid=parseInt(aid),$scope.tracking.sid=sid,ipCookie("affsubid",$scope.tracking.aid+"-"+$scope.tracking.sid,{expires:180,domain:$scope.cookiesDomain,path:"/"})},$scope.setDefaultUpgradeTour=function(upgrade_tour){$scope.tracking.upgrade_t=parseInt(upgrade_tour),ipCookie("upgrade_tour",$scope.tracking.upgrade_t,{expires:180,domain:$scope.cookiesDomain,path:"/"})},$scope.setRedirect=function(){$scope.redirect=encodeURIComponent($scope.PRODUCT_DOMAINS[$scope.product._()]._()),$scope.WH_WHITELABELS.indexOf($scope.product._())>-1&&($scope.redirect+=encodeURIComponent($scope.WH_UPGRADE_PATH))},$scope.setCustomTracking=function(){var custom_tracking=APIFactory.fetchCustomTracking();custom_tracking.success?($scope.num_waiting+=1,custom_tracking.success((function(data){$scope.num_waiting-=1,ipCookie("custom_tracking",angular.toJson(data),{expires:180,domain:$scope.cookiesDomain,path:"/"}),$scope.setPropCookies(data)}))):$scope.setPropCookies(custom_tracking)},$scope.setPropCookies=function(custom_tracking){var query_vars=QueryString,query_arr=[],is_first=!0;angular.forEach(query_vars,(function(value,key){-1===$scope.EXTRA_PARAMS.indexOf(key.toLowerCase())&&(query_arr[key]=value,is_first?($scope.custom_tracking_qstring=key+"="+value,is_first=!1):$scope.custom_tracking_qstring+="&"+key+"="+value)})),angular.forEach(custom_tracking,(function(custom_track){query_arr[custom_track]&&($scope.custom_tracking[custom_track]=query_arr[custom_track],ipCookie("prop_"+custom_track,query_arr[custom_track],{expires:1,domain:$scope.cookiesDomain,path:"/"}))}))},$scope.setPropCookie=function(custom_track,value){if("string"==typeof custom_track&&-1!==["string","number"].indexOf(typeof value)){var custom_tracking=angular.fromJson(ipCookie("custom_tracking"));void 0!==custom_tracking&&-1!==custom_tracking.indexOf(custom_track)&&($scope.custom_tracking[custom_track]=value,ipCookie("prop_"+custom_track,value,{expires:1,domain:$scope.cookiesDomain,path:"/"}))}},$scope.fetchSavedCustomTracking=function(){for(var custom_tracking={},theCookies=document.cookie.split(";"),i=1;i<=theCookies.length;i++){var key=theCookies[i-1].split("=")[0],value=theCookies[i-1].substring(theCookies[i-1].indexOf("=")+1);key.indexOf("prop_")>-1&&(custom_tracking[key=key.replace("prop_","").trim()]=decodeURIComponent(value))}return custom_tracking},$scope.setCountry=function(forceGeoIP){var getFromQuerystring=function(data){var country=QueryString.i18n_country,found=!1;angular.forEach(data,(function(value){value["alpha-2"]===country&&(found=!0)})),found?($scope.i18n_country=country,$scope.country=country,postProcess()):$scope.setCountry(!0)},getFromGeoIP=function(geoip){$scope.country=geoip.country_code,postProcess()},postProcess=function(){void 0!==$scope.GDPR_VALID_COUNTRIES[$scope.domain._()]&&-1===$scope.GDPR_VALID_COUNTRIES[$scope.domain._()].indexOf($scope.country)&&window.location.replace($scope.GDPR_REDIRECT_URLS[$scope.domain._()]._()),$scope.isCountryLoaded=!0,$scope.enable_country_check=!1;var $input=$("input[ng-model=zipcode]");$input&&(-1!==$scope.ZIPCODE_ALPHA_COUNTRIES.indexOf($scope.country)?$input.attr("type","text"):$input.attr("type","tel"))};if(forceGeoIP||"string"!=typeof QueryString.i18n_country){var geoip=APIFactory.fetchGeoIP();geoip.success?($scope.num_waiting+=1,geoip.success((function(data){$scope.num_waiting-=1,ipCookie("geoip",angular.toJson(data),{expires:180,domain:$scope.cookiesDomain,path:"/"}),getFromGeoIP(data)}))):getFromGeoIP(geoip)}else{var countryList=APIFactory.fetchCountryList();countryList.success?($scope.num_waiting+=1,countryList.success((function(data){if($scope.num_waiting-=1,window.localStorage)try{localStorage.setItem("countries",angular.toJson({timestamp:(new Date).getTime(),data:data}))}catch(e){}getFromQuerystring(data)}))):getFromQuerystring(countryList)}},$scope.getCleanProductName=function(){return void 0!==$scope.PRODUCT_NAMES[$scope.product._()]?$scope.PRODUCT_NAMES[$scope.product._()]._():""},$scope.getProductDomain=function(){return void 0!==$scope.PRODUCT_DOMAINS[$scope.product._()]?$scope.PRODUCT_DOMAINS[$scope.product._()]._():""},$scope.loadGdprModal=function(){if($scope.isCountryLoaded){if(-1!==$scope.GDPR_COUNTRIES.indexOf($scope.country)){var link_terms=$scope.getProductDomain()+"/terms",link_privacy=$scope.getProductDomain()+"/privacy",cta=$scope.gdprModal.cta||"Start Fucking Now!",html='<div class="modal modal-gdpr is-active"><div class="modal_container"><span class="modal_title">We Care About Your Privacy</span><div class="gdpr"><label class="gdpr_label" for="gdpr_checkbox" ng-click="gdprCheckboxClick($event)"><input type="checkbox" id="gdpr_checkbox" /><span class="gdpr_check"></span><div class="gdpr_error"><b>GDPR Compliance:</b> To continue you have to agree with our <a href="'+link_terms+'" target="_blank">Terms</a> and <a href="'+link_privacy+'" target="_blank">Privacy Policy</a>.</div></label><p class="gdpr_disclaimer" style="position:relative; overflow:hidden; float:right; max-width:17.375rem; width:calc(100% - 2.375rem); margin-top:0; margin-bottom:0; padding-left:.625rem; font-size:.88rem; font-weight:400; color: #4A4A4A; line-height:1.25;">Yes, I agree to <a href="'+link_terms+'" target="_blank">Terms</a> and <a href="'+link_privacy+'" target="_blank">Privacy Policy</a> including use of cookies and to receive newsletters, account updates and offers sent by '+$scope.getCleanProductName()+'.</p></div><button type="button" class="modal_button is-disabled" ng-click="gdprButtonClick($event)">'+cta+'<svg class="modal_button_arrow" viewbox="0 0 10 15" xmlns="http://www.w3.org/2000/svg"><path d="M.01 12.23l2.32 2.32L9.6 7.28 2.32 0 0 2.32l4.96 4.96-4.95 4.95z" fill="currentColor" fill-rule="evenodd"/></svg></button></div></div>',head=document.head,style=document.createElement("style");style.type="text/css",style.appendChild(document.createTextNode('.modal-gdpr { position:fixed; top:0; left:0; z-index:1000; display: flex; align-items:center; justify-content:center; width:100%; height:100%; opacity:0; visibility:hidden; background-color:rgba(0,0,0,.6); transition: all 0.2s ease-out; }.modal-gdpr.is-active { opacity: 1; visibility: visible; }.modal-gdpr .modal_container { box-sizing:border-box; width:100%; max-width:18.75rem; padding:1.625rem .625rem; background-color:#fff; color:#4A4A4A; font-size:.75rem; border-radius:.5rem; }.modal-gdpr .modal_title { display:block; margin-bottom:1rem; padding:0 1.125rem; font-size:1.21rem; font-weight:700; }.gdpr { position:relative; display:flex; justify-content:center; align-items:center; max-width:88%; margin-left:auto; margin-right: auto; }.gdpr_label { position:relative; width:1.4rem; height:1.4rem; margin-right:auto; border:2px solid #B9B9B9; border-radius:.1875rem; }#gdpr_checkbox { -webkit-appearance: none; -moz-appearance: none; appearance: none; }.gdpr_check { position: absolute; top: 50%; left: 50%; display:block; width:.625rem; height:.3125rem; transform:rotate(315deg) translate(0,-100%); border-bottom:.25rem solid #212121; border-left:.25rem solid #212121; opacity: 0; }#gdpr_checkbox:checked + .gdpr_check { opacity: 1; }.gdpr_error { position: absolute; top: 50%; left: 2.9rem; z-index:10; max-width:13.4rem; width:12.5rem; padding:.7rem; color:#4A4A4A; background-color:#fff; font-size:.72rem; letter-spacing:.03125rem; line-height: 1.3; transform: translate3d(10%,-50%,0); border-radius:.4375rem; box-shadow:0 2px 15px -3px rgba(0,0,0,.5); opacity:0; visibility:hidden; transition:all .4s ease-out;}.not-valid .gdpr_error { transform: translate3d(0, -50%, 0); opacity: 1; visibility: visible; }.not-valid #gdpr_checkbox:checked ~ .gdpr_error { transform: translate3d(10%, -50%, 0); opacity: 0;}.gdpr_error:after { content: ""; position: absolute; top: 50%; right: 100%; width: 0; height: 0; border-style: solid; border-width: .4375rem .75rem .4375rem 0; border-color: transparent #fff transparent transparent; transform: translateY(-50%); }.gdpr_error b { font-weight: 600; }.gdpr_error a { font-weight: 700;}.gdpr_disclaimer { box-sizing: border-box; position: relative; overflow: hidden; float: right; max-width: 17.375rem; width: calc(100% - 2.375rem); margin-top: 0; margin-bottom: 0; padding-left: .625rem; text-align: left; font-size: .88rem; font-weight: 400; color: #4A4A4A; line-height: 1.25; }.gdpr_disclaimer a { font-weight: bold; }.modal-gdpr .modal_button { width: 100%; margin-top: 2.125rem; margin-bottom: 0; padding: .8rem; background-color: #ececec; font-size: 1rem; border-radius: 0.25rem; }.modal-gdpr .modal_button.is-disabled { border: 1px solid #979797; color: #979797; background-color: transparent; }.modal-gdpr .modal_button_arrow { position: relative; top: -0.05rem; left: 2.25rem; width: 0.625rem; height: 0.9375rem; vertical-align: middle; }')),head.appendChild(style),document.body.insertAdjacentHTML("beforeend",html),document.querySelector(".modal-gdpr .modal_button").addEventListener("click",(function(){var modal=document.querySelector(".modal-gdpr");this.classList.contains("is-disabled")?modal.classList.add("not-valid"):modal.classList.remove("is-active")})),document.querySelector(".gdpr_label").addEventListener("click",(function(){var submitBtn=document.querySelector(".modal-gdpr .modal_button"),checkbox=document.querySelector("#gdpr_checkbox"),modal=document.querySelector(".modal-gdpr");checkbox.checked?(modal.classList.remove("not-valid"),submitBtn.classList.remove("is-disabled")):submitBtn.classList.add("is-disabled")}))}}else var listener=$scope.$watch("isCountryLoaded",(function(){!0===$scope.isCountryLoaded&&($scope.loadGdprModal(),listener())}))},$scope.isAffiliateTerminated=function(){var is_terminated=APIFactory.isAffiliateTerminated($scope.tracking.aid);is_terminated.success?is_terminated.success((function(data){ipCookie("affiliate_"+$scope.tracking.aid+"_is_terminated",data,{expires:180,domain:$scope.cookiesDomain,path:"/"}),1===data&&(window.location=$scope.AFFILIATE_TERMINATED_URL)})):1===is_terminated&&(window.location=$scope.AFFILIATE_TERMINATED_URL)},$scope.generateGUID=function(){ipCookie("guid")||APIFactory.generateGUID()},$scope.sendTrackHit=function(track_hit,trackers){var track_info;if(-1!==["curr_step","upgrade_curr_step","registration","step_time","user_choice"].indexOf(track_hit.type))switch((trackers=trackers||{}).use_dd=void 0!==trackers.use_dd?trackers.use_dd:$scope.trackers.use_dd,trackers.use_ga=void 0!==trackers.use_ga?trackers.use_ga:$scope.trackers.use_ga,trackers.use_ga&&"function"==typeof window.ga&&!$scope.ga_campaign_set&&$scope.sendEventTrackersGA("set","campaignId",["Tour: "+$scope.tracking.t],(function(){$scope.ga_campaign_set=!0})),track_hit.type){case"curr_step":track_hit.curr_step>$scope.tracking.last_tracked_step&&(trackers.use_ga&&"function"==typeof window.ga&&$scope.sendEventTrackersGA("send","event",["Tour: "+$scope.tracking.t,"Current step: "+(track_hit.curr_step<10?"0"+track_hit.curr_step:track_hit.curr_step),"Total steps: "+track_hit.num_steps]),$scope.tagLo("Step: "+track_hit.curr_step),$scope.trackHotjar("step"+track_hit.curr_step),$scope.tracking.last_tracked_step=track_hit.curr_step);break;case"upgrade_curr_step":track_hit.curr_step>$scope.tracking.upgrade_last_tracked_step&&(trackers.use_ga&&"function"==typeof window.ga&&$scope.sendEventTrackersGA("send","event",["Upgrade Page: "+$scope.tracking.upgrade_t,"Current step: "+(track_hit.curr_step<10?"0"+track_hit.curr_step:track_hit.curr_step),"Total steps: "+track_hit.num_steps]),$scope.tagLo("Upgrade step: "+track_hit.curr_step),$scope.trackHotjar("upgrade_step"+track_hit.curr_step),$scope.tracking.upgrade_last_tracked_step=track_hit.curr_step);break;case"step_time":if($scope.enable_step_timer_tracking&&trackers.use_dd&&void 0!==$scope.DD_METRIC_NAMES.step_time[$scope.product._()]){var curr_time=(new Date).getTime();track_info={tour_id:$scope.tracking.t,curr_step:track_hit.curr_step<10?"0"+track_hit.curr_step:track_hit.curr_step},$scope.WH_WHITELABELS.indexOf($scope.product._())>-1&&(track_info.whitelabel=$scope.product),APIFactory.trackDataDogHistogram($scope.DD_METRIC_NAMES.step_time[$scope.product._()]._(),$scope.tracking.step_timer,curr_time,track_info,null),$scope.tracking.step_timer=curr_time}break;case"registration":trackers.use_ga&&"function"==typeof window.ga&&$scope.sendEventTrackersGA("send","event",["Tour: "+$scope.tracking.t,"Free Registration","success"]);break;case"user_choice":trackers.use_ga&&"function"==typeof window.ga&&$scope.sendEventTrackersGA("send","event",["Tour: "+$scope.tracking.t,track_hit.action,track_hit.label])}},$scope.sendEventTrackersGA=function(event,hitType,fields,callback){angular.forEach($scope.GA_TRACKERS_CONFIG,(function(ga_tracker){var tracker_name="default"===ga_tracker.tracker?"":ga_tracker.tracker+".";("*"===ga_tracker.tours||ga_tracker.tours.indexOf((window.location.host+window.location.pathname)._())>-1)&&(window.ga(tracker_name+event,hitType,...fields),callback&&"function"==typeof callback&&callback())}))},$scope.userChoice=function(action,label){if("string"==typeof action&&action.trim().length&&("string"==typeof label||!isNaN(label))&&label.toString().trim().length){var valid_action=$scope.valid_user_choices[action];if(valid_action&&("function"!=typeof valid_action||valid_action(label))){if(valid_action instanceof Array){if(!valid_action.find((function(el){return el===label})))return}for(var i=0;i<$scope.user_choices.length;i++)if($scope.user_choices[i][0]===action&&$scope.user_choices[i][1]===label)return;$scope.user_choices.push([action,label]);var track_hit={type:"user_choice",action:action,label:label};$scope.sendTrackHit(track_hit,{use_dd:!1,use_ga:!0})}}},$scope.loadAnalytics=function(){"function"!=typeof window.ga&&void 0!==$scope.GA_PATHS[$scope.domain._()]&&(window.ga=window.ga||function(){window.ga.q=window.ga.q||[],arguments[0]&&"create"===arguments[0]?window.ga.q.unshift(arguments):window.ga.q.push(arguments)},$.getScript($scope.cdn+$scope.GA_PATHS[$scope.domain._()]._()))},$scope.loadTagManager=function(){$scope.isTagManagerLoaded||void 0===$scope.GTM_PATHS[$scope.domain._()]||$.getScript($scope.cdn+$scope.GTM_PATHS[$scope.domain._()]._(),(function(){$scope.isTagManagerLoaded=!0}))},$scope.loadLo=function(){"object"!=typeof window.LO&&window.__lo_site_id&&$.getScript("https://d10lpsik1i8c69.cloudfront.net/w.js",(function(){$scope.tagLo("Tour: "+$scope.tracking.t)}))},$scope.tagLo=function(tag,star,unique){"string"==typeof tag&&tag.trim().length&&(star="boolean"==typeof star&&star,unique="boolean"==typeof unique&&star,window._loq=window._loq||[],window._loq.push(["tag",tag,star,unique]))},$scope.loadHotjar=function(){"function"!=typeof window.hjBootstrap&&"object"==typeof window._hjSettings&&$.getScript("https://static.hotjar.com/c/hotjar-"+window._hjSettings.hjid+".js?sv="+window._hjSettings.hjsv)},$scope.trackHotjar=function(tag){"function"==typeof window.hj&&"string"==typeof tag&&tag.trim().length&&window.hj("vpv","/"+tag)},$scope.loadPushNotifications=function(){if(!$scope.pushNotifications.isLoaded){window._izq=window._izq||[],window._izq.push(["init"]),window._izq.push(["register_callback",function(obj){1===obj.statuscode&&($scope.pushNotifications.isSubscribed=!0,$scope.tagPushNotifications("Tour",$scope.tracking.t),$scope.tagPushNotifications("usertype","NONFREE"),"internal_testing"===$scope.tracking.sid&&$scope.tagPushNotifications("testing","true"))}]);const params=new URLSearchParams(location.search);window._izq.push(["event","izooto_tracking",{tid:$scope.tracking.t,aid:params.get("aid"),sid:params.get("sid"),hts_id:params.get("hts_id")}]),$scope.pushNotifications.subscribeStep||$scope.subscribePushNotifications()}},$scope.subscribePushNotifications=function(){$scope.pushNotifications.isLoaded||$scope.pushNotifications.isSubscribed||$.getScript($scope.PUSH_NOTIFICATIONS_LINKS[$scope.domain._()],(function(){$scope.pushNotifications.isLoaded=!0}))},$scope.tagPushNotifications=function(tag,value){if("string"==typeof tag&&tag.trim().length&&value){var data={};data[tag]=String(value),window._izq=window._izq||[],window._izq.push(["userProfile",{add:data}])}},$scope.handleDJSRequest=function(){$scope.errors=[],$scope.num_waiting>0?$scope.$watch("num_waiting",(function(num_waiting){0===num_waiting&&$scope.validateDJSRequest()})):$scope.validateDJSRequest()},$scope.validateDJSRequest=function(){var form={username:$scope.username.replace(/ /g,""),password:$scope.password.replace(/ /g,""),email:$scope.email.replace(/ /g,""),zipcode:$scope.zipcode.replace(/[^a-zA-Z 0-9-]+/g,""),country:$scope.country,first_name:$scope.first_name,last_name:$scope.last_name,full_name:$scope.full_name,city:$scope.city,state:$scope.state,address_1:$scope.address_1,address_2:$scope.address_2,phone:$scope.phone,xtype:$scope.xtype,ruleset:$scope.ruleset,pi_code:$scope.pi_code,product:$scope.product};form.zipcode=form.zipcode.replace(/ /g,"");var result=validateFactory.isEmailValid(form.email);!0!==result&&$scope.errors.push({field:"email",error:result}),$scope.enable_username_check&&!0!==(result=validateFactory.isDJSUsernameValid(form.username))&&$scope.errors.push({field:"username",error:result}),$scope.enable_password_check&&!0!==(result=validateFactory.isDJSPasswordValid(form.password))&&$scope.errors.push({field:"password",error:result}),$scope.enable_country_check&&!0!==(result=validateFactory.isCountryValid(form.country))&&$scope.errors.push({field:"country",error:result}),$scope.enable_zip_check&&!0!==(result=validateFactory.isDJSZipcodeValid(form.zipcode))&&$scope.errors.push({field:"zipcode",error:result}),$scope.enable_name_check&&(!0!==(result=validateFactory.isFirstNameValid(form.first_name))&&$scope.errors.push({field:"first_name",error:result}),!0!==(result=validateFactory.isLastNameValid(form.last_name))&&$scope.errors.push({field:"last_name",error:result})),$scope.enable_fullname_check&&!0!==(result=validateFactory.isFullNameValid(form.full_name))&&$scope.errors.push({field:"full_name",error:result}),$scope.enable_address_verify&&(!0!==(result=validateFactory.isAddressValid(form.address_1))&&$scope.errors.push({field:"address",error:result}),!0!==(result=validateFactory.isCityValid(form.city))&&$scope.errors.push({field:"city",error:result}),!0!==(result=validateFactory.isStateValid(form.state))&&$scope.errors.push({field:"state",error:result})),0===$scope.errors.length?$scope.doDJSLink(form):APIFactory.logUTLAttempt(form,$scope.tracking,0)},$scope.doDJSLink=function(form){var custom_tracking=$scope.fetchSavedCustomTracking();APIFactory.generateDJSRedirect(form,$scope.tracking,custom_tracking).success((function(data){var location;"ERROR"===data.result?"active_email"===data.error?(location=$scope.BD_EMAIL_LOGIN_URLS[$scope.product._()]||$scope.BD_EMAIL_LOGIN_URLS[$scope.BD_LEGACY_PRODUCT],window.location=location._().replace("$email",$scope.email)):"active_account"===data.error?(location=$scope.BD_LOGIN_URLS[$scope.product._()]||$scope.BD_LOGIN_URLS[$scope.BD_LEGACY_PRODUCT],window.location=location._().replace("$username",$scope.username).replace("$password",$scope.password)):$scope.errors.push({field:data.field,error:data.error}):$scope.djs_redirect=data.djs_redirect}))},$scope.handleWHRequest=function(){$scope.errors=[];var start_time=(new Date).getTime();ipCookie("start_time",start_time,{expires:1,domain:$scope.cookiesDomain,path:"/"});var test_user=isTestUser($scope.email);APIFactory.trackDataDog("wh.registration.tour.submit",{sent:"ok",whitelabel:$scope.product,test_user:test_user,tour_id:$scope.tracking.t,affiliate_id:$scope.tracking.aid,country:"US"===$scope.country?"US":"non-US"},$scope.email),$scope.num_waiting>0?$scope.$watch("num_waiting",(function(num_waiting){0===num_waiting&&$scope.validateWHRequest()})):$scope.validateWHRequest()},$scope.validateWHRequest=function(){var form={password:$scope.password,email:$scope.email.replace(/ /g,""),zipcode:$scope.zipcode,gender:$scope.gender,age:parseInt($scope.age,10),country:$scope.country,resend_conf_email:$scope.resend_conf_email};-1!==$scope.ZIPCODE_ACCEPT_COUNTRIES.indexOf($scope.country)&&"-"!==$scope.zipcode||(form.zipcode=$scope.DEFAULT_ZIPCODE);var result=validateFactory.isWHEmailValid(form.email);!0!==result&&$scope.errors.push({field:"email",error:result}),$scope.enable_password_check&&!0!==(result=validateFactory.isWHPasswordValid(form.password))&&$scope.errors.push({field:"password",error:result}),$scope.enable_zip_check_wh&&-1!==$scope.ZIPCODE_VALIDATE_COUNTRIES.indexOf($scope.country)&&!0!==(result=validateFactory.isWHZipcodeValid(form.zipcode))&&$scope.errors.push({field:"zipcode",error:result}),$scope.enable_age_check&&!0!==(result=validateFactory.isAgeValid(form.age))&&$scope.errors.push({field:"age",error:result}),$scope.enable_unick_check&&(form.unick=$scope.unick,!0!==(result=validateFactory.isWHUsernameValid(form.unick))&&$scope.errors.push({field:"unick",error:result})),$scope.errors.length||($scope.sending_to_wh=!0,APIFactory.createDatingFreeUser($scope.product,form,$scope.tracking,$scope.fetchSavedCustomTracking()).success((function(res){$scope.sending_to_wh=!1,$scope.sendTrackHit({type:"registration"}),$scope.tagPushNotifications("usertype","FREE"),$scope.wh_login=res.data.auto_login+(res.data.auto_login.indexOf("?")>-1?"&":"?")+"r=",$scope.setRedirect(res.data)})).error((function(res){$scope.sending_to_wh=!1;var end_time=(new Date).getTime(),test_user=isTestUser($scope.email);APIFactory.trackDataDogHistogram("wh.registration.user",ipCookie("start_time"),end_time,{whitelabel:$scope.product,need_user_interaction:ipCookie("need_user_interaction"),result:"error",test_user:test_user}),$scope.errors=APIFactory.parseDatingApiErrorResponse(res,"email"),$scope.tracking.step_timer=end_time})))},$scope.handleSVUserRequest=function(){$scope.errors=[],$scope.num_waiting>0?$scope.$watch("num_waiting",(function(num_waiting){0===num_waiting&&$scope.validateSVUserRequest()})):$scope.validateSVUserRequest()},$scope.validateSVUserRequest=function(){var form={password:$scope.password,email:$scope.email.replace(/ /g,""),zipcode:$scope.zipcode.replace(/[^a-zA-Z 0-9-]+/g,""),age:parseInt($scope.age,10),gender:$scope.gender,first_name:$scope.first_name,last_name:$scope.last_name,country:$scope.country,phone:$scope.phone,ruleset:$scope.ruleset,pi_code:$scope.pi_code},result=validateFactory.isEmailValid(form.email);if(!0!==result&&$scope.errors.push({field:"email",error:result}),$scope.enable_sv_name_check&&(!0!==(result=validateFactory.isFirstNameValid(form.first_name))&&$scope.errors.push({field:"first_name",error:result}),!0!==(result=validateFactory.isLastNameValid(form.last_name))&&$scope.errors.push({field:"last_name",error:result})),$scope.enable_password_check&&!0!==(result=validateFactory.isDJSPasswordValid(form.password))&&$scope.errors.push({field:"password",error:result}),0===$scope.errors.length){$scope.sending_to_sv=!0;var custom_tracking=$scope.fetchSavedCustomTracking();APIFactory.createSVUser(form,$scope.tracking,custom_tracking).success((function(data){$scope.sending_to_sv=!1,"ERROR"===data.result?$scope.errors=data.errors:$scope.djs_redirect=data.djs_link}))}},$scope.handleSVRequest=function(){$scope.errors=[],$scope.num_waiting>0?$scope.$watch("num_waiting",(function(num_waiting){0===num_waiting&&$scope.validateSVRequest()})):$scope.validateSVRequest()},$scope.validateSVRequest=function(){var form={t:$scope.tracking.t,aid:$scope.tracking.aid,sid:$scope.tracking.sid,did:$scope.sv_did,password:$scope.password,email:$scope.email.replace(/ /g,""),first_name:$scope.first_name,last_name:$scope.last_name,ruleset:$scope.ruleset},custom_tracking=$scope.fetchSavedCustomTracking();if(null!==custom_tracking&&"object"==typeof custom_tracking)for(var attrs in custom_tracking)form[attrs]=custom_tracking[attrs];var result=validateFactory.isEmailValid(form.email);!0!==result&&$scope.errors.push({field:"email",error:result}),$scope.enable_sv_name_check&&(!0!==(result=validateFactory.isFirstNameValid(form.first_name))&&$scope.errors.push({field:"first_name",error:result}),!0!==(result=validateFactory.isLastNameValid(form.last_name))&&$scope.errors.push({field:"last_name",error:result})),$scope.enable_password_check&&!0!==(result=validateFactory.isDJSPasswordValid(form.password))&&$scope.errors.push({field:"password",error:result}),0===$scope.errors.length&&($scope.sending_to_sv=!0,APIFactory.createSVFreeUser(form).success((function(res){$scope.sending_to_sv=!1,"SUCCESS"===res.status?($scope.djs_redirect=res.data.billing_url,$scope.sv_user_token=res.data.token,null!==$scope.sv_search_query&&($scope.djs_redirect+=($scope.djs_redirect.indexOf("?")>-1?"&":"?")+"sv_search_query="+encodeURIComponent(JSON.stringify($scope.sv_search_query)))):"ACCOUNT_EXISTS"===res.status?window.location.assign($scope.SV_LOGIN_URL._()+res.login_token):$scope.parseSVError(res.message)})))},$scope.handleSVReportRequest=function(type,callback){$scope.checkSVReportType(type),$scope.errors=[],$scope.num_waiting>0?$scope.$watch("num_waiting",(function(num_waiting){0===num_waiting&&$scope.validateSVReportRequest(type,callback)})):$scope.validateSVReportRequest(type,callback)},$scope.validateSVReportRequest=function(type,callback){$scope.checkSVReportType(type);var result,form={};switch(type){case"address":!isNaN($scope.sv_report_zip)&&$scope.sv_report_zip&&(form.zip=$scope.sv_report_zip),form.city=$scope.sv_report_city,!0!==(result=validateFactory.isSVCityValid(form.city))&&$scope.errors.push({field:"sv_report_city",error:result}),form.state=$scope.sv_report_state,!0!==(result=validateFactory.isSVStateValid(form.state))&&$scope.errors.push({field:"sv_report_state",error:result}),form.street=$scope.sv_report_street,!0!==(result=validateFactory.isSVStreetValid(form.street))&&$scope.errors.push({field:"sv_report_street",error:result});break;case"email":form.email=$scope.sv_report_email,!0!==(result=validateFactory.isEmailValid(form.email))&&$scope.errors.push({field:"sv_report_email",error:result});break;case"person":if(!isNaN($scope.sv_report_age)&&$scope.sv_report_age&&(form.age=$scope.sv_report_age),"string"==typeof $scope.sv_report_city&&$scope.sv_report_city.length&&(form.city=$scope.sv_report_city),"string"==typeof $scope.sv_report_first_name&&$scope.sv_report_first_name.length&&(form.first_name=$scope.sv_report_first_name),"string"==typeof $scope.sv_report_full_name&&$scope.sv_report_full_name.length&&(form.full_name=$scope.sv_report_full_name),"string"==typeof $scope.sv_report_last_name&&$scope.sv_report_last_name.length&&(form.last_name=$scope.sv_report_last_name),"string"==typeof $scope.sv_report_state&&$scope.sv_report_state.length&&(form.state=$scope.sv_report_state),angular.equals(form,{}))for(var fields=["sv_report_age","sv_report_city","sv_report_first_name","sv_report_full_name","sv_report_last_name","sv_report_state"],i=0;i<fields.length;i++)$scope.errors.push({field:fields[i],error:"At least one field must be filled out."});break;case"phone":form.phone_number=$scope.sv_report_phone_number,!0!==(result=validateFactory.isSVPhoneValid(form.phone_number))&&$scope.errors.push({field:"sv_report_phone_number",error:result});break;case"phone_wp":form.phone_number=$scope.sv_report_phone_number,form.user_token=$scope.sv_user_token,!0!==(result=validateFactory.isSVPhoneValid(form.phone_number))&&$scope.errors.push({field:"sv_report_phone_number",error:result});break;case"sexoffenders":form.zipcode=$scope.sv_report_zip,!0!==(result=validateFactory.isSVZipValid(form.zipcode))&&$scope.errors.push({field:"sv_report_zip",error:result})}0===$scope.errors.length&&($scope.sending_sv_report=!0,APIFactory.getSVReport(type,form).success((function(res,status){if($scope.sending_sv_report=!1,"SUCCESS"===res.status||res.query_id||200===status){var results="phone_wp"!==type?res.results:res;$scope.parseSVReport(results)}else res.error_code?$scope.parseSVError(res.error_code,!0):$scope.parseSVError(res.message,!0)})).error((function(){$scope.parseSVReport([])})),"function"==typeof callback&&callback())},$scope.checkSVReportType=function(type){if("string"!=typeof type||-1===$scope.SV_REPORT_TYPES.indexOf(type.toLowerCase()))throw Error("Report type must be provided.")},$scope.parseSVReport=function(results){for(var i=0;i<results.length;i++)results[i].setDid=function(callback){$scope.sv_did=this.did||"",void 0!==this.offenderid&&($scope.sv_search_query={name:this.name,age:this.age,sex:this.sex,photo:this.photo,location:{street1:this.street1,street2:this.street2,city:this.city,state:this.state,zipcode:this.zipcode,latitude:this.latitude,longitude:this.longitude}}),"function"==typeof callback&&callback($scope.sv_did)};$scope.sv_report_results=results},$scope.parseSVError=function(error,report){var field;error.toLowerCase().indexOf("email")>-1?field="email":error.toLowerCase().indexOf("city")>-1?field="city":error.toLowerCase().indexOf("first name")>-1?field="first_name":error.toLowerCase().indexOf("full name")>-1?field="full_name":error.toLowerCase().indexOf("last name")>-1?field="last_name":error.toLowerCase().indexOf("password")>-1?field="password":error.toLowerCase().indexOf("state")>-1?field="state":error.toLowerCase().indexOf("street")>-1?field="street":error.toLowerCase().indexOf("zipcode")>-1&&(field="zipcode"),report&&(field="zipcode"===field?"sv_report_zip":"sv_report_"+field),$scope.errors=[{field:field,error:error}]},$scope.prepopAvailable=function(type){switch(type){case"address":if(!0!==validateFactory.isSVCityValid($scope.sv_report_city)&&validateFactory.isSVStateValid($scope.sv_report_state)&&validateFactory.isSVStreetValid($scope.sv_report_street))return!0;break;case"email":if(validateFactory.isEmailValid($scope.sv_report_email))return!0;break;case"person":if(!isNaN($scope.sv_report_age)&&$scope.sv_report_age||"string"==typeof $scope.sv_report_city&&$scope.sv_report_city.length||"string"==typeof $scope.sv_report_first_name&&$scope.sv_report_first_name.length||"string"==typeof $scope.sv_report_full_name&&$scope.sv_report_full_name.length||"string"==typeof $scope.sv_report_last_name&&$scope.sv_report_last_name.length||"string"==typeof $scope.sv_report_state&&$scope.sv_report_state.length)return!0;break;case"phone":if(validateFactory.isSVPhoneValid($scope.sv_report_phone_number))return!0;break;case"sexoffenders":if(validateFactory.isSVZipValid($scope.sv_report_zip))return!0}return!1};for(var i=0;i<$scope.SV_PARAM_NAMES.length;i++){var currentParam=$scope.SV_PARAM_NAMES[i];if(QueryString[currentParam]){var currentValue=QueryString[currentParam];"zip"!==currentParam&&"age"!==currentParam||(currentValue=parseInt(currentValue)),$scope["sv_report_"+currentParam]=currentValue}}$scope.doWHAutologin=function(){window.onbeforeunload=null,APIFactory.trackDataDog("wh.registration.tour.login_cookie_redirect",{whitelabel:$scope.product,tour_id:$scope.tracking.t,source:"utl",domain:"internal"},null),void 0!==$scope.PRODUCT_DOMAINS[$scope.product._()]?window.location=$scope.PRODUCT_DOMAINS[$scope.product._()]._()+$scope.WH_HOME_PATH:window.location=$scope.PRODUCT_DOMAINS["l~wws~wwt"]._()+$scope.WH_HOME_PATH},$scope.checkWHAutoLogin=function(){ipCookie("autologin")&&$scope.doWHAutologin()},$scope.checkWHExternalAutoLogin=function(){if(void 0!==$scope.WH_EXTERNAL_AUTOLOGIN_URLS[$scope.product._()]){var receiver_host=location.protocol+"//"+location.hostname,sender_host=$scope.WH_EXTERNAL_AUTOLOGIN_URLS[$scope.product._()]._();window.addEventListener("message",(function(e){e.origin===sender_host&&"autologin cookie found"===e.data&&$scope.doWHAutologin()}));var iframe=document.createElement("iframe");iframe.setAttribute("id","autologin"),iframe.style.display="none",iframe.src=sender_host+"/common/html/check_external_autologin.html?receiver="+encodeURIComponent(receiver_host),document.body.appendChild(iframe)}},$scope.translate=function(key){var translation,country=$scope.country;return"object"==typeof $scope.translations[country]&&(translation=$scope.translations[country][key]),void 0===translation&&"object"==typeof $scope.translations.US&&(translation=$scope.translations.US[key]),translation||key},$scope.saveAbandoned=function(value){APIFactory.saveEmail(ipCookie("guid"),value,$scope.product)},$scope.setDomains=function(){var domain=window.location.hostname;if($scope.domain=domain,"localhost"!==domain){var domainParts=domain.split(".");$scope.cookiesDomain="."+domainParts[domainParts.length-2]+"."+domainParts[domainParts.length-1]}},$scope.setCdn=function(){void 0!==$scope.CDN_PATHS[$scope.domain._()]?$scope.cdn=$scope.CDN_PATHS[$scope.domain._()]._():$scope.cdn="//"+$scope.domain},$scope.normalizeProduct=function(){var product_name=$scope.product;if(!isNaN($scope.product)){var product_ID=parseInt($scope.product,10);for(var i in $scope.PRODUCT_IDS)$scope.PRODUCT_IDS[i]===product_ID&&(product_name=i._())}return product_name},$scope.generateGUID(),$scope.setDomains(),$scope.setCdn(),$scope.setTracking(),$scope.setCustomTracking(),$scope.setCountry(),$scope.isAffiliateTerminated(),$scope.loadAnalytics(),$scope.loadTagManager(),$scope.enable_email_save&&$scope.$watch("email",(function(){!1===$scope.checking_field&&($scope.checking_field=!0,$timeout((function(){"false"===isTestUser($scope.email)&&!0===validateFactory.isEmailValid($scope.email)&&$scope.saveAbandoned($scope.email),$scope.checking_field=!1}),$scope.save_timeout))})),$scope.enable_phone_save&&$scope.$watch("phone",(function(){!1===$scope.checking_field&&($scope.checking_field=!0,$timeout((function(){"false"===isTestUser($scope.email)&&!0===validateFactory.isPhoneValid($scope.phone)&&$scope.saveAbandoned($scope.phone),$scope.checking_field=!1}),$scope.save_timeout))})),$timeout((function(){$scope.check_autologin&&($scope.WH_EXTERNAL_AUTOLOGIN_DOMAINS.indexOf($scope.domain._())>-1?$scope.checkWHExternalAutoLogin():$scope.WH_AUTOLOGIN_DOMAINS.indexOf($scope.domain._())>-1&&$scope.checkWHAutoLogin())})),$timeout((function(){$scope.loadPushNotifications()})),$timeout((function(){$scope.product=$scope.normalizeProduct()}))}]),utl.filter("camelCase",(function(){return function(input,preserveSpecialChars){return preserveSpecialChars||(input=input.replace(/[^\w\d]/g," ")),input.toLowerCase().replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,(function(match,index){return 0==+match?"":0===index?match.toLowerCase():match.toUpperCase()}))}})),utl.filter("numberDD",(function(){return function(input){var lowBound,highBound;switch(input.length){case 1:lowBound=0,highBound=parseInt(input[0])-1;break;case 2:lowBound=parseInt(input[0]),highBound=parseInt(input[1]);break;default:return input}for(var result=[],i=lowBound;i<=highBound;i++)result.push(i);return result}})),utl.filter("trust",["$sce",function($sce){return function(htmlCode){return $sce.trustAsHtml(htmlCode)}}]),utl.directive("track",["APIFactory",function(APIFactory){return{restrict:"E",link:function(scope,element,attrs){attrs.tour&&11894===scope.tracking.t&&scope.setDefaultTour(attrs.tour),attrs.aid&&103263===scope.tracking.aid&&scope.setDefaultAffSubid(attrs.aid,""),attrs.type&&(scope.tracking.track_type=attrs.type);var custom_tracking=scope.fetchSavedCustomTracking();APIFactory.trackHit(scope.tracking,custom_tracking,scope.tracking.reff)}}}]),utl.directive("device",["APIFactory","ipCookie",function(APIFactory,ipCookie){function processDevice(device,element,attrs){angular.isUndefined(attrs.type)?element.text(device[attrs.info]):element.val(device[attrs.info])}return{restrict:"EC",link:function(scope,element,attrs){var device=APIFactory.fetchDeviceInfo();device.success?(scope.num_waiting+=1,device.success((function(data){scope.num_waiting-=1,ipCookie("device",angular.toJson(data),{expires:180,domain:scope.cookiesDomain,path:"/"}),processDevice(data,element,attrs)}))):processDevice(device,element,attrs)}}}]),utl.directive("deviceMPP",["APIFactory","ipCookie",function(APIFactory,ipCookie){function processMPP(device,scope,element,attrs){var conditions=attrs.conditions.split("|");angular.forEach(conditions,(function(condition){var logic=[],params=condition.split(";");angular.forEach(params,(function(param){param=param.split(":"),logic[param[0]]=param[1]}));var ruleset=logic.ruleset;if(angular.isUndefined(logic.is_mobile))angular.isUndefined(logic.device_name)||(logic.device_name=logic.device_name.replace(/_/g," "),device.device_name===logic.device_name&&(scope.ruleset=ruleset,element.val(ruleset)));else{var is_mobile="true"===logic.is_mobile;device.is_mobile===is_mobile&&(scope.ruleset=ruleset,element.val(ruleset))}}))}return{restrict:"C",link:function(scope,element,attrs){var device=APIFactory.fetchDeviceInfo();device.success?(scope.num_waiting+=1,device.success((function(data){scope.num_waiting-=1,ipCookie("device",angular.toJson(data),{expires:180,domain:scope.domain,path:"/"}),processMPP(data,scope,element,attrs)}))):processMPP(device,scope,element,attrs)}}}]),utl.directive("deviceSpecific",["APIFactory","ipCookie",function(APIFactory,ipCookie){function processSpecific(device,element,attrs){void 0!==device&&""!==device&&("true"===attrs.conditionValue?attrs.conditionValue=!0:"false"===attrs.conditionValue&&(attrs.conditionValue=!1),device[attrs.conditionName]!==attrs.conditionValue&&element.remove())}return{restrict:"EC",link:function(scope,element,attrs){var device=APIFactory.fetchDeviceInfo();device.success?(scope.num_waiting+=1,device.success((function(data){scope.num_waiting-=1,ipCookie("device",angular.toJson(data),{expires:180,domain:scope.domain,path:"/"}),processSpecific(data,element,attrs)}))):processSpecific(device,element,attrs)}}}]),utl.directive("geoip",["APIFactory","ipCookie",function(APIFactory,ipCookie){function processGeoIP(geoip,scope,element,attrs){angular.isUndefined(attrs.ngModel)?angular.isUndefined(attrs.type)?element.text(geoip[attrs.info]):element.val(geoip[attrs.info]):"country"===attrs.ngModel&&null!==scope.i18n_country||(scope[attrs.ngModel]=geoip[attrs.info])}return{restrict:"EC",link:function(scope,element,attrs){angular.isUndefined(attrs.ngModel)||"country_code"!==attrs.info?angular.isUndefined(attrs.ngModel)||"zipcode"!==attrs.info||(scope.enable_zip_check=!1,scope.enable_zip_check_wh=!1):scope.enable_country_check=!1;var geoip=APIFactory.fetchGeoIP();geoip.success?(scope.num_waiting+=1,geoip.success((function(data){scope.num_waiting-=1,ipCookie("geoip",angular.toJson(data),{expires:180,domain:scope.domain,path:"/"}),processGeoIP(data,scope,element,attrs)}))):processGeoIP(geoip,scope,element,attrs)}}}]),utl.directive("date",["dateFilter",function(dateFilter){return{restrict:"EC",link:function(scope,element,attrs){var date=new Date;attrs.numdays&&(attrs.numdays=parseInt(attrs.numdays),date.setDate(date.getDate()+attrs.numdays)),attrs.numyears&&(attrs.numyears=parseInt(attrs.numyears),date.setDate(date.getDate()+365*attrs.numyears)),angular.isUndefined(attrs.type)?element.text(dateFilter(date,attrs.format)):element.val(dateFilter(date,attrs.format))}}}]),utl.directive("disableAngLinks",(function(){return{restrict:"EC",link:function(){angular.forEach(document.getElementsByTagName("a"),(function(element){!element.target&&element.href&&(element.target="_self")}))}}})),utl.directive("countrySelect",["APIFactory","ipCookie",function(APIFactory,ipCookie){function processSelect(country_list,scope,element){angular.forEach(country_list,(function(country_obj,country){element.append('<option value="'+country_obj["alpha-2"]+'">'+country+"</option>")}));var geoip=APIFactory.fetchGeoIP();geoip.success?(scope.num_waiting+=1,geoip.success((function(data){scope.num_waiting-=1,ipCookie("geoip",angular.toJson(data),{expires:180,domain:scope.domain,path:"/"}),setCountry(data,scope,element)}))):setCountry(geoip,scope,element)}function setCountry(geoip,scope,element){element.val(geoip.country_code),scope.country=geoip.country_code}return{restrict:"C",link:function(scope,element){var countryList=APIFactory.fetchCountryList();countryList.success?(scope.num_waiting+=1,countryList.success((function(data){if(scope.num_waiting-=1,window.localStorage)try{localStorage.setItem("countries",angular.toJson({timestamp:(new Date).getTime(),data:data}))}catch(e){}processSelect(data,scope,element)}))):processSelect(countryList,scope,element)}}}]),utl.directive("ageSelect",(function(){return{restrict:"C",link:function(scope,element){for(var i=18;i<=99;i++)element.append('<option value="'+i+'">'+i+"</option>")}}})),utl.directive("assign",(function(){return{restrict:"EC",link:function(scope,element,attrs){if("from_request"===attrs.value){var found=!1;angular.forEach(window.QueryString,(function(value,key){key===attrs.name&&(scope[attrs.name]=value,found=!0)})),!found&&attrs.default&&(scope[attrs.name]=attrs.default)}else"false"===attrs.value?scope[attrs.name]=!1:"true"===attrs.value?scope[attrs.name]=!0:scope[attrs.name]=attrs.value}}})),utl.directive("translations",(function(){return{restrict:"EC",link:function(scope,element,attrs){if(attrs.country){var country=attrs.country.toUpperCase();"object"!=typeof scope.translations[country]&&(scope.translations[country]={}),angular.forEach(attrs.$attr,(function(attr){"country"!==attr&&(scope.translations[country][attr]=attrs[attr])}))}}}})),utl.directive("usernameFromEmail",["APIFactory","validateFactory",function(APIFactory,validateFactory){return{restrict:"EC",link:function(scope){scope.enable_username_check=!1,scope.$watch("email",(function(email){!0===validateFactory.isEmailValid(email)&&(scope.num_waiting+=1,APIFactory.fetchUsernameFromEmail(email).success((function(username){scope.num_waiting-=1,scope.username=username})))}))}}}]),utl.directive("randomPassword",(function(){function randomInt(max,min){return Math.floor(Math.random()*(max-min+1))+min}function one_in(x){return 0===randomInt(0,x-1)}function generateRandomPassword(){var koremutake=["ba","be","bi","bo","bu","by","da","de","di","do","du","dy","fa","fe","fi","fo","fu","fy","ga","ge","gi","go","gu","gy","ha","he","hi","ho","hu","hy","ja","je","ji","jo","ju","jy","ka","ke","ki","ko","ku","ky","la","le","li","lo","lu","ly","ma","me","mi","mo","mu","my","na","ne","ni","no","nu","ny","pa","pe","pi","po","pu","py","ra","re","ri","ro","ru","ry","sa","se","si","so","su","sy","ta","te","ti","to","tu","ty","va","ve","vi","vo","vu","vy","bra","bre","bri","bro","bru","bry","dra","dre","dri","dro","dru","dry","fra","fre","fri","fro","fru","fry","gra","gre","gri","gro","gru","gry","pra","pre","pri","pro","pru","pry","sta","ste","sti","sto","stu","sty","tra","tre"],pass_length=randomInt(7,10),password="";do{password+=koremutake[Math.floor(Math.random()*koremutake.length)]}while(password.length<pass_length);password=password.split("");for(var case_toggles=randomInt(0,1)+randomInt(0,1)+randomInt(0,1),i=0;i<case_toggles;i++){var pos=randomInt(0,password.length-1);password[pos]=password[pos].toLowerCase()===password[pos]?password[pos].toUpperCase():password[pos].toLowerCase()}password=password.toString().replace(/,/g,"");var add_number=one_in(3),prepend=one_in(2),addthis="";return add_number&&(addthis+=randomInt(2,9),one_in(3)&&(addthis+=randomInt(2,9))),one_in(2)&&(addthis=addthis.split("").reverse().join("")),password=prepend?addthis+password:password+addthis}return{restrict:"EC",link:function(scope){scope.enable_password_check=!1;for(var valid=!1,password="";!valid;)(password=generateRandomPassword()).length>=5&&password.length<=12&&(valid=!0);scope.password=password}}})),utl.directive("randomEmail",["APIFactory",function(APIFactory){var retry={count:0,max:5,delay:2e3};function setEmail(scope,attrs,APIFactory){var email=function(attrs){function generateString(length){var res="",chars="abcdefghijklmnopqrstuvwxyz0123456789";if(void 0===length||parseInt(length)<1)return res;for(var i=0;i<length;i++)res+=chars.charAt(Math.floor(Math.random()*chars.length));return res}var domain=attrs.attr("domain");return(void 0===domain||domain.length>36||!/\b((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}\b/.test(domain))&&(domain=generateString(16)+".com"),generateString(36-domain.length)+(new Date).getTime()+"@"+domain}(attrs);scope.num_waiting+=1,APIFactory.checkDupeEmail(email).then((function(response){scope.num_waiting-=1,"0"===response.data?(scope.email=email,scope.check_email_dupe=0,scope.autogenerated_email=1):retrySetEmail(scope,attrs,APIFactory)})).catch((function(){scope.num_waiting-=1,retrySetEmail(scope,attrs,APIFactory)}))}function retrySetEmail(scope,attrs,APIFactory){retry.count<retry.max&&setTimeout((function(){setEmail(scope,attrs,APIFactory)}),retry.delay),retry.count++}return{restrict:"EC",link:function(scope,attrs){setEmail(scope,attrs,APIFactory)}}}]),utl.directive("disableValidEmail",(function(){return{require:"ngModel",link:function(scope,elem,attrs,ctrl){ctrl&&ctrl.$validators.email&&(ctrl.$validators.email=function(){return!0})}}})),utl.directive("errorHandler",(function(){return{link:function(scope,element,attrs){var fn=window[attrs.func];scope.$watch("errors",(function(errors){errors.length>0&&"function"==typeof fn&&fn(errors)}),!1),scope.$watch("errors",(function(errors){errors.length>0&&"function"==typeof fn&&fn(errors)}),!0)}}})),utl.directive("whSuccessHandler",(function(){return{link:function(scope,element,attrs){var fn=window[attrs.func];scope.$watch("wh_login",(function(wh_login){if(void 0!==wh_login&&""!==wh_login){var wh_success={wh_login:wh_login,redirect:scope.redirect};fn(wh_success)}}))}}})),utl.directive("externalSuccessHandler",(function(){return{link:function(scope,element,attrs){var fn=window[attrs.func];scope.$watch("external_redirect",(function(external_redirect){void 0!==external_redirect&&""!==external_redirect&&fn(external_redirect)}))}}})),utl.directive("djsSuccessHandler",(function(){return{link:function(scope,element,attrs){var fn=window[attrs.func];scope.$watch("djs_redirect",(function(djs_redirect){void 0!==djs_redirect&&""!==djs_redirect&&fn(djs_redirect)}))}}})),utl.directive("svSuccessHandler",(function(){return{link:function(scope,element,attrs){var fn=window[attrs.func];scope.$watch("djs_redirect",(function(djs_redirect){if(void 0!==djs_redirect&&""!==djs_redirect){var sv_success={djs_redirect:scope.djs_redirect};fn(sv_success)}}))}}})),utl.directive("svReportHandler",(function(){return{link:function(scope,element,attrs){var fn=window[attrs.func];scope.$watch("sv_report_results",(function(sv_report_results){sv_report_results instanceof Array&&"function"==typeof fn&&(fn(sv_report_results),sv_report_results.length||(scope.sv_report_results=null))}))}}})),utl.directive("apiServiceHook",["ipCookie","APIFactory",function(ipCookie,APIFactory){return{link:function(scope,element,attrs){var fn=window[attrs.func];if("geoip"===attrs.api){var geoip=APIFactory.fetchGeoIP();geoip.success?(scope.num_waiting+=1,geoip.success((function(data){scope.num_waiting-=1,ipCookie("geoip",angular.toJson(data),{expires:180,domain:scope.domain,path:"/"}),fn(data)}))):fn(geoip)}else if("device"===attrs.api){var device=APIFactory.fetchDeviceInfo();device.success?(scope.num_waiting+=1,device.success((function(data){scope.num_waiting-=1,ipCookie("device",angular.toJson(data),{expires:180,domain:scope.domain,path:"/"}),fn(data)}))):fn(device)}}}}]),utl.directive("scopeWatch",(function(){return{link:function(scope,element,attrs){var fn=window[attrs.func];scope.$watch(attrs.variable,(function(variable){void 0!==variable&&""!==variable&&"function"==typeof fn&&fn(variable)}))}}})),utl.directive("setCookie",["ipCookie",function(ipCookie){return{link:function(scope,element,attrs){ipCookie(attrs.name,attrs.value,{expires:1,domain:scope.cookiesDomain,path:"/"})}}}]),utl.directive("utlFooter",["$http",function($http){return{link:function(scope,element,attrs){if(-1===scope.DISABLE_DIRECTIVES.utlFooter.indexOf(scope.normalizeProduct()._())){var show_ml="",show_sl="",show_pl="",show_tl="";void 0!==attrs.showMl&&(show_ml=attrs.showMl),void 0!==attrs.showSl&&(show_sl=attrs.showSl),void 0!==attrs.showPl&&(show_pl=attrs.showPl),void 0!==attrs.showTl&&(show_tl=attrs.showTl),$http({cache:!0,method:"GET",url:"https://secure.authbill.com/tour/footer.php?product="+scope.product+"&aid="+scope.tracking.aid+"&t="+scope.tracking.t+"&show_ml="+show_ml+"&show_sl="+show_sl+"&show_pl="+show_pl+"&show_tl="+show_tl}).then((function(response){element.html(response.data)}))}}}}]),utl.directive("utlDisclaimer",(function(){return{restrict:"E",link:function(scope,element,attrs){angular.isUndefined(attrs.action)&&(attrs.action="submitting the form");var link_terms=scope.getProductDomain()+"/terms",link_privacy=scope.getProductDomain()+"/privacy";element.html("By "+attrs.action+' you agree to our <a href="'+link_terms+'" target="_blank">Terms</a> and <a href="'+link_privacy+'" target="_blank">Privacy Policy</a> including use of cookies and to receive newsletters, account updates and offers sent by '+scope.getCleanProductName()+".")}}})),utl.directive("gdprModal",(function(){return{link:function(scope,element,attrs){scope.gdprModal.step=1,void 0===attrs.step||isNaN(attrs.step)||(scope.gdprModal.step=parseInt(attrs.step)),void 0!==attrs.cta&&(scope.gdprModal.cta=attrs.cta),1===scope.gdprModal.step&&scope.loadGdprModal()}}})),utl.directive("outputQueryparam",(function(){return{link:function(scope,element,attrs){var text="",defaultText=attrs.default||"";if(attrs.param&&window.QueryString[attrs.param]){var chars=parseInt(attrs.chars)||140,div=document.createElement("div");div.innerHTML=window.QueryString[attrs.param].replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"").replace(/\+/g," "),(text=div.childNodes[0]?div.childNodes.length>1?$A(div.childNodes).inject("",(function(memo,node){return memo+node.nodeValue})):div.childNodes[0].nodeValue:"").length>chars&&(text=defaultText)}element.html(text.length?text:defaultText)}}})),utl.directive("lo",[function(){return{restrict:"EC",link:function(scope,element,attrs){if(!(angular.isUndefined(attrs.site)||isNaN(attrs.site)||(window.__lo_site_id=parseInt(attrs.site),angular.isUndefined(attrs.prob)||isNaN(attrs.prob)))){var random=parseFloat((100*Math.random()).toFixed(5));(!("string"!=typeof document.referrer||-1===document.referrer.toLowerCase().indexOf("luckyorange.com"))||random<=parseInt(attrs.prob))&&scope.loadLo()}}}}]),utl.directive("hotjar",[function(){return{restrict:"EC",link:function(scope,element,attrs){if(!(angular.isUndefined(attrs.site)||isNaN(attrs.site)||(window._hjSettings={hjid:parseInt(attrs.site),hjsv:6},angular.isUndefined(attrs.prob)||isNaN(attrs.prob)))){var random=parseFloat((100*Math.random()).toFixed(5));(!("string"!=typeof document.referrer||-1===document.referrer.toLowerCase().indexOf("hotjar.com"))||random<=parseInt(attrs.prob))&&scope.loadHotjar()}}}}]),utl.directive("whUpgrade",["$http","APIFactory",function($http,APIFactory){return{restrict:"EC",link:function(scope,element,attrs){var DATADOG_TRACKING_COUNTRIES=["US","GB","AU","CA"];scope.upgrade={animation_handler:"",curr_step:1,num_steps:1,step_animation_handler:"",djs_links:{trial:"",month:"",year:""},tracking:{impression_pixel:"",hit_pixel:""}},void 0!==attrs.tour&&scope.setDefaultUpgradeTour(attrs.tour),void 0!==attrs.animationHandler&&"function"==typeof window[attrs.animationHandler]&&(scope.upgrade.animation_handler=window[attrs.animationHandler]),void 0!==attrs.numSteps?scope.upgrade.num_steps=parseInt(attrs.numSteps):scope.upgrade.num_steps=document.querySelectorAll("[data-upgrade-step]").length,void 0!==attrs.stepHandler&&"function"==typeof window[attrs.stepHandler]&&(scope.upgrade.step_animation_handler=window[attrs.stepHandler]),scope.handleUpgradeHit=function(type){if("string"==typeof type&&-1!==["free","trial","month","year"].indexOf(type))if("free"===type)window.location=scope.wh_login+scope.redirect;else{var url=scope.wh_login+encodeURIComponent(scope.upgrade.djs_links[type]),img=document.createElement("img");img.src=scope.upgrade.tracking.hit_pixel,img.style="border-style:none;",img.height="1",img.width="1",img.alt="",img.onload=function(){window.location=url},img.onerror=function(){window.location=url},document.body.appendChild(img)}},scope.handleUpgradePage=function(){"function"==typeof scope.upgrade.animation_handler&&(scope.upgrade.trackAdminix(),scope.upgrade.trackDataDog(),scope.upgrade.trackImpression(),scope.upgrade.trackStep(),scope.upgrade.animation_handler({handleUpgradeHit:scope.handleUpgradeHit}))},scope.setRedirect=function(data){scope.redirect=encodeURIComponent(scope.PRODUCT_DOMAINS[scope.normalizeProduct()._()]._()+scope.WH_HOME_PATH),scope.upgrade.djs_links={trial:data.payment_links.djs.trial,month:data.payment_links.djs.month,year:data.payment_links.djs.year},scope.upgrade.tracking={hit_pixel:data.payment_links.tracking.hit_pixel,impression_pixel:data.payment_links.tracking.impression_pixel},scope.smoochy_user_id=data.payment_links.tracking.impression_pixel.match(/(?:user_id=)(\d*)/i)[1]},scope.upgrade.goToStep=function(step){if(!(step===scope.upgrade.curr_step||step<1||step>scope.upgrade.num_steps)){var old_step=scope.upgrade.curr_step;scope.upgrade.curr_step=step,scope.upgrade.trackStep(),"function"==typeof scope.upgrade.step_animation_handler?scope.upgrade.step_animation_handler(old_step,scope.upgrade.curr_step):([].forEach.call(document.querySelectorAll('[data-upgrade-step="'+old_step+'"]'),(function(el){el.style.display="none"})),[].forEach.call(document.querySelectorAll('[data-upgrade-step="'+scope.upgrade.curr_step+'"]'),(function(el){el.style.display="block"})))}},scope.upgrade.nextStep=function(){scope.upgrade.curr_step<scope.upgrade.num_steps&&scope.upgrade.goToStep(scope.upgrade.curr_step+1)},scope.upgrade.prevStep=function(){scope.upgrade.curr_step>1&&scope.upgrade.goToStep(scope.upgrade.curr_step-1)},scope.upgrade.trackAdminix=function(){var img=document.createElement("img"),url="sookh!44h~xni~5znosyrww5xtv4oizxp4oizxpDkrc~w5ksk$oizxpDobk~&nk|iz~=nk|Di~zhtu&i~|rhoizortu=i~}~i~i&otni=h~hhrtuDrurorzo~Dyb&otni=tir|ru&?tir|ru=nk|iz~Dotni&?nk|iz~Dotni=kitnxoDr&?kitnxoDr=zr&?zr=hr&?hr=hvttxsbDnh~iDr&?nh~iDr"._().replace("$origin",scope.PRODUCT_NAMES[scope.normalizeProduct()._()]._()).replace("$product_id",scope.PRODUCT_IDS[scope.normalizeProduct()._()]).replace("$upgrade_tour",scope.tracking.upgrade_t).replace("$aid",scope.tracking.aid).replace("$sid",scope.tracking.sid).replace("$user_id",scope.smoochy_user_id);img.src=url,img.style="border-style:none;",img.height="1",img.width="1",img.alt="",document.body.appendChild(img)},scope.upgrade.trackDataDog=function(){var track_country=null;-1!==DATADOG_TRACKING_COUNTRIES.indexOf(scope.country)&&(track_country="GB"===scope.country?"UK":scope.country),APIFactory.trackDataDog("wh.upgrade.requests.raws",{whitelabel:scope.product,type:"internal",referer:"tour",session_initiated_by:"other",upgrade_tour_id:scope.tracking.upgrade_t,tour_id:scope.tracking.t,aid:scope.tracking.aid,country:track_country,test_user:window.isTestUser(scope.email)},null)},scope.upgrade.trackImpression=function(){var img=document.createElement("img");img.src=scope.upgrade.tracking.impression_pixel,img.style="border-style:none;",img.height="1",img.width="1",img.alt="",document.body.appendChild(img)},scope.upgrade.trackStep=function(){scope.sendTrackHit({type:"upgrade_curr_step",curr_step:scope.upgrade.curr_step,num_steps:scope.upgrade.num_steps})}}}}]);