/*!
 * jQuery JavaScript Library v3.5.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2020-05-04T22:49Z
 */
!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(window,t){"use strict";var e=[],n=Object.getPrototypeOf,i=e.slice,r=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},o=e.push,a=e.indexOf,s={},l=s.toString,c=s.hasOwnProperty,u=c.toString,h=u.call(Object),d={},p=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},f=function(t){return null!=t&&t===t.window},m=window.document,g={type:!0,src:!0,nonce:!0,noModule:!0};function v(t,e,n){var i,r,o=(n=n||m).createElement("script");if(o.text=t,e)for(i in g)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function y(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?s[l.call(t)]||"object":typeof t}var b="3.5.1",w=function(t,e){return new w.fn.init(t,e)};function x(t){var e=!!t&&"length"in t&&t.length,n=y(t);return!p(t)&&!f(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}w.fn=w.prototype={jquery:b,constructor:w,length:0,toArray:function(){return i.call(this)},get:function(t){return null==t?i.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=w.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return w.each(this,t)},map:function(t){return this.pushStack(w.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:e.sort,splice:e.splice},w.extend=w.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||p(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(c&&i&&(w.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[e],o=r&&!Array.isArray(n)?[]:r||w.isPlainObject(n)?n:{},r=!1,a[e]=w.extend(c,o,i)):void 0!==i&&(a[e]=i));return a},w.extend({expando:"jQuery"+(b+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==l.call(t))&&(!(e=n(t))||"function"==typeof(i=c.call(e,"constructor")&&e.constructor)&&u.call(i)===h)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){v(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(x(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(x(Object(t))?w.merge(n,"string"==typeof t?[t]:t):o.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:a.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,o,a=0,s=[];if(x(t))for(i=t.length;a<i;a++)null!=(o=e(t[a],a,n))&&s.push(o);else for(a in t)null!=(o=e(t[a],a,n))&&s.push(o);return r(s)},guid:1,support:d}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=e[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){s["[object "+e+"]"]=e.toLowerCase()}));var C=
/*!
         * Sizzle CSS Selector Engine v2.3.5
         * https://sizzlejs.com/
         *
         * Copyright JS Foundation and other contributors
         * Released under the MIT license
         * https://js.foundation/
         *
         * Date: 2020-03-14
         */
function(window){var t,e,n,i,r,o,a,s,l,c,u,h,d,p,f,m,g,v,y,b="sizzle"+1*new Date,w=window.document,x=0,C=0,S=lt(),k=lt(),T=lt(),E=lt(),A=function(t,e){return t===e&&(u=!0),0},O={}.hasOwnProperty,_=[],P=_.pop,I=_.push,D=_.push,M=_.slice,L=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",V="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\[[\\x20\\t\\r\\n\\f]*("+V+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+V+"))|)"+j+"*\\]",H=":("+V+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",z=new RegExp(j+"+","g"),F=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),U=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),B=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),q=new RegExp(j+"|>"),W=new RegExp(H),G=new RegExp("^"+V+"$"),Y={ID:new RegExp("^#("+V+")"),CLASS:new RegExp("^\\.("+V+")"),TAG:new RegExp("^("+V+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(_=M.call(w.childNodes),w.childNodes),_[w.childNodes.length].nodeType}catch(t){D={apply:_.length?function(t,e){I.apply(t,M.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,n,i,r){var a,l,c,u,p,g,v,w=n&&n.ownerDocument,x=n?n.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return i;if(!r&&(h(n),n=n||d,f)){if(11!==x&&(p=Z.exec(t)))if(a=p[1]){if(9===x){if(!(c=n.getElementById(a)))return i;if(c.id===a)return i.push(c),i}else if(w&&(c=w.getElementById(a))&&y(n,c)&&c.id===a)return i.push(c),i}else{if(p[2])return D.apply(i,n.getElementsByTagName(t)),i;if((a=p[3])&&e.getElementsByClassName&&n.getElementsByClassName)return D.apply(i,n.getElementsByClassName(a)),i}if(e.qsa&&!E[t+" "]&&(!m||!m.test(t))&&(1!==x||"object"!==n.nodeName.toLowerCase())){if(v=t,w=n,1===x&&(q.test(t)||B.test(t))){for((w=tt.test(t)&&vt(n.parentNode)||n)===n&&e.scope||((u=n.getAttribute("id"))?u=u.replace(it,rt):n.setAttribute("id",u=b)),l=(g=o(t)).length;l--;)g[l]=(u?"#"+u:":scope")+" "+bt(g[l]);v=g.join(",")}try{return D.apply(i,w.querySelectorAll(v)),i}catch(e){E(t,!0)}finally{u===b&&n.removeAttribute("id")}}}return s(t.replace(F,"$1"),n,i,r)}function lt(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function ct(t){return t[b]=!0,t}function ut(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){for(var i=t.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=e}function dt(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ft(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function mt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ct((function(e){return e=+e,ct((function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in e=st.support={},r=st.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!K.test(e||n&&n.nodeName||"HTML")},h=st.setDocument=function(t){var i,o,a=t?t.ownerDocument||t:w;return a!=d&&9===a.nodeType&&a.documentElement?(p=(d=a).documentElement,f=!r(d),w!=d&&(o=d.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ot,!1):o.attachEvent&&o.attachEvent("onunload",ot)),e.scope=ut((function(t){return p.appendChild(t).appendChild(d.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),e.attributes=ut((function(t){return t.className="i",!t.getAttribute("className")})),e.getElementsByTagName=ut((function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length})),e.getElementsByClassName=J.test(d.getElementsByClassName),e.getById=ut((function(t){return p.appendChild(t).id=b,!d.getElementsByName||!d.getElementsByName(b).length})),e.getById?(n.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&f){var n=e.getElementById(t);return n?[n]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&f){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),n.find.TAG=e.getElementsByTagName?function(t,n){return void 0!==n.getElementsByTagName?n.getElementsByTagName(t):e.qsa?n.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},n.find.CLASS=e.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&f)return e.getElementsByClassName(t)},g=[],m=[],(e.qsa=J.test(d.querySelectorAll))&&(ut((function(t){var e;p.appendChild(t).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+R+")"),t.querySelectorAll("[id~="+b+"-]").length||m.push("~="),(e=d.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ut((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(e.matchesSelector=J.test(v=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ut((function(t){e.disconnectedMatch=v.call(t,"*"),v.call(t,"[s!='']:x"),g.push("!=",H)})),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),i=J.test(p.compareDocumentPosition),y=i||J.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=i?function(t,n){if(t===n)return u=!0,0;var i=!t.compareDocumentPosition-!n.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(n.ownerDocument||n)?t.compareDocumentPosition(n):1)||!e.sortDetached&&n.compareDocumentPosition(t)===i?t==d||t.ownerDocument==w&&y(w,t)?-1:n==d||n.ownerDocument==w&&y(w,n)?1:c?L(c,t)-L(c,n):0:4&i?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==d?-1:e==d?1:r?-1:o?1:c?L(c,t)-L(c,e):0;if(r===o)return dt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?dt(a[i],s[i]):a[i]==w?-1:s[i]==w?1:0},d):d},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,n){if(h(t),e.matchesSelector&&f&&!E[n+" "]&&(!g||!g.test(n))&&(!m||!m.test(n)))try{var i=v.call(t,n);if(i||e.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){E(n,!0)}return st(n,d,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=d&&h(t),y(t,e)},st.attr=function(t,i){(t.ownerDocument||t)!=d&&h(t);var r=n.attrHandle[i.toLowerCase()],o=r&&O.call(n.attrHandle,i.toLowerCase())?r(t,i,!f):void 0;return void 0!==o?o:e.attributes||!f?t.getAttribute(i):(o=t.getAttributeNode(i))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(it,rt)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var n,i=[],r=0,o=0;if(u=!e.detectDuplicates,c=!e.sortStable&&t.slice(0),t.sort(A),u){for(;n=t[o++];)n===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return c=null,t},i=st.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},n=st.selectors={cacheLength:50,createPseudo:ct,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=o(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+j+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(i){var r=st.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(z," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,u,h,d,p,f,m=o!==a?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,w=!1;if(g){if(o){for(;m;){for(d=e;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&y){for(w=(p=(c=(u=(h=(d=g)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===x&&c[1])&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(w=p=0)||f.pop();)if(1===d.nodeType&&++w&&d===e){u[t]=[x,p,w];break}}else if(y&&(w=p=(c=(u=(h=(d=e)[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===x&&c[1]),!1===w)for(;(d=++p&&d&&d[m]||(w=p=0)||f.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++w||(y&&((u=(h=d[b]||(d[b]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[x,w]),d!==e)););return(w-=r)===i||w%i==0&&w/i>=0}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return r[b]?r(e):r.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){for(var i,o=r(t,e),a=o.length;a--;)t[i=L(t,o[a])]=!(n[i]=o[a])})):function(t){return r(t,0,i)}):r}},pseudos:{not:ct((function(t){var e=[],n=[],i=a(t.replace(F,"$1"));return i[b]?ct((function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}})),has:ct((function(t){return function(e){return st(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:ct((function(t){return G.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=f?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=window.location&&window.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===p},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt((function(){return[0]})),last:gt((function(t,e){return[e-1]})),eq:gt((function(t,e,n){return[n<0?n+e:n]})),even:gt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:gt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:gt((function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t})),gt:gt((function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t}))}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=pt(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=ft(t);function yt(){}function bt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function wt(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=C++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var c,u,h,d=[x,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(u=(h=e[b]||(e[b]={}))[e.uniqueID]||(h[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((c=u[o])&&c[0]===x&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=t(e,n,l))return!0}return!1}}function $t(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function xt(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),c&&e.push(s)));return a}function Ct(t,e,n,i,r,o){return i&&!i[b]&&(i=Ct(i)),r&&!r[b]&&(r=Ct(r,o)),ct((function(o,a,s,l){var c,u,h,d=[],p=[],f=a.length,m=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)st(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),g=!t||!o&&e?m:xt(m,d,t,s,l),v=n?r||(o?t:f||i)?[]:a:g;if(n&&n(g,v,s,l),i)for(c=xt(v,p),i(c,[],s,l),u=c.length;u--;)(h=c[u])&&(v[p[u]]=!(g[p[u]]=h));if(o){if(r||t){if(r){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(g[u]=h);r(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=r?L(o,h):d[u])>-1&&(o[c]=!(a[c]=h))}}else v=xt(v===a?v.splice(f,v.length):v),r?r(null,a,v,l):D.apply(a,v)}))}function St(t){for(var e,i,r,o=t.length,a=n.relative[t[0].type],s=a||n.relative[" "],c=a?1:0,u=wt((function(t){return t===e}),s,!0),h=wt((function(t){return L(e,t)>-1}),s,!0),d=[function(t,n,i){var r=!a&&(i||n!==l)||((e=n).nodeType?u(t,n,i):h(t,n,i));return e=null,r}];c<o;c++)if(i=n.relative[t[c].type])d=[wt($t(d),i)];else{if((i=n.filter[t[c].type].apply(null,t[c].matches))[b]){for(r=++c;r<o&&!n.relative[t[r].type];r++);return Ct(c>1&&$t(d),c>1&&bt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(F,"$1"),i,c<r&&St(t.slice(c,r)),r<o&&St(t=t.slice(r)),r<o&&bt(t))}d.push(i)}return $t(d)}return yt.prototype=n.filters=n.pseudos,n.setFilters=new yt,o=st.tokenize=function(t,e){var i,r,o,a,s,l,c,u=k[t+" "];if(u)return e?0:u.slice(0);for(s=t,l=[],c=n.preFilter;s;){for(a in i&&!(r=U.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),i=!1,(r=B.exec(s))&&(i=r.shift(),o.push({value:i,type:r[0].replace(F," ")}),s=s.slice(i.length)),n.filter)!(r=Y[a].exec(s))||c[a]&&!(r=c[a](r))||(i=r.shift(),o.push({value:i,type:a,matches:r}),s=s.slice(i.length));if(!i)break}return e?s.length:s?st.error(t):k(t,l).slice(0)},a=st.compile=function(t,e){var i,r=[],a=[],s=T[t+" "];if(!s){for(e||(e=o(t)),i=e.length;i--;)(s=St(e[i]))[b]?r.push(s):a.push(s);s=T(t,function(t,e){var i=e.length>0,r=t.length>0,o=function(o,a,s,c,u){var p,m,g,v=0,y="0",b=o&&[],w=[],C=l,S=o||r&&n.find.TAG("*",u),k=x+=null==C?1:Math.random()||.1,T=S.length;for(u&&(l=a==d||a||u);y!==T&&null!=(p=S[y]);y++){if(r&&p){for(m=0,a||p.ownerDocument==d||(h(p),s=!f);g=t[m++];)if(g(p,a||d,s)){c.push(p);break}u&&(x=k)}i&&((p=!g&&p)&&v--,o&&b.push(p))}if(v+=y,i&&y!==v){for(m=0;g=e[m++];)g(b,w,a,s);if(o){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=P.call(c));w=xt(w)}D.apply(c,w),u&&!o&&w.length>0&&v+e.length>1&&st.uniqueSort(c)}return u&&(x=k,l=C),b};return i?ct(o):o}(a,r)),s.selector=t}return s},s=st.select=function(t,e,i,r){var s,l,c,u,h,d="function"==typeof t&&t,p=!r&&o(t=d.selector||t);if(i=i||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&f&&n.relative[l[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(et,nt),e)||[])[0]))return i;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(s=Y.needsContext.test(t)?0:l.length;s--&&(c=l[s],!n.relative[u=c.type]);)if((h=n.find[u])&&(r=h(c.matches[0].replace(et,nt),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(s,1),!(t=r.length&&bt(l)))return D.apply(i,r),i;break}}return(d||a(t,p))(r,e,!f,i,!e||tt.test(t)&&vt(e.parentNode)||e),i},e.sortStable=b.split("").sort(A).join("")===b,e.detectDuplicates=!!u,h(),e.sortDetached=ut((function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))})),ut((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ht("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),e.attributes&&ut((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ht("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ut((function(t){return null==t.getAttribute("disabled")}))||ht(R,(function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null})),st}(window);w.find=C,w.expr=C.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var S=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&w(t).is(n))break;i.push(t)}return i},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},T=w.expr.match.needsContext;function E(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function O(t,e,n){return p(e)?w.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?w.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?w.grep(t,(function(t){return a.call(e,t)>-1!==n})):w.filter(e,t,n)}w.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?w.find.matchesSelector(i,t)?[i]:[]:w.find.matches(t,w.grep(e,(function(t){return 1===t.nodeType})))},w.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(w(t).filter((function(){for(e=0;e<i;e++)if(w.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)w.find(t,r[e],n);return i>1?w.uniqueSort(n):n},filter:function(t){return this.pushStack(O(this,t||[],!1))},not:function(t){return this.pushStack(O(this,t||[],!0))},is:function(t){return!!O(this,"string"==typeof t&&T.test(t)?w(t):t||[],!1).length}});var _,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||_,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:P.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:m,!0)),A.test(i[1])&&w.isPlainObject(e))for(i in e)p(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=m.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):p(t)?void 0!==n.ready?n.ready(t):t(w):w.makeArray(t,this)}).prototype=w.fn,_=w(m);var I=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function M(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(w.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&w(t);if(!T.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?a.call(w(t),this[0]):a.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return S(t,"parentNode")},parentsUntil:function(t,e,n){return S(t,"parentNode",n)},next:function(t){return M(t,"nextSibling")},prev:function(t){return M(t,"previousSibling")},nextAll:function(t){return S(t,"nextSibling")},prevAll:function(t){return S(t,"previousSibling")},nextUntil:function(t,e,n){return S(t,"nextSibling",n)},prevUntil:function(t,e,n){return S(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(E(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},(function(t,e){w.fn[t]=function(n,i){var r=w.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=w.filter(i,r)),this.length>1&&(D[t]||w.uniqueSort(r),I.test(t)&&r.reverse()),this.pushStack(r)}}));var L=/[^\x20\t\r\n\f]+/g;function R(t){return t}function j(t){throw t}function V(t,e,n,i){var r;try{t&&p(r=t.promise)?r.call(t).done(e).fail(n):t&&p(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}w.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return w.each(t.match(L)||[],(function(t,n){e[n]=!0})),e}(t):w.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){w.each(n,(function(n,i){p(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==y(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return w.each(arguments,(function(t,e){for(var n;(n=w.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?w.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},w.extend({Deferred:function(t){var e=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return w.Deferred((function(n){w.each(e,(function(e,i){var o=p(t[i[4]])&&t[i[4]];r[i[1]]((function(){var t=o&&o.apply(this,arguments);t&&p(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var r=0;function o(t,e,n,i){return function(){var a=this,s=arguments,l=function(){var l,c;if(!(t<r)){if((l=n.apply(a,s))===e.promise())throw new TypeError("Thenable self-resolution");c=l&&("object"==typeof l||"function"==typeof l)&&l.then,p(c)?i?c.call(l,o(r,e,R,i),o(r,e,j,i)):(r++,c.call(l,o(r,e,R,i),o(r,e,j,i),o(r,e,R,e.notifyWith))):(n!==R&&(a=void 0,s=[l]),(i||e.resolveWith)(a,s))}},c=i?l:function(){try{l()}catch(i){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(i,c.stackTrace),t+1>=r&&(n!==j&&(a=void 0,s=[i]),e.rejectWith(a,s))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),window.setTimeout(c))}}return w.Deferred((function(r){e[0][3].add(o(0,r,p(i)?i:R,r.notifyWith)),e[1][3].add(o(0,r,p(t)?t:R)),e[2][3].add(o(0,r,p(n)?n:j))})).promise()},promise:function(t){return null!=t?w.extend(t,i):i}},r={};return w.each(e,(function(t,o){var a=o[2],s=o[5];i[o[1]]=a.add,s&&a.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(o[3].fire),r[o[0]]=function(){return r[o[0]+"With"](this===r?void 0:this,arguments),this},r[o[0]+"With"]=a.fireWith})),i.promise(r),t&&t.call(r,r),r},when:function(t){var e=arguments.length,n=e,r=Array(n),o=i.call(arguments),a=w.Deferred(),s=function(t){return function(n){r[t]=this,o[t]=arguments.length>1?i.call(arguments):n,--e||a.resolveWith(r,o)}};if(e<=1&&(V(t,a.done(s(n)).resolve,a.reject,!e),"pending"===a.state()||p(o[n]&&o[n].then)))return a.then();for(;n--;)V(o[n],s(n),a.reject);return a.promise()}});var N=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,e){window.console&&window.console.warn&&t&&N.test(t.name)&&window.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},w.readyException=function(t){window.setTimeout((function(){throw t}))};var H=w.Deferred();function z(){m.removeEventListener("DOMContentLoaded",z),window.removeEventListener("load",z),w.ready()}w.fn.ready=function(t){return H.then(t).catch((function(t){w.readyException(t)})),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==t&&--w.readyWait>0||H.resolveWith(m,[w]))}}),w.ready.then=H.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?window.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",z),window.addEventListener("load",z));var F=function(t,e,n,i,r,o,a){var s=0,l=t.length,c=null==n;if("object"===y(n))for(s in r=!0,n)F(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,p(i)||(a=!0),c&&(a?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(w(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:c?e.call(t):l?e(t[0],n):o},U=/^-ms-/,B=/-([a-z])/g;function q(t,e){return e.toUpperCase()}function W(t){return t.replace(U,"ms-").replace(B,q)}var G=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Y(){this.expando=w.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(t){var e=t[this.expando];return e||(e={},G(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[W(e)]=n;else for(i in e)r[W(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][W(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(W):(e=W(e))in i?[e]:e.match(L)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||w.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!w.isEmptyObject(e)}};var K=new Y,X=new Y,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Z(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Q.test(t)?JSON.parse(t):t)}(n)}catch(t){}X.set(t,e,n)}else n=void 0;return n}w.extend({hasData:function(t){return X.hasData(t)||K.hasData(t)},data:function(t,e,n){return X.access(t,e,n)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,n){return K.access(t,e,n)},_removeData:function(t,e){K.remove(t,e)}}),w.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=X.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=W(i.slice(5)),Z(o,i,r[i]));K.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){X.set(this,t)})):F(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=X.get(o,t))||void 0!==(n=Z(o,t))?n:void 0;this.each((function(){X.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){X.remove(this,t)}))}}),w.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=K.get(t,e),n&&(!i||Array.isArray(n)?i=K.access(t,e,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=w.queue(t,e),i=n.length,r=n.shift(),o=w._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){w.dequeue(t,e)}),o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return K.get(t,n)||K.access(t,n,{empty:w.Callbacks("once memory").add((function(){K.remove(t,[e+"queue",n])}))})}}),w.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?w.queue(this[0],t):void 0===e?this:this.each((function(){var n=w.queue(this,t,e);w._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&w.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){w.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=w.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=K.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),nt=["Top","Right","Bottom","Left"],it=m.documentElement,rt=function(t){return w.contains(t.ownerDocument,t)},ot={composed:!0};it.getRootNode&&(rt=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(ot)===t.ownerDocument});var at=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&rt(t)&&"none"===w.css(t,"display")};function st(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return w.css(t,e,"")},l=s(),c=n&&n[3]||(w.cssNumber[e]?"":"px"),u=t.nodeType&&(w.cssNumber[e]||"px"!==c&&+l)&&et.exec(w.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)w.style(t,e,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,w.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var lt={};function ct(t){var e,n=t.ownerDocument,i=t.nodeName,r=lt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=w.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),lt[i]=r,r)}function ut(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=K.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&at(i)&&(r[o]=ct(i))):"none"!==n&&(r[o]="none",K.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}w.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){at(this)?w(this).show():w(this).hide()}))}});var ht,dt,pt=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,mt=/^$|^module$|\/(?:java|ecma)script/i;ht=m.createDocumentFragment().appendChild(m.createElement("div")),(dt=m.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),ht.appendChild(dt),d.checkClone=ht.cloneNode(!0).cloneNode(!0).lastChild.checked,ht.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!ht.cloneNode(!0).lastChild.defaultValue,ht.innerHTML="<option></option>",d.option=!!ht.lastChild;var gt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function vt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&E(t,e)?w.merge([t],n):n}function yt(t,e){for(var n=0,i=t.length;n<i;n++)K.set(t[n],"globalEval",!e||K.get(e[n],"globalEval"))}gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,d.option||(gt.optgroup=gt.option=[1,"<select multiple='multiple'>","</select>"]);var bt=/<|&#?\w+;/;function wt(t,e,n,i,r){for(var o,a,s,l,c,u,h=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===y(o))w.merge(d,o.nodeType?[o]:o);else if(bt.test(o)){for(a=a||h.appendChild(e.createElement("div")),s=(ft.exec(o)||["",""])[1].toLowerCase(),l=gt[s]||gt._default,a.innerHTML=l[1]+w.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;w.merge(d,a.childNodes),(a=h.firstChild).textContent=""}else d.push(e.createTextNode(o));for(h.textContent="",p=0;o=d[p++];)if(i&&w.inArray(o,i)>-1)r&&r.push(o);else if(c=rt(o),a=vt(h.appendChild(o),"script"),c&&yt(a),n)for(u=0;o=a[u++];)mt.test(o.type||"")&&n.push(o);return h}var $t=/^key/,xt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ct=/^([^.]*)(?:\.(.+)|)/;function St(){return!0}function kt(){return!1}function Tt(t,e){return t===function(){try{return m.activeElement}catch(t){}}()==("focus"===e)}function Et(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)Et(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=kt;else if(!r)return t;return 1===o&&(a=r,r=function(t){return w().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=w.guid++)),t.each((function(){w.event.add(this,e,r,i,n)}))}function At(t,e,n){n?(K.set(t,e,!1),w.event.add(t,e,{namespace:!1,handler:function(t){var r,o,a=K.get(this,e);if(1&t.isTrigger&&this[e]){if(a.length)(w.event.special[e]||{}).delegateType&&t.stopPropagation();else if(a=i.call(arguments),K.set(this,e,a),r=n(this,e),this[e](),a!==(o=K.get(this,e))||r?K.set(this,e,!1):o={},a!==o)return t.stopImmediatePropagation(),t.preventDefault(),o.value}else a.length&&(K.set(this,e,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,e)&&w.event.add(t,e,St)}w.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,c,u,h,d,p,f,m,g=K.get(t);if(G(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&w.find.matchesSelector(it,r),n.guid||(n.guid=w.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(L)||[""]).length;c--;)p=m=(s=Ct.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p&&(h=w.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,h=w.event.special[p]||{},u=w.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,f,a)||t.addEventListener&&t.addEventListener(p,a)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),w.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,c,u,h,d,p,f,m,g=K.hasData(t)&&K.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(L)||[""]).length;c--;)if(p=m=(s=Ct.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(h=w.event.special[p]||{},d=l[p=(i?h.delegateType:h.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)u=d[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,f,g.handle)||w.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)w.event.remove(t,p+e[c],n,i,!0);w.isEmptyObject(l)&&K.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=new Array(arguments.length),l=w.event.fix(t),c=(K.get(this,"events")||Object.create(null))[l.type]||[],u=w.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=w.event.handlers.call(this,l,c),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((w.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?w(r,this).index(c)>-1:w.find(r,this,null,[c]).length),a[r]&&o.push(i);o.length&&s.push({elem:c,handlers:o})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(w.Event.prototype,t,{enumerable:!0,configurable:!0,get:p(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return pt.test(e.type)&&e.click&&E(e,"input")&&At(e,"click",St),!1},trigger:function(t){var e=this||t;return pt.test(e.type)&&e.click&&E(e,"input")&&At(e,"click"),!0},_default:function(t){var e=t.target;return pt.test(e.type)&&e.click&&E(e,"input")&&K.get(e,"click")||E(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},w.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?St:kt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:kt,isPropagationStopped:kt,isImmediatePropagationStopped:kt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=St,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=St,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=St,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&$t.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&xt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(t,e){w.event.special[t]={setup:function(){return At(this,t,Tt),!1},trigger:function(){return At(this,t),!0},delegateType:e}})),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){w.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,r=t.relatedTarget,o=t.handleObj;return r&&(r===i||w.contains(i,r))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),w.fn.extend({on:function(t,e,n,i){return Et(this,t,e,n,i)},one:function(t,e,n,i){return Et(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,w(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=kt),this.each((function(){w.event.remove(this,t,n,e)}))}});var Ot=/<script|<style|<link/i,_t=/checked\s*(?:[^=]|=\s*.checked.)/i,Pt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function It(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Mt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Lt(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(K.hasData(t)&&(s=K.get(t).events))for(r in K.remove(e,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)w.event.add(e,r,s[r][n]);X.hasData(t)&&(o=X.access(t),a=w.extend({},o),X.set(e,a))}}function Rt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&pt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function jt(t,e,n,i){e=r(e);var o,a,s,l,c,u,h=0,f=t.length,m=f-1,g=e[0],y=p(g);if(y||f>1&&"string"==typeof g&&!d.checkClone&&_t.test(g))return t.each((function(r){var o=t.eq(r);y&&(e[0]=g.call(this,r,o.html())),jt(o,e,n,i)}));if(f&&(a=(o=wt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===o.childNodes.length&&(o=a),a||i)){for(l=(s=w.map(vt(o,"script"),Dt)).length;h<f;h++)c=o,h!==m&&(c=w.clone(c,!0,!0),l&&w.merge(s,vt(c,"script"))),n.call(t[h],c,h);if(l)for(u=s[s.length-1].ownerDocument,w.map(s,Mt),h=0;h<l;h++)c=s[h],mt.test(c.type||"")&&!K.access(c,"globalEval")&&w.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&!c.noModule&&w._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):v(c.textContent.replace(Pt,""),c,u))}return t}function Vt(t,e,n){for(var i,r=e?w.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||w.cleanData(vt(i)),i.parentNode&&(n&&rt(i)&&yt(vt(i,"script")),i.parentNode.removeChild(i));return t}w.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s=t.cloneNode(!0),l=rt(t);if(!(d.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(a=vt(s),i=0,r=(o=vt(t)).length;i<r;i++)Rt(o[i],a[i]);if(e)if(n)for(o=o||vt(t),a=a||vt(s),i=0,r=o.length;i<r;i++)Lt(o[i],a[i]);else Lt(t,s);return(a=vt(s,"script")).length>0&&yt(a,!l&&vt(t,"script")),s},cleanData:function(t){for(var e,n,i,r=w.event.special,o=0;void 0!==(n=t[o]);o++)if(G(n)){if(e=n[K.expando]){if(e.events)for(i in e.events)r[i]?w.event.remove(n,i):w.removeEvent(n,i,e.handle);n[K.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),w.fn.extend({detach:function(t){return Vt(this,t,!0)},remove:function(t){return Vt(this,t)},text:function(t){return F(this,(function(t){return void 0===t?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return jt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||It(this,t).appendChild(t)}))},prepend:function(){return jt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=It(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return jt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return jt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(vt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return w.clone(this,t,e)}))},html:function(t){return F(this,(function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ot.test(t)&&!gt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(w.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return jt(this,arguments,(function(e){var n=this.parentNode;w.inArray(this,t)<0&&(w.cleanData(vt(this)),n&&n.replaceChild(e,this))}),t)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){w.fn[t]=function(t){for(var n,i=[],r=w(t),a=r.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),w(r[s])[e](n),o.apply(i,n.get());return this.pushStack(i)}}));var Nt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Ht=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=window),e.getComputedStyle(t)},zt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Ft=new RegExp(nt.join("|"),"i");function Ut(t,e,n){var i,r,o,a,s=t.style;return(n=n||Ht(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||rt(t)||(a=w.style(t,e)),!d.pixelBoxStyles()&&Nt.test(a)&&Ft.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Bt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",it.appendChild(l).appendChild(c);var t=window.getComputedStyle(c);n="1%"!==t.top,s=12===e(t.marginLeft),c.style.right="60%",o=36===e(t.right),i=36===e(t.width),c.style.position="absolute",r=12===e(c.offsetWidth/3),it.removeChild(l),c=null}}function e(t){return Math.round(parseFloat(t))}var n,i,r,o,a,s,l=m.createElement("div"),c=m.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(d,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),s},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,e,n,i;return null==a&&(t=m.createElement("table"),e=m.createElement("tr"),n=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px",e.style.height="1px",n.style.height="9px",it.appendChild(t).appendChild(e).appendChild(n),i=window.getComputedStyle(e),a=parseInt(i.height)>3,it.removeChild(t)),a}}))}();var qt=["Webkit","Moz","ms"],Wt=m.createElement("div").style,Gt={};function Yt(t){var e=w.cssProps[t]||Gt[t];return e||(t in Wt?t:Gt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=qt.length;n--;)if((t=qt[n]+e)in Wt)return t}(t)||t)}var Kt=/^(none|table(?!-c[ea]).+)/,Xt=/^--/,Qt={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:"0",fontWeight:"400"};function Zt(t,e,n){var i=et.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function te(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=w.css(t,n+nt[a],!0,r)),i?("content"===n&&(l-=w.css(t,"padding"+nt[a],!0,r)),"margin"!==n&&(l-=w.css(t,"border"+nt[a]+"Width",!0,r))):(l+=w.css(t,"padding"+nt[a],!0,r),"padding"!==n?l+=w.css(t,"border"+nt[a]+"Width",!0,r):s+=w.css(t,"border"+nt[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function ee(t,e,n){var i=Ht(t),r=(!d.boxSizingReliable()||n)&&"border-box"===w.css(t,"boxSizing",!1,i),o=r,a=Ut(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(Nt.test(a)){if(!n)return a;a="auto"}return(!d.boxSizingReliable()&&r||!d.reliableTrDimensions()&&E(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===w.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+te(t,e,n||(r?"border":"content"),o,i,a)+"px"}function ne(t,e,n,i,r){return new ne.prototype.init(t,e,n,i,r)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ut(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=W(e),l=Xt.test(e),c=t.style;if(l||(e=Yt(s)),a=w.cssHooks[e]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:c[e];"string"===(o=typeof n)&&(r=et.exec(n))&&r[1]&&(n=st(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(w.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,o,a,s=W(e);return Xt.test(e)||(e=Yt(s)),(a=w.cssHooks[e]||w.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Ut(t,e,i)),"normal"===r&&e in Jt&&(r=Jt[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),w.each(["height","width"],(function(t,e){w.cssHooks[e]={get:function(t,n,i){if(n)return!Kt.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ee(t,e,i):zt(t,Qt,(function(){return ee(t,e,i)}))},set:function(t,n,i){var r,o=Ht(t),a=!d.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===w.css(t,"boxSizing",!1,o),l=i?te(t,e,i,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-te(t,e,"border",!1,o)-.5)),l&&(r=et.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=w.css(t,e)),Zt(0,n,l)}}})),w.cssHooks.marginLeft=Bt(d.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||t.getBoundingClientRect().left-zt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(t,e){w.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+nt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(w.cssHooks[t+e].set=Zt)})),w.fn.extend({css:function(t,e){return F(this,(function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Ht(t),r=e.length;a<r;a++)o[e[a]]=w.css(t,e[a],!1,i);return o}return void 0!==n?w.style(t,e,n):w.css(t,e)}),t,e,arguments.length>1)}}),w.Tween=ne,ne.prototype={constructor:ne,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var t=ne.propHooks[this.prop];return t&&t.get?t.get(this):ne.propHooks._default.get(this)},run:function(t){var e,n=ne.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ne.propHooks._default.set(this),this}},ne.prototype.init.prototype=ne.prototype,ne.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=w.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||!w.cssHooks[t.prop]&&null==t.elem.style[Yt(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}},ne.propHooks.scrollTop=ne.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=ne.prototype.init,w.fx.step={};var ie,re,oe=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;function se(){re&&(!1===m.hidden&&window.requestAnimationFrame?window.requestAnimationFrame(se):window.setTimeout(se,w.fx.interval),w.fx.tick())}function le(){return window.setTimeout((function(){ie=void 0})),ie=Date.now()}function ce(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=nt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function ue(t,e,n){for(var i,r=(he.tweeners[e]||[]).concat(he.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function he(t,e,n){var i,r,o=0,a=he.prefilters.length,s=w.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=ie||le(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(i);return s.notifyWith(t,[c,i,n]),i<1&&a?n:(a||s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c]),!1)},c=s.promise({elem:t,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:e,originalOptions:n,startTime:ie||le(),duration:n.duration,tweens:[],createTween:function(e,n){var i=w.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(s.notifyWith(t,[c,1,0]),s.resolveWith(t,[c,e])):s.rejectWith(t,[c,e]),this}}),u=c.props;for(!function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=W(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=w.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(u,c.opts.specialEasing);o<a;o++)if(i=he.prefilters[o].call(c,t,u,c.opts))return p(i.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return w.map(u,ue,c),p(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),w.fx.timer(w.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(he,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return st(n.elem,t,et.exec(e),n),n}]},tweener:function(t,e){p(t)?(e=t,t=["*"]):t=t.match(L);for(var n,i=0,r=t.length;i<r;i++)n=t[i],he.tweeners[n]=he.tweeners[n]||[],he.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,c,u,h="width"in e||"height"in e,d=this,p={},f=t.style,m=t.nodeType&&at(t),g=K.get(t,"fxshow");for(i in n.queue||(null==(a=w._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,w.queue(t,"fx").length||a.empty.fire()}))}))),e)if(r=e[i],oe.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||w.style(t,i)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(p))for(i in h&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=K.get(t,"display")),"none"===(u=w.css(t,"display"))&&(c?u=c:(ut([t],!0),c=t.style.display||c,u=w.css(t,"display"),ut([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===w.css(t,"float")&&(l||(d.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=K.access(t,"fxshow",{display:c}),o&&(g.hidden=!m),m&&ut([t],!0),d.done((function(){for(i in m||ut([t]),K.remove(t,"fxshow"),p)w.style(t,i,p[i])}))),l=ue(m?g[i]:0,i,d),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?he.prefilters.unshift(t):he.prefilters.push(t)}}),w.speed=function(t,e,n){var i=t&&"object"==typeof t?w.extend({},t):{complete:n||!n&&e||p(t)&&t,duration:t,easing:n&&e||e&&!p(e)&&e};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){p(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(t,e,n,i){return this.filter(at).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=w.isEmptyObject(t),o=w.speed(e,n,i),a=function(){var e=he(this,w.extend({},t),o);(r||K.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",o=w.timers,a=K.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ae.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||w.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=K.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=w.timers,a=i?i.length:0;for(n.finish=!0,w.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish}))}}),w.each(["toggle","show","hide"],(function(t,e){var n=w.fn[e];w.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ce(e,!0),t,i,r)}})),w.each({slideDown:ce("show"),slideUp:ce("hide"),slideToggle:ce("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){w.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),w.timers=[],w.fx.tick=function(){var t,e=0,n=w.timers;for(ie=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||w.fx.stop(),ie=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){re||(re=!0,se())},w.fx.stop=function(){re=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,e){return t=w.fx&&w.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var i=window.setTimeout(e,t);n.stop=function(){window.clearTimeout(i)}}))},function(){var t=m.createElement("input"),e=m.createElement("select").appendChild(m.createElement("option"));t.type="checkbox",d.checkOn=""!==t.value,d.optSelected=e.selected,(t=m.createElement("input")).value="t",t.type="radio",d.radioValue="t"===t.value}();var de,pe=w.expr.attrHandle;w.fn.extend({attr:function(t,e){return F(this,w.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){w.removeAttr(this,t)}))}}),w.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?w.prop(t,e,n):(1===o&&w.isXMLDoc(t)||(r=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?de:void 0)),void 0!==n?null===n?void w.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=w.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!d.radioValue&&"radio"===e&&E(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(L);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),de={set:function(t,e,n){return!1===e?w.removeAttr(t,n):t.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=pe[e]||w.find.attr;pe[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=pe[a],pe[a]=r,r=null!=n(t,e,i)?a:null,pe[a]=o),r}}));var fe=/^(?:input|select|textarea|button)$/i,me=/^(?:a|area)$/i;function ge(t){return(t.match(L)||[]).join(" ")}function ve(t){return t.getAttribute&&t.getAttribute("class")||""}function ye(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(L)||[]}w.fn.extend({prop:function(t,e){return F(this,w.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[w.propFix[t]||t]}))}}),w.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(t)||(e=w.propFix[e]||e,r=w.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):fe.test(t.nodeName)||me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(w.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(p(t))return this.each((function(e){w(this).addClass(t.call(this,e,ve(this)))}));if((e=ye(t)).length)for(;n=this[l++];)if(r=ve(n),i=1===n.nodeType&&" "+ge(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=ge(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(p(t))return this.each((function(e){w(this).removeClass(t.call(this,e,ve(this)))}));if(!arguments.length)return this.attr("class","");if((e=ye(t)).length)for(;n=this[l++];)if(r=ve(n),i=1===n.nodeType&&" "+ge(r)+" "){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(s=ge(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):p(t)?this.each((function(n){w(this).toggleClass(t.call(this,n,ve(this),e),e)})):this.each((function(){var e,r,o,a;if(i)for(r=0,o=w(this),a=ye(t);e=a[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=ve(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":K.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+ge(ve(n))+" ").indexOf(e)>-1)return!0;return!1}});var be=/\r/g;w.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=p(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,w(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=w.map(r,(function(t){return null==t?"":t+""}))),(e=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(be,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:ge(w.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(e=w(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=w.makeArray(e),a=r.length;a--;)((i=r[a]).selected=w.inArray(w.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=w.inArray(w(t).val(),e)>-1}},d.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),d.focusin="onfocusin"in window;var we=/^(?:focusinfocus|focusoutblur)$/,$e=function(t){t.stopPropagation()};w.extend(w.event,{trigger:function(t,e,n,i){var r,o,a,s,l,u,h,d,g=[n||m],v=c.call(t,"type")?t.type:t,y=c.call(t,"namespace")?t.namespace.split("."):[];if(o=d=a=n=n||m,3!==n.nodeType&&8!==n.nodeType&&!we.test(v+w.event.triggered)&&(v.indexOf(".")>-1&&(y=v.split("."),v=y.shift(),y.sort()),l=v.indexOf(":")<0&&"on"+v,(t=t[w.expando]?t:new w.Event(v,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:w.makeArray(e,[t]),h=w.event.special[v]||{},i||!h.trigger||!1!==h.trigger.apply(n,e))){if(!i&&!h.noBubble&&!f(n)){for(s=h.delegateType||v,we.test(s+v)||(o=o.parentNode);o;o=o.parentNode)g.push(o),a=o;a===(n.ownerDocument||m)&&g.push(a.defaultView||a.parentWindow||window)}for(r=0;(o=g[r++])&&!t.isPropagationStopped();)d=o,t.type=r>1?s:h.bindType||v,(u=(K.get(o,"events")||Object.create(null))[t.type]&&K.get(o,"handle"))&&u.apply(o,e),(u=l&&o[l])&&u.apply&&G(o)&&(t.result=u.apply(o,e),!1===t.result&&t.preventDefault());return t.type=v,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(g.pop(),e)||!G(n)||l&&p(n[v])&&!f(n)&&((a=n[l])&&(n[l]=null),w.event.triggered=v,t.isPropagationStopped()&&d.addEventListener(v,$e),n[v](),t.isPropagationStopped()&&d.removeEventListener(v,$e),w.event.triggered=void 0,a&&(n[l]=a)),t.result}},simulate:function(t,e,n){var i=w.extend(new w.Event,n,{type:t,isSimulated:!0});w.event.trigger(i,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each((function(){w.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return w.event.trigger(t,e,n,!0)}}),d.focusin||w.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){w.event.simulate(e,t.target,w.event.fix(t))};w.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=K.access(i,e);r||i.addEventListener(t,n,!0),K.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=K.access(i,e)-1;r?K.access(i,e,r):(i.removeEventListener(t,n,!0),K.remove(i,e))}}}));var xe=window.location,Ce={guid:Date.now()},Se=/\?/;w.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new window.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),e};var ke=/\[\]$/,Te=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;function Oe(t,e,n,i){var r;if(Array.isArray(e))w.each(e,(function(e,r){n||ke.test(t)?i(t,r):Oe(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==y(e))i(t,e);else for(r in e)Oe(t+"["+r+"]",e[r],n,i)}w.param=function(t,e){var n,i=[],r=function(t,e){var n=p(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,(function(){r(this.name,this.value)}));else for(n in t)Oe(n,t[n],e,r);return i.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Ae.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!pt.test(t))})).map((function(t,e){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(t){return{name:e.name,value:t.replace(Te,"\r\n")}})):{name:e.name,value:n.replace(Te,"\r\n")}})).get()}});var _e=/%20/g,Pe=/#.*$/,Ie=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,Me=/^(?:GET|HEAD)$/,Le=/^\/\//,Re={},je={},Ve="*/".concat("*"),Ne=m.createElement("a");function He(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(L)||[];if(p(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function ze(t,e,n,i){var r={},o=t===je;function a(s){var l;return r[s]=!0,w.each(t[s]||[],(function(t,s){var c=s(e,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Fe(t,e){var n,i,r=w.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&w.extend(!0,t,i),t}Ne.href=xe.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Fe(Fe(t,w.ajaxSettings),e):Fe(w.ajaxSettings,t)},ajaxPrefilter:He(Re),ajaxTransport:He(je),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,r,o,a,s,l,c,u,h,d=w.ajaxSetup({},e),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?w(p):w.event,g=w.Deferred(),v=w.Callbacks("once memory"),y=d.statusCode||{},b={},x={},C="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(l){if(!o)for(o={};e=De.exec(r);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?r:null},setRequestHeader:function(t,e){return null==l&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==l&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||C;return n&&n.abort(e),k(0,e),this}};if(g.promise(S),d.url=((t||d.url||xe.href)+"").replace(Le,xe.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(L)||[""],null==d.crossDomain){s=m.createElement("a");try{s.href=d.url,s.href=s.href,d.crossDomain=Ne.protocol+"//"+Ne.host!=s.protocol+"//"+s.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=w.param(d.data,d.traditional)),ze(Re,d,e,S),l)return S;for(u in(c=w.event&&d.global)&&0==w.active++&&w.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Me.test(d.type),i=d.url.replace(Pe,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(_e,"+")):(h=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Se.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Ie,"$1"),h=(Se.test(i)?"&":"?")+"_="+Ce.guid+++h),d.url=i+h),d.ifModified&&(w.lastModified[i]&&S.setRequestHeader("If-Modified-Since",w.lastModified[i]),w.etag[i]&&S.setRequestHeader("If-None-Match",w.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&S.setRequestHeader("Content-Type",d.contentType),S.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Ve+"; q=0.01":""):d.accepts["*"]),d.headers)S.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(!1===d.beforeSend.call(p,S,d)||l))return S.abort();if(C="abort",v.add(d.complete),S.done(d.success),S.fail(d.error),n=ze(je,d,e,S)){if(S.readyState=1,c&&f.trigger("ajaxSend",[S,d]),l)return S;d.async&&d.timeout>0&&(a=window.setTimeout((function(){S.abort("timeout")}),d.timeout));try{l=!1,n.send(b,k)}catch(t){if(l)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,o,s){var u,h,m,b,x,C=e;l||(l=!0,a&&window.clearTimeout(a),n=void 0,r=s||"",S.readyState=t>0?4:0,u=t>=200&&t<300||304===t,o&&(b=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(d,S,o)),!u&&w.inArray("script",d.dataTypes)>-1&&(d.converters["text script"]=function(){}),b=function(t,e,n,i){var r,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(d,b,S,u),u?(d.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(w.lastModified[i]=x),(x=S.getResponseHeader("etag"))&&(w.etag[i]=x)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=b.state,h=b.data,u=!(m=b.error))):(m=C,!t&&C||(C="error",t<0&&(t=0))),S.status=t,S.statusText=(e||C)+"",u?g.resolveWith(p,[h,C,S]):g.rejectWith(p,[S,C,m]),S.statusCode(y),y=void 0,c&&f.trigger(u?"ajaxSuccess":"ajaxError",[S,d,u?h:m]),v.fireWith(p,[S,C]),c&&(f.trigger("ajaxComplete",[S,d]),--w.active||w.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return w.get(t,e,n,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],(function(t,e){w[e]=function(t,n,i,r){return p(n)&&(r=r||i,i=n,n=void 0),w.ajax(w.extend({url:t,type:e,dataType:r,data:n,success:i},w.isPlainObject(t)&&t))}})),w.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),w._evalUrl=function(t,e,n){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){w.globalEval(t,e,n)}})},w.fn.extend({wrapAll:function(t){var e;return this[0]&&(p(t)&&(t=t.call(this[0])),e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return p(t)?this.each((function(e){w(this).wrapInner(t.call(this,e))})):this.each((function(){var e=w(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=p(t);return this.each((function(n){w(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},Be=w.ajaxSettings.xhr();d.cors=!!Be&&"withCredentials"in Be,d.ajax=Be=!!Be,w.ajaxTransport((function(t){var e,n;if(d.cors||Be&&!t.crossDomain)return{send:function(i,r){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(o,i[o]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Ue[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&window.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),w.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),w.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=w("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),m.head.appendChild(e[0])},abort:function(){n&&n()}}}));var qe,We=[],Ge=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||w.expando+"_"+Ce.guid++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",(function(t,e,n){var i,r,o,a=!1!==t.jsonp&&(Ge.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ge.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ge,"$1"+i):!1!==t.jsonp&&(t.url+=(Se.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||w.error(i+" was not called"),o[0]},t.dataTypes[0]="json",r=window[i],window[i]=function(){o=arguments},n.always((function(){void 0===r?w(window).removeProp(i):window[i]=r,t[i]&&(t.jsonpCallback=e.jsonpCallback,We.push(i)),o&&p(r)&&r(o[0]),o=r=void 0})),"script"})),d.createHTMLDocument=((qe=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===qe.childNodes.length),w.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(d.createHTMLDocument?((i=(e=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,e.head.appendChild(i)):e=m),o=!n&&[],(r=A.exec(t))?[e.createElement(r[1])]:(r=wt([t],e,o),o&&o.length&&w(o).remove(),w.merge([],r.childNodes)));var i,r,o},w.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=ge(t.slice(s)),t=t.slice(0,s)),p(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&w.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(i?w("<div>").append(w.parseHTML(t)).find(i):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},w.expr.pseudos.animated=function(t){return w.grep(w.timers,(function(e){return t===e.elem})).length},w.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,c=w.css(t,"position"),u=w(t),h={};"static"===c&&(t.style.position="relative"),s=u.offset(),o=w.css(t,"top"),l=w.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(i=u.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),p(e)&&(e=e.call(t,n,w.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+r),"using"in e?e.using.call(t,h):("number"==typeof h.top&&(h.top+="px"),"number"==typeof h.left&&(h.left+="px"),u.css(h))}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){w.offset.setOffset(this,t,e)}));var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===w.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),r.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-w.css(i,"marginTop",!0),left:e.left-r.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||it}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;w.fn[t]=function(i){return F(this,(function(t,i,r){var o;if(f(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r}),t,i,arguments.length)}})),w.each(["top","left"],(function(t,e){w.cssHooks[e]=Bt(d.pixelPosition,(function(t,n){if(n)return n=Ut(t,e),Nt.test(n)?w(t).position()[e]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(t,e){w.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){w.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return F(this,(function(e,n,r){var o;return f(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?w.css(e,n,s):w.style(e,n,r,s)}),e,a?r:void 0,a)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){w.fn[e]=function(t){return this.on(e,t)}})),w.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){w.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Ye=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(t,e){var n,r,o;if("string"==typeof e&&(n=t[e],e=t,t=n),p(t))return r=i.call(arguments,2),o=function(){return t.apply(e||this,r.concat(i.call(arguments)))},o.guid=t.guid=t.guid||w.guid++,o},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=E,w.isFunction=p,w.isWindow=f,w.camelCase=W,w.type=y,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},w.trim=function(t){return null==t?"":(t+"").replace(Ye,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return w}));var Ke=window.jQuery,Xe=window.$;return w.noConflict=function(t){return window.$===w&&(window.$=Xe),t&&window.jQuery===w&&(window.jQuery=Ke),w},void 0===t&&(window.jQuery=window.$=w),w})),function(){var t,e="Expected a function",n="__lodash_hash_undefined__",i=1/0,r=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",h="[object GeneratorFunction]",d="[object Map]",p="[object Number]",f="[object Object]",m="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",b="[object Symbol]",w="[object WeakMap]",x="[object ArrayBuffer]",C="[object DataView]",S="[object Float32Array]",k="[object Float64Array]",T="[object Int8Array]",E="[object Int16Array]",A="[object Int32Array]",O="[object Uint8Array]",_="[object Uint8ClampedArray]",P="[object Uint16Array]",I="[object Uint32Array]",D=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,M=/^\w*$/,L=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,R=/^\s+|\s+$/g,j=/\\(\\)?/g,V=/\w*$/,N=/^[-+]0x[0-9a-f]+$/i,H=/^0b[01]+$/i,z=/^\[object .+?Constructor\]$/,F=/^0o[0-7]+$/i,U=/^(?:0|[1-9]\d*)$/,B={};B[S]=B[k]=B[T]=B[E]=B[A]=B[O]=B[_]=B[P]=B[I]=!0,B[o]=B[a]=B[x]=B[s]=B[C]=B[l]=B[c]=B[u]=B[d]=B[p]=B[f]=B[g]=B[v]=B[y]=B[w]=!1;var q={};q[o]=q[a]=q[x]=q[C]=q[s]=q[l]=q[S]=q[k]=q[T]=q[E]=q[A]=q[d]=q[p]=q[f]=q[g]=q[v]=q[y]=q[b]=q[O]=q[_]=q[P]=q[I]=!0,q[c]=q[u]=q[w]=!1;var W=parseInt,G="object"==typeof global&&global&&global.Object===Object&&global,Y="object"==typeof self&&self&&self.Object===Object&&self,K=G||Y||Function("return this")(),X="object"==typeof exports&&exports&&!exports.nodeType&&exports,Q=X&&"object"==typeof module&&module&&!module.nodeType&&module,J=Q&&Q.exports===X,Z=J&&G.process,tt=function(){try{return Z&&Z.binding&&Z.binding("util")}catch(t){}}(),et=tt&&tt.isMap,nt=tt&&tt.isSet,it=tt&&tt.isTypedArray;function rt(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ot(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function at(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}function st(t,e){return!!(null==t?0:t.length)&&pt(t,e,0)>-1}function lt(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function ct(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function ut(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function ht(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}function dt(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function pt(t,e,n){return e==e?function(t,e,n){var i=n-1,r=t.length;for(;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):dt(t,ft,n)}function ft(t){return t!=t}function mt(t){return function(e){return t(e)}}function gt(t,e){return t.has(e)}function vt(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n}function yt(t,e){return function(n){return t(e(n))}}function bt(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var wt,$t=Array.prototype,xt=Function.prototype,Ct=Object.prototype,St=K["__core-js_shared__"],kt=xt.toString,Tt=Ct.hasOwnProperty,Et=(wt=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||""))?"Symbol(src)_1."+wt:"",At=Ct.toString,Ot=kt.call(Object),_t=RegExp("^"+kt.call(Tt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=J?K.Buffer:t,It=K.Symbol,Dt=K.Uint8Array,Mt=Pt?Pt.allocUnsafe:t,Lt=yt(Object.getPrototypeOf,Object),Rt=Object.create,jt=Ct.propertyIsEnumerable,Vt=$t.splice,Nt=It?It.isConcatSpreadable:t,Ht=It?It.toStringTag:t,zt=function(){try{var t=Ze(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ft=Math.ceil,Ut=Object.getOwnPropertySymbols,Bt=Pt?Pt.isBuffer:t,qt=yt(Object.keys,Object),Wt=Math.max,Gt=Math.min,Yt=Date.now,Kt=Ze(K,"DataView"),Xt=Ze(K,"Map"),Qt=Ze(K,"Promise"),Jt=Ze(K,"Set"),Zt=Ze(K,"WeakMap"),te=Ze(Object,"create"),ee=yn(Kt),ne=yn(Xt),ie=yn(Qt),re=yn(Jt),oe=yn(Zt),ae=It?It.prototype:t,se=ae?ae.valueOf:t,le=ae?ae.toString:t;function ce(){}var ue=function(){function e(){}return function(n){if(!Rn(n))return{};if(Rt)return Rt(n);e.prototype=n;var i=new e;return e.prototype=t,i}}();function he(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function de(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function pe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function fe(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new pe;++e<n;)this.add(t[e])}function me(t){var e=this.__data__=new de(t);this.size=e.size}function ge(t,e){var n=_n(t),i=!n&&On(t),r=!n&&!i&&Dn(t),o=!n&&!i&&!r&&Fn(t),a=n||i||r||o,s=a?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],l=s.length;for(var c in t)!e&&!Tt.call(t,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||on(c,l))||s.push(c);return s}function ve(e,n,i){var r=e[n];Tt.call(e,n)&&An(r,i)&&(i!==t||n in e)||be(e,n,i)}function ye(t,e){for(var n=t.length;n--;)if(An(t[n][0],e))return n;return-1}function be(t,e,n){"__proto__"==e&&zt?zt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function we(e,n,i,r,a,c){var m,w=1&n,D=2&n,M=4&n;if(i&&(m=a?i(e,r,a,c):i(e)),m!==t)return m;if(!Rn(e))return e;var L=_n(e);if(L){if(m=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Tt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(e),!w)return function(t,e){var n=-1,i=t.length;e||(e=Array(i));for(;++n<i;)e[n]=t[n];return e}(e,m)}else{var R=nn(e),j=R==u||R==h;if(Dn(e))return function(t,e){if(e)return t.slice();var n=t.length,i=Mt?Mt(n):new t.constructor(n);return t.copy(i),i}(e,w);if(R==f||R==o||j&&!a){if(m=D||j?{}:function(t){return"function"!=typeof t.constructor||ln(t)?{}:ue(Lt(t))}(e),!w)return D?function(t,e){return We(t,en(t),e)}(e,function(t,e){return t&&We(e,Jn(e),t)}(m,e)):function(t,e){return We(t,tn(t),e)}(e,function(t,e){return t&&We(e,Qn(e),t)}(m,e))}else{if(!q[R])return a?e:{};m=function(t,e,n){var i=t.constructor;switch(e){case x:return qe(t);case s:case l:return new i(+t);case C:return function(t,e){var n=e?qe(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case S:case k:case T:case E:case A:case O:case _:case P:case I:return function(t,e){var n=e?qe(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,n);case d:return new i;case p:case y:return new i(t);case g:return function(t){var e=new t.constructor(t.source,V.exec(t));return e.lastIndex=t.lastIndex,e}(t);case v:return new i;case b:return r=t,se?Object(se.call(r)):{}}var r}(e,R,w)}}c||(c=new me);var N=c.get(e);if(N)return N;if(c.set(e,m),Hn(e))return e.forEach((function(t){m.add(we(t,n,i,t,e,c))})),m;if(Vn(e))return e.forEach((function(t,r){m.set(r,we(t,n,i,r,e,c))})),m;var H=L?t:(M?D?Xe:Ke:D?Jn:Qn)(e);return ot(H||e,(function(t,r){H&&(t=e[r=t]),ve(m,r,we(t,n,i,r,e,c))})),m}he.prototype.clear=function(){this.__data__=te?te(null):{},this.size=0},he.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},he.prototype.get=function(e){var i=this.__data__;if(te){var r=i[e];return r===n?t:r}return Tt.call(i,e)?i[e]:t},he.prototype.has=function(e){var n=this.__data__;return te?n[e]!==t:Tt.call(n,e)},he.prototype.set=function(e,i){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=te&&i===t?n:i,this},de.prototype.clear=function(){this.__data__=[],this.size=0},de.prototype.delete=function(t){var e=this.__data__,n=ye(e,t);return!(n<0)&&(n==e.length-1?e.pop():Vt.call(e,n,1),--this.size,!0)},de.prototype.get=function(e){var n=this.__data__,i=ye(n,e);return i<0?t:n[i][1]},de.prototype.has=function(t){return ye(this.__data__,t)>-1},de.prototype.set=function(t,e){var n=this.__data__,i=ye(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},pe.prototype.clear=function(){this.size=0,this.__data__={hash:new he,map:new(Xt||de),string:new he}},pe.prototype.delete=function(t){var e=Je(this,t).delete(t);return this.size-=e?1:0,e},pe.prototype.get=function(t){return Je(this,t).get(t)},pe.prototype.has=function(t){return Je(this,t).has(t)},pe.prototype.set=function(t,e){var n=Je(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},fe.prototype.add=fe.prototype.push=function(t){return this.__data__.set(t,n),this},fe.prototype.has=function(t){return this.__data__.has(t)},me.prototype.clear=function(){this.__data__=new de,this.size=0},me.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},me.prototype.get=function(t){return this.__data__.get(t)},me.prototype.has=function(t){return this.__data__.has(t)},me.prototype.set=function(t,e){var n=this.__data__;if(n instanceof de){var i=n.__data__;if(!Xt||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new pe(i)}return n.set(t,e),this.size=n.size,this};var $e,xe,Ce=($e=function(t,e){return t&&Te(t,e,Qn)},function(t,e){if(null==t)return t;if(!Pn(t))return $e(t,e);for(var n=t.length,i=xe?n:-1,r=Object(t);(xe?i--:++i<n)&&!1!==e(r[i],i,r););return t});function Se(t,e){var n=[];return Ce(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}function ke(t,e,n,i,r){var o=-1,a=t.length;for(n||(n=rn),r||(r=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?ke(s,e-1,n,i,r):ut(r,s):i||(r[r.length]=s)}return r}var Te=function(t){return function(e,n,i){for(var r=-1,o=Object(e),a=i(e),s=a.length;s--;){var l=a[t?s:++r];if(!1===n(o[l],l,o))break}return e}}();function Ee(e,n){for(var i=0,r=(n=Be(n,e)).length;null!=e&&i<r;)e=e[vn(n[i++])];return i&&i==r?e:t}function Ae(t,e,n){var i=e(t);return _n(t)?i:ut(i,n(t))}function Oe(e){return null==e?e===t?"[object Undefined]":"[object Null]":Ht&&Ht in Object(e)?function(e){var n=Tt.call(e,Ht),i=e[Ht];try{e[Ht]=t;var r=!0}catch(t){}var o=At.call(e);r&&(n?e[Ht]=i:delete e[Ht]);return o}(e):function(t){return At.call(t)}(e)}function _e(t,e){return null!=t&&e in Object(t)}function Pe(t){return jn(t)&&Oe(t)==o}function Ie(e,n,i,r,u){return e===n||(null==e||null==n||!jn(e)&&!jn(n)?e!=e&&n!=n:function(e,n,i,r,u,h){var m=_n(e),w=_n(n),S=m?a:nn(e),k=w?a:nn(n),T=(S=S==o?f:S)==f,E=(k=k==o?f:k)==f,A=S==k;if(A&&Dn(e)){if(!Dn(n))return!1;m=!0,T=!1}if(A&&!T)return h||(h=new me),m||Fn(e)?Ye(e,n,i,r,u,h):function(t,e,n,i,r,o,a){switch(n){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case x:return!(t.byteLength!=e.byteLength||!o(new Dt(t),new Dt(e)));case s:case l:case p:return An(+t,+e);case c:return t.name==e.name&&t.message==e.message;case g:case y:return t==e+"";case d:var u=vt;case v:var h=1&i;if(u||(u=bt),t.size!=e.size&&!h)return!1;var f=a.get(t);if(f)return f==e;i|=2,a.set(t,e);var m=Ye(u(t),u(e),i,r,o,a);return a.delete(t),m;case b:if(se)return se.call(t)==se.call(e)}return!1}(e,n,S,i,r,u,h);if(!(1&i)){var O=T&&Tt.call(e,"__wrapped__"),_=E&&Tt.call(n,"__wrapped__");if(O||_){var P=O?e.value():e,I=_?n.value():n;return h||(h=new me),u(P,I,i,r,h)}}if(!A)return!1;return h||(h=new me),function(e,n,i,r,o,a){var s=1&i,l=Ke(e),c=l.length,u=Ke(n).length;if(c!=u&&!s)return!1;var h=c;for(;h--;){var d=l[h];if(!(s?d in n:Tt.call(n,d)))return!1}var p=a.get(e);if(p&&a.get(n))return p==n;var f=!0;a.set(e,n),a.set(n,e);var m=s;for(;++h<c;){var g=e[d=l[h]],v=n[d];if(r)var y=s?r(v,g,d,n,e,a):r(g,v,d,e,n,a);if(!(y===t?g===v||o(g,v,i,r,a):y)){f=!1;break}m||(m="constructor"==d)}if(f&&!m){var b=e.constructor,w=n.constructor;b==w||!("constructor"in e)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return a.delete(e),a.delete(n),f}(e,n,i,r,u,h)}(e,n,i,r,Ie,u))}function De(t){return!(!Rn(t)||(e=t,Et&&Et in e))&&(Mn(t)?_t:z).test(yn(t));var e}function Me(e){return"function"==typeof e?e:null==e?ei:"object"==typeof e?_n(e)?function(e,n){if(sn(e)&&cn(n))return un(vn(e),n);return function(i){var r=Kn(i,e);return r===t&&r===n?Xn(i,e):Ie(n,r,3)}}(e[0],e[1]):function(e){var n=function(t){var e=Qn(t),n=e.length;for(;n--;){var i=e[n],r=t[i];e[n]=[i,r,cn(r)]}return e}(e);if(1==n.length&&n[0][2])return un(n[0][0],n[0][1]);return function(i){return i===e||function(e,n,i,r){var o=i.length,a=o,s=!r;if(null==e)return!a;for(e=Object(e);o--;){var l=i[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=i[o])[0],u=e[c],h=l[1];if(s&&l[2]){if(u===t&&!(c in e))return!1}else{var d=new me;if(r)var p=r(u,h,c,e,n,d);if(!(p===t?Ie(h,u,3,r,d):p))return!1}}return!0}(i,e,n)}}(e):ii(e)}function Le(t){if(!ln(t))return qt(t);var e=[];for(var n in Object(t))Tt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Re(t){if(!Rn(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=ln(t),n=[];for(var i in t)("constructor"!=i||!e&&Tt.call(t,i))&&n.push(i);return n}function je(t,e){return t<e}function Ve(t,e){var n=-1,i=Pn(t)?Array(t.length):[];return Ce(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Ne(t,e){return mn(hn(t,e,ei),t+"")}var He=zt?function(t,e){return zt(t,"toString",{configurable:!0,enumerable:!1,value:ti(e),writable:!0})}:ei;function ze(t){if("string"==typeof t)return t;if(_n(t))return ct(t,ze)+"";if(zn(t))return le?le.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Fe(t,e){return null==(t=function(t,e){return e.length<2?t:Ee(t,function(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(r);++i<r;)o[i]=t[i+e];return o}(e,0,-1))}(t,e=Be(e,t)))||delete t[vn(xn(e))]}function Ue(t){return In(t)?t:[]}function Be(t,e){return _n(t)?t:sn(t,e)?[t]:gn(Wn(t))}function qe(t){var e=new t.constructor(t.byteLength);return new Dt(e).set(new Dt(t)),e}function We(e,n,i,r){var o=!i;i||(i={});for(var a=-1,s=n.length;++a<s;){var l=n[a],c=r?r(i[l],e[l],l,i,e):t;c===t&&(c=e[l]),o?be(i,l,c):ve(i,l,c)}return i}function Ge(e){return Nn(e)?t:e}function Ye(e,n,i,r,o,a){var s=1&i,l=e.length,c=n.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e);if(u&&a.get(n))return u==n;var h=-1,d=!0,p=2&i?new fe:t;for(a.set(e,n),a.set(n,e);++h<l;){var f=e[h],m=n[h];if(r)var g=s?r(m,f,h,n,e,a):r(f,m,h,e,n,a);if(g!==t){if(g)continue;d=!1;break}if(p){if(!ht(n,(function(t,e){if(!gt(p,e)&&(f===t||o(f,t,i,r,a)))return p.push(e)}))){d=!1;break}}else if(f!==m&&!o(f,m,i,r,a)){d=!1;break}}return a.delete(e),a.delete(n),d}function Ke(t){return Ae(t,Qn,tn)}function Xe(t){return Ae(t,Jn,en)}function Qe(){var t=ce.iteratee||ni;return t=t===ni?Me:t,arguments.length?t(arguments[0],arguments[1]):t}function Je(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function Ze(e,n){var i=function(e,n){return null==e?t:e[n]}(e,n);return De(i)?i:t}var tn=Ut?function(t){return null==t?[]:(t=Object(t),at(Ut(t),(function(e){return jt.call(t,e)})))}:oi,en=Ut?function(t){for(var e=[];t;)ut(e,tn(t)),t=Lt(t);return e}:oi,nn=Oe;function rn(t){return _n(t)||On(t)||!!(Nt&&t&&t[Nt])}function on(t,e){var n=typeof t;return!!(e=null==e?r:e)&&("number"==n||"symbol"!=n&&U.test(t))&&t>-1&&t%1==0&&t<e}function an(t,e,n){if(!Rn(n))return!1;var i=typeof e;return!!("number"==i?Pn(n)&&on(e,n.length):"string"==i&&e in n)&&An(n[e],t)}function sn(t,e){if(_n(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!zn(t))||(M.test(t)||!D.test(t)||null!=e&&t in Object(e))}function ln(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ct)}function cn(t){return t==t&&!Rn(t)}function un(e,n){return function(i){return null!=i&&(i[e]===n&&(n!==t||e in Object(i)))}}function hn(e,n,i){return n=Wt(n===t?e.length-1:n,0),function(){for(var t=arguments,r=-1,o=Wt(t.length-n,0),a=Array(o);++r<o;)a[r]=t[n+r];r=-1;for(var s=Array(n+1);++r<n;)s[r]=t[r];return s[n]=i(a),rt(e,this,s)}}(Kt&&nn(new Kt(new ArrayBuffer(1)))!=C||Xt&&nn(new Xt)!=d||Qt&&nn(Qt.resolve())!=m||Jt&&nn(new Jt)!=v||Zt&&nn(new Zt)!=w)&&(nn=function(e){var n=Oe(e),i=n==f?e.constructor:t,r=i?yn(i):"";if(r)switch(r){case ee:return C;case ne:return d;case ie:return m;case re:return v;case oe:return w}return n});var dn,pn,fn,mn=(dn=He,pn=0,fn=0,function(){var e=Yt(),n=16-(e-fn);if(fn=e,n>0){if(++pn>=800)return arguments[0]}else pn=0;return dn.apply(t,arguments)});var gn=function(t){var e=En(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(L,(function(t,n,i,r){e.push(i?r.replace(j,"$1"):n||t)})),e}));function vn(t){if("string"==typeof t||zn(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function yn(t){if(null!=t){try{return kt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function bn(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Bn(n);return r<0&&(r=Wt(i+r,0)),dt(t,Qe(e,3),r)}function wn(t){return(null==t?0:t.length)?ke(t,1):[]}var $n=Ne((function(e){var n=ct(e,Ue);return n.length&&n[0]===e[0]?function(e,n,i){for(var r=i?lt:st,o=e[0].length,a=e.length,s=a,l=Array(a),c=1/0,u=[];s--;){var h=e[s];s&&n&&(h=ct(h,mt(n))),c=Gt(h.length,c),l[s]=!i&&(n||o>=120&&h.length>=120)?new fe(s&&h):t}h=e[0];var d=-1,p=l[0];t:for(;++d<o&&u.length<c;){var f=h[d],m=n?n(f):f;if(f=i||0!==f?f:0,!(p?gt(p,m):r(u,m,i))){for(s=a;--s;){var g=l[s];if(!(g?gt(g,m):r(e[s],m,i)))continue t}p&&p.push(m),u.push(f)}}return u}(n):[]}));function xn(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Cn,Sn=(Cn=bn,function(e,n,i){var r=Object(e);if(!Pn(e)){var o=Qe(n,3);e=Qn(e),n=function(t){return o(r[t],t,r)}}var a=Cn(e,n,i);return a>-1?r[o?e[a]:a]:t});function kn(t,e){return(_n(t)?ot:Ce)(t,Qe(e,3))}var Tn=function(){return K.Date.now()};function En(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError(e);var i=function(){var e=arguments,r=n?n.apply(this,e):e[0],o=i.cache;if(o.has(r))return o.get(r);var a=t.apply(this,e);return i.cache=o.set(r,a)||o,a};return i.cache=new(En.Cache||pe),i}function An(t,e){return t===e||t!=t&&e!=e}En.Cache=pe;var On=Pe(function(){return arguments}())?Pe:function(t){return jn(t)&&Tt.call(t,"callee")&&!jt.call(t,"callee")},_n=Array.isArray;function Pn(t){return null!=t&&Ln(t.length)&&!Mn(t)}function In(t){return jn(t)&&Pn(t)}var Dn=Bt||ai;function Mn(t){if(!Rn(t))return!1;var e=Oe(t);return e==u||e==h||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ln(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}function Rn(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function jn(t){return null!=t&&"object"==typeof t}var Vn=et?mt(et):function(t){return jn(t)&&nn(t)==d};function Nn(t){if(!jn(t)||Oe(t)!=f)return!1;var e=Lt(t);if(null===e)return!0;var n=Tt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&kt.call(n)==Ot}var Hn=nt?mt(nt):function(t){return jn(t)&&nn(t)==v};function zn(t){return"symbol"==typeof t||jn(t)&&Oe(t)==b}var Fn=it?mt(it):function(t){return jn(t)&&Ln(t.length)&&!!B[Oe(t)]};function Un(t){return t?(t=qn(t))===i||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function Bn(t){var e=Un(t),n=e%1;return e==e?n?e-n:e:0}function qn(t){if("number"==typeof t)return t;if(zn(t))return NaN;if(Rn(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Rn(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(R,"");var n=H.test(t);return n||F.test(t)?W(t.slice(2),n?2:8):N.test(t)?NaN:+t}function Wn(t){return null==t?"":ze(t)}var Gn,Yn=(Gn=function(t,e){We(e,Jn(e),t)},Ne((function(e,n){var i=-1,r=n.length,o=r>1?n[r-1]:t,a=r>2?n[2]:t;for(o=Gn.length>3&&"function"==typeof o?(r--,o):t,a&&an(n[0],n[1],a)&&(o=r<3?t:o,r=1),e=Object(e);++i<r;){var s=n[i];s&&Gn(e,s,i,o)}return e})));function Kn(e,n,i){var r=null==e?t:Ee(e,n);return r===t?i:r}function Xn(t,e){return null!=t&&function(t,e,n){for(var i=-1,r=(e=Be(e,t)).length,o=!1;++i<r;){var a=vn(e[i]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&Ln(r)&&on(a,r)&&(_n(t)||On(t))}(t,e,_e)}function Qn(t){return Pn(t)?ge(t):Le(t)}function Jn(t){return Pn(t)?ge(t,!0):Re(t)}var Zn=function(e){return mn(hn(e,t,wn),e+"")}((function(t,e){var n={};if(null==t)return n;var i=!1;e=ct(e,(function(e){return e=Be(e,t),i||(i=e.length>1),e})),We(t,Xe(t),n),i&&(n=we(n,7,Ge));for(var r=e.length;r--;)Fe(n,e[r]);return n}));function ti(t){return function(){return t}}function ei(t){return t}function ni(t){return Me("function"==typeof t?t:we(t,1))}function ii(e){return sn(e)?(n=vn(e),function(e){return null==e?t:e[n]}):function(t){return function(e){return Ee(e,t)}}(e);var n}var ri=function(e){return function(n,i,r){return r&&"number"!=typeof r&&an(n,i,r)&&(i=r=t),n=Un(n),i===t?(i=n,n=0):i=Un(i),function(t,e,n,i){for(var r=-1,o=Wt(Ft((e-t)/(n||1)),0),a=Array(o);o--;)a[i?o:++r]=t,t+=n;return a}(n,i,r=r===t?n<i?1:-1:Un(r),e)}}();function oi(){return[]}function ai(){return!1}ce.assignIn=Yn,ce.constant=ti,ce.debounce=function(n,i,r){var o,a,s,l,c,u,h=0,d=!1,p=!1,f=!0;if("function"!=typeof n)throw new TypeError(e);function m(e){var i=o,r=a;return o=a=t,h=e,l=n.apply(r,i)}function g(t){return h=t,c=setTimeout(y,i),d?m(t):l}function v(e){var n=e-u;return u===t||n>=i||n<0||p&&e-h>=s}function y(){var t=Tn();if(v(t))return b(t);c=setTimeout(y,function(t){var e=i-(t-u);return p?Gt(e,s-(t-h)):e}(t))}function b(e){return c=t,f&&o?m(e):(o=a=t,l)}function w(){var e=Tn(),n=v(e);if(o=arguments,a=this,u=e,n){if(c===t)return g(u);if(p)return c=setTimeout(y,i),m(u)}return c===t&&(c=setTimeout(y,i)),l}return i=qn(i)||0,Rn(r)&&(d=!!r.leading,s=(p="maxWait"in r)?Wt(qn(r.maxWait)||0,i):s,f="trailing"in r?!!r.trailing:f),w.cancel=function(){c!==t&&clearTimeout(c),h=0,o=u=a=c=t},w.flush=function(){return c===t?l:b(Tn())},w},ce.filter=function(t,e){return(_n(t)?at:Se)(t,Qe(e,3))},ce.flatten=wn,ce.intersection=$n,ce.iteratee=ni,ce.keys=Qn,ce.keysIn=Jn,ce.map=function(t,e){return(_n(t)?ct:Ve)(t,Qe(e,3))},ce.memoize=En,ce.omit=Zn,ce.property=ii,ce.range=ri,ce.extend=Yn,ce.clone=function(t){return we(t,4)},ce.cloneDeep=function(t){return we(t,5)},ce.eq=An,ce.find=Sn,ce.findIndex=bn,ce.forEach=kn,ce.get=Kn,ce.hasIn=Xn,ce.identity=ei,ce.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Bn(n);return r<0&&(r=Wt(i+r,0)),pt(t,e,r)},ce.isArguments=On,ce.isArray=_n,ce.isArrayLike=Pn,ce.isArrayLikeObject=In,ce.isBuffer=Dn,ce.isEmpty=function(t){if(null==t)return!0;if(Pn(t)&&(_n(t)||"string"==typeof t||"function"==typeof t.splice||Dn(t)||Fn(t)||On(t)))return!t.length;var e=nn(t);if(e==d||e==v)return!t.size;if(ln(t))return!Le(t).length;for(var n in t)if(Tt.call(t,n))return!1;return!0},ce.isEqual=function(t,e){return Ie(t,e)},ce.isFunction=Mn,ce.isLength=Ln,ce.isMap=Vn,ce.isObject=Rn,ce.isObjectLike=jn,ce.isPlainObject=Nn,ce.isSet=Hn,ce.isSymbol=zn,ce.isTypedArray=Fn,ce.last=xn,ce.min=function(e){return e&&e.length?function(e,n,i){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=n(a);if(null!=s&&(l===t?s==s&&!zn(s):i(s,l)))var l=s,c=a}return c}(e,ei,je):t},ce.stubArray=oi,ce.stubFalse=ai,ce.now=Tn,ce.toFinite=Un,ce.toInteger=Bn,ce.toNumber=qn,ce.toString=Wn,ce.each=kn,ce.VERSION="4.17.5","function"==typeof define&&"object"==typeof define.amd&&define.amd?(K._=ce,define((function(){return ce}))):Q?((Q.exports=ce)._=ce,X._=ce):K._=ce}.call(this),function(t){if(!t.hasInitialised){var e={escapeRegExp:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(t,e){var n=" ";return 1===t.nodeType&&(n+t.className+n).replace(/[\n\t]/g,n).indexOf(n+e+n)>=0},addClass:function(t,e){t.className+=" "+e},removeClass:function(t,e){var n=new RegExp("\\b"+this.escapeRegExp(e)+"\\b");t.className=t.className.replace(n,"")},interpolateString:function(t,e){return t.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,(function(t){return e(arguments[1])||""}))},getCookie:function(t){var e=("; "+document.cookie).split("; "+t+"=");return 2!=e.length?void 0:e.pop().split(";").shift()},setCookie:function(t,e,n,i,r){var o=new Date;o.setDate(o.getDate()+(n||365));var a=[t+"="+e,"expires="+o.toUTCString(),"path="+(r||"/")];i&&a.push("domain="+i),document.cookie=a.join(";")},deepExtend:function(t,e){for(var n in e)e.hasOwnProperty(n)&&(n in t&&this.isPlainObject(t[n])&&this.isPlainObject(e[n])?this.deepExtend(t[n],e[n]):t[n]=e[n]);return t},throttle:function(t,e){var n=!1;return function(){n||(t.apply(this,arguments),n=!0,setTimeout((function(){n=!1}),e))}},hash:function(t){var e,n,i=0;if(0===t.length)return i;for(e=0,n=t.length;e<n;++e)i=(i<<5)-i+t.charCodeAt(e),i|=0;return i},normaliseHex:function(t){return"#"==t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t},getContrast:function(t){return t=this.normaliseHex(t),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(t){var e=parseInt(this.normaliseHex(t),16),n=38+(e>>16),i=38+(e>>8&255),r=38+(255&e);return"#"+(16777216+65536*(n<255?n<1?0:n:255)+256*(i<255?i<1?0:i:255)+(r<255?r<1?0:r:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(t){return"object"==typeof t&&null!==t&&t.constructor==Object}};t.status={deny:"deny",allow:"allow",dismiss:"dismiss"},t.transitionEnd=function(){var t=document.createElement("div"),e={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var n in e)if(e.hasOwnProperty(n)&&void 0!==t.style[n+"ransition"])return e[n];return""}(),t.hasTransition=!!t.transitionEnd;var n=Object.keys(t.status).map(e.escapeRegExp);t.customStyles={},t.Popup=function(){function i(){this.initialise.apply(this,arguments)}function r(t){this.openingTimeout=null,e.removeClass(t,"cc-invisible")}function o(e){e.style.display="none",e.removeEventListener(t.transitionEnd,this.afterTransition),this.afterTransition=null}function a(){var e=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return e(t.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return e(t.status.allow),!0;var n=Object.keys(t.status),i=this.getStatus(),r=n.indexOf(i)>=0;return r&&e(i),r}function s(){var t=this.options.position.split("-"),e=[];return t.forEach((function(t){e.push("cc-"+t)})),e}function l(){var t=this.options,n="top"==t.position||"bottom"==t.position?"banner":"floating";e.isMobile()&&(n="floating");var i=["cc-"+n,"cc-type-"+t.type,"cc-theme-"+t.theme];return t.static&&i.push("cc-static"),i.push.apply(i,s.call(this)),d.call(this,this.options.palette),this.customStyleSelector&&i.push(this.customStyleSelector),i}function c(){var t={},n=this.options;n.showLink||(n.elements.link="",n.elements.messagelink=n.elements.message),Object.keys(n.elements).forEach((function(i){t[i]=e.interpolateString(n.elements[i],(function(t){var e=n.content[t];return t&&"string"==typeof e&&e.length?e:""}))}));var i=n.compliance[n.type];i||(i=n.compliance.info),t.compliance=e.interpolateString(i,(function(e){return t[e]}));var r=n.layouts[n.layout];return r||(r=n.layouts.basic),e.interpolateString(r,(function(e){return t[e]}))}function u(n){var i=this.options,r=document.createElement("div"),o=i.container&&1===i.container.nodeType?i.container:document.body;r.innerHTML=n;var a=r.children[0];return a.style.display="none",e.hasClass(a,"cc-window")&&t.hasTransition&&e.addClass(a,"cc-invisible"),this.onButtonClick=h.bind(this),a.addEventListener("click",this.onButtonClick),i.autoAttach&&(o.firstChild?o.insertBefore(a,o.firstChild):o.appendChild(a)),a}function h(i){var r=i.target;if(e.hasClass(r,"cc-btn")){var o=r.className.match(new RegExp("\\bcc-("+n.join("|")+")\\b")),a=o&&o[1]||!1;a&&(this.setStatus(a),this.close(!0))}e.hasClass(r,"cc-close")&&(this.setStatus(t.status.dismiss),this.close(!0)),e.hasClass(r,"cc-revoke")&&this.revokeChoice()}function d(t){var n=e.hash(JSON.stringify(t)),i="cc-color-override-"+n,r=e.isPlainObject(t);return this.customStyleSelector=r?i:null,r&&p(n,t,"."+i),r}function p(n,i,r){if(t.customStyles[n])++t.customStyles[n].references;else{var o={},a=i.popup,s=i.button,l=i.highlight;a&&(a.text=a.text?a.text:e.getContrast(a.background),a.link=a.link?a.link:a.text,o[r+".cc-window"]=["color: "+a.text,"background-color: "+a.background],o[r+".cc-revoke"]=["color: "+a.text,"background-color: "+a.background],o[r+" .cc-link,"+r+" .cc-link:active,"+r+" .cc-link:visited"]=["color: "+a.link],s&&(s.text=s.text?s.text:e.getContrast(s.background),s.border=s.border?s.border:"transparent",o[r+" .cc-btn"]=["color: "+s.text,"border-color: "+s.border,"background-color: "+s.background],"transparent"!=s.background&&(o[r+" .cc-btn:hover, "+r+" .cc-btn:focus"]=["background-color: "+f(s.background)]),l?(l.text=l.text?l.text:e.getContrast(l.background),l.border=l.border?l.border:"transparent",o[r+" .cc-highlight .cc-btn:first-child"]=["color: "+l.text,"border-color: "+l.border,"background-color: "+l.background]):o[r+" .cc-highlight .cc-btn:first-child"]=["color: "+a.text]));var c=document.createElement("style");document.head.appendChild(c),t.customStyles[n]={references:1,element:c.sheet};var u=-1;for(var h in o)o.hasOwnProperty(h)&&c.sheet.insertRule(h+"{"+o[h].join(";")+"}",++u)}}function f(t){return"000000"==(t=e.normaliseHex(t))?"#222":e.getLuminance(t)}function m(t,e){for(var n=0,i=t.length;n<i;++n){var r=t[n];if(r instanceof RegExp&&r.test(e)||"string"==typeof r&&r.length&&r===e)return!0}return!1}function g(){var e=this.setStatus.bind(this),n=this.options.dismissOnTimeout;"number"==typeof n&&n>=0&&(this.dismissTimeout=window.setTimeout((function(){e(t.status.dismiss)}),Math.floor(n)));var i=this.options.dismissOnScroll;if("number"==typeof i&&i>=0){var r=function(n){window.pageYOffset>Math.floor(i)&&(e(t.status.dismiss),window.removeEventListener("scroll",r),this.onWindowScroll=null)};this.onWindowScroll=r,window.addEventListener("scroll",r)}}function v(){if("info"!=this.options.type&&(this.options.revokable=!0),e.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var t=s.call(this);this.options.animateRevokable&&t.push("cc-animate"),this.customStyleSelector&&t.push(this.customStyleSelector);var n=this.options.revokeBtn.replace("{{classes}}",t.join(" "));this.revokeBtn=u.call(this,n);var i=this.revokeBtn;if(this.options.animateRevokable){var r=e.throttle((function(t){var n=!1,r=window.innerHeight-20;e.hasClass(i,"cc-top")&&t.clientY<20&&(n=!0),e.hasClass(i,"cc-bottom")&&t.clientY>r&&(n=!0),n?e.hasClass(i,"cc-active")||e.addClass(i,"cc-active"):e.hasClass(i,"cc-active")&&e.removeClass(i,"cc-active")}),200);this.onMouseMove=r,window.addEventListener("mousemove",r)}}}var y={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(t){},onStatusChange:function(t,e){},onRevokeChoice:function(){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"http://cookiesandyou.com",close:"&#x274c;"},elements:{header:'<span class="cc-header">{{header}}</span>&nbsp;',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="_blank">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0"  class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" target="_blank">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">Cookie Policy</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{dismiss}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{dismiss}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};return i.prototype.initialise=function(t){this.options&&this.destroy(),e.deepExtend(this.options={},y),e.isPlainObject(t)&&e.deepExtend(this.options,t),a.call(this)&&(this.options.enabled=!1),m(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),m(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var n=this.options.window.replace("{{classes}}",l.call(this).join(" ")).replace("{{children}}",c.call(this)),i=this.options.overrideHTML;if("string"==typeof i&&i.length&&(n=i),this.options.static){var r=u.call(this,'<div class="cc-grower">'+n+"</div>");r.style.display="",this.element=r.firstChild,this.element.style.display="none",e.addClass(this.element,"cc-invisible")}else this.element=u.call(this,n);g.call(this),v.call(this),this.options.autoOpen&&this.autoOpen()},i.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(n){if(e.isPlainObject(n)){var i=e.hash(JSON.stringify(n)),r=t.customStyles[i];if(r&&!--r.references){var o=r.element.ownerNode;o&&o.parentNode&&o.parentNode.removeChild(o),t.customStyles[i]=null}}}(this.options.palette),this.options=null},i.prototype.open=function(e){if(this.element)return this.isOpen()||(t.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},i.prototype.close=function(e){if(this.element)return this.isOpen()&&(t.hasTransition?this.fadeOut():this.element.style.display="none",e&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},i.prototype.fadeIn=function(){var n=this.element;if(t.hasTransition&&n&&(this.afterTransition&&o.call(this,n),e.hasClass(n,"cc-invisible"))){if(n.style.display="",this.options.static){var i=this.element.clientHeight;this.element.parentNode.style.maxHeight=i+"px"}this.openingTimeout=setTimeout(r.bind(this,n),20)}},i.prototype.fadeOut=function(){var n=this.element;t.hasTransition&&n&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),r.bind(this,n)),e.hasClass(n,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=o.bind(this,n),n.addEventListener(t.transitionEnd,this.afterTransition),e.addClass(n,"cc-invisible")))},i.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!t.hasTransition||!e.hasClass(this.element,"cc-invisible"))},i.prototype.toggleRevokeButton=function(t){this.revokeBtn&&(this.revokeBtn.style.display=t?"":"none")},i.prototype.revokeChoice=function(t){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),t||this.autoOpen()},i.prototype.hasAnswered=function(e){return Object.keys(t.status).indexOf(this.getStatus())>=0},i.prototype.hasConsented=function(e){var n=this.getStatus();return n==t.status.allow||n==t.status.dismiss},i.prototype.autoOpen=function(t){!this.hasAnswered()&&this.options.enabled&&this.open()},i.prototype.setStatus=function(n){var i=this.options.cookie,r=e.getCookie(i.name),o=Object.keys(t.status).indexOf(r)>=0;Object.keys(t.status).indexOf(n)>=0?(e.setCookie(i.name,n,i.expiryDays,i.domain,i.path),this.options.onStatusChange.call(this,n,o)):this.clearStatus()},i.prototype.getStatus=function(){return e.getCookie(this.options.cookie.name)},i.prototype.clearStatus=function(){var t=this.options.cookie;e.setCookie(t.name,"",-1,t.domain,t.path)},i}(),t.Location=function(){function t(t){e.deepExtend(this.options={},o),e.isPlainObject(t)&&e.deepExtend(this.options,t),this.currentServiceIndex=-1}function n(t,e,n){var i,r=document.createElement("script");r.type="text/"+(t.type||"javascript"),r.src=t.src||t,r.async=!1,r.onreadystatechange=r.onload=function(){var t=r.readyState;clearTimeout(i),e.done||t&&!/loaded|complete/.test(t)||(e.done=!0,e(),r.onreadystatechange=r.onload=null)},document.body.appendChild(r),i=setTimeout((function(){e.done=!0,e(),r.onreadystatechange=r.onload=null}),n)}function i(t,e,n,i,r){var o=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(o.open(i?"POST":"GET",t,1),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(r))for(var a=0,s=r.length;a<s;++a){var l=r[a].split(":",2);o.setRequestHeader(l[0].replace(/^\s+|\s+$/g,""),l[1].replace(/^\s+|\s+$/g,""))}"function"==typeof e&&(o.onreadystatechange=function(){o.readyState>3&&e(o)}),o.send(i)}function r(t){return new Error("Error ["+(t.code||"UNKNOWN")+"]: "+t.error)}var o={timeout:5e3,services:["freegeoip","ipinfo","maxmind"],serviceDefinitions:{freegeoip:function(){return{url:"//freegeoip.net/json/?callback={callback}",isScript:!0,callback:function(t,e){try{var n=JSON.parse(e);return n.error?r(n):{code:n.country_code}}catch(t){return r({error:"Invalid response ("+t+")"})}}}},ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(t,e){try{var n=JSON.parse(e);return n.error?r(n):{code:n.country}}catch(t){return r({error:"Invalid response ("+t+")"})}}}},ipinfodb:function(t){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(t,e){try{var n=JSON.parse(e);return"ERROR"==n.statusCode?r({error:n.statusMessage}):{code:n.countryCode}}catch(t){return r({error:"Invalid response ("+t+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(t){return window.geoip2?void geoip2.country((function(e){try{t({code:e.country.iso_code})}catch(e){t(r(e))}}),(function(e){t(r(e))})):void t(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};return t.prototype.getNextService=function(){var t;do{t=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!t);return t},t.prototype.getServiceByIdx=function(t){var n=this.options.services[t];if("function"==typeof n){var i=n();return i.name&&e.deepExtend(i,this.options.serviceDefinitions[i.name](i)),i}return"string"==typeof n?this.options.serviceDefinitions[n]():e.isPlainObject(n)?this.options.serviceDefinitions[n.name](n):null},t.prototype.locate=function(t,e){var n=this.getNextService();return n?(this.callbackComplete=t,this.callbackError=e,void this.runService(n,this.runNextServiceOnError.bind(this))):void e(new Error("No services to run"))},t.prototype.setupUrl=function(t){var e=this.getCurrentServiceOpts();return t.url.replace(/\{(.*?)\}/g,(function(n,i){if("callback"===i){var r="callback"+Date.now();return window[r]=function(e){t.__JSONP_DATA=JSON.stringify(e)},r}if(i in e.interpolateUrl)return e.interpolateUrl[i]}))},t.prototype.runService=function(t,e){var r=this;t&&t.url&&t.callback&&(t.isScript?n:i)(this.setupUrl(t),(function(n){var i=n?n.responseText:"";t.__JSONP_DATA&&(i=t.__JSONP_DATA,delete t.__JSONP_DATA),r.runServiceCallback.call(r,e,t,i)}),this.options.timeout,t.data,t.headers)},t.prototype.runServiceCallback=function(t,e,n){var i=this,r=e.callback((function(e){r||i.onServiceResult.call(i,t,e)}),n);r&&this.onServiceResult.call(this,t,r)},t.prototype.onServiceResult=function(t,e){e instanceof Error||e&&e.error?t.call(this,e,null):t.call(this,null,e)},t.prototype.runNextServiceOnError=function(t,e){if(t){this.logError(t);var n=this.getNextService();n?this.runService(n,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,e)},t.prototype.getCurrentServiceOpts=function(){var t=this.options.services[this.currentServiceIndex];return"string"==typeof t?{name:t}:"function"==typeof t?t():e.isPlainObject(t)?t:{}},t.prototype.completeService=function(t,e){this.currentServiceIndex=-1,t&&t(e)},t.prototype.logError=function(t){var e=this.currentServiceIndex;this.getServiceByIdx(e)},t}(),t.Law=function(){function t(t){this.initialise.apply(this,arguments)}var n={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","SI","ES","SE","GB","UK"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};return t.prototype.initialise=function(t){e.deepExtend(this.options={},n),e.isPlainObject(t)&&e.deepExtend(this.options,t)},t.prototype.get=function(t){var e=this.options;return{hasLaw:e.hasLaw.indexOf(t)>=0,revokable:e.revokable.indexOf(t)>=0,explicitAction:e.explicitAction.indexOf(t)>=0}},t.prototype.applyLaw=function(t,e){var n=this.get(e);return n.hasLaw||(t.enabled=!1),this.options.regionalLaw&&(n.revokable&&(t.revokable=!0),n.explicitAction&&(t.dismissOnScroll=!1,t.dismissOnTimeout=!1)),t},t}(),t.initialise=function(e,n,i){var r=new t.Law(e.law);n||(n=function(){}),i||(i=function(){}),t.getCountryCode(e,(function(i){delete e.law,delete e.location,i.code&&(e=r.applyLaw(e,i.code)),n(new t.Popup(e))}),(function(n){delete e.law,delete e.location,i(n,new t.Popup(e))}))},t.getCountryCode=function(e,n,i){e.law&&e.law.countryCode?n({code:e.law.countryCode}):e.location?new t.Location(e.location).locate((function(t){n(t||{})}),i):n({})},t.utils=e,t.hasInitialised=!0,window.cookieconsent=t}}(window.cookieconsent||{}),
/*!
 * jQuery Cookie Plugin v1.4.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2006, 2014 Klaus Hartl
 * Released under the MIT license
 */
function(t){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function($){var t=/\+/g;function e(t){return o.raw?t:encodeURIComponent(t)}function n(t){return o.raw?t:decodeURIComponent(t)}function i(t){return e(o.json?JSON.stringify(t):String(t))}function r(e,n){var i=o.raw?e:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(t," ")),o.json?JSON.parse(e):e}catch(t){}}(e);return $.isFunction(n)?n(i):i}var o=$.cookie=function(t,a,s){if(arguments.length>1&&!$.isFunction(a)){if("number"==typeof(s=$.extend({},o.defaults,s)).expires){var l=s.expires,c=s.expires=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*l)}return document.cookie=[e(t),"=",i(a),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}for(var u=t?void 0:{},h=document.cookie?document.cookie.split("; "):[],d=0,p=h.length;d<p;d++){var f=h[d].split("="),m=n(f.shift()),g=f.join("=");if(t===m){u=r(g,a);break}t||void 0===(g=r(g))||(u[m]=g)}return u};o.defaults={},$.removeCookie=function(t,e){return $.cookie(t,"",$.extend({},e,{expires:-1})),!$.cookie(t)}})),
/*!
 * fancyBox - jQuery Plugin
 * version: 2.1.5 (Fri, 14 Jun 2013)
 * @requires jQuery v1.6 or later
 *
 * Examples at http://fancyapps.com/fancybox/
 * License: www.fancyapps.com/fancybox/#license
 *
 * Copyright 2012 Janis Skarnelis - janis@fancyapps.com
 *
 */
function(window,t,$,e){"use strict";var n=$("html"),i=$(window),r=$(t),o=$.fancybox=function(){o.open.apply(this,arguments)},a=navigator.userAgent.match(/msie/i),s=null,l=t.createTouch!==e,c=function(t){return t&&t.hasOwnProperty&&t instanceof $},u=function(t){return t&&"string"===$.type(t)},h=function(t){return u(t)&&t.indexOf("%")>0},d=function(t,e){var n=parseInt(t,10)||0;return e&&h(t)&&(n=o.getViewport()[e]/100*n),Math.ceil(n)},p=function(t,e){return d(t,e)+"px"};$.extend(o,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!l,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,alt:r.find('meta[property="og:title"]').attr("content"),tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="{alt}" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(a?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:$.noop,beforeLoad:$.noop,afterLoad:$.noop,beforeShow:$.noop,afterShow:$.noop,beforeChange:$.noop,beforeClose:$.noop,afterClose:$.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,n){if(t&&($.isPlainObject(n)||(n={}),!1!==o.close(!0)))return $.isArray(t)||(t=c(t)?$(t).get():[t]),$.each(t,(function(i,r){var a,s,l,h,d,p,f,m={};"object"===$.type(r)&&(r.nodeType&&(r=$(r)),c(r)?(m={href:r.data("fancybox-href")||r.attr("href"),title:r.data("fancybox-title")||r.attr("title"),isDom:!0,element:r},$.metadata&&$.extend(!0,m,r.metadata())):m=r),a=n.href||m.href||(u(r)?r:null),s=n.title!==e?n.title:m.title||"",!(h=(l=n.content||m.content)?"html":n.type||m.type)&&m.isDom&&((h=r.data("fancybox-type"))||(h=(d=r.prop("class").match(/fancybox\.(\w+)/))?d[1]:null)),u(a)&&(h||(o.isImage(a)?h="image":o.isSWF(a)?h="swf":"#"===a.charAt(0)?h="inline":u(r)&&(h="html",l=r)),"ajax"===h&&(p=a.split(/\s+/,2),a=p.shift(),f=p.shift())),l||("inline"===h?a?l=$(u(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):m.isDom&&(l=r):"html"===h?l=a:h||a||!m.isDom||(h="inline",l=r)),$.extend(m,{href:a,type:h,content:l,title:s,selector:f}),t[i]=m})),o.opts=$.extend(!0,{},o.defaults,n),n.keys!==e&&(o.opts.keys=!!n.keys&&$.extend({},o.defaults.keys,n.keys)),o.group=t,o._start(o.opts.index)},cancel:function(){var t=o.coming;t&&!1!==o.trigger("onCancel")&&(o.hideLoading(),o.ajaxLoad&&o.ajaxLoad.abort(),o.ajaxLoad=null,o.imgPreload&&(o.imgPreload.onload=o.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),o.coming=null,o.current||o._afterZoomOut(t))},close:function(t){o.cancel(),!1!==o.trigger("beforeClose")&&(o.unbindEvents(),o.isActive&&(o.isOpen&&!0!==t?(o.isOpen=o.isOpened=!1,o.isClosing=!0,$(".fancybox-item, .fancybox-nav").remove(),o.wrap.stop(!0,!0).removeClass("fancybox-opened"),o.transitions[o.current.closeMethod]()):($(".fancybox-wrap").stop(!0).trigger("onReset").remove(),o._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(o.player.timer)},n=function(){e(),o.current&&o.player.isActive&&(o.player.timer=setTimeout(o.next,o.current.playSpeed))},i=function(){e(),r.unbind(".player"),o.player.isActive=!1,o.trigger("onPlayEnd")};!0===t||!o.player.isActive&&!1!==t?o.current&&(o.current.loop||o.current.index<o.group.length-1)&&(o.player.isActive=!0,r.bind({"onCancel.player beforeClose.player":i,"onUpdate.player":n,"beforeLoad.player":e}),n(),o.trigger("onPlayStart")):i()},next:function(t){var e=o.current;e&&(u(t)||(t=e.direction.next),o.jumpto(e.index+1,t,"next"))},prev:function(t){var e=o.current;e&&(u(t)||(t=e.direction.prev),o.jumpto(e.index-1,t,"prev"))},jumpto:function(t,n,i){var r=o.current;r&&(t=d(t),o.direction=n||r.direction[t>=r.index?"next":"prev"],o.router=i||"jumpto",r.loop&&(t<0&&(t=r.group.length+t%r.group.length),t%=r.group.length),r.group[t]!==e&&(o.cancel(),o._start(t)))},reposition:function(t,e){var n,i=o.current,r=i?i.wrap:null;r&&(n=o._getPosition(e),t&&"scroll"===t.type?(delete n.position,r.stop(!0,!0).animate(n,200)):(r.css(n),i.pos=$.extend({},i.dim,n)))},update:function(t){var e=t&&t.type,n=!e||"orientationchange"===e;n&&(clearTimeout(s),s=null),o.isOpen&&!s&&(s=setTimeout((function(){var i=o.current;i&&!o.isClosing&&(o.wrap.removeClass("fancybox-tmp"),(n||"load"===e||"resize"===e&&i.autoResize)&&o._setDimension(),"scroll"===e&&i.canShrink||o.reposition(t),o.trigger("onUpdate"),s=null)}),n&&!l?0:300))},toggle:function(t){o.isOpen&&(o.current.fitToView="boolean"===$.type(t)?t:!o.current.fitToView,l&&(o.wrap.removeAttr("style").addClass("fancybox-tmp"),o.trigger("onUpdate")),o.update())},hideLoading:function(){r.unbind(".loading"),$("#fancybox-loading").remove()},showLoading:function(){var t,e;o.hideLoading(),t=$('<div id="fancybox-loading"><div></div></div>').click(o.cancel).appendTo("body"),r.bind("keydown.loading",(function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),o.cancel())})),o.defaults.fixed||(e=o.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var t=o.current&&o.current.locked||!1,e={x:i.scrollLeft(),y:i.scrollTop()};return t?(e.w=t[0].clientWidth,e.h=t[0].clientHeight):(e.w=l&&window.innerWidth?window.innerWidth:i.width(),e.h=l&&window.innerHeight?window.innerHeight:i.height()),e},unbindEvents:function(){o.wrap&&c(o.wrap)&&o.wrap.unbind(".fb"),r.unbind(".fb"),i.unbind(".fb")},bindEvents:function(){var t,n=o.current;n&&(i.bind("orientationchange.fb"+(l?"":" resize.fb")+(n.autoCenter&&!n.locked?" scroll.fb":""),o.update),(t=n.keys)&&r.bind("keydown.fb",(function(i){var r=i.which||i.keyCode,a=i.target||i.srcElement;if(27===r&&o.coming)return!1;i.ctrlKey||i.altKey||i.shiftKey||i.metaKey||a&&(a.type||$(a).is("[contenteditable]"))||$.each(t,(function(t,a){return n.group.length>1&&a[r]!==e?(o[t](a[r]),i.preventDefault(),!1):$.inArray(r,a)>-1?(o[t](),i.preventDefault(),!1):void 0}))})),$.fn.mousewheel&&n.mouseWheel&&o.wrap.bind("mousewheel.fb",(function(t,e,i,r){for(var a,s=t.target||null,l=$(s),c=!1;l.length&&!(c||l.is(".fancybox-skin")||l.is(".fancybox-wrap"));)c=(a=l[0])&&!(a.style.overflow&&"hidden"===a.style.overflow)&&(a.clientWidth&&a.scrollWidth>a.clientWidth||a.clientHeight&&a.scrollHeight>a.clientHeight),l=$(l).parent();0===e||c||o.group.length>1&&!n.canShrink&&(r>0||i>0?o.prev(r>0?"down":"left"):(r<0||i<0)&&o.next(r<0?"up":"right"),t.preventDefault())})))},trigger:function(t,e){var n,i=e||o.coming||o.current;if(i){if($.isFunction(i[t])&&(n=i[t].apply(i,Array.prototype.slice.call(arguments,1))),!1===n)return!1;i.helpers&&$.each(i.helpers,(function(e,n){n&&o.helpers[e]&&$.isFunction(o.helpers[e][t])&&o.helpers[e][t]($.extend(!0,{},o.helpers[e].defaults,n),i)})),r.trigger(t)}},isImage:function(t){return u(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return u(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,n,i,r,a,s={};if(t=d(t),!(e=o.group[t]||null))return!1;if(r=(s=$.extend(!0,{},o.opts,e)).margin,a=s.padding,"number"===$.type(r)&&(s.margin=[r,r,r,r]),"number"===$.type(a)&&(s.padding=[a,a,a,a]),s.modal&&$.extend(!0,s,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),s.autoSize&&(s.autoWidth=s.autoHeight=!0),"auto"===s.width&&(s.autoWidth=!0),"auto"===s.height&&(s.autoHeight=!0),s.group=o.group,s.index=t,o.coming=s,!1!==o.trigger("beforeLoad")){if(i=s.type,n=s.href,!i)return o.coming=null,!(!o.current||!o.router||"jumpto"===o.router)&&(o.current.index=t,o[o.router](o.direction));if(o.isActive=!0,"image"!==i&&"swf"!==i||(s.autoHeight=s.autoWidth=!1,s.scrolling="visible"),"image"===i&&(s.aspectRatio=!0),"iframe"===i&&l&&(s.scrolling="scroll"),s.wrap=$(s.tpl.wrap).addClass("fancybox-"+(l?"mobile":"desktop")+" fancybox-type-"+i+" fancybox-tmp "+s.wrapCSS).appendTo(s.parent||"body"),$.extend(s,{skin:$(".fancybox-skin",s.wrap),outer:$(".fancybox-outer",s.wrap),inner:$(".fancybox-inner",s.wrap)}),$.each(["Top","Right","Bottom","Left"],(function(t,e){s.skin.css("padding"+e,p(s.padding[t]))})),o.trigger("onReady"),"inline"===i||"html"===i){if(!s.content||!s.content.length)return o._error("content")}else if(!n)return o._error("href");"image"===i?o._loadImage():"ajax"===i?o._loadAjax():"iframe"===i?o._loadIframe():o._afterLoad()}else o.coming=null},_error:function(t){$.extend(o.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:o.coming.tpl.error}),o._afterLoad()},_loadImage:function(){var t=o.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,o.coming.width=this.width/o.opts.pixelRatio,o.coming.height=this.height/o.opts.pixelRatio,o._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,o._error("image")},t.src=o.coming.href,!0!==t.complete&&o.showLoading()},_loadAjax:function(){var t=o.coming;o.showLoading(),o.ajaxLoad=$.ajax($.extend({},t.ajax,{url:t.href,error:function(t,e){o.coming&&"abort"!==e?o._error("ajax",t):o.hideLoading()},success:function(e,n){"success"===n&&(t.content=e,o._afterLoad())}}))},_loadIframe:function(){var t=o.coming,e=$(t.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",l?"auto":t.iframe.scrolling).attr("src",t.href);$(t.wrap).bind("onReset",(function(){try{$(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}})),t.iframe.preload&&(o.showLoading(),e.one("load",(function(){$(this).data("ready",1),l||$(this).bind("load.fb",o.update),$(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),o._afterLoad()}))),t.content=e.appendTo(t.inner),t.iframe.preload||o._afterLoad()},_preloadImages:function(){var t,e,n=o.group,i=o.current,r=n.length,a=i.preload?Math.min(i.preload,r-1):0;for(e=1;e<=a;e+=1)"image"===(t=n[(i.index+e)%r]).type&&t.href&&((new Image).src=t.href)},_afterLoad:function(){var t,e,n,i,r,a,s=o.coming,l=o.current,u="fancybox-placeholder";if(o.hideLoading(),s&&!1!==o.isActive){if(!1===o.trigger("afterLoad",s,l))return s.wrap.stop(!0).trigger("onReset").remove(),void(o.coming=null);switch(l&&(o.trigger("beforeChange",l),l.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),o.unbindEvents(),t=s,e=s.content,n=s.type,i=s.scrolling,$.extend(o,{wrap:t.wrap,skin:t.skin,outer:t.outer,inner:t.inner,current:t,previous:l}),r=t.href,n){case"inline":case"ajax":case"html":t.selector?e=$("<div>").html(e).find(t.selector):c(e)&&(e.data(u)||e.data(u,$('<div class="'+u+'"></div>').insertAfter(e).hide()),e=e.show().detach(),t.wrap.bind("onReset",(function(){$(this).find(e).length&&e.hide().replaceAll(e.data(u)).data(u,!1)})));break;case"image":e=t.tpl.image.replace("{href}",r).replace("{alt}",o.defaults.alt);break;case"swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+r+'"></param>',a="",$.each(t.swf,(function(t,n){e+='<param name="'+t+'" value="'+n+'"></param>',a+=" "+t+'="'+n+'"'})),e+='<embed src="'+r+'" type="application/x-shockwave-flash" width="100%" height="100%"'+a+"></embed></object>"}c(e)&&e.parent().is(t.inner)||t.inner.append(e),o.trigger("beforeShow"),t.inner.css("overflow","yes"===i?"scroll":"no"===i?"hidden":i),o._setDimension(),o.reposition(),o.isOpen=!1,o.coming=null,o.bindEvents(),o.isOpened?l.prevMethod&&o.transitions[l.prevMethod]():$(".fancybox-wrap").not(t.wrap).stop(!0).trigger("onReset").remove(),o.transitions[o.isOpened?t.nextMethod:t.openMethod](),o._preloadImages()}},_setDimension:function(){var t,e,n,i,r,a,s,l,c,u,f,m,g,v,y,b,w,x=o.getViewport(),C=0,S=o.wrap,k=o.skin,T=o.inner,E=o.current,A=E.width,O=E.height,_=E.minWidth,P=E.minHeight,I=E.maxWidth,D=E.maxHeight,M=E.scrolling,L=E.scrollOutside?E.scrollbarWidth:0,R=E.margin,j=d(R[1]+R[3]),V=d(R[0]+R[2]);if(S.add(k).add(T).width("auto").height("auto").removeClass("fancybox-tmp"),r=j+(n=d(k.outerWidth(!0)-k.width())),a=V+(i=d(k.outerHeight(!0)-k.height())),s=h(A)?(x.w-r)*d(A)/100:A,l=h(O)?(x.h-a)*d(O)/100:O,"iframe"===E.type){if(b=E.content,E.autoHeight&&1===b.data("ready"))try{b[0].contentWindow.document.location&&(T.width(s).height(9999),w=b.contents().find("body"),L&&w.css("overflow-x","hidden"),l=w.outerHeight(!0))}catch(t){}}else(E.autoWidth||E.autoHeight)&&(T.addClass("fancybox-tmp"),E.autoWidth||T.width(s),E.autoHeight||T.height(l),E.autoWidth&&(s=T.width()),E.autoHeight&&(l=T.height()),T.removeClass("fancybox-tmp"));if(A=d(s),O=d(l),f=s/l,_=d(h(_)?d(_,"w")-r:_),I=d(h(I)?d(I,"w")-r:I),P=d(h(P)?d(P,"h")-a:P),c=I,u=D=d(h(D)?d(D,"h")-a:D),E.fitToView&&(I=Math.min(x.w-r,I),D=Math.min(x.h-a,D)),v=x.w-j,y=x.h-V,E.aspectRatio?(A>I&&(O=d((A=I)/f)),O>D&&(A=d((O=D)*f)),A<_&&(O=d((A=_)/f)),O<P&&(A=d((O=P)*f))):(A=Math.max(_,Math.min(A,I)),E.autoHeight&&"iframe"!==E.type&&(T.width(A),O=T.height()),O=Math.max(P,Math.min(O,D))),E.fitToView)if(T.width(A).height(O),S.width(A+n),m=S.width(),g=S.height(),E.aspectRatio)for(;(m>v||g>y)&&A>_&&O>P&&!(C++>19);)O=Math.max(P,Math.min(D,O-10)),(A=d(O*f))<_&&(O=d((A=_)/f)),A>I&&(O=d((A=I)/f)),T.width(A).height(O),S.width(A+n),m=S.width(),g=S.height();else A=Math.max(_,Math.min(A,A-(m-v))),O=Math.max(P,Math.min(O,O-(g-y)));L&&"auto"===M&&O<l&&A+n+L<v&&(A+=L),T.width(A).height(O),S.width(A+n),m=S.width(),g=S.height(),t=(m>v||g>y)&&A>_&&O>P,e=E.aspectRatio?A<c&&O<u&&A<s&&O<l:(A<c||O<u)&&(A<s||O<l),$.extend(E,{dim:{width:p(m),height:p(g)},origWidth:s,origHeight:l,canShrink:t,canExpand:e,wPadding:n,hPadding:i,wrapSpace:g-k.outerHeight(!0),skinSpace:k.height()-O}),!b&&E.autoHeight&&O>P&&O<D&&!e&&T.height("auto")},_getPosition:function(t){var e=o.current,n=o.getViewport(),i=e.margin,r=o.wrap.width()+i[1]+i[3],a=o.wrap.height()+i[0]+i[2],s={position:"absolute",top:i[0],left:i[3]};return e.autoCenter&&e.fixed&&!t&&a<=n.h&&r<=n.w?s.position="fixed":e.locked||(s.top+=n.y,s.left+=n.x),s.top=p(Math.max(s.top,s.top+(n.h-a)*e.topRatio)),s.left=p(Math.max(s.left,s.left+(n.w-r)*e.leftRatio)),s},_afterZoomIn:function(){var t=o.current;t&&(o.isOpen=o.isOpened=!0,o.wrap.css("overflow","visible").addClass("fancybox-opened"),o.update(),(t.closeClick||t.nextClick&&o.group.length>1)&&o.inner.css("cursor","pointer").bind("click.fb",(function(e){$(e.target).is("a")||$(e.target).parent().is("a")||(e.preventDefault(),o[t.closeClick?"close":"next"]())})),t.closeBtn&&$(t.tpl.closeBtn).appendTo(o.skin).bind("click.fb",(function(t){t.preventDefault(),o.close()})),t.arrows&&o.group.length>1&&((t.loop||t.index>0)&&$(t.tpl.prev).appendTo(o.outer).bind("click.fb",o.prev),(t.loop||t.index<o.group.length-1)&&$(t.tpl.next).appendTo(o.outer).bind("click.fb",o.next)),o.trigger("afterShow"),t.loop||t.index!==t.group.length-1?o.opts.autoPlay&&!o.player.isActive&&(o.opts.autoPlay=!1,o.play()):o.play(!1))},_afterZoomOut:function(t){t=t||o.current,$(".fancybox-wrap").trigger("onReset").remove(),$.extend(o,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),o.trigger("afterClose",t)}}),o.transitions={getOrigPosition:function(){var t=o.current,e=t.element,n=t.orig,i={},r=50,a=50,s=t.hPadding,l=t.wPadding,u=o.getViewport();return!n&&t.isDom&&e.is(":visible")&&((n=e.find("img:first")).length||(n=e)),c(n)?(i=n.offset(),n.is("img")&&(r=n.outerWidth(),a=n.outerHeight())):(i.top=u.y+(u.h-a)*t.topRatio,i.left=u.x+(u.w-r)*t.leftRatio),("fixed"===o.wrap.css("position")||t.locked)&&(i.top-=u.y,i.left-=u.x),i={top:p(i.top-s*t.topRatio),left:p(i.left-l*t.leftRatio),width:p(r+l),height:p(a+s)}},step:function(t,e){var n,i,r=e.prop,a=o.current,s=a.wrapSpace,l=a.skinSpace;"width"!==r&&"height"!==r||(n=e.end===e.start?1:(t-e.start)/(e.end-e.start),o.isClosing&&(n=1-n),i=t-("width"===r?a.wPadding:a.hPadding),o.skin[r](d("width"===r?i:i-s*n)),o.inner[r](d("width"===r?i:i-s*n-l*n)))},zoomIn:function(){var t=o.current,e=t.pos,n=t.openEffect,i="elastic"===n,r=$.extend({opacity:1},e);delete r.position,i?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===n&&(e.opacity=.1),o.wrap.css(e).animate(r,{duration:"none"===n?0:t.openSpeed,easing:t.openEasing,step:i?this.step:null,complete:o._afterZoomIn})},zoomOut:function(){var t=o.current,e=t.closeEffect,n="elastic"===e,i={opacity:.1};n&&(i=this.getOrigPosition(),t.closeOpacity&&(i.opacity=.1)),o.wrap.animate(i,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:n?this.step:null,complete:o._afterZoomOut})},changeIn:function(){var t,e=o.current,n=e.nextEffect,i=e.pos,r={opacity:1},a=o.direction,s=200;i.opacity=.1,"elastic"===n&&(t="down"===a||"up"===a?"top":"left","down"===a||"right"===a?(i[t]=p(d(i[t])-s),r[t]="+=200px"):(i[t]=p(d(i[t])+s),r[t]="-=200px")),"none"===n?o._afterZoomIn():o.wrap.css(i).animate(r,{duration:e.nextSpeed,easing:e.nextEasing,complete:o._afterZoomIn})},changeOut:function(){var t=o.previous,e=t.prevEffect,n={opacity:.1},i=o.direction;"elastic"===e&&(n["down"===i||"up"===i?"top":"left"]=("up"===i||"left"===i?"-":"+")+"=200px"),t.wrap.animate(n,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){$(this).trigger("onReset").remove()}})}},o.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!l,fixed:!0},overlay:null,fixed:!1,el:$("html"),create:function(t){t=$.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=$('<div class="fancybox-overlay"></div>').appendTo(o.coming?o.coming.parent:t.parent),this.fixed=!1,t.fixed&&o.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=$.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(i.bind("resize.overlay",$.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",(function(t){if($(t.target).hasClass("fancybox-overlay"))return o.isActive?o.close():e.close(),!1})),this.overlay.css(t.css).show()},close:function(){var t,e;i.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&($(".fancybox-margin").removeClass("fancybox-margin"),t=i.scrollTop(),e=i.scrollLeft(),this.el.removeClass("fancybox-lock"),i.scrollTop(t).scrollLeft(e)),$(".fancybox-overlay").remove().hide(),$.extend(this,{overlay:null,fixed:!1})},update:function(){var e,n="100%";this.overlay.width(n).height("100%"),a?(e=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),r.width()>e&&(n=r.width())):r.width()>i.width()&&(n=r.width()),this.overlay.width(n).height(r.height())},onReady:function(t,e){var n=this.overlay;$(".fancybox-overlay").stop(!0,!0),n||this.create(t),t.locked&&this.fixed&&e.fixed&&(n||(this.margin=r.height()>i.height()&&$("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var n,r;e.locked&&(!1!==this.margin&&($("*").filter((function(){return"fixed"===$(this).css("position")&&!$(this).hasClass("fancybox-overlay")&&!$(this).hasClass("fancybox-wrap")})).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),n=i.scrollTop(),r=i.scrollLeft(),this.el.addClass("fancybox-lock"),i.scrollTop(n).scrollLeft(r)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!o.coming&&this.overlay.fadeOut(t.speedOut,$.proxy(this.close,this))}},o.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,n,i=o.current,r=i.title,s=t.type;if($.isFunction(r)&&(r=r.call(i.element,i)),u(r)&&""!==$.trim(r)){switch(e=$('<div class="fancybox-title fancybox-title-'+s+'-wrap">'+r+"</div>"),s){case"inside":n=o.skin;break;case"outside":n=o.wrap;break;case"over":n=o.inner;break;default:n=o.skin,e.appendTo("body"),a&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),o.current.margin[2]+=Math.abs(d(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](n)}}},$.fn.fancybox=function(t){var e,n=$(this),i=this.selector||"",a=function(r){var a,s,l=$(this).blur(),c=e;r.ctrlKey||r.altKey||r.shiftKey||r.metaKey||l.is(".fancybox-wrap")||(a=t.groupAttr||"data-fancybox-group",(s=l.attr(a))||(a="rel",s=l.get(0)[a]),s&&""!==s&&"nofollow"!==s&&(c=(l=(l=i.length?$(i):n).filter("["+a+'="'+s+'"]')).index(this)),t.index=c,!1!==o.open(l,t)&&r.preventDefault())};return e=(t=t||{}).index||0,i&&!1!==t.live?r.undelegate(i,"click.fb-start").delegate(i+":not('.fancybox-item, .fancybox-nav')","click.fb-start",a):n.unbind("click.fb-start").bind("click.fb-start",a),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready((function(){var t,i,r,a;$.scrollbarWidth===e&&($.scrollbarWidth=function(){var t=$('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),n=e.innerWidth()-e.height(99).innerWidth();return t.remove(),n}),$.support.fixedPosition===e&&($.support.fixedPosition=(r=$('<div style="position:fixed;top:20px;"></div>').appendTo("body"),a=20===r[0].offsetTop||15===r[0].offsetTop,r.remove(),a)),$.extend(o.defaults,{scrollbarWidth:$.scrollbarWidth(),fixed:$.support.fixedPosition,parent:$("body")}),t=$(window).width(),n.addClass("fancybox-lock-test"),i=$(window).width(),n.removeClass("fancybox-lock-test"),$("<style type='text/css'>.fancybox-margin{margin-right:"+(i-t)+"px;}</style>").appendTo("head")}))}(window,document,jQuery),
/*!
 * Buttons helper for fancyBox
 * version: 1.0.5 (Mon, 15 Oct 2012)
 * @requires fancyBox v2.0 or later
 *
 * Usage:
 *     $(".fancybox").fancybox({
 *         helpers : {
 *             buttons: {
 *                 position : 'top'
 *             }
 *         }
 *     });
 *
 */
function($){var t=$.fancybox;t.helpers.buttons={defaults:{skipSingle:!1,position:"top",tpl:'<div id="fancybox-buttons"><ul><li><a class="btnPrev" title="Previous" href="javascript:;"></a></li><li><a class="btnPlay" title="Start slideshow" href="javascript:;"></a></li><li><a class="btnNext" title="Next" href="javascript:;"></a></li><li><a class="btnToggle" title="Toggle size" href="javascript:;"></a></li><li><a class="btnClose" title="Close" href="javascript:;"></a></li></ul></div>'},list:null,buttons:null,beforeLoad:function(t,e){if(t.skipSingle&&e.group.length<2)return e.helpers.buttons=!1,void(e.closeBtn=!0);e.margin["bottom"===t.position?2:0]+=30},onPlayStart:function(){this.buttons&&this.buttons.play.attr("title","Pause slideshow").addClass("btnPlayOn")},onPlayEnd:function(){this.buttons&&this.buttons.play.attr("title","Start slideshow").removeClass("btnPlayOn")},afterShow:function(e,n){var i=this.buttons;i||(this.list=$(e.tpl).addClass(e.position).appendTo("body"),i={prev:this.list.find(".btnPrev").click(t.prev),next:this.list.find(".btnNext").click(t.next),play:this.list.find(".btnPlay").click(t.play),toggle:this.list.find(".btnToggle").click(t.toggle),close:this.list.find(".btnClose").click(t.close)}),n.index>0||n.loop?i.prev.removeClass("btnDisabled"):i.prev.addClass("btnDisabled"),n.loop||n.index<n.group.length-1?(i.next.removeClass("btnDisabled"),i.play.removeClass("btnDisabled")):(i.next.addClass("btnDisabled"),i.play.addClass("btnDisabled")),this.buttons=i,this.onUpdate(e,n)},onUpdate:function(t,e){var n;this.buttons&&(n=this.buttons.toggle.removeClass("btnDisabled btnToggleOn"),e.canShrink?n.addClass("btnToggleOn"):e.canExpand||n.addClass("btnDisabled"))},beforeClose:function(){this.list&&this.list.remove(),this.list=null,this.buttons=null}}}(jQuery),
/*!
 * Media helper for fancyBox
 * version: 1.0.6 (Fri, 14 Jun 2013)
 * @requires fancyBox v2.0 or later
 *
 * Usage:
 *     $(".fancybox").fancybox({
 *         helpers : {
 *             media: true
 *         }
 *     });
 *
 * Set custom URL parameters:
 *     $(".fancybox").fancybox({
 *         helpers : {
 *             media: {
 *                 youtube : {
 *                     params : {
 *                         autoplay : 0
 *                     }
 *                 }
 *             }
 *         }
 *     });
 *
 * Or:
 *     $(".fancybox").fancybox({,
 *         helpers : {
 *             media: true
 *         },
 *         youtube : {
 *             autoplay: 0
 *         }
 *     });
 *
 *  Supports:
 *
 *      Youtube
 *          http://www.youtube.com/watch?v=opj24KnzrWo
 *          http://www.youtube.com/embed/opj24KnzrWo
 *          http://youtu.be/opj24KnzrWo
 *			http://www.youtube-nocookie.com/embed/opj24KnzrWo
 *      Vimeo
 *          http://vimeo.com/40648169
 *          http://vimeo.com/channels/staffpicks/38843628
 *          http://vimeo.com/groups/surrealism/videos/36516384
 *          http://player.vimeo.com/video/45074303
 *      Metacafe
 *          http://www.metacafe.com/watch/7635964/dr_seuss_the_lorax_movie_trailer/
 *          http://www.metacafe.com/watch/7635964/
 *      Dailymotion
 *          http://www.dailymotion.com/video/xoytqh_dr-seuss-the-lorax-premiere_people
 *      Twitvid
 *          http://twitvid.com/QY7MD
 *      Twitpic
 *          http://twitpic.com/7p93st
 *      Instagram
 *          http://instagr.am/p/IejkuUGxQn/
 *          http://instagram.com/p/IejkuUGxQn/
 *      Google maps
 *          http://maps.google.com/maps?q=Eiffel+Tower,+Avenue+Gustave+Eiffel,+Paris,+France&t=h&z=17
 *          http://maps.google.com/?ll=48.857995,2.294297&spn=0.007666,0.021136&t=m&z=16
 *          http://maps.google.com/?ll=48.859463,2.292626&spn=0.000965,0.002642&t=m&z=19&layer=c&cbll=48.859524,2.292532&panoid=YJ0lq28OOy3VT2IqIuVY0g&cbp=12,151.58,,0,-15.56
 */
function($){"use strict";var t=$.fancybox,e=function(t,e,n){return n=n||"","object"===$.type(n)&&(n=$.param(n,!0)),$.each(e,(function(e,n){t=t.replace("$"+e,n||"")})),n.length&&(t+=(t.indexOf("?")>0?"&":"?")+n),t};t.helpers.media={defaults:{youtube:{matcher:/(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"opaque",enablejsapi:1},type:"iframe",url:"//www.youtube.com/embed/$3"},vimeo:{matcher:/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},type:"iframe",url:"//player.vimeo.com/video/$1"},metacafe:{matcher:/metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,params:{autoPlay:"yes"},type:"swf",url:function(t,e,n){return n.swf.flashVars="playerVars="+$.param(e,!0),"//www.metacafe.com/fplayer/"+t[1]+"/.swf"}},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"swf",url:"//www.dailymotion.com/swf/video/$1"},twitvid:{matcher:/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,params:{autoplay:0},type:"iframe",url:"//www.twitvid.com/embed.php?guid=$1"},twitpic:{matcher:/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,type:"image",url:"//twitpic.com/show/full/$1/"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[1]+"/"+t[3]+t[4]+"&output="+(t[4].indexOf("layer=c")>0?"svembed":"embed")}}},beforeLoad:function(t,n){var i,r,o,a,s=n.href||"",l=!1;for(i in t)if(t.hasOwnProperty(i)&&(r=t[i],o=s.match(r.matcher))){l=r.type,a=$.extend(!0,{},r.params,n[i]||($.isPlainObject(t[i])?t[i].params:null)),s="function"===$.type(r.url)?r.url.call(this,o,a,n):e(r.url,o,a);break}l&&(n.href=s,n.type=l,n.autoHeight=!1)}}}(jQuery),
/*!
 * Thumbnail helper for fancyBox
 * version: 1.0.7 (Mon, 01 Oct 2012)
 * @requires fancyBox v2.0 or later
 *
 * Usage:
 *     $(".fancybox").fancybox({
 *         helpers : {
 *             thumbs: {
 *                 width  : 50,
 *                 height : 50
 *             }
 *         }
 *     });
 *
 */
function($){$.fancybox.helpers.thumbs={defaults:{width:50,height:50,position:"bottom",source:function(t){var e;if(t.element){var n=$(t.element).find("img");e=n.data("fancy-thumb-src")?n.data("fancy-thumb-src"):n.attr("src")}return!e&&"image"===t.type&&t.href&&(e=t.href),e}},wrap:null,list:null,width:0,init:function(t,e){var n,i=this,r=t.width,o=t.height,a=t.source;n="";for(var s=0;s<e.group.length;s++)n+='<li><a style="width:'+r+"px;height:"+o+'px;" href="javascript:jQuery.fancybox.jumpto('+s+');"></a></li>';this.wrap=$('<div id="fancybox-thumbs"></div>').addClass(t.position).appendTo("body"),this.list=$("<ul>"+n+"</ul>").appendTo(this.wrap),$.each(e.group,(function(t){var n=a(e.group[t]);n&&$("<img />").on("load",(function(){var e,n,a,s=this.width,l=this.height;i.list&&s&&l&&(e=s/r,n=l/o,a=i.list.children().eq(t).find("a"),e>=1&&n>=1&&(e>n?(s=Math.floor(s/n),l=o):(s=r,l=Math.floor(l/e))),$(this).css({width:s,height:l,top:Math.floor(o/2-l/2),left:Math.floor(r/2-s/2)}),a.width(r).height(o),$(this).hide().appendTo(a).fadeIn(300))})).attr("src",n)})),this.width=this.list.children().eq(0).outerWidth(!0),this.list.width(this.width*(e.group.length+1)).css("left",Math.floor(.5*$(window).width()-(e.index*this.width+.5*this.width)))},beforeLoad:function(t,e){e.group.length<2?e.helpers.thumbs=!1:e.margin["top"===t.position?0:2]+=t.height+15},afterShow:function(t,e){this.list?this.onUpdate(t,e):this.init(t,e),this.list.children().removeClass("active").eq(e.index).addClass("active")},onUpdate:function(t,e){this.list&&this.list.stop(!0).animate({left:Math.floor(.5*$(window).width()-(e.index*this.width+.5*this.width))},150)},beforeClose:function(){this.wrap&&this.wrap.remove(),this.wrap=null,this.list=null,this.width=0}}}(jQuery),function(t){var e=-1,n=-1,i=function(t){return parseFloat(t)||0},r=function(e){var n={byRow:!0,remove:!1,property:"height"};return"object"==typeof e?t.extend(n,e):("boolean"==typeof e?n.byRow=e:"remove"===e&&(n.remove=!0),n)},o=t.fn.matchHeight=function(e){if((e=r(e)).remove){var n=this;return this.css(e.property,""),t.each(o._groups,(function(t,e){e.elements=e.elements.not(n)})),this}return 1>=this.length||(o._groups.push({elements:this,options:e}),o._apply(this,e)),this};o._groups=[],o._throttle=80,o._maintainScroll=!1,o._beforeUpdate=null,o._afterUpdate=null,o._apply=function(e,n){var a=r(n),s=t(e),l=[s],c=t(window).scrollTop(),u=t("html").outerHeight(!0),h=s.parents().filter(":hidden");return h.each((function(){var e=t(this);e.data("style-cache",e.attr("style"))})),h.css("display","block"),a.byRow&&(s.each((function(){var e=t(this),n="inline-block"===e.css("display")?"inline-block":"block";e.data("style-cache",e.attr("style")),e.css({display:n,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})})),l=function(e){var n=null,r=[];return t(e).each((function(){var e=t(this),o=e.offset().top-i(e.css("margin-top")),a=0<r.length?r[r.length-1]:null;null===a?r.push(e):1>=Math.floor(Math.abs(n-o))?r[r.length-1]=a.add(e):r.push(e),n=o})),r}(s),s.each((function(){var e=t(this);e.attr("style",e.data("style-cache")||"")}))),t.each(l,(function(e,n){var r=t(n),o=0;a.byRow&&1>=r.length?r.css(a.property,""):(r.each((function(){var e=t(this),n={display:"inline-block"===e.css("display")?"inline-block":"block"};n[a.property]="",e.css(n),e.outerHeight(!1)>o&&(o=e.outerHeight(!1)),e.css("display","")})),r.each((function(){var e=t(this),n=0;"border-box"!==e.css("box-sizing")&&(n+=i(e.css("border-top-width"))+i(e.css("border-bottom-width")),n+=i(e.css("padding-top"))+i(e.css("padding-bottom"))),e.css(a.property,o-n)})))})),h.each((function(){var e=t(this);e.attr("style",e.data("style-cache")||null)})),o._maintainScroll&&t(window).scrollTop(c/u*t("html").outerHeight(!0)),this},o._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each((function(){var n=t(this),i=n.attr("data-match-height")||n.attr("data-mh");e[i]=i in e?e[i].add(n):n})),t.each(e,(function(){this.matchHeight(!0)}))};var a=function(e){o._beforeUpdate&&o._beforeUpdate(e,o._groups),t.each(o._groups,(function(){o._apply(this.elements,this.options)})),o._afterUpdate&&o._afterUpdate(e,o._groups)};o._update=function(i,r){if(r&&"resize"===r.type){var s=t(window).width();if(s===e)return;e=s}i?-1===n&&(n=setTimeout((function(){a(r),n=-1}),o._throttle)):a(r)},t(o._applyDataApi),t(window).bind("load",(function(t){o._update(!1,t)})),t(window).bind("resize orientationchange",(function(t){o._update(!0,t)}))}(jQuery),function($){"use strict";$.fn.checked=function(t){return!0===t||!1===t?$(this).each((function(){this.checked=t})):void 0!==t&&"toggle"!==t||$(this).each((function(){this.checked=!this.checked})),this},$.SmartRequest=function(t,e,n){return n=$.extend(n||{},{page:t,action:e}),$.getJSON("/actions/handler/ajax",n)},$.fn.SmartForm=function(t,e){if("county"==t){var n=$.extend({event:"blur",minLength:4,target:null},e);return this.each((function(){n.target&&$(n.target).length>0&&$(this).on(n.event,(function(){var t=!!e.hasOwnProperty("country")&&$(e.country);if(!t||!t.length||"DK"==t.val()){var i=$(n.target),r=$(this).val();r.length>=n.minLength&&$.SmartRequest("helper","find_county",{zip:r,country:"dk"}).then((function(t){t.result&&i.val(t.result).blur()}))}}))}))}if("countrycode"==t){n=$.extend({event:"change",target:function(){}},e);return this.each((function(){$(this).on(n.event,(function(){$.SmartRequest("checkout","country_code",{delivery_country:$(this).val()}).then((function(t){t.result&&n.target.call(this,t.result.code)}))}))}))}return this},$((function(){$(document).on("change click showactive","[data-show-on-active]",(function(t){var e=$(this),n=e.data("showActiveGroup")||null;n&&$('[data-show-active-group="'+n+'"]').each((function(){$($(this).data("showOnActive")).find("input, select").attr("disabled",!0).end().hide()})),$(e.data("showOnActive")).find("input, select").attr("disabled",!1).end().slideDown()}))}))}(jQuery),function($){var t={init:function(e){return this.each((function(){t.destroy.call(this),this.opt=$.extend(!0,{},$.fn.raty.defaults,e);var n=$(this);t._callback.call(this,["number","readOnly","score","scoreName"]),this.opt.precision&&t._adjustPrecision.call(this),this.opt.number=t._between(this.opt.number,0,this.opt.numberMax),this.stars=t._createStars.call(this),this.score=t._createScore.call(this),t._apply.call(this,this.opt.score),this.opt.cancel&&(this.cancel=t._createCancel.call(this)),this.opt.width&&n.css("width",this.opt.width),this.opt.readOnly?t._lock.call(this):(n.css("cursor","pointer"),t._binds.call(this)),t._target.call(this,this.opt.score),n.data({settings:this.opt,raty:!0})}))},_adjustPrecision:function(){this.opt.targetType="score",this.opt.half=!0},_apply:function(e){e&&e>0&&(e=t._between(e,0,this.opt.number),this.score.val(e)),t._fill.call(this,e),e&&t._roundStars.call(this,e)},_between:function(t,e,n){return Math.min(Math.max(parseFloat(t),e),n)},_binds:function(){this.cancel&&t._bindCancel.call(this),t._bindClick.call(this),t._bindOut.call(this),t._bindOver.call(this)},_bindCancel:function(){t._bindClickCancel.call(this),t._bindOutCancel.call(this),t._bindOverCancel.call(this)},_bindClick:function(){var t=this,e=$(t);t.stars.on("click.raty",(function(n){t.score.val(t.opt.half||t.opt.precision?e.data("score"):$(this).data("score")),t.opt.click&&t.opt.click.call(t,parseFloat(t.score.val()),n)}))},_bindClickCancel:function(){var t=this;t.cancel.on("click.raty",(function(e){t.score.removeAttr("value"),t.opt.click&&t.opt.click.call(t,null,e)}))},_bindOut:function(){var e=this;$(this).on("mouseleave.raty",(function(n){var i=parseFloat(e.score.val())||void 0;t._apply.call(e,i),t._target.call(e,i,n),e.opt.mouseout&&e.opt.mouseout.call(e,i,n)}))},_bindOutCancel:function(){var t=this;t.cancel.on("mouseleave.raty",(function(e){$(this).attr("class",t.opt.cancelOff),t.opt.mouseout&&t.opt.mouseout.call(t,t.score.val()||null,e)}))},_bindOverCancel:function(){var e=this;e.cancel.on("mouseover.raty",(function(n){$(this).attr("class",e.opt.cancelOn),e.stars.attr("class",e.opt.starOff),t._target.call(e,null,n),e.opt.mouseover&&e.opt.mouseover.call(e,null)}))},_bindOver:function(){var e=this,n=$(e),i=e.opt.half?"mousemove.raty":"mouseover.raty";e.stars.on(i,(function(i){var r=parseInt($(this).data("score"),10);if(e.opt.half){var o=parseFloat((i.pageX-$(this).offset().left)/(e.opt.size?e.opt.size:parseInt(n.css("font-size")))),a=o>.5?1:.5;r=r-1+a,t._fill.call(e,r),e.opt.precision&&(r=r-a+o),t._roundStars.call(e,r),n.data("score",r)}else t._fill.call(e,r);t._target.call(e,r,i),e.opt.mouseover&&e.opt.mouseover.call(e,r,i)}))},_callback:function(t){for(var e in t)"function"==typeof this.opt[t[e]]&&(this.opt[t[e]]=this.opt[t[e]].call(this))},_createCancel:function(){var t=$(this),e=this.opt.cancelOff,n=$("<i />",{class:e,title:this.opt.cancelHint});return"left"==this.opt.cancelPlace?t.prepend("&#160;").prepend(n):t.append("&#160;").append(n),n},_createScore:function(){return $("<input />",{type:"hidden",name:this.opt.scoreName}).appendTo(this)},_createStars:function(){for(var e=$(this),n=1;n<=this.opt.number;n++){var i=t._getHint.call(this,n),r=this.opt.score&&this.opt.score>=n?"starOn":"starOff";r=this.opt[r],$("<i />",{class:r,title:i,"data-score":n}).appendTo(this),this.opt.space&&e.append(n<this.opt.number?"&#160;":"")}return e.children("i")},_error:function(t){$(this).html(t),$.error(t)},_fill:function(t){for(var e=this,n=0,i=1;i<=e.stars.length;i++){var r=e.stars.eq(i-1),o=e.opt.single?i==t:i<=t;if(e.opt.iconRange&&e.opt.iconRange.length>n){var a=e.opt.iconRange[n],s=a.on||e.opt.starOn,l=a.off||e.opt.starOff,c=o?s:l;i<=a.range&&r.attr("class",c),i==a.range&&n++}else{c=o?"starOn":"starOff";r.attr("class",this.opt[c])}}},_getHint:function(t){var e=this.opt.hints[t-1];return""===e?"":e||t},_lock:function(){var e=parseInt(this.score.val(),10),n=e?t._getHint.call(this,e):this.opt.noRatedMsg;$(this).data("readonly",!0).css("cursor","").attr("title",n),this.score.attr("readonly","readonly"),this.stars.attr("title",n),this.cancel&&this.cancel.hide()},_roundStars:function(t){var e=(t-Math.floor(t)).toFixed(2);if(e>this.opt.round.down){var n="starOn";this.opt.halfShow&&e<this.opt.round.up?n="starHalf":e<this.opt.round.full&&(n="starOff"),this.stars.eq(Math.ceil(t)-1).attr("class",this.opt[n])}},_target:function(e,n){if(this.opt.target){var i=$(this.opt.target);0===i.length&&t._error.call(this,"Target selector invalid or missing!"),this.opt.targetFormat.indexOf("{score}")<0&&t._error.call(this,'Template "{score}" missing!');var r=n&&"mouseover"==n.type;void 0===e?e=this.opt.targetText:null===e?e=r?this.opt.cancelHint:this.opt.targetText:("hint"==this.opt.targetType?e=t._getHint.call(this,Math.ceil(e)):this.opt.precision&&(e=parseFloat(e).toFixed(1)),r||this.opt.targetKeep||(e=this.opt.targetText)),e&&(e=this.opt.targetFormat.toString().replace("{score}",e)),i.is(":input")?i.val(e):i.html(e)}},_unlock:function(){$(this).data("readonly",!1).css("cursor","pointer").removeAttr("title"),this.score.removeAttr("readonly","readonly");for(var e=0;e<this.opt.number;e++)this.stars.eq(e).attr("title",t._getHint.call(this,e+1));this.cancel&&this.cancel.css("display","")},cancel:function(e){return this.each((function(){!0!==$(this).data("readonly")&&(t[e?"click":"score"].call(this,null),this.score.removeAttr("value"))}))},click:function(e){return $(this).each((function(){!0!==$(this).data("readonly")&&(t._apply.call(this,e),this.opt.click||t._error.call(this,'You must add the "click: function(score, evt) { }" callback.'),this.opt.click.call(this,e,$.Event("click")),t._target.call(this,e))}))},destroy:function(){return $(this).each((function(){var t=$(this),e=t.data("raw");e?t.off(".raty").empty().css({cursor:e.style.cursor,width:e.style.width}).removeData("readonly"):t.data("raw",t.clone()[0])}))},getScore:function(){var t,e=[];return $(this).each((function(){t=this.score.val(),e.push(t?parseFloat(t):void 0)})),e.length>1?e:e[0]},readOnly:function(e){return this.each((function(){var n=$(this);n.data("readonly")!==e&&(e?(n.off(".raty").children("i").off(".raty"),t._lock.call(this)):(t._binds.call(this),t._unlock.call(this)),n.data("readonly",e))}))},reload:function(){return t.set.call(this,{})},score:function(){return arguments.length?t.setScore.apply(this,arguments):t.getScore.call(this)},set:function(t){return this.each((function(){var e=$(this),n=e.data("settings"),i=$.extend({},n,t);e.raty(i)}))},setScore:function(e){return $(this).each((function(){!0!==$(this).data("readonly")&&(t._apply.call(this,e),t._target.call(this,e))}))}};$.fn.raty=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void $.error("Method "+e+" does not exist!"):t.init.apply(this,arguments)},$.fn.raty.defaults={cancel:!1,cancelHint:"Cancel this rating!",cancelOff:"fa fa-fw fa-minus-square",cancelOn:"fa fa-fw fa-check-square",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["bad","poor","regular","good","gorgeous"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",number:5,numberMax:20,precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,size:null,space:!0,starHalf:"fa fa-fw fa-star-half-o",starOff:"fa fa-fw fa-star-o",starOn:"fa fa-fw fa-star",target:void 0,targetFormat:"{score}",targetKeep:!1,targetText:"",targetType:"hint",width:!1}}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}((function($){"use strict";var t=$.scrollTo=function(t,e,n){return $(window).scrollTo(t,e,n)};function e(t){return!t.nodeName||-1!==$.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])}function n(t){return $.isFunction(t)||$.isPlainObject(t)?t:{top:t,left:t}}return t.defaults={axis:"xy",duration:0,limit:!0},$.fn.scrollTo=function(i,r,o){"object"==typeof r&&(o=r,r=0),"function"==typeof o&&(o={onAfter:o}),"max"===i&&(i=9e9),o=$.extend({},t.defaults,o),r=r||o.duration;var a=o.queue&&o.axis.length>1;return a&&(r/=2),o.offset=n(o.offset),o.over=n(o.over),this.each((function(){if(null!==i){var s,l=e(this),c=l?this.contentWindow||window:this,u=$(c),h=i,d={};switch(typeof h){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(h)){h=n(h);break}if(!(h=l?$(h):$(h,c)).length)return;case"object":(h.is||h.style)&&(s=(h=$(h)).offset())}var p=$.isFunction(o.offset)&&o.offset(c,h)||o.offset;$.each(o.axis.split(""),(function(e,n){var i="x"===n?"Left":"Top",r=i.toLowerCase(),m="scroll"+i,g=u[m](),v=t.max(c,n);if(s)d[m]=s[r]+(l?0:g-u.offset()[r]),o.margin&&(d[m]-=parseInt(h.css("margin"+i),10)||0,d[m]-=parseInt(h.css("border"+i+"Width"),10)||0),d[m]+=p[r]||0,o.over[r]&&(d[m]+=h["x"===n?"width":"height"]()*o.over[r]);else{var y=h[r];d[m]=y.slice&&"%"===y.slice(-1)?parseFloat(y)/100*v:y}o.limit&&/^\d+$/.test(d[m])&&(d[m]=d[m]<=0?0:Math.min(d[m],v)),!e&&o.axis.length>1&&(g===d[m]?d={}:a&&(f(o.onAfterFirst),d={}))})),f(o.onAfter)}function f(t){var e=$.extend({},o,{queue:!0,duration:r,complete:t&&function(){t.call(c,h,o)}});u.animate(d,e)}}))},t.max=function(t,n){var i="x"===n?"Width":"Height",r="scroll"+i;if(!e(t))return t[r]-$(t)[i.toLowerCase()]();var o="client"+i,a=t.ownerDocument||t.document,s=a.documentElement,l=a.body;return Math.max(s[r],l[r])-Math.min(s[o],l[o])},$.Tween.propHooks.scrollLeft=$.Tween.propHooks.scrollTop={get:function(t){return $(t.elem)[t.prop]()},set:function(t){var e=this.get(t);if(t.options.interrupt&&t._last&&t._last!==e)return $(t.elem).stop();var n=Math.round(t.now);e!==n&&($(t.elem)[t.prop](n),t._last=this.get(t))}},t})),
/*!
 * jQuery Tools v1.2.7 - The missing UI library for the Web
 * 
 * dateinput/dateinput.js
 * validator/validator.js
 * 
 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE.
 * 
 * http://flowplayer.org/tools/
 * 
 */
function(t,e){t.tools=t.tools||{version:"v1.2.7"};var n,i=[],r={},o=[75,76,38,39,74,72,40,37],a={};function s(t,e){return new Date(t,e+1,0).getDate()}function l(t,e){for(t=""+t,e=e||2;t.length<e;)t="0"+t;return t}n=t.tools.dateinput={conf:{format:"mm/dd/yy",formatter:"default",selectors:!1,yearRange:[-5,5],lang:"en",offset:[0,0],speed:0,firstDay:0,min:e,max:e,trigger:0,toggle:0,editable:0,css:{prefix:"cal",input:"date",root:0,head:0,title:0,prev:0,next:0,month:0,year:0,days:0,body:0,weeks:0,today:0,current:0,week:0,off:0,sunday:0,focus:0,disabled:0,trigger:0}},addFormatter:function(t,e){r[t]=e},localize:function(e,n){t.each(n,(function(t,e){n[t]=e.split(",")})),a[e]=n}},n.localize("en",{months:"January,February,March,April,May,June,July,August,September,October,November,December",shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",days:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",shortDays:"Sun,Mon,Tue,Wed,Thu,Fri,Sat"});var c=t("<a/>");function u(t,e,n,i){var o=e.getDate(),s=e.getDay(),u=e.getMonth(),h=e.getFullYear(),d={d:o,dd:l(o),ddd:a[i].shortDays[s],dddd:a[i].days[s],m:u+1,mm:l(u+1),mmm:a[i].shortMonths[u],mmmm:a[i].months[u],yy:String(h).slice(2),yyyy:h},p=r[t](n,e,d,i);return c.html(p).html()}function h(t){return parseInt(t,10)}function d(t,e){return t.getFullYear()===e.getFullYear()&&t.getMonth()==e.getMonth()&&t.getDate()==e.getDate()}function p(t){if(t!==e){if(t.constructor==Date)return t;if("string"==typeof t){var n=t.split("-");if(3==n.length)return new Date(h(n[0]),h(n[1])-1,h(n[2]));if(!/^-?\d+$/.test(t))return;t=h(t)}var i=new Date;return i.setDate(i.getDate()+t),i}}function f(n,r){var l,c,f,m,g,v,y,b=this,w=new Date,x=w.getFullYear(),C=r.css,S=a[r.lang],k=t("#"+C.root),T=k.find("#"+C.title),E=n.attr("data-value")||r.value||n.val(),A=n.attr("min")||r.min,O=n.attr("max")||r.max;if(0===A&&(A="0"),E=p(E)||w,A=p(A||new Date(x+r.yearRange[0],1,1)),O=p(O||new Date(x+r.yearRange[1]+1,1,-1)),!S)throw"Dateinput: invalid language: "+r.lang;if("date"==n.attr("type")){var _,P=(_=n.clone()).wrap("<div/>").parent().html(),I=t(P.replace(/type/i,"type=text data-orig-type"));r.value&&I.val(r.value),n.replaceWith(I),n=I}n.addClass(C.input);var D=n.add(b);if(!k.length){if((k=t("<div><div><a/><div/><a/></div><div><div/><div/></div></div>").hide().css({position:"absolute"}).attr("id",C.root)).children().eq(0).attr("id",C.head).end().eq(1).attr("id",C.body).children().eq(0).attr("id",C.days).end().eq(1).attr("id",C.weeks).end().end().end().find("a").eq(0).attr("id",C.prev).end().eq(1).attr("id",C.next),T=k.find("#"+C.head).find("div").attr("id",C.title),r.selectors){var M=t("<select/>").attr("id",C.month),L=t("<select/>").attr("id",C.year);T.html(M.add(L))}for(var R=k.find("#"+C.days),j=0;j<7;j++)R.append(t("<span/>").text(S.shortDays[(j+r.firstDay)%7]));t("body").append(k)}r.trigger&&(l=t("<a/>").attr("href","#").addClass(C.trigger).click((function(t){return r.toggle?b.toggle():b.show(),t.preventDefault()})).insertAfter(n));var V=k.find("#"+C.weeks);function N(e,i,r){E=e,m=e.getFullYear(),g=e.getMonth(),v=e.getDate(),r||(r=t.Event("api")),"click"==r.type&&!t.browser.msie&&n.focus(),r.type="beforeChange",D.trigger(r,[e]),r.isDefaultPrevented()||(n.val(u(i.formatter,e,i.format,i.lang)),r.type="change",D.trigger(r),n.data("date",e),b.hide(r))}function H(e){e.type="onShow",D.trigger(e),t(document).on("keydown.d",(function(e){if(e.ctrlKey)return!0;var i=e.keyCode;if(8==i||46==i)return n.val(""),b.hide(e);if(27==i||9==i)return b.hide(e);if(t(o).index(i)>=0){if(!y)return b.show(e),e.preventDefault();var r=t("#"+C.weeks+" a"),a=t("."+C.focus),s=r.index(a);return a.removeClass(C.focus),74==i||40==i?s+=7:75==i||38==i?s-=7:76==i||39==i?s+=1:72!=i&&37!=i||(s-=1),s>41?(b.addMonth(),a=t("#"+C.weeks+" a:eq("+(s-42)+")")):s<0?(b.addMonth(-1),a=t("#"+C.weeks+" a:eq("+(s+42)+")")):a=r.eq(s),a.addClass(C.focus),e.preventDefault()}return 34==i?b.addMonth():33==i?b.addMonth(-1):36==i?b.today():(13==i&&(t(e.target).is("select")||t("."+C.focus).click()),t([16,17,18,9]).index(i)>=0)})),t(document).on("click.d",(function(e){var i=e.target;!t(i).parents("#"+C.root).length&&i!=n[0]&&(!l||i!=l[0])&&b.hide(e)}))}L=k.find("#"+C.year),M=k.find("#"+C.month),t.extend(b,{show:function(e){if(!(n.attr("readonly")||n.attr("disabled")||y)){if((e=e||t.Event()).type="onBeforeShow",D.trigger(e),e.isDefaultPrevented())return;t.each(i,(function(){this.hide()})),y=!0,M.off("change").change((function(){b.setValue(h(L.val()),h(t(this).val()))})),L.off("change").change((function(){b.setValue(h(t(this).val()),h(M.val()))})),c=k.find("#"+C.prev).off("click").click((function(t){return c.hasClass(C.disabled)||b.addMonth(-1),!1})),f=k.find("#"+C.next).off("click").click((function(t){return f.hasClass(C.disabled)||b.addMonth(),!1})),b.setValue(E);var o=n.offset();return/iPad/i.test(navigator.userAgent)&&(o.top-=t(window).scrollTop()),k.css({top:o.top+n.outerHeight({margins:!0})+r.offset[0],left:o.left+r.offset[1]}),r.speed?k.show(r.speed,(function(){H(e)})):(k.show(),H(e)),b}},setValue:function(n,i,o){var a=h(i)>=-1?new Date(h(n),h(i),h(o==e||isNaN(o)?1:o)):n||E;if(a<A?a=A:a>O&&(a=O),"string"==typeof n&&(a=p(n)),n=a.getFullYear(),i=a.getMonth(),o=a.getDate(),-1==i?(i=11,n--):12==i&&(i=0,n++),!y)return N(a,r),b;g=i,m=n,v=o;var l,u=new Date(n,i,1-r.firstDay).getDay(),x=s(n,i),k=s(n,i-1);if(r.selectors){M.empty(),t.each(S.months,(function(e,i){A<new Date(n,e+1,1)&&O>new Date(n,e,0)&&M.append(t("<option/>").html(i).attr("value",e))})),L.empty();for(var _=w.getFullYear(),P=_+r.yearRange[0];P<_+r.yearRange[1];P++)A<new Date(P+1,0,1)&&O>new Date(P,0,0)&&L.append(t("<option/>").text(P));M.val(i),L.val(n)}else T.html(S.months[i]+" "+n);V.empty(),c.add(f).removeClass(C.disabled);for(var I,D,R=u?0:-7;R<(u?42:35);R++)I=t("<a/>"),R%7==0&&(l=t("<div/>").addClass(C.week),V.append(l)),R<u?(I.addClass(C.off),D=k-u+R+1,a=new Date(n,i-1,D)):R<u+x?(D=R-u+1,a=new Date(n,i,D),d(E,a)?I.attr("id",C.current).addClass(C.focus):d(w,a)&&I.attr("id",C.today)):(I.addClass(C.off),D=R-x-u+1,a=new Date(n,i+1,D)),A&&a<A&&I.add(c).addClass(C.disabled),O&&a>O&&I.add(f).addClass(C.disabled),I.attr("href","#"+D).text(D).data("date",a),l.append(I);return V.find("a").click((function(e){var n=t(this);return n.hasClass(C.disabled)||(t("#"+C.current).removeAttr("id"),n.attr("id",C.current),N(n.data("date"),r,e)),!1})),C.sunday&&V.find("."+C.week).each((function(){var e=r.firstDay?7-r.firstDay:0;t(this).children().slice(e,e+1).addClass(C.sunday)})),b},setMin:function(t,e){return A=p(t),e&&E<A&&b.setValue(A),b},setMax:function(t,e){return O=p(t),e&&E>O&&b.setValue(O),b},today:function(){return b.setValue(w)},addDay:function(t){return this.setValue(m,g,v+(t||1))},addMonth:function(t){var e=g+(t||1),n=s(m,e),i=v<=n?v:n;return this.setValue(m,e,i)},addYear:function(t){return this.setValue(m+(t||1),g,v)},destroy:function(){n.add(document).off("click.d keydown.d"),k.add(l).remove(),n.removeData("dateinput").removeClass(C.input),_&&n.replaceWith(_)},hide:function(e){if(y){if((e=t.Event()).type="onHide",D.trigger(e),e.isDefaultPrevented())return;t(document).off("click.d keydown.d"),k.hide(),y=!1}return b},toggle:function(){return b.isOpen()?b.hide():b.show()},getConf:function(){return r},getInput:function(){return n},getCalendar:function(){return k},getValue:function(t){return t?u(r.formatter,E,t,r.lang):E},isOpen:function(){return y}}),t.each(["onBeforeShow","onShow","change","onHide"],(function(e,n){t.isFunction(r[n])&&t(b).on(n,r[n]),b[n]=function(e){return e&&t(b).on(n,e),b}})),r.editable||n.on("focus.d click.d",b.show).keydown((function(e){var i=e.keyCode;return y||t(o).index(i)<0?((8==i||46==i)&&n.val(""),!!(e.shiftKey||e.ctrlKey||e.altKey||9==i)||e.preventDefault()):(b.show(e),e.preventDefault())})),p(n.val())&&N(E,r)}n.addFormatter("default",(function(t,e,n,i){return t.replace(/d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*'/g,(function(t){return t in n?n[t]:t}))})),n.addFormatter("prefixed",(function(t,e,n,i){return t.replace(/%(d{1,4}|m{1,4}|yy(?:yy)?|"[^"]*"|'[^']*')/g,(function(t,e){return e in n?n[e]:t}))})),t.expr[":"].date=function(e){var n=e.getAttribute("type");return n&&"date"==n||t(e).data("dateinput")},t.fn.dateinput=function(e){return this.data("dateinput")?this:(e=t.extend(!0,{},n.conf,e),t.each(e.css,(function(t,n){!n&&"prefix"!=t&&(e.css[t]=(e.css.prefix||"")+(n||t))})),this.each((function(){var n=new f(t(this),e);i.push(n);var o=n.getInput().data("dateinput",n);r=r?r.add(o):o})),r||this);var r}}(jQuery),function(t){t.tools=t.tools||{version:"v1.2.7"};var e,n=/\[type=([a-z]+)\]/,i=/^-?[0-9]*(\.[0-9]+)?$/,r=t.tools.dateinput,o=/^([a-z0-9_\.\-\+]+)@([\da-z\.\-]+)\.([a-z\.]{2,6})$/i,a=/^(https?:\/\/)?[\da-z\.\-]+\.[a-z\.]{2,6}[#&+_\?\/\w \.\-=]*$/i;function s(e,n,i){n=t(n).first()||n;var r=e.offset().top,o=e.offset().left,a=i.position.split(/,?\s+/),s=a[0],l=a[1];r-=n.outerHeight()-i.offset[0],o+=e.outerWidth()+i.offset[1],/iPad/i.test(navigator.userAgent)&&(r-=t(window).scrollTop());var c=n.outerHeight()+e.outerHeight();"center"==s&&(r+=c/2),"bottom"==s&&(r+=c);var u=e.outerWidth();return"center"==l&&(o-=(u+n.outerWidth())/2),"left"==l&&(o-=u),{top:r,left:o}}e=t.tools.validator={conf:{grouped:!1,effect:"default",errorClass:"invalid",inputEvent:null,errorInputEvent:"keyup",formEvent:"submit",lang:"en",message:"<div/>",messageAttr:"data-message",messageClass:"error",offset:[0,0],position:"center right",singleError:!1,speed:"normal"},messages:{"*":{en:"Please correct this value"}},localize:function(n,i){t.each(i,(function(t,i){e.messages[t]=e.messages[t]||{},e.messages[t][n]=i}))},localizeFn:function(n,i){e.messages[n]=e.messages[n]||{},t.extend(e.messages[n],i)},fn:function(e,i,r){t.isFunction(i)?r=i:("string"==typeof i&&(i={en:i}),this.messages[e.key||e]=i);var o=n.exec(e);o&&(e=function(t){function e(){return this.getAttribute("type")==t}return e.key='[type="'+t+'"]',e}(o[1])),l.push([e,r])},addEffect:function(t,e,n){c[t]=[e,n]}};var l=[],c={default:[function(e){var n=this.getConf();t.each(e,(function(e,i){var r=i.input;r.addClass(n.errorClass);var o=r.data("msg.el");o||(o=t(n.message).addClass(n.messageClass).appendTo(document.body),r.data("msg.el",o)),o.css({visibility:"hidden"}).find("p").remove(),t.each(i.messages,(function(e,n){t("<p/>").html(n).appendTo(o)})),o.outerWidth()==o.parent().width()&&o.add(o.find("p")).css({display:"inline"});var a=s(r,o,n);o.css({visibility:"visible",position:"absolute",top:a.top,left:a.left}).fadeIn(n.speed)}))},function(e){var n=this.getConf();e.removeClass(n.errorClass).each((function(){var e=t(this).data("msg.el");e&&e.css({visibility:"hidden"})}))}]};function u(n,i,o){var a=this,u=i.add(a);function h(n,i,r){if(o.grouped||!n.length){var a;if(!1===r||t.isArray(r)){var s=(a=(a=e.messages[i.key||i]||e.messages["*"])[o.lang]||e.messages["*"].en).match(/\$\d/g);s&&t.isArray(r)&&t.each(s,(function(t){a=a.replace(this,r[t])}))}else a=r[o.lang]||r;n.push(a)}}n=n.not(":button, :image, :reset, :submit"),i.attr("novalidate","novalidate"),t.extend(a,{getConf:function(){return o},getForm:function(){return i},getInputs:function(){return n},reflow:function(){return n.each((function(){var e=t(this),n=e.data("msg.el");if(n){var i=s(e,n,o);n.css({top:i.top,left:i.left})}})),a},invalidate:function(e,i){if(!i){var r=[];t.each(e,(function(t,e){var i=n.filter("[name='"+t+"']");i.length&&(i.trigger("OI",[e]),r.push({input:i,messages:[e]}))})),e=r,i=t.Event()}return i.type="onFail",u.trigger(i,[e]),i.isDefaultPrevented()||c[o.effect][0].call(a,e,i),a},reset:function(e){return(e=e||n).removeClass(o.errorClass).each((function(){var e=t(this).data("msg.el");e&&(e.remove(),t(this).data("msg.el",null))})).off(o.errorInputEvent+".v"),a},destroy:function(){return i.off(o.formEvent+".V reset.V"),n.off(o.inputEvent+".V change.V"),a.reset()},checkValidity:function(e,i){e=(e=e||n).not(":disabled");var s={};if(e=e.filter((function(){var e=t(this).attr("name");if(!s[e])return s[e]=!0,t(this)})),!e.length)return!0;if((i=i||t.Event()).type="onBeforeValidate",u.trigger(i,[e]),i.isDefaultPrevented())return i.result;var d=[];e.each((function(){var e=[],n=t(this).data("messages",e),s=r&&n.is(":date")?"onHide.v":o.errorInputEvent+".v";if(n.off(s),t.each(l,(function(){var t=this[0];if(n.filter(t).length){var r=this[1].call(a,n,n.val());if(!0!==r){if(i.type="onBeforeFail",u.trigger(i,[n,t]),i.isDefaultPrevented())return!1;var s=n.attr(o.messageAttr);if(s)return e=[s],!1;h(e,t,r)}}})),e.length&&(d.push({input:n,messages:e}),n.trigger("OI",[e]),o.errorInputEvent&&n.on(s,(function(t){a.checkValidity(n,t)}))),o.singleError&&d.length)return!1}));var p=c[o.effect];if(!p)throw'Validator: cannot find effect "'+o.effect+'"';return d.length?(a.invalidate(d,i),!1):(p[1].call(a,e,i),i.type="onSuccess",u.trigger(i,[e]),e.off(o.errorInputEvent+".v"),!0)}}),t.each("onBeforeValidate,onBeforeFail,onFail,onSuccess".split(","),(function(e,n){t.isFunction(o[n])&&t(a).on(n,o[n]),a[n]=function(e){return e&&t(a).on(n,e),a}})),o.formEvent&&i.on(o.formEvent+".V",(function(t){if(!a.checkValidity(null,t))return t.preventDefault();t.target=i,t.type=o.formEvent})),i.on("reset.V",(function(){a.reset()})),n[0]&&n[0].validity&&n.each((function(){this.oninvalid=function(){return!1}})),i[0]&&(i[0].checkValidity=a.checkValidity),o.inputEvent&&n.on(o.inputEvent+".V",(function(e){a.checkValidity(t(this),e)})),n.filter(":checkbox, select").filter("[required]").on("change.V",(function(e){var n=t(this);(this.checked||n.is("select")&&t(this).val())&&c[o.effect][1].call(a,n,e)})),n.filter(":radio[required]").on("change.V",(function(e){var n=t("[name='"+t(e.srcElement).attr("name")+"']");null!=n&&0!=n.length&&a.checkValidity(n,e)})),t(window).resize((function(){a.reflow()}))}t.each("email,url,number".split(","),(function(e,n){t.expr[":"][n]=function(t){return t.getAttribute("type")===n}})),t.fn.oninvalid=function(t){return this[t?"on":"trigger"]("OI",t)},e.fn(":email","Please enter a valid email address",(function(t,e){return!e||o.test(e)})),e.fn(":url","Please enter a valid URL",(function(t,e){return!e||a.test(e)})),e.fn(":number","Please enter a numeric value.",(function(t,e){return i.test(e)})),e.fn("[max]","Please enter a value no larger than $1",(function(t,e){if(""===e||r&&t.is(":date"))return!0;var n=t.attr("max");return parseFloat(e)<=parseFloat(n)||[n]})),e.fn("[min]","Please enter a value of at least $1",(function(t,e){if(""===e||r&&t.is(":date"))return!0;var n=t.attr("min");return parseFloat(e)>=parseFloat(n)||[n]})),e.fn("[required]","Please complete this mandatory field.",(function(t,e){return t.is(":checkbox")?t.is(":checked"):e})),e.fn("[pattern]",(function(t,e){return""===e||new RegExp("^"+t.attr("pattern")+"$").test(e)})),e.fn(":radio","Please select an option.",(function(e){var n=!1;t("[name='"+e.attr("name")+"']").each((function(e,i){t(i).is(":checked")&&(n=!0)}));return!!n})),t.fn.validator=function(n){var i=this.data("validator");return i&&(i.destroy(),this.removeData("validator")),n=t.extend(!0,{},e.conf,n),this.is("form")?this.each((function(){var e=t(this);i=new u(e.find(":input"),e,n),e.data("validator",i)})):(i=new u(this,this.eq(0).closest("form"),n),this.data("validator",i))}}(jQuery),
/*! JsRender v1.0.0-beta: http://github.com/BorisMoore/jsrender and http://jsviews.com/jsviews
informal pre V1.0 commit counter: 53 */
function(t,e,n){"use strict";if(!(e&&e.views||t.jsviews)){var $,i,r,o,a,s="{",l="{",c="}",u="}",h="^",d=/^(!*?)(?:null|true|false|\d[\d.]*|([\w$]+|\.|~([\w$]+)|#(view|([\w$]+))?)([\w$.^]*?)(?:[.[^]([\w$]+)\]?)?)$/g,p=/(\()(?=\s*\()|(?:([([])\s*)?(?:(\^?)(!*?[#~]?[\w$.^]+)?\s*((\+\+|--)|\+|-|&&|\|\||===|!==|==|!=|<=|>=|[<>%*:?\/]|(=))\s*|(!*?[#~]?[\w$.^]+)([([])?)|(,\s*)|(\(?)\\?(?:(')|("))|(?:\s*(([)\]])(?=\s*\.|\s*\^|\s*$)|[)\]])([([]?))|(\s+)/g,f=/[ \t]*(\r\n|\n|\r)/g,m=/\\(['"])/g,g=/['"\\]/g,v=/\x08(~)?([^\x08]+)\x08/g,y=/^if\s/,b=/<(\w+)[>\s]/,w=/[\x00`><"'&]/g,x=/^on[A-Z]|^convert(Back)?$/,C=w,S=0,k=0,T={"&":"&amp;","<":"&lt;",">":"&gt;","\0":"&#0;","'":"&#39;",'"':"&#34;","`":"&#96;"},E="html",A="data-jsv-tmpl",O={},_={template:{compile:function i(r,a,s,l,c,u){function h(n){if(""+n===n||n.nodeType>0){try{p=n.nodeType>0?n:!o.test(n)&&e&&e(t.document).find(n)[0]}catch(t){}return p&&(n=p.getAttribute(A),r=r||n,(n=D[n])||(r=r||"_"+S++,p.setAttribute(A,r),n=D[r]=i(r,p.innerHTML,s,l,c,u)),p=null),n}}var d,p;d=h(a=a||""),(u=u||(a.markup?a:{})).tmplName=r,s&&(u._parentTmpl=s);!d&&a.markup&&(d=h(a.markup))&&(!d.fn||d.debug===a.debug&&d.allowCode===a.allowCode||(d=d.markup));if(d!==n)return r&&!s&&(O[r]=function(){return a.render.apply(a,arguments)}),d.fn||a.fn?d.fn&&(a=r&&r!==d.tmplName?lt(u,d):d):(a=tt(d,u),ot(d.replace(g,"\\$&"),a)),function(t){var e,n,i,r,o;for(e in _)if((o=(r=_[e]).compile)&&(n=t[e+"s"]))for(i in n)n[i]=o(i,n[i],t,e,r)}(u),a}},tag:{compile:function(t,e,n){var i,r;V(e)?e={depends:e.depends,render:e}:((r=e.template)&&(e.template=""+r===r?D[r]||D(r):r),!1!==e.init&&(((i=e._ctr=function(t){}).prototype=e).constructor=i));n&&(e._parentTmpl=n);return e}},helper:{},converter:{}},P={jsviews:"v1.0.0-beta",render:O,settings:function(t){q(N,t),F(N._dbgMode),N.jsv&&N.jsv()},sub:{View:Z,Err:B,tmplFn:ot,cvt:Q,parse:st,extend:q,err:it,syntaxErr:rt,isFn:function(t){return"function"==typeof t},DataMap:U},_cnvt:function(t,e,i){var r,o,a,s=+i===i&&i,l=e.linkCtx;s&&(i=(s=e.tmpl.bnds[s-1])(e.data,e,P));if(o=i.args[0],t||s){for(a in r=l&&l.tag||{_:{inline:!l,bnd:s},tagName:t+":",flow:!0,_is:"tag"},i.props)x.test(a)&&(r[a]=i.props[a]);l&&(l.tag=r,r.linkCtx=r.linkCtx||l,i.ctx=lt(i.ctx,l.view.ctx)),r.tagCtx=i,i.view=e,r.ctx=i.ctx||{},delete i.ctx,e._.tag=r,o=(o=Q(r,r.convert||"true"!==t&&t)[0])!=n?o:"",o=s&&e._.onRender?e._.onRender(o,e,s):o,e._.tag=n}return o},_tag:function(t,e,i,r,o){var a,s,l,c,u,h,d,p,f,m,g,v,y,b,w,C,S,k,T,A,O="",_=+r===r&&r,I=e.linkCtx||0,L=e.ctx,R=i||e.tmpl;"tag"===t._is&&(t=(s=t).tagName);s=s||I.tag,_&&(r=(v=R.bnds[_-1])(e.data,e,P));for(d=r.length,h=0;h<d;h++){if(f=r[h],T=f.props,g=f.tmpl,g=f.content=g&&R.tmpls[g-1],i=f.props.tmpl,h||i&&s||(y=e.getRsc("tags",t)||it("Unknown tag: {{"+t+"}}")),i=""+(i=i||(s||y).template||g)===i?e.getRsc("templates",i)||D(i):i,q(f,{tmpl:i,render:nt,index:h,view:e,ctx:lt(f.ctx,L)}),!s)for(k in y._ctr?(s=new y._ctr,b=!!s.init,s.attr=s.attr||y.attr||n):s={render:y.render},s._={inline:!I},I&&(I.attr=s.attr=I.attr||s.attr,I.tag=s,s.linkCtx=I),(s._.bnd=v||I.fn)?s._.arrVws={}:s.dataBoundOnly&&it("{^{"+t+"}} tag must be data-bound"),s.tagName=t,s.parent=u=L&&L.tag,s._is="tag",s._def=y,T=f.props)x.test(k)&&(s[k]=T[k]);f.tag=s,s.map&&s.tagCtxs&&(f.map=s.tagCtxs[h].map),s.flow||(m=f.ctx=f.ctx||{},l=s.parents=m.parentTags=L&&lt(m.parentTags,L.parentTags)||{},u&&(l[u.tagName]=u),m.tag=s)}for(s.tagCtxs=r,e._.tag=s,s.rendering={},h=0;h<d;h++)f=s.tagCtx=r[h],T=f.props,S=Q(s,s.convert),(w=T.map||s).map&&(S.length||T.map)&&((C=f.map=q(f.map||{unmap:w.unmap},T)).src!==S[0]&&(C.src&&C.unmap(),w.map.apply(C,S)),S=[C.tgt]),s.ctx=f.ctx,!h&&b&&(A=s.template,s.init(f,I,s.ctx),b=n,s.template!==A&&(s._.tmpl=s.template)),p=n,a=s.render,(a=s.render)&&(p=a.apply(s,S)),S=S.length?S:[e],p=p!==n?p:f.render(S[0],!0)||(o?n:""),O=O?O+(p||""):p;delete s.rendering,s.tagCtx=s.tagCtxs[0],s.ctx=s.tagCtx.ctx,s._.inline&&(c=s.attr)&&c!==E&&(O="text"===c?M.html(O):"");return _&&e._.onRender?e._.onRender(O,e,_):O},_err:function(t){return N._dbgMode?"Error: "+(t.message||t)+". ":""}};for(i in(B.prototype=new Error).constructor=B,Y.depends=function(){return[this.get("item"),"index"]},K.depends=function(){return["index"]},_)et(i,_[i]);var I,D=P.templates,M=P.converters,L=P.helpers,R=P.tags,j=P.sub,V=j.isFn,N=P.settings;e?(($=e).fn.render=nt,(I=$.observable)&&(q(j,I.sub),delete I.sub)):($=t.jsviews={}).isArray=Array&&Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},$.render=O,$.views=P,$.templates=D=P.templates,N({debugMode:F,delimiters:W,_dbgMode:!0,tryCatch:!0}),R({else:function(){},if:{render:function(t){var e=this,n=e.rendering.done||!t&&(arguments.length||!e.tagCtx.index)?"":(e.rendering.done=!0,e.selected=e.tagCtx.index,e.tagCtx.render(e.tagCtx.view,!0));return n},onUpdate:function(t,e,n){var i,r,o;for(i=0;(r=this.tagCtxs[i])&&r.args.length;i++)if(o=!(r=r.args[0])!=!n[i].args[0],!this.convert&&r||o)return o;return!1},flow:!0},for:{render:function(t){var e,i=this,r=i.tagCtx,o="",a=0;return i.rendering.done||((e=!arguments.length)&&(t=r.view.data),t!==n&&(o+=r.render(t,e),a+=$.isArray(t)?t.length:1),(i.rendering.done=a)&&(i.selected=r.index)),o},flow:!0,autoBind:!0},include:{flow:!0,autoBind:!0},"*":{render:H,flow:!0}}),R({props:q(q({},R.for),U((function(t){var e,n,i=[];if("object"==typeof t)for(e in t)(n=t[e])&&n.toJSON&&!n.toJSON()||V(n)||i.push({key:e,prop:t[e]});return i})))}),R.props.autoBind=!0,M({html:function(t){return t!=n?String(t).replace(C,ct):""},attr:function(t){return t!=n?String(t).replace(w,ct):null===t?t:""},url:function(t){return t!=n?encodeURI(String(t)):null===t?t:""}}),W()}function H(t){return t}function z(t){return t}function F(t){N._dbgMode=t,a=t?"Unavailable (nested view): use #getIndex()":"",R("dbg",L.dbg=M.dbg=t?z:H)}function U(t){return{getTgt:t,map:function(e){var n=this;if(n.src!==e&&(n.src&&n.unmap(),"object"==typeof e)){var i=t.apply(n,arguments);n.src=e,n.tgt=i}}}}function B(t,e){e&&e.onError&&!1===e.onError(t)||(this.name=($.link?"JsViews":"JsRender")+" Error",this.message=t||this.name)}function q(t,e){var n;for(n in t=t||{},e)t[n]=e[n];return t}function W(t,e,n){return j.rTag&&!t||(s=t?t.charAt(0):s,l=t?t.charAt(1):l,c=e?e.charAt(0):c,u=e?e.charAt(1):u,t="\\"+s+"(\\"+(h=n||h)+")?\\"+l,e="\\"+c+"\\"+u,r="(?:(?:(\\w+(?=[\\/\\s\\"+c+"]))|(?:(\\w+)?(:)|(>)|!--((?:[^-]|-(?!-))*)--|(\\*)))\\s*((?:[^\\"+c+"]|\\"+c+"(?!\\"+u+"))*?)",j.rTag=r+")",r=new RegExp(t+r+"(\\/)?|(?:\\/(\\w+)))"+e,"g"),o=new RegExp("<.*>|([^\\\\]|^)[{}]|"+t+".*"+e)),[s,l,c,u,h]}function G(t,e){e||(e=t,t=n);var i,r,o,a,s=this,l=!e||"root"===e;if(t){if(!(a=s.type===e?s:n))if(i=s.views,s._.useKey){for(r in i)if(a=i[r].get(t,e))break}else for(r=0,o=i.length;!a&&r<o;r++)a=i[r].get(t,e)}else if(l)for(;s.parent.parent;)a=s=s.parent;else for(;s&&!a;)a=s.type===e?s:n,s=s.parent;return a}function Y(){var t=this.get("item");return t?t.index:n}function K(){return this.index}function X(e){var i,r=this,o=r.linkCtx,a=(r.ctx||{})[e];return a===n&&o&&o.ctx&&(a=o.ctx[e]),a===n&&(a=L[e]),a&&V(a)&&!a._wrp&&(i=function(){return a.apply(this&&this!==t?this:r,arguments)},i._wrp=1,q(i,a)),i||a}function Q(t,e){var n=t.tagCtx,i=n.view,r=n.args;return e=e&&(""+e===e?i.getRsc("converters",e)||it("Unknown converter: '"+e+"'"):e),r=r.length||n.index||!t.autoBind?e?r.slice():r:[i.data],e&&(e.depends&&(t.depends=j.getDeps(t.depends,t,e.depends,e)),r[0]=e.apply(t,r)),r}function J(t,e){for(var i,r,o=this;i===n&&o;)i=(r=o.tmpl[t])&&r[e],o=o.parent;return i||P[t][e]}function Z(t,e,n,i,r,o,s,l){var c,u,h,d="array"===e,p={key:0,useKey:d?0:1,id:""+k++,onRender:l,bnds:{}},f={data:i,tmpl:r,content:s,views:d?[]:{},parent:n,type:e,get:G,getIndex:K,getRsc:J,hlp:X,_:p,_is:"view"};return n?(c=n.views,(u=n._).useKey?(c[p.key="_"+u.useKey++]=f,f.index=a,f.getIndex=Y,h=u.tag,p.bnd=d&&(!h||!!h._.bnd&&h)):c.splice(p.key=f.index=o,0,f),f.ctx=t||n.ctx):f.ctx=t,f}function tt(t,e){var n,i=N.wrapMap||{},r=q({markup:t,tmpls:[],links:{},tags:{},bnds:[],_is:"template",render:nt},e);return e.htmlTag||(n=b.exec(t),r.htmlTag=n?n[1].toLowerCase():""),(n=i[r.htmlTag])&&n!==i.div&&(r.markup=$.trim(r.markup)),r}function et(t,e){var i=t+"s";P[i]=function r(o,a,s){var l,c,u,h;if(o&&""+o!==o&&!o.nodeType&&!o.markup){for(u in o)r(u,o[u],a);return P}return a===n&&(a=o,o=n),o&&""+o!==o&&(s=a,a=o,o=n),h=s?s[i]=s[i]||{}:r,c=e.compile,(l=j.onBeforeStoreItem)&&(c=l(h,o,a,c)||c),o?null===a?delete h[o]:h[o]=c?a=c(o,a,s,t,e):a:a=c(n,a),c&&a&&(a._is=t),(l=j.onStoreItem)&&l(h,o,a,c),a},_[t]=e}function nt(t,e,i,r,o,a){var s,l,c,u,h,d,p,f,m,g,v,y,b,w=this,x=!w.attr||w.attr===E,C="";if(!!e===e&&(i=e,e=n),!0===o&&(p=!0,o=0),w.tag?(f=w,g=(w=w.tag)._,y=w.tagName,b=g.tmpl||f.tmpl,e=lt(e,w.ctx),m=f.content,!1===f.props.link&&((e=e||{}).link=!1),r=r||f.view,t=arguments.length?t:r):b=w.jquery&&(w[0]||it('Unknown template: "'+w.selector+'"'))||w,b&&(!r&&t&&"view"===t._is&&(r=t),r&&(m=m||r.content,a=a||r._.onRender,t===r&&(t=r.data),e=lt(e,r.ctx)),r&&r.data!==n||((e=e||{}).root=t),b.fn||(b=D[b]||D(b)),b)){if(v=a=!1!==(e&&e.link)&&x&&a,!0===a&&(v=n,a=r._.onRender),e=b.helpers?lt(b.helpers,e):e,$.isArray(t)&&!i)for(u=p?r:o!==n&&r||Z(e,"array",r,t,b,o,m,a),s=0,l=t.length;s<l;s++)h=Z(e,"item",u,c=t[s],b,(o||0)+s,m,a),d=b.fn(c,h,P),C+=u._.onRender?u._.onRender(d,h):d;else u=p?r:Z(e,y||"data",r,t,b,o,m,a),g&&!w.flow&&(u.tag=w),C+=b.fn(t,u,P);return v?v(C,u):C}return""}function it(t){throw new j.Err(t)}function rt(t){it("Syntax error\n"+t)}function ot(t,e,n,i){function o(e){(e-=h)&&p.push(t.substr(h,e).replace(f,"\\n"))}function a(e){e&&rt('Unmatched or missing tag: "{{/'+e+'}}" in template:\n'+t)}var s,l,c=e&&e.allowCode,u=[],h=0,d=[],p=u,g=[,,,u];return a(d[0]&&d[0][3].pop()[0]),t.replace(r,(function(r,u,b,w,C,S,k,T,A,O,_,P){S&&(C=":",w=E);var I,D,M=u&&[],L="",R="",j="",V=!(O=O||n)&&!C&&!k;b=b||(A=A||"#data",C),o(P),h=P+r.length,T?c&&p.push(["*","\n"+A.replace(m,"$1")+"\n"]):b?("else"===b&&(y.test(A)&&rt('for "{{else if expr}}" use "{{else expr}}"'),M=g[6],g[7]=t.substring(g[7],P),g=d.pop(),p=g[3],V=!0),A&&(L=st(A=A.replace(f," "),M,e).replace(v,(function(t,e,n){return e?j+=n+",":R+=n+",",l=l||x.test(n.split(":")[0]),""}))),R=R.slice(0,-1),L=L.slice(0,-1),I=R&&R.indexOf("noerror:true")+1&&R||"",s=[b,w||!!i||l||"",L,V&&[],'\n\tparams:"'+A+'",\n\tprops:{'+R+"}"+(j?",ctx:{"+j.slice(0,-1)+"}":""),I,M||0],p.push(s),V&&(d.push(g),(g=s)[7]=h)):_&&(a(_!==(D=g[0])&&"else"!==D&&_),g[7]=t.substring(g[7],P),g=d.pop()),a(!g&&_),p=g[3]})),o(t.length),(h=u[u.length-1])&&a(""+h!==h&&+h[7]===h[7]&&h[0]),at(u,n?t:e,n)}function at(t,n,i){var r,o,a,s,l,c,u,h,d,p,m,g,v,y,b,w,x,C,S,k,T,A,O,_,P,I=0,D="",M="",L={},R=t.length;for(""+n===n?(b=i?'data-link="'+n.replace(f," ").slice(1,-1)+'"':n,n=0):(b=n.tmplName||"unnamed",n.allowCode&&(L.allowCode=!0),n.debug&&(L.debug=!0),g=n.bnds,y=n.tmpls),r=0;r<R;r++)if(""+(o=t[r])===o)D+='\nret+="'+o+'";';else if("*"===(a=o[0]))D+=""+o[1];else{if(s=o[1],l=o[2],C=o[3],c=o[4],M=o[5],S=o[7],(A="else"===a)||(I=0,g&&(v=o[6])&&(I=g.push(v))),(O=":"===a)?(s&&(a=s===E?">":s+a),M&&(M="try{var "+(_="prm"+r)+"=["+l+"][0];}catch(e){"+_+'="";}\n',l=_)):(C&&((w=tt(S,L)).tmplName=b+"/"+a,at(C,w),y.push(w)),A||(x=a,T=D,D=""),k=(k=t[r+1])&&"else"===k[0]),c+=",\n\targs:["+l+"]}",O&&(v||s&&s!==E)){if((P=new Function("data,view,j,u"," // "+b+" "+I+" "+a+"\n"+M+"return {"+c+";")).paths=v,P._ctxs=a,i)return P;m=1}if(D+=O?"\n"+(v?"":M)+(i?"return ":"ret+=")+(m?(m=0,p=!0,'c("'+s+'",view,'+(v?(g[I-1]=P,I):"{"+c)+");"):">"===a?(h=!0,"h("+l+");"):(d=!0,"(v="+l+")!="+(i?"=":"")+'u?v:"";')):(u=!0,"{view:view,tmpl:"+(C?y.length:"0")+","+c+","),x&&!k){if(D="["+D.slice(0,-1)+"]",(i||v)&&(D=new Function("data,view,j,u"," // "+b+" "+I+" "+x+"\nreturn "+D+";"),v&&((g[I-1]=D).paths=v),D._ctxs=a,i))return D;D=T+'\nret+=t("'+x+'",view,this,'+(I||D)+");",v=0,x=0}}D="// "+b+"\nvar j=j||"+(e?"jQuery.":"js")+"views"+(d?",v":"")+(u?",t=j._tag":"")+(p?",c=j._cnvt":"")+(h?",h=j.converters.html":"")+(i?";\n":',ret="";\n')+(N.tryCatch?"try{\n":"")+(L.debug?"debugger;":"")+D+(i?"\n":"\nreturn ret;\n")+(N.tryCatch?"\n}catch(e){return j._err(e);}":"");try{D=new Function("data,view,j,u",D)}catch(t){rt("Compiled template code:\n\n"+D)}return n&&(n.fn=D),D}function st(t,e,n){var i,r,o,a=n.links,h={},f={0:-1},m=0,g=!1,v=!1;return(t+" ").replace(/\)\^/g,").").replace(p,(function(p,y,b,w,x,C,S,k,T,E,A,O,_,P,I,D,M,L,R,j){var V;if(C=C||"",b=b||y||O,x=x||T,E=E||M||"",!S||v||g)return e&&D&&!v&&!g&&(!i||o||r)&&(V=f[m],j.length-1>R-V&&(V=j.slice(V,R+1),(D=a[D=l+":"+V+c]=a[D]||ot(s+D+u,n,!0)).paths||st(V,D.paths=[],n),(r||e).push({_jsvOb:D}))),v?(v=!_)?p:'"':g?(g=!P)?p:'"':(b?(m++,f[m]=R++,b):"")+(L?m?"":i?(i=o=r=!1,"\b"):",":k?(m&&rt(t),i=x,o=w,"\b"+x+":"):x?x.split("^").join(".").replace(d,(function(t,n,a,s,l,c,u,h){if(a&&(e&&("linkTo"===i&&(r=e._jsvto=e._jsvto||[]).push(x),i&&!o||e.push(x.slice(n.length))),"."!==a)){var d=(s?'view.hlp("'+s+'")':l?"view":"data")+(h?(c?"."+c:s||l?"":"."+a)+(u||""):(h=s?"":l?c||"":a,""));return n+("view.data"===(d+=h?"."+h:"").slice(0,9)?d.slice(5):d)}return t}))+(E?(h[++m]=!0,"."!==x.charAt(0)&&(f[m]=R),E):C):C||(I?(h[m--]=!1,I+(E?(h[++m]=!0,E):"")):A?(h[m]||rt(t),","):y?"":(v=_,g=P,'"')));rt(t)}))}function lt(t,e){return t&&t!==e?e?q(q({},e),t):t:e&&q({},e)}function ct(t){return T[t]||(T[t]="&#"+t.charCodeAt(0)+";")}}(this,this.jQuery),/*! lazysizes - v4.1.5 */
function(window,t){var e=function(window,t){"use strict";if(!t.getElementsByClassName)return;var e,n,i=t.documentElement,r=window.Date,o=window.HTMLPictureElement,a="addEventListener",s="getAttribute",l=window[a],c=window.setTimeout,u=window.requestAnimationFrame||c,h=window.requestIdleCallback,d=/^picture$/i,p=["load","error","lazyincluded","_lazyloaded"],f={},m=Array.prototype.forEach,g=function(t,e){return f[e]||(f[e]=new RegExp("(\\s|^)"+e+"(\\s|$)")),f[e].test(t[s]("class")||"")&&f[e]},v=function(t,e){g(t,e)||t.setAttribute("class",(t[s]("class")||"").trim()+" "+e)},y=function(t,e){var n;(n=g(t,e))&&t.setAttribute("class",(t[s]("class")||"").replace(n," "))},b=function(t,e,n){var i=n?a:"removeEventListener";n&&b(t,e),p.forEach((function(n){t[i](n,e)}))},w=function(n,i,r,o,a){var s=t.createEvent("Event");return r||(r={}),r.instance=e,s.initEvent(i,!o,!a),s.detail=r,n.dispatchEvent(s),s},x=function(t,e){var i;!o&&(i=window.picturefill||n.pf)?(e&&e.src&&!t[s]("srcset")&&t.setAttribute("srcset",e.src),i({reevaluate:!0,elements:[t]})):e&&e.src&&(t.src=e.src)},C=function(t,e){return(getComputedStyle(t,null)||{})[e]},S=function(t,e,i){for(i=i||t.offsetWidth;i<n.minSize&&e&&!t._lazysizesWidth;)i=e.offsetWidth,e=e.parentNode;return i},k=(P=[],I=[],D=P,M=function(){var t=D;for(D=P.length?I:P,O=!0,_=!1;t.length;)t.shift()();O=!1},L=function(e,n){O&&!n?e.apply(this,arguments):(D.push(e),_||(_=!0,(t.hidden?c:u)(M)))},L._lsFlush=M,L),T=function(t,e){return e?function(){k(t)}:function(){var e=this,n=arguments;k((function(){t.apply(e,n)}))}},E=function(t){var e,i=0,o=n.throttleDelay,a=n.ricTimeout,s=function(){e=!1,i=r.now(),t()},l=h&&a>49?function(){h(s,{timeout:a}),a!==n.ricTimeout&&(a=n.ricTimeout)}:T((function(){c(s)}),!0);return function(t){var n;(t=!0===t)&&(a=33),e||(e=!0,(n=o-(r.now()-i))<0&&(n=0),t||n<9?l():c(l,n))}},A=function(t){var e,n,i=99,o=function(){e=null,t()},a=function(){var t=r.now()-n;t<i?c(a,i-t):(h||o)(o)};return function(){n=r.now(),e||(e=c(a,i))}};var O,_,P,I,D,M,L;!function(){var t,e={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in n=window.lazySizesConfig||window.lazysizesConfig||{},e)t in n||(n[t]=e[t]);window.lazySizesConfig=n,c((function(){n.init&&V()}))}();var R=(it=/^img$/i,rt=/^iframe$/i,ot="onscroll"in window&&!/(gle|ing)bot/.test(navigator.userAgent),at=0,st=0,lt=0,ct=-1,ut=function(t){lt--,t&&t.target&&b(t.target,ut),(!t||lt<0||!t.target)&&(lt=0)},ht=function(e,n){var r,o=e,a="hidden"==C(t.body,"visibility")||"hidden"!=C(e.parentNode,"visibility")&&"hidden"!=C(e,"visibility");for(X-=n,Z+=n,Q-=n,J+=n;a&&(o=o.offsetParent)&&o!=t.body&&o!=i;)(a=(C(o,"opacity")||1)>0)&&"visible"!=C(o,"overflow")&&(r=o.getBoundingClientRect(),a=J>r.left&&Q<r.right&&Z>r.top-1&&X<r.bottom+1);return a},dt=function(){var r,o,a,l,c,u,h,d,p,f=e.elements;if((W=n.loadMode)&&lt<8&&(r=f.length)){o=0,ct++,null==et&&("expand"in n||(n.expand=i.clientHeight>500&&i.clientWidth>500?500:370),tt=n.expand,et=tt*n.expFactor),st<et&&lt<1&&ct>2&&W>2&&!t.hidden?(st=et,ct=0):st=W>1&&ct>1&&lt<6?tt:at;for(;o<r;o++)if(f[o]&&!f[o]._lazyRace)if(ot)if((d=f[o][s]("data-expand"))&&(u=1*d)||(u=st),p!==u&&(Y=innerWidth+u*nt,K=innerHeight+u,h=-1*u,p=u),a=f[o].getBoundingClientRect(),(Z=a.bottom)>=h&&(X=a.top)<=K&&(J=a.right)>=h*nt&&(Q=a.left)<=Y&&(Z||J||Q||X)&&(n.loadHidden||"hidden"!=C(f[o],"visibility"))&&(B&&lt<3&&!d&&(W<3||ct<4)||ht(f[o],u))){if(wt(f[o]),c=!0,lt>9)break}else!c&&B&&!l&&lt<4&&ct<4&&W>2&&(U[0]||n.preloadAfterLoad)&&(U[0]||!d&&(Z||J||Q||X||"auto"!=f[o][s](n.sizesAttr)))&&(l=U[0]||f[o]);else wt(f[o]);l&&!c&&wt(l)}},pt=E(dt),ft=function(t){v(t.target,n.loadedClass),y(t.target,n.loadingClass),b(t.target,gt),w(t.target,"lazyloaded")},mt=T(ft),gt=function(t){mt({target:t.target})},vt=function(t,e){try{t.contentWindow.location.replace(e)}catch(n){t.src=e}},yt=function(t){var e,i=t[s](n.srcsetAttr);(e=n.customMedia[t[s]("data-media")||t[s]("media")])&&t.setAttribute("media",e),i&&t.setAttribute("srcset",i)},bt=T((function(t,e,i,r,o){var a,l,u,h,p,f;(p=w(t,"lazybeforeunveil",e)).defaultPrevented||(r&&(i?v(t,n.autosizesClass):t.setAttribute("sizes",r)),l=t[s](n.srcsetAttr),a=t[s](n.srcAttr),o&&(h=(u=t.parentNode)&&d.test(u.nodeName||"")),f=e.firesLoad||"src"in t&&(l||a||h),p={target:t},f&&(b(t,ut,!0),clearTimeout(q),q=c(ut,2500),v(t,n.loadingClass),b(t,gt,!0)),h&&m.call(u.getElementsByTagName("source"),yt),l?t.setAttribute("srcset",l):a&&!h&&(rt.test(t.nodeName)?vt(t,a):t.src=a),o&&(l||h)&&x(t,{src:a})),t._lazyRace&&delete t._lazyRace,y(t,n.lazyClass),k((function(){(!f||t.complete&&t.naturalWidth>1)&&(f?ut(p):lt--,ft(p))}),!0)})),wt=function(t){var e,i=it.test(t.nodeName),r=i&&(t[s](n.sizesAttr)||t[s]("sizes")),o="auto"==r;(!o&&B||!i||!t[s]("src")&&!t.srcset||t.complete||g(t,n.errorClass)||!g(t,n.lazyClass))&&(e=w(t,"lazyunveilread").detail,o&&j.updateElem(t,!0,t.offsetWidth),t._lazyRace=!0,lt++,bt(t,e,o,r,i))},$t=function(){if(!B)if(r.now()-G<999)c($t,999);else{var t=A((function(){n.loadMode=3,pt()}));B=!0,n.loadMode=3,pt(),l("scroll",(function(){3==n.loadMode&&(n.loadMode=2),t()}),!0)}},{_:function(){G=r.now(),e.elements=t.getElementsByClassName(n.lazyClass),U=t.getElementsByClassName(n.lazyClass+" "+n.preloadClass),nt=n.hFac,l("scroll",pt,!0),l("resize",pt,!0),window.MutationObserver?new MutationObserver(pt).observe(i,{childList:!0,subtree:!0,attributes:!0}):(i[a]("DOMNodeInserted",pt,!0),i[a]("DOMAttrModified",pt,!0),setInterval(pt,999)),l("hashchange",pt,!0),["focus","mouseover","click","load","transitionend","animationend","webkitAnimationEnd"].forEach((function(e){t[a](e,pt,!0)})),/d$|^c/.test(t.readyState)?$t():(l("load",$t),t[a]("DOMContentLoaded",pt),c($t,2e4)),e.elements.length?(dt(),k._lsFlush()):pt()},checkElems:pt,unveil:wt}),j=(H=T((function(t,e,n,i){var r,o,a;if(t._lazysizesWidth=i,i+="px",t.setAttribute("sizes",i),d.test(e.nodeName||""))for(o=0,a=(r=e.getElementsByTagName("source")).length;o<a;o++)r[o].setAttribute("sizes",i);n.detail.dataAttr||x(t,n.detail)})),z=function(t,e,n){var i,r=t.parentNode;r&&(n=S(t,r,n),(i=w(t,"lazybeforesizes",{width:n,dataAttr:!!e})).defaultPrevented||(n=i.detail.width)&&n!==t._lazysizesWidth&&H(t,r,i,n))},F=A((function(){var t,e=N.length;if(e)for(t=0;t<e;t++)z(N[t])})),{_:function(){N=t.getElementsByClassName(n.autosizesClass),l("resize",F)},checkElems:F,updateElem:z}),V=function(){V.i||(V.i=!0,j._(),R._())};var N,H,z,F;var U,B,q,W,G,Y,K,X,Q,J,Z,tt,et,nt,it,rt,ot,at,st,lt,ct,ut,ht,dt,pt,ft,mt,gt,vt,yt,bt,wt,$t;return e={cfg:n,autoSizer:j,loader:R,init:V,uP:x,aC:v,rC:y,hC:g,fire:w,gW:S,rAF:k}}(window,window.document);window.lazySizes=e,"object"==typeof module&&module.exports&&(module.exports=e)}(window),window.Modernizr=function(t,e,n){function i(t){m.cssText=t}function r(t,e){return typeof t===e}function o(t,e){return!!~(""+t).indexOf(e)}function a(t,e){for(var i in t){var r=t[i];if(!o(r,"-")&&m[r]!==n)return"pfx"!=e||r}return!1}function s(t,e,i){for(var o in t){var a=e[t[o]];if(a!==n)return!1===i?t[o]:r(a,"function")?a.bind(i||e):a}return!1}function l(t,e,n){var i=t.charAt(0).toUpperCase()+t.slice(1),o=(t+" "+w.join(i+" ")+i).split(" ");return r(e,"string")||r(e,"undefined")?a(o,e):s(o=(t+" "+x.join(i+" ")+i).split(" "),e,n)}var c,u,h={},d=e.documentElement,p="modernizr",f=e.createElement(p),m=f.style,g=e.createElement("input"),v=":)",y=" -webkit- -moz- -o- -ms- ".split(" "),b="Webkit Moz O ms",w=b.split(" "),x=b.toLowerCase().split(" "),C={},S={},k={},T=[],E=T.slice,A=function(t,n,i,r){var o,a,s,l,c=e.createElement("div"),u=e.body,h=u||e.createElement("body");if(parseInt(i,10))for(;i--;)(s=e.createElement("div")).id=r?r[i]:p+(i+1),c.appendChild(s);return o=["&#173;",'<style id="s',p,'">',t,"</style>"].join(""),c.id=p,(u?c:h).innerHTML+=o,h.appendChild(c),u||(h.style.background="",h.style.overflow="hidden",l=d.style.overflow,d.style.overflow="hidden",d.appendChild(h)),a=n(c,t),u?c.parentNode.removeChild(c):(h.parentNode.removeChild(h),d.style.overflow=l),!!a},O=function(){var t={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(i,o){o=o||e.createElement(t[i]||"div");var a=(i="on"+i)in o;return a||(o.setAttribute||(o=e.createElement("div")),o.setAttribute&&o.removeAttribute&&(o.setAttribute(i,""),a=r(o[i],"function"),r(o[i],"undefined")||(o[i]=n),o.removeAttribute(i))),o=null,a}}(),_={}.hasOwnProperty;for(var P in u=r(_,"undefined")||r(_.call,"undefined")?function(t,e){return e in t&&r(t.constructor.prototype[e],"undefined")}:function(t,e){return _.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;if("function"!=typeof e)throw new TypeError;var n=E.call(arguments,1),i=function(){if(this instanceof i){var r=function(){};r.prototype=e.prototype;var o=new r,a=e.apply(o,n.concat(E.call(arguments)));return Object(a)===a?a:o}return e.apply(t,n.concat(E.call(arguments)))};return i}),C.touch=function(){var n;return"ontouchstart"in t||t.DocumentTouch&&e instanceof DocumentTouch?n=!0:A(["@media (",y.join("touch-enabled),("),p,")","{#modernizr{top:9px;position:absolute}}"].join(""),(function(t){n=9===t.offsetTop})),n},C.geolocation=function(){return"geolocation"in navigator},C.fontface=function(){var t;return A('@font-face {font-family:"font";src:url("https://")}',(function(n,i){var r=e.getElementById("smodernizr"),o=r.sheet||r.styleSheet,a=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"";t=/src/i.test(a)&&0===a.indexOf(i.split(" ")[0])})),t},C)u(C,P)&&(c=P.toLowerCase(),h[c]=C[P](),T.push((h[c]?"":"no-")+c));return h.input||(h.input=function(n){for(var i=0,r=n.length;i<r;i++)k[n[i]]=n[i]in g;return k.list&&(k.list=!!e.createElement("datalist")&&!!t.HTMLDataListElement),k}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),h.inputtypes=function(t){for(var i,r,o,a=0,s=t.length;a<s;a++)g.setAttribute("type",r=t[a]),(i="text"!==g.type)&&(g.value=v,g.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(r)&&g.style.WebkitAppearance!==n?(d.appendChild(g),i=(o=e.defaultView).getComputedStyle&&"textfield"!==o.getComputedStyle(g,null).WebkitAppearance&&0!==g.offsetHeight,d.removeChild(g)):/^(search|tel)$/.test(r)||(i=/^(url|email)$/.test(r)?g.checkValidity&&!1===g.checkValidity():g.value!=v)),S[t[a]]=!!i;return S}("search tel url email datetime date month week time datetime-local number range color".split(" "))),h.addTest=function(t,e){if("object"==typeof t)for(var i in t)u(t,i)&&h.addTest(i,t[i]);else{if(t=t.toLowerCase(),h[t]!==n)return h;e="function"==typeof e?e():e,d.className+=" "+(e?"":"no-")+t,h[t]=e}return h},i(""),f=g=null,h._version="2.8.3",h._prefixes=y,h._domPrefixes=x,h._cssomPrefixes=w,h.mq=function(e){var n,i=t.matchMedia||t.msMatchMedia;return i?i(e)&&i(e).matches||!1:(A("@media "+e+" { #"+p+" { position: absolute; } }",(function(e){n="absolute"==(t.getComputedStyle?getComputedStyle(e,null):e.currentStyle).position})),n)},h.hasEvent=O,h.testProp=function(t){return a([t])},h.testAllProps=l,h.testStyles=A,h.prefixed=function(t,e,n){return e?l(t,e,n):l(t,"pfx")},d.className=d.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+T.join(" "),h}(this,this.document),"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function($,window,t){var e={init:function(t,e){var n=this;n.$elem=$(e),n.options=$.extend({},$.fn.owlCarousel.options,n.$elem.data(),t),n.userOptions=t,n.loadContent()},loadContent:function(){var t,e=this;"function"==typeof e.options.beforeInit&&e.options.beforeInit.apply(this,[e.$elem]),"string"==typeof e.options.jsonPath?(t=e.options.jsonPath,$.getJSON(t,(function(t){var n,i="";if("function"==typeof e.options.jsonSuccess)e.options.jsonSuccess.apply(this,[t]);else{for(n in t.owl)t.owl.hasOwnProperty(n)&&(i+=t.owl[n].item);e.$elem.html(i)}e.logIn()}))):e.logIn()},logIn:function(){var t=this;t.$elem.data({"owl-originalStyles":t.$elem.attr("style"),"owl-originalClasses":t.$elem.attr("class")}),t.$elem.css({opacity:0}),t.orignalItems=t.options.items,t.checkBrowser(),t.wrapperWidth=0,t.checkVisible=null,t.setVars()},setVars:function(){var t=this;if(0===t.$elem.children().length)return!1;t.baseClass(),t.eventTypes(),t.$userItems=t.$elem.children(),t.itemsAmount=t.$userItems.length,t.wrapItems(),t.$owlItems=t.$elem.find(".owl-item"),t.$owlWrapper=t.$elem.find(".owl-wrapper"),t.playDirection="next",t.prevItem=0,t.prevArr=[0],t.currentItem=0,t.customEvents(),t.onStartup()},onStartup:function(){var t=this;t.updateItems(),t.calculateAll(),t.buildControls(),t.updateControls(),t.response(),t.moveEvents(),t.stopOnHover(),t.owlStatus(),!1!==t.options.transitionStyle&&t.transitionTypes(t.options.transitionStyle),!0===t.options.autoPlay&&(t.options.autoPlay=5e3),t.play(),t.$elem.find(".owl-wrapper").css("display","block"),t.$elem.is(":visible")?t.$elem.css("opacity",1):t.watchVisibility(),t.onstartup=!1,t.eachMoveUpdate(),"function"==typeof t.options.afterInit&&t.options.afterInit.apply(this,[t.$elem])},eachMoveUpdate:function(){var t=this;!0===t.options.lazyLoad&&t.lazyLoad(),!0===t.options.autoHeight&&t.autoHeight(),t.onVisibleItems(),"function"==typeof t.options.afterAction&&t.options.afterAction.apply(this,[t.$elem])},updateVars:function(){var t=this;"function"==typeof t.options.beforeUpdate&&t.options.beforeUpdate.apply(this,[t.$elem]),t.watchVisibility(),t.updateItems(),t.calculateAll(),t.updatePosition(),t.updateControls(),t.eachMoveUpdate(),"function"==typeof t.options.afterUpdate&&t.options.afterUpdate.apply(this,[t.$elem])},reload:function(){var t=this;window.setTimeout((function(){t.updateVars()}),0)},watchVisibility:function(){var t=this;if(!1!==t.$elem.is(":visible"))return!1;t.$elem.css({opacity:0}),window.clearInterval(t.autoPlayInterval),window.clearInterval(t.checkVisible),t.checkVisible=window.setInterval((function(){t.$elem.is(":visible")&&(t.reload(),t.$elem.animate({opacity:1},200),window.clearInterval(t.checkVisible))}),500)},wrapItems:function(){var t=this;t.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>'),t.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'),t.wrapperOuter=t.$elem.find(".owl-wrapper-outer"),t.$elem.css("display","block")},baseClass:function(){var t=this,e=t.$elem.hasClass(t.options.baseClass),n=t.$elem.hasClass(t.options.theme);e||t.$elem.addClass(t.options.baseClass),n||t.$elem.addClass(t.options.theme)},updateItems:function(){var t,e,n=this;if(!1===n.options.responsive)return!1;if(!0===n.options.singleItem)return n.options.items=n.orignalItems=1,n.options.itemsCustom=!1,n.options.itemsDesktop=!1,n.options.itemsDesktopSmall=!1,n.options.itemsTablet=!1,n.options.itemsTabletSmall=!1,n.options.itemsMobile=!1,!1;if((t=$(n.options.responsiveBaseWidth).width())>(n.options.itemsDesktop[0]||n.orignalItems)&&(n.options.items=n.orignalItems),!1!==n.options.itemsCustom)for(n.options.itemsCustom.sort((function(t,e){return t[0]-e[0]})),e=0;e<n.options.itemsCustom.length;e+=1)n.options.itemsCustom[e][0]<=t&&(n.options.items=n.options.itemsCustom[e][1]);else t<=n.options.itemsDesktop[0]&&!1!==n.options.itemsDesktop&&(n.options.items=n.options.itemsDesktop[1]),t<=n.options.itemsDesktopSmall[0]&&!1!==n.options.itemsDesktopSmall&&(n.options.items=n.options.itemsDesktopSmall[1]),t<=n.options.itemsTablet[0]&&!1!==n.options.itemsTablet&&(n.options.items=n.options.itemsTablet[1]),t<=n.options.itemsTabletSmall[0]&&!1!==n.options.itemsTabletSmall&&(n.options.items=n.options.itemsTabletSmall[1]),t<=n.options.itemsMobile[0]&&!1!==n.options.itemsMobile&&(n.options.items=n.options.itemsMobile[1]);n.options.items>n.itemsAmount&&!0===n.options.itemsScaleUp&&(n.options.items=n.itemsAmount)},response:function(){var t,e,n=this;if(!0!==n.options.responsive)return!1;e=$(window).width(),n.resizer=function(){$(window).width()!==e&&(!1!==n.options.autoPlay&&window.clearInterval(n.autoPlayInterval),window.clearTimeout(t),t=window.setTimeout((function(){e=$(window).width(),n.updateVars()}),n.options.responsiveRefreshRate))},$(window).resize(n.resizer)},updatePosition:function(){var t=this;t.jumpTo(t.currentItem),!1!==t.options.autoPlay&&t.checkAp()},appendItemsSizes:function(){var t=this,e=0,n=t.itemsAmount-t.options.items;t.$owlItems.each((function(i){var r=$(this);r.css({width:t.itemWidth}).data("owl-item",Number(i)),i%t.options.items!=0&&i!==n||i>n||(e+=1),r.data("owl-roundPages",e)}))},appendWrapperSizes:function(){var t=this,e=t.$owlItems.length*t.itemWidth;t.$owlWrapper.css({width:2*e,left:0}),t.appendItemsSizes()},calculateAll:function(){var t=this;t.calculateWidth(),t.appendWrapperSizes(),t.loops(),t.max()},calculateWidth:function(){var t=this;t.itemWidth=Math.round(t.$elem.width()/t.options.items)},max:function(){var t=this,e=-1*(t.itemsAmount*t.itemWidth-t.options.items*t.itemWidth);return t.options.items>t.itemsAmount?(t.maximumItem=0,e=0,t.maximumPixels=0):(t.maximumItem=t.itemsAmount-t.options.items,t.maximumPixels=e),e},min:function(){return 0},loops:function(){var t,e,n=this,i=0,r=0;for(n.positionsInArray=[0],n.pagesInArray=[],t=0;t<n.itemsAmount;t+=1)r+=n.itemWidth,n.positionsInArray.push(-r),!0===n.options.scrollPerPage&&(e=$(n.$owlItems[t]).data("owl-roundPages"))!==i&&(n.pagesInArray[i]=n.positionsInArray[t],i=e)},buildControls:function(){var t=this;!0!==t.options.navigation&&!0!==t.options.pagination||(t.owlControls=$('<div class="owl-controls"/>').toggleClass("clickable",!t.browser.isTouch).appendTo(t.$elem)),!0===t.options.pagination&&t.buildPagination(),!0===t.options.navigation&&t.buildButtons()},buildButtons:function(){var t=this,e=$('<div class="owl-buttons"/>');t.owlControls.append(e),t.buttonPrev=$("<div/>",{class:"owl-prev",html:t.options.navigationText[0]||""}),t.buttonNext=$("<div/>",{class:"owl-next",html:t.options.navigationText[1]||""}),e.append(t.buttonPrev).append(t.buttonNext),e.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',(function(t){t.preventDefault()})),e.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',(function(e){e.preventDefault(),$(this).hasClass("owl-next")?t.next():t.prev()}))},buildPagination:function(){var t=this;t.paginationWrapper=$('<div class="owl-pagination"/>'),t.owlControls.append(t.paginationWrapper),t.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",(function(e){e.preventDefault(),Number($(this).data("owl-page"))!==t.currentItem&&t.goTo(Number($(this).data("owl-page")),!0)}))},updatePagination:function(){var t,e,n,i,r,o,a=this;if(!1===a.options.pagination)return!1;for(a.paginationWrapper.html(""),t=0,e=a.itemsAmount-a.itemsAmount%a.options.items,i=0;i<a.itemsAmount;i+=1)i%a.options.items==0&&(t+=1,e===i&&(n=a.itemsAmount-a.options.items),r=$("<div/>",{class:"owl-page"}),o=$("<span></span>",{text:!0===a.options.paginationNumbers?t:"",class:!0===a.options.paginationNumbers?"owl-numbers":""}),r.append(o),r.data("owl-page",e===i?n:i),r.data("owl-roundPages",t),a.paginationWrapper.append(r));a.checkPagination()},checkPagination:function(){var t=this;if(!1===t.options.pagination)return!1;t.paginationWrapper.find(".owl-page").each((function(){$(this).data("owl-roundPages")===$(t.$owlItems[t.currentItem]).data("owl-roundPages")&&(t.paginationWrapper.find(".owl-page").removeClass("active"),$(this).addClass("active"))}))},checkNavigation:function(){var t=this;if(!1===t.options.navigation)return!1;!1===t.options.rewindNav&&(0===t.currentItem&&0===t.maximumItem?(t.buttonPrev.addClass("disabled"),t.buttonNext.addClass("disabled")):0===t.currentItem&&0!==t.maximumItem?(t.buttonPrev.addClass("disabled"),t.buttonNext.removeClass("disabled")):t.currentItem===t.maximumItem?(t.buttonPrev.removeClass("disabled"),t.buttonNext.addClass("disabled")):0!==t.currentItem&&t.currentItem!==t.maximumItem&&(t.buttonPrev.removeClass("disabled"),t.buttonNext.removeClass("disabled")))},updateControls:function(){var t=this;t.updatePagination(),t.checkNavigation(),t.owlControls&&(t.options.items>=t.itemsAmount?t.owlControls.hide():t.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(t){var e=this;if(e.isTransition)return!1;if(e.currentItem+=!0===e.options.scrollPerPage?e.options.items:1,e.currentItem>e.maximumItem+(!0===e.options.scrollPerPage?e.options.items-1:0)){if(!0!==e.options.rewindNav)return e.currentItem=e.maximumItem,!1;e.currentItem=0,t="rewind"}e.goTo(e.currentItem,t)},prev:function(t){var e=this;if(e.isTransition)return!1;if(!0===e.options.scrollPerPage&&e.currentItem>0&&e.currentItem<e.options.items?e.currentItem=0:e.currentItem-=!0===e.options.scrollPerPage?e.options.items:1,e.currentItem<0){if(!0!==e.options.rewindNav)return e.currentItem=0,!1;e.currentItem=e.maximumItem,t="rewind"}e.goTo(e.currentItem,t)},goTo:function(t,e,n){var i,r=this;return!r.isTransition&&("function"==typeof r.options.beforeMove&&r.options.beforeMove.apply(this,[r.$elem]),t>=r.maximumItem?t=r.maximumItem:t<=0&&(t=0),r.currentItem=r.owl.currentItem=t,!1!==r.options.transitionStyle&&"drag"!==n&&1===r.options.items&&!0===r.browser.support3d?(r.swapSpeed(0),!0===r.browser.support3d?r.transition3d(r.positionsInArray[t]):r.css2slide(r.positionsInArray[t],1),r.afterGo(),r.singleItemTransition(),!1):(i=r.positionsInArray[t],!0===r.browser.support3d?(r.isCss3Finish=!1,!0===e?(r.swapSpeed("paginationSpeed"),window.setTimeout((function(){r.isCss3Finish=!0}),r.options.paginationSpeed)):"rewind"===e?(r.swapSpeed(r.options.rewindSpeed),window.setTimeout((function(){r.isCss3Finish=!0}),r.options.rewindSpeed)):(r.swapSpeed("slideSpeed"),window.setTimeout((function(){r.isCss3Finish=!0}),r.options.slideSpeed)),r.transition3d(i)):!0===e?r.css2slide(i,r.options.paginationSpeed):"rewind"===e?r.css2slide(i,r.options.rewindSpeed):r.css2slide(i,r.options.slideSpeed),void r.afterGo()))},jumpTo:function(t){var e=this;"function"==typeof e.options.beforeMove&&e.options.beforeMove.apply(this,[e.$elem]),t>=e.maximumItem||-1===t?t=e.maximumItem:t<=0&&(t=0),e.swapSpeed(0),!0===e.browser.support3d?e.transition3d(e.positionsInArray[t]):e.css2slide(e.positionsInArray[t],1),e.currentItem=e.owl.currentItem=t,e.afterGo()},afterGo:function(){var t=this;t.prevArr.push(t.currentItem),t.prevItem=t.owl.prevItem=t.prevArr[t.prevArr.length-2],t.prevArr.shift(0),t.prevItem!==t.currentItem&&(t.checkPagination(),t.checkNavigation(),t.eachMoveUpdate(),!1!==t.options.autoPlay&&t.checkAp()),"function"==typeof t.options.afterMove&&t.prevItem!==t.currentItem&&t.options.afterMove.apply(this,[t.$elem])},stop:function(){this.apStatus="stop",window.clearInterval(this.autoPlayInterval)},checkAp:function(){"stop"!==this.apStatus&&this.play()},play:function(){var t=this;if(t.apStatus="play",!1===t.options.autoPlay)return!1;window.clearInterval(t.autoPlayInterval),t.autoPlayInterval=window.setInterval((function(){t.next(!0)}),t.options.autoPlay)},swapSpeed:function(t){var e=this;"slideSpeed"===t?e.$owlWrapper.css(e.addCssSpeed(e.options.slideSpeed)):"paginationSpeed"===t?e.$owlWrapper.css(e.addCssSpeed(e.options.paginationSpeed)):"string"!=typeof t&&e.$owlWrapper.css(e.addCssSpeed(t))},addCssSpeed:function(t){return{"-webkit-transition":"all "+t+"ms ease","-moz-transition":"all "+t+"ms ease","-o-transition":"all "+t+"ms ease",transition:"all "+t+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(t){return{"-webkit-transform":"translate3d("+t+"px, 0px, 0px)","-moz-transform":"translate3d("+t+"px, 0px, 0px)","-o-transform":"translate3d("+t+"px, 0px, 0px)","-ms-transform":"translate3d("+t+"px, 0px, 0px)",transform:"translate3d("+t+"px, 0px,0px)"}},transition3d:function(t){this.$owlWrapper.css(this.doTranslate(t))},css2move:function(t){this.$owlWrapper.css({left:t})},css2slide:function(t,e){var n=this;n.isCssFinish=!1,n.$owlWrapper.stop(!0,!0).animate({left:t},{duration:e||n.options.slideSpeed,complete:function(){n.isCssFinish=!0}})},checkBrowser:function(){var e,n,i,r,o="translate3d(0px, 0px, 0px)",a=t.createElement("div");a.style.cssText="  -moz-transform:"+o+"; -ms-transform:"+o+"; -o-transform:"+o+"; -webkit-transform:"+o+"; transform:"+o,e=/translate3d\(0px, 0px, 0px\)/g,i=null!==(n=a.style.cssText.match(e))&&1===n.length,r="ontouchstart"in window||window.navigator.msMaxTouchPoints,this.browser={support3d:i,isTouch:r}},moveEvents:function(){var t=this;!1===t.options.mouseDrag&&!1===t.options.touchDrag||(t.gestures(),t.disabledEvents())},eventTypes:function(){var t=this,e=["s","e","x"];t.ev_types={},!0===t.options.mouseDrag&&!0===t.options.touchDrag?e=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:!1===t.options.mouseDrag&&!0===t.options.touchDrag?e=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===t.options.mouseDrag&&!1===t.options.touchDrag&&(e=["mousedown.owl","mousemove.owl","mouseup.owl"]),t.ev_types.start=e[0],t.ev_types.move=e[1],t.ev_types.end=e[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",(function(t){t.preventDefault()})),this.$elem.on("mousedown.disableTextSelect",(function(t){return $(t.target).is("input, textarea, select, option")}))},gestures:function(){var e=this,n={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};function i(t){if(void 0!==t.touches)return{x:t.touches[0].pageX,y:t.touches[0].pageY};if(void 0===t.touches){if(void 0!==t.pageX)return{x:t.pageX,y:t.pageY};if(void 0===t.pageX)return{x:t.clientX,y:t.clientY}}}function r(n){"on"===n?($(t).on(e.ev_types.move,o),$(t).on(e.ev_types.end,a)):"off"===n&&($(t).off(e.ev_types.move),$(t).off(e.ev_types.end))}function o(r){var o,a,s=r.originalEvent||r||window.event;e.newPosX=i(s).x-n.offsetX,e.newPosY=i(s).y-n.offsetY,e.newRelativeX=e.newPosX-n.relativePos,"function"==typeof e.options.startDragging&&!0!==n.dragging&&0!==e.newRelativeX&&(n.dragging=!0,e.options.startDragging.apply(e,[e.$elem])),(e.newRelativeX>8||e.newRelativeX<-8)&&!0===e.browser.isTouch&&(void 0!==s.preventDefault?s.preventDefault():s.returnValue=!1,n.sliding=!0),(e.newPosY>10||e.newPosY<-10)&&!1===n.sliding&&$(t).off("touchmove.owl"),o=function(){return e.newRelativeX/5},a=function(){return e.maximumPixels+e.newRelativeX/5},e.newPosX=Math.max(Math.min(e.newPosX,o()),a()),!0===e.browser.support3d?e.transition3d(e.newPosX):e.css2move(e.newPosX)}function a(t){var i,o,a,s=t.originalEvent||t||window.event;s.target=s.target||s.srcElement,n.dragging=!1,!0!==e.browser.isTouch&&e.$owlWrapper.removeClass("grabbing"),e.newRelativeX<0?e.dragDirection=e.owl.dragDirection="left":e.dragDirection=e.owl.dragDirection="right",0!==e.newRelativeX&&(i=e.getNewPosition(),e.goTo(i,!1,"drag"),n.targetElement===s.target&&!0!==e.browser.isTouch&&($(s.target).on("click.disable",(function(t){t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),$(t.target).off("click.disable")})),a=(o=$._data(s.target,"events").click).pop(),o.splice(0,0,a))),r("off")}e.isCssFinish=!0,e.$elem.on(e.ev_types.start,".owl-wrapper",(function(t){var o,a=t.originalEvent||t||window.event;if(3===a.which)return!1;if(!(e.itemsAmount<=e.options.items)){if(!1===e.isCssFinish&&!e.options.dragBeforeAnimFinish)return!1;if(!1===e.isCss3Finish&&!e.options.dragBeforeAnimFinish)return!1;!1!==e.options.autoPlay&&window.clearInterval(e.autoPlayInterval),!0===e.browser.isTouch||e.$owlWrapper.hasClass("grabbing")||e.$owlWrapper.addClass("grabbing"),e.newPosX=0,e.newRelativeX=0,$(this).css(e.removeTransition()),o=$(this).position(),n.relativePos=o.left,n.offsetX=i(a).x-o.left,n.offsetY=i(a).y-o.top,r("on"),n.sliding=!1,n.targetElement=a.target||a.srcElement}}))},getNewPosition:function(){var t=this,e=t.closestItem();return e>t.maximumItem?(t.currentItem=t.maximumItem,e=t.maximumItem):t.newPosX>=0&&(e=0,t.currentItem=0),e},closestItem:function(){var t=this,e=!0===t.options.scrollPerPage?t.pagesInArray:t.positionsInArray,n=t.newPosX,i=null;return $.each(e,(function(r,o){n-t.itemWidth/20>e[r+1]&&n-t.itemWidth/20<o&&"left"===t.moveDirection()?(i=o,!0===t.options.scrollPerPage?t.currentItem=$.inArray(i,t.positionsInArray):t.currentItem=r):n+t.itemWidth/20<o&&n+t.itemWidth/20>(e[r+1]||e[r]-t.itemWidth)&&"right"===t.moveDirection()&&(!0===t.options.scrollPerPage?(i=e[r+1]||e[e.length-1],t.currentItem=$.inArray(i,t.positionsInArray)):(i=e[r+1],t.currentItem=r+1))})),t.currentItem},moveDirection:function(){var t,e=this;return e.newRelativeX<0?(t="right",e.playDirection="next"):(t="left",e.playDirection="prev"),t},customEvents:function(){var t=this;t.$elem.on("owl.next",(function(){t.next()})),t.$elem.on("owl.prev",(function(){t.prev()})),t.$elem.on("owl.play",(function(e,n){t.options.autoPlay=n,t.play(),t.hoverStatus="play"})),t.$elem.on("owl.stop",(function(){t.stop(),t.hoverStatus="stop"})),t.$elem.on("owl.goTo",(function(e,n){t.goTo(n)})),t.$elem.on("owl.jumpTo",(function(e,n){t.jumpTo(n)}))},stopOnHover:function(){var t=this;!0===t.options.stopOnHover&&!0!==t.browser.isTouch&&!1!==t.options.autoPlay&&(t.$elem.on("mouseover",(function(){t.stop()})),t.$elem.on("mouseout",(function(){"stop"!==t.hoverStatus&&t.play()})))},lazyLoad:function(){var t,e,n,i,r=this;if(!1===r.options.lazyLoad)return!1;for(t=0;t<r.itemsAmount;t+=1)"loaded"!==(e=$(r.$owlItems[t])).data("owl-loaded")&&(n=e.data("owl-item"),"string"==typeof(i=e.find(".lazyOwl")).data("src")?(void 0===e.data("owl-loaded")&&(i.hide(),e.addClass("loading").data("owl-loaded","checked")),(!0!==r.options.lazyFollow||n>=r.currentItem)&&n<r.currentItem+r.options.items&&i.length&&i.each((function(){r.lazyPreload(e,$(this))}))):e.data("owl-loaded","loaded"))},lazyPreload:function(t,e){var n,i=this,r=0;function o(){t.data("owl-loaded","loaded").removeClass("loading"),e.removeAttr("data-src"),"fade"===i.options.lazyEffect?e.fadeIn(400):e.show(),"function"==typeof i.options.afterLazyLoad&&i.options.afterLazyLoad.apply(this,[i.$elem])}"DIV"===e.prop("tagName")?(e.css("background-image","url("+e.data("src")+")"),n=!0):e[0].src=e.data("src"),function t(){r+=1,i.completeImg(e.get(0))||!0===n?o():r<=100?window.setTimeout(t,100):o()}()},autoHeight:function(){var t,e=this,n=$(e.$owlItems[e.currentItem]).find("img");function i(){var t=$(e.$owlItems[e.currentItem]).height();e.wrapperOuter.css("height",t+"px"),e.wrapperOuter.hasClass("autoHeight")||window.setTimeout((function(){e.wrapperOuter.addClass("autoHeight")}),0)}void 0!==n.get(0)?(t=0,function r(){t+=1,e.completeImg(n.get(0))?i():t<=100?window.setTimeout(r,100):e.wrapperOuter.css("height","")}()):i()},completeImg:function(t){return!!t.complete&&("undefined"===typeof t.naturalWidth||0!==t.naturalWidth)},onVisibleItems:function(){var t,e=this;for(!0===e.options.addClassActive&&e.$owlItems.removeClass("active"),e.visibleItems=[],t=e.currentItem;t<e.currentItem+e.options.items;t+=1)e.visibleItems.push(t),!0===e.options.addClassActive&&$(e.$owlItems[t]).addClass("active");e.owl.visibleItems=e.visibleItems},transitionTypes:function(t){this.outClass="owl-"+t+"-out",this.inClass="owl-"+t+"-in"},singleItemTransition:function(){var t=this,e=t.outClass,n=t.inClass,i=t.$owlItems.eq(t.currentItem),r=t.$owlItems.eq(t.prevItem),o=Math.abs(t.positionsInArray[t.currentItem])+t.positionsInArray[t.prevItem],a=Math.abs(t.positionsInArray[t.currentItem])+t.itemWidth/2,s="webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend";t.isTransition=!0,t.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":a+"px","-moz-perspective-origin":a+"px","perspective-origin":a+"px"}),r.css(function(t){return{position:"relative",left:t+"px"}}(o)).addClass(e).on(s,(function(){t.endPrev=!0,r.off(s),t.clearTransStyle(r,e)})),i.addClass(n).on(s,(function(){t.endCurrent=!0,i.off(s),t.clearTransStyle(i,n)}))},clearTransStyle:function(t,e){var n=this;t.css({position:"",left:""}).removeClass(e),n.endPrev&&n.endCurrent&&(n.$owlWrapper.removeClass("owl-origin"),n.endPrev=!1,n.endCurrent=!1,n.isTransition=!1)},owlStatus:function(){var t=this;t.owl={userOptions:t.userOptions,baseElement:t.$elem,userItems:t.$userItems,owlItems:t.$owlItems,currentItem:t.currentItem,prevItem:t.prevItem,visibleItems:t.visibleItems,isTouch:t.browser.isTouch,browser:t.browser,dragDirection:t.dragDirection}},clearEvents:function(){this.$elem.off(".owl owl mousedown.disableTextSelect"),$(t).off(".owl owl"),$(window).off("resize",this.resizer)},unWrap:function(){var t=this;0!==t.$elem.children().length&&(t.$owlWrapper.unwrap(),t.$userItems.unwrap().unwrap(),t.owlControls&&t.owlControls.remove()),t.clearEvents(),t.$elem.attr({style:t.$elem.data("owl-originalStyles")||"",class:t.$elem.data("owl-originalClasses")})},destroy:function(){var t=this;t.stop(),window.clearInterval(t.checkVisible),t.unWrap(),t.$elem.removeData()},reinit:function(t){var e=this,n=$.extend({},e.userOptions,t);e.unWrap(),e.init(n,e.$elem)},addItem:function(t,e){var n,i=this;return!!t&&(0===i.$elem.children().length?(i.$elem.append(t),i.setVars(),!1):(i.unWrap(),(n=void 0===e||-1===e?-1:e)>=i.$userItems.length||-1===n?i.$userItems.eq(-1).after(t):i.$userItems.eq(n).before(t),void i.setVars()))},removeItem:function(t){var e,n=this;if(0===n.$elem.children().length)return!1;e=void 0===t||-1===t?-1:t,n.unWrap(),n.$userItems.eq(e).remove(),n.setVars()}};$.fn.owlCarousel=function(t){return this.each((function(){if(!0===$(this).data("owl-init"))return!1;$(this).data("owl-init",!0);var n=Object.create(e);n.init(t,this),$.data(this,"owlCarousel",n)}))},$.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:window,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document),
/*!
 * Pikaday
 *
 * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
 */
function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(t){}module.exports=e(n)}else"function"==typeof define&&define.amd?define((function(t){try{n=t("moment")}catch(t){}return e(n)})):t.Pikaday=e(t.moment)}(this,(function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,i=window.document,r=window.setTimeout,o=function(t,e,i,r){n?t.addEventListener(e,i,!!r):t.attachEvent("on"+e,i)},a=function(t,e,i,r){n?t.removeEventListener(e,i,!!r):t.detachEvent("on"+e,i)},s=function(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")},l=function(t,e){s(t,e)||(t.className=""===t.className?e:t.className+" "+e)},c=function(t,e){var n;t.className=(n=(" "+t.className+" ").replace(" "+e+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,"")},u=function(t){return/Array/.test(Object.prototype.toString.call(t))},h=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},d=function(t){var e=t.getDay();return 0===e||6===e},p=function(t){return t%4==0&&t%100!=0||t%400==0},f=function(t,e){return[31,p(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},m=function(t){h(t)&&t.setHours(0,0,0,0)},g=function(t,e){return t.getTime()===e.getTime()},v=function(t,e,n){var i,r;for(i in e)(r=void 0!==t[i])&&"object"==typeof e[i]&&null!==e[i]&&void 0===e[i].nodeName?h(e[i])?n&&(t[i]=new Date(e[i].getTime())):u(e[i])?n&&(t[i]=e[i].slice(0)):t[i]=v({},e[i],n):!n&&r||(t[i]=e[i]);return t},y=function(t,e,n){var r;i.createEvent?((r=i.createEvent("HTMLEvents")).initEvent(e,!0,!1),r=v(r,n),t.dispatchEvent(r)):i.createEventObject&&(r=i.createEventObject(),r=v(r,n),t.fireEvent("on"+e,r))},b=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},x=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},C=function(t){var e=[],n="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),t.enableSelectionDaysInNextAndPreviousMonths||e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},S=function(n,i,r){var o=new Date(r,i,n),a=e?t(o).isoWeek():function(t){t.setHours(0,0,0,0);var e=t.getDate(),n=t.getDay(),i=function(t){return(t+7-1)%7};t.setDate(e+3-i(n));var r=new Date(t.getFullYear(),0,4),o=(t.getTime()-r.getTime())/864e5;return 1+Math.round((o-3+i(r.getDay()))/7)}(o);return'<td class="pika-week">'+a+"</td>"},k=function(t,e,n,i){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(i?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"},T=function(t,e,n,i,r,o){var a,s,l,c,h,d=t._o,p=n===d.minYear,f=n===d.maxYear,m='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,v=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===r?a-e:12+a-e)+'"'+(a===i?' selected="selected"':"")+(p&&a<d.minMonth||f&&a>d.maxMonth?' disabled="disabled"':"")+">"+d.i18n.months[a]+"</option>");for(c='<div class="pika-label">'+d.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",u(d.yearRange)?(a=d.yearRange[0],s=d.yearRange[1]+1):(a=n-d.yearRange,s=1+n+d.yearRange),l=[];a<s&&a<=d.maxYear;a++)a>=d.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return h='<div class="pika-label">'+n+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",d.showMonthAfterYear?m+=h+c:m+=c+h,p&&(0===i||d.minMonth>=i)&&(g=!1),f&&(11===i||d.maxMonth<=i)&&(v=!1),0===e&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),e===t._o.numberOfMonths-1&&(m+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),m+"</div>"},E=function(t,e,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(t){var e,n=[];for(t.showWeekNumber&&n.push("<th></th>"),e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+x(t,e)+'">'+x(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"}(t)+("<tbody>"+e.join("")+"</tbody></table>")},A=function(a){var l=this,c=l.config(a);l._onMouseDown=function(t){if(l._v){var e=(t=t||window.event).target||t.srcElement;if(e)if(s(e,"is-disabled")||(!s(e,"pika-button")||s(e,"is-empty")||s(e.parentNode,"is-disabled")?s(e,"pika-prev")?l.prevMonth():s(e,"pika-next")&&l.nextMonth():(l.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),c.bound&&r((function(){l.hide(),c.blurFieldOnSelect&&c.field&&c.field.blur()}),100))),s(e,"pika-select"))l._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},l._onChange=function(t){var e=(t=t||window.event).target||t.srcElement;e&&(s(e,"pika-select-month")?l.gotoMonth(e.value):s(e,"pika-select-year")&&l.gotoYear(e.value))},l._onKeyChange=function(t){if(t=t||window.event,l.isVisible())switch(t.keyCode){case 13:case 27:c.field&&c.field.blur();break;case 37:l.adjustDate("subtract",1);break;case 38:l.adjustDate("subtract",7);break;case 39:l.adjustDate("add",1);break;case 40:l.adjustDate("add",7);break;case 8:case 46:l.setDate(null)}},l._parseFieldValue=function(){if(c.parse)return c.parse(c.field.value,c.format);if(e){var n=t(c.field.value,c.format,c.formatStrict);return n&&n.isValid()?n.toDate():null}return new Date(Date.parse(c.field.value))},l._onInputChange=function(t){var e;t.firedBy!==l&&(e=l._parseFieldValue(),h(e)&&l.setDate(e),l._v||l.show())},l._onInputFocus=function(){l.show()},l._onInputClick=function(){l.show()},l._onInputBlur=function(){var t=i.activeElement;do{if(s(t,"pika-single"))return}while(t=t.parentNode);l._c||(l._b=r((function(){l.hide()}),50)),l._c=!1},l._onClick=function(t){var e=(t=t||window.event).target||t.srcElement,i=e;if(e){!n&&s(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",l._onChange)));do{if(s(i,"pika-single")||i===c.trigger)return}while(i=i.parentNode);l._v&&e!==c.trigger&&i!==c.trigger&&l.hide()}},l.el=i.createElement("div"),l.el.className="pika-single"+(c.isRTL?" is-rtl":"")+(c.theme?" "+c.theme:""),o(l.el,"mousedown",l._onMouseDown,!0),o(l.el,"touchend",l._onMouseDown,!0),o(l.el,"change",l._onChange),c.keyboardInput&&o(i,"keydown",l._onKeyChange),c.field&&(c.container?c.container.appendChild(l.el):c.bound?i.body.appendChild(l.el):c.field.parentNode.insertBefore(l.el,c.field.nextSibling),o(c.field,"change",l._onInputChange),c.defaultDate||(c.defaultDate=l._parseFieldValue(),c.setDefaultDate=!0));var u=c.defaultDate;h(u)?c.setDefaultDate?l.setDate(u,!0):l.gotoDate(u):l.gotoDate(new Date),c.bound?(this.hide(),l.el.className+=" is-bound",o(c.trigger,"click",l._onInputClick),o(c.trigger,"focus",l._onInputFocus),o(c.trigger,"blur",l._onInputBlur)):this.show()};return A.prototype={config:function(t){this._o||(this._o=v({},w,!0));var e=v(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,h(e.minDate)||(e.minDate=!1),h(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),u(e.yearRange)){var i=(new Date).getFullYear()-10;e.yearRange[0]=parseInt(e.yearRange[0],10)||i,e.yearRange[1]=parseInt(e.yearRange[1],10)||i}else e.yearRange=Math.abs(parseInt(e.yearRange,10))||w.yearRange,e.yearRange>100&&(e.yearRange=100);return e},toString:function(n){return n=n||this._o.format,h(this._d)?this._o.toString?this._o.toString(this._d,n):e?t(this._d).format(n):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,i){e&&t.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return h(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value="",y(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),h(t)){var n=this._o.minDate,i=this._o.maxDate;h(n)&&t<n?t=n:h(i)&&t>i&&(t=i),this._d=new Date(t.getTime()),m(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),y(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(t){var e=!0;if(h(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),r=t.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),e=r<n.getTime()||i.getTime()<r}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(t,e){var n,i=this.getDate()||new Date,r=24*parseInt(e)*60*60*1e3;"add"===t?n=new Date(i.valueOf()+r):"subtract"===t&&(n=new Date(i.valueOf()-r)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=b({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())},setMinDate:function(t){t instanceof Date?(m(t),this._o.minDate=t,this._o.minYear=t.getFullYear(),this._o.minMonth=t.getMonth()):(this._o.minDate=w.minDate,this._o.minYear=w.minYear,this._o.minMonth=w.minMonth,this._o.startRange=w.startRange),this.draw()},setMaxDate:function(t){t instanceof Date?(m(t),this._o.maxDate=t,this._o.maxYear=t.getFullYear(),this._o.maxMonth=t.getMonth()):(this._o.maxDate=w.maxDate,this._o.maxYear=w.maxYear,this._o.maxMonth=w.maxMonth,this._o.endRange=w.endRange),this.draw()},setStartRange:function(t){this._o.startRange=t},setEndRange:function(t){this._o.endRange=t},draw:function(t){if(this._v||t){var e,n=this._o,i=n.minYear,o=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=i&&(this._y=i,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=o&&(this._y=o,!isNaN(s)&&this._m>s&&(this._m=s));for(var c=0;c<n.numberOfMonths;c++)e="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),l+='<div class="pika-lendar">'+T(this,c,this.calendars[c].year,this.calendars[c].month,this.calendars[0].year,e)+this.render(this.calendars[c].year,this.calendars[c].month,e)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&r((function(){n.trigger.focus()}),1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)}},adjustPosition:function(){var t,e,n,r,o,a,s,u,h,d,p,f;if(!this._o.container){if(this.el.style.position="absolute",e=t=this._o.trigger,n=this.el.offsetWidth,r=this.el.offsetHeight,o=window.innerWidth||i.documentElement.clientWidth,a=window.innerHeight||i.documentElement.clientHeight,s=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,p=!0,f=!0,"function"==typeof t.getBoundingClientRect)u=(d=t.getBoundingClientRect()).left+window.pageXOffset,h=d.bottom+window.pageYOffset;else for(u=e.offsetLeft,h=e.offsetTop+e.offsetHeight;e=e.offsetParent;)u+=e.offsetLeft,h+=e.offsetTop;(this._o.reposition&&u+n>o||this._o.position.indexOf("right")>-1&&u-n+t.offsetWidth>0)&&(u=u-n+t.offsetWidth,p=!1),(this._o.reposition&&h+r>a+s||this._o.position.indexOf("top")>-1&&h-r-t.offsetHeight>0)&&(h=h-r-t.offsetHeight,f=!1),this.el.style.left=u+"px",this.el.style.top=h+"px",l(this.el,p?"left-aligned":"right-aligned"),l(this.el,f?"bottom-aligned":"top-aligned"),c(this.el,p?"right-aligned":"left-aligned"),c(this.el,f?"top-aligned":"bottom-aligned")}},render:function(t,e,n){var i=this._o,r=new Date,o=f(t,e),a=new Date(t,e,1).getDay(),s=[],l=[];m(r),i.firstDay>0&&(a-=i.firstDay)<0&&(a+=7);for(var c=0===e?11:e-1,u=11===e?0:e+1,p=0===e?t-1:t,v=11===e?t+1:t,y=f(p,c),b=o+a,w=b;w>7;)w-=7;b+=7-w;for(var x=!1,T=0,A=0;T<b;T++){var O=new Date(t,e,T-a+1),_=!!h(this._d)&&g(O,this._d),P=g(O,r),I=-1!==i.events.indexOf(O.toDateString()),D=T<a||T>=o+a,M=T-a+1,L=e,R=t,j=i.startRange&&g(i.startRange,O),V=i.endRange&&g(i.endRange,O),N=i.startRange&&i.endRange&&i.startRange<O&&O<i.endRange;D&&(T<a?(M=y+M,L=c,R=p):(M-=o,L=u,R=v));var H={day:M,month:L,year:R,hasEvent:I,isSelected:_,isToday:P,isDisabled:i.minDate&&O<i.minDate||i.maxDate&&O>i.maxDate||i.disableWeekends&&d(O)||i.disableDayFn&&i.disableDayFn(O),isEmpty:D,isStartRange:j,isEndRange:V,isInRange:N,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&_&&(x=!0),l.push(C(H)),7==++A&&(i.showWeekNumber&&l.unshift(S(T-a,e,t)),s.push(k(l,i.isRTL,i.pickWholeWeek,x)),l=[],A=0,x=!1)}return E(i,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),c(this.el,"is-hidden"),this._o.bound&&(o(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;!1!==t&&(this._o.bound&&a(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",l(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var t=this._o;this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),t.keyboardInput&&a(i,"keydown",this._onKeyChange),t.field&&(a(t.field,"change",this._onInputChange),t.bound&&(a(t.trigger,"click",this._onInputClick),a(t.trigger,"focus",this._onInputFocus),a(t.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},A})),function($,platform){var t={history:null,sessionKey:"scrollHistory",hasSearch:-1!==window.location.href.search(/\?search\=/),userScrolled:!1,tooLate:this.userScrolled||!1,maxTimeToLoad:5e3,init:function(){var t=this,e=$(window);t.isProductlist=platform.page.isProduct&&(2===platform.page.paths.length||t.hasSearch),t.hasSessionStorage()&&t.isProductlist&&(e.bind("visibilitychange",(function(){"hidden"===document.visibilityState&&t.saveScrollPosition()})),t.history=this.loadScrollHistory()||null,t.history&&(e.bind("scroll",(function(){t.userScrolled=!0})),t.scrollBackToPosition()))},scrollBackToPosition:function(){var t=this,e=parseInt(t.history.offset),n=t.history.location;e<10||$(".w-notification").length||n!==window.location.href||(setTimeout((function(){t.tooLate=!0}),t.maxTimeToLoad),$(platform).bind("loaded.productlist",(function(){t.tooLate||setTimeout((function(){window.scrollTo(0,e),sessionStorage.removeItem(t.sessionKey)}),250)})))},loadScrollHistory:function(){var t=sessionStorage.getItem(this.sessionKey);return t?JSON.parse(t):null},saveScrollPosition:function(){sessionStorage.setItem(this.sessionKey,JSON.stringify({offset:window.scrollY||window.pageYOffset,location:window.location.href}))},hasSessionStorage:function(){var t="test string";try{return sessionStorage.setItem(t,t),sessionStorage.removeItem(t),!0}catch(t){return!1}}};window.addEventListener("DOMContentLoaded",t.init.bind(t))}(jQuery,window.platform),function($){void 0===$.fn.each2&&$.extend($.fn,{each2:function(t){for(var e=$([0]),n=-1,i=this.length;++n<i&&(e.context=e[0]=this[n])&&!1!==t.call(e[0],n,e););return this}})}(jQuery),function($,t){"use strict";if(window.Select2===t){var e,n,i,r,o,a,s,l,c={x:0,y:0},u={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(t){switch(t=t.which?t.which:t){case u.LEFT:case u.RIGHT:case u.UP:case u.DOWN:return!0}return!1},isControl:function(t){switch(t.which){case u.SHIFT:case u.CTRL:case u.ALT:return!0}return!!t.metaKey},isFunctionKey:function(t){return(t=t.which?t.which:t)>=112&&t<=123}},h={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};a=$(document),l=1,r=function(){return l++},e=P(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(e){var n,i,o=".select2-results";this.opts=e=this.prepareOpts(e),this.id=e.id,e.element.data("select2")!==t&&null!==e.element.data("select2")&&e.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=$(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=$("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(e.element.attr("id")||"autogen"+r()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",e.element.attr("title")),this.body=$(document.body),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",e.element.attr("style")),this.container.css(A(e.containerCss,this.opts.element)),this.container.addClass(A(e.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",w),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(e.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",w),this.results=n=this.container.find(o),this.search=i=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",w),this.results.on("mousemove",(function(e){var n=c;n!==t&&n.x===e.pageX&&n.y===e.pageY||$(e.target).trigger("mousemove-filtered",e)})),this.dropdown.on("mousemove-filtered",o,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",o,this.bind((function(t){this._touchEvent=!0,this.highlightUnderEvent(t)}))),this.dropdown.on("touchmove",o,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",o,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind((function(t){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())}))),function(t,e){var n=b(t,(function(t){e.trigger("scroll-debounced",t)}));e.on("scroll",(function(t){f(t.target,e.get())>=0&&n(t)}))}(80,this.results),this.dropdown.on("scroll-debounced",o,this.bind(this.loadMoreIfNeeded)),$(this.container).on("change",".select2-input",(function(t){t.stopPropagation()})),$(this.dropdown).on("change",".select2-input",(function(t){t.stopPropagation()})),$.fn.mousewheel&&n.mousewheel((function(t,e,i,r){var o=n.scrollTop();r>0&&o-r<=0?(n.scrollTop(0),w(t)):r<0&&n.get(0).scrollHeight-n.scrollTop()+r<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),w(t))})),y(i),i.on("keyup-change input paste",this.bind(this.updateResults)),i.on("focus",(function(){i.addClass("select2-focused")})),i.on("blur",(function(){i.removeClass("select2-focused")})),this.dropdown.on("mouseup",o,this.bind((function(t){$(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))}))),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",(function(t){t.stopPropagation()})),this.lastSearchTerm=t,$.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==e.maximumInputLength&&this.search.attr("maxlength",e.maximumInputLength);var a=e.element.prop("disabled");a===t&&(a=!1),this.enable(!a);var l=e.element.prop("readonly");l===t&&(l=!1),this.readonly(l),s=s||function(){var t=$("<div class='select2-measure-scrollbar'></div>");t.appendTo(document.body);var e={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),e}(),this.autofocus=e.element.prop("autofocus"),e.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",e.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,n=e.data("select2"),i=this;this.close(),e.length&&e[0].detachEvent&&i._sync&&e.each((function(){i._sync&&this.detachEvent("onpropertychange",i._sync)})),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,n!==t&&(n.container.remove(),n.liveRegion.remove(),n.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),_.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(t){return t.is("option")?{id:t.prop("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:t.prop("disabled"),locked:m(t.attr("locked"),"locked")||m(t.data("locked"),!0)}:t.is("optgroup")?{text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")}:void 0},prepareOpts:function(e){var n,i,o,a,s=this;if("select"===(n=e.element).get(0).tagName.toLowerCase()&&(this.select=i=e.element),i&&$.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],(function(){if(this in e)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),e.debug=e.debug||$.fn.select2.defaults.debug,e.debug&&console&&console.warn&&(e.id,e.text,e.sortResults,e.selectOnBlur,null!=e.ajax&&e.ajax.results,e.formatNoResults,e.formatSearching,e.formatInputTooShort,e.formatInputTooLong,e.formatLoading,e.formatSelectionTooBig,e.element.data("select2Tags")),null!=e.element.data("tags")){var l=e.element.data("tags");$.isArray(l)||(l=[]),e.element.data("select2Tags",l)}if(null!=e.sorter&&(e.sortResults=e.sorter),null!=e.selectOnClose&&(e.selectOnBlur=e.selectOnClose),null!=e.ajax&&$.isFunction(e.ajax.processResults)&&(e.ajax.results=e.ajax.processResults),null!=e.language){var c=e.language;$.isFunction(c.noMatches)&&(e.formatNoMatches=c.noMatches),$.isFunction(c.searching)&&(e.formatSearching=c.searching),$.isFunction(c.inputTooShort)&&(e.formatInputTooShort=c.inputTooShort),$.isFunction(c.inputTooLong)&&(e.formatInputTooLong=c.inputTooLong),$.isFunction(c.loadingMore)&&(e.formatLoading=c.loadingMore),$.isFunction(c.maximumSelected)&&(e.formatSelectionTooBig=c.maximumSelected)}if("function"!=typeof(e=$.extend({},{populateResults:function(n,i,o){var a,l=this.opts.id,c=this.liveRegion;a=function(n,i,u){var h,d,p,f,m,g,v,y,b,w,x=[];for(h=0,d=(n=e.sortResults(n,i,o)).length;h<d;h+=1)f=!(m=!0===(p=n[h]).disabled)&&l(p)!==t,g=p.children&&p.children.length>0,(v=$("<li></li>")).addClass("select2-results-dept-"+u),v.addClass("select2-result"),v.addClass(f?"select2-result-selectable":"select2-result-unselectable"),m&&v.addClass("select2-disabled"),g&&v.addClass("select2-result-with-children"),v.addClass(s.opts.formatResultCssClass(p)),v.attr("role","presentation"),(y=$(document.createElement("div"))).addClass("select2-result-label"),y.attr("id","select2-result-label-"+r()),y.attr("role","option"),(w=e.formatResult(p,y,o,s.opts.escapeMarkup))!==t&&(y.html(w),v.append(y)),g&&((b=$("<ul></ul>")).addClass("select2-result-sub"),a(p.children,b,u+1),v.append(b)),v.data("select2-data",p),x.push(v[0]);i.append(x),c.text(e.formatMatches(n.length))},a(i,n,0)}},$.fn.select2.defaults,e)).id&&(o=e.id,e.id=function(t){return t[o]}),$.isArray(e.element.data("select2Tags"))){if("tags"in e)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+e.element.attr("id");e.tags=e.element.data("select2Tags")}if(i?(e.query=this.bind((function(e){var i,r,o,a={results:[],more:!1},l=e.term;o=function(t,n){var i;t.is("option")?e.matcher(l,t.text(),t)&&n.push(s.optionToData(t)):t.is("optgroup")&&(i=s.optionToData(t),t.children().each2((function(t,e){o(e,i.children)})),i.children.length>0&&n.push(i))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(r=this.getPlaceholderOption())&&(i=i.not(r)),i.each2((function(t,e){o(e,a.results)})),e.callback(a)})),e.id=function(t){return t.id}):"query"in e||("ajax"in e?((a=e.element.data("ajax-url"))&&a.length>0&&(e.ajax.url=a),e.query=k.call(e.element,e.ajax)):"data"in e?e.query=T(e.data):"tags"in e&&(e.query=l(e.tags),e.createSearchChoice===t&&(e.createSearchChoice=function(t){return{id:$.trim(t),text:$.trim(t)}}),e.initSelection===t&&(e.initSelection=function(t,n){var i=[];$(g(t.val(),e.separator,e.transformVal)).each((function(){var t={id:this,text:this},n=e.tags;$.isFunction(n)&&(n=n()),$(n).each((function(){if(m(this.id,t.id))return t=this,!1})),i.push(t)})),n(i)}))),"function"!=typeof e.query)throw"query function not defined for Select2 "+e.element.attr("id");if("top"===e.createSearchChoicePosition)e.createSearchChoicePosition=function(t,e){t.unshift(e)};else if("bottom"===e.createSearchChoicePosition)e.createSearchChoicePosition=function(t,e){t.push(e)};else if("function"!=typeof e.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return e},monitorSource:function(){var e,n=this.opts.element,i=this;n.on("change.select2",this.bind((function(t){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),this._sync=this.bind((function(){var e=n.prop("disabled");e===t&&(e=!1),this.enable(!e);var i=n.prop("readonly");i===t&&(i=!1),this.readonly(i),this.container&&(x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(A(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(A(this.opts.dropdownCssClass,this.opts.element)))})),n.length&&n[0].attachEvent&&n.each((function(){this.attachEvent("onpropertychange",i._sync)})),(e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new e((function(t){$.each(t,i._sync)})),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var e=$.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(e),!e.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=$.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var t=this._enabled&&!this._readonly,e=!t;return t!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",e),this.close(),this.enabledInterface=t,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,e,n,i,r,o=this.dropdown,a=this.container,l=a.offset(),c=a.outerHeight(!1),u=a.outerWidth(!1),h=o.outerHeight(!1),d=$(window),p=d.width(),f=d.height(),m=d.scrollLeft()+p,g=d.scrollTop()+f,v=l.top+c,y=l.left,b=v+h<=g,w=l.top-h>=d.scrollTop(),x=o.outerWidth(!1);o.hasClass("select2-drop-above")?(e=!0,!w&&b&&(n=!0,e=!1)):(e=!1,!b&&w&&(n=!0,e=!0)),n&&(o.hide(),l=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),h=o.outerHeight(!1),m=d.scrollLeft()+p,g=d.scrollTop()+f,v=l.top+c,y=l.left,x=o.outerWidth(!1),o.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(r=$(".select2-results",o)[0],o.addClass("select2-drop-auto-width"),o.css("width",""),(x=o.outerWidth(!1)+(r.scrollHeight===r.clientHeight?0:s.width))>u?u=x:x=u,h=o.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(v-=(t=this.body.offset()).top,y-=t.left),!(y+x<=m)&&l.left+m+a.outerWidth(!1)>x&&(y=l.left+this.container.outerWidth(!1)-x),i={left:y,width:u},e?(this.container.addClass("select2-drop-above"),o.addClass("select2-drop-above"),h=o.outerHeight(!1),i.top=l.top-h,i.bottom="auto"):(i.top=v,i.bottom="auto",this.container.removeClass("select2-drop-above"),o.removeClass("select2-drop-above")),i=$.extend(i,A(this.opts.dropdownCss,this.opts.element)),o.css(i)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=$.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),a.on("mousemove.select2Event",(function(t){c.x=t.pageX,c.y=t.pageY})),!0)},opening:function(){var t,e=this.containerEventName,n="scroll."+e,i="resize."+e,r="orientationchange."+e;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0===(t=$("#select2-drop-mask")).length&&((t=$(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",(function(e){d(t);var n,i=$("#select2-drop");i.length>0&&((n=i.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),e.preventDefault(),e.stopPropagation())}))),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),$("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var o=this;this.container.parents().add(window).each((function(){$(this).on(i+" "+n+" "+r,(function(t){o.opened()&&o.positionDropdown()}))}))},close:function(){if(this.opened()){var t=this.containerEventName,e="scroll."+t,n="resize."+t,i="orientationchange."+t;this.container.parents().add(window).each((function(){$(this).off(e).off(n).off(i)})),this.clearDropdownAlignmentPreference(),$("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),a.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger($.Event("select2-close"))}},externalSearch:function(t){this.open(),this.search.val(t),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return e!==t&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return A(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,e,n,i,r,o,a,s,l=this.results;(e=this.highlight())<0||(0!=e?(t=this.findHighlightableChoices().find(".select2-result-label"),i=(s=((n=$(t[e])).offset()||{}).top||0)+n.outerHeight(!0),e===t.length-1&&(a=l.find("li.select2-more-results")).length>0&&(i=a.offset().top+a.outerHeight(!0)),i>(r=l.offset().top+l.outerHeight(!1))&&l.scrollTop(l.scrollTop()+(i-r)),(o=s-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+o)):l.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result")},moveHighlight:function(t){for(var e=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<e.length;){var i=$(e[n+=t]);if(i.hasClass("select2-result-selectable")&&!i.hasClass("select2-disabled")&&!i.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var e,n,i=this.findHighlightableChoices();if(0===arguments.length)return f(i.filter(".select2-highlighted")[0],i.get());t>=i.length&&(t=i.length-1),t<0&&(t=0);var r=$(i[t]);(!r.length||r.hasClass("select2-unselectable")||r.hasClass("select2-disabled")||r.hasClass("select2-selected"))&&(t=0),this.removeHighlight(),(e=$(i[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",e.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(e.text()),(n=e.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var e=$(t.target).closest(".select2-result-selectable");if(e.length>0&&!e.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(e))}else 0==e.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,e=t.find("li.select2-more-results"),n=this.resultsPage+1,i=this,r=this.search.val(),o=this.context;0!==e.length&&e.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(e.addClass("select2-active"),this.opts.query({element:this.opts.element,term:r,page:n,context:o,matcher:this.opts.matcher,callback:this.bind((function(a){i.opened()&&(i.opts.populateResults.call(this,t,a.results,{term:r,page:n,context:o}),i.postprocessResults(a,!1,!1),!0===a.more?(e.detach().appendTo(t).html(i.opts.escapeMarkup(A(i.opts.formatLoadMore,i.opts.element,n+1))),window.setTimeout((function(){i.loadMoreIfNeeded()}),10)):e.remove(),i.positionDropdown(),i.resultsPage=n,i.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(e){var n,i,r,o=this.search,a=this.results,s=this.opts,l=this,c=o.val(),u=$.data(this.container,"select2-last-term");if((!0===e||!u||!m(c,u))&&($.data(this.container,"select2-last-term",c),!0===e||!1!==this.showSearchInput&&this.opened())){r=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),$.isArray(n)&&n.length>=h&&E(s.formatSelectionTooBig,"formatSelectionTooBig"))))return o.val().length<s.minimumInputLength?(E(s.formatInputTooShort,"formatInputTooShort")?p("<li class='select2-no-results'>"+A(s.formatInputTooShort,s.element,o.val(),s.minimumInputLength)+"</li>"):p(""),void(e&&this.showSearch&&this.showSearch(!0))):void(s.maximumInputLength&&o.val().length>s.maximumInputLength?E(s.formatInputTooLong,"formatInputTooLong")?p("<li class='select2-no-results'>"+A(s.formatInputTooLong,s.element,o.val(),s.maximumInputLength)+"</li>"):p(""):(s.formatSearching&&0===this.findHighlightableChoices().length&&p("<li class='select2-searching'>"+A(s.formatSearching,s.element)+"</li>"),o.addClass("select2-active"),this.removeHighlight(),(i=this.tokenize())!=t&&null!=i&&o.val(i),this.resultsPage=1,s.query({element:s.element,term:o.val(),page:this.resultsPage,context:null,matcher:s.matcher,callback:this.bind((function(n){var i;if(r==this.queryCount)if(this.opened())if(n.hasError!==t&&E(s.formatAjaxError,"formatAjaxError"))p("<li class='select2-ajax-error'>"+A(s.formatAjaxError,s.element,n.jqXHR,n.textStatus,n.errorThrown)+"</li>");else{if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==o.val()&&(i=this.opts.createSearchChoice.call(l,o.val(),n.results))!==t&&null!==i&&l.id(i)!==t&&null!==l.id(i)&&0===$(n.results).filter((function(){return m(l.id(this),l.id(i))})).length&&this.opts.createSearchChoicePosition(n.results,i),0===n.results.length&&E(s.formatNoMatches,"formatNoMatches"))return p("<li class='select2-no-results'>"+A(s.formatNoMatches,s.element,o.val())+"</li>"),void(this.showSearch&&this.showSearch(o.val()));a.empty(),l.opts.populateResults.call(this,a,n.results,{term:o.val(),page:this.resultsPage,context:null}),!0===n.more&&E(s.formatLoadMore,"formatLoadMore")&&(a.append("<li class='select2-more-results'>"+s.escapeMarkup(A(s.formatLoadMore,s.element,this.resultsPage))+"</li>"),window.setTimeout((function(){l.loadMoreIfNeeded()}),10)),this.postprocessResults(n,e),d(),this.opts.element.trigger({type:"select2-loaded",items:n})}else this.search.removeClass("select2-active")}))})));p("<li class='select2-selection-limit'>"+A(s.formatSelectionTooBig,s.element,h)+"</li>")}function d(){o.removeClass("select2-active"),l.positionDropdown(),a.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?l.liveRegion.text(a.text()):l.liveRegion.text(l.opts.formatMatches(a.find('.select2-result-selectable:not(".select2-selected")').length))}function p(t){a.html(t),d()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var t;(t=this.search)[0]!==document.activeElement&&window.setTimeout((function(){var e,n=t[0],i=t.val().length;t.focus(),(n.offsetWidth>0||n.offsetHeight>0)&&n===document.activeElement&&(n.setSelectionRange?n.setSelectionRange(i,i):n.createTextRange&&((e=n.createTextRange()).collapse(!1),e.select()))}),0)},selectHighlighted:function(t){if(this._touchMoved)this.clearTouchMoved();else{var e=this.highlight(),n=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");n?(this.highlight(e),this.onSelect(n,t)):t&&t.noFocus&&this.close()}},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===$.trim(e.text())&&""===e.val())return e}},initContainerWidth:function(){var t=function(){var t,e,n,i,r;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if("string"==typeof(t=this.opts.element.attr("style")))for(i=0,r=(e=t.split(";")).length;i<r;i+=1)if(null!==(n=e[i].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&n.length>=1)return n[1];return"resolve"===this.opts.width?(t=this.opts.element.css("width")).indexOf("%")>0?t:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return $.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==t&&this.container.css("width",t)}}),n=P(e,{createContainer:function(){return $(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,e,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(t=this.search.get(0)).createTextRange?((e=t.createTextRange()).collapse(!1),e.select()):t.setSelectionRange&&(n=this.search.val().length,t.setSelectionRange(n,n))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger($.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){$("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),_.call(this,"selection","focusser")},initContainer:function(){var t,e,n=this.container,i=this.dropdown,o=r();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+o),this.focusser.attr("aria-labelledby","select2-chosen-"+o),this.results.attr("id","select2-results-"+o),this.search.attr("aria-owns","select2-results-"+o),this.focusser.attr("id","s2id_autogen"+o),e=$("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind((function(){this.focus()}))),this.focusser.prev().text(e.text()).attr("for",this.focusser.attr("id"));var a=this.opts.element.attr("title");this.opts.element.attr("title",a||e.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text($("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled()&&229!=t.keyCode)if(t.which!==u.PAGE_UP&&t.which!==u.PAGE_DOWN)switch(t.which){case u.UP:case u.DOWN:return this.moveHighlight(t.which===u.UP?-1:1),void w(t);case u.ENTER:return this.selectHighlighted(),void w(t);case u.TAB:return void this.selectHighlighted({noFocus:!0});case u.ESC:return this.cancel(t),void w(t)}else w(t)}))),this.search.on("blur",this.bind((function(t){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind((function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled()&&t.which!==u.TAB&&!u.isControl(t)&&!u.isFunctionKey(t)&&t.which!==u.ESC){if(!1!==this.opts.openOnEnter||t.which!==u.ENTER){if(t.which==u.DOWN||t.which==u.UP||t.which==u.ENTER&&this.opts.openOnEnter){if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;return this.open(),void w(t)}return t.which==u.DELETE||t.which==u.BACKSPACE?(this.opts.allowClear&&this.clear(),void w(t)):void 0}w(t)}}))),y(this.focusser),this.focusser.on("keyup-change input",this.bind((function(t){if(this.opts.minimumResultsForSearch>=0){if(t.stopPropagation(),this.opened())return;this.open()}}))),t.on("mousedown touchstart","abbr",this.bind((function(t){var e;this.isInterfaceEnabled()&&(this.clear(),(e=t).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())}))),t.on("mousedown touchstart",this.bind((function(e){d(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger($.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),w(e)}))),i.on("mousedown touchstart",this.bind((function(){this.opts.shouldFocusInput(this)&&this.search.focus()}))),t.on("focus",this.bind((function(t){w(t)}))),this.focusser.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger($.Event("select2-focus")),this.container.addClass("select2-container-active")}))).on("blur",this.bind((function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger($.Event("select2-blur")))}))),this.search.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger($.Event("select2-focus")),this.container.addClass("select2-container-active")}))),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var e=this.selection.data("select2-data");if(e){var n=$.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var i=this.getPlaceholderOption();this.opts.element.val(i?i.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(e),choice:e}),this.triggerChange({removed:e}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,(function(n){n!==t&&null!==n&&(e.updateSelection(n),e.close(),e.setPlaceholder(),e.lastSearchTerm=e.search.val())}))}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),e=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(t,n){var i=t.find("option").filter((function(){return this.selected&&!this.disabled}));n(e.optionToData(i))}:"data"in t&&(t.initSelection=t.initSelection||function(e,n){var i=e.val(),r=null;t.query({matcher:function(e,n,o){var a=m(i,t.id(o));return a&&(r=o),a},callback:$.isFunction(n)?function(){n(r)}:$.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,e,n){var i=0,r=this;if(this.findHighlightableChoices().each2((function(t,e){if(m(r.id(e.data("select2-data")),r.opts.element.val()))return i=t,!1})),!1!==n&&(!0===e&&i>=0?this.highlight(i):this.highlight(0)),!0===e){var o=this.opts.minimumResultsForSearch;o>=0&&this.showSearch(O(t.results)>=o)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),$(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(t,e){if(this.triggerSelect(t)){var n=this.opts.element.val(),i=this.data();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"select2-selected",val:this.id(t),choice:t}),this.lastSearchTerm=this.search.val(),this.close(),e&&e.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),m(n,this.id(t))||this.triggerChange({added:t,removed:i})}},updateSelection:function(e){var n,i,r=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),r.empty(),null!==e&&(n=this.opts.formatSelection(e,r,this.opts.escapeMarkup)),n!==t&&r.append(n),(i=this.opts.formatSelectionCssClass(e,r))!==t&&r.addClass(i),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,n=!1,i=null,r=this,o=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(n=arguments[1],this.opts.debug&&console&&console.warn),this.select)this.opts.debug&&console&&console.warn,this.select.val(e).find("option").filter((function(){return this.selected})).each2((function(t,e){return i=r.optionToData(e),!1})),this.updateSelection(i),this.setPlaceholder(),n&&this.triggerChange({added:i,removed:o});else{if(!e&&0!==e)return void this.clear(n);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,(function(t){r.opts.element.val(t?r.id(t):""),r.updateSelection(t),r.setPlaceholder(),n&&r.triggerChange({added:t,removed:o})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var n,i=!1;if(0===arguments.length)return(n=this.selection.data("select2-data"))==t&&(n=null),n;opts.debug&&console&&console.warn,arguments.length>1&&(i=arguments[1]),e?(n=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),i&&this.triggerChange({added:e,removed:n})):this.clear(i)}}),i=P(e,{createContainer:function(){return $(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <label for='' class='select2-offscreen'></label>","    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),e=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(t,n){var i=[];t.find("option").filter((function(){return this.selected&&!this.disabled})).each2((function(t,n){i.push(e.optionToData(n))})),n(i)}:"data"in t&&(t.initSelection=t.initSelection||function(e,n){var i=g(e.val(),t.separator,t.transformVal),r=[];t.query({matcher:function(e,n,o){var a=$.grep(i,(function(e){return m(e,t.id(o))})).length;return a&&r.push(o),a},callback:$.isFunction(n)?function(){for(var e=[],o=0;o<i.length;o++)for(var a=i[o],s=0;s<r.length;s++){var l=r[s];if(m(a,t.id(l))){e.push(l),r.splice(s,1);break}}n(e)}:$.noop})}),t},selectChoice:function(t){var e=this.container.find(".select2-search-choice-focus");e.length&&t&&t[0]==e[0]||(e.length&&this.opts.element.trigger("choice-deselected",e),e.removeClass("select2-search-choice-focus"),t&&t.length&&(this.close(),t.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",t)))},destroy:function(){$("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),_.call(this,"searchContainer","selection")},initContainer:function(){var t,e=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(e);var n=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",(function(t){n.search[0].focus(),n.selectChoice($(this))})),this.search.attr("id","s2id_autogen"+r()),this.search.prev().text($("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind((function(){this.focus()}))),this.search.on("input paste",this.bind((function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(e){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),i=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),o=function(t){var e=0,n=0;if("selectionStart"in(t=$(t)[0]))e=t.selectionStart,n=t.selectionEnd-e;else if("selection"in document){t.focus();var i=document.selection.createRange();n=document.selection.createRange().text.length,i.moveStart("character",-t.value.length),e=i.text.length-n}return{offset:e,length:n}}(this.search);if(n.length&&(e.which==u.LEFT||e.which==u.RIGHT||e.which==u.BACKSPACE||e.which==u.DELETE||e.which==u.ENTER)){var a=n;return e.which==u.LEFT&&i.length?a=i:e.which==u.RIGHT?a=r.length?r:null:e.which===u.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),a=i.length?i:r):e.which==u.DELETE?this.unselect(n.first())&&(this.search.width(10),a=r.length?r:null):e.which==u.ENTER&&(a=null),this.selectChoice(a),w(e),void(a&&a.length||this.open())}if((e.which===u.BACKSPACE&&1==this.keydowns||e.which==u.LEFT)&&0==o.offset&&!o.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void w(e);if(this.selectChoice(null),this.opened())switch(e.which){case u.UP:case u.DOWN:return this.moveHighlight(e.which===u.UP?-1:1),void w(e);case u.ENTER:return this.selectHighlighted(),void w(e);case u.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case u.ESC:return this.cancel(e),void w(e)}if(e.which!==u.TAB&&!u.isControl(e)&&!u.isFunctionKey(e)&&e.which!==u.BACKSPACE&&e.which!==u.ESC){if(e.which===u.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==u.PAGE_UP&&e.which!==u.PAGE_DOWN||w(e),e.which===u.ENTER&&w(e)}}}))),this.search.on("keyup",this.bind((function(t){this.keydowns=0,this.resizeSearch()}))),this.search.on("blur",this.bind((function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger($.Event("select2-blur"))}))),this.container.on("click",e,this.bind((function(t){this.isInterfaceEnabled()&&($(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger($.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))}))),this.container.on("focus",e,this.bind((function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger($.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}))),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,(function(n){n!==t&&null!==n&&(e.updateSelection(n),e.close(),e.clearSearch())}))}},clearSearch:function(){var e=this.getPlaceholder(),n=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(n>0?n:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger($.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var e={},n=[],i=this;$(t).each((function(){i.id(this)in e||(e[i.id(this)]=0,n.push(this))})),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),i.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(t,e){this.triggerSelect(t)&&""!==t.text&&(this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(t,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:t}),e&&e.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(t){var e=this.getVal(),n=this;$(t).each((function(){e.push(n.createChoice(this))})),this.setVal(e)},createChoice:function(e){var n,i,r=!e.locked,o=$("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),a=$("<li class='select2-search-choice select2-locked'><div></div></li>"),s=r?o:a,l=this.id(e);return(n=this.opts.formatSelection(e,s.find("div"),this.opts.escapeMarkup))!=t&&s.find("div").replaceWith($("<div></div>").html(n)),(i=this.opts.formatSelectionCssClass(e,s.find("div")))!=t&&s.addClass(i),r&&s.find(".select2-search-choice-close").on("mousedown",w).on("click dblclick",this.bind((function(t){this.isInterfaceEnabled()&&(this.unselect($(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),w(t),this.close(),this.focusSearch())}))).on("focus",this.bind((function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}))),s.data("select2-data",e),s.insertBefore(this.searchContainer),l},unselect:function(t){var e,n,i=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(e=t.data("select2-data")){var r=$.Event("select2-removing");if(r.val=this.id(e),r.choice=e,this.opts.element.trigger(r),r.isDefaultPrevented())return!1;for(;(n=f(this.id(e),i))>=0;)i.splice(n,1),this.setVal(i),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(e),choice:e}),this.triggerChange({removed:e}),!0}},postprocessResults:function(t,e,n){var i=this.getVal(),r=this.results.find(".select2-result"),o=this.results.find(".select2-result-with-children"),a=this;r.each2((function(t,e){f(a.id(e.data("select2-data")),i)>=0&&(e.addClass("select2-selected"),e.find(".select2-result-selectable").addClass("select2-selected"))})),o.each2((function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")})),-1==this.highlight()&&!1!==n&&!0===this.opts.closeOnSelect&&a.highlight(0),!this.opts.createSearchChoice&&!r.filter(".select2-result:not(.select2-selected)").length>0&&(!t||t&&!t.more&&0===this.results.find(".select2-no-results").length)&&E(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+A(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-v(this.search)},resizeSearch:function(){var t,e,n,i,r=v(this.search);t=function(t){if(!o){var e=t[0].currentStyle||window.getComputedStyle(t[0],null);(o=$(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:e.fontSize,fontFamily:e.fontFamily,fontStyle:e.fontStyle,fontWeight:e.fontWeight,letterSpacing:e.letterSpacing,textTransform:e.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),$(document.body).append(o)}return o.text(t.val()),o.width()}(this.search)+10,e=this.search.offset().left,(i=(n=this.selection.width())-(e-this.selection.offset().left)-r)<t&&(i=n-r),i<40&&(i=n-r),i<=0&&(i=t),this.search.width(Math.floor(i))},getVal:function(){var t;return this.select?null===(t=this.select.val())?[]:t:g(t=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(t){if(this.select)this.select.val(t);else{var e=[],n={};$(t).each((function(){this in n||(e.push(this),n[this]=0)})),this.opts.element.val(0===e.length?"":e.join(this.opts.separator))}},buildChangeDetails:function(t,e){e=e.slice(0),t=t.slice(0);for(var n=0;n<e.length;n++)for(var i=0;i<t.length;i++)if(m(this.opts.id(e[n]),this.opts.id(t[i]))){e.splice(n,1),n--,t.splice(i,1);break}return{added:e,removed:t}},val:function(e,n){var i,r=this;if(0===arguments.length)return this.getVal();if((i=this.data()).length||(i=[]),!e&&0!==e)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:i}));if(this.setVal(e),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(i,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(t){var e=$.map(t,r.id);r.setVal(e),r.updateSelection(t),r.clearSearch(),n&&r.triggerChange(r.buildChangeDetails(i,r.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],e=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){t.push(e.opts.id($(this).data("select2-data")))})),this.setVal(t),this.triggerChange()},data:function(t,e){var n,i,r=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map((function(){return $(this).data("select2-data")})).get();i=this.data(),t||(t=[]),n=$.map(t,(function(t){return r.opts.id(t)})),this.setVal(n),this.updateSelection(t),this.clearSearch(),e&&this.triggerChange(this.buildChangeDetails(i,this.data()))}}),$.fn.select2=function(){var e,n,i,r,o,a=Array.prototype.slice.call(arguments,0),s=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],l=["opened","isFocused","container","dropdown"],c=["val","data"],u={search:"externalSearch"};return this.each((function(){if(0===a.length||"object"==typeof a[0])(e=0===a.length?{}:$.extend({},a[0])).element=$(this),"select"===e.element.get(0).tagName.toLowerCase()?o=e.element.prop("multiple"):(o=e.multiple||!1,"tags"in e&&(e.multiple=o=!0)),(n=o?new window.Select2.class.multi:new window.Select2.class.single).init(e);else{if("string"!=typeof a[0])throw"Invalid arguments to select2 plugin: "+a;if(f(a[0],s)<0)throw"Unknown method: "+a[0];if(r=t,(n=$(this).data("select2"))===t)return;if("container"===(i=a[0])?r=n.container:"dropdown"===i?r=n.dropdown:(u[i]&&(i=u[i]),r=n[i].apply(n,a.slice(1))),f(a[0],l)>=0||f(a[0],c)>=0&&1==a.length)return!1}})),r===t?this:r},$.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,n,i){var r=[];return C(this.text(t),n.term,r,i),r.join("")},transformVal:function(t){return $.trim(t)},formatSelection:function(e,n,i){return e?i(this.text(e)):t},sortResults:function(t,e,n){return t},formatResultCssClass:function(t){return t.css},formatSelectionCssClass:function(e,n){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},text:function(t){return t&&this.data&&this.data.text?$.isFunction(this.data.text)?this.data.text(t):t[this.data.text]:t.text},matcher:function(t,e){return p(""+e).toUpperCase().indexOf(p(""+t).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,n,i,r){var o,a,s,l,c,u=e,h=!1;if(!r.createSearchChoice||!r.tokenSeparators||r.tokenSeparators.length<1)return t;for(;;){for(a=-1,s=0,l=r.tokenSeparators.length;s<l&&(c=r.tokenSeparators[s],!((a=e.indexOf(c))>=0));s++);if(a<0)break;if(o=e.substring(0,a),e=e.substring(a+c.length),o.length>0&&(o=r.createSearchChoice.call(this,o,n))!==t&&null!==o&&r.id(o)!==t&&null!==r.id(o)){for(h=!1,s=0,l=n.length;s<l;s++)if(m(r.id(o),r.id(n[s]))){h=!0;break}h||i(o)}}return u!==e?e:void 0},escapeMarkup:S,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(t){return null},nextSearchTerm:function(e,n){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(t){return!("ontouchstart"in window||navigator.msMaxTouchPoints>0)||!(t.opts.minimumResultsForSearch<0)}},$.fn.select2.locales=[],$.fn.select2.locales.en={formatMatches:function(t){return 1===t?"One result is available, press enter to select it.":t+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(t,e,n){return"Loading failed"},formatInputTooShort:function(t,e){var n=e-t.length;return"Please enter "+n+" or more character"+(1==n?"":"s")},formatInputTooLong:function(t,e){var n=t.length-e;return"Please delete "+n+" character"+(1==n?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(t){return"Loading more results…"},formatSearching:function(){return"Searching…"}},$.extend($.fn.select2.defaults,$.fn.select2.locales.en),$.fn.select2.ajaxDefaults={transport:$.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:k,local:T,tags:function(e){var n=$.isFunction(e);return function(i){var r=i.term,o={results:[]},a=n?e(i):e;$.isArray(a)&&($(a).each((function(){var e=this.text!==t,n=e?this.text:this;(""===r||i.matcher(r,n))&&o.results.push(e?this:{id:this,text:this})})),i.callback(o))}}},util:{debounce:b,markMatch:C,escapeMarkup:S,stripDiacritics:p},class:{abstract:e,single:n,multi:i}}}function d(t){var e=$(document.createTextNode(""));t.before(e),e.before(t),e.remove()}function p(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return h[t]||t}))}function f(t,e){for(var n=0,i=e.length;n<i;n+=1)if(m(t,e[n]))return n;return-1}function m(e,n){return e===n||e!==t&&n!==t&&(null!==e&&null!==n&&(e.constructor===String?e+""==n+"":n.constructor===String&&n+""==e+""))}function g(t,e,n){var i,r,o;if(null===t||t.length<1)return[];for(r=0,o=(i=t.split(e)).length;r<o;r+=1)i[r]=n(i[r]);return i}function v(t){return t.outerWidth(!1)-t.width()}function y(e){var n="keyup-change-value";e.on("keydown",(function(){$.data(e,n)===t&&$.data(e,n,e.val())})),e.on("keyup",(function(){var i=$.data(e,n);i!==t&&e.val()!==i&&($.removeData(e,n),e.trigger("keyup-change"))}))}function b(e,n,i){var r;return i=i||t,function(){var t=arguments;window.clearTimeout(r),r=window.setTimeout((function(){n.apply(i,t)}),e)}}function w(t){t.preventDefault(),t.stopPropagation()}function x(t,e,n){var i,r,o=[];(i=$.trim(t.attr("class")))&&$((i=""+i).split(/\s+/)).each2((function(){0===this.indexOf("select2-")&&o.push(this)})),(i=$.trim(e.attr("class")))&&$((i=""+i).split(/\s+/)).each2((function(){0!==this.indexOf("select2-")&&(r=n(this))&&o.push(r)})),t.attr("class",o.join(" "))}function C(t,e,n,i){var r=p(t.toUpperCase()).indexOf(p(e.toUpperCase())),o=e.length;r<0?n.push(i(t)):(n.push(i(t.substring(0,r))),n.push("<span class='select2-match'>"),n.push(i(t.substring(r,r+o))),n.push("</span>"),n.push(i(t.substring(r+o,t.length))))}function S(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))}function k(e){var n,i=null,r=e.quietMillis||100,o=e.url,a=this;return function(s){window.clearTimeout(n),n=window.setTimeout((function(){var n=e.data,r=o,l=e.transport||$.fn.select2.ajaxDefaults.transport,c={type:e.type||"GET",cache:e.cache||!1,jsonpCallback:e.jsonpCallback||t,dataType:e.dataType||"json"},u=$.extend({},$.fn.select2.ajaxDefaults.params,c);n=n?n.call(a,s.term,s.page,s.context):null,r="function"==typeof r?r.call(a,s.term,s.page,s.context):r,i&&"function"==typeof i.abort&&i.abort(),e.params&&($.isFunction(e.params)?$.extend(u,e.params.call(a)):$.extend(u,e.params)),$.extend(u,{url:r,dataType:e.dataType,data:n,success:function(t){var n=e.results(t,s.page,s);s.callback(n)},error:function(t,e,n){var i={hasError:!0,jqXHR:t,textStatus:e,errorThrown:n};s.callback(i)}}),i=l.call(a,u)}),r)}}function T(t){var e,n,i=t,r=function(t){return""+t.text};$.isArray(i)&&(i={results:n=i}),!1===$.isFunction(i)&&(n=i,i=function(){return n});var o=i();return o.text&&(r=o.text,$.isFunction(r)||(e=o.text,r=function(t){return t[e]})),function(t){var e,n=t.term,o={results:[]};""!==n?(e=function(i,o){var a,s;if((i=i[0]).children){for(s in a={},i)i.hasOwnProperty(s)&&(a[s]=i[s]);a.children=[],$(i.children).each2((function(t,n){e(n,a.children)})),(a.children.length||t.matcher(n,r(a),i))&&o.push(a)}else t.matcher(n,r(i),i)&&o.push(i)},$(i().results).each2((function(t,n){e(n,o.results)})),t.callback(o)):t.callback(i())}}function E(t,e){if($.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(e+" must be a string, function, or falsy value")}function A(t,e){if($.isFunction(t)){var n=Array.prototype.slice.call(arguments,2);return t.apply(e,n)}return t}function O(t){var e=0;return $.each(t,(function(t,n){n.children?e+=O(n.children):e++})),e}function _(){var t=this;$.each(arguments,(function(e,n){t[n].remove(),t[n]=null}))}function P(t,e){var n=function(){};return(n.prototype=new t).constructor=n,n.prototype.parent=t.prototype,n.prototype=$.extend(n.prototype,e),n}}(jQuery),function(t,e,n){"use strict";var i=function(e){this.$element=t(e)};i.prototype.init=function(){var t=this.state();t&&this[t]()},i.prototype.toggle=function(e){var n=this.$element,i=n.data("target"),o=n.data("class")||"is-collapsed";if(!n.is(".disabled, .is-disabled, :disabled")&&i){var a=t("[data-group="+i+"]");return r(a,o)?this.open(a,o):this.close(a,o),!1}},i.prototype.open=function(){var e=this.$element,n=e.data("target"),i=e.data("class")||"is-collapsed",r=t("[data-group="+n+"]");e.is("button")&&e.removeClass("is-closed"),r.removeClass(i),this.state("open")},i.prototype.close=function(){var e=this.$element,n=e.data("target"),i=e.data("class")||"is-collapsed",r=t("[data-group="+n+"]");e.is("button")&&e.addClass("is-closed"),r.addClass(i),this.state("close")},i.prototype.state=function(t){var e=this.$element.data("state");if("undefined"!=typeof Storage&&e){var n=this.$element.data("target");if(undefined!==n)return t?(sessionStorage[n]=t,t):(t=sessionStorage[n])||!1}return!1};var r=function(t,e){return t.first().hasClass(e)};t.fn.collapse=function(e){return this.each((function(){var n=t(this),r=n.data("ui.collapse");r||n.data("ui.collapse",r=new i(this)),e||(e="init"),r[e]()}))},t.fn.collapse.Construct=i,t.fn.collapse.noConflict=function(){return t.fn.dropdown=old,this},t(e).on("click.ui.collapse",'[data-toggle="collapse"]',(function(e){e.stopPropagation(),t(this).collapse("toggle")})),t("[data-toggle=collapse]").collapse()}(jQuery,document),
/*! ========================================================================
 * Some parts are borrowed from Twitter Bootstrap and modified for our
 * usage, those parts are copyrighted by Twitter.
 * ========================================================================
 * Bootstrap: dropdown.js v3.0.3
 * http://getbootstrap.com/javascript/#dropdowns
 * ========================================================================
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
function(t,e,n){"use strict";var i="[data-toggle=dropdown]",r=function(e){t(e).on("click.ui.dropdown",this.toggle)};r.prototype.toggle=function(n){var i=t(this);if(!i.is(".disabled, .is-disabled, :disabled")){var r=a(i),s=r.hasClass("open");if(o(),!s){if("ontouchstart"in e.documentElement&&t('<div class="dropdown-backdrop" />').insertAfter(t(this)).on("click",o),n.isDefaultPrevented())return;r.toggleClass("open"),i.focus()}return!1}};var o=function(e){t(".dropdown-backdrop").remove(),t(i).each((function(){var e=a(t(this));e.hasClass("open")&&e.removeClass("open")}))},a=function(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()},s=t.fn.dropdown;t.fn.dropdown=function(e){return this.each((function(){var n=t(this),i=n.data("ui.dropdown");i||n.data("ui.dropdown",i=new r(this)),"string"==typeof e&&i[e].call(n)}))},t.fn.dropdown.Construct=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(e).on("click.ui.dropdown",o).on("click.ui.dropdown",".dropdown form",(function(t){t.stopPropagation()})).on("click.ui.dropdown",i,r.prototype.toggle)}(jQuery,document),/*! ost */
function(t,e,n){"use strict";var i=function(e){t(e).on("click.ui.navigation",this.toggle)};i.prototype.toggle=function(n){var i=t(this);if(!i.is(".disabled, .is-disabled, :disabled")){var a=o(i);if(a.hasClass("open"))r(i);else{if("ontouchstart"in e.documentElement&&t('<div class="dropdown-backdrop" />').insertAfter(t(this)).on("click",r(i)),n.isDefaultPrevented())return;a.toggleClass("open"),i.focus()}return!1}};var r=function(t){t.find(".dropdown-backdrop").remove(),o(t).removeClass("open")},o=function(t){return t.parents(".dropdown").first()},a=t.fn.nav;t.fn.nav=function(e){return this.each((function(){var e=t(this),n=e.data("ui.nav");n||e.data("ui.nav",n=new i(this))}))},t.fn.dropdown.Construct=i,t.fn.nav.noConflict=function(){return t.fn.nav=a,this},t(e).on("click.ui.navigation",".dropdown form",(function(t){t.stopPropagation()})).on("click.ui.navigation","[data-toggle=navigation]",i.prototype.toggle)}(jQuery,document),
/*! ========================================================================
 * Some parts are borrowed from Twitter Bootstrap and modified for our
 * usage, these parts are copyrighted by Twitter.
 * ========================================================================
 * Bootstrap: dropdown.js v3.0.3
 * http://getbootstrap.com/javascript/#tabs
 * ========================================================================
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * ======================================================================== */
function(t,e,n){"use strict";var i=function(e){this.$element=t(e)};i.prototype.show=function(e){var n=this.$element,i=n.closest("ul.nav"),r=n.parent("li"),o=n.data("target");if(!n.is(".disabled, .is-disabled, :disabled")&&(o||(o=(o=n.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),!r.length||!r.hasClass("active"))){var a=t(o);if(!r.length){var s=t(".nav [data-toggle='content'][data-target='"+o+"'], .nav [data-toggle='content'][href='"+o+"']");r=s.parent("li"),i=s.closest("ul.nav")}this.activate(r,i),this.activate(a,a.parent(".toggle-content"))}},i.prototype.activate=function(t,e){e.find("> .active").removeClass("active"),t.addClass("active")},t.fn.tab=function(e){return this.each((function(){var n=t(this),r=n.data("ui.tab");r||n.data("ui.tab",r=new i(this)),"string"==typeof e&&r[e]()}))},t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=old,this},t(e).on("click.ui.tabs",'[data-toggle="content"]',(function(e){e.preventDefault(),t(this).tab("show")}))}(jQuery,document),function(t){"use strict";t.matchMedia=t.matchMedia||function(t){var e,n=t.documentElement,i=n.firstElementChild||n.firstChild,r=t.createElement("body"),o=t.createElement("div");return o.id="mq-test-1",o.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(o),function(t){return o.innerHTML='&shy;<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(r,i),e=42===o.offsetWidth,n.removeChild(r),{matches:e,media:t}}}(t.document)}(this),function(t){"use strict";function e(){w(!0)}var n={};t.respond=n,n.update=function(){};var i=[],r=function(){var e=!1;try{e=new t.XMLHttpRequest}catch(n){e=new t.ActiveXObject("Microsoft.XMLHTTP")}return function(){return e}}(),o=function(t,e){var n=r();n&&(n.open("GET",t,!0),n.onreadystatechange=function(){4!==n.readyState||200!==n.status&&304!==n.status||e(n.responseText)},4!==n.readyState&&n.send(null))},a=function(t){return t.replace(n.regex.minmaxwh,"").match(n.regex.other)};if(n.ajax=o,n.queue=i,n.unsupportedmq=a,n.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},n.mediaQueriesSupported=t.matchMedia&&null!==t.matchMedia("only all")&&t.matchMedia("only all").matches,!n.mediaQueriesSupported){var s,l,c,u=t.document,h=u.documentElement,d=[],p=[],f=[],m={},g=u.getElementsByTagName("head")[0]||h,v=u.getElementsByTagName("base")[0],y=g.getElementsByTagName("link"),b=function(){var t,e=u.createElement("div"),n=u.body,i=h.style.fontSize,r=n&&n.style.fontSize,o=!1;return e.style.cssText="position:absolute;font-size:1em;width:1em",n||((n=o=u.createElement("body")).style.background="none"),h.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(e),o&&h.insertBefore(n,h.firstChild),t=e.offsetWidth,o?h.removeChild(n):n.removeChild(e),h.style.fontSize=i,r&&(n.style.fontSize=r),c=parseFloat(t)},w=function(e){var n="clientWidth",i=h[n],r="CSS1Compat"===u.compatMode&&i||u.body[n]||i,o={},a=y[y.length-1],m=(new Date).getTime();if(e&&s&&30>m-s)return t.clearTimeout(l),void(l=t.setTimeout(w,30));for(var v in s=m,d)if(d.hasOwnProperty(v)){var x=d[v],C=x.minw,S=x.maxw,k=null===C,T=null===S;C&&(C=parseFloat(C)*(C.indexOf("em")>-1?c||b():1)),S&&(S=parseFloat(S)*(S.indexOf("em")>-1?c||b():1)),x.hasquery&&(k&&T||!(k||r>=C)||!(T||S>=r))||(o[x.media]||(o[x.media]=[]),o[x.media].push(p[x.rules]))}for(var E in f)f.hasOwnProperty(E)&&f[E]&&f[E].parentNode===g&&g.removeChild(f[E]);for(var A in f.length=0,o)if(o.hasOwnProperty(A)){var O=u.createElement("style"),_=o[A].join("\n");O.type="text/css",O.media=A,g.insertBefore(O,a.nextSibling),O.styleSheet?O.styleSheet.cssText=_:O.appendChild(u.createTextNode(_)),f.push(O)}},x=function(t,e,i){var r=t.replace(n.regex.comments,"").replace(n.regex.keyframes,"").match(n.regex.media),o=r&&r.length||0,s=function(t){return t.replace(n.regex.urls,"$1"+e+"$2$3")},l=!o&&i;(e=e.substring(0,e.lastIndexOf("/"))).length&&(e+="/"),l&&(o=1);for(var c=0;o>c;c++){var u,h,f,m;l?(u=i,p.push(s(t))):(u=r[c].match(n.regex.findStyles)&&RegExp.$1,p.push(RegExp.$2&&s(RegExp.$2))),m=(f=u.split(",")).length;for(var g=0;m>g;g++)h=f[g],a(h)||d.push({media:h.split("(")[0].match(n.regex.only)&&RegExp.$2||"all",rules:p.length-1,hasquery:h.indexOf("(")>-1,minw:h.match(n.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:h.match(n.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}w()},C=function(){if(i.length){var e=i.shift();o(e.href,(function(n){x(n,e.href,e.media),m[e.href]=!0,t.setTimeout((function(){C()}),0)}))}},S=function(){for(var e=0;e<y.length;e++){var n=y[e],r=n.href,o=n.media,a=n.rel&&"stylesheet"===n.rel.toLowerCase();r&&a&&!m[r]&&(n.styleSheet&&n.styleSheet.rawCssText?(x(n.styleSheet.rawCssText,r,o),m[r]=!0):(!/^([a-zA-Z:]*\/\/)/.test(r)&&!v||r.replace(RegExp.$1,"").split("/")[0]===t.location.host)&&("//"===r.substring(0,2)&&(r=t.location.protocol+r),i.push({href:r,media:o})))}C()};S(),n.update=S,n.getEmValue=b,t.addEventListener?t.addEventListener("resize",e,!1):t.attachEvent&&t.attachEvent("onresize",e)}}(this),function(t,e){function n(){var t=f.elements;return"string"==typeof t?t.split(" "):t}function i(t){var e=p[t[h]];return e||(e={},d++,t[h]=d,p[d]=e),e}function r(t,n,r){return n||(n=e),s?n.createElement(t):(r||(r=i(n)),(n=r.cache[t]?r.cache[t].cloneNode():u.test(t)?(r.cache[t]=r.createElem(t)).cloneNode():r.createElem(t)).canHaveChildren&&!c.test(t)?r.frag.appendChild(n):n)}function o(t){t||(t=e);var o=i(t);if(f.shivCSS&&!a&&!o.hasCSS){var l,c=t;l=c.createElement("p"),c=c.getElementsByTagName("head")[0]||c.documentElement,l.innerHTML="x<style>article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}</style>",l=c.insertBefore(l.lastChild,c.firstChild),o.hasCSS=!!l}return s||function(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(n){return f.shivMethods?r(n,t,e):e.createElem(n)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/[\w\-]+/g,(function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'}))+");return n}")(f,e.frag)}(t,o),t}var a,s,l=t.html5||{},c=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,u=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,h="_html5shiv",d=0,p={};!function(){try{var t,n=e.createElement("a");if(n.innerHTML="<xyz></xyz>",a="hidden"in n,!(t=1==n.childNodes.length)){e.createElement("a");var i=e.createDocumentFragment();t=void 0===i.cloneNode||void 0===i.createDocumentFragment||void 0===i.createElement}s=t}catch(t){s=a=!0}}();var f={elements:l.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==l.shivCSS,supportsUnknownElements:s,shivMethods:!1!==l.shivMethods,type:"default",shivDocument:o,createElement:r,createDocumentFragment:function(t,r){if(t||(t=e),s)return t.createDocumentFragment();for(var o=(r=r||i(t)).frag.cloneNode(),a=0,l=n(),c=l.length;a<c;a++)o.createElement(l[a]);return o}};t.html5=f,o(e)}(this,document),function($,t){$.fn.Thumbelina=function(){$(this).remove()};var e=window.text,n=["SUNDAY","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY"],i={months:_.map(["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],(function(t){return e["DATE_MONTH_"+t]})),weekdays:_.map(n,(function(t){return e["DATE_DAY_"+t]})),weekdaysShort:_.map(n,(function(t){return e["DATE_DAY_"+t].substring(0,3)}))};var r={_error:function(t){throw new Error("Modernizr needed to test media queries with function "+t+": http://modernizr.com/")},_hasModernizr:function(){return"function"==typeof t.Modernizr.mq},_miw:function(e){return t.Modernizr.mq("(min-width: "+e+"px)")},_maw:function(e){return t.Modernizr.mq("(max-width: "+e+"px)")},_mmw:function(e,n){return t.Modernizr.mq("(min-width: "+e+"px) and (max-width: "+n+"px)")},is:t.Modernizr.mq,current:function(){this._hasModernizr||this._error("current");for(var t,e=!0,n=4;e;)this._miw(this._slices[n])&&(e=!1,t=this._sizes[n]),n--;return t},_slices:[0,480,768,960,1280],_sizes:{1:"s",2:"m",3:"l",4:"xl"}};r.all={s:r._slices[1],m:r._slices[2],l:r._slices[3],xl:r._slices[4]},r.s=r._slices[1],r.m=r._slices[2],r.l=r._slices[3],r.xl=r._slices[4],t.template=t.template||{},t.template.bp=r,t.platform=t.platform||{},_.extend(t.platform,{number_format:function(t,e,n,i){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var r=isFinite(+t)?+t:0,o=isFinite(+e)?Math.abs(e):0,a=void 0===i?",":i,s=void 0===n?".":n,l="";return l=(o?function(t,e){var n=Math.pow(10,e);return""+(Math.round(t*n)/n).toFixed(e)}(r,o):""+Math.round(r)).split("."),l[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(l[1]||"").length<o&&(l[1]=l[1]||"",l[1]+=new Array(o-l[1].length+1).join("0")),l.join(s)},currency_format:function(e,n){n=n||!1,e=e||0,e=t.platform.number_format(e,t.platform.currency.decimalCount,t.platform.currency.decimal,t.platform.currency.point),e=n?'<span class="amount">'+e+"</span>":e;var i=t.platform.currency.symbol;i=n?'<span class="symbol">'+i+"</span>":i;return"left"==t.platform.currency.symbolPlace?i+" "+e:e+" "+i},fancybox:{settingsDefault:{beforeLoad:function(){var t=$(this.element);t.data("fancybox-title")?this.title=t.data("fancybox-title"):this.title=t.attr("title")},helpers:{media:{},title:{type:"inside"},thumbs:{width:50,height:50}},padding:0,tpl:{closeBtn:'<a title="Close" class="fancybox-item fancybox-close fa-stack fa-lg" href="javascript:;"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-times fa-stack-1x fa-inverse"></i></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-chevron-left fa-stack-1x fa-inverse"></i></span></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-chevron-right fa-stack-1x fa-inverse"></i></span></a>'}},settingsModal:{beforeLoad:function(){var t=$(this.element);t.data("fancybox-title")?this.title=t.data("fancybox-title"):this.title=t.attr("title")},transitionIn:"none",transitionOut:"none",modal:!0,padding:0,tpl:{closeBtn:'<a title="Close" class="fancybox-item fancybox-close fa-stack fa-lg" href="javascript:;"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-times fa-stack-1x fa-inverse"></i></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-chevron-left fa-stack-1x fa-inverse"></i></span></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-chevron-right fa-stack-1x fa-inverse"></i></span></a>'}},settingsGallery:{beforeLoad:function(){var t=$(this.element);t.data("fancybox-title")?this.title=t.data("fancybox-title"):this.title=t.attr("title")},transitionIn:"elastic",transitionOut:"elastic",speedIn:600,speedOut:200,helpers:{buttons:{},media:{},title:{type:"inside"},thumbs:{width:50,height:50}},padding:0,tpl:{closeBtn:'<a title="Close" class="fancybox-item fancybox-close fa-stack fa-lg" href="javascript:;"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-times fa-stack-1x fa-inverse"></i></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-chevron-left fa-stack-1x fa-inverse"></i></span></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span class="fa-stack fa-lg"><i class="fa fa-circle fa-stack-2x"></i><i class="fa fa-chevron-right fa-stack-1x fa-inverse"></i></span></a>'}},applyClass:function(t,e){var n=_.clone(this.settingsDefault);e&&(n=_.extend(n,e)),$(t||".fancybox").fancybox(n)},init:function(){this.applyClass(),this.applyClass('[data-fancybox=""]',this.settingsDefault),this.applyClass('.fancybox-modal, [data-fancybox="modal"]',this.settingsModal),this.applyClass('.fancybox-gallery, [data-fancybox="gallery"]',this.settingsGallery),platform.template.settings.BUNDLE_VERSION&&"1.0.0"!==platform.template.settings.BUNDLE_VERSION&&$((function(){$(".modules.m-productlist.m-productlist-list").on("click",".m-productlist-price-terms > a",(function(t){t.preventDefault(),$.fancybox.open("#overlaypriceTerms",this.settingsDefault)}))}))}},cookieBox:{init:function(){if(platform.template.settings.COOKIE_TYPE||(platform.template.settings.COOKIE_TYPE="COOKIE_POPUP"),platform.general.linkToCookies&&"COOKIE_POPUP"===platform.template.settings.COOKIE_TYPE){var e=t.text.COOKIES_TEXT.replace("#COOKIES_LINK#",""),n={palette:{popup:{background:"#00000075",text:"#ffffff"},button:{background:t.platform.template.settings.BUTTON_PRIMARY_BACKGROUND_COLOR,border:t.platform.template.settings.BUTTON_PRIMARY_BACKGROUND_COLOR,text:t.platform.template.settings.BUTTON_PRIMARY_FONT_COLOR}},content:{message:e,dismiss:t.text.COOKIES_BUTTON,link:t.text.COOKIES_LINK,href:platform.general.linkToCookies},elements:{dismiss:'<a aria-label="dismiss cookie message" tabindex="0" style="font-weight: normal" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" tabindex="0" style="font-weight: normal" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" tabindex="0" style="font-weight: normal" class="cc-btn cc-deny">{{deny}}</a>'},law:{regionalLaw:!1}};"top-static"==t.platform.template.settings.COOKIE_PLACEMENT?(n.position="top",n.static=!0):t.platform.template.settings.COOKIE_PLACEMENT&&(n.position=t.platform.template.settings.COOKIE_PLACEMENT),t.platform.template.settings.COOKIE_BUTTON_BACKGROUND_COLOR&&t.platform.template.settings.COOKIE_BUTTON_FONT_COLOR&&(n.palette.button.background=t.platform.template.settings.COOKIE_BUTTON_BACKGROUND_COLOR,n.palette.button.border=t.platform.template.settings.COOKIE_BUTTON_BACKGROUND_COLOR,n.palette.button.text=t.platform.template.settings.COOKIE_BUTTON_FONT_COLOR),t.platform.template.settings.COOKIE_BACKGROUND_COLOR&&t.platform.template.settings.COOKIE_FONT_COLOR&&(n.palette.popup.background=t.platform.template.settings.COOKIE_BACKGROUND_COLOR,n.palette.popup.text=t.platform.template.settings.COOKIE_FONT_COLOR),window.cookieconsent.initialise(n)}}},paymentOptions:{init:function(){if(t.platform.shop){this.klarna.init()}},klarna:{init:function(){platform.consent&&platform.consent.MARKETING&&platform.consent.STATISTICS&&platform.consent.FUNCTIONAL?this.widget():platform.consent||this.widget()},widget:function(){$(".klarna-widget").length&&$.getScript("https://cdn.klarna.com/1.0/code/client/all.js")}}},formSpamCheck:{init:function(){$("body").on("submit","form",(function(){var t=$(this).find("input[name='check']");t.length&&t.val("checked")}))}},render:{init:function(){this.addHelpers(),this.addConverters(),this.addTags()},addHelpers:function(){var t="",e=null!=platform.currency&&void 0!==platform.currency.hasVat&&platform.currency.hasVat;null!=platform.currency&&platform.getSetting("shop_product_tax_after_price")&&(t=platform.currency.hasVat?window.text.PRODUCT_CATALOG_PRODUCT_PRICE_TAX:window.text.PRODUCT_CATALOG_PRODUCT_PRICE_TAX_NO),$.views.helpers({text:function(t){return window.text[t]},settings:function(t){return platform.getSetting(t)},hasVat:e,vatText:t,productVatText:function(n,i){var r=parseFloat(n)>parseFloat(i);return e&&(0==platform.getSetting("vat_label_advanced")||r)?t:window.text.PRODUCT_CATALOG_PRODUCT_PRICE_TAX_NO}})},addConverters:function(){$.views.converters({currency_format:function(t){return window.platform.currency_format(t)},number_format:function(e){var n=String(e),i=-1!==n.indexOf(".")?n.split(".")[1].length:0;return t.platform.number_format(e,i,t.platform.currency.decimal,t.platform.currency.point)}})},addTags:function(){$.views.tags({})}},equalHeight:{init:function(){window.jQuery&&window.jQuery.fn.matchHeight&&(window.jQuery.fn.matchHeight._throttle=64)}}}),t.platform.cart={init:function(){this.dummyCart={CartProduct:[]},"1"===platform.general.isShop&&(platform.general.hasCartItems?this.get((function(e){t.platform.publish("/cart/ready",e)})):t.platform.publish("/cart/ready",this.dummyCart))},get:function(e){var n=this;n.tries=n.tries+1,$.get("/json/cart?lastCache"+(t.platform.settings.hasOwnProperty("cartLastCache")?"="+t.platform.settings.cartLastCache:"")).done((function(t){n.data=t||n.dummyCart,$.extend(n,n.data),e(n.data)})).fail((function(){n.tries<3?n.get(e):(n.data=n.dummyCart,e(n.data))}))},action:function(e,n){var i=this;n=n||{},$.post("/actions/cart/"+e,n&&n.data).setRequestHeader("HTTP_X_REQUESTED_WITH","xmlhttprequest").done((function(e){t.platform.settings.cartLastCache=Date.now(),i.get((function(t){platform.cart.data=t,n.then&&n.then(e)}))})).fail((function(t){n.fail&&n.fail()}))}},$((function(){t.platform.fancybox.init(),t.platform.cookieBox.init(),t.platform.paymentOptions.init(),t.platform.formSpamCheck.init(),t.platform.render.init(),t.platform.equalHeight.init(),t.platform.cart.init(),t.platform.publish("/platform/ready"),$.ajaxSetup({headers:{"X-CSRF-TOKEN":$('meta[name="csrf_token"]').attr("content")}});var e=$("input[type=date]");e.length&&!Modernizr.inputtypes.date&&$.each(e,(function(){!function(t){var e={field:t,firstDay:1,keyboardInput:!1,onSelect:function(e){var n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate(),o=[n,i<10?"0"+i:i,r<10?"0"+r:r].join("-");t.value=o},i18n:{previousMonth:window.text.PREVIOUS,nextMonth:window.text.NEXT,months:i.months,weekdays:i.weekdays,weekdaysShort:i.weekdaysShort}},n=$(t).attr("min");if(n&&(e.minDate=new Date(n)),Date){var r=new Date;e.yearRange=[r.getFullYear()-100,r.getFullYear()+1]}new Pikaday(e)}(this)})),"rgb(255, 255, 255)"!=$(".pika-single").css("background-color")&&$(document.head).prepend("<style>.pika-single{background-color:#fff;padding:0.5em;box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);}</style>")}))}(jQuery,window),function($,t,e){"use strict";var n=null,i=null,r=null,o=null;function a(t){"reply"==t.data.blog?r.removeClass("is-hidden"):r.addClass("is-hidden"),o.val(t.data.parentid),n.detach().appendTo(t.data.parent),t.preventDefault()}$((function(){n=$("[data-blog=form]"),o=n.find("[name='comment_parent']"),i=n.parent(".form-wrap"),$("[data-blog=reply]").each((function(){var t=$(this),e=t.data(),n=t.parents(".media-body");t.on("click",$.extend({parent:n},e),a)})),(r=$("[data-blog=reply-post]")).on("click",$.extend({parent:i},r.data()),a)}))}(jQuery,document),function($){var t=function(t){var e=t.find("[data-js=m-newsletter-spam-check]");e.length&&(e.css("display","none"),t.one("click",(function(){e.slideDown()})))};$((function(){var e=$("[data-js=w-newsletter-signup]");e.length&&$.each(e,(function(){new t($(this))}))}))}(jQuery),function($){"use strict";$((function(){var t;(t=$("#m-form")).length>0&&t.find('[data-form="validate"]').on("change",'input[type="checkbox"]',(function(t){var e=$(this),n=e.parents('[data-form="validate"]').find('input[type="checkbox"]').not(this);e.prop("required",!n.filter(":checked").length),n.not(":checked").prop("required",!n.filter(":checked").length&&!e.prop("checked"))}))}))}(jQuery,window),function($,t){"use strict";var e="[data-product='count']",n="[data-product='add']",i="[data-product='subtract']",r=function(t){this.$input=$(t),this.$parent=$(t).parent(),this.$btn_add=this.$parent.find(n),this.$btn_sub=this.$parent.find(i),this.$btn_add.on("click",{event:"add"},$.proxy(this.changeAmount,this)),this.$btn_sub.on("click",{event:"subtract"},$.proxy(this.changeAmount,this))};r.prototype={changeAmount:function(t){var e=parseInt(this.$input.val(),10),n={event:t.data.event,product:this};this.$input.is(":disabled")||isNaN(e)||(this.minAmount=parseInt(this.$input.data("productMinamount"),10),"add"===t.data.event&&this.handleAdd(n,e),"subtract"===t.data.event&&0!==e&&this.handleSub(n,e))},handleAdd:function(t,e){t.oldValue=e,t.value=0===e&&this.minAmount>1?e+this.minAmount:e+1,this.$input.val(t.value)},handleSub:function(t,e){t.oldValue=e,t.value=0===e||e===this.minAmount?0:e-1,this.$input.val(t.value)}},$((function(){$(e).each((function(){$(this).data("product",new r(this))}))}))}(jQuery,window),function($,t,e){"use strict";var n={init:function(t){var e=this;this.initVariantType=$.proxy(this.initVariantType,this),this.el=t,$.templates||"function"==typeof $.templates?(e.$buyBtns=$("[data-controller='buy'][name='cartadd'][type='submit']"),e.$wishlistBtn=$("[data-controller='wishlist']"),e.$preselect=$("[data-controller='preselect']"),e.$paymentOptions=this.el.find(".option"),e.handleSelect=$.proxy(e.handleSelect,e),e.handleUnselect=$.proxy(e.handleUnselect,e),e.handlePacketSelect=$.proxy(e.handlePacketSelect,e),e.handlePacketUnselect=$.proxy(e.handlePacketUnselect,e),e.handleBuy=$.proxy(e.handleBuy,e),e.handleWishlist=$.proxy(e.handleWishlist,e),window.platform.subscribe("/product/variant/selected",e.handleSelect),window.platform.subscribe("/product/variant/unselected",e.handleUnselect),window.platform.subscribe("/product/packet/selected",e.handlePacketSelect),window.platform.subscribe("/product/packet/unselected",e.handlePacketUnselect),this.initProductType(),this.initPaymentOptions()):s()},initPaymentOptions:function(){if(this.$paymentOptions.length){var t=this.$paymentOptions.find("klarna-placement");t.length&&window.platform.subscribe("/product/selected",(function(e,n){var i=n[0],r=n[1]||null,o=r&&r.Id?r.Prices[0]:i.Prices[0];t.data("purchase_amount",o.PriceMin).attr("data-purchase_amount",o.PriceMin),window.KlarnaOnsiteService=window.KlarnaOnsiteService||[],window.KlarnaOnsiteService.push({eventName:"refresh-placements"})}))}},initProductType:function(){var t=this;window.platform.classes&&window.platform.classes.Product&&"function"==typeof window.platform.classes.Product?(t.product=new window.platform.classes.Product(t.el.data("controller")),t.product.get((function(e){e&&e.Id?(window.platform.product=t.product,window.platform.publish("/product/ready",t.product),t.$preselect.length&&(window.platform.product.VariantDisplayMode="preselect",e.VariantDisplayMode="preselect"),"variant"===e.Type&&(t.initVariantType(e.VariantDisplayMode),t.initImageType(window.platform.settings.shop_product_image_structure)),"packet"===e.Type&&t.initPacketType(),"packet"!==e.Type&&"variant"!==e.Type||(t.$buyBtns.on("click",t.handleBuy),t.$wishlistBtn.on("click",t.handleWishlist)),window.platform.publish("/product/selected",[t.product])):l()}))):l()},initVariantType:function(t){var e=this;if(t)if("function"==typeof $.fn.select2){var n=a(t);window.platform.classes&&window.platform.classes.variant&&"function"==typeof window.platform.classes.variant[n]?(e.productType=new window.platform.classes.variant[n](e.product),e.productType.init()):c("Variant: "+n)}else h();else c("Variant: No type defined / unknown type.")},initImageType:function(t){t="zoom"!==t?"rotation":"zoom",window.platform.classes&&window.platform.classes.image&&"function"==typeof window.platform.classes.image[t]&&(this.image=new window.platform.classes.image[t](this.product))},initPacketType:function(){var t=this;window.platform.classes&&window.platform.classes.Packet&&"function"==typeof window.platform.classes.Packet?(t.productType=new window.platform.classes.Packet(t.product),t.productType.init()):c("Product:Packet")},handleUnselect:function(t){var e=this;e.product.updateUnitTitle(null,!0),e.product.updatePanel(null,!0),e.product.updateInputs(null,!0),e.product.updateDescriptions(null,!0),e.image.unselect()},handleSelect:function(t,e){var n=this,i=e[0];i?(n.product.updateUnitTitle(i),n.product.updatePanel(i),n.product.updateInputs(i),n.product.updateDescriptions(i),n.image.select(i),window.platform.publish("/product/selected",[n.product,i])):u("Variant:"+a(n.product.VariantDisplayMode))},handlePacketUnselect:function(t){this.product.updatePanel(null,!0),this.product.updateInputs(null,!0)},handlePacketSelect:function(t,e){var n=this;if(e[0]){var i=e[0];n.product.updatePacketPanel(i,!1),n.product.updateInputs(i),window.platform.publish("/product/selected",[n.product,i])}else u("Product:Packet")},handleBuy:function(t){var e=this;window.platform.publish("/product/buy",e.product),e.productType.canDoActions()?window.platform.publish("/product/buy/add",e.product):(t.preventDefault(),window.platform.publish("/product/buy/warning",e.product),e.product.showWarning())},handleWishlist:function(t){var e=this;window.platform.publish("/product/wishlist",e.product),e.productType.canDoActions()?window.platform.publish("/product/wishlist/add",e.product):(t.preventDefault(),window.platform.publish("/product/wishlist/warning",e.product),e.product.showWarning())}};$((function(){var t=$("[data-controller]");t.length&&t.data("controller")&&$.isNumeric(t.data("controller"))&&n.init(t)}));var i,r,o;window.platform.publish||(i=window.platform,r={},o=-1,i.subscribe=function(t,e){r[t]||(r[t]=[]);var n=(++o).toString();return r[t].push({token:n,func:e}),n},i.publish=function(t,e){return!!r[t]&&(setTimeout((function(){for(var n=r[t],i=n?n.length:0;i--;)n[i].func(t,e)}),0),!0)},i.unsubscribe=function(t){for(var e in r)if(r[e])for(var n=0,i=r[e].length;n<i;n++)if(r[e][n].token===t)return r[e].splice(n,1),t;return!1});var a=function(t){return t=(t=t.toLowerCase()).replace(" ",""),(t=$.camelCase(t)).charAt(0).toUpperCase()+t.slice(1)},s=function(){throw new Error("\n----------------- \nInitialization aborted: \n\tMissing Javascript template engine (jsRender Template). \n\tType and product initialization terminated. \n-----------------")},l=function(){},c=function(t){throw new Error('\n----------------- \nInitialization aborted: \n\tMissing product type: "'+t+'". \n\tType initialization skipped. \n-----------------')},u=function(){throw new Error("\n----------------- \nRuntime error: \n\tNo item was found. \n\tRuntime terminated. \n-----------------")},h=function(){throw new Error('\n----------------- \nInitialization aborted: \n\tMissing jQuery Select2 plugin.". \n\tType initialization terminated. \n-----------------')};t.platform=t.platform||{},t.platform.productController=t.platform.productController||n}(jQuery,window),function($,t,e){"use strict";var n=function(t){var e=this;e.product=t,e.selectors={wrap:"#template-myRotation-{id}".replace("{id}",t.Id),owl:"#template-myRotation-{id} .owl-carousel".replace("{id}",t.Id),"owl-container":"#template-myRotation-{id} .w-slider-container".replace("{id}",t.Id),thumb:"#slider-{id}".replace("{id}",t.Id),images:'[data-fancybox-group="product"]'},e.$wrap=$(e.selectors.wrap),e.$owl=$(e.selectors.owl),e.$container=$(e.selectors["owl-container"]),e.$thumb=$(e.selectors.thumb),e.$originalContent=e.$container.find(e.selectors.images).clone()};n.prototype={hasElement:function(){var t=this;return t.$wrap.length&&t.$thumb.length&&t.$owl},select:function(t){var e=this,n=(t.FileId,t.FileIds);if(e.owlObject=e.owlObject||e.$container.data("owlCarousel"),e.hasElement()&&(e.$thumb.find("li").css("display","list-item"),e.reset(),n.length)){var i=n.map((function(t){return".item-"+t})).join();e.removeItems(),e.$originalContent.each((function(){var t=$(this);t.is(i)&&(t=e.lazyOwlReset(t),e.owlObject.addItem(t))}));var r=n.map((function(t){return"[data-fileid='"+t+"']"})).join();e.$thumb.find("img").not(r).parents("li").css("display","none"),e.$thumb.find("li:visible").first().find("img").trigger("click"),platform.fancybox.applyClass(e.selectors.images)}},blankGif:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",lazyOwlReset:function(t){var e=t.find("img");if(e.hasClass("lazyOwl")){var n=-1===e.attr("src").indexOf(this.blankGif)?e.attr("src"):e.data("src");e.attr({src:this.blankGif,"data-src":n})}return t},unselect:function(){var t=this;t.hasElement()&&(t.reset(),t.$thumb.find("li").css("display","inline").first().find("img").trigger("click"))},reset:function(){var t=this;t.removeItems(),t.addItems(t.$originalContent.clone()),t.$thumb.find(".owl-carousel").data("owlCarousel").goTo(0)},removeItems:function(){if(this.owlObject){var t=this;t.$originalContent.each((function(e,n){t.owlObject.removeItem()}))}},addItems:function(t){if(this.owlObject){var e=this;t.each((function(t,n){e.owlObject.addItem(n)}))}}},t.platform=t.platform||{},t.platform.classes=t.platform.classes||{},t.platform.classes.image=t.platform.classes.image||{},t.platform.classes.image.rotation=n}(jQuery,window),function($,t,e){"use strict";var n=function(t){var e=this;e.product=t,e.selectors={wrap:"#template-myCloudZoom-{id}".replace("{id}",t.Id),zoom:"#cloud-{id}".replace("{id}",t.Id),thumb:"#slider-{id}".replace("{id}",t.Id)},e.$wrap=$(e.selectors.wrap),e.$zoom=$(e.selectors.zoom),e.$thumb=$(e.selectors.thumb)};n.prototype={hasElement:function(){return this.$wrap.length&&this.$thumb.length},select:function(t){var e=this,n=t.FileId,i=t.FileIds;if(e.hasElement()){if(e.$thumb.find("li").css("display","list-item"),i.length){var r=i.map((function(t){return"[data-fileid='"+t+"']"})).join();e.$thumb.find("img").not(r).parents("li").css("display","none"),e.$thumb.find("li:visible").first().find("img").trigger("click")}else n>0&&e.$wrap.find("img[data-fileid='"+n+"']").trigger("click");e.$thumb.find(".owl-carousel").data("owlCarousel").goTo(0)}},unselect:function(){var t=this;t.hasElement()&&(t.$thumb.find("li").css("display","inline").first().find("img").trigger("click"),t.$thumb.find(".owl-carousel").data("owlCarousel").goTo(0))}},t.platform=t.platform||{},t.platform.classes=t.platform.classes||{},t.platform.classes.image=t.platform.classes.image||{},t.platform.classes.image.zoom=n}(jQuery,window),function($,t,e){"use strict";var n=function(t){this.id=t,this.tries=0,this.version=20191219,this.API={product:"/json/products/id/{productId}"},this.selectors={unitTitle:"[data-controller='unittitle']",input:"[data-controller='input']",amount:"[data-controller='amount']",panel:"[data-controller='infoPanel']",descriptionShort:"[data-controller='description--short']",description:"[data-controller='description']",descriptionWrap:"[data-controller='description--wrap']",descriptionWrapShort:"[data-controller='description--wrap-short']",tmpl:"#entity-js-infopanel"},this.$input=$(this.selectors.input),this.$amount=$(this.selectors.amount),this.$panel=$(this.selectors.panel),this.$unitTitle=$(this.selectors.unitTitle),this.$descShort=$(this.selectors.descriptionShort),this.$descWrap=$(this.selectors.descriptionWrap),this.$descWrapShort=$(this.selectors.descriptionWrapShort),this.$desc=$(this.selectors.description),this.originalUnitTitle=this.$unitTitle.html(),this.originalPanel=this.$panel.html(),this.descContent=this.$desc.html(),this.descShortContent=this.$descShort.html()};n.prototype={get:function(t){if(this.id){var n=this;n.tries=n.tries+1,$.get(this.API.product.replace("{productId}",this.id)).done((function(i){n.item=i.amount&&i.products?i.products[0]:e,$.extend(n,n.item),t(n.item)})).fail((function(){n.tries<3?n.get(n.id):(n.item=e,t(n.item))}))}},showWarning:function(t){var e=this,n=this.$panel.find(".panel");n.length&&(n.css({"-webkit-transition":"opacity 0.24s ease-in-out","-moz-transition":"opacity 0.24s ease-in-out",transition:"opacity 0.24s ease-in-out"}).removeClass("panel-warning").addClass("panel-danger"),setTimeout((function(){n.removeClass("panel-danger").addClass("panel-warning"),t||e.showWarning(!0)}),600))},updateUnitTitle:function(t,e){var n=this;e?n.$unitTitle.html(n.originalUnitTitle):n.$unitTitle.html(t.UnitTitle)},updatePanel:function(t,e){var n=this,i={},r={};if(n.$panel.length){if(e)return n.$panel.html(n.originalPanel),void n.$panel.removeClass("open");i.product=n,i.selected=t,r.version=this.version,r.hidePrice="discontinued"===window.platform.product.Type||window.platform.product.CallForPrice||!0===window.platform.getSetting("shop_b2b_hidden_prices")&&!window.platform.user,r.hasVat=window.platform.currency.hasVat,r.showPrice=!r.hidePrice&&!!t.Price&&"undefined"!==t.Price.PriceMin,r.staticdomain=window.platform.template.cdn;var o=$.templates(this.selectors.tmpl).render(i,r);n.$panel.html(o),n.$panel.addClass("open")}},updatePacketPanel:function(t,e){var n=this,i={},r={},o="";if(n.$panel.length){if(e)return n.$panel.html(n.originalPanel),void n.$panel.removeClass("open");if(window.platform.getSetting("shop_product_delivery_time"))i.selected=$.extend({},t),o=$.templates("#entity-js-stock").render(i,r);else{var a=$.templates("#entity-packet-selected");if(!a)return void n.$panel.remove();o=a.render(i,r)}n.$panel.html(o).addClass("open")}},updateInputs:function(t,e){var n=this;e?(n.$input.length&&n.$input.val(n.$input.prop("defaultValue")),n.$amount.length&&n.$amount.val(n.$amount.prop("defaultValue"))):(n.$input.length&&n.$input.val(t.Id),n.$amount.length&&n.$amount.val(t.MinAmount))},updateDescriptions:function(t,e){var n,i,r=this;r.$descWrap.length&&r.$descWrap.addClass("is-hidden"),r.$descWrapShort.length&&r.$descWrapShort.addClass("is-hidden"),e?(n=r.descContent,i=r.descShortContent):(n=t.Description&&t.Description.length?t.Description:r.descContent,i=t.DescriptionShort&&t.DescriptionShort.length?t.DescriptionShort:r.descShortContent),r.$desc.length&&r.$desc.html(n),r.$descShort.length&&r.$descShort.html(i),r.$descWrap.length&&n.trim().length&&r.$descWrap.removeClass("is-hidden"),r.$descWrapShort.length&&i.trim().length&&r.$descWrapShort.removeClass("is-hidden")}},t.platform=t.platform||{},t.platform.classes=t.platform.classes||{},t.platform.classes.Product=n}(jQuery,window),function($,t){"use strict";var e="packet",n=function(t){this.packetItems=[],this.product=t};n.prototype={init:function(){var t=this;$("[data-packet]").each((function(){var n=$(this),r={$this:n,product:t.product,type:n.data(e)},o=new i(r);o.init(),t.packetItems.push(o)})),t.hasPicked=$.proxy(t.hasPicked,t),window.platform.subscribe("/product/packetItem/selected",t.hasPicked)},hasPicked:function(t){if(this.areAllPicked()){var e=this.getItem();window.platform.publish("/product/packet/selected",[e])}else window.platform.publish("/product/packet/unselected",[])},areAllPicked:function(){return!_.find(this.packetItems,(function(t){return!t.isPicked()}))},getItem:function(){var t=this,e=this.getLowestStockItem().getStock(),n=t.product.MinAmount,i=t.areAllInStock();return{isPacket:!0,Stock:e,MinAmount:n,InStock:i,DeliveryTimeId:t.product.DeliveryTimeId,DeliveryTimeText:i?t.product.DeliveryTimeTexts.inStock:t.product.DeliveryTimeTexts.notInStock}},areAllInStock:function(){return!_.find(this.packetItems,(function(t){return!t.isInStock()}))},getLowestStockItem:function(){try{var t=null;return this.packetItems.forEach((function(e){(null===t||e.getStock()<t.getStock())&&(t=e)})),t}catch(t){this.packetItems[0]}},canDoActions:function(){return this.areAllPicked()&&(this.product.AllowOutOfStockPurchase||this.areAllInStock())}};var i=function(t){$.extend(this,t),$.extend(this,this.$this.data()),this.item};i.prototype={init:function(){"dropdown"===this.type&&this.initDropdown()},initDropdown:function(){var t=this;t.format=$.proxy(t.format,t),t.$this.show(),t.$this.select2({formatResult:t.format,formatSelection:t.format,formatSearching:function(){return'<img class="spinner" alt src="'+window.platform.template.cdn+'/_design/common/img/ajax-loader-bar.gif">'},minimumResultsForSearch:-1}),t.$this.on("select2-selecting",(function(e){t.item=e.object,window.platform.publish("/product/packetItem/selected",[e.object])}))},format:function(t){var e=$(t.element),n="",i=$.extend({},e.data());if("normal"==i.type&&(n=i.title),"variant"==i.type){for(var r=[],o=0;o<i.variant.length;o++)r.push(this.getGfx(i.variant[o])+" "+i.variant[o].Title);n=i.title+r.join(" / ")}return t.disabled&&(n+='<i class="panel-danger" style="background-color:transparent;"> - '+window.text.SOLD_OUT+"</i>"),n},getGfx:function(t){var e;return t.Color?(e="color:#"+t.Color+";",t.Color&&"ffffff"===t.Color.toLowerCase()&&(e+=";border-radius:3px;border:1px solid #888;"),"<span class='fa fa-square' style='{{color}}'></span> ".replace("{{color}}",e)):""},isPicked:function(){var t=this.type+"IsPicked";return"function"==typeof this[t]&&this[t]()},normalIsPicked:function(){return!0},dropdownIsPicked:function(){return""!==this.$this.val()},isInStock:function(){var t=this.type+"IsInStock";return"function"==typeof this[t]&&this[t]()},normalIsInStock:function(){return!this.disabled&&0<this.normalGetStock()},dropdownIsInStock:function(){return!$(this.item.element).data().disabled&&0<this.dropdownGetStock()},getStock:function(){var t=this.type+"GetStock";return"function"==typeof this[t]&&this[t]()},normalGetStock:function(){return parseInt(parseInt(this.stock,10)/parseInt(this.packetamount,10))},dropdownGetStock:function(){var t=$(this.item.element).data();return parseInt(parseInt(t.stock,10)/parseInt(t.packetamount,10))}},t.platform=t.platform||{},t.platform.classes=t.platform.classes||{},t.platform.classes.Packet=n}(jQuery,window),function($,t){"use strict";var e=function(t){this.$element=t,this.data=$.extend({},t.data()),this.type=t.data("reviewsType"),this.endpoint="/actions/review/product",this.data.hints=this.data.hints.replace(/'/gi,"").split(","),this[this.type]&&this[this.type]()};e.prototype.quickrating=function(){var t=this.data.readonly,e=this.data.noratedmsg;this.raty=this.data,delete this.raty.readonly,delete this.raty.noratedmsg,this.raty.readOnly=t,this.raty.noRatedMsg=e,this.raty.readOnly||(this.raty.click=$.proxy(this.handleClick,this)),this.$element.raty(this.raty)},e.prototype.handleClick=function(t,e){this.$element.raty("readOnly",!0),$.post(this.endpoint,{score:t,product_id:this.data.productid,user_id:this.data.userId?this.data.userId:0,name:this.data.name,type:"ajax"})},e.prototype.commentshow=function(){var t=this.data,e=t.readonly,n=t.noratedmsg;delete t.readonly,delete t.noratedmsg,t.readOnly=e,t.noRatedMsg=n,this.$element.raty(t)},e.prototype.commentrate=function(){var t=this.data,e=t.readonly,n=t.noratedmsg;delete t.readonly,delete t.noratedmsg,t.readOnly=e,t.noRatedMsg=n,this.$element.raty(t)};var n=function(t){var e=t.href.replace(t.baseURI,""),n=$("[data-target='"+e+"']");n.length&&$(t).on("click",(function(){$("body, html").animate({scrollTop:n.offset().top},400)}))};$((function(){if("function"==typeof $.fn.raty){var t=$("a[href*='#tabs-pane']");t.length&&t.each((function(){new n(this)}));var i=$("[data-reviews='stars']");i.length&&i.each((function(){new e($(this))}))}}))}(jQuery,window),function($,t,e){"use strict";var n=function(t){this.API={types:"/json/productvariants/types/{productId}",typesData:"/json/productvariants/types/{productId}?fields=data",datas:"/json/productvariants/data/{productId}",typeData:"/json/productvariants/data/{productId}?typeId={typeId}",typeDatas:"/json/productvariants/data/{productId}",variant:"/json/productvariants/{productId}"},this.variantTypes=[],this.hasVariant=!1,this.product=t,this.tries=0};n.prototype={init:function(){var t=this;return $("[data-variantType='buttons']").each((function(e){var n=$(this),r={$this:n,productId:t.product.Id,id:n.data("varianttypeid")},o=new i(r);o.init(),t.variantTypes.push(o)})),t.handleVariantDataUpdate=$.proxy(t.handleVariantDataUpdate,t),window.platform.subscribe("/variant/variantData/selected",t.handleVariantDataUpdate),window.platform.subscribe("/variant/variantData/unselected",t.handleVariantDataUpdate),$("html").hasClass("ielt9")&&t.addListener(),t},addListener:function(){$(".m-product-variants.m-buttons").find("label").on("click",(function(t){var e=$(this),n=e.prop("for");""!==n&&e.parents(".input-group").find("#"+n).trigger("click"),t.preventDefault(),t.stopPropagation()}))},handleVariantDataUpdate:function(t,n){var i=this,r=i.getSelectedVariantDatas();r.count===i.variantTypes.length?i.getVariant(r,(function(t){t&&t.Id?(i.hasVariant=!0,i.variant=t,window.platform.publish("/product/variant/selected",[i.variant])):(i.hasVariant=!1,i.variant=e,window.platform.publish("/product/variant/unselected"))})):(i.updateVariantTypes(r),i.hasVariant=!1,i.variant=e,window.platform.publish("/product/variant/unselected"))},getSelectedVariantDatas:function(){for(var t=this,e={},n=0,i=t.variantTypes.length-1;i>=0;i--)t.variantTypes[i].hasVariantData()&&(e[t.variantTypes[i].id]={dataId:t.variantTypes[i].getDataId()},n++);return e.count=n,e},updateVariantTypes:function(t){for(var e=this.variantTypes.length-1;e>=0;e--)this.variantTypes[e].updateVariantDatas(t)},getVariant:function(t,n){var i=this;"function"==typeof n&&(i.tries=i.tries+1,$.get(this.API.variant.replace("{productId}",i.product.Id),{dataIds:i.getDataIds(t)}).done((function(t){i.item=t.count?t.data[0]:e,$.extend(i,i.item),n(i.item)})).fail((function(){i.tries<3?i.getVariant(t,n):(i.item=e,n(i.item))})))},getDataIds:function(t){return _.map(_.filter(t,"dataId"),"dataId").join(",")},canDoActions:function(){var t=this;return t.hasVariant&&t.variant&&(t.variant.Stock>=t.variant.MinAmount||t.variant.Stock<t.variant.MinAmount&&t.variant.AllowOutOfStockPurchase)}};var i=function(t){this.API={typeDatas:"/json/productvariants/data/{productId}?typeId={typeId}"},this.variantDatas=[],this.tries=0,$.extend(this,t)};i.prototype={init:function(){var t=this;t.$this.find("[data-variantData='buttons']").each((function(e){var n=$(this),i={$this:n,productId:t.productId,id:n.data("variantdataid"),variantTypeId:t.id},o=new r(i);o.init(),t.variantDatas.push(o)}))},hasVariantData:function(){for(var t=this,e=!1,n=t.variantDatas.length-1;n>=0;n--)if(t.variantDatas[n].isSelected()){t.dataId=t.variantDatas[n].id,e=!0;break}return!1===e&&delete t.dataId,e},getDataId:function(){return this.dataId},updateVariantDatas:function(t){for(var e=this,n=e.variantDatas.length-1;n>=0;n--)e.variantDatas[n].disable(t),e.variantDatas[n].hide(t);e.getVariantDataIds(t,(function(t){for(var n=e.variantDatas.length-1;n>=0;n--)e.variantDatas[n].enable(t)}))},getVariantDataIds:function(t,n){var i=this;"function"==typeof n&&(i.tries=i.tries+1,$.get(this.API.typeDatas.replace("{productId}",i.productId).replace("{typeId}",i.id),{dataIds:i.getDataIds(t)}).done((function(t){n(t)})).fail((function(){i.tries<3?i.getVariantDataIds(t,n):n(e)})))},getDataIds:function(t){return _.map(_.filter(t,"dataId"),"dataId").join(",")}};var r=function(t){this.hasVariantData=!1,$.extend(this,t)};r.prototype={init:function(){var t=this;t.$checkbox=t.$this.find("input[type='checkbox']"),t.$inputGroup=t.$this.find(".input-group"),t.$checkbox.on("change",(function(e){t.$checkbox.is(":disabled")||(t.$checkbox.is(":checked")?(window.platform.publish("/variant/variantData/unselect",[t.variantTypeId,t.id]),window.platform.publish("/variant/variantData/selected",[t.variantTypeId,t.id]),t.show()):window.platform.publish("/variant/variantData/unselected",[t.variantTypeId,t.id]))})),t.unselect=$.proxy(t.unselect,t),window.platform.subscribe("/variant/variantData/unselect",t.unselect)},unselect:function(t,e){var n=this;n.variantTypeId==e[0]&&n.id!==e[1]&&(n.$checkbox.prop("checked",!1),n.hide(null,!0))},hide:function(t,e){var n=this;t&&t[n.variantTypeId]&&t[n.variantTypeId].dataId===n.id&&!e||n.$checkbox.hide()},show:function(){this.$checkbox.show()},disable:function(){this.$inputGroup.addClass("is-disabled"),this.$checkbox.addClass("is-disabled").prop("disabled",!0)},enable:function(t){var e=this;_.isEmpty(_.filter(t,{Id:e.id}))&&!_.isEmpty(t)||(e.$inputGroup.removeClass("is-disabled"),e.$checkbox.removeClass("is-disabled").prop("disabled",!1))},isSelected:function(){return this.$checkbox.is(":checked")}},t.platform=t.platform||{},t.platform.classes=t.platform.classes||{},t.platform.classes.variant=t.platform.classes.variant||{},t.platform.classes.variant.Buttons=n}(jQuery,window),function($,t,e){"use strict";var n=function(t){this.API={types:"/json/productvariants/types/{productId}",typesData:"/json/productvariants/types/{productId}?fields=data",datas:"/json/productvariants/data/{productId}",typeData:"/json/productvariants/data/{productId}?typeId={typeId}",typeDatas:"/json/productvariants/data/{productId}",variant:"/json/productvariants/{productId}"},this.variantTypes=[],this.hasVariant=!1,this.product=t,this.tries=0};n.prototype={init:function(){var t=this,e=$("[data-variantType='dropdown']");e.each((function(n){var r=$(this),o={$this:r,first:0===n,last:n===e.length-1,productId:t.product.Id,id:r.data("varianttypeid"),title:_.filter(t.product.VariantTypes,{Id:r.data("varianttypeid")})[0].Title,variant:t},a=new i(o);a.init(),t.variantTypes.push(a)})),t.handleVariantDataSelected=$.proxy(t.handleVariantDataSelected,t),window.platform.subscribe("/variant/variantType/selected",t.handleVariantDataSelected)},handleVariantDataSelected:function(t,n){var i=this;n[3]?i.getVariant((function(t){t&&t.Id?(i.hasVariant=!0,i.variant=t,window.platform.publish("/product/variant/selected",[i.variant])):(i.hasVariant=!1,i.variant=e,window.platform.publish("/product/variant/unselected"))})):(i.UpdateVariantTypes(n[0]),i.hasVariant=!1,i.variant=e,window.platform.publish("/product/variant/unselected"))},getSearchTerms:function(t,e){if(e)return"";var n=_.findIndex(this.variantTypes,(function(e){return e.id==t})),i=this.variantTypes.slice(0,n),r=[];return $.each(i,(function(){r.push(this.dataId)})),r.join(",")},UpdateVariantTypes:function(t){var e=this;$.each(e.variantTypes,(function(t){this.enable()}));var n=_.findIndex(e.variantTypes,(function(e){return e.id==t}));$.each(e.variantTypes.slice(n+1),(function(t){0==t?this.disable(!0):this.disable()}))},getDataIds:function(){return _.map(_.filter(this.variantTypes,"dataId"),"dataId").join(",")},getVariant:function(t){var n=this;"function"==typeof t&&(n.tries=n.tries+1,$.get(this.API.variant.replace("{productId}",n.product.Id),{dataIds:n.getDataIds()}).done((function(i){n.item=i.count?i.data[0]:e,$.extend(n,n.item),t(n.item)})).fail((function(){n.tries<3?n.getVariant(t):(n.item=e,t(n.item))})))},canDoActions:function(){var t=this;return t.hasVariant&&t.variant&&(t.variant.Stock>=t.variant.MinAmount||t.variant.Stock<t.variant.MinAmount&&t.variant.AllowOutOfStockPurchase)}};var i=function(t){this.API={typeDatas:"/json/productvariants/data/{productId}"},$.extend(this,t)};i.prototype={init:function(){var t=this;return t.$this.select2({id:"Id",placeholder:window.text.CHOOSE_VARIANT+" "+t.title,minimumResultsForSearch:-1,ajax:{url:t.API.typeDatas.replace("{productId}",t.productId),dataType:"json",cache:!1,results:function(t,e){return{results:t}},data:function(){var e={typeId:t.id},n=t.variant.getSearchTerms(t.id,t.first);return n&&(e.dataIds=n),e}},formatResult:function(e){return'<div class="row"><div class="col-s-4 col-m-12 col-l-12 col-xl-24">{{gfx}}{{title}}{{soldout}}</div></div>'.replace("{{title}}",t.getTitle(e)).replace("{{gfx}}",t.getGfx(e)).replace("{{soldout}}",t.getSoldout(e))},formatSelection:function(e){return"<div>{{gfx}}{{title}}</div>".replace("{{title}}",t.getTitle(e)).replace("{{gfx}}",t.getGfx(e))},formatSearching:function(){return'<img class="spinner" alt src="'+window.platform.template.cdn+'/_design/common/img/ajax-loader-bar.gif">'}}),this.first||t.disable(),t.$this.on("select2-selecting",{id:t.id},(function(e){t.dataId=e.val,window.platform.publish("/variant/variantType/selected",[t.id,t.dataId,t.first,t.last])})),t},getGfx:function(t){var e;return t.Color?(e="color:#"+t.Color+";",t.Color&&"ffffff"===t.Color.toLowerCase()&&(e+=";border-radius:3px;border:1px solid #888;"),"<span class='fa fa-square' style='{{color}}'></span> ".replace("{{color}}",e)):""},getTitle:function(t){return t.Title},getSoldout:function(t){return t.disabled&&!t.AllowOutOfStockPurchase?'<span class="pull-right">'+window.text.SOLD_OUT+"</span>":""},enable:function(){this.$this.select2("enable",!0)},disable:function(t){var e=this;e.$this.select2("val",""),t||(e.dataId=null,e.first||e.$this.select2("enable",!1))}},t.platform=t.platform||{},t.platform.classes=t.platform.classes||{},t.platform.classes.variant=t.platform.classes.variant||{},t.platform.classes.variant.Dropdown=n}(jQuery,window),function($,t,e){"use strict";var n=function(t){this.API={types:"/json/productvariants/types/{productId}",typesData:"/json/productvariants/types/{productId}?fields=data",datas:"/json/productvariants/data/{productId}",typeData:"/json/productvariants/data/{productId}?typeId={typeId}",typeDatas:"/json/productvariants/data/{productId}",variant:"/json/productvariants/{productId}"},this.variantTypes=[],this.hasVariant=!1,this.product=t,this.tries=0};n.prototype={init:function(){var t=this;$("[data-variantType='orderlist-dropdown']").each((function(e){var n={$this:$(this),product:t.product},r=new i(n);r.init(),t.variantTypes.push(r)})),t.handleVariantSelected=$.proxy(t.handleVariantSelected,t),window.platform.subscribe("/variant/variantType/selected",t.handleVariantSelected)},handleVariantSelected:function(t,e){var n=this;if(e[0]&&e[0].Id){var i=e[0];n.hasVariant=!0,n.variant=i,n.updateInput(!0),window.platform.publish("/product/variant/selected",[n.variant])}else n.hasVariant=!1,n.variant=undefined,n.updateInput(!1),window.platform.publish("/product/variant/unselected")},canDoActions:function(){var t=this;return t.hasVariant&&t.variant&&(t.variant.Stock>=t.variant.MinAmount||t.variant.Stock<t.variant.MinAmount&&t.variant.AllowOutOfStockPurchase)},updateInput:function(t){$("[data-product='count']").prop("disabled",!t)}};var i=function(t){this.API={variants:"/json/productvariants/{productId}"},$.extend(this,t)};i.prototype={init:function(){var t=this;return t.$this.select2({id:"Id",placeholder:window.text.PRODUCT_CATALOG_PRODUCT_CHOOSE_VARIANT,minimumResultsForSearch:-1,ajax:{url:t.API.variants.replace("{productId}",t.product.Id),dataType:"json",results:function(e,n){return t.types=e.data,{results:e.data}}},formatResult:function(e){return'<div class="row">{{title}}{{price}}</div><hr class="seperator is-visible-s">'.replace("{{title}}",t.getTitle(e)).replace("{{price}}",t.getPrice(e)).replace("{{stock}}",t.getStock(e))},formatSelection:function(e){return"<div>"+t.getSimpleTitle(e)+"</div>"},formatSearching:function(){return'<img class="spinner" alt src="'+window.platform.template.cdn+'/_design/common/img/ajax-loader-bar.gif">'}}),t.$this.on("select2-selecting",{id:t.id},(function(t){window.platform.publish("/variant/variantType/selected",[t.object])})),t},getGfx:function(t){var e;return t[2]?(e="color:#"+t[2]+";",t[2]&&"ffffff"===t[2].toLowerCase()&&(e+=";border-radius:3px;border:1px solid #888;"),"<span class='fa fa-square' style='{{color}}'></span> ".replace("{{color}}",e)):""},getPrice:function(t){var e="";return!("discontinued"===window.platform.product.Type||window.platform.product.CallForPrice||!0===window.platform.getSetting("shop_b2b_hidden_prices")&&!window.platform.user)&&!!t.Price&&"undefined"!==t.Price.PriceMin&&(this.product.CallForPrice?e=window.text.PRODUCT_CATALOG_CALL_FOR_PRICE:(e+=window.platform.currency_format(t.Price.PriceMin),e+=this.getMinAmount(t))),'<div class="col-s-4 col-m-6 col-l-6 col-xl-12"><div class="text-right">{{price}}</div><div class="text-right">{{stock}}<div></div>'.replace("{{price}}",e)},getStock:function(t){var e,n,i="",r="",o='<span class="is-block text-right {{class}}" style="background-color: transparent;">{{icon}} {{stock}} {{text}}</span>';return t.disabled?o.replace("{{icon}}","").replace("{{stock}}","").replace("{{text}}",window.text.SOLD_OUT).replace("{{class}}","panel-danger"):window.platform.getSetting("shop_product_delivery_time")?("texticon"===window.platform.getSetting("shop_product_delivery_time")&&(i=t.Stock>=t.MinAmount?'<i class="fa fa-fw fa-check"></i>':'<i class="fa fa-fw fa-clock-o"></i>'),0==t.DeliveryTimeId&&(r=t.Stock+" "+t.UnitTitle),n=t.Stock>=t.MinAmount?"panel-success":"panel-danger",e=t.DeliveryTimeText,o.replace("{{icon}}",i).replace("{{stock}}",r).replace("{{text}}",e).replace("{{class}}",n)):""},getSimpleTitle:function(t){for(var e="",n=0;n<t.TitleCombination.length;n++){var i=t.TitleCombination[n];e+=this.getGfx(i)+" "}return"<div>{{colors}} {{title}}</div>".replace("{{colors}}",e).replace("{{title}}",t.Title)},getTitle:function(t){for(var e="",n=0;n<t.TitleCombination.length;n++){var i=t.TitleCombination[n];e+="<div>{{title}}: {{color}}{{data}}</div>".replace("{{title}}",i[0]).replace("{{color}}",this.getGfx(i)).replace("{{data}}",i[1])}return'<div class="col-s-4 col-m-6 col-l-6 col-xl-12">{{titles}}{{minBuy}}</div>'.replace("{{titles}}",e).replace("{{minBuy}}",this.getMinimumBuy(t))},getMinimumBuy:function(t){return t.MinAmount>1?" <small class='is-block'>"+window.text.MINIMUM_BUY+" "+t.MinAmount+" "+t.UnitTitle+"</smalL>":""},getMinAmount:function(t){return t.MinAmount>1?" <small class='is-block'>"+window.text.PRODUCT_CATALOG_PRICE_FOR+" "+t.MinAmount+" "+t.UnitTitle+"</smalL>":""},enable:function(){this.$this.select2("enable",!0)},disable:function(t){var e=this;e.$this.select2("val",""),t||(e.dataId=null,e.first||e.$this.select2("enable",!1))}},t.platform=t.platform||{},t.platform.classes=t.platform.classes||{},t.platform.classes.variant=t.platform.classes.variant||{},t.platform.classes.variant.OrderlistDropdown=n}(jQuery,window),function($,t,e){"use strict";var n=function(t){this.product=t};n.prototype={init:function(){},canDoActions:function(){return!0}},t.platform=t.platform||{},t.platform.classes=t.platform.classes||{},t.platform.classes.variant=t.platform.classes.variant||{},t.platform.classes.variant.Orderlist=n}(jQuery,window),function($,t,e){"use strict";var n=function(t){this.API={variant:"/json/productvariants/{productId}"},this.product=t,this.hasVariant=!1,this.variant=null};n.prototype={init:function(){var t=this,n=$("[data-variantType='preselect']").data("variantId");n&&t.getVariant(n,(function(n){n!==e&&(t.hasVariant=!0,t.variant=n,t.handleSelected(t.variant))}))},getVariant:function(t,n){var i=this;"function"==typeof n&&(i.tries=i.tries+1,$.get(this.API.variant.replace("{productId}",i.product.Id)).done((function(e){e.count&&_.forEach(e.data,(function(e){if(e.Id==t)return i.item=e,!1})),$.extend(i,i.item),n(i.item)})).fail((function(){i.item=e,n(i.item)})))},handleSelected:function(t){window.platform.publish("/product/variant/selected",[t])},canDoActions:function(){var t=this;return t.hasVariant&&t.variant&&(t.variant.Stock>=t.variant.MinAmount||t.variant.Stock<t.variant.MinAmount&&t.variant.AllowOutOfStockPurchase)}},t.platform=t.platform||{},t.platform.classes=t.platform.classes||{},t.platform.classes.variant=t.platform.classes.variant||{},t.platform.classes.variant.Preselect=n}(jQuery,window),function($){"use strict";$((function(){!function(){var t=$("#m-usercreate");if(t.length>0){var e=function(e){$(".state-group",t).addClass("is-hidden"),$(".state-select",t).each((function(){$(this).prop("disabled",!0)}));var n=$("#m-usercreate-country"),i=n.is('[type="hidden"]')?n:n.find(":selected");i.data("hasStates")>0&&$(".state-group-"+i.val(),t).removeClass("is-hidden").find("select").prop("disabled",!1)};$("#m-usercreate-country",t).on("change input",e),e(),$("#m-usercreate-zipcode",t).SmartForm("county",{target:"#m-usercreate-city",country:"#m-usercreate-country"}),$("#m-usercreate-country",t).SmartForm("countrycode",{target:function(e){$("input.countryCode",t).val(e),$("span.countryCode",t).html("+"+e)}}),$("#m-usercreate-newsletter",t).on("change",(function(e){$("#m-usercreate-newsletterfields",t).toggleClass("is-hidden")}))}}()}))}(jQuery,window),function($){"use strict";$((function(){!function(){var t=$("#m-useredit"),e=t.find("#deliveryContactInfoContainer"),n=$(".m-userremove[data-userdelete='panel']");if(t.length>0){var i=function(e){$(".state-group",t).addClass("is-hidden"),$(".state-select",t).each((function(){$(this).prop("disabled",!0)}));var n=$("#m-useredit-country"),i=n.is('[type="hidden"]')?n:n.find(":selected");i.data("hasStates")>0&&$(".state-group-"+i.val(),t).removeClass("is-hidden").find("select").prop("disabled",!1)};$("#m-useredit-country",t).on("change input",i),i(),$("#m-useredit-zipcode",t).SmartForm("county",{target:"#m-useredit-city",country:"#m-useredit-country"}),$("#m-useredit-country",t).SmartForm("countrycode",{target:function(e){$("input.countryCode",t).val(e),$("span.countryCode",t).html("+"+e)}}),$("#deliveryActive").on("change",(function(t){$(".deliveryContactInfo").slideToggle(),$(this).is(":checked")?$(".deliveryContactInfo input").attr("disabled",!1):$(".deliveryContactInfo input").attr("disabled",!$(this).is(":checked"))})),$("#m-useredit-newsletter",t).on("change",(function(e){$("#m-useredit-newsletterfields",t).toggleClass("is-hidden")}))}if(e.length>0){e.removeClass("is-hidden"),$("#deliveryActive").is(":checked")&&($(".deliveryContactInfo").slideToggle(),$(".deliveryContactInfo input").attr("disabled",!1));var r=$("#m-useredit-del-country",e),o=function(t){$(".del-state-group",e).addClass("is-hidden"),$(".del-state-select",e).each((function(){$(this).prop("disabled",!0)}));var n=r.is('[type="hidden"]')?r:r.find(":selected");n.data("hasStates")>0&&$(".del-state-group-"+n.val(),e).removeClass("is-hidden").find("select").prop("disabled",!1)};r.on("change input",o),o(),$("#deliveryZipcode",e).SmartForm("county",{target:"#deliveryCity",country:"#m-useredit-del-country"})}if(n.length){var a=n.find('[data-userdelete="confirm"]'),s=n.find("[data-userdelete='description']"),l=n.find("[data-userdelete='button']"),c=n.find("[data-userdelete='cancel']");a.length&&s.length&&l.length&&c&&(n.removeClass("is-hidden"),l.on("click",(function(t){var e=$(this);e.is("[type='button']")&&(t.preventDefault(),e.attr("type","submit").text(text.CONFIRM).removeClass("button").removeClass("small").addClass("button-primary"),a.removeClass("is-hidden"))})),c.on("click",(function(t){$(this),t.preventDefault(),a.addClass("is-hidden"),l.attr("type","button").text(text.DELETE).removeClass("button-primary").addClass("small").addClass("button")})))}}()}))}(jQuery,window),function($){"use strict";$((function(){!function(){var t=$("#m-userrequest");if(t.length>0){var e=function(e){$(".state-group",t).addClass("is-hidden"),$("#m-userrequest-city").val(""),$(".state-select",t).each((function(){$(this).prop("disabled",!0)}));var n=$("#m-userrequest-country"),i=n.is('[type="hidden"]')?n:n.find(":selected");i.data("hasStates")>0&&$(".state-group-"+i.val(),t).removeClass("is-hidden").find("select").prop("disabled",!1)};$("#m-userrequest-country",t).on("change input",e),e(),$("#m-userrequest-zipcode",t).SmartForm("county",{target:"#m-userrequest-city"}),$("#m-userrequest-country",t).SmartForm("countrycode",{target:function(e){$("input.countryCode",t).val(e),$("span.countryCode",t).html("+"+e)}}),$("#m-userrequest-newsletter",t).on("change",(function(e){$("#m-userrequest-newsletterfields",t).toggleClass("is-hidden")}))}}()}))}(jQuery,window),function($,t,e){"use strict";var n=function(t){this.$element=$(t),this.options=function(t){var e=function(e,n){if(t.single)return!1;$.isArray(e)&&(n.itemsCustom=e)},i={_makeClass:function(t){return"."!==t.substring(0,1)&&"#"!==t.substring(0,1)&&(t="."+t),t},_makeStr:function(t){return"."!=t.substring(0,1)&&"#"!=t.substring(0,1)||(t=t.substring(1)),t},next:function(t,e){e.next=this._makeClass(t)},prev:function(t,e){e.prev=this._makeClass(t)},stop:function(t,e){e.stop=this._makeClass(t)},play:function(t,e){e.play=this._makeClass(t)},nav:function(t,e){e.navigation=Boolean(t)},navText:function(t,e){if(!1!==t){for(var n=t.split(","),i=n.length-1;i>=0;i--)n[i]=n[i].trim();e.navigationText=n}else e.navigationText=!1},pagination:function(t,e){e.pagination=Boolean(t)},theme:function(t,e){e.theme=this._makeStr(t)},style:function(t,e){e.transitionStyle=t},slideSpeed:function(t,e){e.slideSpeed=parseInt(t,10)},slider:function(t,e,n){e.singleItem="single"===t,"multiple"!==t||e.itemsCustom||n.xlItems||n.lItems||n.mItems||n.sItems||(e.itemsCustom=[[window.template.bp.s,2],[window.template.bp.m,4],[window.template.bp.l,6],[window.template.bp.xl,8]])},itemscustom:e,itemsCustom:e,xlItems:function(e,n){if(t.single)return!1;n.itemsCustom=n.itemsCustom||[],n.itemsCustom.push([window.template.bp.xl,parseInt(e,10)])},lItems:function(e,n){if(t.single)return!1;n.itemsCustom=n.itemsCustom||[],n.itemsCustom.push([window.template.bp.l,parseInt(e,10)])},mItems:function(e,n){if(t.single)return!1;n.itemsCustom=n.itemsCustom||[],n.itemsCustom.push([window.template.bp.m,parseInt(e,10)])},sItems:function(e,n){if(t.single)return!1;n.itemsCustom=n.itemsCustom||[],n.itemsCustom.push([0,parseInt(e,10)])},autoplay:function(t,e){e.autoPlay="true"==t||"false"===t?Boolean(t):t},scrollperpage:function(t,e){e.scrollPerPage=Boolean(t)},stoponhover:function(t,e){e.stopOnHover=Boolean(t)},addclassactive:function(t,e){e.addClassActive=this._makeClass(t)},touchdrag:function(t,e){e.touchDrag=Boolean(t)},mousedrag:function(t,e){e.mouseDrag=Boolean(t)}},r={};for(var o in i)void 0!==t[o]&&i[o](t[o],r,t);return $.extend({},n.DEFAULTS,r)}(this.$element.data()),this.$element.data("nav")&&(this.options.afterInit=function(t){var e=this.owlControls.find(".owl-page");this.$owlItems.each((function(t,n){var i=$(n).find(".item").data("fileid");e.eq(t).attr("data-fileid",i)}))}),this.owl=this.$element.owlCarousel(this.options),this.bindNavigation(this.options)};n.DEFAULTS={navigation:!1,navigationText:!1,pagination:!1,theme:"slider-theme",transitionStyle:"fade",slideSpeed:500,singleItem:!0,itemsDesktop:!1,itemsDesktopSmall:!1,itemsTablet:!1,itemsMobile:!1,autoPlay:!0},n.prototype.bindNavigation=function(t){var e=this;for(var n in{play:null,stop:null,next:null,prev:null})t[n]&&$(t[n]).on("click",(function(t){t.preventDefault(),e.owl.trigger("owl."+n)}))},$.fn.slider=function(t){return this.each((function(){var e=$(this),i=e.data("template.slider");i||e.data("template.slider",i=new n(this)),"string"==typeof t&&e.data("owlCarousel")[t](),"array"==typeof t&&"string"==typeof t[0]&&e.data("owlCarousel")[t[0]](t[1])}))},$.fn.slider.Construct=n,$.fn.slider.noConflict=function(){return $.fn.slider=old,this},$(window).on("load",(function(){$('[data-slider="single"], [data-slider="multiple"]').each((function(){var t=$(this);t.slider(t.data())}))}))}(jQuery,document),
/**
 * @license AngularJS v1.8.2
 * (c) 2010-2020 Google LLC. http://angularjs.org
 * License: MIT
 */
function(window){"use strict";var t={objectMaxDepth:5,urlErrorParamsEnabled:!0};function e(e){if(!H(e))return t;N(e.objectMaxDepth)&&(t.objectMaxDepth=n(e.objectMaxDepth)?e.objectMaxDepth:NaN),N(e.urlErrorParamsEnabled)&&Q(e.urlErrorParamsEnabled)&&(t.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function n(t){return U(t)&&t>0}function i(e,n){n=n||Error;var i="https://errors.angularjs.org/1.8.2/",r=i.replace(".","\\.")+"[\\s\\S]*",o=new RegExp(r,"g");return function(){var r,a,s=arguments[0],l=arguments[1],c="["+(e?e+":":"")+s+"] ",u=dt(arguments,2).map((function(e){return Bt(e,t.objectMaxDepth)}));if(c+=l.replace(/\{\d+\}/g,(function(t){var e=+t.slice(1,-1);return e<u.length?u[e].replace(o,""):t})),c+="\n"+i+(e?e+"/":"")+s,t.urlErrorParamsEnabled)for(a=0,r="?";a<u.length;a++,r="&")c+=r+"p"+a+"="+encodeURIComponent(u[a]);return new n(c)}}var r,o,a,s,l=/^\/(.+)\/([a-z]*)$/,c="validity",u=Object.prototype.hasOwnProperty,h=function(t){return F(t)?t.toLowerCase():t},d=function(t){return F(t)?t.toUpperCase():t},p=[].slice,f=[].splice,m=[].push,g=Object.prototype.toString,v=Object.getPrototypeOf,y=i("ng"),b=window.angular||(window.angular={}),w=0;function x(t){if(null==t||K(t))return!1;if(q(t)||F(t)||o&&t instanceof o)return!0;var e="length"in Object(t)&&t.length;return U(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function C(t,e,n){var i,r;if(t)if(G(t))for(i in t)"prototype"!==i&&"length"!==i&&"name"!==i&&t.hasOwnProperty(i)&&e.call(n,t[i],i,t);else if(q(t)||x(t)){var o="object"!=typeof t;for(i=0,r=t.length;i<r;i++)(o||i in t)&&e.call(n,t[i],i,t)}else if(t.forEach&&t.forEach!==C)t.forEach(e,n,t);else if(z(t))for(i in t)e.call(n,t[i],i,t);else if("function"==typeof t.hasOwnProperty)for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t);else for(i in t)u.call(t,i)&&e.call(n,t[i],i,t);return t}function S(t,e,n){for(var i=Object.keys(t).sort(),r=0;r<i.length;r++)e.call(n,t[i[r]],i[r]);return i}function k(t){return function(e,n){t(n,e)}}function T(){return++w}function E(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function A(t,e,n){for(var i=t.$$hashKey,r=0,o=e.length;r<o;++r){var a=e[r];if(H(a)||G(a))for(var s=Object.keys(a),l=0,c=s.length;l<c;l++){var u=s[l],h=a[u];n&&H(h)?B(h)?t[u]=new Date(h.valueOf()):Y(h)?t[u]=new RegExp(h):h.nodeName?t[u]=h.cloneNode(!0):nt(h)?t[u]=h.clone():"__proto__"!==u&&(H(t[u])||(t[u]=q(h)?[]:{}),A(t[u],[h],!0)):t[u]=h}}return E(t,i),t}function O(t){return A(t,p.call(arguments,1),!1)}function _(t){return A(t,p.call(arguments,1),!0)}function P(t){return parseInt(t,10)}r=window.document.documentMode;var I=Number.isNaN||function(t){return t!=t};function D(t,e){return O(Object.create(t),e)}function M(){}function L($){return $}function R(t){return function(){return t}}function j(t){return G(t.toString)&&t.toString!==g}function V(t){return void 0===t}function N(t){return void 0!==t}function H(t){return null!==t&&"object"==typeof t}function z(t){return null!==t&&"object"==typeof t&&!v(t)}function F(t){return"string"==typeof t}function U(t){return"number"==typeof t}function B(t){return"[object Date]"===g.call(t)}function q(t){return Array.isArray(t)||t instanceof Array}function W(t){switch(g.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function G(t){return"function"==typeof t}function Y(t){return"[object RegExp]"===g.call(t)}function K(t){return t&&t.window===t}function X(t){return t&&t.$evalAsync&&t.$watch}function Q(t){return"boolean"==typeof t}function J(t){return t&&G(t.then)}M.$inject=[],L.$inject=[];var Z=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var tt=function(t){return F(t)?t.trim():t},et=function(t){return t.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function nt(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function it(t){return h(t.nodeName||t[0]&&t[0].nodeName)}function rt(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function ot(t,e){var n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function at(t,e,i){var r,o,a=[],s=[];if(i=n(i)?i:NaN,e){if((o=e)&&U(o.length)&&Z.test(g.call(o))||(r=e,"[object ArrayBuffer]"===g.call(r)))throw y("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===e)throw y("cpi","Can't copy! Source and destination are identical.");return q(e)?e.length=0:C(e,(function(t,n){"$$hashKey"!==n&&delete e[n]})),a.push(t),s.push(e),l(t,e,i)}return c(t,i);function l(t,e,n){if(--n<0)return"...";var i,r=e.$$hashKey;if(q(t))for(var o=0,a=t.length;o<a;o++)e.push(c(t[o],n));else if(z(t))for(i in t)e[i]=c(t[i],n);else if(t&&"function"==typeof t.hasOwnProperty)for(i in t)t.hasOwnProperty(i)&&(e[i]=c(t[i],n));else for(i in t)u.call(t,i)&&(e[i]=c(t[i],n));return E(e,r),e}function c(t,e){if(!H(t))return t;var n=a.indexOf(t);if(-1!==n)return s[n];if(K(t)||X(t))throw y("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var i=!1,r=function(t){switch(g.call(t)){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 t.constructor(c(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var n=new RegExp(t.source,t.toString().match(/[^/]*$/)[0]);return n.lastIndex=t.lastIndex,n;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(G(t.cloneNode))return t.cloneNode(!0)}(t);return void 0===r&&(r=q(t)?[]:Object.create(v(t)),i=!0),a.push(t),s.push(r),i?l(t,r,e):r}}function st(t,e){return t===e||t!=t&&e!=e}function lt(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var n,i,r,o=typeof t;if(o===typeof e&&"object"===o){if(!q(t)){if(B(t))return!!B(e)&&st(t.getTime(),e.getTime());if(Y(t))return!!Y(e)&&t.toString()===e.toString();if(X(t)||X(e)||K(t)||K(e)||q(e)||B(e)||Y(e))return!1;for(i in r=Ht(),t)if("$"!==i.charAt(0)&&!G(t[i])){if(!lt(t[i],e[i]))return!1;r[i]=!0}for(i in e)if(!(i in r)&&"$"!==i.charAt(0)&&N(e[i])&&!G(e[i]))return!1;return!0}if(!q(e))return!1;if((n=t.length)===e.length){for(i=0;i<n;i++)if(!lt(t[i],e[i]))return!1;return!0}}return!1}var ct=function(){if(!N(ct.rules)){var t=window.document.querySelector("[ng-csp]")||window.document.querySelector("[data-ng-csp]");if(t){var e=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");ct.rules={noUnsafeEval:!e||-1!==e.indexOf("no-unsafe-eval"),noInlineStyle:!e||-1!==e.indexOf("no-inline-style")}}else ct.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}}return ct.rules},ut=function(){if(N(ut.name_))return ut.name_;var t,e,n,i,r=Tt.length;for(e=0;e<r;++e)if(n=Tt[e],t=window.document.querySelector("["+n.replace(":","\\:")+"jq]")){i=t.getAttribute(n+"jq");break}return ut.name_=i};function ht(t,e,n){return t.concat(p.call(e,n))}function dt(t,e){return p.call(t,e||0)}function pt(t,e){var n=arguments.length>2?dt(arguments,2):[];return!G(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,ht(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function ft(t,e){var n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:K(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":X(e)&&(n="$SCOPE"),n}function mt(t,e){if(!V(t))return U(e)||(e=e?2:null),JSON.stringify(t,ft,e)}function gt(t){return F(t)?JSON.parse(t):t}var vt=/:/g;function yt(t,e){t=t.replace(vt,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return I(n)?e:n}function bt(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function wt(t,e,n){n=n?-1:1;var i=t.getTimezoneOffset();return bt(t,n*(yt(e,i)-i))}function $t(t){t=o(t).clone().empty();var e=o("<div></div>").append(t).html();try{return t[0].nodeType===Ft?h(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+h(e)}))}catch(t){return h(e)}}function xt(t){try{return decodeURIComponent(t)}catch(t){}}function Ct(t){var e={};return C((t||"").split("&"),(function(t){var n,i,r;t&&(i=t=t.replace(/\+/g,"%20"),-1!==(n=t.indexOf("="))&&(i=t.substring(0,n),r=t.substring(n+1)),N(i=xt(i))&&(r=!N(r)||xt(r),u.call(e,i)?q(e[i])?e[i].push(r):e[i]=[e[i],r]:e[i]=r))})),e}function St(t){return kt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function kt(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}var Tt=["ng-","data-ng-","ng:","x-ng-"];var Et=function(t){var e=t.currentScript;if(!e)return!0;if(!(e instanceof window.HTMLScriptElement||e instanceof window.SVGScriptElement))return!1;var n=e.attributes;return[n.getNamedItem("src"),n.getNamedItem("href"),n.getNamedItem("xlink:href")].every((function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(window.document);function At(t,e){var n,i,r={};if(C(Tt,(function(e){var r=e+"app";!n&&t.hasAttribute&&t.hasAttribute(r)&&(n=t,i=t.getAttribute(r))})),C(Tt,(function(e){var r,o=e+"app";!n&&(r=t.querySelector("["+o.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(o))})),n){if(!Et)return void window.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");r.strictDi=null!==function(t,e){var n,i,r=Tt.length;for(i=0;i<r;++i)if(n=Tt[i]+e,F(n=t.getAttribute(n)))return n;return null}(n,"strict-di"),e(n,i?[i]:[],r)}}function Ot(t,e,n){H(n)||(n={});n=O({strictDi:!1},n);var i=function(){if((t=o(t)).injector()){var i=t[0]===window.document?"document":$t(t);throw y("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}(e=e||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),n.debugInfoEnabled&&e.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),e.unshift("ng");var r=Je(e,n.strictDi);return r.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,i){t.$apply((function(){e.data("$injector",i),n(e)(t)}))}]),r},r=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(window&&r.test(window.name)&&(n.debugInfoEnabled=!0,window.name=window.name.replace(r,"")),window&&!a.test(window.name))return i();window.name=window.name.replace(a,""),b.resumeBootstrap=function(t){return C(t,(function(t){e.push(t)})),i()},G(b.resumeDeferredBootstrap)&&b.resumeDeferredBootstrap()}function _t(){window.name="NG_ENABLE_DEBUG_INFO!"+window.name,window.location.reload()}function Pt(t){var e=b.element(t).injector();if(!e)throw y("test","no injector found for element argument to getTestability");return e.get("$$testability")}var It=/[A-Z]/g;function Dt(t,e){return e=e||"_",t.replace(It,(function(t,n){return(n?e:"")+t.toLowerCase()}))}var Mt=!1;function Lt(){pe.legacyXHTMLReplacement=!0}function Rt(t,e,n){if(!t)throw y("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function jt(t,e,n){return n&&q(t)&&(t=t[t.length-1]),Rt(G(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function Vt(t,e){if("hasOwnProperty"===t)throw y("badname","hasOwnProperty is not a valid {0} name",e)}function Nt(t){for(var e,n=t[0],i=t[t.length-1],r=1;n!==i&&(n=n.nextSibling);r++)(e||t[r]!==n)&&(e||(e=o(p.call(t,0,r))),e.push(n));return e||t}function Ht(){return Object.create(null)}function zt(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=!j(t)||q(t)||B(t)?mt(t):t.toString()}return t}var Ft=3;function Ut(t,e){if(q(t)){e=e||[];for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}else if(H(t))for(var r in e=e||{},t)"$"===r.charAt(0)&&"$"===r.charAt(1)||(e[r]=t[r]);return e||t}function Bt(t,e){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):V(t)?"undefined":"string"!=typeof t?function(t,e){var i=[];return n(e)&&(t=b.copy(t,null,e)),JSON.stringify(t,(function(t,e){if(H(e=ft(t,e))){if(i.indexOf(e)>=0)return"...";i.push(e)}return e}))}(t,e):t}var qt={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};pe.expando="ng339";var Wt=pe.cache={},Gt=1;pe._data=function(t){return this.cache[t[this.expando]]||{}};var Yt=/-([a-z])/g,Kt=/^-ms-/,Xt={mouseleave:"mouseout",mouseenter:"mouseover"},Qt=i("jqLite");function Jt(t,e){return e.toUpperCase()}function Zt(t){return t.replace(Yt,Jt)}var te=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ee=/<|&#?\w+;/,ne=/<([\w:-]+)/,ie=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,re={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};re.tbody=re.tfoot=re.colgroup=re.caption=re.thead,re.th=re.td;var oe={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var ae in re){var se=re[ae],le=se.slice().reverse();oe[ae]=[le.length,"<"+le.join("><")+">","</"+se.join("></")+">"]}function ce(t){return!ee.test(t)}function ue(t){var e=t.nodeType;return 1===e||!e||9===e}function he(t,e){var n,i,o,a,s,l=e.createDocumentFragment(),c=[];if(ce(t))c.push(e.createTextNode(t));else{if(n=l.appendChild(e.createElement("div")),i=(ne.exec(t)||["",""])[1].toLowerCase(),a=pe.legacyXHTMLReplacement?t.replace(ie,"<$1></$2>"):t,r<10)for(o=oe[i]||oe._default,n.innerHTML=o[1]+a+o[2],s=o[0];s--;)n=n.firstChild;else{for(s=(o=re[i]||[]).length;--s>-1;)n.appendChild(window.document.createElement(o[s])),n=n.firstChild;n.innerHTML=a}c=ht(c,n.childNodes),(n=l.firstChild).textContent=""}return l.textContent="",l.innerHTML="",C(c,(function(t){l.appendChild(t)})),l}oe.optgroup=oe.option;var de=window.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function pe(t){if(t instanceof pe)return t;var e,n,i,r;if(F(t)&&(t=tt(t),e=!0),!(this instanceof pe)){if(e&&"<"!==t.charAt(0))throw Qt("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new pe(t)}e?ke(this,(n=t,i=i||window.document,(r=te.exec(n))?[i.createElement(r[1])]:(r=he(n,i))?r.childNodes:[])):G(t)?_e(t):ke(this,t)}function fe(t){return t.cloneNode(!0)}function me(t,e){!e&&ue(t)&&o.cleanData([t]),t.querySelectorAll&&o.cleanData(t.querySelectorAll("*"))}function ge(t){var e;for(e in t)return!1;return!0}function ve(t){var e=t.ng339,n=e&&Wt[e],i=n&&n.events,r=n&&n.data;r&&!ge(r)||i&&!ge(i)||(delete Wt[e],t.ng339=void 0)}function ye(t,e,n,i){if(N(i))throw Qt("offargs","jqLite#off() does not support the `selector` argument");var r=we(t),o=r&&r.events,a=r&&r.handle;if(a){if(e){var s=function(e){var i=o[e];N(n)&&ot(i||[],n),N(n)&&i&&i.length>0||(t.removeEventListener(e,a),delete o[e])};C(e.split(" "),(function(t){s(t),Xt[t]&&s(Xt[t])}))}else for(e in o)"$destroy"!==e&&t.removeEventListener(e,a),delete o[e];ve(t)}}function be(t,e){var n=t.ng339,i=n&&Wt[n];i&&(e?delete i.data[e]:i.data={},ve(t))}function we(t,e){var n=t.ng339,i=n&&Wt[n];return e&&!i&&(t.ng339=n=++Gt,i=Wt[n]={events:{},data:{},handle:void 0}),i}function $e(t,e,n){if(ue(t)){var i,r=N(n),o=!r&&e&&!H(e),a=!e,s=we(t,!o),l=s&&s.data;if(r)l[Zt(e)]=n;else{if(a)return l;if(o)return l&&l[Zt(e)];for(i in e)l[Zt(i)]=e[i]}}}function xe(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function Ce(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),i=n;C(e.split(" "),(function(t){t=tt(t),i=i.replace(" "+t+" "," ")})),i!==n&&t.setAttribute("class",tt(i))}}function Se(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),i=n;C(e.split(" "),(function(t){t=tt(t),-1===i.indexOf(" "+t+" ")&&(i+=t+" ")})),i!==n&&t.setAttribute("class",tt(i))}}function ke(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var i=0;i<n;i++)t[t.length++]=e[i]}else t[t.length++]=e}}function Te(t,e){return Ee(t,"$"+(e||"ngController")+"Controller")}function Ee(t,e,n){9===t.nodeType&&(t=t.documentElement);for(var i=q(e)?e:[e];t;){for(var r=0,a=i.length;r<a;r++)if(N(n=o.data(t,i[r])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function Ae(t){for(me(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Oe(t,e){e||me(t);var n=t.parentNode;n&&n.removeChild(t)}function _e(t){function e(){window.document.removeEventListener("DOMContentLoaded",e),window.removeEventListener("load",e),t()}"complete"===window.document.readyState?window.setTimeout(t):(window.document.addEventListener("DOMContentLoaded",e),window.addEventListener("load",e))}var Pe=pe.prototype={ready:_e,toString:function(){var t=[];return C(this,(function(e){t.push(""+e)})),"["+t.join(", ")+"]"},eq:function(t){return o(t>=0?this[t]:this[this.length+t])},length:0,push:m,sort:[].sort,splice:[].splice},Ie={};C("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(t){Ie[h(t)]=t}));var De={};C("input,select,option,textarea,button,form,details".split(","),(function(t){De[t]=!0}));var Me={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function Le(t,e){var n=Ie[e.toLowerCase()];return n&&De[it(t)]&&n}function Re(t,e,n){n.call(t,e)}function je(t,e,n){var i=e.relatedTarget;i&&(i===t||de.call(t,i))||n.call(t,e)}function Ve(){this.$get=function(){return O(pe,{hasClass:function(t,e){return t.attr&&(t=t[0]),xe(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Se(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Ce(t,e)}})}}function Ne(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var i=typeof t;return n="function"===i||"object"===i&&null!==t?t.$$hashKey=i+":"+(e||T)():i+":"+t}C({data:$e,removeData:be,hasData:function(t){for(var e in Wt[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)be(t[e]),ye(t[e])}},(function(t,e){pe[e]=t})),C({data:$e,inheritedData:Ee,scope:function(t){return o.data(t,"$scope")||Ee(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return o.data(t,"$isolateScope")||o.data(t,"$isolateScopeNoTemplate")},controller:Te,injector:function(t){return Ee(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:xe,css:function(t,e,n){if(e=function(t){return Zt(t.replace(Kt,"ms-"))}(e),!N(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var i,r=t.nodeType;if(r!==Ft&&2!==r&&8!==r&&t.getAttribute){var o=h(e),a=Ie[o];if(!N(n))return i=t.getAttribute(e),a&&null!==i&&(i=o),null===i?void 0:i;null===n||!1===n&&a?t.removeAttribute(e):t.setAttribute(e,a?o:n)}},prop:function(t,e,n){if(!N(n))return t[e];t[e]=n},text:function(){return t.$dv="",t;function t(t,e){if(V(e)){var n=t.nodeType;return 1===n||n===Ft?t.textContent:""}t.textContent=e}}(),val:function(t,e){if(V(e)){if(t.multiple&&"select"===it(t)){var n=[];return C(t.options,(function(t){t.selected&&n.push(t.value||t.text)})),n}return t.value}t.value=e},html:function(t,e){if(V(e))return t.innerHTML;me(t,!0),t.innerHTML=e},empty:Ae},(function(t,e){pe.prototype[e]=function(e,n){var i,r,o=this.length;if(t!==Ae&&V(2===t.length&&t!==xe&&t!==Te?e:n)){if(H(e)){for(i=0;i<o;i++)if(t===$e)t(this[i],e);else for(r in e)t(this[i],r,e[r]);return this}for(var a=t.$dv,s=V(a)?Math.min(o,1):o,l=0;l<s;l++){var c=t(this[l],e,n);a=a?a+c:c}return a}for(i=0;i<o;i++)t(this[i],e,n);return this}})),C({removeData:be,on:function(t,e,n,i){if(N(i))throw Qt("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ue(t)){var r=we(t,!0),o=r.events,a=r.handle;a||(a=r.handle=function(t,e){var n=function(n,i){n.isDefaultPrevented=function(){return n.defaultPrevented};var r=e[i||n.type],o=r?r.length:0;if(o){if(V(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=r.specialHandlerWrapper||Re;o>1&&(r=Ut(r));for(var l=0;l<o;l++)n.isImmediatePropagationStopped()||s(t,n,r[l])}};return n.elem=t,n}(t,o));for(var s=e.indexOf(" ")>=0?e.split(" "):[e],l=s.length,c=function(e,i,r){var s=o[e];s||((s=o[e]=[]).specialHandlerWrapper=i,"$destroy"===e||r||t.addEventListener(e,a)),s.push(n)};l--;)e=s[l],Xt[e]?(c(Xt[e],je),c(e,void 0,!0)):c(e)}},off:ye,one:function(t,e,n){(t=o(t)).on(e,(function i(){t.off(e,n),t.off(e,i)})),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;me(t),C(new pe(e),(function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e}))},children:function(t){var e=[];return C(t.childNodes,(function(t){1===t.nodeType&&e.push(t)})),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(1===n||11===n)for(var i=0,r=(e=new pe(e)).length;i<r;i++){var o=e[i];t.appendChild(o)}},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;C(new pe(e),(function(e){t.insertBefore(e,n)}))}},wrap:function(t,e){var n,i,r;n=t,i=o(e).eq(0).clone()[0],(r=n.parentNode)&&r.replaceChild(i,n),i.appendChild(n)},remove:Oe,detach:function(t){Oe(t,!0)},after:function(t,e){var n=t,i=t.parentNode;if(i)for(var r=0,o=(e=new pe(e)).length;r<o;r++){var a=e[r];i.insertBefore(a,n.nextSibling),n=a}},addClass:Se,removeClass:Ce,toggleClass:function(t,e,n){e&&C(e.split(" "),(function(e){var i=n;V(i)&&(i=!xe(t,e)),(i?Se:Ce)(t,e)}))},parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:fe,triggerHandler:function(t,e,n){var i,r,o,a=e.type||e,s=we(t),l=s&&s.events,c=l&&l[a];c&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:M,type:a,target:t},e.type&&(i=O(i,e)),r=Ut(c),o=n?[i].concat(n):[i],C(r,(function(e){i.isImmediatePropagationStopped()||e.apply(t,o)})))}},(function(t,e){pe.prototype[e]=function(e,n,i){for(var r,a=0,s=this.length;a<s;a++)V(r)?N(r=t(this[a],e,n,i))&&(r=o(r)):ke(r,t(this[a],e,n,i));return N(r)?r:this}})),pe.prototype.bind=pe.prototype.on,pe.prototype.unbind=pe.prototype.off;var He=Object.create(null);function ze(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}ze.prototype={_idx:function(t){return t!==this._lastKey&&(this._lastKey=t,this._lastIndex=this._keys.indexOf(t)),this._lastIndex},_transformKey:function(t){return I(t)?He:t},get:function(t){t=this._transformKey(t);var e=this._idx(t);if(-1!==e)return this._values[e]},has:function(t){return t=this._transformKey(t),-1!==this._idx(t)},set:function(t,e){t=this._transformKey(t);var n=this._idx(t);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=t,this._values[n]=e},delete:function(t){t=this._transformKey(t);var e=this._idx(t);return-1!==e&&(this._keys.splice(e,1),this._values.splice(e,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Fe=ze,Ue=[function(){this.$get=[function(){return Fe}]}],Be=/^([^(]+?)=>/,qe=/^[^(]*\(\s*([^)]*)\)/m,We=/,/,Ge=/^\s*(_?)(\S+?)\1\s*$/,Ye=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ke=i("$injector");function Xe(t){return Function.prototype.toString.call(t)}function Qe(t){var e=Xe(t).replace(Ye,"");return e.match(Be)||e.match(qe)}function Je(t,e){e=!0===e;var n={},i="Provider",o=[],a=new Fe,l={$provide:{provider:f(m),factory:f(v),service:f((function(t,e){return v(t,["$injector",function(t){return t.instantiate(e)}])})),value:f((function(t,e){return v(t,R(e),!1)})),constant:f((function(t,e){Vt(t,"constant"),l[t]=e,u[t]=e})),decorator:function(t,e){var n=c.get(t+i),r=n.$get;n.$get=function(){var t=d.invoke(r,n);return d.invoke(e,null,{$delegate:t})}}}},c=l.$injector=w(l,(function(t,e){throw b.isString(e)&&o.push(e),Ke("unpr","Unknown provider: {0}",o.join(" <- "))})),u={},h=w(u,(function(t,e){var n=c.get(t+i,e);return d.invoke(n.$get,n,void 0,t)})),d=h;l.$injectorProvider={$get:R(h)},d.modules=c.modules=Ht();var p=y(t);return(d=h.get("$injector")).strictDi=e,C(p,(function(t){t&&d.invoke(t)})),d.loadNewModules=function(t){C(y(t),(function(t){t&&d.invoke(t)}))},d;function f(t){return function(e,n){if(!H(e))return t(e,n);C(e,k(t))}}function m(t,e){if(Vt(t,"service"),(G(e)||q(e))&&(e=c.instantiate(e)),!e.$get)throw Ke("pget","Provider '{0}' must define $get factory method.",t);return l[t+i]=e}function g(t,e){return function(){var n=d.invoke(e,this);if(V(n))throw Ke("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function v(t,e,n){return m(t,{$get:!1!==n?g(t,e):e})}function y(t){Rt(V(t)||q(t),"modulesToLoad","not an array");var e,n=[];return C(t,(function(t){if(!a.get(t)){a.set(t,!0);try{F(t)?(e=s(t),d.modules[t]=e,n=n.concat(y(e.requires)).concat(e._runBlocks),i(e._invokeQueue),i(e._configBlocks)):G(t)||q(t)?n.push(c.invoke(t)):jt(t,"module")}catch(e){throw q(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Ke("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function i(t){var e,n;for(e=0,n=t.length;e<n;e++){var i=t[e],r=c.get(i[0]);r[i[1]].apply(r,i[2])}}})),n}function w(t,a){function s(e,i){if(t.hasOwnProperty(e)){if(t[e]===n)throw Ke("cdep","Circular dependency found: {0}",e+" <- "+o.join(" <- "));return t[e]}try{return o.unshift(e),t[e]=n,t[e]=a(e,i),t[e]}catch(i){throw t[e]===n&&delete t[e],i}finally{o.shift()}}function c(t,n,i){for(var r=[],o=Je.$$annotate(t,e,i),a=0,l=o.length;a<l;a++){var c=o[a];if("string"!=typeof c)throw Ke("itkn","Incorrect injection token! Expected service name as string, got {0}",c);r.push(n&&n.hasOwnProperty(c)?n[c]:s(c,i))}return r}return{invoke:function(t,e,n,i){"string"==typeof n&&(i=n,n=null);var o=c(t,n,i);return q(t)&&(t=t[t.length-1]),function(t){if(r||"function"!=typeof t)return!1;var e=t.$$ngIsClass;return Q(e)||(e=t.$$ngIsClass=/^class\b/.test(Xe(t))),e}(t)?(o.unshift(null),new(Function.prototype.bind.apply(t,o))):t.apply(e,o)},instantiate:function(t,e,n){var i=q(t)?t[t.length-1]:t,r=c(t,e,n);return r.unshift(null),new(Function.prototype.bind.apply(i,r))},get:s,annotate:Je.$$annotate,has:function(e){return l.hasOwnProperty(e+i)||t.hasOwnProperty(e)}}}}function Ze(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,i){var r=e.document;function a(t){if(t){t.scrollIntoView();var n=function(){var t=s.yOffset;if(G(t))t=t();else if(nt(t)){var n=t[0];t="fixed"!==e.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom}else U(t)||(t=0);return t}();if(n){var i=t.getBoundingClientRect().top;e.scrollBy(0,i-n)}}else e.scrollTo(0,0)}function s(t){var e,i,o;(t=F(t)?t:U(t)?t.toString():n.hash())?(e=r.getElementById(t))?a(e):(i=r.getElementsByName(t),o=null,Array.prototype.some.call(i,(function(t){if("a"===it(t))return o=t,!0})),(e=o)?a(e):"top"===t&&a(null)):a(null)}return t&&i.$watch((function(){return n.hash()}),(function(t,e){var n,r;t===e&&""===t||(n=function(){i.$evalAsync(s)},"complete"===(r=r||window).document.readyState?r.setTimeout(n):o(r).on("load",n))})),s}]}Je.$$annotate=function(t,e,n){var i,r;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw F(n)&&n||(n=t.name||function(t){var e=Qe(t);return e?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(t)),Ke("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);C(Qe(t)[1].split(We),(function(t){t.replace(Ge,(function(t,e,n){i.push(n)}))}))}t.$inject=i}}else q(t)?(jt(t[r=t.length-1],"fn"),i=t.slice(0,r)):jt(t,"fn",!0);return i};var tn=i("$animate"),en="ng-animate";function nn(t,e){return t||e?t?e?(q(t)&&(t=t.join(" ")),q(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function rn(t){return H(t)?t:{}}var on=function(){this.$get=M},an=function(){var t=new Fe,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){return{enabled:M,on:M,off:M,pin:M,push:function(a,s,l,c){c&&c(),(l=l||{}).from&&a.css(l.from),l.to&&a.css(l.to),(l.addClass||l.removeClass)&&function(n,a,s){var l=t.get(n)||{},c=r(l,a,!0),u=r(l,s,!1);(c||u)&&(t.set(n,l),e.push(n),1===e.length&&i.$$postDigest(o))}(a,l.addClass,l.removeClass);var u=new n;return u.complete(),u}};function r(t,e,n){var i=!1;return e&&C(e=F(e)?e.split(" "):q(e)?e:[],(function(e){e&&(i=!0,t[e]=n)})),i}function o(){C(e,(function(e){var n=t.get(e);if(n){var i=function(t){F(t)&&(t=t.split(" "));var e=Ht();return C(t,(function(t){t.length&&(e[t]=!0)})),e}(e.attr("class")),r="",o="";C(n,(function(t,e){t!==!!i[e]&&(t?r+=(r.length?" ":"")+e:o+=(o.length?" ":"")+e)})),C(e,(function(t){r&&Se(t,r),o&&Ce(t,o)})),t.delete(e)}})),e.length=0}}]},sn=["$provide",function(t){var e=this,n=null,i=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,i){if(n&&"."!==n.charAt(0))throw tn("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var r=n+"-animation";e.$$registeredAnimations[n.substr(1)]=r,t.factory(r,i)},this.customFilter=function(t){return 1===arguments.length&&(i=G(t)?t:null),i},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null)){var e=new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]");if(e.test(n.toString()))throw n=null,tn("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',en)}return n},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var i=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(1===n.nodeType)return n}}(n);!i||i.parentNode||i.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.cancel&&t.cancel()},enter:function(n,i,r,a){return i=i&&o(i),r=r&&o(r),e(n,i=i||r.parent(),r),t.push(n,"enter",rn(a))},move:function(n,i,r,a){return i=i&&o(i),r=r&&o(r),e(n,i=i||r.parent(),r),t.push(n,"move",rn(a))},leave:function(e,n){return t.push(e,"leave",rn(n),(function(){e.remove()}))},addClass:function(e,n,i){return(i=rn(i)).addClass=nn(i.addclass,n),t.push(e,"addClass",i)},removeClass:function(e,n,i){return(i=rn(i)).removeClass=nn(i.removeClass,n),t.push(e,"removeClass",i)},setClass:function(e,n,i,r){return(r=rn(r)).addClass=nn(r.addClass,n),r.removeClass=nn(r.removeClass,i),t.push(e,"setClass",r)},animate:function(e,n,i,r,o){return(o=rn(o)).from=o.from?O(o.from,n):n,o.to=o.to?O(o.to,i):i,r=r||"ng-inline-animate",o.tempClasses=nn(o.tempClasses,r),t.push(e,"animate",o)}}}]}],ln=function(){this.$get=["$$rAF",function(t){var e=[];function n(n){e.push(n),e.length>1||t((function(){for(var t=0;t<e.length;t++)e[t]();e=[]}))}return function(){var t=!1;return n((function(){t=!0})),function(e){t?e():n(e)}}}]},cn=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,n,i,r){function o(t){this.setHost(t);var e=n();this._doneCallbacks=[],this._tick=function(t){i()?function(t){r(t,0,!1)}(t):e(t)},this._state=0}return o.chain=function(t,e){var n=0;!function i(){if(n===t.length)return void e(!0);t[n]((function(t){!1!==t?(n++,i()):e(!1)}))}()},o.all=function(t,e){var n=0,i=!0;function r(r){i=i&&r,++n===t.length&&e(i)}C(t,(function(t){t.done(r)}))},o.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:M,getPromise:function(){if(!this.promise){var e=this;this.promise=t((function(t,n){e.done((function(e){!1===e?n():t()}))}))}return this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},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(t){var e=this;0===e._state&&(e._state=1,e._tick((function(){e._resolve(t)})))},_resolve:function(t){2!==this._state&&(C(this._doneCallbacks,(function(e){e(t)})),this._doneCallbacks.length=0,this._state=2)}},o}]},un=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,i){var r=i||{};r.$$prepared||(r=at(r)),r.cleanupStyles&&(r.from=r.to=null),r.from&&(e.css(r.from),r.from=null);var o,a=new n;return{start:s,end:s};function s(){return t((function(){!function(){r.addClass&&(e.addClass(r.addClass),r.addClass=null);r.removeClass&&(e.removeClass(r.removeClass),r.removeClass=null);r.to&&(e.css(r.to),r.to=null)}(),o||a.complete(),o=!0})),a}}}]};function hn(window,t,e,n,i){var r=this,a=window.location,s=window.history,l=window.setTimeout,c=window.clearTimeout,u={},h=i(e);r.isMock=!1,r.$$completeOutstandingRequest=h.completeTask,r.$$incOutstandingRequestCount=h.incTaskCount,r.notifyWhenNoOutstandingRequests=h.notifyWhenNoPendingTasks;var d,p,f=a.href,m=t.find("base"),g=null,v=n.history?function(){try{return s.state}catch(t){}}:M;S(),r.url=function(t,e,i){if(V(i)&&(i=null),a!==window.location&&(a=window.location),s!==window.history&&(s=window.history),t){var o=p===i;if(t=hr(t).href,f===t&&(!n.history||o))return r;var l=f&&ui(f)===ui(t);return f=t,p=i,!n.history||l&&o?(l||(g=t),e?a.replace(t):l?a.hash=function(t){var e=t.indexOf("#");return-1===e?"":t.substr(e)}(t):a.href=t,a.href!==t&&(g=t)):(s[e?"replaceState":"pushState"](i,"",t),S()),g&&(g=t),r}return function(t){return t.replace(/#$/,"")}(g||a.href)},r.state=function(){return d};var y=[],b=!1;function w(){g=null,k()}var x=null;function S(){lt(d=V(d=v())?null:d,x)&&(d=x),x=d,p=d}function k(){var t=p;S(),f===r.url()&&t===d||(f=r.url(),p=d,C(y,(function(t){t(r.url(),d)})))}r.onUrlChange=function(t){return b||(n.history&&o(window).on("popstate",w),o(window).on("hashchange",w),b=!0),y.push(t),t},r.$$applicationDestroyed=function(){o(window).off("hashchange popstate",w)},r.$$checkUrlChange=k,r.baseHref=function(){var t=m.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},r.defer=function(t,e,n){var i;return e=e||0,n=n||h.DEFAULT_TASK_TYPE,h.incTaskCount(n),i=l((function(){delete u[i],h.completeTask(t,n)}),e),u[i]=n,i},r.defer.cancel=function(t){if(u.hasOwnProperty(t)){var e=u[t];return delete u[t],c(t),h.completeTask(M,e),!0}return!1}}function dn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(t,e,n,i,r){return new hn(t,i,e,n,r)}]}function pn(){this.$get=function(){var t={};function e(e,n){if(e in t)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var r=0,o=O({},n,{id:e}),a=Ht(),s=n&&n.capacity||Number.MAX_VALUE,l=Ht(),c=null,u=null;return t[e]={put:function(t,e){if(!V(e)){if(s<Number.MAX_VALUE)h(l[t]||(l[t]={key:t}));return t in a||r++,a[t]=e,r>s&&this.remove(u.key),e}},get:function(t){if(s<Number.MAX_VALUE){var e=l[t];if(!e)return;h(e)}return a[t]},remove:function(t){if(s<Number.MAX_VALUE){var e=l[t];if(!e)return;e===c&&(c=e.p),e===u&&(u=e.n),d(e.n,e.p),delete l[t]}t in a&&(delete a[t],r--)},removeAll:function(){a=Ht(),r=0,l=Ht(),c=u=null},destroy:function(){a=null,o=null,l=null,delete t[e]},info:function(){return O({},o,{size:r})}};function h(t){t!==c&&(u?u===t&&(u=t.n):u=t,d(t.n,t.p),d(t,c),(c=t).n=null)}function d(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}}return e.info=function(){var e={};return C(t,(function(t,n){e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function fn(){this.$get=["$cacheFactory",function(t){return t("templates")}]}var mn=i("$compile");var gn=new function(){};function vn(t,e){var n={},i="Directive",a=/^\s*directive:\s*([\w-]+)\s+(.*)$/,s=/(([\w-]+)(?::([^;]+))?;?)/,l=function(t){var e,n={},i=t.split(",");for(e=0;e<i.length;e++)n[i[e]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),c=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,d=/^(on[a-z]+|formaction)$/,p=Ht();function f(t,e,n){var i=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,r=Ht();return C(t,(function(t,o){if((t=t.trim())in p)r[o]=p[t];else{var a=t.match(i);if(!a)throw mn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,o,t,n?"controller bindings definition":"isolate scope definition");r[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(p[t]=r[o])}})),r}function m(t,e){var n={isolateScope:null,bindToController:null};if(H(t.scope)&&(!0===t.bindToController?(n.bindToController=f(t.scope,e,!0),n.isolateScope={}):n.isolateScope=f(t.scope,e,!1)),H(t.bindToController)&&(n.bindToController=f(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw mn("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(r,o){return Rt(r,"name"),Vt(r,"directive"),F(r)?(!function(t){var e=t.charAt(0);if(!e||e!==h(e))throw mn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw mn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(r),Rt(o,"directiveFactory"),n.hasOwnProperty(r)||(n[r]=[],t.factory(r+i,["$injector","$exceptionHandler",function(t,e){var i=[];return C(n[r],(function(n,o){try{var a=t.invoke(n);G(a)?a={compile:R(a)}:!a.compile&&a.link&&(a.compile=R(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||r,a.require=function(t){var require=t.require||t.controller&&t.name;return!q(require)&&H(require)&&C(require,(function(t,e){var n=t.match(c);t.substring(n[0].length)||(require[e]=n[0]+e)})),require}(a),a.restrict=function(t,e){if(t&&(!F(t)||!/[EACM]/.test(t)))throw mn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(a.restrict,r),a.$$moduleName=n.$$moduleName,i.push(a)}catch(t){e(t)}})),i}])),n[r].push(o)):C(r,k(e)),this},this.component=function t(e,n){if(!F(e))return C(e,k(pt(this,t))),this;var i=n.controller||function(){};function r(t){function e(e){return G(e)||q(e)?function(n,i){return t.invoke(e,this,{$element:n,$attrs:i})}:e}var r=n.template||n.templateUrl?n.template:"",o={controller:i,controllerAs:Tn(n.controller)||n.controllerAs||"$ctrl",template:e(r),templateUrl:e(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return C(n,(function(t,e){"$"===e.charAt(0)&&(o[e]=t)})),o}return C(n,(function(t,e){"$"===e.charAt(0)&&(r[e]=t,G(i)&&(i[e]=t))})),r.$inject=["$injector"],this.directive(e,r)},this.aHrefSanitizationTrustedUrlList=function(t){return N(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(t){this.aHrefSanitizationTrustedUrlList=t}}),this.imgSrcSanitizationTrustedUrlList=function(t){return N(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(t){this.imgSrcSanitizationTrustedUrlList=t}});var v=!0;this.debugInfoEnabled=function(t){return N(t)?(v=t,this):v};var y=!1;this.strictComponentBindingsEnabled=function(t){return N(t)?(y=t,this):y};var b=10;this.onChangesTtl=function(t){return arguments.length?(b=t,this):b};var w=!0;this.commentDirectivesEnabled=function(t){return arguments.length?(w=t,this):w};var x=!0;this.cssClassDirectivesEnabled=function(t){return arguments.length?(x=t,this):x};var S=Ht();this.addPropertySecurityContext=function(t,e,n){var i=t.toLowerCase()+"|"+e.toLowerCase();if(i in S&&S[i]!==n)throw mn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,S[i],n);return S[i]=n,this},function(){function t(t,e){C(e,(function(e){S[e.toLowerCase()]=t}))}t(Gi.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Gi.CSS,["*|style"]),t(Gi.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Gi.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Gi.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,e,p,f,k,T,E,A,_){var P,I=/^\w/,R=window.document.createElement("div"),j=w,N=x,z=b;function U(){try{if(!--z)throw P=void 0,mn("infchng","{0} $onChanges() iterations reached. Aborting!\n",b);E.$apply((function(){for(var t=0,e=P.length;t<e;++t)try{P[t]()}catch(t){p(t)}P=void 0}))}finally{z++}}function B(t,e){if(!t)return t;if(!F(t))throw mn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",i=tt(t),r=/\s/.test(i)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=i.split(r),a=Math.floor(o.length/2),s=0;s<a;s++){var l=2*s;n+=A.getTrustedMediaUrl(tt(o[l])),n+=" "+tt(o[l+1])}var c=tt(o[2*s]).split(/\s/);return n+=A.getTrustedMediaUrl(tt(c[0])),2===c.length&&(n+=" "+tt(c[1])),n}function Y(t,e){if(e){var n,i,r,o=Object.keys(e);for(n=0,i=o.length;n<i;n++)this[r=o[n]]=e[r]}else this.$attr={};this.$$element=t}function K(t,e){try{t.addClass(e)}catch(t){}}Y.prototype={$normalize:$n,$addClass:function(t){t&&t.length>0&&_.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&_.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=xn(t,e);n&&n.length&&_.addClass(this.$$element,n);var i=xn(e,t);i&&i.length&&_.removeClass(this.$$element,i)},$set:function(t,e,n,i){var r=Le(this.$$element[0],t),o=Me[t],a=t;r?(this.$$element.prop(t,e),i=r):o&&(this[o]=e,a=o),this[t]=e,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=Dt(t,"-")),"img"===it(this.$$element)&&"srcset"===t&&(this[t]=e=B(e,"$set('srcset', value)")),!1!==n&&(null===e||V(e)?this.$$element.removeAttr(i):I.test(i)?r&&!1===e?this.$$element.removeAttr(i):this.$$element.attr(i,e):function(t,e,n){R.innerHTML="<span "+e+">";var i=R.firstChild.attributes,r=i[0];i.removeNamedItem(r.name),r.value=n,t.attributes.setNamedItem(r)}(this.$$element[0],i,e));var s=this.$$observers;s&&C(s[a],(function(t){try{t(e)}catch(t){p(t)}}))},$observe:function(t,e){var n=this,i=n.$$observers||(n.$$observers=Ht()),r=i[t]||(i[t]=[]);return r.push(e),E.$evalAsync((function(){r.$$inter||!n.hasOwnProperty(t)||V(n[t])||e(n[t])})),function(){ot(r,e)}}};var J=e.startSymbol(),Z=e.endSymbol(),et="{{"===J&&"}}"===Z?L:function(t){return t.replace(/\{\{/g,J).replace(/}}/g,Z)},nt=/^ng(Attr|Prop|On)([A-Z].*)$/,rt=/^(.+)Start$/;return at.$$addBindingInfo=v?function(t,e){var n=t.data("$binding")||[];q(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:M,at.$$addBindingClass=v?function(t){K(t,"ng-binding")}:M,at.$$addScopeInfo=v?function(t,e,n,i){var r=n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(r,e)}:M,at.$$addScopeClass=v?function(t,e){K(t,e?"ng-isolate-scope":"ng-scope")}:M,at.$$createComment=function(t,e){var n="";return v&&(n=" "+(t||"")+": ",e&&(n+=e+" ")),window.document.createComment(n)},at;function at(t,e,n,i,r){t instanceof o||(t=o(t));var a=ct(t,e,t,n,i,r);at.$$addScopeClass(t);var s=null;return function(e,n,i){if(!t)throw mn("multilink","This element has already been linked.");Rt(e,"scope"),r&&r.needsNewScope&&(e=e.$parent.$new());var l,c,u,h=(i=i||{}).parentBoundTranscludeFn,d=i.transcludeControllers,p=i.futureParentElement;if(h&&h.$$boundTransclude&&(h=h.$$boundTransclude),s||(c=(l=p)&&l[0],s=c&&"foreignobject"!==it(c)&&g.call(c).match(/SVG/)?"svg":"html"),u="html"!==s?o(At(s,o("<div></div>").append(t).html())):n?Pe.clone.call(t):t,d)for(var f in d)u.data("$"+f+"Controller",d[f].instance);return at.$$addScopeInfo(u,e),n&&n(u,e),a&&a(e,u,u,h),n||(t=a=null),u}}function ct(t,e,n,i,a,s){for(var l,c,u,h,d,p,f,m=[],g=q(t)||t instanceof o,v=0;v<t.length;v++)l=new Y,11===r&&ut(t,v,g),(u=(c=ft(t[v],[],l,0===v?i:void 0,a)).length?yt(c,t[v],l,e,n,null,[],[],s):null)&&u.scope&&at.$$addScopeClass(l.$$element),d=u&&u.terminal||!(h=t[v].childNodes)||!h.length?null:ct(h,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:e),(u||d)&&(m.push(v,u,d),p=!0,f=f||u),s=null;return p?function(t,n,i,r){var a,s,l,c,u,h,d,p,g;if(f){var v=n.length;for(g=new Array(v),u=0;u<m.length;u+=3)d=m[u],g[d]=n[d]}else g=n;for(u=0,h=m.length;u<h;)l=g[m[u++]],a=m[u++],s=m[u++],a?(a.scope?(c=t.$new(),at.$$addScopeInfo(o(l),c)):c=t,p=a.transcludeOnThisElement?ht(t,a.transclude,r):!a.templateOnThisElement&&r?r:!r&&e?ht(t,e):null,a(s,c,l,i,p)):s&&s(t,l.childNodes,void 0,r)}:null}function ut(t,e,n){var i,r=t[e],o=r.parentNode;if(r.nodeType===Ft)for(;(i=o?r.nextSibling:t[e+1])&&i.nodeType===Ft;)r.nodeValue=r.nodeValue+i.nodeValue,i.parentNode&&i.parentNode.removeChild(i),n&&i===t[e+1]&&t.splice(e+1,1)}function ht(t,e,n){function i(i,r,o,a,s){return i||((i=t.$new(!1,s)).$$transcluded=!0),e(i,r,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var r=i.$$slots=Ht();for(var o in e.$$slots)e.$$slots[o]?r[o]=ht(t,e.$$slots[o],n):r[o]=null;return i}function ft(t,n,i,r,o){var l,c,u,h=t.nodeType,d=i.$attr;switch(h){case 1:xt(n,$n(c=it(t)),"E",r,o);for(var p,f,m,g,v,y=t.attributes,b=0,w=y&&y.length;b<w;b++){var x,C=!1,S=!1,k=!1,T=!1,E=!1;f=(p=y[b]).name,g=p.value,(v=(m=$n(f.toLowerCase())).match(nt))?(k="Attr"===v[1],T="Prop"===v[1],E="On"===v[1],f=f.replace(bn,"").toLowerCase().substr(4+v[1].length).replace(/_(.)/g,(function(t,e){return e.toUpperCase()}))):(x=m.match(rt))&&Ct(x[1])&&(C=f,S=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),T||E?(i[m]=g,d[m]=p.name,T?_t(t,n,m,f):Pt(n,m,f)):(d[m=$n(f.toLowerCase())]=f,!k&&i.hasOwnProperty(m)||(i[m]=g,Le(t,m)&&(i[m]=!0)),It(t,n,g,m,k),xt(n,m,"A",r,o,C,S))}if("input"===c&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),!N)break;if(H(u=t.className)&&(u=u.animVal),F(u)&&""!==u)for(;l=s.exec(u);)xt(n,m=$n(l[2]),"C",r,o)&&(i[m]=tt(l[3])),u=u.substr(l.index+l[0].length);break;case Ft:!function(t,n){var i=e(n,!0);i&&t.push({priority:0,compile:function(t){var e=t.parent(),n=!!e.length;return n&&at.$$addBindingClass(e),function(t,e){var r=e.parent();n||at.$$addBindingClass(r),at.$$addBindingInfo(r,i.expressions),t.$watch(i,(function(t){e[0].nodeValue=t}))}}})}(n,t.nodeValue);break;case 8:if(!j)break;!function(t,e,n,i,r){try{var o=a.exec(t.nodeValue);if(o){var s=$n(o[1]);xt(e,s,"M",i,r)&&(n[s]=tt(o[2]))}}catch(t){}}(t,n,i,r,o)}return n.sort(Tt),n}function mt(t,e,n){var i=[],r=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw mn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);1===t.nodeType&&(t.hasAttribute(e)&&r++,t.hasAttribute(n)&&r--),i.push(t),t=t.nextSibling}while(r>0);else i.push(t);return o(i)}function gt(t,e,n){return function(i,r,o,a,s){return r=mt(r[0],e,n),t(i,r,o,a,s)}}function vt(t,e,n,i,r,o){var a;return t?at(e,n,i,r,o):function(){return a||(a=at(e,n,i,r,o),e=n=o=null),a.apply(this,arguments)}}function yt(t,e,n,i,r,a,s,l,c){c=c||{};for(var u,h,d,f,m,g=-Number.MAX_VALUE,v=c.newScopeDirective,y=c.controllerDirectives,b=c.newIsolateScopeDirective,w=c.templateDirective,x=c.nonTlbTranscludeDirective,S=!1,k=!1,E=c.hasElementTranscludeDirective,A=n.$$element=o(e),_=a,P=i,I=!1,D=!1,M=0,L=t.length;M<L;M++){var R=(u=t[M]).$$start,j=u.$$end;if(R&&(A=mt(e,R,j)),d=void 0,g>u.priority)break;if((m=u.scope)&&(u.templateUrl||(H(m)?(Et("new/isolated scope",b||v,u,A),b=u):Et("new/isolated scope",b,u,A)),v=v||u),h=u.name,!I&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!u.$$tlb)){for(var N,z=M+1;N=t[z++];)if(N.transclude&&!N.$$tlb||N.replace&&(N.templateUrl||N.template)){D=!0;break}I=!0}if(!u.templateUrl&&u.controller&&(y=y||Ht(),Et("'"+h+"' controller",y[h],u,A),y[h]=u),m=u.transclude)if(S=!0,u.$$tlb||(Et("transclusion",x,u,A),x=u),"element"===m)E=!0,g=u.priority,d=A,A=n.$$element=o(at.$$createComment(h,n[h])),e=A[0],Mt(r,dt(d),e),P=vt(D,d,i,g,_&&_.name,{nonTlbTranscludeDirective:x});else{var F=Ht();if(H(m)){d=window.document.createDocumentFragment();var U=Ht(),B=Ht();for(var W in C(m,(function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,U[t]=e,F[e]=null,B[e]=n})),C(A.contents(),(function(t){var e=U[$n(it(t))];e?(B[e]=!0,F[e]=F[e]||window.document.createDocumentFragment(),F[e].appendChild(t)):d.appendChild(t)})),C(B,(function(t,e){if(!t)throw mn("reqslot","Required transclusion slot `{0}` was not filled.",e)})),F)if(F[W]){var K=o(F[W].childNodes);F[W]=vt(D,K,i)}d=o(d.childNodes)}else d=o(fe(e)).contents();A.empty(),(P=vt(D,d,i,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope})).$$slots=F}if(u.template)if(k=!0,Et("template",w,u,A),w=u,m=G(u.template)?u.template(A,n):u.template,m=et(m),u.replace){if(_=u,d=ce(m)?[]:Cn(At(u.templateNamespace,tt(m))),e=d[0],1!==d.length||1!==e.nodeType)throw mn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");Mt(r,A,e);var Q={$attr:{}},J=ft(e,[],Q),Z=t.splice(M+1,t.length-(M+1));(b||v)&&wt(J,b,v),t=t.concat(J).concat(Z),St(n,Q),L=t.length}else A.html(m);if(u.templateUrl)k=!0,Et("template",w,u,A),w=u,u.replace&&(_=u),ot=kt(t.splice(M,t.length-M),A,n,r,S&&P,s,l,{controllerDirectives:y,newScopeDirective:v!==u&&v,newIsolateScopeDirective:b,templateDirective:w,nonTlbTranscludeDirective:x}),L=t.length;else if(u.compile)try{f=u.compile(A,n,P);var nt=u.$$originalDirective||u;G(f)?rt(null,pt(nt,f),R,j):f&&rt(pt(nt,f.pre),pt(nt,f.post),R,j)}catch(t){p(t,$t(A))}u.terminal&&(ot.terminal=!0,g=Math.max(g,u.priority))}return ot.scope=v&&!0===v.scope,ot.transcludeOnThisElement=S,ot.templateOnThisElement=k,ot.transclude=P,c.hasElementTranscludeDirective=E,ot;function rt(t,e,n,i){t&&(n&&(t=gt(t,n,i)),t.require=u.require,t.directiveName=h,(b===u||u.$$isolateScope)&&(t=Lt(t,{isolateScope:!0})),s.push(t)),e&&(n&&(e=gt(e,n,i)),e.require=u.require,e.directiveName=h,(b===u||u.$$isolateScope)&&(e=Lt(e,{isolateScope:!0})),l.push(e))}function ot(t,i,r,a,c){var u,h,d,f,m,g,x,S,k,A;for(var _ in e===r?(k=n,S=n.$$element):k=new Y(S=o(r),n),m=i,b?f=i.$new(!0):v&&(m=i.$parent),c&&(x=function(t,e,n,i){var r;X(t)||(i=n,n=e,e=t,t=void 0);E&&(r=g);n||(n=E?S.parent():S);if(!i)return c(t,e,r,n,M);var o=c.$$slots[i];if(o)return o(t,e,r,n,M);if(V(o))throw mn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,$t(S))},x.$$boundTransclude=c,x.isSlotFilled=function(t){return!!c.$$slots[t]}),y&&(g=function(t,e,n,i,r,o,a){var s=Ht();for(var l in i){var c=i[l],u={$scope:c===a||c.$$isolateScope?r:o,$element:t,$attrs:e,$transclude:n},h=c.controller;"@"===h&&(h=e[c.name]);var d=T(h,u,!0,c.controllerAs);s[c.name]=d,t.data("$"+c.name+"Controller",d.instance)}return s}(S,k,x,y,f,i,b)),b&&(at.$$addScopeInfo(S,f,!0,!(w&&(w===b||w===b.$$originalDirective))),at.$$addScopeClass(S,!0),f.$$isolateBindings=b.$$isolateBindings,(A=Nt(i,k,f,f.$$isolateBindings,b)).removeWatches&&f.$on("$destroy",A.removeWatches)),g){var P=y[_],I=g[_],D=P.$$bindings.bindToController;I.instance=I(),S.data("$"+P.name+"Controller",I.instance),I.bindingInfo=Nt(m,k,I.instance,D,P)}for(C(y,(function(t,e){var require=t.require;t.bindToController&&!q(require)&&H(require)&&O(g[e].instance,bt(e,require,S,g))})),C(g,(function(t){var e=t.instance;if(G(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){p(t)}if(G(e.$onInit))try{e.$onInit()}catch(t){p(t)}G(e.$doCheck)&&(m.$watch((function(){e.$doCheck()})),e.$doCheck()),G(e.$onDestroy)&&m.$on("$destroy",(function(){e.$onDestroy()}))})),u=0,h=s.length;u<h;u++)jt(d=s[u],d.isolateScope?f:i,S,k,d.require&&bt(d.directiveName,d.require,S,g),x);var M=i;for(b&&(b.template||null===b.templateUrl)&&(M=f),t&&t(M,r.childNodes,void 0,c),u=l.length-1;u>=0;u--)jt(d=l[u],d.isolateScope?f:i,S,k,d.require&&bt(d.directiveName,d.require,S,g),x);C(g,(function(t){var e=t.instance;G(e.$postLink)&&e.$postLink()}))}}function bt(t,require,e,n){var i;if(F(require)){var r=require.match(c),o=require.substring(r[0].length),a=r[1]||r[3],s="?"===r[2];if("^^"===a?e=e.parent():i=(i=n&&n[o])&&i.instance,!i){var l="$"+o+"Controller";i="^^"===a&&e[0]&&9===e[0].nodeType?null:a?e.inheritedData(l):e.data(l)}if(!i&&!s)throw mn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,t)}else if(q(require)){i=[];for(var u=0,h=require.length;u<h;u++)i[u]=bt(t,require[u],e,n)}else H(require)&&(i={},C(require,(function(r,o){i[o]=bt(t,r,e,n)})));return i||null}function wt(t,e,n){for(var i=0,r=t.length;i<r;i++)t[i]=D(t[i],{$$isolateScope:e,$$newScope:n})}function xt(e,r,o,a,s,l,c){if(r===s)return null;var u=null;if(n.hasOwnProperty(r))for(var h,d=t.get(r+i),p=0,f=d.length;p<f;p++)if(h=d[p],(V(a)||a>h.priority)&&-1!==h.restrict.indexOf(o)){if(l&&(h=D(h,{$$start:l,$$end:c})),!h.$$bindings){var g=h.$$bindings=m(h,h.name);H(g.isolateScope)&&(h.$$isolateBindings=g.isolateScope)}e.push(h),u=h}return u}function Ct(e){if(n.hasOwnProperty(e))for(var r=t.get(e+i),o=0,a=r.length;o<a;o++)if(r[o].multiElement)return!0;return!1}function St(t,e){var n=e.$attr,i=t.$attr;C(t,(function(i,r){"$"!==r.charAt(0)&&(e[r]&&e[r]!==i&&(i.length?i+=("style"===r?";":" ")+e[r]:i=e[r]),t.$set(r,i,!0,n[r]))})),C(e,(function(e,r){t.hasOwnProperty(r)||"$"===r.charAt(0)||(t[r]=e,"class"!==r&&"style"!==r&&(i[r]=n[r]))}))}function kt(t,e,n,i,r,a,s,l){var c,u,h=[],d=e[0],m=t.shift(),g=D(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),v=G(m.templateUrl)?m.templateUrl(e,n):m.templateUrl,y=m.templateNamespace;return e.empty(),f(v).then((function(p){var f,b,w,x;if(p=et(p),m.replace){if(w=ce(p)?[]:Cn(At(y,tt(p))),f=w[0],1!==w.length||1!==f.nodeType)throw mn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,v);b={$attr:{}},Mt(i,e,f);var S=ft(f,[],b);H(m.scope)&&wt(S,!0),t=S.concat(t),St(n,b)}else f=d,e.html(p);for(t.unshift(g),c=yt(t,f,n,r,e,m,a,s,l),C(i,(function(t,n){t===f&&(i[n]=e[0])})),u=ct(e[0].childNodes,r);h.length;){var k=h.shift(),T=h.shift(),E=h.shift(),A=h.shift(),O=e[0];if(!k.$$destroyed){if(T!==d){var _=T.className;l.hasElementTranscludeDirective&&m.replace||(O=fe(f)),Mt(E,o(T),O),K(o(O),_)}x=c.transcludeOnThisElement?ht(k,c.transclude,A):A,c(u,k,O,i,x)}}h=null})).catch((function(t){W(t)&&p(t)})),function(t,e,n,i,r){var o=r;e.$$destroyed||(h?h.push(e,n,i,o):(c.transcludeOnThisElement&&(o=ht(e,c.transclude,r)),c(u,e,n,i,o)))}}function Tt(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function Et(t,e,n,i){function r(t){return t?" (module: "+t+")":""}if(e)throw mn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,r(e.$$moduleName),n.name,r(n.$$moduleName),t,$t(i))}function At(t,e){switch(t=h(t||"html")){case"svg":case"math":var n=window.document.createElement("div");return n.innerHTML="<"+t+">"+e+"</"+t+">",n.childNodes[0].childNodes;default:return e}}function Ot(t){return B(A.valueOf(t),"ng-prop-srcset")}function _t(t,e,n,i){if(d.test(i))throw mn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var r=it(t),o=function(t,e){var n=e.toLowerCase();return S[t+"|"+n]||S["*|"+n]}(r,i),a=L;"srcset"!==i||"img"!==r&&"source"!==r?o&&(a=A.getTrusted.bind(A,o)):a=Ot,e.push({priority:100,compile:function(t,e){var r=k(e[n]),o=k(e[n],(function(t){return A.valueOf(t)}));return{pre:function(t,e){function n(){var n=r(t);e[0][i]=a(n)}n(),t.$watch(o,n)}}}})}function Pt(t,e,n){t.push(jo(k,E,p,e,n,!1))}function It(t,n,i,r,o){var a=it(t),s=function(t,e){return"srcdoc"===e?A.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?A.RESOURCE_URL:A.MEDIA_URL:"xlinkHref"===e?"image"===t?A.MEDIA_URL:"a"===t?A.URL:A.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?A.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:A.URL}(a,r),c=!o,u=l[r]||o,h=e(i,c,s,u);if(h){if("multiple"===r&&"select"===a)throw mn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",$t(t));if(d.test(r))throw mn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:function(){return{pre:function(t,n,o){var a=o.$$observers||(o.$$observers=Ht()),l=o[r];l!==i&&(h=l&&e(l,!0,s,u),i=l),h&&(o[r]=h(t),(a[r]||(a[r]=[])).$$inter=!0,(o.$$observers&&o.$$observers[r].$$scope||t).$watch(h,(function(t,e){"class"===r&&t!==e?o.$updateClass(t,e):o.$set(r,t)})))}}}})}}function Mt(t,e,n){var i,r,a=e[0],s=e.length,l=a.parentNode;if(t)for(i=0,r=t.length;i<r;i++)if(t[i]===a){t[i++]=n;for(var c=i,u=c+s-1,h=t.length;c<h;c++,u++)u<h?t[c]=t[u]:delete t[c];t.length-=s-1,t.context===a&&(t.context=n);break}l&&l.replaceChild(n,a);var d=window.document.createDocumentFragment();for(i=0;i<s;i++)d.appendChild(e[i]);for(o.hasData(a)&&(o.data(n,o.data(a)),o(a).off("$destroy")),o.cleanData(d.querySelectorAll("*")),i=1;i<s;i++)delete e[i];e[0]=n,e.length=1}function Lt(t,e){return O((function(){return t.apply(null,arguments)}),t,e)}function jt(t,e,n,i,r,o){try{t(e,n,i,r,o)}catch(t){p(t,$t(n))}}function Vt(t,e){if(y)throw mn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function Nt(t,n,i,r,o){var a,s=[],l={};function c(e,n,r){G(i.$onChanges)&&!st(n,r)&&(P||(t.$$postDigest(U),P=[]),a||(a={},P.push(h)),a[e]&&(r=a[e].previousValue),a[e]=new yn(r,n))}function h(){i.$onChanges(a),a=void 0}return C(r,(function(r,a){var h,d,p,f,m,g=r.attrName,v=r.optional;switch(r.mode){case"@":v||u.call(n,g)||(Vt(g,o.name),i[a]=n[g]=void 0),m=n.$observe(g,(function(t){if(F(t)||Q(t)){var e=i[a];c(a,t,e),i[a]=t}})),n.$$observers[g].$$scope=t,F(h=n[g])?i[a]=e(h)(t):Q(h)&&(i[a]=h),l[a]=new yn(gn,i[a]),s.push(m);break;case"=":if(!u.call(n,g)){if(v)break;Vt(g,o.name),n[g]=void 0}if(v&&!n[g])break;d=k(n[g]),f=d.literal?lt:st,p=d.assign||function(){throw h=i[a]=d(t),mn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[g],g,o.name)},h=i[a]=d(t);var y=function(e){return f(e,i[a])||(f(e,h)?p(t,e=i[a]):i[a]=e),h=e};y.$stateful=!0,m=r.collection?t.$watchCollection(n[g],y):t.$watch(k(n[g],y),null,d.literal),s.push(m);break;case"<":if(!u.call(n,g)){if(v)break;Vt(g,o.name),n[g]=void 0}if(v&&!n[g])break;var b=(d=k(n[g])).literal,w=i[a]=d(t);l[a]=new yn(gn,i[a]),m=t[r.collection?"$watchCollection":"$watch"](d,(function(t,e){if(e===t){if(e===w||b&&lt(e,w))return;e=w}c(a,t,e),i[a]=t})),s.push(m);break;case"&":if(v||u.call(n,g)||Vt(g,o.name),(d=n.hasOwnProperty(g)?k(n[g]):M)===M&&v)break;i[a]=function(e){return d(t,e)}}})),{initialChanges:l,removeWatches:s.length&&function(){for(var t=0,e=s.length;t<e;++t)s[t]()}}}}]}function yn(t,e){this.previousValue=t,this.currentValue=e}vn.$inject=["$provide","$$sanitizeUriProvider"],yn.prototype.isFirstChange=function(){return this.previousValue===gn};var bn=/^((?:x|data)[:\-_])/i,wn=/[:\-_]+(.)/g;function $n(t){return t.replace(bn,"").replace(wn,(function(t,e,n){return n?e.toUpperCase():e}))}function xn(t,e){var n="",i=t.split(/\s+/),r=e.split(/\s+/);t:for(var o=0;o<i.length;o++){for(var a=i[o],s=0;s<r.length;s++)if(a===r[s])continue t;n+=(n.length>0?" ":"")+a}return n}function Cn(t){var e=(t=o(t)).length;if(e<=1)return t;for(;e--;){var n=t[e];(8===n.nodeType||n.nodeType===Ft&&""===n.nodeValue.trim())&&f.call(t,e,1)}return t}var Sn=i("$controller"),kn=/^(\S+)(\s+as\s+([\w$]+))?$/;function Tn(t,e){if(e&&F(e))return e;if(F(t)){var n=kn.exec(t);if(n)return n[3]}}function En(){var t={};this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){Vt(e,"controller"),H(e)?O(t,e):t[e]=n},this.$get=["$injector",function(e){return function(i,r,o,a){var s,l,c,u;if(o=!0===o,a&&F(a)&&(u=a),F(i)){if(!(l=i.match(kn)))throw Sn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",i);if(c=l[1],u=u||l[3],i=t.hasOwnProperty(c)?t[c]:function(t,e,n){if(!e)return t;for(var i,r=e.split("."),o=t,a=r.length,s=0;s<a;s++)i=r[s],t&&(t=(o=t)[i]);return!n&&G(t)?pt(o,t):t}(r.$scope,c,!0),!i)throw Sn("ctrlreg","The controller with the name '{0}' is not registered.",c);jt(i,c,!0)}if(o){var h=(q(i)?i[i.length-1]:i).prototype;return s=Object.create(h||null),u&&n(r,u,s,c||i.name),O((function(){var t=e.invoke(i,s,r,c);return t!==s&&(H(t)||G(t))&&(s=t,u&&n(r,u,s,c||i.name)),s}),{instance:s,identifier:u})}return s=e.instantiate(i,r,c),u&&n(r,u,s,c||i.name),s};function n(t,e,n,r){if(!t||!H(t.$scope))throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}]}function An(){this.$get=["$window",function(window){return o(window.document)}]}function On(){this.$get=["$document","$rootScope",function(t,e){var n=t[0],i=n&&n.hidden;function r(){i=n.hidden}return t.on("visibilitychange",r),e.$on("$destroy",(function(){t.off("visibilitychange",r)})),function(){return i}}]}function _n(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}var Pn=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof o&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},In="application/json",Dn={"Content-Type":"application/json;charset=utf-8"},Mn=/^\[|^\{(?!\{)/,Ln={"[":/]$/,"{":/}$/},Rn=/^\)]\}',?\n/,jn=i("$http");function Vn(t){return H(t)?B(t)?t.toISOString():mt(t):t}function Nn(){this.$get=function(){return function(t){if(!t)return"";var e=[];return S(t,(function(t,n){null===t||V(t)||G(t)||(q(t)?C(t,(function(t){e.push(kt(n)+"="+kt(Vn(t)))})):e.push(kt(n)+"="+kt(Vn(t))))})),e.join("&")}}}function Hn(){this.$get=function(){return function(t){if(!t)return"";var e=[];return function t(n,i,r){q(n)?C(n,(function(e,n){t(e,i+"["+(H(e)?n:"")+"]")})):H(n)&&!B(n)?S(n,(function(e,n){t(e,i+(r?"":"[")+n+(r?"":"]"))})):(G(n)&&(n=n()),e.push(kt(i)+"="+(null==n?"":kt(Vn(n)))))}(t,"",!0),e.join("&")}}}function zn(t,e){if(F(t)){var n=t.replace(Rn,"").trim();if(n){var i=e("Content-Type"),r=i&&0===i.indexOf(In);if(r||(a=(o=n).match(Mn))&&Ln[a[0]].test(o))try{t=gt(n)}catch(e){if(!r)return t;throw jn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var o,a;return t}function Fn(t){var e,n=Ht();function i(t,e){t&&(n[t]=n[t]?n[t]+", "+e:e)}return F(t)?C(t.split("\n"),(function(t){e=t.indexOf(":"),i(h(tt(t.substr(0,e))),tt(t.substr(e+1)))})):H(t)&&C(t,(function(t,e){i(h(e),tt(t))})),n}function Un(t){var e;return function(n){if(e||(e=Fn(t)),n){var i=e[h(n)];return void 0===i&&(i=null),i}return e}}function Bn(t,e,n,i){return G(i)?i(t,e,n):(C(i,(function(i){t=i(t,e,n)})),t)}function qn(t){return 200<=t&&t<300}function Wn(){var t=this.defaults={transformResponse:[zn],transformRequest:[function(t){return!H(t)||(e=t,"[object File]"===g.call(e))||function(t){return"[object Blob]"===g.call(t)}(t)||function(t){return"[object FormData]"===g.call(t)}(t)?t:mt(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Ut(Dn),put:Ut(Dn),patch:Ut(Dn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},e=!1;this.useApplyAsync=function(t){return N(t)?(e=!!t,this):e};var n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(o,a,s,l,c,u,p,f){var m=l("$http");t.paramSerializer=F(t.paramSerializer)?p.get(t.paramSerializer):t.paramSerializer;var g=[];C(n,(function(t){g.unshift(F(t)?p.get(t):p.invoke(t))}));var v,y=(v=[cr].concat(r.map(hr)),function(t){var e=hr(t);return v.some(dr.bind(null,e))});function b(n){if(!H(n))throw i("$http")("badreq","Http request configuration must be an object.  Received: {0}",n);if(!F(f.valueOf(n.url)))throw i("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",n.url);var r=O({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer,jsonpCallbackParam:t.jsonpCallbackParam},n);r.headers=function(e){var n,i,r,o=t.headers,a=O({},e.headers);o=O({},o.common,o[h(e.method)]);t:for(n in o){for(r in i=h(n),a)if(h(r)===i)continue t;a[n]=o[n]}return function(t,e){var n,i={};return C(t,(function(t,r){G(t)?null!=(n=t(e))&&(i[r]=n):i[r]=t})),i}(a,Ut(e))}(n),r.method=d(r.method),r.paramSerializer=F(r.paramSerializer)?p.get(r.paramSerializer):r.paramSerializer,o.$$incOutstandingRequestCount("$http");var l=[],v=[],w=u.resolve(r);return C(g,(function(t){(t.request||t.requestError)&&l.unshift(t.request,t.requestError),(t.response||t.responseError)&&v.push(t.response,t.responseError)})),w=(w=x(w,l)).then((function(n){var i=n.headers,r=Bn(n.data,Un(i),void 0,n.transformRequest);V(r)&&C(i,(function(t,e){"content-type"===h(e)&&delete i[e]}));V(n.withCredentials)&&!V(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,i){var r,o,l=u.defer(),d=l.promise,p=n.headers,g="jsonp"===h(n.method),v=n.url;g?v=f.getTrustedResourceUrl(v):F(v)||(v=f.valueOf(v));v=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(v,n.paramSerializer(n.params)),g&&(v=function(t,e){var n=t.split("?");if(n.length>2)throw jn("badjsonp",'Illegal use more than one "?", in url, "{1}"',t);return C(Ct(n[1]),(function(n,i){if("JSON_CALLBACK"===n)throw jn("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',t);if(i===e)throw jn("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',e,t)})),t+=(-1===t.indexOf("?")?"?":"&")+e+"=JSON_CALLBACK"}(v,n.jsonpCallbackParam));b.pendingRequests.push(n),d.then(E,E),!n.cache&&!t.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(r=H(n.cache)?n.cache:H(t.cache)?t.cache:m);r&&(N(o=r.get(v))?J(o)?o.then(T,T):q(o)?k(o[1],o[0],Ut(o[2]),o[3],o[4]):k(o,200,{},"OK","complete"):r.put(v,d));if(V(o)){var w=y(n.url)?s()[n.xsrfCookieName||t.xsrfCookieName]:void 0;w&&(p[n.xsrfHeaderName||t.xsrfHeaderName]=w),a(n.method,v,i,S,p,n.timeout,n.withCredentials,n.responseType,x(n.eventHandlers),x(n.uploadEventHandlers))}return d;function x(t){if(t){var n={};return C(t,(function(t,i){n[i]=function(n){function i(){t(n)}e?c.$applyAsync(i):c.$$phase?i():c.$apply(i)}})),n}}function S(t,n,i,o,a){function s(){k(n,t,i,o,a)}r&&(qn(t)?r.put(v,[t,n,Fn(i),o,a]):r.remove(v)),e?c.$applyAsync(s):(s(),c.$$phase||c.$apply())}function k(t,e,i,r,o){(qn(e=e>=-1?e:0)?l.resolve:l.reject)({data:t,status:e,headers:Un(i),config:n,statusText:r,xhrStatus:o})}function T(t){k(t.data,t.status,Ut(t.headers()),t.statusText,t.xhrStatus)}function E(){var t=b.pendingRequests.indexOf(n);-1!==t&&b.pendingRequests.splice(t,1)}}(n,r).then(S,S)})),w=(w=x(w,v)).finally((function(){o.$$completeOutstandingRequest(M,"$http")}));function x(t,e){for(var n=0,i=e.length;n<i;){var r=e[n++],o=e[n++];t=t.then(r,o)}return e.length=0,t}function S(t){var e=O({},t);return e.data=Bn(t.data,t.headers,t.status,r.transformResponse),qn(t.status)?e:u.reject(e)}}return b.pendingRequests=[],function(t){C(arguments,(function(t){b[t]=function(e,n){return b(O({},n||{},{method:t,url:e}))}}))}("get","delete","head","jsonp"),function(t){C(arguments,(function(t){b[t]=function(e,n,i){return b(O({},i||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),b.defaults=t,b}]}function Gn(){this.$get=function(){return function(){return new window.XMLHttpRequest}}}function Yn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,i){return function(t,e,n,i,r){return function(r,a,s,l,c,u,d,p,f,m){if(a=a||t.url(),"jsonp"===h(r))var g=i.createCallback(a),v=o(a,g,(function(t,e){var n=200===t&&i.getResponse(g);E(l,t,n,"",e,"complete"),i.removeCallback(g)}));else{var y=e(r,a),b=!1;y.open(r,a,!0),C(c,(function(t,e){N(t)&&y.setRequestHeader(e,t)})),y.onload=function(){var t=y.statusText||"",e="response"in y?y.response:y.responseText,n=1223===y.status?204:y.status;0===n&&(n=e?200:"file"===hr(a).protocol?404:0),E(l,n,e,y.getAllResponseHeaders(),t,"complete")};var w=function(){E(l,-1,null,null,"","error")},x=function(){E(l,-1,null,null,"",b?"timeout":"abort")},S=function(){E(l,-1,null,null,"","timeout")};if(y.onerror=w,y.ontimeout=S,y.onabort=x,C(f,(function(t,e){y.addEventListener(e,t)})),C(m,(function(t,e){y.upload.addEventListener(e,t)})),d&&(y.withCredentials=!0),p)try{y.responseType=p}catch(t){if("json"!==p)throw t}y.send(V(s)?null:s)}if(u>0)var k=n((function(){T("timeout")}),u);else J(u)&&u.then((function(){T(N(u.$$timeoutId)?"timeout":"abort")}));function T(t){b="timeout"===t,v&&v(),y&&y.abort()}function E(t,e,i,r,o,a){N(k)&&n.cancel(k),v=y=null,t(e,i,r,o,a)}};function o(t,e,n){t=t.replace("JSON_CALLBACK",e);var o=r.createElement("script"),a=null;return o.type="text/javascript",o.src=t,o.async=!0,a=function(t){o.removeEventListener("load",a),o.removeEventListener("error",a),r.body.removeChild(o),o=null;var s=-1,l="unknown";t&&("load"!==t.type||i.wasCalled(e)||(t={type:"error"}),l=t.type,s="error"===t.type?404:200),n&&n(s,l)},o.addEventListener("load",a),o.addEventListener("error",a),r.body.appendChild(o),a}}(t,i,t.defer,e,n[0])}]}var Kn=b.$interpolateMinErr=i("$interpolate");function Xn(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,i,r){var o=t.length,a=e.length,s=new RegExp(t.replace(/./g,c),"g"),l=new RegExp(e.replace(/./g,c),"g");function c(t){return"\\\\\\"+t}function u(n){return n.replace(s,t).replace(l,e)}function h(t,e,n,i){var r=t.$watch((function(t){return r(),i(t)}),e,n);return r}function d(s,l,c,d){var p=c===r.URL||c===r.MEDIA_URL;if(!s.length||-1===s.indexOf(t)){if(l)return;var f=u(s);p&&(f=r.getTrusted(c,f));var m=R(f);return m.exp=s,m.expressions=[],m.$$watchDelegate=h,m}d=!!d;for(var g,v,y,b,w,x=0,C=[],S=s.length,k=[],T=[];x<S;){if(-1===(g=s.indexOf(t,x))||-1===(v=s.indexOf(e,g+o))){x!==S&&k.push(u(s.substring(x)));break}x!==g&&k.push(u(s.substring(x,g))),b=s.substring(g+o,v),C.push(b),x=v+a,T.push(k.length),k.push("")}w=1===k.length&&1===T.length;var E=p&&w?void 0:function(t){try{return t=c&&!p?r.getTrusted(c,t):r.valueOf(t),d&&!N(t)?t:zt(t)}catch(t){i(Kn.interr(s,t))}};if(y=C.map((function(t){return n(t,E)})),!l||C.length){var A=function(t){for(var e=0,n=C.length;e<n;e++){if(d&&V(t[e]))return;k[T[e]]=t[e]}return p?r.getTrusted(c,w?k[0]:k.join("")):(c&&k.length>1&&Kn.throwNoconcat(s),k.join(""))};return O((function(t){var e=0,n=C.length,r=new Array(n);try{for(;e<n;e++)r[e]=y[e](t);return A(r)}catch(t){i(Kn.interr(s,t))}}),{exp:s,expressions:C,$$watchDelegate:function(t,e){var n;return t.$watchGroup(y,(function(i,r){var o=A(i);e.call(this,o,i!==r?n:o,t),n=o}))}})}}return d.startSymbol=function(){return t},d.endSymbol=function(){return e},d}]}Kn.throwNoconcat=function(t){throw Kn("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",t)},Kn.interr=function(t,e){return Kn("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var Qn=i("$interval");function Jn(){this.$get=["$$intervalFactory","$window",function(t,e){var n={},i=function(t){e.clearInterval(t),delete n[t]},r=t((function(t,i,r){var o=e.setInterval(t,i);return n[o]=r,o}),i);return r.cancel=function(t){if(!t)return!1;if(!t.hasOwnProperty("$$intervalId"))throw Qn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(t.$$intervalId))return!1;var e=t.$$intervalId,r=n[e];return Fi(r.promise),r.reject("canceled"),i(e),!0},r}]}function Zn(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,i){return function(r,o){return function(a,s,l,c){var u=arguments.length>4,h=u?dt(arguments,4):[],d=0,p=N(c)&&!c,f=(p?n:e).defer(),m=f.promise;function g(){u?a.apply(null,h):a(d)}function v(){p?t.defer(g):i.$evalAsync(g),f.notify(d++),l>0&&d>=l&&(f.resolve(d),o(m.$$intervalId)),p||i.$apply()}return l=N(l)?l:0,m.$$intervalId=r(v,s,f,p),m}}}]}var ti=function(){this.$get=function(){var t=b.callbacks,e={};return{createCallback:function(n){var i="_"+(t.$$counter++).toString(36),r="angular.callbacks."+i,o=function(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}(i);return e[r]=t[i]=o,r},wasCalled:function(t){return e[t].called},getResponse:function(t){return e[t].data},removeCallback:function(n){var i=e[n];delete t[i.id],delete e[n]}}}},ei=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ni={http:80,https:443,ftp:21},ii=i("$location");function ri(t,e,n){var i,r=(i=[],C(e,(function(t,e){q(t)?C(t,(function(t){i.push(kt(e,!0)+(!0===t?"":"="+kt(t,!0)))})):i.push(kt(e,!0)+(!0===t?"":"="+kt(t,!0)))})),i.length?i.join("&"):""),o=n?"#"+St(n):"";return function(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=St(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(r?"?"+r:"")+o}function oi(t,e){var n=hr(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=P(n.port)||ni[n.protocol]||null}var ai=/^\s*[\\/]{2,}/;function si(t,e,n){if(ai.test(t))throw ii("badpath",'Invalid url "{0}".',t);var i="/"!==t.charAt(0);i&&(t="/"+t);var r=hr(t),o=i&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname;e.$$path=function(t,e){for(var n=t.split("/"),i=n.length;i--;)n[i]=decodeURIComponent(n[i]),e&&(n[i]=n[i].replace(/\//g,"%2F"));return n.join("/")}(o,n),e.$$search=Ct(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function li(t,e){return t.slice(0,e.length)===e}function ci(t,e){if(li(e,t))return e.substr(t.length)}function ui(t){var e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function hi(t,e,n){this.$$html5=!0,n=n||"",oi(t,this),this.$$parse=function(t){var n=ci(e,t);if(!F(n))throw ii("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,e);si(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(t){return e+t.substr(1)},this.$$parseLinkUrl=function(i,r){return r&&"#"===r[0]?(this.hash(r.slice(1)),!0):(N(o=ci(t,i))?(a=o,s=n&&N(o=ci(n,o))?e+(ci("/",o)||o):t+a):N(o=ci(e,i))?s=e+o:e===i+"/"&&(s=e),s&&this.$$parse(s),!!s);var o,a,s}}function di(t,e,n){oi(t,this),this.$$parse=function(i){var r,o=ci(t,i)||ci(e,i);V(o)||"#"!==o.charAt(0)?this.$$html5?r=o:(r="",V(o)&&(t=i,this.replace())):V(r=ci(n,o))&&(r=o),si(r,this,!1),this.$$path=function(t,e,n){var i,r=/^\/[A-Z]:(\/.*)/;li(e,n)&&(e=e.replace(n,""));if(r.exec(e))return t;return(i=r.exec(t))?i[1]:t}(this.$$path,r,t),this.$$compose()},this.$$normalizeUrl=function(e){return t+(e?n+e:"")},this.$$parseLinkUrl=function(e,n){return ui(t)===ui(e)&&(this.$$parse(e),!0)}}function pi(t,e,n){this.$$html5=!0,di.apply(this,arguments),this.$$parseLinkUrl=function(i,r){return r&&"#"===r[0]?(this.hash(r.slice(1)),!0):(t===ui(i)?o=i:(a=ci(e,i))?o=t+n+a:e===i+"/"&&(o=e),o&&this.$$parse(o),!!o);var o,a},this.$$normalizeUrl=function(e){return t+n+e}}var fi={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=ri(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:mi("$$absUrl"),url:function(t){if(V(t))return this.$$url;var e=ei.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:mi("$$protocol"),host:mi("$$host"),port:mi("$$port"),path:gi("$$path",(function(t){return"/"===(t=null!==t?t.toString():"").charAt(0)?t:"/"+t})),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(F(t)||U(t))t=t.toString(),this.$$search=Ct(t);else{if(!H(t))throw ii("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");C(t=at(t,{}),(function(e,n){null==e&&delete t[n]})),this.$$search=t}break;default:V(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:gi("$$hash",(function(t){return null!==t?t.toString():""})),replace:function(){return this.$$replace=!0,this}};function mi(t){return function(){return this[t]}}function gi(t,e){return function(n){return V(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function vi(){var t="!",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return N(e)?(t=e,this):t},this.html5Mode=function(t){return Q(t)?(e.enabled=t,this):H(t)?(Q(t.enabled)&&(e.enabled=t.enabled),Q(t.requireBase)&&(e.requireBase=t.requireBase),(Q(t.rewriteLinks)||F(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,i,r,a,s){var l,c,u,h,d=i.baseHref(),p=i.url();if(e.enabled){if(!d&&e.requireBase)throw ii("nobase","$location in HTML5 mode requires a <base> tag to be present!");u=(h=p).substring(0,h.indexOf("/",h.indexOf("//")+2))+(d||"/"),c=r.history?hi:pi}else u=ui(p),c=di;var f=function(t){return t.substr(0,ui(t).lastIndexOf("/")+1)}(u);(l=new c(u,f,"#"+t)).$$parseLinkUrl(p,p),l.$$state=i.state();var m=/^\s*(javascript|mailto):/i;function g(t,e,n){var r=l.url(),o=l.$$state;try{i.url(t,e,n),l.$$state=i.state()}catch(t){throw l.url(r),l.$$state=o,t}}a.on("click",(function(t){var r=e.rewriteLinks;if(r&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var s=o(t.target);"a"!==it(s[0]);)if(s[0]===a[0]||!(s=s.parent())[0])return;if(!F(r)||!V(s.attr(r))){var c=s.prop("href"),u=s.attr("href")||s.attr("xlink:href");H(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=hr(c.animVal).href),m.test(c)||!c||s.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(c,u)&&(t.preventDefault(),l.absUrl()!==i.url()&&n.$apply())}}})),l.absUrl()!==p&&i.url(l.absUrl(),!0);var v=!0;return i.onUrlChange((function(t,e){li(t,f)?(n.$evalAsync((function(){var i,r=l.absUrl(),o=l.$$state;l.$$parse(t),l.$$state=e,i=n.$broadcast("$locationChangeStart",t,r,e,o).defaultPrevented,l.absUrl()===t&&(i?(l.$$parse(r),l.$$state=o,g(r,!1,o)):(v=!1,y(r,o)))})),n.$$phase||n.$digest()):s.location.href=t})),n.$watch((function(){if(v||l.$$urlUpdatedByLocation){l.$$urlUpdatedByLocation=!1;var t=i.url(),e=l.absUrl(),o=i.state(),a=l.$$replace,s=!((c=t)===(u=e)||hr(c).href===hr(u).href)||l.$$html5&&r.history&&o!==l.$$state;(v||s)&&(v=!1,n.$evalAsync((function(){var e=l.absUrl(),i=n.$broadcast("$locationChangeStart",e,t,l.$$state,o).defaultPrevented;l.absUrl()===e&&(i?(l.$$parse(t),l.$$state=o):(s&&g(e,a,o===l.$$state?null:l.$$state),y(t,o)))})))}var c,u;l.$$replace=!1})),l;function y(t,e){n.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}}]}function yi(){var t=!0,e=this;this.debugEnabled=function(e){return N(e)?(t=e,this):t},this.$get=["$window",function(n){var i,o=r||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:s("log"),info:s("info"),warn:s("warn"),error:s("error"),debug:(i=s("debug"),function(){t&&i.apply(e,arguments)})};function a(t){return W(t)&&(t.stack&&o?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function s(t){var e=n.console||{},i=e[t]||e.log||M;return function(){var t=[];return C(arguments,(function(e){t.push(a(e))})),Function.prototype.apply.call(i,e,t)}}}]}C([pi,di,hi],(function(t){t.prototype=Object.create(fi),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==hi||!this.$$html5)throw ii("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=V(e)?null:e,this.$$urlUpdatedByLocation=!0,this}}));var bi=i("$parse"),wi={}.constructor.prototype.valueOf;function $i(t){return t+""}var xi=Ht();C("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(t){xi[t]=!0}));var Ci={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Si=function(t){this.options=t};Si.prototype={constructor:Si,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++;else if(this.isWhitespace(e))this.index++;else{var n=e+this.peek(),i=n+this.peek(2),r=xi[e],o=xi[n],a=xi[i];if(r||o||a){var s=a?i:o?n:e;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),i=e.charCodeAt(0);return n>=55296&&n<=56319&&i>=56320&&i<=57343?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var i=N(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw bi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,i,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=h(this.text.charAt(this.index));if("."===n||this.isNumber(n))t+=n;else{var i=this.peek();if("e"===n&&this.isExpOperator(i))t+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){var e=this.index;this.index++;for(var n="",i=t,r=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(i+=o,r){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=Ci[o]||o}r=!1}else if("\\"===o)r=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:i,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var ki=function(t,e){this.lexer=t,this.options=e};function Ti(t,e){return void 0!==t?t:e}function Ei(t,e){return void 0===t?e:void 0===e?t:t+e}ki.Program="Program",ki.ExpressionStatement="ExpressionStatement",ki.AssignmentExpression="AssignmentExpression",ki.ConditionalExpression="ConditionalExpression",ki.LogicalExpression="LogicalExpression",ki.BinaryExpression="BinaryExpression",ki.UnaryExpression="UnaryExpression",ki.CallExpression="CallExpression",ki.MemberExpression="MemberExpression",ki.Identifier="Identifier",ki.Literal="Literal",ki.ArrayExpression="ArrayExpression",ki.Property="Property",ki.ObjectExpression="ObjectExpression",ki.ThisExpression="ThisExpression",ki.LocalsExpression="LocalsExpression",ki.NGValueParameter="NGValueParameter",ki.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:ki.Program,body:t}},expressionStatement:function(){return{type:ki.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();if(this.expect("=")){if(!_i(t))throw bi("lval","Trying to assign a value to a non l-value");t={type:ki.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:ki.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:ki.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:ki.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:ki.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:ki.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:ki.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:ki.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:ki.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=at(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:ki.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:ki.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:ki.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:ki.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],n={type:ki.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return n},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:ki.Identifier,name:t.text}},constant:function(){return{type:ki.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:ki.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:ki.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:ki.ObjectExpression,properties:e}},throwError:function(t,e){throw bi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw bi("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw bi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,i){return this.peekAhead(0,t,e,n,i)},peekAhead:function(t,e,n,i,r){if(this.tokens.length>t){var o=this.tokens[t],a=o.text;if(a===e||a===n||a===i||a===r||!e&&!n&&!i&&!r)return o}return!1},expect:function(t,e,n,i){var r=this.peek(t,e,n,i);return!!r&&(this.tokens.shift(),r)},selfReferential:{this:{type:ki.ThisExpression},$locals:{type:ki.LocalsExpression}}};function Ai(t,e,n){var i,r,o,a=t.isPure=function(t,e){switch(t.type){case ki.MemberExpression:if(t.computed)return!1;break;case ki.UnaryExpression:return 1;case ki.BinaryExpression:return"+"!==t.operator&&1;case ki.CallExpression:return!1}return void 0===e?2:e}(t,n);switch(t.type){case ki.Program:i=!0,C(t.body,(function(t){Ai(t.expression,e,a),i=i&&t.expression.constant})),t.constant=i;break;case ki.Literal:t.constant=!0,t.toWatch=[];break;case ki.UnaryExpression:Ai(t.argument,e,a),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case ki.BinaryExpression:Ai(t.left,e,a),Ai(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case ki.LogicalExpression:Ai(t.left,e,a),Ai(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case ki.ConditionalExpression:Ai(t.test,e,a),Ai(t.alternate,e,a),Ai(t.consequent,e,a),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case ki.Identifier:t.constant=!1,t.toWatch=[t];break;case ki.MemberExpression:Ai(t.object,e,a),t.computed&&Ai(t.property,e,a),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=t.constant?[]:[t];break;case ki.CallExpression:o=!!t.filter&&function(t,e){return!t(e).$stateful}(e,t.callee.name),i=o,r=[],C(t.arguments,(function(t){Ai(t,e,a),i=i&&t.constant,r.push.apply(r,t.toWatch)})),t.constant=i,t.toWatch=o?r:[t];break;case ki.AssignmentExpression:Ai(t.left,e,a),Ai(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case ki.ArrayExpression:i=!0,r=[],C(t.elements,(function(t){Ai(t,e,a),i=i&&t.constant,r.push.apply(r,t.toWatch)})),t.constant=i,t.toWatch=r;break;case ki.ObjectExpression:i=!0,r=[],C(t.properties,(function(t){Ai(t.value,e,a),i=i&&t.value.constant,r.push.apply(r,t.value.toWatch),t.computed&&(Ai(t.key,e,!1),i=i&&t.key.constant,r.push.apply(r,t.key.toWatch))})),t.constant=i,t.toWatch=r;break;case ki.ThisExpression:case ki.LocalsExpression:t.constant=!1,t.toWatch=[]}}function Oi(t){if(1===t.length){var e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}}function _i(t){return t.type===ki.Identifier||t.type===ki.MemberExpression}function Pi(t){if(1===t.body.length&&_i(t.body[0].expression))return{type:ki.AssignmentExpression,left:t.body[0].expression,right:{type:ki.NGValueParameter},operator:"="}}function Ii(t){this.$filter=t}function Di(t){this.$filter=t}function Mi(t,e,n){this.ast=new ki(t,n),this.astCompiler=n.csp?new Di(e):new Ii(e)}function Li(t){return G(t.valueOf)?t.valueOf():wi.call(t)}function Ri(){var t,e,n=Ht(),i={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){i[t]=e},this.setIdentifierFns=function(n,i){return t=n,e=i,this},this.$get=["$filter",function(r){var o={csp:ct().noUnsafeEval,literals:at(i),isIdentifierStart:G(t)&&t,isIdentifierContinue:G(e)&&e};return a.$$getAst=function(t){return new Mi(new Si(o),r,o).getAst(t).ast},a;function a(t,e){var i,a;switch(typeof t){case"string":if(t=t.trim(),!(i=n[a=t]))i=new Mi(new Si(o),r,o).parse(t),n[a]=d(i);return p(i,e);case"function":return p(t,e);default:return p(M,e)}}function s(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Li(t))&&!n)&&(t===e||t!=t&&e!=e)}function l(t,e,n,i,r){var o,a=i.inputs;if(1===a.length){var l=s;return a=a[0],t.$watch((function(t){var e=a(t);return s(e,l,a.isPure)||(o=i(t,void 0,void 0,[e]),l=e&&Li(e)),o}),e,n,r)}for(var c=[],u=[],h=0,d=a.length;h<d;h++)c[h]=s,u[h]=null;return t.$watch((function(t){for(var e=!1,n=0,r=a.length;n<r;n++){var l=a[n](t);(e||(e=!s(l,c[n],a[n].isPure)))&&(u[n]=l,c[n]=l&&Li(l))}return e&&(o=i(t,void 0,void 0,u)),o}),e,n,r)}function c(t,e,n,i,r){var o,a,s=i.literal?u:N,l=i.$$intercepted||i,c=i.$$interceptor||L,h=i.inputs&&!l.inputs;return f.literal=i.literal,f.constant=i.constant,f.inputs=i.inputs,d(f),o=t.$watch(f,e,n,r);function p(){s(a)&&o()}function f(t,e,n,i){return a=h&&i?i[0]:l(t,e,n,i),s(a)&&t.$$postDigest(p),c(a)}}function u(t){var e=!0;return C(t,(function(t){N(t)||(e=!1)})),e}function h(t,e,n,i){var r=t.$watch((function(t){return r(),i(t)}),e,n);return r}function d(t){return t.constant?t.$$watchDelegate=h:t.oneTime?t.$$watchDelegate=c:t.inputs&&(t.$$watchDelegate=l),t}function p(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,i=function(i,r,o,a){var s=n&&a?a[0]:t(i,r,o,a);return e(s)};return i.$$intercepted=t,i.$$interceptor=e,i.literal=t.literal,i.oneTime=t.oneTime,i.constant=t.constant,e.$stateful||(n=!t.inputs,i.inputs=t.inputs?t.inputs:[t],e.$$pure||(i.inputs=i.inputs.map((function(t){return 2===t.isPure?function(e){return t(e)}:t})))),d(i)}}]}function ji(){var t=!0;this.$get=["$rootScope","$exceptionHandler",function(e,n){return Ni((function(t){e.$evalAsync(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return N(e)?(t=e,this):t}}function Vi(){var t=!0;this.$get=["$browser","$exceptionHandler",function(e,n){return Ni((function(t){e.defer(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return N(e)?(t=e,this):t}}function Ni(t,e,n){var r=i("$q",TypeError),o=0,a=[];function s(){return new l}function l(){var t=this.promise=new c;this.resolve=function(e){d(t,e)},this.reject=function(e){f(t,e)},this.notify=function(e){g(t,e)}}function c(){this.$$state={status:0}}function u(){for(;!o&&a.length;){var t=a.shift();if(!Hi(t)){zi(t);var n="Possibly unhandled rejection: "+Bt(t.value);W(t.value)?e(t.value,n):e(n)}}}function h(i){!n||i.pending||2!==i.status||Hi(i)||(0===o&&0===a.length&&t(u),a.push(i)),!i.processScheduled&&i.pending&&(i.processScheduled=!0,++o,t((function(){!function(i){var r,a,s;s=i.pending,i.processScheduled=!1,i.pending=void 0;try{for(var l=0,c=s.length;l<c;++l){zi(i),a=s[l][0],r=s[l][i.status];try{G(r)?d(a,r(i.value)):1===i.status?d(a,i.value):f(a,i.value)}catch(t){f(a,t),t&&!0===t.$$passToExceptionHandler&&e(t)}}}finally{--o,n&&0===o&&t(u)}}(i)})))}function d(t,e){t.$$state.status||(e===t?m(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):p(t,e))}function p(t,e){var n,i=!1;try{(H(e)||G(e))&&(n=e.then),G(n)?(t.$$state.status=-1,n.call(e,(function(e){if(i)return;i=!0,p(t,e)}),r,(function(e){g(t,e)}))):(t.$$state.value=e,t.$$state.status=1,h(t.$$state))}catch(t){r(t)}function r(e){i||(i=!0,m(t,e))}}function f(t,e){t.$$state.status||m(t,e)}function m(t,e){t.$$state.value=e,t.$$state.status=2,h(t.$$state)}function g(n,i){var r=n.$$state.pending;n.$$state.status<=0&&r&&r.length&&t((function(){for(var t,n,o=0,a=r.length;o<a;o++){n=r[o][0],t=r[o][3];try{g(n,G(t)?t(i):i)}catch(t){e(t)}}}))}function v(t){var e=new c;return f(e,t),e}function y(t,e,n){var i=null;try{G(n)&&(i=n())}catch(t){return v(t)}return J(i)?i.then((function(){return e(t)}),v):e(t)}function b(t,e,n,i){var r=new c;return d(r,t),r.then(e,n,i)}O(c.prototype,{then:function(t,e,n){if(V(t)&&V(e)&&V(n))return this;var i=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,t,e,n]),this.$$state.status>0&&h(this.$$state),i},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then((function(e){return y(e,w,t)}),(function(e){return y(e,v,t)}),e)}});var w=b;function x(t){if(!G(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);var e=new c;return t((function(t){d(e,t)}),(function(t){f(e,t)})),e}return x.prototype=c.prototype,x.defer=s,x.reject=v,x.when=b,x.resolve=w,x.all=function(t){var e=new c,n=0,i=q(t)?[]:{};return C(t,(function(t,r){n++,b(t).then((function(t){i[r]=t,--n||d(e,i)}),(function(t){f(e,t)}))})),0===n&&d(e,i),e},x.race=function(t){var e=s();return C(t,(function(t){b(t).then(e.resolve,e.reject)})),e.promise},x}function Hi(t){return!!t.pur}function zi(t){t.pur=!0}function Fi(t){t.$$state&&zi(t.$$state)}function Ui(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,i=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,r=!!n,o=r?function(t){var e=n(t);return function(){i(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=r,o}]}function Bi(){var t=10,e=i("$rootScope"),n=null,o=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(i,a,s){function l(t){t.currentScope.$$destroyed=!0}function c(t){9===r&&(t.$$childHead&&c(t.$$childHead),t.$$nextSibling&&c(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}function h(){this.$id=T(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}h.prototype={constructor:h,$new:function(t,e){var n;return e=e||this,t?(n=new h).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=T(),this.$$ChildScope=null,this.$$suspended=!1}return e.prototype=t,e}(this)),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,(t||e!==this)&&n.$on("$destroy",l),n},$watch:function(t,e,i,r){var o=a(t),s=G(e)?e:M;if(o.$$watchDelegate)return o.$$watchDelegate(this,s,i,o,t);var l=this,c=l.$$watchers,u={fn:s,last:S,get:o,exp:r||t,eq:!!i};return n=null,c||((c=l.$$watchers=[]).$$digestWatchIndex=-1),c.unshift(u),c.$$digestWatchIndex++,b(this,1),function(){var t=ot(c,u);t>=0&&(b(l,-1),t<c.$$digestWatchIndex&&c.$$digestWatchIndex--),n=null}},$watchGroup:function(t,e){var n=new Array(t.length),i=new Array(t.length),r=[],o=this,a=!1,s=!0;if(!t.length){var l=!0;return o.$evalAsync((function(){l&&e(i,i,o)})),function(){l=!1}}if(1===t.length)return this.$watch(t[0],(function(t,r,o){i[0]=t,n[0]=r,e(i,t===r?i:n,o)}));function c(){a=!1;try{s?(s=!1,e(i,i,o)):e(i,n,o)}finally{for(var r=0;r<t.length;r++)n[r]=i[r]}}return C(t,(function(t,e){var n=o.$watch(t,(function(t){i[e]=t,a||(a=!0,o.$evalAsync(c))}));r.push(n)})),function(){for(;r.length;)r.shift()()}},$watchCollection:function(t,e){m.$$pure=a(t).literal,m.$stateful=!m.$$pure;var n,i,r,o=this,s=e.length>1,l=0,c=a(t,m),h=[],d={},p=!0,f=0;function m(t){var e,r,o,a;if(!V(n=t)){if(H(n))if(x(n)){i!==h&&(f=(i=h).length=0,l++),e=n.length,f!==e&&(l++,i.length=f=e);for(var s=0;s<e;s++)a=i[s],o=n[s],a!=a&&o!=o||a===o||(l++,i[s]=o)}else{for(r in i!==d&&(i=d={},f=0,l++),e=0,n)u.call(n,r)&&(e++,o=n[r],a=i[r],r in i?a!=a&&o!=o||a===o||(l++,i[r]=o):(f++,i[r]=o,l++));if(f>e)for(r in l++,i)u.call(n,r)||(f--,delete i[r])}else i!==n&&(i=n,l++);return l}}return this.$watch(c,(function(){if(p?(p=!1,e(n,n,o)):e(n,r,o),s)if(H(n))if(x(n)){r=new Array(n.length);for(var t=0;t<n.length;t++)r[t]=n[t]}else for(var i in r={},n)u.call(n,i)&&(r[i]=n[i]);else r=n}))},$digest:function(){var r,a,l,c,u,h,m,b,w,x=t,C=p.length?d:this,T=[];v("$digest"),s.$$checkUrlChange(),this===d&&null!==o&&(s.defer.cancel(o),k()),n=null;do{u=!1,m=C;for(var E=0;E<p.length;E++){try{(0,(w=p[E]).fn)(w.scope,w.locals)}catch(t){i(t)}n=null}p.length=0;t:do{if(c=!m.$$suspended&&m.$$watchers)for(c.$$digestWatchIndex=c.length;c.$$digestWatchIndex--;)try{if(r=c[c.$$digestWatchIndex])if((a=(0,r.get)(m))===(l=r.last)||(r.eq?lt(a,l):I(a)&&I(l))){if(r===n){u=!1;break t}}else u=!0,n=r,r.last=r.eq?at(a,null):a,(0,r.fn)(a,l===S?a:l,m),x<5&&(T[b=4-x]||(T[b]=[]),T[b].push({msg:G(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:a,oldVal:l}))}catch(t){i(t)}if(!(h=!m.$$suspended&&m.$$watchersCount&&m.$$childHead||m!==C&&m.$$nextSibling))for(;m!==C&&!(h=m.$$nextSibling);)m=m.$parent}while(m=h);if((u||p.length)&&!x--)throw y(),e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,T)}while(u||p.length);for(y();g<f.length;)try{f[g++]()}catch(t){i(t)}f.length=g=0,s.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;for(var e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===d&&s.$$applicationDestroyed(),b(this,-this.$$watchersCount),this.$$listenerCount)w(this,this.$$listenerCount[e],e);t&&t.$$childHead===this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail===this&&(t.$$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=M,this.$on=this.$watch=this.$watchGroup=function(){return M},this.$$listeners={},this.$$nextSibling=null,c(this)}},$eval:function(t,e){return a(t)(this,e)},$evalAsync:function(t,e){d.$$phase||p.length||s.defer((function(){p.length&&d.$digest()}),null,"$evalAsync"),p.push({scope:this,fn:a(t),locals:e})},$$postDigest:function(t){f.push(t)},$apply:function(t){try{v("$apply");try{return this.$eval(t)}finally{y()}}catch(t){i(t)}finally{try{d.$digest()}catch(t){throw i(t),t}}},$applyAsync:function(t){var e=this;t&&m.push((function(){e.$eval(t)})),t=a(t),null===o&&(o=s.defer((function(){d.$apply(k)}),null,"$applyAsync"))},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var i=this;do{i.$$listenerCount[t]||(i.$$listenerCount[t]=0),i.$$listenerCount[t]++}while(i=i.$parent);var r=this;return function(){var i=n.indexOf(e);-1!==i&&(delete n[i],w(r,1,t))}},$emit:function(t,e){var n,r,o,a=[],s=this,l=!1,c={name:t,targetScope:s,stopPropagation:function(){l=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},u=ht([c],arguments,1);do{for(n=s.$$listeners[t]||a,c.currentScope=s,r=0,o=n.length;r<o;r++)if(n[r])try{n[r].apply(null,u)}catch(t){i(t)}else n.splice(r,1),r--,o--;if(l)break;s=s.$parent}while(s);return c.currentScope=null,c},$broadcast:function(t,e){var n=this,r=n,o=n,a={name:t,targetScope:n,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return a;for(var s,l,c,u=ht([a],arguments,1);r=o;){for(a.currentScope=r,l=0,c=(s=r.$$listeners[t]||[]).length;l<c;l++)if(s[l])try{s[l].apply(null,u)}catch(t){i(t)}else s.splice(l,1),l--,c--;if(!(o=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(o=r.$$nextSibling);)r=r.$parent}return a.currentScope=null,a}};var d=new h,p=d.$$asyncQueue=[],f=d.$$postDigestQueue=[],m=d.$$applyAsyncQueue=[],g=0;return d;function v(t){if(d.$$phase)throw e("inprog","{0} already in progress",d.$$phase);d.$$phase=t}function y(){d.$$phase=null}function b(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function w(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function S(){}function k(){for(;m.length;)try{m.shift()()}catch(t){i(t)}o=null}}]}function qi(){var t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return N(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return N(t)?(e=t,this):e},this.$get=function(){return function(n,i){var r=i?e:t,o=hr(n&&n.trim()).href;return""===o||o.match(r)?n:"unsafe:"+o}}}Ii.prototype={compile:function(t){var e=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Ai(t,e.$filter);var n,i="";if(this.stage="assign",n=Pi(t)){this.state.computing="assign";var r=this.nextId();this.recurse(n,r),this.return_(r),i="fn.assign="+this.generateFunction("assign","s,v,l")}var o=Oi(t.body);e.stage="inputs",C(o,(function(t,n){var i="fn"+n;e.state[i]={vars:[],body:[],own:{}},e.state.computing=i;var r=e.nextId();e.recurse(t,r),e.return_(r),e.state.inputs.push({name:i,isPure:t.isPure}),t.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(t);var a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+i+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",a)(this.$filter,$i,Ti,Ei);return this.state=this.stage=void 0,s},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return C(e,(function(e){t.push("var "+e.name+"="+n.generateFunction(e.name,"s")),e.isPure&&t.push(e.name,".isPure="+JSON.stringify(e.isPure)+";")})),e.length&&t.push("fn.inputs=["+e.map((function(t){return t.name})).join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return C(this.state.filters,(function(n,i){t.push(n+"=$filter("+e.escape(i)+")")})),t.length?"var "+t.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(t,e,n,i,r,o){var a,s,l,c,u,h=this;if(i=i||M,!o&&N(t.watchId))return e=e||this.nextId(),void this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,i,r,!0));switch(t.type){case ki.Program:C(t.body,(function(e,n){h.recurse(e.expression,void 0,void 0,(function(t){s=t})),n!==t.body.length-1?h.current().body.push(s,";"):h.return_(s)}));break;case ki.Literal:c=this.escape(t.value),this.assign(e,c),i(e||c);break;case ki.UnaryExpression:this.recurse(t.argument,void 0,void 0,(function(t){s=t})),c=t.operator+"("+this.ifDefined(s,0)+")",this.assign(e,c),i(c);break;case ki.BinaryExpression:this.recurse(t.left,void 0,void 0,(function(t){a=t})),this.recurse(t.right,void 0,void 0,(function(t){s=t})),c="+"===t.operator?this.plus(a,s):"-"===t.operator?this.ifDefined(a,0)+t.operator+this.ifDefined(s,0):"("+a+")"+t.operator+"("+s+")",this.assign(e,c),i(c);break;case ki.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&&"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case ki.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case ki.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),(function(){h.if_("inputs"===h.stage||"s",(function(){r&&1!==r&&h.if_(h.isNull(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))}))}),e&&h.lazyAssign(e,h.nonComputedMember("l",t.name))),i(e);break;case ki.MemberExpression:a=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,a,void 0,(function(){h.if_(h.notNull(a),(function(){t.computed?(s=h.nextId(),h.recurse(t.property,s),h.getStringValue(s),r&&1!==r&&h.if_(h.not(h.computedMember(a,s)),h.lazyAssign(h.computedMember(a,s),"{}")),c=h.computedMember(a,s),h.assign(e,c),n&&(n.computed=!0,n.name=s)):(r&&1!==r&&h.if_(h.isNull(h.nonComputedMember(a,t.property.name)),h.lazyAssign(h.nonComputedMember(a,t.property.name),"{}")),c=h.nonComputedMember(a,t.property.name),h.assign(e,c),n&&(n.computed=!1,n.name=t.property.name))}),(function(){h.assign(e,"undefined")})),i(e)}),!!r);break;case ki.CallExpression:e=e||this.nextId(),t.filter?(s=h.filter(t.callee.name),l=[],C(t.arguments,(function(t){var e=h.nextId();h.recurse(t,e),l.push(e)})),c=s+"("+l.join(",")+")",h.assign(e,c),i(e)):(s=h.nextId(),a={},l=[],h.recurse(t.callee,s,a,(function(){h.if_(h.notNull(s),(function(){C(t.arguments,(function(e){h.recurse(e,t.constant?void 0:h.nextId(),void 0,(function(t){l.push(t)}))})),c=a.name?h.member(a.context,a.name,a.computed)+"("+l.join(",")+")":s+"("+l.join(",")+")",h.assign(e,c)}),(function(){h.assign(e,"undefined")})),i(e)})));break;case ki.AssignmentExpression:s=this.nextId(),a={},this.recurse(t.left,void 0,a,(function(){h.if_(h.notNull(a.context),(function(){h.recurse(t.right,s),c=h.member(a.context,a.name,a.computed)+t.operator+s,h.assign(e,c),i(e||c)}))}),1);break;case ki.ArrayExpression:l=[],C(t.elements,(function(e){h.recurse(e,t.constant?void 0:h.nextId(),void 0,(function(t){l.push(t)}))})),c="["+l.join(",")+"]",this.assign(e,c),i(e||c);break;case ki.ObjectExpression:l=[],u=!1,C(t.properties,(function(t){t.computed&&(u=!0)})),u?(e=e||this.nextId(),this.assign(e,"{}"),C(t.properties,(function(t){t.computed?(a=h.nextId(),h.recurse(t.key,a)):a=t.key.type===ki.Identifier?t.key.name:""+t.key.value,s=h.nextId(),h.recurse(t.value,s),h.assign(h.member(e,a,t.computed),s)}))):(C(t.properties,(function(e){h.recurse(e.value,t.constant?void 0:h.nextId(),void 0,(function(t){l.push(h.escape(e.key.type===ki.Identifier?e.key.name:""+e.key.value)+":"+t)}))})),c="{"+l.join(",")+"}",this.assign(e,c)),i(e||c);break;case ki.ThisExpression:this.assign(e,"s"),i(e||"s");break;case ki.LocalsExpression:this.assign(e,"l"),i(e||"l");break;case ki.NGValueParameter:this.assign(e,"v"),i(e||"v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),i[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){if(!0===t)e();else{var i=this.current().body;i.push("if(",t,"){"),e(),i.push("}"),n&&(i.push("else{"),n(),i.push("}"))}},not:function(t){return"!("+t+")"},isNull:function(t){return t+"==null"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?t+"."+e:t+'["'+e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},lazyRecurse:function(t,e,n,i,r,o){var a=this;return function(){a.recurse(t,e,n,i,r,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(F(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(U(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw bi("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},Di.prototype={compile:function(t){var e,n,i=this;Ai(t,i.$filter),(e=Pi(t))&&(n=this.recurse(e));var r,o=Oi(t.body);o&&(r=[],C(o,(function(t,e){var n=i.recurse(t);n.isPure=t.isPure,t.input=n,r.push(n),t.watchId=e})));var a=[];C(t.body,(function(t){a.push(i.recurse(t.expression))}));var s=0===t.body.length?M:1===t.body.length?a[0]:function(t,e){var n;return C(a,(function(i){n=i(t,e)})),n};return n&&(s.assign=function(t,e,i){return n(t,i,e)}),r&&(s.inputs=r),s},recurse:function(t,e,n){var i,r,o,a=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case ki.Literal:return this.value(t.value,e);case ki.UnaryExpression:return r=this.recurse(t.argument),this["unary"+t.operator](r,e);case ki.BinaryExpression:case ki.LogicalExpression:return i=this.recurse(t.left),r=this.recurse(t.right),this["binary"+t.operator](i,r,e);case ki.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case ki.Identifier:return a.identifier(t.name,e,n);case ki.MemberExpression:return i=this.recurse(t.object,!1,!!n),t.computed||(r=t.property.name),t.computed&&(r=this.recurse(t.property)),t.computed?this.computedMember(i,r,e,n):this.nonComputedMember(i,r,e,n);case ki.CallExpression:return o=[],C(t.arguments,(function(t){o.push(a.recurse(t))})),t.filter&&(r=this.$filter(t.callee.name)),t.filter||(r=this.recurse(t.callee,!0)),t.filter?function(t,n,i,a){for(var s=[],l=0;l<o.length;++l)s.push(o[l](t,n,i,a));var c=r.apply(void 0,s,a);return e?{context:void 0,name:void 0,value:c}:c}:function(t,n,i,a){var s,l=r(t,n,i,a);if(null!=l.value){for(var c=[],u=0;u<o.length;++u)c.push(o[u](t,n,i,a));s=l.value.apply(l.context,c)}return e?{value:s}:s};case ki.AssignmentExpression:return i=this.recurse(t.left,!0,1),r=this.recurse(t.right),function(t,n,o,a){var s=i(t,n,o,a),l=r(t,n,o,a);return s.context[s.name]=l,e?{value:l}:l};case ki.ArrayExpression:return o=[],C(t.elements,(function(t){o.push(a.recurse(t))})),function(t,n,i,r){for(var a=[],s=0;s<o.length;++s)a.push(o[s](t,n,i,r));return e?{value:a}:a};case ki.ObjectExpression:return o=[],C(t.properties,(function(t){t.computed?o.push({key:a.recurse(t.key),computed:!0,value:a.recurse(t.value)}):o.push({key:t.key.type===ki.Identifier?t.key.name:""+t.key.value,computed:!1,value:a.recurse(t.value)})})),function(t,n,i,r){for(var a={},s=0;s<o.length;++s)o[s].computed?a[o[s].key(t,n,i,r)]=o[s].value(t,n,i,r):a[o[s].key]=o[s].value(t,n,i,r);return e?{value:a}:a};case ki.ThisExpression:return function(t){return e?{value:t}:t};case ki.LocalsExpression:return function(t,n){return e?{value:n}:n};case ki.NGValueParameter:return function(t,n,i){return e?{value:i}:i}}},"unary+":function(t,e){return function(n,i,r,o){var a=t(n,i,r,o);return a=N(a)?+a:0,e?{value:a}:a}},"unary-":function(t,e){return function(n,i,r,o){var a=t(n,i,r,o);return a=N(a)?-a:-0,e?{value:a}:a}},"unary!":function(t,e){return function(n,i,r,o){var a=!t(n,i,r,o);return e?{value:a}:a}},"binary+":function(t,e,n){return function(i,r,o,a){var s=Ei(t(i,r,o,a),e(i,r,o,a));return n?{value:s}:s}},"binary-":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a),l=e(i,r,o,a),c=(N(s)?s:0)-(N(l)?l:0);return n?{value:c}:c}},"binary*":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)*e(i,r,o,a);return n?{value:s}:s}},"binary/":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)/e(i,r,o,a);return n?{value:s}:s}},"binary%":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)%e(i,r,o,a);return n?{value:s}:s}},"binary===":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)===e(i,r,o,a);return n?{value:s}:s}},"binary!==":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)!==e(i,r,o,a);return n?{value:s}:s}},"binary==":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)==e(i,r,o,a);return n?{value:s}:s}},"binary!=":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)!=e(i,r,o,a);return n?{value:s}:s}},"binary<":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)<e(i,r,o,a);return n?{value:s}:s}},"binary>":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)>e(i,r,o,a);return n?{value:s}:s}},"binary<=":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)<=e(i,r,o,a);return n?{value:s}:s}},"binary>=":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)>=e(i,r,o,a);return n?{value:s}:s}},"binary&&":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)&&e(i,r,o,a);return n?{value:s}:s}},"binary||":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a)||e(i,r,o,a);return n?{value:s}:s}},"ternary?:":function(t,e,n,i){return function(r,o,a,s){var l=t(r,o,a,s)?e(r,o,a,s):n(r,o,a,s);return i?{value:l}:l}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n){return function(i,r,o,a){var s=r&&t in r?r:i;n&&1!==n&&s&&null==s[t]&&(s[t]={});var l=s?s[t]:void 0;return e?{context:s,name:t,value:l}:l}},computedMember:function(t,e,n,i){return function(r,o,a,s){var l,c,u=t(r,o,a,s);return null!=u&&(l=$i(l=e(r,o,a,s)),i&&1!==i&&u&&!u[l]&&(u[l]={}),c=u[l]),n?{context:u,name:l,value:c}:c}},nonComputedMember:function(t,e,n,i){return function(r,o,a,s){var l=t(r,o,a,s);i&&1!==i&&l&&null==l[e]&&(l[e]={});var c=null!=l?l[e]:void 0;return n?{context:l,name:e,value:c}:c}},inputs:function(t,e){return function(n,i,r,o){return o?o[e]:t(n,i,r)}}},Mi.prototype={constructor:Mi,parse:function(t){var e=this.getAst(t),n=this.astCompiler.compile(e.ast);return n.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===ki.Literal||t.body[0].expression.type===ki.ArrayExpression||t.body[0].expression.type===ki.ObjectExpression)}(e.ast),n.constant=function(t){return t.constant}(e.ast),n.oneTime=e.oneTime,n},getAst:function(t){var e=!1;return":"===(t=t.trim()).charAt(0)&&":"===t.charAt(1)&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}};var Wi=i("$sce"),Gi={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Yi=/_([a-z])/g;function Ki(t){return t.replace(Yi,Jt)}function Xi(t){var e=[];return N(t)&&C(t,(function(t){e.push(function(t){if("self"===t)return t;if(F(t)){if(t.indexOf("***")>-1)throw Wi("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=et(t).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+t+"$")}if(Y(t))return new RegExp("^"+t.source+"$");throw Wi("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))})),e}function Qi(){this.SCE_CONTEXTS=Gi;var t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=Xi(e)),t},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(t){this.trustedResourceUrlList=t}}),this.bannedResourceUrlList=function(t){return arguments.length&&(e=Xi(t)),e},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(t){this.bannedResourceUrlList=t}}),this.$get=["$injector","$$sanitizeUri",function(n,i){var r=function(t){throw Wi("unsafe","Attempting to use an unsafe value in a safe context.")};function o(t,e){return"self"===t?dr(e,cr)||function(t){return dr(t,function(){if(window.document.baseURI)return window.document.baseURI;sr||((sr=window.document.createElement("a")).href=".",sr=sr.cloneNode(!1));return sr.href}())}(e):!!t.exec(e.href)}function a(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(r=n.get("$sanitize"));var s=a(),l={};return l[Gi.HTML]=a(s),l[Gi.CSS]=a(s),l[Gi.MEDIA_URL]=a(s),l[Gi.URL]=a(l[Gi.MEDIA_URL]),l[Gi.JS]=a(s),l[Gi.RESOURCE_URL]=a(l[Gi.URL]),{trustAs:function(t,e){var n=l.hasOwnProperty(t)?l[t]:null;if(!n)throw Wi("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||V(e)||""===e)return e;if("string"!=typeof e)throw Wi("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,a){if(null===a||V(a)||""===a)return a;var s=l.hasOwnProperty(n)?l[n]:null;if(s&&a instanceof s)return a.$$unwrapTrustedValue();if(G(a.$$unwrapTrustedValue)&&(a=a.$$unwrapTrustedValue()),n===Gi.MEDIA_URL||n===Gi.URL)return i(a.toString(),n===Gi.MEDIA_URL);if(n===Gi.RESOURCE_URL){if(function(n){var i,r,a=hr(n.toString()),s=!1;for(i=0,r=t.length;i<r;i++)if(o(t[i],a)){s=!0;break}if(s)for(i=0,r=e.length;i<r;i++)if(o(e[i],a)){s=!1;break}return s}(a))return a;throw Wi("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",a.toString())}if(n===Gi.HTML)return r(a);throw Wi("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof s?t.$$unwrapTrustedValue():t}}}]}function Ji(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&r<8)throw Wi("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var i=Ut(Gi);i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=L),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,(function(e){return i.getTrusted(t,e)}))};var o=i.parseAs,a=i.getTrusted,s=i.trustAs;return C(Gi,(function(t,e){var n=h(e);i[Ki("parse_as_"+n)]=function(e){return o(t,e)},i[Ki("get_trusted_"+n)]=function(e){return a(t,e)},i[Ki("trust_as_"+n)]=function(e){return s(t,e)}})),i}]}function Zi(){this.$get=["$window","$document",function(t,e){var n={},i=!(!(t.nw&&t.nw.process)&&t.chrome&&(t.chrome.app&&t.chrome.app.runtime||!t.chrome.app&&t.chrome.runtime&&t.chrome.runtime.id))&&t.history&&t.history.pushState,o=P((/android (\d+)/.exec(h((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},l=s.body&&s.body.style,c=!1,u=!1;return l&&(c=!(!("transition"in l)&&!("webkitTransition"in l)),u=!(!("animation"in l)&&!("webkitAnimation"in l))),{history:!(!i||o<4||a),hasEvent:function(t){if("input"===t&&r)return!1;if(V(n[t])){var e=s.createElement("div");n[t]="on"+t in e}return n[t]},csp:ct(),transitions:c,animations:u,android:o}}]}function tr(){this.$get=R((function(t){return new er(t)}))}function er(t){var e=this,n={},i=[],r=e.ALL_TASKS_TYPE="$$all$$",o=e.DEFAULT_TASK_TYPE="$$default$$";function a(){var t=i.pop();return t&&t.cb}function s(t){for(var e=i.length-1;e>=0;--e){var n=i[e];if(n.type===t)return i.splice(e,1),n.cb}}e.completeTask=function(e,i){i=i||o;try{e()}finally{!function(t){n[t=t||o]&&(n[t]--,n[r]--)}(i);var l=n[i],c=n[r];if(!c||!l)for(var u,h=c?s:a;u=h(i);)try{u()}catch(e){t.error(e)}}},e.incTaskCount=function(t){n[t=t||o]=(n[t]||0)+1,n[r]=(n[r]||0)+1},e.notifyWhenNoPendingTasks=function(t,e){n[e=e||r]?i.push({type:e,cb:t}):t()}}var nr=i("$templateRequest");function ir(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,i,r,o){function a(s,l){a.totalPendingRequests++,F(s)&&!V(n.get(s))||(s=o.getTrustedResourceUrl(s));var c=i.defaults&&i.defaults.transformResponse;return q(c)?c=c.filter((function(t){return t!==zn})):c===zn&&(c=null),i.get(s,O({cache:n,transformResponse:c},t)).finally((function(){a.totalPendingRequests--})).then((function(t){return n.put(s,t.data)}),(function(t){l||(t=nr("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,t.status,t.statusText),e(t));return r.reject(t)}))}return a.totalPendingRequests=0,a}]}function rr(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var i={findBindings:function(t,e,n){var i=t.getElementsByClassName("ng-binding"),r=[];return C(i,(function(t){var i=b.element(t).data("$binding");i&&C(i,(function(i){n?new RegExp("(^|\\s)"+et(e)+"(\\s|\\||$)").test(i)&&r.push(t):-1!==i.indexOf(e)&&r.push(t)}))})),r},findModels:function(t,e,n){for(var i=["ng-","data-ng-","ng\\:"],r=0;r<i.length;++r){var o="["+i[r]+"model"+(n?"=":"*=")+'"'+e+'"]',a=t.querySelectorAll(o);if(a.length)return a}},getLocation:function(){return n.url()},setLocation:function(e){e!==n.url()&&(n.url(e),t.$digest())},whenStable:function(t){e.notifyWhenNoOutstandingRequests(t)}};return i}]}var or=i("$timeout");function ar(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,i,r){var o={};function a(a,s,l){G(a)||(l=s,s=a,a=M);var c,u=dt(arguments,3),h=N(l)&&!l,d=(h?i:n).defer(),p=d.promise;return c=e.defer((function(){try{d.resolve(a.apply(null,u))}catch(t){d.reject(t),r(t)}finally{delete o[p.$$timeoutId]}h||t.$apply()}),s,"$timeout"),p.$$timeoutId=c,o[c]=d,p}return a.cancel=function(t){if(!t)return!1;if(!t.hasOwnProperty("$$timeoutId"))throw or("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(t.$$timeoutId))return!1;var n=t.$$timeoutId,i=o[n];return Fi(i.promise),i.reject("canceled"),delete o[n],e.defer.cancel(n)},a}]}var sr,lr=window.document.createElement("a"),cr=hr(window.location.href);lr.href="http://[::1]";var ur="[::1]"===lr.hostname;function hr(t){if(!F(t))return t;var e=t;r&&(lr.setAttribute("href",e),e=lr.href),lr.setAttribute("href",e);var n=lr.hostname;return!ur&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:lr.href,protocol:lr.protocol?lr.protocol.replace(/:$/,""):"",host:lr.host,search:lr.search?lr.search.replace(/^\?/,""):"",hash:lr.hash?lr.hash.replace(/^#/,""):"",hostname:n,port:lr.port,pathname:"/"===lr.pathname.charAt(0)?lr.pathname:"/"+lr.pathname}}function dr(t,e){return t=hr(t),e=hr(e),t.protocol===e.protocol&&t.host===e.host}function pr(){this.$get=R(window)}function fr(t){var e=t[0]||{},n={},i="";function r(t){try{return decodeURIComponent(t)}catch(e){return t}}return function(){var t,o,a,s,l,c=function(t){try{return t.cookie||""}catch(t){return""}}(e);if(c!==i)for(t=(i=c).split("; "),n={},a=0;a<t.length;a++)(s=(o=t[a]).indexOf("="))>0&&(l=r(o.substring(0,s)),V(n[l])&&(n[l]=r(o.substring(s+1))));return n}}function mr(){this.$get=fr}function gr(t){var e="Filter";function n(i,r){if(H(i)){var o={};return C(i,(function(t,e){o[e]=n(e,t)})),o}return t.factory(i+e,r)}this.register=n,this.$get=["$injector",function(t){return function(n){return t.get(n+e)}}],n("currency",wr),n("date",Ir),n("filter",vr),n("json",Dr),n("limitTo",Rr),n("lowercase",Mr),n("number",$r),n("orderBy",Vr),n("uppercase",Lr)}function vr(){return function(t,e,n,r){if(!x(t)){if(null==t)return t;throw i("filter")("notarray","Expected array but received: {0}",t)}var o,a;switch(r=r||"$",br(e)){case"function":o=e;break;case"boolean":case"null":case"number":case"string":a=!0;case"object":o=function(t,e,n,i){var r=H(t)&&n in t;!0===e?e=lt:G(e)||(e=function(t,e){return!V(t)&&(null===t||null===e?t===e:!(H(e)||H(t)&&!j(t))&&(t=h(""+t),e=h(""+e),-1!==t.indexOf(e)))});return function(o){return r&&!H(o)?yr(o,t[n],e,n,!1):yr(o,t,e,n,i)}}(e,n,r,a);break;default:return t}return Array.prototype.filter.call(t,o)}}function yr(t,e,n,i,r,o){var a=br(t),s=br(e);if("string"===s&&"!"===e.charAt(0))return!yr(t,e.substring(1),n,i,r);if(q(t))return t.some((function(t){return yr(t,e,n,i,r)}));switch(a){case"object":var l;if(r){for(l in t)if(l.charAt&&"$"!==l.charAt(0)&&yr(t[l],e,n,i,!0))return!0;return!o&&yr(t,e,n,i,!1)}if("object"===s){for(l in e){var c=e[l];if(!G(c)&&!V(c)){var u=l===i;if(!yr(u?t:t[l],c,n,i,u,u))return!1}}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function br(t){return null===t?"null":typeof t}fr.$inject=["$document"],gr.$inject=["$provide"];function wr(t){var e=t.NUMBER_FORMATS;return function(t,n,i){V(n)&&(n=e.CURRENCY_SYM),V(i)&&(i=e.PATTERNS[1].maxFrac);var r=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==t?t:xr(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,i).replace(r,n)}}function $r(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:xr(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function xr(t,e,n,i,r){if(!F(t)&&!U(t)||isNaN(t))return"";var o,a=!isFinite(t),s=!1,l=Math.abs(t)+"",c="";if(a)c="∞";else{o=function(t){var e,n,i,r,o,a=0;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(n<0&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):n<0&&(n=t.length),i=0;"0"===t.charAt(i);i++);if(i===(o=t.length))e=[0],n=1;else{for(o--;"0"===t.charAt(o);)o--;for(n-=i,e=[],r=0;i<=o;i++,r++)e[r]=+t.charAt(i)}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{d:e,e:a,i:n}}(l),function(t,e,n,i){var r=t.d,o=r.length-t.i,a=(e=V(e)?Math.min(Math.max(n,o),i):+e)+t.i,s=r[a];if(a>0){r.splice(Math.max(t.i,a));for(var l=a;l<r.length;l++)r[l]=0}else{o=Math.max(0,o),t.i=1,r.length=Math.max(1,a=e+1),r[0]=0;for(var c=1;c<a;c++)r[c]=0}if(s>=5)if(a-1<0){for(var u=0;u>a;u--)r.unshift(0),t.i++;r.unshift(1),t.i++}else r[a-1]++;for(;o<Math.max(0,e);o++)r.push(0);var h=r.reduceRight((function(t,e,n,i){return e+=t,i[n]=e%10,Math.floor(e/10)}),0);h&&(r.unshift(h),t.i++)}(o,r,e.minFrac,e.maxFrac);var u=o.d,h=o.i,d=o.e,p=[];for(s=u.reduce((function(t,e){return t&&!e}),!0);h<0;)u.unshift(0),h++;h>0?p=u.splice(h,u.length):(p=u,u=[0]);var f=[];for(u.length>=e.lgSize&&f.unshift(u.splice(-e.lgSize,u.length).join(""));u.length>e.gSize;)f.unshift(u.splice(-e.gSize,u.length).join(""));u.length&&f.unshift(u.join("")),c=f.join(n),p.length&&(c+=i+p.join("")),d&&(c+="e+"+d)}return t<0&&!s?e.negPre+c+e.negSuf:e.posPre+c+e.posSuf}function Cr(t,e,n,i){var r="";for((t<0||i&&t<=0)&&(i?t=1-t:(t=-t,r="-")),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),r+t}function Sr(t,e,n,i,r){return n=n||0,function(o){var a=o["get"+t]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),Cr(a,e,i,r)}}function kr(t,e,n){return function(i,r){var o=i["get"+t]();return r[d((n?"STANDALONE":"")+(e?"SHORT":"")+t)][o]}}function Tr(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Er(t){return function(e){var n,i=Tr(e.getFullYear()),r=+(n=e,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+i;return Cr(1+Math.round(r/6048e5),t)}}function Ar(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}wr.$inject=["$locale"],$r.$inject=["$locale"];var Or={yyyy:Sr("FullYear",4,0,!1,!0),yy:Sr("FullYear",2,0,!0,!0),y:Sr("FullYear",1,0,!1,!0),MMMM:kr("Month"),MMM:kr("Month",!0),MM:Sr("Month",2,1),M:Sr("Month",1,1),LLLL:kr("Month",!1,!0),dd:Sr("Date",2),d:Sr("Date",1),HH:Sr("Hours",2),H:Sr("Hours",1),hh:Sr("Hours",2,-12),h:Sr("Hours",1,-12),mm:Sr("Minutes",2),m:Sr("Minutes",1),ss:Sr("Seconds",2),s:Sr("Seconds",1),sss:Sr("Milliseconds",3),EEEE:kr("Day"),EEE:kr("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){var i=-1*n,r=i>=0?"+":"";return r+=Cr(Math[i>0?"floor":"ceil"](i/60),2)+Cr(Math.abs(i%60),2)},ww:Er(2),w:Er(1),G:Ar,GG:Ar,GGG:Ar,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},_r=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Pr=/^-?\d+$/;function Ir(t){var e=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,r){var o,a,s="",l=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,F(n)&&(n=Pr.test(n)?P(n):function(t){var n;if(n=t.match(e)){var i=new Date(0),r=0,o=0,a=n[8]?i.setUTCFullYear:i.setFullYear,s=n[8]?i.setUTCHours:i.setHours;n[9]&&(r=P(n[9]+n[10]),o=P(n[9]+n[11])),a.call(i,P(n[1]),P(n[2])-1,P(n[3]));var l=P(n[4]||0)-r,c=P(n[5]||0)-o,u=P(n[6]||0),h=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(i,l,c,u,h),i}return t}(n)),U(n)&&(n=new Date(n)),!B(n)||!isFinite(n.getTime()))return n;for(;i;)(a=_r.exec(i))?i=(l=ht(l,a,1)).pop():(l.push(i),i=null);var c=n.getTimezoneOffset();return r&&(c=yt(r,c),n=wt(n,r,!0)),C(l,(function(e){s+=(o=Or[e])?o(n,t.DATETIME_FORMATS,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function Dr(){return function(t,e){return V(e)&&(e=2),mt(t,e)}}Ir.$inject=["$locale"];var Mr=R(h),Lr=R(d);function Rr(){return function(t,e,n){return e=Math.abs(Number(e))===1/0?Number(e):P(e),I(e)?t:(U(t)&&(t=t.toString()),x(t)?(n=(n=!n||isNaN(n)?0:P(n))<0?Math.max(0,t.length+n):n,e>=0?jr(t,n,n+e):0===n?jr(t,e,t.length):jr(t,Math.max(0,n+e),n)):t)}}function jr(t,e,n){return F(t)?t.slice(e,n):p.call(t,e,n)}function Vr(t){return function(r,o,a,s){if(null==r)return r;if(!x(r))throw i("orderBy")("notarray","Expected array but received: {0}",r);q(o)||(o=[o]),0===o.length&&(o=["+"]);var l=o.map((function(e){var n=1,i=L;if(G(e))i=e;else if(F(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e)).constant)){var r=i();i=function(t){return t[r]}}return{get:i,descending:n}})),c=a?-1:1,u=G(s)?s:n,h=Array.prototype.map.call(r,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:l.map((function(i){return function(t,n){var i=typeof t;null===t?i="null":"object"===i&&(t=function(t){if(G(t.valueOf)&&e(t=t.valueOf()))return t;if(j(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:i,index:n}}(i.get(t),n)}))}}));return h.sort((function(t,e){for(var i=0,r=l.length;i<r;i++){var o=u(t.predicateValues[i],e.predicateValues[i]);if(o)return o*l[i].descending*c}return(u(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c})),r=h.map((function(t){return t.value}))};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){var n=0,i=t.type,r=e.type;if(i===r){var o=t.value,a=e.value;"string"===i?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===i&&(H(o)&&(o=t.index),H(a)&&(a=e.index)),o!==a&&(n=o<a?-1:1)}else n="undefined"===i?1:"undefined"===r?-1:"null"===i?1:"null"===r||i<r?-1:1;return n}}function Nr(t){return G(t)&&(t={link:t}),t.restrict=t.restrict||"AC",R(t)}Vr.$inject=["$parse"];var Hr=R({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===g.call(e.prop("href"))?"xlink:href":"href";e.on("click",(function(t){e.attr(n)||t.preventDefault()}))}}}}),zr={};C(Ie,(function(t,e){if("multiple"!==t){var n=$n("ng-"+e),i=r;"checked"===t&&(i=function(t,e,i){i.ngModel!==i[n]&&r(t,0,i)}),zr[n]=function(){return{restrict:"A",priority:100,link:i}}}function r(t,i,r){t.$watch(r[n],(function(t){r.$set(e,!!t)}))}})),C(Me,(function(t,e){zr[e]=function(){return{priority:100,link:function(t,n,i){if("ngPattern"===e&&"/"===i.ngPattern.charAt(0)){var r=i.ngPattern.match(l);if(r)return void i.$set("ngPattern",new RegExp(r[1],r[2]))}t.$watch(i[e],(function(t){i.$set(e,t)}))}}}})),C(["src","srcset","href"],(function(t){var e=$n("ng-"+t);zr[e]=["$sce",function(n){return{priority:99,link:function(i,o,a){var s=t,l=t;"href"===t&&"[object SVGAnimatedString]"===g.call(o.prop("href"))&&(l="xlinkHref",a.$attr[l]="xlink:href",s=null),a.$set(e,n.getTrustedMediaUrl(a[e])),a.$observe(e,(function(e){e?(a.$set(l,e),r&&s&&o.prop(s,a[l])):"href"===t&&a.$set(l,null)}))}}}]}));var Fr={$addControl:M,$getControls:R([]),$$renameControl:function(t,e){t.$name=e},$removeControl:M,$setValidity:M,$setDirty:M,$setPristine:M,$setSubmitted:M,$$setSubmitted:M},Ur="ng-pending",Br="ng-submitted";function qr(t,e,n,i,r){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=r(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Fr,this.$$element=t,this.$$animate=i,Kr(this)}qr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],qr.prototype={$rollbackViewValue:function(){C(this.$$controls,(function(t){t.$rollbackViewValue()}))},$commitViewValue:function(){C(this.$$controls,(function(t){t.$commitViewValue()}))},$addControl:function(t){Vt(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls:function(){return Ut(this.$$controls)},$$renameControl:function(t,e){var n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl:function(t){t.$name&&this[t.$name]===t&&delete this[t.$name],C(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),C(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),C(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),ot(this.$$controls,t),t.$$parentForm=Fr},$setDirty:function(){this.$$animate.removeClass(this.$$element,qo),this.$$animate.addClass(this.$$element,Wo),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,qo,Wo+" "+Br),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,C(this.$$controls,(function(t){t.$setPristine()}))},$setUntouched:function(){C(this.$$controls,(function(t){t.$setUntouched()}))},$setSubmitted:function(){for(var t=this;t.$$parentForm&&t.$$parentForm!==Fr;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,Br),this.$submitted=!0,C(this.$$controls,(function(t){t.$$setSubmitted&&t.$$setSubmitted()}))}},Xr({clazz:qr,set:function(t,e,n){var i=t[e];i?-1===i.indexOf(n)&&i.push(n):t[e]=[n]},unset:function(t,e,n){var i=t[e];i&&(ot(i,n),0===i.length&&delete t[e])}});var Wr=function(t){return["$timeout","$parse",function(e,n){return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:qr,compile:function(n,r){n.addClass(qo).addClass(Uo);var o=r.name?"name":!(!t||!r.ngForm)&&"ngForm";return{pre:function(t,n,r,a){var s=a[0];if(!("action"in r)){var l=function(e){t.$apply((function(){s.$commitViewValue(),s.$setSubmitted()})),e.preventDefault()};n[0].addEventListener("submit",l),n.on("$destroy",(function(){e((function(){n[0].removeEventListener("submit",l)}),0,!1)}))}(a[1]||s.$$parentForm).$addControl(s);var c=o?i(s.$name):M;o&&(c(t,s),r.$observe(o,(function(e){s.$name!==e&&(c(t,void 0),s.$$parentForm.$$renameControl(s,e),(c=i(s.$name))(t,s))}))),n.on("$destroy",(function(){s.$$parentForm.$removeControl(s),c(t,void 0),O(s,Fr)}))}}}};function i(t){return""===t?n('this[""]').assign:n(t).assign||M}}]},Gr=Wr(),Yr=Wr(!0);function Kr(t){t.$$classCache={},t.$$classCache[Bo]=!(t.$$classCache[Uo]=t.$$element.hasClass(Uo))}function Xr(t){var e=t.clazz,n=t.set,i=t.unset;function r(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function o(t,e,n){e=e?"-"+Dt(e,"-"):"",r(t,Uo+e,!0===n),r(t,Bo+e,!1===n)}e.prototype.$setValidity=function(t,e,a){var s;V(e)?function(t,e,i,r){t[e]||(t[e]={});n(t[e],i,r)}(this,"$pending",t,a):function(t,e,n,r){t[e]&&i(t[e],n,r);Qr(t[e])&&(t[e]=void 0)}(this,"$pending",t,a),Q(e)?e?(i(this.$error,t,a),n(this.$$success,t,a)):(n(this.$error,t,a),i(this.$$success,t,a)):(i(this.$error,t,a),i(this.$$success,t,a)),this.$pending?(r(this,Ur,!0),this.$valid=this.$invalid=void 0,o(this,"",null)):(r(this,Ur,!1),this.$valid=Qr(this.$error),this.$invalid=!this.$valid,o(this,"",this.$valid)),o(this,t,s=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null)),this.$$parentForm.$setValidity(t,s,this)}}function Qr(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var Jr=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Zr=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,to=/^(?=.{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])?)*$/,eo=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,no=/^(\d{4,})-(\d{2})-(\d{2})$/,io=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ro=/^(\d{4,})-W(\d\d)$/,oo=/^(\d{4,})-(\d\d)$/,ao=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,so=Ht();C("date,datetime-local,month,time,week".split(","),(function(t){so[t]=!0}));var lo={text:function(t,e,n,i,r,o){uo(t,e,n,i,r,o),co(i)},date:po("date",no,ho(no,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":po("datetimelocal",io,ho(io,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:po("time",ao,ho(ao,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:po("week",ro,(function(t,e){if(B(t))return t;if(F(t)){ro.lastIndex=0;var n=ro.exec(t);if(n){var i=+n[1],r=+n[2],o=0,a=0,s=0,l=0,c=Tr(i),u=7*(r-1);return e&&(o=e.getHours(),a=e.getMinutes(),s=e.getSeconds(),l=e.getMilliseconds()),new Date(i,0,c.getDate()+u,o,a,s,l)}}return NaN}),"yyyy-Www"),month:po("month",oo,ho(oo,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,i,r,o,a,s){var l;if(fo(t,e,n,i,"number"),mo(i),uo(t,e,n,i,r,o),N(n.min)||n.ngMin){var c=n.min||s(n.ngMin)(t);l=go(c),i.$validators.min=function(t,e){return i.$isEmpty(e)||V(l)||e>=l},n.$observe("min",(function(t){t!==c&&(l=go(t),c=t,i.$validate())}))}if(N(n.max)||n.ngMax){var u=n.max||s(n.ngMax)(t),h=go(u);i.$validators.max=function(t,e){return i.$isEmpty(e)||V(h)||e<=h},n.$observe("max",(function(t){t!==u&&(h=go(t),u=t,i.$validate())}))}if(N(n.step)||n.ngStep){var d=n.step||s(n.ngStep)(t),p=go(d);i.$validators.step=function(t,e){return i.$isEmpty(e)||V(p)||bo(e,l||0,p)},n.$observe("step",(function(t){t!==d&&(p=go(t),d=t,i.$validate())}))}},url:function(t,e,n,i,r,o){uo(t,e,n,i,r,o),co(i),i.$validators.url=function(t,e){var n=t||e;return i.$isEmpty(n)||Zr.test(n)}},email:function(t,e,n,i,r,o){uo(t,e,n,i,r,o),co(i),i.$validators.email=function(t,e){var n=t||e;return i.$isEmpty(n)||to.test(n)}},radio:function(t,e,n,i){var r=!n.ngTrim||"false"!==tt(n.ngTrim);V(n.name)&&e.attr("name",T());e.on("change",(function(t){var o;e[0].checked&&(o=n.value,r&&(o=tt(o)),i.$setViewValue(o,t&&t.type))})),i.$render=function(){var t=n.value;r&&(t=tt(t)),e[0].checked=t===i.$viewValue},n.$observe("value",i.$render)},range:function(t,e,n,i,r,o){fo(t,e,n,i,"range"),mo(i),uo(t,e,n,i,r,o);var a=i.$$hasNativeValidators&&"range"===e[0].type,s=a?0:void 0,l=a?100:void 0,c=a?1:void 0,u=e[0].validity,h=N(n.min),d=N(n.max),p=N(n.step),f=i.$render;i.$render=a&&N(u.rangeUnderflow)&&N(u.rangeOverflow)?function(){f(),i.$setViewValue(e.val())}:f,h&&(s=go(n.min),i.$validators.min=a?function(){return!0}:function(t,e){return i.$isEmpty(e)||V(s)||e>=s},m("min",(function(t){if(s=go(t),I(i.$modelValue))return;if(a){var n=e.val();s>n&&(n=s,e.val(n)),i.$setViewValue(n)}else i.$validate()})));d&&(l=go(n.max),i.$validators.max=a?function(){return!0}:function(t,e){return i.$isEmpty(e)||V(l)||e<=l},m("max",(function(t){if(l=go(t),I(i.$modelValue))return;if(a){var n=e.val();l<n&&(e.val(l),n=l<s?s:l),i.$setViewValue(n)}else i.$validate()})));p&&(c=go(n.step),i.$validators.step=a?function(){return!u.stepMismatch}:function(t,e){return i.$isEmpty(e)||V(c)||bo(e,s||0,c)},m("step",(function(t){if(c=go(t),I(i.$modelValue))return;a?i.$viewValue!==e.val()&&i.$setViewValue(e.val()):i.$validate()})));function m(t,i){e.attr(t,n[t]);var r=n[t];n.$observe(t,(function(t){t!==r&&(r=t,i(t))}))}},checkbox:function(t,e,n,i,r,o,a,s){var l=wo(s,t,"ngTrueValue",n.ngTrueValue,!0),c=wo(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(function(t){i.$setViewValue(e[0].checked,t&&t.type)})),i.$render=function(){e[0].checked=i.$viewValue},i.$isEmpty=function(t){return!1===t},i.$formatters.push((function(t){return lt(t,l)})),i.$parsers.push((function(t){return t?l:c}))},hidden:M,button:M,submit:M,reset:M,file:M};function co(t){t.$formatters.push((function(e){return t.$isEmpty(e)?e:e.toString()}))}function uo(t,e,n,i,r,o){var a,s=h(e[0].type);if(!r.android){var l=!1;e.on("compositionstart",(function(){l=!0})),e.on("compositionupdate",(function(t){(V(t.data)||""===t.data)&&(l=!1)})),e.on("compositionend",(function(){l=!1,c()}))}var c=function(t){if(a&&(o.defer.cancel(a),a=null),!l){var r=e.val(),c=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(r=tt(r)),(i.$viewValue!==r||""===r&&i.$$hasNativeValidators)&&i.$setViewValue(r,c)}};if(r.hasEvent("input"))e.on("input",c);else{var u=function(t,e,n){a||(a=o.defer((function(){a=null,e&&e.value===n||c(t)})))};e.on("keydown",(function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||u(t,this,this.value)})),r.hasEvent("paste")&&e.on("paste cut drop",u)}e.on("change",c),so[s]&&i.$$hasNativeValidators&&s===n.type&&e.on("keydown wheel mousedown",(function(t){if(!a){var e=this.validity,n=e.badInput,i=e.typeMismatch;a=o.defer((function(){a=null,e.badInput===n&&e.typeMismatch===i||c(t)}))}})),i.$render=function(){var t=i.$isEmpty(i.$viewValue)?"":i.$viewValue;e.val()!==t&&e.val(t)}}function ho(t,e){return function(n,i){var r,o;if(B(n))return n;if(F(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Jr.test(n))return new Date(n);if(t.lastIndex=0,r=t.exec(n)){r.shift(),o=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},C(r,(function(t,n){n<e.length&&(o[e[n]]=+t)}));var a=new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0);return o.yyyy<100&&a.setFullYear(o.yyyy),a}}return NaN}}function po(t,e,n,i){return function(r,o,a,s,l,c,u,h){fo(r,o,a,s,t),uo(0,o,a,s,l,c);var d,p,f="time"===t||"datetimelocal"===t;if(s.$parsers.push((function(n){return s.$isEmpty(n)?null:e.test(n)?x(n,d):void(s.$$parserName=t)})),s.$formatters.push((function(t){if(t&&!B(t))throw Qo("datefmt","Expected `{0}` to be a date",t);if(b(t)){d=t;var e=s.$options.getOption("timezone");return e&&(p=e,d=wt(d,e,!0)),function(t,e){var n=i;f&&F(s.$options.getOption("timeSecondsFormat"))&&(n=i.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var r=u("date")(t,n,e);f&&s.$options.getOption("timeStripZeroSeconds")&&(r=r.replace(/(?::00)?(?:\.000)?$/,""));return r}(t,e)}return d=null,p=null,""})),N(a.min)||a.ngMin){var m=a.min||h(a.ngMin)(r),g=w(m);s.$validators.min=function(t){return!b(t)||V(g)||n(t)>=g},a.$observe("min",(function(t){t!==m&&(g=w(t),m=t,s.$validate())}))}if(N(a.max)||a.ngMax){var v=a.max||h(a.ngMax)(r),y=w(v);s.$validators.max=function(t){return!b(t)||V(y)||n(t)<=y},a.$observe("max",(function(t){t!==v&&(y=w(t),v=t,s.$validate())}))}function b(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function w(t){return N(t)&&!B(t)?x(t)||void 0:t}function x(t,e){var i=s.$options.getOption("timezone");p&&p!==i&&(e=bt(e,yt(p)));var r=n(t,e);return!isNaN(r)&&i&&(r=wt(r,i)),r}}}function fo(t,e,n,i,r){var o=e[0];(i.$$hasNativeValidators=H(o.validity))&&i.$parsers.push((function(t){var n=e.prop(c)||{};if(!n.badInput&&!n.typeMismatch)return t;i.$$parserName=r}))}function mo(t){t.$parsers.push((function(e){return t.$isEmpty(e)?null:eo.test(e)?parseFloat(e):void(t.$$parserName="number")})),t.$formatters.push((function(e){if(!t.$isEmpty(e)){if(!U(e))throw Qo("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function go(t){return N(t)&&!U(t)&&(t=parseFloat(t)),I(t)?void 0:t}function vo(t){return(0|t)===t}function yo(t){var e=t.toString(),n=e.indexOf(".");if(-1===n){if(-1<t&&t<1){var i=/e-(\d+)$/.exec(e);if(i)return Number(i[1])}return 0}return e.length-n-1}function bo(t,e,n){var i=Number(t),r=!vo(i),o=!vo(e),a=!vo(n);if(r||o||a){var s=r?yo(i):0,l=o?yo(e):0,c=a?yo(n):0,u=Math.max(s,l,c),h=Math.pow(10,u);i*=h,e*=h,n*=h,r&&(i=Math.round(i)),o&&(e=Math.round(e)),a&&(n=Math.round(n))}return(i-e)%n==0}function wo(t,e,n,i,r){var o;if(N(i)){if(!(o=t(i)).constant)throw Qo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return o(e)}return r}var $o=["$browser","$sniffer","$filter","$parse",function(t,e,n,i){return{restrict:"E",require:["?ngModel"],link:{pre:function(r,o,a,s){s[0]&&(lo[h(a.type)]||lo.text)(r,o,a,s[0],e,t,n,i)}}}}],xo=function(){var t={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile:function(e,n){if("hidden"===h(n.type))return{pre:function(e,n,i,r){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",t)}}}}},Co=/^(true|false|\d+)$/,So=function(){function t(t,e,n){var i=N(n)?n:9===r?"":null;t.prop("value",i),e.$set("value",n)}return{restrict:"A",priority:100,compile:function(e,n){return Co.test(n.ngValue)?function(e,n,i){t(n,i,e.$eval(i.ngValue))}:function(e,n,i){e.$watch(i.ngValue,(function(e){t(n,i,e)}))}}}},ko=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,i){t.$$addBindingInfo(n,i.ngBind),n=n[0],e.$watch(i.ngBind,(function(t){n.textContent=zt(t)}))}}}}],To=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,i,r){var o=t(i.attr(r.$attr.ngBindTemplate));e.$$addBindingInfo(i,o.expressions),i=i[0],r.$observe("ngBindTemplate",(function(t){i.textContent=V(t)?"":t}))}}}}],Eo=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(i,r){var o=e(r.ngBindHtml),a=e(r.ngBindHtml,(function(e){return t.valueOf(e)}));return n.$$addBindingClass(i),function(e,i,r){n.$$addBindingInfo(i,r.ngBindHtml),e.$watch(a,(function(){var n=o(e);i.html(t.getTrustedHtml(n)||"")}))}}}}],Ao=R({restrict:"A",require:"ngModel",link:function(t,e,n,i){i.$viewChangeListeners.push((function(){t.$eval(n.ngChange)}))}});function Oo(t,e){var n;return t="ngClass"+t,["$parse",function(a){return{restrict:"AC",link:function(s,l,c){var u,h=l.data("$classCounts"),d=!0;function p(t,e){var n=[];return C(t,(function(t){(e>0||h[t])&&(h[t]=(h[t]||0)+e,h[t]===+(e>0)&&n.push(t))})),n.join(" ")}h||(h=Ht(),l.data("$classCounts",h)),"ngClass"!==t&&(n||(n=a("$index",(function(t){return 1&t}))),s.$watch(n,(function(t){t===e?(n=p(r(n=u),1),c.$addClass(n)):function(t){t=p(r(t),-1),c.$removeClass(t)}(u);var n;d=t}))),s.$watch(a(c[t],o),(function(t){d===e&&function(t,e){var n=r(t),o=r(e),a=i(n,o),s=i(o,n),l=p(a,-1),u=p(s,1);c.$addClass(u),c.$removeClass(l)}(u,t);u=t}))}}}];function i(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;var n=[];t:for(var i=0;i<t.length;i++){for(var r=t[i],o=0;o<e.length;o++)if(r===e[o])continue t;n.push(r)}return n}function r(t){return t&&t.split(" ")}function o(t){if(!t)return t;var e=t;return q(t)?e=t.map(o).join(" "):H(t)?e=Object.keys(t).filter((function(e){return t[e]})).join(" "):F(t)||(e=t+""),e}}var _o=Oo("",!0),Po=Oo("Odd",0),Io=Oo("Even",1),Do=Nr({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),Mo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Lo={},Ro={blur:!0,focus:!0};function jo(t,e,n,i,r,o){return{restrict:"A",compile:function(a,s){var l=t(s[i]);return function(t,i){i.on(r,(function(i){var r=function(){l(t,{$event:i})};if(e.$$phase)if(o)t.$evalAsync(r);else try{r()}catch(t){n(t)}else t.$apply(r)}))}}}}C("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(t){var e=$n("ng-"+t);Lo[e]=["$parse","$rootScope","$exceptionHandler",function(n,i,r){return jo(n,i,r,e,t,Ro[t])}]}));var Vo=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,i,r,o,a){var s,l,c;n.$watch(r.ngIf,(function(n){n?l||a((function(n,o){l=o,n[n.length++]=e.$$createComment("end ngIf",r.ngIf),s={clone:n},t.enter(n,i.parent(),i)})):(c&&(c.remove(),c=null),l&&(l.$destroy(),l=null),s&&(c=Nt(s.clone),t.leave(c).done((function(t){!1!==t&&(c=null)})),s=null))}))}}}],No=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:b.noop,compile:function(i,r){var o=r.ngInclude||r.src,a=r.onload||"",s=r.autoscroll;return function(i,r,l,c,u){var h,d,p,f=0,m=function(){d&&(d.remove(),d=null),h&&(h.$destroy(),h=null),p&&(n.leave(p).done((function(t){!1!==t&&(d=null)})),d=p,p=null)};i.$watch(o,(function(o){var l=function(t){!1===t||!N(s)||s&&!i.$eval(s)||e()},d=++f;o?(t(o,!0).then((function(t){if(!i.$$destroyed&&d===f){var e=i.$new();c.template=t;var s=u(e,(function(t){m(),n.enter(t,null,r).done(l)}));p=s,(h=e).$emit("$includeContentLoaded",o),i.$eval(a)}}),(function(){i.$$destroyed||d===f&&(m(),i.$emit("$includeContentError",o))})),i.$emit("$includeContentRequested",o)):(m(),c.template=null)}))}}}}],Ho=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(e,n,i,r){if(g.call(n[0]).match(/SVG/))return n.empty(),void t(he(r.template,window.document).childNodes)(e,(function(t){n.append(t)}),{futureParentElement:n});n.html(r.template),t(n.contents())(e)}}}],zo=Nr({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Fo=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var r=n.ngList||", ",o="false"!==n.ngTrim,a=o?tt(r):r;i.$parsers.push((function(t){if(!V(t)){var e=[];return t&&C(t.split(a),(function(t){t&&e.push(o?tt(t):t)})),e}})),i.$formatters.push((function(t){if(q(t))return t.join(r)})),i.$isEmpty=function(t){return!t||!t.length}}}},Uo="ng-valid",Bo="ng-invalid",qo="ng-pristine",Wo="ng-dirty",Go="ng-untouched",Yo="ng-touched",Ko="ng-empty",Xo="ng-not-empty",Qo=i("ngModel");function Jo(t,e,n,i,r,o,a,s,l){var c;this.$viewValue=Number.NaN,this.$modelValue=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(n.name||"",!1)(t),this.$$parentForm=Fr,this.$options=Zo,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=r(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=i,this.$$animate=o,this.$$timeout=a,this.$$parse=r,this.$$q=s,this.$$exceptionHandler=e,Kr(this),(c=this).$$scope.$watch((function(t){var e=c.$$ngModelGet(t);return e===c.$modelValue||c.$modelValue!=c.$modelValue&&e!=e||c.$$setModelValue(e),e}))}Jo.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Jo.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var t=this.$$parse(this.$$attr.ngModel+"()"),e=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var n=this.$$parsedNgModel(e);return G(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){G(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw Qo("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,$t(this.$$element))},$render:M,$isEmpty:function(t){return V(t)||""===t||null===t||t!=t},$$updateEmptyClasses:function(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,Xo),this.$$animate.addClass(this.$$element,Ko)):(this.$$animate.removeClass(this.$$element,Ko),this.$$animate.addClass(this.$$element,Xo))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Wo),this.$$animate.addClass(this.$$element,qo)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,qo),this.$$animate.addClass(this.$$element,Wo),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,Go,Yo)},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,Yo,Go)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!I(this.$modelValue)){var t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,i=this.$modelValue,r=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(e,t,(function(t){r||n===t||(o.$modelValue=t?e:void 0,o.$modelValue!==i&&o.$$writeModelToScope())}))}},$$runValidators:function(t,e,n){this.$$currentValidationRunId++;var i,r,o=this.$$currentValidationRunId,a=this;(function(){var t=a.$$parserName;if(!V(a.$$parserValid))return a.$$parserValid||(C(a.$validators,(function(t,e){s(e,null)})),C(a.$asyncValidators,(function(t,e){s(e,null)}))),s(t,a.$$parserValid),a.$$parserValid;s(t,null);return!0})()?!function(){var n=!0;if(C(a.$validators,(function(i,r){var o=Boolean(i(t,e));n=n&&o,s(r,o)})),!n)return C(a.$asyncValidators,(function(t,e){s(e,null)})),!1;return!0}()?l(!1):(i=[],r=!0,C(a.$asyncValidators,(function(n,o){var a=n(t,e);if(!J(a))throw Qo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),i.push(a.then((function(){s(o,!0)}),(function(){r=!1,s(o,!1)})))})),i.length?a.$$q.all(i).then((function(){l(r)}),M):l(!0)):l(!1);function s(t,e){o===a.$$currentValidationRunId&&a.$setValidity(t,e)}function l(t){o===a.$$currentValidationRunId&&n(t)}},$commitViewValue:function(){var t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var t=this.$$lastCommittedViewValue,e=this;if(this.$$parserValid=!V(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(V(t=this.$parsers[n](t))){this.$$parserValid=!1;break}I(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var i=this.$modelValue,r=this.$options.getOption("allowInvalid");function o(){e.$modelValue!==i&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,o()),this.$$runValidators(t,this.$$lastCommittedViewValue,(function(n){r||(e.$modelValue=n?t:void 0,o())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),C(this.$viewChangeListeners,(function(t){try{t()}catch(t){this.$$exceptionHandler(t)}}),this)},$setViewValue:function(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)},$$debounceViewValueCommit:function(t){var e=this.$options.getOption("debounce");U(e[t])?e=e[t]:U(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:U(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;e>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),e):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()},$processModelValue:function(){var t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,M))},$$format:function(){for(var t=this.$formatters,e=t.length,n=this.$modelValue;e--;)n=t[e](n);return n},$$setModelValue:function(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(t){this.$$debounceViewValueCommit(t&&t.type)}},Xr({clazz:Jo,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var Zo,ta=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Jo,priority:1,compile:function(e){return e.addClass(qo).addClass(Go).addClass(Uo),{pre:function(t,e,n,i){var r=i[0],o=i[1]||r.$$parentForm,a=i[2];a&&(r.$options=a.$options),r.$$initGetterSetters(),o.$addControl(r),n.$observe("name",(function(t){r.$name!==t&&r.$$parentForm.$$renameControl(r,t)})),t.$on("$destroy",(function(){r.$$parentForm.$removeControl(r)}))},post:function(e,n,i,r){var o=r[0];function a(){o.$setTouched()}o.$$setUpdateOnEvents(),n.on("blur",(function(){o.$touched||(t.$$phase?e.$evalAsync(a):e.$apply(a))}))}}}}}],ea=/(\s+|^)default(\s+|$)/;function na(t){this.$$options=t}na.prototype={getOption:function(t){return this.$$options[t]},createChild:function(t){var e=!1;return C(t=O({},t),(function(n,i){"$inherit"===n?"*"===i?e=!0:(t[i]=this.$$options[i],"updateOn"===i&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===i&&(t.updateOnDefault=!1,t[i]=tt(n.replace(ea,(function(){return t.updateOnDefault=!0," "}))))}),this),e&&(delete t["*"],ra(t,this.$$options)),ra(t,Zo.$$options),new na(t)}},Zo=new na({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var ia=function(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit:function(){var t=this.parentCtrl?this.parentCtrl.$options:Zo,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}};function ra(t,e){C(e,(function(e,n){N(t[n])||(t[n]=e)}))}var oa=Nr({terminal:!0,priority:1e3}),aa=i("ngOptions"),sa=/^\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]+?))?$/,la=["$compile","$document","$parse",function(t,e,n){var i=window.document.createElement("option"),r=window.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,i){i[0].registerOption=M},post:function(a,s,l,c){for(var u=c[0],h=c[1],d=l.multiple,p=0,f=s.children(),m=f.length;p<m;p++)if(""===f[p].value){u.hasEmptyOption=!0,u.emptyOption=f.eq(p);break}s.empty();var g,v=!!u.emptyOption;o(i.cloneNode(!1)).val("?");var y=function(t,e,i){var r=t.match(sa);if(!r)throw aa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,$t(e));var o=r[5]||r[7],a=r[6],s=/ as /.test(r[0])&&r[1],l=r[9],c=n(r[2]?r[1]:o),u=s&&n(s)||c,h=l&&n(l),d=l?function(t,e){return h(i,e)}:function(t){return Ne(t)},p=function(t,e){return d(t,b(t,e))},f=n(r[2]||r[1]),m=n(r[3]||""),g=n(r[4]||""),v=n(r[8]),y={},b=a?function(t,e){return y[a]=e,y[o]=t,y}:function(t){return y[o]=t,y};function w(t,e,n,i,r){this.selectValue=t,this.viewValue=e,this.label=n,this.group=i,this.disabled=r}function C(t){var e;if(!a&&x(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}return{trackBy:l,getTrackByValue:p,getWatchables:n(v,(function(t){for(var e=[],n=C(t=t||[]),o=n.length,a=0;a<o;a++){var s=t===n?a:n[a],l=t[s],c=b(l,s),u=d(l,c);if(e.push(u),r[2]||r[1]){var h=f(i,c);e.push(h)}if(r[4]){var p=g(i,c);e.push(p)}}return e})),getOptions:function(){for(var t=[],e={},n=v(i)||[],r=C(n),o=r.length,a=0;a<o;a++){var s=n===r?a:r[a],c=n[s],h=b(c,s),y=u(i,h),x=d(y,h),S=new w(x,y,f(i,h),m(i,h),g(i,h));t.push(S),e[x]=S}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[p(t)]},getViewValueFromOption:function(t){return l?at(t.viewValue):t.viewValue}}}}}(l.ngOptions,s,a),b=e[0].createDocumentFragment();function w(t,e){var n=i.cloneNode(!1);e.appendChild(n),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,n)}function S(t){var e=g.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}u.generateUnknownOptionValue=function(t){return"?"},d?(u.writeValue=function(t){if(g){var e=t&&t.map(S)||[];g.items.forEach((function(t){t.element.selected&&!rt(e,t)&&(t.element.selected=!1)}))}},u.readValue=function(){var t=s.val()||[],e=[];return C(t,(function(t){var n=g.selectValueMap[t];n&&!n.disabled&&e.push(g.getViewValueFromOption(n))})),e},y.trackBy&&a.$watchCollection((function(){if(q(h.$viewValue))return h.$viewValue.map((function(t){return y.getTrackByValue(t)}))}),(function(){h.$render()}))):(u.writeValue=function(t){if(g){var e=s[0].options[s[0].selectedIndex],n=g.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(u.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):u.selectUnknownOrEmptyOption(t)}},u.readValue=function(){var t=g.selectValueMap[s.val()];return t&&!t.disabled?(u.unselectEmptyOption(),u.removeUnknownOption(),g.getViewValueFromOption(t)):null},y.trackBy&&a.$watch((function(){return y.getTrackByValue(h.$viewValue)}),(function(){h.$render()}))),v&&(t(u.emptyOption)(a),s.prepend(u.emptyOption),8===u.emptyOption[0].nodeType?(u.hasEmptyOption=!1,u.registerOption=function(t,e){""===e.val()&&(u.hasEmptyOption=!0,u.emptyOption=e,u.emptyOption.removeClass("ng-scope"),h.$render(),e.on("$destroy",(function(){var t=u.$isEmptyOptionSelected();u.hasEmptyOption=!1,u.emptyOption=void 0,t&&h.$render()})))}):u.emptyOption.removeClass("ng-scope")),a.$watchCollection(y.getWatchables,(function(){var t=g&&u.readValue();if(g)for(var e=g.items.length-1;e>=0;e--){var n=g.items[e];N(n.group)?Oe(n.element.parentNode):Oe(n.element)}g=y.getOptions();var i={};if(g.items.forEach((function(t){var e;N(t.group)?((e=i[t.group])||(e=r.cloneNode(!1),b.appendChild(e),e.label=null===t.group?"null":t.group,i[t.group]=e),w(t,e)):w(t,b)})),s[0].appendChild(b),h.$render(),!h.$isEmpty(t)){var o=u.readValue();(y.trackBy||d?lt(t,o):t===o)||(h.$setViewValue(o),h.$render())}}))}}}}],ca=["$locale","$interpolate","$log",function(t,e,n){var i=/{}/g,r=/^when(Minus)?(.+)$/;return{link:function(o,a,s){var l,c=s.count,u=s.$attr.when&&a.attr(s.$attr.when),d=s.offset||0,p=o.$eval(u)||{},f={},m=e.startSymbol(),g=e.endSymbol(),v=m+c+"-"+d+g,y=b.noop;function w(t){a.text(t||"")}C(s,(function(t,e){var n=r.exec(e);if(n){var i=(n[1]?"-":"")+h(n[2]);p[i]=a.attr(s.$attr[e])}})),C(p,(function(t,n){f[n]=e(t.replace(i,v))})),o.$watch(c,(function(e){var i=parseFloat(e),r=I(i);if(r||i in p||(i=t.pluralCat(i-d)),!(i===l||r&&I(l))){y();var a=f[i];V(a)?(null!=e&&n.debug("ngPluralize: no rule defined for '"+i+"' in "+u),y=M,w()):y=o.$watch(a,w),l=i}}))}}}],ua=i("ngRef"),ha=["$parse",function(t){return{priority:-1,restrict:"A",compile:function(e,n){var i=$n(it(e)),r=t(n.ngRef),o=r.assign||function(){throw ua("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,a){var s;if(a.hasOwnProperty("ngRefRead")){if("$element"===a.ngRefRead)s=e;else if(!(s=e.data("$"+a.ngRefRead+"Controller")))throw ua("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',a.ngRefRead,n.ngRef)}else s=e.data("$"+i+"Controller");o(t,s=s||e),e.on("$destroy",(function(){r(t)===s&&o(t,null)}))}}}}],da=["$parse","$animate","$compile",function(t,e,n){var r="$$NG_REMOVED",o=i("ngRepeat"),a=function(t,e,n,i,r,o,a){t[n]=i,r&&(t[r]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))},s=function(t){return t.clone[0]},l=function(t){return t.clone[t.clone.length-1]},c=function(t,e,n){return Ne(n)},h=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,d){var p=d.ngRepeat,f=n.$$createComment("end ngRepeat",p),m=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw o("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var g=m[1],v=m[2],y=m[3],b=m[4];if(!(m=g.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw o("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);var w,S=m[3]||m[1],k=m[2];if(y&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y)))throw o("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",y);if(b){var T={$id:Ne},E=t(b);w=function(t,e,n,i){return k&&(T[k]=e),T[S]=n,T.$index=i,E(t,T)}}return function(t,n,i,d,m){var g=Ht();t.$watchCollection(v,(function(i){var d,v,b,E,A,O,_,P,I,D,M,L,R=n[0],j=Ht();if(y&&(t[y]=i),x(i))I=i,P=w||c;else for(var V in P=w||h,I=[],i)u.call(i,V)&&"$"!==V.charAt(0)&&I.push(V);for(E=I.length,M=new Array(E),d=0;d<E;d++)if(A=i===I?d:I[d],O=i[A],_=P(t,A,O,d),g[_])D=g[_],delete g[_],j[_]=D,M[d]=D;else{if(j[_])throw C(M,(function(t){t&&t.scope&&(g[t.id]=t)})),o("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,_,O);M[d]={id:_,scope:void 0,clone:void 0},j[_]=!0}for(var N in T&&(T[S]=void 0),g){if(L=Nt((D=g[N]).clone),e.leave(L),L[0].parentNode)for(d=0,v=L.length;d<v;d++)L[d][r]=!0;D.scope.$destroy()}for(d=0;d<E;d++)if(A=i===I?d:I[d],O=i[A],(D=M[d]).scope){b=R;do{b=b.nextSibling}while(b&&b[r]);s(D)!==b&&e.move(Nt(D.clone),null,R),R=l(D),a(D.scope,d,S,O,k,A,E)}else m((function(t,n){D.scope=n;var i=f.cloneNode(!1);t[t.length++]=i,e.enter(t,null,R),R=i,D.clone=t,j[D.id]=D,a(D.scope,d,S,O,k,A,E)}));g=j}))}}}}],pa="ng-hide",fa="ng-hide-animate",ma=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,i){e.$watch(i.ngShow,(function(e){t[e?"removeClass":"addClass"](n,pa,{tempClasses:fa})}))}}}],ga=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,i){e.$watch(i.ngHide,(function(e){t[e?"addClass":"removeClass"](n,pa,{tempClasses:fa})}))}}}],va=Nr((function(t,e,n){t.$watchCollection(n.ngStyle,(function(t,n){n&&t!==n&&C(n,(function(t,n){e.css(n,"")})),t&&e.css(t)}))})),ya=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,r,o){var a=r.ngSwitch||r.on,s=[],l=[],c=[],u=[],h=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};n.$watch(a,(function(n){for(var i,r;c.length;)t.cancel(c.pop());for(i=0,r=u.length;i<r;++i){var a=Nt(l[i].clone);u[i].$destroy(),(c[i]=t.leave(a)).done(h(c,i))}l.length=0,u.length=0,(s=o.cases["!"+n]||o.cases["?"])&&C(s,(function(n){n.transclude((function(i,r){u.push(r);var o=n.element;i[i.length++]=e.$$createComment("end ngSwitchWhen");var a={clone:i};l.push(a),t.enter(i,o.parent(),o)}))}))}))}}}],ba=Nr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){var o=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(t,e,n){return n[e-1]!==t}));C(o,(function(t){i.cases["!"+t]=i.cases["!"+t]||[],i.cases["!"+t].push({transclude:r,element:e})}))}}),wa=Nr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:e})}}),$a=i("ngTransclude"),xa=["$compile",function(t){return{restrict:"EAC",compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,i,r,o){if(!o)throw $a("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",$t(e));i.ngTransclude===i.$attr.ngTransclude&&(i.ngTransclude="");var a=i.ngTransclude||i.ngTranscludeSlot;function s(){n(t,(function(t){e.append(t)}))}o((function(t,n){t.length&&function(t){for(var e=0,n=t.length;e<n;e++){var i=t[e];if(i.nodeType!==Ft||i.nodeValue.trim())return!0}}(t)?e.append(t):(s(),n.$destroy())}),null,a),a&&!o.isSlotFilled(a)&&s()}}}}],Ca=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"===n.type){var i=n.id,r=e[0].text;t.put(i,r)}}}}],Sa={$setViewValue:M,$render:M};function ka(t,e){t.prop("selected",e),t.attr("selected",e)}var Ta=["$element","$scope",function(t,e){var n=this,i=new Fe;n.selectValueMap={},n.ngModelCtrl=Sa,n.multiple=!1,n.unknownOption=o(window.document.createElement("option")),n.hasEmptyOption=!1,n.emptyOption=void 0,n.renderUnknownOption=function(e){var i=n.generateUnknownOptionValue(e);n.unknownOption.val(i),t.prepend(n.unknownOption),ka(n.unknownOption,!0),t.val(i)},n.updateUnknownOption=function(e){var i=n.generateUnknownOptionValue(e);n.unknownOption.val(i),ka(n.unknownOption,!0),t.val(i)},n.generateUnknownOptionValue=function(t){return"? "+Ne(t)+" ?"},n.removeUnknownOption=function(){n.unknownOption.parent()&&n.unknownOption.remove()},n.selectEmptyOption=function(){n.emptyOption&&(t.val(""),ka(n.emptyOption,!0))},n.unselectEmptyOption=function(){n.hasEmptyOption&&ka(n.emptyOption,!1)},e.$on("$destroy",(function(){n.renderUnknownOption=M})),n.readValue=function(){var e=t.val(),i=e in n.selectValueMap?n.selectValueMap[e]:e;return n.hasOption(i)?i:null},n.writeValue=function(e){var i=t[0].options[t[0].selectedIndex];if(i&&ka(o(i),!1),n.hasOption(e)){n.removeUnknownOption();var r=Ne(e);t.val(r in n.selectValueMap?r:e);var a=t[0].options[t[0].selectedIndex];ka(o(a),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(8!==e[0].nodeType){Vt(t,'"option value"'),""===t&&(n.hasEmptyOption=!0,n.emptyOption=e);var r=i.get(t)||0;i.set(t,r+1),a()}},n.removeOption=function(t){var e=i.get(t);e&&(1===e?(i.delete(t),""===t&&(n.hasEmptyOption=!1,n.emptyOption=void 0)):i.set(t,e-1))},n.hasOption=function(t){return!!i.get(t)},n.$hasEmptyOption=function(){return n.hasEmptyOption},n.$isUnknownOptionSelected=function(){return t[0].options[0]===n.unknownOption[0]},n.$isEmptyOptionSelected=function(){return n.hasEmptyOption&&t[0].options[t[0].selectedIndex]===n.emptyOption[0]},n.selectUnknownOrEmptyOption=function(t){null==t&&n.emptyOption?(n.removeUnknownOption(),n.selectEmptyOption()):n.unknownOption.parent().length?n.updateUnknownOption(t):n.renderUnknownOption(t)};var r=!1;function a(){r||(r=!0,e.$$postDigest((function(){r=!1,n.ngModelCtrl.$render()})))}var s=!1;function l(t){s||(s=!0,e.$$postDigest((function(){e.$$destroyed||(s=!1,n.ngModelCtrl.$setViewValue(n.readValue()),t&&n.ngModelCtrl.$render())})))}n.registerOption=function(t,e,i,r,o){var s,c;i.$attr.ngValue?i.$observe("value",(function(t){var i,r=e.prop("selected");N(c)&&(n.removeOption(s),delete n.selectValueMap[c],i=!0),c=Ne(t),s=t,n.selectValueMap[c]=t,n.addOption(t,e),e.attr("value",c),i&&r&&l()})):r?i.$observe("value",(function(t){var i;n.readValue();var r=e.prop("selected");N(s)&&(n.removeOption(s),i=!0),s=t,n.addOption(t,e),i&&r&&l()})):o?t.$watch(o,(function(t,r){i.$set("value",t);var o=e.prop("selected");r!==t&&n.removeOption(r),n.addOption(t,e),r&&o&&l()})):n.addOption(i.value,e);i.$observe("disabled",(function(t){("true"===t||t&&e.prop("selected"))&&(n.multiple?l(!0):(n.ngModelCtrl.$setViewValue(null),n.ngModelCtrl.$render()))})),e.on("$destroy",(function(){var t=n.readValue(),e=i.value;n.removeOption(e),a(),(n.multiple&&t&&-1!==t.indexOf(e)||t===e)&&l(!0)}))}}],Ea=function(){return{restrict:"E",require:["select","?ngModel"],controller:Ta,priority:1,link:{pre:function(t,e,n,i){var r=i[0],a=i[1];if(!a)return void(r.registerOption=M);if(r.ngModelCtrl=a,e.on("change",(function(){r.removeUnknownOption(),t.$apply((function(){a.$setViewValue(r.readValue())}))})),n.multiple){r.multiple=!0,r.readValue=function(){var t=[];return C(e.find("option"),(function(e){if(e.selected&&!e.disabled){var n=e.value;t.push(n in r.selectValueMap?r.selectValueMap[n]:n)}})),t},r.writeValue=function(t){C(e.find("option"),(function(e){var n=!!t&&(rt(t,e.value)||rt(t,r.selectValueMap[e.value]));n!==e.selected&&ka(o(e),n)}))};var s,l=NaN;t.$watch((function(){l!==a.$viewValue||lt(s,a.$viewValue)||(s=Ut(a.$viewValue),a.$render()),l=a.$viewValue})),a.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,i){var r=i[1];if(!r)return;var o=i[0];r.$render=function(){o.writeValue(r.$viewValue)}}}}},Aa=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){var i,r;return N(n.ngValue)||(N(n.value)?i=t(n.value,!0):(r=t(e.text(),!0))||n.$set("value",e.text())),function(t,e,n){var o="$selectController",a=e.parent(),s=a.data(o)||a.parent().data(o);s&&s.registerOption(t,e,n,i,r)}}}}],Oa=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,i,r){if(r){var o=i.hasOwnProperty("required")||t(i.ngRequired)(e);i.ngRequired||(i.required=!0),r.$validators.required=function(t,e){return!o||!r.$isEmpty(e)},i.$observe("required",(function(t){o!==t&&(o=t,r.$validate())}))}}}}],_a=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var i,r;return n.ngPattern&&(i=n.ngPattern,r="/"===n.ngPattern.charAt(0)&&l.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,o){if(o){var a=n.pattern;n.ngPattern?a=r(t):i=n.pattern;var s=Da(a,i,e);n.$observe("pattern",(function(t){var n=s;s=Da(t,i,e),(n&&n.toString())!==(s&&s.toString())&&o.$validate()})),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||V(s)||s.test(e)}}}}}}],Pa=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,i,r){if(r){var o=i.maxlength||t(i.ngMaxlength)(e),a=Ma(o);i.$observe("maxlength",(function(t){o!==t&&(a=Ma(t),o=t,r.$validate())})),r.$validators.maxlength=function(t,e){return a<0||r.$isEmpty(e)||e.length<=a}}}}}],Ia=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,i,r){if(r){var o=i.minlength||t(i.ngMinlength)(e),a=Ma(o)||-1;i.$observe("minlength",(function(t){o!==t&&(a=Ma(t)||-1,o=t,r.$validate())})),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=a}}}}}];function Da(t,e,n){if(t){if(F(t)&&(t=new RegExp("^"+t+"$")),!t.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,$t(n));return t}}function Ma(t){var e=P(t);return I(e)?-1:e}window.angular.bootstrap?window.console:(!function(){var t;if(!Mt){var e=ut();(a=V(e)?window.jQuery:e?window[e]:void 0)&&a.fn.on?(o=a,O(a.fn,{scope:Pe.scope,isolateScope:Pe.isolateScope,controller:Pe.controller,injector:Pe.injector,inheritedData:Pe.inheritedData})):o=pe,t=o.cleanData,o.cleanData=function(e){for(var n,i,r=0;null!=(i=e[r]);r++)(n=(o._data(i)||{}).events)&&n.$destroy&&o(i).triggerHandler("$destroy");t(e)},b.element=o,Mt=!0}}(),function(t){O(t,{errorHandlingConfig:e,bootstrap:Ot,copy:at,extend:O,merge:_,equals:lt,element:o,forEach:C,injector:Je,noop:M,bind:pt,toJson:mt,fromJson:gt,identity:L,isUndefined:V,isDefined:N,isString:F,isFunction:G,isObject:H,isNumber:U,isElement:nt,isArray:q,version:qt,isDate:B,callbacks:{$$counter:0},getTestability:Pt,reloadWithDebugInfo:_t,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Lt,$$minErr:i,$$csp:ct,$$encodeUriSegment:St,$$encodeUriQuery:kt,$$lowercase:h,$$stringify:zt,$$uppercase:d}),s=function(window){var t=i("$injector"),e=i("ng");function n(t,e,n){return t[e]||(t[e]=n())}var r=n(window,"angular",Object);return r.$$minErr=r.$$minErr||i,n(r,"module",(function(){var i={};return function(r,o,a){var s={};return function(t,n){if("hasOwnProperty"===t)throw e("badname","hasOwnProperty is not a valid {0} name","module")}(r),o&&i.hasOwnProperty(r)&&(i[r]=null),n(i,r,(function(){if(!o)throw t("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var n=[],i=[],l=[],c=h("$injector","invoke","push",i),u={_invokeQueue:n,_configBlocks:i,_runBlocks:l,info:function(t){if(N(t)){if(!H(t))throw e("aobj","Argument '{0}' must be an object","value");return s=t,this}return s},requires:o,name:r,provider:d("$provide","provider"),factory:d("$provide","factory"),service:d("$provide","service"),value:h("$provide","value"),constant:h("$provide","constant","unshift"),decorator:d("$provide","decorator",i),animation:d("$animateProvider","register"),filter:d("$filterProvider","register"),controller:d("$controllerProvider","register"),directive:d("$compileProvider","directive"),component:d("$compileProvider","component"),config:c,run:function(t){return l.push(t),this}};return a&&c(a),u;function h(t,e,i,r){return r||(r=n),function(){return r[i||"push"]([t,e,arguments]),u}}function d(t,e,i){return i||(i=n),function(n,o){return o&&G(o)&&(o.$$moduleName=r),i.push([t,e,arguments]),u}}}))}}))}(window),s("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:qi}),t.provider("$compile",vn).directive({a:Hr,input:$o,textarea:$o,form:Gr,script:Ca,select:Ea,option:Aa,ngBind:ko,ngBindHtml:Eo,ngBindTemplate:To,ngClass:_o,ngClassEven:Io,ngClassOdd:Po,ngCloak:Do,ngController:Mo,ngForm:Yr,ngHide:ga,ngIf:Vo,ngInclude:No,ngInit:zo,ngNonBindable:oa,ngPluralize:ca,ngRef:ha,ngRepeat:da,ngShow:ma,ngStyle:va,ngSwitch:ya,ngSwitchWhen:ba,ngSwitchDefault:wa,ngOptions:la,ngTransclude:xa,ngModel:ta,ngList:Fo,ngChange:Ao,pattern:_a,ngPattern:_a,required:Oa,ngRequired:Oa,minlength:Ia,ngMinlength:Ia,maxlength:Pa,ngMaxlength:Pa,ngValue:So,ngModelOptions:ia}).directive({ngInclude:Ho,input:xo}).directive(zr).directive(Lo),t.provider({$anchorScroll:Ze,$animate:sn,$animateCss:un,$$animateJs:on,$$animateQueue:an,$$AnimateRunner:cn,$$animateAsyncRun:ln,$browser:dn,$cacheFactory:pn,$controller:En,$document:An,$$isDocumentHidden:On,$exceptionHandler:_n,$filter:gr,$$forceReflow:Pn,$interpolate:Xn,$interval:Jn,$$intervalFactory:Zn,$http:Wn,$httpParamSerializer:Nn,$httpParamSerializerJQLike:Hn,$httpBackend:Yn,$xhrFactory:Gn,$jsonpCallbacks:ti,$location:vi,$log:yi,$parse:Ri,$rootScope:Bi,$q:ji,$$q:Vi,$sce:Ji,$sceDelegate:Qi,$sniffer:Zi,$$taskTrackerFactory:tr,$templateCache:fn,$templateRequest:ir,$$testability:rr,$timeout:ar,$window:pr,$$rAF:Ui,$$jqLite:Ve,$$Map:Ue,$$cookieReader:mr})}]).info({angularVersion:"1.8.2"})}(b),b.module("ngLocale",[],["$provide",function(t){var e="one",n="other";t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,i){var r=0|t,o=function(t,e){var n=e;void 0===n&&(n=Math.min(function(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}(t),3));var i=Math.pow(10,n);return{v:n,f:(t*i|0)%i}}(t,i);return 1==r&&0==o.v?e:n}})}]),o((function(){At(window.document,Ot)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}')),
/**
 * @license AngularJS v1.8.2
 * (c) 2010-2020 Google LLC. http://angularjs.org
 * License: MIT
 */
function(window,t){"use strict";var e=t.$$minErr("$resource"),n=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;function i(i,r){if(!function(t){return null!=t&&""!==t&&"hasOwnProperty"!==t&&n.test("."+t)}(r))throw e("badmember",'Dotted member path "@{0}" is invalid.',r);for(var o=r.split("."),a=0,s=o.length;a<s&&t.isDefined(i);a++){var l=o[a];i=null!==i?i[l]:void 0}return i}function r(e,n){for(var i in n=n||{},t.forEach(n,(function(t,e){delete n[e]})),e)!e.hasOwnProperty(i)||"$"===i.charAt(0)&&"$"===i.charAt(1)||(n[i]=e[i]);return n}t.module("ngResource",["ng"]).info({angularVersion:"1.8.2"}).provider("$resource",(function(){var n=/^https?:\/\/\[[^\]]*][^/]*/,o=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$log","$q","$timeout",function(a,s,l,c){var u=t.noop,h=t.forEach,d=t.extend,p=t.copy,f=t.isArray,m=t.isDefined,g=t.isFunction,v=t.isNumber,y=t.$$encodeUriQuery,b=t.$$encodeUriSegment;function w(t,e){this.template=t,this.defaults=d({},o.defaults,e),this.urlParams={}}return w.prototype={setUrlParams:function(t,i,r){var o,a,s=this,l=r||s.template,c="",u=s.urlParams=Object.create(null);h(l.split(/\W/),(function(t){if("hasOwnProperty"===t)throw e("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(t)&&t&&new RegExp("(^|[^\\\\]):"+t+"(\\W|$)").test(l)&&(u[t]={isQueryParamValue:new RegExp("\\?.*=:"+t+"(?:\\W|$)").test(l)})})),l=(l=l.replace(/\\:/g,":")).replace(n,(function(t){return c=t,""})),i=i||{},h(s.urlParams,(function(t,e){o=i.hasOwnProperty(e)?i[e]:s.defaults[e],m(o)&&null!==o?(a=t.isQueryParamValue?y(o,!0):b(o),l=l.replace(new RegExp(":"+e+"(\\W|$)","g"),(function(t,e){return a+e}))):l=l.replace(new RegExp("(/?):"+e+"(\\W|$)","g"),(function(t,e,n){return"/"===n.charAt(0)?n:e+n}))})),s.defaults.stripTrailingSlashes&&(l=l.replace(/\/+$/,"")||"/"),l=l.replace(/\/\.(?=\w+($|\?))/,"."),t.url=c+l.replace(/\/(\\|%5C)\./,"/."),h(i,(function(e,n){s.urlParams[n]||(t.params=t.params||{},t.params[n]=e)}))}},function(t,n,y,b){var x=new w(t,b);function C(t,e){var r={};return e=d({},n,e),h(e,(function(e,n){g(e)&&(e=e(t)),r[n]=e&&e.charAt&&"@"===e.charAt(0)?i(t,e.substr(1)):e})),r}function S(t){return t.resource}function k(t){r(t||{},this)}return y=d({},o.defaults.actions,y),k.prototype.toJSON=function(){var t=d({},this);return delete t.$promise,delete t.$resolved,delete t.$cancelRequest,t},h(y,(function(t,n){var i=!0===t.hasBody||!1!==t.hasBody&&/^(POST|PUT|PATCH)$/i.test(t.method),o=t.timeout,y=m(t.cancellable)?t.cancellable:x.defaults.cancellable;o&&!v(o)&&(s.debug("ngResource:\n  Only numeric values are allowed as `timeout`.\n  Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete t.timeout,o=null),k[n]=function(s,m,v,b){var w,T,E,A={};switch(arguments.length){case 4:E=b,T=v;case 3:case 2:if(!g(m)){A=s,w=m,T=v;break}if(g(s)){T=s,E=m;break}T=m,E=v;case 1:g(s)?T=s:i?w=s:A=s;break;case 0:break;default:throw e("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var O,_,P,I=this instanceof k,D=I?w:t.isArray?[]:new k(w),M={},L=t.interceptor&&t.interceptor.request||void 0,R=t.interceptor&&t.interceptor.requestError||void 0,j=t.interceptor&&t.interceptor.response||S,V=t.interceptor&&t.interceptor.responseError||l.reject,N=T?function(t){T(t,P.headers,P.status,P.statusText)}:void 0,H=E||void 0;h(t,(function(t,e){switch(e){default:M[e]=p(t);case"params":case"isArray":case"interceptor":case"cancellable":}})),!I&&y&&(O=l.defer(),M.timeout=O.promise,o&&(_=c(O.resolve,o))),i&&(M.data=w),x.setUrlParams(M,d({},C(w,t.params||{}),A),t.url);var z=l.resolve(M).then(L).catch(R).then(a);return z=z.then((function(i){var o=i.data;if(o){if(f(o)!==!!t.isArray)throw e("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",n,t.isArray?"array":"object",f(o)?"array":"object",M.method,M.url);if(t.isArray)D.length=0,h(o,(function(t){"object"==typeof t?D.push(new k(t)):D.push(t)}));else{var a=D.$promise;r(o,D),D.$promise=a}}return i.resource=D,P=i,j(i)}),(function(t){return t.resource=D,P=t,V(t)})),(z=z.finally((function(){D.$resolved=!0,!I&&y&&(D.$cancelRequest=u,c.cancel(_),O=_=M.timeout=null)}))).then(N,H),I?z:(D.$promise=z,D.$resolved=!1,y&&(D.$cancelRequest=F),D);function F(t){z.catch(u),null!==O&&O.resolve(t)}},k.prototype["$"+n]=function(t,e,i){g(t)&&(i=e,e=t,t={});var r=k[n].call(this,t,this,e,i);return r.$promise||r}})),k}}]}))}(window,window.angular),
/**
 * @license AngularJS v1.8.2
 * (c) 2010-2020 Google LLC. http://angularjs.org
 * License: MIT
 */
function(window,t){"use strict";function e(t,e){var n=[],i=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,(function(t,e,i,r){var o="?"===r||"*?"===r,a="*"===r||"*?"===r;return n.push({name:i,optional:o}),e=e||"",(o?"(?:"+e:e+"(?:")+(a?"(.+?)":"([^/]+)")+(o?"?)?":")")})).replace(/([/$*])/g,"\\$1");return e.ignoreTrailingSlashes&&(i=i.replace(/\/+$/,"")+"/*"),{keys:n,regexp:new RegExp("^"+i+"(?:[?#]|$)",e.caseInsensitiveMatch?"i":"")}}var n,i,r,o,a,s=t.module("ngRoute",[]).info({angularVersion:"1.8.2"}).provider("$route",(function(){function s(e,n){return t.extend(Object.create(e),n)}n=t.isArray,i=t.isObject,r=t.isDefined,o=t.noop;var c={};this.when=function(r,o){var a=function(t,e){if(n(t)){e=e||[];for(var r=0,o=t.length;r<o;r++)e[r]=t[r]}else if(i(t))for(var a in e=e||{},t)"$"===a.charAt(0)&&"$"===a.charAt(1)||(e[a]=t[a]);return e||t}(o);if(t.isUndefined(a.reloadOnUrl)&&(a.reloadOnUrl=!0),t.isUndefined(a.reloadOnSearch)&&(a.reloadOnSearch=!0),t.isUndefined(a.caseInsensitiveMatch)&&(a.caseInsensitiveMatch=this.caseInsensitiveMatch),c[r]=t.extend(a,{originalPath:r},r&&e(r,a)),r){var s="/"===r[r.length-1]?r.substr(0,r.length-1):r+"/";c[s]=t.extend({originalPath:r,redirectTo:r},e(s,a))}return this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return"string"==typeof t&&(t={redirectTo:t}),this.when(null,t),this},a=!0,this.eagerInstantiationEnabled=function(t){return r(t)?(a=t,this):a},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(e,n,i,r,a,u,h,d){var p,f,m=!1,g={routes:c,reload:function(){m=!0;var t={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,m=!1}};e.$evalAsync((function(){v(t),t.defaultPrevented||y()}))},updateParams:function(e){if(!this.current||!this.current.$$route)throw l("norout","Tried updating route with no current route");e=t.extend({},this.current.params,e),n.path(C(this.current.$$route.originalPath,e)),n.search(e)}};return e.$on("$locationChangeStart",v),e.$on("$locationChangeSuccess",y),g;function v(i){var r,o,a,l,u=g.current;t.forEach(c,(function(e,i){!o&&(r=function(t,e){var n=e.keys,i={};if(!e.regexp)return null;var r=e.regexp.exec(t);if(!r)return null;for(var o=1,a=r.length;o<a;++o){var s=n[o-1],l=r[o];s&&l&&(i[s.name]=l)}return i}(n.path(),e))&&((o=s(e,{params:t.extend({},n.search(),r),pathParams:r})).$$route=e)})),p=o||c.null&&s(c.null,{params:{},pathParams:{}}),a=p,l=u,(f=!m&&a&&l&&a.$$route===l.$$route&&(!a.reloadOnUrl||!a.reloadOnSearch&&t.equals(a.pathParams,l.pathParams)))||!u&&!p||e.$broadcast("$routeChangeStart",p,u).defaultPrevented&&i&&i.preventDefault()}function y(){var n=g.current,a=p;if(f)n.params=a.params,t.copy(n.params,i),e.$broadcast("$routeUpdate",n);else if(a||n){m=!1,g.current=a;var s=r.resolve(a);d.$$incOutstandingRequestCount("$route"),s.then(b).then(w).then((function(r){return r&&s.then(x).then((function(r){a===g.current&&(a&&(a.locals=r,t.copy(a.params,i)),e.$broadcast("$routeChangeSuccess",a,n))}))})).catch((function(t){a===g.current&&e.$broadcast("$routeChangeError",a,n,t)})).finally((function(){d.$$completeOutstandingRequest(o,"$route")}))}}function b(e){var i={route:e,hasRedirection:!1};if(e)if(e.redirectTo)if(t.isString(e.redirectTo))i.path=C(e.redirectTo,e.params),i.search=e.params,i.hasRedirection=!0;else{var o=n.path(),s=n.search(),l=e.redirectTo(e.pathParams,o,s);t.isDefined(l)&&(i.url=l,i.hasRedirection=!0)}else if(e.resolveRedirectTo)return r.resolve(a.invoke(e.resolveRedirectTo)).then((function(e){return t.isDefined(e)&&(i.url=e,i.hasRedirection=!0),i}));return i}function w(t){var e=!0;if(t.route!==g.current)e=!1;else if(t.hasRedirection){var i=n.url(),r=t.url;r?n.url(r).replace():r=n.path(t.path).search(t.search).replace().url(),r!==i&&(e=!1)}return e}function x(e){if(e){var n=t.extend({},e.resolve);t.forEach(n,(function(e,i){n[i]=t.isString(e)?a.get(e):a.invoke(e,null,null,i)}));var i=function(e){var n,i;t.isDefined(n=e.template)?t.isFunction(n)&&(n=n(e.params)):t.isDefined(i=e.templateUrl)&&(t.isFunction(i)&&(i=i(e.params)),t.isDefined(i)&&(e.loadedTemplateUrl=h.valueOf(i),n=u(i)));return n}(e);return t.isDefined(i)&&(n.$template=i),r.all(n)}}function C(e,n){var i=[];return t.forEach((e||"").split(":"),(function(t,e){if(0===e)i.push(t);else{var r=t.match(/(\w+)(?:[?*])?(.*)/),o=r[1];i.push(n[o]),i.push(r[2]||""),delete n[o]}})),i.join("")}}]})).run(c),l=t.$$minErr("ngRoute");function c(t){a&&t.get("$route")}function u(e,n,i){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(r,o,a,s,l){var c,u,h,d=a.autoscroll,p=a.onload||"";function f(){h&&(i.cancel(h),h=null),c&&(c.$destroy(),c=null),u&&((h=i.leave(u)).done((function(t){!1!==t&&(h=null)})),u=null)}function m(){var a=e.current&&e.current.locals,s=a&&a.$template;if(t.isDefined(s)){var h=r.$new(),m=e.current,g=l(h,(function(e){i.enter(e,null,u||o).done((function(e){!1===e||!t.isDefined(d)||d&&!r.$eval(d)||n()})),f()}));u=g,(c=m.scope=h).$emit("$viewContentLoaded"),c.$eval(p)}else f()}r.$on("$routeChangeSuccess",m),m()}}}function h(t,e,n){return{restrict:"ECA",priority:-400,link:function(i,r){var o=n.current,a=o.locals;r.html(a.$template);var s=t(r.contents());if(o.controller){a.$scope=i;var l=e(o.controller,a);o.controllerAs&&(i[o.controllerAs]=l),r.data("$ngControllerController",l),r.children().data("$ngControllerController",l)}i[o.resolveAs||"$resolve"]=a,s(i)}}}c.$inject=["$injector"],s.provider("$routeParams",(function(){this.$get=function(){return{}}})),s.directive("ngView",u),s.directive("ngView",h),u.$inject=["$route","$anchorScroll","$animate"],h.$inject=["$compile","$controller","$route"]}(window,window.angular),
/**
 * @license AngularJS v1.8.2
 * (c) 2010-2020 Google LLC. http://angularjs.org
 * License: MIT
 */
function(window,t){"use strict";var e,n,i,r,o,a,s,l,c,u,h=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",(function(){var d=!1,p=!1;this.$get=["$$sanitizeUri",function(t){return d=!0,p&&n(k,C),function(e){var n=[];return c(e,u(n,(function(e,n){return!/^unsafe:/.test(t(e,n))}))),n.join("")}}],this.enableSvg=function(t){return o(t)?(p=t,this):p},this.addValidElements=function(t){return d||(r(t)&&(t={htmlElements:t}),I(C,t.svgElements),I(g,t.htmlVoidElements),I(k,t.htmlVoidElements),I(k,t.htmlElements)),this},this.addValidAttrs=function(t){return d||n(O,P(t,!0)),this},e=t.bind,n=t.extend,i=t.forEach,r=t.isArray,o=t.isDefined,a=t.$$lowercase,s=t.noop,c=function(t,e){null==t?t="":"string"!=typeof t&&(t=""+t);var n=D(t);if(!n)return"";var i=5;do{if(0===i)throw h("uinput","Failed to sanitize html because the input is unstable");i--,t=n.innerHTML,n=D(t)}while(t!==n.innerHTML);var r=n.firstChild;for(;r;){switch(r.nodeType){case 1:e.start(r.nodeName.toLowerCase(),M(r.attributes));break;case 3:e.chars(r.textContent)}var o;if(!((o=r.firstChild)||(1===r.nodeType&&e.end(r.nodeName.toLowerCase()),o=j("nextSibling",r))))for(;null==o&&(r=j("parentNode",r))!==n;)o=j("nextSibling",r),1===r.nodeType&&e.end(r.nodeName.toLowerCase());r=o}for(;r=n.firstChild;)n.removeChild(r)},u=function(t,n){var r=!1,o=e(t,t.push);return{start:function(t,e){t=a(t),!r&&S[t]&&(r=t),r||!0!==k[t]||(o("<"),o(t),i(e,(function(e,i){var r=a(i),s="img"===t&&"src"===r||"background"===r;!0!==O[r]||!0===T[r]&&!n(e,s)||(o(" "),o(i),o('="'),o(L(e)),o('"'))})),o(">"))},end:function(t){t=a(t),r||!0!==k[t]||!0===g[t]||(o("</"),o(t),o(">")),t==r&&(r=!1)},chars:function(t){r||o(L(t))}}},l=window.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m=/([^#-~ |!])/g,g=_("area,br,col,hr,img,wbr"),v=_("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),y=_("rp,rt"),b=n({},y,v),w=n({},v,_("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")),x=n({},y,_("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")),C=_("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"),S=_("script,style"),k=n({},g,w,x,b),T=_("background,cite,href,longdesc,src,xlink:href,xml:base"),E=_("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"),A=_("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),O=n({},T,A,E);function _(t,e){return P(t.split(","),e)}function P(t,e){var n,i={};for(n=0;n<t.length;n++)i[e?a(t[n]):t[n]]=!0;return i}function I(t,e){e&&e.length&&n(t,P(e))}var D=function(window,t){if(function(){try{return!!i("")}catch(t){return!1}}())return i;if(!t||!t.implementation)throw h("noinert","Can't create an inert html document");var e=t.implementation.createHTMLDocument("inert"),n=(e.documentElement||e.getDocumentElement()).querySelector("body");return function(e){n.innerHTML=e,t.documentMode&&R(n);return n};function i(t){t="<remove></remove>"+t;try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.firstChild.remove(),e}catch(t){return}}}(window,window.document);function M(t){for(var e={},n=0,i=t.length;n<i;n++){var r=t[n];e[r.name]=r.value}return e}function L(t){return t.replace(/&/g,"&amp;").replace(f,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(m,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function R(t){for(;t;){if(t.nodeType===window.Node.ELEMENT_NODE)for(var e=t.attributes,n=0,i=e.length;n<i;n++){var r=e[n],o=r.name.toLowerCase();"xmlns:ns1"!==o&&0!==o.lastIndexOf("ns1:",0)||(t.removeAttributeNode(r),n--,i--)}var a=t.firstChild;a&&R(a),t=j("nextSibling",t)}}function j(t,e){var n=e[t];if(n&&l.call(e,n))throw h("elclob","Failed to sanitize html because the element is clobbered: {0}",e.outerHTML||e.outerText);return n}})).info({angularVersion:"1.8.2"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,r=t.$$minErr("linky"),o=t.isDefined,a=t.isFunction,l=t.isObject,c=t.isString;return function(t,h,d){if(null==t||""===t)return t;if(!c(t))throw r("notstring","Expected string but received: {0}",t);for(var p,f,m,g=a(d)?d:l(d)?function(){return d}:function(){return{}},v=t,y=[];p=v.match(n);)f=p[0],p[2]||p[4]||(f=(p[3]?"http://":"mailto:")+f),m=p.index,b(v.substr(0,m)),w(f,p[0].replace(i,"")),v=v.substring(m+p[0].length);return b(v),e(y.join(""));function b(t){var e,n;t&&y.push((e=t,u(n=[],s).chars(e),n.join("")))}function w(t,e){var n,i=g(t);for(n in y.push("<a "),i)y.push(n+'="'+i[n]+'" ');o(h)&&!("target"in i)&&y.push('target="',h,'" '),y.push('href="',t.replace(/"/g,"&quot;"),'">'),b(e),y.push("</a>")}}}])}(window,window.angular),angular.module("checklist-model",[]).directive("checklistModel",["$parse","$compile",function(t,e){function n(t,e,n){if(angular.isArray(t))for(var i=t.length;i--;)if(n(t[i],e))return!0;return!1}function i(i,r,o){e(r)(i);var a=t(o.checklistModel),s=a.assign,l=t(o.checklistChange),c=t(o.checklistValue)(i.$parent),u=angular.equals;function h(t,e){i.checked=n(t,c,u)}o.hasOwnProperty("checklistComparator")&&(u=t(o.checklistComparator)(i.$parent)),i.$watch("checked",(function(t,e){if(t!==e){var r=a(i.$parent);s(i.$parent,!0===t?function(t,e,i){return n(t=angular.isArray(t)?t:[],e,i)||t.push(e),t}(r,c,u):function(t,e,n){if(angular.isArray(t))for(var i=t.length;i--;)if(n(t[i],e)){t.splice(i,1);break}return t}(r,c,u)),l&&l(i)}})),angular.isFunction(i.$parent.$watchCollection)?i.$parent.$watchCollection(o.checklistModel,h):i.$parent.$watch(o.checklistModel,h,!0)}return{restrict:"A",priority:1e3,terminal:!0,scope:!0,compile:function(t,e){if("INPUT"!==t[0].tagName||"checkbox"!==e.type)throw'checklist-model should be applied to `input[type="checkbox"]`.';if(!e.checklistValue)throw"You should provide `checklist-value`.";return t.removeAttr("checklist-model"),t.attr("ng-model","checked"),i}}}]),angular.module("ngEqualizer",[]).factory("EqualizerState",["$window","$rootScope",function(t,e){var n,i;return i={},n=_.debounce((function(){var t,e,n,r,o,a,s,l;for(r in i){for(n=0,o=0,s=(e=i[r]).length;o<s;o++){(t=e[o]).css("height","auto");var c=t.outerHeight();n<c&&(n=c)}if(n>0)for(a=0,l=e.length;a<l;a++)(t=e[a]).css("height",n)}}),10),(t=$(t)).on("resize",n),e.$on("equalizer.rerun",(function(){n()})),{get:function(t){return i[t]},add:function(t,e){return void 0===i[t]&&(i[t]=[]),i[t].push(e),n(),this}}}]).directive("equalizer",["EqualizerState",function(t){return{restrict:"A",link:function(e,n,i){i.equalizer&&t.add(i.equalizer,n)}}}]),function(t,e){"use strict";if("function"==typeof define&&define.amd&&define.amd.angular)define(["angular"],e);else if("object"==typeof module&&module.exports){var n=angular||require("angular");n&&n.module||"undefined"==typeof angular||(n=angular),module.exports=e(n)}else e(t.angular)}(this,(function(t){"use strict";var e=t.module("rzModule",[]).factory("RzSliderOptions",(function(){var e={floor:0,ceil:null,step:1,precision:0,minRange:null,maxRange:null,pushRange:!1,minLimit:null,maxLimit:null,id:null,translate:null,getLegend:null,stepsArray:null,bindIndexForStepsArray:!1,draggableRange:!1,draggableRangeOnly:!1,showSelectionBar:!1,showSelectionBarEnd:!1,showSelectionBarFromValue:null,showOuterSelectionBars:!1,hidePointerLabels:!1,hideLimitLabels:!1,autoHideLimitLabels:!0,readOnly:!1,disabled:!1,interval:350,showTicks:!1,showTicksValues:!1,ticksArray:null,ticksTooltip:null,ticksValuesTooltip:null,vertical:!1,getSelectionBarColor:null,getTickColor:null,getPointerColor:null,keyboardSupport:!0,scale:1,enforceStep:!0,enforceRange:!1,noSwitching:!1,onlyBindHandles:!1,onStart:null,onChange:null,onEnd:null,rightToLeft:!1,reversedControls:!1,boundPointerLabels:!0,mergeRangeLabelsIfSame:!1,customTemplateScope:null,logScale:!1,customValueToPosition:null,customPositionToValue:null,selectionBarGradient:null,ariaLabel:null,ariaLabelledBy:null,ariaLabelHigh:null,ariaLabelledByHigh:null},n={},i={options:function(e){t.extend(n,e)},getOptions:function(i){return t.extend({},e,n,i)}};return i})).factory("rzThrottle",["$timeout",function(t){return function(e,n,i){var r,o,a,s=Date.now||function(){return(new Date).getTime()},l=null,c=0;i=i||{};var u=function(){c=s(),l=null,a=e.apply(r,o),r=o=null};return function(){var h=s(),d=n-(h-c);return r=this,o=arguments,d<=0?(t.cancel(l),l=null,c=h,a=e.apply(r,o),r=o=null):l||!1===i.trailing||(l=t(u,d)),a}}}]).factory("RzSlider",["$timeout","$document","$window","$compile","RzSliderOptions","rzThrottle",function(e,n,i,r,o,a){var s=function(t,e){this.scope=t,this.lowValue=0,this.highValue=0,this.sliderElem=e,this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.dragging={active:!1,value:0,difference:0,position:0,lowLimit:0,highLimit:0},this.positionProperty="left",this.dimensionProperty="width",this.handleHalfDim=0,this.maxPos=0,this.precision=0,this.step=1,this.tracking="",this.minValue=0,this.maxValue=0,this.valueRange=0,this.intermediateTicks=!1,this.initHasRun=!1,this.firstKeyDown=!1,this.internalChange=!1,this.cmbLabelShown=!1,this.currentFocusElement=null,this.fullBar=null,this.selBar=null,this.minH=null,this.maxH=null,this.flrLab=null,this.ceilLab=null,this.minLab=null,this.maxLab=null,this.cmbLab=null,this.ticks=null,this.init()};return s.prototype={init:function(){var e,n,r=this,o=function(){r.calcViewDimensions()};this.applyOptions(),this.syncLowValue(),this.range&&this.syncHighValue(),this.initElemHandles(),this.manageElementsStyle(),this.setDisabledState(),this.calcViewDimensions(),this.setMinAndMax(),this.addAccessibility(),this.updateCeilLab(),this.updateFloorLab(),this.initHandles(),this.manageEventsBindings(),this.scope.$on("reCalcViewDimensions",o),t.element(i).on("resize",o),this.initHasRun=!0,e=a((function(){r.onLowHandleChange()}),r.options.interval),n=a((function(){r.onHighHandleChange()}),r.options.interval),this.scope.$on("rzSliderForceRender",(function(){r.resetLabelsValue(),e(),r.range&&n(),r.resetSlider()})),this.scope.$watchCollection("rzSliderOptions()",(function(t,e){t!==e&&(r.applyOptions(),r.syncLowValue(),r.range&&r.syncHighValue(),r.resetSlider())})),this.scope.$watch("rzSliderModel",(function(t,n){r.internalChange||t!==n&&e()})),this.scope.$watch("rzSliderHigh",(function(t,e){r.internalChange||t!==e&&(null!=t&&n(),(r.range&&null==t||!r.range&&null!=t)&&(r.applyOptions(),r.resetSlider()))})),this.scope.$on("$destroy",(function(){r.unbindEvents(),t.element(i).off("resize",o),r.currentFocusElement=null}))},findStepIndex:function(e){for(var n=0,i=0;i<this.options.stepsArray.length;i++){var r=this.options.stepsArray[i];if(r===e){n=i;break}if(t.isDate(r)){if(r.getTime()===e.getTime()){n=i;break}}else if(t.isObject(r)&&(t.isDate(r.value)&&r.value.getTime()===e.getTime()||r.value===e)){n=i;break}}return n},syncLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.lowValue=this.scope.rzSliderModel:this.lowValue=this.findStepIndex(this.scope.rzSliderModel):this.lowValue=this.scope.rzSliderModel},syncHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.highValue=this.scope.rzSliderHigh:this.highValue=this.findStepIndex(this.scope.rzSliderHigh):this.highValue=this.scope.rzSliderHigh},getStepValue:function(e){var n=this.options.stepsArray[e];return t.isDate(n)?n:t.isObject(n)?n.value:n},applyLowValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderModel=this.lowValue:this.scope.rzSliderModel=this.getStepValue(this.lowValue):this.scope.rzSliderModel=this.lowValue},applyHighValue:function(){this.options.stepsArray?this.options.bindIndexForStepsArray?this.scope.rzSliderHigh=this.highValue:this.scope.rzSliderHigh=this.getStepValue(this.highValue):this.scope.rzSliderHigh=this.highValue},onLowHandleChange:function(){this.syncLowValue(),this.range&&this.syncHighValue(),this.setMinAndMax(),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateAriaAttributes(),this.range&&this.updateCmbLabel()},onHighHandleChange:function(){this.syncLowValue(),this.syncHighValue(),this.setMinAndMax(),this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.updateTicksScale(),this.updateCmbLabel(),this.updateAriaAttributes()},applyOptions:function(){var e;e=this.scope.rzSliderOptions?this.scope.rzSliderOptions():{},this.options=o.getOptions(e),this.options.step<=0&&(this.options.step=1),this.range=void 0!==this.scope.rzSliderModel&&void 0!==this.scope.rzSliderHigh,this.options.draggableRange=this.range&&this.options.draggableRange,this.options.draggableRangeOnly=this.range&&this.options.draggableRangeOnly,this.options.draggableRangeOnly&&(this.options.draggableRange=!0),this.options.showTicks=this.options.showTicks||this.options.showTicksValues||!!this.options.ticksArray,this.scope.showTicks=this.options.showTicks,(t.isNumber(this.options.showTicks)||this.options.ticksArray)&&(this.intermediateTicks=!0),this.options.showSelectionBar=this.options.showSelectionBar||this.options.showSelectionBarEnd||null!==this.options.showSelectionBarFromValue,this.options.stepsArray?this.parseStepsArray():(this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return String(t)},this.getLegend=this.options.getLegend),this.options.vertical&&(this.positionProperty="bottom",this.dimensionProperty="height"),this.options.customTemplateScope&&(this.scope.custom=this.options.customTemplateScope)},parseStepsArray:function(){this.options.floor=0,this.options.ceil=this.options.stepsArray.length-1,this.options.step=1,this.options.translate?this.customTrFn=this.options.translate:this.customTrFn=function(t){return this.options.bindIndexForStepsArray?this.getStepValue(t):t},this.getLegend=function(e){var n=this.options.stepsArray[e];return t.isObject(n)?n.legend:null}},resetSlider:function(){this.manageElementsStyle(),this.addAccessibility(),this.setMinAndMax(),this.updateCeilLab(),this.updateFloorLab(),this.unbindEvents(),this.manageEventsBindings(),this.setDisabledState(),this.calcViewDimensions(),this.refocusPointerIfNeeded()},refocusPointerIfNeeded:function(){this.currentFocusElement&&(this.onPointerFocus(this.currentFocusElement.pointer,this.currentFocusElement.ref),this.focusElement(this.currentFocusElement.pointer))},initElemHandles:function(){t.forEach(this.sliderElem.children(),(function(e,n){var i=t.element(e);switch(n){case 0:this.leftOutSelBar=i;break;case 1:this.rightOutSelBar=i;break;case 2:this.fullBar=i;break;case 3:this.selBar=i;break;case 4:this.minH=i;break;case 5:this.maxH=i;break;case 6:this.flrLab=i;break;case 7:this.ceilLab=i;break;case 8:this.minLab=i;break;case 9:this.maxLab=i;break;case 10:this.cmbLab=i;break;case 11:this.ticks=i}}),this),this.selBar.rzsp=0,this.minH.rzsp=0,this.maxH.rzsp=0,this.flrLab.rzsp=0,this.ceilLab.rzsp=0,this.minLab.rzsp=0,this.maxLab.rzsp=0,this.cmbLab.rzsp=0},manageElementsStyle:function(){this.range?this.maxH.css("display",""):this.maxH.css("display","none"),this.alwaysHide(this.flrLab,this.options.showTicksValues||this.options.hideLimitLabels),this.alwaysHide(this.ceilLab,this.options.showTicksValues||this.options.hideLimitLabels);var t=this.options.showTicksValues&&!this.intermediateTicks;this.alwaysHide(this.minLab,t||this.options.hidePointerLabels),this.alwaysHide(this.maxLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.cmbLab,t||!this.range||this.options.hidePointerLabels),this.alwaysHide(this.selBar,!this.range&&!this.options.showSelectionBar),this.alwaysHide(this.leftOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.alwaysHide(this.rightOutSelBar,!this.range||!this.options.showOuterSelectionBars),this.range&&this.options.showOuterSelectionBars&&this.fullBar.addClass("rz-transparent"),this.options.vertical&&this.sliderElem.addClass("rz-vertical"),this.options.draggableRange?this.selBar.addClass("rz-draggable"):this.selBar.removeClass("rz-draggable"),this.intermediateTicks&&this.options.showTicksValues&&this.ticks.addClass("rz-ticks-values-under")},alwaysHide:function(t,e){t.rzAlwaysHide=e,e?this.hideEl(t):this.showEl(t)},manageEventsBindings:function(){this.options.disabled||this.options.readOnly?this.unbindEvents():this.bindEvents()},setDisabledState:function(){this.options.disabled?this.sliderElem.attr("disabled","disabled"):this.sliderElem.attr("disabled",null)},resetLabelsValue:function(){this.minLab.rzsv=void 0,this.maxLab.rzsv=void 0},initHandles:function(){this.updateLowHandle(this.valueToPosition(this.lowValue)),this.range&&this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateSelectionBar(),this.range&&this.updateCmbLabel(),this.updateTicksScale()},translateFn:function(t,e,n,i){i=void 0===i||i;var r="",o=!1,a=e.hasClass("no-label-injection");i?(this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),r=String(this.customTrFn(t,this.options.id,n))):r=String(t),(void 0===e.rzsv||e.rzsv.length!==r.length||e.rzsv.length>0&&0===e.rzsd)&&(o=!0,e.rzsv=r),a||e.html(r),this.scope[n+"Label"]=r,o&&this.getDimension(e)},setMinAndMax:function(){if(this.step=+this.options.step,this.precision=+this.options.precision,this.minValue=this.options.floor,this.options.logScale&&0===this.minValue)throw Error("Can't use floor=0 with logarithmic scale");this.options.enforceStep&&(this.lowValue=this.roundStep(this.lowValue),this.range&&(this.highValue=this.roundStep(this.highValue))),null!=this.options.ceil?this.maxValue=this.options.ceil:this.maxValue=this.options.ceil=this.range?this.highValue:this.lowValue,this.options.enforceRange&&(this.lowValue=this.sanitizeValue(this.lowValue),this.range&&(this.highValue=this.sanitizeValue(this.highValue))),this.applyLowValue(),this.range&&this.applyHighValue(),this.valueRange=this.maxValue-this.minValue},addAccessibility:function(){this.minH.attr("role","slider"),this.updateAriaAttributes(),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.minH.attr("tabindex",""):this.minH.attr("tabindex","0"),this.options.vertical&&this.minH.attr("aria-orientation","vertical"),this.options.ariaLabel?this.minH.attr("aria-label",this.options.ariaLabel):this.options.ariaLabelledBy&&this.minH.attr("aria-labelledby",this.options.ariaLabelledBy),this.range&&(this.maxH.attr("role","slider"),!this.options.keyboardSupport||this.options.readOnly||this.options.disabled?this.maxH.attr("tabindex",""):this.maxH.attr("tabindex","0"),this.options.vertical&&this.maxH.attr("aria-orientation","vertical"),this.options.ariaLabelHigh?this.maxH.attr("aria-label",this.options.ariaLabelHigh):this.options.ariaLabelledByHigh&&this.maxH.attr("aria-labelledby",this.options.ariaLabelledByHigh))},updateAriaAttributes:function(){this.minH.attr({"aria-valuenow":this.scope.rzSliderModel,"aria-valuetext":this.customTrFn(this.scope.rzSliderModel,this.options.id,"model"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue}),this.range&&this.maxH.attr({"aria-valuenow":this.scope.rzSliderHigh,"aria-valuetext":this.customTrFn(this.scope.rzSliderHigh,this.options.id,"high"),"aria-valuemin":this.minValue,"aria-valuemax":this.maxValue})},calcViewDimensions:function(){var t=this.getDimension(this.minH);if(this.handleHalfDim=t/2,this.barDimension=this.getDimension(this.fullBar),this.maxPos=this.barDimension-t,this.getDimension(this.sliderElem),this.sliderElem.rzsp=this.sliderElem[0].getBoundingClientRect()[this.positionProperty],this.initHasRun){this.updateFloorLab(),this.updateCeilLab(),this.initHandles();var n=this;e((function(){n.updateTicksScale()}))}},updateTicksScale:function(){if(this.options.showTicks){var t=this.options.ticksArray||this.getTicksArray(),e=this.options.vertical?"translateY":"translateX",n=this;this.options.rightToLeft&&t.reverse(),this.scope.ticks=t.map((function(t){var i=n.valueToPosition(t);n.options.vertical&&(i=n.maxPos-i);var r=e+"("+Math.round(i)+"px)",o={selected:n.isTickSelected(t),style:{"-webkit-transform":r,"-moz-transform":r,"-o-transform":r,"-ms-transform":r,transform:r}};if(o.selected&&n.options.getSelectionBarColor&&(o.style["background-color"]=n.getSelectionBarColor()),!o.selected&&n.options.getTickColor&&(o.style["background-color"]=n.getTickColor(t)),n.options.ticksTooltip&&(o.tooltip=n.options.ticksTooltip(t),o.tooltipPlacement=n.options.vertical?"right":"top"),!0!==n.options.showTicksValues&&t%n.options.showTicksValues!=0||(o.value=n.getDisplayValue(t,"tick-value"),n.options.ticksValuesTooltip&&(o.valueTooltip=n.options.ticksValuesTooltip(t),o.valueTooltipPlacement=n.options.vertical?"right":"top")),n.getLegend){var a=n.getLegend(t,n.options.id);a&&(o.legend=a)}return o}))}},getTicksArray:function(){var t=this.step,e=[];this.intermediateTicks&&(t=this.options.showTicks);for(var n=this.minValue;n<=this.maxValue;n+=t)e.push(n);return e},isTickSelected:function(t){if(!this.range)if(null!==this.options.showSelectionBarFromValue){var e=this.options.showSelectionBarFromValue;if(this.lowValue>e&&t>=e&&t<=this.lowValue)return!0;if(this.lowValue<e&&t<=e&&t>=this.lowValue)return!0}else if(this.options.showSelectionBarEnd){if(t>=this.lowValue)return!0}else if(this.options.showSelectionBar&&t<=this.lowValue)return!0;return!!(this.range&&t>=this.lowValue&&t<=this.highValue)},updateFloorLab:function(){this.translateFn(this.minValue,this.flrLab,"floor"),this.getDimension(this.flrLab);var t=this.options.rightToLeft?this.barDimension-this.flrLab.rzsd:0;this.setPosition(this.flrLab,t)},updateCeilLab:function(){this.translateFn(this.maxValue,this.ceilLab,"ceil"),this.getDimension(this.ceilLab);var t=this.options.rightToLeft?0:this.barDimension-this.ceilLab.rzsd;this.setPosition(this.ceilLab,t)},updateHandles:function(t,e){"lowValue"===t?this.updateLowHandle(e):this.updateHighHandle(e),this.updateSelectionBar(),this.updateTicksScale(),this.range&&this.updateCmbLabel()},getHandleLabelPos:function(t,e){var n=this[t].rzsd,i=e-n/2+this.handleHalfDim,r=this.barDimension-n;return this.options.boundPointerLabels?this.options.rightToLeft&&"minLab"===t||!this.options.rightToLeft&&"maxLab"===t?Math.min(i,r):Math.min(Math.max(i,0),r):i},updateLowHandle:function(t){if(this.setPosition(this.minH,t),this.translateFn(this.lowValue,this.minLab,"model"),this.setPosition(this.minLab,this.getHandleLabelPos("minLab",t)),this.options.getPointerColor){var e=this.getPointerColor("min");this.scope.minPointerStyle={backgroundColor:e}}this.options.autoHideLimitLabels&&this.shFloorCeil()},updateHighHandle:function(t){if(this.setPosition(this.maxH,t),this.translateFn(this.highValue,this.maxLab,"high"),this.setPosition(this.maxLab,this.getHandleLabelPos("maxLab",t)),this.options.getPointerColor){var e=this.getPointerColor("max");this.scope.maxPointerStyle={backgroundColor:e}}this.options.autoHideLimitLabels&&this.shFloorCeil()},shFloorCeil:function(){if(!this.options.hidePointerLabels){var t=!1,e=!1,n=this.isLabelBelowFloorLab(this.minLab),i=this.isLabelAboveCeilLab(this.minLab),r=this.isLabelAboveCeilLab(this.maxLab),o=this.isLabelBelowFloorLab(this.cmbLab),a=this.isLabelAboveCeilLab(this.cmbLab);if(n?(t=!0,this.hideEl(this.flrLab)):(t=!1,this.showEl(this.flrLab)),i?(e=!0,this.hideEl(this.ceilLab)):(e=!1,this.showEl(this.ceilLab)),this.range){var s=this.cmbLabelShown?a:r,l=this.cmbLabelShown?o:n;s?this.hideEl(this.ceilLab):e||this.showEl(this.ceilLab),l?this.hideEl(this.flrLab):t||this.showEl(this.flrLab)}}},isLabelBelowFloorLab:function(t){var e=this.options.rightToLeft,n=t.rzsp,i=t.rzsd,r=this.flrLab.rzsp,o=this.flrLab.rzsd;return e?n+i>=r-2:n<=r+o+2},isLabelAboveCeilLab:function(t){var e=this.options.rightToLeft,n=t.rzsp,i=t.rzsd,r=this.ceilLab.rzsp,o=this.ceilLab.rzsd;return e?n<=r+o+2:n+i>=r-2},updateSelectionBar:function(){var t=0,e=0,n=this.options.rightToLeft?!this.options.showSelectionBarEnd:this.options.showSelectionBarEnd,i=this.options.rightToLeft?this.maxH.rzsp+this.handleHalfDim:this.minH.rzsp+this.handleHalfDim;if(this.range)e=Math.abs(this.maxH.rzsp-this.minH.rzsp),t=i;else if(null!==this.options.showSelectionBarFromValue){var r=this.options.showSelectionBarFromValue,o=this.valueToPosition(r);(this.options.rightToLeft?this.lowValue<=r:this.lowValue>r)?(e=this.minH.rzsp-o,t=o+this.handleHalfDim):(e=o-this.minH.rzsp,t=this.minH.rzsp+this.handleHalfDim)}else n?(e=Math.abs(this.maxPos-this.minH.rzsp)+this.handleHalfDim,t=this.minH.rzsp+this.handleHalfDim):(e=this.minH.rzsp+this.handleHalfDim,t=0);if(this.setDimension(this.selBar,e),this.setPosition(this.selBar,t),this.range&&this.options.showOuterSelectionBars&&(this.options.rightToLeft?(this.setDimension(this.rightOutSelBar,t),this.setPosition(this.rightOutSelBar,0),this.setDimension(this.leftOutSelBar,this.getDimension(this.fullBar)-(t+e)),this.setPosition(this.leftOutSelBar,t+e)):(this.setDimension(this.leftOutSelBar,t),this.setPosition(this.leftOutSelBar,0),this.setDimension(this.rightOutSelBar,this.getDimension(this.fullBar)-(t+e)),this.setPosition(this.rightOutSelBar,t+e))),this.options.getSelectionBarColor){var a=this.getSelectionBarColor();this.scope.barStyle={backgroundColor:a}}else if(this.options.selectionBarGradient){var s=null!==this.options.showSelectionBarFromValue?this.valueToPosition(this.options.showSelectionBarFromValue):0,l=s-t>0^n,c=this.options.vertical?l?"bottom":"top":l?"left":"right";this.scope.barStyle={backgroundImage:"linear-gradient(to "+c+", "+this.options.selectionBarGradient.from+" 0%,"+this.options.selectionBarGradient.to+" 100%)"},this.options.vertical?(this.scope.barStyle.backgroundPosition="center "+(s+e+t+(l?-this.handleHalfDim:0))+"px",this.scope.barStyle.backgroundSize="100% "+(this.barDimension-this.handleHalfDim)+"px"):(this.scope.barStyle.backgroundPosition=s-t+(l?this.handleHalfDim:0)+"px center",this.scope.barStyle.backgroundSize=this.barDimension-this.handleHalfDim+"px 100%")}},getSelectionBarColor:function(){return this.range?this.options.getSelectionBarColor(this.scope.rzSliderModel,this.scope.rzSliderHigh):this.options.getSelectionBarColor(this.scope.rzSliderModel)},getPointerColor:function(t){return"max"===t?this.options.getPointerColor(this.scope.rzSliderHigh,t):this.options.getPointerColor(this.scope.rzSliderModel,t)},getTickColor:function(t){return this.options.getTickColor(t)},updateCmbLabel:function(){if(this.options.rightToLeft?this.minLab.rzsp-this.minLab.rzsd-10<=this.maxLab.rzsp:this.minLab.rzsp+this.minLab.rzsd+10>=this.maxLab.rzsp){var t=this.getDisplayValue(this.lowValue,"model"),e=this.getDisplayValue(this.highValue,"high"),n="";n=this.options.mergeRangeLabelsIfSame&&t===e?t:this.options.rightToLeft?e+" - "+t:t+" - "+e,this.translateFn(n,this.cmbLab,"cmb",!1);var i=this.options.boundPointerLabels?Math.min(Math.max(this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2,0),this.barDimension-this.cmbLab.rzsd):this.selBar.rzsp+this.selBar.rzsd/2-this.cmbLab.rzsd/2;this.setPosition(this.cmbLab,i),this.cmbLabelShown=!0,this.hideEl(this.minLab),this.hideEl(this.maxLab),this.showEl(this.cmbLab)}else this.cmbLabelShown=!1,this.updateHighHandle(this.valueToPosition(this.highValue)),this.updateLowHandle(this.valueToPosition(this.lowValue)),this.showEl(this.maxLab),this.showEl(this.minLab),this.hideEl(this.cmbLab);this.options.autoHideLimitLabels&&this.shFloorCeil()},getDisplayValue:function(t,e){return this.options.stepsArray&&!this.options.bindIndexForStepsArray&&(t=this.getStepValue(t)),this.customTrFn(t,this.options.id,e)},roundStep:function(t,e){var n=e||this.step,i=parseFloat((t-this.minValue)/n).toPrecision(12);return i=Math.round(+i)*n,+(this.minValue+i).toFixed(this.precision)},hideEl:function(t){return t.css({visibility:"hidden"})},showEl:function(t){return t.rzAlwaysHide?t:t.css({visibility:"visible"})},setPosition:function(t,e){t.rzsp=e;var n={};return n[this.positionProperty]=Math.round(e)+"px",t.css(n),e},getDimension:function(t){var e=t[0].getBoundingClientRect();return this.options.vertical?t.rzsd=(e.bottom-e.top)*this.options.scale:t.rzsd=(e.right-e.left)*this.options.scale,t.rzsd},setDimension:function(t,e){t.rzsd=e;var n={};return n[this.dimensionProperty]=Math.round(e)+"px",t.css(n),e},sanitizeValue:function(t){return Math.min(Math.max(t,this.minValue),this.maxValue)},valueToPosition:function(t){var e=this.linearValueToPosition;this.options.customValueToPosition?e=this.options.customValueToPosition:this.options.logScale&&(e=this.logValueToPosition);var n=e(t=this.sanitizeValue(t),this.minValue,this.maxValue)||0;return this.options.rightToLeft&&(n=1-n),n*this.maxPos},linearValueToPosition:function(t,e,n){return(t-e)/(n-e)},logValueToPosition:function(t,e,n){return((t=Math.log(t))-(e=Math.log(e)))/((n=Math.log(n))-e)},positionToValue:function(t){var e=t/this.maxPos;this.options.rightToLeft&&(e=1-e);var n=this.linearPositionToValue;return this.options.customPositionToValue?n=this.options.customPositionToValue:this.options.logScale&&(n=this.logPositionToValue),n(e,this.minValue,this.maxValue)||0},linearPositionToValue:function(t,e,n){return t*(n-e)+e},logPositionToValue:function(t,e,n){e=Math.log(e);var i=t*((n=Math.log(n))-e)+e;return Math.exp(i)},getEventAttr:function(t,e){return void 0===t.originalEvent?t[e]:t.originalEvent[e]},getEventXY:function(t,e){var n=this.options.vertical?"clientY":"clientX";if(void 0!==t[n])return t[n];var i=this.getEventAttr(t,"touches");if(void 0!==e)for(var r=0;r<i.length;r++)if(i[r].identifier===e)return i[r][n];return i[0][n]},getEventPosition:function(t,e){var n=this.sliderElem.rzsp;return(this.options.vertical?-this.getEventXY(t,e)+n:this.getEventXY(t,e)-n)*this.options.scale-this.handleHalfDim},getEventNames:function(t){var e={moveEvent:"",endEvent:""};return this.getEventAttr(t,"touches")?(e.moveEvent="touchmove",e.endEvent="touchend"):(e.moveEvent="mousemove",e.endEvent="mouseup"),e},getNearestHandle:function(t){if(!this.range)return this.minH;var e=this.getEventPosition(t),n=Math.abs(e-this.minH.rzsp),i=Math.abs(e-this.maxH.rzsp);return n<i?this.minH:n>i?this.maxH:this.options.rightToLeft?e>this.minH.rzsp?this.minH:this.maxH:e<this.minH.rzsp?this.minH:this.maxH},focusElement:function(t){t[0].focus()},bindEvents:function(){var e,n,i;this.options.draggableRange?(e="rzSliderDrag",n=this.onDragStart,i=this.onDragMove):(e="lowValue",n=this.onStart,i=this.onMove),this.options.onlyBindHandles||(this.selBar.on("mousedown",t.bind(this,n,null,e)),this.selBar.on("mousedown",t.bind(this,i,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("mousedown",t.bind(this,n,null,e)),this.maxH.on("mousedown",t.bind(this,n,null,e))):(this.minH.on("mousedown",t.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("mousedown",t.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("mousedown",t.bind(this,this.onStart,null,null)),this.fullBar.on("mousedown",t.bind(this,this.onMove,this.fullBar)),this.ticks.on("mousedown",t.bind(this,this.onStart,null,null)),this.ticks.on("mousedown",t.bind(this,this.onTickClick,this.ticks)))),this.options.onlyBindHandles||(this.selBar.on("touchstart",t.bind(this,n,null,e)),this.selBar.on("touchstart",t.bind(this,i,this.selBar))),this.options.draggableRangeOnly?(this.minH.on("touchstart",t.bind(this,n,null,e)),this.maxH.on("touchstart",t.bind(this,n,null,e))):(this.minH.on("touchstart",t.bind(this,this.onStart,this.minH,"lowValue")),this.range&&this.maxH.on("touchstart",t.bind(this,this.onStart,this.maxH,"highValue")),this.options.onlyBindHandles||(this.fullBar.on("touchstart",t.bind(this,this.onStart,null,null)),this.fullBar.on("touchstart",t.bind(this,this.onMove,this.fullBar)),this.ticks.on("touchstart",t.bind(this,this.onStart,null,null)),this.ticks.on("touchstart",t.bind(this,this.onTickClick,this.ticks)))),this.options.keyboardSupport&&(this.minH.on("focus",t.bind(this,this.onPointerFocus,this.minH,"lowValue")),this.range&&this.maxH.on("focus",t.bind(this,this.onPointerFocus,this.maxH,"highValue")))},unbindEvents:function(){this.minH.off(),this.maxH.off(),this.fullBar.off(),this.selBar.off(),this.ticks.off()},onStart:function(e,i,r){var o,a,s=this.getEventNames(r);r.stopPropagation(),r.preventDefault(),this.calcViewDimensions(),e?this.tracking=i:(e=this.getNearestHandle(r),this.tracking=e===this.minH?"lowValue":"highValue"),e.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(e),o=t.bind(this,this.dragging.active?this.onDragMove:this.onMove,e),a=t.bind(this,this.onEnd,o),n.on(s.moveEvent,o),n.on(s.endEvent,a),this.endHandlerToBeRemovedOnEnd=a,this.callOnStart();var l=this.getEventAttr(r,"changedTouches");l&&(this.touchId||(this.isDragging=!0,this.touchId=l[0].identifier))},onMove:function(e,n,i){var r,o=this.getEventAttr(n,"changedTouches");if(o)for(var a=0;a<o.length;a++)if(o[a].identifier===this.touchId){r=o[a];break}if(!o||r){var s,l=this.getEventPosition(n,r?r.identifier:void 0),c=this.options.rightToLeft?this.minValue:this.maxValue,u=this.options.rightToLeft?this.maxValue:this.minValue;l<=0?s=u:l>=this.maxPos?s=c:(s=this.positionToValue(l),s=i&&t.isNumber(this.options.showTicks)?this.roundStep(s,this.options.showTicks):this.roundStep(s)),this.positionTrackingHandle(s)}},onEnd:function(t,e){var i=this.getEventAttr(e,"changedTouches");if(!i||i[0].identifier===this.touchId){this.isDragging=!1,this.touchId=null,this.options.keyboardSupport||(this.minH.removeClass("rz-active"),this.maxH.removeClass("rz-active"),this.tracking=""),this.dragging.active=!1;var r=this.getEventNames(e);n.off(r.moveEvent,t),n.off(r.endEvent,this.endHandlerToBeRemovedOnEnd),this.endHandlerToBeRemovedOnEnd=null,this.callOnEnd()}},onTickClick:function(t,e){this.onMove(t,e,!0)},onPointerFocus:function(e,n){this.tracking=n,e.one("blur",t.bind(this,this.onPointerBlur,e)),e.on("keydown",t.bind(this,this.onKeyboardEvent)),e.on("keyup",t.bind(this,this.onKeyUp)),this.firstKeyDown=!0,e.addClass("rz-active"),this.currentFocusElement={pointer:e,ref:n}},onKeyUp:function(){this.firstKeyDown=!0,this.callOnEnd()},onPointerBlur:function(t){t.off("keydown"),t.off("keyup"),t.removeClass("rz-active"),this.isDragging||(this.tracking="",this.currentFocusElement=null)},getKeyActions:function(t){var e=t+this.step,n=t-this.step,i=t+this.valueRange/10,r=t-this.valueRange/10;this.options.reversedControls&&(e=t-this.step,n=t+this.step,i=t-this.valueRange/10,r=t+this.valueRange/10);var o={UP:e,DOWN:n,LEFT:n,RIGHT:e,PAGEUP:i,PAGEDOWN:r,HOME:this.options.reversedControls?this.maxValue:this.minValue,END:this.options.reversedControls?this.minValue:this.maxValue};return this.options.rightToLeft&&(o.LEFT=e,o.RIGHT=n,this.options.vertical&&(o.UP=n,o.DOWN=e)),o},onKeyboardEvent:function(t){var n=this[this.tracking],i=t.keyCode||t.which,r=this.getKeyActions(n)[{38:"UP",40:"DOWN",37:"LEFT",39:"RIGHT",33:"PAGEUP",34:"PAGEDOWN",36:"HOME",35:"END"}[i]];if(null!=r&&""!==this.tracking){t.preventDefault(),this.firstKeyDown&&(this.firstKeyDown=!1,this.callOnStart());var o=this;e((function(){var t=o.roundStep(o.sanitizeValue(r));if(o.options.draggableRangeOnly){var e,n,i=o.highValue-o.lowValue;"lowValue"===o.tracking?(e=t,(n=t+i)>o.maxValue&&(e=(n=o.maxValue)-i)):(n=t,(e=t-i)<o.minValue&&(n=(e=o.minValue)+i)),o.positionTrackingBar(e,n)}else o.positionTrackingHandle(t)}))}},onDragStart:function(t,e,n){var i=this.getEventPosition(n);this.dragging={active:!0,value:this.positionToValue(i),difference:this.highValue-this.lowValue,lowLimit:this.options.rightToLeft?this.minH.rzsp-i:i-this.minH.rzsp,highLimit:this.options.rightToLeft?i-this.maxH.rzsp:this.maxH.rzsp-i},this.onStart(t,e,n)},getValue:function(t,e,n,i){var r=this.options.rightToLeft,o=null;return o="min"===t?n?i?r?this.minValue:this.maxValue-this.dragging.difference:r?this.maxValue-this.dragging.difference:this.minValue:r?this.positionToValue(e+this.dragging.lowLimit):this.positionToValue(e-this.dragging.lowLimit):n?i?r?this.minValue+this.dragging.difference:this.maxValue:r?this.maxValue:this.minValue+this.dragging.difference:r?this.positionToValue(e+this.dragging.lowLimit)+this.dragging.difference:this.positionToValue(e-this.dragging.lowLimit)+this.dragging.difference,this.roundStep(o)},onDragMove:function(t,e){var n,i,r,o,a,s,l,c,u=this.getEventPosition(e);if(this.options.rightToLeft?(r=this.dragging.lowLimit,o=this.dragging.highLimit,l=this.maxH,c=this.minH):(r=this.dragging.highLimit,o=this.dragging.lowLimit,l=this.minH,c=this.maxH),a=u<=o,s=u>=this.maxPos-r,a){if(0===l.rzsp)return;n=this.getValue("min",u,!0,!1),i=this.getValue("max",u,!0,!1)}else if(s){if(c.rzsp===this.maxPos)return;i=this.getValue("max",u,!0,!0),n=this.getValue("min",u,!0,!0)}else n=this.getValue("min",u,!1),i=this.getValue("max",u,!1);this.positionTrackingBar(n,i)},positionTrackingBar:function(t,e){null!=this.options.minLimit&&t<this.options.minLimit&&(e=(t=this.options.minLimit)+this.dragging.difference),null!=this.options.maxLimit&&e>this.options.maxLimit&&(t=(e=this.options.maxLimit)-this.dragging.difference),this.lowValue=t,this.highValue=e,this.applyLowValue(),this.range&&this.applyHighValue(),this.applyModel(!0),this.updateHandles("lowValue",this.valueToPosition(t)),this.updateHandles("highValue",this.valueToPosition(e))},positionTrackingHandle:function(t){var e=!1;t=this.applyMinMaxLimit(t),this.range&&(this.options.pushRange?(t=this.applyPushRange(t),e=!0):(this.options.noSwitching&&("lowValue"===this.tracking&&t>this.highValue?t=this.applyMinMaxRange(this.highValue):"highValue"===this.tracking&&t<this.lowValue&&(t=this.applyMinMaxRange(this.lowValue))),t=this.applyMinMaxRange(t),"lowValue"===this.tracking&&t>this.highValue?(this.lowValue=this.highValue,this.applyLowValue(),this.applyModel(),this.updateHandles(this.tracking,this.maxH.rzsp),this.updateAriaAttributes(),this.tracking="highValue",this.minH.removeClass("rz-active"),this.maxH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.maxH),e=!0):"highValue"===this.tracking&&t<this.lowValue&&(this.highValue=this.lowValue,this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.minH.rzsp),this.updateAriaAttributes(),this.tracking="lowValue",this.maxH.removeClass("rz-active"),this.minH.addClass("rz-active"),this.options.keyboardSupport&&this.focusElement(this.minH),e=!0))),this[this.tracking]!==t&&(this[this.tracking]=t,"lowValue"===this.tracking?this.applyLowValue():this.applyHighValue(),this.applyModel(),this.updateHandles(this.tracking,this.valueToPosition(t)),this.updateAriaAttributes(),e=!0),e&&this.applyModel(!0)},applyMinMaxLimit:function(t){return null!=this.options.minLimit&&t<this.options.minLimit?this.options.minLimit:null!=this.options.maxLimit&&t>this.options.maxLimit?this.options.maxLimit:t},applyMinMaxRange:function(t){var e="lowValue"===this.tracking?this.highValue:this.lowValue,n=Math.abs(t-e);return null!=this.options.minRange&&n<this.options.minRange?"lowValue"===this.tracking?this.highValue-this.options.minRange:this.lowValue+this.options.minRange:null!=this.options.maxRange&&n>this.options.maxRange?"lowValue"===this.tracking?this.highValue-this.options.maxRange:this.lowValue+this.options.maxRange:t},applyPushRange:function(t){var e="lowValue"===this.tracking?this.highValue-t:t-this.lowValue,n=null!==this.options.minRange?this.options.minRange:this.options.step,i=this.options.maxRange;return e<n?("lowValue"===this.tracking?(this.highValue=Math.min(t+n,this.maxValue),t=this.highValue-n,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=Math.max(t-n,this.minValue),t=this.lowValue+n,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()):null!==i&&e>i&&("lowValue"===this.tracking?(this.highValue=t+i,this.applyHighValue(),this.updateHandles("highValue",this.valueToPosition(this.highValue))):(this.lowValue=t-i,this.applyLowValue(),this.updateHandles("lowValue",this.valueToPosition(this.lowValue))),this.updateAriaAttributes()),t},applyModel:function(t){this.internalChange=!0,this.scope.$apply(),t&&this.callOnChange(),this.internalChange=!1},callOnStart:function(){if(this.options.onStart){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onStart(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}},callOnChange:function(){if(this.options.onChange){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onChange(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}},callOnEnd:function(){if(this.options.onEnd){var t=this,e="lowValue"===this.tracking?"min":"max";this.scope.$evalAsync((function(){t.options.onEnd(t.options.id,t.scope.rzSliderModel,t.scope.rzSliderHigh,e)}))}this.scope.$emit("slideEnded")}},s}]).directive("rzslider",["RzSlider",function(t){return{restrict:"AE",replace:!0,scope:{rzSliderModel:"=?",rzSliderHigh:"=?",rzSliderOptions:"&?",rzSliderTplUrl:"@"},templateUrl:function(t,e){return e.rzSliderTplUrl||"rzSliderTpl.html"},link:function(e,n){e.slider=new t(e,n)}}}]);return e.run(["$templateCache",function(t){t.put("rzSliderTpl.html",'<div class=rzslider><span class="rz-bar-wrapper rz-left-out-selection"><span class=rz-bar></span></span> <span class="rz-bar-wrapper rz-right-out-selection"><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class=rz-bar></span></span> <span class=rz-bar-wrapper><span class="rz-bar rz-selection" ng-style=barStyle></span></span> <span class="rz-pointer rz-pointer-min" ng-style=minPointerStyle></span> <span class="rz-pointer rz-pointer-max" ng-style=maxPointerStyle></span> <span class="rz-bubble rz-limit rz-floor"></span> <span class="rz-bubble rz-limit rz-ceil"></span> <span class="rz-bubble rz-model-value"></span> <span class="rz-bubble rz-model-high"></span> <span class=rz-bubble></span><ul ng-show=showTicks class=rz-ticks><li ng-repeat="t in ticks track by $index" class=rz-tick ng-class="{\'rz-selected\': t.selected}" ng-style=t.style ng-attr-uib-tooltip="{{ t.tooltip }}" ng-attr-tooltip-placement={{t.tooltipPlacement}} ng-attr-tooltip-append-to-body="{{ t.tooltip ? true : undefined}}"><span ng-if="t.value != null" class=rz-tick-value ng-attr-uib-tooltip="{{ t.valueTooltip }}" ng-attr-tooltip-placement={{t.valueTooltipPlacement}}>{{ t.value }}</span> <span ng-if="t.legend != null" class=rz-tick-legend>{{ t.legend }}</span></li></ul></div>')}]),e.name})),function($,t){"use strict";angular.module("platform-app",["ngSanitize","ngRoute","platformDirectives","platformFilters","productlistApp","topProductsApp","pageControllers"]).config(["$locationProvider","$sceDelegateProvider","$compileProvider",function(e,n,i){e.html5Mode({enabled:!(platform.page.isProduct&&!platform.page.productId),requireBase:!1,rewriteLinks:!1}).hashPrefix("!"),n.resourceUrlWhitelist(["self",t.platform.template.cdn+"/**"]),i.debugInfoEnabled(!1)}]),angular.module("pageControllers",[])}(jQuery,window),function($,platform){"use strict";var t=angular.module("platformDirectives",["platformFilters"]);t.directive("repeatDone",(function(){return function(t,e,n){t.$last&&n.repeatDone&&("function"==typeof n.repeatDone?t.$eval(n.repeatDone):$(platform).trigger(n.repeatDone,e))}})),t.directive("ngElementReady",(function(){return{priority:Number.MIN_SAFE_INTEGER,restrict:"A",link:function(t,e,n){t.$eval(n.ngElementReady)}}}))}(jQuery,platform),function(platform){"use strict";var t=angular.module("platformFilters",["ngSanitize"]);t.filter("truncate",(function(){return function(t,e,n){return isNaN(e)&&(e=10),void 0===n&&(n="..."),t.length<=e||t.length-n.length<=e?t:String(t).substring(0,e-n.length)+n}})),t.filter("currency_format",(function(){return platform.currency_format})),t.filter("currency_format_decode",[function(){return function(t){var e=platform.currency_format(t);if("string"==typeof e&&""!=e){var n=document.createElement("div");return n.innerHTML=e,n.childNodes[0].nodeValue}return e}}]),t.filter("decode",(function(){return function(t){if("string"==typeof t&&""!=t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0].nodeValue}return t}})),t.filter("unsafe",["$sce",function(t){return function(e){return t.trustAsHtml(e)}}])}(window.platform),function($,t){"use strict";var e=angular.module("topProductsApp",["productlistServices"]);e.directive("printProducts",(function(){return{strict:"A",scope:{printProducts:"=",pageSize:"="},templateUrl:function(t,e){return e.templateUrl},controller:["$scope","$attrs","ProductApi",function(t,e,n){t.spinner=window.platform.template.cdn+"/_design/common/img/preloader/preloader-black.gif";var i={field:"orderBy",id:e.printProducts,limit:e.pageSize,filterGenerate:"true",forTopList:"true"};n.productlist.query(i,(function(e){e.amount&&e.products&&(t.products=e.products),t.loaded=!0}))}]}})),e.controller("top-products-ctrl",["$scope","$attrs",function(t,e){t.pageSize=e.pageSize,t.text=window.text,t.box1=platform.template.settings.MODULEBOX_TOPTEN_SHOW_NEW||!1,t.box2=platform.template.settings.MODULEBOX_TOPTEN_SHOW_BOUGHT||!1,t.box3=platform.template.settings.MODULEBOX_TOPTEN_SHOW_OFFERS||!1;var n=0;t.box3&&(t.active=3,n++),t.box2&&(t.active=2,n++),t.box1&&(t.active=1,n++),t.boxCount=n}])}(jQuery,window),function($,platform,t){"use strict";$("rzslider").each((function(){var t=$(this);t.attr("rz-slider-options","filterSelected.maxPrice"===t.attr("rz-slider-high")?"filterMap.prices.sliderOptions":"{translate:rzTranslate, groupUnit: dataGroup.data.unit, floor:dataGroup.data.low, precision: dataGroup.data.precision, step: dataGroup.data.step }")}));var e=$("link[href*='/libs.css']");e.length&&-1==e.attr("href").indexOf("/_design/smartytemplates/store/")&&$("head").append('<link rel="stylesheet" type="text/css" href="'+platform.template.cdn+'/_design/smartytemplates/store/template001/source/js/angularjs/libs/rzslider.v643.css">');var n=angular.module("productlistApp",["ngEqualizer","checklist-model","rzModule","productlistServices","productlistDirectives"]);n.controller("productlist-ctrl",["$scope","$q","$rootScope","$attrs","$filter","$location","ProductApi","$timeout","LinkService","FilterService",function(t,e,n,i,r,o,a,s,l,c){t.version=20191004,t.text=window.text,t.language=platform.language,t.settings=platform.settings,t.template=platform.template,t.shop=platform.shop,t.user=platform.user,t.general=platform.general,t.currency_format=r("currency_format"),t.currency_format_decode=r("currency_format_decode"),t.filters={},t.productlist=t.items=[],t.itemId=i.itemId,t.filter=i.filter,t.loaded=!1,t.empty=!1,t.showEmpty=void 0!==i.showEmpty&&"1"==i.showEmpty,t.maxPage=1,t.filterMap=null,t.showFilter=!1,t.filterChanged=!1,t.imageWidth=i.imageWidth,t.imageHeight=i.imageHeight,t.linkservice=l,t.limitOptions=[{amount:48,title:t.text.PRODUCT_CATALOG_ORDER_BY_LIMIT_PER_PAGE.replace("%AMOUNT%",48)},{amount:96,title:t.text.PRODUCT_CATALOG_ORDER_BY_LIMIT_PER_PAGE.replace("%AMOUNT%",96)},{amount:0,title:r("decode")(t.text.SHOW_ALL)}];t.hasMeta=!!angular.element('head link[rel="canonical"]').length,t.reCalcSlider=function(){s((function(){t.$broadcast("reCalcViewDimensions")}),25)},t.hasAmountDropdown=function(){var e=[];return _.forEach(t.limitOptions,(function(t,n){t&&t.amount&&e.push(t.amount)})),t.amount>=Math.min.apply(Math,e)},t.amountText=function(){var e,n=t.limitProp,i=t.amount,r=t.page,o=t.text.PRODUCT_CATALOG_ORDER_BY_LIMIT_DISPLAY,a=r*n-n;if(n>i||0===n)return(o=t.text.PRODUCT_CATALOG_ORDER_BY_LIMIT_ON_PAGE).replace("%AMOUNT%",i);switch(r){case 1:a=null,e=n;break;case Math.ceil(i/n):e=a+i-(r-1)*n;break;default:e=r*n}return a?o.replace("%CURRENT%",a+"-"+e).replace("%AMOUNT%",i):o.replace("%CURRENT%",e).replace("%AMOUNT%",i)},t.orderOptions=[];var u=function(e,n,i){t.orderOptions.push({id:e,title:r("decode")(n),overwrite:i})},h=function(t){var e="Sold";return t?"title"==(t=t.toLowerCase())?"Title":"price"==t?"SortPrice":"price_high"==t?"-SortPrice":"date"==t?"Age":"bestseller"==t?"-Sold":"number"==t?"ItemNumber":"relevance"==t?"-Weight":"recommended"==t?"Recommended":e:e};platform.getSetting("shop_productlist_sorting_recommended")&&u("Recommended",text.PRODUCT_CATALOG_ORDER_BY_RECOMMENDED,!0),platform.getSetting("shop_productlist_sorting_title")&&u("Title",text.PRODUCT_CATALOG_ORDER_BY_TITLE,platform.getSetting("shop_productlist_sorting_title_overwrite")),platform.getSetting("shop_productlist_sorting_price")&&u("SortPrice",text.PRODUCT_CATALOG_ORDER_BY_PRICE,platform.getSetting("shop_productlist_sorting_price_overwrite")),platform.getSetting("shop_productlist_sorting_price_high")&&u("-SortPrice",text.PRODUCT_CATALOG_ORDER_BY_PRICE_HIGH,platform.getSetting("shop_productlist_sorting_price_high_overwrite")),platform.getSetting("shop_productlist_sorting_date")&&u("Age",text.PRODUCT_CATALOG_ORDER_BY_DATE,platform.getSetting("shop_productlist_sorting_date_overwrite")),platform.getSetting("shop_productlist_sorting_bestseller")&&u("-Sold",text.PRODUCT_CATALOG_ORDER_BY_BESTSELLER,platform.getSetting("shop_productlist_sorting_bestseller_overwrite")),platform.getSetting("shop_productlist_sorting_number")&&u("ItemNumber",text.PRODUCT_CATALOG_ORDER_BY_NUMBER,platform.getSetting("shop_productlist_sorting_number_overwrite")),_.each(platform.general.searchOptions,(function(t,e){u(h(t.title),text.PRODUCT_CATALOG_ORDER_BY_WEIGHT,!1)}));var d={typeId:i.viewmode?i.viewmode:2,limitProp:t.limitOptions[0].amount,orderProp:h(""!=i.sorting?i.sorting:"bestseller"),page:1};function p(t,e){if("undefined"!=typeof Storage){var n=void 0!==sessionStorage.productlist?JSON.parse(sessionStorage.productlist):{};return n[t]=e,sessionStorage.productlist=JSON.stringify(n),!0}return!1}if("undefined"!=typeof Storage&&void 0!==sessionStorage.productlist){var f=JSON.parse(sessionStorage.productlist);_.forEach(f,(function(t,e){void 0!==d[e]&&null!=t&&(d[e]=t)}))}var m=o.search();_.keys(_.omit(m,["page"])).length&&(t.canonicalChanged=!0),_.forEach(["typeId","limitProp","orderProp","page"],(function(e){var n=null;null!==(n=void 0!==m[e]&&"null"!=m[e]?m[e]:d[e])&&("page"!=e&&"limitProp"!=e||(n=parseInt(n)),t[e]=n)}));var g=angular.fromJson(m.filter)||null;function v(e){var n=i.field?i.field:null;n||(n="categoryId");var o=null;if(""!==t.orderProp&&null!=t.orderProp){var l=!0;_.forEach(t.orderOptions,(function(e,n){if(e.id==t.orderProp)return l=e.overwrite,!1}));var c=t.orderProp;"Recommended"==c&&(c=h(platform.getSetting("shop_productlist_sorting_recommended_sorting"))),o=l?"Sorting,"+c:c}var u={field:n,id:t.itemId,orderBy:o,page:t.page,limit:t.limitProp,filterGenerate:!0,currencyIso:platform.general.currencyIso};e&&(u.filter=e,void 0!==e.lastUpdated&&(u.lastUpdated=e.lastUpdated,delete e.lastUpdated));var d=1;return t.loadingProducts=t.loaded||!0,a.productlist.query(u,(function(e){var n;if(t.maxPage=1,e.amount&&e.products?(d=t.limitProp?Math.ceil(e.amount/t.limitProp):1,t.maxPage=d,t.productlist=t.items=e.products,t.empty=!1,t.amount=e.amount):(t.productlist=t.items=[],t.empty=!0),t.page>t.maxPage&&(n=t.maxPage,window.location.href=t.link(n),1!==n&&window.location.reload()),i.filter&&e.filterMap?(t.filterMap=e.filterMap,t.filterMap.prices.sliderOptions={floor:t.filterMap.prices.data.low,ceil:t.filterMap.prices.data.high,translate:t.version>=20170711?r("currency_format_decode"):r("currency_format")},t.showFilter=!1,_.forEach(t.filterMap,(function(e,n){if("data"!=n&&e.show&&(void 0===e.data||e.data.length||"object"==typeof e.data&&Object.keys(e.data).length))return t.showFilter=!0,!1})),t.showFilter||void 0===t.filterMap.data||_.forEach(t.filterMap.data,(function(e,n){if(e.show&&(e.data.length||"object"==typeof e.data&&Object.keys(e.data).length))return t.showFilter=!0,!1})),s((function(){t.$broadcast("reCalcViewDimensions")}),100)):(t.filterMap=null,t.showFilter=!1),t.empty&&t.showFilter&&(t.showEmpty=!0),t.loaded=!0,t.loadingProducts=!1,t.$broadcast("productlist.fetch"),$(window.platform).trigger("fetch.productlist",e),i.session&&platform.getSetting("product_browse")){var o=e.productIds?e.productIds:t.productlist.length?_.map(t.productlist,"Id"):null;a.session(o)}}))}function y(){var e=[];t.empty||t.hasMeta||(t.getNextPage&&t.getPrevPage&&(e=[{name:"prev",value:t.getPrevPage()},{name:"next",value:t.getNextPage()}]),t.linkservice.set(e,t.canonicalChanged,t.page))}function b(e){(e=!1!==e)&&(o.search("page",null),t.page=1);var n=t.filterSelected||g||{};return v(k(n)).$promise.then((function(){if(t.filterSelected=n,t.filterMap){var e=(e=function(t){if("undefined"!=typeof Storage&&void 0!==sessionStorage.productlist){var e=JSON.parse(sessionStorage.productlist);if(t&&e[t])return JSON.parse(e[t])}return!1}("filter"))||n;t.filterChanged=c.hasChanges(e,t.filterMap)}}))}if(g&&(t.canonicalChanged=!0),""!=i.productId){var w=i.productId.split(","),x=[];_.forEach(w,(function(t,e){x.push({Id:t})})),t.orderProp=null,t.limitProp=null,t.canonicalChanged=!1,t.page=1,t.maxPage=1,a.product.query({field:"id",id:i.productId},(function(e){t.productlist=t.items=e.products,t.empty=!e.products.length,t.loaded=!0}))}else{var C=window.template.bp.current();"s"!=C&&null!=C||(t.limitOptions.unshift({amount:24,title:t.text.PRODUCT_CATALOG_ORDER_BY_LIMIT_PER_PAGE.replace("%AMOUNT%",24)}),t.limitProp=t.limitOptions[0].amount),b(!t.page||1==t.page).then((function(){if(t.amount>=200){for(var e in t.limitOptions)0==t.limitOptions[e].amount&&t.limitOptions.splice(e,1);0==t.limitProp&&(t.limitProp=t.limitOptions[0].amount)}S(),y()}))}function S(){if(i.filter&&t.filterMap&&(void 0!==t.filterMap.prices&&t.filterMap.prices.show&&(void 0===t.filterSelected.minPrice&&(t.filterSelected.minPrice=t.filterMap.prices.data.low),void 0===t.filterSelected.maxPrice&&(t.filterSelected.maxPrice=t.filterMap.prices.data.high)),void 0!==t.filterMap.data&&t.filterMap.data.length)){var e=t.filterSelected.data||{};_.forEach(t.filterMap.data,(function(t){void 0===e[t.id]&&t.show&&"range"==t.show&&(e[t.id]=t.data,e[t.id].from=t.data.low,e[t.id].to=t.data.high)})),t.filterSelected.data=e}}function k(e){var n=_.cloneDeep(e);return n&&t.filterMap?(n.data&&t.filterMap.data&&_.each(t.filterMap.data,(function(t){var e=t.id,i=n.data[e];if(i){var r=!1;"range"===t.show&&(r=Number.isNaN(i.from)||null===i.from||Number.isNaN(i.to)||null===i.to||i.from==t.data.low&&i.to==t.data.high),(r||!1===t.show)&&delete n.data[e]}})),n.maxPrice&&n.minPrice&&t.filterMap.prices&&(!0,n.maxPrice==t.filterMap.prices.data.high&&n.minPrice==t.filterMap.prices.data.low&&!1),n):n}t.saveState=function(t,e){o.search(t,e)},t.changeType=function(e){t.typeId=e,t.saveState("typeId",t.typeId),t.canonicalChanged=!0,p("typeId",t.typeId)},t.changeLimit=function(){t.saveState("limitProp",t.limitProp),b().then((function(){t.canonicalChanged=!0,y()})),p("limitProp",t.limitProp)},t.changeOrder=function(){t.saveState("orderProp",t.orderProp),b().then((function(){t.canonicalChanged=!0,y()})),p("orderProp",t.orderProp)},t.triggerEvent=function(t,e){$(window.platform).trigger(t+".productlist",e||!0)},t.range=function(){var e=parseInt(t.page),n=e-5;n<1&&(n=1);var i=e+5;return i>t.maxPage&&(i=t.maxPage),_.range(n,i+1)},t.setPage=function(e,n){t.page=e||this.n,t.saveState("page",t.page>1?t.page:null),n=n||!1,b(!1).then((function(){n&&$.scrollTo(".product-scroll-target",100),t.canonicalChanged=!!t.canonicalChanged,y()}))},t.prevPage=function(){t.page>1&&t.setPage(t.page-1,!0)},t.getPrevPage=function(){return t.page>1&&t.page-1},t.nextPage=function(){t.page<t.maxPage&&t.setPage(t.page+1,!0)},t.getNextPage=function(){return 1!=t.maxPage&&(t.page<=t.maxPage-1&&t.page+1)},t.link=function(e){return"string"!=typeof e||(e="next"==e?t.getNextPage():t.getPrevPage())?t.linkservice.buildComplete(e):""},t.nav=function(e,n){e.preventDefault(),"string"==typeof n?"next"==n?t.nextPage():t.prevPage():t.setPage(parseInt(n,10),!0)},window.addEventListener("hashchange",(function(e){var n=o.search().page;n=n?parseInt(o.search().page,10):1,t.page!==n&&t.nav(e,n)})),t.searchText=r("decode")(t.text.SEARCH),t.$on("slideEnded",(function(){t.state("slider")})),t.searchChanged=!1,t.$watch("filterSelected.search",_.debounce((function(){t.searchChanged&&(t.state("search"),t.searchChanged=!1)}),500)),t.multipleSelectTitle=function(t,e){if(!t||!e||!e.length)return!1;var n,i="",r=function(t,e){var n={};return _.forEach(t,(function(t){if(t.id===e)return n=t})),n};for(n=0;n<e.length;n++){if(i+=r(t,e[n]).title,n<e.length-1&&i.length<41&&(i+=", "),i.length>42){i=i.substring(0,42)+"...";break}}return i},t.clearSelect=function(e){g=c.resetSelect(g,e),t.filterSelected=c.resetSelect(t.filterSelected,e),t.state(e,!1),t.filterChanged=!0},t.clearFilter=function(){t.filterMap&&b().then((function(){y(),function(){t.filterChanged=!1,t.canonicalChanged=!1;var e=c.getDefaults(t.filterMap);o.search("filter",JSON.stringify(e)),S();var n=c.setDefaults(t.filterMap,t.filterSelected.lastUpdated);g=n,t.filterSelected=n,t.state("clear")}()}))},t.rzTranslate=function(e){var n=null;return t.canonicalChanged=!0,this.attributes&&(n=this.attributes.groupUnit||this.attributes.groupUnit||this.attributes["data-group-unit"]),this.options.groupUnit&&(n=this.options.groupUnit),e=e||this.minValue||0,(e=String(e).replace(".",","))+(n?" "+n:"")},t.state=function(e){t.filterSelected.lastUpdated=e;var n=angular.toJson(k(t.filterSelected));t.saveState("filter",n),p("filter",n),t.canonicalChanged=!0,t.setPage(1,!1)}}]),n.controller("product-ctrl",["$scope","$element","$rootScope","$attrs","$filter","$location","$sce",function(t,e,n,i,r,o,a){t.product.DescriptionList=a.trustAsHtml(t.product.DescriptionList);var s=platform.template.cdn+t.product.Images[0];t.image=s;var l=t.product.Handle;if(t.itemNumber=t.product.ItemNumber,t.isNew=t.product.Age<=2592e3,t.hasVariants="variant"==t.product.Type,t.hasVariants?t.hasChosenVariant=!1:t.hasChosenVariant=!0,t.showButtons=platform.getSetting("product_list_show_buttons"),t.showVariants=t.hasVariants&&t.showButtons,t.showVariants&&(t.variantDefault=1==t.product.VariantTypes.length?window.text.CHOOSE_VARIANT+" "+t.product.VariantTypes[0].Title:window.text.PRODUCT_CATALOG_PRODUCT_CHOOSE_VARIANT,t.variantDefault=r("decode")(t.variantDefault)),t.minAmount=t.product.MinAmount,t.stock=parseInt(t.product.Stock),t.stockIsNaN=isNaN(t.stock),t.isSoldout=t.product.Soldout,t.soldout=t.isSoldout&&!t.product.AllowOutOfStockPurchase,t.deliveryId=t.product.DeliveryTimeId,t.deliveryText=t.product.DeliveryTimeText,t.unitTitle=t.product.UnitTitle,t.paymentOptions=[],t.vatText=text.PRODUCT_CATALOG_PRODUCT_PRICE_TAX_NO,t.product.CallForPrice)t.price=window.text.PRODUCT_CATALOG_CALL_FOR_PRICE,t.onSale=!1;else{var c=t.product.Prices[0];t.price="",c.Amount>1&&(t.price+=window.text.PRODUCT_CATALOG_PRICE_FOR+" "+c.Amount+" "+t.product.UnitTitle+" "),c.PriceMin==c.PriceMax&&"giftcard"!=t.product.Type&&"codegiftcard"!=t.product.Type||(t.price+=window.text.PRODUCT_CATALOG_PRICE_FROM+" "),platform.currency.hasVat&&(0==platform.settings.vat_label_advanced||c.PriceMinWithVat>c.PriceMinWithoutVat)&&(t.vatText=text.PRODUCT_CATALOG_PRODUCT_PRICE_TAX),t.price+=r("currency_format")(c.PriceMin),c.PriceMin<c.FullPriceMin&&(t.discount=c.FullPriceMin,t.onSale=!0);var u=null;_.each(t.product.Prices,(function(t,e){t.PriceMin<c.PriceMin&&(!u||t.PriceMin<u.PriceMin)&&(u=t)})),u&&(t.combo=window.text.PRODUCT_CATALOG_PRICE_FOR+" "+u.Amount+" "+t.product.UnitTitle+" "+r("currency_format")(u.PriceMin))}t.showPrices=t.product.ShowPrices,t.setButtonMode=function(e,n){var i=0;t.showPrices&&e&&(i=1,t.showVariants&&!n&&(i=2)),t.buttonMode=i},t.setButtonMode(t.product.Buyable,!1),t.processProductSubmit=function(){return t.returnUrl=o.absUrl(),!0},t.$on("update.product"+t.product.Id,(function(e,i){t.$apply((function(){if(i.Price){var e=i.Price;t.price="",e.Amount>1&&(t.price+=window.text.PRODUCT_CATALOG_PRICE_FOR+" "+e.Amount+" "+t.product.UnitTitle+" "),t.price+=r("currency_format")(e.PriceMin),e.PriceMin<e.FullPriceMin?(t.discount=e.FullPriceMin,t.onSale=!0):(t.discount=0,t.onSale=!1);var o=null;_.each(i.Prices,(function(t,n){t.PriceMin<e.PriceMin&&(!o||t.PriceMin<o.PriceMin)&&(o=t)})),t.combo=o?window.text.PRODUCT_CATALOG_PRICE_FOR+" "+o.Amount+" "+t.product.UnitTitle+" "+r("currency_format")(o.PriceMin):null}t.unitTitle=i.UnitTitle,t.stock=parseInt(i.Stock),t.stockIsNaN=isNaN(t.stock),t.minAmount=i.MinAmount,i.Picture?t.image=platform.template.cdn+i.Picture:t.image=s,t.lazyloadImage(),t.itemNumber=i.ItemNumber?i.ItemNumber:t.product.ItemNumber,t.isSoldout=i.Soldout,t.soldout=t.isSoldout&&!i.AllowOutOfStockPurchase,t.deliveryId=i.DeliveryTimeId,t.deliveryText=i.DeliveryTimeText,t.variantDefault=r("decode")(i.Title),t.product.Handle=l+"?variantId="+i.Id,t.setButtonMode(!!t.product.Buyable&&i.Buyable,!0),t.hasChosenVariant=!0,n.$broadcast("equalizer.rerun")}))})),t.lazyloadImage=function(){e.find("img.m-productlist-image").addClass("lazyload")},t.toggleFlashVariant=function(){t.flashVariant=!0,setTimeout((function(){t.$apply((function(){t.flashVariant=!1}))}),1e3)}}]),n.controller("filter-ctrl",[function(){}])}(jQuery,window.platform,window),function($,platform){"use strict";var t=angular.module("productlistDirectives",["platformFilters"]);t.directive("deliveryText",(function(){return{strict:"A",template:'<i data-ng-show="settings.shop_product_delivery_time == \'texticon\' || deliveryId < 1" class="fa fa-fw" data-ng-class="{\'fa-clock-o\': isSoldout, \'fa-check\': !isSoldout}"></i><span data-ng-bind-html="deliveryText"></span> <span class="stockAmount" data-ng-if="!stockIsNaN && deliveryId == 0 && hasChosenVariant && !isSoldout && product.Type !== \'packet\'">({{stock}} {{unitTitle}})</span>'}})),t.directive("variantAjax",["$rootScope","$filter",function(t,e){return{strict:"A",scope:{productId:"=variantAjax",variantDefault:"=",hidePrice:"=",imageWidth:"=",imageHeight:"=",imageCrop:"="},link:function(n,i,r){function o(t){var e;return t.length>=3&&(e=t[2]),e?("ffffff"===e.toLowerCase()?e="color:#"+e+";border-radius:3px;border:1px solid #888;":e&&(e="color:#"+e+";"),"<span class='fa fa-square' style='{{color}}'></span> ".replace("{{color}}",e)):""}$(i).select2({placeholder:n.variantDefault,ajax:{url:"/json/productvariants/"+n.productId,data:function(){return{imageWidth:n.imageWidth,imageHeight:n.imageHeight,imageCrop:n.imageCrop}},dataType:"json",cache:!0,results:function(t,e){return{results:t.data}}},id:"Id",minimumResultsForSearch:-1,formatResult:function(t){if(t.Stock<t.MinAmount&&t.DisableOnEmpty)return"";var n='<div class="row">';if(n+='<div class="col-s-4 col-m-12 col-l-12 col-xl-24">',1==t.TitleCombination.length)n+="<div>"+o(t.TitleCombination[0])+e("decode")(t.Title)+"</div>";else for(var i=0;i<t.TitleCombination.length;i++){var r=t.TitleCombination[i];n+="<div><small>"+r[0]+":</small> <span>"+o(r)+e("decode")(r[1])+"</span></div>"}return t.disabled&&(n+='<div><i class="panel-danger" style="background-color:transparent;">'+e("decode")(window.text.SOLD_OUT)+"</i></div>"),n+="</div>",n+="</div>"},formatSelection:function(t){for(var n="",i=0;i<t.TitleCombination.length;i++){n+=o(t.TitleCombination[i])}return n+e("decode")(t.Title)},formatSearching:function(){return'<img class="spinner" alt src="'+platform.template.cdn+'/_design/common/img/ajax-loader-bar.gif">'}}).on("select2-selecting",(function(e){t.$broadcast("update.product"+n.productId,e.object)}))}}}]),t.directive("raty",[function(){return{strict:"A",scope:{score:"=raty",readonly:"="},link:function(t,e,n){!1!==t.score&&$(e).raty({score:t.score,readOnly:t.readonly,hints:["","","","",""],noRatedMsg:null})}}}])}(jQuery,platform),function(){"use strict";var t=angular.module("productlistServices",["ngResource"]);t.service("ProductApi",["$resource","$http",function(t,e){return{product:t("/json/products",{},{query:{method:"POST",isArray:!1,cache:!1}}),productlist:t("/json/products",{},{query:{method:"GET",isArray:!1,cache:!0}}),session:function(t){return e.put("/json/session",{key:"lastProductlist",value:t||null})}}}]),t.service("FilterService",[function(){return{hasChanges:function(t,e){if(t){var n=this.getDefaults(e),i=!1;return _.forEach(t,(function(t,e){"data"===e&&_.forEach(t,(function(t){t&&(t.length&&(i=!0),t.from&&t.low&&t.to&&t.high&&(t.from===t.low&&t.to===t.high||(i=!0)))})),"data"===e||"lastUpdated"===e||"maxPrice"===e||"minPrice"===e||_.isEqual(n[e],t)||(i=!0)})),e&&e.prices&&t.maxPrice&&t.minPrice&&(n.maxPrice===t.maxPrice&&n.minPrice===t.minPrice||(i=!0)),i}},getDefaults:function(t){var e={brand:[],categories:[],data:{},search:"",sale:!1,news:!1};if(t){var n=t.prices;n&&n.data.high&&n.data.low&&(e.maxPrice=n.data.high,e.minPrice=n.data.low),t.data&&_.forEach(t.data,(function(t){"range"!==t.show||!t.data||(e.data[t.id]={high:t.data.high,low:t.data.low,to:t.data.high,from:t.data.low})}))}return e},setDefaults:function(t,e){var n=this.getDefaults(t);return e&&(n.lastUpdated=e),n},resetSelect:function(t,e){if(t)return t[e]&&(t[e]=[]),t.data&&t.data[e]&&delete t.data[e],t}}}]),t.service("LinkService",["$location",function(t){return{clear:function(){angular.element('head link[rel="prev"]').remove(),angular.element('head link[rel="next"]').remove(),angular.element('head link[rel="canonical"]').remove()},set:function(t,e,n){t=_.filter(t,"value");_.find(t,{name:"next"});e&&t.push({name:"canonical",value:n}),this.clear(),this.update(t)},update:function(t){var e=this;_.each(t,(function(t){var n=t.value,i=t.name,r=angular.element('head > link[rel="'+i+'"]');r.length||(r=angular.element('<link rel="'+i+'">').appendTo("head")),r.attr("href",e.build(n))}))},build:function(t){var e=location.protocol+"//"+location.hostname+location.pathname,n=this.getQueryParameters(location.search),i=_.intersection(["brand","new","sale","search","tag"],_.keys(n));return i.length&&(e=(e+="?")+i[0]+(n[i[0]]?"="+n[i[0]]:"")),t&&t>1&&(e=e+"#!?page="+t),e},buildComplete:function(e){var n=_.extend({},t.search()),i=t.absUrl(),r=i;return 1==e?(r=i.replace(/(&|\?)page=\d/,""),n.hasOwnProperty("page")&&delete n.page,_.isEmpty(n)&&(r=r.replace(/#\!/,"")),r):(n.hasOwnProperty("page")?r=i.replace(/page=(\d+)$/,"page="+e):(_.isEmpty(n)?r+="#!?page=":r+="&page=",r+=e),r)},getQueryParameters:function(t){return(t||document.location.search).replace(/(^\?)/,"").split("&").map(function(t){return this[(t=t.split("="))[0]]=t[1],this}.bind({}))[0]}}}])}();