vendor: 4,396 bytes, line 1
1!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s
vendor: 12,067 bytes, line 1
1=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\f]' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do
1{if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-")}
vendor: 6,181 bytes, line 1
1while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function qa(){}qa.prototype=d.filters=d.pseudos,d.setFilters=new qa,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=S.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=T.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(R," ")}),h=h.slice(c.length));for(g in d.filter)!(e=X[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function ra(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);
vendor: 9,275 bytes, line 1
1m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do{a=a[b]}while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;
vendor: 7,280 bytes, line 1
1return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?m.queue(this[0],a):void 0===b?this:this.each(function(){var c=m.queue(this,a,b);m._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&m.dequeue(this,a)})},dequeue:function(a){return this.each(function(){m.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=m.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=m._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=["Top","Right","Bottom","Left"],U=function(a,b){return a=b||a,"none"===m.css(a,"display")||!m.contains(a.ownerDocument,a)},V=m.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===m.type(c)){e=!0;for(h in c)m.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,m.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(m(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav></:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="<textarea>x</textarea>",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{}
vendor: 1,726 bytes, line 1
1,e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>
vendor: 20,512 bytes, line 1
1=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[m.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=Z.test(e)?this.mouseHooks:Y.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new m.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||y),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):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(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||y,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ca()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===ca()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return m.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return m.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=m.extend(new m.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?m.event.trigger(e,null,b):m.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},m.removeEvent=y.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===K&&(a[d]=null),a.detachEvent(d,c))},m.Event=function(a,b){return this instanceof m.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?aa:ba):this.type=a,b&&m.extend(this,b),this.timeStamp=a&&a.timeStamp||m.now(),void(this[m.expando]=!0)):new m.Event(a,b)},m.Event.prototype={isDefaultPrevented:ba,isPropagationStopped:ba,isImmediatePropagationStopped:ba,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=aa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=aa,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=aa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},m.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){m.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!m.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),k.submitBubbles||(m.event.special.submit={setup:function(){return m.nodeName(this,"form")?!1:void m.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=m.nodeName(b,"input")||m.nodeName(b,"button")?b.form:void 0;c&&!m._data(c,"submitBubbles")&&(m.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),m._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&m.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return m.nodeName(this,"form")?!1:void m.event.remove(this,"._submit")}}),k.changeBubbles||(m.event.special.change={setup:function(){return X.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(m.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),m.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),m.event.simulate("change",this,a,!0)})),!1):void m.event.add(this,"beforeactivate._change",function(a){var b=a.target;X.test(b.nodeName)&&!m._data(b,"changeBubbles")&&(m.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||m.event.simulate("change",this.parentNode,a,!0)}),m._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return m.event.remove(this,"._change"),!X.test(this.nodeName)}}),k.focusinBubbles||m.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){m.event.simulate(b,a.target,m.event.fix(a),!0)};m.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=m._data(d,b);e||d.addEventListener(a,c,!0),m._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=m._data(d,b)-1;e?m._data(d,b,e):(d.removeEventListener(a,c,!0),m._removeData(d,b))}}}),m.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=ba;else if(!d)return this;return 1===e&&(g=d,d=function(a){return m().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=m.guid++)),this.each(function(){m.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,m(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=ba),this.each(function(){m.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){m.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?m.event.trigger(a,b,c,!0):void 0}});function da(a){var b=ea.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var ea="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",fa=/ jQuery\d+="(?:null|\d+)"/g,ga=new RegExp("<(?:"+ea+")[\\s/>]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/<tbody/i,la=/<|&#?\w+;/,ma=/<(?:script|style|link)/i,na=/checked\s*(?:[^=]|=\s*.checked.)/i,oa=/^$|\/(?:java|ecma)script/i,pa=/^true\/(.*)/,qa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ra={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:k.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1></$2>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?"<table>"!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Ca[0].contentWindow||Ca[0].contentDocument).document,b.write(),b.close(),c=Ea(a,b),Ca.detach()),Da[a]=c),c}!function(){var a;k.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,d;return c=y.getElementsByTagName("body")[0],c&&c.style?(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(y.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(d),a):void 0}}();var Ga=/^margin/,Ha=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ia,Ja,Ka=/^(top|right|bottom|left)$/;a.getComputedStyle?(Ia=function(b){return b.ownerDocument.defaultView.opener?b.ownerDocument.defaultView.getComputedStyle(b,null):a.getComputedStyle(b,null)},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||m.contains(a.ownerDocument,a)||(g=m.style(a,b)),Ha.test(g)&&Ga.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):y.documentElement.currentStyle&&(Ia=function(a){return a.currentStyle},Ja=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Ia(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ha.test(g)&&!Ka.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function La(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h;if(b=y.createElement("div"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=d&&d.style){c.cssText="float:left;opacity:.5",k.opacity="0.5"===c.opacity,k.cssFloat=!!c.cssFloat,b.style.backgroundClip="content-box",b.cloneNode(!0).style.backgroundClip="",k.clearCloneStyle="content-box"===b.style.backgroundClip,k.boxSizing=""===c.boxSizing||""===c.MozBoxSizing||""===c.WebkitBoxSizing,m.extend(k,{reliableHiddenOffsets:function(){return null==g&&i(),g},boxSizingReliable:function(){return null==f&&i(),f},pixelPosition:function(){return null==e&&i(),e},reliableMarginRight:function(){return null==h&&i(),h}});function i(){var b,c,d,i;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),b.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",e=f=!1,h=!0,a.getComputedStyle&&(e="1%"!==(a.getComputedStyle(b,null)||{}).top,f="4px"===(a.getComputedStyle(b,null)||{width:"4px"}).width,i=b.appendChild(y.createElement("div")),i.style.cssText=b.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",b.style.width="1px",h=!parseFloat((a.getComputedStyle(i,null)||{}).marginRight),b.removeChild(i)),b.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=b.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",g=0===i[0].offsetHeight,g&&(i[0].style.display="",i[1].style.display="none",g=0===i[0].offsetHeight),c.removeChild(d))}}}(),m.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Ma=/alpha\([^)]*\)/i,Na=/opacity\s*=\s*([^)]*)/,Oa=/^(none|table(?!-c[ea]).+)/,Pa=new RegExp("^("+S+")(.*)$","i"),Qa=new RegExp("^([+-])=("+S+")","i"),Ra={position:"absolute",visibility:"hidden",display:"block"},Sa={letterSpacing:"0",fontWeight:"400"},Ta=["Webkit","O","Moz","ms"];function Ua(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ta.length;while(e--)if(b=Ta[e]+c,b in a)return b;return d}function Va(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=m._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&U(d)&&(f[g]=m._data(d,"olddisplay",Fa(d.nodeName)))):(e=U(d),(c&&"none"!==c||!e)&&m._data(d,"olddisplay",e?c:m.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function Wa(a,b,c){var d=Pa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Xa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=m.css(a,c+T[f],!0,e)),d?("content"===c&&(g-=m.css(a,"padding"+T[f],!0,e)),"margin"!==c&&(g-=m.css(a,"border"+T[f]+"Width",!0,e))):(g+=m.css(a,"padding"+T[f],!0,e),"padding"!==c&&(g+=m.css(a,"border"+T[f]+"Width",!0,e)));return g}function Ya(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ia(a),g=k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Ja(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ha.test(e))return e;d=g&&(k.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Xa(a,b,c||(g?"border":"content"),d,f)+"px"}m.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ja(a,"opacity");return""===c?"1":c}}}},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:{
vendor: 4,226 bytes, line 1
1float:k.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=m.camelCase(b),i=a.style;if(b=m.cssProps[h]||(m.cssProps[h]=Ua(i,h)),g=m.cssHooks[b]||m.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=Qa.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(m.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||m.cssNumber[h]||(c+="px"),k.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=m.camelCase(b);return b=m.cssProps[h]||(m.cssProps[h]=Ua(a.style,h)),g=m.cssHooks[b]||m.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ja(a,b,d)),"normal"===f&&b in Sa&&(f=Sa[b]),""===c||c?(e=parseFloat(f),c===!0||m.isNumeric(e)?e||0:f):f}}),m.each(["height","width"],function(a,b){m.cssHooks[b]={get:function(a,c,d){return c?Oa.test(m.css(a,"display"))&&0===a.offsetWidth?m.swap(a,Ra,function(){return Ya(a,b,d)}):Ya(a,b,d):void 0},set:function(a,c,d){var e=d&&Ia(a);return Wa(a,c,d?Xa(a,b,d,k.boxSizing&&"border-box"===m.css(a,"boxSizing",!1,e),e):0)}}}),k.opacity||(m.cssHooks.opacity={get:function(a,b){return Na.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=m.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===m.trim(f.replace(Ma,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ma.test(f)?f.replace(Ma,e):f+" "+e)}}),m.cssHooks.marginRight=La(k.reliableMarginRight,function(a,b){return b?m.swap(a,{display:"inline-block"},Ja,[a,"marginRight"]):void 0}),m.each({margin:"",padding:"",border:"Width"},function(a,b){m.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+T[d]+b]=f[d]||f[d-2]||f[0];return e}},Ga.test(a)||(m.cssHooks[a+b].set=Wa)}),m.fn.extend({css:function(a,b){return V(this,function(a,b,c){var d,e,f={},g=0;if(m.isArray(b)){for(d=Ia(a),e=b.length;e>g;g++)f[b[g]]=m.css(a,b[g],!1,d);return f}return void 0!==c?m.style(a,b,c):m.css(a,b)},a,b,arguments.length>1)},show:function(){return Va(this,!0)},hide:function(){return Va(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){U(this)?m(this).show():m(this).hide()})}});function Za(a,b,c,d,e){return new Za.prototype.init(a,b,c,d,e)}m.Tween=Za,Za.prototype={constructor:Za,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(m.cssNumber[c]?"":"px")},cur:function(){var a=Za.propHooks[this.prop];return a&&a.get?a.get(this):Za.propHooks._default.get(this)},run:function(a){var b,c=Za.propHooks[this.prop];return this.options.duration?this.pos=b=m.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Za.propHooks._default.set(this),this}},Za.prototype.init.prototype=Za.prototype,Za.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=m.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){m.fx.step[a.prop]?m.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[m.cssProps[a.prop]]||m.cssHooks[a.prop])?m.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},Za.propHooks.scrollTop=Za.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},m.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},m.fx=Za.prototype.init,m.fx.step={};var $a,_a,ab=/^(?:toggle|show|hide)$/,bb=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),cb=/queueHooks$/,db=[ib],eb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=bb.exec(b),f=e&&e[3]||(m.cssNumber[a]?"":"px"),g=(m.cssNumber[a]||"px"!==f&&+d)&&bb.exec(m.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do{h=h||".5",g/=h,m.style(c.elem,a,g+f)}
vendor: 10,872 bytes, line 1
1while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function fb(){return setTimeout(function(){$a=void 0}),$a=m.now()}function gb(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=T[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function hb(a,b,c){for(var d,e=(eb[b]||[]).concat(eb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function ib(a,b,c){var d,e,f,g,h,i,j,l,n=this,o={},p=a.style,q=a.nodeType&&U(a),r=m._data(a,"fxshow");c.queue||(h=m._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,n.always(function(){n.always(function(){h.unqueued--,m.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=m.css(a,"display"),l="none"===j?m._data(a,"olddisplay")||Fa(a.nodeName):j,"inline"===l&&"none"===m.css(a,"float")&&(k.inlineBlockNeedsLayout&&"inline"!==Fa(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",k.shrinkWrapBlocks()||n.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ab.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||m.style(a,d)}else j=void 0;if(m.isEmptyObject(o))"inline"===("none"===j?Fa(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=m._data(a,"fxshow",{}),f&&(r.hidden=!q),q?m(a).show():n.done(function(){m(a).hide()}),n.done(function(){var b;m._removeData(a,"fxshow");for(b in o)m.style(a,b,o[b])});for(d in o)g=hb(q?r[d]:0,d,n),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function jb(a,b){var c,d,e,f,g;for(c in a)if(d=m.camelCase(c),e=b[d],f=a[c],m.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=m.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function kb(a,b,c){var d,e,f=0,g=db.length,h=m.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=$a||fb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:m.extend({},b),opts:m.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:$a||fb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=m.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(jb(k,j.opts.specialEasing);g>f;f++)if(d=db[f].call(j,a,k,j.opts))return d;return m.map(k,hb,j),m.isFunction(j.opts.start)&&j.opts.start.call(a,j),m.fx.timer(m.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}m.Animation=m.extend(kb,{tweener:function(a,b){m.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],eb[c]=eb[c]||[],eb[c].unshift(b)},prefilter:function(a,b){b?db.unshift(a):db.push(a)}}),m.speed=function(a,b,c){var d=a&&"object"==typeof a?m.extend({},a):{complete:c||!c&&b||m.isFunction(a)&&a,duration:a,easing:c&&b||b&&!m.isFunction(b)&&b};return d.duration=m.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in m.fx.speeds?m.fx.speeds[d.duration]:m.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){m.isFunction(d.old)&&d.old.call(this),d.queue&&m.dequeue(this,d.queue)},d},m.fn.extend({fadeTo:function(a,b,c,d){return this.filter(U).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=m.isEmptyObject(a),f=m.speed(b,c,d),g=function(){var b=kb(this,m.extend({},a),f);(e||m._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=m.timers,g=m._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&cb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&m.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=m._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=m.timers,g=d?d.length:0;for(c.finish=!0,m.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),m.each(["toggle","show","hide"],function(a,b){var c=m.fn[b];m.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(gb(b,!0),a,d,e)}}),m.each({slideDown:gb("show"),slideUp:gb("hide"),slideToggle:gb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){m.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),m.timers=[],m.fx.tick=function(){var a,b=m.timers,c=0;for($a=m.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||m.fx.stop(),$a=void 0},m.fx.timer=function(a){m.timers.push(a),a()?m.fx.start():m.timers.pop()},m.fx.interval=13,m.fx.start=function(){_a||(_a=setInterval(m.fx.tick,m.fx.interval))},m.fx.stop=function(){clearInterval(_a),_a=null},m.fx.speeds={slow:600,fast:200,_default:400},m.fn.delay=function(a,b){return a=m.fx?m.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e;b=y.createElement("div"),b.setAttribute("className","t"),b.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",d=b.getElementsByTagName("a")[0],c=y.createElement("select"),e=c.appendChild(y.createElement("option")),a=b.getElementsByTagName("input")[0],d.style.cssText="top:1px",k.getSetAttribute="t"!==b.className,k.style=/top/.test(d.getAttribute("style")),k.hrefNormalized="/a"===d.getAttribute("href"),k.checkOn=!!a.value,k.optSelected=e.selected,k.enctype=!!y.createElement("form").enctype,c.disabled=!0,k.optDisabled=!e.disabled,a=y.createElement("input"),a.setAttribute("value",""),k.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),k.radioValue="t"===a.value}();var lb=/\r/g;m.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=m.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,m(this).val()):a,null==e?e="":"number"==typeof e?e+="":m.isArray(e)&&(e=m.map(e,function(a){return null==a?"":a+""})),b=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=m.valHooks[e.type]||m.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(lb,""):null==c?"":c)}}}),m.extend({valHooks:{option:{get:function(a){var b=m.find.attr(a,"value");return null!=b?b:m.trim(m.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(k.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&m.nodeName(c.parentNode,"optgroup"))){if(b=m(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=m.makeArray(b),g=e.length;while(g--)if(d=e[g],m.inArray(m.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),m.each(["radio","checkbox"],function(){m.valHooks[this]={set:function(a,b){return m.isArray(b)?a.checked=m.inArray(m(a).val(),b)>=0:void 0}},k.checkOn||(m.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var mb,nb,ob=m.expr.attrHandle,pb=/^(?:checked|selected)$/i,qb=k.getSetAttribute,rb=k.input;m.fn.extend({attr:function(a,b){return V(this,m.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){m.removeAttr(this,a)})}}),m.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===K?m.prop(a,b,c):(1===f&&m.isXMLDoc(a)||(b=b.toLowerCase(),d=m.attrHooks[b]||(m.expr.match.bool.test(b)?nb:mb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=m.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void m.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(E);if(f&&1===a.nodeType)while(c=f[e++])d=m.propFix[c]||c,m.expr.match.bool.test(c)?rb&&qb||!pb.test(c)?a[d]=!1:a[m.camelCase("default-"+c)]=a[d]=!1:m.attr(a,c,""),a.removeAttribute(qb?c:d)},attrHooks:{type:{set:function(a,b){if(!k.radioValue&&"radio"===b&&m.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),nb={set:function(a,b,c){return b===!1?m.removeAttr(a,c):rb&&qb||!pb.test(c)?a.setAttribute(!qb&&m.propFix[c]||c,c):a[m.camelCase("default-"+c)]=a[c]=!0,c}},m.each(m.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ob[b]||m.find.attr;ob[b]=rb&&qb||!pb.test(b)?function(a,b,d){var e,f;return d||(f=ob[b],ob[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ob[b]=f),e}:function(a,b,c){return c?void 0:a[m.camelCase("default-"+b)]?b.toLowerCase():null}}),rb&&qb||(m.attrHooks.value={set:function(a,b,c){return m.nodeName(a,"input")?void(a.defaultValue=b):mb&&mb.set(a,b,c)}}),qb||(mb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},ob.id=ob.name=ob.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},m.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:mb.set},m.attrHooks.contenteditable={set:function(a,b,c){mb.set(a,""===b?!1:b,c)}},m.each(["width","height"],function(a,b){m.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),k.style||(m.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var sb=/^(?:input|select|textarea|button|object)$/i,tb=/^(?:a|area)$/i;m.fn.extend({prop:function(a,b){return V(this,m.prop,a,b,arguments.length>1)},removeProp:function(a){return a=m.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),m.extend({propFix:{
1for:"htmlFor",class
vendor: 10,075 bytes, line 1
1:"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!m.isXMLDoc(a),f&&(b=m.propFix[b]||b,e=m.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=m.find.attr(a,"tabindex");return b?parseInt(b,10):sb.test(a.nodeName)||tb.test(a.nodeName)&&a.href?0:-1}}}}),k.hrefNormalized||m.each(["href","src"],function(a,b){m.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),k.optSelected||(m.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){m.propFix[this.toLowerCase()]=this}),k.enctype||(m.propFix.enctype="encoding");var ub=/[\t\r\n\f]/g;m.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):" ")){f=0;while(e=b[f++])d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=m.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(m.isFunction(a))return this.each(function(b){m(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(E)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(ub," "):"")){f=0;while(e=b[f++])while(d.indexOf(" "+e+" ")>=0)d=d.replace(" "+e+" "," ");g=a?m.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(m.isFunction(a)?function(c){m(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=m(this),f=a.match(E)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===K||"boolean"===c)&&(this.className&&m._data(this,"__className__",this.className),this.className=this.className||a===!1?"":m._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(ub," ").indexOf(b)>=0)return!0;return!1}}),m.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(a,b){m.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),m.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var vb=m.now(),wb=/\?/,xb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;m.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=m.trim(b+"");return e&&!m.trim(e.replace(xb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():m.error("Invalid JSON: "+b)},m.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||m.error("Invalid XML: "+b),c};var yb,zb,Ab=/#.*$/,Bb=/([?&])_=[^&]*/,Cb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Db=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Eb=/^(?:GET|HEAD)$/,Fb=/^\/\//,Gb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Hb={},Ib={},Jb="*/".concat("*");try{zb=location.href}catch(Kb){zb=y.createElement("a"),zb.href="",zb=zb.href}yb=Gb.exec(zb.toLowerCase())||[];function Lb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(E)||[];if(m.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Mb(a,b,c,d){var e={},f=a===Ib;function g(h){var i;return e[h]=!0,m.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Nb(a,b){var c,d,e=m.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&m.extend(!0,a,c),a}function Ob(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Pb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:zb,type:"GET",isLocal:Db.test(yb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Jb,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":m.parseJSON,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Nb(Nb(a,m.ajaxSettings),b):Nb(m.ajaxSettings,a)},ajaxPrefilter:Lb(Hb),ajaxTransport:Lb(Ib),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=m.ajaxSetup({},b),l=k.context||k,n=k.context&&(l.nodeType||l.jquery)?m(l):m.event,o=m.Deferred(),p=m.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Cb.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||zb)+"").replace(Ab,"").replace(Fb,yb[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=m.trim(k.dataType||"*").toLowerCase().match(E)||[""],null==k.crossDomain&&(c=Gb.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===yb[1]&&c[2]===yb[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(yb[3]||("http:"===yb[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=m.param(k.data,k.traditional)),Mb(Hb,k,b,v),2===t)return v;h=m.event&&k.global,h&&0===m.active++&&m.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Eb.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(wb.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Bb.test(e)?e.replace(Bb,"$1_="+vb++):e+(wb.test(e)?"&":"?")+"_="+vb++)),k.ifModified&&(m.lastModified[e]&&v.setRequestHeader("If-Modified-Since",m.lastModified[e]),m.etag[e]&&v.setRequestHeader("If-None-Match",m.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Jb+"; q=0.01":""):k.accepts["*"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u="abort";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Mb(Ib,k,b,v)){v.readyState=1,h&&n.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,"No Transport");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Ob(k,v,c)),u=Pb(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(m.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(m.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&n.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(n.trigger("ajaxComplete",[v,k]),--m.active||m.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return m.get(a,b,c,"json")},getScript:function(a,b){return m.get(a,void 0,b,"script")}}),m.each(["get","post"],function(a,b){m[b]=function(a,c,d,e){return m.isFunction(c)&&(e=e||d,d=c,c=void 0),m.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),m._evalUrl=function(a){return m.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,
vendor: 3,939 bytes, line 1
1throws:!0})},m.fn.extend({wrapAll:function(a){if(m.isFunction(a))return this.each(function(b){m(this).wrapAll(a.call(this,b))});if(this[0]){var b=m(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(m.isFunction(a)?function(b){m(this).wrapInner(a.call(this,b))}:function(){var b=m(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=m.isFunction(a);return this.each(function(c){m(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){m.nodeName(this,"body")||m(this).replaceWith(this.childNodes)}).end()}}),m.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!k.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||m.css(a,"display"))},m.expr.filters.visible=function(a){return!m.expr.filters.hidden(a)};var Qb=/%20/g,Rb=/\[\]$/,Sb=/\r?\n/g,Tb=/^(?:submit|button|image|reset|file)$/i,Ub=/^(?:input|select|textarea|keygen)/i;function Vb(a,b,c,d){var e;if(m.isArray(b))m.each(b,function(b,e){c||Rb.test(a)?d(a,e):Vb(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==m.type(b))d(a,b);else for(e in b)Vb(a+"["+e+"]",b[e],c,d)}m.param=function(a,b){var c,d=[],e=function(a,b){b=m.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=m.ajaxSettings&&m.ajaxSettings.traditional),m.isArray(a)||a.jquery&&!m.isPlainObject(a))m.each(a,function(){e(this.name,this.value)});else for(c in a)Vb(c,a[c],b,e);return d.join("&").replace(Qb,"+")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=m.prop(this,"elements");return a?m.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!m(this).is(":disabled")&&Ub.test(this.nodeName)&&!Tb.test(a)&&(this.checked||!W.test(a))}).map(function(a,b){var c=m(this).val();return null==c?null:m.isArray(c)?m.map(c,function(a){return{name:b.name,value:a.replace(Sb,"\r\n")}}):{name:b.name,value:c.replace(Sb,"\r\n")}}).get()}}),m.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Zb()||$b()}:Zb;var Wb=0,Xb={},Yb=m.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in Xb)Xb[a](void 0,!0)}),k.cors=!!Yb&&"withCredentials"in Yb,Yb=k.ajax=!!Yb,Yb&&m.ajaxTransport(function(a){if(!a.crossDomain||k.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Wb;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Xb[g],b=void 0,f.onreadystatechange=m.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Xb[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function Zb(){try{return new a.XMLHttpRequest}catch(b){}}function $b(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return m.globalEval(a),a}}}),m.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}
1),m.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=y.head||m("head")[0]||y.documentElement;return{send:function(d,e){b=y.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var _b=[],ac=/(=)\?(?=&|$)|\?\?/;m.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=_b.pop()||m.expando+"_"+vb++;return this[a]=!0,a}}),m.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(ac.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&ac.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=m.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(ac,"$1"+e):b.jsonp!==!1&&(b.url+=(wb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||m.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,_b.push(e)),g&&m.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),m.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||y;var d=u.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=m.buildFragment([a],b,e),e&&e.length&&m(e).remove(),m.merge([],d.childNodes))};var bc=m.fn.load;m.fn.load=function(a,b,c){if("string"!=typeof a&&bc)return bc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=m.trim(a.slice(h,a.length)),a=a.slice(0,h)),m.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&m.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?m("<div>").append(m.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},m.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){m.fn[b]=function(a){return this.on(b,a)}}),m.expr.filters.animated=function(a){return m.grep(m.timers,function(b){return a===b.elem}).length};var cc=a.document.documentElement;function dc(a){return m.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}m.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=m.css(a,"position"),l=m(a),n={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=m.css(a,"top"),i=m.css(a,"left"),j=("absolute"===k||"fixed"===k)&&m.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),m.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(n.top=b.top-h.top+g),null!=b.left&&(n.left=b.left-h.left+e),"using"in b?b.using.call(a,n):l.css(n)}},m.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){m.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,m.contains(b,e)?(typeof e.getBoundingClientRect!==K&&(d=e.getBoundingClientRect()),c=dc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===m.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),m.nodeName(a[0],"html")||(c=a.offset()),c.top+=m.css(a[0],"borderTopWidth",!0),c.left+=m.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-m.css(d,"marginTop",!0),left:b.left-c.left-m.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||cc;while(a&&!m.nodeName(a,"html")&&"static"===m.css(a,"position"))a=a.offsetParent;return a||cc})}}),m.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);m.fn[a]=function(d){return V(this,function(a,d,e){var f=dc(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?m(f).scrollLeft():e,c?e:m(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),m.each(["top","left"],function(a,b){m.cssHooks[b]=La(k.pixelPosition,function(a,c){return c?(c=Ja(a,b),Ha.test(c)?m(a).position()[b]+"px":c):void 0})}),m.each({Height:"height",Width:"width"},function(a,b){m.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){m.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return V(this,function(b,c,d){var e;return m.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?m.css(b,c,g):m.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),m.fn.size=function(){return this.length},m.fn.andSelf=m.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return m});var ec=a.jQuery,fc=a.$;return m.noConflict=function(b){return a.$===m&&(a.$=fc),b&&a.jQuery===m&&(a.jQuery=ec),m},typeof b===K&&(a.jQuery=a.$=m),m});(function($,d){$.each(readyQ,function(i,f){$(f)});$.each(bindReadyQ,function(i,f){$(d).bind("ready",f)})})(jQuery,document);(function(e,t,n){"use strict";var r,i;e.uaMatch=function(e){e=e.toLowerCase();var t=/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];var n=/(ipad)/.exec(e)||/(iphone)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0",platform:n[0]||""}};r=e.uaMatch(t.navigator.userAgent);i={};if(r.browser){i[r.browser]=true;i.version=r.version}if(r.platform){i[r.platform]=true}if(i.chrome||i.opr){i.webkit=true}else if(i.webkit){i.safari=true}if(i.rv){i.msie=true}if(i.opr){i.opera=true}e.browser=i})(jQuery,window);(function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date-d,n=arguments;function l(){d=+new Date;j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this);typeof JSON!="object"&&(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return typeof t=="string"?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,r,i,s,o=gap,u,a=t[e];a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(e)),typeof rep=="function"&&(a=rep.call(t,e,a));switch(typeof a){case"string":return quote(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";gap+=indent,u=[];if(Object.prototype.toString.apply(a)==="[object Array]"){s=a.length;for(n=0;n<s;n+=1)u[n]=str(n,a)||"null";return i=u.length===0?"[]":gap?"[\n"+gap+u.join(",\n"+gap)+"\n"+o+"]":"["+u.join(",")+"]",gap=o,i}if(rep&&typeof rep=="object"){s=rep.length;for(n=0;n<s;n+=1)typeof rep[n]=="string"&&(r=rep[n],i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i))}else for(r in a)Object.prototype.hasOwnProperty.call(a,r)&&(i=str(r,a),i&&u.push(quote(r)+(gap?": ":":")+i));return i=u.length===0?"{}":gap?"{\n"+gap+u.join(",\n"+gap)+"\n"+o+"}":"{"+u.join(",")+"}",gap=o,i}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(e,t,n){var r;gap="",indent="";if(typeof n=="number")for(r=0;r<n;r+=1)indent+=" ";else typeof n=="string"&&(indent=n);rep=t;if(!t||typeof t=="function"||typeof t=="object"&&typeof t.length=="number")return str("",{"":e});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i=="object")for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r=walk(i,n),r!==undefined?i[n]=r:delete i[n]);return reviver.call(e,t,i)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(e,t){"use strict";var n=e.History=e.History||{};if(typeof n.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");n.Adapter={handlers:{},_uid:1,uid:function(e){return e._uid||(e._uid=n.Adapter._uid++)},bind:function(e,t,r){var i=n.Adapter.uid(e);n.Adapter.handlers[i]=n.Adapter.handlers[i]||{},n.Adapter.handlers[i][t]=n.Adapter.handlers[i][t]||[],n.Adapter.handlers[i][t].push(r),e["on"+t]=function(e,t){return function(r){n.Adapter.trigger(e,t,r)}}(e,t)},trigger:function(e,t,r){r=r||{};var i=n.Adapter.uid(e),s,o;n.Adapter.handlers[i]=n.Adapter.handlers[i]||{},n.Adapter.handlers[i][t]=n.Adapter.handlers[i][t]||[];for(s=0,o=n.Adapter.handlers[i][t].length;s<o;++s)n.Adapter.handlers[i][t][s].apply(this,[r])},extractEventData:function(e,n){var r=n&&n[e]||t;return r},onDomLoad:function(t){var n=e.setTimeout(function(){t()},2e3);e.onload=function(){clearTimeout(n),t()}}},typeof n.init!="undefined"&&n.init()}(window),function(e,t){"use strict";var n=e.document,r=e.setTimeout||r,i=e.clearTimeout||i,s=e.setInterval||s,o=e.History=e.History||{};if(typeof o.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");o.initHtml4=function(){if(typeof o.initHtml4.initialized!="undefined")return!1;o.initHtml4.initialized=!0,o.enabled=!0,o.savedHashes=[],o.isLastHash=function(e){var t=o.getHashByIndex(),n;return n=e===t,n},o.isHashEqual=function(e,t){return e=encodeURIComponent(e).replace(/%25/g,"%"),t=encodeURIComponent(t).replace(/%25/g,"%"),e===t},o.saveHash=function(e){return o.isLastHash(e)?!1:(o.savedHashes.push(e),!0)},o.getHashByIndex=function(e){var t=null;return typeof e=="undefined"?t=o.savedHashes[o.savedHashes.length-1]:e<0?t=o.savedHashes[o.savedHashes.length+e]:t=o.savedHashes[e],t},o.discardedHashes={},o.discardedStates={},o.discardState=function(e,t,n){var r=o.getHashByState(e),i;return i={discardedState:e,backState:n,forwardState:t},o.discardedStates[r]=i,!0},o.discardHash=function(e,t,n){var r={discardedHash:e,backState:n,forwardState:t};return o.discardedHashes[e]=r,!0},o.discardedState=function(e){var t=o.getHashByState(e),n;return n=o.discardedStates[t]||!1,n},o.discardedHash=function(e){var t=o.discardedHashes[e]||!1;return t},o.recycleState=function(e){var t=o.getHashByState(e);return o.discardedState(e)&&delete o.discardedStates[t],!0},o.emulated.hashChange&&(o.hashChangeInit=function(){o.checkerFunction=null;
1var t="",r,i,u,a,f=Boolean(o.getHash());return o.isInternetExplorer()?(r="historyjs-iframe",i=n.createElement("iframe"),i.setAttribute("id",r),i.setAttribute("src","#"),i.style.display="none",n.body.appendChild(i),i.contentWindow.document.open(),i.contentWindow.document.close(),u="",a=!1,o.checkerFunction=function(){if(a)return!1;a=!0;var n=o.getHash(),r=o.getHash(i.contentWindow.document);return n!==t?(t=n,r!==n&&(u=r=n,i.contentWindow.document.open(),i.contentWindow.document.close(),i.contentWindow.document.location.hash=o.escapeHash(n)),o.Adapter.trigger(e,"hashchange")):r!==u&&(u=r,f&&r===""?o.back():o.setHash(r,!1)),a=!1,!0}):o.checkerFunction=function(){var n=o.getHash()||"";return n!==t&&(t=n,o.Adapter.trigger(e,"hashchange")),!0},o.intervalList.push(s(o.checkerFunction,o.options.hashChangeInterval)),!0},o.Adapter.onDomLoad(o.hashChangeInit)),o.emulated.pushState&&(o.onHashChange=function(t){var n=t&&t.newURL||o.getLocationHref(),r=o.getHashByUrl(n),i=null,s=null,u=null,a;return o.isLastHash(r)?(o.busy(!1),!1):(o.doubleCheckComplete(),o.saveHash(r),r&&o.isTraditionalAnchor(r)?(o.Adapter.trigger(e,"anchorchange"),o.busy(!1),!1):(i=o.extractState(o.getFullUrl(r||o.getLocationHref()),!0),o.isLastSavedState(i)?(o.busy(!1),!1):(s=o.getHashByState(i),a=o.discardedState(i),a?(o.getHashByIndex(-2)===o.getHashByState(a.forwardState)?o.back(!1):o.forward(!1),!1):(o.pushState(i.data,i.title,encodeURI(i.url),!1),!0))))},o.Adapter.bind(e,"hashchange",o.onHashChange),o.pushState=function(t,n,r,i){r=encodeURI(r).replace(/%25/g,"%");if(o.getHashByUrl(r))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(i!==!1&&o.busy())return o.pushQueue({scope:o,callback:o.pushState,args:arguments,queue:i}),!1;o.busy(!0);var s=o.createStateObject(t,n,r),u=o.getHashByState(s),a=o.getState(!1),f=o.getHashByState(a),l=o.getHash(),c=o.expectedStateId==s.id;return o.storeState(s),o.expectedStateId=s.id,o.recycleState(s),o.setTitle(s),u===f?(o.busy(!1),!1):(o.saveState(s),c||o.Adapter.trigger(e,"statechange"),!o.isHashEqual(u,l)&&!o.isHashEqual(u,o.getShortUrl(o.getLocationHref()))&&o.setHash(u,!1),o.busy(!1),!0)},o.replaceState=function(t,n,r,i){r=encodeURI(r).replace(/%25/g,"%");if(o.getHashByUrl(r))throw new Error("History.js does not support states with fragment-identifiers (hashes/anchors).");if(i!==!1&&o.busy())return o.pushQueue({scope:o,callback:o.replaceState,args:arguments,queue:i}),!1;o.busy(!0);var s=o.createStateObject(t,n,r),u=o.getHashByState(s),a=o.getState(!1),f=o.getHashByState(a),l=o.getStateByIndex(-2);return o.discardState(a,s,l),u===f?(o.storeState(s),o.expectedStateId=s.id,o.recycleState(s),o.setTitle(s),o.saveState(s),o.Adapter.trigger(e,"statechange"),o.busy(!1)):o.pushState(s.data,s.title,s.url,!1),!0}),o.emulated.pushState&&o.getHash()&&!o.emulated.hashChange&&o.Adapter.onDomLoad(function(){o.Adapter.trigger(e,"hashchange")})},typeof o.init!="undefined"&&o.init()}(window),function(e,t){"use strict";var n=e.console||t,r=e.document,i=e.navigator,s=e.sessionStorage||!1,o=e.setTimeout,u=e.clearTimeout,a=e.setInterval,f=e.clearInterval,l=e.JSON,c=e.alert,h=e.History=e.History||{},p=e.history;try{s.setItem("TEST","1"),s.removeItem("TEST")}catch(d){s=!1}l.stringify=l.stringify||l.encode,l.parse=l.parse||l.decode;if(typeof h.init!="undefined")throw new Error("History.js Core has already been loaded...");h.init=function(e){return typeof h.Adapter=="undefined"?!1:(typeof h.initCore!="undefined"&&h.initCore(),typeof h.initHtml4!="undefined"&&h.initHtml4(),!0)},h.initCore=function(d){if(typeof h.initCore.initialized!="undefined")return!1;h.initCore.initialized=!0,h.options=h.options||{},h.options.hashChangeInterval=h.options.hashChangeInterval||100,h.options.safariPollInterval=h.options.safariPollInterval||500,h.options.doubleCheckInterval=h.options.doubleCheckInterval||500,h.options.disableSuid=h.options.disableSuid||!1,h.options.storeInterval=h.options.storeInterval||1e3,h.options.busyDelay=h.options.busyDelay||250,h.options.debug=h.options.debug||!1,h.options.initialTitle=h.options.initialTitle||r.title,h.options.html4Mode=h.options.html4Mode||!1,h.options.delayInit=h.options.delayInit||!1,h.intervalList=[],h.
1clearAllIntervals=function(){var e,t=h.intervalList;if(typeof t!="undefined"&&t!==null){for(e=0;e<t.length;e++)f(t[e]);h.intervalList=null}},h.debug=function(){(h.options.debug||!1)&&h.log.apply(h,arguments)},h.log=function(){var e=typeof n!="undefined"&&typeof n.log!="undefined"&&typeof n.log.apply!="undefined",t=r.getElementById("log"),i,s,o,u,a;e?(u=Array.prototype.slice.call(arguments),i=u.shift(),typeof n.debug!="undefined"?n.debug.apply(n,[i,u]):n.log.apply(n,[i,u])):i="\n"+arguments[0]+"\n";for(s=1,o=arguments.length;s<o;++s){a=arguments[s];if(typeof a=="object"&&typeof l!="undefined")try{a=l.stringify(a)}catch(f){}i+="\n"+a+"\n"}return t?(t.value+=i+"\n-----\n",t.scrollTop=t.scrollHeight-t.clientHeight):e||c(i),!0},h.getInternetExplorerMajorVersion=function(){var e=h.getInternetExplorerMajorVersion.cached=typeof h.getInternetExplorerMajorVersion.cached!="undefined"?h.getInternetExplorerMajorVersion.cached:function(){var e=3,t=r.createElement("div"),n=t.getElementsByTagName("i");while((t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e")&&n[0]);return e>4?e:!1}();return e},h.isInternetExplorer=function(){var e=h.isInternetExplorer.cached=typeof h.isInternetExplorer.cached!="undefined"?h.isInternetExplorer.cached:Boolean(h.getInternetExplorerMajorVersion());return e},h.options.html4Mode?h.emulated={pushState:!0,hashChange:!0}
1:h.emulated={pushState:!Boolean(e.history&&e.history.pushState&&e.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(i.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(i.userAgent)),hashChange:Boolean(!("onhashchange"in e||"onhashchange"in r)||h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<8)},h.enabled=!h.emulated.pushState,h.bugs={setHash:Boolean(!h.emulated.pushState&&i.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(i.userAgent)),safariPoll:Boolean(!h.emulated.pushState&&i.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(i.userAgent)),ieDoubleCheck:Boolean(h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<7)},h.isEmptyObject=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},h.cloneObject=function(e){var t,n;return e?(t=l.stringify(e),n=l.parse(t)):n={},n},h.getRootUrl=function(){var e=r.location.protocol+"//"+(r.location.hostname||r.location.host);if(r.location.port||!1)e+=":"+r.location.port;return e+="/",e},h.getBaseHref=function(){var e=r.getElementsByTagName("base"),t=null,n="";return e.length===1&&(t=e[0],n=t.href.replace(/[^\/]+$/,"")),n=n.replace(/\/+$/,""),n&&(n+="/"),n},h.getBaseUrl=function(){var e=h.getBaseHref()||h.getBasePageUrl()||h.getRootUrl();return e},h.getPageUrl=function(){var e=h.getState(!1,!1),t=(e||{}).url||h.getLocationHref(),n;return n=t.replace(/\/+$/,"").replace(/[^\/]+$/,function(e,t,n){return/\./.test(e)?e:e+"/"}),n},h.getBasePageUrl=function(){var e=h.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(e,t,n){return/[^\/]$/.test(e)?"":e}).replace(/\/+$/,"")+"/";return e},h.getFullUrl=function(e,t){var n=e,r=e.substring(0,1);return t=typeof t=="undefined"?!0:t,/[a-z]+\:\/\//.test(e)||(r==="/"?n=h.getRootUrl()+e.replace(/^\/+/,""):r==="#"?n=h.getPageUrl().replace(/#.*/,"")+e:r==="?"?n=h.getPageUrl().replace(/[\?#].*/,"")+e:t?n=h.getBaseUrl()+e.replace(/^(\.\/)+/,""):n=h.getBasePageUrl()+e.replace(/^(\.\/)+/,"")),n.replace(/\#$/,"")},h.getShortUrl=function(e){var t=e,n=h.getBaseUrl(),r=h.getRootUrl();return h.emulated.pushState&&(t=t.replace(n,"")),t=t.replace(r,"/"),h.isTraditionalAnchor(t)&&(t="./"+t),t=t.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),t},h.getLocationHref=function(e){return e=e||r,e.URL===e.location.href?e.location.href:e.location.href===decodeURIComponent(e.URL)?e.URL:e.location.hash&&decodeURIComponent(e.location.href.replace(/^[^#]+/,""))===e.location.hash?e.location.href:e.URL.indexOf("#")==-1&&e.location.href.indexOf("#")!=-1?e.location.href:e.URL||e.location.href},h.store={},h.idToState=h.idToState||{},h.stateToId=h.stateToId||{},h.urlToId=h.urlToId||{},h.storedStates=h.storedStates||[],h.savedStates=h.savedStates||[],h.normalizeStore=function(){h.store.idToState=h.store.idToState||{},h.store.urlToId=h.store.urlToId||{},h.store.stateToId=h.store.stateToId||{}},h.getState=function(e,t){typeof e=="undefined"&&(e=!0),typeof t=="undefined"&&(t=!0);var n=h.getLastSavedState();return!n&&t&&(n=h.createStateObject()),e&&(n=h.cloneObject(n),n.url=n.cleanUrl||n.url),n},h.getIdByState=function(e){var t=h.extractId(e.url),n;if(!t){n=h.getStateString(e);if(typeof h.stateToId[n]!="undefined")t=h.stateToId[n];else if(typeof h.store.stateToId[n]!="undefined")t=h.store.stateToId[n];else{for(;;){t=(new Date).getTime()+String(Math.random()).replace(/\D/g,"");if(typeof h.idToState[t]=="undefined"&&typeof h.store.idToState[t]=="undefined")break}h.stateToId[n]=t,h.idToState[t]=e}}return t},h.normalizeState=function(e){var t,n;if(!e||typeof e!="object")e={};if(typeof e.normalized!="undefined")return e;if(!e.data||typeof e.data!="object")e.data={};return t={},t.normalized=!0,t.title=e.title||"",t.url=h.getFullUrl(e.url?e.url:h.getLocationHref()),t.hash=h.getShortUrl(t.url),t.data=h.cloneObject(e.data),t.id=h.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,n=!h.isEmptyObject(t.data),(t.title||n)&&h.options.disableSuid!==!0&&(t.hash=h.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=h.getFullUrl(t.hash),(h.emulated.pushState||h.bugs.safariPoll)&&h.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t},h.createStateObject=function(e,t,n){var r={data:e,title:t,url:n};return r=h.normalizeState(r),r},h.getStateById=function(e){e=String(e);var n=h.idToState[e]||h.store.idToState[e]||t;return n},h.getStateString=function(e){var t,n,r;return t=h.normalizeState(e),n={data:t.data,title:e.title,url:e.url},r=l.stringify(n),r},h.getStateId=function(e){var t,n;return t=h.normalizeState(e),n=t.id,n},h.getHashByState=function(e){var t,n;return t=h.normalizeState(e),n=t.hash,n},h.extractId=function(e){var t,n,r,i;return e.indexOf("#")!=-1?i=e.split("#")[0]:i=e,n=/(.*)\&_suid=([0-9]+)$/.exec(i),r=n?n[1]||e:e,t=n?String(n[2]||""):"",t||!1},h.isTraditionalAnchor=function(e){var t=!/[\/\?\.]/.test(e);return t},h.extractState=function(e,t){var n=null,r,i;return t=t||!1,r=h.extractId(e),r&&(n=h.getStateById(r)),n||(i=h.getFullUrl(e),r=h.getIdByUrl(i)||!1,r&&(n=h.getStateById(r)),!n&&t&&!h.isTraditionalAnchor(e)&&(n=h.createStateObject(null,null,i))),n},h.getIdByUrl=function(e){var n=h.urlToId[e]||h.store.urlToId[e]||t;return n},h.getLastSavedState=function(){return h.savedStates[h.savedStates.length-1]||t},h.getLastStoredState=function(){return h.storedStates[h.storedStates.length-1]||t},h.hasUrlDuplicate=function(e){var t=!1,n;return n=h.extractState(e.url),t=n&&n.id!==e.id,t},h.storeState=function(e){return h.urlToId[e.url]=e.id,h.storedStates.push(h.cloneObject(e)),e},h.isLastSavedState=function(e){var t=!1,n,r,i;return h.savedStates.length&&(n=e.id,r=h.getLastSavedState(),i=r.id,t=n===i),t},h.saveState=function(e){return h.isLastSavedState(e)?!1:(h.savedStates.push(h.cloneObject(e)),!0)},h.getStateByIndex=function(e){var t=null;return typeof e=="undefined"?t=h.savedStates[h.savedStates.length-1]:e<0?t=h.savedStates[h.savedStates.length+e]:t=h.savedStates[e],t},h.getCurrentIndex=function(){var e=null;return h.savedStates.length<1?e=0:e=h.savedStates.length-1,e},h.getHash=function(e){var t=h.getLocationHref(e),n;return n=h.getHashByUrl(t),n},h.unescapeHash=function(e){var t=h.normalizeHash(e);return t=decodeURIComponent(t),t},h.normalizeHash=function(e){var t=e.replace(/[^#]*#/,"").replace(/#.*/,"");return t},h.setHash=function(e,t){var n,i;return t!==!1&&h.busy()?(h.pushQueue({scope:h,callback:h.setHash,args:arguments,queue:t}),!1):(h.busy(!0),n=h.extractState(e,!0),n&&!h.emulated.pushState?h.pushState(n.data,n.title,n.url,!1):h.getHash()!==e&&(h.bugs.setHash?(i=h.getPageUrl(),h.pushState(null,null,i+"#"+e,!1)):r.location.hash=e),h)},h.escapeHash=function(t){var n=h.normalizeHash(t);return n=e.encodeURIComponent(n),h.bugs.hashEscape||(n=n.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),n},h.getHashByUrl=function(e){var t=String(e).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return t=h.unescapeHash(t),t},h.setTitle=function(e){var t=e.title,n;t||(n=h.getStateByIndex(0),n&&n.url===e.url&&(t=n.title||h.options.initialTitle));try{r.getElementsByTagName("title")[0].innerHTML=t.replace("<","<").replace(">",">").replace(" & "," & ")}catch(i){}return r.title=t,h},h.queues=[],h.busy=function(e){typeof e!="undefined"?h.busy.flag=e:typeof h.busy.flag=="undefined"&&(h.busy.flag=!1);if(!h.busy.flag){u(h.busy.timeout);var t=function(){var e,n,r;if(h.busy.flag)return;for(e=h.queues.length-1;e>=0;--e){n=h.queues[e];if(n.length===0)continue;r=n.shift(),h.fireQueueItem(r),h.busy.timeout=o(t,h.options.busyDelay)}};h.busy.timeout=o(t,h.options.busyDelay)}return h.busy.flag},h.busy.flag=!1,h.fireQueueItem=function(e){return e.callback.apply(e.scope||h,e.args||[])},h.pushQueue=function(e){return h.queues[e.queue||0]=h.queues[e.queue||0]||[],h.queues[e.queue||0].push(e),h},h.queue=function(e,t){return typeof e=="function"&&(e={callback:e}),typeof t!="undefined"&&(e.queue=t),h.busy()?h.pushQueue(e):h.fireQueueItem(e),h},h.clearQueue=function(){return h.busy.flag=!1,h.queues=[],h},h.stateChanged=!1,h.doubleChecker=!1,h.doubleCheckComplete=function(){return h.stateChanged=!0,h.doubleCheckClear(),h},h.doubleCheckClear=function(){return h.doubleChecker&&(u(h.doubleChecker),h.doubleChecker=!1),h},h.doubleCheck=function(e){return h.stateChanged=!1,h.doubleCheckClear(),h.bugs.ieDoubleCheck&&(h.doubleChecker=o(function(){return h.doubleCheckClear(),h.stateChanged||e(),!0},h.options.doubleCheckInterval)),h},h.safariStatePoll=function(){var t=h.extractState(h.getLocationHref()),n;if(!h.isLastSavedState(t))return n=t,n||(n=h.createStateObject()),h.Adapter.trigger(e,"popstate"),h;return},h.back=function(e){return e!==!1&&h.busy()?(h.pushQueue({scope:h,callback:h.back,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.back(!1)}),p.go(-1),!0)},h.forward=function(e){return e!==!1&&h.busy()?(h.pushQueue({scope:h,callback:h.forward,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.forward(!1)}),p.go(1),!0)},h.go=function(e,t){var n;if(e>0)for(n=1;n<=e;++n)h.forward(t);else{if(!(e<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(n=-1;n>=e;--n)h.back(t)}return h};if(h.emulated.pushState){var v=function(){};h.pushState=h.pushState||v,h.replaceState=h.replaceState||v}else h.onPopState=function(t,n){var r=!1,i=!1,s,o;return h.doubleCheckComplete(),s=h.getHash(),s?(o=h.extractState(s||h.getLocationHref(),!0),o?h.replaceState(o.data,o.title,o.url,!1):(h.Adapter.trigger(e,"anchorchange"),h.busy(!1)),h.expectedStateId=!1,!1):(r=h.Adapter.extractEventData("state",t,n)||!1,r?i=h.getStateById(r):h.expectedStateId?i=h.getStateById(h.expectedStateId):i=h.extractState(h.getLocationHref()),i||(i=h.createStateObject(null,null,h.getL
1ocationHref())),h.expectedStateId=!1,h.isLastSavedState(i)?(h.busy(!1),!1):(h.storeState(i),h.saveState(i),h.setTitle(i),h.Adapter.trigger(e,"statechange"),h.busy(!1),!0))},h.Adapter.bind(e,"popstate",h.onPopState),h.pushState=function(t,n,r,i){if(h.getHashByUrl(r)&&h.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(i!==!1&&h.busy())return h.pushQueue({scope:h,callback:h.pushState,args:arguments,queue:i}),!1;h.busy(!0);var s=h.createStateObject(t,n,r);return h.isLastSavedState(s)?h.busy(!1):(h.storeState(s),h.expectedStateId=s.id,p.pushState(s.id,s.title,s.url),h.Adapter.trigger(e,"popstate")),!0},h.replaceState=function(t,n,r,i){if(h.getHashByUrl(r)&&h.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(i!==!1&&h.busy())return h.pushQueue({scope:h,callback:h.replaceState,args:arguments,queue:i}),!1;h.busy(!0);var s=h.createStateObject(t,n,r);return h.isLastSavedState(s)?h.busy(!1):(h.storeState(s),h.expectedStateId=s.id,p.replaceState(s.id,s.title,s.url),h.Adapter.trigger(e,"popstate")),!0};if(s){try{h.store=l.parse(s.getItem("History.store"))||{}}catch(m){h.store={}}h.normalizeStore()}else h.store={},h.normalizeStore();h.Adapter.bind(e,"unload",h.clearAllIntervals),h.saveState(h.storeState(h.extractState(h.getLocationHref(),!0))),s&&(h.onUnload=function(){var e,t,n;try{e=l.parse(s.getItem("History.store"))||{}}catch(r){e={}}e.idToState=e.idToState||{},e.urlToId=e.urlToId||{},e.stateToId=e.stateToId||{};for(t in h.idToState){if(!h.idToState.hasOwnProperty(t))continue;e.idToState[t]=h.idToState[t]}for(t in h.urlToId){if(!h.urlToId.hasOwnProperty(t))continue;e.urlToId[t]=h.urlToId[t]}for(t in h.stateToId){if(!h.stateToId.hasOwnProperty(t))continue;e.stateToId[t]=h.stateToId[t]}h.store=e,h.normalizeStore(),n=l.stringify(e);try{s.setItem("History.store",n)}catch(i){if(i.code!==DOMException.QUOTA_EXCEEDED_ERR)throw i;s.length&&(s.removeItem("History.store"),s.setItem("History.store",n))}},h.intervalList.push(a(h.onUnload,h.options.storeInterval)),h.Adapter.bind(e,"beforeunload",h.onUnload),h.Adapter.bind(e,"unload",h.onUnload));if(!h.emulated.pushState){h.bugs.safariPoll&&h.intervalList.push(a(h.safariStatePoll,h.options.safariPollInterval));if(i.vendor==="Apple Computer, Inc."||(i.appCodeName||"")==="Mozilla")h.Adapter.bind(e,"hashchange",function(){h.Adapter.trigger(e,"popstate")}),h.getHash()&&h.Adapter.onDomLoad(function(){h.Adapter.trigger(e,"hashchange")})}},(!h.options||!h.options.delayInit)&&h.init()}(window);function history_control_object(settings){var page_var_name=typeof settings.var_name!="undefined"?settings.var_name:"page";var history_main=this,first_load_page_call=true;history_main.base_filename=typeof settings.base_filename!="undefined"?settings.base_filename:"";window.History.Adapter.bind(window,"statechange",function(){if(typeof History.Adapter.artificial!="undefined"){delete History.Adapter.artificial;return}load_page_cont(History.getState().data)});window.History.pushStateOriginal=window.History.pushState;window.History.pushState=function(state,string,url){window.History.Adapter.artificial=true;window.History.pushStateOriginal(state,string,url)};history_main.add=function(init,do_replace){var new_history=window.History;new_history.options.debug=false;if(!new_history.enabled){return false}var init_new_url=init.new_url;var init=deepcopy(init);delete_reserved_keys(init);if(typeof init_new_url!="undefined"){var new_url=init_new_url}else{var new_url=location.protocol+"//"+location.host+location.pathname+history_main.base_filename;new_url+=typeof init[page_var_name]=="undefined"?"?":formUrlVars(init)}History.history_state_pushed=true;if(do_replace==false){new_history.pushState(init,history_main.title,new_url)}else{new_history.replaceState(init,history_main.title,new_url)}history_state_pushed=false};history_main.load_page=function(init){if(typeof init=="undefined")init={};settings.app_url_vars=getUrlVars(settings.app_url_vars);if(typeof init[page_var_name]=="undefined")init[page_var_name]=settings.app_url_vars[page_var_name];var do_replace_on_call=false;if(first_load_page_call==true){if(typeof init[page_var_name]!="undefined"){window.History.Adapter.artificial=true;do_replace_on_call=true;first_load_page_call=false}}load_page_cont(init,function(){if(typeof history_main.title!="undefined")document.title=history_main.title;if(first_load_page_call==false||do_replace_on_call==true){history_main.add(init,do_replace_on_call)}else{var current_state=merge_objects(init,History.getState());delete_reserved_keys(current_state);first_load_page_call=false;window.History.Adapter.artificial=true;History.replaceState(current_state,history_main.title,window.location.href)}if(typeof init.callback!="undefined")init.callback(init)})};function load_page_cont(init,callback){if(typeof init=="undefined")init={};init[page_var_name]=typeof init[page_var_name]!="undefined"?init[page_var_name]:settings.initial_page;settings.set_function(init,callback)}function delete_reserved_keys(init){if(typeof init.callback!="undefined")delete init.callback;if(typeof init.new_url!="undefined")delete init.new_url}function formUrlVars(variable_list){var return_value="";for(var i in variable_list){return_value+="&"+i+"="+variable_list[i]}if(return_value!="")return_value="?"+return_value.slice(1,return_value.length);return return_value}function getUrlVars(variable_object){if(typeof variable_object!="object"||variable_object==null)var variable_object={};var current_variable;var variable_list=window.location.href.slice(window.location.href.indexOf("?")+1).split("&");var curlen=variable_list.length;for(var i=0;i<curlen;i++){current_variable=variable_list[i].split("=");if(typeof current_variable[1]=="undefined")continue;variable_object[current_variable[0]]=decodeURIComponent(current_variable[1])}return variable_object}function get_domain_and_directory(url){var last_index=url.lastIndexOf("/")+1;return url.substring(0,last_index)}
vendor: 4,286 bytes, line 1
1function merge_objects(primary,secondary){if(typeof secondary=="undefined")var primary=primary.primary,secondary=primary.secondary;var new_object={};for(var property in secondary){new_object[property]=secondary[property]}for(var property in primary){new_object[property]=primary[property]}return new_object}function deepcopy(obj){if(typeof obj!=="object"||obj==null)return obj;var c=obj instanceof Array?[]:{};for(var i in obj){var prop=obj[i];if(typeof prop!="object"){c[i]=prop;continue}if(!(prop instanceof Array)){c[i]=deepcopy(prop);continue}c[i]=[];for(var j=0,curlen=prop.length;j<curlen;j++){if(typeof prop[j]!="object"){c[i].push(prop[j]);continue}c[i].push(deepcopy(prop[j]))}}return c}}(function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){(function(){function t(e,t,i){return[parseFloat(e[0])*(p.test(e[0])?t/100:1),parseFloat(e[1])*(p.test(e[1])?i/100:1)]}function i(t,i){return parseInt(e.css(t,i),10)||0}function s(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.ui=e.ui||{};var n,a,o=Math.max,r=Math.abs,h=Math.round,l=/left|center|right/,u=/top|center|bottom/,d=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,p=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==n)return n;var t,i,s=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=s.children()[0];return e("body").append(s),t=a.offsetWidth,s.css("overflow","scroll"),i=a.offsetWidth,t===i&&(i=s[0].clientWidth),s.remove(),n=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),s=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),n="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth,a="scroll"===s||"auto"===s&&t.height<t.element[0].scrollHeight;return{width:a?e.position.scrollbarWidth():0,height:n?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),s=e.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:s,isDocument:n,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:s||n?i.width():i.outerWidth(),height:s||n?i.height():i.outerHeight()}}},e.fn.position=function(n){if(!n||!n.of)return f.apply(this,arguments);n=e.extend({},n);var p,m,g,v,y,b,_=e(n.of),x=e.position.getWithinInfo(n.within),w=e.position.getScrollInfo(x),k=(n.collision||"flip").split(" "),T={};return b=s(_),_[0].preventDefault&&(n.at="left top"),m=b.width,g=b.height,v=b.offset,y=e.extend({},v),e.each(["my","at"],function(){var e,t,i=(n[this]||"").split(" ");1===i.length&&(i=l.test(i[0])?i.concat(["center"]):u.test(i[0])?["center"].concat(i):["center","center"]),i[0]=l.test(i[0])?i[0]:"center",i[1]=u.test(i[1])?i[1]:"center",e=d.exec(i[0]),t=d.exec(i[1]),T[this]=[e?e[0]:0,t?t[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===k.length&&(k[1]=k[0]),"right"===n.at[0]?y.left+=m:"center"===n.at[0]&&(y.left+=m/2),"bottom"===n.at[1]?y.top+=g:"center"===n.at[1]&&(y.top+=g/2),p=t(T.at,m,g),y.left+=p[0],y.top+=p[1],this.each(function(){var s,l,u=e(this),d=u.outerWidth(),c=u.outerHeight(),f=i(this,"marginLeft"),b=i(this,"marginTop"),D=d+f+i(this,"marginRight")+w.width,S=c+b+i(this,"marginBottom")+w.height,N=e.extend({},y),M=t(T.my,u.outerWidth(),u.outerHeight());"right"===n.my[0]?N.left-=d:"center"===n.my[0]&&(N.left-=d/2),"bottom"===n.my[1]?N.top-=c:"center"===n.my[1]&&(N.top-=c/2),N.left+=M[0],N.top+=M[1],a||(N.left=h(N.left),N.top=h(N.top)),s={marginLeft:f,marginTop:b},e.each(["left","top"],function(t,i){e.ui.position[k[t]]&&e.ui.position[k[t]][i](N,{targetWidth:m,targetHeight:g,elemWidth:d,elemHeight:c,collisionPosition:s,collisionWidth:D,collisionHeight:S,offset:[p[0]+M[0],p[1]+M[1]],my:n.my,at:n.at,within:x,elem:u})}),n.using&&(l=function(e){var t=v.left-N.left,i=t+m-d,s=v.top-N.top,a=s+g-c,h={target:{element:_,left:v.left,top:v.top,width:m,height:g},element:{element:u,left:N.left,top:N.top,width:d,height:c},horizontal:0>i?"left":t>0?"right":"center",vertical:0>
1a?"top":s>0?"bottom":"middle"};d>m&&m>r(t+i)&&(h.horizontal="center"),c>g&&g>r(s+a)&&(h.vertical="middle"),h.important=o(r(t),r(i))>o(r(s),r(a))?"horizontal":"vertical",n.using.call(this,e,h)}),u.offset(e.extend(N,{using:l}))})},e.ui.position={fit:{left:function(e,t){var i,s=t.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=e.left-t.collisionPosition.marginLeft,h=n-r,l=r+t.collisionWidth-a-n;t.collisionWidth>a?h>0&&0>=l?(i=e.left+h+t.collisionWidth-a-n,e.left+=h-i):e.left=l>0&&0>=h?n:h>l?n+a-t.collisionWidth:n:h>0?e.left+=h:l>0?e.left-=l:e.left=o(e.left-r,e.left)},top:function(e,t){var i,s=t.within,n=s.isWindow?s.scrollTop:s.offset.top,a=t.within.height,r=e.top-t.collisionPosition.marginTop,h=n-r,l=r+t.collisionHeight-a-n;t.collisionHeight>a?h>0&&0>=l?(i=e.top+h+t.collisionHeight-a-n,e.top+=h-i):e.top=l>0&&0>=h?n:h>l?n+a-t.collisionHeight:n:h>0?e.top+=h:l>0?e.top-=l:e.top=o(e.top-r,e.top)}},flip:{left:function(e,t){var i,s,n=t.within,a=n.offset.left+n.scrollLeft,o=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=e.left-t.collisionPosition.marginLeft,u=l-h,d=l+t.collisionWidth-o-h,c="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];0>u?(i=e.left+c+p+f+t.collisionWidth-o-a,(0>i||r(u)>i)&&(e.left+=c+p+f)):d>0&&(s=e.left-t.collisionPosition.marginLeft+c+p+f-h,(s>0||d>r(s))&&(e.left+=c+p+f))},top:function(e,t){var i,s,n=t.within,a=n.offset.top+n.scrollTop,o=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=e.top-t.collisionPosition.marginTop,u=l-h,d=l+t.collisionHeight-o-h,c="top"===t.my[1],p=c?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,m=-2*t.offset[1];0>u?(s=e.top+p+f+m+t.collisionHeight-o-a,(0>s||r(u)>s)&&(e.top+=p+f+m)):d>0&&(i=e.top-t.collisionPosition.marginTop+p+f+m-h,(i>0||d>r(i))&&(e.top+=p+f+m))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,s,n,o,r=document.getElementsByTagName("body")[0],h=document.createElement("div");t=document.createElement(r?"div":"body"),s={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&e.extend(s,{position:"absolute",left:"-1000px",top:"-1000px"});for(o in s)t.style[o]=s[o];t.appendChild(h),i=r||document.documentElement,i.insertBefore(t,i.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",n=e(h).offset().left,a=n>10&&11>n,t.innerHTML="",i.removeChild(t)}()})(),e.ui.position});(function(t,i,n){var e=i.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=n(e):"function"==typeof define&&define.amd?define(function(){return i[t]=n(e)}):i[t]=n(e)})("enquire",this,function(t){"use strict";function i(t,i){var n,e=0,s=t.length;for(e;s>e&&(n=i(t[e],e),n!==!1);e++);}function n(t){return"[object Array]"===Object.prototype.toString.apply(t)}function e(t){return"function"==typeof t}function s(t){this.options=t,!t.deferSetup&&this.setup()}function o(i,n){this.query=i,this.isUnconditional=n,this.handlers=[],this.mql=t(i);var e=this;this.listener=function(t){e.mql=t,e.assess()},this.mql.addListener(this.listener)}
1function r(){if(!t)throw Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!t("only all").matches}return s.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(t){return this.options===t||this.options.match===t}},o.prototype={addHandler:function(t){var i=new s(t);this.handlers.push(i),this.matches()&&i.on()},removeHandler:function(t){var n=this.handlers;i(n,function(i,e){return i.equals(t)?(i.destroy(),!n.splice(e,1)):void 0})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,function(t){t.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var t=this.matches()?"on":"off";i(this.handlers,function(i){i[t]()})}},r.prototype={register:function(t,s,r){var h=this.queries,u=r&&this.browserIsIncapable;return h[t]||(h[t]=new o(t,u)),e(s)&&(s={match:s}),n(s)||(s=[s]),i(s,function(i){h[t].addHandler(i)}),this},unregister:function(t,i){var n=this.queries[t];return n&&(i?n.removeHandler(i):(n.clear(),delete this.queries[t])),this}},new r});(function($,window,undefined){$.fn.extend({elemedia:function(mediaQuery,threshold){return this.each(function(){var $this=$(this);var className="mq-"+mediaQuery+"-"+threshold;checkWidth=function(){if(mediaQuery=="min-width"){if($this.width()>=threshold&&!$this.hasClass(className)){$this.addClass(className)}if($this.hasClass(className)&&$this.width()<threshold){$this.removeClass(className)}}if(mediaQuery=="max-width"){if($this.width()<=threshold&&!$this.hasClass(className)){$this.addClass(className)}if($this.hasClass(className)&&$this.width()>threshold){$this.removeClass(className)}}};checkWidth();$(window).resize(checkWidth)})}})})(jQuery,window);function FastClick(a){var c,b=this;this.trackingClick=!1;this.trackingClickStart=0;this.targetElement=null;this.lastTouchIdentifier=this.touchStartY=this.touchStartX=0;this.layer=a;if(!a||!a.nodeType)throw new TypeError("Layer must be a document node");this.onClick=function(){return FastClick.prototype.onClick.apply(b,arguments)};this.onMouse=function(){return FastClick.prototype.onMouse.apply(b,arguments)};this.onTouchStart=function(){return FastClick.prototype.onTouchStart.apply(b,arguments)};this.onTouchEnd=function(){return FastClick.prototype.onTouchEnd.apply(b,arguments)};this.onTouchCancel=function(){return FastClick.prototype.onTouchCancel.apply(b,arguments)};FastClick.notNeeded()||(this.deviceIsAndroid&&(a.addEventListener("mouseover",this.onMouse,!0),a.addEventListener("mousedown",this.onMouse,!0),a.addEventListener("mouseup",this.onMouse,!0)),a.addEventListener("click",this.onClick,!0),a.addEventListener("touchstart",this.onTouchStart,!1),a.addEventListener("touchend",this.onTouchEnd,!1),a.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(a.removeEventListener=function(d,b,c){var e=Node.prototype.removeEventListener;"click"===d?e.call(a,d,b.hijacked||b,c):e.call(a,d,b,c)},a.addEventListener=function(b,c,f){var e=Node.prototype.addEventListener;"click"===b?e.call(a,b,c.hijacked||(c.hijacked=function(a){a.prop
1agationStopped||c(a)}),f):e.call(a,b,c,f)}),"function"===typeof a.onclick&&(c=a.onclick,a.addEventListener("click",function(a){c(a)},!1),a.onclick=null))}FastClick.prototype.deviceIsAndroid=0<navigator.userAgent.indexOf("Android");FastClick.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent);FastClick.prototype.deviceIsIOS4=FastClick.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent);FastClick.prototype.deviceIsIOSWithBadTarget=FastClick.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);FastClick.prototype.needsClick=function(a){switch(a.nodeName.toLowerCase()){case"button":case"input":return this.deviceIsIOS&&"file"===a.type?!0:a.disabled;case"label":case"video":return!0;default:return/\bneedsclick\b/.test(a.className)}};FastClick.prototype.needsFocus=function(a){switch(a.nodeName.toLowerCase()){case"textarea":case"select":return!0;case"input":switch(a.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!a.disabled&&!a.readOnly;default:return/\bneedsfocus\b/.test(a.className)}};FastClick.prototype.sendClick=function(a,c){var b,d;document.activeElement&&document.activeElement!==a&&document.activeElement.blur();d=c.changedTouches[0];b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,1,d.screenX,d.screenY,d.clientX,d.clientY,!1,!1,!1,!1,0,null);b.forwardedTouchEvent=!0;a.dispatchEvent(b)};FastClick.prototype.focus=function(a){var c;this.deviceIsIOS&&a.setSelectionRange?(c=a.value.length,a.setSelectionRange(c,c)):a.focus()};FastClick.prototype.updateScrollParent=function(a){var c,b;c=a.fastClickScrollParent;if(!c||!c.contains(a)){b=a;do{if(b.scrollHeight>b.offsetHeight){c=b;a.fastClickScrollParent=b;break}b=b.parentElement}while(b)}c&&(c.fastClickLastScrollTop=c.scrollTop)};FastClick.prototype.getTargetElementFromEventTarget=function(a){return a.nodeType===Node.TEXT_NODE?a.parentNode:a};FastClick.prototype.onTouchStart=function(a){var c,b,d;c=this.getTargetElementFromEventTarget(a.target);b=a.targetTouches[0];if(this.deviceIsIOS){d=window.getSelection();if(d.rangeCount&&!d.isCollapsed)return!0;if(!this.deviceIsIOS4){if(b.identifier===this.lastTouchIdentifier)return a.preventDefault(),!1;this.lastTouchIdentifier=b.identifier;this.updateScrollParent(c)}}this.trackingClick=!0;this.trackingClickStart=a.timeStamp;this.targetElement=c;this.touchStartX=b.pageX;this.touchStartY=b.pageY;200>a.timeStamp-this.lastClickTime&&a.preventDefault();return!0};FastClick.prototype.touchHasMoved=function(a){a=a.changedTouches[0];return 10<Math.abs(a.pageX-this.touchStartX)||10<Math.abs(a.pageY-this.touchStartY)?!0:!1};FastClick.prototype.findControl=function(a){return void 0!==a.control?a.control:a.htmlFor?document.getElementById(a.htmlFor):a.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")};FastClick.prototype.onTouchEnd=function(a){var c,b,d;d=this.targetElement;this.touchHasMoved(a)&&(this.trackingClick=!1,this.targetElement=null);if(!this.trackingClick)return!0;if(200>a.timeStamp-this.lastClickTime)return this.cancelNextClick=!0;this.lastClickTime=a.timeStamp;c=this.trackingClickStart;this.trackingClick=!1;this.trackingClickStart=0;this.deviceIsIOSWithBadTarget&&(d=a.changedTouches[0],d=document.elementFromPoint(d.pageX-window.pageXOffset,d.pageY-window.pageYOffset));b=d.tagName.toLowerCase();if("label"===b){if(c=this.findControl(d)){this.focus(d);if(this.deviceIsAndroid)return!1;d=c}}else if(this.needsFocus(d)){if(100<a.timeStamp-c||this.deviceIsIOS&&window.top!==window&&"input"===b)return this.targetElement=null,!1;this.focus(d);if(!this.deviceIsIOS4||"select"!==b)this.targetElement=null,a.preventDefault();return!1}if(this.deviceIsIOS&&!this.deviceIsIOS4&&(c=d.fastClickScrollParent)&&c.fastClickLastScrollTop!==c.scrollTop)return!0;this.needsClick(d)||(a.preventDefault(),this.sendClick(d,a));return!1};FastClick.prototype.onTouchCancel=function(){this.trackingClick=!1;this.targetElement=null};FastClick.prototype.onMouse=function(a){return!this.targetElement||a.forwardedTouchEvent||!a.cancelable?!0:!this.needsClick(this.targetElement)||this.cancelNextClick?(a.stopImmediatePropagation?a.stopImmediatePropagation():a.propagationStopped=!0,a.stopPropagation(),a.preventDefault(),!1):!0};
1FastClick.prototype.onClick=function(a){if(this.trackingClick)return this.targetElement=null,this.trackingClick=!1,!0;if("submit"===a.target.type&&0===a.detail)return!0;a=this.onMouse(a);a||(this.targetElement=null);return a};FastClick.prototype.destroy=function(){var a=this.layer;this.deviceIsAndroid&&(a.removeEventListener("mouseover",this.onMouse,!0),a.removeEventListener("mousedown",this.onMouse,!0),a.removeEventListener("mouseup",this.onMouse,!0));a.removeEventListener("click",this.onClick,!0);a.removeEventListener("touchstart",this.onTouchStart,!1);a.removeEventListener("touchend",this.onTouchEnd,!1);a.removeEventListener("touchcancel",this.onTouchCancel,!1)};FastClick.notNeeded=function(){var a;if("undefined"===typeof window.ontouchstart)return!0;if(/Chrome\/[0-9]+/.test(navigator.userAgent))if(FastClick.prototype.deviceIsAndroid){if((a=document.querySelector("meta[name=viewport]"))&&-1!==a.content.indexOf("user-scalable=no"))return!0}else return!0;return!1};FastClick.attach=function(a){return new FastClick(a)};"undefined"!==typeof define&&define.amd&&define(function(){return FastClick});"undefined"!==typeof module&&module.exports&&(module.exports=FastClick.attach,module.exports.FastClick=FastClick);(function($){$.fn.flowtype=function(options){var settings=$.extend({maximum:9999,minimum:1,maxFont:9999,minFont:1,fontRatio:35,lineRatio:1.45},options),changes=function(el){var $el=$(el);var parent=$(".dd_site-title");parent.css("display","block");var elw=$el.width(),width=elw>settings.maximum?settings.maximum:elw<settings.minimum?settings.minimum:elw,fontBase=width/settings.fontRatio,fontSize=fontBase>settings.maxFont?settings.maxFont:fontBase<settings.minFont?settings.minFont:fontBase;$el.css({"font-size":fontSize+"px","line-height":fontSize*settings.lineRatio+"px"});parent.removeAttr("style")};return this.each(function(){var that=this;changes(this);$(window).resize(function(){changes(that)})})}})(jQuery);(function($,sr){var debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap)func.apply(obj,args);timeout=null}if(timeout)clearTimeout(timeout);else if(execAsap)func.apply(obj,args);timeout=setTimeout(delayed,threshold||100)}};jQuery.fn[sr]=function(fn){return fn?this.bind("resize",debounce(fn)):this.trigger(sr)}})(jQuery,"smartresize");(function(f){"use strict";"function"===typeof define&&define.amd?define(["jquery"],f):"undefined"!==typeof module&&module.exports?module.exports=f(require("jquery")):f(jQuery)})(function($){"use strict";function n(a){return!a.nodeName||-1!==$.inArray(a.nodeName.toLowerCase(),["iframe","#document","html","body"])}function h(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}var p=$.scrollTo=function(a,d,b){return $(window).scrollTo(a,d,b)};p.defaults={axis:"xy",duration:0,limit:!0};$.fn.scrollTo=function(a,d,b){"object"===typeof d&&(b=d,d=0);"function"===typeof b&&(b={onAfter:b});"max"===a&&(a=9e9);b=$.extend({},p.defaults,b);d=d||b.duration;var u=b.queue&&1<b.axis.length;u&&(d/=2);b.offset=h(b.offset);b.over=h(b.over);return this.each(function(){function k(a){var k=$.extend({},b,{queue:!0,duration:d,complete:a&&function(){a.call(q,e,b)}});r.animate(f,k)}if(null!==a){var l=n(this),q=l?this.contentWindow||window:this,r=$(q),e=a,f={},t;switch(typeof e){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(e)){e=h(e);break}e=l?$(e):$(e,q);if(!e.length)return;case"object":if(e.is||e.style)t=(e=$(e)).offset()}var v=$.isFunction(b.offset)&&b.offset(q,e)||b.offset;$.each(b.axis.split(""),function(a,c){var d="x"===c?"Left":"Top",m=d.toLowerCase(),g="scroll"+d,h=r[g](),n=p.max(q,c);t?(f[g]=t[m]+(l?0:h-r.offset()[m]),b.margin&&(f[g]-=parseInt(e.css("margin"+d),10)||0,f[g]-=parseInt(e.css("border"+d+"Width"),10)||0),f[g]+=v[m]||0,b.over[m]&&(f[g]+=e["x"===c?"width":"height"]()*b.over[m])):(d=e[m],f[g]=d.slice&&"%"===d.slice(-1)?parseFloat(d)/100*n:d);b.limit&&/^\d+$/.test(f[g])&&(f[g]=0>=f[g]?0:Math.min(f[g],n));!a&&1<b.axis.length&&(h===f[g]?f={}:u&&(k(b.onAfterFirst),f={}))});k(b.onAfter)}})};p.max=function(a,d){var b="x"===d?"Width":"Height",h="scroll"+b;if(!n(a))return a[h]-$(a)[b.toLowerCase()]();var b="client"+b,k=a.ownerDocument||a.document,l=k.documentElement,k=k.body;return Math.max(l[h],k[h])-Math.min(l[b],k[b])};$.Tween.propHooks.scrollLeft=$.Tween.propHooks.scrollTop={get:function(a){return $(a.elem)[a.prop]()},set:function(a){var d=this.get(a);if(a.options.interrupt&&a._last&&a._last!==d)return $(a.elem).stop();var b=Math.round(a.now);d!==b&&($(a.elem)[a.prop](b),a._last=this.get(a))}};return p});window.Modernizr=window.Modernizr||function(a,b,c){function v(a){i.cssText=a}function w(a,b){return v(l.join(a+";")+(b||""))}function x(a,b){return typeof a===b}function y(a,b){return!!~(""+a).indexOf(b)}function z(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:x(f,"function")?f.bind(d||b):f}return!1}var d="2.8.3",e={},f=b.documentElement,g="modernizr",h=b.createElement(g),i=h.style,j,k={}.toString,l=" -webkit- -moz- -o- -ms- ".split(" "),m={svg:"http://www.w3.org/2000/svg"},n={},o={},p={},q=[],r=q.slice,s,t={}.hasOwnProperty,u;!x(t,"undefined")&&!x(t.call,"undefined")?u=function(a,b){return t.call(a,b)}:u=function(a,b){return b in a&&x(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;
1var d=r.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(r.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(r.call(arguments)))};return e}),n.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==m.svg};for(var A in n)u(n,A)&&(s=A.toLowerCase(),e[s]=n[A](),q.push((e[s]?"":"no-")+s));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)u(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof enableClasses!="undefined"&&enableClasses&&(f.className+=" "+(b?"":"no-")+a),e[a]=b}return e},v(""),h=j=null,e._version=d,e._prefixes=l,e}(this,this.document),Modernizr.addTest("cssfilters",function(){var a=document.createElement("div");return a.style.cssText=Modernizr._prefixes.join("filter:blur(2px); "),!!a.style.length&&(document.documentMode===undefined||document.documentMode>9)}),Modernizr.addTest("svgfilters",function(){var a=!1;try{a=typeof SVGFEColorMatrixElement!==undefined&&SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE==2}catch(b){}return a});(function(){var a,b,c,d,e,f=function(a,b){return function(){return a.apply(b,arguments)}},g=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),d=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var c;return"float"===b&&(b="styleFloat"),e.test(b)&&b.replace(e,function(a,b){return b.toUpperCase()}),(null!=(c=a.currentStyle)?c[b]:void 0)||null},this},e=/(\-([a-z]){1})/g,this.WOW=function(){function e(a){null==a&&(a={}),this.scrollCallback=f(this.scrollCallback,this),this.scrollHandler=f(this.scrollHandler,this),this.resetAnimation=f(this.resetAnimation,this),this.start=f(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),null!=a.scrollContainer&&(this.config.scrollContainer=document.querySelector(a.scrollContainer)),this.animationNameCache=new c,this.wowEvent=this.util().createEvent(this.config.boxClass)}return e.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollC
vendor: 4,968 bytes, line 1
1ontainer:null},e.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},e.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.querySelectorAll("."+this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);return this.disabled()||(this.util().addEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],c=0,d=b.length;d>c;c++)f=b[c],g.push(function(){var a,b,c,d;for(c=f.addedNodes||[],d=[],a=0,b=c.length;b>a;a++)e=c[a],d.push(this.doSync(e));return d}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},e.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(this.config.scrollContainer||window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},e.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},e.prototype.doSync=function(a){var b,c,d,e,f;if(null==a&&(a=this.element),1===a.nodeType){for(a=a.parentNode||a,e=a.querySelectorAll("."+this.config.boxClass),f=[],c=0,d=e.length;d>c;c++)b=e[c],g.call(this.all,b)<0?(this.boxes.push(b),this.all.push(b),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(b,!0),f.push(this.scrolled=!0)):f.push(void 0);return f}},e.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},e.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},e.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),e.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},e.prototype.resetAnimation=function(a){var b;return a.type.toLowerCase().indexOf("animationend")>=0?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},e.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},e.prototype.vendors=["moz","webkit"],e.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,d,g,h;for(g=this.vendors,h=[],b=0,d=g.length;d>b;b++)f=g[b],h.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return h}.call(this));return d},e.prototype.vendorCSS=function(a,b){var c,e,f,g,h,i;for(h=d(a),g=h.getPropertyCSSValue(b),f=this.vendors,c=0,e=f.length;e>c;c++)i=f[c],g=g||h.getPropertyCSSValue("-"+i+"-"+b);return g},e.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=d(a).getPropertyValue("animation-name")}return"none"===b?"":b},e.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},e.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},e.prototype.scrollHandler=function(){return this.scrolled=!0},e.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},e.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},e.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=this.config.scrollC
1ontainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},e.prototype.util=function(){return null!=this._util?this._util:this._util=new b},e.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},e}()}).call(this);var clickSpark=function(){"use strict";var $=jQuery;var csDefaultSpecs={particleImagePath:"",particleCount:35,particleSpeed:12,particleYoffset:0,particleDuration:400,particleSize:12,particleRotationSpeed:0,animationType:"explosion",callback:null};$.fn.clickSpark=function(spec){spec=$.extend({},csDefaultSpecs,spec);$(this).on("click",function(e){clickSpark.setParticleImagePath(spec.particleImagePath);clickSpark.setParticleCount(spec.particleCount);clickSpark.setParticleSpeed(spec.particleSpeed);clickSpark.setParticleYoffset(spec.particleYoffset);clickSpark.setParticleDuration(spec.particleDuration);clickSpark.setParticleSize(spec.particleSize);clickSpark.setParticleRotationSpeed(spec.particleRotationSpeed);clickSpark.setAnimationType(spec.animationType);clickSpark.setCallback(spec.callback);clickSpark.stdFuncOCl(e)})};var clickSpark=function(spec){var particleImagePath=csDefaultSpecs.particleImagePath;var particleCount=csDefaultSpecs.particleCount;var particleSpeed=csDefaultSpecs.particleSpeed;var particleYoffset=csDefaultSpecs.particleYoffset;var particleDuration=csDefaultSpecs.particleDuration;var particleRotationSpeed=csDefaultSpecs.particleRotationSpeed;var animationType=csDefaultSpecs.animationType;var particleSize=csDefaultSpecs.particleSize;var callback=csDefaultSpecs.callback;var fps=60;var targetFrameDuration=1e3/fps;var currentTime=0;var running=false;var canvas;var context;var particles=[];var posX;var posY;var DEFAULT_IMG="data:image/png;base64,"+"iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAMAAABFjsb+AAAAMFBMVEU7g/M9h/49"+"jP8+if9Ah/89if88if87if87jP89iP87iP87iP87iP87iP87iP87iP8qdBigAAAA"+"D3RSTlMAETM+RFBymaq7zNrd7viqvuNnAAAABnRFWHRUaXRsZQCo7tInAAAAB3RF"+"WHRBdXRob3IAqa7MSAAAAAx0RVh0RGVzY3JpcHRpb24AEwkhIwAAAAp0RVh0Q29w"+"eXJpZ2h0AKwPzDoAAAAHdEVYdEUtbWFpbAB9CJvVAAAABHRFWHRVUkwAeKPTDwAA"+"AFxJREFUeNptkFsKwEAIA3URtGEl979tn9B2dT6H4CNyouZIJtxUHkZgJsmciHEr"+"2/iy2ZUCv+BIavBPqBgWBxPPxaULioMkV1JY6XLdvG5vd1/7R/237aXvr/a8Axna"+"EEw0I4SzAAAAAElFTkSuQmCC";var BASE_PARTICLE_SIZE=20;constructor();function constructor(){prepareDOMElements()}function setParticleImagePath(val){if(val!==undefined){particleImagePath=val}}function setParticleCount(val){if(val!==undefined){particleCount=val}}function setParticleSpeed(val){if(val!==undefined){particleSpeed=val}}function setParticleYoffset(val){if(val!==undefined){particleYoffset=val}}function setParticleDuration(val){if(val!==undefined){particleDuration=val}}function setParticleSize(val){if(val!==undefined){particleSize=val}}function setParticleRotationSpeed(val){if(val!==undefined){particleRotationSpeed=val}}function setAnimationType(val){if(val!==undefined){animationType=val}}function setCallback(val){if(val!==undefined){callback=val}}var $body,$document,$window;var $csCanvasContainer,$csParticleCanvas;function prepareDOMElements(){$(document).ready(function(){$body=$("body");$document=$(document);$window=$(window);$csParticleCanvas=$('<canvas id="cs-particle-canvas"></canvas>');$csCanvasContainer=$('<div class="cs-canvas-container"></div>');$csCanvasContainer.append($csParticleCanvas);$body.prepend($csCanvasContainer);$csCanvasContainer.hide();$csParticleCanvas.hide();$csCanvasContainer.css({position:"absolute",zIndex:999999,width:"100%",height:"100%",top:window.pageYOffset,left:window.pageXOffset})})}function createParticle(){var particle={};if(canvas){particle.x=posX;particle.y=posY;particle.rotation=0}particle.speed=rnd(0,particleSpeed);particle.angle=rnd(0,360)*(Math.PI/180);particle.rotationSpeed=rnd(-1*particleRotationSpeed,particleRotationSpeed);particle.size=particleSize;return particle}var particleImg;function initParticle(){canvas=$csParticleCanvas[0];particleImg=new Image;particleImg.src=particleImagePath||DEFAULT_IMG;if(canvas&&typeof canvas["getContext"]==="function"){context=canvas.getContext("2d");context.canvas.width=document.body.clientWidth;context.canvas.height=document.body.clientHeight}generateParticles()}function generateParticles(){for(var i=0;i<particleCount;i++){particles.push(createParticle())}}var animations={explosion:function(particle){particle.x+=particle.speed*Math.cos(particle.angle);particle.y+=particle.speed*Math.sin(particle.angle)},splash:function(particle){particle.x-=Math.tan(particle.angle);particle.y+=particle.speed*-2},falloff:function(particle){particle.x-=Math.tan(particle.angle);particle.y-=particle.speed*-2},blowright:function(particle){particle.x-=particle.speed*-2;particle.y-=Math.tan(particle.angle/8)},blowleft:function(particle){particle.x+=particle.speed*-2;particle.y-=Math.tan(particle.angle/8)}};function createParticles(){context.clearRect(0,0,window.innerWidth,window.innerHeight);var selectedAnimation=animations[animationType]||animations[DEFAULT_ANIMATION];
1particles.forEach(function(particle){selectedAnimation(particle);drawParticles(particle)})}function drawParticles(particle){particle.size*=.96+rnd(1,10)/100;particle.rotation+=particle.rotationSpeed;context.save();context.translate(particle.x,particle.y);context.rotate(particle.rotation*Math.PI/180);particleImg.width=BASE_PARTICLE_SIZE;particleImg.height=BASE_PARTICLE_SIZE;context.drawImage(particleImg,-(particleImg.width/2),-(particleImg.height/2),particle.size,particle.size);context.restore()}window.requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback,lastFrameDuration){var delay=targetFrameDuration;if(lastFrameDuration>delay){delay-=lastFrameDuration-delay;if(delay<0)delay=0}window.setTimeout(callback,delay)}}();function animate(){if(running){var lastTime=currentTime;currentTime=Date.now();requestAnimationFrame(animate,currentTime-lastTime);createParticles()}}function rnd(min,max){return Math.random()*(max-min)+min}function fireParticles(e){currentTime=Date.now();if(e.type==="click"){posX=e.pageX-window.pageXOffset;posY=e.pageY-window.pageYOffset}else{posX=e.offset().left+e.width()/2-window.pageXOffset;posY=e.offset().top+e.height()/2-window.pageYOffset+particleYoffset}particles=[];initParticle();if($document.height()>$window.height()){$body.css("overflow-y","inherit")}else{$body.css("overflow-y","hidden")}$body.css("overflow-x","hidden");$csCanvasContainer.css({top:window.pageYOffset,left:window.pageXOffset});$csParticleCanvas.css({top:0,left:0});$csCanvasContainer.show();$csParticleCanvas.show();window.setTimeout(function(){$csParticleCanvas.fadeOut(fadeCompleted)},particleDuration);running=true;animate();function fadeCompleted(){$csParticleCanvas.hide();$csCanvasContainer.hide();$body.css({"overflow-x":""});$body.css({"overflow-y":""});running=false;if(typeof callback==="function"){callback.call(this)}}}return{setParticleImagePath:function(val){setParticleImagePath(val)},setParticleCount:function(val){setParticleCount(val)},setParticleSpeed:function(val){setParticleSpeed(val)},setParticleYoffset:function(val){setParticleYoffset(val)},setParticleDuration:function(val){setParticleDuration(val)},setParticleSize:function(val){setParticleSize(val)},setParticleRotationSpeed:function(val){setParticleRotationSpeed(val)},setAnimationType:function(val){setAnimationType(val)},setCallback:function(val){setCallback(val)},init:function(spec){fireParticles(element)},fireParticles:function(element){fireParticles(element)},stdFuncOCl:function(e){fireParticles(e)}}}();return clickSpark}();(function($){"use strict";var version="2.1.6";$.fn.cycle=function(options){var o;if(this.length===0&&!$.isReady){o={s:this.selector,c:this.context};$.fn.cycle.log("requeuing slideshow (dom not ready)");$(function(){$(o.s,o.c).cycle(options)});return this}return this.each(function(){var data,opts,shortName,val;var container=$(this);var log=$.fn.cycle.log;if(container.data("cycle.opts"))return;if(container.data("cycle-log")===false||options&&options.log===false||opts&&opts.log===false){log=$.noop}log("--c2 init--");data=container.data();for(var p in data){if(data.hasOwnProperty(p)&&/^cycle[A-Z]+/.test(p)){val=data[p];shortName=p.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,lowerCase);log(shortName+":",val,"("+typeof val+")");data[shortName]=val}}opts=$.extend({},$.fn.cycle.defaults,data,options||{});opts.timeoutId=0;opts.paused=opts.paused||false;opts.container=container;opts._maxZ=opts.maxZ;opts.API=$.extend({_container:container},$.fn.cycle.API);opts.API.log=log;opts.API.trigger=function(eventName,args){opts.container.trigger(eventName,args);return opts.API};container.data("cycle.opts",opts);container.data("cycle.API",opts.API);opts.API.trigger("cycle-bootstrap",[opts,opts.API]);opts.API.addInitialSlides();opts.API.preInitSlideshow();if(opts.slides.length)opts.API.initSlideshow()})};$.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var opts=this.opts();var slides=opts.slides;opts.slideCount=0;opts.slides=$();slides=slides.jquery?slides:opts.container.find(slides);if(opts.random){slides.sort(function(){return Math.random()-.5})}opts.API.add(slides)},preInitSlideshow:function(){var opts=this.opts();opts.API.trigger("cycle-pre-initialize",[opts]);var tx=$.fn.cycle.transitions[opts.fx];if(tx&&$.isFunction(tx.preInit))tx.preInit(opts);opts._preInitialized=true},postInitSlideshow:function(){var opts=this.opts();opts.API.trigger("cycle-post-initialize",[opts]);var tx=$.fn.cycle.transitions[opts.fx];if(tx&&$.isFunction(tx.postInit))tx.postInit(opts)},initSlideshow:function(){var opts=this.opts();var pauseObj=opts.container;var slideOpts;opts.API.calcFirstSlide();if(opts.container.css("position")=="static")opts.container.css("position","relative");$(opts.slides[opts.currSlide]).css({opacity:1,display:"block",visibility:"visible"});opts.API.stackSlides(opts.slides[opts.currSlide],opts.slides[opts.nextSlide],!opts.reverse);
1if(opts.pauseOnHover){if(opts.pauseOnHover!==true)pauseObj=$(opts.pauseOnHover);pauseObj.hover(function(){opts.API.pause(true)},function(){opts.API.resume(true)})}if(opts.timeout){slideOpts=opts.API.getSlideOpts(opts.currSlide);opts.API.queueTransition(slideOpts,slideOpts.timeout+opts.delay)}opts._initialized=true;opts.API.updateView(true);opts.API.trigger("cycle-initialized",[opts]);opts.API.postInitSlideshow()},pause:function(hover){var opts=this.opts(),slideOpts=opts.API.getSlideOpts(),alreadyPaused=opts.hoverPaused||opts.paused;if(hover)opts.hoverPaused=true;else opts.paused=true;if(!alreadyPaused){opts.container.addClass("cycle-paused");opts.API.trigger("cycle-paused",[opts]).log("cycle-paused");if(slideOpts.timeout){clearTimeout(opts.timeoutId);opts.timeoutId=0;opts._remainingTimeout-=$.now()-opts._lastQueue;if(opts._remainingTimeout<0||isNaN(opts._remainingTimeout))opts._remainingTimeout=undefined}}},resume:function(hover){var opts=this.opts(),alreadyResumed=!opts.hoverPaused&&!opts.paused,remaining;if(hover)opts.hoverPaused=false;else opts.paused=false;if(!alreadyResumed){opts.container.removeClass("cycle-paused");if(opts.slides.filter(":animated").length===0)opts.API.queueTransition(opts.API.getSlideOpts(),opts._remainingTimeout);opts.API.trigger("cycle-resumed",[opts,opts._remainingTimeout]).log("cycle-resumed")}},add:function(slides,prepend){var opts=this.opts();if(opts===undefined){return}var oldSlideCount=opts.slideCount;var startSlideshow=false;var len;if($.type(slides)=="string")slides=$.trim(slides);$(slides).each(function(i){var slideOpts;var slide=$(this);if(prepend)opts.container.prepend(slide);else opts.container.append(slide);opts.slideCount++;slideOpts=opts.API.buildSlideOpts(slide);if(prepend)opts.slides=$(slide).add(opts.slides);else opts.slides=opts.slides.add(slide);opts.API.initSlide(slideOpts,slide,--opts._maxZ);slide.data("cycle.opts",slideOpts);opts.API.trigger("cycle-slide-added",[opts,slideOpts,slide])});opts.API.updateView(true);startSlideshow=opts._preInitialized&&(oldSlideCount<2&&opts.slideCount>=1);if(startSlideshow){if(!opts._initialized)opts.API.initSlideshow();else if(opts.timeout){len=opts.slides.length;opts.nextSlide=opts.reverse?len-1:1;if(!opts.timeoutId){opts.API.queueTransition(opts)}}}},calcFirstSlide:function(){var opts=this.opts();var firstSlideIndex;firstSlideIndex=parseInt(opts.startingSlide||0,10);if(firstSlideIndex>=opts.slides.length||firstSlideIndex<0)firstSlideIndex=0;opts.currSlide=firstSlideIndex;if(opts.reverse){opts.nextSlide=firstSlideIndex-1;if(opts.nextSlide<0)opts.nextSlide=opts.slides.length-1}else{opts.nextSlide=firstSlideIndex+1;if(opts.nextSlide==opts.slides.length)opts.nextSlide=0}},calcNextSlide:function(){var opts=this.opts();var roll;if(opts.reverse){roll=opts.nextSlide-1<0;opts.nextSlide=roll?opts.slideCount-1:opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1}else{roll=opts.nextSlide+1==opts.slides.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?opts.slides.length-1:opts.nextSlide-1}},calcTx:function(slideOpts,manual){var opts=slideOpts;var tx;if(opts._tempFx)tx=$.fn.cycle.transitions[opts._tempFx];else if(manual&&opts.manualFx)tx=$.fn.cycle.transitions[opts.manualFx];if(!tx)tx=$.fn.cycle.transitions[opts.fx];opts._tempFx=null;this.opts()._tempFx=null;if(!tx){tx=$.fn.cycle.transitions.fade;opts.API.log('Transition "'+opts.fx+'" not found. Using fade.')}return tx},prepareTx:function(manual,fwd){var opts=this.opts();var after,curr,next,slideOpts,tx;if(!opts||!("slideCount"in opts)){return}if(opts.slideCount<2){opts.timeoutId=0;return}if(manual&&(!opts.busy||opts.manualTrump)){opts.API.stopTransition();opts.busy=false;clearTimeout(opts.timeoutId);opts.timeoutId=0}if(opts.busy)return;if(opts.timeoutId===0&&!manual)return;curr=opts.slides[opts.currSlide];next=opts.slides[opts.nextSlide];slideOpts=opts.API.getSlideOpts(opts.nextSlide);tx=opts.API.calcTx(slideOpts,manual);opts._tx=tx;if(manual&&slideOpts.manualSpeed!==undefined)slideOpts.speed=slideOpts.manualSpeed;if(opts.nextSlide!=opts.currSlide&&(manual||!opts.paused&&!opts.hoverPaused&&opts.timeout)){opts.API.trigger("cycle-before",[slideOpts,curr,next,fwd]);if(tx.before)tx.before(slideOpts,curr,next,fwd);after=function(){opts.busy=false;if(!opts.container.data("cycle.opts"))return;if(tx.after)tx.after(slideOpts,curr,next,fwd);opts.API.trigger("cycle-after",[slideOpts,curr,next,fwd]);opts.API.queueTransition(slideOpts);opts.API.updateView(true)};opts.busy=true;if(tx.transition)tx.transition(slideOpts,curr,next,fwd,after);else opts.API.doTransition(slideOpts,curr,next,fwd,after);opts.API.calcNextSlide();opts.API.updateView()}else{opts.API.queueTransition(slideOpts)}},doTransition:function(slideOpts,currEl,nextEl,fwd,callback){var opts=slideOpts;var curr=$(currEl),next=$(nextEl);var fn=function(){next.animate(opts.animIn||{opacity:1},opts.speed,opts.easeIn||opts.easing,callback)};next.css(opts.cssBefore||{});curr.animate(opts.animOut||{},opts.speed,opts.easeOut||opts.easing,function(){curr.css(opts.cssAfter||{});if(!opts.sync){fn()}});if(opts.sync){fn()}},queueTransition:function(slideOpts,specificTimeout){var opts=this.opts();var timeout=specificTimeout!==undefined?specificTimeout:slideOpts.timeout;if(opts.nextSlide===0&&--opts.loop===0){opts.API.log("terminating; loop=0");
1opts.timeout=0;if(timeout){setTimeout(function(){opts.API.trigger("cycle-finished",[opts])},timeout)}else{opts.API.trigger("cycle-finished",[opts])}opts.nextSlide=opts.currSlide;return}if(opts.continueAuto!==undefined){if(opts.continueAuto===false||$.isFunction(opts.continueAuto)&&opts.continueAuto()===false){opts.API.log("terminating automatic transitions");opts.timeout=0;if(opts.timeoutId)clearTimeout(opts.timeoutId);return}}if(timeout){opts._lastQueue=$.now();if(specificTimeout===undefined)opts._remainingTimeout=slideOpts.timeout;if(!opts.paused&&!opts.hoverPaused){opts.timeoutId=setTimeout(function(){opts.API.prepareTx(false,!opts.reverse)},timeout)}}},stopTransition:function(){var opts=this.opts();if(opts.slides.filter(":animated").length){opts.slides.stop(false,true);opts.API.trigger("cycle-transition-stopped",[opts])}if(opts._tx&&opts._tx.stopTransition)opts._tx.stopTransition(opts)},advanceSlide:function(val){var opts=this.opts();clearTimeout(opts.timeoutId);opts.timeoutId=0;opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0)opts.nextSlide=opts.slides.length-1;else if(opts.nextSlide>=opts.slides.length)opts.nextSlide=0;opts.API.prepareTx(true,val>=0);return false},buildSlideOpts:function(slide){var opts=this.opts();var val,shortName;var slideOpts=slide.data()||{};for(var p in slideOpts){if(slideOpts.hasOwnProperty(p)&&/^cycle[A-Z]+/.test(p)){val=slideOpts[p];shortName=p.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,lowerCase);opts.API.log("["+(opts.slideCount-1)+"]",shortName+":",val,"("+typeof val+")");slideOpts[shortName]=val}}slideOpts=$.extend({},$.fn.cycle.defaults,opts,slideOpts);slideOpts.slideNum=opts.slideCount;try{delete slideOpts.API;delete slideOpts.slideCount;delete slideOpts.currSlide;delete slideOpts.nextSlide;delete slideOpts.slides}catch(e){}return slideOpts},getSlideOpts:function(index){var opts=this.opts();if(index===undefined)index=opts.currSlide;var slide=opts.slides[index];var slideOpts=$(slide).data("cycle.opts");return $.extend({},opts,slideOpts)},initSlide:function(slideOpts,slide,suggestedZindex){var opts=this.opts();slide.css(slideOpts.slideCss||{});if(suggestedZindex>0)slide.css("zIndex",suggestedZindex);if(isNaN(slideOpts.speed))slideOpts.speed=$.fx.speeds[slideOpts.speed]||$.fx.speeds._default;if(!slideOpts.sync)slideOpts.speed=slideOpts.speed/2;slide.addClass(opts.slideClass)},updateView:function(isAfter,isDuring,forceEvent){var opts=this.opts();if(!opts._initialized)return;var slideOpts=opts.API.getSlideOpts();var currSlide=opts.slides[opts.currSlide];if(!isAfter&&isDuring!==true){opts.API.trigger("cycle-update-view-before",[opts,slideOpts,currSlide]);if(opts.updateView<0)return}if(opts.slideActiveClass){opts.slides.removeClass(opts.slideActiveClass).eq(opts.currSlide).addClass(opts.slideActiveClass)}if(isAfter&&opts.hideNonActive)opts.slides.filter(":not(."+opts.slideActiveClass+")").css("visibility","hidden");if(opts.updateView===0){setTimeout(function(){opts.API.trigger("cycle-update-view",[opts,slideOpts,currSlide,isAfter])},slideOpts.speed/(opts.sync?2:1))}if(opts.updateView!==0)opts.API.trigger("cycle-update-view",[opts,slideOpts,currSlide,isAfter]);if(isAfter)opts.API.trigger("cycle-update-view-after",[opts,slideOpts,currSlide])},getComponent:function(name){var opts=this.opts();var selector=opts[name];if(typeof selector==="string"){return/^\s*[\>|\+|~]/.test(selector)?opts.container.find(selector):$(selector)}if(selector.jquery)return selector;return $(selector)},stackSlides:function(curr,next,fwd){var opts=this.opts();if(!curr){curr=opts.slides[opts.currSlide];next=opts.slides[opts.nextSlide];fwd=!opts.reverse}$(curr).css("zIndex",opts.maxZ);var i;var z=opts.maxZ-2;var len=opts.slideCount;if(fwd){for(i=opts.currSlide+1;i<len;i++)$(opts.slides[i]).css("zIndex",z--);for(i=0;i<opts.currSlide;i++)$(opts.slides[i]).css("zIndex",z--)}else{for(i=opts.currSlide-1;i>=0;i--)$(opts.slides[i]).css("zIndex",z--);for(i=len-1;i>opts.currSlide;i--)$(opts.slides[i]).css("zIndex",z--)}$(next).css("zIndex",opts.maxZ-1)},getSlideIndex:function(el){return this.opts().slides.index(el)}};$.fn.cycle.log=function log(){if(window.console&&console.log)console.log("[cycle2] "+Array.prototype.join.call(arguments," "))};$.fn.cycle.version=function(){return"Cycle2: "+version};function lowerCase(s){return(s||"").toLowerCase()}$.fn.cycle.transitions={custom:{},none:{before:function(opts,curr,next,fwd){opts.API.stackSlides(next,curr,fwd);opts.cssBefore={opacity:1,visibility:"visible",display:"block"}}}
1,fade:{before:function(opts,curr,next,fwd){var css=opts.API.getSlideOpts(opts.nextSlide).slideCss||{};opts.API.stackSlides(curr,next,fwd);opts.cssBefore=$.extend(css,{opacity:0,visibility:"visible",display:"block"});opts.animIn={opacity:1};opts.animOut={opacity:0}}},fadeout:{before:function(opts,curr,next,fwd){var css=opts.API.getSlideOpts(opts.nextSlide).slideCss||{};opts.API.stackSlides(curr,next,fwd);opts.cssBefore=$.extend(css,{opacity:1,visibility:"visible",display:"block"});opts.animOut={opacity:0}}},scrollHorz:{before:function(opts,curr,next,fwd){opts.API.stackSlides(curr,next,fwd);var w=opts.container.css("overflow","hidden").width();opts.cssBefore={left:fwd?w:-w,top:0,opacity:1,visibility:"visible",display:"block"};opts.cssAfter={zIndex:opts._maxZ-2,left:0};opts.animIn={left:0};opts.animOut={left:fwd?-w:w}}}};$.fn.cycle.defaults={allowWrap:true,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:true,loop:0,manualFx:undefined,manualSpeed:undefined,manualTrump:true,maxZ:100,pauseOnHover:false,reverse:false,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:true,timeout:4e3,updateView:0};$(document).ready(function(){$($.fn.cycle.defaults.autoSelector).cycle()})})(jQuery);(function($){"use strict";$.extend($.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null});$(document).on("cycle-initialized",function(e,opts){var autoHeight=opts.autoHeight;var t=$.type(autoHeight);var resizeThrottle=null;var ratio;if(t!=="string"&&t!=="number")return;opts.container.on("cycle-slide-added cycle-slide-removed",initAutoHeight);opts.container.on("cycle-destroyed",onDestroy);if(autoHeight=="container"){opts.container.on("cycle-before",onBefore)}else if(t==="string"&&/\d+\:\d+/.test(autoHeight)){ratio=autoHeight.match(/(\d+)\:(\d+)/);ratio=ratio[1]/ratio[2];opts._autoHeightRatio=ratio}if(t!=="number"){opts._autoHeightOnResize=function(){clearTimeout(resizeThrottle);resizeThrottle=setTimeout(onResize,50)};$(window).on("resize orientationchange",opts._autoHeightOnResize)}setTimeout(onResize,30);function onResize(){initAutoHeight(e,opts)}});function initAutoHeight(e,opts){var clone,height,sentinelIndex;var autoHeight=opts.autoHeight;if(autoHeight=="container"){height=$(opts.slides[opts.currSlide]).outerHeight();opts.container.height(height)}else if(opts._autoHeightRatio){opts.container.height(opts.container.width()/opts._autoHeightRatio)}else if(autoHeight==="calc"||$.type(autoHeight)=="number"&&autoHeight>=0){if(autoHeight==="calc")sentinelIndex=calcSentinelIndex(e,opts);else if(autoHeight>=opts.slides.length)sentinelIndex=0;else sentinelIndex=autoHeight;if(sentinelIndex==opts._sentinelIndex)return;opts._sentinelIndex=sentinelIndex;if(opts._sentinel)opts._sentinel.remove();clone=$(opts.slides[sentinelIndex].cloneNode(true));clone.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel");clone.css({position:"static",visibility:"hidden",display:"block"}).prependTo(opts.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active");clone.find("*").css("visibility","hidden");opts._sentinel=clone}}function calcSentinelIndex(e,opts){var index=0,max=-1;opts.slides.each(function(i){var h=$(this).height();if(h>max){max=h;index=i}});return index}function onBefore(e,opts,outgoing,incoming,forward){var h=$(incoming).outerHeight();opts.container.animate({height:h},opts.autoHeightSpeed,opts.autoHeightEasing)}function onDestroy(e,opts){if(opts._autoHeightOnResize){$(window).off("resize orientationchange",opts._autoHeightOnResize);opts._autoHeightOnResize=null}opts.container.off("cycle-slide-added cycle-slide-removed",initAutoHeight);opts.container.off("cycle-destroyed",onDestroy);opts.container.off("cycle-before",onBefore);if(opts._sentinel){opts._sentinel.remove();opts._sentinel=null}}})(jQuery);(function($){"use strict";$.extend($.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}</div><div>{{desc}}</div>",captionModule:"caption"});$(document).on("cycle-update-view",function(e,opts,slideOpts,currSlide){if(opts.captionModule!=="caption")return;var el;$.each(["caption","overlay"],function(){var name=this;var template=slideOpts[name+"Template"];var el=opts.API.getComponent(name);if(el.length&&template){el.html(opts.API.tmpl(template,slideOpts,opts,currSlide));el.show()}else{el.hide()}})});$(document).on("cycle-destroyed",function(e,opts){var el;$.each(["caption","overlay"],function(){var name=this,template=opts[name+"Template"];
1if(opts[name]&&template){el=opts.API.getComponent("caption");el.empty()}})})})(jQuery);(function($){"use strict";var c2=$.fn.cycle;$.fn.cycle=function(options){var cmd,cmdFn,opts;var args=$.makeArray(arguments);if($.type(options)=="number"){return this.cycle("goto",options)}if($.type(options)=="string"){return this.each(function(){var cmdArgs;cmd=options;opts=$(this).data("cycle.opts");if(opts===undefined){c2.log('slideshow must be initialized before sending commands; "'+cmd+'" ignored');return}else{cmd=cmd=="goto"?"jump":cmd;cmdFn=opts.API[cmd];if($.isFunction(cmdFn)){cmdArgs=$.makeArray(args);cmdArgs.shift();return cmdFn.apply(opts.API,cmdArgs)}else{c2.log("unknown command: ",cmd)}}})}else{return c2.apply(this,arguments)}};$.extend($.fn.cycle,c2);$.extend(c2.API,{next:function(){var opts=this.opts();if(opts.busy&&!opts.manualTrump)return;var count=opts.reverse?-1:1;if(opts.allowWrap===false&&opts.currSlide+count>=opts.slideCount)return;opts.API.advanceSlide(count);opts.API.trigger("cycle-next",[opts]).log("cycle-next")},prev:function(){var opts=this.opts();if(opts.busy&&!opts.manualTrump)return;var count=opts.reverse?1:-1;if(opts.allowWrap===false&&opts.currSlide+count<0)return;opts.API.advanceSlide(count);opts.API.trigger("cycle-prev",[opts]).log("cycle-prev")},destroy:function(){this.stop();var opts=this.opts();var clean=$.isFunction($._data)?$._data:$.noop;clearTimeout(opts.timeoutId);opts.timeoutId=0;opts.API.stop();opts.API.trigger("cycle-destroyed",[opts]).log("cycle-destroyed");opts.container.removeData();clean(opts.container[0],"parsedAttrs",false);if(!opts.retainStylesOnDestroy){opts.container.removeAttr("style");opts.slides.removeAttr("style");opts.slides.removeClass(opts.slideActiveClass)}opts.slides.each(function(){var slide=$(this);slide.removeData();slide.removeClass(opts.slideClass);clean(this,"parsedAttrs",false)})},jump:function(index,fx){var fwd;var opts=this.opts();if(opts.busy&&!opts.manualTrump)return;var num=parseInt(index,10);if(isNaN(num)||num<0||num>=opts.slides.length){opts.API.log("goto: invalid slide index: "+num);return}if(num==opts.currSlide){opts.API.log("goto: skipping, already on slide",num);return}opts.nextSlide=num;clearTimeout(opts.timeoutId);opts.timeoutId=0;opts.API.log("goto: ",num," (zero-index)");fwd=opts.currSlide<opts.nextSlide;opts._tempFx=fx;opts.API.prepareTx(true,fwd)},stop:function(){var opts=this.opts();var pauseObj=opts.container;clearTimeout(opts.timeoutId);opts.timeoutId=0;opts.API.stopTransition();if(opts.pauseOnHover){if(opts.pauseOnHover!==true)pauseObj=$(opts.pauseOnHover);pauseObj.off("mouseenter mouseleave")}opts.API.trigger("cycle-stopped",[opts]).log("cycle-stopped")},reinit:function(){var opts=this.opts();opts.API.destroy();opts.container.cycle()},remove:function(index){var opts=this.opts();var slide,slideToRemove,slides=[],slideNum=1;for(var i=0;i<opts.slides.length;i++){slide=opts.slides[i];if(i==index){slideToRemove=slide}else{slides.push(slide);$(slide).data("cycle.opts").slideNum=slideNum;slideNum++}}if(slideToRemove){opts.slides=$(slides);opts.slideCount--;$(slideToRemove).remove();if(index==opts.currSlide)opts.API.advanceSlide(1);else if(index<opts.currSlide)opts.currSlide--;else opts.currSlide++;opts.API.trigger("cycle-slide-removed",[opts,index,slideToRemove]).log("cycle-slide-removed");opts.API.updateView()}}});$(document).on("click.cycle","[data-cycle-cmd]",function(e){e.preventDefault();var el=$(this);var command=el.data("cycle-cmd");var context=el.data("cycle-context")||".cycle-slideshow";$(context).cycle(command,el.data("cycle-arg"))})})(jQuery);(function($){"use strict";$(document).on("cycle-pre-initialize",function(e,opts){onHashChange(opts,true);opts._onHashChange=function(){onHashChange(opts,false)};$(window).on("hashchange",opts._onHashChange)});$(document).on("cycle-update-view",function(e,opts,slideOpts){if(slideOpts.hash&&"#"+slideOpts.hash!=window.location.hash){opts._hashFence=true;window.location.hash=slideOpts.hash}});$(document).on("cycle-destroyed",function(e,opts){if(opts._onHashChange){$(window).off("hashchange",opts._onHashChange)}});function onHashChange(opts,setStartingSlide){var hash;if(opts._hashFence){opts._hashFence=false;return}hash=window.location.hash.substring(1);opts.slides.each(function(i){if($(this).data("cycle-hash")==hash){if(setStartingSlide===true){opts.startingSlide=i}else{var fwd=opts.currSlide<i;opts.nextSlide=i;opts.API.prepareTx(true,fwd)}return false}})}})(jQuery);(function($){"use strict";$.extend($.fn.cycle.defaults,{loader:false});$(document).on("cycle-bootstrap",function(e,opts){var addFn;if(!opts.loader)return;addFn=opts.API.add;opts.API.add=add;function add(slides,prepend){var slideArr=[];if($.type(slides)=="string")slides=$.trim(slides);else if($.type(slides)==="array"){for(var i=0;i<slides.length;i++)slides[i]=$(slides[i])[0]}
1slides=$(slides);var slideCount=slides.length;if(!slideCount)return;slides.css("visibility","hidden").appendTo("body").each(function(i){var count=0;var slide=$(this);var images=slide.is("img")?slide:slide.find("img");slide.data("index",i);images=images.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])');if(!images.length){--slideCount;slideArr.push(slide);return}count=images.length;images.each(function(){if(this.complete){imageLoaded()}else{$(this).load(function(){imageLoaded()}).on("error",function(){if(--count===0){opts.API.log("slide skipped; img not loaded:",this.src);if(--slideCount===0&&opts.loader=="wait"){addFn.apply(opts.API,[slideArr,prepend])}}})}});function imageLoaded(){if(--count===0){--slideCount;addSlide(slide)}}});if(slideCount)opts.container.addClass("cycle-loading");function addSlide(slide){var curr;if(opts.loader=="wait"){slideArr.push(slide);if(slideCount===0){slideArr.sort(sorter);addFn.apply(opts.API,[slideArr,prepend]);opts.container.removeClass("cycle-loading")}}else{curr=$(opts.slides[opts.currSlide]);addFn.apply(opts.API,[slide,prepend]);curr.show();opts.container.removeClass("cycle-loading")}}function sorter(a,b){return a.data("index")-b.data("index")}}})})(jQuery);(function($){"use strict";$.extend($.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:undefined,pagerTemplate:"<span>•</span>"});$(document).on("cycle-bootstrap",function(e,opts,API){API.buildPagerLink=buildPagerLink});$(document).on("cycle-slide-added",function(e,opts,slideOpts,slideAdded){if(opts.pager){opts.API.buildPagerLink(opts,slideOpts,slideAdded);opts.API.page=page}});$(document).on("cycle-slide-removed",function(e,opts,index,slideRemoved){if(opts.pager){var pagers=opts.API.getComponent("pager");pagers.each(function(){var pager=$(this);$(pager.children()[index]).remove()})}});$(document).on("cycle-update-view",function(e,opts,slideOpts){var pagers;if(opts.pager){pagers=opts.API.getComponent("pager");pagers.each(function(){$(this).children().removeClass(opts.pagerActiveClass).eq(opts.currSlide).addClass(opts.pagerActiveClass)})}});$(document).on("cycle-destroyed",function(e,opts){var pager=opts.API.getComponent("pager");if(pager){pager.children().off(opts.pagerEvent);if(opts.pagerTemplate)pager.empty()}});function buildPagerLink(opts,slideOpts,slide){var pagerLink;var pagers=opts.API.getComponent("pager");pagers.each(function(){var pager=$(this);if(slideOpts.pagerTemplate){var markup=opts.API.tmpl(slideOpts.pagerTemplate,slideOpts,opts,slide[0]);pagerLink=$(markup).appendTo(pager)}else{pagerLink=pager.children().eq(opts.slideCount-1)}pagerLink.on(opts.pagerEvent,function(e){if(!opts.pagerEventBubble)e.preventDefault();opts.API.page(pager,e.currentTarget)})})}function page(pager,target){var opts=this.opts();if(opts.busy&&!opts.manualTrump)return;var index=pager.children().index(target);var nextSlide=index;var fwd=opts.currSlide<nextSlide;if(opts.currSlide==nextSlide){return}opts.nextSlide=nextSlide;opts._tempFx=opts.pagerFx;opts.API.prepareTx(true,fwd);opts.API.trigger("cycle-pager-activated",[opts,pager,target])}})(jQuery);(function($){"use strict";$.extend($.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:false});$(document).on("cycle-initialized",function(e,opts){opts.API.getComponent("next").on(opts.nextEvent,function(e){e.preventDefault();opts.API.next()});opts.API.getComponent("prev").on(opts.prevEvent,function(e){e.preventDefault();opts.API.prev()});if(opts.swipe){var nextEvent=opts.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle";var prevEvent=opts.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";opts.container.on(nextEvent,function(e){opts._tempFx=opts.swipeFx;opts.API.next()});opts.container.on(prevEvent,function(){opts._tempFx=opts.swipeFx;opts.API.prev()})}});$(document).on("cycle-update-view",function(e,opts,slideOpts,currSlide){if(opts.allowWrap)return;var cls=opts.disabledClass;var next=opts.API.getComponent("next");var prev=opts.API.getComponent("prev");var prevBoundry=opts._prevBoundry||0;var nextBoundry=opts._nextBoundry!==undefined?opts._nextBoundry:opts.slideCount-1;if(opts.currSlide==nextBoundry)next.addClass(cls).prop("disabled",true);
1else next.removeClass(cls).prop("disabled",false);if(opts.currSlide===prevBoundry)prev.addClass(cls).prop("disabled",true);else prev.removeClass(cls).prop("disabled",false)});$(document).on("cycle-destroyed",function(e,opts){opts.API.getComponent("prev").off(opts.nextEvent);opts.API.getComponent("next").off(opts.prevEvent);opts.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})})(jQuery);(function($){"use strict";$.extend($.fn.cycle.defaults,{progressive:false});$(document).on("cycle-pre-initialize",function(e,opts){if(!opts.progressive)return;var API=opts.API;var nextFn=API.next;var prevFn=API.prev;var prepareTxFn=API.prepareTx;var type=$.type(opts.progressive);var slides,scriptEl;if(type=="array"){slides=opts.progressive}else if($.isFunction(opts.progressive)){slides=opts.progressive(opts)}else if(type=="string"){scriptEl=$(opts.progressive);slides=$.trim(scriptEl.html());if(!slides)return;if(/^(\[)/.test(slides)){try{slides=$.parseJSON(slides)}catch(err){API.log("error parsing progressive slides",err);return}}else{slides=slides.split(new RegExp(scriptEl.data("cycle-split")||"\n"));if(!slides[slides.length-1])slides.pop()}}if(prepareTxFn){API.prepareTx=function(manual,fwd){var index,slide;if(manual||slides.length===0){prepareTxFn.apply(opts.API,[manual,fwd]);return}if(fwd&&opts.currSlide==opts.slideCount-1){slide=slides[0];slides=slides.slice(1);opts.container.one("cycle-slide-added",function(e,opts){setTimeout(function(){opts.API.advanceSlide(1)},50)});opts.API.add(slide)}else if(!fwd&&opts.currSlide===0){index=slides.length-1;slide=slides[index];slides=slides.slice(0,index);opts.container.one("cycle-slide-added",function(e,opts){setTimeout(function(){opts.currSlide=1;opts.API.advanceSlide(-1)},50)});opts.API.add(slide,true)}else{prepareTxFn.apply(opts.API,[manual,fwd])}}}if(nextFn){API.next=function(){var opts=this.opts();if(slides.length&&opts.currSlide==opts.slideCount-1){var slide=slides[0];slides=slides.slice(1);opts.container.one("cycle-slide-added",function(e,opts){nextFn.apply(opts.API);opts.container.removeClass("cycle-loading")});opts.container.addClass("cycle-loading");opts.API.add(slide)}else{nextFn.apply(opts.API)}}}if(prevFn){API.prev=function(){var opts=this.opts();if(slides.length&&opts.currSlide===0){var index=slides.length-1;var slide=slides[index];slides=slides.slice(0,index);opts.container.one("cycle-slide-added",function(e,opts){opts.currSlide=1;opts.API.advanceSlide(-1);
1opts.container.removeClass("cycle-loading")});opts.container.addClass("cycle-loading");opts.API.add(slide,true)}else{prevFn.apply(opts.API)}}}})})(jQuery);(function($){"use strict";$.extend($.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"});$.extend($.fn.cycle.API,{tmpl:function(str,opts){var regex=new RegExp(opts.tmplRegex||$.fn.cycle.defaults.tmplRegex,"g");var args=$.makeArray(arguments);args.shift();return str.replace(regex,function(_,str){var i,j,obj,prop,names=str.split(".");for(i=0;i<args.length;i++){obj=args[i];if(!obj)continue;if(names.length>1){prop=obj;for(j=0;j<names.length;j++){obj=prop;prop=prop[names[j]]||str}}else{prop=obj[str]}if($.isFunction(prop))return prop.apply(obj,args);if(prop!==undefined&&prop!==null&&prop!=str)return prop}return str})}})})(jQuery);(function($){"use strict";$(document).on("cycle-bootstrap",function(e,opts,API){if(opts.fx!=="carousel")return;API.getSlideIndex=function(el){var slides=this.opts()._carouselWrap.children();var i=slides.index(el);return i%slides.length};API.next=function(){var count=opts.reverse?-1:1;if(opts.allowWrap===false&&opts.currSlide+count>opts.slideCount-opts.carouselVisible)return;opts.API.advanceSlide(count);opts.API.trigger("cycle-next",[opts]).log("cycle-next")}});$.fn.cycle.transitions.carousel={preInit:function(opts){opts.hideNonActive=false;opts.container.on("cycle-destroyed",$.proxy(this.onDestroy,opts.API));opts.API.stopTransition=this.stopTransition;for(var i=0;i<opts.startingSlide;i++){opts.container.append(opts.slides[0])}},postInit:function(opts){var i,j,slide,pagerCutoffIndex,wrap;var vert=opts.carouselVertical;if(opts.carouselVisible&&opts.carouselVisible>opts.slideCount)opts.carouselVisible=opts.slideCount-1;var visCount=opts.carouselVisible||opts.slides.length;var slideCSS={display:vert?"block":"inline-block",position:"static"};opts.container.css({position:"relative",overflow:"hidden"});opts.slides.css(slideCSS);opts._currSlide=opts.currSlide;wrap=$('<div class="cycle-carousel-wrap"></div>').prependTo(opts.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(opts.slides);opts._carouselWrap=wrap;if(!vert)wrap.css("white-space","nowrap");if(opts.allowWrap!==false){for(j=0;j<(opts.carouselVisible===undefined?2:1);j++){for(i=0;i<opts.slideCount;i++){wrap.append(opts.slides[i].cloneNode(true))}i=opts.slideCount;while(i--){wrap.prepend(opts.slides[i].cloneNode(true))}}wrap.find(".cycle-slide-active").removeClass("cycle-slide-active");opts.slides.eq(opts.startingSlide).addClass("cycle-slide-active")}if(opts.pager&&opts.allowWrap===false){pagerCutoffIndex=opts.slideCount-visCount;$(opts.pager).children().filter(":gt("+pagerCutoffIndex+")").hide()}opts._nextBoundry=opts.slideCount-opts.carouselVisible;this.prepareDimensions(opts)},prepareDimensions:function(opts){var dim,offset,pagerCutoffIndex,tmp,j;var vert=opts.carouselVertical;var visCount=opts.carouselVisible||opts.slides.length;if(opts.carouselFluid&&opts.carouselVisible){if(!opts._carouselResizeThrottle){this.fluidSlides(opts)}}else if(opts.carouselVisible&&opts.carouselSlideDimension){dim=visCount*opts.carouselSlideDimension;opts.container[vert?"height":"width"](dim)}else if(opts.carouselVisible){dim=visCount*$(opts.slides[0])[vert?"outerHeight":"outerWidth"](true);opts.container[vert?"height":"width"](dim)}offset=opts.carouselOffset||0;if(opts.allowWrap!==false){if(opts.carouselSlideDimension){offset-=(opts.slideCount+opts.currSlide)*opts.carouselSlideDimension}else{tmp=opts._carouselWrap.children();for(j=0;j<opts.slideCount+opts.currSlide;j++){offset-=$(tmp[j])[vert?"outerHeight":"outerWidth"](true)}}}opts._carouselWrap.css(vert?"top":"left",offset)},fluidSlides:function(opts){var timeout;var slide=opts.slides.eq(0);var adjustment=slide.outerWidth()-slide.width();var prepareDimensions=this.prepareDimensions;$(window).on("resize",resizeThrottle);opts._carouselResizeThrottle=resizeThrottle;onResize();function resizeThrottle(){clearTimeout(timeout);timeout=setTimeout(onResize,20)}function onResize(){opts._carouselWrap.stop(false,true);var slideWidth=opts.container.width()/opts.carouselVisible;slideWidth=Math.ceil(slideWidth-adjustment);opts._carouselWrap.children().width(slideWidth);if(opts._sentinel)opts._sentinel.width(slideWidth);prepareDimensions(opts)}},transition:function(opts,curr,next,fwd,callback){var moveBy,props={};var hops=opts.nextSlide-opts.currSlide;var vert=opts.carouselVertical;var speed=opts.speed;if(opts.allowWrap===false){fwd=hops>0;var currSlide=opts._currSlide;var maxCurr=opts.slideCount-opts.carouselVisible;if(hops>0&&opts.nextSlide>maxCurr&&currSlide==maxCurr){hops=0}else if(hops>0&&opts.nextSlide>maxCurr){hops=opts.nextSlide-currSlide-(opts.nextSlide-maxCurr)}else if(hops<0&&opts.currSlide>maxCurr&&opts.nextSlide>maxCurr){hops=0}else if(hops<0&&opts.currSlide>maxCurr){hops+=opts.currSlide-maxCurr}else currSlide=opts.currSlide;moveBy=this.getScroll(opts,vert,currSlide,hops);opts.API.opts()._currSlide=opts.nextSlide>maxCurr?maxCurr:opts.nextSlide}else{if(fwd&&opts.nextSlide===0){moveBy=this.getDim(opts,opts.currSlide,vert);callback=this.genCallback(opts,fwd,vert,callback)}else if(!fwd&&opts.nextSlide==opts.slideCount-1){moveBy=this.getDim(opts,opts.currSlide,vert);callback=this.genCallback(opts,fwd,vert,callback)}else{moveBy=this.getScroll(opts,vert,opts.currSlide,hops)}}props[vert?"top":"left"]=fwd?"-="+moveBy:"+="+moveBy;if(opts.throttleSpeed)speed=moveBy/$(opts.slides[0])[vert?"height":"width"]()*opts.speed;opts._carouselWrap.animate(props,speed,opts.easing,callback)},getDim:function(opts,index,vert){var slide=$(opts.slides[index]);return slide[vert?"outerHeight":"outerWidth"](true)},getScroll:function(opts,vert,currSlide,hops){var i,moveBy=0;
1if(hops>0){for(i=currSlide;i<currSlide+hops;i++)moveBy+=this.getDim(opts,i,vert)}else{for(i=currSlide;i>currSlide+hops;i--)moveBy+=this.getDim(opts,i,vert)}return moveBy},genCallback:function(opts,fwd,vert,callback){return function(){var pos=$(opts.slides[opts.nextSlide]).position();var offset=0-pos[vert?"top":"left"]+(opts.carouselOffset||0);opts._carouselWrap.css(opts.carouselVertical?"top":"left",offset);callback()}},stopTransition:function(){var opts=this.opts();opts.slides.stop(false,true);opts._carouselWrap.stop(false,true)},onDestroy:function(e){var opts=this.opts();if(opts._carouselResizeThrottle)$(window).off("resize",opts._carouselResizeThrottle);opts.slides.prependTo(opts.container);opts._carouselWrap.remove()}}})(jQuery);!function(a){"use strict";a.fn.cycle.transitions.scrollVert={before:function(a,b,c,d){a.API.stackSlides(a,b,c,d);var e=a.container.css("overflow","hidden").height();a.cssBefore={top:d?-e:e,left:0,opacity:1,display:"block",visibility:"visible"},a.animIn={top:0},a.animOut={top:d?e:-e}}}}(jQuery);!function(a){"use strict";a.event.special.swipe=a.event.special.swipe||{scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var b=a(this);b.bind("touchstart",function(c){function d(b){if(g){var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;e={time:(new Date).getTime(),coords:[c.pageX,c.pageY]},Math.abs(g.coords[0]-e.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}}var e,f=c.originalEvent.touches?c.originalEvent.touches[0]:c,g={time:(new Date).getTime(),coords:[f.pageX,f.pageY],origin:a(c.target)};b.bind("touchmove",d).one("touchend",function(){b.unbind("touchmove",d),g&&e&&e.time-g.time<a.event.special.swipe.durationThreshold&&Math.abs(g.coords[0]-e.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&Math.abs(g.coords[1]-e.coords[1])<a.event.special.swipe.verticalDistanceThreshold&&g.origin.trigger("swipe").trigger(g.coords[0]>e.coords[0]?"swipeleft":"swiperight"),g=e=void 0})})}},a.event.special.swipeleft=a.event.special.swipeleft||{setup:function(){a(this).bind("swipe",a.noop)}},a.event.special.swiperight=a.event.special.swiperight||a.event.special.swipeleft}(jQuery);jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*(--t*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return t==0?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return t==d?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;
1if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=1.525)+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=1.525)+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<1/2.75){return c*(7.5625*t*t)+b}else if(t<2/2.75){return c*(7.5625*(t-=1.5/2.75)*t+.75)+b}else if(t<2.5/2.75){return c*(7.5625*(t-=2.25/2.75)*t+.9375)+b}else{return c*(7.5625*(t-=2.625/2.75)*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.5",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a(f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.5",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&
vendor: 4,368 bytes, line 1
1c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),a(c.target).is('input[type="radio"]')||a(c.target).is('input[type="checkbox"]')||c.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.5",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({}
vendor: 4,242 bytes, line 1
1,f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.5",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","fal
1se"),e.removeClass("open").trigger("hidden.bs.dropdown",f))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.5",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",c).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f,g.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.3.5",c.TRANSITION_DURATION=300,c.BACKDROP_TRANSITION_DURATION=150,c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var d=this,e=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){d.$element.one("mouseup.dismiss.bs.modal",function(b){a(b.target).is(d.$element)&&(d.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=a.support.transition&&d.$element.hasClass("fade");d.$element.parent().length||d.$element.appendTo(d.$body),d.$element.show().scrollTop(0),d.adjustDialog(),e&&d.$element[0].offsetWidth,d.$element.addClass("in"),d.enforceFocus();var f=a.Event("shown.bs.modal",{relatedTarget:b});e?d.$dialog.one("bsTransitionEnd",function(){d.$element.trigger("focus").trigger(f)}).emulateTransitionEnd(c.TRANSITION_DURATION):d.$element.trigger("focus").trigger(f)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(c.TRANSITION_DURATION):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
1down.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},c.prototype.resize=function(){this.isShown?a(window).on("resize.bs.modal",a.proxy(this.handleUpdate,this)):a(window).off("resize.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$body.removeClass("modal-open"),a.resetAdjustments(),a.resetScrollbar(),a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var d=this,e=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var f=a.support.transition&&e;if(this.$backdrop=a(document.createElement("div")).addClass("modal-backdrop "+e).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),f&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;f?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var g=function(){d.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",g).emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION):g()}else b&&b()},c.prototype.handleUpdate=function(){this.adjustDialog()},c.prototype.adjustDialog=function(){var a=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth<a,this.scrollbarWidth=this.measureScrollbar()},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",a,b)};c.VERSION="3.3.5",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focu
1s":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),c.isInStateTrue()?void 0:(clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide())},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-m<o.top?"bottom":"right"==h&&k.right+l>o.width?"left":"left"==h&&k.left-l<o.left?"right":h,f.removeClass(n).addClass(h)}var p=this.getCalculatedOffset(h,k,l,m);this.applyPlacement(p,h);var q=function(){var a=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==a&&e.leave(e)};a.support.transition&&this.$tip.hasClass("fade")?f.one("bsTransitionEnd",q).emulateTransitionEnd(c.TRANSITION_DURATION):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top+=g,b.left+=h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=/top|bottom/.test(c),m=l?2*k.left-e+i:2*k.top-f+j,n=l?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(m,d[0][n],l)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c?"left":"top",50*(1-a/b)+"%").css(c?"top":"left","")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(b){function d(){"in"!=e.hoverState&&f.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),b&&b()}var e=this,f=a(this.$tip),g=a.Event("hide.bs."+this.type);return this.$element.trigger(g),g.isDefaultPrevented()?void 0:(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",d).emulateTransitionEnd(c.TRANSITION_DURATION):d(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName,e=c.getBoundingClientRect();null==e.width&&(e=a.extend({},e,{width:e.right-e.left,height:e.bottom-e.top}));var f=d?{top:0,left:0}:b.offset(),g={scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop()},h=d?{width:a(window).width(),height:a(window).height()}:null;return a.extend({},e,g,h,f)},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do{a+=~~(1e6*Math.random())}while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.t
vendor: 6,970 bytes, line 1
1ype+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||!/destroy|hide/.test(b))&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.5",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.5",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<e[0])return this.activeTarget=null,this.clear();for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(void 0===e[a+1]||b<e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,this.clear();var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")},b.prototype.clear=function(){a(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.3.5",c.TRANSITION_DURATION=150,c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a"),f=a.Event("hide.bs.tab",{relatedTarget:b[0]}),g=a.Event("show.bs.tab",{relatedTarget:e[0]});if(e.trigger(f),b.trigger(g),!g.isDefaultPrevented()&&!f.isDefaultPrevented()){var h=a(d);this.activate(b.closest("li"),c),this.activate(h,h.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:b[0]}),b.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})}}},c.prototype.activate=function(b,d,e){function f(){g.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;
1e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.5",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return c>e?"top":!1;if("bottom"==this.affixed)return null!=c?e+this.unpin<=f.top?!1:"bottom":a-d>=e+g?!1:"bottom";var h=null==this.affixed,i=h?e:f.top,j=h?g:b;return null!=c&&c>=e?"top":null!=d&&i+j>=a-d?"bottom":!1},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery);(function($){$.ddAutocollapse=function(el,options){var base=this;base.$el=$(el);base.el=el;base.$el.data("ddAutocollapse",base);base.$container=base.$el.find("[dd-ac-container]").length===0?base.$el:base.$el.find("[dd-ac-container]");base.breakpointWidth=0;base.offset=options.offset;base.init=function(){base.options=$.extend({},$.ddAutocollapse.defaultOptions,options);base.name=base.options.name===""?"":"-"+base.options.name;base.breakpointWidth=0;base.$el.find("[dd-ac-child]").each(function(i,e){var widthInt=parseInt($(this).outerWidth(),10);base.breakpointWidth+=widthInt});if(options.offset!==0){base.breakpointWidth+=parseInt(options.offset,10)}window.setTimeout(base.checkWidth,1e3)};base.checkWidth=function(){var containerWidth=base.$container.outerWidth();if(base.breakpointWidth>containerWidth){base.$el.removeClass("dd-ac-element-false").removeClass("dd-ac-element"+base.name+"-false").addClass("dd-ac-element-true").addClass("dd-ac-element"+base.name+"-true");$("html").removeClass("dd-ac-false").removeClass("dd-ac"+base.name+"-false").addClass("dd-ac-true").addClass("dd-ac"+base.name+"-true")}else{base.$el.removeClass("dd-ac-element-true").removeClass("dd-ac-element"+base.name+"-true").addClass("dd-ac-element-false").addClass("dd-ac-element"+base.name+"-false");$("html").removeClass("dd-ac-true").removeClass("dd-ac"+base.name+"-true").addClass("dd-ac-false").addClass("dd-ac"+base.name+"-false")}};base.init();$(window).on("resize",base.checkWidth)};$.ddAutocollapse.defaultOptions={offset:0,name:""};$.fn.ddAutocollapse=function(options){return this.each(function(){new $.ddAutocollapse(this,options)})}})(jQuery);(function($){$(document).ready(function(){$(".site-nav").ddAutocollapse({offset:25,name:"site-nav"});$(".navbar__cart__toggle").on("click",function(event){$(this).parents(".dropdown").toggleClass("open")});$("body").on("click.ddcart",function(e){if(!$(".navbar__cart").is(e.target)&&$(".ngdialog").has(e.target).length===0&&$(".navbar__cart").has(e.target).length===0&&$(".open").has(e.target).length===0){$(".navbar__cart").removeClass("open")}});$("#navbar-menu").on("hide.bs.collapse",function(){$("body").removeClass("dd_mobileNavIsOpen")});$("#navbar-menu").on("show.bs.collapse",function(){$("body").addClass("dd_mobileNavIsOpen")})})})(jQuery);!function(a,b){"use strict";var c,d=a.document;c=function(){var _ver=window.navigator.appVersion;var isBadAndroid=/Android /.test(_ver)&&((_ver=_ver.match(/AppleWeb
vendor: 4,439 bytes, line 1
1Kit\/(\d+\.\d+)/))&&_ver[1]<534.31);var c,e,f,g,h,i,j,k,l,m,n,o,p,q={},r={},s=!1,t={ENTER:13,ESC:27,SPACE:32},u=[];return r={buttons:{holder:'<nav class="alertify-buttons">{{buttons}}</nav>',submit:'<button type="submit" class="alertify-button alertify-button-ok" id="alertify-ok">{{ok}}</button>',ok:'<button class="alertify-button alertify-button-ok" id="alertify-ok">{{ok}}</button>',cancel:'<button class="alertify-button alertify-button-cancel" id="alertify-cancel">{{cancel}}</button>'},input:'<div class="alertify-text-wrapper"><input type="text" class="alertify-text" id="alertify-text"></div>',message:'<p class="alertify-message">{{message}}</p>',log:'<article class="alertify-log{{class}}">{{message}}</article>'},p=function(){var a,c,e=!1,f=d.createElement("fakeelement"),g={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"};for(a in g)if(f.style[a]!==b&&isBadAndroid==false){c=g[a],e=!0;break}return{type:c,supported:e}},c=function(a){return d.getElementById(a)},q={labels:{ok:"OK",cancel:"Cancel"},delay:5e3,buttonReverse:!1,buttonFocus:"ok",transition:b,addListeners:function(a){var b,c,i,j,k,l="undefined"!=typeof f,m="undefined"!=typeof e,n="undefined"!=typeof o,p="",q=this;b=function(b){return"undefined"!=typeof b.preventDefault&&b.preventDefault(),i(b),"undefined"!=typeof o&&(p=o.value),"function"==typeof a&&("undefined"!=typeof o?a(!0,p):a(!0)),!1},c=function(b){return"undefined"!=typeof b.preventDefault&&b.preventDefault(),i(b),"function"==typeof a&&a(!1),!1},i=function(){q.hide(),q.unbind(d.body,"keyup",j),q.unbind(g,"focus",k),l&&q.unbind(f,"click",b),m&&q.unbind(e,"click",c)},j=function(a){var d=a.keyCode;(d===t.SPACE&&!n||n&&d===t.ENTER)&&b(a),d===t.ESC&&m&&c(a)},k=function(){n?o.focus():!m||q.buttonReverse?f.focus():e.focus()},this.bind(g,"focus",k),this.bind(h,"focus",k),l&&this.bind(f,"click",b),m&&this.bind(e,"click",c),this.bind(d.body,"keyup",j),this.transition.supported||this.setFocus()},bind:function(a,b,c){"function"==typeof a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)},handleErrors:function(){if("undefined"!=typeof a.onerror){var b=this;return a.onerror=function(a,c,d){b.error("["+a+" on line "+d+" of "+c+"]",0)},!0}return!1},appendButtons:function(a,b){return this.buttonReverse?b+a:a+b},build:function(a){var b="",c=a.type,d=a.message,e=a.cssClass||"";switch(b+='<div class="alertify-dialog">',b+='<a id="alertify-resetFocusBack" class="alertify-resetFocus" href="#">Reset Focus</a>',"none"===q.buttonFocus&&(b+='<a href="#" id="alertify-noneFocus" class="alertify-hidden"></a>'),"prompt"===c&&(b+='<div id="alertify-form">'),b+='<article class="alertify-inner">',b+=r.message.replace("{{message}}",d),"prompt"===c&&(b+=r.input),b+=r.buttons.holder,b+="</article>","prompt"===c&&(b+="</div>"),b+='<a id="alertify-resetFocus" class="alertify-resetFocus" href="#">Reset Focus</a>',b+="</div>",c){case"confirm":b=b.replace("{{buttons}}",this.appendButtons(r.buttons.cancel,r.buttons.ok)),b=b.replace("{{ok}}",this.labels.ok).replace("{{cancel}}",this.labels.cancel);break;case"prompt":b=b.replace("{{buttons}}",this.appendButtons(r.buttons.cancel,r.buttons.submit)),b=b.replace("{{ok}}",this.labels.ok).replace("{{cancel}}",this.labels.cancel);break;case"alert":b=b.replace("{{buttons}}",r.buttons.ok),b=b.replace("{{ok}}",this.labels.ok)}return l.className="alertify alertify-"+c+" "+e,k.className="alertify-cover",b},close:function(a,b){var c,d,e=b&&!isNaN(b)?+b:this.delay,f=this;this.bind(a,"click",function(){c(a)}),d=function(a){a.stopPropagation(),f.unbind(this,f.transition.type,d),m.removeChild(this),m.hasChildNodes()||(m.className+=" alertify-logs-hidden")},c=function(a){"undefined"!=typeof a&&a.parentNode===m&&(f.transition.supported?(f.bind(a,f.transition.type,d),a.className+=" alertify-log-hide"):(m.removeChild(a),m.hasChildNodes()||(m.className+=" alertify-logs-hidden")))},0!==b&&setTimeout(function(){c(a)},e)},dialog:function(a,b,c,e,f){j=d.activeElement;var g=function(){m&&null!==m.scrollTop&&k&&null!==k.scrollTop||g()};if("string"!=typeof a)throw new Error("message must be a string");if("string"!=typeof b)throw new Error("type must be a string");if("undefined"!=typeof c&&"function"!=typeof c)throw new Error("fn must be a function");return this.init(),g(),u.push({type:b,message:a,callback:c,placeholder:e,cssClass:f}),s||this.setup(),this}
1,extend:function(a){if("string"!=typeof a)throw new Error("extend method must have exactly one parameter");return function(b,c){return this.log(b,a,c),this}},hide:function(){var a,b=this;u.splice(0,1),u.length>0?this.setup(!0):(s=!1,a=function(c){c.stopPropagation(),b.unbind(l,b.transition.type,a)},this.transition.supported?(this.bind(l,this.transition.type,a),l.className="alertify alertify-hide alertify-hidden"):l.className="alertify alertify-hide alertify-hidden alertify-isHidden",k.className="alertify-cover alertify-cover-hidden",j.focus())},init:function(){d.createElement("nav"),d.createElement("article"),d.createElement("section"),null==c("alertify-cover")&&(k=d.createElement("div"),k.setAttribute("id","alertify-cover"),k.className="alertify-cover alertify-cover-hidden",d.body.appendChild(k)),null==c("alertify")&&(s=!1,u=[],l=d.createElement("section"),l.setAttribute("id","alertify"),l.className="alertify alertify-hidden",d.body.appendChild(l)),null==c("alertify-logs")&&(m=d.createElement("section"),m.setAttribute("id","alertify-logs"),m.className="alertify-logs alertify-logs-hidden",d.body.appendChild(m)),d.body.setAttribute("tabindex","0"),this.transition=p()},log:function(a,b,c,d){var e=function(){m&&null!==m.scrollTop||e()};return this.init(),e(),m.className="alertify-logs",this.notify(a,b,c,d),this},notify:function(a,b,c,e){var f=d.createElement("article");f.className="alertify-log"+("string"==typeof b&&""!==b?" alertify-log-"+b:""),f.innerHTML=a,console.log("notify click cb",e),"function"==typeof e&&this.bind(f,"click",e),m.appendChild(f),setTimeout(function(){f.className=f.className+" alertify-log-show"},50),this.close(f,c)},set:function(a){var b;if("object"!=typeof a&&a instanceof Array)throw new Error("args must be an object");for(b in a)a.hasOwnProperty(b)&&(this[b]=a[b])},setFocus:function(){o?(o.focus(),o.select()):i.focus()},setup:function(a){var d,j=u[0],k=this;s=!0,d=function(a){a.stopPropagation(),k.setFocus(),k.unbind(l,k.transition.type,d)},this.transition.supported&&!a&&this.bind(l,this.transition.type,d),l.innerHTML=this.build(j),g=c("alertify-resetFocus"),h=c("alertify-resetFocusBack"),f=c("alertify-ok")||b,e=c("alertify-cancel")||b,i="cancel"===q.buttonFocus?e:"none"===q.buttonFocus?c("alertify-noneFocus"):f,o=c("alertify-text")||b,n=c("alertify-form")||b,"string"==typeof j.placeholder&&""!==j.placeholder&&(o.value=j.placeholder),a&&this.setFocus(),this.addListeners(j.callback)},unbind:function(a,b,c){"function"==typeof a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)}},{alert:function(a,b,c){return q.dialog(a,"alert",b,"",c),this},confirm:function(a,b,c){return q.dialog(a,"confirm",b,"",c),this},extend:q.extend,init:q.init,log:function(a,b,c,d){return q.log(a,b,c,d),this},prompt:function(a,b,c,d){return q.dialog(a,"prompt",b,c,d),this},success:function(a,b,c){return q.log(a,"success",b,c),this},error:function(a,b,c){return q.log(a,"error",b,c),this},set:function(a){q.set(a)},labels:q.labels,debug:q.handleErrors}},"function"==typeof define?define([],function(){return new c}):"undefined"==typeof a.alertify&&(a.alertify=new c)}(this);(function(E){"use strict";function O(a){return function(){var b=arguments[0],d;d="["+(a?a+":":"")+b+"] http://errors.angularjs.org/1.5.7/"+(a?a+"/":"")+b;for(b=1;b<arguments.length;b++){d=d+(1==b?"?":"&")+"p"+(b-1)+"=";var c=encodeURIComponent,e;e=arguments[b];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;d+=c(e)}return Error(d)}}function oa(a){if(null==a||Wa(a))return!1;if(J(a)||F(a)||B&&a instanceof B)return!0;var b="length"in Object(a)&&a.length;return S(b)&&(0<=b&&(b-1 in a||a instanceof Array)||"function"==typeof a.item)}function r(a,b,d){var c,e;if(a)if(z(a))for(c in a)"prototype"==c||"length"==c||"name"==c||a.hasOwnProperty&&!a.hasOwnProperty(c)||b.call(d,a[c],c,a);else if(J(a)||oa(a)){var f="object"!==typeof a;c=0;for(e=a.length;c<e;c++)(f||c in a)&&b.call(d,a[c],c,a)}else if(a.forEach&&a.forEach!==r)a.forEach(b,d,a);else if(sc(a))for(c in a)b.call(d,a[c],c,a);else if("function"===typeof a.hasOwnProperty)for(c in a)a.hasOwnProperty(c)&&b.call(d,a[c],c,a);else for(c in a)sa.call(a,c)&&b.call(d,a[c],c,a);return a}function tc(a,b,d){for(var c=Object.keys(a).sort(),e=0;e<c.length;e++)b.call(d,a[c[e]],c[e]);return c}function uc(a){return function(b,d){a(d,b)}}function Zd(){return++pb}function Pb(a,b,d){for(var c=a.$$hashKey,e=0,f=b.length;e<f;++e){var g=b[e];if(H(g)||z(g))for(var h=Object.keys(g),k=0,l=h.length;k<l;k++){var m=h[k],n=g[m];d&&H(n)?ia(n)?a[m]=new Date(n.valueOf()):Xa(n)?a[m]=new RegExp(n):n.nodeName?a[m]=n.cloneNode(!0):Qb(n)?a[m]=n.clone():(H(a[m])||(a[m]=J(n)?[]:{}),Pb(a[m],[n],!0)):a[m]=n}}c?a.$$hashKey=c:delete a.$$hashKey;return a}
vendor: 60,900 bytes, line 1
1function R(a){return Pb(a,ta.call(arguments,1),!1)}function $d(a){return Pb(a,ta.call(arguments,1),!0)}function aa(a){return parseInt(a,10)}function Rb(a,b){return R(Object.create(a),b)}function A(){}function Ya(a){return a}function da(a){return function(){return a}}function vc(a){return z(a.toString)&&a.toString!==ka}function w(a){return"undefined"===typeof a}function x(a){return"undefined"!==typeof a}function H(a){return null!==a&&"object"===typeof a}function sc(a){return null!==a&&"object"===typeof a&&!wc(a)}function F(a){return"string"===typeof a}function S(a){return"number"===typeof a}function ia(a){return"[object Date]"===ka.call(a)}function z(a){return"function"===typeof a}function Xa(a){return"[object RegExp]"===ka.call(a)}function Wa(a){return a&&a.window===a}function Za(a){return a&&a.$evalAsync&&a.$watch}function Ea(a){return"boolean"===typeof a}function ae(a){return a&&S(a.length)&&be.test(ka.call(a))}function Qb(a){return!(!a||!(a.nodeName||a.prop&&a.attr&&a.find))}function ce(a){var b={};a=a.split(",");var d;for(d=0;d<a.length;d++)b[a[d]]=!0;return b}function ua(a){return M(a.nodeName||a[0]&&a[0].nodeName)}function $a(a,b){var d=a.indexOf(b);0<=d&&a.splice(d,1);return d}function Z(a,b){function d(a,b){var d=b.$$hashKey,e;if(J(a)){e=0;for(var f=a.length;e<f;e++)b.push(c(a[e]))}else if(sc(a))for(e in a)b[e]=c(a[e]);else if(a&&"function"===typeof a.hasOwnProperty)for(e in a)a.hasOwnProperty(e)&&(b[e]=c(a[e]));else for(e in a)sa.call(a,e)&&(b[e]=c(a[e]));d?b.$$hashKey=d:delete b.$$hashKey;return b}function c(a){if(!H(a))return a;var b=f.indexOf(a);if(-1!==b)return g[b];if(Wa(a)||Za(a))throw za("cpws");var b=!1,c=e(a);void 0===c&&(c=J(a)?[]:Object.create(wc(a)),b=!0);f.push(a);g.push(c);return b?d(a,c):c}function e(a){switch(ka.call(a)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new a.constructor(c(a.buffer));case"[object ArrayBuffer]":if(!a.slice){var b=new ArrayBuffer(a.byteLength);new Uint8Array(b).set(new Uint8Array(a));return b}return a.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new a.constructor(a.valueOf());case"[object RegExp]":return b=new RegExp(a.source,a.toString().match(/[^\/]*$/)[0]),b.lastIndex=a.lastIndex,b;case"[object Blob]":return new a.constructor([a],{type:a.type})}if(z(a.cloneNode))return a.cloneNode(!0)}var f=[],g=[];if(b){if(ae(b)||"[object ArrayBuffer]"===ka.call(b))throw za("cpta");if(a===b)throw za("cpi");J(b)?b.length=0:r(b,function(a,d){"$$hashKey"!==d&&delete b[d]});f.push(a);g.push(b);return d(a,b)}return c(a)}function na(a,b){if(a===b)return!0;if(null===a||null===b)return!1;if(a!==a&&b!==b)return!0;var d=typeof a,c;if(d==typeof b&&"object"==d)if(J(a)){if(!J(b))return!1;if((d=a.length)==b.length){for(c=0;c<d;c++)if(!na(a[c],b[c]))return!1;return!0}}else{if(ia(a))return ia(b)?na(a.getTime(),b.getTime()):!1;if(Xa(a))return Xa(b)?a.toString()==b.toString():!1;if(Za(a)||Za(b)||Wa(a)||Wa(b)||J(b)||ia(b)||Xa(b))return!1;d=T();for(c in a)if("$"!==c.charAt(0)&&!z(a[c])){if(!na(a[c],b[c]))return!1;d[c]=!0}for(c in b)if(!(c in d)&&"$"!==c.charAt(0)&&x(b[c])&&!z(b[c]))return!1;return!0}return!1}function ab(a,b,d){return a.concat(ta.call(b,d))}function bb(a,b){var d=2<arguments.length?ta.call(arguments,2):[];return!z(b)||b instanceof RegExp?b:d.length?function(){return arguments.length?b.apply(a,ab(d,arguments,0)):b.apply(a,d)}:function(){return arguments.length?b.apply(a,arguments):b.call(a)}}function de(a,b){var d=b;"string"===typeof a&&"$"===a.charAt(0)&&"$"===a.charAt(1)?d=void 0:Wa(b)?d="$WINDOW":b&&E.document===b?d="$DOCUMENT":Za(b)&&(d="$SCOPE");return d}function cb(a,b){if(!w(a))return S(b)||(b=b?2:null),JSON.stringify(a,de,b)}function xc(a){return F(a)?JSON.parse(a):a}function yc(a,b){a=a.replace(ee,"");var d=Date.parse("Jan 01, 1970 00:00:00 "+a)/6e4;return isNaN(d)?b:d}function Sb(a,b,d){d=d?-1:1;var c=a.getTimezoneOffset();b=yc(b,c);d*=b-c;a=new Date(a.getTime());a.setMinutes(a.getMinutes()+d);return a}function va(a){a=B(a).clone();try{a.empty()}catch(b){}var d=B("<div>").append(a).html();try{return a[0].nodeType===Na?M(d):d.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+M(b)})}catch(c){return M(d)}}function zc(a){try{return decodeURIComponent(a)}catch(b){}}function Ac(a){var b={};r((a||"").split("&"),function(a){var c,e,f;a&&(e=a=a.replace(/\+/g,"%20"),c=a.indexOf("="),-1!==c&&(e=a.substring(0,c),f=a.substring(c+1)),e=zc(e),x(e)&&(f=x(f)?zc(f):!0,sa.call(b,e)?J(b[e])?b[e].push(f):b[e]=[b[e],f]:b[e]=f))});return b}function Tb(a){var b=[];r(a,function(a,c){J(a)?r(a,function(a){b.push(ja(c,!0)+(!0===a?"":"="+ja(a,!0)))}):b.push(ja(c,!0)+(!0===a?"":"="+ja(a,!0)))});return b.length?b.join("&"):""}function qb(a){return ja(a,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ja(a,b){return encodeURIComponent(a).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,b?"%20":"+")}function fe(a,b){var d,c,e=Oa.length;for(c=0;c<e;++c)if(d=Oa[c]+b,F(d=a.getAttribute(d)))return d;return null}function ge(a,b){var d,c,e={};r(Oa,function(b){b+="app";!d&&a.hasAttribute&&a.hasAttribute(b)&&(d=a,c=a.getAttribute(b))});r(Oa,function(b){b+="app";var e;!d&&(e=a.querySelector("["+b.replace(":","\\:")+"]"))&&(d=e,c=e.getAttribute(b))});d&&(e.strictDi=null!==fe(d,"strict-di"),b(d,c?[c]:[],e))}function Bc(a,b,d){H(d)||(d={});d=R({strictDi:!1},d);var c=function(){a=B(a);if(a.injector()){var c=a[0]===E.document?"document":va(a);throw za("btstrpd",c.replace(/</,"<").replace(/>/,">"))}b=b||[];b.unshift(["$provide",function(b){b.value("$rootElement",a)}]);d.debugInfoEnabled&&b.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]);b.unshift("ng");c=db(b,d.strictDi);c.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,d,c){a.$apply(function(){b.data("$injector",c);d(b)(a)})}]);return c},e=/^NG_ENABLE_DEBUG_INFO!/,f=/^NG_DEFER_BOOTSTRAP!/;E&&e.test(E.name)&&(d.debugInfoEnabled=!0,E.name=E.name.replace(e,""));if(E&&!f.test(E.name))return c();E.name=E.name.replace(f,"");ea.resumeBootstrap=function(a){r(a,function(a){b.push(a)});return c()};z(ea.resumeDeferredBootstrap)&&ea.resumeDeferredBootstrap()}function he(){E.name="NG_ENABLE_DEBUG_INFO!"+E.name;E.location.reload()}function ie(a){a=ea.element(a).injector();if(!a)throw za("test");return a.get("$$testability")}function Cc(a,b){b=b||"_";return a.replace(je,function(a,c){return(c?b:"")+a.toLowerCase()})}function ke(){var a;if(!Dc){var b=rb();(pa=w(b)?E.jQuery:b?E[b]:void 0)&&pa.fn.on?(B=pa,R(pa.fn,{scope:Pa.scope,isolateScope:Pa.isolateScope,controller:Pa.controller,injector:Pa.injector,inheritedData:Pa.inheritedData}),a=pa.cleanData,pa.cleanData=function(b){for(var c,e=0,f;null!=(f=b[e]);e++)(c=pa._data(f,"events"))&&c.$destroy&&pa(f).triggerHandler("$destroy");a(b)}):B=U;ea.element=B;Dc=!0}}function sb(a,b,d){if(!a)throw za("areq",b||"?",d||"required");return a}function Qa(a,b,d){d&&J(a)&&(a=a[a.length-1]);sb(z(a),b,"not a function, got "+(a&&"object"===typeof a?a.constructor.name||"Object":typeof a));return a}function Ra(a,b){if("hasOwnProperty"===a)throw za("badname",b)}function Ec(a,b,d){if(!b)return a;b=b.split(".");for(var c,e=a,f=b.length,g=0;g<f;g++)c=b[g],a&&(a=(e=a)[c]);return!d&&z(a)?bb(e,a):a}function tb(a){for(var b=a[0],d=a[a.length-1],c,e=1;b!==d&&(b=b.nextSibling);e++)if(c||a[e]!==b)c||(c=B(ta.call(a,0,e))),c.push(b);return c||a}function T(){return Object.create(null)}function le(a){function b(a,b,c){return a[b]||(a[b]=c())}var d=O("$injector"),c=O("ng");a=b(a,"angular",Object);a.$$minErr=a.$$minErr||O;return b(a,"module",function(){var a={};return function(f,g,h){if("hasOwnProperty"===f)throw c("badname","module");g&&a.hasOwnProperty(f)&&(a[f]=null);return b(a,f,function(){function a(b,d,e,f){f||(f=c);return function(){f[e||"push"]([b,d,arguments]);return V}}function b(a,d){return function(b,e){e&&z(e)&&(e.$$moduleName=f);c.push([a,d,arguments]);return V}}if(!g)throw d("nomod",f);var c=[],e=[],p=[],s=a("$injector","invoke","push",e),V={_invokeQueue:c,_configBlocks:e,_runBlocks:p,requires:g,name:f,provider:b("$provide","provider"),factory:b("$provide","factory"),service:b("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:b("$provide","decorator"),animation:b("$animateProvider","register"),filter:b("$filterProvider","register"),controller:b("$controllerProvider","register"),directive:b("$compileProvider","directive"),component:b("$compileProvider","component"),config:s,run:function(a){p.push(a);return this}};h&&s(h);return V})}})}function ga(a,b){if(J(a)){b=b||[];for(var d=0,c=a.length;d<c;d++)b[d]=a[d]}else if(H(a))for(d in b=b||{},a)if("$"!==d.charAt(0)||"$"!==d.charAt(1))b[d]=a[d];return b||a}function me(a){R(a,{bootstrap:Bc,copy:Z,extend:R,merge:$d,equals:na,element:B,forEach:r,injector:db,noop:A,bind:bb,toJson:cb,fromJson:xc,identity:Ya,isUndefined:w,isDefined:x,isString:F,isFunction:z,isObject:H,isNumber:S,isElement:Qb,isArray:J,version:ne,isDate:ia,lowercase:M,uppercase:ub,callbacks:{counter:0},getTestability:ie,$$minErr:O,$$csp:Fa,reloadWithDebugInfo:he});Ub=le(E);Ub("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:oe});a.provider("$compile",Fc).directive({a:pe,input:Gc,textarea:Gc,form:qe,script:re,select:se,style:te,option:ue,ngBind:ve,ngBindHtml:we,ngBindTemplate:xe,ngClass:ye,ngClassEven:ze,ngClassOdd:Ae,ngCloak:Be,ngController:Ce,ngForm:De,ngHide:Ee,ngIf:Fe,ngInclude:Ge,ngInit:He,ngNonBindable:Ie,ngPluralize:Je,ngRepeat:Ke,ngShow:Le,ngStyle:Me,ngSwitch:Ne,ngSwitchWhen:Oe,ngSwitchDefault:Pe,ngOptions:Qe,ngTransclude:Re,ngModel:Se,ngList:Te,ngChange:Ue,pattern:Hc,ngPattern:Hc,required:Ic,ngRequired:Ic,minlength:Jc,ngMinlength:Jc,maxlength:Kc,ngMaxlength:Kc,ngValue:Ve,ngModelOptions:We}).directive({ngInclude:Xe}).directive(vb).directive(Lc);a.provider({$anchorScroll:Ye,$animate:Ze,$animateCss:$e,$$animateJs:af,$$animateQueue:bf,$$AnimateRunner:cf,$$animateAsyncRun:df,$browser:ef,$cacheFactory:ff,$controller:gf,$document:hf,$exceptionHandler:jf,$filter:Mc,$$forceReflow:kf,$interpolate:lf,$interval:mf,$http:nf,$httpParamSerializer:of,$httpParamSerializerJQLike:pf,$httpBackend:qf,$xhrFactory:rf,$location:sf,$log:tf,$parse:uf,$rootScope:vf,$q:wf,$$q:xf,$sce:yf,$sceDelegate:zf,$sniffer:Af,$templateCache:Bf,$templateRequest:Cf,$$testability:Df,$timeout:Ef,$window:Ff,$$rAF:Gf,$$jqLite:Hf,$$HashMap:If,$$cookieReader:Jf})}])}function eb(a){return a.replace(Kf,function(a,d,c,e){return e?c.toUpperCase():c}).replace(Lf,"Moz$1")}function Nc(a){a=a.nodeType;return 1===a||!a||9===a}function Oc(a,b){var d,c,e=b.createDocumentFragment(),f=[];if(Vb.test(a)){d=d||e.appendChild(b.createElement("div"));c=(Mf.exec(a)||["",""])[1].toLowerCase();c=ha[c]||ha._default;d.innerHTML=c[1]+a.replace(Nf,"<$1></$2>")+c[2];for(c=c[0];c--;)d=d.lastChild;f=ab(f,d.childNodes);d=e.firstChild;d.textContent=""}else f.push(b.createTextNode(a));e.textContent="";e.innerHTML="";r(f,function(a){e.appendChild(a)});return e}function Pc(a,b){var d=a.parentNode;d&&d.replaceChild(b,a);b.appendChild(a)}function U(a){if(a instanceof U)return a;var b;F(a)&&(a=W(a),b=!0);if(!(this instanceof U)){if(b&&"<"!=a.charAt(0))throw Wb("nosel");return new U(a)}if(b){b=E.document;var d;a=(d=Of.exec(a))?[b.createElement(d[1])]:(d=Oc(a,b))?d.childNodes:[]}Qc(this,a)}function Xb(a){return a.cloneNode(!0)}function wb(a,b){b||fb(a);if(a.querySelectorAll)for(var d=a.querySelectorAll("*"),c=0,e=d.length;c<e;c++)fb(d[c])}function Rc(a,b,d,c){if(x(c))throw Wb("offargs");var e=(c=xb(a))&&c.events,f=c&&c.handle;if(f)if(b){var g=function(b){var c=e[b];x(d)&&$a(c||[],d);x(d)&&c&&0<c.length||(a.removeEventListener(b,f,!1),delete e[b])};r(b.split(" "),function(a){g(a);yb[a]&&g(yb[a])})}else for(b in e)"$destroy"!==b&&a.removeEventListener(b,f,!1),delete e[b]}function fb(a,b){var d=a.ng339,c=d&&gb[d];c&&(b?delete c.data[b]:(c.handle&&(c.events.$destroy&&c.handle({},"$destroy"),Rc(a)),delete gb[d],a.ng339=void 0))}function xb(a,b){var d=a.ng339,d=d&&gb[d];b&&!d&&(a.ng339=d=++Pf,d=gb[d]={events:{},data:{},handle:void 0});return d}function Yb(a,b,d){if(Nc(a)){var c=x(d),e=!c&&b&&!H(b),f=!b;a=(a=xb(a,!e))&&a.data;if(c)a[b]=d;else{if(f)return a;if(e)return a&&a[b];R(a,b)}}}function zb(a,b){return a.getAttribute?-1<(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+b+" "):!1}function Ab(a,b){b&&a.setAttribute&&r(b.split(" "),function(b){a.setAttribute("class",W((" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+W(b)+" "," ")))})}function Bb(a,b){if(b&&a.setAttribute){var d=(" "+(a.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(b.split(" "),function(a){a=W(a);-1===d.indexOf(" "+a+" ")&&(d+=a+" ")});a.setAttribute("class",W(d))}}function Qc(a,b){if(b)if(b.nodeType)a[a.length++]=b;else{var d=b.length;if("number"===typeof d&&b.window!==b){if(d)for(var c=0;c<d;c++)a[a.length++]=b[c]}else a[a.length++]=b}}function Sc(a,b){return Cb(a,"$"+(b||"ngController")+"Controller")}function Cb(a,b,d){9==a.nodeType&&(a=a.documentElement);for(b=J(b)?b:[b];a;){for(var c=0,e=b.length;c<e;c++)if(x(d=B.data(a,b[c])))return d;a=a.parentNode||11===a.nodeType&&a.host}}function Tc(a){for(wb(a,!0);a.firstChild;)a.removeChild(a.firstChild)}function Db(a,b){b||wb(a);var d=a.parentNode;d&&d.removeChild(a)}function Qf(a,b){b=b||E;if("complete"===b.document.readyState)b.setTimeout(a);else B(b).on("load",a)}function Uc(a,b){var d=Eb[b.toLowerCase()];return d&&Vc[ua(a)]&&d}function Rf(a,b){var d=function(c,d){c.isDefaultPrevented=function(){return c.defaultPrevented};var f=b[d||c.type],g=f?f.length:0;if(g){if(w(c.immediatePropagationStopped)){var h=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0;c.stopPropagation&&c.stopPropagation();h&&h.call(c)}}c.isImmediatePropagationStopped=function(){return!0===c.immediatePropagationStopped};var k=f.specialHandlerWrapper||Sf;1<g&&(f=ga(f));for(var l=0;l<g;l++)c.isImmediatePropagationStopped()||k(a,c,f[l])}};d.elem=a;return d}function Sf(a,b,d){d.call(a,b)}function Tf(a,b,d){var c=b.relatedTarget;c&&(c===a||Uf.call(a,c))||d.call(a,b)}function Hf(){this.$get=function(){return R(U,{hasClass:function(a,b){a.attr&&(a=a[0]);return zb(a,b)},addClass:function(a,b){a.attr&&(a=a[0]);return Bb(a,b)},removeClass:function(a,b){a.attr&&(a=a[0]);return Ab(a,b)}})}}function Ga(a,b){var d=a&&a.$$hashKey;if(d)return"function"===typeof d&&(d=a.$$hashKey()),d;d=typeof a;return d="function"==d||"object"==d&&null!==a?a.$$hashKey=d+":"+(b||Zd)():d+":"+a}function Sa(a,b){if(b){var d=0;this.nextUid=function(){return++d}}r(a,this.put,this)}function Wc(a){a=(Function.prototype.toString.call(a)+" ").replace(Vf,"");return a.match(Wf)||a.match(Xf)}function Yf(a){return(a=Wc(a))?"function("+(a[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function db(a,b){function d(a){return function(b,c){if(H(b))r(b,uc(a));else return a(b,c)}}function c(a,b){Ra(a,"service");if(z(b)||J(b))b=p.instantiate(b);if(!b.$get)throw Ha("pget",a);return n[a+"Provider"]=b}function e(a,b){return function(){var c=I.invoke(b,this);if(w(c))throw Ha("undef",a);return c}}function f(a,b,d){return c(a,{$get:!1!==d?e(a,b):b})}function g(a){sb(w(a)||J(a),"modulesToLoad","not an array");var b=[],c;r(a,function(a){function d(a){var b,c;b=0;for(c=a.length;b<c;b++){var e=a[b],f=p.get(e[0]);f[e[1]].apply(f,e[2])}}if(!m.get(a)){m.put(a,!0);try{F(a)?(c=Ub(a),b=b.concat(g(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):z(a)?b.push(p.invoke(a)):J(a)?b.push(p.invoke(a)):Qa(a,"module")}catch(e){throw J(a)&&(a=a[a.length-1]),e.message&&e.stack&&-1==e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ha("modulerr",a,e.stack||e.message||e)}}});return b}function h(a,c){function d(b,e){if(a.hasOwnProperty(b)){if(a[b]===k)throw Ha("cdep",b+" <- "+l.join(" <- "));return a[b]}try{return l.unshift(b),a[b]=k,a[b]=c(b,e)}catch(f){throw a[b]===k&&delete a[b],f}finally{l.shift()}}function e(a,c,f){var g=[];a=db.$$annotate(a,b,f);for(var h=0,k=a.length;h<k;h++){var l=a[h];if("string"!==typeof l)throw Ha("itkn",l);g.push(c&&c.hasOwnProperty(l)?c[l]:d(l,f))}return g}return{invoke:function(a,b,c,d){"string"===typeof c&&(d=c,c=null);c=e(a,c,d);J(a)&&(a=a[a.length-1]);d=11>=Ba?!1:"function"===typeof a&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(a)+" ");return d?(c.unshift(null),new(Function.prototype.bind.apply(a,c))):a.apply(b,c)},instantiate:function(a,b,c){var d=J(a)?a[a.length-1]:a;a=e(a,b,c);a.unshift(null);return new(Function.prototype.bind.apply(d,a))},get:d,annotate:db.$$annotate,has:function(b){return n.hasOwnProperty(b+"Provider")||a.hasOwnProperty(b)}}}b=!0===b;var k={},l=[],m=new Sa([],!0),n={$provide:{provider:d(c),factory:d(f),service:d(function(a,b){return f(a,["$injector",function(a){return a.instantiate(b)}])}),value:d(function(a,b){return f(a,da(b),!1)}),constant:d(function(a,b){Ra(a,"constant");n[a]=b;s[a]=b}),decorator:function(a,b){var c=p.get(a+"Provider"),d=c.$get;c.$get=function(){var a=I.invoke(d,c);return I.invoke(b,null,{$delegate:a})}}}},p=n.$injector=h(n,function(a,b){ea.isString(b)&&l.push(b);throw Ha("unpr",l.join(" <- "))}),s={},V=h(s,function(a,b){var c=p.get(a+"Provider",b);return I.invoke(c.$get,c,void 0,a)}),I=V;n.$injectorProvider={$get:da(V)};var q=g(a),I=V.get("$injector");I.strictDi=b;r(q,function(a){a&&I.invoke(a)});return I}function Ye(){var a=!0;this.disableAutoScrolling=function(){a=!1};this.$get=["$window","$location","$rootScope",function(b,d,c){function e(a){var b=null;Array.prototype.some.call(a,function(a){if("a"===ua(a))return b=a,!0});return b}function f(a){if(a){a.scrollIntoView();var c;c=g.yOffset;z(c)?c=c():Qb(c)?(c=c[0],c="fixed"!==b.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):S(c)||(c=0);c&&(a=a.getBoundingClientRect().top,b.scrollBy(0,a-c))}else b.scrollTo(0,0)}function g(a){a=F(a)?a:d.hash();var b;a?(b=h.getElementById(a))?f(b):(b=e(h.getElementsByName(a)))?f(b):"top"===a&&f(null):f(null)}var h=b.document;a&&c.$watch(function(){return d.hash()},function(a,b){a===b&&""===a||Qf(function(){c.$evalAsync(g)})});return g}]}function hb(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;J(a)&&(a=a.join(" "));J(b)&&(b=b.join(" "));return a+" "+b}function Zf(a){F(a)&&(a=a.split(" "));var b=T();r(a,function(a){a.length&&(b[a]=!0)});return b}function Ia(a){return H(a)?a:{}}function $f(a,b,d,c){function e(a){try{a.apply(null,ta.call(arguments,1))}finally{if(V--,0===V)for(;I.length;)try{I.pop()()}catch(b){d.error(b)}}}function f(){y=null;g();h()}function g(){q=P();q=w(q)?null:q;na(q,D)&&(q=D);D=q}function h(){if(v!==k.url()||K!==q)v=k.url(),K=q,r(L,function(a){a(k.url(),q)})}var k=this,l=a.location,m=a.history,n=a.setTimeout,p=a.clearTimeout,s={};k.isMock=!1;var V=0,I=[];k.$$completeOutstandingRequest=e;k.$$incOutstandingRequestCount=function(){V++};k.notifyWhenNoOutstandingRequests=function(a){0===V?a():I.push(a)};var q,K,v=l.href,u=b.find("base"),y=null,P=c.history?function(){try{return m.state}catch(a){}}:A;g();K=q;k.url=function(b,d,e){w(e)&&(e=null);l!==a.location&&(l=a.location);m!==a.history&&(m=a.history);if(b){var f=K===e;if(v===b&&(!c.history||f))return k;var h=v&&Ja(v)===Ja(b);v=b;K=e;!c.history||h&&f?(h||(y=b),d?l.replace(b):h?(d=l,e=b.indexOf("#"),e=-1===e?"":b.substr(e),d.hash=e):l.href=b,l.href!==b&&(y=b)):(m[d?"replaceState":"pushState"](e,"",b),g(),K=q);y&&(y=b);return k}return y||l.href.replace(/%27/g,"'")};k.state=function(){return q};var L=[],C=!1,D=null;k.onUrlChange=function(b){if(!C){if(c.history)B(a).on("popstate",f);B(a).on("hashchange",f);C=!0}L.push(b);return b};k.$$applicationDestroyed=function(){B(a).off("hashchange popstate",f)};k.$$checkUrlChange=h;k.baseHref=function(){var a=u.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""};k.defer=function(a,b){var c;V++;c=n(function(){delete s[c];e(a)},b||0);s[c]=!0;return c};k.defer.cancel=function(a){return s[a]?(delete s[a],p(a),e(A),!0):!1}}function ef(){this.$get=["$window","$log","$sniffer","$document",function(a,b,d,c){return new $f(a,c,b,d)}]}function ff(){this.$get=function(){function a(a,c){function e(a){a!=n&&(p?p==a&&(p=a.n):p=a,f(a.n,a.p),f(a,n),n=a,n.n=null)}function f(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(a in b)throw O("$cacheFactory")("iid",a);var g=0,h=R({},c,{id:a}),k=T(),l=c&&c.capacity||Number.MAX_VALUE,m=T(),n=null,p=null;return b[a]={put:function(a,b){if(!w(b)){if(l<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});e(c)}a in k||g++;k[a]=b;g>l&&this.remove(p.key);return b}},get:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;e(b)}return k[a]},remove:function(a){if(l<Number.MAX_VALUE){var b=m[a];if(!b)return;b==n&&(n=b.p);b==p&&(p=b.n);f(b.n,b.p);delete m[a]}a in k&&(delete k[a],g--)},removeAll:function(){k=T();g=0;m=T();n=p=null},destroy:function(){m=h=k=null;delete b[a]},info:function(){return R({},h,{size:g})}}}var b={};a.info=function(){var a={};r(b,function(b,e){a[e]=b.info()});return a};a.get=function(a){return b[a]};return a}}function Bf(){this.$get=["$cacheFactory",function(a){return a("templates")}]}function Fc(a,b){function d(a,b,c){var d=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,e=T();r(a,function(a,f){if(a in n)e[f]=n[a];else{var g=a.match(d);if(!g)throw fa("iscp",b,f,a,c?"controller bindings definition":"isolate scope definition");e[f]={mode:g[1][0],collection:"*"===g[2],optional:"?"===g[3],attrName:g[4]||f};g[4]&&(n[a]=e[f])}});return e}function c(a){var b=a.charAt(0);if(!b||b!==M(b))throw fa("baddir",a);if(a!==a.trim())throw fa("baddir",a)}function e(a){var b=a.require||a.controller&&a.name;!J(b)&&H(b)&&r(b,function(a,c){var d=a.match(l);a.substring(d[0].length)||(b[c]=d[0]+c)});return b}var f={},g=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,h=/(([\w\-]+)(?:\:([^;]+))?;?)/,k=ce("ngSrc,ngSrcset,src,srcset"),l=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,m=/^(on[a-z]+|formaction)$/,n=T();this.directive=function I(b,d){Ra(b,"directive");F(b)?(c(b),sb(d,"directiveFactory"),f.hasOwnProperty(b)||(f[b]=[],a.factory(b+"Directive",["$injector","$exceptionHandler",function(a,c){var d=[];r(f[b],function(f,g){try{var h=a.invoke(f);z(h)?h={compile:da(h)}:!h.compile&&h.link&&(h.compile=da(h.link));h.priority=h.priority||0;h.index=g;h.name=h.name||b;h.require=e(h);h.restrict=h.restrict||"EA";h.$$moduleName=f.$$moduleName;d.push(h)}catch(k){c(k)}});return d}])),f[b].push(d)):r(b,uc(I));return this};this.component=function(a,b){function c(a){function e(b){return z(b)||J(b)?function(c,d){return a.invoke(b,this,{$element:c,$attrs:d})}:b}var f=b.template||b.templateUrl?b.template:"",g={controller:d,controllerAs:Xc(b.controller)||b.controllerAs||"$ctrl",template:e(f),templateUrl:e(b.templateUrl),transclude:b.transclude,scope:{},bindToController:b.bindings||{},restrict:"E",require:b.require};r(b,function(a,b){"$"===b.charAt(0)&&(g[b]=a)});return g}var d=b.controller||function(){};r(b,function(a,b){"$"===b.charAt(0)&&(c[b]=a,z(d)&&(d[b]=a))});c.$inject=["$injector"];return this.directive(a,c)};this.aHrefSanitizationWhitelist=function(a){return x(a)?(b.aHrefSanitizationWhitelist(a),this):b.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(a){return x(a)?(b.imgSrcSanitizationWhitelist(a),this):b.imgSrcSanitizationWhitelist()};var p=!0;this.debugInfoEnabled=function(a){return x(a)?(p=a,this):p};var s=10;this.onChangesTtl=function(a){return arguments.length?(s=a,this):s};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(a,b,c,e,n,y,P,L,C,D){function G(){try{if(!--oa)throw Z=void 0,fa("infchng",s);P.$apply(function(){for(var a=[],b=0,c=Z.length;b<c;++b)try{Z[b]()}catch(d){a.push(d)}Z=void 0;if(a.length)throw a})}finally{oa++}}function Aa(a,b){if(b){var c=Object.keys(b),d,e,f;d=0;for(e=c.length;d<e;d++)f=c[d],this[f]=b[f]}else this.$attr={};this.$$element=a}function Q(a,b,c){la.innerHTML="<span "+b+">";b=la.firstChild.attributes;var d=b[0];b.removeNamedItem(d.name);d.value=c;a.attributes.setNamedItem(d)}function N(a,b){try{a.addClass(b)}catch(c){}}function ba(a,b,c,d,e){a instanceof B||(a=B(a));for(var f=/\S+/,g=0,h=a.length;g<h;g++){var k=a[g];k.nodeType===Na&&k.nodeValue.match(f)&&Pc(k,a[g]=E.document.createElement("span"))}var l=t(a,b,a,c,d,e);ba.$$addScopeClass(a);var n=null;return function(b,c,d){sb(b,"scope");e&&e.needsNewScope&&(b=b.$parent.$new());d=d||{};var f=d.parentBoundTranscludeFn,g=d.transcludeControllers;d=d.futureParentElement;f&&f.$$boundTransclude&&(f=f.$$boundTransclude);n||(n=(d=d&&d[0])?"foreignobject"!==ua(d)&&ka.call(d).match(/SVG/)?"svg":"html":"html");d="html"!==n?B(ca(n,B("<div>").append(a).html())):c?Pa.clone.call(a):a;if(g)for(var h in g)d.data("$"+h+"Controller",g[h].instance);ba.$$addScopeInfo(d,b);c&&c(d,b);l&&l(b,d,d,f);return d}}function t(a,b,c,d,e,f){function g(a,c,d,e){var f,k,l,n,m,v,q;if(p)for(q=Array(c.length),n=0;n<h.length;n+=3)f=h[n],q[f]=c[f];else q=c;n=0;for(m=h.length;n<m;)k=q[h[n++]],c=h[n++],f=h[n++],c?(c.scope?(l=a.$new(),ba.$$addScopeInfo(B(k),l)):l=a,v=c.transcludeOnThisElement?wa(a,c.transclude,e):!c.templateOnThisElement&&e?e:!e&&b?wa(a,b):null,c(f,l,k,d,v)):f&&f(a,k.childNodes,void 0,e)}for(var h=[],k,l,n,m,p,v=0;v<a.length;v++){k=new Aa;l=$b(a[v],[],k,0===v?d:void 0,e);(f=l.length?Ta(l,a[v],k,b,c,null,[],[],f):null)&&f.scope&&ba.$$addScopeClass(k.$$element);k=f&&f.terminal||!(n=a[v].childNodes)||!n.length?null:t(n,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b);if(f||k)h.push(v,f,k),m=!0,p=p||f;f=null}return m?g:null}function wa(a,b,c){function d(e,f,g,h,k){e||(e=a.$new(!1,k),e.$$transcluded=!0);return b(e,f,{parentBoundTranscludeFn:c,transcludeControllers:g,futureParentElement:h})}var e=d.$$slots=T(),f;for(f in b.$$slots)e[f]=b.$$slots[f]?wa(a,b.$$slots[f],c):null;return d}function $b(a,b,c,d,e){var f=c.$attr,k;switch(a.nodeType){case 1:Da(b,xa(ua(a)),"E",d,e);for(var l,n,m,p=a.attributes,v=0,q=p&&p.length;v<q;v++){var s=!1,L=!1;l=p[v];k=l.name;n=W(l.value);l=xa(k);if(m=ya.test(l))k=k.replace(Yc,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()});(l=l.match(za))&&S(l[1])&&(s=k,L=k.substr(0,k.length-5)+"end",k=k.substr(0,k.length-6));l=xa(k.toLowerCase());f[l]=k;if(m||!c.hasOwnProperty(l))c[l]=n,Uc(a,l)&&(c[l]=!0);ia(a,b,n,l,m);Da(b,l,"A",d,e,s,L)}a=a.className;H(a)&&(a=a.animVal);if(F(a)&&""!==a)for(;k=h.exec(a);)l=xa(k[2]),Da(b,l,"C",d,e)&&(c[l]=W(k[3])),a=a.substr(k.index+k[0].length);break;case Na:if(11===Ba)for(;a.parentNode&&a.nextSibling&&a.nextSibling.nodeType===Na;)a.nodeValue+=a.nextSibling.nodeValue,a.parentNode.removeChild(a.nextSibling);aa(b,a.nodeValue);break;case 8:try{if(k=g.exec(a.nodeValue))l=xa(k[1]),Da(b,l,"M",d,e)&&(c[l]=W(k[2]))}catch(C){}}b.sort(Y);return b}function Zc(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw fa("uterdir",b,c);1==a.nodeType&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return B(d)}function O(a,b,c){return function(d,e,f,g,h){e=Zc(e[0],b,c);return a(d,e,f,g,h)}}function ac(a,b,c,d,e,f){var g;return a?ba(b,c,d,e,f):function(){g||(g=ba(b,c,d,e,f),b=c=f=null);return g.apply(this,arguments)}}function Ta(a,b,d,e,f,g,h,k,l){function n(a,b,c,d){if(a){c&&(a=O(a,c,d));a.require=u.require;a.directiveName=G;if(s===u||u.$$isolateScope)a=ga(a,{isolateScope:!0});h.push(a)}if(b){c&&(b=O(b,c,d));b.require=u.require;b.directiveName=G;if(s===u||u.$$isolateScope)b=ga(b,{isolateScope:!0});k.push(b)}}function m(a,e,f,g,l){function n(a,b,c,d){var e;Za(a)||(d=c,c=b,b=a,a=void 0);y&&(e=N);c||(c=y?G.parent():G);if(d){var f=l.$$slots[d];if(f)return f(a,b,e,c,t);if(w(f))throw fa("noslot",d,va(G))}else return l(a,b,e,c,t)}var p,C,u,D,I,N,Q,G;b===f?(g=d,G=d.$$element):(G=B(f),g=new Aa(G,d));I=e;s?D=e.$new(!0):v&&(I=e.$parent);l&&(Q=n,Q.$$boundTransclude=l,Q.isSlotFilled=function(a){return!!l.$$slots[a]});q&&(N=ag(G,g,Q,q,D,e,s));s&&(ba.$$addScopeInfo(G,D,!0,!(L&&(L===s||L===s.$$originalDirective))),ba.$$addScopeClass(G,!0),D.$$isolateBindings=s.$$isolateBindings,C=ha(e,g,D,D.$$isolateBindings,s),C.removeWatches&&D.$on("$destroy",C.removeWatches));for(p in N){C=q[p];u=N[p];var Zb=C.$$bindings.bindToController;u.bindingInfo=u.identifier&&Zb?ha(I,g,u.instance,Zb,C):{};var P=u();P!==u.instance&&(u.instance=P,G.data("$"+C.name+"Controller",P),u.bindingInfo.removeWatches&&u.bindingInfo.removeWatches(),u.bindingInfo=ha(I,g,u.instance,Zb,C))}r(q,function(a,b){var c=a.require;a.bindToController&&!J(c)&&H(c)&&R(N[b].instance,ib(b,c,G,N))});r(N,function(a){var b=a.instance;if(z(b.$onChanges))try{b.$onChanges(a.bindingInfo.initialChanges)}catch(d){c(d)}if(z(b.$onInit))try{b.$onInit()}catch(e){c(e)}z(b.$onDestroy)&&I.$on("$destroy",function(){b.$onDestroy()})});p=0;for(C=h.length;p<C;p++)u=h[p],ja(u,u.isolateScope?D:e,G,g,u.require&&ib(u.directiveName,u.require,G,N),Q);var t=e;s&&(s.template||null===s.templateUrl)&&(t=D);a&&a(t,f.childNodes,void 0,l);for(p=k.length-1;0<=p;p--)u=k[p],ja(u,u.isolateScope?D:e,G,g,u.require&&ib(u.directiveName,u.require,G,N),Q);r(N,function(a){a=a.instance;z(a.$postLink)&&a.$postLink()})}l=l||{};for(var p=-Number.MAX_VALUE,v=l.newScopeDirective,q=l.controllerDirectives,s=l.newIsolateScopeDirective,L=l.templateDirective,C=l.nonTlbTranscludeDirective,D=!1,I=!1,y=l.hasElementTranscludeDirective,N=d.$$element=B(b),u,G,Q,P=e,t,Ca=!1,wa=!1,x,A=0,E=a.length;A<E;A++){u=a[A];var F=u.$$start,Ta=u.$$end;F&&(N=Zc(b,F,Ta));Q=void 0;if(p>u.priority)break;if(x=u.scope)u.templateUrl||(H(x)?(X("new/isolated scope",s||v,u,N),s=u):X("new/isolated scope",s,u,N)),v=v||u;G=u.name;if(!Ca&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!u.$$tlb)){for(x=A+1;Ca=a[x++];)if(Ca.transclude&&!Ca.$$tlb||Ca.replace&&(Ca.templateUrl||Ca.template)){wa=!0;break}Ca=!0}!u.templateUrl&&u.controller&&(x=u.controller,q=q||T(),X("'"+G+"' controller",q[G],u,N),q[G]=u);if(x=u.transclude)if(D=!0,u.$$tlb||(X("transclusion",C,u,N),C=u),"element"==x)y=!0,p=u.priority,Q=N,N=d.$$element=B(ba.$$createComment(G,d[G])),b=N[0],da(f,ta.call(Q,0),b),Q[0].$$parentNode=Q[0].parentNode,P=ac(wa,Q,e,p,g&&g.name,{nonTlbTranscludeDirective:C});else{var M=T();Q=B(Xb(b)).contents();if(H(x)){Q=[];var S=T(),Da=T();r(x,function(a,b){var c="?"===a.charAt(0);a=c?a.substring(1):a;S[a]=b;M[b]=null;Da[b]=c});r(N.contents(),function(a){var b=S[xa(ua(a))];b?(Da[b]=!0,M[b]=M[b]||[],M[b].push(a)):Q.push(a)});r(Da,function(a,b){if(!a)throw fa("reqslot",b)});for(var Y in M)M[Y]&&(M[Y]=ac(wa,M[Y],e))}N.empty();P=ac(wa,Q,e,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope});P.$$slots=M}if(u.template)if(I=!0,X("template",L,u,N),L=u,x=z(u.template)?u.template(N,d):u.template,x=ra(x),u.replace){g=u;Q=Vb.test(x)?$c(ca(u.templateNamespace,W(x))):[];b=Q[0];if(1!=Q.length||1!==b.nodeType)throw fa("tplrt",G,"");da(f,N,b);E={$attr:{}};x=$b(b,[],E);var aa=a.splice(A+1,a.length-(A+1));(s||v)&&ad(x,s,v);a=a.concat(x).concat(aa);U(d,E);E=a.length}else N.html(x);if(u.templateUrl)I=!0,X("template",L,u,N),L=u,u.replace&&(g=u),m=$(a.splice(A,a.length-A),N,d,f,D&&P,h,k,{controllerDirectives:q,newScopeDirective:v!==u&&v,newIsolateScopeDirective:s,templateDirective:L,nonTlbTranscludeDirective:C}),E=a.length;else if(u.compile)try{t=u.compile(N,d,P);var Z=u.$$originalDirective||u;z(t)?n(null,bb(Z,t),F,Ta):t&&n(bb(Z,t.pre),bb(Z,t.post),F,Ta)}catch(ea){c(ea,va(N))}u.terminal&&(m.terminal=!0,p=Math.max(p,u.priority))}m.scope=v&&!0===v.scope;m.transcludeOnThisElement=D;m.templateOnThisElement=I;m.transclude=P;l.hasElementTranscludeDirective=y;return m}function ib(a,b,c,d){var e;if(F(b)){var f=b.match(l);b=b.substring(f[0].length);var g=f[1]||f[3],f="?"===f[2];"^^"===g?c=c.parent():e=(e=d&&d[b])&&e.instance;if(!e){var h="$"+b+"Controller";e=g?c.inheritedData(h):c.data(h)}if(!e&&!f)throw fa("ctreq",b,a)}else if(J(b))for(e=[],g=0,f=b.length;g<f;g++)e[g]=ib(a,b[g],c,d);else H(b)&&(e={},r(b,function(b,f){e[f]=ib(a,b,c,d)}));return e||null}function ag(a,b,c,d,e,f,g){var h=T(),k;for(k in d){var l=d[k],n={$scope:l===g||l.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},m=l.controller;"@"==m&&(m=b[l.name]);n=y(m,n,!0,l.controllerAs);h[l.name]=n;a.data("$"+l.name+"Controller",n.instance)}return h}function ad(a,b,c){for(var d=0,e=a.length;d<e;d++)a[d]=Rb(a[d],{$$isolateScope:b,$$newScope:c})}function Da(b,e,g,h,k,l,n){if(e===k)return null;k=null;if(f.hasOwnProperty(e)){var m;e=a.get(e+"Directive");for(var p=0,v=e.length;p<v;p++)try{if(m=e[p],(w(h)||h>m.priority)&&-1!=m.restrict.indexOf(g)){l&&(m=Rb(m,{$$start:l,$$end:n}));if(!m.$$bindings){var q=m,s=m,L=m.name,u={isolateScope:null,bindToController:null};H(s.scope)&&(!0===s.bindToController?(u.bindToController=d(s.scope,L,!0),u.isolateScope={}):u.isolateScope=d(s.scope,L,!1));H(s.bindToController)&&(u.bindToController=d(s.bindToController,L,!0));if(H(u.bindToController)){var C=s.controller,D=s.controllerAs;if(!C)throw fa("noctrl",L);if(!Xc(C,D))throw fa("noident",L)}var N=q.$$bindings=u;H(N.isolateScope)&&(m.$$isolateBindings=N.isolateScope)}b.push(m);k=m}}catch(G){c(G)}}return k}function S(b){if(f.hasOwnProperty(b))for(var c=a.get(b+"Directive"),d=0,e=c.length;d<e;d++)if(b=c[d],b.multiElement)return!0;return!1}function U(a,b){var c=b.$attr,d=a.$attr;r(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&b[e]!==d&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});r(b,function(b,e){a.hasOwnProperty(e)||"$"===e.charAt(0)||(a[e]=b,"class"!==e&&"style"!==e&&(d[e]=c[e]))})}function $(a,b,c,d,f,g,h,k){var l=[],n,m,p=b[0],s=a.shift(),q=Rb(s,{templateUrl:null,transclude:null,replace:null,$$originalDirective:s}),L=z(s.templateUrl)?s.templateUrl(b,c):s.templateUrl,u=s.templateNamespace;b.empty();e(L).then(function(e){var v,C;e=ra(e);if(s.replace){e=Vb.test(e)?$c(ca(u,W(e))):[];v=e[0];if(1!=e.length||1!==v.nodeType)throw fa("tplrt",s.name,L);e={$attr:{}};da(d,b,v);var D=$b(v,[],e);H(s.scope)&&ad(D,!0);a=D.concat(a);U(c,e)}else v=p,b.html(e);a.unshift(q);n=Ta(a,v,c,f,b,s,g,h,k);r(d,function(a,c){a==v&&(d[c]=b[0])});for(m=t(b[0].childNodes,f);l.length;){e=l.shift();C=l.shift();var I=l.shift(),G=l.shift(),D=b[0];if(!e.$$destroyed){if(C!==p){var y=C.className;k.hasElementTranscludeDirective&&s.replace||(D=Xb(v));da(I,B(C),D);N(B(D),y)}C=n.transcludeOnThisElement?wa(e,n.transclude,G):G;n(m,e,D,d,C)}}l=null});return function(a,b,c,d,e){a=e;b.$$destroyed||(l?l.push(b,c,d,a):(n.transcludeOnThisElement&&(a=wa(b,n.transclude,e)),n(m,b,c,d,a)))}}function Y(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function X(a,b,c,d){function e(a){return a?" (module: "+a+")":""}if(b)throw fa("multidir",b.name,e(b.$$moduleName),c.name,e(c.$$moduleName),a,va(d))}function aa(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:function(a){a=a.parent();var b=!!a.length;b&&ba.$$addBindingClass(a);return function(a,c){var e=c.parent();b||ba.$$addBindingClass(e);ba.$$addBindingInfo(e,d.expressions);a.$watch(d,function(a){c[0].nodeValue=a})}}})}function ca(a,b){a=M(a||"html");switch(a){case"svg":case"math":var c=E.document.createElement("div");c.innerHTML="<"+a+">"+b+"</"+a+">";return c.childNodes[0].childNodes;default:return b}}function ea(a,b){if("srcdoc"==b)return L.HTML;var c=ua(a);if("xlinkHref"==b||"form"==c&&"action"==b||"img"!=c&&("src"==b||"ngSrc"==b))return L.RESOURCE_URL}function ia(a,c,d,e,f){var g=ea(a,e);f=k[e]||f;var h=b(d,!0,g,f);if(h){if("multiple"===e&&"select"===ua(a))throw fa("selmulti",va(a));c.push({priority:100,compile:function(){return{pre:function(a,c,k){c=k.$$observers||(k.$$observers=T());if(m.test(e))throw fa("nodomevents");var l=k[e];l!==d&&(h=l&&b(l,!0,g,f),d=l);h&&(k[e]=h(a),(c[e]||(c[e]=[])).$$inter=!0,(k.$$observers&&k.$$observers[e].$$scope||a).$watch(h,function(a,b){"class"===e&&a!=b?k.$updateClass(a,b):k.$set(e,a)}))}}}})}}function da(a,b,c){var d=b[0],e=b.length,f=d.parentNode,g,h;if(a)for(g=0,h=a.length;g<h;g++)if(a[g]==d){a[g++]=c;h=g+e-1;for(var k=a.length;g<k;g++,h++)h<k?a[g]=a[h]:delete a[g];a.length-=e-1;a.context===d&&(a.context=c);break}f&&f.replaceChild(c,d);a=E.document.createDocumentFragment();for(g=0;g<e;g++)a.appendChild(b[g]);B.hasData(d)&&(B.data(c,B.data(d)),B(d).off("$destroy"));B.cleanData(a.querySelectorAll("*"));for(g=1;g<e;g++)delete b[g];b[0]=c;b.length=1}function ga(a,b){return R(function(){return a.apply(null,arguments)},a,b)}function ja(a,b,d,e,f,g){try{a(b,d,e,f,g)}catch(h){c(h,va(d))}}function ha(a,c,d,e,f){function g(b,c,e){z(d.$onChanges)&&c!==e&&(Z||(a.$$postDigest(G),Z=[]),m||(m={},Z.push(h)),m[b]&&(e=m[b].previousValue),m[b]=new Fb(e,c))}function h(){d.$onChanges(m);m=void 0}var k=[],l={},m;r(e,function(e,h){var m=e.attrName,p=e.optional,v,s,L,C;switch(e.mode){case"@":p||sa.call(c,m)||(d[h]=c[m]=void 0);c.$observe(m,function(a){if(F(a)||Ea(a))g(h,a,d[h]),d[h]=a});c.$$observers[m].$$scope=a;v=c[m];F(v)?d[h]=b(v)(a):Ea(v)&&(d[h]=v);l[h]=new Fb(bc,d[h]);break;case"=":if(!sa.call(c,m)){if(p)break;c[m]=void 0}if(p&&!c[m])break;s=n(c[m]);C=s.literal?na:function(a,b){return a===b||a!==a&&b!==b};L=s.assign||function(){v=d[h]=s(a);throw fa("nonassign",c[m],m,f.name)};v=d[h]=s(a);p=function(b){C(b,d[h])||(C(b,v)?L(a,b=d[h]):d[h]=b);return v=b};p.$stateful=!0;p=e.collection?a.$watchCollection(c[m],p):a.$watch(n(c[m],p),null,s.literal);k.push(p);break;case"<":if(!sa.call(c,m)){if(p)break;c[m]=void 0}if(p&&!c[m])break;s=n(c[m]);var D=d[h]=s(a);l[h]=new Fb(bc,d[h]);p=a.$watch(s,function(a,b){if(b===a){if(b===D)return;b=D}g(h,a,b);d[h]=a},s.literal);k.push(p);break;case"&":s=c.hasOwnProperty(m)?n(c[m]):A;if(s===A&&p)break;d[h]=function(b){return s(a,b)}}});return{initialChanges:l,removeWatches:k.length&&function(){for(var a=0,b=k.length;a<b;++a)k[a]()}}}var ma=/^\w/,la=E.document.createElement("div"),oa=s,Z;Aa.prototype={$normalize:xa,$addClass:function(a){a&&0<a.length&&C.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&C.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=bd(a,b);c&&c.length&&C.addClass(this.$$element,c);(c=bd(b,a))&&c.length&&C.removeClass(this.$$element,c)},$set:function(a,b,d,e){var f=Uc(this.$$element[0],a),g=cd[a],h=a;f?(this.$$element.prop(a,b),e=f):g&&(this[g]=b,h=g);this[a]=b;e?this.$attr[a]=e:(e=this.$attr[a])||(this.$attr[a]=e=Cc(a,"-"));f=ua(this.$$element);if("a"===f&&("href"===a||"xlinkHref"===a)||"img"===f&&"src"===a)this[a]=b=D(b,"src"===a);else if("img"===f&&"srcset"===a&&x(b)){for(var f="",g=W(b),k=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,k=/\s/.test(g)?k:/(,)/,g=g.split(k),k=Math.floor(g.length/2),l=0;l<k;l++)var n=2*l,f=f+D(W(g[n]),!0),f=f+(" "+W(g[n+1]));g=W(g[2*l]).split(/\s/);f+=D(W(g[0]),!0);2===g.length&&(f+=" "+W(g[1]));this[a]=b=f}!1!==d&&(null===b||w(b)?this.$$element.removeAttr(e):ma.test(e)?this.$$element.attr(e,b):Q(this.$$element[0],e,b));(a=this.$$observers)&&r(a[h],function(a){try{a(b)}catch(d){c(d)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=T()),e=d[a]||(d[a]=[]);e.push(b);P.$evalAsync(function(){e.$$inter||!c.hasOwnProperty(a)||w(c[a])||b(c[a])});return function(){$a(e,b)}}};var pa=b.startSymbol(),qa=b.endSymbol(),ra="{{"==pa&&"}}"==qa?Ya:function(a){return a.replace(/\{\{/g,pa).replace(/}}/g,qa)},ya=/^ngAttr[A-Z]/,za=/^(.+)Start$/;ba.$$addBindingInfo=p?function(a,b){var c=a.data("$binding")||[];J(b)?c=c.concat(b):c.push(b);a.data("$binding",c)}:A;ba.$$addBindingClass=p?function(a){N(a,"ng-binding")}:A;ba.$$addScopeInfo=p?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:A;ba.$$addScopeClass=p?function(a,b){N(a,b?"ng-isolate-scope":"ng-scope")}:A;ba.$$createComment=function(a,b){var c="";p&&(c=" "+(a||"")+": ",b&&(c+=b+" "));return E.document.createComment(c)};return ba}]}function Fb(a,b){this.previousValue=a;this.currentValue=b}function xa(a){return eb(a.replace(Yc,""))}function bd(a,b){var d="",c=a.split(/\s+/),e=b.split(/\s+/),f=0;a:for(;f<c.length;f++){for(var g=c[f],h=0;h<e.length;h++)if(g==e[h])continue a;d+=(0<d.length?" ":"")+g}return d}function $c(a){a=B(a);var b=a.length;if(1>=b)return a;for(;b--;)8===a[b].nodeType&&bg.call(a,b,1);return a}function Xc(a,b){if(b&&F(b))return b;if(F(a)){var d=dd.exec(a);if(d)return d[3]}}function gf(){var a={},b=!1;this.has=function(b){return a.hasOwnProperty(b)};this.register=function(b,c){Ra(b,"controller");H(b)?R(a,b):a[b]=c};this.allowGlobals=function(){b=!0};this.$get=["$injector","$window",function(d,c){function e(a,b,c,d){if(!a||!H(a.$scope))throw O("$controller")("noscp",d,b);a.$scope[b]=c}return function(f,g,h,k){var l,m,n;h=!0===h;k&&F(k)&&(n=k);if(F(f)){k=f.match(dd);if(!k)throw cg("ctrlfmt",f);m=k[1];n=n||k[3];f=a.hasOwnProperty(m)?a[m]:Ec(g.$scope,m,!0)||(b?Ec(c,m,!0):void 0);Qa(f,m,!0)}if(h)return h=(J(f)?f[f.length-1]:f).prototype,l=Object.create(h||null),n&&e(g,n,l,m||f.name),R(function(){var a=d.invoke(f,l,g,m);a!==l&&(H(a)||z(a))&&(l=a,n&&e(g,n,l,m||f.name));return l},{instance:l,identifier:n});l=d.instantiate(f,g,m);n&&e(g,n,l,m||f.name);return l}}]}function hf(){this.$get=["$window",function(a){return B(a.document)}]}function jf(){this.$get=["$log",function(a){return function(b,d){a.error.apply(a,arguments)}}]}function cc(a){return H(a)?ia(a)?a.toISOString():cb(a):a}function of(){this.$get=function(){return function(a){if(!a)return"";var b=[];tc(a,function(a,c){null===a||w(a)||(J(a)?r(a,function(a){b.push(ja(c)+"="+ja(cc(a)))}):b.push(ja(c)+"="+ja(cc(a))))});return b.join("&")}}}function pf(){this.$get=function(){return function(a){function b(a,e,f){null===a||w(a)||(J(a)?r(a,function(a,c){b(a,e+"["+(H(a)?c:"")+"]")}):H(a)&&!ia(a)?tc(a,function(a,c){b(a,e+(f?"":"[")+c+(f?"":"]"))}):d.push(ja(e)+"="+ja(cc(a))))}if(!a)return"";var d=[];b(a,"",!0);return d.join("&")}}}function dc(a,b){if(F(a)){var d=a.replace(dg,"").trim();if(d){var c=b("Content-Type");(c=c&&0===c.indexOf(ed))||(c=(c=d.match(eg))&&fg[c[0]].test(d));c&&(a=xc(d))}}return a}function fd(a){var b=T(),d;F(a)?r(a.split("\n"),function(a){d=a.indexOf(":");var e=M(W(a.substr(0,d)));a=W(a.substr(d+1));e&&(b[e]=b[e]?b[e]+", "+a:a)}):H(a)&&r(a,function(a,d){var f=M(d),g=W(a);f&&(b[f]=b[f]?b[f]+", "+g:g)});return b}function gd(a){var b;return function(d){b||(b=fd(a));return d?(d=b[M(d)],void 0===d&&(d=null),d):b}}function hd(a,b,d,c){if(z(c))return c(a,b,d);r(c,function(c){a=c(a,b,d)});return a}function nf(){var a=this.defaults={transformResponse:[dc],transformRequest:[function(a){return H(a)&&"[object File]"!==ka.call(a)&&"[object Blob]"!==ka.call(a)&&"[object FormData]"!==ka.call(a)?cb(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ga(ec),put:ga(ec),patch:ga(ec)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},b=!1;this.useApplyAsync=function(a){return x(a)?(b=!!a,this):b};var d=!0;this.useLegacyPromiseExtensions=function(a){return x(a)?(d=!!a,this):d};var c=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(e,f,g,h,k,l){function m(b){function c(a){var b=R({},a);b.data=hd(a.data,a.headers,a.status,f.transformResponse);a=a.status;return 200<=a&&300>a?b:k.reject(b)}function e(a,b){var c,d={};r(a,function(a,e){z(a)?(c=a(b),null!=c&&(d[e]=c)):d[e]=a});return d}if(!H(b))throw O("$http")("badreq",b);if(!F(b.url))throw O("$http")("badreq",b.url);var f=R({method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse,paramSerializer:a.paramSerializer},b);f.headers=function(b){var c=a.headers,d=R({},b.headers),f,g,h,c=R({},c.common,c[M(b.method)]);a:for(f in c){g=M(f);for(h in d)if(M(h)===g)continue a;d[f]=c[f]}return e(d,ga(b))}(b);f.method=ub(f.method);f.paramSerializer=F(f.paramSerializer)?l.get(f.paramSerializer):f.paramSerializer;var g=[function(b){var d=b.headers,e=hd(b.data,gd(d),void 0,b.transformRequest);w(e)&&r(d,function(a,b){"content-type"===M(b)&&delete d[b]});w(b.withCredentials)&&!w(a.withCredentials)&&(b.withCredentials=a.withCredentials);return n(b,e).then(c,c)},void 0],h=k.when(f);for(r(V,function(a){(a.request||a.requestError)&&g.unshift(a.request,a.requestError);(a.response||a.responseError)&&g.push(a.response,a.responseError)});g.length;){b=g.shift();var m=g.shift(),h=h.then(b,m)}d?(h.success=function(a){Qa(a,"fn");h.then(function(b){a(b.data,b.status,b.headers,f)});return h},h.error=function(a){Qa(a,"fn");h.then(null,function(b){a(b.data,b.status,b.headers,f)});return h}):(h.success=id("success"),h.error=id("error"));return h}function n(c,d){function g(a){if(a){var c={};r(a,function(a,d){c[d]=function(c){function d(){a(c)}b?h.$applyAsync(d):h.$$phase?d():h.$apply(d)}});return c}}function l(a,c,d,e){function f(){n(c,a,d,e)}D&&(200<=a&&300>a?D.put(Q,[a,c,fd(d),e]):D.remove(Q));b?h.$applyAsync(f):(f(),h.$$phase||h.$apply())}function n(a,b,d,e){b=-1<=b?b:0;(200<=b&&300>b?L.resolve:L.reject)({data:a,status:b,headers:gd(d),config:c,statusText:e})}function y(a){n(a.data,a.status,ga(a.headers()),a.statusText)}function V(){var a=m.pendingRequests.indexOf(c);-1!==a&&m.pendingRequests.splice(a,1)}var L=k.defer(),C=L.promise,D,G,Aa=c.headers,Q=p(c.url,c.paramSerializer(c.params));m.pendingRequests.push(c);C.then(V,V);!c.cache&&!a.cache||!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(D=H(c.cache)?c.cache:H(a.cache)?a.cache:s);D&&(G=D.get(Q),x(G)?G&&z(G.then)?G.then(y,y):J(G)?n(G[1],G[0],ga(G[2]),G[3]):n(G,200,{},"OK"):D.put(Q,C));w(G)&&((G=jd(c.url)?f()[c.xsrfCookieName||a.xsrfCookieName]:void 0)&&(Aa[c.xsrfHeaderName||a.xsrfHeaderName]=G),e(c.method,Q,d,l,Aa,c.timeout,c.withCredentials,c.responseType,g(c.eventHandlers),g(c.uploadEventHandlers)));return C}function p(a,b){0<b.length&&(a+=(-1==a.indexOf("?")?"?":"&")+b);return a}var s=g("$http");a.paramSerializer=F(a.paramSerializer)?l.get(a.paramSerializer):a.paramSerializer;var V=[];r(c,function(a){V.unshift(F(a)?l.get(a):l.invoke(a))});m.pendingRequests=[];(function(a){r(arguments,function(a){m[a]=function(b,c){return m(R({},c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){r(arguments,function(a){m[a]=function(b,c,d){return m(R({},d||{},{method:a,url:b,data:c}))}})})("post","put","patch");m.defaults=a;return m}]}function rf(){this.$get=function(){return function(){return new E.XMLHttpRequest}}}function qf(){this.$get=["$browser","$window","$document","$xhrFactory",function(a,b,d,c){return gg(a,c,a.defer,b.angular.callbacks,d[0])}]}function gg(a,b,d,c,e){function f(a,b,d){var f=e.createElement("script"),m=null;f.type="text/javascript";f.src=a;f.async=!0;m=function(a){f.removeEventListener("load",m,!1);f.removeEventListener("error",m,!1);e.body.removeChild(f);f=null;var g=-1,s="unknown";a&&("load"!==a.type||c[b].called||(a={type:"error"}),s=a.type,g="error"===a.type?404:200);d&&d(g,s)};f.addEventListener("load",m,!1);f.addEventListener("error",m,!1);e.body.appendChild(f);return m}return function(e,h,k,l,m,n,p,s,V,I){function q(){u&&u();y&&y.abort()}function K(b,c,e,f,g){x(L)&&d.cancel(L);u=y=null;b(c,e,f,g);a.$$completeOutstandingRequest(A)}a.$$incOutstandingRequestCount();h=h||a.url();if("jsonp"==M(e)){var v="_"+(c.counter++).toString(36);c[v]=function(a){c[v].data=a;c[v].called=!0};var u=f(h.replace("JSON_CALLBACK","angular.callbacks."+v),v,function(a,b){K(l,a,c[v].data,"",b);c[v]=A})}else{var y=b(e,h);y.open(e,h,!0);r(m,function(a,b){x(a)&&y.setRequestHeader(b,a)});y.onload=function(){var a=y.statusText||"",b="response"in y?y.response:y.responseText,c=1223===y.status?204:y.status;0===c&&(c=b?200:"file"==qa(h).protocol?404:0);K(l,c,b,y.getAllResponseHeaders(),a)};e=function(){K(l,-1,null,null,"")};y.onerror=e;y.onabort=e;r(V,function(a,b){y.addEventListener(b,a)});r(I,function(a,b){y.upload.addEventListener(b,a)});p&&(y.withCredentials=!0);if(s)try{y.responseType=s}catch(P){if("json"!==s)throw P}y.send(w(k)?null:k)}if(0<n)var L=d(q,n);else n&&z(n.then)&&n.then(q)}}function lf(){var a="{{",b="}}";this.startSymbol=function(b){return b?(a=b,this):a};this.endSymbol=function(a){return a?(b=a,this):b};this.$get=["$parse","$exceptionHandler","$sce",function(d,c,e){function f(a){return"\\\\\\"+a}function g(c){return c.replace(n,a).replace(p,b)}function h(a,b,c,d){var e;return e=a.$watch(function(a){e();return d(a)},b,c)}function k(f,k,n,p){function r(a){try{var b=a;a=n?e.getTrusted(n,b):e.valueOf(b);var d;if(p&&!x(a))d=a;else if(null==a)d="";else{switch(typeof a){case"string":break;case"number":a=""+a;break;default:a=cb(a)}d=a}return d}catch(g){c(Ka.interr(f,g))}}if(!f.length||-1===f.indexOf(a)){var v;k||(k=g(f),v=da(k),v.exp=f,v.expressions=[],v.$$watchDelegate=h);return v}p=!!p;var u,y,P=0,L=[],C=[];v=f.length;for(var D=[],G=[];P<v;)if(-1!=(u=f.indexOf(a,P))&&-1!=(y=f.indexOf(b,u+l)))P!==u&&D.push(g(f.substring(P,u))),P=f.substring(u+l,y),L.push(P),C.push(d(P,r)),P=y+m,G.push(D.length),D.push("");else{P!==v&&D.push(g(f.substring(P)));break}n&&1<D.length&&Ka.throwNoconcat(f);if(!k||L.length){var Aa=function(a){for(var b=0,c=L.length;b<c;b++){if(p&&w(a[b]))return;D[G[b]]=a[b]}return D.join("")};return R(function(a){var b=0,d=L.length,e=Array(d);try{for(;b<d;b++)e[b]=C[b](a);return Aa(e)}catch(g){c(Ka.interr(f,g))}},{exp:f,expressions:L,$$watchDelegate:function(a,b){var c;return a.$watchGroup(C,function(d,e){var f=Aa(d);z(b)&&b.call(this,f,d!==e?c:f,a);c=f})}})}}var l=a.length,m=b.length,n=new RegExp(a.replace(/./g,f),"g"),p=new RegExp(b.replace(/./g,f),"g");k.startSymbol=function(){return a};k.endSymbol=function(){return b};return k}]}function mf(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(a,b,d,c,e){function f(f,k,l,m){function n(){p?f.apply(null,s):f(q)}var p=4<arguments.length,s=p?ta.call(arguments,4):[],r=b.setInterval,I=b.clearInterval,q=0,K=x(m)&&!m,v=(K?c:d).defer(),u=v.promise;l=x(l)?l:0;u.$$intervalId=r(function(){K?e.defer(n):a.$evalAsync(n);v.notify(q++);0<l&&q>=l&&(v.resolve(q),I(u.$$intervalId),delete g[u.$$intervalId]);K||a.$apply()},k);g[u.$$intervalId]=v;return u}var g={};f.cancel=function(a){return a&&a.$$intervalId in g?(g[a.$$intervalId].reject("canceled"),b.clearInterval(a.$$intervalId),delete g[a.$$intervalId],!0):!1};return f}]}function fc(a){a=a.split("/");for(var b=a.length;b--;)a[b]=qb(a[b]);return a.join("/")}function kd(a,b){var d=qa(a);b.$$protocol=d.protocol;b.$$host=d.hostname;b.$$port=aa(d.port)||hg[d.protocol]||null}function ld(a,b){var d="/"!==a.charAt(0);d&&(a="/"+a);var c=qa(a);b.$$path=decodeURIComponent(d&&"/"===c.pathname.charAt(0)?c.pathname.substring(1):c.pathname);b.$$search=Ac(c.search);b.$$hash=decodeURIComponent(c.hash);b.$$path&&"/"!=b.$$path.charAt(0)&&(b.$$path="/"+b.$$path)}function la(a,b){if(0===b.lastIndexOf(a,0))return b.substr(a.length)}function Ja(a){var b=a.indexOf("#");return-1==b?a:a.substr(0,b)}function jb(a){return a.replace(/(#.+)|#$/,"$1")}function gc(a,b,d){this.$$html5=!0;d=d||"";kd(a,this);this.$$parse=function(a){var d=la(b,a);if(!F(d))throw Gb("ipthprfx",a,b);ld(d,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=Tb(this.$$search),d=this.$$hash?"#"+qb(this.$$hash):"";this.$$url=fc(this.$$path)+(a?"?"+a:"")+d;this.$$absUrl=b+this.$$url.substr(1)};this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;x(f=la(a,c))?(g=f,g=x(f=la(d,f))?b+(la("/",f)||f):a+g):x(f=la(b,c))?g=b+f:b==c+"/"&&(g=b);g&&this.$$parse(g);return!!g}}function hc(a,b,d){kd(a,this);this.$$parse=function(c){var e=la(a,c)||la(b,c),f;w(e)||"#"!==e.charAt(0)?this.$$html5?f=e:(f="",w(e)&&(a=c,this.replace())):(f=la(d,e),w(f)&&(f=e));ld(f,this);c=this.$$path;var e=a,g=/^\/[A-Z]:(\/.*)/;0===f.lastIndexOf(e,0)&&(f=f.replace(e,""));g.exec(f)||(c=(f=g.exec(c))?f[1]:c);this.$$path=c;this.$$compose()};this.$$compose=function(){var b=Tb(this.$$search),e=this.$$hash?"#"+qb(this.$$hash):"";this.$$url=fc(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=a+(this.$$url?d+this.$$url:"")};this.$$parseLinkUrl=function(b,d){return Ja(a)==Ja(b)?(this.$$parse(b),!0):!1}}function md(a,b,d){this.$$html5=!0;hc.apply(this,arguments);this.$$parseLinkUrl=function(c,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,g;a==Ja(c)?f=c:(g=la(b,c))?f=a+d+g:b===c+"/"&&(f=b);f&&this.$$parse(f);return!!f};this.$$compose=function(){var b=Tb(this.$$search),e=this.$$hash?"#"+qb(this.$$hash):"";this.$$url=fc(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=a+d+this.$$url}}function Hb(a){return function(){return this[a]}}function nd(a,b){return function(d){if(w(d))return this[a];this[a]=b(d);this.$$compose();return this}}function sf(){var a="",b={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(b){return x(b)?(a=b,this):a};this.html5Mode=function(a){return Ea(a)?(b.enabled=a,this):H(a)?(Ea(a.enabled)&&(b.enabled=a.enabled),Ea(a.requireBase)&&(b.requireBase=a.requireBase),Ea(a.rewriteLinks)&&(b.rewriteLinks=a.rewriteLinks),this):b};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(d,c,e,f,g){function h(a,b,d){var e=l.url(),f=l.$$state;try{c.url(a,b,d),l.$$state=c.state()}catch(g){throw l.url(e),l.$$state=f,g}}function k(a,b){d.$broadcast("$locationChangeSuccess",l.absUrl(),a,l.$$state,b)}var l,m;m=c.baseHref();var n=c.url(),p;if(b.enabled){if(!m&&b.requireBase)throw Gb("nobase");p=n.substring(0,n.indexOf("/",n.indexOf("//")+2))+(m||"/");m=e.history?gc:md}else p=Ja(n),m=hc;var s=p.substr(0,Ja(p).lastIndexOf("/")+1);l=new m(p,s,"#"+a);l.$$parseLinkUrl(n,n);l.$$state=c.state();var r=/^\s*(javascript|mailto):/i;f.on("click",function(a){if(b.rewriteLinks&&!a.ctrlKey&&!a.metaKey&&!a.shiftKey&&2!=a.which&&2!=a.button){for(var e=B(a.target);"a"!==ua(e[0]);)if(e[0]===f[0]||!(e=e.parent())[0])return;var h=e.prop("href"),k=e.attr("href")||e.attr("xlink:href");H(h)&&"[object SVGAnimatedString]"===h.toString()&&(h=qa(h.animVal).href);r.test(h)||!h||e.attr("target")||a.isDefaultPrevented()||!l.$$parseLinkUrl(h,k)||(a.preventDefault(),l.absUrl()!=c.url()&&(d.$apply(),g.angular["ff-684208-preventDefault"]=!0))}});jb(l.absUrl())!=jb(n)&&c.url(l.absUrl(),!0);var I=!0;c.onUrlChange(function(a,b){w(la(s,a))?g.location.href=a:(d.$evalAsync(function(){var c=l.absUrl(),e=l.$$state,f;a=jb(a);l.$$parse(a);l.$$state=b;f=d.$broadcast("$locationChangeStart",a,c,b,e).defaultPrevented;l.absUrl()===a&&(f?(l.$$parse(c),l.$$state=e,h(c,!1,e)):(I=!1,k(c,e)))}),d.$$phase||d.$digest())});d.$watch(function(){var a=jb(c.url()),b=jb(l.absUrl()),f=c.state(),g=l.$$replace,n=a!==b||l.$$html5&&e.history&&f!==l.$$state;if(I||n)I=!1,d.$evalAsync(function(){var b=l.absUrl(),c=d.$broadcast("$locationChangeStart",b,a,l.$$state,f).defaultPrevented;l.absUrl()===b&&(c?(l.$$parse(a),l.$$state=f):(n&&h(b,g,f===l.$$state?null:l.$$state),k(a,f)))});l.$$replace=!1});return l}]}function tf(){var a=!0,b=this;this.debugEnabled=function(b){return x(b)?(a=b,this):a};this.$get=["$window",function(d){function c(a){a instanceof Error&&(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=d.console||{},e=b[a]||b.log||A;a=!1;try{a=!!e.apply}catch(k){}return a?function(){var a=[];r(arguments,function(b){a.push(c(b))});return e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){a&&c.apply(b,arguments)}}()}}]}function Ua(a,b){if("__defineGetter__"===a||"__defineSetter__"===a||"__lookupGetter__"===a||"__lookupSetter__"===a||"__proto__"===a)throw ca("isecfld",b);return a}function ig(a){return a+""}function ra(a,b){if(a){if(a.constructor===a)throw ca("isecfn",b);if(a.window===a)throw ca("isecwindow",b);if(a.children&&(a.nodeName||a.prop&&a.attr&&a.find))throw ca("isecdom",b);if(a===Object)throw ca("isecobj",b)}return a}function od(a,b){if(a){if(a.constructor===a)throw ca("isecfn",b);if(a===jg||a===kg||a===lg)throw ca("isecff",b)}}function Ib(a,b){if(a&&(a===0..constructor||a===(!1).constructor||a==="".constructor||a==={}.constructor||a===[].constructor||a===Function.constructor))throw ca("isecaf",b)}function mg(a,b){return"undefined"!==typeof a?a:b}function pd(a,b){return"undefined"===typeof a?b:"undefined"===typeof b?a:a+b}function $(a,b){var d,c;switch(a.type){case t.Program:d=!0;r(a.body,function(a){$(a.expression,b);d=d&&a.expression.constant});a.constant=d;break;case t.Literal:a.constant=!0;a.toWatch=[];break;case t.UnaryExpression:$(a.argument,b);a.constant=a.argument.constant;a.toWatch=a.argument.toWatch;break;case t.BinaryExpression:$(a.left,b);$(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.left.toWatch.concat(a.right.toWatch);break;case t.LogicalExpression:$(a.left,b);$(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=a.constant?[]:[a];break;case t.ConditionalExpression:$(a.test,b);$(a.alternate,b);$(a.consequent,b);a.constant=a.test.constant&&a.alternate.constant&&a.consequent.constant;a.toWatch=a.constant?[]:[a];break;case t.Identifier:a.constant=!1;a.toWatch=[a];break;case t.MemberExpression:$(a.object,b);a.computed&&$(a.property,b);a.constant=a.object.constant&&(!a.computed||a.property.constant);a.toWatch=[a];break;case t.CallExpression:d=a.filter?!b(a.callee.name).$stateful:!1;c=[];r(a.arguments,function(a){$(a,b);d=d&&a.constant;a.constant||c.push.apply(c,a.toWatch)});a.constant=d;a.toWatch=a.filter&&!b(a.callee.name).$stateful?c:[a];break;case t.AssignmentExpression:$(a.left,b);$(a.right,b);a.constant=a.left.constant&&a.right.constant;a.toWatch=[a];break;case t.ArrayExpression:d=!0;c=[];r(a.elements,function(a){$(a,b);d=d&&a.constant;a.constant||c.push.apply(c,a.toWatch)});a.constant=d;a.toWatch=c;break;case t.ObjectExpression:d=!0;c=[];r(a.properties,function(a){$(a.value,b);d=d&&a.value.constant&&!a.computed;a.value.constant||c.push.apply(c,a.value.toWatch)});a.constant=d;a.toWatch=c;break;case t.ThisExpression:a.constant=!1;a.toWatch=[];break;case t.LocalsExpression:a.constant=!1,a.toWatch=[]}}function qd(a){if(1==a.length){a=a[0].expression;var b=a.toWatch;return 1!==b.length?b:b[0]!==a?b:void 0}}function rd(a){return a.type===t.Identifier||a.type===t.MemberExpression}function sd(a){if(1===a.body.length&&rd(a.body[0].expression))return{type:t.AssignmentExpression,left:a.body[0].expression,right:{type:t.NGValueParameter},operator:"="}}function td(a){return 0===a.body.length||1===a.body.length&&(a.body[0].expression.type===t.Literal||a.body[0].expression.type===t.ArrayExpression||a.body[0].expression.type===t.ObjectExpression)}function ud(a,b){this.astBuilder=a;this.$filter=b}function vd(a,b){this.astBuilder=a;this.$filter=b}function Jb(a){return"constructor"==a}function ic(a){return z(a.valueOf)?a.valueOf():ng.call(a)}function uf(){var a=T(),b=T(),d={true:!0,false:!1,null:null,undefined:void 0},c,e;this.addLiteral=function(a,b){d[a]=b};this.setIdentifierFns=function(a,b){c=a;e=b;return this};this.$get=["$filter",function(f){function g(c,d,e){var g,k,C;e=e||K;switch(typeof c){case"string":C=c=c.trim();var D=e?b:a;g=D[C];if(!g){":"===c.charAt(0)&&":"===c.charAt(1)&&(k=!0,c=c.substring(2));g=e?q:I;var G=new jc(g);g=new kc(G,f,g).parse(c);g.constant?g.$$watchDelegate=p:k?g.$$watchDelegate=g.literal?n:m:g.inputs&&(g.$$watchDelegate=l);e&&(g=h(g));D[C]=g}return s(g,d);case"function":return s(c,d);default:return s(A,d)}}function h(a){function b(c,d,e,f){var g=K;K=!0;try{return a(c,d,e,f)}finally{K=g}}if(!a)return a;b.$$watchDelegate=a.$$watchDelegate;b.assign=h(a.assign);b.constant=a.constant;b.literal=a.literal;for(var c=0;a.inputs&&c<a.inputs.length;++c)a.inputs[c]=h(a.inputs[c]);b.inputs=a.inputs;return b}function k(a,b){return null==a||null==b?a===b:"object"===typeof a&&(a=ic(a),"object"===typeof a)?!1:a===b||a!==a&&b!==b}function l(a,b,c,d,e){var f=d.inputs,g;if(1===f.length){var h=k,f=f[0];return a.$watch(function(a){var b=f(a);k(b,h)||(g=d(a,void 0,void 0,[b]),h=b&&ic(b));return g},b,c,e)}for(var l=[],n=[],m=0,p=f.length;m<p;m++)l[m]=k,n[m]=null;return a.$watch(function(a){for(var b=!1,c=0,e=f.length;c<e;c++){var h=f[c](a);if(b||(b=!k(h,l[c])))n[c]=h,l[c]=h&&ic(h)}b&&(g=d(a,void 0,void 0,n));return g},b,c,e)}function m(a,b,c,d){var e,f;return e=a.$watch(function(a){return d(a)},function(a,c,d){f=a;z(b)&&b.apply(this,arguments);x(a)&&d.$$postDigest(function(){x(f)&&e()})},c)}function n(a,b,c,d){function e(a){var b=!0;r(a,function(a){x(a)||(b=!1)});return b}var f,g;return f=a.$watch(function(a){return d(a)},function(a,c,d){g=a;z(b)&&b.call(this,a,c,d);e(a)&&d.$$postDigest(function(){e(g)&&f()})},c)}function p(a,b,c,d){var e;return e=a.$watch(function(a){e();return d(a)},b,c)}function s(a,b){if(!b)return a;var c=a.$$watchDelegate,d=!1,c=c!==n&&c!==m?function(c,e,f,g){f=d&&g?g[0]:a(c,e,f,g);return b(f,c,e)}:function(c,d,e,f){e=a(c,d,e,f);c=b(e,c,d);return x(e)?c:e};
1a.$$watchDelegate&&a.$$watchDelegate!==l?c.$$watchDelegate=a.$$watchDelegate:b.$stateful||(c.$$watchDelegate=l,d=!a.inputs,c.inputs=a.inputs?a.inputs:[a]);return c}var V=Fa().noUnsafeEval,I={csp:V,expensiveChecks:!1,literals:Z(d),isIdentifierStart:z(c)&&c,isIdentifierContinue:z(e)&&e},q={csp:V,expensiveChecks:!0,literals:Z(d),isIdentifierStart:z(c)&&c,isIdentifierContinue:z(e)&&e},K=!1;g.$$runningExpensiveChecks=function(){return K};return g}]}function wf(){this.$get=["$rootScope","$exceptionHandler",function(a,b){return wd(function(b){a.$evalAsync(b)},b)}]}function xf(){this.$get=["$browser","$exceptionHandler",function(a,b){return wd(function(b){a.defer(b)},b)}]}function wd(a,b){function d(){this.$$state={status:0}}function c(a,b){return function(c){b.call(a,c)}}function e(c){!c.processScheduled&&c.pending&&(c.processScheduled=!0,a(function(){var a,d,e;e=c.pending;c.processScheduled=!1;c.pending=void 0;for(var f=0,g=e.length;f<g;++f){d=e[f][0];a=e[f][c.status];try{z(a)?d.resolve(a(c.value)):1===c.status?d.resolve(c.value):d.reject(c.value)}catch(h){d.reject(h),b(h)}}}))}function f(){this.promise=new d}var g=O("$q",TypeError);R(d.prototype,{then:function(a,b,c){if(w(a)&&w(b)&&w(c))return this;var d=new f;
vendor: 18,540 bytes, line 1
1this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([d,a,b,c]);0<this.$$state.status&&e(this.$$state);return d.promise},catch:function(a){return this.then(null,a)},finally:function(a,b){return this.then(function(b){return k(b,!0,a)},function(b){return k(b,!1,a)},b)}});R(f.prototype,{resolve:function(a){this.promise.$$state.status||(a===this.promise?this.$$reject(g("qcycle",a)):this.$$resolve(a))},$$resolve:function(a){function d(a){k||(k=!0,h.$$resolve(a))}function f(a){k||(k=!0,h.$$reject(a))}var g,h=this,k=!1;try{if(H(a)||z(a))g=a&&a.then;z(g)?(this.promise.$$state.status=-1,g.call(a,d,f,c(this,this.notify))):(this.promise.$$state.value=a,this.promise.$$state.status=1,e(this.promise.$$state))}catch(l){f(l),b(l)}},reject:function(a){this.promise.$$state.status||this.$$reject(a)},$$reject:function(a){this.promise.$$state.value=a;this.promise.$$state.status=2;e(this.promise.$$state)},notify:function(c){var d=this.promise.$$state.pending;0>=this.promise.$$state.status&&d&&d.length&&a(function(){for(var a,e,f=0,g=d.length;f<g;f++){e=d[f][0];a=d[f][3];try{e.notify(z(a)?a(c):c)}catch(h){b(h)}}})}});var h=function(a,b){var c=new f;b?c.resolve(a):c.reject(a);return c.promise},k=function(a,b,c){var d=null;try{z(c)&&(d=c())}catch(e){return h(e,!1)}return d&&z(d.then)?d.then(function(){return h(a,b)},function(a){return h(a,!1)}):h(a,b)},l=function(a,b,c,d){var e=new f;e.resolve(a);return e.promise.then(b,c,d)},m=function(a){if(!z(a))throw g("norslvr",a);var b=new f;a(function(a){b.resolve(a)},function(a){b.reject(a)});return b.promise};m.prototype=d.prototype;m.defer=function(){var a=new f;a.resolve=c(a,a.resolve);a.reject=c(a,a.reject);a.notify=c(a,a.notify);return a};m.reject=function(a){var b=new f;b.reject(a);return b.promise};m.when=l;m.resolve=l;m.all=function(a){var b=new f,c=0,d=J(a)?[]:{};r(a,function(a,e){c++;l(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})});0===c&&b.resolve(d);return b.promise};return m}function Gf(){this.$get=["$window","$timeout",function(a,b){var d=a.requestAnimationFrame||a.webkitRequestAnimationFrame,c=a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.webkitCancelRequestAnimationFrame,e=!!d,f=e?function(a){var b=d(a);return function(){c(b)}}:function(a){var c=b(a,16.66,!1);return function(){b.cancel(c)}};f.supported=e;return f}]}function vf(){function a(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++pb;this.$$ChildScope=null}b.prototype=a;return b}var b=10,d=O("$rootScope"),c=null,e=null;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$exceptionHandler","$parse","$browser",function(f,g,h){function k(a){a.currentScope.$$destroyed=!0}function l(a){9===Ba&&(a.$$childHead&&l(a.$$childHead),a.$$nextSibling&&l(a.$$nextSibling));a.$parent=a.$$nextSibling=a.$$prevSibling=a.$$childHead=a.$$childTail=a.$root=a.$$watchers=null}function m(){this.$id=++pb;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function n(a){if(K.$$phase)throw d("inprog",K.$$phase);K.$$phase=a}function p(a,b){do{a.$$watchersCount+=b}while(a=a.$parent)}function s(a,b,c){do{a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c]}while(a=a.$parent)}function t(){}function I(){for(;y.length;)try{y.shift()()}catch(a){f(a)}e=null}function q(){null===e&&(e=h.defer(function(){K.$apply(I)}))}m.prototype={constructor:m,$new:function(b,c){var d;c=c||this;b?(d=new m,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=a(this)),d=new this.$$ChildScope);d.$parent=c;d.$$prevSibling=c.$$childTail;c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d;(b||c!=this)&&d.$on("$destroy",k);return d},$watch:function(a,b,d,e){var f=g(a);if(f.$$watchDelegate)return f.$$watchDelegate(this,b,d,f,a);var h=this,k=h.$$watchers,l={fn:b,last:t,get:f,exp:e||a,eq:!!d};c=null;z(b)||(l.fn=A);k||(k=h.$$watchers=[]);k.unshift(l);p(this,1);return function(){0<=$a(k,l)&&p(h,-1);c=null}},$watchGroup:function(a,b){function c(){h=!1;k?(k=!1,b(e,e,g)):b(e,d,g)}var d=Array(a.length),e=Array(a.length),f=[],g=this,h=!1,k=!0;if(!a.length){var l=!0;g.$evalAsync(function(){l&&b(e,e,g)});return function(){l=!1}}if(1===a.length)return this.$watch(a[0],function(a,c,f){e[0]=a;d[0]=c;b(e,a===c?e:d,f)});r(a,function(a,b){var k=g.$watch(a,function(a,f){e[b]=a;d[b]=f;h||(h=!0,g.$evalAsync(c))});f.push(k)});return function(){for(;f.length;)f.shift()()}},$watchCollection:function(a,b){function c(a){e=a;var b,d,g,h;if(!w(e)){if(H(e))if(oa(e))for(f!==n&&(f=n,q=f.length=0,l++),a=e.length,q!==a&&(l++,f.length=q=a),b=0;b<a;b++)h=f[b],g=e[b],d=h!==h&&g!==g,d||h===g||(l++,f[b]=g);else{f!==p&&(f=p={},q=0,l++);a=0;for(b in e)sa.call(e,b)&&(a++,g=e[b],h=f[b],b in f?(d=h!==h&&g!==g,d||h===g||(l++,f[b]=g)):(q++,f[b]=g,l++));if(q>a)for(b in l++,f)sa.call(e,b)||(q--,delete f[b])}else f!==e&&(f=e,l++);return l}}c.$stateful=!0;var d=this,e,f,h,k=1<b.length,l=0,m=g(a,c),n=[],p={},s=!0,q=0;return this.$watch(m,function(){s?(s=!1,b(e,e,d)):b(e,h,d);if(k)if(H(e))if(oa(e)){h=Array(e.length);for(var a=0;a<e.length;a++)h[a]=e[a]}else for(a in h={},e)sa.call(e,a)&&(h[a]=e[a]);else h=e})},$digest:function(){var a,g,k,l,m,p,s,q,r=b,y,x=[],w,A;n("$digest");h.$$checkUrlChange();this===K&&null!==e&&(h.defer.cancel(e),I());c=null;do{q=!1;y=this;for(p=0;p<v.length;p++){try{A=v[p],A.scope.$eval(A.expression,A.locals)}catch(E){f(E)}c=null}v.length=0;a:do{if(p=y.$$watchers)for(s=p.length;s--;)try{if(a=p[s])if(m=a.get,(g=m(y))!==(k=a.last)&&!(a.eq?na(g,k):"number"===typeof g&&"number"===typeof k&&isNaN(g)&&isNaN(k)))q=!0,c=a,a.last=a.eq?Z(g,null):g,l=a.fn,l(g,k===t?g:k,y),5>r&&(w=4-r,x[w]||(x[w]=[]),x[w].push({msg:z(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,newVal:g,oldVal:k}));else if(a===c){q=!1;break a}}catch(B){f(B)}if(!(p=y.$$watchersCount&&y.$$childHead||y!==this&&y.$$nextSibling))for(;y!==this&&!(p=y.$$nextSibling);)y=y.$parent}while(y=p);if((q||v.length)&&!r--)throw K.$$phase=null,d("infdig",b,x)}while(q||v.length);for(K.$$phase=null;P<u.length;)try{u[P++]()}catch(F){f(F)}u.length=P=0},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===K&&h.$$applicationDestroyed();p(this,-this.$$watchersCount);for(var b in this.$$listenerCount)s(this,this.$$listenerCount[b],b);a&&a.$$childHead==this&&(a.$$childHead=this.$$nextSibling);a&&a.$$childTail==this&&(a.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=A;this.$on=this.$watch=this.$watchGroup=function(){return A};this.$$listeners={};this.$$nextSibling=null;l(this)}},$eval:function(a,b){return g(a)(this,b)},$evalAsync:function(a,b){K.$$phase||v.length||h.defer(function(){v.length&&K.$digest()});v.push({scope:this,expression:g(a),locals:b})},$$postDigest:function(a){u.push(a)},$apply:function(a){try{n("$apply");try{return this.$eval(a)}finally{K.$$phase=null}}catch(b){f(b)}finally{try{K.$digest()}catch(c){throw f(c),c}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&y.push(b);a=g(a);q()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do{d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++}while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&(c[d]=null,s(e,1,a))}},$emit:function(a,b){var c=[],d,e=this,g=!1,h={name:a,targetScope:e,stopPropagation:function(){g=!0},preventDefault:function(){h.defaultPrevented=!0},defaultPrevented:!1},k=ab([h],arguments,1),l,m;do{d=e.$$listeners[a]||c;h.currentScope=e;l=0;for(m=d.length;l<m;l++)if(d[l])try{d[l].apply(null,k)}catch(n){f(n)}else d.splice(l,1),l--,m--;if(g)return h.currentScope=null,h;e=e.$parent}while(e);h.currentScope=null;return h},$broadcast:function(a,b){var c=this,d=this,e={name:a,targetScope:this,preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[a])return e;for(var g=ab([e],arguments,1),h,k;c=d;){e.currentScope=c;d=c.$$listeners[a]||[];h=0;for(k=d.length;h<k;h++)if(d[h])try{d[h].apply(null,g)}catch(l){f(l)}else d.splice(h,1),h--,k--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}e.currentScope=null;return e}};var K=new m,v=K.$$asyncQueue=[],u=K.$$postDigestQueue=[],y=K.$$applyAsyncQueue=[],P=0;return K}]}function oe(){var a=/^\s*(https?|ftp|mailto|tel|file):/,b=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(b){return x(b)?(a=b,this):a};this.imgSrcSanitizationWhitelist=function(a){return x(a)?(b=a,this):b};this.$get=function(){return function(d,c){var e=c?b:a,f;f=qa(d).href;return""===f||f.match(e)?d:"unsafe:"+f}}}function og(a){if("self"===a)return a;if(F(a)){if(-1<a.indexOf("***"))throw ya("iwcard",a);a=xd(a).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return new RegExp("^"+a+"$")}if(Xa(a))return new RegExp("^"+a.source+"$");throw ya("imatcher")}function yd(a){var b=[];x(a)&&r(a,function(a){b.push(og(a))});return b}function zf(){this.SCE_CONTEXTS=ma;var a=["self"],b=[];this.resourceUrlWhitelist=function(b){arguments.length&&(a=yd(b));return a};this.resourceUrlBlacklist=function(a){arguments.length&&(b=yd(a));return b};this.$get=["$injector",function(d){function c(a,b){return"self"===a?jd(b):!!a.exec(b.href)}function e(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var f=function(a){throw ya("unsafe")};d.has("$sanitize")&&(f=d.get("$sanitize"));var g=e(),h={};h[ma.HTML]=e(g);h[ma.CSS]=e(g);h[ma.URL]=e(g);h[ma.JS]=e(g);h[ma.RESOURCE_URL]=e(h[ma.URL]);return{trustAs:function(a,b){var c=h.hasOwnProperty(a)?h[a]:null;if(!c)throw ya("icontext",a,b);if(null===b||w(b)||""===b)return b;if("string"!==typeof b)throw ya("itype",a);return new c(b)},getTrusted:function(d,e){if(null===e||w(e)||""===e)return e;var g=h.hasOwnProperty(d)?h[d]:null;if(g&&e instanceof g)return e.$$unwrapTrustedValue();if(d===ma.RESOURCE_URL){var g=qa(e.toString()),n,p,s=!1;n=0;for(p=a.length;n<p;n++)if(c(a[n],g)){s=!0;break}if(s)for(n=0,p=b.length;n<p;n++)if(c(b[n],g)){s=!1;break}if(s)return e;throw ya("insecurl",e.toString())}if(d===ma.HTML)return f(e);throw ya("unsafe")},valueOf:function(a){return a instanceof g?a.$$unwrapTrustedValue():a}}}]}function yf(){var a=!0;this.enabled=function(b){arguments.length&&(a=!!b);return a};this.$get=["$parse","$sceDelegate",function(b,d){if(a&&8>Ba)throw ya("iequirks");var c=ga(ma);c.isEnabled=function(){return a};c.trustAs=d.trustAs;c.getTrusted=d.getTrusted;c.valueOf=d.valueOf;a||(c.trustAs=c.getTrusted=function(a,b){return b},c.valueOf=Ya);c.parseAs=function(a,d){var e=b(d);return e.literal&&e.constant?e:b(d,function(b){return c.getTrusted(a,b)})};var e=c.parseAs,f=c.getTrusted,g=c.trustAs;r(ma,function(a,b){var d=M(b);c[eb("parse_as_"+d)]=function(b){return e(a,b)};c[eb("get_trusted_"+d)]=function(b){return f(a,b)};c[eb("trust_as_"+d)]=function(b){return g(a,b)}});return c}]}function Af(){this.$get=["$window","$document",function(a,b){var d={},c=!(a.chrome&&a.chrome.app&&a.chrome.app.runtime)&&a.history&&a.history.pushState,e=aa((/android (\d+)/.exec(M((a.navigator||{}).userAgent))||[])[1]),f=/Boxee/i.test((a.navigator||{}).userAgent),g=b[0]||{},h,k=/^(Moz|webkit|ms)(?=[A-Z])/,l=g.body&&g.body.style,m=!1,n=!1;if(l){for(var p in l)if(m=k.exec(p)){h=m[0];h=h[0].toUpperCase()+h.substr(1);break}h||(h="WebkitOpacity"in l&&"webkit");m=!!("transition"in l||h+"Transition"in l);n=!!("animation"in l||h+"Animation"in l);!e||m&&n||(m=F(l.webkitTransition),n=F(l.webkitAnimation))}return{history:!(!c||4>e||f),hasEvent:function(a){if("input"===a&&11>=Ba)return!1;if(w(d[a])){var b=g.createElement("div");d[a]="on"+a in b}return d[a]},csp:Fa(),vendorPrefix:h,transitions:m,animations:n,android:e}}]}function Cf(){var a;this.httpOptions=function(b){return b?(a=b,this):a};this.$get=["$templateCache","$http","$q","$sce",function(b,d,c,e){function f(g,h){f.totalPendingRequests++;if(!F(g)||w(b.get(g)))g=e.getTrustedResourceUrl(g);var k=d.defaults&&d.defaults.transformResponse;J(k)?k=k.filter(function(a){return a!==dc}):k===dc&&(k=null);return d.get(g,R({cache:b,transformResponse:k},a))["finally"](function(){f.totalPendingRequests--}).then(function(a){b.put(g,a.data);return a.data},function(a){if(!h)throw pg("tpload",g,a.status,a.statusText);return c.reject(a)})}f.totalPendingRequests=0;return f}]}function Df(){this.$get=["$rootScope","$browser","$location",function(a,b,d){return{findBindings:function(a,b,d){a=a.getElementsByClassName("ng-binding");var g=[];r(a,function(a){var c=ea.element(a).data("$binding");c&&r(c,function(c){d?new RegExp("(^|\\s)"+xd(b)+"(\\s|\\||$)").test(c)&&g.push(a):-1!=c.indexOf(b)&&g.push(a)})});return g},findModels:function(a,b,d){for(var g=["ng-","data-ng-","ng\\:"],h=0;h<g.length;++h){var k=a.querySelectorAll("["+g[h]+"model"+(d?"=":"*=")+'"'+b+'"]');if(k.length)return k}},getLocation:function(){return d.url()},setLocation:function(b){b!==d.url()&&(d.url(b),a.$digest())},whenStable:function(a){b.notifyWhenNoOutstandingRequests(a)}}}]}function Ef(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(a,b,d,c,e){function f(f,k,l){z(f)||(l=k,k=f,f=A);var m=ta.call(arguments,3),n=x(l)&&!l,p=(n?c:d).defer(),s=p.promise,r;r=b.defer(function(){try{p.resolve(f.apply(null,m))}catch(b){p.reject(b),e(b)}finally{delete g[s.$$timeoutId]}n||a.$apply()},k);s.$$timeoutId=r;g[r]=p;return s}var g={};f.cancel=function(a){return a&&a.$$timeoutId in g?(g[a.$$timeoutId].reject("canceled"),delete g[a.$$timeoutId],b.defer.cancel(a.$$timeoutId)):!1};return f}]}function qa(a){Ba&&(Y.setAttribute("href",a),a=Y.href);Y.setAttribute("href",a);return{href:Y.href,protocol:Y.protocol?Y.protocol.replace(/:$/,""):"",host:Y.host,search:Y.search?Y.search.replace(/^\?/,""):"",hash:Y.hash?Y.hash.replace(/^#/,""):"",hostname:Y.hostname,port:Y.port,pathname:"/"===Y.pathname.charAt(0)?Y.pathname:"/"+Y.pathname}}function jd(a){a=F(a)?qa(a):a;return a.protocol===zd.protocol&&a.host===zd.host}function Ff(){this.$get=da(E)}function Ad(a){function b(a){try{return decodeURIComponent(a)}catch(b){return a}}var d=a[0]||{},c={},e="";return function(){var a,g,h,k,l;a=d.cookie||"";if(a!==e)for(e=a,a=e.split("; "),c={},h=0;h<a.length;h++)g=a[h],k=g.indexOf("="),0<k&&(l=b(g.substring(0,k)),w(c[l])&&(c[l]=b(g.substring(k+1))));return c}}function Jf(){this.$get=Ad}function Mc(a){function b(d,c){if(H(d)){var e={};r(d,function(a,c){e[c]=b(c,a)});return e}return a.factory(d+"Filter",c)}this.register=b;this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}];b("currency",Bd);b("date",Cd);b("filter",qg);b("json",rg);b("limitTo",sg);b("lowercase",tg);b("number",Dd);b("orderBy",Ed);b("uppercase",ug)}function qg(){return function(a,b,d){if(!oa(a)){if(null==a)return a;throw O("filter")("notarray",a)}var c;switch(lc(b)){case"function":break;case"boolean":case"null":case"number":case"string":c=!0;case"object":b=vg(b,d,c);break;default:return a}return Array.prototype.filter.call(a,b)}}function vg(a,b,d){var c=H(a)&&"$"in a;!0===b?b=na:z(b)||(b=function(a,b){if(w(a))return!1;if(null===a||null===b)return a===b;if(H(b)||H(a)&&!vc(a))return!1;a=M(""+a);b=M(""+b);return-1!==a.indexOf(b)});return function(e){return c&&!H(e)?La(e,a.$,b,!1):La(e,a,b,d)}}function La(a,b,d,c,e){var f=lc(a),g=lc(b);if("string"===g&&"!"===b.charAt(0))return!La(a,b.substring(1),d,c);if(J(a))return a.some(function(a){return La(a,b,d,c)});switch(f){case"object":var h;if(c){for(h in a)if("$"!==h.charAt(0)&&La(a[h],b,d,!0))return!0;return e?!1:La(a,b,d,!1)}if("object"===g){for(h in b)if(e=b[h],!z(e)&&!w(e)&&(f="$"===h,!La(f?a:a[h],e,d,f,f)))return!1;return!0}return d(a,b);case"function":return!1;default:return d(a,b)}}function lc(a){return null===a?"null":typeof a}function Bd(a){var b=a.NUMBER_FORMATS;return function(a,c,e){w(c)&&(c=b.CURRENCY_SYM);w(e)&&(e=b.PATTERNS[1].maxFrac);return null==a?a:Fd(a,b.PATTERNS[1],b.GROUP_SEP,b.DECIMAL_SEP,e).replace(/\u00A4/g,c)}}function Dd(a){var b=a.NUMBER_FORMATS;return function(a,c){return null==a?a:Fd(a,b.PATTERNS[0],b.GROUP_SEP,b.DECIMAL_SEP,c)}}function wg(a){var b=0,d,c,e,f,g;-1<(c=a.indexOf(Gd))&&(a=a.replace(Gd,""));0<(e=a.search(/e/i))?(0>c&&(c=e),c+=+a.slice(e+1),a=a.substring(0,e)):0>c&&(c=a.length);for(e=0;a.charAt(e)==mc;e++);if(e==(g=a.length))d=[0],c=1;else{for(g--;a.charAt(g)==mc;)g--;c-=e;d=[];for(f=0;e<=g;e++,f++)d[f]=+a.charAt(e)}c>Hd&&(d=d.splice(0,Hd-1),b=c-1,c=1);return{d:d,e:b,i:c}}function xg(a,b,d,c){var e=a.d,f=e.length-a.i;b=w(b)?Math.min(Math.max(d,f),c):+b;d=b+a.i;c=e[d];if(0<d){e.splice(Math.max(a.i,d));for(var g=d;g<e.length;g++)e[g]=0}else for(f=Math.max(0,f),a.i=1,e.length=Math.max(1,d=b+1),e[0]=0,g=1;g<d;g++)e[g]=0;if(5<=c)if(0>d-1){for(c=0;c>d;c--)e.unshift(0),a.i++;e.unshift(1);a.i++}else e[d-1]++;for(;f<Math.max(0,b);f++)e.push(0);if(b=e.reduceRight(function(a,b,c,d){b+=a;d[c]=b%10;return Math.floor(b/10)},0))e.unshift(b),a.i++}function Fd(a,b,d,c,e){if(!F(a)&&!S(a)||isNaN(a))return"";var f=!isFinite(a),g=!1,h=Math.abs(a)+"",k="";if(f)k="â";else{g=wg(h);xg(g,e,b.minFrac,b.maxFrac);k=g.d;h=g.i;e=g.e;f=[];for(g=k.reduce(function(a,b){return a&&!b},!0);0>h;)k.unshift(0),h++;0<h?f=k.splice(h,k.length):(f=k,k=[0]);h=[];for(k.length>=b.lgSize&&h.unshift(k.splice(-b.lgSize,k.length).join(""));k.length>b.gSize;)h.unshift(k.splice(-b.gSize,k.length).join(""));k.length&&h.unshift(k.join(""));k=h.join(d);f.length&&(k+=c+f.join(""));e&&(k+="e+"+e)}return 0>a&&!g?b.negPre+k+b.negSuf:b.posPre+k+b.posSuf}function Kb(a,b,d,c){var e="";if(0>a||c&&0>=a)c?a=-a+1:(a=-a,e="-");for(a=""+a;a.length<b;)a=mc+a;d&&(a=a.substr(a.length-b));return e+a}function X(a,b,d,c,e){d=d||0;return function(f){f=f["get"+a]();if(0<d||f>-d)f+=d;0===f&&-12==d&&(f=12);return Kb(f,b,c,e)}}function kb(a,b,d){return function(c,e){var f=c["get"+a](),g=ub((d?"STANDALONE":"")+(b?"SHORT"
1:"")+a);return e[g][f]}}function Id(a){var b=new Date(a,0,1).getDay();return new Date(a,0,(4>=b?5:12)-b)}function Jd(a){return function(b){var d=Id(b.getFullYear());b=+new Date(b.getFullYear(),b.getMonth(),b.getDate()+(4-b.getDay()))-+d;b=1+Math.round(b/6048e5);return Kb(b,a)}}function nc(a,b){return 0>=a.getFullYear()?b.ERAS[0]:b.ERAS[1]}function Cd(a){function b(a){var b;if(b=a.match(d)){a=new Date(0);var f=0,g=0,h=b[8]?a.setUTCFullYear:a.setFullYear,k=b[8]?a.setUTCHours:a.setHours;b[9]&&(f=aa(b[9]+b[10]),g=aa(b[9]+b[11]));h.call(a,aa(b[1]),aa(b[2])-1,aa(b[3]));f=aa(b[4]||0)-f;g=aa(b[5]||0)-g;h=aa(b[6]||0);b=Math.round(1e3*parseFloat("0."+(b[7]||0)));k.call(a,f,g,h,b)}return a}var d=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,d,f){var g="",h=[],k,l;d=d||"mediumDate";d=a.DATETIME_FORMATS[d]||d;F(c)&&(c=yg.test(c)?aa(c):b(c));S(c)&&(c=new Date(c));if(!ia(c)||!isFinite(c.getTime()))return c;for(;d;)(l=zg.exec(d))?(h=ab(h,l,1),d=h.pop()):(h.push(d),d=null);var m=c.getTimezoneOffset();f&&(m=yc(f,m),c=Sb(c,f,!0));r(h,function(b){k=Ag[b];g+=k?k(c,a.DATETIME_FORMATS,m):"''"===b?"'":b.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function rg(){return function(a,b){w(b)&&(b=2);return cb(a,b)}}function sg(){return function(a,b,d){b=Infinity===Math.abs(Number(b))?Number(b):aa(b);if(isNaN(b))return a;S(a)&&(a=a.toString());if(!oa(a))return a;d=!d||isNaN(d)?0:aa(d);d=0>d?Math.max(0,a.length+d):d;return 0<=b?oc(a,d,d+b):0===d?oc(a,b,a.length):oc(a,Math.max(0,d+b),d)}}function oc(a,b,d){return F(a)?a.slice(b,d):ta.call(a,b,d)}function Ed(a){function b(b){return b.map(function(b){var c=1,d=Ya;if(z(b))d=b;else if(F(b)){if("+"==b.charAt(0)||"-"==b.charAt(0))c="-"==b.charAt(0)?-1:1,b=b.substring(1);if(""!==b&&(d=a(b),d.constant))var e=d(),d=function(a){return a[e]}}return{get:d,descending:c}})}function d(a){switch(typeof a){case"number":case"boolean":case"string":return!0;default:return!1}}function c(a,b){var c=0,d=a.type,k=b.type;if(d===k){var k=a.value,l=b.value;"string"===d?(k=k.toLowerCase(),l=l.toLowerCase()):"object"===d&&(H(k)&&(k=a.index),H(l)&&(l=b.index));k!==l&&(c=k<l?-1:1)}else c=d<k?-1:1;return c}return function(a,f,g,h){if(null==a)return a;if(!oa(a))throw O("orderBy")("notarray",a);J(f)||(f=[f]);0===f.length&&(f=["+"]);var k=b(f),l=g?-1:1,m=z(h)?h:c;a=Array.prototype.map.call(a,function(a,b){return{value:a,tieBreaker:{value:b,type:"number",index:b},predicateValues:k.map(function(c){var e=c.get(a);c=typeof e;if(null===e)c="string",e="null";else if("object"===c)a:{if(z(e.valueOf)&&(e=e.valueOf(),d(e)))break a;vc(e)&&(e=e.toString(),d(e))}return{value:e,type:c,index:b}})}});a.sort(function(a,b){for(var c=0,d=k.length;c<d;c++){var e=m(a.predicateValues[c],b.predicateValues[c]);if(e)return e*k[c].descending*l}return m(a.tieBreaker,b.tieBreaker)*l});return a=a.map(function(a){return a.value})}}function Ma(a){z(a)&&(a={link:a});a.restrict=a.restrict||"AC";return da(a)}function Kd(a,b,d,c,e){var f=this,g=[];f.$error={};f.$$success={};f.$pending=void 0;f.$name=e(b.name||b.ngForm||"")(d);f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;f.$submitted=!1;f.$$parentForm=Lb;f.$rollbackViewValue=function(){r(g,function(a){a.$rollbackViewValue()})};f.$commitViewValue=function(){r(g,function(a){a.$commitViewValue()})};f.$addControl=function(a){Ra(a.$name,"input");g.push(a);a.$name&&(f[a.$name]=a);a.$$parentForm=f};f.$$renameControl=function(a,b){var c=a.$name;f[c]===a&&delete f[c];f[b]=a;a.$name=b};f.$removeControl=function(a){a.$name&&f[a.$name]===a&&delete f[a.$name];r(f.$pending,function(b,c){f.$setValidity(c,null,a)});r(f.$error,function(b,c){f.$setValidity(c,null,a)});r(f.$$success,function(b,c){f.$setValidity(c,null,a)});$a(g,a);a.$$parentForm=Lb};Ld({ctrl:this,$element:a,set:function(a,b,c){var d=a[b];d?-1===d.indexOf(c)&&d.push(c):a[b]=[c]},unset:function(a,b,c){var d=a[b];d&&($a(d,c),0===d.length&&delete a[b])},$animate:c});f.$setDirty=function(){c.removeClass(a,Va);c.addClass(a,Mb);f.$dirty=!0;f.$pristine=!1;f.$$parentForm.$setDirty()};f.$setPristine=function(){c.setClass(a,Va,Mb+" ng-submitted");f.$dirty=!1;f.$pristine=!0;f.$submitted=!1;r(g,function(a){a.$setPristine()})};f.$setUntouched=function(){r(g,function(a){a.$setUntouched()})};f.$setSubmitted=function(){c.addClass(a,"ng-submitted");
vendor: 19,610 bytes, line 1
1f.$submitted=!0;f.$$parentForm.$setSubmitted()}}function pc(a){a.$formatters.push(function(b){return a.$isEmpty(b)?b:b.toString()})}function lb(a,b,d,c,e,f){var g=M(b[0].type);if(!e.android){var h=!1;b.on("compositionstart",function(){h=!0});b.on("compositionend",function(){h=!1;l()})}var k,l=function(a){k&&(f.defer.cancel(k),k=null);if(!h){var e=b.val();a=a&&a.type;"password"===g||d.ngTrim&&"false"===d.ngTrim||(e=W(e));(c.$viewValue!==e||""===e&&c.$$hasNativeValidators)&&c.$setViewValue(e,a)}};if(e.hasEvent("input"))b.on("input",l);else{var m=function(a,b,c){k||(k=f.defer(function(){k=null;b&&b.value===c||l(a)}))};b.on("keydown",function(a){var b=a.keyCode;91===b||15<b&&19>b||37<=b&&40>=b||m(a,this,this.value)});if(e.hasEvent("paste"))b.on("paste cut",m)}b.on("change",l);if(Md[g]&&c.$$hasNativeValidators&&g===d.type)b.on("keydown wheel mousedown",function(a){if(!k){var b=this.validity,c=b.badInput,d=b.typeMismatch;k=f.defer(function(){k=null;b.badInput===c&&b.typeMismatch===d||l(a)})}});c.$render=function(){var a=c.$isEmpty(c.$viewValue)?"":c.$viewValue;b.val()!==a&&b.val(a)}}function Nb(a,b){return function(d,c){var e,f;if(ia(d))return d;if(F(d)){'"'==d.charAt(0)&&'"'==d.charAt(d.length-1)&&(d=d.substring(1,d.length-1));if(Bg.test(d))return new Date(d);a.lastIndex=0;if(e=a.exec(d))return e.shift(),f=c?{yyyy:c.getFullYear(),MM:c.getMonth()+1,dd:c.getDate(),HH:c.getHours(),mm:c.getMinutes(),ss:c.getSeconds(),sss:c.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(e,function(a,c){c<b.length&&(f[b[c]]=+a)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1e3*f.sss||0)}return NaN}}function mb(a,b,d,c){return function(e,f,g,h,k,l,m){function n(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function p(a){return x(a)&&!ia(a)?d(a)||void 0:a}Nd(e,f,g,h);lb(e,f,g,h,k,l);var s=h&&h.$options&&h.$options.timezone,r;h.$$parserName=a;h.$parsers.push(function(a){if(h.$isEmpty(a))return null;if(b.test(a))return a=d(a,r),s&&(a=Sb(a,s)),a});h.$formatters.push(function(a){if(a&&!ia(a))throw nb("datefmt",a);if(n(a))return(r=a)&&s&&(r=Sb(r,s,!0)),m("date")(a,c,s);r=null;return""});if(x(g.min)||g.ngMin){var t;h.$validators.min=function(a){return!n(a)||w(t)||d(a)>=t};g.$observe("min",function(a){t=p(a);h.$validate()})}if(x(g.max)||g.ngMax){var q;h.$validators.max=function(a){return!n(a)||w(q)||d(a)<=q};g.$observe("max",function(a){q=p(a);h.$validate()})}}}function Nd(a,b,d,c){(c.$$hasNativeValidators=H(b[0].validity))&&c.$parsers.push(function(a){var c=b.prop("validity")||{};return c.badInput||c.typeMismatch?void 0:a})}function Od(a,b,d,c,e){if(x(c)){a=a(c);if(!a.constant)throw nb("constexpr",d,c);return a(b)}return e}function qc(a,b){a="ngClass"+a;return["$animate",function(d){function c(a,b){var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],m=0;m<b.length;m++)if(e==b[m])continue a;c.push(e)}return c}function e(a){var b=[];return J(a)?(r(a,function(a){b=b.concat(e(a))}),b):F(a)?a.split(" "):H(a)?(r(a,function(a,c){a&&(b=b.concat(c.split(" ")))}),b):a}return{restrict:"AC",link:function(f,g,h){function k(a){a=l(a,1);h.$addClass(a)}function l(a,b){var c=g.data("$classCounts")||T(),d=[];r(a,function(a){if(0<b||c[a])c[a]=(c[a]||0)+b,c[a]===+(0<b)&&d.push(a)});g.data("$classCounts",c);return d.join(" ")}function m(a,b){var e=c(b,a),f=c(a,b),e=l(e,1),f=l(f,-1);e&&e.length&&d.addClass(g,e);f&&f.length&&d.removeClass(g,f)}function n(a){if(!0===b||(f.$index&1)===b){var c=e(a||[]);if(!p)k(c);else if(!na(a,p)){var d=e(p);m(d,c)}}p=J(a)?a.map(function(a){return ga(a)}):ga(a)}var p;f.$watch(h[a],n,!0);h.$observe("class",function(b){n(f.$eval(h[a]))});"ngClass"!==a&&f.$watch("$index",function(c,d){var g=c&1;if(g!==(d&1)){var m=e(f.$eval(h[a]));g===b?k(m):(g=l(m,-1),h.$removeClass(g))}})}}}]}function Ld(a){function b(a,b){b&&!f[a]?(k.addClass(e,a),f[a]=!0):!b&&f[a]&&(k.removeClass(e,a),f[a]=!1)}function d(a,c){a=a?"-"+Cc(a,"-"):"";b(ob+a,!0===c);b(Pd+a,!1===c)}var c=a.ctrl,e=a.$element,f={},g=a.set,h=a.unset,k=a.$animate;f[Pd]=!(f[ob]=e.hasClass(ob));c.$setValidity=function(a,e,f){w(e)?(c.$pending||(c.$pending={}),g(c.$pending,a,f)):(c.$pending&&h(c.$pending,a,f),Qd(c.$pending)&&(c.$pending=void 0));Ea(e)?e?(h(c.$error,a,f),g(c.$$success,a,f)):(g(c.$error,a,f),h(c.$$success,a,f)):(h(c.$error,a,f),h(c.$$success,a,f));c.$pending?(b(Rd,!0),c.$valid=c.$invalid=void 0,d("",null)):(b(Rd,!1),c.$valid=Qd(c.$error),c.$invalid=!c.$valid,d("",c.$valid));e=c.$pending&&c.$pending[a]?void 0:c.$error[a]?!1:c.$$success[a]?!0:null;d(a,e);c.$$parentForm.$setValidity(a,e,c)}}function Qd(a){if(a)for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}var Cg=/^\/(.+)\/([a-z]*)$/,sa=Object.prototype.hasOwnProperty,M=function(a){return F(a)?a.toLowerCase():a},ub=function(a){return F(a)?a.toUpperCase():a},Ba,B,pa,ta=[].slice,bg=[].splice,Dg=[].push,ka=Object.prototype.toString,wc=Object.getPrototypeOf,za=O("ng"),ea=E.angular||(E.angular={}),Ub,pb=0;Ba=E.document.documentMode;A.$inject=[];Ya.$inject=[];var J=Array.isArray,be=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,W=function(a){return F(a)?a.trim():a},xd=function(a){return a.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Fa=function(){if(!x(Fa.rules)){var a=E.document.querySelector("[ng-csp]")||E.document.querySelector("[data-ng-csp]");if(a){var b=a.getAttribute("ng-csp")||a.getAttribute("data-ng-csp");Fa.rules={noUnsafeEval:!b||-1!==b.indexOf("no-unsafe-eval"),noInlineStyle:!b||-1!==b.indexOf("no-inline-style")}}else{a=Fa;try{new Function(""),b=!1}catch(d){b=!0}a.rules={noUnsafeEval:b,noInlineStyle:!1}}}return Fa.rules},rb=function(){if(x(rb.name_))return rb.name_;var a,b,d=Oa.length,c,e;for(b=0;b<d;++b)if(c=Oa[b],a=E.document.querySelector("["+c.replace(":","\\:")+"jq]")){e=a.getAttribute(c+"jq");break}return rb.name_=e},ee=/:/g,Oa=["ng-","data-ng-","ng:","x-ng-"],je=/[A-Z]/g,Dc=!1,Na=3,ne={full:"1.5.7",major:1,minor:5,dot:7,codeName:"hexagonal-circumvolution"};U.expando="ng339";var gb=U.cache={},Pf=1;U._data=function(a){return this.cache[a[this.expando]]||{}};var Kf=/([\:\-\_]+(.))/g,Lf=/^moz([A-Z])/,yb={mouseleave:"mouseout",mouseenter:"mouseover"},Wb=O("jqLite"),Of=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Vb=/<|&#?\w+;/,Mf=/<([\w:-]+)/,Nf=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ha={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,"",""]};ha.optgroup=ha.option;ha.tbody=ha.tfoot=ha.colgroup=ha.caption=ha.thead;ha.th=ha.td;var Uf=E.Node.prototype.contains||function(a){return!!(this.compareDocumentPosition(a)&16)},Pa=U.prototype={ready:function(a){function b(){d||(d=!0,a())}var d=!1;"complete"===E.document.readyState?E.setTimeout(b):(this.on("DOMContentLoaded",b),U(E).on("load",b))},toString:function(){var a=[];r(this,function(b){a.push(""+b)});return"["+a.join(", ")+"]"},eq:function(a){return 0<=a?B(this[a]):B(this[this.length+a])},length:0,push:Dg,sort:[].sort,splice:[].splice},Eb={};r("multiple selected checked disabled readOnly required open".split(" "),function(a){Eb[M(a)]=a});var Vc={};r("input select option textarea button form details".split(" "),function(a){Vc[a]=!0});var cd={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:Yb,removeData:fb,hasData:function(a){for(var b in gb[a.ng339])return!0;return!1},cleanData:function(a){for(var b=0,d=a.length;b<d;b++)fb(a[b])}},function(a,b){U[b]=a});r({data:Yb,inheritedData:Cb,scope:function(a){return B.data(a,"$scope")||Cb(a.parentNode||a,["$isolateScope","$scope"])},isolateScope:function(a){return B.data(a,"$isolateScope")||B.data(a,"$isolateScopeNoTemplate")},controller:Sc,injector:function(a){return Cb(a,"$injector")},removeAttr:function(a,b){a.removeAttribute(b)},hasClass:zb,css:function(a,b,d){b=eb(b);if(x(d))a.style[b]=d;else return a.style[b]},attr:function(a,b,d){var c=a.nodeType;if(c!==Na&&2!==c&&8!==c)if(c=M(b),Eb[c])if(x(d))d?(a[b]=!0,a.setAttribute(b,c)):(a[b]=!1,a.removeAttribute(c));else return a[b]||(a.attributes.getNamedItem(b)||A).specified?c:void 0;else if(x(d))a.setAttribute(b,d);else if(a.getAttribute)return a=a.getAttribute(b,2),null===a?void 0:a},prop:function(a,b,d){if(x(d))a[b]=d;else return a[b]},text:function(){function a(a,d){if(w(d)){var c=a.nodeType;return 1===c||c===Na?a.textContent:""}a.textContent=d}a.$dv="";return a}(),val:function(a,b){if(w(b)){if(a.multiple&&"select"===ua(a)){var d=[];r(a.options,function(a){a.selected&&d.push(a.value||a.text)});return 0===d.length?null:d}return a.value}a.value=b},html:function(a,b){if(w(b))return a.innerHTML;wb(a,!0);a.innerHTML=b},empty:Tc},function(a,b){U.prototype[b]=function(b,c){var e,f,g=this.length;if(a!==Tc&&w(2==a.length&&a!==zb&&a!==Sc?b:c)){if(H(b)){for(e=0;e<g;e++)if(a===Yb)a(this[e],b);else for(f in b)a(this[e],f,b[f]);return this}e=a.$dv;g=w(e)?Math.min(g,1):g;for(f=0;f<g;f++){var h=a(this[f],b,c);e=e?e+h:h}return e}for(e=0;e<g;e++)a(this[e],b,c);return this}});r({removeData:fb,on:function(a,b,d,c){if(x(c))throw Wb("onargs");if(Nc(a)){c=xb(a,!0);var e=c.events,f=c.handle;f||(f=c.handle=Rf(a,e));c=0<=b.indexOf(" ")?b.split(" "):[b];for(var g=c.length,h=function(b,c,g){var h=e[b];h||(h=e[b]=[],h.specialHandlerWrapper=c,"$destroy"===b||g||a.addEventListener(b,f,!1));h.push(d)};g--;)b=c[g],yb[b]?(h(yb[b],Tf),h(b,void 0,!0)):h(b)}},off:Rc,one:function(a,b,d){a=B(a);a.on(b,function e(){a.off(b,d);a.off(b,e)});a.on(b,d)},replaceWith:function(a,b){var d,c=a.parentNode;wb(a);r(new U(b),function(b){d?c.insertBefore(b,d.nextSibling):c.replaceChild(b,a);d=b})},children:function(a){var b=[];r(a.childNodes,function(a){1===a.nodeType&&b.push(a)});return b},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,b){var d=a.nodeType;if(1===d||11===d){b=new U(b);for(var d=0,c=b.length;d<c;d++)a.appendChild(b[d])}},prepend:function(a,b){if(1===a.nodeType){var d=a.firstChild;r(new U(b),function(b){a.insertBefore(b,d)})}},wrap:function(a,b){Pc(a,B(b).eq(0).clone()[0])},remove:Db,detach:function(a){Db(a,!0)},after:function(a,b){var d=a,c=a.parentNode;b=new U(b);for(var e=0,f=b.length;e<f;e++){var g=b[e];c.insertBefore(g,d.nextSibling);d=g}},addClass:Bb,removeClass:Ab,toggleClass:function(a,b,d){b&&r(b.split(" "),function(b){var e=d;w(e)&&(e=!zb(a,b));(e?Bb:Ab)(a,b)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){return a.nextElementSibling},find:function(a,b){return a.getElementsByTagName?a.getElementsByTagName(b):[]},clone:Xb,triggerHandler:function(a,b,d){var c,e,f=b.type||b,g=xb(a);if(g=(g=g&&g.events)&&g[f])c={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:A,type:f,target:a},b.type&&(c=R(c,b)),b=ga(g),e=d?[c].concat(d):[c],r(b,function(b){c.isImmediatePropagationStopped()||b.apply(a,e)})}},function(a,b){U.prototype[b]=function(b,c,e){for(var f,g=0,h=this.length;g<h;g++)w(f)?(f=a(this[g],b,c,e),x(f)&&(f=B(f))):Qc(f,a(this[g],b,c,e));return x(f)?f:this};U.prototype.bind=U.prototype.on;U.prototype.unbind=U.prototype.off});Sa.prototype={put:function(a,b){this[Ga(a,this.nextUid)]=b},get:function(a){return this[Ga(a,this.nextUid)]},remove:function(a){var b=this[a=Ga(a,this.nextUid)];delete this[a];return b}};var If=[function(){this.$get=[function(){return Sa}]}],Wf=/^([^\(]+?)=>/,Xf=/^[^\(]*\(\s*([^\)]*)\)/m,Eg=/,/,Fg=/^\s*(_?)(\S+?)\1\s*$/,Vf=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ha=O("$injector");db.$$annotate=function(a,b,d){var c;if("function"===typeof a){if(!(c=a.$inject)){c=[];if(a.length){if(b)throw F(d)&&d||(d=a.name||Yf(a)),Ha("strictdi",d);b=Wc(a);r(b[1].split(Eg),function(a){a.replace(Fg,function(a,b,d){c.push(d)})})}a.$inject=c}}else J(a)?(b=a.length-1,Qa(a[b],"fn"),c=a.slice(0,b)):Qa(a,"fn",!0);return c};var Sd=O("$animate"),af=function(){this.$get=A},bf=function(){var a=new Sa,b=[];this.$get=["$$AnimateRunner","$rootScope",function(d,c){function e(a,b,c){var d=!1;b&&(b=F(b)?b.split(" "):J(b)?b:[],r(b,function(b){b&&(d=!0,a[b]=c)}));return d}function f(){r(b,function(b){var c=a.get(b);if(c){var d=Zf(b.attr("class")),e="",f="";r(c,function(a,b){a!==!!d[b]&&(a?e+=(e.length?" ":"")+b:f+=(f.length?" ":"")+b)});r(b,function(a){e&&Bb(a,e);f&&Ab(a,f)});a.remove(b)}});b.length=0}return{enabled:A,on:A,off:A,pin:A,push:function(g,h,k,l){l&&l();k=k||{};k.from&&g.css(k.from);k.to&&g.css(k.to);if(k.addClass||k.removeClass)if(h=k.addClass,l=k.removeClass,k=a.get(g)||{},h=e(k,h,!0),l=e(k,l,!1),h||l)a.put(g,k),b.push(g),1===b.length&&c.$$postDigest(f);g=new d;g.complete();return g}}}]},Ze=["$provide",function(a){var b=this;this.$$registeredAnimations=Object.create(null);this.register=function(d,c){if(d&&"."!==d.charAt(0))throw Sd("notcsel",d);var e=d+"-animation";b.$$registeredAnimations[d.substr(1)]=e;a.factory(e,c)};this.classNameFilter=function(a){if(1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(this.$$classNameFilter.toString()))throw Sd("nongcls","ng-animate");return this.$$classNameFilter};this.$get=["$$animateQueue",function(a){function b(a,c,d){if(d){var h;a:{for(h=0;h<d.length;h++){var k=d[h];if(1===k.nodeType){h=k;break a}}h=void 0}!h||h.parentNode||h.previousElementSibling||(d=null)}d?d.after(a):c.prepend(a)}return{on:a.on,off:a.off,pin:a.pin,enabled:a.enabled,cancel:function(a){a.end&&a.end()},enter:function(e,f,g,h){f=f&&B(f);g=g&&B(g);f=f||g.parent();b(e,f,g);return a.push(e,"enter",Ia(h))},move:function(e,f,g,h){f=f&&B(f);g=g&&B(g);f=f||g.parent();b(e,f,g);return a.push(e,"move",Ia(h))},leave:function(b,c){return a.push(b,"leave",Ia(c),function(){b.remove()})},addClass:function(b,c,g){g=Ia(g);g.addClass=hb(g.addclass,c);return a.push(b,"addClass",g)},removeClass:function(b,c,g){g=Ia(g);g.removeClass=hb(g.removeClass,c);return a.push(b,"removeClass",g)},setClass:function(b,c,g,h){h=Ia(h);h.addClass=hb(h.addClass,c);h.removeClass=hb(h.removeClass,g);return a.push(b,"setClass",h)},animate:function(b,c,g,h,k){k=Ia(k);k.from=k.from?R(k.from,c):c;k.to=k.to?R(k.to,g):g;k.tempClasses=hb(k.tempClasses,h||"ng-inline-animate");return a.push(b,"animate",k)}}}]}],df=function(){this.$get=["$$rAF",function(a){function b(b){d.push(b);1<d.length||a(function(){for(var a=0;a<d.length;a++)d[a]();d=[]})}var d=[];return function(){var a=!1;b(function(){a=!0});return function(d){a?d():b(d)}}}]},cf=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(a,b,d,c,e){function f(a){this.setHost(a);var b=d();this._doneCallbacks=[];this._tick=function(a){var d=c[0];d&&d.hidden?e(a,0,!1):b(a)};this._state=0}f.chain=function(a,b){function c(){if(d===a.length)b(!0);else a[d](function(a){!1===a?b(!1):(d++,c())})}var d=0;c()};f.all=function(a,b){function c(f){e=e&&f;++d===a.length&&b(e)}var d=0,e=!0;r(a,function(a){a.done(c)})};f.prototype={setHost:function(a){this.host=a||{}},done:function(a){2===this._state?a():this._doneCallbacks.push(a)},progress:A,getPromise:function(){if(!this.promise){var b=this;this.promise=a(function(a,c){b.done(function(b){!1===b?c():a()})})}return this.promise},then:function(a,b){return this.getPromise().then(a,b)},catch:function(a){return this.getPromise()["catch"](a)},finally:function(a){return this.getPromise()["finally"](a)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(a){var b=this;0===b._state&&(b._state=1,b._tick(function(){b._resolve(a)}))},_resolve:function(a){2!==this._state&&(r(this._doneCallbacks,function(b){b(a)}),this._doneCallbacks.length=0,this._state=2)}};return f}]},$e=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,b,d){return function(b,e){function f(){a(function(){g.addClass&&(b.addClass(g.addClass),g.addClass=null);g.removeClass&&(b.removeClass(g.removeClass),g.removeClass=null);g.to&&(b.css(g.to),g.to=null);h||k.complete();h=!0});return k}var g=e||{};g.$$prepared||(g=Z(g));g.cleanupStyles&&(g.from=g.to=null);g.from&&(b.css(g.from),g.from=null);var h,k=new d;return{start:f,end:f}}}]},fa=O("$compile"),bc=new function(){};Fc.$inject=["$provide","$$sanitizeUriProvider"];Fb.prototype.isFirstChange=function(){return this.previousValue===bc};var Yc=/^((?:x|data)[\:\-_])/i,cg=O("$controller"),dd=/^(\S+)(\s+as\s+([\w$]+))?$/,kf=function(){this.$get=["$document",function(a){return function(b){b?!b.nodeType&&b instanceof B&&(b=b[0]):b=a[0].body;return b.offsetWidth+1}}]},ed="application/json",ec={"Content-Type":ed+";charset=utf-8"},eg=/^\[|^\{(?!\{)/,fg={"[":/]$/,"{":/}$/},dg=/^\)\]\}',?\n/,Gg=O("$http"),id=function(a){return function(){throw Gg("legacy",a)}},Ka=ea.$interpolateMinErr=O("$interpolate");Ka.throwNoconcat=function(a){throw Ka("noconcat",a)};Ka.interr=function(a,b){return Ka("interr",a,b.toString())};var Hg=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,hg={http:80,https:443,ftp:21},Gb=O("$location"),Ig={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Hb("$$absUrl"),url:function(a){if(w(a))return this.$$url;var b=Hg.exec(a);(b[1]||""===a)&&this.path(decodeURIComponent(b[1]));(b[2]||b[1]||""===a)&&this.search(b[3]||"");this.hash(b[5]||"");return this},protocol:Hb("$$protocol"),host:Hb("$$host"),port:Hb("$$port"),path:nd("$$path",function(a){a=null!==a?a.toString():"";return"/"==a.charAt(0)?a:"/"+a}),search:function(a,b){switch(arguments.length){case 0:return this.$$search;case 1:if(F(a)||S(a))a=a.toString(),this.$$search=Ac(a);else if(H(a))a=Z(a,{}),r(a,function(b,c){null==b&&delete a[c]}),this.$$search=a;else throw Gb("isrcharg");break;default:w(b)||null===b?delete this.$$search[a]:this.$$search[a]=b}this.$$compose();return this},hash:nd("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};r([md,hc,gc],function(a){a.prototype=Object.create(Ig);a.prototype.state=function(b){if(!arguments.length)return this.$$state;if(a!==gc||!this.$$html5)throw Gb("nostate");this.$$state=w(b)?null:b;return this}});var ca=O("$parse"),jg=Function.prototype.call,kg=Function.prototype.apply,lg=Function.prototype.bind,Ob=T();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){Ob[a]=!0});var Jg={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},jc=function(a){this.options=a};jc.prototype={constructor:jc,lex:function(a){this.text=a;this.index=0;for(this.tokens=[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,text:a}),this.index++;else if(this.isWhitespace(a))this.index++;else{var b=a+this.peek(),d=b+this.peek(2),c=Ob[b],e=Ob[d];Ob[a]||c||e?(a=e?d:c?b:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(a,b){return-1!==b.indexOf(a)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a&&"string"===typeof a}
vendor: 7,454 bytes, line 1
1,isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"Â "===a},isIdentifierStart:function(a){return this.options.isIdentifierStart?this.options.isIdentifierStart(a,this.codePointAt(a)):this.isValidIdentifierStart(a)},isValidIdentifierStart:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isIdentifierContinue:function(a){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(a,this.codePointAt(a)):this.isValidIdentifierContinue(a)},isValidIdentifierContinue:function(a,b){return this.isValidIdentifierStart(a,b)||this.isNumber(a)},codePointAt:function(a){return 1===a.length?a.charCodeAt(0):(a.charCodeAt(0)<<10)+a.charCodeAt(1)-56613888},peekMultichar:function(){var a=this.text.charAt(this.index),b=this.peek();if(!b)return a;var d=a.charCodeAt(0),c=b.charCodeAt(0);return 55296<=d&&56319>=d&&56320<=c&&57343>=c?a+b:a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,b,d){d=d||this.index;b=x(b)?"s "+b+"-"+this.index+" ["+this.text.substring(b,d)+"]":" "+d;throw ca("lexerr",a,b,this.text)},readNumber:function(){for(var a="",b=this.index;this.index<this.text.length;){var d=M(this.text.charAt(this.index));if("."==d||this.isNumber(d))a+=d;else{var c=this.peek();if("e"==d&&this.isExpOperator(c))a+=d;else if(this.isExpOperator(d)&&c&&this.isNumber(c)&&"e"==a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||c&&this.isNumber(c)||"e"!=a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:b,text:a,constant:!0,value:Number(a)})},readIdent:function(){var a=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var b=this.peekMultichar();if(!this.isIdentifierContinue(b))break;this.index+=b.length}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var b=this.index;this.index++;for(var d="",c=a,e=!1;this.index<this.text.length;){var f=this.text.charAt(this.index),c=c+f;if(e)"u"===f?(e=this.text.substring(this.index+1,this.index+5),e.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+e+"]"),this.index+=4,d+=String.fromCharCode(parseInt(e,16))):d+=Jg[f]||f,e=!1;else if("\\"===f)e=!0;else{if(f===a){this.index++;this.tokens.push({index:b,text:c,constant:!0,value:d});return}d+=f}this.index++}this.throwError("Unterminated quote",b)}};var t=function(a,b){this.lexer=a;this.options=b};t.Program="Program";t.ExpressionStatement="ExpressionStatement";t.AssignmentExpression="AssignmentExpression";t.ConditionalExpression="ConditionalExpression";t.LogicalExpression="LogicalExpression";t.BinaryExpression="BinaryExpression";t.UnaryExpression="UnaryExpression";t.CallExpression="CallExpression";t.MemberExpression="MemberExpression";t.Identifier="Identifier";t.Literal="Literal";t.ArrayExpression="ArrayExpression";t.Property="Property";t.ObjectExpression="ObjectExpression";t.ThisExpression="ThisExpression";t.LocalsExpression="LocalsExpression";t.NGValueParameter="NGValueParameter";t.prototype={ast:function(a){this.text=a;this.tokens=this.lexer.lex(a);a=this.program();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);return a},program:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:t.Program,body:a}},expressionStatement:function(){return{type:t.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var a=this.expression();this.expect("|");)a=this.filter(a);return a},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();this.expect("=")&&(a={type:t.AssignmentExpression,left:a,right:this.assignment(),operator:"="});return a},ternary:function(){var a=this.logicalOR(),b,d;return this.expect("?")&&(b=this.expression(),this.consume(":"))?(d=this.expression(),{type:t.ConditionalExpression,test:a,alternate:b,consequent:d}):a},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a={type:t.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:t.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a=this.relational(),b;b=this.expect("==","!=","===","!==");)a={type:t.BinaryExpression,operator:b.text,left:a,right:this.relational()};return a},relational:function(){for(var a=this.additive(),b;b=this.expect("<",">","<=",">=");)a={type:t.BinaryExpression,operator:b.text,left:a,right:this.additive()};return a},additive:function(){for(var a=this.multiplicative(),b;b=this.expect("+","-");)a={type:t.BinaryExpression,operator:b.text,left:a,right:this.multiplicative()};return a},multiplicative:function(){for(var a=this.unary(),b;b=this.expect("*","/","%");)a={type:t.BinaryExpression,operator:b.text,left:a,right:this.unary()};return a},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:t.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?a=Z(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?a={type:t.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",this.peek());for(var b;b=this.expect("(","[",".");)"("===b.text?(a={type:t.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===b.text?(a={type:t.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===b.text?a={type:t.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){a=[a];for(var b={type:t.CallExpression,callee:this.identifier(),arguments:a,filter:!0};this.expect(":");)a.push(this.expression());return b},parseArguments:function(){var a=[];if(")"!==this.peekToken().text){do{a.push(this.filterChain())}while(this.expect(","))}return a},identifier:function(){var a=this.consume();a.identifier||this.throwError("is not a valid identifier",a);return{type:t.Identifier,name:a.text}},constant:function(){return{type:t.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text){do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","))}this.consume("]");return{type:t.ArrayExpression,elements:a}},object:function(){var a=[],b;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;b={type:t.Property,kind:"init"};this.peek().constant?(b.key=this.constant(),b.computed=!1,this.consume(":"),b.value=this.expression()):this.peek().identifier?(b.key=this.identifier(),b.computed=!1,this.peek(":")?(this.consume(":"),b.value=this.expression()):b.value=b.key):this.peek("[")?(this.consume("["),b.key=this.expression(),this.consume("]"),b.computed=!0,this.consume(":"),b.value=this.expression()):this.throwError("invalid key",this.peek());a.push(b)}while(this.expect(","))}this.consume("}");return{type:t.ObjectExpression,properties:a}},throwError:function(a,b){throw ca("syntax",b.text,a,b.index+1,this.text,this.text.substring(b.index))}
vendor: 45,257 bytes, line 1
1,consume:function(a){if(0===this.tokens.length)throw ca("ueoe",this.text);var b=this.expect(a);b||this.throwError("is unexpected, expecting ["+a+"]",this.peek());return b},peekToken:function(){if(0===this.tokens.length)throw ca("ueoe",this.text);return this.tokens[0]},peek:function(a,b,d,c){return this.peekAhead(0,a,b,d,c)},peekAhead:function(a,b,d,c,e){if(this.tokens.length>a){a=this.tokens[a];var f=a.text;if(f===b||f===d||f===c||f===e||!(b||d||c||e))return a}return!1},expect:function(a,b,d,c){return(a=this.peek(a,b,d,c))?(this.tokens.shift(),a):!1},selfReferential:{this:{type:t.ThisExpression},$locals:{type:t.LocalsExpression}}};ud.prototype={compile:function(a,b){var d=this,c=this.astBuilder.ast(a);this.state={nextId:0,filters:{},expensiveChecks:b,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]};$(c,d.$filter);var e="",f;this.stage="assign";if(f=sd(c))this.state.computing="assign",e=this.nextId(),this.recurse(f,e),this.return_(e),e="fn.assign="+this.generateFunction("assign","s,v,l");f=qd(c.body);d.stage="inputs";r(f,function(a,b){var c="fn"+b;d.state[c]={vars:[],body:[],own:{}};d.state.computing=c;var e=d.nextId();d.recurse(a,e);d.return_(e);d.state.inputs.push(c);a.watchId=b});this.state.computing="fn";this.stage="main";this.recurse(c);e='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+e+this.watchFns()+"return fn;";e=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",e)(this.$filter,Ua,ra,od,ig,Ib,mg,pd,a);this.state=this.stage=void 0;e.literal=td(c);e.constant=c.constant;return e},USE:"use",STRICT:"strict",watchFns:function(){var a=[],b=this.state.inputs,d=this;r(b,function(b){a.push("var "+b+"="+d.generateFunction(b,"s"))});b.length&&a.push("fn.inputs=["+b.join(",")+"];");return a.join("")},generateFunction:function(a,b){return"function("+b+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],b=this;r(this.state.filters,function(d,c){a.push(d+"=$filter("+b.escape(c)+")")});return a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,b,d,c,e,f){var g,h,k=this,l,m,n;c=c||A;if(!f&&x(a.watchId))b=b||this.nextId(),this.if_("i",this.lazyAssign(b,this.computedMember("i",a.watchId)),this.lazyRecurse(a,b,d,c,e,!0));else switch(a.type){case t.Program:r(a.body,function(b,c){k.recurse(b.expression,void 0,void 0,function(a){h=a});c!==a.body.length-1?k.current().body.push(h,";"):k.return_(h)});break;case t.Literal:m=this.escape(a.value);this.assign(b,m);c(m);break;case t.UnaryExpression:this.recurse(a.argument,void 0,void 0,function(a){h=a});m=a.operator+"("+this.ifDefined(h,0)+")";this.assign(b,m);c(m);break;case t.BinaryExpression:this.recurse(a.left,void 0,void 0,function(a){g=a});this.recurse(a.right,void 0,void 0,function(a){h=a});m="+"===a.operator?this.plus(g,h):"-"===a.operator?this.ifDefined(g,0)+a.operator+this.ifDefined(h,0):"("+g+")"+a.operator+"("+h+")";this.assign(b,m);c(m);break;case t.LogicalExpression:b=b||this.nextId();k.recurse(a.left,b);k.if_("&&"===a.operator?b:k.not(b),k.lazyRecurse(a.right,b));c(b);break;case t.ConditionalExpression:b=b||this.nextId();k.recurse(a.test,b);k.if_(b,k.lazyRecurse(a.alternate,b),k.lazyRecurse(a.consequent,b));c(b);break;case t.Identifier:b=b||this.nextId();d&&(d.context="inputs"===k.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name);Ua(a.name);k.if_("inputs"===k.stage||k.not(k.getHasOwnProperty("l",a.name)),function(){k.if_("inputs"===k.stage||"s",function(){e&&1!==e&&k.if_(k.not(k.nonComputedMember("s",a.name)),k.lazyAssign(k.nonComputedMember("s",a.name),"{}"));k.assign(b,k.nonComputedMember("s",a.name))})},b&&k.lazyAssign(b,k.nonComputedMember("l",a.name)));(k.state.expensiveChecks||Jb(a.name))&&k.addEnsureSafeObject(b);c(b);break;case t.MemberExpression:g=d&&(d.context=this.nextId())||this.nextId();b=b||this.nextId();k.recurse(a.object,g,void 0,function(){k.if_(k.notNull(g),function(){e&&1!==e&&k.addEnsureSafeAssignContext(g);if(a.computed)h=k.nextId(),k.recurse(a.property,h),k.getStringValue(h),k.addEnsureSafeMemberName(h),e&&1!==e&&k.if_(k.not(k.computedMember(g,h)),k.lazyAssign(k.computedMember(g,h),"{}")),m=k.ensureSafeObject(k.computedMember(g,h)),k.assign(b,m),d&&(d.computed=!0,d.name=h);else{Ua(a.property.name);e&&1!==e&&k.if_(k.not(k.nonComputedMember(g,a.property.name)),k.lazyAssign(k.nonComputedMember(g,a.property.name),"{}"));m=k.nonComputedMember(g,a.property.name);if(k.state.expensiveChecks||Jb(a.property.name))m=k.ensureSafeObject(m);k.assign(b,m);d&&(d.computed=!1,d.name=a.property.name)}},function(){k.assign(b,"undefined")});c(b)},!!e);break;case t.CallExpression:b=b||this.nextId();a.filter?(h=k.filter(a.callee.name),l=[],r(a.arguments,function(a){var b=k.nextId();k.recurse(a,b);l.push(b)}),m=h+"("+l.join(",")+")",k.assign(b,m),c(b)):(h=k.nextId(),g={},l=[],k.recurse(a.callee,h,g,function(){k.if_(k.notNull(h),function(){k.addEnsureSafeFunction(h);r(a.arguments,function(a){k.recurse(a,k.nextId(),void 0,function(a){l.push(k.ensureSafeObject(a))})});g.name?(k.state.expensiveChecks||k.addEnsureSafeObject(g.context),m=k.member(g.context,g.name,g.computed)+"("+l.join(",")+")"):m=h+"("+l.join(",")+")";m=k.ensureSafeObject(m);k.assign(b,m)},function(){k.assign(b,"undefined")});c(b)}));break;case t.AssignmentExpression:h=this.nextId();g={};if(!rd(a.left))throw ca("lval");this.recurse(a.left,void 0,g,function(){k.if_(k.notNull(g.context),function(){k.recurse(a.right,h);k.addEnsureSafeObject(k.member(g.context,g.name,g.computed));k.addEnsureSafeAssignContext(g.context);m=k.member(g.context,g.name,g.computed)+a.operator+h;k.assign(b,m);c(b||m)})},1);break;case t.ArrayExpression:l=[];r(a.elements,function(a){k.recurse(a,k.nextId(),void 0,function(a){l.push(a)})});m="["+l.join(",")+"]";this.assign(b,m);c(m);break;case t.ObjectExpression:l=[];n=!1;r(a.properties,function(a){a.computed&&(n=!0)});n?(b=b||this.nextId(),this.assign(b,"{}"),r(a.properties,function(a){a.computed?(g=k.nextId(),k.recurse(a.key,g)):g=a.key.type===t.Identifier?a.key.name:""+a.key.value;h=k.nextId();k.recurse(a.value,h);k.assign(k.member(b,g,a.computed),h)})):(r(a.properties,function(b){k.recurse(b.value,a.constant?void 0:k.nextId(),void 0,function(a){l.push(k.escape(b.key.type===t.Identifier?b.key.name:""+b.key.value)+":"+a)})}),m="{"+l.join(",")+"}",this.assign(b,m));c(b||m);break;case t.ThisExpression:this.assign(b,"s");c("s");break;case t.LocalsExpression:this.assign(b,"l");c("l");break;case t.NGValueParameter:this.assign(b,"v"),c("v")}},getHasOwnProperty:function(a,b){var d=a+"."+b,c=this.current().own;c.hasOwnProperty(d)||(c[d]=this.nextId(!1,a+"&&("+this.escape(b)+" in "+a+")"));return c[d]},assign:function(a,b){if(a)return this.current().body.push(a,"=",b,";"),a},filter:function(a){this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0));return this.state.filters[a]},ifDefined:function(a,b){return"ifDefined("+a+","+this.escape(b)+")"},plus:function(a,b){return"plus("+a+","+b+")"},return_:function(a){this.current().body.push("return ",a,";")},if_:function(a,b,d){if(!0===a)b();else{var c=this.current().body;c.push("if(",a,"){");b();c.push("}");d&&(c.push("else{"),d(),c.push("}"))}},not:function(a){return"!("+a+")"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,b){var d=/[^$_a-zA-Z0-9]/g;return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(b)?a+"."+b:a+'["'+b.replace(d,this.stringEscapeFn)+'"]'},computedMember:function(a,b){return a+"["+b+"]"},member:function(a,b,d){return d?this.computedMember(a,b):this.nonComputedMember(a,b)},addEnsureSafeObject:function(a){this.current().body.push(this.ensureSafeObject(a),";")},addEnsureSafeMemberName:function(a){this.current().body.push(this.ensureSafeMemberName(a),";")},addEnsureSafeFunction:function(a){this.current().body.push(this.ensureSafeFunction(a),";")},addEnsureSafeAssignContext:function(a){this.current().body.push(this.ensureSafeAssignContext(a),";")},ensureSafeObject:function(a){return"ensureSafeObject("+a+",text)"},ensureSafeMemberName:function(a){return"ensureSafeMemberName("+a+",text)"},ensureSafeFunction:function(a){return"ensureSafeFunction("+a+",text)"},getStringValue:function(a){this.assign(a,"getStringValue("+a+")")},ensureSafeAssignContext:function(a){return"ensureSafeAssignContext("+a+",text)"},lazyRecurse:function(a,b,d,c,e,f){var g=this;return function(){g.recurse(a,b,d,c,e,f)}},lazyAssign:function(a,b){var d=this;return function(){d.assign(a,b)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(F(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(S(a))return a.toString();if(!0===a)return"true";if(!1===a)return"false";if(null===a)return"null";if("undefined"===typeof a)return"undefined";throw ca("esc")},nextId:function(a,b){var d="v"+this.state.nextId++;a||this.current().vars.push(d+(b?"="+b:""));return d},current:function(){return this.state[this.state.computing]}};vd.prototype={compile:function(a,b){var d=this,c=this.astBuilder.ast(a);this.expression=a;this.expensiveChecks=b;$(c,d.$filter);var e,f;if(e=sd(c))f=this.recurse(e);e=qd(c.body);var g;e&&(g=[],r(e,function(a,b){var c=d.recurse(a);a.input=c;g.push(c);a.watchId=b}));var h=[];r(c.body,function(a){h.push(d.recurse(a.expression))});e=0===c.body.length?A:1===c.body.length?h[0]:function(a,b){var c;r(h,function(d){c=d(a,b)});return c};f&&(e.assign=function(a,b,c){return f(a,c,b)});g&&(e.inputs=g);e.literal=td(c);e.constant=c.constant;return e},recurse:function(a,b,d){var c,e,f=this,g;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case t.Literal:return this.value(a.value,b);case t.UnaryExpression:return e=this.recurse(a.argument),this["unary"+a.operator](e,b);case t.BinaryExpression:return c=this.recurse(a.left),e=this.recurse(a.right),this["binary"+a.operator](c,e,b);case t.LogicalExpression:return c=this.recurse(a.left),e=this.recurse(a.right),this["binary"+a.operator](c,e,b);case t.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),b);case t.Identifier:return Ua(a.name,f.expression),f.identifier(a.name,f.expensiveChecks||Jb(a.name),b,d,f.expression);case t.MemberExpression:return c=this.recurse(a.object,!1,!!d),a.computed||(Ua(a.property.name,f.expression),e=a.property.name),a.computed&&(e=this.recurse(a.property)),a.computed?this.computedMember(c,e,b,d,f.expression):this.nonComputedMember(c,e,f.expensiveChecks,b,d,f.expression);case t.CallExpression:return g=[],r(a.arguments,function(a){g.push(f.recurse(a))}),a.filter&&(e=this.$filter(a.callee.name)),a.filter||(e=this.recurse(a.callee,!0)),a.filter?function(a,c,d,f){for(var n=[],p=0;p<g.length;++p)n.push(g[p](a,c,d,f));a=e.apply(void 0,n,f);return b?{context:void 0,name:void 0,value:a}:a}:function(a,c,d,m){var n=e(a,c,d,m),p;if(null!=n.value){ra(n.context,f.expression);od(n.value,f.expression);p=[];for(var s=0;s<g.length;++s)p.push(ra(g[s](a,c,d,m),f.expression));p=ra(n.value.apply(n.context,p),f.expression)}return b?{value:p}:p};case t.AssignmentExpression:return c=this.recurse(a.left,!0,1),e=this.recurse(a.right),function(a,d,g,m){var n=c(a,d,g,m);a=e(a,d,g,m);ra(n.value,f.expression);Ib(n.context);n.context[n.name]=a;return b?{value:a}:a};case t.ArrayExpression:return g=[],r(a.elements,function(a){g.push(f.recurse(a))}),function(a,c,d,e){for(var f=[],p=0;p<g.length;++p)f.push(g[p](a,c,d,e));return b?{value:f}:f};case t.ObjectExpression:return g=[],r(a.properties,function(a){a.computed?g.push({key:f.recurse(a.key),computed:!0,value:f.recurse(a.value)}):g.push({key:a.key.type===t.Identifier?a.key.name:""+a.key.value,computed:!1,value:f.recurse(a.value)})}),function(a,c,d,e){for(var f={},p=0;p<g.length;++p)g[p].computed?f[g[p].key(a,c,d,e)]=g[p].value(a,c,d,e):f[g[p].key]=g[p].value(a,c,d,e);return b?{value:f}:f};case t.ThisExpression:return function(a){return b?{value:a}:a};case t.LocalsExpression:return function(a,c){return b?{value:c}:c};case t.NGValueParameter:return function(a,c,d){return b?{value:d}:d}}},"unary+":function(a,b){return function(d,c,e,f){d=a(d,c,e,f);d=x(d)?+d:0;return b?{value:d}:d}},"unary-":function(a,b){return function(d,c,e,f){d=a(d,c,e,f);d=x(d)?-d:0;return b?{value:d}:d}},"unary!":function(a,b){return function(d,c,e,f){d=!a(d,c,e,f);return b?{value:d}:d}},"binary+":function(a,b,d){return function(c,e,f,g){var h=a(c,e,f,g);c=b(c,e,f,g);h=pd(h,c);return d?{value:h}:h}},"binary-":function(a,b,d){return function(c,e,f,g){var h=a(c,e,f,g);c=b(c,e,f,g);h=(x(h)?h:0)-(x(c)?c:0);return d?{value:h}:h}},"binary*":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)*b(c,e,f,g);return d?{value:c}:c}},"binary/":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)/b(c,e,f,g);return d?{value:c}:c}},"binary%":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)%b(c,e,f,g);return d?{value:c}:c}},"binary===":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)===b(c,e,f,g);return d?{value:c}:c}},"binary!==":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)!==b(c,e,f,g);return d?{value:c}:c}},"binary==":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)==b(c,e,f,g);return d?{value:c}:c}},"binary!=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)!=b(c,e,f,g);return d?{value:c}:c}},"binary<":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)<b(c,e,f,g);return d?{value:c}:c}},"binary>":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)>b(c,e,f,g);return d?{value:c}:c}},"binary<=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)<=b(c,e,f,g);return d?{value:c}:c}},"binary>=":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)>=b(c,e,f,g);return d?{value:c}:c}},"binary&&":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)&&b(c,e,f,g);return d?{value:c}:c}},"binary||":function(a,b,d){return function(c,e,f,g){c=a(c,e,f,g)||b(c,e,f,g);return d?{value:c}:c}},"ternary?:":function(a,b,d,c){return function(e,f,g,h){e=a(e,f,g,h)?b(e,f,g,h):d(e,f,g,h);return c?{value:e}:e}},value:function(a,b){return function(){return b?{context:void 0,name:void 0,value:a}:a}},identifier:function(a,b,d,c,e){return function(f,g,h,k){f=g&&a in g?g:f;c&&1!==c&&f&&!f[a]&&(f[a]={});g=f?f[a]:void 0;b&&ra(g,e);return d?{context:f,name:a,value:g}:g}},computedMember:function(a,b,d,c,e){return function(f,g,h,k){var l=a(f,g,h,k),m,n;null!=l&&(m=b(f,g,h,k),m+="",Ua(m,e),c&&1!==c&&(Ib(l),l&&!l[m]&&(l[m]={})),n=l[m],ra(n,e));return d?{context:l,name:m,value:n}:n}},nonComputedMember:function(a,b,d,c,e,f){return function(g,h,k,l){g=a(g,h,k,l);e&&1!==e&&(Ib(g),g&&!g[b]&&(g[b]={}));h=null!=g?g[b]:void 0;(d||Jb(b))&&ra(h,f);return c?{context:g,name:b,value:h}:h}},inputs:function(a,b){return function(d,c,e,f){return f?f[b]:a(d,c,e)}}};var kc=function(a,b,d){this.lexer=a;this.$filter=b;this.options=d;this.ast=new t(a,d);this.astCompiler=d.csp?new vd(this.ast,b):new ud(this.ast,b)};kc.prototype={constructor:kc,parse:function(a){return this.astCompiler.compile(a,this.options.expensiveChecks)}};var ng=Object.prototype.valueOf,ya=O("$sce"),ma={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},pg=O("$compile"),Y=E.document.createElement("a"),zd=qa(E.location.href);Ad.$inject=["$document"];Mc.$inject=["$provide"];var Hd=22,Gd=".",mc="0";Bd.$inject=["$locale"];Dd.$inject=["$locale"];var Ag={yyyy:X("FullYear",4,0,!1,!0),yy:X("FullYear",2,0,!0,!0),y:X("FullYear",1,0,!1,!0),MMMM:kb("Month"),MMM:kb("Month",!0),MM:X("Month",2,1),M:X("Month",1,1),LLLL:kb("Month",!1,!0),dd:X("Date",2),d:X("Date",1),HH:X("Hours",2),H:X("Hours",1),hh:X("Hours",2,-12),h:X("Hours",1,-12),mm:X("Minutes",2),m:X("Minutes",1),ss:X("Seconds",2),s:X("Seconds",1),sss:X("Milliseconds",3),EEEE:kb("Day"),EEE:kb("Day",!0),a:function(a,b){return 12>a.getHours()?b.AMPMS[0]:b.AMPMS[1]},Z:function(a,b,d){a=-1*d;return a=(0<=a?"+":"")+(Kb(Math[0<a?"floor":"ceil"](a/60),2)+Kb(Math.abs(a%60),2))},ww:Jd(2),w:Jd(1),G:nc,GG:nc,GGG:nc,GGGG:function(a,b){return 0>=a.getFullYear()?b.ERANAMES[0]:b.ERANAMES[1]}},zg=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,yg=/^\-?\d+$/;Cd.$inject=["$locale"];var tg=da(M),ug=da(ub);Ed.$inject=["$parse"];var pe=da({restrict:"E",compile:function(a,b){if(!b.href&&!b.xlinkHref)return function(a,b){if("a"===b[0].nodeName.toLowerCase()){var e="[object SVGAnimatedString]"===ka.call(b.prop("href"))?"xlink:href":"href";b.on("click",function(a){b.attr(e)||a.preventDefault()})}}}}),vb={};r(Eb,function(a,b){function d(a,d,e){a.$watch(e[c],function(a){e.$set(b,!!a)})}if("multiple"!=a){var c=xa("ng-"+b),e=d;"checked"===a&&(e=function(a,b,e){e.ngModel!==e[c]&&d(a,b,e)});vb[c]=function(){return{restrict:"A",priority:100,link:e}}}});r(cd,function(a,b){vb[b]=function(){return{priority:100,link:function(a,c,e){if("ngPattern"===b&&"/"==e.ngPattern.charAt(0)&&(c=e.ngPattern.match(Cg))){e.$set("ngPattern",new RegExp(c[1],c[2]));return}a.$watch(e[b],function(a){e.$set(b,a)})}}}});r(["src","srcset","href"],function(a){var b=xa("ng-"+a);vb[b]=function(){return{priority:99,link:function(d,c,e){var f=a,g=a;"href"===a&&"[object SVGAnimatedString]"===ka.call(c.prop("href"))&&(g="xlinkHref",e.$attr[g]="xlink:href",f=null);e.$observe(b,function(b){b?(e.$set(g,b),Ba&&f&&c.prop(f,e[g])):"href"===a&&e.$set(g,null)})}}}});var Lb={$addControl:A,$$renameControl:function(a,b){a.$name=b},$removeControl:A,$setValidity:A,$setDirty:A,$setPristine:A,$setSubmitted:A};Kd.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Td=function(a){return["$timeout","$parse",function(b,d){function c(a){return""===a?d('this[""]').assign:d(a).assign||A}return{name:"form",restrict:a?"EAC":"E",require:["form","^^?form"],controller:Kd,compile:function(d,f){d.addClass(Va).addClass(ob);var g=f.name?"name":a&&f.ngForm?"ngForm":!1;return{pre:function(a,d,e,f){var n=f[0];if(!("action"in e)){var p=function(b){a.$apply(function(){n.$commitViewValue();n.$setSubmitted()});b.preventDefault()};d[0].addEventListener("submit",p,!1);d.on("$destroy",function(){b(function(){d[0].removeEventListener("submit",p,!1)},0,!1)})}(f[1]||n.$$parentForm).$addControl(n);var s=g?c(n.$name):A;g&&(s(a,n),e.$observe(g,function(b){n.$name!==b&&(s(a,void 0),n.$$parentForm.$$renameControl(n,b),s=c(n.$name),s(a,n))}));d.on("$destroy",function(){n.$$parentForm.$removeControl(n);s(a,void 0);R(n,Lb)})}}}}}]},qe=Td(),De=Td(!0),Bg=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Kg=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Lg=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Mg=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ud=/^(\d{4,})-(\d{2})-(\d{2})$/,Vd=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,rc=/^(\d{4,})-W(\d\d)$/,Wd=/^(\d{4,})-(\d\d)$/,Xd=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Md=T();r(["date","datetime-local","month","time","week"],function(a){Md[a]=!0});var Yd={text:function(a,b,d,c,e,f){lb(a,b,d,c,e,f);pc(c)},date:mb("date",Ud,Nb(Ud,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":mb("datetimelocal",Vd,Nb(Vd,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:mb("time",Xd,Nb(Xd,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:mb("week",rc,function(a,b){if(ia(a))return a;if(F(a)){rc.lastIndex=0;var d=rc.exec(a);if(d){var c=+d[1],e=+d[2],f=d=0,g=0,h=0,k=Id(c),e=7*(e-1);b&&(d=b.getHours(),f=b.getMinutes(),g=b.getSeconds(),h=b.getMilliseconds());return new Date(c,0,k.getDate()+e,d,f,g,h)}}return NaN},"yyyy-Www"),month:mb("month",Wd,Nb(Wd,["yyyy","MM"]),"yyyy-MM"),number:function(a,b,d,c,e,f){Nd(a,b,d,c);lb(a,b,d,c,e,f);c.$$parserName="number";c.$parsers.push(function(a){if(c.$isEmpty(a))return null;if(Mg.test(a))return parseFloat(a)});c.$formatters.push(function(a){if(!c.$isEmpty(a)){if(!S(a))throw nb("numfmt",a);a=a.toString()}return a});if(x(d.min)||d.ngMin){var g;c.$validators.min=function(a){return c.$isEmpty(a)||w(g)||a>=g};d.$observe("min",function(a){x(a)&&!S(a)&&(a=parseFloat(a,10));g=S(a)&&!isNaN(a)?a:void 0;c.$validate()})}if(x(d.max)||d.ngMax){var h;c.$validators.max=function(a){return c.$isEmpty(a)||w(h)||a<=h};d.$observe("max",function(a){x(a)&&!S(a)&&(a=parseFloat(a,10));h=S(a)&&!isNaN(a)?a:void 0;c.$validate()})}},url:function(a,b,d,c,e,f){lb(a,b,d,c,e,f);pc(c);c.$$parserName="url";c.$validators.url=function(a,b){var d=a||b;return c.$isEmpty(d)||Kg.test(d)}},email:function(a,b,d,c,e,f){lb(a,b,d,c,e,f);pc(c);c.$$parserName="email";c.$validators.email=function(a,b){var d=a||b;return c.$isEmpty(d)||Lg.test(d)}},radio:function(a,b,d,c){w(d.name)&&b.attr("name",++pb);b.on("click",function(a){b[0].checked&&c.$setViewValue(d.value,a&&a.type)});c.$render=function(){b[0].checked=d.value==c.$viewValue};d.$observe("value",c.$render)},checkbox:function(a,b,d,c,e,f,g,h){var k=Od(h,a,"ngTrueValue",d.ngTrueValue,!0),l=Od(h,a,"ngFalseValue",d.ngFalseValue,!1);b.on("click",function(a){c.$setViewValue(b[0].checked,a&&a.type)});c.$render=function(){b[0].checked=c.$viewValue};c.$isEmpty=function(a){return!1===a};c.$formatters.push(function(a){return na(a,k)});c.$parsers.push(function(a){return a?k:l})},hidden:A,button:A,submit:A,reset:A,file:A},Gc=["$browser","$sniffer","$filter","$parse",function(a,b,d,c){return{restrict:"E",require:["?ngModel"],link:{pre:function(e,f,g,h){h[0]&&(Yd[M(g.type)]||Yd.text)(e,f,g,h[0],b,a,d,c)}}}}],Ng=/^(true|false|\d+)$/,Ve=function(){return{restrict:"A",priority:100,compile:function(a,b){return Ng.test(b.ngValue)?function(a,b,e){e.$set("value",a.$eval(e.ngValue))}:function(a,b,e){a.$watch(e.ngValue,function(a){e.$set("value",a)})}}}},ve=["$compile",function(a){return{restrict:"AC",compile:function(b){a.$$addBindingClass(b);return function(b,c,e){a.$$addBindingInfo(c,e.ngBind);c=c[0];b.$watch(e.ngBind,function(a){c.textContent=w(a)?"":a})}}}}],xe=["$interpolate","$compile",function(a,b){return{compile:function(d){b.$$addBindingClass(d);return function(c,d,f){c=a(d.attr(f.$attr.ngBindTemplate));b.$$addBindingInfo(d,c.expressions);d=d[0];f.$observe("ngBindTemplate",function(a){d.textContent=w(a)?"":a})}}}}],we=["$sce","$parse","$compile",function(a,b,d){return{restrict:"A",compile:function(c,e){var f=b(e.ngBindHtml),g=b(e.ngBindHtml,function(b){return a.valueOf(b)});d.$$addBindingClass(c);return function(b,c,e){d.$$addBindingInfo(c,e.ngBindHtml);b.$watch(g,function(){var d=f(b);c.html(a.getTrustedHtml(d)||"")})}}}}],Ue=da({restrict:"A",require:"ngModel",link:function(a,b,d,c){c.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),ye=qc("",!0),Ae=qc("Odd",0),ze=qc("Even",1),Be=Ma({compile:function(a,b){b.$set("ngCloak",void 0);a.removeClass("ng-cloak")}}),Ce=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Lc={},Og={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var b=xa("ng-"+a);Lc[b]=["$parse","$rootScope",function(d,c){return{restrict:"A",compile:function(e,f){var g=d(f[b],null,!0);return function(b,d){d.on(a,function(d){var e=function(){g(b,{$event:d})};Og[a]&&c.$$phase?b.$evalAsync(e):b.$apply(e)})}}}}]});var Fe=["$animate","$compile",function(a,b){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(d,c,e,f,g){var h,k,l;d.$watch(e.ngIf,function(d){d?k||g(function(d,f){k=f;d[d.length++]=b.$$createComment("end ngIf",e.ngIf);h={clone:d};a.enter(d,c.parent(),c)}):(l&&(l.remove(),l=null),k&&(k.$destroy(),k=null),h&&(l=tb(h.clone),a.leave(l).then(function(){l=null}),h=null))})}}}],Ge=["$templateRequest","$anchorScroll","$animate",function(a,b,d){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ea.noop,compile:function(c,e){var f=e.ngInclude||e.src,g=e.onload||"",h=e.autoscroll;return function(c,e,m,n,p){var s=0,r,t,q,w=function(){t&&(t.remove(),t=null);r&&(r.$destroy(),r=null);q&&(d.leave(q).then(function(){t=null}),t=q,q=null)};c.$watch(f,function(f){var m=function(){!x(h)||h&&!c.$eval(h)||b()},t=++s;f?(a(f,!0).then(function(a){if(!c.$$destroyed&&t===s){var b=c.$new();n.template=a;a=p(b,function(a){w();d.enter(a,null,e).then(m)});r=b;q=a;r.$emit("$includeContentLoaded",f);c.$eval(g)}},function(){c.$$destroyed||t!==s||(w(),c.$emit("$includeContentError",f))}),c.$emit("$includeContentRequested",f)):(w(),n.template=null)})}}}}],Xe=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(b,d,c,e){ka.call(d[0]).match(/SVG/)?(d.empty(),a(Oc(e.template,E.document).childNodes)(b,function(a){d.append(a)},{futureParentElement:d})):(d.html(e.template),a(d.contents())(b))}}}],He=Ma({priority:450,compile:function(){return{pre:function(a,b,d){a.$eval(d.ngInit)}}}}),Te=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,b,d,c){var e=b.attr(d.$attr.ngList)||", ",f="false"!==d.ngTrim,g=f?W(e):e;c.$parsers.push(function(a){if(!w(a)){var b=[];a&&r(a.split(g),function(a){a&&b.push(f?W(a):a)});return b}});c.$formatters.push(function(a){if(J(a))return a.join(e)});c.$isEmpty=function(a){return!a||!a.length}}}},ob="ng-valid",Pd="ng-invalid",Va="ng-pristine",Mb="ng-dirty",Rd="ng-pending",nb=O("ngModel"),Pg=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(a,b,d,c,e,f,g,h,k,l){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=void 0;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=void 0;this.$name=l(d.name||"",!1)(a);this.$$parentForm=Lb;var m=e(d.ngModel),n=m.assign,p=m,s=n,t=null,I,q=this;this.$$setOptions=function(a){if((q.$options=a)&&a.getterSetter){var b=e(d.ngModel+"()"),f=e(d.ngModel+"($$$p)");p=function(a){var c=m(a);z(c)&&(c=b(a));return c};s=function(a,b){z(m(a))?f(a,{$$$p:b}):n(a,b)}}else if(!m.assign)throw nb("nonassign",d.ngModel,va(c))};this.$render=A;this.$isEmpty=function(a){return w(a)||""===a||null===a||a!==a};this.$$updateEmptyClasses=function(a){q.$isEmpty(a)?(f.removeClass(c,"ng-not-empty"),f.addClass(c,"ng-empty")):(f.removeClass(c,"ng-empty"),f.addClass(c,"ng-not-empty"))};var K=0;Ld({ctrl:this,$element:c,set:function(a,b){a[b]=!0},unset:function(a,b){delete a[b]},$animate:f});this.$setPristine=function(){q.$dirty=!1;q.$pristine=!0;f.removeClass(c,Mb);f.addClass(c,Va)};this.$setDirty=function(){q.$dirty=!0;q.$pristine=!1;f.removeClass(c,Va);f.addClass(c,Mb);q.$$parentForm.$setDirty()};this.$setUntouched=function(){q.$touched=!1;q.$untouched=!0;f.setClass(c,"ng-untouched","ng-touched")};this.$setTouched=function(){q.$touched=!0;q.$untouched=!1;f.setClass(c,"ng-touched","ng-untouched")};this.$rollbackViewValue=function(){g.cancel(t);q.$viewValue=q.$$lastCommittedViewValue;q.$render()};this.$validate=function(){if(!S(q.$modelValue)||!isNaN(q.$modelValue)){var a=q.$$rawModelValue,b=q.$valid,c=q.$modelValue,d=q.$options&&q.$options.allowInvalid;q.$$runValidators(a,q.$$lastCommittedViewValue,function(e){d||b===e||(q.$modelValue=e?a:void 0,q.$modelValue!==c&&q.$$writeModelToScope())})}};this.$$runValidators=function(a,b,c){function d(){var c=!0;r(q.$validators,function(d,e){var g=d(a,b);c=c&&g;f(e,g)});return c?!0:(r(q.$asyncValidators,function(a,b){f(b,null)}),!1)}function e(){var c=[],d=!0;r(q.$asyncValidators,function(e,g){var h=e(a,b);if(!h||!z(h.then))throw nb("nopromise",h);f(g,void 0);c.push(h.then(function(){f(g,!0)},function(){d=!1;f(g,!1)}))});c.length?k.all(c).then(function(){g(d)},A):g(!0)}function f(a,b){h===K&&q.$setValidity(a,b)}function g(a){h===K&&c(a)}K++;var h=K;(function(){var a=q.$$parserName||"parse";if(w(I))f(a,null);else return I||(r(q.$validators,function(a,b){f(b,null)}),r(q.$asyncValidators,function(a,b){f(b,null)})),f(a,I),I;return!0})()?d()?e():g(!1):g(!1)};this.$commitViewValue=function(){var a=q.$viewValue;g.cancel(t);if(q.$$lastCommittedViewValue!==a||""===a&&q.$$hasNativeValidators)q.$$updateEmptyClasses(a),q.$$lastCommittedViewValue=a,q.$pristine&&this.$setDirty(),this.$$parseAndValidate()};this.$$parseAndValidate=function(){var b=q.$$lastCommittedViewValue;if(I=w(b)?void 0:!0)for(var c=0;c<q.$parsers.length;c++)if(b=q.$parsers[c](b),w(b)){I=!1;break}S(q.$modelValue)&&isNaN(q.$modelValue)&&(q.$modelValue=p(a));var d=q.$modelValue,e=q.$options&&q.$options.allowInvalid;q.$$rawModelValue=b;e&&(q.$modelValue=b,q.$modelValue!==d&&q.$$writeModelToScope());q.$$runValidators(b,q.$$lastCommittedViewValue,function(a){e||(q.$modelValue=a?b:void 0,q.$modelValue!==d&&q.$$writeModelToScope())})};this.$$writeModelToScope=function(){s(a,q.$modelValue);r(q.$viewChangeListeners,function(a){try{a()}catch(c){b(c)}})};this.$setViewValue=function(a,b){q.$viewValue=a;q.$options&&!q.$options.updateOnDefault||q.$$debounceViewValueCommit(b)};this.$$debounceViewValueCommit=function(b){var c=0,d=q.$options;d&&x(d.debounce)&&(d=d.debounce,S(d)?c=d:S(d[b])?c=d[b]:S(d["default"])&&(c=d["default"]));g.cancel(t);c?t=g(function(){q.$commitViewValue()},c):h.$$phase?q.$commitViewValue():a.$apply(function(){q.$commitViewValue()})};a.$watch(function(){var b=p(a);if(b!==q.$modelValue&&(q.$modelValue===q.$modelValue||b===b)){q.$modelValue=q.$$rawModelValue=b;I=void 0;for(var c=q.$formatters,d=c.length,e=b;d--;)e=c[d](e);q.$viewValue!==e&&(q.$$updateEmptyClasses(e),q.$viewValue=q.$$lastCommittedViewValue=e,q.$render(),q.$$runValidators(b,e,A))}return b})}],Se=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Pg,priority:1,compile:function(b){b.addClass(Va).addClass("ng-untouched").addClass(ob);return{pre:function(a,b,e,f){var g=f[0];b=f[1]||g.$$parentForm;g.$$setOptions(f[2]&&f[2].$options);b.$addControl(g);e.$observe("name",function(a){g.$name!==a&&g.$$parentForm.$$renameControl(g,a)});a.$on("$destroy",function(){g.$$parentForm.$removeControl(g)})},post:function(b,c,e,f){var g=f[0];if(g.$options&&g.$options.updateOn)c.on(g.$options.updateOn,function(a){g.$$debounceViewValueCommit(a&&a.type)});c.on("blur",function(){g.$touched||(a.$$phase?b.$evalAsync(g.$setTouched):b.$apply(g.$setTouched))})}}}}}],Qg=/(\s+|^)default(\s+|$)/,We=function(){return{restrict:"A",controller:["$scope","$attrs",function(a,b){var d=this;this.$options=Z(a.$eval(b.ngModelOptions));x(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=W(this.$options.updateOn.replace(Qg,function(){d.$options.updateOnDefault=!0;return" "}))):this.$options.updateOnDefault=!0}]}},Ie=Ma({terminal:!0,priority:1e3}),Rg=O("ngOptions"),Sg=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Qe=["$compile","$document","$parse",function(a,b,d){function c(a,b,c){function e(a,b,c,d,f){this.selectValue=a;this.viewValue=b;this.label=c;this.group=d;this.disabled=f}function f(a){var b;if(!r&&oa(a))b=a;else{b=[];for(var c in a)a.hasOwnProperty(c)&&"$"!==c.charAt(0)&&b.push(c)}return b}var n=a.match(Sg);if(!n)throw Rg("iexp",a,va(b));var p=n[5]||n[7],r=n[6];a=/ as /.test(n[0])&&n[1];var t=n[9];b=d(n[2]?n[1]:p);var x=a&&d(a)||b,q=t&&d(t),w=t?function(a,b){return q(c,b)}:function(a){return Ga(a)},v=function(a,b){return w(a,D(a,b))},u=d(n[2]||n[1]),y=d(n[3]||""),A=d(n[4]||""),z=d(n[8]),C={},D=r?function(a,b){C[r]=b;C[p]=a;return C}:function(a){C[p]=a;return C};return{trackBy:t,getTrackByValue:v,getWatchables:d(z,function(a){var b=[];a=a||[];for(var d=f(a),e=d.length,g=0;g<e;g++){var h=a===d?g:d[g],l=a[h],h=D(l,h),l=w(l,h);b.push(l);if(n[2]||n[1])l=u(c,h),b.push(l);n[4]&&(h=A(c,h),b.push(h))}return b}),getOptions:function(){for(var a=[],b={},d=z(c)||[],g=f(d),h=g.length,n=0;n<h;n++){var p=d===g?n:g[n],q=D(d[p],p),r=x(c,q),p=w(r,q),s=u(c,q),C=y(c,q),q=A(c,q),r=new e(p,r,s,C,q);a.push(r);b[p]=r}return{items:a,selectValueMap:b,getOptionFromViewValue:function(a){return b[v(a)]},getViewValueFromOption:function(a){return t?ea.copy(a.viewValue):a.viewValue}}}}}var e=E.document.createElement("option"),f=E.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(a,b,c,d){d[0].registerOption=A},post:function(d,h,k,l){function m(a,b){a.element=b;b.disabled=a.disabled;a.label!==b.label&&(b.label=a.label,b.textContent=a.label);a.value!==b.value&&(b.value=a.selectValue)}function n(){var a=y&&p.readValue();if(y)for(var b=y.items.length-1;0<=b;b--){var c=y.items[b];c.group?Db(c.element.parentNode):Db(c.element)}y=z.getOptions();var d={};v&&h.prepend(w);y.items.forEach(function(a){var b;if(x(a.group)){b=d[a.group];b||(b=f.cloneNode(!1),E.appendChild(b),b.label=a.group,d[a.group]=b);var c=e.cloneNode(!1)}else b=E,c=e.cloneNode(!1);b.appendChild(c);m(a,c)});h[0].appendChild(E);s.$render();s.$isEmpty(a)||(b=p.readValue(),(z.trackBy||t?na(a,b):a===b)||(s.$setViewValue(b),s.$render()))}var p=l[0],s=l[1],t=k.multiple,w;l=0;for(var q=h.children(),A=q.length;l<A;l++)if(""===q[l].value){w=q.eq(l);break}var v=!!w,u=B(e.cloneNode(!1));u.val("?");var y,z=c(k.ngOptions,h,d),E=b[0].createDocumentFragment();t?(s.$isEmpty=function(a){return!a||0===a.length},p.writeValue=function(a){y.items.forEach(function(a){a.element.selected=!1});a&&a.forEach(function(a){if(a=y.getOptionFromViewValue(a))a.element.selected=!0})},p.readValue=function(){var a=h.val()||[],b=[];r(a,function(a){(a=y.selectValueMap[a])&&!a.disabled&&b.push(y.getViewValueFromOption(a))});return b},z.trackBy&&d.$watchCollection(function(){if(J(s.$viewValue))return s.$viewValue.map(function(a){return z.getTrackByValue(a)})},function(){s.$render()})):(p.writeValue=function(a){var b=y.getOptionFromViewValue(a);b?(h[0].value!==b.selectValue&&(u.remove(),v||w.remove(),h[0].value=b.selectValue,b.element.selected=!0),b.element.setAttribute("selected","selected")):null===a||v?(u.remove(),v||h.prepend(w),h.val(""),w.prop("selected",!0),w.attr("selected",!0)):(v||w.remove(),h.prepend(u),h.val("?"),u.prop("selected",!0),u.attr("selected",!0))},p.readValue=function(){var a=y.selectValueMap[h.val()];return a&&!a.disabled?(v||w.remove(),u.remove(),y.getViewValueFromOption(a)):null},z.trackBy&&d.$watch(function(){return z.getTrackByValue(s.$viewValue)},function(){s.$render()}));v?(w.remove(),a(w)(d),w.removeClass("ng-scope")):w=B(e.cloneNode(!1));h.empty();n();d.$watchCollection(z.getWatchables,n)}}}}],Je=["$locale","$interpolate","$log",function(a,b,d){var c=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(f,g,h){function k(a){g.text(a||"")}var l=h.count,m=h.$attr.when&&g.attr(h.$attr.when),n=h.offset||0,p=f.$eval(m)||{},s={},t=b.startSymbol(),x=b.endSymbol(),q=t+l+"-"+n+x,z=ea.noop,v;r(h,function(a,b){var c=e.exec(b);c&&(c=(c[1]?"-":"")+M(c[2]),p[c]=g.attr(h.$attr[b]))});r(p,function(a,d){s[d]=b(a.replace(c,q))});f.$watch(l,function(b){var c=parseFloat(b),e=isNaN(c);e||c in p||(c=a.pluralCat(c-n));c===v||e&&S(v)&&isNaN(v)||(z(),e=s[c],w(e)?(null!=b&&d.debug("ngPluralize: no rule defined for '"+c+"' in "+m),z=A,k()):z=f.$watch(e,k),v=c)})}}}],Ke=["$parse","$animate","$compile",function(a,b,d){var c=O("ngRepeat"),e=function(a,b,c,d,e,m,n){a[c]=d;e&&(a[e]=m);a.$index=b;a.$first=0===b;a.$last=b===n-1;a.$middle=!(a.$first||a.$last);a.$odd=!(a.$even=0===(b&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(f,g){var h=g.ngRepeat,k=d.$$createComment("end ngRepeat",h),l=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!l)throw c("iexp",h);var m=l[1],n=l[2],p=l[3],s=l[4],l=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!l)throw c("iidexp",m);var t=l[3]||l[1],w=l[2];if(p&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(p)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(p)))throw c("badident",p);var q,x,v,u,y={$id:Ga};s?q=a(s):(v=function(a,b){return Ga(b)},u=function(a){return a});return function(a,d,f,g,l){q&&(x=function(b,c,d){w&&(y[w]=b);y[t]=c;y.$index=d;return q(a,y)});var m=T();a.$watchCollection(n,function(f){var g,n,q=d[0],s,y=T(),z,A,E,C,D,B,F;p&&(a[p]=f);if(oa(f))D=f,n=x||v;else for(F in n=x||u,D=[],f)sa.call(f,F)&&"$"!==F.charAt(0)&&D.push(F);z=D.length;F=Array(z);for(g=0;g<z;g++)if(A=f===D?g:D[g],E=f[A],C=n(A,E,g),m[C])B=m[C],delete m[C],y[C]=B,F[g]=B;else{if(y[C])throw r(F,function(a){a&&a.scope&&(m[a.id]=a)}),c("dupes",h,C,E);F[g]={id:C,scope:void 0,clone:void 0};y[C]=!0}for(s in m){B=m[s];C=tb(B.clone);b.leave(C);if(C[0].parentNode)for(g=0,n=C.length;g<n;g++)C[g].$$NG_REMOVED=!0;B.scope.$destroy()}for(g=0;g<z;g++)if(A=f===D?g:D[g],E=f[A],B=F[g],B.scope){s=q;do{s=s.nextSibling}while(s&&s.$$NG_REMOVED);B.clone[0]!=s&&b.move(tb(B.clone),null,q);q=B.clone[B.clone.length-1];e(B.scope,g,t,E,w,A,z)}else l(function(a,c){B.scope=c;var d=k.cloneNode(!1);a[a.length++]=d;b.enter(a,null,q);q=d;B.clone=a;y[B.id]=B;e(B.scope,g,t,E,w,A,z)});m=y})}}}}],Le=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngShow,function(b){a[b?"removeClass":"addClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ee=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(b,d,c){b.$watch(c.ngHide,function(b){a[b?"addClass":"removeClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Me=Ma(function(a,b,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&r(d,function(a,c){b.css(c,"")});a&&b.css(a)},!0)}),Ne=["$animate","$compile",function(a,b){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(d,c,e,f){var g=[],h=[],k=[],l=[],m=function(a,b){return function(){a.splice(b,1)}};d.$watch(e.ngSwitch||e.on,function(c){var d,e;d=0;for(e=k.length;d<e;++d)a.cancel(k[d]);d=k.length=0;for(e=l.length;d<e;++d){var t=tb(h[d].clone);l[d].$destroy();(k[d]=a.leave(t)).then(m(k,d))}h.length=0;l.length=0;(g=f.cases["!"+c]||f.cases["?"])&&r(g,function(c){c.transclude(function(d,e){l.push(e);var f=c.element;d[d.length++]=b.$$createComment("end ngSwitchWhen");h.push({clone:d});a.enter(d,f.parent(),f)})})})}}}],Oe=Ma({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){c.cases["!"+d.ngSwitchWhen]=c.cases["!"+d.ngSwitchWhen]||[];c.cases["!"+d.ngSwitchWhen].push({transclude:e,element:b})}}),Pe=Ma({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,b,d,c,e){c.cases["?"]=c.cases["?"]||[];c.cases["?"].push({transclude:e,element:b})}}),Tg=O("ngTransclude"),Re=Ma({restrict:"EAC",link:function(a,b,d,c,e){d.ngTransclude===d.$attr.ngTransclude&&(d.ngTransclude="");if(!e)throw Tg("orphan",va(b));e(function(a){a.length&&(b.empty(),b.append(a))},null,d.ngTransclude||d.ngTranscludeSlot)}}),re=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(b,d){"text/ng-template"==d.type&&a.put(d.id,b[0].text)}}}],Ug={$setViewValue:A,$render:A},Vg=["$element","$scope",function(a,b){var d=this,c=new Sa;d.ngModelCtrl=Ug;d.unknownOption=B(E.document.createElement("option"));d.renderUnknownOption=function(b){b="? "+Ga(b)+" ?";d.unknownOption.val(b);a.prepend(d.unknownOption);a.val(b)};b.$on("$destroy",function(){d.renderUnknownOption=A});d.removeUnknownOption=function(){d.unknownOption.parent()&&d.unknownOption.remove()};d.readValue=function(){d.removeUnknownOption();return a.val()};d.writeValue=function(b){d.hasOption(b)?(d.removeUnknownOption(),a.val(b),""===b&&d.emptyOption.prop("selected",!0)):null==b&&d.emptyOption?(d.removeUnknownOption(),a.val("")):d.renderUnknownOption(b)};d.addOption=function(a,b){if(8!==b[0].nodeType){Ra(a,'"option value"');""===a&&(d.emptyOption=b);var g=c.get(a)||0;c.put(a,g+1);d.ngModelCtrl.$render();b[0].hasAttribute("selected")&&(b[0].selected=!0)}};d.removeOption=function(a){var b=c.get(a);b&&(1===b?(c.remove(a),""===a&&(d.emptyOption=void 0)):c.put(a,b-1))};d.hasOption=function(a){return!!c.get(a)};d.registerOption=function(a,b,c,h,k){if(h){var l;c.$observe("value",function(a){x(l)&&d.removeOption(l);l=a;d.addOption(a,b)})}else k?a.$watch(k,function(a,e){c.$set("value",a);e!==a&&d.removeOption(e);d.addOption(a,b)}):d.addOption(c.value,b);b.on("$destroy",function(){d.removeOption(c.value);d.ngModelCtrl.$render()})}}],se=function(){return{restrict:"E",require:["select","?ngModel"],controller:Vg,priority:1,link:{pre:function(a,b,d,c){var e=c[1];if(e){var f=c[0];f.ngModelCtrl=e;b.on("change",function(){a.$apply(function(){e.$setViewValue(f.readValue())})});if(d.multiple){f.readValue=function(){var a=[];r(b.find("option"),function(b){b.selected&&a.push(b.value)});return a};f.writeValue=function(a){var c=new Sa(a);r(b.find("option"),function(a){a.selected=x(c.get(a.value))})};var g,h=NaN;a.$watch(function(){h!==e.$viewValue||na(g,e.$viewValue)||(g=ga(e.$viewValue),e.$render());h=e.$viewValue});e.$isEmpty=function(a){return!a||0===a.length}}}},post:function(a,b,d,c){var e=c[1];if(e){var f=c[0];e.$render=function(){f.writeValue(e.$viewValue)}}}}}},ue=["$interpolate",function(a){return{restrict:"E",priority:100,compile:function(b,d){if(x(d.value))var c=a(d.value,!0);else{var e=a(b.text(),!0);e||d.$set("value",b.text())}return function(a,b,d){var k=b.parent();(k=k.data("$selectController")||k.parent().data("$selectController"))&&k.registerOption(a,b,d,c,e)}}}}],te=da({restrict:"E",terminal:!1}),Ic=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){c&&(d.required=!0,c.$validators.required=function(a,b){return!d.required||!c.$isEmpty(b)},d.$observe("required",function(){c.$validate()}))}}},Hc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e,f=d.ngPattern||d.pattern;d.$observe("pattern",function(a){F(a)&&0<a.length&&(a=new RegExp("^"+a+"$"));if(a&&!a.test)throw O("ngPattern")("noregexp",f,a,va(b));e=a||void 0;c.$validate()});c.$validators.pattern=function(a,b){return c.$isEmpty(b)||w(e)||e.test(b)}}}}},Kc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e=-1;d.$observe("maxlength",function(a){a=aa(a);e=isNaN(a)?-1:a;c.$validate()});c.$validators.maxlength=function(a,b){return 0>e||c.$isEmpty(b)||b.length<=e}}}}},Jc=function(){return{restrict:"A",require:"?ngModel",link:function(a,b,d,c){if(c){var e=0;d.$observe("minlength",function(a){e=aa(a)||0;c.$validate()});c.$validators.minlength=function(a,b){return c.$isEmpty(b)||b.length>=e}}}}};E.angular.bootstrap?E.console&&console.log("WARNING: Tried to load angular more than once."):(ke(),me(ea),ea.module("ngLocale",[],["$provide",function(a){function b(a){a+="";var b=a.indexOf(".");return-1==b?0:a.length-b-1}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(a,c){var e=a|0,f=c;void 0===f&&(f=Math.min(b(a),3));Math.pow(10,f);return 1==e&&0==f?"one":"other"}})}]),B(E.document).ready(function(){ge(E.document,Bc)}))})(window);!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>');(function(q,e){"use strict";function A(a){var c=[];v(c,e.noop).chars(a);return c.join("")}function h(a,c){var b={},d=a.split(","),l;for(l=0;l<d.length;l++)b[c?e.lowercase(d[l]):d[l]]=!0;return b}function B(a,c){null===a||void 0===a?a="":"string"!==typeof a&&(a=""+a);g.innerHTML=a;var b=5;do{if(0===b)throw w("uinput");b--;q.document.documentMode&&r(g);a=g.innerHTML;g.innerHTML=a}while(a!==g.innerHTML);for(b=g.firstChild;b;
1){switch(b.nodeType){case 1:c.start(b.nodeName.toLowerCase(),C(b.attributes));break;case 3:c.chars(b.textContent)}var d;if(!(d=b.firstChild)&&(1==b.nodeType&&c.end(b.nodeName.toLowerCase()),d=b.nextSibling,!d))for(;null==d;){b=b.parentNode;if(b===g)break;d=b.nextSibling;1==b.nodeType&&c.end(b.nodeName.toLowerCase())}b=d}for(;b=g.firstChild;)g.removeChild(b)}function C(a){for(var c={},b=0,d=a.length;b<d;b++){var l=a[b];c[l.name]=l.value}return c}function x(a){return a.replace(/&/g,"&").replace(D,function(a){var b=a.charCodeAt(0);a=a.charCodeAt(1);return"&#"+(1024*(b-55296)+(a-56320)+65536)+";"}).replace(E,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function v(a,c){var b=!1,d=e.bind(a,a.push);return{start:function(a,f){a=e.lowercase(a);!b&&F[a]&&(b=a);b||!0!==n[a]||(d("<"),d(a),e.forEach(f,function(b,f){var g=e.lowercase(f),h="img"===a&&"src"===g||"background"===g;!0!==G[g]||!0===y[g]&&!c(b,h)||(d(" "),d(f),d('="'),d(x(b)),d('"'))}),d(">"))},end:function(a){a=e.lowercase(a);b||!0!==n[a]||!0===z[a]||(d("</"),d(a),d(">"));a==b&&(b=!1)},chars:function(a){b||d(x(a))}}}function r(a){if(a.nodeType===q.Node.ELEMENT_NODE)for(var c=a.attributes,b=0,d=c.length;b<d;b++){var e=c[b],f=e.name.toLowerCase();if("xmlns:ns1"===f||0===f.lastIndexOf("ns1:",0))a.removeAttributeNode(e),b--,d--}(c=a.firstChild)&&r(c);(c=a.nextSibling)&&r(c)}var w=e.$$minErr("$sanitize"),D=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,E=/([^\#-~ |!])/g,z=h("area,br,col,hr,img,wbr"),m=h("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),k=h("rp,rt"),u=e.extend({},k,m),m=e.extend({},m,h("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),k=e.extend({},k,h("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),H=h("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),F=h("script,style"),n=e.extend({},z,m,k,u),y=h("background,cite,href,longdesc,src,xlink:href"),u=h("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),k=h("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode
1-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),G=e.extend({},y,k,u),g;(function(a){if(a.document&&a.document.implementation)a=a.document.implementation.createHTMLDocument("inert");else throw w("noinert");var c=(a.documentElement||a.getDocumentElement()).getElementsByTagName("body");1===c.length?g=c[0]:(c=a.createElement("html"),g=a.createElement("body"),c.appendChild(g),a.appendChild(c))})(q);e.module("ngSanitize",[]).provider("$sanitize",function(){var a=!1;this.$get=["$$sanitizeUri",function(c){a&&e.extend(n,H);return function(a){var d=[];B(a,v(d,function(a,b){return!/^unsafe:/.test(c(a,b))}));return d.join("")}}];this.enableSvg=function(c){return e.isDefined(c)?(a=c,this):a}});e.module("ngSanitize").filter("linky",["$sanitize",function(a){var c=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,b=/^mailto:/i,d=e.$$minErr("linky"),g=e.isString;return function(f,h,k){function m(a){a&&p.push(A(a))}function q(a,b){var c,d=r(a);p.push("<a ");for(c in d)p.push(c+'="'+d[c]+'" ');!e.isDefined(h)||"target"in d||p.push('target="',h,'" ');p.push('href="',a.replace(/"/g,"""),'">');m(b);p.push("</a>")}if(null==f||""===f)return f;if(!g(f))throw d("notstring",f);for(var r=e.isFunction(k)?k:e.isObject(k)?function(){return k}:function(){return{}},s=f,p=[],t,n;f=s.match(c);)t=f[0],f[2]||f[4]||(t=(f[3]?"http://":"mailto:")+t),n=f.index,m(s.substr(0,n)),q(t,f[0].replace(b,"")),s=s.substring(n+f[0].length);m(s);return a(p.join(""))}}])})(window,window.angular);(function(x,n){"use strict";function s(f,k){var e=!1,a=!1;this.ngClickOverrideEnabled=function(b){return n.isDefined(b)?(b&&!a&&(a=!0,t.$$moduleName="ngTouch",k.directive("ngClick",t),f.decorator("ngClickDirective",["$delegate",function(a){if(e)a.shift();else for(var b=a.length-1;0<=b;){if("ngTouch"===a[b].$$moduleName){a.splice(b,1);break}b--}return a}])),e=b,this):e};this.$get=function(){return{ngClickOverrideEnabled:function(){return e}}}}function v(f,k,e){p.directive(f,["$parse","$swipe",function(a,b){return function(l,u,g){function h(c){if(!d)return!1;var a=Math.abs(c.y-d.y);c=(c.x-d.x)*k;return r&&75>a&&0<c&&30<c&&.3>a/c}var m=a(g[f]),d,r,c=["touch"];n.isDefined(g.ngSwipeDisableMouse)||c.push("mouse");b.bind(u,{start:function(c,a){d=c;r=!0},cancel:function(c){r=!1},end:function(c,d){h(c)&&l.$apply(function(){u.triggerHandler(e);m(l,{$event:d})})}},c)}}])}var p=n.module("ngTouch",[]);p.provider("$touch",s);s.$inject=["$provide","$compileProvider"];p.factory("$swipe",[function(){function f(a){a=a.originalEvent||a;var b=a.touches&&a.touches.length?a.touches:[a];a=a.changedTouches&&a.changedTouches[0]||b[0];return{x:a.clientX,y:a.clientY}}function k(a,b){var l=[];n.forEach(a,function(a){(a=e[a][b])&&l.push(a)});return l.join(" ")}var e={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"}};return{bind:function(a,b,l){var e,g,h,m,d=!1;l=l||["mouse","touch"];a.on(k(l,"start"),function(c){h=f(c);d=!0;g=e=0;m=h;b.start&&b.start(h,c)});var r=k(l,"cancel");if(r)a.on(r,function(c){d=!1;b.cancel&&b.cancel(c)});a.on(k(l,"move"),function(c){if(d&&h){var a=f(c);e+=Math.abs(a.x-m.x);g+=Math.abs(a.y-m.y);m=a;10>e&&10>g||(g>e?(d=!1,b.cancel&&b.cancel(c)):(c.preventDefault(),b.move&&b.move(a,c)))}});a.on(k(l,"end"),function(c){d&&(d=!1,b.end&&b.end(f(c),c))})}}}]);var t=["$parse","$timeout","$rootElement",function(f,k,e){function a(a,d,b){for(var c=0;c<a.length;c+=2){var g=a[c+1],e=b;if(25>Math.abs(a[c]-d)&&25>Math.abs(g-e))return a.splice(c,c+2),!0}return!1}function b(b){if(!(2500<Date.now()-u)){var d=b.touches&&b.touches.length?b.touches:[b],e=d[0].clientX,d=d[0].clientY;if(!(1>e&&1>d||h&&h[0]===e&&h[1]===d)){h&&(h=null);var c=b.target;"label"===n.lowercase(c.nodeName||c[0]&&c[0].nodeName)&&(h=[e,d]);a(g,e,d)||(b.stopPropagation(),b.preventDefault(),b.target&&b.target.blur&&b.target.blur())}}}function l(a){a=a.touches&&a.touches.length?a.touches:[a];var b=a[0].clientX,e=a[0].clientY;g.push(b,e);k(function(){for(var a=0;a<g.length;a+=2)if(g[a]==b&&g[a+1]==e){g.splice(a,a+2);break}},2500,!1)}var u,g,h;return function(h,d,k){var c=f(k.ngClick),w=!1,q,p,s,t;d.on("touchstart",function(a){w=!0;q=a.target?a.target:a.srcElement;3==q.nodeType&&(q=q.parentNode);d.addClass("ng-click-active");p=Date.now();a=a.originalEvent||a;a=(a.touches&&a.touches.length?a.touches:[a])[0];s=a.clientX;t=a.clientY});d.on("touchcancel",function(a){w=!1;d.removeClass("ng-click-active")});d.on("touchend",function(c){var h=Date.now()-p,f=c.originalEvent||c,m=(f.changedTouches&&f.changedTouches.length?f.changedTouches:f.touches&&f.touches.length?f.touches:[f])[0],f=m.clientX,m=m.clientY,v=Math.sqrt(Math.pow(f-s,2)+Math.pow(m-t,2));w&&750>h&&12>v&&(g||(e[0].addEventListener("click",b,!0),e[0].addEventListener("touchstart",l,!0),g=[]),u=Date.now(),a(g,f,m),q&&q.blur(),n.isDefined(k.disabled)&&!1!==k.disabled||d.triggerHandler("click",[c]));w=!1;d.removeClass("ng-click-active")});d.onclick=function(a){};d.on("click",function(a,b){h.$apply(function(){c(h,{$event:b||a})})});d.on("mousedown",function(a){d.addClass("ng-click-active")});d.on("mousemove mouseup",function(a){d.removeClass("ng-click-active")})}}];v("ngSwipeLeft",-1,"swipeleft");v("ngSwipeRight",1,"swiperight")})(window,window.angular);(function(R,C){"use strict";function Aa(a,b,c){if(!a)throw Ma("areq",b||"?",c||"required");return a}function Ba(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;ca(a)&&(a=a.join(" "));ca(b)&&(b=b.join(" "));return a+" "+b}function Na(a){var b={};a&&(a.to||a.from)&&(b.to=a.to,b.from=a.from);return b}function Y(a,b,c){var d="";a=ca(a)?a:a&&O(a)&&a.length?a.split(/\s+/):[];
vendor: 4,327 bytes, line 1
1s(a,function(a,l){a&&0<a.length&&(d+=0<l?" ":"",d+=c?b+a:a+b)});return d}function Oa(a){if(a instanceof G)switch(a.length){case 0:return a;case 1:if(1===a[0].nodeType)return a;break;default:return G(da(a))}if(1===a.nodeType)return G(a)}function da(a){if(!a[0])return a;for(var b=0;b<a.length;b++){var c=a[b];if(1==c.nodeType)return c}}function Pa(a,b,c){s(b,function(b){a.addClass(b,c)})}function Qa(a,b,c){s(b,function(b){a.removeClass(b,c)})}function V(a){return function(b,c){c.addClass&&(Pa(a,b,c.addClass),c.addClass=null);c.removeClass&&(Qa(a,b,c.removeClass),c.removeClass=null)}}function oa(a){a=a||{};if(!a.$$prepared){var b=a.domOperation||Q;a.domOperation=function(){a.$$domOperationFired=!0;b();b=Q};a.$$prepared=!0}return a}function ha(a,b){Ca(a,b);Da(a,b)}function Ca(a,b){b.from&&(a.css(b.from),b.from=null)}function Da(a,b){b.to&&(a.css(b.to),b.to=null)}function W(a,b,c){var d=b.options||{};c=c.options||{};var e=(d.addClass||"")+" "+(c.addClass||""),l=(d.removeClass||"")+" "+(c.removeClass||"");a=Ra(a.attr("class"),e,l);c.preparationClasses&&(d.preparationClasses=Z(c.preparationClasses,d.preparationClasses),delete c.preparationClasses);e=d.domOperation!==Q?d.domOperation:null;Ea(d,c);e&&(d.domOperation=e);d.addClass=a.addClass?a.addClass:null;d.removeClass=a.removeClass?a.removeClass:null;b.addClass=d.addClass;b.removeClass=d.removeClass;return d}function Ra(a,b,c){function d(a){O(a)&&(a=a.split(" "));var b={};s(a,function(a){a.length&&(b[a]=!0)});return b}var e={};a=d(a);b=d(b);s(b,function(a,b){e[b]=1});c=d(c);s(c,function(a,b){e[b]=1===e[b]?null:-1});var l={addClass:"",removeClass:""};s(e,function(b,c){var d,e;1===b?(d="addClass",e=!a[c]):-1===b&&(d="removeClass",e=a[c]);e&&(l[d].length&&(l[d]+=" "),l[d]+=c)});return l}function z(a){return a instanceof C.element?a[0]:a}function Sa(a,b,c){var d="";b&&(d=Y(b,"ng-",!0));c.addClass&&(d=Z(d,Y(c.addClass,"-add")));c.removeClass&&(d=Z(d,Y(c.removeClass,"-remove")));d.length&&(c.preparationClasses=d,a.addClass(d))}function pa(a,b){var c=b?"-"+b+"s":"";la(a,[ma,c]);return[ma,c]}function ta(a,b){var c=b?"paused":"",d=$+"PlayState";la(a,[d,c]);return[d,c]}function la(a,b){a.style[b[0]]=b[1]}function Z(a,b){return a?b?a+" "+b:a:b}function Fa(a,b,c){var d=Object.create(null),e=a.getComputedStyle(b)||{};s(c,function(a,b){var c=e[a];if(c){var g=c.charAt(0);if("-"===g||"+"===g||0<=g)c=Ta(c);0===c&&(c=null);d[b]=c}});return d}function Ta(a){var b=0;a=a.split(/\s*,\s*/);s(a,function(a){"s"==a.charAt(a.length-1)&&(a=a.substring(0,a.length-1));a=parseFloat(a)||0;b=b?Math.max(a,b):a});return b}function ua(a){return 0===a||null!=a}function Ga(a,b){var c=S,d=a+"s";b?c+="Duration":d+=" linear all";return[c,d]}function Ha(){var a=Object.create(null);return{flush:function(){a=Object.create(null)},count:function(b){return(b=a[b])?b.total:0},get:function(b){return(b=a[b])&&b.value},put:function(b,c){a[b]?a[b].total++:a[b]={total:1,value:c}}}}function Ia(a,b,c){s(c,function(c){a[c]=ea(a[c])?a[c]:b.style.getPropertyValue(c)})}var Q=C.noop,Ja=C.copy,Ea=C.extend,G=C.element,s=C.forEach,ca=C.isArray,O=C.isString,va=C.isObject,I=C.isUndefined,ea=C.isDefined,Ka=C.isFunction,wa=C.isElement,S,xa,$,ya;I(R.ontransitionend)&&ea(R.onwebkittransitionend)?(S="WebkitTransition",xa="webkitTransitionEnd transitionend"):(S="transition",xa="transitionend");I(R.onanimationend)&&ea(R.onwebkitanimationend)?($="WebkitAnimation",ya="webkitAnimationEnd animationend"):($="animation",ya="animationend");var qa=$+"Delay",za=$+"Duration",ma=S+"Delay",La=S+"Duration",Ma=C.$$minErr("ng"),Ua={transitionDuration:La,transitionDelay:ma,transitionProperty:S+"Property",animationDuration:za,animationDelay:qa,animationIterationCount:$+"IterationCount"},Va={transitionDuration:La,transitionDelay:ma,animationDuration:za,animationDelay:qa};C.module("ngAnimate",[]).directive("ngAnimateSwap",["$animate","$rootScope",function(a,b){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(b,d,e,l,n){var H,g;b.$watchCollection(e.ngAnimateSwap||e["for"],function(e){H&&a.leave(H);g&&(g.$destroy(),g=null);if(e||0===e)g=b.$new(),n(g,function(b){H=b;a.enter(b,null,d)})})}}}]).directive("ngAnimateChildren",["$interpolate",function(a){return{link:function(b,c,d){function e(a){c.data("$$ngAnimateChildren","on"===a||"true"===a)}var l=d.ngAnimateChildren;
1C.isString(l)&&0===l.length?c.data("$$ngAnimateChildren",!0):(e(a(l)(b)),d.$observe("ngAnimateChildren",e))}}}]).factory("$$rAFScheduler",["$$rAF",function(a){function b(a){d=d.concat(a);c()}function c(){if(d.length){for(var b=d.shift(),n=0;n<b.length;n++)b[n]();e||a(function(){e||c()})}}var d,e;d=b.queue=[];b.waitUntilQuiet=function(b){e&&e();e=a(function(){e=null;b();c()})};return b}]).provider("$$animateQueue",["$animateProvider",function(a){function b(a){if(!a)return null;a=a.split(" ");var b=Object.create(null);s(a,function(a){b[a]=!0});return b}function c(a,c){if(a&&c){var d=b(c);return a.split(" ").some(function(a){return d[a]})}}function d(a,b,c,d){return l[a].some(function(a){return a(b,c,d)})}function e(a,b){var c=0<(a.addClass||"").length,d=0<(a.removeClass||"").length;return b?c&&d:c||d}var l=this.rules={skip:[],cancel:[],join:[]};l.join.push(function(a,b,c){return!b.structural&&e(b)});l.skip.push(function(a,b,c){return!b.structural&&!e(b)});l.skip.push(function(a,b,c){return"leave"==c.event&&b.structural});l.skip.push(function(a,b,c){return c.structural&&2===c.state&&!b.structural});l.cancel.push(function(a,b,c){return c.structural&&b.structural});l.cancel.push(function(a,b,c){return 2===c.state&&b.structural});l.cancel.push(function(a,b,d){if(d.structural)return!1;a=b.addClass;b=b.removeClass;var e=d.addClass;d=d.removeClass;return I(a)&&I(b)||I(e)&&I(d)?!1:c(a,d)||c(b,e)});this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(b,c,g,l,v,Wa,P,t,F,T){function J(){var a=!1;return function(b){a?b():c.$$postDigest(function(){a=!0;b()})}}function y(a,b,c){var f=z(b),d=z(a),N=[];(a=h[c])&&s(a,function(a){x.call(a.node,f)?N.push(a.callback):"leave"===c&&x.call(a.node,d)&&N.push(a.callback)});return N}function r(a,b,c){var f=da(b);return a.filter(function(a){return!(a.node===f&&(!c||a.callback===c))})}function p(a,h,w){function r(c,f,d,h){sa(function(){var c=y(T,a,f);c.length?b(function(){s(c,function(b){b(a,d,h)});"close"!==d||a[0].parentNode||ra.off(a)}):"close"!==d||a[0].parentNode||ra.off(a)});c.progress(f,d,h)}function k(b){var c=a,f=m;f.preparationClasses&&(c.removeClass(f.preparationClasses),f.preparationClasses=null);f.activeClasses&&(c.removeClass(f.activeClasses),f.activeClasses=null);E(a,m);ha(a,m);m.domOperation();B.complete(!b)}var m=Ja(w),p,T;if(a=Oa(a))p=z(a),T=a.parent();var m=oa(m),B=new P,sa=J();ca(m.addClass)&&(m.addClass=m.addClass.join(" "));m.addClass&&!O(m.addClass)&&(m.addClass=null);ca(m.removeClass)&&(m.removeClass=m.removeClass.join(" "));m.removeClass&&!O(m.removeClass)&&(m.removeClass=null);m.from&&!va(m.from)&&(m.from=null);m.to&&!va(m.to)&&(m.to=null);if(!p)return k(),B;w=[p.className,m.addClass,m.removeClass].join(" ");if(!Xa(w))return k(),B;var g=0<=["enter","move","leave"].indexOf(h),x=l[0].hidden,t=!f||x||N.get(p);w=!t&&A.get(p)||{};var F=!!w.state;t||F&&1==w.state||(t=!M(a,T,h));if(t)return x&&r(B,h,"start"),k(),x&&r(B,h,"close"),B;g&&K(a);x={structural:g,element:a,event:h,addClass:m.addClass,removeClass:m.removeClass,close:k,options:m,runner:B};if(F){if(d("skip",a,x,w)){if(2===w.state)return k(),B;W(a,w,x);return w.runner}if(d("cancel",a,x,w))if(2===w.state)w.runner.end();else if(w.structural)w.close();else return W(a,w,x),w.runner;else if(d("join",a,x,w))if(2===w.state)W(a,x,{});else return Sa(a,g?h:null,m),h=x.event=w.event,m=W(a,w,x),w.runner}else W(a,x,{});(F=x.structural)||(F="animate"===x.event&&0<Object.keys(x.options.to||{}).length||e(x));if(!F)return k(),ka(a),B;var v=(w.counter||0)+1;x.counter=v;L(a,1,x);c.$$postDigest(function(){var b=A.get(p),c=!b,b=b||{},f=0<(a.parent()||[]).length&&("animate"===b.event||b.structural||e(b));if(c||b.counter!==v||!f){c&&(E(a,m),ha(a,m));if(c||g&&b.event!==h)m.domOperation(),B.end();f||ka(a)}else h=!b.structural&&e(b,!0)?"setClass":b.event,L(a,2),b=Wa(a,h,b.options),B.setHost(b),r(B,h,"start",{}),b.done(function(b){k(!b);(b=A.get(p))&&b.counter===v&&ka(z(a));r(B,h,"close",{})})});return B}function K(a){a=z(a).querySelectorAll("[data-ng-animate]");s(a,function(a){var b=parseInt(a.getAttribute("data-ng-animate")),c=A.get(a);if(c)switch(b){case 2:c.runner.end();case 1:A.remove(a)}})}function ka(a){a=z(a);a.removeAttribute("data-ng-animate");A.remove(a)}function k(a,b){return z(a)===z(b)}function M(a,b,c){c=G(l[0].body);var f=k(a,c)||"HTML"===a[0].nodeName,d=k(a,g),h=!1,r,e=N.get(z(a));(a=G.data(a[0],"$ngAnimatePin"))&&(b=a);for(b=z(b);b;){d||(d=k(b,g));if(1!==b.nodeType)break;a=A.get(b)||{};if(!h){var p=N.get(b);if(!0===p&&!1!==e){e=!0;break}
vendor: 15,794 bytes, line 1
1else!1===p&&(e=!1);h=a.structural}if(I(r)||!0===r)a=G.data(b,"$$ngAnimateChildren"),ea(a)&&(r=a);if(h&&!1===r)break;f||(f=k(b,c));if(f&&d)break;if(!d&&(a=G.data(b,"$ngAnimatePin"))){b=z(a);continue}b=b.parentNode}return(!h||r)&&!0!==e&&d&&f}function L(a,b,c){c=c||{};c.state=b;a=z(a);a.setAttribute("data-ng-animate",b);c=(b=A.get(a))?Ea(b,c):c;A.put(a,c)}var A=new v,N=new v,f=null,B=c.$watch(function(){return 0===t.totalPendingRequests},function(a){a&&(B(),c.$$postDigest(function(){c.$$postDigest(function(){null===f&&(f=!0)})}))}),h={},sa=a.classNameFilter(),Xa=sa?function(a){return sa.test(a)}:function(){return!0},E=V(F),x=R.Node.prototype.contains||function(a){return this===a||!!(this.compareDocumentPosition(a)&16)},ra={on:function(a,b,c){var f=da(b);h[a]=h[a]||[];h[a].push({node:f,callback:c});G(b).on("$destroy",function(){A.get(f)||ra.off(a,b,c)})},off:function(a,b,c){if(1!==arguments.length||C.isString(arguments[0])){var f=h[a];f&&(h[a]=1===arguments.length?null:r(f,b,c))}else for(f in b=arguments[0],h)h[f]=r(h[f],b)},pin:function(a,b){Aa(wa(a),"element","not an element");Aa(wa(b),"parentElement","not an element");a.data("$ngAnimatePin",b)},push:function(a,b,c,f){c=c||{};c.domOperation=f;return p(a,b,c)},enabled:function(a,b){var c=arguments.length;if(0===c)b=!!f;else if(wa(a)){var d=z(a),h=N.get(d);1===c?b=!h:N.put(d,!b)}else b=f=!!a;return b}};return ra}]}]).provider("$$animation",["$animateProvider",function(a){var b=this.drivers=[];this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(a,d,e,l,n,H){function g(a){function b(a){if(a.processed)return a;a.processed=!0;var d=a.domNode,p=d.parentNode;e.put(d,a);for(var K;p;){if(K=e.get(p)){K.processed||(K=b(K));break}p=p.parentNode}(K||c).children.push(a);return a}var c={children:[]},d,e=new n;for(d=0;d<a.length;d++){var g=a[d];e.put(g.domNode,a[d]={domNode:g.domNode,fn:g.fn,children:[]})}for(d=0;d<a.length;d++)b(a[d]);return function(a){var b=[],c=[],d;for(d=0;d<a.children.length;d++)c.push(a.children[d]);a=c.length;var e=0,k=[];for(d=0;d<c.length;d++){var g=c[d];0>=a&&(a=e,e=0,b.push(k),k=[]);k.push(g.fn);g.children.forEach(function(a){e++;c.push(a)});a--}k.length&&b.push(k);return b}(c)}var u=[],v=V(a);return function(n,P,t){function F(a){a=a.hasAttribute("ng-animate-ref")?[a]:a.querySelectorAll("[ng-animate-ref]");var b=[];s(a,function(a){var c=a.getAttribute("ng-animate-ref");c&&c.length&&b.push(a)});return b}function T(a){var b=[],c={};s(a,function(a,d){var h=z(a.element),e=0<=["enter","move"].indexOf(a.event),h=a.structural?F(h):[];if(h.length){var k=e?"to":"from";s(h,function(a){var b=a.getAttribute("ng-animate-ref");c[b]=c[b]||{};c[b][k]={animationID:d,element:G(a)}})}else b.push(a)});var d={},e={};s(c,function(c,k){var r=c.from,p=c.to;if(r&&p){var A=a[r.animationID],g=a[p.animationID],B=r.animationID.toString();if(!e[B]){var n=e[B]={structural:!0,beforeStart:function(){A.beforeStart();g.beforeStart()},close:function(){A.close();g.close()},classes:J(A.classes,g.classes),from:A,to:g,anchors:[]};n.classes.length?b.push(n):(b.push(A),b.push(g))}e[B].anchors.push({out:r.element,in:p.element})}else r=r?r.animationID:p.animationID,p=r.toString(),d[p]||(d[p]=!0,b.push(a[r]))});return b}function J(a,b){a=a.split(" ");b=b.split(" ");for(var c=[],d=0;d<a.length;d++){var e=a[d];if("ng-"!==e.substring(0,3))for(var r=0;r<b.length;r++)if(e===b[r]){c.push(e);break}}return c.join(" ")}function y(a){for(var c=b.length-1;0<=c;c--){var d=e.get(b[c])(a);if(d)return d}}function r(a,b){function c(a){(a=a.data("$$animationRunner"))&&a.setHost(b)}a.from&&a.to?(c(a.from.element),c(a.to.element)):c(a.element)}function p(){var a=n.data("$$animationRunner");!a||"leave"===P&&t.$$domOperationFired||a.end()}function K(b){n.off("$destroy",p);n.removeData("$$animationRunner");v(n,t);ha(n,t);t.domOperation();L&&a.removeClass(n,L);n.removeClass("ng-animate");k.complete(!b)}t=oa(t);var ka=0<=["enter","move","leave"].indexOf(P),k=new l({end:function(){K()},cancel:function(){K(!0)}});if(!b.length)return K(),k;n.data("$$animationRunner",k);var M=Ba(n.attr("class"),Ba(t.addClass,t.removeClass)),L=t.tempClasses;L&&(M+=" "+L,t.tempClasses=null);var A;ka&&(A="ng-"+P+"-prepare",a.addClass(n,A));u.push({element:n,classes:M,event:P,structural:ka,options:t,beforeStart:function(){n.addClass("ng-animate");L&&a.addClass(n,L);A&&(a.removeClass(n,A),A=null)},close:K});n.on("$destroy",p);if(1<u.length)return k;d.$$postDigest(function(){var a=[];s(u,function(b){b.element.data("$$animationRunner")?a.push(b):b.close()});u.length=0;var b=T(a),c=[];s(b,function(a){c.push({domNode:z(a.from?a.from.element:a.element),fn:function(){a.beforeStart();var b,c=a.close;if((a.anchors?a.from.element||a.to.element:a.element).data("$$animationRunner")){var d=y(a);d&&(b=d.start)}b?(b=b(),b.done(function(a){c(!a)}),r(a,b)):c()}})});H(g(c))});return k}}]}]).provider("$animateCss",["$animateProvider",function(a){var b=Ha(),c=Ha();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(a,e,l,n,H,g,u,v){function C(a,b){var c=a.parentNode;return(c.$$ngAnimateParentKey||(c.$$ngAnimateParentKey=++J))+"-"+a.getAttribute("class")+"-"+b}function P(r,p,g,n){var k;0<b.count(g)&&(k=c.get(g),k||(p=Y(p,"-stagger"),e.addClass(r,p),k=Fa(a,r,n),k.animationDuration=Math.max(k.animationDuration,0),k.transitionDuration=Math.max(k.transitionDuration,0),e.removeClass(r,p),c.put(g,k)));return k||{}}function t(a){y.push(a);u.waitUntilQuiet(function(){b.flush();c.flush();for(var a=H(),d=0;d<y.length;d++)y[d](a);y.length=0})}function F(c,e,g){e=b.get(g);e||(e=Fa(a,c,Ua),"infinite"===e.animationIterationCount&&(e.animationIterationCount=1));b.put(g,e);c=e;g=c.animationDelay;e=c.transitionDelay;c.maxDelay=g&&e?Math.max(g,e):g||e;c.maxDuration=Math.max(c.animationDuration*c.animationIterationCount,c.transitionDuration);return c}var T=V(e),J=0,y=[];return function(a,c){function d(){k()}function u(){k(!0)}function k(b){if(!(x||G&&J)){x=!0;J=!1;f.$$skipPreparationClasses||e.removeClass(a,ga);e.removeClass(a,ea);ta(h,!1);pa(h,!1);s(y,function(a){h.style[a[0]]=""});T(a,f);ha(a,f);Object.keys(B).length&&s(B,function(a,b){a?h.style.setProperty(b,a):h.style.removeProperty(b)});if(f.onDone)f.onDone();fa&&fa.length&&a.off(fa.join(" "),A);var c=a.data("$$animateCss");c&&(n.cancel(c[0].timer),a.removeData("$$animateCss"));I&&I.complete(!b)}}function M(a){q.blockTransition&&pa(h,a);q.blockKeyframeAnimation&&ta(h,!!a)}function L(){I=new l({end:d,cancel:u});t(Q);k();return{$$willAnimate:!1,start:function(){return I},end:d}}function A(a){a.stopPropagation();var b=a.originalEvent||a;a=b.$manualTimeStamp||Date.now();b=parseFloat(b.elapsedTime.toFixed(3));Math.max(a-W,0)>=R&&b>=m&&(G=!0,k())}function N(){function b(){if(!x){M(!1);s(y,function(a){h.style[a[0]]=a[1]});T(a,f);e.addClass(a,ea);if(q.recalculateTimingStyles){na=h.className+" "+ga;ia=C(h,na);D=F(h,na,ia);aa=D.maxDelay;O=Math.max(aa,0);m=D.maxDuration;if(0===m){k();return}q.hasTransitions=0<D.transitionDuration;q.hasAnimations=0<D.animationDuration}q.applyAnimationDelay&&(aa="boolean"!==typeof f.delay&&ua(f.delay)?parseFloat(f.delay):aa,O=Math.max(aa,0),D.animationDelay=aa,ba=[qa,aa+"s"],y.push(ba),h.style[ba[0]]=ba[1]);R=1e3*O;V=1e3*m;if(f.easing){var d,g=f.easing;q.hasTransitions&&(d=S+"TimingFunction",y.push([d,g]),h.style[d]=g);q.hasAnimations&&(d=$+"TimingFunction",y.push([d,g]),h.style[d]=g)}D.transitionDuration&&fa.push(xa);D.animationDuration&&fa.push(ya);W=Date.now();var p=R+1.5*V;d=W+p;var g=a.data("$$animateCss")||[],N=!0;if(g.length){var l=g[0];(N=d>l.expectedEndTime)?n.cancel(l.timer):g.push(k)}N&&(p=n(c,p,!1),g[0]={timer:p,expectedEndTime:d},g.push(k),a.data("$$animateCss",g));if(fa.length)a.on(fa.join(" "),A);f.to&&(f.cleanupStyles&&Ia(B,h,Object.keys(f.to)),Da(a,f))}}function c(){var b=a.data("$$animateCss");if(b){for(var d=1;d<b.length;d++)b[d]();a.removeData("$$animateCss")}}if(!x)if(h.parentNode){var d=function(a){if(G)J&&a&&(J=!1,k());else if(J=!a,D.animationDuration)if(a=ta(h,J),J)y.push(a);else{var b=y,c=b.indexOf(a);0<=a&&b.splice(c,1)}},g=0<da&&(D.transitionDuration&&0===X.transitionDuration||D.animationDuration&&0===X.animationDuration)&&Math.max(X.animationDelay,X.transitionDelay);g?n(b,Math.floor(g*da*1e3),!1):b();w.resume=function(){d(!0)};w.pause=function(){d(!1)}}else k()}var f=c||{};f.$$prepared||(f=oa(Ja(f)));var B={},h=z(a);if(!h||!h.parentNode||!v.enabled())return L();var y=[],H=a.attr("class"),E=Na(f),x,J,G,I,w,O,R,m,V,W,fa=[];if(0===f.duration||!g.animations&&!g.transitions)return L();var ja=f.event&&ca(f.event)?f.event.join(" "):f.event,Z="",U="";ja&&f.structural?Z=Y(ja,"ng-",!0):ja&&(Z=ja);f.addClass&&(U+=Y(f.addClass,"-add"));f.removeClass&&(U.length&&(U+=" "),U+=Y(f.removeClass,"-remove"));f.applyClassesEarly&&U.length&&T(a,f);var ga=[Z,U].join(" ").trim(),na=H+" "+ga,ea=Y(ga,"-active"),H=E.to&&0<Object.keys(E.to).length;if(!(0<(f.keyframeStyle||"").length||H||ga))return L();var ia,X;0<f.stagger?(E=parseFloat(f.stagger),X={transitionDelay:E,animationDelay:E,transitionDuration:0,animationDuration:0}):(ia=C(h,na),X=P(h,ga,ia,Va));f.$$skipPreparationClasses||e.addClass(a,ga);f.transitionStyle&&(E=[S,f.transitionStyle],la(h,E),y.push(E));0<=f.duration&&(E=0<h.style[S].length,E=Ga(f.duration,E),la(h,E),y.push(E));f.keyframeStyle&&(E=[$,f.keyframeStyle],la(h,E),y.push(E));var da=X?0<=f.staggerIndex?f.staggerIndex:b.count(ia):0;(ja=0===da)&&!f.skipBlocking&&pa(h,9999);var D=F(h,na,ia),aa=D.maxDelay;O=Math.max(aa,0);m=D.maxDuration;var q={};q.hasTransitions=0<D.transitionDuration;q.hasAnimations=0<D.animationDuration;q.hasTransitionAll=q.hasTransitions&&"all"==D.transitionProperty;q.applyTransitionDuration=H&&(q.hasTransitions&&!q.hasTransitionAll||q.hasAnimations&&!q.hasTransitions);q.applyAnimationDuration=f.duration&&q.hasAnimations;q.applyTransitionDelay=ua(f.delay)&&(q.applyTransitionDuration||q.hasTransitions);q.applyAnimationDelay=ua(f.delay)&&q.hasAnimations;q.recalculateTimingStyles=0<U.length;if(q.applyTransitionDuration||q.applyAnimationDuration)m=f.duration?parseFloat(f.duration):m,q.applyTransitionDuration&&(q.hasTransitions=!0,D.transitionDuration=m,E=0<h.style[S+"Property"].length,y.push(Ga(m,E))),q.applyAnimationDuration&&(q.hasAnimations=!0,D.animationDuration=m,y.push([za,m+"s"]));if(0===m&&!q.recalculateTimingStyles)return L();if(null!=f.delay){var ba;"boolean"!==typeof f.delay&&(ba=parseFloat(f.delay),O=Math.max(ba,0));q.applyTransitionDelay&&y.push([ma,ba+"s"]);q.applyAnimationDelay&&y.push([qa,ba+"s"])}null==f.duration&&0<D.transitionDuration&&(q.recalculateTimingStyles=q.recalculateTimingStyles||ja);R=1e3*O;V=1e3*m;f.skipBlocking||(q.blockTransition=0<D.transitionDuration,q.blockKeyframeAnimation=0<D.animationDuration&&0<X.animationDelay&&0===X.animationDuration);f.from&&(f.cleanupStyles&&Ia(B,h,Object.keys(f.from)),Ca(a,f));q.blockTransition||q.blockKeyframeAnimation?M(m):f.skipBlocking||pa(h,!1);return{$$willAnimate:!0,end:d,start:function(){if(!x)return w={end:d,cancel:u,resume:null,pause:null},I=new l(w),t(N),I}}}}]}]).provider("$$animateCssDriver",["$$animationProvider",function(a){a.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(a,c,d,e,l,n,H){function g(a){return a.replace(/\bng-\S+\b/g,"")}function u(a,b){O(a)&&(a=a.split(" "));O(b)&&(b=b.split(" "));return a.filter(function(a){return-1===b.indexOf(a)}).join(" ")}function v(c,e,n){function l(a){var b={},c=z(a).getBoundingClientRect();s(["width","height","top","left"],function(a){var d=c[a];switch(a){case"top":d+=t.scrollTop;break;case"left":d+=t.scrollLeft}b[a]=Math.floor(d)+"px"});return b}function p(){var c=g(n.attr("class")||""),d=u(c,k),c=u(k,c),d=a(v,{to:l(n),addClass:"ng-anchor-in "+d,removeClass:"ng-anchor-out "+c,delay:!0});return d.$$willAnimate?d:null}function H(){v.remove();e.removeClass("ng-animate-shim");n.removeClass("ng-animate-shim")}var v=G(z(e).cloneNode(!0)),k=g(v.attr("class")||"");e.addClass("ng-animate-shim");n.addClass("ng-animate-shim");v.addClass("ng-anchor");F.append(v);var M;c=function(){var c=a(v,{addClass:"ng-anchor-out",delay:!0,from:l(e)});return c.$$willAnimate?c:null}();if(!c&&(M=p(),!M))return H();var L=c||M;return{start:function(){function a(){c&&c.end()}var b,c=L.start();c.done(function(){c=null;if(!M&&(M=p()))return c=M.start(),c.done(function(){c=null;H();b.complete()}),c;H();b.complete()});return b=new d({end:a,cancel:a})}}}function C(a,b,c,e){var g=P(a,Q),n=P(b,Q),l=[];s(e,function(a){(a=v(c,a.out,a["in"]))&&l.push(a)});if(g||n||0!==l.length)return{start:function(){function a(){s(b,function(a){a.end()})}var b=[];g&&b.push(g.start());n&&b.push(n.start());s(l,function(a){b.push(a.start())});var c=new d({end:a,cancel:a});d.all(b,function(a){c.complete(a)});return c}}}function P(c){var d=c.element,e=c.options||{};c.structural&&(e.event=c.event,e.structural=!0,e.applyClassesEarly=!0,"leave"===c.event&&(e.onDone=e.domOperation));e.preparationClasses&&(e.event=Z(e.event,e.preparationClasses));c=a(d,e);return c.$$willAnimate?c:null}if(!l.animations&&!l.transitions)return Q;var t=H[0].body;c=z(e);var F=G(c.parentNode&&11===c.parentNode.nodeType||t.contains(c)?c:t);V(n);return function(a){return a.from&&a.to?C(a.from,a.to,a.classes,a.anchors):P(a)}}]}]).provider("$$animateJs",["$animateProvider",function(a){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(b,c,d){function e(c){c=ca(c)?c:c.split(" ");for(var d=[],e={},l=0;l<c.length;l++){var v=c[l],s=a.$$registeredAnimations[v];s&&!e[v]&&(d.push(b.get(s)),e[v]=!0)}return d}var l=V(d);return function(a,b,d,u){function v(){u.domOperation();l(a,u)}function C(a,b,d,e,f){switch(d){case"animate":b=[b,e.from,e.to,f];break;case"setClass":b=[b,G,J,f];break;case"addClass":b=[b,G,f];break;case"removeClass":b=[b,J,f];break;default:b=[b,f]}b.push(e);if(a=a.apply(a,b))if(Ka(a.start)&&(a=a.start()),a instanceof c)a.done(f);else if(Ka(a))return a;return Q}function z(a,b,d,e,f){var g=[];s(e,function(e){var k=e[f];k&&g.push(function(){var e,f,g=!1,h=function(a){g||(g=!0,(f||Q)(a),e.complete(!a))};e=new c({end:function(){h()},cancel:function(){h(!0)}});f=C(k,a,b,d,function(a){h(!1===a)});return e})});return g}function t(a,b,d,e,f){var g=z(a,b,d,e,f);if(0===g.length){var h,k;"beforeSetClass"===f?(h=z(a,"removeClass",d,e,"beforeRemoveClass"),k=z(a,"addClass",d,e,"beforeAddClass")):"setClass"===f&&(h=z(a,"removeClass",d,e,"removeClass"),k=z(a,"addClass",d,e,"addClass"));h&&(g=g.concat(h));k&&(g=g.concat(k))}if(0!==g.length)return function(a){var b=[];g.length&&s(g,function(a){b.push(a())});b.length?c.all(b,a):a();return function(a){s(b,function(b){a?b.cancel():b.end()})}}}var F=!1;3===arguments.length&&va(d)&&(u=d,d=null);u=oa(u);d||(d=a.attr("class")||"",u.addClass&&(d+=" "+u.addClass),u.removeClass&&(d+=" "+u.removeClass));var G=u.addClass,J=u.removeClass,y=e(d),r,p;if(y.length){var K,I;"leave"==b?(I="leave",K="afterLeave"):(I="before"+b.charAt(0).toUpperCase()+b.substr(1),K=b);"enter"!==b&&"move"!==b&&(r=t(a,b,u,y,I));p=t(a,b,u,y,K)}if(r||p){var k;return{$$willAnimate:!0,end:function(){k?k.end():(F=!0,v(),ha(a,u),k=new c,k.complete(!0));return k},start:function(){function b(c){F=!0;v();ha(a,u);k.complete(c)}if(k)return k;k=new c;var d,e=[];r&&e.push(function(a){d=r(a)});e.length?e.push(function(a){v();a(!0)}):v();p&&e.push(function(a){d=p(a)});k.setHost({end:function(){F||((d||Q)(void 0),b(void 0))},cancel:function(){F||((d||Q)(!0),b(!0))}});c.chain(e,b);return k}}}}}]}]).provider("$$animateJsDriver",["$$animationProvider",function(a){a.drivers.push("$$animateJsDriver");this.$get=["$$animateJs","$$AnimateRunner",function(a,c){function d(c){return a(c.element,c.event,c.classes,c.options)}
1return function(a){if(a.from&&a.to){var b=d(a.from),n=d(a.to);if(b||n)return{start:function(){function a(){return function(){s(d,function(a){a.end()})}}var d=[];b&&d.push(b.start());n&&d.push(n.start());c.all(d,function(a){e.complete(a)});var e=new c({end:a(),cancel:a()});return e}}}else return d(a)}}]}])})(window,window.angular);(function(n,c){"use strict";function l(b,a,g){var d=g.baseHref(),k=b[0];return function(b,e,f){var g,h;f=f||{};h=f.expires;g=c.isDefined(f.path)?f.path:d;c.isUndefined(e)&&(h="Thu, 01 Jan 1970 00:00:00 GMT",e="");c.isString(h)&&(h=new Date(h));e=encodeURIComponent(b)+"="+encodeURIComponent(e);e=e+(g?";path="+g:"")+(f.domain?";domain="+f.domain:"");e+=h?";expires="+h.toUTCString():"";e+=f.secure?";secure":"";f=e.length+1;4096<f&&a.warn("Cookie '"+b+"' possibly not set or overflowed because it was too large ("+f+" > 4096 bytes)!");k.cookie=e}}c.module("ngCookies",["ng"]).provider("$cookies",[function(){var b=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(a,g){return{get:function(d){return a()[d]},getObject:function(d){return(d=this.get(d))?c.fromJson(d):d},getAll:function(){return a()},put:function(d,a,m){g(d,a,m?c.extend({},b,m):b)},putObject:function(d,b,a){this.put(d,c.toJson(b),a)},remove:function(a,k){g(a,void 0,k?c.extend({},b,k):b)}}}]}]);c.module("ngCookies").factory("$cookieStore",["$cookies",function(b){return{get:function(a){return b.getObject(a)},put:function(a,c){b.putObject(a,c)},remove:function(a){b.remove(a)}}}]);l.$inject=["$document","$log","$browser"];c.module("ngCookies").provider("$$cookieWriter",function(){this.$get=l})})(window,window.angular);!function(a,b){"undefined"!=typeof module&&module.exports?"undefined"==typeof angular?module.exports=b(require("angular")):module.exports=b(angular):"function"==typeof define&&define.amd?define(["angular"],b):b(a.angular)}(this,function(a){"use strict";var b=a.module("ngDialog",[]),c=a.element,d=a.isDefined,e=(document.body||document.documentElement).style,f=d(e.animation)||d(e.WebkitAnimation)||d(e.MozAnimation)||d(e.MsAnimation)||d(e.OAnimation),g="animationend webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend",h="a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]",i="ngdialog-disabled-animation",j={html:!1,body:!1},k={},l=[],m=!1;return b.provider("ngDialog",function(){var b=this.defaults={className:"ngdialog-theme-default",disableAnimation:!1,plain:!1,showClose:!0,closeByDocument:!0,closeByEscape:!0,closeByNavigation:!1,appendTo:!1,preCloseCallback:!1,overlay:!0,cache:!0,trapFocus:!0,preserveFocus:!0,ariaAuto:!0,ariaRole:null,ariaLabelledById:null,ariaLabelledBySelector:null,ariaDescribedById:null,ariaDescribedBySelector:null};this.setForceHtmlReload=function(a){j.html=a||!1},this.setForceBodyReload=function(a){j.body=a||!1},this.setDefaults=function(c){a.extend(b,c)};var d,e=0,n=0,o={};this.$get=["$document","$templateCache","$compile","$q","$http","$rootScope","$timeout","$window","$controller","$injector",function(p,q,r,s,t,u,v,w,x,y){var z=[];a.forEach(["html","body"],function(a){if(z[a]=p.find(a),j[a]){var b=A.getRouterLocationEventName();u.$on(b,function(){z[a]=p.find(a)})}});var A={onDocumentKeydown:function(a){27===a.keyCode&&B.close("$escape")},activate:function(a){var b=a.data("$ngDialogOptions");b.trapFocus&&(a.on("keydown",A.onTrapFocusKeydown),z.body.on("keydown",A.onTrapFocusKeydown))},deactivate:function(a){a.off("keydown",A.onTrapFocusKeydown),z.body.off("keydown",A.onTrapFocusKeydown)},deactivateAll:function(){a.forEach(function(b){var c=a.element(b);A.deactivate(c)})},setBodyPadding:function(a){var b=parseInt(z.body.css("padding-right")||0,10);z.body.css("padding-right",b+a+"px"),z.body.data("ng-dialog-original-padding",b)},resetBodyPadding:function(){var a=z.body.data("ng-dialog-original-padding");a?z.body.css("padding-right",a+"px"):z.body.css("padding-right","")},performCloseDialog:function(a,b){var c=a.data("$ngDialogOptions"),e=a.attr("id"),h=k[e];if(h){if("undefined"!=typeof w.Hammer){var i=h.hammerTime;i.off("tap",d),i.destroy&&i.destroy(),delete h.hammerTime}else a.unbind("click");
11===n&&z.body.unbind("keydown",A.onDocumentKeydown),a.hasClass("ngdialog-closing")||(n-=1);var j=a.data("$ngDialogPreviousFocus");j&&j.focus(),u.$broadcast("ngDialog.closing",a,b),n=0>n?0:n,f&&!c.disableAnimation?(h.$destroy(),a.unbind(g).bind(g,function(){A.closeDialogElement(a,b)}).addClass("ngdialog-closing")):(h.$destroy(),A.closeDialogElement(a,b)),o[e]&&(o[e].resolve({id:e,value:b,$dialog:a,remainingDialogs:n}),delete o[e]),k[e]&&delete k[e],l.splice(l.indexOf(e),1),l.length||(z.body.unbind("keydown",A.onDocumentKeydown),m=!1)}},closeDialogElement:function(a,b){a.remove(),0===n&&(z.html.removeClass("ngdialog-open"),z.body.removeClass("ngdialog-open"),A.resetBodyPadding()),u.$broadcast("ngDialog.closed",a,b)},closeDialog:function(b,c){var d=b.data("$ngDialogPreCloseCallback");if(d&&a.isFunction(d)){var e=d.call(b,c);a.isObject(e)?e.closePromise?e.closePromise.then(function(){A.performCloseDialog(b,c)}):e.then(function(){A.performCloseDialog(b,c)},function(){}):e!==!1&&A.performCloseDialog(b,c)}else A.performCloseDialog(b,c)},onTrapFocusKeydown:function(b){var c,d=a.element(b.currentTarget);if(d.hasClass("ngdialog"))c=d;else if(c=A.getActiveDialog(),null===c)return;var e=9===b.keyCode,f=b.shiftKey===!0;e&&A.handleTab(c,b,f)},handleTab:function(a,b,c){var d=A.getFocusableElements(a);if(0===d.length)return void(document.activeElement&&document.activeElement.blur());var e=document.activeElement,f=Array.prototype.indexOf.call(d,e),g=-1===f,h=0===f,i=f===d.length-1,j=!1;c?(g||h)&&(d[d.length-1].focus(),j=!0):(g||i)&&(d[0].focus(),j=!0),j&&(b.preventDefault(),b.stopPropagation())},autoFocus:function(a){var b=a[0],d=b.querySelector("*[autofocus]");if(null===d||(d.focus(),document.activeElement!==d)){var e=A.getFocusableElements(a);if(e.length>0)return void e[0].focus();var f=A.filterVisibleElements(b.querySelectorAll("h1,h2,h3,h4,h5,h6,p,span"));if(f.length>0){var g=f[0];c(g).attr("tabindex","-1").css("outline","0"),g.focus()}}},getFocusableElements:function(a){var b=a[0],c=b.querySelectorAll(h),d=A.filterTabbableElements(c);return A.filterVisibleElements(d)},filterTabbableElements:function(a){for(var b=[],d=0;d<a.length;d++){var e=a[d];"-1"!==c(e).attr("tabindex")&&b.push(e)}return b},filterVisibleElements:function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c];(d.offsetWidth>0||d.offsetHeight>0)&&b.push(d)}return b},getActiveDialog:function(){var a=document.querySelectorAll(".ngdialog");return 0===a.length?null:c(a[a.length-1])},applyAriaAttributes:function(a,b){if(b.ariaAuto){if(!b.ariaRole){var c=A.getFocusableElements(a).length>0?"dialog":"alertdialog";b.ariaRole=c}b.ariaLabelledBySelector||(b.ariaLabelledBySelector="h1,h2,h3,h4,h5,h6"),b.ariaDescribedBySelector||(b.ariaDescribedBySelector="article,section,p")}b.ariaRole&&a.attr("role",b.ariaRole),A.applyAriaAttribute(a,"aria-labelledby",b.ariaLabelledById,b.ariaLabelledBySelector),A.applyAriaAttribute(a,"aria-describedby",b.ariaDescribedById,b.ariaDescribedBySelector)},applyAriaAttribute:function(a,b,d,e){if(d&&a.attr(b,d),e){var f=a.attr("id"),g=a[0].querySelector(e);if(!g)return;var h=f+"-"+b;return c(g).attr("id",h),a.attr(b,h),h}},detectUIRouter:function(){try{return a.module("ui.router"),!0}catch(b){return!1}},getRouterLocationEventName:function(){return A.detectUIRouter()?"$stateChangeSuccess":"$locationChangeSuccess"}},B={open:function(f){function g(a,b){return u.$broadcast("ngDialog.templateLoading",a),t.get(a,b||{}).then(function(b){return u.$broadcast("ngDialog.templateLoaded",a),b.data||""})}function h(b){return b?a.isString(b)&&j.plain?b:"boolean"!=typeof j.cache||j.cache?g(b,{cache:q}):g(b,{cache:!1}):"Empty template"}var j=a.copy(b),p=++e,C="ngdialog"+p;l.push(C),f=f||{},a.extend(j,f);var D;o[C]=D=s.defer();var E;k[C]=E=a.isObject(j.scope)?j.scope.$new():u.$new();var F,G,H=a.extend({},j.resolve);return a.forEach(H,function(b,c){H[c]=a.isString(b)?y.get(b):y.invoke(b,null,null,c)}),s.all({template:h(j.template||j.templateUrl),locals:s.all(H)}).then(function(b){var e=b.template,f=b.locals;j.showClose&&(e+='<div class="ngdialog-close"></div>');var g=j.overlay?"":" ngdialog-no-overlay";if(F=c('<div id="ngdialog'+p+'" class="ngdialog'+g+'"></div>'),F.html(j.overlay?'<div class="ngdialog-overlay"></div><div class="ngdialog-content" role="document">'+e+"</div>":'<div class="ngdialog-content" role="document">'+e+"</div>"),F.data("$ngDialogOptions",j),E.ngDialogId=C,j.data&&a.isString(j.data)){var h=j.data.replace(/^\s*/,"")[0];E.ngDialogData="{"===h||"["===h?a.fromJson(j.data):j.data,E.ngDialogData.ngDialogId=C}else j.data&&a.isObject(j.data)&&(E.ngDialogData=j.data,E.ngDialogData.ngDialogId=C);if(j.controller&&(a.isString(j.controller)||a.isArray(j.controller)||a.isFunction(j.controller))){var k;j.controllerAs&&a.isString(j.controllerAs)&&(k=j.controllerAs);var l=x(j.controller,a.extend(f,{$scope:E,$element:F}),null,k);F.data("$ngDialogControllerController",l)}if(j.className&&F.addClass(j.className),j.disableAnimation&&F.addClass(i),G=j.appendTo&&a.isString(j.appendTo)?a.element
1(document.querySelector(j.appendTo)):z.body,A.applyAriaAttributes(F,j),j.preCloseCallback){var o;a.isFunction(j.preCloseCallback)?o=j.preCloseCallback:a.isString(j.preCloseCallback)&&E&&(a.isFunction(E[j.preCloseCallback])?o=E[j.preCloseCallback]:E.$parent&&a.isFunction(E.$parent[j.preCloseCallback])?o=E.$parent[j.preCloseCallback]:u&&a.isFunction(u[j.preCloseCallback])&&(o=u[j.preCloseCallback])),o&&F.data("$ngDialogPreCloseCallback",o)}if(E.closeThisDialog=function(a){A.closeDialog(F,a)},v(function(){var a=document.querySelectorAll(".ngdialog");A.deactivateAll(a),r(F)(E);var b=w.innerWidth-z.body.prop("clientWidth");z.html.addClass("ngdialog-open"),z.body.addClass("ngdialog-open");var c=b-(w.innerWidth-z.body.prop("clientWidth"));c>0&&A.setBodyPadding(c),G.append(F),A.activate(F),j.trapFocus&&A.autoFocus(F),j.name?u.$broadcast("ngDialog.opened",{dialog:F,name:j.name}):u.$broadcast("ngDialog.opened",F)}),m||(z.body.bind("keydown",A.onDocumentKeydown),m=!0),j.closeByNavigation){var q=A.getRouterLocationEventName();u.$on(q,function(){A.closeDialog(F)})}if(j.preserveFocus&&F.data("$ngDialogPreviousFocus",document.activeElement),d=function(a){var b=j.closeByDocument?c(a.target).hasClass("ngdialog-overlay"):!1,d=c(a.target).hasClass("ngdialog-close");(b||d)&&B.close(F.attr("id"),d?"$closeButton":"$document")},"undefined"!=typeof w.Hammer){var s=E.hammerTime=w.Hammer(F[0]);s.on("tap",d)}else F.bind("click",d);return n+=1,B}),{id:C,closePromise:D.promise,close:function(a){A.closeDialog(F,a)}}},openConfirm:function(b){var d=s.defer(),e={closeByEscape:!1,closeByDocument:!1};a.extend(e,b),e.scope=a.isObject(e.scope)?e.scope.$new():u.$new(),e.scope.confirm=function(a){d.resolve(a);var b=c(document.getElementById(f.id));A.performCloseDialog(b,a)};var f=B.open(e);return f.closePromise.then(function(a){return a?d.reject(a.value):d.reject()}),d.promise},isOpen:function(a){var b=c(document.getElementById(a));return b.length>0},close:function(a,b){var d=c(document.getElementById(a));if(d.length)A.closeDialog(d,b);else if("$escape"===a){var e=l[l.length-1];d=c(document.getElementById(e)),d.data("$ngDialogOptions").closeByEscape&&A.closeDialog(d,b)}else B.closeAll(b);return B},closeAll:function(a){for(var b=document.querySelectorAll(".ngdialog"),d=b.length-1;d>=0;d--){var e=b[d];A.closeDialog(c(e),a)}},getOpenDialogs:function(){return l},getDefaults:function(){return b}};return B}]}),b.directive("ngDialog",["ngDialog",function(b){return{restrict:"A",scope:{ngDialogScope:"="},link:function(c,d,e){d.on("click",function(d){d.preventDefault();var f=a.isDefined(c.ngDialogScope)?c.ngDialogScope:"noScope";a.isDefined(e.ngDialogClosePrevious)&&b.close(e.ngDialogClosePrevious);var g=b.getDefaults();b.open({template:e.ngDialog,className:e.ngDialogClass||g.className,controller:e.ngDialogController,controllerAs:e.ngDialogControllerAs,bindToController:e.ngDialogBindToController,scope:f,data:e.ngDialogData,showClose:"false"===e.ngDialogShowClose?!1:"true"===e.ngDialogShowClose?!0:g.showClose,closeByDocument:"false"===e.ngDialogCloseByDocument?!1:"true"===e.ngDialogCloseByDocument?!0:g.closeByDocument,closeByEscape:"false"===e.ngDialogCloseByEscape?!1:"true"===e.ngDialogCloseByEscape?!0:g.closeByEscape,overlay:"false"===e.ngDialogOverlay?!1:"true"===e.ngDialogOverlay?!0:g.overlay,preCloseCallback:e.ngDialogPreCloseCallback||g.preCloseCallback})})}}}]),b});angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.position","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.stackedMap","ui.bootstrap.carousel"]),angular.module("ui.bootstrap.tpls",["uib/template/modal/backdrop.html","uib/template/modal/window.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html"]),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){var n,o,i={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},r={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},a=/(HTML|BODY)/;return{getRawNode:function(e){return e.nodeName?e:e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(n){function o(e){return"static"===(t.getComputedStyle(e).position||"static")}n=this.getRawNode(n);for(var i=n.offsetParent||e[0].documentElement;i&&i!==e[0].documentElement&&o(i);)i=i.offsetParent;return i||e[0].documentElement},scrollbarWidth:function(i){if(i){if(angular.isUndefined(o)){var r=e.find("body");r.addClass("uib-position-body-scrollbar-measure"),o=t.innerWidth-r[0].clientWidth,o=isFinite(o)?o:0,r.removeClass("uib-position-body-scrollbar-measure")}return o}if(angular.isUndefined(n)){var a=angular.element('<div class="uib-position-scrollbar-measure"></div>');e.find("body").append(a),n=a[0].offsetWidth-a[0].clientWidth,n=isFinite(n)?n:0,a.remove()}return n},scrollbarPadding:function(e){e=this.getRawNode(e);var n=t.getComputedStyle(e),o=this.parseStyle(n.paddingRight),i=this.parseStyle(n.paddingBottom),r=this.scrollParent(e,!1,!0),l=this.scrollbarWidth(r,a.test(r.tagName));return{scrollbarWidth:l,widthOverflow:r.scrollWidth>r.clientWidth,right:o+l,originalRight:o,heightOverflow:r.scrollHeight>r.clientHeight,bottom:i+l,originalBottom:i}},isScrollable:function(e,n){e=this.getRawNode(e);var o=n?i.hidden:i.normal,r=t.getComputedStyle(e);return o.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(n,o,r){n=this.getRawNode(n);var a=o?i.hidden:i.normal,l=e[0].documentElement,s=t.getComputedStyle(n);if(r&&a.test(s.overflow+s.overflowY+s.overflowX))return n;var d="absolute"===s.position,u=n.parentElement||l;if(u===l||"fixed"===s.position)return l;for(;u.parentElement&&u!==l;){var c=t.getComputedStyle(u);if(d&&"static"!==c.position&&(d=!1),!d&&a.test(c.overflow+c.overflowY+c.overflowX))break;u=u.parentElement}return u},position:function(n,o){n=this.getRawNode(n);var i=this.offset(n);if(o){var r=t.getComputedStyle(n);i.top-=this.parseStyle(r.marginTop),i.left-=this.parseStyle(r.marginLeft)}var a=this.offsetParent(n),l={top:0,left:0};return a!==e[0].documentElement&&(l=this.offset(a),l.top+=a.clientTop-a.scrollTop,l.left+=a.clientLeft-a.scrollLeft),{width:Math.round(angular.isNumber(i.width)?i.width:n.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:n.offsetHeight),top:Math.round(i.top-l.top),left
vendor: 2,112 bytes, line 1
1:Math.round(i.left-l.left)}},offset:function(n){n=this.getRawNode(n);var o=n.getBoundingClientRect();return{width:Math.round(angular.isNumber(o.width)?o.width:n.offsetWidth),height:Math.round(angular.isNumber(o.height)?o.height:n.offsetHeight),top:Math.round(o.top+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(o.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(n,o,i){n=this.getRawNode(n),i=i!==!1?!0:!1;var r=n.getBoundingClientRect(),a={top:0,left:0,bottom:0,right:0},l=o?e[0].documentElement:this.scrollParent(n),s=l.getBoundingClientRect();if(a.top=s.top+l.clientTop,a.left=s.left+l.clientLeft,l===e[0].documentElement&&(a.top+=t.pageYOffset,a.left+=t.pageXOffset),a.bottom=a.top+l.clientHeight,a.right=a.left+l.clientWidth,i){var d=t.getComputedStyle(l);a.top+=this.parseStyle(d.paddingTop),a.bottom-=this.parseStyle(d.paddingBottom),a.left+=this.parseStyle(d.paddingLeft),a.right-=this.parseStyle(d.paddingRight)}return{top:Math.round(r.top-a.top),bottom:Math.round(a.bottom-r.bottom),left:Math.round(r.left-a.left),right:Math.round(a.right-r.right)}},parsePlacement:function(e){var t=r.auto.test(e);return t&&(e=e.replace(r.auto,"")),e=e.split("-"),e[0]=e[0]||"top",r.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",r.secondary.test(e[1])||(e[1]="center"),e[2]=t?!0:!1,e},positionElements:function(e,n,o,i){e=this.getRawNode(e),n=this.getRawNode(n);var a=angular.isDefined(n.offsetWidth)?n.offsetWidth:n.prop("offsetWidth"),l=angular.isDefined(n.offsetHeight)?n.offsetHeight:n.prop("offsetHeight");o=this.parsePlacement(o);var s=i?this.offset(e):this.position(e),d={top:0,left:0,placement:""};if(o[2]){var u=this.viewportOffset(e,i),c=t.getComputedStyle(n),p={width:a+Math.round(Math.abs(this.parseStyle(c.marginLeft)+this.parseStyle(c.marginRight))),height:l+Math.round(Math.abs(this.parseStyle(c.marginTop)+this.parseStyle(c.marginBottom)))};if(o[0]="top"===o[0]&&p.height>u.top&&p.height<=u.bottom?"bottom":"bottom"===o[0]&&p.height>u.bottom&&p.height<=u.top?"top":"left"===o[0]&&p.width>u.left&&p.width<=u.right?"right":"right"===o[0]&&p.width>
1u.right&&p.width<=u.left?"left":o[0],o[1]="top"===o[1]&&p.height-s.height>u.bottom&&p.height-s.height<=u.top?"bottom":"bottom"===o[1]&&p.height-s.height>u.top&&p.height-s.height<=u.bottom?"top":"left"===o[1]&&p.width-s.width>u.right&&p.width-s.width<=u.left?"right":"right"===o[1]&&p.width-s.width>u.left&&p.width-s.width<=u.right?"left":o[1],"center"===o[1])if(r.vertical.test(o[0])){var f=s.width/2-a/2;u.left+f<0&&p.width-s.width<=u.right?o[1]="left":u.right+f<0&&p.width-s.width<=u.left&&(o[1]="right")}else{var h=s.height/2-p.height/2;u.top+h<0&&p.height-s.height<=u.bottom?o[1]="top":u.bottom+h<0&&p.height-s.height<=u.top&&(o[1]="bottom")}}switch(o[0]){case"top":d.top=s.top-l;break;case"bottom":d.top=s.top+s.height;break;case"left":d.left=s.left-a;break;case"right":d.left=s.left+s.width}switch(o[1]){case"top":d.top=s.top;break;case"bottom":d.top=s.top+s.height-l;break;case"left":d.left=s.left;break;case"right":d.left=s.left+s.width-a;break;case"center":r.vertical.test(o[0])?d.left=s.left+s.width/2-a/2:d.top=s.top+s.height/2-l/2}return d.top=Math.round(d.top),d.left=Math.round(d.left),d.placement="center"===o[1]?o[0]:o[0]+"-"+o[1],d},positionArrow:function(e,n){e=this.getRawNode(e);var o=e.querySelector(".tooltip-inner, .popover-inner");if(o){var i=angular.element(o).hasClass("tooltip-inner"),a=e.querySelector(i?".tooltip-arrow":".arrow");if(a){var l={top:"",bottom:"",left:"",right:""};if(n=this.parsePlacement(n),"center"===n[1])return void angular.element(a).css(l);var s="border-"+n[0]+"-width",d=t.getComputedStyle(a)[s],u="border-";u+=r.vertical.test(n[0])?n[0]+"-"+n[1]:n[1]+"-"+n[0],u+="-radius";var c=t.getComputedStyle(i?o:e)[u];switch(n[0]){case"top":l.bottom=i?"0":"-"+d;break;case"bottom":l.top=i?"0":"-"+d;break;case"left":l.right=i?"0":"-"+d;break;case"right":l.left=i?"0":"-"+d}l[n[1]]=c,angular.element(a).css(l)}}}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(e,t){var n=null;
1this.open=function(t,r){n||(e.on("click",o),r.on("keydown",i)),n&&n!==t&&(n.isOpen=!1),n=t},this.close=function(t,r){n===t&&(n=null,e.off("click",o),r.off("keydown",i))};var o=function(e){if(n&&!(e&&"disabled"===n.getAutoClose()||e&&3===e.which)){var o=n.getToggleElement();if(!(e&&o&&o[0].contains(e.target))){var i=n.getDropdownElement();e&&"outsideClick"===n.getAutoClose()&&i&&i[0].contains(e.target)||(n.isOpen=!1,t.$$phase||n.$apply())}}},i=function(e){27===e.which?(e.stopPropagation(),n.focusToggleElement(),o()):n.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&n.isOpen&&(e.preventDefault(),e.stopPropagation(),n.focusDropdownEntry(e.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(e,t,n,o,i,r,a,l,s,d,u){var c,p,f=this,h=e.$new(),m=i.appendToOpenClass,g=i.openClass,v=angular.noop,b=n.onToggle?o(n.onToggle):angular.noop,w=!1,$=null,C=!1,y=s.find("body");t.addClass("dropdown"),this.init=function(){if(n.isOpen&&(p=o(n.isOpen),v=p.assign,e.$watch(p,function(e){h.isOpen=!!e})),angular.isDefined(n.dropdownAppendTo)){var i=o(n.dropdownAppendTo)(h);i&&($=angular.element(i))}w=angular.isDefined(n.dropdownAppendToBody),C=angular.isDefined(n.keyboardNav),w&&!$&&($=y),$&&f.dropdownMenu&&($.append(f.dropdownMenu),t.on("$destroy",function(){f.dropdownMenu.remove()}))},this.toggle=function(e){return h.isOpen=arguments.length?!!e:!h.isOpen,angular.isFunction(v)&&v(h,h.isOpen),h.isOpen},this.isOpen=function(){return h.isOpen},h.getToggleElement=function(){return f.toggleElement},h.getAutoClose=function(){return n.autoClose||"always"},h.getElement=function(){return t},h.isKeynavEnabled=function(){return C},h.focusDropdownEntry=function(e){var n=f.dropdownMenu?angular.element(f.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(e){case 40:f.selectedOption=angular.isNumber(f.selectedOption)?f.selectedOption===n.length-1?f.selectedOption:f.selectedOption+1:0;break;case 38:f.selectedOption=angular.isNumber(f.selectedOption)?0===f.selectedOption?0:f.selectedOption-1:n.length-1}n[f.selectedOption].focus()},h.getDropdownElement=function(){return f.dropdownMenu},h.focusToggleElement=function(){f.toggleElement&&f.toggleElement[0].focus()},h.$watch("isOpen",function(n,o){if($&&f.dropdownMenu){var i,s,p,C=l.positionElements(t,f.dropdownMenu,"bottom-left",!0);if(i={top:C.top+"px",display:n?"block":"none"},s=f.dropdownMenu.hasClass("dropdown-menu-right"),s?(i.left="auto",p=l.scrollbarWidth(!0),i.right=window.innerWidth-p-(C.left+t.prop("offsetWidth"))+"px"):(i.left=C.left+"px",i.right="auto"),!w){var y=l.offset($);i.top=C.top-y.top+"px",s?i.right=window.innerWidth-(C.left-y.left+t.prop("offsetWidth"))+"px":i.left=C.left-y.left+"px"}f.dropdownMenu.css(i)}var k=$?$:t,x=k.hasClass($?m:g);if(x===!n&&a[n?"addClass":"removeClass"](k,$?m:g).then(function(){angular.isDefined(n)&&n!==o&&b(e,{open:!!n})}),n)f.dropdownMenuTemplateUrl&&u(f.dropdownMenuTemplateUrl).then(function(e){c=h.$new(),d(e.trim())(c,function(e){var t=e;f.dropdownMenu.replaceWith(t),f.dropdownMenu=t})}),h.focusToggleElement(),r.open(h,t);else{if(f.dropdownMenuTemplateUrl){c&&c.$destroy();var T=angular.element('<ul class="dropdown-menu"></ul>');f.dropdownMenu.replaceWith(T),f.dropdownMenu=T}r.close(h,t),f.selectedOption=null}angular.isFunction(v)&&v(e,n)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(e,t,n,o){o.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,o){if(o&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var i=n.templateUrl;i&&(o.dropdownMenuTemplateUrl=i),o.dropdownMenu||(o.dropdownMenu=t)}}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,t,n,o){if(o){t.addClass("dropdown-toggle"),o.toggleElement=t;var i=function(i){i.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply(function(){o.toggle()})};t.bind("click",i),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(o.isOpen,function(e){t.attr("aria-expanded",!!e)}),e.$on("$destroy",function(){t.unbind("click",i)})}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap","ui.bootstrap.position"]).factory("$$multiMap",function(){return{createNew:function(){var e={};return{entries:function(){return Object.keys(e).map(function(t){return{key:t,value:e[t]}})},get:function(t){return e[t]},hasKey:function(t){return!!e[t]},keys:function(){return Object.keys(e)},put:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},remove:function(t,n){var o=e[t];if(o){var i=o.indexOf(n);-1!==i&&o.splice(i,1),o.length||delete e[t]}}}}}}).provider("$uibResolve",function(){var e=this;this.resolver=null,this.setResolver=function(e){this.resolver=e},this.$get=["$injector","$q",function(t,n){var o=e.resolver?t.get(e.resolver):null;return{resolve:function(e,i,r,a){if(o)return o.resolve(e,i,r,a);var l=[];return angular.forEach(e,function(e){l.push(angular.isFunction(e)||angular.isArray(e)?n.resolve(t.invoke(e)):angular.isString(e)?n.resolve(t.get(e)):n.resolve(e))}),n.all(l).then(function(t){var n={},o=0;return angular.forEach(e,function(e,i){n[i]=t[o++]}),n})}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(e,t,n){function o(t,o,i){i.modalInClass&&(e.addClass(o,i.modalInClass),t.$on(n.NOW_CLOSING_EVENT,function(n,r){var a=r();t.modalOptions.animation?e.removeClass(o,i.modalInClass).then(a):a()}))}return{replace:!0,templateUrl:"uib/template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),o}}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(e,t,n,o){return{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(i,r,a){r.addClass(a.windowClass||""),r.addClass(a.windowTopClass||""),i.size=a.size,i.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},r.on("click",i.close),i.$isRendered=!0;var l=t.defer();a.$observe("modalRender",function(e){"true"===e&&l.resolve()}),l.promise.then(function(){var l=null;a.modalInClass&&(l=n(r,{addClass:a.modalInClass}).start(),i.$on(e.NOW_CLOSING_EVENT,function(e,t){var o=t();n(r,{removeClass:a.modalInClass}).start().then(o)})),t.when(l).then(function(){var t=e.getTop();if(t&&e.modalRendered(t.key),!o[0].activeElement||!r[0].contains(o[0].activeElement)){var n=r[0].querySelector("[autofocus]");n?n.focus():r[0].focus()}})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}}).directive("uibModalTransclude",function(){return{link:function(e,t,n,o,i){i(e.$parent,function(e){t.empty(),t.append(e)})}}}).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(e,t,n,o,i,r,a,l,s){function d(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function u(){for(var e=-1,t=C.keys(),n=0;n<t.length;n++)C.get(t[n]).value.backdrop&&(e=n);return e>-1&&x>e&&(e=x),e}function c(e,t){var n=C.get(e).value,o=n.appendTo;C.remove(e),T=C.top(),T&&(x=parseInt(T.value.modalDomEl.attr("index"),10)),h(n.modalDomEl,n.modalScope,function(){var t=n.openedClass||$;y.remove(t,e);var i=y.hasKey(t);o.toggleClass(t,i),!i&&w&&w.heightOverflow&&w.scrollbarWidth&&(o.css(w.originalRight?{paddingRight:w.originalRight+"px"}:{paddingRight:""}),w=null),p(!0)},n.closedDeferred),f(),t&&t.focus?t.focus():o.focus&&o.focus()}function p(e){var t;C.length()>0&&(t=C.top().value,t.modalDomEl.toggleClass(t.windowTopClass||"",e))}function f(){if(v&&-1===u()){var e=b;h(v,b,function(){e=null}),v=void 0,b=void 0}}function h(t,n,o,i){function a(){a.done||(a.done=!0,e.leave(t).then(function(){t.remove(),i&&i.resolve()}),n.$destroy(),o&&o())}var l,s=null,d=function(){return l||(l=r.defer(),s=l.promise),function(){l.resolve()}};return n.$broadcast(k.NOW_CLOSING_EVENT,d),r.when(s).then(a)}function m(e){if(e.isDefaultPrevented())return e;var t=C.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),i.$apply(function(){k.dismiss(t.key,"escape key press")}));break;case 9:var n=k.loadFocusElementList(t),o=!1;e.shiftKey?(k.isFocusInFirstItem(e,n)||k.isModalFocused(e,t))&&(o=k.focusLastFocusableElement(n)):k.isFocusInLastItem(e,n)&&(o=k.focusFirstFocusableElement(n)),o&&(e.preventDefault(),e.stopPropagation())}}function g(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}var v,b,w,$="modal-open",C=l.createNew(),y=a.createNew(),k={NOW_CLOSING_EVENT:"modal.stack.now-closing"}
1,x=0,T=null,E="a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]";return i.$watch(u,function(e){b&&(b.index=e)}),n.on("keydown",m),i.$on("$destroy",function(){n.off("keydown",m)}),k.open=function(t,r){var a=n[0].activeElement,l=r.openedClass||$;p(!1),T=C.top(),C.add(t,{deferred:r.deferred,renderDeferred:r.renderDeferred,closedDeferred:r.closedDeferred,modalScope:r.scope,backdrop:r.backdrop,keyboard:r.keyboard,openedClass:r.openedClass,windowTopClass:r.windowTopClass,animation:r.animation,appendTo:r.appendTo}),y.put(l,t);var d=r.appendTo,c=u();if(!d.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");c>=0&&!v&&(b=i.$new(!0),b.modalOptions=r,b.index=c,v=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>'),v.attr("backdrop-class",r.backdropClass),r.animation&&v.attr("modal-animation","true"),o(v)(b),e.enter(v,d),w=s.scrollbarPadding(d),w.heightOverflow&&w.scrollbarWidth&&d.css({paddingRight:w.right+"px"})),x=T?parseInt(T.value.modalDomEl.attr("index"),10)+1:0;var f=angular.element('<div uib-modal-window="modal-window"></div>');f.attr({"template-url":r.windowTemplateUrl,"window-class":r.windowClass,"window-top-class":r.windowTopClass,size:r.size,index:x,animate:"animate"}).html(r.content),r.animation&&f.attr("modal-animation","true"),d.addClass(l),e.enter(o(f)(r.scope),d),C.top().value.modalDomEl=f,C.top().value.modalOpener=a},k.close=function(e,t){var n=C.get(e);return n&&g(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),c(e,n.value.modalOpener),!0):!n},k.dismiss=function(e,t){var n=C.get(e);return n&&g(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),c(e,n.value.modalOpener),!0):!n},k.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},k.getTop=function(){return C.top()},k.modalRendered=function(e){var t=C.get(e);t&&t.value.renderDeferred.resolve()},k.focusFirstFocusableElement=function(e){return e.length>0?(e[0].focus(),!0):!1},k.focusLastFocusableElement=function(e){return e.length>0?(e[e.length-1].focus(),!0):!1},k.isModalFocused=function(e,t){if(e&&t){var n=t.value.modalDomEl;if(n&&n.length)return(e.target||e.srcElement)===n[0]}return!1},k.isFocusInFirstItem=function(e,t){return t.length>0?(e.target||e.srcElement)===t[0]:!1},k.isFocusInLastItem=function(e,t){return t.length>0?(e.target||e.srcElement)===t[t.length-1]:!1},k.loadFocusElementList=function(e){if(e){var t=e.value.modalDomEl;if(t&&t.length){var n=t[0].querySelectorAll(E);return n?Array.prototype.filter.call(n,function(e){return d(e)}):n}}},k}]).provider("$uibModal",function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,n,o,i,r,a,l){function s(e){return e.template?n.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}var d={},u=null;return d.getPromiseChain=function(){return u},d.open=function(i){function d(){return v}var c=n.defer(),p=n.defer(),f=n.defer(),h=n.defer(),m={result:c.promise,opened:p.promise,closed:f.promise,rendered:h.promise,close:function(e){return l.close(m,e)},dismiss:function(e){return l.dismiss(m,e)}};if(i=angular.extend({},e.options,i),i.resolve=i.resolve||{},i.appendTo=i.appendTo||o.find("body").eq(0),!i.template&&!i.templateUrl)throw new Error("One of template or templateUrl options is required.");var g,v=n.all([s(i),a.resolve(i.resolve,{},null,null)]);return g=u=n.all([u]).then(d,d).then(function(e){var n=i.scope||t,o=n.$new();o.$close=m.close,o.$dismiss=m.dismiss,o.$on("$destroy",function(){o.$$uibDestructionScheduled||o.$dismiss("$uibUnscheduledDestruction")});var a,s,d={};i.controller&&(d.$scope=o,d.$scope.$resolve={},d.$uibModalInstance=m,angular.forEach(e[1],function(e,t){d[t]=e,d.$scope.$resolve[t]=e}),s=r(i.controller,d,!0,i.controllerAs),i.controllerAs&&i.bindToController&&(a=s.instance,a.$close=o.$close,a.$dismiss=o.$dismiss,angular.extend(a,{$resolve:d.$scope.$resolve},n)),a=s(),angular.isFunction(a.$onInit)&&a.$onInit()),l.open(m,{scope:o,deferred:c,renderDeferred:h,closedDeferred:f,content:e[0],animation:i.animation,backdrop:i.backdrop,keyboard:i.keyboard,backdropClass:i.backdropClass,windowTopClass:i.windowTopClass,windowClass:i.windowClass,windowTemplateUrl:i.windowTemplateUrl,size:i.size,openedClass:i.openedClass,appendTo:i.appendTo}),p.resolve(!0)},function(e){p.reject(e),c.reject(e)})["finally"](function(){u===g&&(u=null)}),m},d}]};return e}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t===e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,o=0;o<e.length;o++)if(t===e[o].key){n=o;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$t
1imeout","$animate",function(e,t,n,o,i){function r(){for(;w.length;)w.shift()}function a(e){for(var t=0;t<g.length;t++)g[t].slide.active=t===e}function l(n,o,s){if(!$){if(angular.extend(n,{direction:s}),angular.extend(g[b].slide||{},{direction:s}),i.enabled(t)&&!e.$currentTransition&&g[o].element&&m.slides.length>1){g[o].element.data(v,n.direction);var d=m.getCurrentIndex();angular.isNumber(d)&&g[d].element&&g[d].element.data(v,n.direction),e.$currentTransition=!0,i.on("addClass",g[o].element,function(t,n){if("close"===n&&(e.$currentTransition=null,i.off("addClass",t),w.length)){var o=w.pop().slide,a=o.index,s=a>m.getCurrentIndex()?"next":"prev";r(),l(o,a,s)}})}e.active=n.index,b=n.index,a(o),c()}}function s(e){for(var t=0;t<g.length;t++)if(g[t].slide===e)return t}function d(){f&&(n.cancel(f),f=null)}function u(t){t.length||(e.$currentTransition=null,r())}function c(){d();var t=+e.interval;!isNaN(t)&&t>0&&(f=n(p,t))}function p(){var t=+e.interval;h&&!isNaN(t)&&t>0&&g.length?e.next():e.pause()}var f,h,m=this,g=m.slides=e.slides=[],v="uib-slideDirection",b=e.active,w=[],$=!1;m.addSlide=function(t,n){g.push({slide:t,element:n}),g.sort(function(e,t){return+e.slide.index-+t.slide.index}),(t.index===e.active||1===g.length&&!angular.isNumber(e.active))&&(e.$currentTransition&&(e.$currentTransition=null),b=t.index,e.active=t.index,a(b),m.select(g[s(t)]),1===g.length&&e.play())},m.getCurrentIndex=function(){for(var e=0;e<g.length;e++)if(g[e].slide.index===b)return e},m.next=e.next=function(){var t=(m.getCurrentIndex()+1)%g.length;return 0===t&&e.noWrap()?void e.pause():m.select(g[t],"next")},m.prev=e.prev=function(){var t=m.getCurrentIndex()-1<0?g.length-1:m.getCurrentIndex()-1;return e.noWrap()&&t===g.length-1?void e.pause():m.select(g[t],"prev")},m.removeSlide=function(t){var n=s(t),o=w.indexOf(g[n]);-1!==o&&w.splice(o,1),g.splice(n,1),g.length>0&&b===n?n>=g.length?(b=g.length-1,e.active=b,a(b),m.select(g[g.length-1])):(b=n,e.active=b,a(b),m.select(g[n])):b>n&&(b--,e.active=b),0===g.length&&(b=null,e.active=null,r())},m.select=e.select=function(t,n){var o=s(t.slide);void 0===n&&(n=o>m.getCurrentIndex()?"next":"prev"),t.slide.index===b||e.$currentTransition?t&&t.slide.index!==b&&e.$currentTransition&&w.push(g[o]):l(t.slide,o,n)},e.indexOfSlide=function(e){return+e.slide.index},e.isActive=function(t){return e.active===t.slide.index},e.isPrevDisabled=function(){return 0===e.active&&e.noWrap()},e.isNextDisabled=function(){return e.active===g.length-1&&e.noWrap()},e.pause=function(){e.noPause||(h=!1,d())},e.play=function(){h||(h=!0,c())},e.$on("$destroy",function(){$=!0,d()}),e.$watch("noTransition",function(e){i.enabled(t,!e)}),e.$watch("interval",c),e.$watchCollection("slides",u),e.$watch("active",function(e){if(angular.isNumber(e)&&b!==e){for(var t=0;t<g.length;t++)if(g[t].slide.index===e){e=t;break}var n=g[e];n&&(a(e),m.select(g[e]),b=e)}})}]).directive("uibCarousel",function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",function(){return{require:"^uibCarousel",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(e,t,n,o){o.addSlide(e,t),e.$on("$destroy",function(){o.removeSlide(e)})}}}).animation(".item",["$animateCss",function(e){function t(e,t,n){e.removeClass(t),n&&n()}var n="uib-slideDirection";return{beforeAddClass:function(o,i,r){if("active"===i){var a=!1,l=o.data(n),s="next"===l?"left":"right",d=t.bind(this,o,s+" "+l,r);return o.addClass(l),e(o,{addClass:s}).start().done(d),function(){a=!0}}r()},beforeRemoveClass:function(o,i,r){if("active"===i){var a=!1,l=o.data(n),s="next"===l?"left":"right",d=t.bind(this,o,s,r);return e(o,{addClass:s}).start().done(d),function(){a=!0}}r()}}}]),angular.module("uib/template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/backdrop.html",'<div class="modal-backdrop"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">
1\n <div class="modal-dialog {{size ? \'modal-\' + size : \'\'}}"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n <div class="carousel-inner" ng-transclude></div>\n <a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n <span class="sr-only">previous</span>\n </a>\n <a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n <span class="sr-only">next</span>\n </a>\n <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">
1\n <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n </li>\n </ol>\n</div>\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/slide.html",'<div ng-class="{\n \'active\': active\n }" class="item text-center" ng-transclude></div>\n')}]),angular.module("ui.bootstrap.position").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.carousel").run(function(){!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.$$uibCarouselCss=!0});!function(a,b,c){"use strict";function d(b){if(this.support=!("undefined"==typeof File||"undefined"==typeof Blob||"undefined"==typeof FileList||!Blob.prototype.slice&&!Blob.prototype.webkitSlice&&!Blob.prototype.mozSlice),this.support){this.supportDirectory=/Chrome/.test(a.navigator.userAgent),this.files=[],this.defaults={chunkSize:1048576,forceChunkSize:!1,simultaneousUploads:3,singleFile:!1,fileParameterName:"file",progressCallbacksInterval:500,speedSmoothingFactor:.1,query:{},headers:{},withCredentials:!1,preprocess:null,method:"multipart",testMethod:"GET",uploadMethod:"POST",prioritizeFirstAndLastChunk:!1,allowDuplicateUploads:!1,target:"/",testChunks:!0,generateUniqueIdentifier:null,maxChunkRetries:0,chunkRetryInterval:null,permanentErrors:[404,415,500,501],successStatuses:[200,201,202],onDropStopPropagation:!1,initFileFn:null,readFileFn:f},this.opts={},this.events={};var c=this;this.onDrop=function(a){c.opts.onDropStopPropagation&&a.stopPropagation(),a.preventDefault();var b=a.dataTransfer;b.items&&b.items[0]&&b.items[0].webkitGetAsEntry?c.webkitReadDataTransfer(a):c.addFiles(b.files,a)},this.preventEvent=function(a){a.preventDefault()},this.opts=d.extend({},this.defaults,b||{})}}function e(a,b){this.flowObj=a,this.bytes=null,this.file=b,this.name=b.fileName||b.name,this.size=b.size,this.relativePath=b.relativePath||b.webkitRelativePath||this.name,this.uniqueIdentifier=a.generateUniqueIdentifier(b),this.chunks=[],this.paused=!1,this.error=!1,this.averageSpeed=0,this.currentSpeed=0,this._lastProgressCallback=Date.now(),this._prevUploadedSize=0,this._prevProgress=0,this.bootstrap()}function f(a,b,c,d,e){var f="slice";a.file.slice?f="slice":a.file.mozSlice?f="mozSlice":a.file.webkitSlice&&(f="webkitSlice"),e.readFinished(a.file[f](b,c,d))}function g(a,b,c){this.flowObj=a,this.fileObj=b,this.offset=c,this.tested=!1,this.retries=0,this.pendingRetry=!1,this.preprocessState=0,this.readState=0,this.loaded=0,this.total=0,this.chunkSize=this.flowObj.opts.chunkSize,this.startByte=this.offset*this.chunkSize,this.computeEndByte=function(){var a=Math.min(this.fileObj.size,(this.offset+1)*this.chunkSize);return this.fileObj.size-a<this.chunkSize&&!this.flowObj.opts.forceChunkSize&&(a=this.fileObj.size),a},this.endByte=this.computeEndByte(),this.xhr=null;var d=this;this.event=function(a,b){b=Array.prototype.slice.call(arguments),b.unshift(d),d.fileObj.chunkEvent.apply(d.fileObj,b)},this.progressHandler=function(a){a.lengthComputable&&(d.loaded=a.loaded,d.total=a.total),d.event("progress",a)},this.testHandler=function(a){var b=d.status(!0);"error"===b?(d.event(b,d.message()),d.flowObj.uploadNextChunk()):"success"===b?(d.tested=!0,d.event(b,d.message()),d.flowObj.uploadNextChunk()):d.fileObj.paused||(d.tested=!0,d.send())},this.doneHandler=function(a){var b=d.status();if("success"===b||"error"===b)delete this.data,d.event(b,d.message()),d.flowObj.uploadNextChunk();else{d.event("retry",d.message()),d.pendingRetry=!0,d.abort(),d.retries++;var c=d.flowObj.opts.chunkRetryInterval;null!==c?setTimeout(function(){d.send()}
vendor: 13,581 bytes, line 1
1,c):d.send()}}}function h(a,b){var c=a.indexOf(b);c>-1&&a.splice(c,1)}function i(a,b){return"function"==typeof a&&(b=Array.prototype.slice.call(arguments),a=a.apply(null,b.slice(1))),a}function j(a,b){setTimeout(a.bind(b),0)}function k(a,b){return l(arguments,function(b){b!==a&&l(b,function(b,c){a[c]=b})}),a}function l(a,b,c){if(a){var d;if("undefined"!=typeof a.length){for(d=0;d<a.length;d++)if(b.call(c,a[d],d)===!1)return}else for(d in a)if(a.hasOwnProperty(d)&&b.call(c,a[d],d)===!1)return}}var m=a.navigator.msPointerEnabled;d.prototype={on:function(a,b){a=a.toLowerCase(),this.events.hasOwnProperty(a)||(this.events[a]=[]),this.events[a].push(b)},off:function(a,b){a!==c?(a=a.toLowerCase(),b!==c?this.events.hasOwnProperty(a)&&h(this.events[a],b):delete this.events[a]):this.events={}},fire:function(a,b){b=Array.prototype.slice.call(arguments),a=a.toLowerCase();var c=!1;return this.events.hasOwnProperty(a)&&l(this.events[a],function(a){c=a.apply(this,b.slice(1))===!1||c},this),"catchall"!=a&&(b.unshift("catchAll"),c=this.fire.apply(this,b)===!1||c),!c},webkitReadDataTransfer:function(a){function b(a){a.readEntries(function(f){f.length?(g+=f.length,l(f,function(a){if(a.isFile){var e=a.fullPath;a.file(function(a){c(a,e)},d)}else a.isDirectory&&b(a.createReader())}),b(a)):e()},d)}function c(a,b){a.relativePath=b.substring(1),h.push(a),e()}function d(a){throw a}function e(){0==--g&&f.addFiles(h,a)}var f=this,g=a.dataTransfer.items.length,h=[];l(a.dataTransfer.items,function(a){var d=a.webkitGetAsEntry();return d?void(d.isFile?c(a.getAsFile(),d.fullPath):b(d.createReader())):void e()})},generateUniqueIdentifier:function(a){var b=this.opts.generateUniqueIdentifier;if("function"==typeof b)return b(a);var c=a.relativePath||a.webkitRelativePath||a.fileName||a.name;return a.size+"-"+c.replace(/[^0-9a-zA-Z_-]/gim,"")},uploadNextChunk:function(a){var b=!1;if(this.opts.prioritizeFirstAndLastChunk&&(l(this.files,function(a){return!a.paused&&a.chunks.length&&"pending"===a.chunks[0].status()?(a.chunks[0].send(),b=!0,!1):!a.paused&&a.chunks.length>1&&"pending"===a.chunks[a.chunks.length-1].status()?(a.chunks[a.chunks.length-1].send(),b=!0,!1):void 0}),b))return b;if(l(this.files,function(a){return a.paused||l(a.chunks,function(a){return"pending"===a.status()?(a.send(),b=!0,!1):void 0}),b?!1:void 0}),b)return!0;var c=!1;return l(this.files,function(a){return a.isComplete()?void 0:(c=!0,!1)}),c||a||j(function(){this.fire("complete")},this),!1},assignBrowse:function(a,c,d,e){"undefined"==typeof a.length&&(a=[a]),l(a,function(a){var f;"INPUT"===a.tagName&&"file"===a.type?f=a:(f=b.createElement("input"),f.setAttribute("type","file"),k(f.style,{visibility:"hidden",position:"absolute",width:"1px",height:"1px"}),a.appendChild(f),a.addEventListener("click",function(){f.click()},!1)),this.opts.singleFile||d||f.setAttribute("multiple","multiple"),c&&f.setAttribute("webkitdirectory","webkitdirectory"),l(e,function(a,b){f.setAttribute(b,a)});var g=this;f.addEventListener("change",function(a){a.target.value&&(g.addFiles(a.target.files,a),a.target.value="")},!1)},this)},assignDrop:function(a){"undefined"==typeof a.length&&(a=[a]),l(a,function(a){a.addEventListener("dragover",this.preventEvent,!1),a.addEventListener("dragenter",this.preventEvent,!1),a.addEventListener("drop",this.onDrop,!1)},this)},unAssignDrop:function(a){"undefined"==typeof a.length&&(a=[a]),l(a,function(a){a.removeEventListener("dragover",this.preventEvent),a.removeEventListener("dragenter",this.preventEvent),a.removeEventListener("drop",this.onDrop)},this)},isUploading:function(){var a=!1;return l(this.files,function(b){return b.isUploading()?(a=!0,!1):void 0}),a},_shouldUploadNext:function(){var a=0,b=!0,c=this.opts.simultaneousUploads;return l(this.files,function(d){l(d.chunks,function(d){return"uploading"===d.status()&&(a++,a>=c)?(b=!1,!1):void 0})}),b&&a},upload:function(){var a=this._shouldUploadNext();if(a!==!1){this.fire("uploadStart");for(var b=!1,c=1;c<=this.opts.simultaneousUploads-a;c++)b=this.uploadNextChunk(!0)||b;b||j(function(){this.fire("complete")},this)}},resume:function(){l(this.files,function(a){a.resume()})},pause:function(){l(this.files,function(a){a.pause()})},cancel:function(){for(var a=this.files.length-1;a>=0;a--)this.files[a].cancel()},progress:function(){var a=0,b=0;return l(this.files,function(c){a+=c.progress()*c.size,b+=c.size}),b>0?a/b:0},addFile:function(a,b){this.addFiles([a],b)},addFiles:function(a,b){var c=[];l(a,function(a){if((!m||m&&a.size>0)&&(a.size%4096!==0||"."!==a.name&&"."!==a.fileName)&&(this.opts.allowDuplicateUploads||!this.getFromUniqueIdentifier(this.generateUniqueIdentifier(a)))){var d=new e(this,a);this.fire("fileAdded",d,b)&&c.push(d)}},this),this.fire("filesAdded",c,b)&&l(c,function(a){this.opts.singleFile&&this.files.length>0&&this.removeFile(this.files[0]),this.files.push(a)},this),this.fire("filesSubmitted",c,b)},removeFile:function(a){for(var b=this.files.length-1;b>=0;b--)this.files[b]===a&&(this.files.splice(b,1),a.abort())},getFromUniqueIdentifier:function(a){var b=!1;return l(this.files,function(c){c.uniqueIdentifier===a&&(b=c)}),b},getSize:function(){var a=0;return l(this.files,function(b){a+=b.size}),a},sizeUploaded:function(){var a=0;return l(this.files,function(b){a+=b.sizeUploaded()}),a},timeRemaining:function(){var a=0,b=0;return l(this.files,function(c){c.paused||c.error||(a+=c.size-c.sizeUploaded(),b+=c.averageSpeed)}),a&&!b?Number.POSITIVE_INFINITY:a||b?Math.floor(a/b):0}},e.prototype={measureSpeed:function(){var a=Date.now()-this._lastProgressCallback;if(a){var b=this.flowObj.opts.speedSmoothingFactor,c=this.sizeUploaded();this.currentSpeed=Math.max((c-this._prevUploadedSize)/a*1e3,0),this.averageSpeed=b*this.currentSpeed+(1-b)*this.averageSpeed,this._prevUploadedSize=c}},chunkEvent:function(a,b,c){switch(b){case"progress":if(Date.now()-this._lastProgressCallback<this.flowObj.opts.progressCallbacksInterval)break;this.measureSpeed(),this.flowObj.fire("fileProgress",this,a),this.flowObj.fire("progress"),this._lastProgressCallback=Date.now();break;case"error":this.error=!0,this.abort(!0),this.flowObj.fire("fileError",this,c,a),this.flowObj.fire("error",c,this,a);break;case"success":if(this.error)return;this.measureSpeed(),this.flowObj.fire("fileProgress",this,a),this.flowObj.fire("progress"),this._lastProgressCallback=Date.now(),this.isComplete()&&(this.currentSpeed=0,this.averageSpeed=0,this.flowObj.fire("fileSuccess",this,c,a));break;case"retry":this.flowObj.fire("fileRetry",this,a)}},pause:function(){this.paused=!0,this.abort()},resume:function(){this.paused=!1,this.flowObj.upload()},abort:function(a){this.currentSpeed=0,this.averageSpeed=0;var b=this.chunks;a&&(this.chunks=[]),l(b,function(a){"uploading"===a.status()&&(a.abort(),this.flowObj.uploadNextChunk())},this)},cancel:function(){this.flowObj.removeFile(this)},retry:function(){this.bootstrap(),this.flowObj.upload()},bootstrap:function(){"function"==typeof this.flowObj.opts.initFileFn&&this.flowObj.opts.initFileFn(this),this.abort(!0),this.error=!1,this._prevProgress=0;for(var a=this.flowObj.opts.forceChunkSize?Math.ceil:Math.floor,b=Math.max(a(this.size/this.flowObj.opts.chunkSize),1),c=0;b>c;c++)this.chunks.push(new g(this.flowObj,this,c))},progress:function(){if(this.error)return 1;if(1===this.chunks.length)return this._prevProgress=Math.max(this._prevProgress,this.chunks[0].progress()),this._prevProgress;var a=0;l(this.chunks,function(b){a+=b.progress()*(b.endByte-b.startByte)});var b=a/this.size;return this._prevProgress=Math.max(this._prevProgress,b>.9999?1:b),this._prevProgress},isUploading:function(){var a=!1;return l(this.chunks,function(b){return"uploading"===b.status()?(a=!0,!1):void 0}),a},isComplete:function(){var a=!1;return l(this.chunks,function(b){var c=b.status();return"pending"===c||"uploading"===c||"reading"===c||1===b.preprocessState||1===b.readState?(a=!0,!1):void 0}),!a},sizeUploaded:function(){var a=0;return l(this.chunks,function(b){a+=b.sizeUploaded()}),a},timeRemaining:function(){if(this.paused||this.error)return 0;var a=this.size-this.sizeUploaded();return a&&!this.averageSpeed?Number.POSITIVE_INFINITY:a||this.averageSpeed?Math.floor(a/this.averageSpeed):0},getType:function(){return this.file.type&&this.file.type.split("/")[1]},getExtension:function(){return this.name.substr((~-this.name.lastIndexOf(".")>>>0)+2).toLowerCase()}},g.prototype={getParams:function(){return{flowChunkNumber:this.offset+1,flowChunkSize:this.flowObj.opts.chunkSize,flowCurrentChunkSize:this.endByte-this.startByte,flowTotalSize:this.fileObj.size,flowIdentifier:this.fileObj.uniqueIdentifier,flowFilename:this.fileObj.name,flowRelativePath:this.fileObj.relativePath,flowTotalChunks:this.fileObj.chunks.length}},getTarget:function(a,b){return a+=a.indexOf("?")<0?"?":"&",a+b.join("&")},test:function(){this.xhr=new XMLHttpRequest,this.xhr.addEventListener("load",this.testHandler,!1),this.xhr.addEventListener("error",this.testHandler,!1);var a=i(this.flowObj.opts.testMethod,this.fileObj,this),b=this.prepareXhrRequest(a,!0);this.xhr.send(b)},preprocessFinished:function(){this.endByte=this.computeEndByte(),this.preprocessState=2,this.send()},readFinished:function(a){this.readState=2,this.bytes=a,this.send()},send:function(){var a=this.flowObj.opts.preprocess,b=this.flowObj.opts.readFileFn;if("function"==typeof a)switch(this.preprocessState){case 0:return this.preprocessState=1,void a(this);case 1:return}switch(this.readState){case 0:return this.readState=1,void b(this.fileObj,this.startByte,this.endByte,this.fileType,this);case 1:return}if(this.flowObj.opts.testChunks&&!this.tested)return void this.test();this.loaded=0,this.total=0,this.pendingRetry=!1,this.xhr=new XMLHttpRequest,this.xhr.upload.addEventListener("progress",this.progressHandler,!1),this.xhr.addEventListener("load",this.doneHandler,!1),this.xhr.addEventListener("error",this.doneHandler,!1);var c=i(this.flowObj.opts.uploadMethod,this.fileObj,this),d=this.prepareXhrRequest(c,!1,this.flowObj.opts.method,this.bytes);this.xhr.send(d)},abort:function(){var a=this.xhr;this.xhr=null,a&&a.abort()},status:function(a){return 1===this.readState?"reading":this.pendingRetry||1===this.preprocessState?"uploading":this.xhr?this.xhr.readyState<4?"uploading":this.flowObj.opts.successStatuses.indexOf(this.xhr.status)>-1?"success":this.flowObj.opts.permanentErrors.indexOf(this.xhr.status)>-1||!a&&this.retries>=this.flowObj.opts.maxChunkRetries?"error":(this.abort(),"pending"):"pending"},message:function(){return this.xhr?this.xhr.responseText:""},progress:function(){if(this.pendingRetry)return 0;var a=this.status();return"success"===a||"error"===a?1:"pending"===a?0:this.total>0?this.loaded/this.total:0},sizeUploaded:function(){var a=this.endByte-this.startByte;return"success"!==this.status()&&(a=this.progress()*a),a},prepareXhrRequest:function(a,b,c,d){var e=i(this.flowObj.opts.query,this.fileObj,this,b);e=k(e,this.getParams());var f=i(this.flowObj.opts.target,this.fileObj,this,b),g=null;if("GET"===a||"octet"===c){var h=[];l(e,function(a,b){h.push([encodeURIComponent(b),encodeURIComponent(a)].join("="))}),f=this.getTarget(f,h),g=d||null}else g=new FormData,l(e,function(a,b){g.append(b,a)}),g.append(this.flowObj.opts.fileParameterName,d,this.fileObj.file.name);return this.xhr.open(a,f,!0),this.xhr.withCredentials=this.flowObj.opts.withCredentials,l(i(this.flowObj.opts.headers,this.fileObj,this,b),function(a,b){this.xhr.setRequestHeader(b,a)},this),g}},d.evalOpts=i,d.extend=k,d.each=l,d.FlowFile=e,d.FlowChunk=g,d.version="2.10.1","object"==typeof module&&module&&"object"==typeof module.exports?module.exports=d:(a.Flow=d,"function"==typeof define&&define.amd&&define("flow",[],function(){return d}))}(window,document),angular.module("flow.provider",[]).provider("flowFactory",function(){"use strict";this.defaults={},this.factory=function(a){return new Flow(a)},this.events=[],this.on=function(a,b){this.events.push([a,b])},this.$get=function(){var a=this.factory,b=this.defaults,c=this.events;return{create:function(d){var e=a(angular.extend({},b,d));return angular.forEach(c,function(a){e.on(a[0],a[1])}),e}}}}),angular.module("flow.init",["flow.provider"]).controller("flowCtrl",["$scope","$attrs","$parse","flowFactory",function(a,b,c,d){var e=angular.extend({},a.$eval(b.flowInit)),f=a.$eval(b.flowObject)||d.create(e),g=function(b){var c=Array.prototype.slice.call(arguments);c.shift();var d=a.$broadcast.apply(a,["flow::"+b,f].concat(c));return{progress:1,filesSubmitted:1,fileSuccess:1,fileError:1,complete:1}[b]&&a.$apply(),d.defaultPrevented?!1:void 0};f.on("catchAll",g),a.$on("$destroy",function(){f.off("catchAll",g)}),a.$flow=f,b.hasOwnProperty("flowName")&&(c(b.flowName).assign(a,f),a.$on("$destroy",function(){c(b.flowName).assign(a)}))}]).directive("flowInit",[function(){return{scope:!0,controller:"flowCtrl"}}]),angular.module("flow.btn",["flow.init"]).directive("flowBtn",[function(){return{restrict:"EA",scope:!1,require:"^flowInit",link:function(a,b,c){var d=c.hasOwnProperty("flowDirectory"),e=c.hasOwnProperty("flowSingleFile"),f=c.hasOwnProperty("flowAttrs")&&a.$eval(c.flowAttrs);a.$flow.assignBrowse(b,d,e,f)}}}]),angular.module("flow.dragEvents",["flow.init"]).directive("flowPreventDrop",function(){return{scope:!1,link:function(a,b,c){b.bind("drop dragover",function(a){a.preventDefault()})}}}).directive("flowDragEnter",["$timeout",function(a){return{scope:!1,link:function(b,c,d){function e(a){var b=!1,c=a.dataTransfer||a.originalEvent.dataTransfer;return angular.forEach(c&&c.types,function(a){"Files"===a&&(b=!0)}),b}var f,g=!1;
1c.bind("dragover",function(c){e(c)&&(g||(b.$apply(d.flowDragEnter),g=!0),a.cancel(f),c.preventDefault())}),c.bind("dragleave drop",function(c){a.cancel(f),f=a(function(){b.$eval(d.flowDragLeave),f=null,g=!1},100)})}}}]),angular.module("flow.drop",["flow.init"]).directive("flowDrop",function(){return{scope:!1,require:"^flowInit",link:function(a,b,c){function d(){a.$flow.assignDrop(b)}function e(){a.$flow.unAssignDrop(b)}c.flowDropEnabled?a.$watch(c.flowDropEnabled,function(a){a?d():e()}):d()}}}),!function(a){"use strict";function b(a){return a.charAt(0).toUpperCase()+a.slice(1)}var c=a.module("flow.events",["flow.init"]),d={fileSuccess:["$file","$message"],fileProgress:["$file"],fileAdded:["$file","$event"],filesAdded:["$files","$event"],filesSubmitted:["$files","$event"],fileRetry:["$file"],fileError:["$file","$message"],uploadStart:[],complete:[],progress:[],error:["$message","$file"]};a.forEach(d,function(d,e){var f="flow"+b(e);"flowUploadStart"==f&&(f="flowUploadStarted"),c.directive(f,[function(){return{require:"^flowInit",controller:["$scope","$attrs",function(b,c){b.$on("flow::"+e,function(){var e=Array.prototype.slice.call(arguments),g=e.shift();if(b.$flow===e.shift()){var h={};a.forEach(d,function(a,b){h[a]=e[b]}),b.$eval(c[f],h)===!1&&g.preventDefault()}})}]}}])})}(angular),angular.module("flow.img",["flow.init"]).directive("flowImg",[function(){return{scope:!1,require:"^flowInit",link:function(a,b,c){var d=c.flowImg;a.$watch(d,function(b){if(b){var d=new FileReader;d.readAsDataURL(b.file),d.onload=function(b){a.$apply(function(){c.$set("src",b.target.result)})}}})}}}]),angular.module("flow.transfers",["flow.init"]).directive("flowTransfers",[function(){return{scope:!0,require:"^flowInit",link:function(a){a.transfers=a.$flow.files}}}]),angular.module("flow",["flow.provider","flow.init","flow.events","flow.btn","flow.drop","flow.transfers","flow.img","flow.dragEvents"]);!function(e){"use strict";var t=function(e,i,a){var o,r,n=document.createElement("img");if(n.onerror=i,n.onload=function(){!r||a&&a.noRevoke||t.revokeObjectURL(r),i&&i(t.scale(n,a))},t.isInstanceOf("Blob",e)||t.isInstanceOf("File",e))o=r=t.createObjectURL(e),n._type=e.type;else{if("string"!=typeof e)return!1;o=e,a&&a.crossOrigin&&(n.crossOrigin=a.crossOrigin)}return o?(n.src=o,n):t.readFile(e,function(e){var t=e.target;t&&t.result?n.src=t.result:i&&i(e)})},i=window.createObjectURL&&window||window.URL&&URL.revokeObjectURL&&URL||window.webkitURL&&webkitURL;t.isInstanceOf=function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},t.transformCoordinates=function(){},t.getTransformedOptions=function(e,t){var i,a,o,r,n=t.aspectRatio;if(!n)return t;i={};for(a in t)t.hasOwnProperty(a)&&(i[a]=t[a]);return i.crop=!0,o=e.naturalWidth||e.width,r=e.naturalHeight||e.height,o/r>n?(i.maxWidth=r*n,i.maxHeight=r):(i.maxWidth=o,i.maxHeight=o/n),i},t.renderImageToCanvas=function(e,t,i,a,o,r,n,s,l,d){return e.getContext("2d").drawImage(t,i,a,o,r,n,s,l,d),e},t.hasCanvasOption=function(e){return e.canvas||e.crop||!!e.aspectRatio},t.scale=function(e,i){function a(){var e=Math.max((s||y)/y,(l||v)/v);e>1&&(y*=e,v*=e)}function o(){var e=Math.min((r||y)/y,(n||v)/v);1>e&&(y*=e,v*=e)}i=i||{};var r,n,s,l,d,u,c,g,f,h,m,p=document.createElement("canvas"),S=e.getContext||t.hasCanvasOption(i)&&p.getContext,b=e.naturalWidth||e.width,x=e.naturalHeight||e.height,y=b,v=x;if(S&&(i=t.getTransformedOptions(e,i),c=i.left||0,g=i.top||0,i.sourceWidth?(d=i.sourceWidth,void 0!==i.right&&void 0===i.left&&(c=b-d-i.right)):d=b-c-(i.right||0),i.sourceHeight?(u=i.sourceHeight,void 0!==i.bottom&&void 0===i.top&&(g=x-u-i.bottom)):u=x-g-(i.bottom||0),y=d,v=u),r=i.maxWidth,n=i.maxHeight,s=i.minWidth,l=i.minHeight,S&&r&&n&&i.crop?(y=r,v=n,m=d/u-r/n,0>m?(u=n*d/r,void 0===i.top&&void 0===i.bottom&&(g=(x-u)/2)):m>0&&(d=r*u/n,void 0===i.left&&void 0===i.right&&(c=(b-d)/2))):((i.contain||i.cover)&&(s=r=r||s,l=n=n||l),i.cover?(o(),a()):(a(),o())),S){if(f=i.pixelRatio,f>1&&(p.style.width=y+"px",p.style.height=v+"px",y*=f,v*=f,p.getContext("2d").scale(f,f)),h=i.downsamplingRatio,h>0&&1>h&&d>y&&u>v)for(;d*h>y;)p.width=d*h,p.height=u*h,t.renderImageToCanvas(p,e,c,g,d,u,0,0,p.width,p.height),d=p.width,u=p.height,e=document.createElement("canvas"),e.width=d,e.height=u,t.renderImageToCanvas(e,p,0,0,d,u,0,0,d,u);return p.width=y,p.height=v,t.transformCoordinates(p,i),t.renderImageToCanvas(p,e,c,g,d,u,0,0,y,v)}return e.width=y,e.height=v,e},t.createObjectURL=function(e){return i?i.createObjectURL(e):!1},t.revokeObjectURL=function(e){return i?i.revokeObjectURL(e):!1},t.readFile=function(e,t,i){if(window.FileReader){var a=new FileReader;
1if(a.onload=a.onerror=t,i=i||"readAsDataURL",a[i])return a[i](e),a}return!1},"function"==typeof define&&define.amd?define(function(){return t}):"object"==typeof module&&module.exports?module.exports=t:e.loadImage=t}(window),function(e){"use strict";"function"==typeof define&&define.amd?define(["./load-image"],e):e("object"==typeof module&&module.exports?require("./load-image"):window.loadImage)}(function(e){"use strict";var t=e.hasCanvasOption,i=e.transformCoordinates,a=e.getTransformedOptions;e.hasCanvasOption=function(i){return!!i.orientation||t.call(e,i)},e.transformCoordinates=function(t,a){i.call(e,t,a);var o=t.getContext("2d"),r=t.width,n=t.height,s=t.style.width,l=t.style.height,d=a.orientation;if(d&&!(d>8))switch(d>4&&(t.width=n,t.height=r,t.style.width=l,t.style.height=s),d){case 2:o.translate(r,0),o.scale(-1,1);break;case 3:o.translate(r,n),o.rotate(Math.PI);break;case 4:o.translate(0,n),o.scale(1,-1);break;case 5:o.rotate(.5*Math.PI),o.scale(1,-1);break;case 6:o.rotate(.5*Math.PI),o.translate(0,-n);break;case 7:o.rotate(.5*Math.PI),o.translate(r,-n),o.scale(-1,1);break;case 8:o.rotate(-.5*Math.PI),o.translate(-r,0)}},e.getTransformedOptions=function(t,i){var o,r,n=a.call(e,t,i),s=n.orientation;if(!s||s>8||1===s)return n;o={};for(r in n)n.hasOwnProperty(r)&&(o[r]=n[r]);switch(n.orientation){case 2:o.left=n.right,o.right=n.left;break;case 3:o.left=n.right,o.top=n.bottom,o.right=n.left,o.bottom=n.top;break;case 4:o.top=n.bottom,o.bottom=n.top;break;case 5:o.left=n.top,o.top=n.left,o.right=n.bottom,o.bottom=n.right;break;case 6:o.left=n.top,o.top=n.right,o.right=n.bottom,o.bottom=n.left;break;case 7:o.left=n.bottom,o.top=n.right,o.right=n.top,o.bottom=n.left;break;case 8:o.left=n.bottom,o.top=n.left,o.right=n.top,o.bottom=n.right}return n.orientation>4&&(o.maxWidth=n.maxHeight,o.maxHeight=n.maxWidth,o.minWidth=n.minHeight,o.minHeight=n.minWidth,o.sourceWidth=n.sourceHeight,o.sourceHeight=n.sourceWidth),o}}),function(e){"use strict";"function"==typeof define&&define.amd?define(["./load-image"],e):e("object"==typeof module&&module.exports?require("./load-image"):window.loadImage)}(function(e){"use strict";var t=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice);e.blobSlice=t&&function(){var e=this.slice||this.webkitSlice||this.mozSlice;return e.apply(this,arguments)},e.metaDataParsers={jpeg:{65505:[]}},e.parseMetaData=function(t,i,a){a=a||{};var o=this,r=a.maxMetaDataSize||262144,n={},s=!(window.DataView&&t&&t.size>=12&&"image/jpeg"===t.type&&e.blobSlice);(s||!e.readFile(e.blobSlice.call(t,0,r),function(t){if(t.target.error)return console.log(t.target.error),void i(n);var r,s,l,d,u=t.target.result,c=new DataView(u),g=2,f=c.byteLength-4,h=g;if(65496===c.getUint16(0)){for(;f>g&&(r=c.getUint16(g),r>=65504&&65519>=r||65534===r);){if(s=c.getUint16(g+2)+2,g+s>c.byteLength){console.log("Invalid meta data: Invalid segment size.");break}if(l=e.metaDataParsers.jpeg[r])for(d=0;d<l.length;d+=1)l[d].call(o,c,g,s,n,a);g+=s,h=g}!a.disableImageHead&&h>6&&(u.slice?n.imageHead=u.slice(0,h):n.imageHead=new Uint8Array(u).subarray(0,h))}else console.log("Invalid JPEG file: Missing JPEG marker.");i(n)},"readAsArrayBuffer"))&&i(n)}}),function(e){"use strict";"function"==typeof define&&define.amd?define(["./load-image","./load-image-meta"],e):"object"==typeof module&&module.exports?e(require("./load-image"),require("./load-image-meta")):e(window.loadImage)}(function(e){"use strict";e.ExifMap=function(){return this},e.ExifMap.prototype.map={Orientation:274},e.ExifMap.prototype.get=function(e){return this[e]||this[this.map[e]]},e.getExifThumbnail=function(e,t,i){var a,o,r;if(!i||t+i>e.byteLength)return void console.log("Invalid Exif data: Invalid thumbnail data.");for(a=[],o=0;i>o;o+=1)r=e.getUint8(t+o),a.push((16>r?"0":"")+r.toString(16));return"data:image/jpeg,%"+a.join("%")},e.exifTagTypes={1:{getValue:function(e,t){return e.getUint8(t)},size:1},2:{getValue:function(e,t){return String.fromCharCode(e.getUint8(t))},size:1,ascii:!0},3:{getValue:function(e,t,i){return e.getUint16(t,i)},size:2},4:{getValue:function(e,t,i){return e.getUint32(t,i)},size:4},5:{getValue:function(e,t,i){return e.getUint32(t,i)/e.getUint32(t+4,i)},size:8},9:{getValue:function(e,t,i){return e.getInt32(t,i)},size:4},10:{getValue:function(e,t,i){return e.getInt32(t,i)/e.getInt32(t+4,i)},size:8}},e.exifTagTypes[7]=e.exifTagTypes[1],e.getExifValue=function(t,i,a,o,r,n){var s,l,d,u,c,g,f=e.exifTagTypes[o];if(!f)return void console.log("Invalid Exif data: Invalid tag type.");if(s=f.size*r,l=s>4?i+t.getUint32(a+8,n):a+8,l+s>t.byteLength)return void console.log("Invalid Exif data: Invalid data offset.");if(1===r)return f.getValue(t,l,n);for(d=[],u=0;r>u;u+=1)d[u]=f.getValue(t,l+u*f.size,n);if(f.ascii){for(c="",u=0;u<d.length&&(g=d[u],"\0"!==g);u+=1)c+=g;return c}return d},e.parseExifTag=function(t,i,a,o,r){var n=t.getUint16(a,o);r.exif[n]=e.getExifValue(t,i,a,t.getUint16(a+2,o),t.getUint32(a+4,o),o)},e.parseExifTags=function(e,t,i,a,o){var r,n,s;if(i+6>e.byteLength)return void console.log("Invalid Exif data: Invalid directory offset.");if(r=e.getUint16(i,a),n=i+2+12*r,n+4>e.byteLength)return void console.log("Invalid Exif data: Invalid directory size.");for(s=0;r>s;s+=1)this.parseExifTag(e,t,i+2+12*s,a,o);return e.getUint32(n,a)},e.parseExifData=function(t,i,a,o,r){if(!r.disableExif){var n,s,l,d=i+10;if(1165519206===t.getUint32(i+4)){if(d+8>t.byteLength)return void console.log("Invalid Exif data: Invalid segment size.");if(0!==t.getUint16(i+8))return void console.log("Invalid Exif data: Missing byte alignment offset.");switch(t.getUint16(d)){case 18761:n=!0;break;case 19789:n=!1;break;default:return void console.log("Invalid Exif data: Invalid byte al
1ignment marker.")}if(42!==t.getUint16(d+2,n))return void console.log("Invalid Exif data: Missing TIFF marker.");s=t.getUint32(d+4,n),o.exif=new e.ExifMap,s=e.parseExifTags(t,d,d+s,n,o),s&&!r.disableExifThumbnail&&(l={exif:{}},s=e.parseExifTags(t,d,d+s,n,l),l.exif[513]&&(o.exif.Thumbnail=e.getExifThumbnail(t,d+l.exif[513],l.exif[514]))),o.exif[34665]&&!r.disableExifSub&&e.parseExifTags(t,d,d+o.exif[34665],n,o),o.exif[34853]&&!r.disableExifGps&&e.parseExifTags(t,d,d+o.exif[34853],n,o)}}},e.metaDataParsers.jpeg[65505].push(e.parseExifData)}),function(e){"use strict";"function"==typeof define&&define.amd?define(["./load-image","./load-image-exif"],e):"object"==typeof module&&module.exports?e(require("./load-image"),require("./load-image-exif")):e(window.loadImage)}(function(e){"use strict";e.ExifMap.prototype.tags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright",36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",42240:"Gamma",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubSecTime",37521:"SubSecTimeOriginal",37522:"SubSecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"PhotographicSensitivity",34856:"OECF",34864:"SensitivityType",34865:"StandardOutputSensitivity",34866:"RecommendedExposureIndex",34867:"ISOSpeed",34868:"ISOSpeedLatitudeyyy",34869:"ISOSpeedLatitudezzz",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"E
1xposureMode",41987:"WhiteBalance",41988:"DigitalZoomRatio",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",42016:"ImageUniqueID",42032:"CameraOwnerName",42033:"BodySerialNumber",42034:"LensSpecification",42035:"LensMake",42036:"LensModel",42037:"LensSerialNumber",0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential",31:"GPSHPositioningError"},e.ExifMap.prototype.stringValues={ExposureProgram:{0:"Undefined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Undefined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},ComponentsConfiguration:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}
1,Orientation:{1:"top-left",2:"top-right",3:"bottom-right",4:"bottom-left",5:"left-top",6:"right-top",7:"right-bottom",8:"left-bottom"}},e.ExifMap.prototype.getText=function(e){var t=this.get(e);switch(e){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":case"Orientation":return this.stringValues[e][t];case"ExifVersion":case"FlashpixVersion":return String.fromCharCode(t[0],t[1],t[2],t[3]);case"ComponentsConfiguration":return this.stringValues[e][t[0]]+this.stringValues[e][t[1]]+this.stringValues[e][t[2]]+this.stringValues[e][t[3]];case"GPSVersionID":return t[0]+"."+t[1]+"."+t[2]+"."+t[3]}return String(t)},function(e){var t,i=e.tags,a=e.map;for(t in i)i.hasOwnProperty(t)&&(a[i[t]]=t)}(e.ExifMap.prototype),e.ExifMap.prototype.getAll=function(){var e,t,i={};for(e in this)this.hasOwnProperty(e)&&(t=this.tags[e],t&&(i[t]=this.getText(t)));return i}});!function(t){"use strict";var e=t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype,o=t.Blob&&function(){try{return Boolean(new Blob)}catch(t){return!1}}(),n=o&&t.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(t){return!1}}(),r=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||t.MSBlobBuilder,a=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,i=(o||r)&&t.atob&&t.ArrayBuffer&&t.Uint8Array&&function(t){var e,i,l,u,b,c,d,B,f;if(e=t.match(a),!e)throw new Error("invalid data URI");for(i=e[2]?e[1]:"text/plain"+(e[3]||";charset=US-ASCII"),l=!!e[4],u=t.slice(e[0].length),b=l?atob(u):decodeURIComponent(u),c=new ArrayBuffer(b.length),d=new Uint8Array(c),B=0;B<b.length;B+=1)d[B]=b.charCodeAt(B);return o?new Blob([n?d:c],{type:i}):(f=new r,f.append(c),f.getBlob(i))};t.HTMLCanvasElement&&!e.toBlob&&(e.mozGetAsFile?e.toBlob=function(t,o,n){t(n&&e.toDataURL&&i?i(this.toDataURL(o,n)):this.mozGetAsFile("blob",o))}:e.toDataURL&&i&&(e.toBlob=function(t,e,o){t(i(this.toDataURL(e,o)))})),"function"==typeof define&&define.amd?define(function(){return i}):"object"==typeof module&&module.exports?module.exports=i:t.dataURLtoBlob=i}(window);!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("get-size/get-size",[],function(){return e()}):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);r.isBoxSizeOuter=s=200==t(o.width),i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
1sandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e},i.makeArray=function(t){var e=[];if(Array.isArray(t))e=t;else if(t&&"object"==typeof t&&"number"==typeof t.length)for(var i=0;i<t.length;i++)e.push(t[i]);else e.push(t);return e},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];t&&clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i||100)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var r=i.toDashed(o),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(n&&n.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,o,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=this.layout.size,s=-1!=n.indexOf("%")?parseFloat(n)/100*r.width:parseInt(n,10),a=-1!=o.indexOf("%")?parseFloat(o)/100*r.height:parseInt(o,10);s=isNaN(s)?0:s,a=isNaN(a)?0:a,s-=e?r.paddingLeft:r.paddingRight,a-=i?r.paddingTop:r.paddingBottom,this.position.x=s,this.position.y=a},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),s=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return void this.layoutPosition();var a=t-i,h=e-n,u={};u.transform=this.getTranslate(a,h),this.transition({to:u,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10
vendor: 14,210 bytes, line 1
1)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
vendor: 713 bytes, line 1
1(function(global,factory){if(typeof define=="function"&&define.amd){define("ev-emitter/ev-emitter",factory)}else if(typeof module=="object"&&module.exports){module.exports=factory()}else{global.EvEmitter=factory()}})(typeof window!="undefined"?window:this,function(){function EvEmitter(){}var proto=EvEmitter.prototype;proto.on=function(eventName,listener){if(!eventName||!listener){return}var events=this._events=this._events||{};var listeners=events[eventName]=events[eventName]||[];if(listeners.indexOf(listener)==-1){listeners.push(listener)}return this};proto.once=function(eventName,listener){if(!eventName||!listener){return}this.on(eventName,listener);var onceEvents=this._onceEvents=this._onceEvents||{};
1var onceListeners=onceEvents[eventName]=onceEvents[eventName]||{};onceListeners[listener]=true;return this};proto.off=function(eventName,listener){var listeners=this._events&&this._events[eventName];if(!listeners||!listeners.length){return}var index=listeners.indexOf(listener);if(index!=-1){listeners.splice(index,1)}return this};proto.emitEvent=function(eventName,args){var listeners=this._events&&this._events[eventName];if(!listeners||!listeners.length){return}var i=0;var listener=listeners[i];args=args||[];var onceListeners=this._onceEvents&&this._onceEvents[eventName];while(listener){var isOnce=onceListeners&&onceListeners[listener];if(isOnce){this.off(eventName,listener);delete onceListeners[listener]}listener.apply(this,args);i+=isOnce?0:1;listener=listeners[i]}return this};return EvEmitter});(function(window,factory){"use strict";if(typeof define=="function"&&define.amd){define(["ev-emitter/ev-emitter"],function(EvEmitter){return factory(window,EvEmitter)})}else if(typeof module=="object"&&module.exports){module.exports=factory(window,require("ev-emitter"))}else{window.imagesLoaded=factory(window,window.EvEmitter)}})(typeof window!=="undefined"?window:this,function factory(window,EvEmitter){var $=window.jQuery;var console=window.console;function extend(a,b){for(var prop in b){a[prop]=b[prop]}return a}function makeArray(obj){var ary=[];if(Array.isArray(obj)){ary=obj}else if(typeof obj.length=="number"){for(var i=0;i<obj.length;i++){ary.push(obj[i])}}else{ary.push(obj)}return ary}function ImagesLoaded(elem,options,onAlways){if(!(this instanceof ImagesLoaded)){return new ImagesLoaded(elem,options,onAlways)}if(typeof elem=="string"){elem=document.querySelectorAll(elem)}this.elements=makeArray(elem);this.options=extend({},this.options);if(typeof options=="function"){onAlways=options}else{extend(this.options,options)}if(onAlways){this.on("always",onAlways)}this.getImages();if($){this.jqDeferred=new $.Deferred}setTimeout(function(){this.check()}.bind(this))}ImagesLoaded.prototype=Object.create(EvEmitter.prototype);ImagesLoaded.prototype.options={};ImagesLoaded.prototype.getImages=function(){this.images=[];this.elements.forEach(this.addElementImages,this)};ImagesLoaded.prototype.addElementImages=function(elem){if(elem.nodeName=="IMG"){this.addImage(elem)}if(this.options.background===true){this.addElementBackgroundImages(elem)}var nodeType=elem.nodeType;if(!nodeType||!elementNodeTypes[nodeType]){return}var childImgs=elem.querySelectorAll("img");for(var i=0;i<childImgs.length;i++){var img=childImgs[i];this.addImage(img)}if(typeof this.options.background=="string"){var children=elem.querySelectorAll(this.options.background);for(i=0;i<children.length;i++){var child=children[i];this.addElementBackgroundImages(child)}}};var elementNodeTypes={1:true,9:true,11:true};ImagesLoaded.prototype.addElementBackgroundImages=function(elem){var style=getComputedStyle(elem);if(!style){return}var reURL=/url\((['"])?(.*?)\1\)/gi;var matches=reURL.exec(style.backgroundImage);while(matches!==null){var url=matches&&matches[2];if(url){this.addBackground(url,elem)}matches=reURL.exec(style.backgroundImage)}};ImagesLoaded.prototype.addImage=function(img){var loadingImage=new LoadingImage(img);this.images.push(loadingImage)};ImagesLoaded.prototype.addBackground=function(url,elem){var background=new Background(url,elem);this.images.push(background)};ImagesLoaded.prototype.check=function(){var _this=this;this.progressedCount=0;this.hasAnyBroken=false;if(!this.images.length){this.complete();return}function onProgress(image,elem,message){setTimeout(function(){_this.progress(image,elem,message)})}this.images.forEach(function(loadingImage){loadingImage.once("progress",onProgress);loadingImage.check()})};ImagesLoaded.prototype.progress=function(image,elem,message){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!image.isLoaded;this.emitEvent("progress",[this,image,elem]);if(this.jqDeferred&&this.jqDeferred.notify){this.jqDeferred.notify(this,image)}if(this.progressedCount==this.images.length){this.complete()}if(this.options.debug&&console){console.log("progress: "+message,image,elem)}};ImagesLoaded.prototype.complete=function(){var eventName=this.hasAnyBroken?"fail":"done";this.isComplete=true;this.emitEvent(eventName,[this]);this.emitEvent("always",[this]);if(this.jqDeferred){var jqMethod=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[jqMethod](this)}};function LoadingImage(img){this.img=img}LoadingImage.prototype=Object.create(EvEmitter.prototype);LoadingImage.prototype.check=function(){var isComplete=this.getIsImageComplete();
1if(isComplete){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image;this.proxyImage.addEventListener("load",this);this.proxyImage.addEventListener("error",this);this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.proxyImage.src=this.img.src};LoadingImage.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth!==undefined};LoadingImage.prototype.confirm=function(isLoaded,message){this.isLoaded=isLoaded;this.emitEvent("progress",[this,this.img,message])};LoadingImage.prototype.handleEvent=function(event){var method="on"+event.type;if(this[method]){this[method](event)}};LoadingImage.prototype.onload=function(){this.confirm(true,"onload");this.unbindEvents()};LoadingImage.prototype.onerror=function(){this.confirm(false,"onerror");this.unbindEvents()};LoadingImage.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this);this.proxyImage.removeEventListener("error",this);this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};function Background(url,element){this.url=url;this.element=element;this.img=new Image}Background.prototype=Object.create(LoadingImage.prototype);Background.prototype.check=function(){this.img.addEventListener("load",this);this.img.addEventListener("error",this);this.img.src=this.url;var isComplete=this.getIsImageComplete();if(isComplete){this.confirm(this.img.naturalWidth!==0,"naturalWidth");this.unbindEvents()}};Background.prototype.unbindEvents=function(){this.img.removeEventListener("load",this);this.img.removeEventListener("error",this)};Background.prototype.confirm=function(isLoaded,message){this.isLoaded=isLoaded;this.emitEvent("progress",[this,this.element,message])};ImagesLoaded.makeJQueryPlugin=function(jQuery){jQuery=jQuery||window.jQuery;if(!jQuery){return}$=jQuery;$.fn.imagesLoaded=function(options,callback){var instance=new ImagesLoaded(this,options,callback);return instance.jqDeferred.promise($(this))}};ImagesLoaded.makeJQueryPlugin();return ImagesLoaded});function ZipControls($compile){return{scope:true,link:function(scope,element,attrs){var el;var doAutoComplete=false;var shouldCallZip="0";var shouldCallTakeout="0";var shouldCallDelivery="0";scope.root.dropDownOptions={filter:"contains",highlightFirst:true,placeholder:"Choose Zip",suggest:true,change:function(e){}};function alertSomething(){alert(8)}if("querystr"in attrs){scope.root.dd_goToTarget(attrs.querystr).then(function(data){startDirective()},function(data){})}else{startDirective()}function startDirective(){attrs.$observe("watchedobj",function(tpl){if(angular.isDefined(scope.root.isGroupAdmin)){doAutoComplete=false;var myAutoComp=null;var str=beginStuff().replace(/ /g,"").replace(/ /g,"").replace(/> </g,"><").trim();var el=$compile(str)(scope);element.html("");element.append(el);if(doAutoComplete){myAutoComp=new WISDOM.widget.AutoComplete("ysearchinput","ysearchcontainer",myDataSource3);myAutoComp.queryDelay=.1;myAutoComp.useShadow=true;myAutoComp.itemSelectEvent.subscribe(setAddr);myAutoComp.allowBrowserAutocomplete=false;myAutoComp.formatResult=function(aResultItem,sQuery){var fullName=aResultItem[0];
1if(fullName){var sp_place=aResultItem[4];var aMarkup="";if(sp_place&&sp_place!=""){if(sp_place.substr(0,sQuery.length)==sQuery){var fullNameQuery=sp_place.substr(0,sQuery.length);var fullNameRemainder=sp_place.substr(sQuery.length);aMarkup=["<div id='ysearchresult'>",fullName," (<span style='font-weight:bold'>",fullNameQuery,"</span>",fullNameRemainder,")","</div>"]}else{var fullNameQuery=fullName.substr(0,sQuery.length);var fullNameRemainder=fullName.substr(sQuery.length);aMarkup=["<div id='ysearchresult'>","<span style='font-weight:bold'>",fullNameQuery,"</span>",fullNameRemainder," (",sp_place,")</div>"]}}else{var fullNameQuery=fullName.substr(0,sQuery.length);var fullNameRemainder=fullName.substr(sQuery.length);aMarkup=["<div id='ysearchresult'>","<span style='font-weight:bold'>",fullNameQuery,"</span>",fullNameRemainder,"</div>"]}return aMarkup.join("")}else{return""}};myAutoComp.doBeforeExpandContainer=function(oTextbox,oContainer,sQuery,aResults){var pos=WISDOM.util.Dom.getXY(oTextbox);pos[1]+=WISDOM.util.Dom.get(oTextbox).offsetHeight;WISDOM.util.Dom.setXY(oContainer,pos);return true}}}})}function nz(val){if(typeof val=="undefined"||val==null||val=="null"||val=="(null)"||val=="NULL"){return""}else{return val}}function beginStuff(){shouldCallZip="0";shouldCallTakeout="0";shouldCallDelivery="0";var str="";str+=' <form autocomplete="off" ng-class="{\'form-inline\': '+attrs.formInline+' }"><div class="welcome__search--stacked dd_bs">';if(scope.root.isMult==1||scope.root.curParams.groupOrderPage){str+='<div class="dd_tabsdiv">';if(scope.root.inGroupMode==1){str+=' <a href class="btn btn-default dd_commontab'+(scope.root.curParams.isForTakeout==1?" dd_inactivetab":" dd_activetab")+'" ng-click="'+(scope.root.curParams.isForTakeout==1?"root.dd_goToTarget('refreshLeft=1&formActionType=changeToDelivery')":"void(0)")+'">Group Order</a>'}if((scope.root.curParams.offersDeliveryImmediate==1||scope.root.curParams.offersDeliveryAdvance==1)&&!(scope.root.groupOrderPage||scope.root.isGroupAdmin==1||scope.root.isLoggedIntoGroup==1)){str+=' <a href class="btn btn-default dd_commontab'+(scope.root.curParams.isForTakeout!=1?" dd_activetab":" dd_inactivetab")+'" ng-click="'+(scope.root.curParams.isForTakeout!=1?"void(0)":"root.dd_goToTarget('refreshLeft=1&formActionType=changeToDelivery')")+'">Delivery</a>'}if((scope.root.curParams.offersTakeoutImmediate==1||scope.root.curParams.offersTakeoutAdvance==1)&&!(scope.root.groupOrderPage||scope.root.isGroupAdmin==1||scope.root.isLoggedIntoGroup==1)){str+=' <a href class="btn btn-default dd_commontab'+(scope.root.curParams.isForTakeout==1?" dd_activetab":" dd_inactivetab")+'" ng-click="'+(scope.root.curParams.isForTakeout==1?"void(0)":"root.dd_goToTarget('refreshLeft=1&formActionType=changeToTakeout')")+'">Pickup</a>'}if((scope.root.isLoggedIn==1&&scope.root.curParams.adminGroup||(scope.root.isLoggedIn==1&&scope.root.curParams.memberGroup&&scope.root.memberOfGroupZero==1||scope.root.memberOfGroupWithItems==1))&&scope.root.inGroupMode!=1){str+=' <a href class="btn btn-default dd_commontab dd_inactivetab" ng-click="dd_goOptions(\'\')">Group Order</a>'}str+="</div>"}str+='<div class="customer-search" role="search">';str+=' <div class="dd_controls"'+(scope.root.isMult==0?' style="-webkit-border-radius: 4px 4px 4px 4px;-moz-border-radius: 4px 4px 4px 4px;-ms-border-radius: 4px 4px 4px 4px;-o-border-radius: 4px 4px 4px 4px;border-radius: 4px 4px 4px 4px;"':"")+">";if(scope.root.curParams.offersDeliveryImmediate==1||scope.root.curParams.offersDeliveryAdvance==1||scope.root.curParams.offersTakeoutImmediate==1||scope.root.curParams.offersTakeoutAdvance==1){if(scope.root.curParams.general_warning){str+=scope.root.curParams.general_warning}if(scope.root.groupOrderPage){if(scope.root.isLoggedIn==1){if(scope.root.isGroupAdmin==1||scope.root.isLoggedIntoGroup==0){str=str+addDelivTakeoutBoxes()}else{if(scope.root.isLoggedIntoGroup==1){str=str+make_new_box("cur_group_loggedinto")}}}else{if(scope.root.isLoggedIntoGroup==1){str=str+make_new_box("cur_group_loggedinto")}}}else{if(scope.root.isLoggedIntoGroup==1){str=str+make_new_box("cur_group_loggedinto")}else{str=str+addDelivTakeoutBoxes()}}}else{str+="Available Ordering Times have not yet been configured for this site. Please check back soon."}str+=" </div>";if(scope.root.isLoggedIn==0){if(scope.root.groupOrderPage){str+='<span class="dd_controls-description"><img src="/v_'+scope.root.curParams.strRandom+'_alertani.gif" align="middle" style="display:inline;"/>If you want to start a new group order, <b>you must be Logged In</b> </span>'}}else{}str+='\t <div class="dd_date-picker-underlay"></div>';str+=" </div></div></form>";if(scope.root.curParams.estDeliveryTime&&scope.root.curParams.estDeliveryTime!=null){str+='<div class="welcome-search__delivery-time__wrapper"><div class="welcome-search__delivery-time"><p>Estimated Delivery Time: <span class="delivery-time-value">{{root.curParams.estDeliveryTime}}</span></p></div></div>'}return str}function addDelivTakeoutBoxes(){var str="";if(scope.root.curParams.isForTakeout==1){str=str+make_new_box("takeout")}else{str=str+make_new_box("delivery")}return str}function make_new_box(p_contentType){var str="";str+='<div class="dd_order-details">';if(p_contentType=="adminGroupChoices"){str+=adminGroupChoices("title")}else if(p_contentType=="inviteeGroupChoices"){str+=inviteeGroupChoices("title")}else if(p_contentType=="inviteeGroupPending"){str+=inviteeGroupPending("title")}else if(p_contentType=="cur_group_loggedinto"){str+=cur_group_loggedinto("title")}else if(p_contentType=="delivery"){str+=deliveryContent("title")}else{str+=takeoutContent("title")}if(p_contentType=="adminGroupChoices"){str+=adminGroupChoices("")}else if(p_contentType=="inviteeGroupChoices"){str+=inviteeGroupChoices("")}else if(p_contentType=="inviteeGroupPending"){str+=inviteeGroupPending("")}else if(p_contentType=="cur_group_loggedinto"){str+=cur_group_loggedinto("")}else if(p_contentType=="delivery"){str+=deliveryContent("")}else{str+=takeoutContent("")}str+="</div>";return str}function setShouldCallTakeout(){shouldCallTakeout="1";return""}function setShouldCallDelivery(){shouldCallDelivery="1";return""}function getShouldCallTakeout(){return shouldCallTakeout}function getShouldCallDelivery(){return shouldCallDelivery}function setShouldCallZip(){shouldCallZip="1";return""}function getShouldCallZip(){return shouldCallZip}function maybeAddDeliveryShownFor(){var str="";if(scope.root.curParams.timesForVendorID>0&&!(scope.root.curParams.onlyonevendorid>0)){var shownVendor="";for(var i=0;i<scope.root.curParams.shownVendors.shownVendor.length;i++){if(scope.root.curParams.shownVendors.shownVendor[i].vendorID==scope.root.curParams.timesForVendorID){shownVendor=scope.root.curParams.shownVendors.shownVendor[i].vendorName;break}}str+='<tr><td class="it">*These are the times available for '+shownVendor+". <a href ng-click=\"root.dd_goToTarget('formActionType=showDeliveryTimeRanges');\">Show for Any</a></td></tr>"}return str}function maybeAddTakeoutShownFor(){var str="";if(scope.root.curParams.timesForVendorID>0&&!(scope.root.curParams.onlyonevendorid>0)){var shownVendor="";for(var i=0;i<scope.root.curParams.shownVendors.shownVendor.length;i++){if(scope.root.curParams.shownVendors.shownVendor[i].vendorID==scope.root.curParams.timesForVendorID){shownVendor=scope.root.curParams.shownVendors.shownVendor[i].vendorName;break}}str+='<tr><td class="it">*These are the times available for '+shownVendor+". <a href ng-click=\"root.dd_goToTarget('formActionType=showTakeoutTimeRanges');\">Show for Any</a></td></tr>"}return str}function writeSoonestDeliveryImmediate(){var str="";str+="<small>(soonest: "+scope.root.curParams.soonestDeliveryImmediate+")</small>";return str}function writeSoonestDeliveryAdvance(){var str="";str+="<small>(soonest: "+scope.root.curParams.soonestDeliveryAdvance+")</small>";return str}function writeSoonestTakeoutImmediate(){var str="";str+="<small>(soonest: "+scope.root.curParams.soonestTakeoutImmediate+")</small>";return str}function writeSoonestTakeoutAdvance(){var str="";str+="<small>(soonest: "+scope.root.curParams.soonestTakeoutAdvance+")</small>";return str}function takeoutContent(p_infoType){var str="";if(scope.root.curParams.offersTakeoutImmediate==1||scope.root.curParams.offersTakeoutAdvance==1){if(scope.root.curParams.offersTakeoutImmediate==1){if(scope.root.curParams.targetTime==null){if(scope.root.curParams.canOrderTakeoutNowImmediate==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){if(scope.root.curParams.formActionType=="showTakeoutTimeRanges"){str+="Choose a Take-Out Time"}else{str+=startOrderingVerbage()}}else{}}else{if(scope.root.curParams.isForTakeout==1){if(scope.root.curParams.formActionType=="showTakeoutTimeRanges"){if(scope.root.curParams.offersTakeoutAdvance==1){str+='<table class="dd_z
1iptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Choose a time you would like to pick up this order:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddTakeoutShownFor()+'<tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1\');">I want to Take-Out A.S.A.P.</a></td></tr></table></td></tr></table>'}else{str+=chooseAndStartOrderingVerbage();str+='<div class="dd_form-row dd_time"><label for="delivery-time">Pickup Time:</label><div class="dd_input dd_no-button"><input class="dd_text dd_set" type="text" name="delivery-time" disabled="disabled" value="A.S.A.P"></input></div></div>'}}else{str+='<div class="form-group form-group--customer-search__now-or-later"><div class="btn-group customer-search__now-or-later" ng-class="{\'btn-group-justified\': '+!attrs.formInline+' }"><a class="btn btn-primary" role="button">Pickup Now</a>';if(scope.root.curParams.offersTakeoutAdvance==1){str+='<a class="btn btn-default" role="button" ng-click="root.openTimeChooser()">Pickup Later</a>'}str+="</div></div>";str+=chooseAndStartOrderingVerbage()}if(scope.root.isMult==1){}}else{}}}else{if(scope.root.curParams.offersTakeoutAdvance==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){}else{}}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestTakeoutAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Choose a time you would like to Pickup this order:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddTakeoutShownFor()+"</table></td></tr></table>";if(scope.root.isMult==1){}}else{}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){str+="Try Again Later "+writeSoonestTakeoutImmediate()}else{}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We offer Take-Out ordering, but the next available time you can place a Take-Out order is '+scope.root.curParams.soonestTakeoutImmediate+".</td></tr></table></td></tr></table>";if(scope.root.isMult==1){if(scope.root.curParams.isForTakeout==1){}}}}}}else{if(scope.root.curParams.offersTakeoutAdvance==1){if(scope.root.curParams.canOrderTakeoutNowAdvance==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){if(scope.root.curParams.formActionType=="showTakeoutTimeRanges"){str+="Choose a Different Take-Out Time"}else{str+=startOrderingVerbage()}}else{}}else{if(scope.root.curParams.isForTakeout==1){if(scope.root.curParams.formActionType=="showTakeoutTimeRanges"){str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Choose a time you would like to pick up this order:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddTakeoutShownFor();if(scope.root.curParams.canOrderTakeoutNowImmediate==1){str+='<tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1\');">I want to Take-Out A.S.A.P.</a></td></tr>'}str+="</table></td></tr></table>"}else{if(scope.root.groupOrderPage){str+='<table><tr><td vAlign="top" align="left"><table border="0" cellPadding="1" cellSpacing="0" align="left" class="its">'+groupOrderAvailVendors()+'</table></td><td vAlign="top" align="left">'}str+='<div class="form-group">\x3c!-- newFormRowAddress --\x3e<div class="dd_form-row dd_address"><label for="delivery-address">Pickup Time:</label>';if(scope.root.curParams.canOrderTakeoutNowImmediate==1){str+='<div class="form-group form-group--customer-search__now-or-later"><div class="btn-group customer-search__now-or-later" ng-class="{\'btn-group-justified\': '+!attrs.formInline+' }"><a class="btn btn-default" role="button" ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1\');">Now</a>'}str+='<a class="btn btn-primary" role="button" ng-click="root.openTimeChooser()">'+scope.root.curParams.prettyDate+"</a>";str+="</div></div></div></div>\x3c!-- /newFormRowAddress --\x3e";str+=chooseAndStartOrderingVerbage();str+=maybeAddGroupOrderRows();if(scope.root.groupOrderPage){str+="</td></tr></table>"}}if(scope.root.isMult==1){}}else{}}}else{if(scope.root.curParams.canOrderTakeoutNowImmediate==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){str+="Choose Different Take-Out Time"}else{}}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_z
1iptable"><tr><td align="center">'+writeSoonestTakeoutAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Takeout is not available '+scope.root.curParams.prettyDate+'.</td></tr><tr><td class="it">However, you can place an immediate Take-Out order by clicking <a href ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1\');">here</a></td></tr><tr><td class="it">Or, you can choose an available Take-Out time below:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddTakeoutShownFor()+"</table></td></tr></table>";if(scope.root.isMult==1){}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Take-Out is unavailable '+scope.root.curParams.prettyDate+'. However, you can order for immediate Take-Out, or schedule a different time for Take-Out.</td></tr><tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToTakeout\');">I want to order for Take-Out instead</a>.</td></tr></table></td></tr></table>'}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){}else{}}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestTakeoutAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Choose a time you would like to Pickup this order:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddTakeoutShownFor()+"</table></td></tr></table>";if(scope.root.isMult==1){}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Take-Out is unavailable '+scope.root.curParams.prettyDate+'. However, you can schedule a different time for Take-Out.</td></tr><tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToTakeout\');">I want to order for Take-Out instead</a>.</td></tr></table></td></tr></table>'}}}}}else{if(scope.root.curParams.canOrderTakeoutNowImmediate==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){str+="Immediate Only"}else{}}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We do not offer advance Take-Out orders.</td></tr><tr><td class="it">However, you can order for immediate Take-Out by clicking <a href ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1\');">here</a></td></tr></table></td></tr></table>';if(scope.root.isMult==1){}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We do not offer advance Take-Out orders. However, ordering for immediate Take-Out is available.</td></tr><tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToTakeout&resetTargetTime=1\');">I want to order for Take-Out instead</a>.</td></tr></table></td></tr></table>'}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){str+="Try Again Later "+writeSoonestTakeoutImmediate()}else{}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We accept Take-Out orders, but not in advance.</td></tr><tr><td class="it">The soonest you could return to our site to place a Take-Out order is '+scope.root.curParams.soonestTakeoutImmediate+".</td></tr></table></td></tr></table>";if(scope.root.isMult==1){if(scope.root.curParams.isForTakeout==1){}}}}}}}else{if(scope.root.curParams.targetTime==null){if(scope.root.curParams.offersTakeoutAdvance==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){}else{}}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestTakeoutAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Choose a time you would like to Pickup this order:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddTakeoutShownFor()+"</table></td></tr></table>";if(scope.root.isMult==1){}}else{}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){}else{}}else{if(scope.root.isMult==1){if(scope.root.curParams.isForTakeout==1){}}}}}else{if(scope.root.curParams.offersTakeoutAdvance==1){if(scope.root.curParams.canOrderTakeoutNowAdvance==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){if(scope.root.curParams.formActionType=="showTakeoutTimeRanges"){str+="Choose a Different Take-Out Time"}else{str+=startOrderingVerbage()}}else{}}else{if(scope.root.curParams.isForTakeout==1){if(scope.root.curParams.formActionType=="showTakeoutTimeRanges"){str+='<table class="dd_z
1iptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Choose a time you would like to pick up this order:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddTakeoutShownFor()+"</table></td></tr></table>"}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">'+chooseAndStartOrderingVerbage()+"</td></tr></table></td></tr><tr><td>";if(scope.root.groupOrderPage){str+='<table><tr><td vAlign="top" align="left"><table border="0" cellPadding="1" cellSpacing="0" align="left" class="its">'+groupOrderAvailVendors()+'</table></td><td vAlign="top" align="left">'}str+='<div class="form-group">\x3c!-- newFormRowAddress --\x3e<div class="dd_form-row dd_address"><label for="delivery-address">Pickup Time:</label>';str+='<a class="btn btn-primary" role="button" ng-click="root.openTimeChooser()">'+scope.root.curParams.prettyDate+"</a>";str+="</div></div></div></div>\x3c!-- /newFormRowAddress --\x3e";str+=maybeAddGroupOrderRows();if(scope.root.groupOrderPage){str+="</td></tr></table>"}str+="</td></tr></table>"}if(scope.root.isMult==1){}}else{}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){str+="Choose Different Take-Out Time"}else{}}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestTakeoutAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Takeout is not available '+scope.root.curParams.prettyDate+'.</td></tr><tr><td class="it">However, you can choose an available Take-Out time below:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddTakeoutShownFor()+"</table></td></tr></table>";if(scope.root.isMult==1){}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Take-Out is unavailable '+scope.root.curParams.prettyDate+'. However, you can schedule a different time for Take-Out.</td></tr><tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToTakeout\');">I want to order for Take-Out instead.</a></td></tr></table></td></tr></table>'}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){}else{}}else{if(scope.root.isMult==1){if(scope.root.curParams.isForTakeout==1){}}}}}}}else{if(scope.root.curParams.isForTakeout==1||scope.root.isMult==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){str+="Unavailable"}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Sorry, we no longer offer Take-Out ordering.</td></tr></table></td></tr></table>'}if(scope.root.curParams.offersDeliveryImmediate==1||scope.root.curParams.offersDeliveryAdvance==1){if(scope.root.curParams.isForTakeout==1){setShouldCallDelivery()}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){}}else{if(scope.root.isMult==1){if(scope.root.curParams.isForTakeout==1){setShouldCallDelivery()}}}}}return str}function deliveryContent(p_infoType){var str="";if(scope.root.curParams.offersDeliveryImmediate==1||scope.root.curParams.offersDeliveryAdvance==1){if(scope.root.curParams.action=="promptForZip"||scope.root.curParams.action=="changeArea"){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){}else if(scope.root.specificVendorID>0||scope.root.curParams.onlyonevendorid>0){}else{}}else{str+=writeFullAddressRow();if(scope.root.isMult==1){if(scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}else if(scope.root.curParams.action=="displayNotFoundError"){if(p_infoType=="title"){}else{str+='<p class="dd_controls-description">We don\'t currently deliver to '+scope.root.curParams.zipCode+".<br />Click the pin to see our zipcodes.</p>";str+=writeFullAddressRow();if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}else if(scope.root.curParams.useZipCodes=="no"||scope.root.curParams.deliveryAreaID!=""){if(scope.root.curParams.zipCode!=null&&scope.root.curParams.isForTakeout!=1){setShouldCallZip()}else{if(p_infoType=="title"&&scope.root.curParams.useZipCodes=="no"){}}if(scope.root.curParams.offersDeliveryImmediate==1){if(scope.root.curParams.targetTime==null){if(scope.root.curParams.allowsDeliveryImmediate==1){if(scope.root.curParams.canOrderDeliveryNowImmediate==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){}else if(scope.root.curParams.formActionType=="showDeliveryTimeRanges"){}else{str+=startOrderingVerbage()}}else{if(scope.root.curParams.isForTakeout!=1){if(scope.root.curParams.formActionType=="showDeliveryTimeRanges"){if(scope.root.curParams.allowsDeliveryAdvance==1){str+='<table class="dd_z
1iptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Choose a time you would like this order delivered to your door:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddDeliveryShownFor()+'<tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1\');">I want delivery ASAP</a></td></tr></table></td></tr><tr><td>'+maybeAddZipTable()+"</td></tr></table>"}else{str+=maybeAddZipTable();str+='<div class="dd_form-row dd_time"><label for="delivery-time">Delivery Time:</label><div class="dd_input dd_no-button"><input class="dd_text dd_set" type="text" name="delivery-time" disabled="disabled" value="ASAP"></input>';if(scope.root.curParams.allowsDeliveryAdvance==1){str+='<p class="dd_advance-order">or <a href ng-click="root.dd_goToTarget(\'formActionType=showDeliveryTimeRanges\');">schedule a delivery in advance</a></p>'}str+="</div></div>";str+=chooseAndStartOrderingVerbage()}}else{str+=maybeAddZipTable();str+='<div class="form-group form-group--customer-search__now-or-later"><div class="btn-group customer-search__now-or-later" ng-class="{\'btn-group-justified\': '+!attrs.formInline+' }"><a class="btn btn-primary" role="button">Deliver Now</a>';if(scope.root.curParams.allowsDeliveryAdvance==1){str+='<a class="btn btn-default" role="button" ng-click="root.openTimeChooser()">Deliver Later</a>'}str+="</div></div>";str+=chooseAndStartOrderingVerbage()}if(scope.root.isMult==1){setShouldCallTakeout()}}}}else{if(scope.root.curParams.offersDeliveryAdvance==1){if(scope.root.curParams.allowsDeliveryAdvance==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){}}else{if(scope.root.curParams.isForTakeout!=1){str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestDeliveryAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Choose a time you would like this order delivered to your door:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddDeliveryShownFor()+"</table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1){setShouldCallTakeout()}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Try Again Later "+writeSoonestDeliveryImmediate()}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We do deliver to your area, but not at this time of day. The soonest you could return to our site to place a delivery order is '+scope.root.curParams.soonestDeliveryImmediate+'.</td></tr><tr><td class="it">Advance delivery ordering is not available to your area.</td></tr>';if(scope.root.curParams.isForTakeout==1){str+='<tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&changeArea=1&formActionType=changeToDelivery\');">I want to order for Delivery instead</a>.</td></tr>'}str+="</table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Try Again Later "+writeSoonestDeliveryImmediate()}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">The soonest you could return to our site and place a delivery order is '+scope.root.curParams.soonestDeliveryImmediate+".</td></tr></table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}}else{if(scope.root.curParams.offersDeliveryAdvance==1){if(scope.root.curParams.allowsDeliveryAdvance==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){}}else{if(scope.root.curParams.isForTakeout!=1){str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestDeliveryAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Delivery orders to your area must be placed in advance.</td></tr><tr><td class="it">Choose a time you would like this order delivered to your door:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddDeliveryShownFor()+"</table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1){setShouldCallTakeout()}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){str+="Unavailable"}}
1else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We do not currently offer delivery to '+(scope.root.curParams.sessFullAddress!=null?scope.root.curParams.sessFullAddress+", ":"")+scope.root.curParams.zipCode+".</td></tr></table></td></tr><tr><td>"+writeOk()+"</td></tr></table>";if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Unavailable"}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We do not currently offer delivery to '+(scope.root.curParams.sessFullAddress!=null?scope.root.curParams.sessFullAddress+", ":"")+scope.root.curParams.zipCode+".</td></tr></table></td></tr><tr><td>"+writeOk()+"</td></tr></table>";if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}}else{if(scope.root.curParams.offersDeliveryAdvance==1){if(scope.root.curParams.allowsDeliveryAdvance==1){if(scope.root.curParams.canOrderDeliveryNowAdvance==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){}else if(scope.root.curParams.formActionType=="showDeliveryTimeRanges"){str+='<p class="dd_controls-description">Choose a Different Arrival Time</p>'}else{str+=startOrderingVerbage()}}else{if(scope.root.curParams.isForTakeout!=1){if(scope.root.curParams.formActionType=="showDeliveryTimeRanges"){str+=timeSlots_TimeForm();if(scope.root.curParams.canOrderDeliveryNowImmediate==1){str+="<a href ng-click=\"root.dd_goToTarget('refreshLeft=1&resetTargetTime=1');\">I want delivery A.S.A.P.</a>"}str+=maybeAddDeliveryShownFor();str+=maybeAddZipTable()}else{if(scope.root.groupOrderPage){str+='<table><tr><td vAlign="top" align="left"><table border="0" cellPadding="1" cellSpacing="0" align="left" class="its" width="100%">'+groupOrderAvailVendors()+'</table></td><td vAlign="top" align="left">'}str+=maybeAddZipRow();str+='<div class="form-group">\x3c!-- newFormRowAddress --\x3e<div class="dd_form-row dd_address"><label for="delivery-address">Delivery Time:</label>';if(scope.root.curParams.canOrderDeliveryNowImmediate==1){str+='<div class="form-group form-group--customer-search__now-or-later"><div class="btn-group customer-search__now-or-later" ng-class="{\'btn-group-justified\': '+!attrs.formInline+' }"><a class="btn btn-default" role="button" ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1\');">Now</a>'}str+='<a class="btn btn-primary" role="button" ng-click="root.openTimeChooser()">'+scope.root.curParams.prettyDate+"</a>";str+="</div></div></div></div>\x3c!-- /newFormRowAddress --\x3e";str+=chooseAndStartOrderingVerbage();str+=maybeAddGroupOrderRows();if(scope.root.groupOrderPage){str+="</td></tr></table>"}}if(scope.root.isMult==1){setShouldCallTakeout()}}}}else{if(scope.root.curParams.allowsDeliveryImmediate==1){if(scope.root.curParams.canOrderDeliveryNowImmediate==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Choose a Different Time"}}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Delivery is unavailable '+scope.root.curParams.prettyDate+'.</td></tr><tr><td class="it">However, you can order for immediate Delivery, or schedule a different time for delivery.</td></tr><tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToDelivery&resetTargetTime=1\');">I want to order for Delivery instead.</a></td></tr></table></td></tr></table>'}else{str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestDeliveryAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Delivery is not available '+scope.root.curParams.prettyDate+'.</td></tr><tr><td class="it">You can <a href ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1\');">place an order for immediate delivery</a></td></tr><tr><td class="it">Or, choose a different time you would like this order delivered to your door:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddDeliveryShownFor()+"</table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1){setShouldCallTakeout()}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Choose Different Arrival Time"}}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_z
1iptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Delivery is unavailable '+scope.root.curParams.prettyDate+'.</td></tr><tr><td class="it">However, you can schedule a different Delivery Time.</td></tr><tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToDelivery\');">I want to order for Delivery instead.</a></td></tr></table></td></tr></table>'}else{str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestDeliveryAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Delivery is not available '+scope.root.curParams.prettyDate+'.</td></tr><tr><td class="it">Please choose a different time you would like this order delivered to your door:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddDeliveryShownFor()+"</table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1){setShouldCallTakeout()}}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Choose Different Arrival Time"}}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Delivery is unavailable '+scope.root.curParams.prettyDate+'.</td></tr><tr><td class="it">However, you can schedule a different Delivery Time.</td></tr><tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToDelivery\');">I want to order for Delivery instead.</a></td></tr></table></td></tr></table>'}else{str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestDeliveryAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Delivery is not available '+scope.root.curParams.prettyDate+'.</td></tr><tr><td class="it">Please choose a different time you would like this order delivered to your door:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddDeliveryShownFor()+"</table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1){setShouldCallTakeout()}}}}}}else{if(scope.root.curParams.allowsDeliveryImmediate==1){if(scope.root.curParams.canOrderDeliveryNowImmediate==1){if(p_infoType=="title"){}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Advance delivery ordering is not available to your delivery area.</td></tr><tr><td class="it">However, you can <a href ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1'+(scope.root.curParams.isForTakeout==1?"&formActionType=changeToDelivery":"")+"');\">place an order for immediate delivery</a></td></tr>";if(scope.root.curParams.isForTakeout==1){str+='<tr><td class="it">Or, <a href ng-click="root.dd_goToTarget(\'refreshLeft=1&changeArea=1&formActionType=changeToDelivery\');">try a different delivery area</a>.</td></tr>'}str+="</table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Try Again Later "+writeSoonestDeliveryImmediate()}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Advance delivery ordering is not available to your delivery area.</td></tr><tr><td class="it">The soonest you could return to our site to place a delivery order is '+scope.root.curParams.soonestDeliveryImmediate+".</td></tr>";if(scope.root.curParams.isForTakeout==1){str+='<tr><td class="it">Or, <a href ng-click="root.dd_goToTarget(\'refreshLeft=1&changeArea=1&formActionType=changeToDelivery\');">try a different delivery area</a>.</td></tr>'}str+="</table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Unavailable"}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We do not currently offer delivery to '+(scope.root.curParams.sessFullAddress!=null?scope.root.curParams.sessFullAddress+", ":"")+scope.root.curParams.zipCode+".</td></tr></table></td></tr><tr><td>"+writeOk()+"</td></tr></table>";if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}}else{if(scope.root.curParams.allowsDeliveryImmediate==1){if(scope.root.curParams.canOrderDeliveryNowImmediate==1){if(p_infoType=="title"){}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_z
1iptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We do not offer advance delivery orders. However, ordering for immediate delivery is available.</td></tr><tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToDelivery&resetTargetTime=1\');">I want to order for Delivery instead.</a></td></tr></table></td></tr></table>'}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We do not offer ordering in advance for delivery.</td></tr><tr><td class="it">However, you can <a href ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1\');">place an order for immediate delivery</a></td></tr></table></td></tr><tr><td>'+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1){setShouldCallTakeout()}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Try Again Later "+writeSoonestDeliveryImmediate()}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We do not offer ordering in advance for delivery.</td></tr><tr><td class="it">The soonest you could return to our site to place a delivery order is '+scope.root.curParams.soonestDeliveryImmediate+".</td></tr></table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Unavailable"}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">We do not currently offer delivery to '+(scope.root.curParams.sessFullAddress!=null?scope.root.curParams.sessFullAddress+", ":"")+scope.root.curParams.zipCode+".</td></tr></table></td></tr><tr><td>"+writeOk()+"</td></tr></table>";if(scope.root.isMult==1){setShouldCallTakeout()}}}}}}else{if(scope.root.curParams.allowsDeliveryAdvance==1){if(scope.root.curParams.targetTime==null){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){}}else{if(scope.root.curParams.isForTakeout!=1){str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestDeliveryAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Choose a time you would like this order delivered to your door:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddDeliveryShownFor()+"</table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1){setShouldCallTakeout()}}}}else{if(scope.root.curParams.canOrderDeliveryNowAdvance==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){if(scope.root.curParams.formActionType=="showDeliveryTimeRanges"){str+="Choose a Different Arrival Time."}else{str+=startOrderingVerbage()}}}else{if(scope.root.curParams.isForTakeout!=1){if(scope.root.curParams.formActionType=="showDeliveryTimeRanges"){str+=timeSlots_TimeForm();str+=maybeAddDeliveryShownFor();str+=maybeAddZipTable()}else{if(scope.root.groupOrderPage){str+='<table><tr><td vAlign="top" align="left"><table border="0" cellPadding="1" cellSpacing="0" align="left" class="its" width="100%">'+groupOrderAvailVendors()+'</table></td><td vAlign="top" align="left">'}str+=maybeAddZipRow();str+='<div class="form-group">\x3c!-- newFormRowAddress --\x3e<div class="dd_form-row dd_address"><label for="delivery-address">Delivery Time:</label>';str+='<a class="btn btn-primary" role="button" ng-click="root.openTimeChooser()">'+scope.root.curParams.prettyDate+"</a>";str+="</div></div></div></div>\x3c!-- /newFormRowAddress --\x3e";str+=chooseAndStartOrderingVerbage();str+=maybeAddGroupOrderRows();if(scope.root.groupOrderPage){str+="</td></tr></table>"}}if(scope.root.isMult==1){setShouldCallTakeout()}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Choose Different Arrival Time"}}else{if(scope.root.curParams.isForTakeout==1){str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Delivery is unavailable '+scope.root.curParams.prettyDate+'.</td></tr><tr><td class="it">However, you can schedule a different Delivery Time.</td></tr><tr><td class="it"><a href ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToDelivery\');">I want to order for Delivery instead.</a></td></tr></table></td></tr></table>'}
1else{str+='<table class="dd_ziptable"><tr><td align="center">'+writeSoonestDeliveryAdvance()+'</td></tr><tr><td><table class="dd_ziptable"><tr><td class="it">Delivery is not available '+scope.root.curParams.prettyDate+'.</td></tr><tr><td class="it">Please choose a different time you would like this order delivered to your door:</td></tr><tr><td>'+timeSlots_TimeForm()+"</td></tr>"+maybeAddDeliveryShownFor()+"</table></td></tr><tr><td>"+maybeAddZipTable()+"</td></tr></table>";if(scope.root.isMult==1){setShouldCallTakeout()}}}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Unavailable"}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Sorry, we do not currently offer delivery to '+(scope.root.curParams.sessFullAddress!=null?scope.root.curParams.sessFullAddress+", ":"")+scope.root.curParams.zipCode+".</td></tr></table></td></tr></table>"+writeOk();if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}}else{if(p_infoType=="title"){if(scope.root.curParams.isForTakeout==1){}else if(scope.root.specificVendorID>0||scope.root.curParams.onlyonevendorid>0){str+='<p class="dd_controls-description">Tap your zipcode to begin.</p>'}else{str+='<p class="dd_controls-description">Tap your zipcode to begin.</p>'}}else{if(scope.root.curParams.isForTakeout==1){str+=zipChooser()}else{str+=zipChooser()}}}}else{if(scope.root.curParams.isForTakeout==0||scope.root.isMult==1){if(p_infoType=="title"){if(scope.root.curParams.isForTakeout!=1){str+="Unavailable"}}else{str+='<table class="dd_ziptable"><tr><td><table class="dd_ziptable"><tr><td class="it">Sorry, we do not offer delivery</td></tr></table></td></tr></table>';if(scope.root.isMult==1||(scope.root.curParams.offersTakeoutImmediate==1||scope.root.curParams.offersTakeoutAdvance==1)){if(scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}else{if(p_infoType=="title"){}else{if(scope.root.isMult==1&&scope.root.curParams.isForTakeout!=1){setShouldCallTakeout()}}}}return str}function maybeAddGroupOrderRows(){return""}function zipChooser(){var str="";str+='<form method="POST" name="entrZipFrm" class="dd_select-zip" action="root.dd_goToTarget(\'refreshLeft=1&formZipCode=\'+document.entrZipFrm.formZipCode.value)">';var custAddrArray=[];if(scope.root.curParams.cust_addresses&&scope.root.curParams.cust_addresses.cust_address){var addresses=scope.root.curParams.cust_addresses.cust_address.slice();for(var j=0;j<addresses.length;j++){if(scope.root.curParams.zipOption){for(var k=0;k<scope.root.curParams.zipOption.length;k++){if(addresses[j].zip5==scope.root.curParams.zipOption[k].zip){custAddrArray.push(addresses[j]);break}}}}}if(custAddrArray.length>0){custAddrArray.sort(keysrt("fullname"));custAddrArray.sort(keysrt("zip5"));str+='<table width="100%">';for(var j=0;j<custAddrArray.length;j++){var fullname=custAddrArray[j].fullname;var fullnamecnt=0;var addresses=scope.root.curParams.cust_addresses.cust_address.slice();for(var x=0;x<addresses.length;x++){if(addresses[x].fullname==fullname){fullnamecnt=fullnamecnt+1}}str+='<tr><td> </td><td align="right"><input type="radio" name="radDPID" ng-click="setAddr2(\''+custAddrArray[j].deliverypointid+'\');" value="'+custAddrArray[j].custaddressid+'"/></td><td><a href ng-click="setAddr2(\''+custAddrArray[j].deliverypointid+"');\">"+custAddrArray[j].zip5+": "+custAddrArray[j].fullname;if(fullnamecnt>1){if(custAddrArray[j].fullname2!=null){str+=" "+custAddrArray[j].fullname2}if(custAddrArray[j].fullplacenames!=null){str+=" "+custAddrArray[j].fullplacenames}}str+="</a></td><td> </td></tr>"}str+='<tr><td> </td><td align="right"><input type="radio" name="radDPID" value=""/></td><td>Some other address in Zip Code <select ng-change="goZip();" ng-model="selectedZip" name="selZipChooser"><option value=""></option>';if(scope.root.curParams.zipOption){for(var k=0;k<scope.root.curParams.zipOption.length;k++){str+='<option value="'+scope.root.curParams.zipOption[k].zip+'">'+scope.root.curParams.zipOption[k].zip+"</option>"}}str+="</select></td><td> </td></tr></table>"}else{str+="<div zip-drop-down></div>";str+=maybeAddLocation()}str+='<input type="hidden" name="formActionType" value="changeToDelivery"/><input type="hidden" name="refreshLeft" value="1"/></form>';return str}
1function writeGroupVendorOrders(){}function chooseAndStartOrderingVerbage(){var str="";if(scope.root.isLoggedIntoGroup==1&&scope.root.groupOrderPage){if(scope.root.isGroupAdmin==1){str+='<table border="0" cellpadding="0" cellspacing="0" width="100%">'+writeGroupVendorOrders()+"</table>"}}else if(scope.root.groupOrderPage){}else if(scope.root.specificVendorID>0||scope.root.curParams.onlyonevendorid>0){str+='<div class="form-group form-group--customer-search__submit"><a href="{{root.curParams.specificVendorSeoLink}}" data-history-anchor="" data-ddnobind="1" class="btn btn-primary customer-search__submit dd_animated dd_bounceIn" ng-click="root.restClicked($event, root.curParams.onlyonevendorid);">'+(attrs.formInline?'<span class="customer-search__submit--short">GO!</span><span class="customer-search__submit--long">View Restaurants and Order!</span>':"View Restaurants and Order!")+"</a></div>"}else{str+='<div class="form-group form-group--customer-search__submit"><a href="/restaurants" data-history-anchor="" data-ddnobind="1" class="btn btn-primary customer-search__submit dd_animated dd_bounceIn">'+(attrs.formInline?'<span class="customer-search__submit--short">GO!</span><span class="customer-search__submit--long">View Restaurants and Order!</span>':"View Restaurants and Order!")+"</a></div>"}return str}function startOrderingVerbage(){var str="";if(scope.root.isLoggedIntoGroup==1&&scope.root.groupOrderPage){str='<p class="dd_controls-description">Edit Group Order#'+scope.root.curParams.sessGroupOrderID+"</p>"}else if(scope.root.groupOrderPage){str='<p class="dd_controls-description">Configure and Create a New Group Order.</p>'}else if(scope.root.specificVendorID>0){}else if(scope.root.curParams.onlyonevendorid>0){}else{}return str}function maybeAddZipTable(){var str="";if(getShouldCallZip()==1){str+=maybeAddZipRow()}return str}function keysrt(key){return function(a,b){if(a[key]>b[key])return 1;if(a[key]<b[key])return-1;return 0}}scope.goZip=function(theSel){var theZip=scope.root.selectedZip;if(theZip&&theZip!=""){scope.root.dd_goToTarget("refreshLeft=1&formZipCode="+theZip)}};scope.goZip3=function(p_zip){if(p_zip&&p_zip!=""){scope.root.dd_goToTarget("refreshLeft=1&formZipCode="+p_zip)}};function maybeAddLocation(){var str="";if(scope.root.linkedSites&&scope.root.linkedSites.length>1){var curSiteID=nz(scope.root.static_vars.curSiteID);if(curSiteID!=""){for(var i=0;i<scope.root.linkedSites.length;i++){if(scope.root.linkedSites[i].siteID==curSiteID){str+='<div class="dd_form-row dd_address"><label for="cur-location">Location:</label><div class="dd_input dd_with-button"><input type="text" class="dd_text dd_set" disabled="disabled" value="'+scope.root.linkedSites[i].name+'" /><a href ng-click="dd_changeLocation()" class="dd_button">Change</a></div></div>';break}}}}return str}function writeFullAddressRow(){var str="";str+='<div class="form-group form-group--customer-search__location"><div class="input-group customer-search__location" uib-dropdown><input autocomplete="off" type="text" class="form-control" on-place-updated="root.onPlaceUpdated(place)" data-g-places-autocomplete options="root.autocompleteOptions" ng-model="root.autoCompletePlace" placeholder="Deliver To This Address"><ul class="dropdown-menu" role="menu"><li><a href="#">Tap your delivery zip code.</a></li><li class="divider"></li><li ng-repeat="zip in root.curParams.zipOption"><a href ng-click="root.justSetZip(zip.zip)">{{zip.zip}}</a></li></ul><span class="input-group-btn">';str+='<div class="dd_address_spinner" class="ng-cloak" ng-if="root.loadingAddress"><div class="dd_spinner_loader"><svg class="dd_spinner_circular"><circle class="dd_spinner_path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/></svg></div></div>';str+='<button type="button" class="btn btn-default" uib-dropdown-toggle ng-show="!root.autoCompletePlace || root.autoCompletePlace==\'\'"><span class="glyphicon glyphicon-map-marker"></span></button><button ng-click="root.goWithFullRaw(root.autoCompletePlace)" type="button" class="btn btn-default" ng-show="root.autoCompletePlace && root.autoCompletePlace!=\'\'"><span>Go</span></button></span></div></div>';return str}function writeOk(){var str="";str+='<button class="btn btn-primary customer-search__submit dd_animated dd_bounceIn" ng-click="root.dd_goToTarget(\'refreshLeft=1&changeArea=1&formActionType=changeArea\');"><span class="">OK</span></button>';return str}function writeHalfAddressRow(){var str="";str+='<div class="input-group customer-search__location"><input autocomplete="off" type="text" class="form-control" on-place-updated="root.onPlaceUpdated(place)" data-g-places-autocomplete options="root.autocompleteOptions" ng-model="root.autoCompletePlace" placeholder="Street Address" ><span class="input-group-btn">';str+='<div class="dd_address_spinner" class="ng-cloak" ng-if="root.loadingAddress"><div class="dd_spinner_loader"><svg class="dd_spinner_circular"><circle class="dd_spinner_path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/></svg></div></div>';str+='<button class="btn btn-default" ng-disabled="!(root.autoCompletePlace && root.autoCompletePlace!=\'\')" ng-click="root.goWithHalfRaw(root.autoCompletePlace)"><span>Go</span></button></span></div>';return str}function maybeAddZipRow(){var str="";str+=maybeAddLocation();if(getShouldCallZip()==1){var isDeliveryPointSet=1;if(scope.root.curParams.zipCode!=null&&(scope.root.curParams.sessFullAddress==null||scope.root.curParams.formActionType=="changeAddress")){isDeliveryPointSet=0}if(isDeliveryPointSet==0){str+='<div class="form-group form-group--customer-search__location"><div class="input-group customer-search__location"><input type="text" class="form-control" placeholder="Delivery ZipCode" disabled="true" value="Delivery ZipCode: '+scope.root.curParams.zipCode+'"></input>';if(scope.root.isLoggedIntoGroup==0||scope.root.isGroupAdmin==1&&scope.root.curParams.requestURI=="/options.xsl"){str+='<span class="input-group-btn"><button class="btn btn-default" ng-click="root.dd_goToTarget(\'refreshLeft=1&changeArea=1&formActionType=changeArea\');"><span class="">Change</span></button></span>'}str+="</div></div>"}str+='<div class="form-group form-group--customer-search__location"><div class="customer-search__location">';if(scope.root.curParams.zipCode!=null&&(scope.root.curParams.sessFullAddress==null||scope.root.curParams.formActionType=="changeAddress")){}str+="";if(isDeliveryPointSet==0){if(scope.root.curParams.cust_addresses&&scope.root.curParams.cust_addresses.cust_address){str+='<div class="dropdown customer-addresses-list">';str+=' <button class="btn btn-default btn-block dropdown-toggle" type="button" id="customerAddressesList" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">';str+="\t Your Address";str+='\t <span class="caret"></span>';str+=" </button>";str+=' <ul class="dropdown-menu">';var addresses=scope.root.curParams.cust_addresses.cust_address.slice();addresses.sort(keysrt("fullname"));for(var i=0;i<addresses.length;i++){var fullname=addresses[i].fullname;var fullnamecnt=0;for(var j=0;j<addresses.length;j++){if(addresses[j].fullname==fullname){fullnamecnt=fullnamecnt+1}}str+='<li>
1<a href="#" ng-click="setAddr2(\''+addresses[i].deliverypointid+"');\">";str+=addresses[i].fullname;if(fullnamecnt>1){if(addresses[i].fullname2!=null){str+=" "+addresses[i].fullname2}if(addresses[i].fullplacenames!=null){str+=" "+addresses[i].fullplacenames}}str+="</a></li>"}str+='<li class="customer-addresses-list__autocomplete">'+autoComplete()+'<a href class="btn btn-primary ysearch-submit" ng-click="setAddr3(\''+scope.root.curParams.zipCode+"')\">Go</a></li>";str+="</ul></div>"}else{str+=writeHalfAddressRow()}}else{var fullnamecnt=0;if(scope.root.curParams.cust_addresses&&scope.root.curParams.cust_addresses.cust_address){var addresses=scope.root.curParams.cust_addresses.cust_address.slice();for(var j=0;j<addresses.length;j++){if(addresses[j].fullname==scope.root.curParams.sessFullAddress){fullnamecnt=fullnamecnt+1}}}str+='<div class="input-group customer-search__location"><input type="text" class="form-control" placeholder="Street Address" disabled="true" value="'+scope.root.curParams.sessFullAddress;if(fullnamecnt>1){if(scope.root.curParams.sessFullAddress2!=null){str+=" "+scope.root.curParams.sessFullAddress2}}str+=", "+scope.root.curParams.zipCode+'"></input>';if(scope.root.isLoggedIntoGroup==0||scope.root.isGroupAdmin==1&&scope.root.curParams.requestURI=="/options.xsl"){str+='<span class="input-group-btn"><button class="btn btn-default" ng-click="root.dd_goToTarget(\'refreshLeft=1&changeArea=1&formActionType=changeAddress\');"><span class="">Change</span></button></span></div>'}}str+="</div></div>"}return str}var setAddr=function(p_args1,p_args2){var theNum=p_args2[2][1];var theRangeID=p_args2[2][2];var thePointID=p_args2[2][3];if(thePointID!=null&&thePointID!=""){scope.root.dd_goToTarget("refreshLeft=1&newSPID="+thePointID)}else{scope.root.dd_goToTarget("refreshLeft=1&newSPAddr="+escape(theNum)+"&newSRID="+theRangeID)}};scope.goZip2=function(){if(document.entrZipFrm.formZipCode.value!=""){scope.root.dd_goToTarget("refreshLeft=1&formZipCode="+document.entrZipFrm.formZipCode.value)}};scope.setAddr2=function(p_DPID){scope.root.dd_goToTarget("refreshLeft=1&newDPID="+p_DPID)};scope.setAddr3=function(p_curZip){if(document.getElementById("ysearchinput").value==""){alert("You need to type in your address first.");document.getElementById("ysearchinput").focus();return false}else if(document.getElementById("ysearchinput").value==p_curZip){alert("Your Delivery ZipCode is already set to "+p_curZip+". Type your Delivery Street Address here instead (example: 123 Main St.)");document.getElementById("ysearchinput").value="";document.getElementById("ysearchinput").focus();return false}else{scope.root.dd_goToTarget("refreshLeft=1&newADDR="+escape(document.getElementById("ysearchinput").value))}};if(typeof WISDOM=="undefined"){var WISDOM={}}WISDOM.namespace=function(){var e=arguments,t=null,n,r,i;for(n=0;n<e.length;++n){i=e[n].split(".");t=WISDOM;for(r=i[0]=="WISDOM"?1:0;r<i.length;++r){t[i[r]]=t[i[r]]||{};t=t[i[r]]}}return t};WISDOM.log=function(e,t,n){var r=WISDOM.widget.Logger;if(r&&r.log){return r.log(e,t,n)}else{return false}};WISDOM.extend=function(e,t,n){var r=function(){};r.prototype=t.prototype;e.prototype=new r;e.prototype.constructor=e;e.superclass=t.prototype;if(t.prototype.constructor==Object.prototype.constructor){t.prototype.constructor=t}if(n){for(var i in n){e.prototype[i]=n[i]}}};WISDOM.augment=function(e,t){var n=e.prototype,r=t.prototype,i=arguments,s,o;if(i[2]){for(s=2;s<i.length;++s){n[i[s]]=r[i[s]]}}else{for(o in r){if(!n[o]){n[o]=r[o]}}}};WISDOM.namespace("util","widget","example");(function(){var e=WISDOM.util,t,n,r=0,i={};var s=navigator.userAgent.toLowerCase(),o=s.indexOf("opera")>-1,u=s.indexOf("safari")>-1,a=!o&&!u&&s.indexOf("gecko")>-1,f=!o&&s.indexOf("msie")>-1;var l={HYPHEN:/(-[a-z])/i};var c=function(e){if(!l.HYPHEN.test(e)){return e}if(i[e]){return i[e]}while(l.HYPHEN.exec(e)){e=e.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}i[e]=e;return e};if(document.defaultView&&document.defaultView.getComputedStyle){t=function(e,t){var n=null;var r=document.defaultView.getComputedStyle(e,"");if(r){n=r[c(t)]}return e.style[t]||n}}else if(document.documentElement.currentStyle&&f){t=function(e,t){switch(c(t)){case"opacity":var n=100;try{n=e.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(r){try{n=e.filters("alpha").opacity}catch(r){}}return n/100;break;default:var i=e.currentStyle?e.currentStyle[t]:null;return e.style[t]||i}}}else{t=function(e,t){return e.style[t]}}if(f){n=function(e,t,n){switch(t){case"opacity":if(typeof e.style.filter=="string"){e.style.filter="alpha(opacity="+n*100+")";if(!e.currentStyle||!e.currentStyle.hasLayout){e.style.zoom=1}}break;default:e.style[t]=n}}}else{n=function(e,t,n){e.style[t]=n}}WISDOM.util.Dom={get:function(t){if(!t){return null}if(typeof t!="string"&&!(t instanceof Array)){return t}if(typeof t=="string"){return document.getElementById(t)}else{var n=[];for(var r=0,i=t.length;r<i;++r){n[n.length]=e.Dom.get(t[r])}return n}return null},getStyle:function(n,r){r=c(r);var i=function(e){return t(e,r)};return e.Dom.batch(n,i,e.Dom,true)},setStyle:function(t,r,i){r=c(r);
1var s=function(e){n(e,r,i)};e.Dom.batch(t,s,e.Dom,true)},getXY:function(t){var n=function(t){if(t.parentNode===null||t.offsetParent===null||this.getStyle(t,"display")=="none"){return false}var n=null;var r=[];var i;if(t.getBoundingClientRect){i=t.getBoundingClientRect();var s=document;if(!this.inDocument(t)&&parent.document!=document){s=parent.document;if(!this.isAncestor(s.documentElement,t)){return false}}var o=Math.max(s.documentElement.scrollTop,s.body.scrollTop);var a=Math.max(s.documentElement.scrollLeft,s.body.scrollLeft);return[i.left+a,i.top+o]}else{r=[t.offsetLeft,t.offsetTop];n=t.offsetParent;if(n!=t){while(n){r[0]+=n.offsetLeft;r[1]+=n.offsetTop;n=n.offsetParent}}if(u&&this.getStyle(t,"position")=="absolute"){r[0]-=document.body.offsetLeft;r[1]-=document.body.offsetTop}}if(t.parentNode){n=t.parentNode}else{n=null}while(n&&n.tagName.toUpperCase()!="BODY"&&n.tagName.toUpperCase()!="HTML"){if(e.Dom.getStyle(n,"display")!="inline"){r[0]-=n.scrollLeft;r[1]-=n.scrollTop}if(n.parentNode){n=n.parentNode}else{n=null}}return r};return e.Dom.batch(t,n,e.Dom,true)},getX:function(t){var n=function(t){return e.Dom.getXY(t)[0]};return e.Dom.batch(t,n,e.Dom,true)},getY:function(t){var n=function(t){return e.Dom.getXY(t)[1]};return e.Dom.batch(t,n,e.Dom,true)},setXY:function(t,n,r){var i=function(e){var t=this.getStyle(e,"position");if(t=="static"){this.setStyle(e,"position","relative");t="relative"}var i=this.getXY(e);if(i===false){return false}var s=[parseInt(this.getStyle(e,"left"),10),parseInt(this.getStyle(e,"top"),10)];if(isNaN(s[0])){s[0]=t=="relative"?0:e.offsetLeft}if(isNaN(s[1])){s[1]=t=="relative"?0:e.offsetTop}if(n[0]!==null){e.style.left=n[0]-i[0]+s[0]+"px"}if(n[1]!==null){e.style.top=n[1]-i[1]+s[1]+"px"}if(!r){var o=this.getXY(e);if(n[0]!==null&&o[0]!=n[0]||n[1]!==null&&o[1]!=n[1]){this.setXY(e,n,true)}}};e.Dom.batch(t,i,e.Dom,true)},setX:function(t,n){e.Dom.setXY(t,[n,null])},setY:function(t,n){e.Dom.setXY(t,[null,n])},getRegion:function(t){var n=function(t){var n=new e.Region.getRegion(t);return n};return e.Dom.batch(t,n,e.Dom,true)},getClientWidth:function(){return e.Dom.getViewportWidth()},getClientHeight:function(){return e.Dom.getViewportHeight()},getElementsByClassName:function(t,n,r){var i=function(n){return e.Dom.hasClass(n,t)};return e.Dom.getElementsBy(i,n,r)},hasClass:function(t,n){var r=new RegExp("(?:^|\\s+)"+n+"(?:\\s+|$)");var i=function(e){return r.test(e["className"])};return e.Dom.batch(t,i,e.Dom,true)},addClass:function(t,n){var r=function(e){if(this.hasClass(e,n)){return}e["className"]=[e["className"],n].join(" ")};e.Dom.batch(t,r,e.Dom,true)},removeClass:function(t,n){var r=new RegExp("(?:^|\\s+)"+n+"(?:\\s+|$)","g");var i=function(e){if(!this.hasClass(e,n)){return}var t=e["className"];e["className"]=t.replace(r," ");if(this.hasClass(e,n)){this.removeClass(e,n)}};e.Dom.batch(t,i,e.Dom,true)},replaceClass:function(t,n,r){if(n===r){return false}var i=new RegExp("(?:^|\\s+)"+n+"(?:\\s+|$)","g");var s=function(e){if(!this.hasClass(e,n)){this.addClass(e,r);return}e["className"]=e["className"].replace(i," "+r+" ");if(this.hasClass(e,n)){this.replaceClass(e,n,r)}};e.Dom.batch(t,s,e.Dom,true)},generateId:function(t,n){n=n||"yui-gen";t=t||{};var i=function(t){if(t){t=e.Dom.get(t)}else{t={}}if(!t.id){t.id=n+r++}return t.id};return e.Dom.batch(t,i,e.Dom,true)},isAncestor:function(t,n){t=e.Dom.get(t);if(!t||!n){return false}var r=function(e){if(t.contains&&!u){return t.contains(e)}else if(t.compareDocumentPosition){return!!(t.compareDocumentPosition(e)&16)}else{var n=e.parentNode;while(n){if(n==t){return true}else if(!n.tagName||n.tagName.toUpperCase()=="HTML"){return false}n=n.parentNode}return false}};return e.Dom.batch(n,r,e.Dom,true)},inDocument:function(t){var n=function(e){return this.isAncestor(document.documentElement,e)};return e.Dom.batch(t,n,e.Dom,true)},getElementsBy:function(t,n,r){n=n||"*";var i=[];if(r){r=e.Dom.get(r);if(!r){return i}}else{r=document}var s=r.getElementsByTagName(n);if(!s.length&&n=="*"&&r.all){s=r.all}for(var o=0,u=s.length;o<u;++o){if(t(s[o])){i[i.length]=s[o]}}return i},batch:function(t,n,r,i){var s=t;t=e.Dom.get(t);var o=i?r:window;if(!t||t.tagName||!t.length){if(!t){return false}return n.call(o,t,r)}var u=[];for(var a=0,f=t.length;a<f;++a){if(!t[a]){s=t[a]}u[u.length]=n.call(o,t[a],r)}return u},getDocumentHeight:function(){var t=document.compatMode!="CSS1Compat"?document.body.scrollHeight:document.documentElement.scrollHeight;
1var n=Math.max(t,e.Dom.getViewportHeight());return n},getDocumentWidth:function(){var t=document.compatMode!="CSS1Compat"?document.body.scrollWidth:document.documentElement.scrollWidth;var n=Math.max(t,e.Dom.getViewportWidth());return n},getViewportHeight:function(){var e=self.innerHeight;var t=document.compatMode;if((t||f)&&!o){e=t=="CSS1Compat"?document.documentElement.clientHeight:document.body.clientHeight}return e},getViewportWidth:function(){var e=self.innerWidth;var t=document.compatMode;if(t||f){e=t=="CSS1Compat"?document.documentElement.clientWidth:document.body.clientWidth}return e}}})();WISDOM.util.Region=function(e,t,n,r){this.top=e;this[1]=e;this.right=t;this.bottom=n;this.left=r;this[0]=r};WISDOM.util.Region.prototype.contains=function(e){return e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom};WISDOM.util.Region.prototype.getArea=function(){return(this.bottom-this.top)*(this.right-this.left)};WISDOM.util.Region.prototype.intersect=function(e){var t=Math.max(this.top,e.top);var n=Math.min(this.right,e.right);var r=Math.min(this.bottom,e.bottom);var i=Math.max(this.left,e.left);if(r>=t&&n>=i){return new WISDOM.util.Region(t,n,r,i)}else{return null}};WISDOM.util.Region.prototype.union=function(e){var t=Math.min(this.top,e.top);var n=Math.max(this.right,e.right);var r=Math.max(this.bottom,e.bottom);var i=Math.min(this.left,e.left);return new WISDOM.util.Region(t,n,r,i)};WISDOM.util.Region.prototype.toString=function(){return"Region {"+"top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+"}"};WISDOM.util.Region.getRegion=function(e){var t=WISDOM.util.Dom.getXY(e);var n=t[1];var r=t[0]+e.offsetWidth;var i=t[1]+e.offsetHeight;var s=t[0];return new WISDOM.util.Region(n,r,i,s)};WISDOM.util.Point=function(e,t){if(e instanceof Array){t=e[1];e=e[0]}this.x=this.right=this.left=this[0]=e;this.y=this.top=this.bottom=this[1]=t};WISDOM.util.Point.prototype=new WISDOM.util.Region;WISDOM.util.CustomEvent=function(e,t,n,r){this.type=e;this.scope=t||window;this.silent=n;this.signature=r||WISDOM.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var i="_YUICEOnSubscribe";if(e!==i){this.subscribeEvent=new WISDOM.util.CustomEvent(i,this,true)}};WISDOM.util.CustomEvent.LIST=0;WISDOM.util.CustomEvent.FLAT=1;WISDOM.util.CustomEvent.prototype={subscribe:function(e,t,n){if(this.subscribeEvent){this.subscribeEvent.fire(e,t,n)}this.subscribers.push(new WISDOM.util.Subscriber(e,t,n))},unsubscribe:function(e,t){var n=false;for(var r=0,i=this.subscribers.length;r<i;++r){var s=this.subscribers[r];if(s&&s.contains(e,t)){this._delete(r);n=true}}return n},fire:function(){var e=this.subscribers.length;if(!e&&this.silent){return true}var t=[],n=true,r;for(r=0;r<arguments.length;++r){t.push(arguments[r])}var i=t.length;if(!this.silent){}for(r=0;r<e;++r){var s=this.subscribers[r];if(s){if(!this.silent){}var o=s.getScope(this.scope);if(this.signature==WISDOM.util.CustomEvent.FLAT){var u=null;if(t.length>0){u=t[0]}n=s.fn.call(o,u,s.obj)}else{n=s.fn.call(o,this.type,t,s.obj)}if(false===n){if(!this.silent){}return false}}}return true},unsubscribeAll:function(){for(var e=0,t=this.subscribers.length;e<t;++e){this._delete(t-1-e)}},_delete:function(e){var t=this.subscribers[e];if(t){delete t.fn;delete t.obj}this.subscribers.splice(e,1)},toString:function(){return"CustomEvent: "+"'"+this.type+"', "+"scope: "+this.scope}};WISDOM.util.Subscriber=function(e,t,n){this.fn=e;this.obj=t||null;this.override=n};WISDOM.util.Subscriber.prototype.getScope=function(e){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return e};WISDOM.util.Subscriber.prototype.contains=function(e,t){if(t){return this.fn==e&&this.obj==t}else{return this.fn==e}};WISDOM.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+(this.obj||"")+", override: "+(this.override||"no")+" }"};if(!WISDOM.util.Event){WISDOM.util.Event=function(){var e=false;var t=[];var n=[];var r=[];var i=[];var s=0;var o=[];var u=[];var a=0;return{POLL_RETRYS:200,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,isSafari:/Safari|Konqueror|KHTML/gi.test(navigator.userAgent),isIE:!this.isSafari&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi),_interval:null,startInterval:function(){if(!this._interval){var e=this;var t=function(){e._tryPreloadAttach()};this._interval=setInterval(t,this.POLL_INTERVAL)}},onAvailable:function(e,t,n,r){o.push({id:e,fn:t,obj:n,override:r,checkReady:false});s=this.POLL_RETRYS;this.startInterval()},onContentReady:function(e,t,n,r){o.push({id:e,fn:t,obj:n,override:r,checkReady:true});s=this.POLL_RETRYS;this.startInterval()}
1,addListener:function(e,s,o,a,f){if(!o||!o.call){return false}if(this._isValidCollection(e)){var l=true;for(var c=0,h=e.length;c<h;++c){l=this.on(e[c],s,o,a,f)&&l}return l}else if(typeof e=="string"){var p=this.getEl(e);if(p){e=p}else{this.onAvailable(e,function(){WISDOM.util.Event.on(e,s,o,a,f)});return true}}if(!e){return false}if("unload"==s&&a!==this){n[n.length]=[e,s,o,a,f];return true}var d=e;if(f){if(f===true){d=a}else{d=f}}var v=function(e){return o.call(d,WISDOM.util.Event.getEvent(e),a)};var m=[e,s,o,v,d];var g=t.length;t[g]=m;if(this.useLegacyEvent(e,s)){var y=this.getLegacyIndex(e,s);if(y==-1||e!=r[y][0]){y=r.length;u[e.id+s]=y;r[y]=[e,s,e["on"+s]];i[y]=[];e["on"+s]=function(e){WISDOM.util.Event.fireLegacyEvent(WISDOM.util.Event.getEvent(e),y)}}i[y].push(m)}else{try{this._simpleAdd(e,s,v,false)}catch(b){this.removeListener(e,s,o);return false}}return true},fireLegacyEvent:function(e,t){var n=true;var r=i[t];for(var s=0,o=r.length;s<o;++s){var u=r[s];if(u&&u[this.WFN]){var a=u[this.ADJ_SCOPE];var f=u[this.WFN].call(a,e);n=n&&f}}return n},getLegacyIndex:function(e,t){var n=this.generateId(e)+t;if(typeof u[n]=="undefined"){return-1}else{return u[n]}},useLegacyEvent:function(e,t){if(!e.addEventListener&&!e.attachEvent){return true}else if(this.isSafari){if("click"==t||"dblclick"==t){return true}}return false},removeListener:function(e,r,s){var o,u;if(typeof e=="string"){e=this.getEl(e)}else if(this._isValidCollection(e)){var a=true;for(o=0,u=e.length;o<u;++o){a=this.removeListener(e[o],r,s)&&a}return a}if(!s||!s.call){return this.purgeElement(e,false,r)}if("unload"==r){for(o=0,u=n.length;o<u;o++){var f=n[o];if(f&&f[0]==e&&f[1]==r&&f[2]==s){n.splice(o,1);return true}}return false}var l=null;var c=arguments[3];if("undefined"==typeof c){c=this._getCacheIndex(e,r,s)}if(c>=0){l=t[c]}if(!e||!l){return false}if(this.useLegacyEvent(e,r)){var h=this.getLegacyIndex(e,r);var p=i[h];if(p){for(o=0,u=p.length;o<u;++o){f=p[o];if(f&&f[this.EL]==e&&f[this.TYPE]==r&&f[this.FN]==s){p.splice(o,1);break}}}}else{try{this._simpleRemove(e,r,l[this.WFN],false)}catch(d){return false}}delete t[c][this.WFN];delete t[c][this.FN];t.splice(c,1);return true},getTarget:function(e,t){var n=e.target||e.srcElement;return this.resolveTextNode(n)},resolveTextNode:function(e){if(e&&3==e.nodeType){return e.parentNode}else{return e}},getPageX:function(e){var t=e.pageX;if(!t&&0!==t){t=e.clientX||0;if(this.isIE){t+=this._getScrollLeft()}}return t},getPageY:function(e){var t=e.pageY;if(!t&&0!==t){t=e.clientY||0;if(this.isIE){t+=this._getScrollTop()}}return t},getXY:function(e){return[this.getPageX(e),this.getPageY(e)]},getRelatedTarget:function(e){var t=e.relatedTarget;if(!t){if(e.type=="mouseout"){t=e.toElement}else if(e.type=="mouseover"){t=e.fromElement}}return this.resolveTextNode(t)},getTime:function(e){if(!e.time){var t=(new Date).getTime();try{e.time=t}catch(n){return t}}return e.time},stopEvent:function(e){this.stopPropagation(e);this.preventDefault(e)},stopPropagation:function(e){if(e.stopPropagation){e.stopPropagation()}else{e.cancelBubble=true}},preventDefault:function(e){if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}},getEvent:function(e){var t=e||window.event;if(!t){var n=this.getEvent.caller;while(n){t=n.arguments[0];if(t&&Event==t.constructor){break}n=n.caller}}return t},getCharCode:function(e){return e.charCode||e.keyCode||0},_getCacheIndex:function(e,n,r){for(var i=0,s=t.length;i<s;++i){var o=t[i];if(o&&o[this.FN]==r&&o[this.EL]==e&&o[this.TYPE]==n){return i}}return-1},generateId:function(e){var t=e.id;if(!t){t="yuievtautoid-"+a;++a;e.id=t}return t},_isValidCollection:function(e){return e&&e.length&&typeof e!="string"&&!e.tagName&&!e.alert&&typeof e[0]!="undefined"},elCache:{},getEl:function(e){return document.getElementById(e)},clearCache:function(){},_load:function(t){e=true;var n=WISDOM.util.Event;if(this.isIE){n._simpleRemove(window,"load",n._load)}},_tryPreloadAttach:function(){if(this.locked){return false}this.locked=true;var t=!e;if(!t){t=s>0}var n=[];for(var r=0,i=o.length;r<i;++r){var u=o[r];if(u){var a=this.getEl(u.id);if(a){if(!u.checkReady||e||a.nextSibling||document&&document.body){var f=a;if(u.override){if(u.override===true){f=u.obj}else{f=u.override}}u.fn.call(f,u.obj);o[r]=null}}else{n.push(u)}}}s=n.length===0?0:s-1;if(t){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(e,t,n){var r=this.getListeners(e,n);if(r){for(var i=0,s=r.length;i<s;++i){var o=r[i];this.removeListener(e,o.type,o.fn)}}if(t&&e&&e.childNodes){for(i=0,s=e.childNodes.length;i<s;++i){this.purgeElement(e.childNodes[i],t,n)}}},getListeners:function(e,n){var r=[];if(t&&t.length>0){for(var i=0,s=t.length;i<s;++i){var o=t[i];if(o&&o[this.EL]===e&&(!n||n===o[this.TYPE])){r.push({type:o[this.TYPE],fn:o[this.FN],obj:o[this.OBJ],adjust:o[this.ADJ_SCOPE],index:i})}}}return r.length?r:null},_unload:function(e){var i=WISDOM.util.Event,s,o,u,a,f;for(s=0,a=n.length;s<a;++s){u=n[s];if(u){var l=window;if(u[i.ADJ_SCOPE]){if(u[i.ADJ_SCOPE]===true){l=u[i.OBJ]}else{l=u[i.ADJ_SCOPE]}}u[i.FN].call(l,i.getEvent(e),u[i.OBJ]);n[s]=null;u=null;l=null}}n=null;if(t&&t.length>0){o=t.length;while(o){f=o-1;u=t[f];if(u){i.removeListener(u[i.EL],u[i.TYPE],u[i.FN],f)}o=o-1}u=null;i.clearCache()}for(s=0,a=r.length;s<a;
1++s){r[s][0]=null;r[s]=null}r=null;i._simpleRemove(window,"unload",i._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var e=document.documentElement,t=document.body;if(e&&(e.scrollTop||e.scrollLeft)){return[e.scrollTop,e.scrollLeft]}else if(t){return[t.scrollTop,t.scrollLeft]}else{return[0,0]}},_simpleAdd:function(){if(window.addEventListener){return function(e,t,n,r){e.addEventListener(t,n,r)}}else if(window.attachEvent){return function(e,t,n,r){e.attachEvent("on"+t,n)}}else{return function(){}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(e,t,n,r){e.removeEventListener(t,n,r)}}else if(window.detachEvent){return function(e,t,n){e.detachEvent("on"+t,n)}}else{return function(){}}}()}}();(function(){var e=WISDOM.util.Event;e.on=e.addListener;if(document&&document.body){e._load()}else{e._simpleAdd(window,"load",e._load)}e._simpleAdd(window,"unload",e._unload);e._tryPreloadAttach()})()}WISDOM.util.EventProvider=function(){};WISDOM.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(e,t,n,r){this.__yui_events=this.__yui_events||{};var i=this.__yui_events[e];if(i){i.subscribe(t,n,r)}else{this.__yui_subscribers=this.__yui_subscribers||{};var s=this.__yui_subscribers;if(!s[e]){s[e]=[]}s[e].push({fn:t,obj:n,override:r})}},unsubscribe:function(e,t,n){this.__yui_events=this.__yui_events||{};var r=this.__yui_events[e];if(r){return r.unsubscribe(t,n)}else{return false}},createEvent:function(e,t){this.__yui_events=this.__yui_events||{};var n=t||{};var r=this.__yui_events;if(r[e]){}else{var i=n.scope||this;var s=n.silent||null;var o=new WISDOM.util.CustomEvent(e,i,s,WISDOM.util.CustomEvent.FLAT);r[e]=o;if(n.onSubscribeCallback){o.subscribeEvent.subscribe(n.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var u=this.__yui_subscribers[e];if(u){for(var a=0;a<u.length;++a){o.subscribe(u[a].fn,u[a].obj,u[a].override)}}}return r[e]},fireEvent:function(e,t,n,r){this.__yui_events=this.__yui_events||{};var i=this.__yui_events[e];if(i){var s=[];for(var o=1;o<arguments.length;++o){s.push(arguments[o])}return i.fire.apply(i,s)}else{return null}},hasEvent:function(e){if(this.__yui_events){if(this.__yui_events[e]){return true}}return false}};WISDOM.util.Connect={_msxml_progid:["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],_http_header:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded",_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,setProgId:function(e){this._msxml_progid.unshift(e)},setDefaultPostHeader:function(e){this._use_default_post_header=e},setPollingInterval:function(e){if(typeof e=="number"&&isFinite(e)){this._polling_interval=e}},createXhrObject:function(e){var t,n;try{n=new XMLHttpRequest;t={conn:n,tId:e}}catch(r){for(var i=0;i<this._msxml_progid.length;++i){try{n=new ActiveXObject(this._msxml_progid[i]);t={conn:n,tId:e};break}catch(r){}}}finally{return t}},getConnectionObject:function(){var e;var t=this._transaction_id;try{e=this.createXhrObject(t);if(e){this._transaction_id++}}catch(n){}finally{return e}},asyncRequest:function(e,t,n,r){var i=this.getConnectionObject();if(!i){return null}else{if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(i.tId,n,t,r);this.releaseObject(i);return}if(e=="GET"){if(this._sFormData.length!=0){t+=(t.indexOf("?")==-1?"?":"&")+this._sFormData}else{t+="?"+this._sFormData}}else if(e=="POST"){r=r?this._sFormData+"&"+r:this._sFormData}}i.conn.open(e,t,true);if(this._isFormSubmit||r&&this._use_default_post_header){this.initHeader("Content-Type",this._default_post_header);if(this._isFormSubmit){this.resetFormState()}}if(this._has_http_headers){this.setHeader(i)}this.handleReadyState(i,n);i.conn.send(r||null);return i}},handleReadyState:function(e,t){var n=this;if(t&&t.timeout){this._timeOut[e.tId]=window.setTimeout(function(){n.abort(e,t,true)},t.timeout)}this._poll[e.tId]=window.setInterval(function(){if(e.conn&&e.conn.readyState==4){window.clearInterval(n._poll[e.tId]);delete n._poll[e.tId];if(t&&t.timeout){delete n._timeOut[e.tId]}n.handleTransactionResponse(e,t)}},this._polling_interval)},handleTransactionResponse:function(e,t,n){if(!t){this.releaseObject(e);return}var r,i;try{if(e.conn.status!==undefined&&e.conn.status!=0){r=e.conn.status}else{r=13030}}catch(s){r=13030}if(r>=200&&r<300){try{i=this.createResponseObject(e,t.argument);if(t.success){if(!t.scope){t.success(i)}else{t.success.apply(t.scope,[i])}}}catch(s){}}else{try{switch(r){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:i=this.createExceptionObject(e.tId,t.argument,n?n:false);
1if(t.failure){if(!t.scope){t.failure(i)}else{t.failure.apply(t.scope,[i])}}break;default:i=this.createResponseObject(e,t.argument);if(t.failure){if(!t.scope){t.failure(i)}else{t.failure.apply(t.scope,[i])}}}}catch(s){}}this.releaseObject(e);i=null},createResponseObject:function(e,t){var n={};var r={};try{var i=e.conn.getAllResponseHeaders();var s=i.split("\n");for(var o=0;o<s.length;o++){var u=s[o].indexOf(":");if(u!=-1){r[s[o].substring(0,u)]=s[o].substring(u+2)}}}catch(a){}n.tId=e.tId;n.status=e.conn.status;n.statusText=e.conn.statusText;n.getResponseHeader=r;n.getAllResponseHeaders=i;n.responseText=e.conn.responseText;n.responseXML=e.conn.responseXML;if(typeof t!==undefined){n.argument=t}return n},createExceptionObject:function(e,t,n){var r=0;var i="communication failure";var s=-1;var o="transaction aborted";var u={};u.tId=e;if(n){u.status=s;u.statusText=o}else{u.status=r;u.statusText=i}if(t){u.argument=t}return u},initHeader:function(e,t){if(this._http_header[e]===undefined){this._http_header[e]=t}else{this._http_header[e]=t+","+this._http_header[e]}this._has_http_headers=true},setHeader:function(e){for(var t in this._http_header){if(this._http_header.hasOwnProperty(t)){e.conn.setRequestHeader(t,this._http_header[t])}}delete this._http_header;this._http_header={};this._has_http_headers=false},setForm:function(e,t,n){this.resetFormState();var r;if(typeof e=="string"){r=document.getElementById(e)||document.forms[e]}else if(typeof e=="object"){r=e}else{return}if(t){this.createFrame(n?n:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=r;return}var i,s,o,u;var a=false;for(var f=0;f<r.elements.length;f++){i=r.elements[f];u=r.elements[f].disabled;s=r.elements[f].name;o=r.elements[f].value;if(!u&&s){switch(i.type){case"select-one":case"select-multiple":for(var l=0;l<i.options.length;l++){if(i.options[l].selected){if(window.ActiveXObject){this._sFormData+=encodeURIComponent(s)+"="+encodeURIComponent(i.options[l].attributes["value"].specified?i.options[l].value:i.options[l].text)+"&"}else{this._sFormData+=encodeURIComponent(s)+"="+encodeURIComponent(i.options[l].hasAttribute("value")?i.options[l].value:i.options[l].text)+"&"}}}break;case"radio":case"checkbox":if(i.checked){this._sFormData+=encodeURIComponent(s)+"="+encodeURIComponent(o)+"&"}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(a==false){this._sFormData+=encodeURIComponent(s)+"="+encodeURIComponent(o)+"&";a=true}break;default:this._sFormData+=encodeURIComponent(s)+"="+encodeURIComponent(o)+"&";break}}}this._isFormSubmit=true;this._sFormData=this._sFormData.substr(0,this._sFormData.length-1);return this._sFormData},resetFormState:function(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData=""},createFrame:function(e){var t="yuiIO"+this._transaction_id;if(window.ActiveXObject){var n=document.createElement('<iframe id="'+t+'" name="'+t+'" />');if(typeof e=="boolean"){n.src="javascript:false"}else if(typeof secureURI=="string"){n.src=e}}else{var n=document.createElement("iframe");n.id=t;n.name=t}n.style.position="absolute";n.style.top="-1000px";n.style.left="-1000px";document.body.appendChild(n)},appendPostData:function(e){var t=[];var n=e.split("&");for(var r=0;r<n.length;r++){var i=n[r].indexOf("=");if(i!=-1){t[r]=document.createElement("input");t[r].type="hidden";t[r].name=n[r].substring(0,i);t[r].value=n[r].substring(i+1);this._formNode.appendChild(t[r])}}return t},uploadFile:function(e,t,n,r){var i="yuiIO"+e;var s=document.getElementById(i);this._formNode.action=n;this._formNode.method="POST";this._formNode.target=i;if(this._formNode.encoding){this._formNode.encoding="multipart/form-data"}else{this._formNode.enctype="multipart/form-data"}if(r){var o=this.appendPostData(r)}this._formNode.submit();if(o&&o.length>0){try{for(var u=0;u<o.length;u++){this._formNode.removeChild(o[u])}}catch(a){}}this.resetFormState();var f=function(){var n={};n.tId=e;n.argument=t.argument;try{n.responseText=s.contentWindow.document.body?s.contentWindow.document.body.innerHTML:null;n.responseXML=s.contentWindow.document.XMLDocument?s.contentWindow.document.XMLDocument:s.contentWindow.document}catch(r){}if(t.upload){if(!t.scope){t.upload(n)}else{t.upload.apply(t.scope,[n])}}if(WISDOM.util.Event){WISDOM.util.Event.removeListener(s,"load",f)}else if(window.detachEvent){s.detachEvent("onload",f)}else{s.removeEventListener("load",f,false)}setTimeout(function(){document.body.removeChild(s)},100)};if(WISDOM.util.Event){WISDOM.util.Event.addListener(s,"load",f)}else if(window.attachEvent){s.attachEvent("onload",f)}else{s.addEventListener("load",f,false)}},abort:function(e,t,n){if(this.isCallInProgress(e)){e.conn.abort();window.clearInterval(this._poll[e.tId]);delete this._poll[e.tId];if(n){delete this._timeOut[e.tId]}this.handleTransactionResponse(e,t,true);return true}else{return false}},isCallInProgress:function(e){if(e.conn){return e.conn.readyState!=4&&e.conn.readyState!=0}else{return false}},releaseObject:function(e){e.conn=null;e=null}};var JSON={copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(e){function n(e){t[t.length]=e}function r(e){var i,s,o,u;switch(typeof e){case"object":if(e){if(e instanceof Array){n("[");o=t.length;for(s=0;s<e.length;s+=1){u=e[s];if(typeof u!="undefined"&&typeof u!="function"){if(o<t.length){n(",")}r(u)}}n("]");return}else if(typeof e.valueOf=="function"){n("{");o=t.length;for(s in e){u=e[s];if(typeof u!="undefined"&&typeof u!="function"&&(!u||typeof u!="object"||typeof u.valueOf=="function")){if(o<t.length){n(",")}r(s);n(":");r(u)}}return n("}")}}n("null");return;case"number":n(isFinite(e)?+e:"null");return;case"string":o=e.length;n('"');for(s=0;s<o;s+=1){i=e.charAt(s);if(i>=" "){if(i=="\\"||i=='"'){n("\\")}n(i)}else{switch(i){case"\b":n("\\b");break;case"\f":n("\\f");break;case"\n":n("\\n");break;case"\r":n("\\r");break;case"\t":n("\\t");break;default:i=i.charCodeAt();n("\\u00"+Math.floor(i/16).toString(16)+(i%16).toString(16))}}}n('"');return;case"boolean":n(String(e));return;default:n("null");return}}var t=[];r(e);return t.join("")},parse:function(text){return/^(\s+|[,:{}\[\]]|"(\\["\\\/bfnrtu]|[^\x00-\x1f"\\]+)*"|-?\d+(\.\d*)?([eE][+-]?\d+)?|true|false|null)+$/.test(text)&&eval("("+text+")")}};WISDOM.widget.AutoComplete=function(e,t,n,r){if(e&&t&&n){if(n&&n instanceof WISDOM.widget.DataSource){this.dataSource=n}else{return}if(WISDOM.util.Dom.inDocument(e)){if(typeof e=="string"){this._sName="instance"+WISDOM.widget.AutoComplete._nIndex+" "+e;this._oTextbox=document.getElementById(e)}else{this._sName=e.id?"instance"+WISDOM.widget.AutoComplete._nIndex+" "+e.id:"instance"+WISDOM.widget.AutoComplete._nIndex;this._oTextbox=e}}else{return}if(WISDOM.util.Dom.inDocument(t)){if(typeof t=="string"){this._oContainer=document.getElementById(t)}else{this._oContainer=t}if(this._oContainer.style.display=="none"){}}else{return}if(typeof r=="object"){for(var i in r){if(i){this[i]=r[i]}}}this._initContainer();this._initProps();this._initList();this._initContainerHelpers();var s=this;var o=this._oTextbox;var u=this._oContainer._oContent;WISDOM.util.Event.addListener(o,"keyup",s._onTextboxKeyUp,s);WISDOM.util.Event.addListener(o,"keydown",s._onTextboxKeyDown,s);WISDOM.util.Event.addListener(o,"focus",s._onTextboxFocus,s);WISDOM.util.Event.addListener(o,"blur",s._onTextboxBlur,s);WISDOM.util.Event.addListener(u,"mouseover",s._onContainerMouseover,s);WISDOM.util.Event.addListener(u,"mouseout",s._onContainerMouseout,s);WISDOM.util.Event.addListener(u,"scroll",s._onContainerScroll,s);WISDOM.util.Event.addListener(u,"resize",s._onContainerResize,s);if(o.form){WISDOM.util.Event.addListener(o.form,"submit",s._onFormSubmit,s)}WISDOM.util.Event.addListener(o,"keypress",s._onTextboxKeyPress,s);this.textboxFocusEvent=new WISDOM.util.CustomEvent("textboxFocus",this);this.textboxKeyEvent=new WISDOM.util.CustomEvent("textboxKey",this);
1this.dataRequestEvent=new WISDOM.util.CustomEvent("dataRequest",this);this.dataReturnEvent=new WISDOM.util.CustomEvent("dataReturn",this);this.dataErrorEvent=new WISDOM.util.CustomEvent("dataError",this);this.containerExpandEvent=new WISDOM.util.CustomEvent("containerExpand",this);this.typeAheadEvent=new WISDOM.util.CustomEvent("typeAhead",this);this.itemMouseOverEvent=new WISDOM.util.CustomEvent("itemMouseOver",this);this.itemMouseOutEvent=new WISDOM.util.CustomEvent("itemMouseOut",this);this.itemArrowToEvent=new WISDOM.util.CustomEvent("itemArrowTo",this);this.itemArrowFromEvent=new WISDOM.util.CustomEvent("itemArrowFrom",this);this.itemSelectEvent=new WISDOM.util.CustomEvent("itemSelect",this);this.unmatchedItemSelectEvent=new WISDOM.util.CustomEvent("unmatchedItemSelect",this);this.selectionEnforceEvent=new WISDOM.util.CustomEvent("selectionEnforce",this);this.containerCollapseEvent=new WISDOM.util.CustomEvent("containerCollapse",this);this.textboxBlurEvent=new WISDOM.util.CustomEvent("textboxBlur",this);o.setAttribute("autocomplete","off");WISDOM.widget.AutoComplete._nIndex++}else{}};WISDOM.widget.AutoComplete.prototype.dataSource=null;WISDOM.widget.AutoComplete.prototype.minQueryLength=1;WISDOM.widget.AutoComplete.prototype.maxResultsDisplayed=10;WISDOM.widget.AutoComplete.prototype.queryDelay=.5;WISDOM.widget.AutoComplete.prototype.highlightClassName="yui-ac-highlight";WISDOM.widget.AutoComplete.prototype.prehighlightClassName=null;WISDOM.widget.AutoComplete.prototype.delimChar=null;WISDOM.widget.AutoComplete.prototype.autoHighlight=true;WISDOM.widget.AutoComplete.prototype.typeAhead=false;WISDOM.widget.AutoComplete.prototype.animHoriz=false;WISDOM.widget.AutoComplete.prototype.animVert=true;WISDOM.widget.AutoComplete.prototype.animSpeed=.3;WISDOM.widget.AutoComplete.prototype.forceSelection=false;WISDOM.widget.AutoComplete.prototype.allowBrowserAutocomplete=true;WISDOM.widget.AutoComplete.prototype.alwaysShowContainer=false;WISDOM.widget.AutoComplete.prototype.useIFrame=false;WISDOM.widget.AutoComplete.prototype.useShadow=false;WISDOM.widget.AutoComplete.prototype.toString=function(){return"AutoComplete "+this._sName};WISDOM.widget.AutoComplete.prototype.isContainerOpen=function(){return this._bContainerOpen};WISDOM.widget.AutoComplete.prototype.getListItems=function(){return this._aListItems};WISDOM.widget.AutoComplete.prototype.getListItemData=function(e){if(e._oResultData){return e._oResultData}else{return false}};WISDOM.widget.AutoComplete.prototype.setHeader=function(e){if(e){if(this._oContainer._oContent._oHeader){this._oContainer._oContent._oHeader.innerHTML=e;this._oContainer._oContent._oHeader.style.display="block"}}else{this._oContainer._oContent._oHeader.innerHTML="";this._oContainer._oContent._oHeader.style.display="none"}};WISDOM.widget.AutoComplete.prototype.setFooter=function(e){if(e){if(this._oContainer._oContent._oFooter){this._oContainer._oContent._oFooter.innerHTML=e;this._oContainer._oContent._oFooter.style.display="block"}}else{this._oContainer._oContent._oFooter.innerHTML="";this._oContainer._oContent._oFooter.style.display="none"}};WISDOM.widget.AutoComplete.prototype.setBody=function(e){if(e){if(this._oContainer._oContent._oBody){this._oContainer._oContent._oBody.innerHTML=e;this._oContainer._oContent._oBody.style.display="block";this._oContainer._oContent.style.display="block"}}else{this._oContainer._oContent._oBody.innerHTML="";this._oContainer._oContent.style.display="none"}this._maxResultsDisplayed=0};WISDOM.widget.AutoComplete.prototype.formatResult=function(e,t){var n=e[0];if(n){return n}else{return""}};WISDOM.widget.AutoComplete.prototype.doBeforeExpandContainer=function(e,t){return true};WISDOM.widget.AutoComplete.prototype.sendQuery=function(e){this._sendQuery(e)};WISDOM.widget.AutoComplete.prototype.textboxFocusEvent=null;WISDOM.widget.AutoComplete.prototype.textboxKeyEvent=null;WISDOM.widget.AutoComplete.prototype.dataRequestEvent=null;WISDOM.widget.AutoComplete.prototype.dataReturnEvent=null;WISDOM.widget.AutoComplete.prototype.dataErrorEvent=null;WISDOM.widget.AutoComplete.prototype.containerExpandEvent=null;WISDOM.widget.AutoComplete.prototype.typeAheadEvent=null;WISDOM.widget.AutoComplete.prototype.itemMouseOverEvent=null;WISDOM.widget.AutoComplete.prototype.itemMouseOutEvent=null;WISDOM.widget.AutoComplete.prototype.itemArrowToEvent=null;WISDOM.widget.AutoComplete.prototype.itemArrowFromEvent=null;WISDOM.widget.AutoComplete.prototype.itemSelectEvent=null;WISDOM.widget.AutoComplete.prototype.unmatchedItemSelectEvent=null;WISDOM.widget.AutoComplete.prototype.selectionEnforceEvent=null;WISDOM.widget.AutoComplete.prototype.containerCollapseEvent=null;WISDOM.widget.AutoComplete.prototype.textboxBlurEvent=null;WISDOM.widget.AutoComplete._nIndex=0;WISDOM.widget.AutoComplete.prototype._sName=null;WISDOM.widget.AutoComplete.prototype._oTextbox=null;WISDOM.widget.AutoComplete.prototype._bFocused=true;WISDOM.widget.AutoComplete.prototype._oAnim=null;WISDOM.widget.AutoComplete.prototype._oContainer=null;WISDOM.widget.AutoComplete.prototype._bContainerOpen=false;WISDOM.widget.AutoComplete.prototype._bOverContainer=false;WISDOM.widget.AutoComplete.prototype._aListItems=null;WISDOM.widget.AutoComplete.prototype._nDisplayedItems=0;WISDOM.widget.AutoComplete.prototype._maxResultsDisplayed=0;WISDOM.widget.AutoComplete.prototype._sCurQuery=null;WISDOM.widget.AutoComplete.prototype._sSavedQuery=null;WISDOM.widget.AutoComplete.prototype._oCurItem=null;WISDOM.widget.AutoComplete.prototype._bItemSelected=false;WISDOM.widget.AutoComplete.prototype._nKeyCode=null;WISDOM.widget.AutoComplete.prototype._nDelayID=-1;WISDOM.widget.AutoComplete.prototype._iFrameSrc="javascript:false;";WISDOM.widget.AutoComplete.prototype._queryInterval=null;WISDOM.widget.AutoComplete.prototype._sLastTextboxValue=null;WISDOM.widget.AutoComplete.prototype._initProps=function(){var e=this.minQueryLength;if(isNaN(e)||e<1){e=1}var t=this.maxResultsDisplayed;if(isNaN(this.maxResultsDisplayed)||this.maxResultsDisplayed<1){this.maxResultsDisplayed=10}var n=this.queryDelay;if(isNaN(this.queryDelay)||this.queryDelay<0){this.queryDelay=.5}var r=this.delimChar?this.delimChar:null;if(r){if(typeof r=="string"){this.delimChar=[r]}else if(r.constructor!=Array){this.delimChar=null}}var i=this.animSpeed;if((this.animHoriz||this.animVert)&&WISDOM.util.Anim){if(isNaN(i)||i<0){i=.3}if(!this._oAnim){oAnim=new WISDOM.util.Anim(this._oContainer._oContent,{},this.animSpeed);this._oAnim=oAnim}else{this._oAnim.duration=i}}if(this.forceSelection&&this.delimChar){}};WISDOM.widget.AutoComplete.prototype._initContainerHelpers=function(){if(this.useShadow&&!this._oContainer._oShadow){var e=document.createElement("div");e.className="yui-ac-shadow";this._oContainer._oShadow=this._oContainer.appendChild(e)}if(this.useIFrame&&!this._oContainer._oIFrame){var t=document.createElement("iframe");t.src=this._iFrameSrc;t.frameBorder=0;t.scrolling="no";t.style.position="absolute";t.style.width="100%";t.style.height="100%";t.tabIndex=-1;this._oContainer._oIFrame=this._oContainer.appendChild(t)}};WISDOM.widget.AutoComplete.prototype._initContainer=function(){if(!this._oContainer._oContent){var e=document.createElement("div");e.className="yui-ac-content";e.style.display="none";this._oContainer._oContent=this._oContainer.appendChild(e);var t=document.createElement("div");
1t.className="yui-ac-hd";t.style.display="none";this._oContainer._oContent._oHeader=this._oContainer._oContent.appendChild(t);var n=document.createElement("div");n.className="yui-ac-bd";this._oContainer._oContent._oBody=this._oContainer._oContent.appendChild(n);var r=document.createElement("div");r.className="yui-ac-ft";r.style.display="none";this._oContainer._oContent._oFooter=this._oContainer._oContent.appendChild(r)}else{}};WISDOM.widget.AutoComplete.prototype._initList=function(){this._aListItems=[];while(this._oContainer._oContent._oBody.hasChildNodes()){var e=this.getListItems();if(e){for(var t=e.length-1;t>=0;r--){e[t]=null}}this._oContainer._oContent._oBody.innerHTML=""}var n=document.createElement("ul");n=this._oContainer._oContent._oBody.appendChild(n);for(var r=0;r<this.maxResultsDisplayed;r++){var i=document.createElement("li");i=n.appendChild(i);this._aListItems[r]=i;this._initListItem(i,r)}this._maxResultsDisplayed=this.maxResultsDisplayed};WISDOM.widget.AutoComplete.prototype._initListItem=function(e,t){var n=this;e.style.display="none";e._nItemIndex=t;e.mouseover=e.mouseout=e.onclick=null;WISDOM.util.Event.addListener(e,"mouseover",n._onItemMouseover,n);WISDOM.util.Event.addListener(e,"mouseout",n._onItemMouseout,n);WISDOM.util.Event.addListener(e,"click",n._onItemMouseclick,n)};WISDOM.widget.AutoComplete.prototype._onIMEDetected=function(e){e._enableIntervalDetection()};WISDOM.widget.AutoComplete.prototype._enableIntervalDetection=function(){var e=this._oTextbox.value;var t=this._sLastTextboxValue;if(e!=t){this._sLastTextboxValue=e;this._sendQuery(e)}};WISDOM.widget.AutoComplete.prototype._cancelIntervalDetection=function(e){if(e._queryInterval){clearInterval(e._queryInterval)}};WISDOM.widget.AutoComplete.prototype._isIgnoreKey=function(e){if(e==9||e==13||e==16||e==17||e>=18&&e<=20||e==27||e>=33&&e<=35||e>=36&&e<=38||e==40||e>=44&&e<=45){return true}return false};WISDOM.widget.AutoComplete.prototype._sendQuery=function(e){if(this.minQueryLength==-1){this._toggleContainer(false);return}var t=this.delimChar?this.delimChar:null;if(t){var n=-1;for(var r=t.length-1;r>=0;r--){var i=e.lastIndexOf(t[r]);if(i>n){n=i}}if(t[r]==" "){for(var s=t.length-1;s>=0;s--){if(e[n-1]==t[s]){n--;break}}}if(n>-1){var o=n+1;while(e.charAt(o)==" "){o+=1}this._sSavedQuery=e.substring(0,o);e=e.substr(o)}else if(e.indexOf(this._sSavedQuery)<0){this._sSavedQuery=null}}if(e&&e.length<this.minQueryLength||!e&&this.minQueryLength>0){if(this._nDelayID!=-1){clearTimeout(this._nDelayID)}this._toggleContainer(false);return}e=encodeURIComponent(e);this._nDelayID=-1;this.dataRequestEvent.fire(this,e);this.dataSource.getResults(this._populateList,e,this)};WISDOM.widget.AutoComplete.prototype._populateList=function(e,t,n){if(t===null){n.dataErrorEvent.fire(n,e)}if(!n._bFocused||!t){return}var r=navigator.userAgent.toLowerCase().indexOf("opera")!=-1;var i=n._oContainer._oContent.style;i.width=!r?null:"";i.height=!r?null:"";var s=decodeURIComponent(e);n._sCurQuery=s;n._bItemSelected=false;if(n._maxResultsDisplayed!=n.maxResultsDisplayed){n._initList()}var o=Math.min(t.length,n.maxResultsDisplayed);n._nDisplayedItems=o;if(o>0){n._initContainerHelpers();var u=n._aListItems;for(var a=o-1;a>=0;a--){var f=u[a];var l=t[a];f.innerHTML=n.formatResult(l,s);f.style.display="list-item";f._sResultKey=l[0];f._oResultData=l}for(var c=u.length-1;c>=o;c--){var h=u[c];h.innerHTML=null;h.style.display="none";h._sResultKey=null;h._oResultData=null}if(n.autoHighlight){var p=u[0];n._toggleHighlight(p,"to");n.itemArrowToEvent.fire(n,p);n._typeAhead(p,e)}else{n._oCurItem=null}var d=n.doBeforeExpandContainer(n._oTextbox,n._oContainer,e,t);n._toggleContainer(d)}else{n._toggleContainer(false)}n.dataReturnEvent.fire(n,e,t)};WISDOM.widget.AutoComplete.prototype._clearSelection=function(){var e=this._oTextbox.value;var t=this.delimChar?this.delimChar[0]:null;var n=t?e.lastIndexOf(t,e.length-2):-1;if(n>-1){this._oTextbox.value=e.substring(0,n)}else{this._oTextbox.value=""}this._sSavedQuery=this._oTextbox.value;this.selectionEnforceEvent.fire(this)};WISDOM.widget.AutoComplete.prototype._textMatchesOption=function(){var e=false;for(var t=this._nDisplayedItems-1;t>=0;t--){var n=this._aListItems[t];var r=n._sResultKey.toLowerCase();if(r==this._sCurQuery.toLowerCase()){e=true;break}}return e};WISDOM.widget.AutoComplete.prototype._typeAhead=function(e,t){if(!this.typeAhead||this._nKeyCode==8){return}var n=this._oTextbox;var r=this._oTextbox.value;if(!n.setSelectionRange&&!n.createTextRange){return}var i=r.length;
1this._updateValue(e);var s=n.value.length;this._selectText(n,i,s);var o=n.value.substr(i,s);this.typeAheadEvent.fire(this,t,o)};WISDOM.widget.AutoComplete.prototype._selectText=function(e,t,n){if(e.setSelectionRange){e.setSelectionRange(t,n)}else if(e.createTextRange){var r=e.createTextRange();r.moveStart("character",t);r.moveEnd("character",n-e.value.length);r.select()}else{e.select()}};WISDOM.widget.AutoComplete.prototype._toggleContainerHelpers=function(e){var t=false;var n=this._oContainer._oContent.offsetWidth+"px";var r=this._oContainer._oContent.offsetHeight+"px";if(this.useIFrame&&this._oContainer._oIFrame){t=true;if(e){this._oContainer._oIFrame.style.width=n;this._oContainer._oIFrame.style.height=r}else{this._oContainer._oIFrame.style.width=0;this._oContainer._oIFrame.style.height=0}}if(this.useShadow&&this._oContainer._oShadow){t=true;if(e){this._oContainer._oShadow.style.width=n;this._oContainer._oShadow.style.height=r}else{this._oContainer._oShadow.style.width=0;this._oContainer._oShadow.style.height=0}}};WISDOM.widget.AutoComplete.prototype._toggleContainer=function(e){var t=this._oContainer;if(this.alwaysShowContainer&&this._bContainerOpen){return}if(!e){this._oContainer._oContent.scrollTop=0;var n=this._aListItems;if(n&&n.length>0){for(var r=n.length-1;r>=0;r--){n[r].style.display="none"}}if(this._oCurItem){this._toggleHighlight(this._oCurItem,"from")}this._oCurItem=null;this._nDisplayedItems=0;this._sCurQuery=null}if(!e&&!this._bContainerOpen){t._oContent.style.display="none";return}var i=this._oAnim;if(i&&i.getEl()&&(this.animHoriz||this.animVert)){if(!e){this._toggleContainerHelpers(e)}if(i.isAnimated()){i.stop()}var s=t._oContent.cloneNode(true);t.appendChild(s);s.style.top="-9000px";s.style.display="block";var o=s.offsetWidth;var u=s.offsetHeight;var a=this.animHoriz?0:o;var f=this.animVert?0:u;i.attributes=e?{width:{to:o},height:{to:u}}:{width:{to:a},height:{to:f}};if(e&&!this._bContainerOpen){t._oContent.style.width=a+"px";t._oContent.style.height=f+"px"}else{t._oContent.style.width=o+"px";t._oContent.style.height=u+"px"}t.removeChild(s);s=null;var l=this;var c=function(){i.onComplete.unsubscribeAll();if(e){l.containerExpandEvent.fire(l)}else{t._oContent.style.display="none";l.containerCollapseEvent.fire(l)}l._toggleContainerHelpers(e)};t._oContent.style.display="block";i.onComplete.subscribe(c);i.animate();this._bContainerOpen=e}else{if(e){t._oContent.style.display="block";this.containerExpandEvent.fire(this)}else{t._oContent.style.display="none";this.containerCollapseEvent.fire(this)}this._toggleContainerHelpers(e);this._bContainerOpen=e}};WISDOM.widget.AutoComplete.prototype._toggleHighlight=function(e,t){var n=this.highlightClassName;if(this._oCurItem){WISDOM.util.Dom.removeClass(this._oCurItem,n)}if(t=="to"&&n){WISDOM.util.Dom.addClass(e,n);this._oCurItem=e}};WISDOM.widget.AutoComplete.prototype._togglePrehighlight=function(e,t){if(e==this._oCurItem){return}var n=this.prehighlightClassName;if(t=="mouseover"&&n){WISDOM.util.Dom.addClass(e,n)}else{WISDOM.util.Dom.removeClass(e,n)}};WISDOM.widget.AutoComplete.prototype._updateValue=function(e){var t=this._oTextbox;var n=this.delimChar?this.delimChar[0]||this.delimChar:null;var r=this._sSavedQuery;var i=e._sResultKey;t.focus();t.value="";if(n){if(r){t.value=r}t.value+=i+n;if(n!=" "){t.value+=" "}}else{t.value=i}if(t.type=="textarea"){t.scrollTop=t.scrollHeight}var s=t.value.length;this._selectText(t,s,s);this._oCurItem=e};WISDOM.widget.AutoComplete.prototype._selectItem=function(e){this._bItemSelected=true;this._updateValue(e);this._cancelIntervalDetection(this);this.itemSelectEvent.fire(this,e,e._oResultData);this._toggleContainer(false)};WISDOM.widget.AutoComplete.prototype._jumpSelection=function(){if(!this.typeAhead){return}else{this._toggleContainer(false)}};WISDOM.widget.AutoComplete.prototype._moveSelection=function(e){if(this._bContainerOpen){var t=this._oCurItem;var n=-1;if(t){n=t._nItemIndex}var r=e==40?n+1:n-1;if(r<-2||r>=this._nDisplayedItems){return}if(t){this._toggleHighlight(t,"from");this.itemArrowFromEvent.fire(this,t)}if(r==-1){if(this.delimChar&&this._sSavedQuery){if(!this._textMatchesOption()){this._oTextbox.value=this._sSavedQuery}else{this._oTextbox.value=this._sSavedQuery+this._sCurQuery}}else{this._oTextbox.value=this._sCurQuery}this._oCurItem=null;return}if(r==-2){this._toggleContainer(false);return}var i=this._aListItems[r];var s=this._oContainer._oContent;var o=WISDOM.util.Dom.getStyle(s,"overflow")=="auto"||WISDOM.util.Dom.getStyle(s,"overflowY")=="auto";if(o&&r>-1&&r<this._nDisplayedItems){if(e==40){if(i.offsetTop+i.offsetHeight>s.scrollTop+s.offsetHeight){s.scrollTop=i.offsetTop+i.offsetHeight-s.offsetHeight}else if(i.offsetTop+i.offsetHeight<s.scrollTop){s.scrollTop=i.offsetTop}}else{if(i.offsetTop<s.scrollTop){this._oContainer._oContent.scrollTop=i.offsetTop}else if(i.offsetTop>s.scrollTop+s.offsetHeight){this._oContainer._oContent.scrollTop=i.offsetTop+i.offsetHeight-s.offsetHeight}}}this._toggleHighlight(i,"to");this.itemArrowToEvent.fire(this,i);
1if(this.typeAhead){this._updateValue(i)}}};WISDOM.widget.AutoComplete.prototype._onItemMouseover=function(e,t){if(t.prehighlightClassName){t._togglePrehighlight(this,"mouseover")}else{t._toggleHighlight(this,"to")}t.itemMouseOverEvent.fire(t,this)};WISDOM.widget.AutoComplete.prototype._onItemMouseout=function(e,t){if(t.prehighlightClassName){t._togglePrehighlight(this,"mouseout")}else{t._toggleHighlight(this,"from")}t.itemMouseOutEvent.fire(t,this)};WISDOM.widget.AutoComplete.prototype._onItemMouseclick=function(e,t){t._toggleHighlight(this,"to");t._selectItem(this)};WISDOM.widget.AutoComplete.prototype._onContainerMouseover=function(e,t){t._bOverContainer=true};WISDOM.widget.AutoComplete.prototype._onContainerMouseout=function(e,t){t._bOverContainer=false;if(t._oCurItem){t._toggleHighlight(t._oCurItem,"to")}};WISDOM.widget.AutoComplete.prototype._onContainerScroll=function(e,t){t._oTextbox.focus()};WISDOM.widget.AutoComplete.prototype._onContainerResize=function(e,t){t._toggleContainerHelpers(t._bContainerOpen)};WISDOM.widget.AutoComplete.prototype._onTextboxKeyDown=function(e,t){var n=e.keyCode;switch(n){case 9:if(t.delimChar&&t._nKeyCode!=n){if(t._bContainerOpen){WISDOM.util.Event.stopEvent(e)}}if(t._oCurItem){t._selectItem(t._oCurItem)}else{t._toggleContainer(false)}break;case 13:if(t._nKeyCode!=n){if(t._bContainerOpen){WISDOM.util.Event.stopEvent(e)}}if(t._oCurItem){t._selectItem(t._oCurItem)}else{t._toggleContainer(false)}break;case 27:t._toggleContainer(false);return;case 39:t._jumpSelection();break;case 38:WISDOM.util.Event.stopEvent(e);t._moveSelection(n);break;case 40:WISDOM.util.Event.stopEvent(e);t._moveSelection(n);break;default:break}};WISDOM.widget.AutoComplete.prototype._onTextboxKeyPress=function(e,t){var n=e.keyCode;var r=navigator.userAgent.toLowerCase().indexOf("mac")!=-1;if(r){switch(n){case 9:if(t.delimChar&&t._nKeyCode!=n){if(t._bContainerOpen){WISDOM.util.Event.stopEvent(e)}}break;case 13:if(t._nKeyCode!=n){if(t._bContainerOpen){WISDOM.util.Event.stopEvent(e)}}break;case 38:case 40:WISDOM.util.Event.stopEvent(e);break;default:break}}else if(n==229){t._queryInterval=setInterval(function(){t._onIMEDetected(t)},500)}};WISDOM.widget.AutoComplete.prototype._onTextboxKeyUp=function(e,t){t._initProps();var n=e.keyCode;t._nKeyCode=n;var r=this.value;if(t._isIgnoreKey(n)||r.toLowerCase()==t._sCurQuery){return}else{t.textboxKeyEvent.fire(t,n)}if(t.queryDelay>0){var i=setTimeout(function(){t._sendQuery(r)},t.queryDelay*1e3);if(t._nDelayID!=-1){clearTimeout(t._nDelayID)}t._nDelayID=i}else{t._sendQuery(r)}};WISDOM.widget.AutoComplete.prototype._onTextboxFocus=function(e,t){t._oTextbox.setAttribute("autocomplete","off");t._bFocused=true;t.textboxFocusEvent.fire(t)};WISDOM.widget.AutoComplete.prototype._onTextboxBlur=function(e,t){if(!t._bOverContainer||t._nKeyCode==9){if(!t._bItemSelected){if(!t._bContainerOpen||t._bContainerOpen&&!t._textMatchesOption()){if(t.forceSelection){t._clearSelection()}else{t.unmatchedItemSelectEvent.fire(t,t._sCurQuery)}}}if(t._bContainerOpen){t._toggleContainer(false)}t._cancelIntervalDetection(t);t._bFocused=false;t.textboxBlurEvent.fire(t)}};WISDOM.widget.AutoComplete.prototype._onFormSubmit=function(e,t){if(t.allowBrowserAutocomplete){t._oTextbox.setAttribute("autocomplete","on")}else{t._oTextbox.setAttribute("autocomplete","off")}};WISDOM.widget.DataSource=function(){};WISDOM.widget.DataSource.ERROR_DATANULL="Response data was null";WISDOM.widget.DataSource.ERROR_DATAPARSE="Response data could not be parsed";WISDOM.widget.DataSource.prototype.maxCacheEntries=15;WISDOM.widget.DataSource.prototype.queryMatchContains=false;WISDOM.widget.DataSource.prototype.queryMatchSubset=false;WISDOM.widget.DataSource.prototype.queryMatchCase=false;WISDOM.widget.DataSource.prototype.toString=function(){return"DataSource "+this._sName};WISDOM.widget.DataSource.prototype.getResults=function(e,t,n){var r=this._doQueryCache(e,t,n);if(r.length===0){this.queryEvent.fire(this,n,t);this.doQuery(e,t,n)}};WISDOM.widget.DataSource.prototype.doQuery=function(e,t,n){};WISDOM.widget.DataSource.prototype.flushCache=function(){if(this._aCache){this._aCache=[]}if(this._aCacheHelper){this._aCacheHelper=[]}this.cacheFlushEvent.fire(this)};WISDOM.widget.DataSource.prototype.queryEvent=null;WISDOM.widget.DataSource.prototype.cacheQueryEvent=null;WISDOM.widget.DataSource.prototype.getResultsEvent=null;WISDOM.widget.DataSource.prototype.getCachedResultsEvent=null;WISDOM.widget.DataSource.prototype.dataErrorEvent=null;WISDOM.widget.DataSource.prototype.cacheFlushEvent=null;WISDOM.widget.DataSource._nIndex=0;WISDOM.widget.DataSource.prototype._sName=null;WISDOM.widget.DataSource.prototype._aCache=null;WISDOM.widget.DataSource.prototype._init=function(){var e=this.maxCacheEntries;if(isNaN(e)||e<0){e=0}if(e>0&&!this._aCache){this._aCache=[]}this._sName="instance"+WISDOM.widget.DataSource._nIndex;WISDOM.widget.DataSource._nIndex++;this.queryEvent=new WISDOM.util.CustomEvent("query",this);this.cacheQueryEvent=new WISDOM.util.CustomEvent("cacheQuery",this);this.getResultsEvent=new WISDOM.util.CustomEvent("getResults",this);this.getCachedResultsEvent=new WISDOM.util.CustomEvent("getCachedResults",this);
1this.dataErrorEvent=new WISDOM.util.CustomEvent("dataError",this);this.cacheFlushEvent=new WISDOM.util.CustomEvent("cacheFlush",this)};WISDOM.widget.DataSource.prototype._addCacheElem=function(e){var t=this._aCache;if(!t||!e||!e.query||!e.results){return}if(t.length>=this.maxCacheEntries){t.shift()}t.push(e)};WISDOM.widget.DataSource.prototype._doQueryCache=function(e,t,n){var r=[];var i=false;var s=this._aCache;var o=s?s.length:0;var u=this.queryMatchContains;if(this.maxCacheEntries>0&&s&&o>0){this.cacheQueryEvent.fire(this,n,t);if(!this.queryMatchCase){var a=t;t=t.toLowerCase()}for(var f=o-1;f>=0;f--){var l=s[f];var c=l.results;var h=!this.queryMatchCase?encodeURIComponent(l.query).toLowerCase():encodeURIComponent(l.query);if(h==t){i=true;r=c;if(f!=o-1){s.splice(f,1);this._addCacheElem(l)}break}else if(this.queryMatchSubset){for(var p=t.length-1;p>=0;p--){var d=t.substr(0,p);if(h==d){i=true;for(var v=c.length-1;v>=0;v--){var m=c[v];var g=this.queryMatchCase?encodeURIComponent(m[0]).indexOf(t):encodeURIComponent(m[0]).toLowerCase().indexOf(t);if(!u&&g===0||u&&g>-1){r.unshift(m)}}l={};l.query=t;l.results=r;this._addCacheElem(l);break}}if(i){break}}}if(i){this.getCachedResultsEvent.fire(this,n,a,r);e(a,r,n)}}return r};WISDOM.widget.DS_XHR=function(e,t,n){if(typeof n=="object"){for(var r in n){this[r]=n[r]}}if(!t||t.constructor!=Array){return}else{this.schema=t}this.scriptURI=e;this._init()};WISDOM.widget.DS_XHR.prototype=new WISDOM.widget.DataSource;WISDOM.widget.DS_XHR.TYPE_JSON=0;WISDOM.widget.DS_XHR.TYPE_XML=1;WISDOM.widget.DS_XHR.TYPE_FLAT=2;WISDOM.widget.DS_XHR.ERROR_DATAXHR="XHR response failed";WISDOM.widget.DS_XHR.prototype.connMgr=WISDOM.util.Connect;WISDOM.widget.DS_XHR.prototype.connTimeout=0;WISDOM.widget.DS_XHR.prototype.scriptURI=null;WISDOM.widget.DS_XHR.prototype.scriptQueryParam="query";WISDOM.widget.DS_XHR.prototype.scriptQueryAppend="";WISDOM.widget.DS_XHR.prototype.responseType=WISDOM.widget.DS_XHR.TYPE_JSON;WISDOM.widget.DS_XHR.prototype.responseStripAfter="\n<!-";WISDOM.widget.DS_XHR.prototype.doQuery=function(e,t,n){var r=this.responseType==WISDOM.widget.DS_XHR.TYPE_XML;var i=this.scriptURI+"?"+this.scriptQueryParam+"="+t;if(this.scriptQueryAppend.length>0){i+="&"+this.scriptQueryAppend}var s=null;var o=this;var u=function(i){if(!o._oConn||i.tId!=o._oConn.tId){o.dataErrorEvent.fire(o,n,t,WISDOM.widget.DataSource.ERROR_DATANULL);return}for(var s in i){}if(!r){i=i.responseText}else{i=i.responseXML}if(i===null){o.dataErrorEvent.fire(o,n,t,WISDOM.widget.DataSource.ERROR_DATANULL);return}var u=o.parseResponse(t,i,n);var a={};a.query=decodeURIComponent(t);a.results=u;if(u===null){o.dataErrorEvent.fire(o,n,t,WISDOM.widget.DataSource.ERROR_DATAPARSE);u=[]}else{o.getResultsEvent.fire(o,n,t,u);o._addCacheElem(a)}e(t,u,n)};var a=function(e){o.dataErrorEvent.fire(o,n,t,WISDOM.widget.DS_XHR.ERROR_DATAXHR);return};var f={success:u,failure:a};if(!isNaN(this.connTimeout)&&this.connTimeout>0){f.timeout=this.connTimeout}if(this._oConn){this.connMgr.abort(this._oConn)}o._oConn=this.connMgr.asyncRequest("GET",i,f,null)};WISDOM.widget.DS_XHR.prototype.parseResponse=function(sQuery,oResponse,oParent){var aSchema=this.schema;var aResults=[];var bError=false;var nEnd=this.responseStripAfter!==""&&oResponse.indexOf?oResponse.indexOf(this.responseStripAfter):-1;if(nEnd!=-1){oResponse=oResponse.substring(0,nEnd)}switch(this.responseType){case WISDOM.widget.DS_XHR.TYPE_JSON:var jsonList;if(window.JSON&&navigator.userAgent.toLowerCase().indexOf("khtml")==-1){var jsonObjParsed=JSON.parse(oResponse);if(!jsonObjParsed){bError=true;break}else{try{jsonList=eval("jsonObjParsed."+aSchema[0])}catch(e){bError=true;break}}}else{try{while(oResponse.substring(0,1)==" "){oResponse=oResponse.substring(1,oResponse.length)}if(oResponse.indexOf("{")<0){bError=true;break}if(oResponse.indexOf("{}")===0){break}var jsonObjRaw=eval("("+oResponse+")");if(!jsonObjRaw){bError=true;break}jsonList=eval("(jsonObjRaw."+aSchema[0]+")")}catch(e){bError=true;break}}if(!jsonList){bError=true;break}if(jsonList.constructor!=Array){jsonList=[jsonList]}for(var i=jsonList.length-1;i>=0;i--){var aResultItem=[];var jsonResult=jsonList[i];for(var j=aSchema.length-1;j>=1;j--){var dataFieldValue=jsonResult[aSchema[j]];if(!dataFieldValue){dataFieldValue=""}aResultItem.unshift(dataFieldValue)}if(aResultItem.length==1){aResultItem.push(jsonResult)}aResults.unshift(aResultItem)}break;case WISDOM.widget.DS_XHR.TYPE_XML:var xmlList=oResponse.getElementsByTagName(aSchema[0]);if(!xmlList){bError=true;break}for(var k=xmlList.length-1;k>=0;k--){var result=xmlList.item(k);var aFieldSet=[];for(var m=aSchema.length-1;m>=1;m--){var sValue=null;var xmlAttr=result.attributes.getNamedItem(aSchema[m]);if(xmlAttr){sValue=xmlAttr.value}else{var xmlNode=result.getElementsByTagName(aSchema[m]);if(xmlNode&&xmlNode.item(0)&&xmlNode.item(0).firstChild){sValue=xmlNode.item(0).firstChild.nodeValue}else{sValue=""}}aFieldSet.unshift(sValue)}aResults.unshift(aFieldSet)}break;case WISDOM.widget.DS_XHR.TYPE_FLAT:if(oResponse.length>0){var newLength=oResponse.length-aSchema[0].length;if(oResponse.substr(newLength)==aSchema[0]){oResponse=oResponse.substr(0,newLength)}var aRecords=oResponse.split(aSchema[0]);for(var n=aRecords.length-1;n>=0;n--){aResults[n]=aRecords[n].split(aSchema[1])}}break;default:break}sQuery=null;oResponse=null;oParent=null;if(bError){return null}else{return aResults}};WISDOM.widget.DS_XHR.prototype._oConn=null;WISDOM.widget.DS_JSFunction=function(e,t){if(typeof t=="object"){for(var n in t){this[n]=t[n]}}if(!e||e.constructor!=Function){return}else{this.dataFunction=e;this._init()}};WISDOM.widget.DS_JSFunction.prototype=new WISDOM.widget.DataSource;WISDOM.widget.DS_JSFunction.prototype.dataFunction=null;WISDOM.widget.DS_JSFunction.prototype.doQuery=function(e,t,n){var r=this.dataFunction;var i=[];i=r(t);if(i===null){this.dataErrorEvent.fire(this,n,t,WISDOM.widget.DataSource.ERROR_DATANULL);return}var s={};s.query=decodeURIComponent(t);s.results=i;this._addCacheElem(s);this.getResultsEvent.fire(this,n,t,i);e(t,i,n);return};WISDOM.widget.DS_JSArray=function(e,t){if(typeof t=="object"){for(var n in t){this[n]=t[n]}}if(!e||e.constructor!=Array){return}else{this.data=e;this._init()}};WISDOM.widget.DS_JSArray.prototype=new WISDOM.widget.DataSource;WISDOM.widget.DS_JSArray.prototype.data=null;WISDOM.widget.DS_JSArray.prototype.doQuery=function(e,t,n){var r=this.data;var i=[];var s=false;var o=this.queryMatchContains;if(t){if(!this.queryMatchCase){t=t.toLowerCase()}for(var u=r.length-1;u>=0;u--){var a=[];if(r[u]){if(r[u].constructor==String){a[0]=r[u]}else if(r[u].constructor==Array){a=r[u]}}if(a[0]&&a[0].constructor==String){var f=this.queryMatchCase?encodeURIComponent(a[0]).indexOf(t):encodeURIComponent(a[0]).toLowerCase().indexOf(t);if(!o&&f===0||o&&f>-1){i.unshift(a)}}}}this.getResultsEvent.fire(this,n,t,i);e(t,i,n)};var myServer="/s.xsl";var mySchema=["result","fullname","number","rangeid","pointid","sp_place"];var myDataSource3=new WISDOM.widget.DS_XHR(myServer,mySchema);myDataSource3.maxCacheEntries=0;myDataSource3.scriptQueryParam="k";function autoComplete(){var str="";var fullNameExists=false;if(scope.root.curParams.cust_addresses&&scope.root.curParams.cust_addresses.cust_address){var addresses=scope.root.curParams.cust_addresses.cust_address.slice();for(var j=0;j<addresses.length;j++){if(addresses[j].fullname==scope.root.curParams.sessFullAddress){fullNameExists=true}}}str+='<div id="ysearchmod" style="margin:0;padding:0;" name="delivery-address"><div id="ysearchautocomplete" style="margin:0;padding:0;"><input class="form-control dd_text dd_unset" placeholder="new address" maxlength="68" tabindex="1" style="text-transform:capitalize;" name="ysearchinput" id="ysearchinput" type="text"';if(scope.root.curParams.formActionType!="changeAddress"&&fullNameExists==false){str+=' value="'+nz(scope.root.curParams.sessFullAddress)+'"'}str+='></input><div id="ysearchcontainer" style="margin:0;padding:0;"></div></div></div>';myDataSource3.scriptQueryAppend="z="+scope.root.curParams.zipCode;doAutoComplete=true;return str}function timeSlots_TimeForm(){var str="";str+='<div data-time-slot-picker on-time-chosen="root.dd_goToTarget(arg1)" watchedobj="{{root.curParams}}"></div>';return str}}}}function ZipDropDown($compile){"use strict";return{scope:true,link:function(scope,element,attrs){var el;var str="";str+='<div class="dd_inputs">';if(scope.root.curParams.zipOption){str+='<ul class="zip-dropdown__zip-list dd_colored_list">';str+='<li ng-href ng-repeat="zip in root.curParams.zipOption" class="zip-dropdown__zip dd_animateitem" ng-click="goZip3(zip.zip)">';str+='<h2 class="itemName">{{zip.zip}}</h2>';str+="</li>";str+="</ul>"}else{str+="<span>Delivery areas have not yet been configured for this site.</span>"}str+="</div>";var el=$compile(str)(scope);element.html("");element.append(el);scope.goZip=function(theSel){var theZip=scope.root.selectedZip;if(theZip&&theZip!=""){scope.root.dd_goToTarget("refreshLeft=1&formZipCode="+theZip)}}}}}function TopDeliveryWidget($compile,$timeout){return{scope:true,link:function(scope,element,attrs){var el;attrs.$observe("watchedobj",function(tpl){if(angular.isDefined(scope.root.isGroupAdmin)){var str=getContentStr().replace(/ /g,"").replace(/ /g,"").replace(/> </g,"><").trim();var el=$compile(str)(scope);element.html("");element.append(el)}});scope.addrFocused=false;scope.expandAddr=function(){$(element).css({width:$(element).width()});$timeout(function(){scope.addrFocused=true})};scope.contractAddr=function(){$(element).removeAttr("style");$timeout(function(){scope.addrFocused=false})};function getContentStr(){scope.addrFocused=false;var str="";str+='<form autocomplete="off" ng-class="{\'form-inline\': '+attrs.formInline+' }">';str+='<div class="dd_bs">';str+=' <div class="navbar-zipchooser-wrapper" ng-class="{\'addr_focused\': addrFocused == true}">';if(scope.root.isMult==1||scope.root.curParams.groupOrderPage){str+='<div class="dropdown choose-method" uib-dropdown dropdown-append-to-body>';str+=' <button class="btn btn-default btn-block dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" uib-dropdown-toggle>';if(scope.root.inGroupMode==1){str+="Group"}else if(scope.root.curParams.isForTakeout==1){str+="Pickup"}else{str+="Deliver"}str+=" </button>";str+=' <ul class="dropdown-menu navbar_dropdown_menu" uib-dropdown-menu role="menu">';if(scope.root.inGroupMode==1){}else if(scope.root.curParams.isForTakeout==1){if(scope.root.curParams.offersDeliveryImmediate==1||scope.root.curParams.offersDeliveryAdvance==1){str+='<li><a href="#" ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToDelivery\')">Deliver</a></li>'}}else{if(scope.root.curParams.offersTakeoutImmediate==1||scope.root.curParams.offersTakeoutAdvance==1){str+='<li><a href="#" ng-click="root.dd_goToTarget(\'refreshLeft=1&formActionType=changeToTakeout\')">Pickup</a></li>'}}str+=" </ul>";str+="</div>"}str+=' <div class="input-group address-autocomplete"><input dd-blurred="contractAddr()" dd-focused="expandAddr()" autocomplete="off" type="text" class="autocomplete-textbox" on-place-updated="root.onPlaceUpdated(place, true)" data-g-places-autocomplete options="root.autocompleteOptions" custom-places="root.myPlaces" ng-focus="root.tmpCompletePlace = null" ng-blur="root.tmpCompletePlace = (root.curParams.sessFullAddress ? (root.curParams.sessFullAddress + \', \' + root.curParams.zipCode) : null)" ng-model="root.tmpCompletePlace" placeholder="{{root.curParams.sessFullAddress ? (root.curParams.sessFullAddress + \', \' + root.curParams.zipCode) : \'Street Address\'}}">';str+=' <div class="dd_address_spinner" class="ng-cloak" ng-if="root.loadingAddress"><div class="dd_spinner_loader"><svg class="dd_spinner_circular"><circle class="dd_spinner_path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/></svg></div></div>';str+=" </div>";if(scope.root.curParams.offersDeliveryAdvance==1){str+=' <div class="dropdown choose-time" uib-dropdown dropdown-append-to-body>';str+=' <button class="btn btn-default btn-block" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" uib-dropdown-toggle>';if(scope.root.curParams.targetTime==null){str+="ASAP"}
1else{str+=scope.root.curParams.prettyDate}str+=" </button>";str+=' <ul class="dropdown-menu navbar_dropdown_menu" uib-dropdown-menu role="menu">';str+=' <li class="dropdown-title">'+(scope.root.curParams.isForTakeout==1?"Pickup":"Delivery")+" Time:</li>";if(scope.root.curParams.targetTime==null){str+=" <li><a href>ASAP</a></li>";str+=' <li><a href="#" ng-click="root.openTimeChooser()">Later</a></li>'}else{str+=" <li><a href>"+scope.root.curParams.shortDate+"</a></li>";str+=' <li><a href="#" ng-click="root.dd_goToTarget(\'refreshLeft=1&resetTargetTime=1\');">ASAP</a></li>';str+=' <li><a href="#" ng-click="root.openTimeChooser()">Some Other Time</a></li>'}str+=" </ul>";str+=" </div>"}str+="</div>";str+=" </div>";str+="</form>";return str}}}}function TimeSlotPicker($compile,$parse){return{scope:true,link:function(scope,element,attrs){var timesObj={};var invoker=$parse(attrs.onTimeChosen);attrs.$observe("watchedobj",function(tpl){if("querystr"in attrs){scope.root.dd_getZipParameter(attrs.querystr).then(function(data){timesObj=data;startDirective()},function(data){})}else{timesObj=scope.root.curParams;startDirective()}function startDirective(){if(angular.isDefined(timesObj.timeSlots)){var str=timeSlots_TimeForm().replace(/ /g,"").replace(/ /g,"").replace(/> </g,"><").trim();var el=$compile(str)(scope);element.html("");element.append(el);initSlots();element.find(".dd_date-picker table a").on("click",function(){if(!$(this).parent().hasClass("dd_disabled")){if($(this).parents("div.dd_time").length){element.find("div.dd_time table td").removeClass("dd_selected")}else{$(this).parents("table").find(".dd_selected").removeClass("dd_selected")}$(this).parent().addClass("dd_selected")}})}}});function timeSlots_TimeForm(){var str="";str+='<div id="divSchTime"></div>';str+='<form method="POST" name="hoursDeliveryAdvance"><input type="hidden" name="hid_clickedDate" value=""/><input type="hidden" name="hid_clickedHour" value=""/><input type="hidden" name="hid_clickedMinute" value=""/><input type="hidden" name="refreshLeft" value="1"/><input type="hidden" name="formActionType" value="setAdvanceDeliveryTime"/>';var firstMonth="";for(var i=0;i<timesObj.timeSlots.calendar.month.length;i++){firstMonth=timesObj.timeSlots.calendar.month[i];break}var monthNum=firstMonth.monthNum;var monthYear=firstMonth.monthYear;str+='<div class="dd_date-picker"><div class="dd_table-wrap"><div class="dd_calendar"><div class="dd_heading"><h3>'+firstMonth.monthName+" - "+firstMonth.monthYear+"</h3></div><table><thead><tr><th>S</th><th>M</th><th>T</th><th>W</th><th>T</th><th>F</th><th>S</th></tr></thead><tbody>";for(var j=0;j<firstMonth.week.length;j++){str+="<tr>";for(var k=0;k<firstMonth.week[j].day.length;k++){var dayNum=firstMonth.week[j].day[k].dayNum;if(dayNum>0){var curDay=k+1;var curMinutes=firstMonth.week[j].day[k].m;var hasnaday=false;var rangeid="";for(var m=0;m<timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link.length;m++){if(timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link[m].dateMinutes==curMinutes){hasnaday=true;rangeid=timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link[m].rangeid}}if(firstMonth.week[j].day[k].dayHasPassed==1){str+='<td class="dd_disabled"><a href="#">'+dayNum+"</a></td>"}else if(hasnaday==false){str+='<td class="dd_disabled"><a href="#">'+dayNum+"</a></td>"}else{str+='<td id="m'+curMinutes+'"';if(firstMonth.week[j].day[k].isStartDay==1){str+=' class="dd_selected"'}str+=">";str+='<a href ng-click="writeTimesForDay('+rangeid+","+curDay+","+curMinutes+","+dayNum+","+monthNum+","+monthYear+')">'+dayNum+"</a></td>"}}else{str+='<td class="dd_blank"> </td>'}}str+="</tr>"}for(var i=1;i<timesObj.timeSlots.calendar.month.length;i++){var curMonth=timesObj.timeSlots.calendar.month[i];str+='<tr class="dd_month"><td colspan="7">'+curMonth.monthName+" - "+curMonth.monthYear+"</td></tr>";var monthNum=curMonth.monthNum;var monthYear=curMonth.monthYear;for(var j=0;j<curMonth.week.length;j++){str+="<tr>";for(var k=0;k<curMonth.week[j].day.length;k++){var dayNum=curMonth.week[j].day[k].dayNum;if(dayNum>0){var curDay=k+1;var curMinutes=curMonth.week[j].day[k].m;var hasnaday=false;var rangeid="";for(var m=0;m<timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link.length;m++){if(timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link[m].dateMinutes==curMinutes){hasnaday=true;rangeid=timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link[m].rangeid}}if(curMonth.week[j].day[k].dayHasPassed==1){str+='<td class="dd_disabled"><a href="#">'+dayNum+"</a></td>"}else if(hasnaday==false){str+='<td class="dd_disabled"><a href="#">'+dayNum+"</a></td>"}else{str+='<td id="m'+curMinutes+'"';if(curMonth.week[j].day[k].isStartDay==1){str+=' class="dd_selected"'}str+=">";str+='<a href ng-click="writeTimesForDay('+rangeid+","+curDay+","+curMinutes+","+dayNum+","+monthNum+","+monthYear+')">'+dayNum+"</a></td>"}}else{str+='<td class="dd_blank"> </td>'}}str+="</tr>"}}str+='</tbody></table></div><div class="dd_times divDayChoices"></div></div></div>';return str}var lastDayEle="";var pageLoadMinute="";var pageLoadDate=new Date;var minTime="";var maxTime="";var day0minutes="";var day1minutes="";var lastDayTimeStr="";var lastHourEle="";var mn=["Jan.","Feb.","Mar.","Apr.","May","Jun.","Jul.","Aug.","Sept.","Oct.","Nov.","Dec."];var minHour=Math.floor(minTime);var maxHour=Math.floor(maxTime);var nowTime;function initSlots(){lastDayEle="";pageLoadMinute=timesObj.timeSlots.currentMinute;pageLoadDate=new Date;minTime=timesObj.timeSlots.minTime;maxTime=timesObj.timeSlots.maxTime;day0minutes=timesObj.timeSlots.day0minutes;day1minutes=timesObj.timeSlots.day1minutes;lastDayTimeStr="";lastHourEle="";minHour=Math.floor(minTime);maxHour=Math.floor(maxTime);var theLink=null;for(var i=0;i<timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link.length;i++){if(timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link[i].dateMinutes==day0minutes){theLink=timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link[i];break}}if(theLink==null){for(var i=0;i<timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link.length;i++){if(timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link[i].dateMinutes==day1minutes){theLink=timesObj.timeSlots.date_rangeSet_links.date_rangeSet_link[i];break}}}if(theLink){var theCalDay=null;var monthNum="";var monthYear="";dance:for(var i=0;i<timesObj.timeSlots.calendar.month.length;i++){monthNum=timesObj.timeSlots.calendar.month[i].monthNum;monthYear=timesObj.timeSlots.calendar.month[i].monthYear;for(var j=0;j<timesObj.timeSlots.calendar.month[i].week.length;j++){for(var k=0;k<timesObj.timeSlots.calendar.month[i].week[j].day.length;k++){lg(monthNum+" "+monthYear+" "+timesObj.timeSlots.calendar.month[i].week[j].day[k].m+" "+theLink.dateMinutes);if(timesObj.timeSlots.calendar.month[i].week[j].day[k].m==theLink.dateMinutes){theCalDay=timesObj.timeSlots.calendar.month[i].week[j].day[k];break dance}}}}lastDayEle="m"+theLink.dateMinutes;scope.writeTimesForDay(theLink.rangeid,theCalDay.m,theLink.dateMinutes,theCalDay.dayNum,monthNum,monthYear)}}scope.dd_goTime=function(p_url,p_queryStr){invoker(scope,{arg1:p_queryStr})};scope.writeTimesForDay=function(p_rangeSetPos,p_curDay,p_m,p_dayNum,p_monthNum,p_monthYear){var rangeSets=new Array;for(var i=0;i<timesObj.timeSlots.rangeSets.rangeSet.length;i++){if(String(timesObj.timeSlots.rangeSets.rangeSet[i].range).indexOf(",")>-1){rangeSets[i]=timesObj.timeSlots.rangeSets.rangeSet[i].range.split(",").map(Number)}else{rangeSets[i]=new Array;rangeSets[i][0]=parseInt(timesObj.timeSlots.rangeSets.rangeSet[i].range,10)}}var ranges=new Array;for(var i=0;i<timesObj.timeSlots.ranges.range.length;i++){ranges[i]=new Array(timesObj.timeSlots.ranges.range[i].minLead,timesObj.timeSlots.ranges.range[i].minMin,timesObj.timeSlots.ranges.range[i].maxMin,timesObj.timeSlots.ranges.range[i].slottime)}var nextPage="";if(timesObj.timesForVendorID>0&×Obj.gotoMenuNext==1){if(timesObj.timesForVendorSeoLink&×Obj.timesForVendorSeoLink!=null){nextPage=timesObj.timesForVendorSeoLink}else{nextPage="/vendors/"+timesObj.timesForVendorID+".xsl"}}else if(timesObj.specificVendorID>0){if(timesObj.specificVendorSeoLink&×Obj.specificVendorSeoLink!=null){nextPage=timesObj.specificVendorSeoLink}else{nextPage="/vendors/"+timesObj.specificVendorID+".xsl"}}else{nextPage="/getZipParameter.json.xsp"}var curRangeSet=rangeSets[p_rangeSetPos-1];highlightDay("IE",p_m);var clickedDayMinutes=p_m;var curServerMinutes=pageLoadMinute+Math.floor(((new Date).getTime()-pageLoadDate)/1e3/60);var curHour=minHour;var timeStr="";var curDayName="";var clickedDayStr=p_monthYear+(p_monthNum<10?"0":"")+p_monthNum+(p_dayNum
1<10?"0":"")+p_dayNum;if(String(p_m)==day0minutes){curDayName="Today";timeStr=curDayName+" ("+mn[p_monthNum-1]+" "+p_dayNum+", "+p_monthYear+")"}else if(String(p_m)==day1minutes){curDayName="Tomorrow";timeStr=curDayName+" ("+mn[p_monthNum-1]+" "+p_dayNum+", "+p_monthYear+")"}else{switch(p_curDay){case 1:curDayName="Sunday";break;case 2:curDayName="Monday";break;case 3:curDayName="Tuesday";break;case 4:curDayName="Wednesday";break;case 5:curDayName="Thursday";break;case 6:curDayName="Friday";break;case 7:curDayName="Saturday";break;default:alert("Error finding day "+p_curDay+". Please report this error to us.");return false;break}timeStr=curDayName+" "+mn[p_monthNum-1]+" "+p_dayNum+", "+p_monthYear}var am_t="";var pm_t="";var amopen=false;am_t+='<div class="dd_am"><div class="dd_heading"><h3>a.m.</h3></div>';if(curHour<12){var adjHour=0;am_t+="<table>";while(curHour<12&&curHour<=maxHour){am_t+="<tr>";for(var i=0;i<4;i++){var curMinute=i*15;var curAdjMinute=curMinute*.01;var isAvail=false;for(var j=0;j<curRangeSet.length;j++){if(ranges[curRangeSet[j]-1][3]==curHour+curAdjMinute){if(curServerMinutes<clickedDayMinutes+curHour*60+curMinute-ranges[curRangeSet[j]-1][0]){amopen=true;isAvail=true;break}}else if(ranges[curRangeSet[j]-1][3]>curHour+curAdjMinute){break}}var curTimeStr=curHour-adjHour+":"+curMinute+(i==0?"0":"");if(isAvail){var curID="m"+p_m+"_"+curHour+"_"+curMinute;am_t+='<td id="'+curID+'"><a href ng-click="dd_goTime(\''+nextPage+"','refreshLeft=1&formActionType=setAdvanceDeliveryTime&hid_clickedDate="+clickedDayStr+"&hid_clickedHour="+curHour+"&hid_clickedMinute="+curMinute+"')\">"+(curHour-adjHour)+":"+curMinute+(i==0?"0":"")+"</a></td>"}else{am_t+='<td class="dd_disabled"><a href="#">'+curTimeStr+"</a></td>"}}am_t+="</tr>";curHour++}am_t+="</table>"}am_t+="</div>";pm_t+='<div class="dd_pm"><div class="dd_heading"><h3>p.m.</h3></div>';if(maxHour>=12){var adjHour=0;pm_t+="<table>";while(curHour<=maxHour){if(curHour>12){adjHour=12}pm_t+="<tr>";for(var i=0;i<4;i++){var curMinute=i*15;var curAdjMinute=curMinute*.01;var isAvail=false;for(var j=0;j<curRangeSet.length;j++){if(ranges[curRangeSet[j]-1][3]==curHour+curAdjMinute){if(curServerMinutes<clickedDayMinutes+curHour*60+curMinute-ranges[curRangeSet[j]-1][0]){isAvail=true;break}}else if(ranges[curRangeSet[j]-1][3]>curHour+curAdjMinute){break}}var curTimeStr=curHour-adjHour+":"+curMinute+(i==0?"0":"");if(isAvail){var curID="m"+p_m+"_"+curHour+"_"+curMinute;pm_t+='<td id="'+curID+'"><a href ng-click="dd_goTime(\''+nextPage+"','refreshLeft=1&formActionType=setAdvanceDeliveryTime&hid_clickedDate="+clickedDayStr+"&hid_clickedHour="+curHour+"&hid_clickedMinute="+curMinute+"')\">"+curTimeStr+"</a></td>"}else{pm_t+='<td class="dd_disabled"><a href="#">'+curTimeStr+"</a></td>"}}pm_t+="</tr>";curHour++}pm_t+="</table>"}pm_t+="</div>";var t="";if(amopen==false&&pm_t!=""){t+=am_t;t+=pm_t}else{t+=am_t;t+=pm_t}fillLayer("IE",t,timeStr)};function fillLayer(forBrowser,theStr,timeStr){var dayChoicesEle=element.find(".divDayChoices");if(dayChoicesEle.length>0){var el=$compile(theStr)(scope);dayChoicesEle.html("");dayChoicesEle.append(el)}lastDayTimeStr=timeStr}function highlightDay(forBrowser,eleNum){var eleID="m"+eleNum;if(eleID!=lastDayEle){lastHourEle=""}switch(forBrowser){case"IE":break;if(lastDayEle!=""){document.all[lastDayEle].style.backgroundColor="lightyellow"}document.all[eleID].style.backgroundColor="yellow";break;case"NS6":break;if(lastDayEle!=""){document.all[lastDayEle].style.backgroundColor="lightyellow"}document.getElementById(eleID).style.backgroundColor="yellow";break;case"NS4":break;var theV="25";var theTxt="ffffff";var theBG="79002b";var str1=theStr;var oLayer2Doc=document.layers[eleID].document;oLayer2Doc.open();oLayer2Doc.write(str1);oLayer2Doc.close();break}lastDayEle=eleID}}}}
vendor: 19,071 bytes, line 1
1angular.module("angular-carousel",["ngTouch","angular-carousel.shifty"]),angular.module("angular-carousel").directive("rnCarouselAutoSlide",["$interval",function(a){return{restrict:"A",link:function(b,c,d){var e=function(){b.autoSlider&&(a.cancel(b.autoSlider),b.autoSlider=null)},f=function(){b.autoSlide()};b.$watch("carouselIndex",f),d.hasOwnProperty("rnCarouselPauseOnHover")&&"false"!==d.rnCarouselPauseOnHover&&(c.on("mouseenter",e),c.on("mouseleave",f)),b.$on("$destroy",function(){e(),c.off("mouseenter",e),c.off("mouseleave",f)})}}}]),angular.module("angular-carousel").directive("rnCarouselIndicators",["$parse",function(a){return{restrict:"A",scope:{slides:"=",index:"=rnCarouselIndex"},templateUrl:"carousel-indicators.html",link:function(b,c,d){var e=a(d.rnCarouselIndex);b.goToSlide=function(a){e.assign(b.$parent.$parent,a)}}}}]),angular.module("angular-carousel").run(["$templateCache",function(a){a.put("carousel-indicators.html",'<div class="rn-carousel-indicator">\n<span ng-repeat="slide in slides" ng-class="{active: $index==index}" ng-click="goToSlide($index)">â</span></div>')}]),function(){"use strict";angular.module("angular-carousel").service("DeviceCapabilities",function(){function a(){var a="transform",b="webkitTransform";return"undefined"!=typeof document.body.style[a]?["webkit","moz","o","ms"].every(function(b){var c="-"+b+"-transform";return"undefined"!=typeof document.body.style[c]?(a=c,!1):!0}):a="undefined"!=typeof document.body.style[b]?"-webkit-transform":void 0,a}function b(){var a,b=document.createElement("p"),c={webkitTransform:"-webkit-transform",msTransform:"-ms-transform",transform:"transform"};document.body.insertBefore(b,null);for(var d in c)void 0!==b.style[d]&&(b.style[d]="translate3d(1px,1px,1px)",a=window.getComputedStyle(b).getPropertyValue(c[d]));return document.body.removeChild(b),void 0!==a&&a.length>0&&"none"!==a}return{has3d:b(),transformProperty:a()}}).service("computeCarouselSlideStyle",["DeviceCapabilities",function(a){return function(b,c,d){var e,f={display:"inline-block"},g=100*b+c,h=a.has3d?"translate3d("+g+"%, 0, 0)":"translate3d("+g+"%, 0)",i=(100-Math.abs(g))/100;if(a.transformProperty)if("fadeAndSlide"==d)f[a.transformProperty]=h,e=0,Math.abs(g)<100&&(e=.3+.7*i),f.opacity=e;else if("hexagon"==d){var j=100,k=0,l=60*(i-1);j=-100*b>c?100:0,k=-100*b>c?l:-l,f[a.transformProperty]=h+" rotateY("+k+"deg)",f[a.transformProperty+"-origin"]=j+"% 50%"}else if("zoom"==d){f[a.transformProperty]=h;var m=1;Math.abs(g)<100&&(m=1+2*(1-i)),f[a.transformProperty]+=" scale("+m+")",f[a.transformProperty+"-origin"]="50% 50%",e=0,Math.abs(g)<100&&(e=.3+.7*i),f.opacity=e}else f[a.transformProperty]=h;else f["margin-left"]=g+"%";return f}}]).service("createStyleString",function(){return function(a){var b=[];return angular.forEach(a,function(a,c){b.push(c+":"+a)}),b.join(";")}}).directive("rnCarousel",["$swipe","$window","$document","$parse","$compile","$timeout","$interval","computeCarouselSlideStyle","createStyleString","Tweenable",function(a,b,c,d,e,f,g,h,i,j){function k(a,b,c){var d=c;return a.every(function(a,c){return angular.equals(a,b)?(d=c,!1):!0}),d}var l=0;b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame;return{restrict:"A",scope:!0,compile:function(m,n){var o,p,q=m[0].querySelector("li"),r=q?q.attributes:[],s=!1,t=!1;return["ng-repeat","data-ng-repeat","ng:repeat","x-ng-repeat"].every(function(a){var b=r[a];if(angular.isDefined(b)){var c=b.value.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),d=c[3];if(o=c[1],p=c[2],o)return angular.isDefined(n.rnCarouselBuffered)&&(t=!0,b.value=o+" in "+p+"|carouselSlice:carouselBufferIndex:carouselBufferSize",d&&(b.value+=" track by "+d)),s=!0,!1}return!0}),function(m,o,q,r){function u(){for(var a=o[0].childNodes,b=[],c=0;c<a.length;c++)"LI"===a[c].tagName&&b.push(a[c]);return b}function v(a){O=!0,E({x:a.clientX,y:a.clientY},a)}function w(a){var b=100*m.carouselBufferIndex+a;angular.forEach(u(),function(a,c){a.style.cssText=i(h(c,b,L.transitionType))})}function x(a,b){if(void 0===a&&(a=m.carouselIndex),b=b||{},b.animate===!1||"none"===L.transitionType)return T=!1,N=-100*a,m.carouselIndex=a,void F();T=!0;var c=new j;c.tween({from:{x:N},to:{x:-100*a},duration:L.transitionDuration,easing:L.transitionEasing,step:function(a){isFinite(a.x)&&w(a.x)},finish:function(){m.$apply(function(){m.carouselIndex=a,N=-100*a,F(),f(function(){T=!1},0,!1)})}})}function y(){var a=o[0].getBoundingClientRect();return a.width?a.width:a.right-a.left}function z(){Q=y()}function A(){S||(S=!0,c.bind("mouseup",v))}function B(){S&&(S=!1,c.unbind("mouseup",v))}function C(a,b){return T||P.length<=1?void 0:(z(),R=o[0].querySelector("li").getBoundingClientRect().left,H=!0,I=a.x,!1)}function D(a,b){var c,d;if(A(),H&&(c=a.x,d=I-c,d>2||-2>d)){O=!0;var e=N+100*-d/Q;w(e)}return!1}function E(a,b,c){if((!b||O)&&(B(),H=!1,O=!1,J=I-a.x,0!==J&&!T))if(N+=100*-J/Q,L.isSequential){var e=L.moveTreshold*Q,f=-J,g=-Math[f>=0?"ceil":"floor"](f/Q),h=Math.abs(f)>e;P&&g+m.carouselIndex>=P.length&&(g=P.length-1-m.carouselIndex),g+m.carouselIndex<0&&(g=-m.carouselIndex);var i=h?g:0;J=m.carouselIndex+i,x(J),void 0!==q.rnCarouselOnInfiniteScrollRight&&0===g&&0!==m.carouselIndex&&(d(q.rnCarouselOnInfiniteScrollRight)(m),x(0)),void 0!==q.rnCarouselOnInfiniteScrollLeft&&0===g&&0===m.carouselIndex&&0===i&&(d(q.rnCarouselOnInfiniteScrollLeft)(m),x(P.length))}else m.$apply(function(){m.carouselIndex=parseInt(-N/100,10),F()})}function F(){var a=0,b=(m.carouselBufferSize-1)/2;t?(a=m.carouselIndex<=b?0:P&&P.length<m.carouselBufferSize?0:P&&m.carouselIndex>P.length-m.carouselBufferSize?P.length-m.carouselBufferSize:m.carouselIndex-b,m.carouselBufferIndex=a,f(function(){w(N)},0,!1)):f(function(){w(N)},0,!1)}function G(){z(),x()}l++;var H,I,J,K={transitionType:q.rnCarouselTransition||"slide",transitionEasing:q.rnCarouselEasing||"easeTo",transitionDuration:parseInt(q.rnCarouselDuration,10)||300,isSequential:!0,autoSlideDuration:3,bufferSize:5,moveTreshold:.1,defaultIndex:0},L=angular.extend({},K),M=!1,N=0,O=!1,P=[],Q=null,R=null,S=!1,T=!1;"true"!==q.rnSwipeDisabled&&a.bind(o,{start:C,move:D,end:E,cancel:function(a){E({},a)}}),m.nextSlide=function(a){var b=m.carouselIndex+1;b>P.length-1&&(b=0),T||x(b,a)},m.prevSlide=function(a){var b=m.carouselIndex-1;0>b&&(b=P.length-1),x(b,a)};var U=!0;if(m.carouselIndex=0,!s&&(P=[],angular.forEach(u(),function(a,b){P.push({id:b})}),q.rnCarouselHtmlSlides)){var V=function(a){W.assign(m.$parent,a)},W=d(q.rnCarouselHtmlSlides);angular.isFunction(W.assign)&&(m.$watch("htmlSlides",function(a){V(a)}),m.$parent.$watch(W,function(a,b){void 0!==a&&null!==a&&(a=0,aa(a))})),m.htmlSlides=P}if(void 0!==q.rnCarouselControls){var X=(s?m.$eval(p.replace("::","")).length:P.length)>1?angular.isDefined(n.rnCarouselControlsAllowLoop):!1,Y=s?"("+p.replace("::","")+").length - 1":P.length-1,Z='<div class="rn-carousel-controls">\n <span class="rn-carousel-control rn-carousel-control-prev" ng-click="prevSlide()" ng-if="carouselIndex > 0 || '+X+'"></span>\n <span class="rn-carousel-control rn-carousel-control-next" ng-click="nextSlide()" ng-if="carouselIndex < '+Y+" || "+X+'"></span>\n</div>';o.parent().append(e(angular.element(Z))(m))}if(void 0!==q.rnCarouselAutoSlide){var $=parseInt(q.rnCarouselAutoSlide,10)||L.autoSlideDuration;m.autoSlide=function(){m.autoSlider&&(g.cancel(m.autoSlider),m.autoSlider=null),m.autoSlider=g(function(){T||H||m.nextSlide()},1e3*$)}}if(q.rnCarouselDefaultIndex){var _=d(q.rnCarouselDefaultIndex);L.defaultIndex=_(m.$parent)||0}if(q.rnCarouselIndex){var aa=function(a){ba.assign(m.$parent,a)},ba=d(q.rnCarouselIndex);angular.isFunction(ba.assign)?(m.$watch("carouselIndex",function(a){aa(a)}),m.$parent.$watch(ba,function(a,b){void 0!==a&&null!==a&&(P&&P.length>0&&a>=P.length?(a=P.length-1,aa(a)):P&&0>a&&(a=0,aa(a)),T||x(a,{animate:!U}),U=!1)}),M=!0,L.defaultIndex&&x(L.defaultIndex,{animate:!U})):isNaN(q.rnCarouselIndex)||x(parseInt(q.rnCarouselIndex,10),{animate:!1})}else x(L.defaultIndex,{animate:!U}),U=!1;if(q.rnCarouselLocked&&m.$watch(q.rnCarouselLocked,function(a,b){T=a===!0?!0:!1}),s){var ca=void 0!==q.rnCarouselDeepWatch;m[ca?"$watch":"$watchCollection"](p,function(a,b){if(P=a,!angular.isArray(P))throw Error("the slides collection must be an Array");if(ca&&angular.isArray(a)){var c=b[m.carouselIndex],d=k(a,c,m.carouselIndex);x(d,{animate:!1})}else x(m.carouselIndex,{animate:!1})},!0)}m.$on("$destroy",function(){B()}),m.carouselBufferIndex=0,m.carouselBufferSize=L.bufferSize;var da=angular.element(b);da.bind("orientationchange",G),da.bind("resize",G),m.$on("$destroy",function(){B(),da.unbind("orientationchange",G),da.unbind("resize",G)})}}}}])}(),angular.module("angular-carousel.shifty",[]).factory("Tweenable",function(){return function(a){var b=function(){"use strict";function b(){}function c(a,b){var c;for(c in a)Object.hasOwnProperty.call(a,c)&&b(c)}function d(a,b){return c(b,function(c){a[c]=b[c]}),a}function e(a,b){c(b,function(c){"undefined"==typeof a[c]&&(a[c]=b[c])})}function f(a,b,c,d,e,f,h){var i,j=(a-f)/e;for(i in b)b.hasOwnProperty(i)&&(b[i]=g(c[i],d[i],l[h[i]],j));return b}function g(a,b,c,d){return a+(b-a)*c(d)}function h(a,b){var d=k.prototype.filter,e=a._filterArgs;c(d,function(c){"undefined"!=typeof d[c][b]&&d[c][b].apply(a,e)})}function i(a,b,c,d,e,g,i,j,k){s=b+c,t=Math.min(r(),s),u=t>=s,v=c-(s-t),a.isPlaying()&&!u?(a._scheduleId=k(a._timeoutHandler,p),h(a,"beforeTween"),f(t,d,e,g,c,b,i),h(a,"afterTween"),j(d,a._attachment,v)):u&&(j(g,a._attachment,v),a.stop(!0))}function j(a,b){var d={};return"string"==typeof b?c(a,function(a){d[a]=b}):c(a,function(a){d[a]||(d[a]=b[a]||n)}),d}function k(a,b){this._currentState=a||{},this._configured=!1,this._scheduleFunction=m,"undefined"!=typeof b&&this.setConfig(b)}var l,m,n="linear",o=500,p=1e3/60,q=Date.now?Date.now:function(){return+new Date},r="undefined"!=typeof SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:q;m="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame||setTimeout:setTimeout;var s,t,u,v;return k.prototype.tween=function(a){return this._isTweening?this:(void 0===a&&this._configured||this.setConfig(a),this._timestamp=r(),this._start(this.get(),this._attachment),this.resume())},k.prototype.setConfig=function(a){a=a||{},this._configured=!0,this._attachment=a.attachment,this._pausedAtTime=null,this._scheduleId=null,this._start=a.start||b,this._step=a.step||b,this._finish=a.finish||b,this._duration=a.duration||o,this._currentState=a.from||this.get(),this._originalState=this.get(),this._targetState=a.to||this.get();var c=this._currentState,d=this._targetState;return e(d,c),this._easing=j(c,a.easing||n),this._filterArgs=[c,this._originalState,d,this._easing],h(this,"tweenCreated"),this},k.prototype.get=function(){return d({},this._currentState)},k.prototype.set=function(a){this._currentState=a},k.prototype.pause=function(){return this._pausedAtTime=r(),this._isPaused=!0,this},k.prototype.resume=function(){this._isPaused&&(this._timestamp+=r()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0;var a=this;return this._timeoutHandler=function(){i(a,a._timestamp,a._duration,a._currentState,a._originalState,a._targetState,a._easing,a._step,a._scheduleFunction)},this._timeoutHandler(),this},k.prototype.seek=function(a){return this._timestamp=r()-a,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,i(this,this._timestamp,this._duration,this._currentState,this._originalState,this._targetState,this._easing,this._step,this._scheduleFunction),this._timeoutHandler(),this.pause()),this},k.prototype.stop=function(c){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=b,(a.cancelAnimationFrame||a.webkitCancelAnimationFrame||a.oCancelAnimationFrame||a.msCancelAnimationFrame||a.mozCancelRequestAnimationFrame||a.clearTimeout)(this._scheduleId),c&&(d(this._currentState,this._targetState),h(this,"afterTweenEnd"),this._finish.call(this,this._currentState,this._attachment)),this},k.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},k.prototype.setScheduleFunction=function(a){this._scheduleFunction=a},k.prototype.dispose=function(){var a;for(a in this)this.hasOwnProperty(a)&&delete this[a]},k.prototype.filter={},k.prototype.formula={linear:function(a){return a}},l=k.prototype.formula,d(k,{now:r,each:c,tweenProps:f,tweenProp:g,applyFilter:h,shallowCopy:d,defaults:e,composeEasingObject:j}),a.Tweenable=k,k}();!function(){b.shallowCopy(b.prototype.formula,{easeInQuad:function(a){return Math.pow(a,2)},easeOutQuad:function(a){return-(Math.pow(a-1,2)-1)},easeInOutQuad:function(a){return(a/=.5)<1?.5*Math.pow(a,2):-.5*((a-=2)*a-2)},easeInCubic:function(a){return Math.pow(a,3)},easeOutCubic:function(a){return Math.pow(a-1,3)+1},easeInOutCubic:function(a){return(a/=.5)<1?.5*Math.pow(a,3):.5*(Math.pow(a-2,3)+2)},easeInQuart:function(a){return Math.pow(a,4)},easeOutQuart:function(a){return-(Math.pow(a-1,4)-1)},easeInOutQuart:function(a){return(a/=.5)<1?.5*Math.pow(a,4):-.5*((a-=2)*Math.pow(a,3)-2)},easeInQuint:function(a){return Math.pow(a,5)},easeOutQuint:function(a){return Math.pow(a-1,5)+1},easeInOutQuint:function(a){return(a/=.5)<1?.5*Math.pow(a,5):.5*(Math.pow(a-2,5)+2)},easeInSine:function(a){return-Math.cos(a*(Math.PI/2))+1},easeOutSine:function(a){return Math.sin(a*(Math.PI/2))},easeInOutSine:function(a){return-.5*(Math.cos(Math.PI*a)-1)},easeInExpo:function(a){return 0===a?0:Math.pow(2,10*(a-1))},easeOutExpo:function(a){return 1===a?1:-Math.pow(2,-10*a)+1},easeInOutExpo:function(a){return 0===a?0:1===a?1:(a/=.5)<1?.5*Math.pow(2,10*(a-1)):.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return-(Math.sqrt(1-a*a)-1)},easeOutCirc:function(a){return Math.sqrt(1-Math.pow(a-1,2))},easeInOutCirc:function(a){return(a/=.5)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},easeOutBounce:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},easeInBack:function(a){var b=1.70158;return a*a*((b+1)*a-b)},easeOutBack:function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},easeInOutBack:function(a){var b=1.70158;return(a/=.5)<1?.5*(a*a*(((b*=1.525)+1)*a-b)):.5*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},elastic:function(a){return-1*Math.pow(4,-8*a)*Math.sin((6*a-1)*(2*Math.PI)/2)+1},swingFromTo:function(a){var b=1.70158;return(a/=.5)<1?.5*(a*a*(((b*=1.525)+1)*a-b)):.5*((a-=2)*a*(((b*=1.525)+1)*a+b)+2)},swingFrom:function(a){var b=1.70158;return a*a*((b+1)*a-b)},swingTo:function(a){var b=1.70158;return(a-=1)*a*((b+1)*a+b)+1},bounce:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},bouncePast:function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?2-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?2-(7.5625*(a-=2.25/2.75)*a+.9375):2-(7.5625*(a-=2.625/2.75)*a+.984375)},easeFromTo:function(a){return(a/=.5)<1?.5*Math.pow(a,4):-.5*((a-=2)*Math.pow(a,3)-2)},easeFrom:function(a){return Math.pow(a,4)},easeTo:function(a){return Math.pow(a,.25)}})}(),function(){function a(a,b,c,d,e,f){function g(a){return((n*a+o)*a+p)*a}function h(a){return((q*a+r)*a+s)*a}function i(a){return(3*n*a+2*o)*a+p}function j(a){return 1/(200*a)}function k(a,b){return h(m(a,b))}function l(a){return a>=0?a:0-a}function m(a,b){var c,d,e,f,h,j;for(e=a,j=0;8>j;j++){if(f=g(e)-a,l(f)<b)return e;if(h=i(e),l(h)<1e-6)break;e-=f/h}if(c=0,d=1,e=a,c>e)return c;if(e>d)return d;for(;d>c;){if(f=g(e),l(f-a)<b)return e;a>f?c=e:d=e,e=.5*(d-c)+c}return e}var n=0,o=0,p=0,q=0,r=0,s=0;return p=3*b,o=3*(d-b)-p,n=1-p-o,s=3*c,r=3*(e-c)-s,q=1-s-r,k(a,j(f))}function c(b,c,d,e){return function(f){return a(f,b,c,d,e,1)}}b.setBezierFunction=function(a,d,e,f,g){var h=c(d,e,f,g);return h.x1=d,h.y1=e,h.x2=f,h.y2=g,b.prototype.formula[a]=h},b.unsetBezierFunction=function(a){delete b.prototype.formula[a]}}(),function(){function a(a,c,d,e,f){return b.tweenProps(e,c,a,d,1,0,f)}var c=new b;c._filterArgs=[],b.interpolate=function(d,e,f,g){var h=b.shallowCopy({},d),i=b.composeEasingObject(d,g||"linear");c.set({});var j=c._filterArgs;j.length=0,j[0]=h,j[1]=d,j[2]=e,j[3]=i,b.applyFilter(c,"tweenCreated"),b.applyFilter(c,"beforeTween");var k=a(d,h,e,f,i);return b.applyFilter(c,"afterTween"),k}}(),function(a){function b(a,b){B.length=0;var c,d=a.length;for(c=0;d>c;c++)B.push("_"+b+"_"+c);return B}function c(a){var b=a.match(v);return b?(1===b.length||a[0].match(u))&&b.unshift(""):b=["",""],b.join(A)}function d(b){a.each(b,function(a){var c=b[a];"string"==typeof c&&c.match(z)&&(b[a]=e(c))})}function e(a){return i(z,a,f)}function f(a){var b=g(a);return"rgb("+b[0]+","+b[1]+","+b[2]+")"}function g(a){return a=a.replace(/#/,""),3===a.length&&(a=a.split(""),a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]),C[0]=h(a.substr(0,2)),C[1]=h(a.substr(2,2)),C[2]=h(a.substr(4,2)),C}function h(a){return parseInt(a,16)}function i(a,b,c){var d=b.match(a),e=b.replace(a,A);if(d)for(var f,g=d.length,h=0;g>h;h++)f=d.shift(),e=e.replace(A,c(f));return e}function j(a){return i(x,a,k)}function k(a){for(var b=a.match(w),c=b.length,d=a.match(y)[0],e=0;c>e;e++)d+=parseInt(b[e],10)+",";return d=d.slice(0,-1)+")"}function l(d){var e={};return a.each(d,function(a){var f=d[a];if("string"==typeof f){var g=r(f);e[a]={formatString:c(f),chunkNames:b(g,a)}}}),e}function m(b,c){a.each(c,function(a){for(var d=b[a],e=r(d),f=e.length,g=0;f>g;g++)b[c[a].chunkNames[g]]=+e[g];delete b[a]})}function n(b,c){a.each(c,function(a){var d=b[a],e=o(b,c[a].chunkNames),f=p(e,c[a].chunkNames);d=q(c[a].formatString,f),b[a]=j(d)})}function o(a,b){for(var c,d={},e=b.length,f=0;e>f;f++)c=b[f],d[c]=a[c],delete a[c];return d}function p(a,b){D.length=0;for(var c=b.length,d=0;c>d;d++)D.push(a[b[d]]);return D}function q(a,b){for(var c=a,d=b.length,e=0;d>e;e++)c=c.replace(A,+b[e].toFixed(4));return c}function r(a){return a.match(w)}function s(b,c){a.each(c,function(a){for(var d=c[a],e=d.chunkNames,f=e.length,g=b[a].split(" "),h=g[g.length-1],i=0;f>i;i++)b[e[i]]=g[i]||h;delete b[a]})}function t(b,c){a.each(c,function(a){for(var d=c[a],e=d.chunkNames,f=e.length,g="",h=0;f>h;h++)g+=" "+b[e[h]],delete b[e[h]];b[a]=g.substr(1)})}var u=/(\d|\-|\.)/,v=/([^\-0-9\.]+)/g,w=/[0-9.\-]+/g,x=new RegExp("rgb\\("+w.source+/,\s*/.source+w.source+/,\s*/.source+w.source+"\\)","g"),y=/^.*\(/,z=/#([0-9]|[a-f]){3,6}/gi,A="VAL",B=[],C=[],D=[];a.prototype.filter.token={tweenCreated:function(a,b,c,e){d(a),d(b),d(c),this._tokenData=l(a)},beforeTween:function(a,b,c,d){s(d,this._tokenData),m(a,this._tokenData),m(b,this._tokenData),m(c,this._tokenData)},afterTween:function(a,b,c,d){n(a,this._tokenData),n(b,this._tokenData),n(c,this._tokenData),t(d,this._tokenData)}}}(b)}(window),window.Tweenable}),function(){"use strict";angular.module("angular-carousel").filter("carouselSlice",function(){return function(a,b,c){return angular.isArray(a)?a.slice(b,b+c):angular.isObject(a)?a:void 0}})}();
1angular.module("google.places",[]).factory("googlePlacesApi",["$window",function($window){if(!$window.google)throw"Global `google` var missing. Did you forget to include the places API script?";return $window.google}]).directive("gPlacesAutocomplete",["$parse","$compile","$timeout","$document","googlePlacesApi",function($parse,$compile,$timeout,$document,google){return{restrict:"A",require:"^ngModel",scope:{model:"=ngModel",options:"=?",onPlaceUpdated:"&",ddFocused:"&",ddBlurred:"&",forceSelection:"=?",customPlaces:"=?"},controller:["$scope",function($scope){}],link:function($scope,element,attrs,controller){var keymap={tab:9,enter:13,esc:27,up:38,down:40},hotkeys=[keymap.tab,keymap.enter,keymap.esc,keymap.up,keymap.down],autocompleteService=new google.maps.places.AutocompleteService,placesService=new google.maps.places.PlacesService(element[0]);(function init(){$scope.query="";$scope.predictions=[];$scope.input=element;$scope.options=$scope.options||{};initAutocompleteDrawer();initEvents();initNgModelController()})();function initEvents(){element.bind("focus",onFocus);element.bind("keydown",onKeydown);element.bind("blur",onBlur);element.bind("submit",onBlur);$scope.$on("g-places-autocomplete:select",function(e,prediction){$scope.onPlaceUpdated({place:prediction})});$scope.$watch("selected",select)}function initAutocompleteDrawer(){var drawerElement=angular.element('<div g-places-autocomplete-drawer class="needsclick"></div>'),body=angular.element($document[0].body),$drawer;drawerElement.attr({input:"input",query:"query",predictions:"predictions",active:"active",selected:"selected"});$drawer=$compile(drawerElement)($scope);body.append($drawer);$scope.$on("$destroy",function(){$drawer.remove()})}function initNgModelController(){controller.$parsers.push(parse);controller.$formatters.push(format);controller.$render=render}function onKeydown(event){if($scope.predictions.length===0||indexOf(hotkeys,event.which)===-1){return}event.preventDefault();if(event.which===keymap.down){$scope.active=($scope.active+1)%$scope.predictions.length;$scope.$digest()}else if(event.which===keymap.up){$scope.active=($scope.active?$scope.active:$scope.predictions.length)-1;$scope.$digest()}else if(event.which===13||event.which===9){if($scope.forceSelection){$scope.active=$scope.active===-1?0:$scope.active}$scope.$apply(function(){$scope.selected=$scope.active;if($scope.selected===-1){clearPredictions()}})}else if(event.which===27){$scope.$apply(function(){event.stopPropagation();clearPredictions()})}}var curFocused=false;function onFocus(event){curFocused=true;$scope.ddFocused();$timeout(function(){if(curFocused){$scope.predictions=getCustomPlacePredictions("");$scope.$digest()}},250)}function onBlur(event){curFocused=false;$scope.ddBlurred();if($scope.predictions.length===0){return}if($scope.forceSelection){$scope.selected=$scope.selected===-1?0:$scope.selected}$scope.$digest();$scope.$apply(function(){if($scope.selected===-1||typeof $scope.selected=="undefined"){clearPredictions()}})}function get_addr_component(p_addrObj,p_fieldName){var found=false;var components=p_addrObj;for(var i=0;i<components.length;i++){var possible_val=components[i].short_name;for(var j=0;j<components[i].types.length;j++){if(components[i].types[j]==p_fieldName){return possible_val}}}return false}function select(){var prediction;prediction=$scope.predictions[$scope.selected];if(!prediction)return;if(prediction.is_custom){$timeout(function(){$scope.$apply(function(){$scope.model=prediction.place;$scope.$emit("g-places-autocomplete:select",prediction.place);$timeout(function(){controller.$viewChangeListeners.forEach(function(fn){fn()})})})})}else{placesService.getDetails({placeId:prediction.place_id},function(place,status){if(status==google.maps.places.PlacesServiceStatus.OK){$scope.$apply(function(){$scope.model=place;$scope.$emit("g-places-autocomplete:select",place);$timeout(function(){controller.$viewChangeListeners.forEach(function(fn){fn()})})})}})}clearPredictions()}function parse(viewValue){var request;if(!(viewValue&&isString(viewValue)))return viewValue;$scope.query=viewValue;request=angular.extend({input:viewValue},$scope.options);autocompleteService.getPlacePredictions(request,function(predictions,status){$scope.$apply(function(){var customPlacePredictions;clearPredictions();if(status==google.maps.places.PlacesServiceStatus.OK){$scope.predictions.push.apply($scope.predictions,predictions)}if($scope.customPlaces){customPlacePredictions=getCustomPlacePredictions($scope.query);$scope.predictions.push.apply($scope.predictions,customPlacePredictions)}if($scope.predictions.length>5){}})});if($scope.forceSelection){return controller.$modelValue}else{return viewValue}}function format(modelValue){var viewValue="";if(isString(modelValue)){viewValue=modelValue}else if(isObject(modelValue)){var addr=get_addr_component(modelValue.address_components,"street_number");var street=get_addr_component(modelValue.address_components,"route");var zipCode=get_addr_component(modelValue.address_components,"postal_code");var finalVal="";if(addr){var numberparts=addr.split("-");if(numberparts.length==2){var typedAddressParts=$scope.query.trim().split(" ");if(typedAddressParts.length>0){var typedAddressNumber=typedAddressParts[0];if(typedAddressNumber.split("-").length==1){for(var i=0;i<numberparts.length;i++){if(numberparts[i]==typedAddressNumber){addr=typedAddressNumber}}}}}finalVal+=addr}else{var typedAddressParts=$scope.query.trim().split(" ");if(typedAddressParts.length>0){var typedAddressNumber=typedAddressParts[0];var typedAddressNumberLen=typedAddressNumber.length;try{if(typedAddressNumber!=street.substring(0,typedAddressNumberLen)){finalVal+=typedAddressNumber}}catch(e){}}}if(street){finalVal+=" "+street}finalVal=finalVal.trim();if(zipCode){if(finalVal!=""){finalVal+=", "}finalVal+=zipCode}viewValue=finalVal}return viewValue}function render(){return element.val(controller.$viewValue)}function clearPredictions(){$scope.active=-1;$scope.selected=-1;$scope.predictions=[]}function getCustomPlacePredictions(query){var predictions=[];var place;var match;var i;if($scope.customPlaces){for(i=0;i<$scope.customPlaces.length;i++){place=$scope.customPlaces[i];match=getCustomPlaceMatches(query,place);if(match.matched_substrings.length>0||$scope.predictions.length==0){predictions.push({is_custom:true,custom_prediction_label:place.custom_prediction_label||place.formatted_address,description:place.formatted_address,place:place,matched_substrings:match.matched_substrings,terms:match.terms})}}}return predictions}function getCustomPlaceMatches(query,place){var q=query+"";var terms=[];var matched_substrings=[];var fragment;var termFragments;var i;termFragments=place.formatted_address.split(",");for(i=0;i<termFragments.length;i++){fragment=termFragments[i].trim();if(q.length>0){if(fragment.length>=q.length){if(startsWith(fragment,q)){matched_substrings.push({length:q.length,offset:i})}q=""}else{if(startsWith(q,fragment)){matched_substrings.push({length:fragment.length,offset:i});q=q.replace(fragment,"").trim()}else{q=""}}}terms.push({value:fragment,offset:place.formatted_address.indexOf(fragment)})}return{matched_substrings:matched_substrings,terms:terms}}function isString(val){return Object.prototype.toString.call(val)=="[object String]"}function isObject(val){return Object.prototype.toString.call(val)=="[object Object]"}function indexOf(array,item){var i,length;if(array==null)return-1;length=array.length;for(i=0;i<length;i++){if(array[i]===item)return i}return-1}function startsWith(string1,string2){return toLower(string1).lastIndexOf(toLower(string2),0)===0}function toLower(string){return string==null?"":string.toLowerCase()}}}}]).directive("gPlacesAutocompleteDrawer",["$window","$document",function($window,$document){var TEMPLATE=['<div class="pac-container" ng-if="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\', width: position.width+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">',' <div class="pac-item" g-places-autocomplete-prediction index="$index" prediction="prediction" query="query"',' ng-repeat="prediction in predictions track by $index" ng-class="{\'pac-item-selected\': isActive($index) }"',' ng-mouseenter="selectActive($index)" ng-click="selectPrediction($index)" role="option" id="{{prediction.id}}">'," </div>","</div>"];return{restrict:"A",scope:{input:"=",query:"=",predictions:"=",active:"=",selected:"="},template:TEMPLATE.join(""),link:function($scope,element){element.bind("mousedown",function(event){event.preventDefault()});$window.onresize=function(){$scope.$apply(function(){$scope.position=getDrawerPosition($scope.input)})};$scope.isOpen=function(){return $scope.predictions.length>0};$scope.isActive=function(index){return $scope.active===index};$scope.selectActive=function(index){$scope.active=index};$scope.selectPrediction=function(index){$scope.selected=index};$scope.$watch("predictions",function(){$scope.position=getDrawerPosition($scope.input)},true);function getDrawerPosition(element){var domEl=element[0];var rect=domEl.getBoundingClientRect();var docEl=$document[0].documentElement;var body=$document[0].body;var scrollTop=$window.pageYOffset||docEl.scrollTop||body.scrollTop;var scrollLeft=$window.pageXOffset||docEl.scrollLeft||body.scrollLeft;return{width:rect.width,height:rect.height,top:rect.top+rect.height+scrollTop,left:rect.left+scrollLeft}}}}}]).directive("gPlacesAutocompletePrediction",[function(){var TEMPLATE=['<span class="pac-icon pac-icon-marker"></span>','<span class="pac-item-query" ng-bind-html="prediction | highlightMatched"></span>','<span ng-repeat="term in prediction.terms | unmatchedTermsOnly:prediction">{{term.value | trailingComma:!$last}} </span>','<span class="custom-prediction-label" ng-if="prediction.is_custom"> {{prediction.custom_prediction_label}}</span>'];return{restrict:"A",scope:{index:"=",prediction:"=",query:"="},template:TEMPLATE.join("")}}]).filter("highlightMatched",["$sce",function($sce){return function(prediction){var matchedPortion="";var unmatchedPortion="";var matched;
1if(prediction.matched_substrings.length>0&&prediction.terms.length>0){matched=prediction.matched_substrings[0];matchedPortion=prediction.terms[0].value.substr(matched.offset,matched.length);unmatchedPortion=prediction.terms[0].value.substr(matched.offset+matched.length)}return $sce.trustAsHtml('<span class="pac-matched">'+matchedPortion+"</span>"+unmatchedPortion)}}]).filter("unmatchedTermsOnly",[function(){return function(terms,prediction){var i,term,filtered=[];for(i=0;i<terms.length;i++){term=terms[i];if(prediction.matched_substrings.length>0&&term.offset>prediction.matched_substrings[0].length){if(term.value!="United States"){filtered.push(term)}}}return filtered}}]).filter("trailingComma",[function(){return function(input,condition){return condition?input+",":input}}]);function lg(p_str){try{if(console){console.log(p_str)}}catch(e){}}"use strict";angular.module("Firestitch.angular-counter",[]).directive("fsCounter",["$timeout",function($timeout){return{restrict:"A",scope:{value:"=value"},template:'<div class="fs-counter input-group" ng-class="addclass" ng-style="width"><span class="input-group-btn" ng-click="minus()"><button class="btn btn-default"><span class="glyphicon glyphicon-minus"></span></button></span><input type="text" class="form-control text-center" ng-model="value" ng-blur="blurred()" ng-change="changed()" ng-readonly="readonly"><span class="input-group-btn" ng-click="plus()"><button class="btn btn-default"><span class="glyphicon glyphicon-plus"></span></button></span></div>',replace:!0,link:function(scope,element,attrs){var setValue,changeDelay,min=angular.isUndefined(attrs.min)?void 0:parseInt(attrs.min),max=angular.isUndefined(attrs.max)?void 0:parseInt(attrs.max),step=angular.isUndefined(attrs.step)||0===parseInt(attrs.step)?1:parseInt(attrs.step);if(setValue=function(val){var parsedVal=parseInt(val);return isNaN(parsedVal)?(console.log("parsedValue must parse to a number."),parsedVal=min||0):void 0!==min&&min>parsedVal?parsedVal=min:void 0!==max&&parsedVal>max?parsedVal=max:parsedVal},angular.isUndefined(scope.value))throw"Missing the value attribute on the counter directive.";scope.readonly=angular.isUndefined(attrs.editable)?!0:!1,scope.addclass=angular.isUndefined(attrs.addclass)?null:attrs.addclass,scope.width=angular.isUndefined(attrs.width)?{}:{width:attrs.width},scope.value=setValue(scope.value),scope.minus=function(){scope.value=setValue(scope.value-step)},scope.plus=function(){scope.value=setValue(scope.value+step)},scope.changed=function(){changeDelay=$timeout(function(){scope.value=setValue(scope.value)},1e3,!0)},scope.blurred=function(){scope.value=setValue(scope.value)}}}}]);angular.module("masonry",["ng"]).directive("masonry",function($timeout){return{restrict:"AC",link:function(scope,elem,attrs){var container=elem[0];var options=angular.extend({itemSelector:".item"},angular.fromJson(attrs.masonry));var masonry=scope.masonry=new Masonry(container,options);var debounceTimeout=0;scope.update=function(){if(debounceTimeout){$timeout.cancel(debounceTimeout)}debounceTimeout=$timeout(function(){debounceTimeout=0;masonry.reloadItems();masonry.layout();elem.children(options.itemSelector).css("visibility","visible")},120)};scope.removeBrick=function(){$timeout(function(){masonry.reloadItems();masonry.layout()},500)};scope.appendBricks=function(ele){masonry.appended(ele)};scope.$on("masonry.layout",function(){masonry.layout()});scope.update()}}}).directive("masonryTile",function(){return{restrict:"AC",link:function(scope,elem){elem.css("visibility","hidden");var master=elem.parent("*[masonry]:first").scope();var update=master.update;var removeBrick=master.removeBrick;var appendBricks=master.appendBricks;if(update){imagesLoaded(elem.get(0),update);elem.ready(update)}if(appendBricks){imagesLoaded(elem.get(0),appendBricks(elem))}scope.$on("$destroy",function(){if(removeBrick){removeBrick()}})}}});new WOW({live:true}).init();var navBarHeight=0;var dduserAgent=navigator.userAgent.toLowerCase();var isIDevice=false;var isIPhone=false;var iosVersion=0;var androidVersion=0;var loaded=1;var sessCustLat=0;var sessCustLon=0;var doCleanBoundLinks=false;var dd_os=navigator.platform;var FLOWTYPE_FONT=48;var FLOWTYPE_RATIO_TEXT_ONLY=10;var FLOWTYPE_RATIO_TEXT_GRAPHICS=9;if(self!=top){top.location.href=window.location.href}if($.browser.msie){var iever=parseInt($.browser.version,10);if(iever<7){$("html").addClass("no-js ie lt-ie10 lt-ie9 lt-ie8 lt-ie7")}else if(iever==7){$("html").addClass("no-js ie lt-ie10 lt-ie9 lt-ie8")}else if(iever==8){$("html").addClass("no-js ie lt-ie10 lt-ie9")}else if(iever==9){$("html").addClass("no-js ie ie9 lt-ie10 gt-ie8")}else if(iever==10){$("html").addClass("no-js ie ie10 gt-ie8 gt-ie9")}else if(iever==11){$("html").addClass("no-js ie ie11 gt-ie8 gt-ie9 gt-ie10")}else{$("html").addClass("no-js")}}
1$.event.special.destroyed={remove:function(o){if(o.handler){o.handler()}}};function maybeRefreshOrderBox(){if(isIDevice&&iosVersion<6){dd_reloadOrderBox()}}function lg(p_str){try{if(console){console.log(p_str)}}catch(e){}}function nz(val){if(typeof val=="undefined"||val==null||val=="null"||val=="(null)"||val=="NULL"){return""}else{return val}}var ddbrowser={version:(dduserAgent.match(/.+(?:rv|it|ra|ie|me|ve)[\/: ]([\d.]+)/)||[])[1],chrome:/chrome/.test(dduserAgent),safari:/webkit/.test(dduserAgent)&&!/chrome/.test(dduserAgent),opera:/opera/.test(dduserAgent),firefox:/firefox/.test(dduserAgent),msie:(/msie/.test(dduserAgent)||/trident/.test(dduserAgent))&&!/opera/.test(dduserAgent),mozilla:/mozilla/.test(dduserAgent)&&!/(compatible|webkit)/.test(dduserAgent),webkit:$.browser.webkit,gecko:/[^like]{4} gecko/.test(dduserAgent),presto:/presto/.test(dduserAgent),xoom:/xoom/.test(dduserAgent),android:/android/.test(dduserAgent),androidVersion:onlyOneDecimal((dduserAgent.match(/.+(?:android)[\/: ]([\d.]+)/)||[0,0])[1]),iphone:/iphone|ipod/.test(dduserAgent),iphoneVersion:onlyOneDecimal((dduserAgent.match(/.+(?:iphone\ os)[\/: ]([\d_]+)/)||[0,0])[1].toString().split("_").join(".")),ipad:/ipad/.test(dduserAgent),ipadVersion:onlyOneDecimal((dduserAgent.match(/.+(?:cpu\ os)[\/: ]([\d_]+)/)||[0,0])[1].toString().split("_").join(".")),blackberry:/blackberry/.test(dduserAgent),winMobile:/Windows\ Phone/.test(dduserAgent),winMobileVersion:(dduserAgent.match(/.+(?:windows\ phone\ os)[\/: ]([\d_]+)/)||[0,0])[1]};function resetZip(){$("#dd_content").load("/order.xsl?changeArea=1")}function resetStuff(){}function dd_hovInfo(p_v,theVendorID,theVendorName,theVendorDescription,theVendorCuisine,forBrowser){document.getElementById("restName").innerHTML=theVendorName;document.getElementById("restDesc").innerHTML=theVendorDescription;try{if(theVendorCuisine==""){document.getElementById("restCuisine").innerHTML=""}else{document.getElementById("restCuisine").innerHTML="<span>Cuisine:</span> "+theVendorCuisine}if(window.document.images["restImg"]){var theSrc=getTheSrc(p_v,theVendorID);window.document.images["restImg"].src="/void.gif";window.document.images["restImg"].src=theSrc}}catch(ee){}}function getTheSrc(p_v,p_theVendorID){var theSrc="/v_"+p_v+"_i"+p_theVendorID+".png";return theSrc}function getDistStr(p_vendorID){var retStr="";try{var theDist=getDist(p_vendorID);if(theDist!=""){retStr="<br/><font style='font-weight:normal;font-size:11px;'> Distance: "+Math.round(theDist*100)/100+" Miles From You</font>"}}catch(e){}return retStr}var isAndroid=ddbrowser.android;if(ddbrowser.iphone){isIPhone=true;isIDevice=true;iosVersion=parseFloat(ddbrowser.iphoneVersion)}else if(ddbrowser.ipad){isIDevice=true;iosVersion=parseFloat(ddbrowser.ipadVersion)}if(isIDevice&&iosVersion>0&&iosVersion<6&&ddbrowser.chrome==false&&ddbrowser.ipad==true){alert("For the best experience on our site, please update your iPad to iOS version 6 or greater, or use Google Chrome for iOS.")}if(isAndroid){androidVersion=parseFloat(ddbrowser.androidVersion);if($.browser.webkit&&ddbrowser.chrome==false&&androidVersion>0&&androidVersion<4){alert("For the best experience on our site, please update your Android device version 4 or greater, or install Chrome or Firefox for Android.")}}function getWinWidth(p_win){var twin=p_win;var winW=630,winH=460;if(twin.document.body&&twin.document.body.offsetWidth){winW=twin.document.body.offsetWidth;winH=twin.document.body.offsetHeight}if(document.compatMode=="CSS1Compat"&&twin.document.documentElement&&twin.document.documentElement.offsetWidth){winW=twin.document.documentElement.offsetWidth;winH=twin.document.documentElement.offsetHeight}if(window.innerWidth&&window.innerHeight){winW=twin.innerWidth;winH=twin.innerHeight}return winW}function onlyOneDecimal(p_numstr){var retStr=p_numstr;if(p_numstr&&p_numstr.indexOf(".")!=-1&&p_numstr!="."){retStr=p_numstr.substring(0,p_numstr.indexOf("."))+"."+p_numstr.substring(p_numstr.indexOf("."),p_numstr.length).replace(/\./g,"")}return retStr}function getMenuShowing(){if($(".dd_menu-contents-container").length>0){return true}else{return false}}function findPosX(obj){var curleft=0;if(obj.offsetParent){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent}}else if(obj.x){curleft+=obj.x}return curleft}function findPosY(obj){var curtop=0;if(obj.offsetParent){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent}}else if(obj.y){curtop+=obj.y}return curtop}
1function ShowHoverHelp(Source,Text,p_width){var HoverBox=document.getElementById("HoverBox");var HoverBoxContent=document.getElementById("HoverBoxContent");var x=findPosX(Source);var y=findPosY(Source);if(Source.style.width.replace("px","")!=""){x=x+parseInt(Source.style.width.replace("px",""))}else{x=x+p_width}y=y-7;HoverBoxContent.innerHTML=Text;HoverBox.style.display="";HoverBox.style.top=y+"px";HoverBox.style.left=x+"px"}function HideHoverHelp(){var HoverBox=document.getElementById("HoverBox");HoverBox.style.display="none";HoverBox.style.top="-200px";HoverBox.style.left="-200px"}function distance(p_frlat,p_frlon,p_tolat,p_tolon){var theta=p_frlon-p_tolon;var dist=Math.sin(deg2rad(p_frlat))*Math.sin(deg2rad(p_tolat))+Math.cos(deg2rad(p_frlat))*Math.cos(deg2rad(p_tolat))*Math.cos(deg2rad(theta));dist=Math.acos(dist);dist=rad2deg(dist);dist=dist*60*1.1515;return dist}function deg2rad(deg){return deg*Math.PI/180}function rad2deg(rad){return rad*180/Math.PI}function viewVendorVectors(){var xmlStr="";var maybeComma="";if(vectorStr!=""){maybeComma=","}var curVectorObj=eval('({"result":['+vectorStr+maybeComma+"[]]})");if(curVectorObj.result.length>1){for(var i=0;i<curVectorObj.result.length-1;i++){var curObj=curVectorObj.result[i];var thedist=distance(curObj[0],curObj[1],curObj[3],curObj[4]);var perMile=curObj[6];var tolabl=curObj[5];if(tolabl==""){tolabl="You"}xmlStr=xmlStr+curObj[2]+" to "+tolabl+":<br/> "+Math.round(thedist*100)/100+" Miles at $"+Math.round(perMile*100)/100+"/Mile = $"+Math.round(thedist*perMile*100)/100+"<br/>"}}else{xmlStr="Distance Unkown"}return xmlStr}function dd_goToTarget(p_queryStr){if(dd_targetPage.indexOf("?")!=-1){if(p_queryStr!=""){p_queryStr="&"+p_queryStr}}else{if(p_queryStr!=""){p_queryStr="?"+p_queryStr}}$("#dd_content").load(dd_targetPage+p_queryStr);try{History.pushState({dontgo:true},null,dd_targetPage)}catch(e){}}function dd_goToAbsTarget(p_url,p_queryStr){$("#dd_content").load(p_url+p_queryStr);try{History.pushState({dontgo:true},null,p_url)}catch(e){}$("body").animate({scrollLeft:0,scrollTop:0},300)}function dd_goLogin(){$("#dd_content").load("/login.xsl?redirTo="+dd_targetPage)}function dd_goMyAcct(){$("#dd_content").load("/myacct.xsl")}function dd_goProcessDeliveryOpts(p_queryStr){if(p_queryStr!=""){p_queryStr="?"+p_queryStr}$("#dd_content").load("/processDeliveryOpts.xsl"+p_queryStr)}function dd_goOptions(p_queryStr){if(p_queryStr!=""){p_queryStr="?"+p_queryStr}$("#dd_content").load("/options.xsl"+p_queryStr)}function dd_goTime(p_url,p_queryStr){if(p_queryStr!=""){p_queryStr="?"+p_queryStr}$("#dd_content").load(p_url+p_queryStr);try{History.pushState({dontgo:true},null,p_url)}catch(e){}}function goZip(theSel){var theZip=theSel.options[theSel.selectedIndex].value;if(theZip!=""){if(window.location.hostname=="www.mobilewaitersatl.com"&&(theZip=="30060"||theZip=="30062"||theZip=="30063"||theZip=="30066"||theZip=="30067"||theZip=="30068"||theZip=="30069"||theZip=="30144"||theZip=="30512"||theZip=="30327"||theZip=="30339"||theZip=="30080"||theZip=="30082")){theSel.value=""}else{dd_goToTarget("refreshLeft=1&formZipCode="+theSel.options[theSel.selectedIndex].value)}}}function goZip3(theSel){alert(3)}function goZip2(){if(document.entrZipFrm.formZipCode.value!=""){dd_goToTarget("refreshLeft=1&formZipCode="+document.entrZipFrm.formZipCode.value)}}function postamble(){return}function setAddr(p_args1,p_args2){var theNum=p_args2[2][1];var theRangeID=p_args2[2][2];var thePointID=p_args2[2][3];if(thePointID!=null&&thePointID!=""){dd_goToTarget("refreshLeft=1&newSPID="+thePointID)}else{dd_goToTarget("refreshLeft=1&newSPAddr="+escape(theNum)+"&newSRID="+theRangeID)}}function setAddr2(p_DPID){dd_goToTarget("refreshLeft=1&newDPID="+p_DPID)}function setAddr3(p_curZip){if(document.getElementById("ysearchinput").value==""){alert("You need to type in your address first.");document.getElementById("ysearchinput").focus();return false}else if(document.getElementById("ysearchinput").value==p_curZip){alert("Your Delivery ZipCode is already set to "+p_curZip+". Type your Delivery Street Address here instead (example: 123 Main St.)");document.getElementById("ysearchinput").value="";document.getElementById("ysearchinput").focus();return false}else{dd_goToTarget("refreshLeft=1&newADDR="+escape(document.getElementById("ysearchinput").value))}}var dd_headercontent_ismissing=true;function addDotmatrix(){var theimg=document.getElementById("dd_img_dotmatrix");if(!theimg){theimg=new Image;theimg.src="/carttest.png";theimg.style.zIndex=9999;theimg.style.position="absolute";theimg.style.top="0px";theimg.style.right="0px";theimg.id="dd_img_dotmatrix";document.body.appendChild(theimg)}else{theimg.src="/carttest.png"}if(document.getElementById("dd_tmpcart")){document.getElementById("dd_tmpcart").style.display="none"}}function hideDotmatrix(){var theimg=document.getElementById("dd_img_dotmatrix");if(theimg){theimg.src="/void.gif"}if(document.getElementById("dd_tmpcart")){document.getElementById("dd_tmpcart").style.display="inline"}}function dd_testforHeaderContent(){if(dd_testforClass("dd_header-content")){dd_headercontent_ismissing=false}if(top.appleappid&&top.appleappid!=""&&top.isIDevice==true&&top.iosVersion<6){if(Get_Cookie("dd_use_mobile")==null){var appstoreoverlay=document.getElementById("dd_appstoreoverlay");appstoreoverlay.style.display="inline-table"}}}function Get_Cookie(name){var start=document.cookie.indexOf(name+"=");var len=start+name.length+1;if(!start&&name!=document.cookie.substring(0,name.length)){return null}if(start==-1)return null;var end=document.cookie.indexOf(";",len);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(len,end))}function Set_Cookie(name,value,expires,path,domain,secure){var today=new Date;today.setTime(today.getTime());if(expires){expires=expires*1e3*60*60*24}var expires_date=new Date(today.getTime()+expires);document.cookie=name+"="+escape(value)+(expires?";expires="+expires_date.toGMTString():"")+(path?";path="+path:"")+(domain?";domain="+domain:"")+(secure?";secure":"")}function setAppCook(){Set_Cookie("dd_use_mobile","true","1000","/","","");document.getElementById("dd_appstoreoverlay").style.display="none"}function dd_testforClass(p_classname){if(getElementsByClassName(p_classname).length>0){return true}else{return false}}var getElementsByClassName=function(className,tag,elm){if(document.getElementsByClassName){getElementsByClassName=function(className,tag,elm){elm=elm||document;var elements=elm.getElementsByClassName(className),nodeName=tag?new RegExp("\\b"+tag+"\\b","i"):null,returnElements=[],current;for(var i=0,il=elements.length;i<il;i+=1){current=elements[i];if(!nodeName||nodeName.test(current.nodeName)){returnElements.push(current)}}return returnElements}}else if(document.evaluate){getElementsByClassName=function(className,tag,elm){tag=tag||"*";elm=elm||document;
1var classes=className.split(" "),classesToCheck="",xhtmlNamespace="http://www.w3.org/1999/xhtml",namespaceResolver=document.documentElement.namespaceURI===xhtmlNamespace?xhtmlNamespace:null,returnElements=[],elements,node;for(var j=0,jl=classes.length;j<jl;j+=1){classesToCheck+="[contains(concat(' ', @class, ' '), ' "+classes[j]+" ')]"}try{elements=document.evaluate(".//"+tag+classesToCheck,elm,namespaceResolver,0,null)}catch(e){elements=document.evaluate(".//"+tag+classesToCheck,elm,null,0,null)}while(node=elements.iterateNext()){returnElements.push(node)}return returnElements}}else{getElementsByClassName=function(className,tag,elm){tag=tag||"*";elm=elm||document;var classes=className.split(" "),classesToCheck=[],elements=tag==="*"&&elm.all?elm.all:elm.getElementsByTagName(tag),current,returnElements=[],match;for(var k=0,kl=classes.length;k<kl;k+=1){classesToCheck.push(new RegExp("(^|\\s)"+classes[k]+"(\\s|$)"))}for(var l=0,ll=elements.length;l<ll;l+=1){current=elements[l];match=false;for(var m=0,ml=classesToCheck.length;m<ml;m+=1){match=classesToCheck[m].test(current.className);if(!match){break}}if(match){returnElements.push(current)}}return returnElements}}return getElementsByClassName(className,tag,elm)};var lastbutton="top";var LastRest="";var pos=0;var height=0;var offset=0;var NS4;var IE4;var NS6;if(document.all){IE4=1}else if(document.layers){NS4=1}else if(document.getElementById){NS6=1}function P(menuName,on,Position,color,v,p_btnHeight,p_ele){if(on==1){if(window.document.images[menuName]){window.document.images[menuName].src="/v_"+v+"_"+menuName+color+".png"}}if(loaded==1){try{if($("body").attr("data-layout")=="non-mobile"){if(NS4){chooseText(menuName,"NS4");document.layers["i220"].visibility="show";LastRest="i220";height=window.innerHeight;offset=window.pageYOffset;pos=height-(height-Position)-$("#bodyscrolldiv").scrollTop()+offset-navBarHeight;setNewHoverPosition(p_ele);return;if(pos<offset){setHoverPosition(offset,9,p_btnHeight)}else{setHoverPosition(pos,9,p_btnHeight)}}else if(NS6){chooseText(menuName,"NS6");document.getElementById("i220").style.visibility="visible";LastRest="i220";height=window.innerHeight;offset=window.pageYOffset;pos=height-(height-Position)-$("#bodyscrolldiv").scrollTop()+offset-navBarHeight;setNewHoverPosition(p_ele);return;if(pos<offset){setHoverPosition(offset,9,p_btnHeight)}else{setHoverPosition(pos,9,p_btnHeight)}}else{chooseText(menuName,"IE");document.getElementById("i220").style.visibility="visible";LastRest="i220";height=document.body.clientHeight;offset=document.body.scrollTop||document.documentElement.scrollTop;if(height==0){height=document.documentElement.clientHeight}setNewHoverPosition(p_ele);return;var thisScrollTop=document.getElementById("bodyscrolldiv").scrollTop;pos=height-(height-Position)-thisScrollTop+offset-navBarHeight;if(pos<offset){setHoverPosition(offset,9,p_btnHeight)}else{setHoverPosition(pos,9,p_btnHeight)}}}}catch(e){}}}function C(menuName,on,color,v){if(window.document.images[menuName]){window.document.images[menuName].src="/v_"+v+"_"+menuName+color+".png"}if(top.loaded==1){if(LastRest!=""){try{if(NS4){top.document.layers["i220"].visibility="hide"}else if(NS6){top.document.getElementById("i220").style.visibility="hidden"}else{top.document.getElementById("i220").style.visibility="hidden"}}catch(e){}}}}var lastRest="";function L(FileName,v){C();top.loaded=0;if(document.getElementById("rest"+FileName)){if(lastRest!=""){clearCanvases();$("#rest"+lastRest).removeClass("dd_selected")}$("#rest"+FileName).addClass("dd_selected");lastRest=FileName}}function change(Name,No){popUp(Name,false)}function clearCanvases(){}var dd_myimages=new Array;var mouseScrollIsDown=false;var mouseScrollIsHover=false;function W(Name){window.status=Name}function V(){var i;i=1}var NS4;var IE4;var NS6;if(document.all){IE4=1}else if(document.layers){NS4=1}else if(document.getElementById){NS6=1}if(NS4){gotlayers=1}if(IE4){gotlayers=1}if(NS6){gotlayers=1}function P2(intImgNum,e){if(gotlayers){if(NS4){window.document.layers["showImage"].document.images["imgItemPic"].src=intImgNum+"s.gif";document.layers["showImage"].visibility="show";document.layers["showImage"].top=e.pageY-20;document.layers["showImage"].left=e.pageX-20}else if(NS6){window.document.images["imgItemPic"].src=intImgNum+"s.gif";height=window.innerHeight;offset=window.pageYOffset;pos=window.pageYOffset+offset;document.getElementById("showImage").style.top=e.pageY-20+"px";document.getElementById("showImage").style.left=e.pageX-20+"px";document.getElementById("showImage").style.visibility="visible"}else{window.document.images["imgItemPic"].src=intImgNum+"s.gif";var thisScrollTop=document.body.scrollTop||document.documentElement.scrollTop;thisScrollTop=0;if(document.body.offsetHeight+thisScrollTop-(window.event.y+thisScrollTop-20)<240){document.all["showImage"].style.pixelTop=document.body.offsetHeight+thisScrollTop-240}else{document.all["showImage"].style.pixelTop=window.event.y+thisScrollTop-20}if(document.body.offsetWidth-(window.event.x-20)<400){document.all["showImage"].style.pixelLeft=document.body.offsetWidth-400}else{document.all["showImage"].style.pixelLeft=window.event.x-20}document.all["showImage"].style.visibility="visible"}}}function closePic(){$("#dd_p_imgpreview").remove()}var optionResizeTimeoutID=0;var lastOptHeight=0;var OPT_DLG_OFFSET=5;function startChecking(){return;if(ddbrowser.iphoneVersion>7){lastOptHeight=parseInt($("#colorbox").css("height"),10);optionResizeTimeoutID=window.setInterval("doCheck()",1e3)}}function doCheck(){if(window.innerHeight==lastOptHeight+OPT_DLG_OFFSET){}else{lastOptHeight=window.innerHeight-OPT_DLG_OFFSET;var opt_a=$("#colorbox, #cboxWrapper");var opt_b=$("#cboxMiddleLeft, #cboxContent, #cboxLoadedContent, #cboxMiddleRight");opt_a.css("height",lastOptHeight);opt_b.css("height",lastOptHeight-2);window.scrollBy(0,0)}}function stopChecking(){window.clearInterval(optionResizeTimeoutID)}var optionsAreOpen=false;function setzipFromDialog(theSel,FoodID,extra,p_searchTerm){var theZip=theSel.options[theSel.selectedIndex].value;if(theZip!=""){$("#dd_content").load(window.location.href.split("?")[0].replace("#","")+"?refreshLeft=1&formZipCode="+theZip+"&searchTerm="+p_searchTerm,function(){$(document).bind("cbox_closed",function(){stopChecking();optionsAreOpen=false;$("body").removeClass("dd_noscroll");$(document).unbind("cbox_closed");if(FoodID!=""){L2(FoodID,extra)}})})}else{}}function dd_preloadimages(){for(var i=0;i<dd_preloadimages.arguments.length;i++){dd_myimages[i]=new Image;dd_myimages[i].src=dd_preloadimages.arguments[i]}}function doMouseUp(){mouseScrollIsDown=false;
1if(mouseScrollIsHover){$(".scrollbarpaper-drag").css("background","url(/scrollbarbars.gif) left center no-repeat, url(/scrollmenu-hover.gif) repeat")}else{$(".scrollbarpaper-drag").css("background","url(/scrollbarbars.gif) left center no-repeat, url(/scrollmenu.gif) repeat")}}function logscroll(e){var domElement=document.getElementById("bodyscrolldiv");var bartop=$(".scrollbarpaper-drag").offset().top;var onePagePercentage=domElement.clientHeight/domElement.scrollHeight;var curScrollPercentage=domElement.scrollTop/(domElement.scrollHeight-domElement.clientHeight);if(e.pageY<bartop){setElementScrollScale(document.getElementById("bodyscrolldiv"),curScrollPercentage-onePagePercentage)}else{setElementScrollScale(document.getElementById("bodyscrolldiv"),onePagePercentage+curScrollPercentage)}}function getElementScrollScale(domElement){return domElement.scrollTop/(domElement.scrollHeight-domElement.clientHeight)}function setElementScrollScale(domElement,scale){if(mouseScrollIsDown==false){$("#bodyscrolldiv").stop(true,false).animate({scrollTop:(domElement.scrollHeight-domElement.clientHeight)*scale},600)}}function collapseMobileNav(){$("html").removeClass("dd_mobile-nav")}function collapseMobileLeft(){$("html").removeClass("dd_mobile-restaurant-list");$("body").animate({scrollLeft:0,scrollTop:0},300)}function dd_reloadMain(){removeHash();$("#dd_content").load("/home.xsl",function(response,status,xhr){updateTitle()})}function dd_reloadOrderBox(){$("#div_cart").load("/orderBox.xsl?rnd="+Math.round(Math.random()*1e5))}function dd_loadRestaurants(p_url){lg("dd_loadRestaurants");$("#div_restaurants_inner").load(p_url,function(response,status,xhr){bindHistoryLinks($("#div_restaurants_inner"));try{}catch(e){}})}function writeOptions_xsl_Group(GroupName,Required,p_groupMax){this.Required=Required;this.GroupName=GroupName;this.CurrentCount=0;this.groupMax=p_groupMax}function writeOptions_xsl_CreateString(itemID){var QueryString="?itemID="+itemID;var arrayHolder;var reg;var subName;var controlValue;var Group_Count;var Group_Count2;var record;var st;var Groups=new Object;Group_Count=document.getElementById("frm_writeOptions_xsl1").elements.length;for(count=0;count<=Group_Count-1;count++){reg=/(groupMax=)(\d*)(;)(Required=)(\d*)(;)(GroupName=)([\w\s\W]*)(;)/;controlValue=document.getElementById("frm_writeOptions_xsl1").elements[count].value;arrayHolder=controlValue.match(reg);var groupMax=arrayHolder[2];var groupRequired=arrayHolder[5];subName=arrayHolder[8];Groups[subName]=new writeOptions_xsl_Group(subName,groupRequired,groupMax)}Group_Count2=document.getElementById("frm_writeOptions_xsl0").elements.length;for(count=0;count<=Group_Count2-1;count++){if(document.getElementById("frm_writeOptions_xsl0").elements[count].checked==true&&document.getElementById("frm_writeOptions_xsl0").elements[count].value!="Done"&&document.getElementById("frm_writeOptions_xsl0").elements[count].value!="Cancel"){QueryString=QueryString+"&"+escape(document.getElementById("frm_writeOptions_xsl0").elements[count].name)+"="+document.getElementById("frm_writeOptions_xsl0").elements[count].value;Groups[document.getElementById("frm_writeOptions_xsl0").elements[count].name].CurrentCount=Groups[document.getElementById("frm_writeOptions_xsl0").elements[count].name].CurrentCount+1}}for(record in Groups){if(Groups[record].Required>0){var introStr="You must select ";if(Groups[record].Required>Groups[record].CurrentCount){if(Groups[record].Required==Groups[record].groupMax){introStr=introStr+"exactly "+Groups[record].Required}else if(Groups[record].groupMax>Groups[record].Required){introStr=introStr+"between "+Groups[record].Required+" and "+Groups[record].groupMax}else{introStr=introStr+"at least "+Groups[record].Required}alert(introStr+" item"+(Groups[record].Required==1?"":"s")+" from the "+Groups[record].GroupName+" group. You entered "+Groups[record].CurrentCount+".\nPlease try again (Note:
1you may need to scroll down to see all choices.)");return false}}if(Groups[record].groupMax>0&&Groups[record].CurrentCount>Groups[record].groupMax){alert("You can only select a maximum of "+Groups[record].groupMax+" item"+(Groups[record].groupMax==1?"":"s")+" from the "+Groups[record].GroupName+" group. You entered "+Groups[record].CurrentCount+".\nPlease try again (Note: you may need to scroll down to see all choices.)");return false}}$("#div_cart").load("/addOptions.xsp"+QueryString)}function closeOptions(){}function dd_initHome(){$(".dd_app-store-phone-icon").html("📱");if(dd_os.match(/win/gi)){$(".dd_zip_chooser").addClass("dd_is_windows")}$(".dd_select-wrap").each(function(){$bg=$(this).find("input.dd_select-bg");$select=$(this).find("select");$select.on("change",function(){if($select.val()==""){$bg.val($("option.dd_default").text()).addClass("dd_placeholder")}else{$bg.val($select.attr("value")).removeClass("dd_placeholder")}})});$("a.dd_tab").on("click",function(e){$("a.dd_tab").addClass("dd_inactive");$(this).removeClass("dd_inactive")});$(".dd_date-picker a").on("click",function(e){e.preventDefault()});$(".dd_date-picker table a").on("click",function(){if(!$(this).parent().hasClass("dd_disabled")){if($(this).parents("div.dd_time").length){$("div.dd_time table td").removeClass("dd_selected")}else{$(this).parents("table").find(".dd_selected").removeClass("dd_selected")}$(this).parent().addClass("dd_selected")}});if($("#div_content").length>0){$("#dd_a_goworks").click(function(e){e.preventDefault();$("html").animate({scrollTop:$("#how-it-works").offset().top-150},500);return false});$("a.view-instructions").on("click",function(e){e.preventDefault();var instructionsPos=$(".dd_how-it-works").offset().top;var offset=50;var scrollTo=instructionsPos-offset;$("body").animate({scrollTop:scrollTo},1e3,"easeInOutCubic")});if($(".dd_comments-feed ul").length){var $ul=$(".dd_comments-feed ul");var $comments=$ul.find("li");if($(".lt-ie9").length==0){var thresholdValue=$ul.css("counter-increment");var threshold=parseInt(thresholdValue.substring(thresholdValue.length-2,thresholdValue.length),10)}else{var thresholdValue=null;var threshold=3}threshold=3;if($comments.length>=threshold){var scrollingCommentsInit=function(comments,threshold){var totalHeight=0;for(var i=0;i<threshold;i++){totalHeight+=parseInt(comments.eq(i).outerHeight())+10}$(".dd_comments-feed").css({height:totalHeight});if($("html.lt-ie9").length){var wrapHeight=parseInt($(".dd_comments-feed").css("height"));var topOffset=parseInt($(".dd_comments-feed-mid").css("top"));var bottomHeight=parseInt($(".dd_comments-feed-bottom").css("height"));var bottomOffset=parseInt($(".dd_comments-feed-bottom").css("bottom"));var dynHeight=wrapHeight-bottomHeight-topOffset-bottomOffset;$(".dd_comments-feed-mid").css("height",dynHeight)}$(".dd_comments-feed li:first-child").css({"border-top":"1px dotted #babab3"})};var cycleComments=function(){var $topComment=$ul.find("li:first-child");var duration=1200;$topComment.clone().appendTo($ul);$ul.animate({top:-$topComment.outerHeight()+15},duration,"easeInOutBack",function(){$topComment.remove();$ul.css("top",15)})};$(".dd_comments-feed").ready(scrollingCommentsInit($comments,threshold));setInterval(cycleComments,4500)}}var $body=$(".dd_body");$(".dd_hours").elemedia("max-width",249)}}function dd_doTransparency(){return}function dd_setBodyMinHeight(){var curRestListHeight=$("#div_restaurants").outerHeight();$(".dd_body").css("min-height",curRestListHeight)}var dd_headIsTransparent=true;var dd_pageIsWide=false;var dd_scrollbarWidth=0;$(document).ready(function(){if($(".cycle-slideshow.no-js").length){$(".cycle-slideshow.no-js").removeClass("no-js")}dd_scrollbarWidth=scrollbarWidth();var $body=$(window);$(".dd_site-title.dd_text-only h1").flowtype({fontRatio:FLOWTYPE_RATIO_TEXT_ONLY,lineRatio:1,maxFont:FLOWTYPE_FONT});$(".dd_site-title.dd_text-graphics h1").flowtype({fontRatio:FLOWTYPE_RATIO_TEXT_GRAPHICS,lineRatio:1,maxFont:FLOWTYPE_FONT});$(".dd_site-title.dd_text-only h2.dd_subtitle-text").flowtype({fontRatio:15,lineRatio:1,minFont:16,maxFont:22});
1$(".dd_site-title.dd_text-graphics h2.dd_subtitle-text").flowtype({fontRatio:15,lineRatio:1,minFont:14,maxFont:22});if($(".dd_graphics-only").length){var img=$(".dd_title-text img")[0];$("<img/>").attr("src",$(img).attr("src")).on("load",function(){$(img).css("max-width",this.width)})}if(dd_os.match(/win/gi)){$("body").addClass("dd_is_windows")}$.ajaxPrefilter("script",function(options){options.cache=true});$.ajaxSetup({cache:false});if($.browser.msie){if(document.documentMode){if(parseInt($.browser.version,10)<8){alert("You should take IE out of compatability mode by clicking the icon next to the toolbar or via Tools--\x3eCompatability View Settings.")}}}if($("html.lt-ie9").length==0){$("head").append("<style> a { -webkit-tap-highlight-color: rgba(0,0,0,0) !important; } </style>");document.addEventListener("touchstart",function(){},true)}setToDesktop=function(){$("#div_restaurants").insertAfter(".dd_content-wrapper");$("#div_cart_wrapper").insertAfter(".dd_site-title");$(".dd_mobile-cart-heading").remove();$(".dd_mobile-checkout").remove();$(".dd_navbar").insertAfter(".dd_header-content");$("#dd_navfill").unwrap();$(".dd_zip-chooser").removeClass("dd_content-hidden");$("body").attr("data-layout","non-mobile")};setToMobile=function(){$('.dd_inner-wrap[role="main"]').append($("#div_restaurants"));$("#dd_inner-wrap").append($("#div_cart_wrapper"));$("#div_cart_wrapper").prepend('<h3 class="dd_mobile-cart-heading">Your Order</h3>').append('<a href="/revieworder.xsl" class="dd_mobile-checkout" rel="nofollow" target="_top">Checkout</a>');$("body").attr("data-layout","mobile")};var adjustContainerHeight=function(){var $container=$(".dd_container");var containerHeight=$container.outerHeight();var $restList=$(".dd_restaurant-buttons");var restListHeight=$restList.height();var $mobileFooter=$(".dd_mobile-footer");var mobileFooterHeight=$mobileFooter.height();if(restListHeight>containerHeight){$container.height(restListHeight+mobileFooterHeight)}};if($("html.lt-ie9").length==0){}var contentsHeight=0;$("[data-expandable] > *").each(function(){contentsHeight+=$(this).outerHeight(true)});$("[data-expandable]").each(function(){if(contentsHeight<250){$(".expandable-control").hide()}});$("[data-expandable] .expandable-control").on("click",function(event){event.preventDefault();var scrollTop=0;var $root=$(this).parents("[data-expandable]");if($root.hasClass("expandable-collapsed")){scrollTopVal=$(window).scrollTop()}else{$(window).animate({scrollTop:scrollTopVal},{duration:500,queue:false})}$root.toggleClass("expandable-collapsed expandable-expanded")});setMenuPageHeight=function(){return;var winHeight=$(window).height();$("#fakebg2, #fakebg3").css("height",winHeight);var $menuContainer=$(".dd_menu-page .dd_menu-contents-container");var $restListContainer=$("#div_restaurants");if(dd_pageIsWide===true){$(".dd_body").removeAttr("style");var headerHeight=$(".dd_header").outerHeight();var newRestListHeight=winHeight-headerHeight;var newMenuHeight=winHeight;if($("html.lt-ie9").length>0){$restListContainer.css("height",newRestListHeight-25);$menuContainer.css("height",newMenuHeight-165)}else{$restListContainer.css("height",newRestListHeight);$menuContainer.css("height",newMenuHeight)}}else{var menu=$(".dd_header").outerHeight();dd_setBodyMinHeight();$menuContainer.removeAttr("style");$restListContainer.removeAttr("style")}var rWidth=$("#div_restaurants").outerWidth();var cWidth=$("#div_cart_wrapper").outerWidth();var nHeight=$("#dd_navbar").outerHeight();dd_redoBgWidths()};var logoMaxWidth;$(".dd_site-title.dd_graphics-only img").on("load",function(){logoMaxWidth=this.naturalWidth;$(this).css({maxWidth:logoMaxWidth})});removeMenuPageHeight=function(){var $menuContainer=$(".dd_menu-page .dd_menu-contents-container");var $restListContainer=$("#div_restaurants");$menuContainer.removeAttr("style")};makeEnquiry=function(){enquire.register("all and (min-width: 660px)",{match:function(){if($("body").attr("data-layout")=="mobile"){setToDesktop()}}});enquire.register("all and (min-width: 660px)",{match:function(){dd_pageIsWide=true}});enquire.register("all and (max-width: 659px)",{match:function(){if($("body").attr("data-layout")=="non-mobile"){setToMobile()}}});enquire.register("all and (max-width: 659px)",{match:function(){dd_pageIsWide=false}})};ddtestresize=function(){setMenuPageHeight()};if($(".lt-ie10").length==0){makeEnquiry()}else{dd_pageIsWide=true}setMenuPageHeight();$(window).smartresize(ddtestresize);var updateFullSizeRestList=function(container,toggleBtn){var $container=container;var $toggleBtn=toggleBtn;if($container.hasClass("dd_full-size")){$toggleBtn.html("<span><</span>Close");$(".dd_restaurant-menu-button").each(function(){var $this=$(this);var $image=$this.find(".dd_restaurant-image-large");var $name=$this.find(".dd_restaurant-button-name");$image.attr("src",$image.attr("data-src"))});$(".dd_restimg").each(function(){$(this).removeClass("dd_restimg").addClass("dd_commonbutton").attr("data-orig-class","dd_restimg")});$("#i220").attr("style","display: none !important")}else{$toggleBtn.html("See All<span>></span>");$(".dd_commonbutton[data-orig-class]").each(function(){var $this=$(this);$this.removeClass("dd_commonbutton").addClass($this.attr("data-orig-class"))})}};$(".dd_outer-scroll").scroll(function(e){if($(this).scrollLeft()>1){e.preventDefault();$(this).scrollLeft(0)}});centerThings()});function setElementsPosition(element){$("#dd_p_imgpreview").position({my:"left top",at:"left bottom",of:$(element),offset:20+" "+-120,collision:"fit"})}function setNewHoverPosition(p_ele){$("#i220").position({my:"left center",at:"left bottom",of:$(p_ele),offset:$(p_ele).outerWidth()+25+" "+0,collision:"fit"});$("#dd_vendor-hover-arrow-container").position({my:"left top",at:"left top",of:$(p_ele),offset:$(p_ele).outerWidth()+15+" "+0,collision:"none"})}var centerThings=function(){return;if(getMenuShowing()){$("body").removeClass("dd_homepage").addClass("dd_menu-page")}
1else{clearCanvases();if($("body").hasClass("dd_menu-page")){$("body").removeClass("dd_menu-page").addClass("dd_homepage")}}};function expandThings(){return;if($("body").hasClass("dd_homepage")){$("body").removeClass("dd_homepage").addClass("dd_menu-page")}setMenuPageHeight()}function commonAddItem(itemID){var rnd="&rnd="+Math.round(Math.random()*1e5);$("#div_cart").load("/addNormalItem.xsp?itemID="+itemID+rnd)}function updateTitle(){var tmpTitle=$("#dd_content").find("title");if(tmpTitle.length==1){document.title=tmpTitle.text()}else{}bindHistoryLinks($("#dd_content"))}function removeHash(){var scrollV,scrollH,loc=window.location;if("pushState"in history){history.pushState("",document.title,loc.pathname+loc.search)}else{scrollV=document.body.scrollTop;scrollH=document.body.scrollLeft;loc.hash="";document.body.scrollTop=scrollV;document.body.scrollLeft=scrollH}}function removeScopes(obj,p_masterid){obj.children().each(function(){var sc=$(this).scope();if(sc.$id!=p_masterid){sc.$destroy();return}removeScopes($(this),p_masterid)})}function ParsedUrl(url){var parser=document.createElement("a");parser.href=url;parser.href=parser.href;if(parser.host===""){var newProtocolAndHost=window.location.protocol+"//"+window.location.host;if(url.charAt(1)==="/"){parser.href=newProtocolAndHost+url}else{var currentFolder=("/"+parser.pathname).match(/.*\//)[0];parser.href=newProtocolAndHost+currentFolder+url}}var properties=["host","hostname","hash","href","port","protocol","search"];for(var i=0,n=properties.length;i<n;i++){this[properties[i]]=parser[properties[i]]}this.pathname=(parser.pathname.charAt(0)!=="/"?"/":"")+parser.pathname}var replacedScope=false;(function(window,undefined){History.Adapter.bind(window,"statechange",function(){var State=History.getState();if(State.data.dontgo){}else{var doCache=false;var myUrl=new ParsedUrl(State.url);if(myUrl.pathname=="/restaurants"){if(myUrl.hash=="#_frommain=1"){State.url=State.url.replace("#_frommain=1","")}if(myUrl.search==""){State.url=State.url+"?"}else{State.url=State.url+"&"}State.url=State.url+"yescache=1&cachev=8";doCache=true}if(doCache){$.ajaxSetup({cache:true})}if(replacedScope){angular.element($("#dd_content")).scope().$destroy();$("#dd_content").load(State.url,function(response,status,xhr){if(status=="error"){var msg="Error reading AJAX cotnent: ";alert(msg)}else{updateTitle();
1if(typeof window._gaq!=="undefined"){window._gaq.push(["_trackPageview",myUrl.pathname])}$("html, body").stop().animate({scrollTop:0},300);$("#dd_content").each(function(){var content=$(this);angular.element(document).injector().invoke(function($compile){var scope=angular.element(content).parent().scope();var newScope=scope.$new();$compile(content)(newScope);newScope.$apply()})})}})}else{$.get(State.url).done(function(data){$("#dd_content").each(function(){var content=$(this);angular.element(document).injector().invoke(function($compile){var curScope=angular.element(content).scope();var newScope=curScope.$new();removeScopes(content,curScope.$id);content.html(data);$("html, body").stop().animate({scrollTop:0},300);replacedScope=true;$compile($("#dd_content"))(newScope);newScope.$apply()})});updateTitle();if(typeof window._gaq!=="undefined"){window._gaq.push(["_trackPageview",myUrl.pathname])}}).fail(function(){var msg="Error reading AJAX cotnent: ";alert(msg)})}if(doCache){$.ajaxSetup({cache:false})}}var newPath=(location.pathname+location.search).substr(1);if(newPath==""){$("body").removeClass("dd_menu-page").removeClass("dd_subpage").addClass("dd_homepage")}else if(/^r\/[0-9]+\/restaurants/.test(newPath)||/^foodfind/.test(newPath)){$("body").removeClass("dd_homepage").addClass("dd_menu-page")}else{$("body").removeClass("dd_menu-page").removeClass("dd_homepage").addClass("dd_subpage")}})})(window);function hasNamedAnchor(hash){return false}function left(str,n){if(n<=0)return"";else if(n>String(str).length)return str;else return String(str).substring(0,n)}function stripHashFrag(p_str){var poundIndex=p_str.indexOf("#");if(poundIndex>0){return left(p_str,poundIndex)}else{return p_str}}function bindHistoryLinks(p_refEle){p_refEle.find("a[href][href!='#'][href!='about:blank'][target!='_top'][target!='_blank'][data-ddnobind!='1']").each(function(){var dobind=true;var hash=$(this).attr("href");var scriptIndex=hash.indexOf("javascript:");var mailtoIndex=hash.indexOf("mailto:");if(scriptIndex!=-1||mailtoIndex!=-1||hash==""){dobind=false}else{var poundIndex=hash.indexOf("#");if(poundIndex==0){dobind=false}else if(poundIndex>0){}}if(hash.indexOf(document.domain)>-1||hash.indexOf(":")===-1){}else{dobind=false}if(dobind){$(this).attr("data-href",$(this).attr("href"));if(doCleanBoundLinks){$(this).removeAttr("href")}$(this).click(function(evt){evt.preventDefault();History.pushState(null,$(this).text(),stripHashFrag($(this).attr("data-href")));return false})}});if("standalone"in window.navigator&&window.navigator.standalone){p_refEle.find("a[target='_top']").each(function(){$(this).click(function(evt){var new_location=$(this).attr("href");if(new_location!=undefined&&new_location.substr(0,1)!="#"&&new_location!=""&&$(this).attr("data-method")==undefined){evt.preventDefault();window.location=new_location}})})}}function trim(sData){var sTrimmed=String(sData);sTrimmed=sTrimmed.replace(/(^[ |\t]+)|([ |\t]+$)/g,"");return sTrimmed}$(function(){bindHistoryLinks($(document))});function dd_redoBgWidths(){var bodyWithoutScrollWidth=$(window).width();if($("body").css("overflow-y")=="scroll"||$("body").attr("data-layout")=="mobile"){}else{bodyWithoutScrollWidth=bodyWithoutScrollWidth-dd_scrollbarWidth}$("#background_wrap, #background_wrap2, #fakebg").css("width",bodyWithoutScrollWidth)}function hexToRgb(hex){var result=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);return result?parseInt(result[1],16)+","+parseInt(result[2],16)+","+parseInt(result[3],16):"0,0,0"}(function($){$.fn.cssMap=function(map){var $element=this;$.each(map,function(property,value){if(value instanceof Array){for(var i=0,len=value.length;i<len;i++){$element.css(property,value[i])}}else{$element.css(property,value)}})}})(jQuery);var curBgLayer=2;function right(str,n){if(n<=0)return"";else if(n>String(str).length)return str;else{var iLen=String(str).length;return String(str).substring(iLen,iLen-n)}}function scrollbarWidth(){var $inner=jQuery('<div style="width: 100%; height:200px;">test</div>'),$outer=jQuery('<div style="width:200px;height:150px; position: absolute; top: 0; left: 0; visibility: hidden; overflow:hidden;"></div>').append($inner),inner=$inner[0],outer=$outer[0];jQuery("body").append(outer);var width1=inner.offsetWidth;$outer.css("overflow","scroll");var width2=outer.clientWidth;$outer.remove();return width1-width2}this.imagePreview=function(){$("div.preview").hover(function(e){e.stopPropagation();e.preventDefault();$("#dd_p_imgpreview").remove();this.t=this.title;this.title="";var c=this.t!=""?"<br/>"+this.t:"";$("body").append("<div id='dd_p_imgpreview'><img style='max-width:300px;' src='"+$(this).attr("data-href")+"' alt='Image preview' />"+c+"<span style='float:right;'><a class='dd_close' href='#' onclick='closePic();return false;' style='font-size:10pt;'></a></span></div>");$("#dd_p_imgpreview").position({of:$(this),my:"left-1 center-1",at:"right center",collision:"none none"});$("#dd_p_imgpreview").stop().fadeIn("fast")},function(){this.title=this.t;$("#dd_p_imgpreview").stop().fadeOut("fast")});$("div.preview").click(function(e){$("#dd_p_imgpreview").remove();this.t=this.title;this.title="";var c=this.t!=""?"<br/>"+this.t:"";$("body").append("<div id='dd_p_imgpreview'><img style='max-width:300px;' src='"+$(this).attr("data-href")+"' alt='Image preview' />"+c+"<span style='float:right;'><a class='dd_close' href='#' onclick='closePic();return false;' style='font-size:10pt;'></a></span></div>");$("#dd_p_imgpreview").position({of:$(this),my:"left-1 center-1",at:"right center",collision:"none none"});$("#dd_p_imgpreview").stop().fadeIn("fast");return false});return false};function oneSignalUpdate(p_theosid){if(typeof p_theosid!=="undefined"&&p_theosid&&p_theosid!=null&&p_theosid!=""&&p_theosid.length>2){$.ajax({method:"POST",url:"/oneSignalUpdate.xsp",data:{onesignalid:p_theosid}})}else{return false}}function oneSignalDecline(p_notificationPromptDelay,p_msg){$.ajax({method:"POST",url:"/oneSignalUpdate.xsp?nothanks="+p_notificationPromptDelay+"&msg="+p_msg.replace(/ /g,"_")})}var base_domain=window.location.hostname;var STRAIGHT_TO_DRIVING_ESTIMATE=1.4;var AVG_DRIVING_SPEED=25;var TRAVEL_TIME_UNKNOWN=12;var assocObj={};var em=14;for(var i=0;i<assocData.length;i++){if(base_domain==assocData[i].site){assocObj[base_domain]=assocData[i].data;break}}Array.prototype.unique=function(){return this.filter(function(value,index,self){return self.indexOf(value)===index})};function checkRedir(p_zip,p_extraParams){if(assocObj[base_domain]){var sistersites=assocObj[base_domain].sistersites;for(var i=0;i<sistersites.length;i++){for(var j=0;j<assocData.length;j++){if(assocData[j].site==sistersites[i]){if(assocData[j].data.zips.indexOf(p_zip)!=-1){var redirTarget="https://"+assocData[j].site+"/restaurants?collapsable=1&formZipCode="+p_zip;if(typeof p_extraParams!=="undefined"){for(var param in p_extraParams){if(param==="unique"){continue}redirTarget=redirTarget+"&"+param+"="+p_extraParams[param]}}window.location.replace(redirTarget);return true}break}}}}return false}var getUrlParameter=function getUrlParameter(sParam){var sPageURL=decodeURIComponent(window.location.search.substring(1)),sURLVariables=sPageURL.split("&"),sParameterName,i;for(i=0;i<sURLVariables.length;i++){sParameterName=sURLVariables[i].split("=");if(sParameterName[0]===sParam){return sParameterName[1]===undefined?true:sParameterName[1]}}};function getTimeDialogStr(p_vendorID,p_isForTakeout){var title="Deliver Later:";if(p_isForTakeout=="1"){title="Pickup Time:"}var innerStr=getTimeStr(p_vendorID,p_isForTakeout);var buttonStr="<button name='button1' id='button1' ng-click='closeThisDialog()' type='button' class='dd_button button-default'>Cancel</button>";return createDialog(title,innerStr,buttonStr)}function getTimeStr(p_vendorID,p_isForTakeout){var str="";
1if(typeof p_isForTakeout!=="undefined"&&p_isForTakeout=="1"){str+="<div data-time-slot-picker on-time-chosen='goVendorTarget(arg1);' data-watchedobj='{{root.curParams}}' data-querystr='gotoMenuNext=1&formActionType=showTakeoutTimeRanges"}else{str+="<div data-time-slot-picker on-time-chosen='goVendorTarget(arg1);' data-watchedobj='{{root.curParams}}' data-querystr='gotoMenuNext=1&formActionType=showDeliveryTimeRanges"}if(p_vendorID){str+="×ForVendorID="+p_vendorID}str+="'></div>";return str}function createDialog(p_title,p_innerStr,p_buttonStr){var str="";str+="<div class='popup-head'>"+p_title+"</div><div id='dd_options_scroll' class='dd_dialog_outer popup-body'>";str+=p_innerStr;str+="</div><div class='popup-buttons'>"+p_buttonStr+"</div>";return str}function distance(p_frlat,p_frlon,p_tolat,p_tolon){var theta=p_frlon-p_tolon;var dist=Math.sin(deg2rad(p_frlat))*Math.sin(deg2rad(p_tolat))+Math.cos(deg2rad(p_frlat))*Math.cos(deg2rad(p_tolat))*Math.cos(deg2rad(theta));dist=Math.acos(dist);dist=rad2deg(dist);dist=dist*60*1.1515;return dist}function deg2rad(deg){return deg*Math.PI/180}function rad2deg(rad){return rad*180/Math.PI}function getErrMsg(p_jsonErr){var errorDescription="";var errTitle="";var popHead='<div class="popup-head">';var popTail='</div><div class="popup-buttons"><button name="button1" id="button1" ng-click="closeThisDialog()" type="button" class="dd_button button-default">Cancel</button></div>';if(p_jsonErr.errMsgID){switch(p_jsonErr.errMsgID){case 1:errorDescription+="Pick-up from "+p_jsonErr.vendorName+" is not available at this moment.<br/><a href ng-click=\"goHomeTarget('gotoMenuNext=1&formActionType=showTakeoutTimeRanges×ForVendorID="+p_jsonErr.vendorID+"');\">Schedule a pick-up time (Soonest: "+p_jsonErr.soonestTakeoutAdvance+")</a>";break;case 2:errorDescription+="Pick-up from "+p_jsonErr.vendorName+" is not available at this moment.<br/>The next available time you can return to place a "+p_jsonErr.vendorName+" pick-up order is "+p_jsonErr.soonestTakeoutImmediate;break;case 3:errorDescription+="Pick-up from "+p_jsonErr.vendorName+" is not available "+p_jsonErr.prettyDate+".<br/><a href ng-click=\"goHomeTarget('gotoMenuNext=1&formActionType=showTakeoutTimeRanges×ForVendorID="+p_jsonErr.vendorID+"');\">Schedule a different pick-up time (Soonest: "+p_jsonErr.soonestTakeoutAdvance+")</a><br/><a href ng-click=\"goVendorTarget('refreshLeft=1&resetTargetTime=1');\">I want to pick-up ASAP.</a>";break;case 4:errorDescription+="Pick-up from "+p_jsonErr.vendorName+" is not available "+p_jsonErr.prettyDate+".<br/><a href ng-click=\"goHomeTarget('gotoMenuNext=1&formActionType=showTakeoutTimeRanges×ForVendorID="+p_jsonErr.vendorID+"');\">Schedule a different pick-up time (Soonest: "+p_jsonErr.soonestTakeoutAdvance+")</a>";break;case 5:errorDescription+=p_jsonErr.vendorName+" doesn't offer advance pick-up orders.<br/><a href ng-click=\"goVendorTarget('refreshLeft=1&resetTargetTime=1');\">I want to pick-up ASAP.</a>";break;case 7:errorDescription+=p_jsonErr.vendorName+" doesn't offer advance pick-up orders.<br/>The next available time you can return to place a "+p_jsonErr.vendorName+" pick-up order is "+p_jsonErr.soonestTakeoutImmediate;break;case 8:errorDescription+=p_jsonErr.vendorName+" Pick-up orders must be scheduled in advance.<br/><a href ng-click=\"goHomeTarget('gotoMenuNext=1&formActionType=showTakeoutTimeRanges×ForVendorID="+p_jsonErr.vendorID+"');\">Schedule a pick-up time (Soonest: "+p_jsonErr.soonestTakeoutAdvance+")</a>";break;case 9:errorDescription+="Sorry, "+p_jsonErr.vendorName+" does not offer pick-up orders.";break;case 10:errorDescription+="Sorry, "+p_jsonErr.vendorName+" no longer offers pick-up ordering.";break;case 11:errorDescription+="Delivery from "+p_jsonErr.vendorName+" is not available at this moment.<br/>Schedule a delivery time (Soonest: "+p_jsonErr.soonestDeliveryAdvance+")"+getTimeStr(p_jsonErr.vendorID);break;case 12:errorDescription+=p_jsonErr.vendorName+" delivers to your area, but not at this moment.<br/>Since "+p_jsonErr.vendorName+" doesn't allow advance ordering, so the soonest you could return to our site and place a "+p_jsonErr.vendorName+" delivery order is "+p_jsonErr.soonestDeliveryImmediate;break;case 13:errorDescription+="Delivery from "+p_jsonErr.vendorName+" is not available at this moment.<br/>The next possible time you could return to this site and place a "+p_jsonErr.vendorName+" delivery order is "+p_jsonErr.soonestDeliveryImmediate;break;case 14:errorDescription+=p_jsonErr.vendorName+" delivery orders to your area must be scheduled in advance.<br/>Schedule a delivery time (Soonest: "+p_jsonErr.soonestDeliveryAdvance+")"+getTimeStr(p_jsonErr.vendorID);break;case 15:errorDescription+="Sorry, "+p_jsonErr.vendorName+" doesn't deliver to your area, but the restaurant list has been updated with those that do.";break;case 17:errorDescription+="Delivery from "+p_jsonErr.vendorName+" is not available "+p_jsonErr.prettyDate+".<br/>Schedule a different delivery time (Soonest: "+p_jsonErr.soonestDeliveryAdvance+")"+getTimeStr(p_jsonErr.vendorID)+"<br/><a href ng-click=\"goVendorTarget('refreshLeft=1&resetTargetTime=1');\">I want this order delivered ASAP.</a>";break;case 18:errorDescription+="Delivery from "+p_jsonErr.vendorName+" is not available "+p_jsonErr.prettyDate+".<br/>Schedule a different delivery time (Soonest: "+p_jsonErr.soonestDeliveryAdvance+")"+getTimeStr(p_jsonErr.vendorID);break;case 19:errorDescription+="Advance ordering from "+p_jsonErr.vendorName+" is not available to your delivery area.<br/><a href ng-click=\"goVendorTarget('refreshLeft=1&resetTargetTime=1');\">I want this order delivered ASAP.</a>";break;case 20:errorDescription+="Advance ordering from "+p_jsonErr.vendorName+" is not available to your delivery area.<br/>The next possible time you could return to this site and place a "+p_jsonErr.vendorName+" delivery order is "+p_jsonErr.soonestDeliveryImmediate;break;case 21:errorDescription+=p_jsonErr.vendorName+" doesn't offer advance delivery orders.<br/><a href ng-click=\"goVendorTarget('refreshLeft=1&resetTargetTime=1');\">I want this order delivered ASAP.</a>";break;case 22:errorDescription+=p_jsonErr.vendorName+" doesn't offer advance delivery orders.<br/>The next possible time you could return to this site and place a "+p_jsonErr.vendorName+" delivery order is "+p_jsonErr.soonestDeliveryImmediate;break;case 23:errorDescription+=p_jsonErr.vendorName+" Delivery orders must be scheduled in advance.<br/>Schedule a delivery time (Soonest: "+p_jsonErr.soonestDeliveryAdvance+")"+getTimeStr(p_jsonErr.vendorID);break;case 24:errorDescription+="Sorry, "+p_jsonErr.vendorName+" doesn't offer delivery.";break;case 25:errTitle="Enter your delivery address below to begin ordering:";popHead+=errTitle;errorDescription+='<div class="dd_bs" style="padding-left: 10px;padding-right: 10px;"><div><div class="dd_order-details"><div class="form-group form-group--customer-search__location"><div class="customer-search__location dropdown"><input placeholder="Deliver To This Street Address" name="address1" id="address1" style="text-transform:capitalize;" autocomplete="off" type="text" class="form-control input-lg" on-place-updated="onPlaceUpdatedInModal(place)" data-g-places-autocomplete="true" options="root.autocompleteOptions" ng-model="root.autoCompletePlace"></input><div class="dd_address_spinner" class="ng-cloak" ng-if="root.loadingAddress"><div class="dd_spinner_loader"><svg class="dd_spinner_circular"><circle class="dd_spinner_path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/></svg></div></div></div></div></div></div></div>';popTail='</div><div class="popup-buttons">
1<button name="button1" id="button1" ng-click="closeThisDialog()" type="button" class="dd_button button-default">Cancel</button><button ng-click="goWithFullRawInModal(root.autoCompletePlace)" type="button" class="dd_button button-positive" >Go</button></div>';break;case 27:errorDescription+='Available Ordering Times for this menu have not yet been configured. Please check back soon.</td></tr><tr><td colspan="2" align="center"><input type="button" value="Ok" ONCLICK=\'\' id="button1" name="button1"/>';break}if(p_jsonErr.errMsgID>=1001&&p_jsonErr.errMsgID<=1040){errorDescription+=p_jsonErr.errorDescription}}else{errorDescription=p_jsonErr.errorDescription}popHead+='</div><div id="dd_options_scroll" class="dd_dialog_outer popup-body">';return{errorDescription:popHead+errorDescription+popTail,errTitle:errTitle}}var app=angular.module("WisdomApp",["google.places","ngAnimate","ui.bootstrap","ngSanitize","ngDialog","ngTouch","ngCookies","Firestitch.angular-counter","angular-carousel","flow","masonry"]);app.config(function($locationProvider){$locationProvider.html5Mode({enabled:true,requireBase:false})}).config(function(flowFactoryProvider){flowFactoryProvider.defaults={uploadMethod:"POST",testMethod:"POST",testChunks:false,permanentErrors:[404,500,501],successStatuses:[200,201,202,204],chunkRetryInterval:3e3,simultaneousUploads:1,chunkSize:1e7,allowDuplicateUploads:true};flowFactoryProvider.on("catchAll",function(event){})});app.directive("ddOptionsImage",["$compile",function(){return{restrict:"A",scope:{id:"="},template:'<img class="modal--edit-item__ghost-image" ng-src="https://'+base_domain+'/food/i{{id}}sl.jpg"><div class="modal--edit-item__visible-image" ng-style="{\'background-image\': \'url(https://'+base_domain+"/food/i' + {{id}} + 'sl.jpg)'}\"><i class=\"icon ion-search\"></i></div>",link:function($scope,$element,$attrs){var $window=angular.element(window);var $ghostImg=$element.find(".modal--edit-item__ghost-image");var $img=$element.find(".modal--edit-item__visible-image");var $imgWidth=0;var $imgHeight=0;$ghostImg.bind("load",function(){var isExpanded=false;$imgWidth=this.naturalWidth;$imgHeight=this.naturalHeight;$imgRatio=$imgHeight/$imgWidth;$ghostImg.hide();if($imgHeight>$imgWidth){$img.css({height:$window.height()/3}).addClass("vertical")}else{$img.css({height:$element.parents(".ngdialog").height()*.5}).addClass("horizontal")}$img.on("click",function(){if($imgHeight>$imgWidth){if(!isExpanded){$img.css({height:$element.parents(".ngdialog").width()*$imgRatio}).addClass("is-expanded");isExpanded=true}else{$img.css({height:$window.height()/3}).removeClass("is-expanded");isExpanded=false}}})})}}}]);app.directive("ddCarouselSwipeHandler",function(){return{restrict:"A",scope:{ddCarouselClickHandler:"&"},link:function($scope,$element,$attrs){$element.on("mousedown",function(){$(this).data("initcoords",{x:event.x,y:event.y})}).on("click",function(){var initCoords=$(this).data("initcoords")||{x:0,y:0};if(event.x===initCoords.x&&event.y===initCoords.y){$scope.ddCarouselClickHandler();$(this).data("initcoords",{x:-1,y:-1})}})}}});app.directive("scrollOnClick",function(){return{restrict:"A",link:function(scope,$elm,attrs){var idToScroll=attrs.href;var offsetElm=attrs.offsetElm;$elm.on("click",function(){var $target;if(idToScroll){$target=$(idToScroll)}else{$target=$elm}if(offsetElm){var offsetVal=$target.offset().top-$(offsetElm).outerHeight();$("body").animate({scrollTop:offsetVal},"slow")}else{$("body").animate({scrollTop:$target.offset().top},"slow")}})}}});app.directive("kcdRecompile",function($compile,$parse){"use strict";return{scope:true,compile:function(el){var template=el.html();return function link(scope,$el,attrs){scope.$parent.$watch(attrs.kcdRecompile,function(_new,_old){var useBoolean=attrs.hasOwnProperty("useBoolean");if(useBoolean&&(!_new||_new==="false")||!useBoolean&&(!_new||_new===_old)){return}removeChildrenWatchers($el);if(useBoolean){$parse(attrs.kcdRecompile).assign(scope.$parent,false)}var newEl=$compile(template)(scope.$parent.$new());$el.html(newEl)})}}};function removeChildrenWatchers(element){angular.forEach(element.children(),function(childElement){removeAllWatchers(angular.element(childElement))})}function removeAllWatchers(element){if(element.data().hasOwnProperty("$scope")){element.data().$scope.$$watchers=[]}removeChildrenWatchers(element)}});app.directive("topDeliveryWidget",["$compile","$timeout",TopDeliveryWidget]);
1app.directive("zipControls",["$compile",ZipControls]);app.directive("zipDropDown",["$compile","$timeout",ZipDropDown]);app.directive("timeSlotPicker",["$compile","$parse",TimeSlotPicker]);app.directive("numbersOnly",function(){return{require:"ngModel",link:function(scope,element,attrs,modelCtrl){modelCtrl.$parsers.push(function(inputValue){if(inputValue==undefined)return"";var transformedInput=inputValue.replace(/[^0-9]/g,"");if(transformedInput!=inputValue){modelCtrl.$setViewValue(transformedInput);modelCtrl.$render()}return transformedInput})}}});app.service("loadSomethingService",function($http){this.loadSomething=function(p_url,p_data){return $http({method:"POST",url:p_url,data:p_data,headers:{"Content-Type":"application/x-www-form-urlencoded",accept:"text/html, */*; q=0.01"}})}});app.controller("PartnerWithUsCtrl",function($q,$scope,loadSomethingService,$timeout){var vm=this;vm.formData={};vm.formMode="buy";vm.responseData={};vm.submit=function(){if(nz(vm.formData.req_vendorname)==""){alertify.alert("Please enter your restaurant's name.");return}else if(nz(vm.formData.req_vendoraddress)==""){alertify.alert("Please enter your restaurant's address.");return}else if(nz(vm.formData.req_vendorcity)==""){alertify.alert("Please enter your restaurant's city.");return}else if(nz(vm.formData.req_vendorstate)==""){alertify.alert("Please enter your restaurant's state.");return}else if(nz(vm.formData.req_vendorzip)==""){alertify.alert("Please enter your restaurant's zip code.");return}else if(nz(vm.formData.req_vendorPhoneAC)==""||nz(vm.formData.req_vendorPhoneF3)==""||nz(vm.formData.req_vendorPhoneL4)==""){alertify.alert("Please enter your restaurant's full phone number.");return}else if(nz(vm.formData.req_firstName)==""){alertify.alert("Please enter your first name.");return}else if(nz(vm.formData.req_lastName)==""){alertify.alert("Please enter your last name.");return}var trimmedEmail=nz(vm.formData.req_vendoremail).replace(/^\s+/,"").replace(/\s+$/,"");var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(filter.test(trimmedEmail)){}else{alertify.alert("Please enter a valid email address.");return false}var postData=$.param(vm.formData);loadSomethingService.loadSomething("/pVendorSignup.xsl",postData).then(function(data){vm.responseData=data.data.response;vm.formMode="success";$("html, body").stop().animate({scrollTop:0},300)},function(data){if(data.status!=401){try{alertify.alert(data.data.response.description)}catch(e){alertify.alert("an unknown error occured")}}})}});app.controller("modalDemo",function($q,$scope,$rootScope,loadSomethingService,$timeout,ngDialog,$cookies){var vm=this;vm.curVendorID="";vm.autoCompletePlace=null;vm.tmpCompletePlace=null;vm.myPlaces=[];vm.logSomething=function(p_val){lg("logSomething:"+p_val)};vm.anyCuisineLabel="Cuisine: Any";function reLabelCuisines(){for(var i=0;i<vm.cuisineList.length;i++){vm.cuisineList[i].text=vm.cuisineList[i].value;if(vm.cuisineList[i].value==vm.cuisineFilter){vm.cuisineList[i].text="Cuisine: "+vm.cuisineFilter}}if(vm.cuisineFilter==""){vm.anyCuisineLabel="Cuisine: Any"}else{vm.anyCuisineLabel="Any Cuisine"}}vm.cuisineFilterUpdate=function(){reLabelCuisines();vm.updateSearchFilter()};vm.leftVisible=false;vm.isPinned=false;vm.menuTabData={};vm.hideRestaurantsUntilZip=false;if(base_domain=="www.temprds.com"){}var defaultSort=["sortpublic","sortName"];vm.sortVendorsBy=defaultSort;vm.selSortVal=vm.sortVendorsBy[0];vm.continueSorting=function(p_sortField){vm.sortVendorsBy=p_sortField;vm.updateList()};vm.searchString="";vm.searchStringClean="";vm.searchStringEscaped="";vm.updateSearchFilter=function(){$(".popover").remove();vm.searchStringClean=vm.searchString.replace(/[^a-z0-9+]+/gi,"");vm.searchStringEscaped=escape(vm.searchString);if(/^[0-9]+$/.test(vm.searchStringClean)||vm.searchStringClean==""){vm.searchStringClean="SearchStr"}vm.reposArrow(vm.curVendorID,false);vm.updateList()};vm.resetSearch=function(){vm.searchString="";vm.cuisineFilter="";reLabelCuisines();vm.updateList()};vm.updateList=function(){vm.data.refreshVendorList=true;if(vm.curVendorID!=""){$timeout(function(){vm.reposArrow(vm.curVendorID,false);$("#li"+vm.curVendorID).addClass("active_restaurant")})}};vm.doSortVendorsBy=function(p_sortField,p_oldValue){var oldValue=false;if(typeof p_oldValue!=="undefined"){oldValue=p_oldValue}if(vm.sortVendorsBy[0]==p_sortField){vm.continueSorting(defaultSort);return}var effSort=[p_sortField,"estminutes"];if(p_sortField=="deliveryfee"||p_sortField=="minimum"){$("#div_dd_restlist").addClass("showfees")}if(vm.curParams.sessCustLat==0&&(p_sortField=="estminutes"||p_sortField=="deliveryfee"||p_sortField=="distance")){var prettySortName="";if(p_sortField=="estminutes"){prettySortName="Fastest Delivery to You"}else if(p_sortField=="deliveryfee"){prettySortName="Delivery Fee"}else if(p_sortField=="distance"){prettySortName="Distance to You"}
1var msgStr="We need to know your address to sort by "+prettySortName+":";var dialogStr='<div class="popup-head">'+msgStr+'</div><div id="dd_options_scroll" class="dd_dialog_outer popup-body"><div class="dd_bs" style="padding-left: 10px;padding-right: 10px;"><div><div class="dd_order-details"><div class="form-group form-group--customer-search__location"><div class="customer-search__location dropdown"><input placeholder="Deliver To This Street Address" name="address1" id="address1" style="text-transform:capitalize;" autocomplete="off" type="text" class="form-control input-lg" on-place-updated="onPlaceUpdatedInModal(place)" data-g-places-autocomplete="true" options="root.autocompleteOptions" ng-model="root.autoCompletePlace"></input><div class="dd_address_spinner" class="ng-cloak" ng-if="root.loadingAddress"><div class="dd_spinner_loader"><svg class="dd_spinner_circular"><circle class="dd_spinner_path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/></svg></div></div></div></div></div></div></div></div><div class="popup-buttons"><button name="button1" id="button1" ng-click="closeThisDialog()" type="button" class="dd_button button-default">Cancel</button><button ng-click="goWithFullRawInModal(root.autoCompletePlace)" type="button" class="dd_button button-positive" >Go</button></div>';if(!vm.hasgonebig&&!vm.isPinned&&window.location.pathname!="/restaurants"){vm.setPinPref(true);vm.pinleft(event)}var myPopup2=ngDialog.open({preserveFocus:false,template:dialogStr,plain:true,className:"ngdialog-theme-default ngdialog-theme-custom ngdialog-no-shadows",showClose:false,scope:$scope,controller:function Ctrl(loadSomethingService){$scope.onPlaceUpdatedInModal=function(p_newPlace){$scope.root.setAddress(p_newPlace).then(function(data){myPopup2.close("success");vm.continueSorting(effSort)},function(data){myPopup2.close();alertify.alert(data.message)})};$scope.goWithFullRawInModal=function(p_newPlace){if(p_newPlace==null||p_newPlace==""){alertify.log("Please type your delivery address first.");return false}$scope.root.goWithFullRaw_main(p_newPlace).then(function(data){myPopup2.close("success");vm.continueSorting(effSort)},function(data){if(data.code==1){alert(1);alertify.alert(data.message)}else{myPopup2.close();alertify.alert(data.message)}})}}});myPopup2.closePromise.then(function(data){if(data.value!="success"&&oldValue){vm.selSortVal=oldValue}})}else{vm.continueSorting(effSort)}};vm.menuTabData.vendorsObj={};vm.hasgonebig=false;vm.orderdata={order:{}};var defaultPlace;if(nz(top.rdsLat)!=""&&nz(top.rdsLon)!=""){defaultPlace=new google.maps.LatLng(top.rdsLat,top.rdsLon);
1vm.autocompleteOptions={location:defaultPlace,radius:500,componentRestrictions:{country:"us"}}}else{vm.autocompleteOptions={componentRestrictions:{country:"us"}}}vm.loadOrderBox=function(){loadSomethingService.loadSomething("//"+base_domain+"/orderBox_app_json.xsl").then(function(data){vm.orderdata.order=data.data;if(vm.orderdata.order.itemcount>0){$("body").addClass("hasItems")}else{$("body").removeClass("hasItems")}},function(data){if(data.status!=401){alertify.log("error loading order.")}})};vm.gobig=function(e){vm.doShowLogos();lg("gobig");vm.hasgonebig=true;$("body").addClass("hidescroll");e.stopPropagation();e.preventDefault()};vm.gosmall=function(e){if($("body").hasClass("dd_homepage")||$("body").hasClass("unpinned")){if(vm.leftVisible==true){vm.leftVisible=false}}else{if(vm.leftVisible==false){vm.leftVisible=true}}if($("#div_dd_restlist").width()>250){$("#div_curArrow").addClass("tempInvis");$("#div_expandArrow").addClass("tempInvis");$("#div_dd_restlist").off(".dd").on(transitionEvent,function(e){lg(e.originalEvent.propertyName);if(e.originalEvent.propertyName=="width"){$("#div_dd_restlist").off(".dd");$("#li"+vm.curVendorID).off(".dd");if(visibleY(document.getElementById("div_scrollable2"),document.getElementById("li"+vm.curVendorID))==false){$(".dd_scrollable2").scrollTo($("#li"+vm.curVendorID),{duration:20,offsetTop:"50"})}vm.reposArrow(vm.curVendorID,true);$("#div_curArrow").removeClass("tempInvis");$("#div_expandArrow").removeClass("tempInvis")}})}else{$("#div_curArrow").removeClass("tempInvis");$("#div_expandArrow").removeClass("tempInvis");vm.reposArrow(vm.curVendorID,true)}vm.hasgonebig=false;$("body").removeClass("hidescroll");e.stopPropagation();e.preventDefault()};vm.restClicked=function(e,p_vendorID){$("#img"+p_vendorID).popover("destroy").removeClass("popped");$(".popover").remove();vm.changeActiveRestaurant(p_vendorID);if(vm.prefPinned){vm.pinleft(e)}else{vm.leftVisible=false}vm.gosmall(e)};vm.setPinPref=function(p_val){vm.prefPinned=p_val};vm.filterClosedVendors=function(vendor){return vendor.isIncluded!=0&&vendor.isOpen!=1};vm.filterAvailVendors=function(vendor){return vendor.isIncluded!=0&&vendor.isOpen==1};function whichTransitionEvent(){var t,el=document.createElement("fakeelement");var transitions={transition:"transitionend.dd",OTransition:"oTransitionEnd.dd",MozTransition:"transitionend.dd",WebkitTransition:"webkitTransitionEnd.dd"};for(t in transitions){if(el.style[t]!==undefined){return transitions[t]}}}var transitionEvent=whichTransitionEvent();function gray(imgObj){var canvas=document.createElement("canvas");var canvasContext=canvas.getContext("2d");var imgW=imgObj.naturalWidth;var imgH=imgObj.naturalHeight;canvas.width=imgW;canvas.height=imgH;canvasContext.drawImage(imgObj,0,0);var imgPixels=canvasContext.getImageData(0,0,imgW,imgH);for(var y=0;y<imgPixels.height;y++){for(var x=0;x<imgPixels.width;x++){var i=y*4*imgPixels.width+x*4;var avg=(imgPixels.data[i]+imgPixels.data[i+1]+imgPixels.data[i+2])/3;imgPixels.data[i]=avg;imgPixels.data[i+1]=avg;imgPixels.data[i+2]=avg}}canvasContext.putImageData(imgPixels,0,0,0,0,imgPixels.width,imgPixels.height);return canvas.toDataURL()}vm.onPlaceUpdated=function(p_newPlace,p_preventAutoBig){vm.setAddress(p_newPlace).then(function(data){if(data.itemsInCart==0){if(typeof p_preventAutoBig!=="undefined"&&p_preventAutoBig==true){}else{vm.maybeGoAutoBig(window.event)}}},function(data){var xtraMessage="";if(data.code==2){}alertify.alert(data.message+xtraMessage)})};vm.goWithFullRaw=function(p_str){vm.goWithFullRaw_main(p_str).then(function(data){vm.maybeGoAutoBig(window.event)},function(data){var xtraMessage="";if(data.code==2){}alertify.alert(data.message+xtraMessage)})};vm.goWithFullRaw_main=function(p_str){var deferred=$q.defer();var theZip=p_str.slice(-5).replace(/[^0-9]/g,"");if(theZip.length<5){deferred.reject({code:1,message:"Please provide a valid zip code at the end of the address, or choose from the autocomplete."})}else{var streetStr=p_str.slice(0,p_str.length-5).trim();if(streetStr.slice(-1)==","){streetStr=streetStr.slice(0,streetStr.length-1).trim()}
1var reqParams={};var queryStr="formZipCode="+theZip;if(streetStr!=""){queryStr+="&newADDR="+escape(streetStr);reqParams.newADDR=escape(streetStr)}queryStr+="&refreshLeft=1";if(checkRedir(theZip,reqParams)){return false}vm.dd_getZipParameter(queryStr).then(function(data){if(data.action=="displayNotFoundError"){deferred.reject({zipCode:theZip,code:2,message:"Sorry, we currently dont deliver to "+p_str});vm.autoCompletePlace=null}else{vm.initCurParams(data,false);deferred.resolve(data)}},function(data){deferred.reject({code:3,message:"An error occured setting your address"})})}return deferred.promise};vm.setAddress=function(p_newPlace){var deferred=$q.defer();var zipCode=get_addr_component(p_newPlace.address_components,"postal_code");if(!zipCode){vm.autoCompletePlace=null;deferred.reject({code:1,message:"You must enter a more specific address that includes a street number and zipcode."})}else{var place_id=p_newPlace.place_id;var city=nz(get_addr_component(p_newPlace.address_components,"locality"));if(city==""||city==false){city=get_addr_component(p_newPlace.address_components,"sublocality")}if(city==false){city=""}var addr=get_addr_component(p_newPlace.address_components,"street_number");var street=get_addr_component(p_newPlace.address_components,"route");var streetStr="";if(addr){var numberparts=addr.split("-");if(numberparts.length==2){var typedAddressParts=nz(vm.autoCompletePlace).trim().split(" ");if(typedAddressParts.length>0){var typedAddressNumber=typedAddressParts[0];if(typedAddressNumber.split("-").length==1){for(var i=0;i<numberparts.length;i++){if(numberparts[i]==typedAddressNumber){addr=typedAddressNumber}}}}}streetStr+=addr}else{var typedAddressParts=nz(vm.autoCompletePlace).trim().split(" ");if(typedAddressParts.length>0){var typedAddressNumber=typedAddressParts[0];var typedAddressNumberLen=typedAddressNumber.length;try{if(typedAddressNumber!=street.substring(0,typedAddressNumberLen)){streetStr+=typedAddressNumber}}catch(e){}}}if(street){streetStr+=" "+street}streetStr=streetStr.trim();var reqParams=[];var queryStr="formZipCode="+zipCode;if(streetStr!=""){queryStr+="&newADDR="+escape(streetStr);reqParams.newADDR=escape(streetStr)}if(addr&&place_id){queryStr+="&place_id="+escape(place_id.trim());reqParams.place_id=escape(place_id.trim())}queryStr+="&newCity="+escape(city.trim());reqParams.newCity=escape(city.trim());if(checkRedir(zipCode,reqParams)){return false}queryStr+="&refreshLeft=1";vm.loadingAddress=true;var maybebad_address=p_newPlace.formatted_address;vm.dd_getZipParameter(queryStr).then(function(data){vm.loadingAddress=false;if(data.action=="displayNotFoundError"){deferred.reject({zipCode:zipCode,code:2,message:"Sorry, we currently dont deliver to "+maybebad_address.replace(/, USA/g,"").replace(/, United States/g,"")+"."});vm.autoCompletePlace=null}else{vm.initCurParams(data,false);deferred.resolve(data)}},function(data){vm.loadingAddress=false;deferred.reject({code:2,message:"An error occured setting your address."})})}return deferred.promise};vm.maybeGoAutoBig=function(p_event){if(vm.curParams.onlyonevendorid>0){History.pushState(null,"Menu",stripHashFrag(vm.curParams.specificVendorSeoLink))}else{if(vm.curParams.isForTakeout==0&&vm.curParams.canOrderDeliveryNowImmediate==1){History.pushState(null,"Restaurants","/restaurants")}}};vm.goWithHalfRaw=function(p_str){var streetStr="";var theZip=p_str.slice(-5).replace(/[^0-9]/g,"");if(theZip.length==5){streetStr=p_str.slice(0,p_str.length-5).trim();if(streetStr.slice(-1)==","){streetStr=streetStr.slice(0,streetStr.length-1).trim()}}else{theZip=vm.curParams.zipCode;streetStr=p_str.trim()}if(streetStr==""){alertify.alert("Please provide your street address.")}else{var queryStr="formZipCode="+theZip;if(streetStr!=""){queryStr+="&newADDR="+streetStr}queryStr+="&refreshLeft=1";vm.dd_getZipParameter(queryStr).then(function(data){if(data.action=="displayNotFoundError"){alertify.alert("Sorry, we currently dont deliver to "+p_str+".");vm.autoCompletePlace=null}else{vm.initCurParams(data,false);vm.maybeGoAutoBig(window.event)}},function(data){alertify.alert("An error occured setting your address")})}};vm.justSetZip=function(p_zip){if(checkRedir(p_zip)){return false}vm.setZipNoCheckRedir(p_zip)};vm.setZipNoCheckRedir=function(p_zip,p_extraParams){var queryStr="formZipCode="+p_zip+"&refreshLeft=1";if(typeof p_extraParams!=="undefined"){for(var param in p_extraParams){if(param==="unique"){continue}queryStr=queryStr+"&"+param+"="+p_extraParams[param]}}vm.dd_getZipParameter(queryStr).then(function(data){if(data.action=="displayNotFoundError"){alertify.alert("Sorry, we currently dont deliver to "+p_zip)}else{vm.initCurParams(data,false);vm.maybeGoAutoBig(window.event)}},function(data){alertify.alert("An error occured setting your zip")})};function get_addr_component(p_addrObj,p_fieldName){var found=false;var components=p_addrObj;for(var i=0;i<components.length;i++){var possible_val=components[i].short_name;for(var j=0;j<components[i].types.length;j++){if(components[i].types[j]==p_fieldName){return possible_val}}}return false}vm.cuisineFilter="";vm.cuisineList=[];vm.randomList=[];vm.toggleCuisineFilter=function(p_cuisine){if(vm.cuisineFilter==p_cuisine){vm.cuisineFilter=""}else{vm.cuisineFilter=p_cuisine}reLabelCuisines()};vm.refreshRestaurants=function(p_reRandom){loadSomethingService.loadSomething("/left.json.xsl").then(function(data){vm.menuTabData.vendorsObj=data.data;vm.cuisineList=[];
1if(p_reRandom){vm.randomList=[]}var sortedUniqueArray=[];if(vm.menuTabData.vendorsObj.vendors){var minMinutes=0;var maxMinutes=0;var curCuisineExists=false;angular.forEach(vm.menuTabData.vendorsObj.vendors.vendor,function(vendor){if(vm.filterAvailVendors(vendor)){if(p_reRandom){vm.randomList.push({vendor:vendor,rank:.5-window.Math.random()})}if(vendor.cuisinetype!=null){if(vm.cuisineFilter==vendor.cuisinetype){curCuisineExists=true}sortedUniqueArray.push(vendor.cuisinetype)}}});sortedUniqueArray=sortedUniqueArray.unique();sortedUniqueArray=sortedUniqueArray.sort();for(var i=0;i<sortedUniqueArray.length;i++){vm.cuisineList.push({value:sortedUniqueArray[i],text:sortedUniqueArray[i]})}if(curCuisineExists==false&&vm.cuisineFilter!=""){vm.cuisineFilter=""}}vm.data.refreshVendorList=true;vm.data.refreshNowDelivering=true;if(!Modernizr.cssfilters&&Modernizr.inlinesvg&&Modernizr.svgfilters){$timeout(function(){lg("making gray images");$("#div_dd_restlist").find(".dd_grayimg").each(function(){var $thisImg=$(this);if($thisImg.css("filter")==="none"){try{$('<img src="'+gray($thisImg[0])+'">').on("load",function(){$(this).addClass("dd_grayimg_replaced").insertAfter($thisImg.removeClass("dd_grayimg").addClass("dd_grayimg_replaced_hover"))})}catch(e){}}})})}if(vm.curVendorID==""){$timeout(function(){var initialRest=nz($("#dd_direct_restaurant_id").attr("data-dd_vendorid"));if(initialRest!=""){vm.setActiveRestaurant(initialRest)}})}else{$timeout(function(){vm.setActiveRestaurant(vm.curVendorID)})}},function(data){if(data.status!=401){alertify.log("error loading restaurants.");lg("error loading restaurants")}})};vm.maybeAddPopover=function(p_event,p_vendorID,p_instanceid){$(p_event.target).closest("a").removeAttr("title");var p_vendor=false;if(vm.menuTabData.vendorsObj.vendors){for(var i=0;i<vm.menuTabData.vendorsObj.vendors.vendor.length;i++){if(vm.menuTabData.vendorsObj.vendors.vendor[i].vendorID==p_vendorID){p_vendor=vm.menuTabData.vendorsObj.vendors.vendor[i];break}}if(p_vendor){if($("body").hasClass("dd_is_iDevice")){return true}var eleID="#img"+p_vendor.vendorID;if(nz(p_instanceid)!=""){eleID=eleID+"_"+p_instanceid}var ele=$(eleID);if(ele.hasClass("popped")){if(ele.offset().left<0){ele.popover("destroy").removeClass("popped")}}else if(ele.offset().left<0){}else{$(".popover").remove();ele.addClass("popped");if(p_vendor.vendordescription!=null||p_vendor.bgphoto!="/menu-bar-grill-main-bg.jpg"){var popStr='<div class="popoverimg" style="background:url('+p_vendor.bgphoto+');background-size: cover;width: 372px;height: 200px;background-position: center center;"></div><div class="popovertext">';if(p_vendor.vendordescription!=null){popStr=popStr+p_vendor.vendordescription}popStr=popStr+"</div>";ele.popover({container:"body",html:true,content:popStr,title:p_vendor.vendorName+(p_vendor.bottomicontext?" "+p_vendor.bottomicontext:""),trigger:"hover",placement:"auto right"}).popover("show")}}}}};vm.maybeUpdateActiveRestaurant=function(){lg("maybeUpdateActiveRestaurant");return""};vm.changeActiveRestaurant=function(p_vendorID){if(p_vendorID!=vm.curVendorID){vm.curVendorID=p_vendorID;$(".active_restaurant").removeClass("active_restaurant");$("#li"+p_vendorID).addClass("active_restaurant")}};vm.setActiveRestaurant=function(p_vendorID,p_maybePin){vm.changeActiveRestaurant(p_vendorID);vm.reposArrow(p_vendorID,true);if(typeof p_maybePin!=="undefined"&&p_maybePin==true){if(vm.isPinned&&$("body").hasClass("unpinned")){$("body").removeClass("unpinned").addClass("pinned")}}};function findPosX(obj){var curleft=0;if(obj.offsetParent){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent}}else if(obj.x){curleft+=obj.x}return curleft}vm.showLogos=false;if(typeof window.dd_showLogos!=="undefined"&&dd_showLogos==true){if($(window).width()>640){vm.showLogos=2}else{vm.showLogos=1}}else if(typeof window.dd_showVendorLogos!=="undefined"&&dd_showVendorLogos==true){vm.showLogos=1}vm.dropDownClick=function($event){angular.element(document).triggerHandler("click")};vm.activeRestaurantID=0;vm.curHoverID=0;vm.reposArrow=function(p_vendorID,p_animate){p_animate=false;if($("#div_dd_restlist").hasClass("big")){return}var curEle=$("#li"+p_vendorID);$("#li"+vm.activeRestaurantID).off(".dd");
1vm.activeRestaurantID=p_vendorID;if(curEle.length==1){curEle.on({"mouseenter.dd mouseover.dd":function(){vm.curHoverID=p_vendorID},"mousemove.dd":function(){vm.curHoverID=p_vendorID},"mouseleave.dd mouseout.dd":function(){vm.curHoverID=0}});if(p_animate){if(findPosX(curEle.get(0))<20){$("#div_curArrow").addClass("animateArrow")}else{$("#div_curArrow").removeClass("animateArrow");return}}else{}var newHeight=(curEle.height()/em*1.82).toFixed(8)+"em";$("#div_curArrow").css("font-size",newHeight).css("line-height",curEle.height()+"px");var contEle=$("#expand_arrow_anchor");$("#div_curArrow").position({of:curEle,my:"left-1 center-1",at:"right center",collision:"none none"});$timeout(function(){if(vm.curHoverID==p_vendorID){}});if(curEle.hasClass("dd_is_closed")){$("#div_curArrow").addClass("dd_is_closed")}else{$("#div_curArrow").removeClass("dd_is_closed")}}else{$("#div_curArrow").removeAttr("style").css("left","-50px")}};vm.scrollArrow=function(p_vendorID){$("#div_curArrow").removeClass("animateArrow");vm.reposArrow(p_vendorID)};function visibleY(p,e){if(!e){return false}var z=p.getBoundingClientRect();var r=e.getBoundingClientRect();return(!e.style.opacity||e.style.opacity>0)&&e.style.display!=="none"&&e.style.visibility!=="hidden"&&!(r.top>z.bottom||r.bottom<z.top||r.left>z.right||r.right<z.left)}
1vm.alertSomething=function(){alert(8)};vm.testSomething=function(){lg("testSomething")};vm.prefPinned=true;vm.data={refreshVendorList:false,refreshNowDelivering:false};vm.pinleft=function(e){$("body").removeClass("unpinned").addClass("pinned");vm.isPinned=true;e.stopPropagation();e.preventDefault()};vm.unpinleft=function(e){$("body").addClass("unpinned").removeClass("pinned");vm.isPinned=false;vm.leftVisible=false;e.stopPropagation();e.preventDefault()};vm.close=function(){$("body").removeClass("hidescroll");vm.leftVisible=false};vm.showLeft=function(e){vm.doShowLogos();vm.leftVisible=true;e.stopPropagation()};vm.collapseNav=function(e){$(".navbar-collapse").collapse("hide");e.stopPropagation();e.preventDefault()};function _close(){$scope.$apply(function(){vm.close()})}function maybeInjectZips(){if(vm.curParams.zipOption){if(assocObj[base_domain]){var sistersites=assocObj[base_domain].sistersites;for(var i=0;i<sistersites.length;i++){for(var j=0;j<assocData.length;j++){if(assocData[j].site==sistersites[i]){injectPhantomZips(assocData[j].data.zips);break}}}}}}function injectPhantomZips(p_ziparray){for(var i=0;i<p_ziparray.length;i++){var exists=false;for(var k=0;k<vm.curParams.zipOption.length;k++){if(vm.curParams.zipOption[k].zip==p_ziparray[i]){exists=true;break}}if(exists==false){vm.curParams.zipOption.push({zip:p_ziparray[i]})}}vm.curParams.zipOption.sort(function(a,b){return a.zip>b.zip?1:b.zip>a.zip?-1:0})}vm.openOptionsDialog=function(ev){ngDialog.open({preserveFocus:false,template:"/v_7_optionsDialog.html",className:"ngdialog-theme-flat"})};vm.answer=function(answer){$mdDialog.hide(answer)};function writeOptions_xsl_CreateString(p_itemID){var QueryString="?itemID="+p_itemID;var reg=/(groupMax=)(\d*)(;)(Required=)(\d*)(;)(GroupName=)([\w\s\W]*)(;)/;var record;var st;var Groups=new Object;var Group_Count=document.getElementById("frm_writeOptions_xsl1").elements.length;for(var count=0;count<=Group_Count-1;count++){var controlValue=document.getElementById("frm_writeOptions_xsl1").elements[count].value;var arrayHolder=controlValue.match(reg);var groupMax=arrayHolder[2];var groupRequired=arrayHolder[5];var subName=arrayHolder[8];Groups[subName]=new writeOptions_xsl_Group(subName,groupRequired,groupMax)}var Group_Count2=document.getElementById("frm_writeOptions_xsl0").elements.length;for(var count=0;count<=Group_Count2-1;count++){if(document.getElementById("frm_writeOptions_xsl0").elements[count].checked==true&&document.getElementById("frm_writeOptions_xsl0").elements[count].value!="Done"&&document.getElementById("frm_writeOptions_xsl0").elements[count].value!="Cancel"){QueryString=QueryString+"&"+escape(document.getElementById("frm_writeOptions_xsl0").elements[count].name)+"="+document.getElementById("frm_writeOptions_xsl0").elements[count].value;Groups[document.getElementById("frm_writeOptions_xsl0").elements[count].name].CurrentCount=Groups[document.getElementById("frm_writeOptions_xsl0").elements[count].name].CurrentCount+1}}for(record in Groups){if(Groups[record].Required>0){var introStr="You must select ";if(Groups[record].Required>Groups[record].CurrentCount){if(Groups[record].Required==Groups[record].groupMax){introStr=introStr+"exactly "+Groups[record].Required}else if(Groups[record].groupMax>Groups[record].Required){introStr=introStr+"between "+Groups[record].Required+" and "+Groups[record].groupMax}else{introStr=introStr+"at least "+Groups[record].Required}$("body").addClass("alertifyOpen");alertify.alert(introStr+" item"+(Groups[record].Required==1?"":"s")+" from the "+Groups[record].GroupName+" group. You entered "+Groups[record].CurrentCount+".\nPlease try again (Note:
1you may need to scroll down to see all choices.)",function(){$("body").removeClass("alertifyOpen")});return false}}if(Groups[record].groupMax>0&&Groups[record].CurrentCount>Groups[record].groupMax){$("body").addClass("alertifyOpen");alertify.alert("You can only select a maximum of "+Groups[record].groupMax+" item"+(Groups[record].groupMax==1?"":"s")+" from the "+Groups[record].GroupName+" group. You entered "+Groups[record].CurrentCount+".\nPlease try again (Note: you may need to scroll down to see all choices.)",function(){$("body").removeClass("alertifyOpen")});return false}}return QueryString}vm.toggleExpand=function($event){if($("div.show.left.big").length>0){vm.gosmall($event);$.ajax({method:"GET",url:"/goto.xsl?sideshimtest=small"})}else{vm.showLeft($event);vm.gobig($event);$.ajax({method:"GET",url:"/goto.xsl?sideshimtest=big"})}};vm.openTimeChooser=function(ev,p_vendorID){var myPopup2=ngDialog.open({preserveFocus:false,template:getTimeDialogStr(p_vendorID,vm.curParams.isForTakeout),plain:true,className:"ngdialog-theme-default ngdialog-theme-custom",showClose:false,scope:$scope,controller:function Ctrl(loadSomethingService){$scope.goVendorTarget=function(p_str){myPopup2.close();$scope.root.dd_goToTarget(p_str).then(function(data){},function(data){})}}})};vm.getCurYear=function(){var currentdate=new Date;return currentdate.getFullYear()};vm.doShowLogos=function(){var shouldBe=false;if($(window).width()>640){shouldBe=2}else{shouldBe=1}if(vm.showLogos!=shouldBe){vm.showLogos=shouldBe;$timeout(function(){vm.data.refreshVendorList=true})}};vm.sortItemsBy="['orderLineID', 'parentLineID']";vm.filterNormalItems=function(item){return item.type=="Normal"};vm.filterSubItems=function(p_orderLineID){return function(p_subItem){return p_subItem.type!="Normal"&&p_subItem.orderLineID==p_orderLineID}};vm.deleteItem=function(p_OrderLineID,p_ParentLineID){var postData=$.param({OrderLineID:p_OrderLineID,ParentLineID:p_ParentLineID});loadSomethingService.loadSomething("/delete_json.xsl",postData).then(function(data){vm.loadOrderBox()},function(data){if(data.status!=401){alertify.log("error deleting item.")}})};vm.editItem=function(p_item){vm.currentItem={itemName:p_item.itemName,itemID:p_item.itemID,hasImage:p_item.hasImage,orderLineID:p_item.orderLineID,qty:p_item.qty,customRequest:""};for(var i=0;i<vm.orderdata.order.item.length;i++){if(vm.orderdata.order.item[i].orderLineID==p_item.orderLineID&&vm.orderdata.order.item[i].type=="Special"){vm.currentItem.customRequest=vm.orderdata.order.item[i].itemName;break}}var popupCssClass=p_item.hasImage===1?"modal--edit-item modal--edit-item--has-image":"modal--edit-item modal--edit-item--no-image";var editDlg=ngDialog.open({template:"/edititem_partial.html",className:"ngdialog-theme-default ngdialog-theme-custom",showClose:false,scope:$scope,controller:function Ctrl($scope,loadSomethingService){$scope.submit=function(e){loadSomethingService.loadSomething("//"+base_domain+"/addSpecialItem.xsl?onlyone=1&Name="+escape(nz($scope.root.currentItem["customRequest"]))+"&OrderLineID="+p_item.orderLineID+"&qty="+$scope.root.currentItem.qty).then(function(data){$scope.root.loadOrderBox();editDlg.close()},function(data){if(data.status!=401){alertify.log("error adding custom request.")}})}},controllerAs:"editDialog"})};vm.initCurParams=function(p_data,p_isFirstTime){var curParams=p_data;vm.curParams=curParams;vm.tmpCompletePlace=vm.curParams.sessFullAddress?vm.curParams.sessFullAddress+", "+vm.curParams.zipCode:null;vm.autoCompletePlace=null;vm.specificVendorID=0;vm.groupOrderPage=curParams.groupOrder;vm.orderdata.order.itemcount=vm.curParams.itemsInCart;vm.isMult=0;if((curParams.offersDeliveryImmediate==1||curParams.offersDeliveryAdvance==1)&&(curParams.offersTakeoutImmediate==1||curParams.offersTakeoutAdvance==1)){vm.isMult=1}vm.isLoggedIntoGroup=0;if(curParams.sessGroupOrderID!=null){vm.isLoggedIntoGroup=1}vm.isGroupAdmin=0;if(vm.isLoggedIntoGroup==1&&curParams.sessGroupAdminEmail==curParams.sess_email&&curParams.sess_email!=null){vm.isGroupAdmin=1}vm.showBlankDeadline=0;if(vm.isGroupAdmin==1){var found=false;if(vm.groupOrderPage&&vm.groupOrderPage.autoPlaceOption){for(var i=0;i<vm.groupOrderPage.autoPlaceOption.length;i++){if(vm.groupOrderPage.autoPlaceOption[i].def==1){found=true;break}}}if(found==false){vm.showBlankDeadline=1}}vm.isLoggedIn=0;if(curParams.sess_email!=null){vm.isLoggedIn=1}vm.isGroupNewbie=1;if(curParams.showGroupForm==1||curParams.sessGroupOrderID&&curParams.sessGroupOrderID!=null){vm.isGroupNewbie=0}vm.inGroupMode=0;if(vm.isMult==1||vm.groupOrderPage){if(vm.isGroupAdmin==1||vm.isLoggedIntoGroup==1){vm.inGroupMode=1}}vm.memberOfGroupZero=0;if(vm.curParams.memberGroup){for(var i=0;i<vm.curParams.memberGroup.length;i++){if(vm.curParams.memberGroup[i].groupDeadlineExpired!=1){if(vm.curParams.memberGroup[i].groupOrderItem&&vm.curParams.memberGroup[i].groupOrderItem.length==0){memberOfGroupZero=1;break}}}}vm.memberOfGroupWithItems=0;if(vm.curParams.memberGroup){for(var i=0;i<vm.curParams.memberGroup.length;i++){if(vm.curParams.memberGroup[i].groupOrderItem&&vm.curParams.memberGroup[i].groupOrderItem.length>0){memberOfGroupWithItems=1;break}}}vm.zipchoice={};maybeInjectZips();vm.forceAdvance=0;if(vm.groupOrderPage&&vm.isGroupNewbie==1){vm.forceAdvance=0}else if(vm.groupOrderPage&&vm.isLoggedIntoGroup==0){vm.forceAdvance=0}else if(vm.curParams.showTimeRanges==1){vm.forceAdvance=1}else if(vm.curParams.showDeliveryTimeRanges==1){vm.forceAdvance=1}else if(vm.curParams.showTakeoutTimeRanges==1){vm.forceAdvance=1}else{vm.forceAdvance=0}if(vm.curParams.sessCustLat>0){if(vm.sortVendorsBy===defaultSort){vm.sortVendorsBy=["estminutes","sortpublic"]}}if(vm.curParams.refreshLeft==1||p_isFirstTime==true){if(p_isFirstTime==true){vm.refreshRestaurants(true)}else{vm.refreshRestaurants()}}if(p_isFirstTime==true){vm.loadOrderBox()}vm.myPlaces=[];if(vm.curParams.cust_addresses&&vm.curParams.cust_addresses.cust_address){var cust_addresses=vm.curParams.cust_addresses.cust_address;for(var i=0;i<cust_addresses.length;i++){vm.myPlaces.push(buildGooglePlacesResult({address:{administrative_area_level_1:cust_addresses[i].administrative_area_level_1,locality:cust_addresses[i].locality,route:cust_addresses[i].route,street_number:cust_addresses[i].street_number,deliverypointid:cust_addresses[i].deliverypointid,postal_code:cust_addresses[i].zip5,fullname:cust_addresses[i].fullname},location:{latitude:-33.936722,longitude:151.164266}}))}}};function buildGooglePlacesResult(config){return{formatted_address:config.address.fullname+", "+config.address.locality+", "+config.address.administrative_area_level_1+" "+config.address.postal_code,address_components:[{long_name:String(config.address.street_number),short_name:String(config.address.street_number),types:["street_number"]},{long_name:config.address.route,short_name:config.address.route,types:["route"]},{long_name:config.address.locality,short_name:config.address.locality,types:["locality"]},{long_name:config.address.postal_code,short_name:config.address.postal_code,types:["postal_code"]}
1,{long_name:config.address.administrative_area_level_1,short_name:config.address.administrative_area_level_1,types:["administrative_area_level_1"]}],geometry:{location:{lat:function(){return config.location.latitude},lng:function(){return config.location.longitude}}}}}vm.dd_getZipParameter=function(p_queryStr){var deferred=$q.defer();if(p_queryStr!=""){p_queryStr="?"+p_queryStr}loadSomethingService.loadSomething("//"+base_domain+"/getZipParameter.json.xsp"+p_queryStr).then(function(data){deferred.resolve(data.data)},function(data){if(data.status!=401){alertify.log("error loading data.")}deferred.reject("")});return deferred.promise};var postData=$.param({});if(getUrlParameter("formZipCode")){var incomingZip=getUrlParameter("formZipCode");var incomingAddr="";var reqParams=[];if(getUrlParameter("newADDR")){var reqParams=[];incomingAddr=escape(getUrlParameter("newADDR"));reqParams.newADDR=incomingAddr;if(getUrlParameter("place_id")){reqParams.place_id=escape(getUrlParameter("place_id"))}if(getUrlParameter("newCity")){reqParams.newCity=escape(getUrlParameter("newCity"))}}var queryStr="";if(initialZip==incomingZip&&incomingAddr==""){}else{queryStr="formZipCode="+incomingZip+"&refreshLeft=1";for(var param in reqParams){if(param==="unique"){continue}queryStr=queryStr+"&"+param+"="+reqParams[param]}}vm.dd_getZipParameter(queryStr).then(function(data){vm.initCurParams(data,true);if(data.action=="displayNotFoundError"){alertify.alert("Sorry, we currently dont deliver to "+incomingZip)}else{if(window.location.pathname=="/"){vm.maybeGoAutoBig(window.event)}}},function(data){alertify.alert("An error occured setting your zip")});window.history.replaceState({},document.title,window.location.pathname)}else if(getUrlParameter("formActionType")){var queryStr="formActionType="+getUrlParameter("formActionType");if(getUrlParameter("timesForVendorID")){queryStr=queryStr+"×ForVendorID="+getUrlParameter("timesForVendorID")}vm.dd_getZipParameter(queryStr).then(function(data){vm.initCurParams(data,true);if(data.action=="displayNotFoundError"){alertify.alert("Sorry, we currently dont deliver to "+incomingZip)}},function(data){alertify.alert("An error occured setting your zip")});window.history.replaceState({},document.title,window.location.pathname)}else{var initialQueryStr="";if(getUrlParameter("newLocationID")){initialQueryStr="?newLocationID="+getUrlParameter("newLocationID")}loadSomethingService.loadSomething("/getZipParameter.json.xsp"+initialQueryStr,postData).then(function(data){vm.initCurParams(data.data,true);if(isNewSession=="1"&&vm.curParams.newcustcouponcode&&!$.browser.msie){var dialogStr="";dialogStr=dialogStr+'<div class="dd_dialog_outer popup-body coupon_dialog coupon_dialog_circle">';dialogStr=dialogStr+' <div class="coupon_dialog_closer" ng-click="closeThisDialog()"></div>';dialogStr=dialogStr+' <div class="coupon_dialog_code_wrapper">';dialogStr=dialogStr+' <div class="newcustcouponcode">{{root.curParams.newcustcouponcode}}</div>';dialogStr=dialogStr+' <div class="newcuscouponmaxval">*max value {{root.curParams.newcuscouponmaxval | currency}}</div>';dialogStr=dialogStr+" </div>";dialogStr=dialogStr+' <div class="coupon_dialog_logo_wrapper">';dialogStr=dialogStr+' <img class="coupon_dialog_logo" src="/poe.png"/>';dialogStr=dialogStr+" </div>";dialogStr=dialogStr+' <div class="coupon_dialog_cartoon_wrapper">';dialogStr=dialogStr+' <img class="coupon_dialog_cartoon" src="/freedial.gif"/>';dialogStr=dialogStr+" </div>";dialogStr=dialogStr+"</div>";var myPopup2=ngDialog.open({preserveFocus:false,template:dialogStr,plain:true,className:"ngdialog-theme-default ngdialog-theme-custom ngdialog-no-shadows ngdialog-no-bg",showClose:false,scope:$scope,controller:function Ctrl(loadSomethingService){}})}},function(data){if(data.status!=401){alert("Failed to initialize -- please make sure you have a data connection.")}})}vm.dd_goToTarget=function(p_queryStr){var deferred=$q.defer();if(p_queryStr!=""){p_queryStr="?"+p_queryStr}loadSomethingService.loadSomething("//"+base_domain+"/getZipParameter.json.xsp"+p_queryStr).then(function(data){vm.initCurParams(data.data,false);deferred.resolve("")},function(data){if(data.status!=401){alertify.log("error loading data.")}deferred.reject("")});return deferred.promise};vm.scrollTo=0;$rootScope.$on("ngDialog.opened",function(e,$dialog){$(".ngdialog")[0].addEventListener("touchstart",function(e){e.stopPropagation()});$(".ngdialog-overlay")[0].addEventListener("touchstart",function(e){e.stopPropagation();e.preventDefault()});lg("ngDialog opened: "+$dialog.attr("id"))});$rootScope.$on("ngDialog.closed",function(e,$dialog){});vm.addToCart=function(p_itemID,$event){var postData=$.param({forceOptions:"1",columns:"1",itemID:p_itemID});loadSomethingService.loadSomething("/addNormalItem_app_json.xsp",postData).then(function(data){if(data.data.optionGroups){vm.optionGroups=data.data.optionGroups;
1for(optionGroup in vm.optionGroups.optionGroup){if(vm.optionGroups.optionGroup[optionGroup].groupType==1){for(groupItem in vm.optionGroups.optionGroup[optionGroup].groupItem){if(vm.optionGroups.optionGroup[optionGroup].groupItem[groupItem].checked){vm.optionGroups.optionGroup[optionGroup].checkedItemID=vm.optionGroups.optionGroup[optionGroup].groupItem[groupItem].itemID;break}}}}var optionsDlg=ngDialog.open({preserveFocus:false,template:"/v_7_optionsDialog.html",className:"ngdialog-theme-default ngdialog-theme-custom",showClose:false,scope:$scope,controller:function Ctrl(loadSomethingService){var vm=this;vm.currentItem={specialRequests:"",qty:1};vm.openSubOption=function(){var subOptionsDlg=ngDialog.open({preserveFocus:false,template:"/v_7_optionsDialog.html",className:"ngdialog-theme-default ngdialog-theme-custom",showClose:false,scope:$scope,controller:function Ctrl(loadSomethingService){var vm=this;vm.currentItem={specialRequests:"",qty:1}},controllerAs:"subOptionsDialog"})};vm.submit=function(e){var retObj=writeOptions_xsl_CreateString(p_itemID);if(retObj){retObj=retObj+"&dd_specialRequests="+escape(vm.currentItem.specialRequests);retObj=retObj+"&dd_qty="+escape(vm.currentItem.qty);loadSomethingService.loadSomething("/addOptions_app_json.xsp"+retObj).then(function(data){ngDialog.close(optionsDlg.id);$scope.root.doCartAnimation(p_itemID,$event,data.data.basketItemCount)},function(data){if(data.status!=401){alert("error adding items.")}})}else{e.preventDefault()}}},controllerAs:"optionsDialog"})}else{$scope.root.doCartAnimation(p_itemID,$event,data.data.basketItemCount)}},function(data){var errObj=getErrMsg(data.data.response.jsonErr);var savedPopup;var xtraClass="";try{if(data.data.response.jsonErr.errMsgID==25){xtraClass=" ngdialog-no-shadows"}}catch(e){}
1function doSecondaryDlg(p_msg){var zipdlgstr='<div class="popup-head">'+p_msg+'<br/>We only deliver to the following zipcodes:</div><div id="dd_options_scroll" class="dd_dialog_outer popup-body"><ul class="zip-dropdown__zip-list dd_colored_list disable-user-behavior"><li ng-repeat="zip in root.curParams.zipOption" class="zip-dropdown__zip dd_animateitem item item-complex" ng-click="setZipFromPopup(zip.zip)"><h2 class="itemName">{{zip.zip}}</h2></li></ul></div><div class="popup-buttons"><button name="button1" id="button1" ng-click="closeThisDialog()" type="button" class="dd_button button-default">Cancel</button></div>';var myPopup3=ngDialog.open({preserveFocus:false,template:zipdlgstr,plain:true,className:"ngdialog-theme-default ngdialog-theme-custom",showClose:false,scope:$scope,controller:function Ctrl(loadSomethingService){$scope.setZipFromPopup=function(p_zip){myPopup3.close();if(p_zip&&p_zip!=""){if(checkRedir(p_zip)){return false}$scope.root.dd_goToTarget("refreshLeft=1&formZipCode="+p_zip).then(function(data){$scope.root.addToCart(p_itemID,$event)},function(data){})}}}})}var myPopup2=ngDialog.open({preserveFocus:false,template:errObj.errorDescription,plain:true,className:"ngdialog-theme-default ngdialog-theme-custom"+xtraClass,showClose:false,scope:$scope,controller:function Ctrl(loadSomethingService){$scope.onPlaceUpdatedInModal=function(p_newPlace){$scope.root.setAddress(p_newPlace).then(function(data){myPopup2.close();$scope.root.addToCart(p_itemID,$event)},function(data){myPopup2.close();if(data.code==2){var alreadyInZip=false;for(zip in $scope.root.curParams.zipOption){if(data.zipCode==$scope.root.curParams.zipOption[zip].zip){alreadyInZip=true;break}}if(alreadyInZip){alertify.alert(data.message)}else{doSecondaryDlg(data.message)}}else{alertify.alert(data.message)}})};$scope.goWithFullRawInModal=function(p_newPlace){if(p_newPlace==null||p_newPlace==""){alertify.log("Please type your delivery address first.");return false}$scope.root.goWithFullRaw_main(p_newPlace).then(function(data){myPopup2.close();$scope.root.addToCart(p_itemID,$event)},function(data){if(data.code==1){alertify.alert(data.message)}else if(data.code==2){myPopup2.close();
1doSecondaryDlg(data.message)}else{myPopup2.close();alertify.alert(data.message)}})};$scope.goHomeTarget=function(p_str){$scope.goVendorTarget(p_str)};$scope.goVendorTarget=function(p_str){myPopup2.close();$scope.root.dd_goToTarget(p_str).then(function(data){$scope.root.addToCart(p_itemID,$event)},function(data){})}}})})};vm.doCartAnimation=function(p_itemID,p_event,p_basketItemCount){var theEle;theEle=$(p_event.target).closest(".dd_item_a").children().first();var eleClone=theEle.clone().removeClass("ym-list-item__price").addClass("flyingimage");var theBasket;if(getWinWidth(window)>767){theBasket=$(".desktopSparkTarget").eq(0)}else{theBasket=$(".mobileSparkTarget").eq(0)}var $eleWithBackground=theEle.parents(".dd_menu-section").find(".dd_menufill");var scrollTop=$(window).scrollTop();var posY=theEle.offset().top-scrollTop-parseInt(theEle.css("margin-left"),10);var posX=theEle.offset().left-parseInt(theEle.css("margin-left"),10);var deltaX=theBasket.offset().left-posX;var deltaY=theBasket.offset().top-scrollTop-posY;var cartOffset=0;if(getWinWidth(window)>767){cartOffset=parseInt($("#dd-static-cart").css("top").replace(/[^0-9]/g,""),10);if(isNaN(cartOffset)){cartOffset=0}else{deltaY=deltaY+cartOffset}}eleClone.find(".preview").css("display","none");eleClone.one("webkitTransitionEnd.dd otransitionend.dd oTransitionEnd.dd msTransitionEnd.dd transitionend.dd",function(e){$rootScope.$broadcast("itemAdded");vm.loadOrderBox();$(this).remove();var curEle=$(theBasket);if(curEle.length==1){clickSpark.setParticleYoffset(cartOffset);clickSpark.fireParticles(curEle)}});var bgImage=$eleWithBackground.css("background-image");if(bgImage){}var bgColor=$eleWithBackground.css("background-color");if(bgColor=="rgba(0, 0, 0, 0)"||bgColor=="transparent"){}var opacity=$eleWithBackground.css("opacity");eleClone.appendTo("body").css({opacity:opacity,background:bgColor,backgroundImage:bgImage,borderRadius:"4px",margin:0,padding:"1em",boxShadow:"0 2px 5px rgba(0, 0, 0, 0.2)",position:"fixed",zIndex:99999,top:posY,left:posX,width:theEle.outerWidth(true),"-webkit-transition":"-webkit-transform 1s cubic-bezier(0.625, 0.000, 0.235, 0.995)","-webkit-transform-origin":"0% 0%","-webkit-transform":"translate3d("+deltaX+"px, "+deltaY+"px, 0) scale3d(0, 0, 0)",transition:"transform 1s cubic-bezier(0.625, 0.000, 0.235, 0.995)","transform-origin":"0% 0%",transform:"translate3d("+deltaX+"px, "+deltaY+"px, 0) scale3d(0, 0, 0)"});if(p_basketItemCount){$timeout(function(){vm.orderdata.order.itemcount=p_basketItemCount})}};vm.user={email:"",password:"",email2:"",password2:"",password22:""};vm.changePass=function(){var title="Change Password";var innerStr='<div id="PasswordChange"><label class="item item-input"><span class="input-label">Old Password:</span><input type="password" ng-model="changePassData.oldPassword"></label><label class="item item-input"><span class="input-label">New Password:</span><input type="password" ng-model="changePassData.newPassword"></label></div>';var buttonStr='<button ng-click="closeThisDialog()" type="button" class="dd_button button-default">Cancel</button><button type="button" class="dd_button button-positive" ng-click="submit($event);"><b>Submit</b></button>';var myPopup=ngDialog.open({preserveFocus:false,template:createDialog(title,innerStr,buttonStr),plain:true,className:"ngdialog-theme-default ngdialog-theme-custom",showClose:false,scope:$scope,controller:function Ctrl(loadSomethingService){$scope.changePassData={};$scope.submit=function(e){var postData=$.param({refdomain:"http://"+base_domain,email:$scope.root.accountdata.sess_email,oldPassword:$scope.changePassData.oldPassword,newPassword:$scope.changePassData.newPassword});loadSomethingService.loadSomething("/changepass.xsp",postData).then(function(data){alertify.log("Success!");ngDialog.close(myPopup.id)},function(data){if(data.status!=401){alertify.alert("error changing password "+data.data)}})}},controllerAs:"passDialog"})};vm.popupOrder=function(p_vendorOrderID){loadSomethingService.loadSomething("//"+base_domain+"/viewWmOrder.xsl?includePhotoInfo=1&canBeCanceled=1&vendorOrderID="+p_vendorOrderID).then(function(data){$scope.dlgvendorOrderID=p_vend
1orOrderID;var title="Order";var innerStr=data.data;var buttonStr='<button ng-click="closeThisDialog()" type="button" class="dd_button button-default">Close</button>';var myPopup=ngDialog.open({preserveFocus:false,template:createDialog(title,innerStr,buttonStr),plain:true,className:"ym-order-popup",showClose:false,scope:$scope,controllerAs:"orderDialog"})},function(data){if(data.status!=401){alertify.log("error loading order.")}})};vm.recreateOrder=function(p_vendorOrderID){var postData=$.param({vendorOrderID:p_vendorOrderID});loadSomethingService.loadSomething("//"+base_domain+"/recreateOrder.xsp",postData).then(function(data){vm.loadOrderBox();var warnings="";$(data.data).find("warn").each(function(){warnings=warnings+$(this).text()+"\r\n"});if(warnings!=""){alertify.alert("Note:\r\n"+warnings)}},function(data){if(data.status!=401){alertify.alert("error recreating order "+data.data)}})};vm.verify=function(p_new){var theEmail=vm.user.email;var thePass=vm.user.password;if(p_new){theEmail=vm.user.email2;thePass=vm.user.password2}if(!theEmail){alertify.alert("Please enter a valid e-mail address.");return false}var trimmedEmail=theEmail.replace(/^\s+/,"").replace(/\s+$/,"");var trimmedPass=thePass.replace(/^\s+/,"").replace(/\s+$/,"");if(trimmedEmail==""){alertify.alert("You must enter an email address.");return false}if(trimmedPass==""){alertify.alert("You must enter a password.");return false}if(p_new){var trimmedPass2=vm.user.password22.replace(/^\s+/,"").replace(/\s+$/,"");if(trimmedPass!=trimmedPass2){alertify.alert("Youre passwords dont match.");return false}}var filter=/^([a-zA-Z0-9_\.\-])*([a-zA-Z0-9_\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(filter.test(trimmedEmail)){}else{alertify.alert("Please enter a valid e-mail address.");document.ngformlogin.email.focus();document.ngformlogin.email.select();return false}var curSessID=nz($cookies.get("JSESSIONID"));var postData;if(p_new){postData=$.param({formActionType:"signin",nonSecureSessID:curSessID,email:vm.user.email2,password:vm.user.password2,rememberme:"1",redirTo:""})}else{postData=$.param({formActionType:"signin",nonSecureSessID:curSessID,email:vm.user.email,existinguser:"1",password:vm.user.password,rememberme:"1",redirTo:""})}loadSomethingService.loadSomething("/checkout/login_ajax.xsl",postData).then(function(data){if(data.data.response.status=="success"){vm.dd_goToTarget("").then(function(){},function(){});vm.loadAccount();if(window.OneSignal){OneSignal.getUserId(function(userId){vm.oneSignalUpdate(userId)})}}else{if(data.data.response.act_login_error_description){alertify.alert(data.data.response.act_login_error_description)}else{alertify.alert("Login failed. Please try again")}}},function(data){if(data.status!=401){alertify.alert("error logging in "+data.data)}})};vm.oneSignalUpdate=function(p_userId){if(typeof p_userId!=="undefined"&&p_userId&&p_userId!=null&&p_userId!=""&&p_userId.length>2){var sigData=$.param({onesignalid:p_userId});loadSomethingService.loadSomething("/oneSignalUpdate.xsp?j=1",sigData).then(function(data){})}};vm.pushUpdateOrderStatus=function(p_vendorOrderID,p_status){if(vm.accountdata&&vm.accountdata.currentOrders){angular.forEach(vm.accountdata.currentOrders,function(vendorOrder){if(vendorOrder.vendorOrderID==p_vendorOrderID){if(typeof vendorOrder.triggerRefresh=="undefined"){$timeout(function(){vendorOrder.triggerRefresh=true},0)}else{$timeout(function(){vendorOrder.triggerRefresh=!vendorOrder.triggerRefresh},0)}}})}};vm.forgotPass=function(){var curSessID=nz($cookies.get("JSESSIONID"));var trimmedEmail=vm.user.email.replace(/^\s+/,"").replace(/\s+$/,"");if(trimmedEmail==""){alertify.alert("Please enter the email address to which we should send your password.",function(){document.ngformlogin.email.focus();document.ngformlogin.email.select()});return false}var filter=/^([a-zA-Z0-9_\.\-])*([a-zA-Z0-9_\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(filter.test(trimmedEmail)){document.ngformlogin.password.value="";var postData=$.param({formActionType:"mailpass",nonSecureSessID:curSessID,email:vm.user.email});loadSomethingService.loadSomething("/checkout/login_ajax.xsl",postData).then(function(data){try{if(data.data.response.status=="success"){alertify.alert("Your password reset information has been emailed to "+document.ngformlogin.email.value+". Check your inbox in the next few minutes.")}else{if(data.data.response.act_login_error_description){alertify.alert(data.data.response.act_login_error_description)}else{alertify.alert("Pass reset failed1. Please try again")}}}catch(e){alertify.alert("Pass reset failed2. Please try again")}},function(data){if(data.status!=401){alertify.alert("Pass reset failed3:"+data.data)}})}else{alert("Please enter a valid e-mail address.");document.ngformlogin.email.focus();document.ngformlogin.email.select();return false}};
1vm.signout=function(){loadSomethingService.loadSomething("//"+base_domain+"/myacct.xsl?formActionType=signout").then(function(data){vm.user={email:"",password:"",email2:"",password2:"",password22:""};vm.myPlaces=[];vm.loadAccount()},function(data){if(data.status!=401){alertify.alert("error logging out. "+data.data)}})};vm.loadAccount=function(){var postData=$.param({showCurrent:"1"});loadSomethingService.loadSomething("//"+base_domain+"/myacct_app_json.xsl",postData).then(function(data){vm.accountdata=data.data;try{vm.curParams.sess_email=data.data.sess_email}catch(e){}},function(data){if(data.status!=401){alertify.log("error loading account.")}})}});function OptionsDialogController($scope,$mdDialog,$timeout){}app.run(function($rootScope){});app.filter("searchFilter",function(){return function(arr,paramArray){var searchString=paramArray[0];var cuisineFilter=paramArray[1];if(!searchString&&cuisineFilter==""){return arr}searchString=searchString.toLowerCase().replace(/[^a-z0-9+]+/gi,"");var result=[];angular.forEach(arr,function(el){if((el.vendorName+el.bottomicontext).replace(/[^a-z0-9+]+/gi,"").toLowerCase().indexOf(searchString)!=-1||(el.cuisinetype==null?"":el.cuisinetype).replace(/[^a-z0-9+]+/gi,"").toLowerCase().indexOf(searchString)!=-1){if(cuisineFilter==""||el.cuisinetype==cuisineFilter){result.push(el)}}});return result}});app.directive("menu",function($timeout){return{scope:true,restrict:"E",templateUrl:"/v_30_restlist_partial.html",link:function($scope,element,attr,ctrl){element.find(".dd_scrollable2").on("mousewheel",function(e){var event=e.originalEvent;var d=event.wheelDelta||-event.detail;if(d<0){var tthis=$(this);if(Math.round(tthis.scrollTop()+tthis.innerHeight(),10)>=Math.round(tthis[0].scrollHeight,10)){e.preventDefault()}}else{if(this.scrollTop==0){e.preventDefault()}}});element.find(".dd_scrollable2").on("scroll",function(e){$scope.root.reposArrow($scope.root.curVendorID,false)});$timeout(function(){var $description=element.find(".vendor_description");$description.each(function(){var $vendorRoot=$(this).parents(".dd_smallrest");var description=$(this).text();var test=/featured vendor/gi;var isFeatured=function(){var checkFeatured=description.match(test);if(checkFeatured===null){return false}else{return checkFeatured}};if(isFeatured()){$vendorRoot.addClass("dd_featured-vendor")}})},1e3)}}});app.directive("ddDeliveringNow",function($timeout){return{scope:true,restrict:"C",templateUrl:"/v_4_delivering_now_partial.html",link:function($scope,element,attr,ctrl){$timeout(function(){element.find("img").each(function(i,e){var $img=$(this);var picRealWidth;var picRealHeight;$("<img/>").attr("src",$img.attr("src")).on("load",function(){picRealWidth=this.width;picRealHeight=this.height;if(picRealWidth<picRealHeight){$img.addClass("logo-portrait")}else{$img.addClass("logo-landscape")}})})},1e3)}}});app.directive("ddCartItems",function($timeout){return{scope:true,restrict:"E",templateUrl:"/v_7_cart_partial.html",link:function($scope,element,attr,ctrl){}}});app.directive("menuItem",function(){return{restrict:"E",template:"<div ng-click='navigate()' ng-transclude></div>",transclude:true,scope:{hash:"@"},link:function($scope){$scope.navigate=function(){window.location.hash=$scope.hash}}}});app.directive("historyAnchor",function(){return{restrict:"A",scope:{},link:function($scope,element){$(element).click(function(evt){evt.preventDefault();History.pushState(null,$(element).attr("title"),stripHashFrag($(element).attr("href")));return false})}}});app.directive("loadOrderHistory",function(){return{scope:true,restrict:"E",link:function($scope,element,attr,ctrl){$scope.root.loadAccount()}}});angular.element(document).ready(function(){angular.bootstrap(document,["WisdomApp"]);var style=document.createElement("style");style.type="text/css";style.innerHTML="body.ngdialog-open .dd_bg_image_1, body.modal-open {margin-right:"+scrollbarWidth()+"px;}body.ngdialog-open .dd-static-cart.isFixed {width:31.6%;right: "+(scrollbarWidth()+2)+"px";document.getElementsByTagName("head")[0].appendChild(style)});function L2(FoodID,extra,p_event){angular.element($("#dd_content")).scope().root.addToCart(FoodID,p_event)}function Lzip(FoodID,extra,p_event){angular.element($("#dd_content")).scope().root.addToCart(FoodID,p_event)}app.directive("ddStaticCart",function($timeout,$rootScope){return{scope:true,restrict:"C",templateUrl:"/v_2_static_cart_partial.html",link:function($scope,element,attr,ctrl){element.attr({id:"dd-static-cart"});element.find(".dd_inner_cart").on("mousewheel",function(e){var event=e.originalEvent;var d=event.wheelDelta||-event.detail;this.scrollTop+=(d<0?1:-1)*30;e.preventDefault()});var elHeight=0;var elCssTop=0;var elTop=0;var $document=$(document);var dHeight=0;var $window=$(window);var wHeight=0;var wScrollCurrent=0;var wScrollBefore=0;var wScrollDiff=0;var collapseTimeout;var expanding=false;var closedOnce=false;var childElement=element.find(".dd_inner_cart");$scope.justExpand=function(){$timeout.cancel(collapseTimeout);if(expanding){return}if(element.hasClass("isFixed")){expanding=true;element.animate({top:0},250,"swing",function(){element.addClass("maximized");expanding=false})}};$scope.collapseCart=function(){element.removeClass("maximized");if(element.hasClass("isFixed")){element.animate({top:childElement.outerHeight(true)*-1},250)}};$scope.forceClose=function(){closedOnce=true;$scope.collapseCart()};var itemAdded=function(){$scope.justExpand();if($("#dd_home_div").hasClass("dd_theme_picturemenu")||closedOnce){collapseTimeout=$timeout(function(){$scope.collapseCart()},2e3)}};$rootScope.$on("collapseCart",$scope.collapseCart);$rootScope.$on("itemAdded",itemAdded);var initialTop=findPosY(element[0]);var doPosition=function(){elHeight=childElement.outerHeight(true);dHeight=$document.height();wHeight=$window.height();wScrollCurrent=$window.scrollTop();wScrollDiff=wScrollBefore-wScrollCurrent;elCssTop=parseInt(element.css("top"));elTop=elCssTop+wScrollDiff;if(wScrollCurrent<=0){element.removeClass("isFixed").removeAttr("style")}else if(wScrollDiff>
10){if(wScrollCurrent<=initialTop){element.removeClass("isFixed").removeAttr("style")}else{if(element.hasClass("isFixed")){if(wScrollCurrent<elHeight+initialTop){element.css("top",elTop>0?0:elTop)}else if(elCssTop+elHeight!=0||!$("#dd_home_div").hasClass("dd_theme_picturemenu")&&closedOnce==false){element.css("top",elTop>0?0:elTop)}if(elTop>0){}}}}else if(wScrollDiff<0){if(wScrollCurrent>elHeight+initialTop){if(element.hasClass("isFixed")){element.css("top",Math.abs(elTop)>elHeight?-elHeight:elTop);if(Math.abs(elTop)>elHeight){}}else{element.addClass("isFixed");element.css("top",-elHeight)}}else{if(element.hasClass("isFixed")){element.css("top",Math.abs(elTop)>elHeight?-elHeight:elTop)}}if(element.hasClass("maximized")){element.removeClass("maximized")}}wScrollBefore=wScrollCurrent};$window.on("scroll.dd",doPosition);doPosition()}}});function findPosY(obj){var curtop=0;if(obj.offsetParent){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent}}else if(obj.y){curtop+=obj.y}return curtop}var positionCart=function(e){var $el=$(".navbar__cart");var isPositionFixed=$el.hasClass("isFixed");if($(this).scrollTop()>45&&!isPositionFixed){}if($(this).scrollTop()<45&&isPositionFixed){}var $el2=$("#dd-static-cart");var isPositionFixed=$el2.hasClass("isFixed");if($(this).scrollTop()>45&&!isPositionFixed){}if($(this).scrollTop()<45&&isPositionFixed){}};positionCart();$(window).on("scroll",positionCart);function setLoaded(p_vendorID){$("body").removeAttr("data-current-page");angular.element($("#dd_content")).scope().root.setActiveRestaurant(p_vendorID,true)}function justGoBig(){var scope=angular.element($("#dd_content")).scope();scope.root.showLeft(event);scope.root.gobig(event)}$(document).ready(function(){var div=document.getElementById("em_to_px_measurer");div.style.height="1em";em=div.offsetHeight;clickSpark.setParticleCount(50);clickSpark.setParticleSize(10);clickSpark.setParticleSpeed(3);clickSpark.setParticleImagePath("/particle-4.png");clickSpark.setParticleRotationSpeed(20);clickSpark.setParticleDuration(1.5);clickSpark.setAnimationType("explosion");if(navigator.userAgent.match(/(iPhone|iPod|iPad|Android)/)){$("body").addClass("dd_is_iDevice")}});app.controller("DriveForUsCtrl",function($q,$scope,loadSomethingService,$timeout){var vm=this;vm.formData={};vm.formMode="buy";vm.responseData={};vm.submit=function(){var trimmedEmail=nz(vm.formData.req_email).replace(/^\s+/,"").replace(/\s+$/,"");var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(filter.test(trimmedEmail)){}else{alertify.alert("Please enter a valid email address.");return false}var postData=$.param(vm.formData);loadSomethingService.loadSomething("/pDriverSignup.xsl",postData).then(function(data){vm.responseData=data.data.response;vm.formMode="success";$("html, body").stop().animate({scrollTop:0},300)},function(data){if(data.status!=401){try{alertify.alert(data.data.response.description)}catch(e){alertify.alert("an unknown error occured")}}})}});app.controller("driverModalInstanceController",function($scope,$uibModalInstance,driver){$scope.driver=driver;$scope.cancel=function(){$uibModalInstance.dismiss("cancel")}});app.directive("driverList",function($window){return{restrict:"E",scope:{driversCollection:"="},templateUrl:"/v_2_driver-list-template.html",controller:function($scope,$log,$uibModal){$scope.imageCollectionIndex=0;$scope.prevSlide=function(collection){var collectionSize=collection.length;if($scope.imageCollectionIndex===0){$scope.imageCollectionIndex=collectionSize-1}else{$scope.imageCollectionIndex--}};$scope.nextSlide=function(collection){var collectionSize=collection.length;if($scope.imageCollectionIndex+1===collectionSize){$scope.imageCollectionIndex=0}else{$scope.imageCollectionIndex++}};$scope.openModal=function(_driver){var modalInstance=$uibModal.open({templateUrl:"/v_2_driver-modal-content.html",backdrop:true,controller:"driverModalInstanceController",resolve:{driver:function(){return _driver}}});modalInstance.result.then(function(){},function(){})}},link:function($scope,$el,$attrs){$(document).ready(function(){var cachedWidth;var checkSize=function(){var width=$(window).width();if(width!==cachedWidth){cachedWidth=width;if(width>1600){rebuildSlide(7)}else if(width<=1600&&width>1400){rebuildSlide(6)}else if(width<=1400&&width>1200){rebuildSlide(5)}else if(width<=1200&&width>1e3){rebuildSlide(4)}else if(width<=1e3&&width>800){rebuildSlide(3)}else if(width<=800&&width>600){rebuildSlide(2)}else{rebuildSlide(1)}}};function rebuildSlide(n){var imageCollection=[];var slide=[];var index;for(index=0;index<$scope.driversCollection.length;
1index++){if(slide.length===n){imageCollection.push(slide);slide=[]}slide.push($scope.driversCollection[index])}imageCollection.push(slide);$scope.imageCollection=imageCollection;$scope.imageCollectionIndex=0}checkSize();$(window).on("resize",checkSize)})}}});app.controller("urbanEatsDriverModalInstanceController",function($scope,$uibModalInstance,driver){$scope.driver=driver;$scope.cancel=function(){$uibModalInstance.dismiss("cancel")}});app.directive("urbaneatsDriverList",function($window){return{restrict:"E",replace:true,scope:{driversCollection:"="},templateUrl:"/v_2_urbaneats-driver-list.html",controller:function($scope,$log,$uibModal){$scope.openModal=function(_driver){var modalInstance=$uibModal.open({templateUrl:"/v_2_driver-modal-content.html",backdrop:true,controller:"urbanEatsDriverModalInstanceController",resolve:{driver:function(){return _driver}}});modalInstance.result.then(function(){},function(){})}},link:function($scope,$el,$attrs){$(document).ready(function(){$(".driver").hover(function(){$(this).addClass("hovering foreground")},function(){$(this).removeClass("hovering")});$(".driver").on("transitionend",function(e){if(!$(this).hasClass("hovering")){$(this).removeClass("foreground")}})})}}});app.directive("navLinkBar",function(){return{restrict:"A",link:function(scope,$element,attrs){var dropdownMenu=$element.find(".navLinkDropDown");$element.find('a[href="#"]').on("click",function(event){event.preventDefault});$element.find(".dropdown-button").on("click",function(){dropdownMenu.toggleClass("--visible")});var setDropdownItems=function(){var $links=$element.find(".dd_menu-nav__list .dd_menu-nav__link");var visibleLinks=0;var wrappedIndex=0;var dropdownLinks=null;var startShowing=false;dropdownMenu.find(".dd_menu-nav__link").remove();$links.each(function(i,e){if(i>0){var $this=$(this);var $prev=$this.prev();if(startShowing||$this.offset().top!==$prev.offset().top){startShowing=true;wrappedIndex=i;var clonedEle=$this.clone();clonedEle.on("click",function(){dropdownMenu.removeClass("--visible")});clonedEle.appendTo(dropdownMenu)}}});if(startShowing==false){$element.find(".dropdown-button").css("display","none")}else{$element.find(".dropdown-button").css("display","inline-block")}};setDropdownItems();$(window).on("resize",setDropdownItems);scope.$on("$destroy",function(){$(window).off("resize",setDropdownItems)})}}});window.addEventListener("orientationchange",function(){setTimeout(function(){try{var scope=angular.element($("#dd_content")).scope();scope.root.doShowLogos()}catch(e){alert(e)}},500)});app.directive("expandableImages",function($timeout){return{restrict:"A",scope:true,link:function($scope,$el,$attrs){var modalHe
1ight=0;$timeout(function(){$el.addClass("trigger-icon-flash");modalHeight=$el.parents(".modal-content").height()},150);$el.find(".image--expandable").on("click",function(){var $this=$(this);var $modal=$this.parents(".driver-modal__contents");var $modalContent=$this.parents(".modal-content");if($modal.attr("data-image-expandable")!==undefined){$modal.removeAttr("data-image-expandable");$timeout(function(){$modalContent.removeAttr("style")},500)}else{$modalContent.css("height",modalHeight);if($this.hasClass("driver-modal__fullshot")){$modal.attr("data-image-expandable","driver-modal__fullshot")}else if($this.hasClass("driver-modal__rideshot")){$modal.attr("data-image-expandable","driver-modal__rideshot")}else{alert("These aren't the droids we'er looking for")}}})}}});app.directive("avatarExpandable",function(){return{restrict:"A",scope:true,link:function($scope,$el,$attrs){$el.on("click",function(){var $this=$(this);if($this.attr("data-avatar-expanded")!==undefined){$this.removeAttr("data-avatar-expanded")}else{$this.attr("data-avatar-expanded","expanded")}})}}});app.directive("ddMenuItemUploader",function($timeout){return{restrict:"E",scope:{},bindToController:{uploadState:"@",orderlineid:"@",imgurl:"@",imgamount:"@",imgapproved:"@",vendororderid:"@",orderitemid:"@",currencyname:"@",itemname:"@",itemqty:"=",subitems:"="},controller:MaybeUploadController,controllerAs:"uploadbutton",templateUrl:"/v_12_menuItemUploader.html"}});var MaybeUploadController=function($scope,loadSomethingService,$q){var vm=this;vm.clickInput=function(p_index){$("#imageupl"+p_index).trigger("click")};vm.sortItemsBy="['orderLineID', 'parentLineID']";vm.filterNormalItems=function(item){return item.parentLineID==null&&item.itemType==0};vm.filterSubItems=function(p_orderLineID){return function(p_subItem){return p_subItem.parentLineID!=null&&p_subItem.orderLineID==p_orderLineID}};vm.obj={flow:{}};vm.imgName="";vm.displayedImage="";vm.retPolicy={};vm.isPreLoading=false;vm.checkFileFailure=false;vm.deleteImg=function(p_orderlineid,p_vendororderid){var postData=$.param({action:"delete",orderlineid:vm.orderlineid,vendororderid:vm.vendororderid});loadSomethingService.loadSomething("/confirmS3Url.xsl",postData).then(function(data){vm.displayedImage=""},function(data){if(data.status!=401){alertify.log("error confirming upload.")}})};vm.config={query:function(flowFile,flowChunk){return{key:vm.retPolicy.key,AWSAccessKeyId:vm.retPolicy.AWSAccessKeyId,acl:vm.retPolicy.acl,policy:vm.retPolicy.policy,"X-Amz-Algorithm":vm.retPolicy.x_amz_algorithm,"X-Amz-Credential":vm.retPolicy.x_amz_credential,"X-Amz-Date":vm.retPolicy.x_amz_date,Signature:vm.retPolicy.Signature,"X-Amz-Meta-Site":vm.retPolicy.siteName,"X-Amz-Meta-SiteID":vm.retPolicy.siteID,"X-Amz-Meta-itemImageID":vm.retPolicy.itemImageID,"Content-Type":vm.retPolicy.contentType}}};vm.init=function(p_imgName){vm.obj.flow.off("filesSubmitted");if(vm.imgurl){var xhr=new XMLHttpRequest;xhr.open("GET",vm.imgurl,true);xhr.responseType="blob";xhr.onload=function(e){var ori=0;if(this.status==200){var blob=this.response;loadImage.parseMetaData(blob,function(data){if(data.exif){ori=data.exif.get("Orientation")}loadImage(blob,function(canvas){canvas.toBlob(function(blob2){vm.displayedImage=blob2;$scope.$digest()})},{maxWidth:113,maxHeight:71,canvas:true,orientation:ori})})}};xhr.send()}vm.obj.flow.on("filesSubmitted",function(files,event){if(vm.checkFileFailure==true){}else{}vm.obj.flow.upload()});vm.retPolicy={};vm.obj.flow.opts.preprocess=function(chunk){var flowFile=chunk.fileObj;if(flowFile.url){chunk.preprocessFinished();return}var postObj={filename:flowFile.relativePath,mime_type:flowFile.file.type,chunk_count:flowFile.chunks.length,chunk_index:chunk.offset,orderlineid:vm.orderlineid,vendororderid:vm.vendororderid};for(obj in chunk.getParams()){postObj["extraParams[0]["+obj+"]"]=""}var postData=$.param(postObj);loadSomethingService.loadSomething("/getS3Url.xsl",postData).then(function(data){vm.retPolicy=data.data;flowFile.url="https://dd-menu-images.s3.amazonaws.com/";chunk.preprocessFinished()},function(data){if(data.status!=401){flowFile.cancel();if(data.data.errWrapper){alertify.alert(data.data.errWrapper.error.message)}else{alertify.alert("An unknown error occured uploading.")}}})};vm.obj.flow.opts.target=function(flowFile,flowChunk,isTest){return flowFile.url}};vm.uploadSuccess=function(event,$flow){var postData=$.param({filename:vm.retPolicy.key});loadSomethingService.loadSomething("/confirmS3Url.xsl",postData).then(function(data){},function(data){if(data.status!=401){alertify.log("error confirming upload.")}});var ori=0;loadImage.parseMetaData(vm.obj.flow.files[0].file,function(data){if(data.exif){ori=data.exif.get("Orientation")}loadImage(vm.obj.flow.files[0].file,function(canvas){canvas.toBlob(function(blob2){vm.displayedImage=blob2;vm.isPreLoading=false;$scope.$digest()})},{maxWidth:113,maxHeight:71,canvas:true,orientation:ori})})};vm.checkFile=function(p_file,p_event){vm.checkFileFailure=false;vm.obj.flow.cancel();var imgType=p_file.getExtension().toLowerCase();if(imgType!="png"&&imgType!="jpg"&&imgType!="jpeg"&&imgType!="gif"){alert("File type must be a .png, .jpg, .jpeg, or .gif image");vm.checkFileFailure=true;return false}if(p_file.size>1e7){alert("Image size has to be under 10 megabytes. Please reduce the size in an image editor such as GIMP (gimp.org) and try again.");p_event.stopPropagation();p_event.preventDefault();vm.checkFileFailure=true;return false}else{return true}}};app.directive("ddOrderDetailsUpload",function(){return{restrict:"E",scope:{},bindToController:{vendororderid:"@"},controller:OrderDetailsUploadController,controllerAs:"orderdetails",templateUrl:"/v_12_orderDetailsUpload.html"}});var OrderDetailsUploadController=function(loadSomethingService){var vm=this;var postData=$.param({vendorOrderID:vm.vendororderid,includePhotoInfo:"1"});loadSomethingService.loadSomething("/viewWmOrder_app_json.xsp",postData).then(function(data){vm.branchOrder=data.data.branchOrder},function(data){if(data.status!=401){alertify.log("error confirming upload.")}});
1vm.sortItemsBy="['orderLineID', 'parentLineID']";vm.filterNormalItems=function(item){return item.parentLineID==null&&item.itemType==0};vm.filterSubItems=function(p_orderLineID){return function(p_subItem){return p_subItem.parentLineID!=null&&p_subItem.orderLineID==p_orderLineID}}};app.directive("myFlowImg",[function(){return{scope:false,require:"^flowInit",link:function(scope,element,attrs){var file=attrs.myFlowImg;scope.$watch(file,function(file){if(!file){return}var fileReader=new FileReader;fileReader.readAsDataURL(file);fileReader.onload=function(event){scope.$apply(function(){attrs.$set("src",event.target.result)})}})}}}]);app.directive("myFlowBg",[function(){return{scope:false,require:"^flowInit",link:function(scope,element,attrs){var file=attrs.myFlowBg;scope.$watch(file,function(file){if(!file){return}var fileReader=new FileReader;fileReader.readAsDataURL(file);fileReader.onload=function(event){scope.$apply(function(){attrs.$set("style","background-image:url("+event.target.result+")")})}})}}}]);app.directive("ddCurrentOrder",function($timeout,$interval,loadSomethingService,$uibModal){return{restrict:"E",scope:false,scope:{},bindToController:{currentOrder:"=",index:"="},controller:function($scope,$element){var vm=this;var stop=undefined;vm.stepStatus=vm.currentOrder.deliveryStatus;if(vm.currentOrder.status>=2){vm.stepStatus=4}if(vm.stepStatus<4){}vm.activeStepClasses=function(stepNum){var classList=[];vm.stepStatus>=stepNum?classList.push("active"):"";vm.stepStatus==stepNum?classList.push("current"):"";return classList};if(vm.currentOrder.status<2){stop=$interval(function(){intervalBody()},3e4,0,false)}vm.openDriverModal=function(p_currentOrder){if(p_currentOrder&&p_currentOrder.headshot&&p_currentOrder.headshot!="/custom/"){var modalInstance=$uibModal.open({templateUrl:"/v_12_driver-modal-content.html",backdrop:true,controller:function($scope,$uibModalInstance,driver){$scope.driver=driver;$scope.cancel=function(){$uibModalInstance.dismiss("cancel")}},resolve:{driver:function(){return vm.currentOrder}}});modalInstance.result.then(function(){},function(){})}};function intervalBody(){var postData=$.param({vendorOrderID:vm.currentOrder.vendorOrderID});loadSomethingService.loadSomething("/chekOrderStatus_app_json.xsp",postData).then(function(data){if(data.data.statusgram){var statusGram=data.data.statusgram;if(statusGram.stopnow){vm.stopInterval()}else{vm.currentOrder.deliveryStatus=statusGram.deliveryStatus;vm.currentOrder.status=statusGram.status;vm.currentOrder.firstname=statusGram.firstname;vm.currentOrder.headshot=statusGram.headshot;vm.currentOrder.fullshot=statusGram.fullshot;vm.currentOrder.rideshot=statusGram.rideshot;vm.currentOrder.name=statusGram.name;vm.currentOrder.ridecolor=statusGram.ridecolor;vm.currentOrder.ridemake=statusGram.ridemake;vm.currentOrder.ridemodel=statusGram.ridemodel;vm.currentOrder.bio=statusGram.bio;vm.currentOrder.etaminutes=statusGram.etaminutes;vm.currentOrder.etaJsTimestamp=statusGram.etaJsTimestamp;var origStepStatus=vm.stepStatus;if(statusGram.status>=2){vm.stepStatus=4;vm.stopInterval()}else{vm.stepStatus=statusGram.deliveryStatus}if(vm.stepStatus>=4){}if(origStepStatus!=vm.stepStatus){$(".dd_current-orders__list").removeClass("flashing-sync");setTimeout(function(){$(".dd_current-orders__list").addClass("flashing-sync")},0)}}}else{vm.stopInterval()}},function(data){if(data.status==404){vm.stopInterval()}})}vm.stopInterval=function(){if(angular.isDefined(stop)){$interval.cancel(stop);stop=undefined}};$scope.$on("$destroy",function(){vm.stopInterval()});function updateStatusBar(){if(vm.stepStatus<=0){vm.driverText="Waiting for driver"}else if(vm.stepStatus<=1.25){vm.driverText="Transmitted to Restaurant"}else if(vm.stepStatus<=1.35){if(vm.currentOrder.firstname){vm.driverText="Given to driver "+vm.currentOrder.firstname}else{vm.driverText="Given to driver"}}else{if(vm.currentOrder.firstname){vm.driverText="Confirmed by driver "+vm.currentOrder.firstname}else{vm.driverText="Confirmed by driver"}}var $fill=$element.find(".prog-bar-line__ruler");var newWidthFactor=(vm.stepStatus-1)/3;var newWidthPercentage=newWidthFactor*100;var offset="+ 0";if(vm.stepStatus==1){offset="+ 7"}else if(vm.stepStatus==4){offset="- 7"}$fill.css({width:"calc("+newWidthPercentage+"% "+offset+"px"})}$scope.$watch(angular.bind(vm,function(){return vm.currentOrder.triggerRefresh}),function(newVal){if(typeof newVal!=="undefined"){$timeout(function(){intervalBody()},0)}});$scope.$watch(angular.bind(vm,function(){return vm.stepStatus}),function(newVal){$timeout(function(){updateStatusBar()},0)})},controllerAs:"currentorder",templateUrl:"/v_15_current-order.html"}});app.directive("ddExpandableTicket",function($timeout){return{restrict:"A",link:function($scope,$element,$attrs){$timeout(function(){var $ticketItems=$element.find(".current-order__items__wrapper");var expandHeight=$element.find("ul.current-order__items")[0].clientHeight;var expandToggle=$element.find(".order-meta__details-button");$ticketItems.css({height:0});expandToggle.on("click",function(){if($ticketItems.height()==0){$t
1icketItems.css({height:expandHeight});expandToggle.text("hide items")}else{$ticketItems.css({height:0});expandToggle.text("view items & add photos")}})},1e3)}}});app.directive("ddAddPhotoClick",function(){return{restrict:"A",scope:{},bindToController:{orderitemid:"@"},controller:function($scope,$element){var vm=this;vm.touchEnabled=false},controllerAs:"addphotoclick",link:function(scope,el,attrs){$(el).on("touchend",null,function(e){scope.addphotoclick.touchEnabled=true;$("#imageupl"+scope.addphotoclick.orderitemid).trigger("click")});$(el).on("click",null,function(e){if(scope.addphotoclick.touchEnabled){}else{$("#imageupl"+scope.addphotoclick.orderitemid).trigger("click")}})}}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.