/* Minification failed. Returning unminified contents.
(1,343664-343665): run-time error JS1100: Expected ',': ]
(1,343667-343668): run-time error JS1195: Expected expression: }
(1,343668-343669): run-time error JS1004: Expected ';': ]
(1,343703-343704): run-time error JS1004: Expected ';': :
(1,343713-343714): run-time error JS1195: Expected expression: )
(1,343714-343715): run-time error JS1004: Expected ';': {
(1,343768-343769): run-time error JS1002: Syntax error: }
(1,343789-343790): run-time error JS1002: Syntax error: }
(1,343829-343830): run-time error JS1002: Syntax error: }
(1,343849-343850): run-time error JS1004: Expected ';': {
(1,343715-343767): run-time error JS1018: 'return' statement outside of function: return t.Validation.messages.requiredConfirmPassword
 */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=Object.getPrototypeOf,r=n.slice,o=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,a=n.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,h=d.call(Object),f={},p=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},v=e.document,m={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var i,r,o=(n=n||v).createElement("script");if(o.text=e,t)for(i in m)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)};function x(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!p(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}b.fn=b.prototype={jquery:"3.5.1",constructor:b,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return b.each(this,e)},map:function(e){return this.pushStack(b.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(b.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(b.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},b.extend=b.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||p(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(c&&i&&(b.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[t],o=r&&!Array.isArray(n)?[]:r||b.isPlainObject(n)?n:{},r=!1,s[t]=b.extend(c,o,i)):void 0!==i&&(s[t]=i));return s},b.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(n=u.call(t,"constructor")&&t.constructor)&&d.call(n)===h)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(x(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(x(Object(e))?b.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,s=!n;r<o;r++)!t(e[r],r)!==s&&i.push(e[r]);return i},map:function(e,t,n){var i,r,s=0,a=[];if(x(e))for(i=e.length;s<i;s++)null!=(r=t(e[s],s,n))&&a.push(r);else for(s in e)null!=(r=t(e[s],s,n))&&a.push(r);return o(a)},guid:1,support:f}),"function"==typeof Symbol&&(b.fn[Symbol.iterator]=n[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var C=function(e){var t,n,i,r,o,s,a,l,c,u,d,h,f,p,g,v,m,y,w,b="sizzle"+1*new Date,x=e.document,C=0,k=0,S=le(),E=le(),T=le(),$=le(),_=function(e,t){return e===t&&(d=!0),0},D={}.hasOwnProperty,A=[],P=A.pop,F=A.push,I=A.push,N=A.slice,L=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",j="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+M+"*("+j+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+M+"*\\]",H=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",q=new RegExp(M+"+","g"),z=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),V=new RegExp("^"+M+"*,"+M+"*"),B=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),W=new RegExp(H),G=new RegExp("^"+j+"$"),Q={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){h()},se=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{I.apply(A=N.call(x.childNodes),x.childNodes),A[x.childNodes.length].nodeType}catch(e){I={apply:A.length?function(e,t){F.apply(e,N.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,r){var o,a,c,u,d,p,m,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return i;if(!r&&(h(t),t=t||f,g)){if(11!==x&&(d=Z.exec(e)))if(o=d[1]){if(9===x){if(!(c=t.getElementById(o)))return i;if(c.id===o)return i.push(c),i}else if(y&&(c=y.getElementById(o))&&w(t,c)&&c.id===o)return i.push(c),i}else{if(d[2])return I.apply(i,t.getElementsByTagName(e)),i;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!$[e+" "]&&(!v||!v.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(m=e,y=t,1===x&&(U.test(e)||B.test(e))){for((y=ee.test(e)&&me(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(ie,re):t.setAttribute("id",u=b)),a=(p=s(e)).length;a--;)p[a]=(u?"#"+u:":scope")+" "+we(p[a]);m=p.join(",")}try{return I.apply(i,y.querySelectorAll(m)),i}catch(t){$(e,!0)}finally{u===b&&t.removeAttribute("id")}}}return l(e.replace(z,"$1"),t,i,r)}function le(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ce(e){return e[b]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return ce(function(t){return t=+t,ce(function(n,i){for(var r,o=e([],n.length,t),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},o=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},h=ae.setDocument=function(e){var t,r,s=e?e.ownerDocument||e:x;return s!=f&&9===s.nodeType&&s.documentElement?(p=(f=s).documentElement,g=!o(f),x!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.scope=ue(function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=ue(function(e){return p.appendChild(e).id=b,!f.getElementsByName||!f.getElementsByName(b).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},m=[],v=[],(n.qsa=J.test(f.querySelectorAll))&&(ue(function(e){var t;p.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),m.push("!=",H)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),t=J.test(p.compareDocumentPosition),w=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},_=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==f||e.ownerDocument==x&&w(x,e)?-1:t==f||t.ownerDocument==x&&w(x,t)?1:u?L(u,e)-L(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e==f?-1:t==f?1:r?-1:o?1:u?L(u,e)-L(u,t):0;if(r===o)return he(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?he(s[i],a[i]):s[i]==x?-1:a[i]==x?1:0},f):f},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&g&&!$[t+" "]&&(!m||!m.test(t))&&(!v||!v.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){$(t,!0)}return ae(t,f,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=f&&h(e),w(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=f&&h(e);var r=i.attrHandle[t.toLowerCase()],o=r&&D.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(ie,re)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],r=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(_),d){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return u=null,e},r=ae.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=ae.selectors={cacheLength:50,createPseudo:ce,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=S[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&S(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var r=ae.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(q," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p,g=o!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!l&&!a,w=!1;if(v){if(o){for(;g;){for(h=t;h=h[g];)if(a?h.nodeName.toLowerCase()===m:1===h.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?v.firstChild:v.lastChild],s&&y){for(w=(f=(c=(u=(d=(h=v)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===C&&c[1])&&c[2],h=f&&v.childNodes[f];h=++f&&h&&h[g]||(w=f=0)||p.pop();)if(1===h.nodeType&&++w&&h===t){u[e]=[C,f,w];break}}else if(y&&(w=f=(c=(u=(d=(h=t)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===C&&c[1]),!1===w)for(;(h=++f&&h&&h[g]||(w=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==m:1!==h.nodeType)||!++w||(y&&((u=(d=h[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[C,w]),h!==t)););return(w-=r)===i||w%i==0&&w/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,n){for(var i,o=r(e,t),s=o.length;s--;)e[i=L(e,o[s])]=!(n[i]=o[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ce(function(e){var t=[],n=[],i=a(e.replace(z,"$1"));return i[b]?ce(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:ce(function(e){return function(t){return ae(e,t).length>0}}),contains:ce(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}}),lang:ce(function(e){return G.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve(function(){return[0]}),last:ve(function(e,t){return[t-1]}),eq:ve(function(e,t,n){return[n<0?n+t:n]}),even:ve(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ve(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ve(function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e}),gt:ve(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=pe(t);function ye(){}function we(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function be(e,t,n){var i=t.dir,r=t.next,o=r||i,s=n&&"parentNode"===o,a=k++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,r);return!1}:function(t,n,l){var c,u,d,h=[C,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(u=(d=t[b]||(t[b]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[o])&&c[0]===C&&c[1]===a)return h[2]=c[2];if(u[o]=h,h[2]=e(t,n,l))return!0}return!1}}function xe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function Ce(e,t,n,i,r){for(var o,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,i,r)||(s.push(o),c&&t.push(a)));return s}function ke(e,t,n,i,r,o){return i&&!i[b]&&(i=ke(i)),r&&!r[b]&&(r=ke(r,o)),ce(function(o,s,a,l){var c,u,d,h=[],f=[],p=s.length,g=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),v=!e||!o&&t?g:Ce(g,h,e,a,l),m=n?r||(o?e:p||i)?[]:s:v;if(n&&n(v,m,a,l),i)for(c=Ce(m,f),i(c,[],a,l),u=c.length;u--;)(d=c[u])&&(m[f[u]]=!(v[f[u]]=d));if(o){if(r||e){if(r){for(c=[],u=m.length;u--;)(d=m[u])&&c.push(v[u]=d);r(null,m=[],c,l)}for(u=m.length;u--;)(d=m[u])&&(c=r?L(o,d):h[u])>-1&&(o[c]=!(s[c]=d))}}else m=Ce(m===s?m.splice(p,m.length):m),r?r(null,s,m,l):I.apply(s,m)})}function Se(e){for(var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,u=be(function(e){return e===t},a,!0),d=be(function(e){return L(t,e)>-1},a,!0),h=[function(e,n,i){var r=!s&&(i||n!==c)||((t=n).nodeType?u(e,n,i):d(e,n,i));return t=null,r}];l<o;l++)if(n=i.relative[e[l].type])h=[be(xe(h),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[b]){for(r=++l;r<o&&!i.relative[e[r].type];r++);return ke(l>1&&xe(h),l>1&&we(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,l<r&&Se(e.slice(l,r)),r<o&&Se(e=e.slice(r)),r<o&&we(e))}h.push(n)}return xe(h)}return ye.prototype=i.filters=i.pseudos,i.setFilters=new ye,s=ae.tokenize=function(e,t){var n,r,o,s,a,l,c,u=E[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=i.preFilter;a;){for(s in n&&!(r=V.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=B.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(z," ")}),a=a.slice(n.length)),i.filter)!(r=Q[s].exec(a))||c[s]&&!(r=c[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):E(e,l).slice(0)},a=ae.compile=function(e,t){var n,r=[],o=[],a=T[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=Se(t[n]))[b]?r.push(a):o.push(a);(a=T(e,function(e,t){var n=t.length>0,r=e.length>0,o=function(o,s,a,l,u){var d,p,v,m=0,y="0",w=o&&[],b=[],x=c,k=o||r&&i.find.TAG("*",u),S=C+=null==x?1:Math.random()||.1,E=k.length;for(u&&(c=s==f||s||u);y!==E&&null!=(d=k[y]);y++){if(r&&d){for(p=0,s||d.ownerDocument==f||(h(d),a=!g);v=e[p++];)if(v(d,s||f,a)){l.push(d);break}u&&(C=S)}n&&((d=!v&&d)&&m--,o&&w.push(d))}if(m+=y,n&&y!==m){for(p=0;v=t[p++];)v(w,b,s,a);if(o){if(m>0)for(;y--;)w[y]||b[y]||(b[y]=P.call(l));b=Ce(b)}I.apply(l,b),u&&!o&&b.length>0&&m+t.length>1&&ae.uniqueSort(l)}return u&&(C=S,c=x),w};return n?ce(o):o}(o,r))).selector=e}return a},l=ae.select=function(e,t,n,r){var o,l,c,u,d,h="function"==typeof e&&e,f=!r&&s(e=h.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=Q.needsContext.test(e)?0:l.length;o--&&(c=l[o],!i.relative[u=c.type]);)if((d=i.find[u])&&(r=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(o,1),!(e=r.length&&we(l)))return I.apply(n,r),n;break}}return(h||a(e,f))(r,t,!g,n,!t||ee.test(e)&&me(t.parentNode)||t),n},n.sortStable=b.split("").sort(_).join("")===b,n.detectDuplicates=!!d,h(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||de(R,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),ae}(e);b.find=C,b.expr=C.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=C.uniqueSort,b.text=C.getText,b.isXMLDoc=C.isXML,b.contains=C.contains,b.escapeSelector=C.escape;var k=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&b(e).is(n))break;i.push(e)}return i},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},E=b.expr.match.needsContext;function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var $=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function _(e,t,n){return p(t)?b.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?b.grep(e,function(e){return e===t!==n}):"string"!=typeof t?b.grep(e,function(e){return a.call(t,e)>-1!==n}):b.filter(t,e,n)}b.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?b.find.matchesSelector(i,e)?[i]:[]:b.find.matches(e,b.grep(t,function(e){return 1===e.nodeType}))},b.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(b(e).filter(function(){for(t=0;t<i;t++)if(b.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)b.find(e,r[t],n);return i>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(_(this,e||[],!1))},not:function(e){return this.pushStack(_(this,e||[],!0))},is:function(e){return!!_(this,"string"==typeof e&&E.test(e)?b(e):e||[],!1).length}});var D,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),$.test(i[1])&&b.isPlainObject(t))for(i in t)p(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=v.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):p(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,D=b(v);var P=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],s="string"!=typeof e&&b(e);if(!E.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?b.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?a.call(b(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,n){return k(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,n){return k(e,"nextSibling",n)},prevUntil:function(e,t,n){return k(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},function(e,t){b.fn[e]=function(n,i){var r=b.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=b.filter(i,r)),this.length>1&&(F[e]||b.uniqueSort(r),P.test(e)&&r.reverse()),this.pushStack(r)}});var N=/[^\x20\t\r\n\f]+/g;function L(e){return e}function R(e){throw e}function M(e,t,n,i){var r;try{e&&p(r=e.promise)?r.call(e).done(t).fail(n):e&&p(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(N)||[],function(e,n){t[n]=!0}),t}(e):b.extend({},e);var t,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||e.once,i=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){b.each(n,function(n,i){p(i)?e.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==w(i)&&t(i)})}(arguments),n&&!t&&l()),this},remove:function(){return b.each(arguments,function(e,t){for(var n;(n=b.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?b.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},b.extend({Deferred:function(t){var n=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return b.Deferred(function(t){b.each(n,function(n,i){var r=p(e[i[4]])&&e[i[4]];o[i[1]](function(){var e=r&&r.apply(this,arguments);e&&p(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(t,i,r){var o=0;function s(t,n,i,r){return function(){var a=this,l=arguments,c=function(){var e,c;if(!(t<o)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,p(c)?r?c.call(e,s(o,n,L,r),s(o,n,R,r)):(o++,c.call(e,s(o,n,L,r),s(o,n,R,r),s(o,n,L,n.notifyWith))):(i!==L&&(a=void 0,l=[e]),(r||n.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(e){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(e,u.stackTrace),t+1>=o&&(i!==R&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?u():(b.Deferred.getStackHook&&(u.stackTrace=b.Deferred.getStackHook()),e.setTimeout(u))}}return b.Deferred(function(e){n[0][3].add(s(0,e,p(r)?r:L,e.notifyWith)),n[1][3].add(s(0,e,p(t)?t:L)),n[2][3].add(s(0,e,p(i)?i:R))}).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},o={};return b.each(n,function(e,t){var s=t[2],a=t[5];r[t[1]]=s.add,a&&s.add(function(){i=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),o=r.call(arguments),s=b.Deferred(),a=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?r.call(arguments):n,--t||s.resolveWith(i,o)}};if(t<=1&&(M(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||p(o[n]&&o[n].then)))return s.then();for(;n--;)M(o[n],a(n),s.reject);return s.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&j.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},b.readyException=function(t){e.setTimeout(function(){throw t})};var O=b.Deferred();function H(){v.removeEventListener("DOMContentLoaded",H),e.removeEventListener("load",H),b.ready()}b.fn.ready=function(e){return O.then(e).catch(function(e){b.readyException(e)}),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||O.resolveWith(v,[b]))}}),b.ready.then=O.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?e.setTimeout(b.ready):(v.addEventListener("DOMContentLoaded",H),e.addEventListener("load",H));var q=function(e,t,n,i,r,o,s){var a=0,l=e.length,c=null==n;if("object"===w(n))for(a in r=!0,n)q(e,t,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,p(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(b(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return r?e:c?t.call(e):l?t(e[0],n):o},z=/^-ms-/,V=/-([a-z])/g;function B(e,t){return t.toUpperCase()}function U(e){return e.replace(z,"ms-").replace(V,B)}var W=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=b.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},W(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[U(t)]=n;else for(i in t)r[U(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(U):(t=U(t))in i?[t]:t.match(N)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||b.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var Q=new G,Y=new G,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function J(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:X.test(e)?JSON.parse(e):e)}(n)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return Y.hasData(e)||Q.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=Y.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=U(i.slice(5)),J(o,i,r[i]));Q.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){Y.set(this,e)}):q(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Y.get(o,e))?n:void 0!==(n=J(o,e))?n:void 0;this.each(function(){Y.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Y.remove(this,e)})}}),b.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Q.get(e,t),n&&(!i||Array.isArray(n)?i=Q.access(e,t,b.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),i=n.length,r=n.shift(),o=b._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){b.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:b.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",n])})})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each(function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=b.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Q.get(o[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var Z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ee=new RegExp("^(?:([+-])=|)("+Z+")([a-z%]*)$","i"),te=["Top","Right","Bottom","Left"],ne=v.documentElement,ie=function(e){return b.contains(e.ownerDocument,e)},re={composed:!0};ne.getRootNode&&(ie=function(e){return b.contains(e.ownerDocument,e)||e.getRootNode(re)===e.ownerDocument});var oe=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===b.css(e,"display")};function se(e,t,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return b.css(e,t,"")},l=a(),c=n&&n[3]||(b.cssNumber[t]?"":"px"),u=e.nodeType&&(b.cssNumber[t]||"px"!==c&&+l)&&ee.exec(b.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)b.style(e,t,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,b.style(e,t,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 ae={};function le(e){var t,n=e.ownerDocument,i=e.nodeName,r=ae[i];return r||(t=n.body.appendChild(n.createElement(i)),r=b.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ae[i]=r,r)}function ce(e,t){for(var n,i,r=[],o=0,s=e.length;o<s;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=Q.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&oe(i)&&(r[o]=le(i))):"none"!==n&&(r[o]="none",Q.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}b.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){oe(this)?b(this).show():b(this).hide()})}});var ue,de,he=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i;ue=v.createDocumentFragment().appendChild(v.createElement("div")),(de=v.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),ue.appendChild(de),f.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="<option></option>",f.option=!!ue.lastChild;var ge={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 ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?b.merge([e],n):n}function me(e,t){for(var n=0,i=e.length;n<i;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,f.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var ye=/<|&#?\w+;/;function we(e,t,n,i,r){for(var o,s,a,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===w(o))b.merge(h,o.nodeType?[o]:o);else if(ye.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(fe.exec(o)||["",""])[1].toLowerCase(),l=ge[a]||ge._default,s.innerHTML=l[1]+b.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;b.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&b.inArray(o,i)>-1)r&&r.push(o);else if(c=ie(o),s=ve(d.appendChild(o),"script"),c&&me(s),n)for(u=0;o=s[u++];)pe.test(o.type||"")&&n.push(o);return d}var be=/^key/,xe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function ke(){return!0}function Se(){return!1}function Ee(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Te(e,a,n,i,t[a],o);return e}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=Se;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return b().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=b.guid++)),e.each(function(){b.event.add(this,t,r,i,n)})}function $e(e,t,n){n?(Q.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var i,o,s=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=r.call(arguments),Q.set(this,t,s),i=n(this,t),this[t](),s!==(o=Q.get(this,t))||i?Q.set(this,t,!1):o={},s!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else s.length&&(Q.set(this,t,{value:b.event.trigger(b.extend(s[0],b.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&b.event.add(e,t,ke)}b.event={global:{},add:function(e,t,n,i,r){var o,s,a,l,c,u,d,h,f,p,g,v=Q.get(e);if(W(e))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&b.find.matchesSelector(ne,r),n.guid||(n.guid=b.guid++),(l=v.events)||(l=v.events=Object.create(null)),(s=v.handle)||(s=v.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(N)||[""]).length;c--;)f=g=(a=Ce.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=b.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=b.event.special[f]||{},u=b.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&b.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(f,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),b.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,c,u,d,h,f,p,g,v=Q.hasData(e)&&Q.get(e);if(v&&(l=v.events)){for(c=(t=(t||"").match(N)||[""]).length;c--;)if(f=g=(a=Ce.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=b.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,v.handle)||b.removeEvent(e,f,v.handle),delete l[f])}else for(f in l)b.event.remove(e,f+t[c],n,i,!0);b.isEmptyObject(l)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=new Array(arguments.length),l=b.event.fix(e),c=(Q.get(this,"events")||Object.create(null))[l.type]||[],u=b.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=b.event.handlers.call(this,l,c),t=0;(r=s[t++])&&!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=((b.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,o,s,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=t[n]).selector+" "]&&(s[r]=i.needsContext?b(r,this).index(c)>-1:b.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:p(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return he.test(t.type)&&t.click&&T(t,"input")&&$e(t,"click",ke),!1},trigger:function(e){var t=this||e;return he.test(t.type)&&t.click&&T(t,"input")&&$e(t,"click"),!0},_default:function(e){var t=e.target;return he.test(t.type)&&t.click&&T(t,"input")&&Q.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ke:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ke,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ke,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ke,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.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(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&xe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},b.event.addProp),b.each({focus:"focusin",blur:"focusout"},function(e,t){b.event.special[e]={setup:function(){return $e(this,e,Ee),!1},trigger:function(){return $e(this,e),!0},delegateType:t}}),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||b.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),b.fn.extend({on:function(e,t,n,i){return Te(this,e,t,n,i)},one:function(e,t,n,i){return Te(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,b(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each(function(){b.event.remove(this,e,n,t)})}});var _e=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,Ae=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pe(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ne(e,t){var n,i,r,o,s,a;if(1===t.nodeType){if(Q.hasData(e)&&(a=Q.get(e).events))for(r in Q.remove(t,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)b.event.add(t,r,a[r][n]);Y.hasData(e)&&(o=Y.access(e),s=b.extend({},o),Y.set(t,s))}}function Le(e,t,n,i){t=o(t);var r,s,a,l,c,u,d=0,h=e.length,g=h-1,v=t[0],m=p(v);if(m||h>1&&"string"==typeof v&&!f.checkClone&&De.test(v))return e.each(function(r){var o=e.eq(r);m&&(t[0]=v.call(this,r,o.html())),Le(o,t,n,i)});if(h&&(s=(r=we(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(l=(a=b.map(ve(r,"script"),Fe)).length;d<h;d++)c=r,d!==g&&(c=b.clone(c,!0,!0),l&&b.merge(a,ve(c,"script"))),n.call(e[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,b.map(a,Ie),d=0;d<l;d++)c=a[d],pe.test(c.type||"")&&!Q.access(c,"globalEval")&&b.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?b._evalUrl&&!c.noModule&&b._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(Ae,""),c,u))}return e}function Re(e,t,n){for(var i,r=t?b.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||b.cleanData(ve(i)),i.parentNode&&(n&&ie(i)&&me(ve(i,"script")),i.parentNode.removeChild(i));return e}b.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,s,a,l,c,u=e.cloneNode(!0),d=ie(e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(s=ve(u),i=0,r=(o=ve(e)).length;i<r;i++)a=o[i],l=s[i],void 0,"input"===(c=l.nodeName.toLowerCase())&&he.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(n)for(o=o||ve(e),s=s||ve(u),i=0,r=o.length;i<r;i++)Ne(o[i],s[i]);else Ne(e,u);return(s=ve(u,"script")).length>0&&me(s,!d&&ve(e,"script")),u},cleanData:function(e){for(var t,n,i,r=b.event.special,o=0;void 0!==(n=e[o]);o++)if(W(n)){if(t=n[Q.expando]){if(t.events)for(i in t.events)r[i]?b.event.remove(n,i):b.removeEvent(n,i,t.handle);n[Q.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),b.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return q(this,function(e){return void 0===e?b.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Le(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)})},prepend:function(){return Le(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Le(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return q(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!_e.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(b.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Le(this,arguments,function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(ve(this)),n&&n.replaceChild(t,this))},e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){for(var n,i=[],r=b(e),o=r.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),b(r[a])[t](n),s.apply(i,n.get());return this.pushStack(i)}});var Me=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),je=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Oe=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i},He=new RegExp(te.join("|"),"i");function qe(e,t,n){var i,r,o,s,a=e.style;return(n=n||je(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||ie(e)||(s=b.style(e,t)),!f.pixelBoxStyles()&&Me.test(s)&&He.test(t)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);i="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",s=36===n(t.right),r=36===n(t.width),u.style.position="absolute",o=12===n(u.offsetWidth/3),ne.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var i,r,o,s,a,l,c=v.createElement("div"),u=v.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===u.style.backgroundClip,b.extend(f,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,i,r;return null==a&&(t=v.createElement("table"),n=v.createElement("tr"),i=v.createElement("div"),t.style.cssText="position:absolute;left:-11111px",n.style.height="1px",i.style.height="9px",ne.appendChild(t).appendChild(n).appendChild(i),r=e.getComputedStyle(n),a=parseInt(r.height)>3,ne.removeChild(t)),a}}))}();var Ve=["Webkit","Moz","ms"],Be=v.createElement("div").style,Ue={};function We(e){var t=b.cssProps[e]||Ue[e];return t||(e in Be?e:Ue[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ve.length;n--;)if((e=Ve[n]+t)in Be)return e}(e)||e)}var Ge=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Xe={letterSpacing:"0",fontWeight:"400"};function Ke(e,t,n){var i=ee.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Je(e,t,n,i,r,o){var s="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=b.css(e,n+te[s],!0,r)),i?("content"===n&&(l-=b.css(e,"padding"+te[s],!0,r)),"margin"!==n&&(l-=b.css(e,"border"+te[s]+"Width",!0,r))):(l+=b.css(e,"padding"+te[s],!0,r),"padding"!==n?l+=b.css(e,"border"+te[s]+"Width",!0,r):a+=b.css(e,"border"+te[s]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function Ze(e,t,n){var i=je(e),r=(!f.boxSizingReliable()||n)&&"border-box"===b.css(e,"boxSizing",!1,i),o=r,s=qe(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Me.test(s)){if(!n)return s;s="auto"}return(!f.boxSizingReliable()&&r||!f.reliableTrDimensions()&&T(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===b.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===b.css(e,"boxSizing",!1,i),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+Je(e,t,n||(r?"border":"content"),o,i,s)+"px"}function et(e,t,n,i,r){return new et.prototype.init(e,t,n,i,r)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=qe(e,"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(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=U(t),l=Qe.test(t),c=e.style;if(l||(t=We(a)),s=b.cssHooks[t]||b.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:c[t];"string"===(o=typeof n)&&(r=ee.exec(n))&&r[1]&&(n=se(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(b.cssNumber[a]?"":"px")),f.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,o,s,a=U(t);return Qe.test(t)||(t=We(a)),(s=b.cssHooks[t]||b.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=qe(e,t,i)),"normal"===r&&t in Xe&&(r=Xe[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),b.each(["height","width"],function(e,t){b.cssHooks[t]={get:function(e,n,i){if(n)return!Ge.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,t,i):Oe(e,Ye,function(){return Ze(e,t,i)})},set:function(e,n,i){var r,o=je(e),s=!f.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===b.css(e,"boxSizing",!1,o),l=i?Je(e,t,i,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Je(e,t,"border",!1,o)-.5)),l&&(r=ee.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),Ke(0,n,l)}}}),b.cssHooks.marginLeft=ze(f.reliableMarginLeft,function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-Oe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+te[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(b.cssHooks[e+t].set=Ke)}),b.fn.extend({css:function(e,t){return q(this,function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){for(i=je(e),r=t.length;s<r;s++)o[t[s]]=b.css(e,t[s],!1,i);return o}return void 0!==n?b.style(e,t,n):b.css(e,t)},e,t,arguments.length>1)}}),b.Tween=et,et.prototype={constructor:et,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[We(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=et.prototype.init,b.fx.step={};var tt,nt,it=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function ot(){nt&&(!1===v.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ot):e.setTimeout(ot,b.fx.interval),b.fx.tick())}function st(){return e.setTimeout(function(){tt=void 0}),tt=Date.now()}function at(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=te[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function lt(e,t,n){for(var i,r=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,t,e))return i}function ct(e,t,n){var i,r,o=0,s=ct.prefilters.length,a=b.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=tt||st(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(i);return a.notifyWith(e,[c,i,n]),i<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:tt||st(),duration:n.duration,tweens:[],createTween:function(t,n){var i=b.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,r,o,s;for(n in e)if(r=t[i=U(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(s=b.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);o<s;o++)if(i=ct.prefilters[o].call(c,e,u,c.opts))return p(i.stop)&&(b._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return b.map(u,lt,c),p(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),b.fx.timer(b.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}b.Animation=b.extend(ct,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,ee.exec(t),n),n}]},tweener:function(e,t){p(e)?(t=e,e=["*"]):e=e.match(N);for(var n,i=0,r=e.length;i<r;i++)n=e[i],ct.tweeners[n]=ct.tweeners[n]||[],ct.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,s,a,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,g=e.nodeType&&oe(e),v=Q.get(e,"fxshow");for(i in n.queue||(null==(s=b._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always(function(){h.always(function(){s.unqueued--,b.queue(e,"fx").length||s.empty.fire()})})),t)if(r=t[i],it.test(r)){if(delete t[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!v||void 0===v[i])continue;g=!0}f[i]=v&&v[i]||b.style(e,i)}if((l=!b.isEmptyObject(t))||!b.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=v&&v.display)&&(c=Q.get(e,"display")),"none"===(u=b.css(e,"display"))&&(c?u=c:(ce([e],!0),c=e.style.display||c,u=b.css(e,"display"),ce([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===b.css(e,"float")&&(l||(h.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(v?"hidden"in v&&(g=v.hidden):v=Q.access(e,"fxshow",{display:c}),o&&(v.hidden=!g),g&&ce([e],!0),h.done(function(){for(i in g||ce([e]),Q.remove(e,"fxshow"),f)b.style(e,i,f[i])})),l=lt(g?v[i]:0,i,h),i in v||(v[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ct.prefilters.unshift(e):ct.prefilters.push(e)}}),b.speed=function(e,t,n){var i=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||p(e)&&e,duration:e,easing:n&&t||t&&!p(t)&&t};return b.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in b.fx.speeds?i.duration=b.fx.speeds[i.duration]:i.duration=b.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&&b.dequeue(this,i.queue)},i},b.fn.extend({fadeTo:function(e,t,n,i){return this.filter(oe).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=b.isEmptyObject(e),o=b.speed(t,n,i),s=function(){var t=ct(this,b.extend({},e),o);(r||Q.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=b.timers,s=Q.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&rt.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||b.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Q.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=b.timers,s=i?i.length:0;for(n.finish=!0,b.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(at(t,!0),e,i,r)}}),b.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||b.fx.stop(),tt=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){nt||(nt=!0,ot())},b.fx.stop=function(){nt=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(t,n){return t=b.fx&&b.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}})},function(){var e=v.createElement("input"),t=v.createElement("select").appendChild(v.createElement("option"));e.type="checkbox",f.checkOn=""!==e.value,f.optSelected=t.selected,(e=v.createElement("input")).value="t",e.type="radio",f.radioValue="t"===e.value}();var ut,dt=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return q(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})}}),b.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?b.prop(e,t,n):(1===o&&b.isXMLDoc(e)||(r=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=b.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&T(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(N);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),ut={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||b.find.attr;dt[t]=function(e,t,i){var r,o,s=t.toLowerCase();return i||(o=dt[s],dt[s]=r,r=null!=n(e,t,i)?s:null,dt[s]=o),r}});var ht=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function pt(e){return(e.match(N)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(N)||[]}b.fn.extend({prop:function(e,t){return q(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[b.propFix[e]||e]})}}),b.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&b.isXMLDoc(e)||(t=b.propFix[t]||t,r=b.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b.propFix[this.toLowerCase()]=this}),b.fn.extend({addClass:function(e){var t,n,i,r,o,s,a,l=0;if(p(e))return this.each(function(t){b(this).addClass(e.call(this,t,gt(this)))});if((t=vt(e)).length)for(;n=this[l++];)if(r=gt(n),i=1===n.nodeType&&" "+pt(r)+" "){for(s=0;o=t[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=pt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,s,a,l=0;if(p(e))return this.each(function(t){b(this).removeClass(e.call(this,t,gt(this)))});if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;n=this[l++];)if(r=gt(n),i=1===n.nodeType&&" "+pt(r)+" "){for(s=0;o=t[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=pt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):p(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,gt(this),t),t)}):this.each(function(){var t,r,o,s;if(i)for(r=0,o=b(this),s=vt(e);t=s[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+pt(gt(n))+" ").indexOf(t)>-1)return!0;return!1}});var mt=/\r/g;b.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=p(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,b(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=b.map(r,function(e){return null==e?"":e+""})),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=b.valHooks[r.type]||b.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(mt,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:pt(b.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(t=b(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=b.makeArray(t),s=r.length;s--;)((i=r[s]).selected=b.inArray(b.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},f.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),f.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,n,i,r){var o,s,a,l,c,d,h,f,m=[i||v],y=u.call(t,"type")?t.type:t,w=u.call(t,"namespace")?t.namespace.split("."):[];if(s=f=a=i=i||v,3!==i.nodeType&&8!==i.nodeType&&!yt.test(y+b.event.triggered)&&(y.indexOf(".")>-1&&(y=(w=y.split(".")).shift(),w.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[b.expando]?t:new b.Event(y,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=w.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:b.makeArray(n,[t]),h=b.event.special[y]||{},r||!h.trigger||!1!==h.trigger.apply(i,n))){if(!r&&!h.noBubble&&!g(i)){for(l=h.delegateType||y,yt.test(l+y)||(s=s.parentNode);s;s=s.parentNode)m.push(s),a=s;a===(i.ownerDocument||v)&&m.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=m[o++])&&!t.isPropagationStopped();)f=s,t.type=o>1?l:h.bindType||y,(d=(Q.get(s,"events")||Object.create(null))[t.type]&&Q.get(s,"handle"))&&d.apply(s,n),(d=c&&s[c])&&d.apply&&W(s)&&(t.result=d.apply(s,n),!1===t.result&&t.preventDefault());return t.type=y,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(m.pop(),n)||!W(i)||c&&p(i[y])&&!g(i)&&((a=i[c])&&(i[c]=null),b.event.triggered=y,t.isPropagationStopped()&&f.addEventListener(y,wt),i[y](),t.isPropagationStopped()&&f.removeEventListener(y,wt),b.event.triggered=void 0,a&&(i[c]=a)),t.result}},simulate:function(e,t,n){var i=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(i,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),f.focusin||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=Q.access(i,t);r||i.addEventListener(e,n,!0),Q.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=Q.access(i,t)-1;r?Q.access(i,t,r):(i.removeEventListener(e,n,!0),Q.remove(i,t))}}});var bt=e.location,xt={guid:Date.now()},Ct=/\?/;b.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+t),n};var kt=/\[\]$/,St=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function $t(e,t,n,i){var r;if(Array.isArray(t))b.each(t,function(t,r){n||kt.test(e)?i(e,r):$t(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==w(t))i(e,t);else for(r in t)$t(e+"["+r+"]",t[r],n,i)}b.param=function(e,t){var n,i=[],r=function(e,t){var n=p(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,function(){r(this.name,this.value)});else for(n in e)$t(n,e[n],t,r);return i.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Tt.test(this.nodeName)&&!Et.test(e)&&(this.checked||!he.test(e))}).map(function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}});var _t=/%20/g,Dt=/#.*$/,At=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,It=/^\/\//,Nt={},Lt={},Rt="*/".concat("*"),Mt=v.createElement("a");function jt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(N)||[];if(p(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Ot(e,t,n,i){var r={},o=e===Lt;function s(a){var l;return r[a]=!0,b.each(e[a]||[],function(e,a){var c=a(t,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Ht(e,t){var n,i,r=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&b.extend(!0,e,i),e}Mt.href=bt.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,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":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ht(Ht(e,b.ajaxSettings),t):Ht(b.ajaxSettings,e)},ajaxPrefilter:jt(Nt),ajaxTransport:jt(Lt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,r,o,s,a,l,c,u,d,h,f=b.ajaxSetup({},n),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?b(p):b.event,m=b.Deferred(),y=b.Callbacks("once memory"),w=f.statusCode||{},x={},C={},k="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Pt.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||k;return i&&i.abort(t),E(0,t),this}};if(m.promise(S),f.url=((t||f.url||bt.href)+"").replace(It,bt.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(N)||[""],null==f.crossDomain){l=v.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Mt.protocol+"//"+Mt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=b.param(f.data,f.traditional)),Ot(Nt,f,n,S),c)return S;for(d in(u=b.event&&f.global)&&0==b.active++&&b.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ft.test(f.type),r=f.url.replace(Dt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(_t,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Ct.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(At,"$1"),h=(Ct.test(r)?"&":"?")+"_="+xt.guid+++h),f.url=r+h),f.ifModified&&(b.lastModified[r]&&S.setRequestHeader("If-Modified-Since",b.lastModified[r]),b.etag[r]&&S.setRequestHeader("If-None-Match",b.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Rt+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,S,f)||c))return S.abort();if(k="abort",y.add(f.complete),S.done(f.success),S.fail(f.error),i=Ot(Lt,f,n,S)){if(S.readyState=1,u&&g.trigger("ajaxSend",[S,f]),c)return S;f.async&&f.timeout>0&&(a=e.setTimeout(function(){S.abort("timeout")},f.timeout));try{c=!1,i.send(x,E)}catch(e){if(c)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,s,l){var d,h,v,x,C,k=n;c||(c=!0,a&&e.clearTimeout(a),i=void 0,o=l||"",S.readyState=t>0?4:0,d=t>=200&&t<300||304===t,s&&(x=function(e,t,n){for(var i,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,S,s)),!d&&b.inArray("script",f.dataTypes)>-1&&(f.converters["text script"]=function(){}),x=function(e,t,n,i){var r,o,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,x,S,d),d?(f.ifModified&&((C=S.getResponseHeader("Last-Modified"))&&(b.lastModified[r]=C),(C=S.getResponseHeader("etag"))&&(b.etag[r]=C)),204===t||"HEAD"===f.type?k="nocontent":304===t?k="notmodified":(k=x.state,h=x.data,d=!(v=x.error))):(v=k,!t&&k||(k="error",t<0&&(t=0))),S.status=t,S.statusText=(n||k)+"",d?m.resolveWith(p,[h,k,S]):m.rejectWith(p,[S,k,v]),S.statusCode(w),w=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[S,f,d?h:v]),y.fireWith(p,[S,k]),u&&(g.trigger("ajaxComplete",[S,f]),--b.active||b.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],function(e,t){b[t]=function(e,n,i,r){return p(n)&&(r=r||i,i=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:r,data:n,success:i},b.isPlainObject(e)&&e))}}),b.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),b._evalUrl=function(e,t,n){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t,n)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(p(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return p(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=p(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){b(this).replaceWith(this.childNodes)}),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var qt={0:200,1223:204},zt=b.ajaxSettings.xhr();f.cors=!!zt&&"withCredentials"in zt,f.ajax=zt=!!zt,b.ajaxTransport(function(t){var n,i;if(f.cors||zt&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(qt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),b.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),b.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=b("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}});var Vt,Bt=[],Ut=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Bt.pop()||b.expando+"_"+xt.guid++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,s,a=!1!==t.jsonp&&(Ut.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ut,"$1"+r):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||b.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){s=arguments},i.always(function(){void 0===o?b(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,Bt.push(r)),s&&p(o)&&o(s[0]),s=o=void 0}),"script"}),f.createHTMLDocument=((Vt=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Vt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(f.createHTMLDocument?((i=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(i)):t=v),o=!n&&[],(r=$.exec(e))?[t.createElement(r[1])]:(r=we([e],t,o),o&&o.length&&b(o).remove(),b.merge([],r.childNodes)));var i,r,o},b.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return a>-1&&(i=pt(e.slice(a)),e=e.slice(0,a)),p(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&b.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(i?b("<div>").append(b.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},b.expr.pseudos.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length},b.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,c=b.css(e,"position"),u=b(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=b.css(e,"top"),l=b.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(i=u.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),p(t)&&(t=t.call(e,n,b.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){b.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===b.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),r.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-b.css(i,"marginTop",!0),left:t.left-r.left-b.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||ne})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;b.fn[e]=function(i){return q(this,function(e,i,r){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r},e,i,arguments.length)}}),b.each(["top","left"],function(e,t){b.cssHooks[t]=ze(f.pixelPosition,function(e,n){if(n)return n=qe(e,t),Me.test(n)?b(e).position()[t]+"px":n})}),b.each({Height:"height",Width:"width"},function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){b.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return q(this,function(t,n,r){var o;return g(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?b.css(t,n,a):b.style(t,n,r,a)},t,s?r:void 0,s)}})}),b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.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(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var Wt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;b.proxy=function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),p(e))return i=r.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||b.guid++,o},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=T,b.isFunction=p,b.isWindow=g,b.camelCase=U,b.type=w,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},b.trim=function(e){return null==e?"":(e+"").replace(Wt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return b});var Gt=e.jQuery,Qt=e.$;return b.noConflict=function(t){return e.$===b&&(e.$=Qt),t&&e.jQuery===b&&(e.jQuery=Gt),b},void 0===t&&(e.jQuery=e.$=b),b}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("underscore",t):function(){var n=e._,i=t();e._=i,i.noConflict=function(){return e._=n,i}}()}(this,function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},t=Array.prototype,n=Object.prototype,i="undefined"!=typeof Symbol?Symbol.prototype:null,r=t.push,o=t.slice,s=n.toString,a=n.hasOwnProperty,l=Array.isArray,c=Object.keys,u=Object.create,d=e.isNaN,h=e.isFinite,f=function(){};function p(e){return e instanceof p?e:this instanceof p?void(this._wrapped=e):new p(e)}var g=p.VERSION="1.10.2";function v(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,o){return e.call(t,n,i,r,o)}}return function(){return e.apply(t,arguments)}}function m(e,t,n){return null==e?it:Ve(e)?v(e,t,n):qe(e)&&!He(e)?ot(e):rt(e)}function y(e,t){return m(e,t,1/0)}function w(e,t,n){return p.iteratee!==y?p.iteratee(e,t):m(e,t,n)}function b(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),r=0;r<n;r++)i[r]=arguments[r+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var o=Array(t+1);for(r=0;r<t;r++)o[r]=arguments[r];return o[t]=i,e.apply(this,o)}}function x(e){if(!qe(e))return{};if(u)return u(e);f.prototype=e;var t=new f;return f.prototype=null,t}function C(e){return function(t){return null==t?void 0:t[e]}}function k(e,t){return null!=e&&a.call(e,t)}function S(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}p.iteratee=y;var E=Math.pow(2,53)-1,T=C("length");function $(e){var t=T(e);return"number"==typeof t&&t>=0&&t<=E}function _(e,t,n){var i,r;if(t=v(t,n),$(e))for(i=0,r=e.length;i<r;i++)t(e[i],i,e);else{var o=ke(e);for(i=0,r=o.length;i<r;i++)t(e[o[i]],o[i],e)}return e}function D(e,t,n){t=w(t,n);for(var i=!$(e)&&ke(e),r=(i||e).length,o=Array(r),s=0;s<r;s++){var a=i?i[s]:s;o[s]=t(e[a],a,e)}return o}function A(e){return function(t,n,i,r){var o=arguments.length>=3;return function(t,n,i,r){var o=!$(t)&&ke(t),s=(o||t).length,a=e>0?0:s-1;for(r||(i=t[o?o[a]:a],a+=e);a>=0&&a<s;a+=e){var l=o?o[a]:a;i=n(i,t[l],l,t)}return i}(t,v(n,r,4),i,o)}}var P=A(1),F=A(-1);function I(e,t,n){var i=($(e)?oe:Pe)(e,t,n);if(void 0!==i&&-1!==i)return e[i]}function N(e,t,n){var i=[];return t=w(t,n),_(e,function(e,n,r){t(e,n,r)&&i.push(e)}),i}function L(e,t,n){t=w(t,n);for(var i=!$(e)&&ke(e),r=(i||e).length,o=0;o<r;o++){var s=i?i[o]:o;if(!t(e[s],s,e))return!1}return!0}function R(e,t,n){t=w(t,n);for(var i=!$(e)&&ke(e),r=(i||e).length,o=0;o<r;o++){var s=i?i[o]:o;if(t(e[s],s,e))return!0}return!1}function M(e,t,n,i){return $(e)||(e=Ee(e)),("number"!=typeof n||i)&&(n=0),ce(e,t,n)>=0}var j=b(function(e,t,n){var i,r;return Ve(t)?r=t:He(t)&&(i=t.slice(0,-1),t=t[t.length-1]),D(e,function(e){var o=r;if(!o){if(i&&i.length&&(e=S(e,i)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)})});function O(e,t){return D(e,rt(t))}function H(e,t,n){var i,r,o=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=$(e)?e:Ee(e)).length;a<l;a++)null!=(i=e[a])&&i>o&&(o=i);else t=w(t,n),_(e,function(e,n,i){((r=t(e,n,i))>s||r===-1/0&&o===-1/0)&&(o=e,s=r)});return o}function q(e,t,n){if(null==t||n)return $(e)||(e=Ee(e)),e[st(e.length-1)];var i=$(e)?Re(e):Ee(e),r=T(i);t=Math.max(Math.min(t,r),0);for(var o=r-1,s=0;s<t;s++){var a=st(s,o),l=i[s];i[s]=i[a],i[a]=l}return i.slice(0,t)}function z(e,t){return function(n,i,r){var o=t?[[],[]]:{};return i=w(i,r),_(n,function(t,r){var s=i(t,r,n);e(o,t,s)}),o}}var V=z(function(e,t,n){k(e,n)?e[n].push(t):e[n]=[t]}),B=z(function(e,t,n){e[n]=t}),U=z(function(e,t,n){k(e,n)?e[n]++:e[n]=1}),W=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;var G=z(function(e,t,n){e[n?0:1].push(t)},!0);function Q(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:Y(e,e.length-t)}function Y(e,t,n){return o.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function X(e,t,n){return o.call(e,null==t||n?1:t)}function K(e,t,n,i){for(var r=(i=i||[]).length,o=0,s=T(e);o<s;o++){var a=e[o];if($(a)&&(He(a)||ze(a)))if(t)for(var l=0,c=a.length;l<c;)i[r++]=a[l++];else K(a,t,n,i),r=i.length;else n||(i[r++]=a)}return i}var J=b(function(e,t){return te(e,t)});function Z(e,t,n,i){nt(t)||(i=n,n=t,t=!1),null!=n&&(n=w(n,i));for(var r=[],o=[],s=0,a=T(e);s<a;s++){var l=e[s],c=n?n(l,s,e):l;t&&!n?(s&&o===c||r.push(l),o=c):n?M(o,c)||(o.push(c),r.push(l)):M(r,l)||r.push(l)}return r}var ee=b(function(e){return Z(K(e,!0,!0))});var te=b(function(e,t){return t=K(t,!0,!0),N(e,function(e){return!M(t,e)})});function ne(e){for(var t=e&&H(e,T).length||0,n=Array(t),i=0;i<t;i++)n[i]=O(e,i);return n}var ie=b(ne);function re(e){return function(t,n,i){n=w(n,i);for(var r=T(t),o=e>0?0:r-1;o>=0&&o<r;o+=e)if(n(t[o],o,t))return o;return-1}}var oe=re(1),se=re(-1);function ae(e,t,n,i){for(var r=(n=w(n,i,1))(t),o=0,s=T(e);o<s;){var a=Math.floor((o+s)/2);n(e[a])<r?o=a+1:s=a}return o}function le(e,t,n){return function(i,r,s){var a=0,l=T(i);if("number"==typeof s)e>0?a=s>=0?s:Math.max(s+l,a):l=s>=0?Math.min(s+1,l):s+l+1;else if(n&&s&&l)return i[s=n(i,r)]===r?s:-1;if(r!=r)return(s=t(o.call(i,a,l),tt))>=0?s+a:-1;for(s=e>0?a:l-1;s>=0&&s<l;s+=e)if(i[s]===r)return s;return-1}}var ce=le(1,oe,ae),ue=le(-1,se);function de(e,t,n,i,r){if(!(i instanceof t))return e.apply(n,r);var o=x(e.prototype),s=e.apply(o,r);return qe(s)?s:o}var he=b(function(e,t,n){if(!Ve(e))throw new TypeError("Bind must be called on a function");var i=b(function(r){return de(e,i,t,this,n.concat(r))});return i}),fe=b(function(e,t){var n=fe.placeholder,i=function(){for(var r=0,o=t.length,s=Array(o),a=0;a<o;a++)s[a]=t[a]===n?arguments[r++]:t[a];for(;r<arguments.length;)s.push(arguments[r++]);return de(e,i,this,this,s)};return i});fe.placeholder=p;var pe=b(function(e,t){var n=(t=K(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=he(e[i],e)}});var ge=b(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),ve=fe(ge,p,1);function me(e){return function(){return!e.apply(this,arguments)}}function ye(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var we=fe(ye,2),be=!{toString:null}.propertyIsEnumerable("toString"),xe=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function Ce(e,t){var i=xe.length,r=e.constructor,o=Ve(r)&&r.prototype||n,s="constructor";for(k(e,s)&&!M(t,s)&&t.push(s);i--;)(s=xe[i])in e&&e[s]!==o[s]&&!M(t,s)&&t.push(s)}function ke(e){if(!qe(e))return[];if(c)return c(e);var t=[];for(var n in e)k(e,n)&&t.push(n);return be&&Ce(e,t),t}function Se(e){if(!qe(e))return[];var t=[];for(var n in e)t.push(n);return be&&Ce(e,t),t}function Ee(e){for(var t=ke(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Te(e){for(var t={},n=ke(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function $e(e){var t=[];for(var n in e)Ve(e[n])&&t.push(n);return t.sort()}function _e(e,t){return function(n){var i=arguments.length;if(t&&(n=Object(n)),i<2||null==n)return n;for(var r=1;r<i;r++)for(var o=arguments[r],s=e(o),a=s.length,l=0;l<a;l++){var c=s[l];t&&void 0!==n[c]||(n[c]=o[c])}return n}}var De=_e(Se),Ae=_e(ke);function Pe(e,t,n){t=w(t,n);for(var i,r=ke(e),o=0,s=r.length;o<s;o++)if(t(e[i=r[o]],i,e))return i}function Fe(e,t,n){return t in n}var Ie=b(function(e,t){var n={},i=t[0];if(null==e)return n;Ve(i)?(t.length>1&&(i=v(i,t[1])),t=Se(e)):(i=Fe,t=K(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var s=t[r],a=e[s];i(a,s,e)&&(n[s]=a)}return n}),Ne=b(function(e,t){var n,i=t[0];return Ve(i)?(i=me(i),t.length>1&&(n=t[1])):(t=D(K(t,!1,!1),String),i=function(e,n){return!M(t,n)}),Ie(e,i,n)}),Le=_e(Se,!0);function Re(e){return qe(e)?He(e)?e.slice():De({},e):e}function Me(e,t){var n=ke(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var s=n[o];if(t[s]!==r[s]||!(s in r))return!1}return!0}function je(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&function(e,t,n,r){e instanceof p&&(e=e._wrapped);t instanceof p&&(t=t._wrapped);var o=s.call(e);if(o!==s.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return i.valueOf.call(e)===i.valueOf.call(t)}var a="[object Array]"===o;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(Ve(l)&&l instanceof l&&Ve(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];var u=(n=n||[]).length;for(;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),a){if((u=e.length)!==t.length)return!1;for(;u--;)if(!je(e[u],t[u],n,r))return!1}else{var d,h=ke(e);if(u=h.length,ke(t).length!==u)return!1;for(;u--;)if(d=h[u],!k(t,d)||!je(e[d],t[d],n,r))return!1}return n.pop(),r.pop(),!0}(e,t,n,r)}function Oe(e){return function(t){return s.call(t)==="[object "+e+"]"}}var He=l||Oe("Array");function qe(e){var t=typeof e;return"function"===t||"object"===t&&!!e}var ze=Oe("Arguments"),Ve=Oe("Function"),Be=Oe("String"),Ue=Oe("Number"),We=Oe("Date"),Ge=Oe("RegExp"),Qe=Oe("Error"),Ye=Oe("Symbol"),Xe=Oe("Map"),Ke=Oe("WeakMap"),Je=Oe("Set"),Ze=Oe("WeakSet");!function(){ze(arguments)||(ze=function(e){return k(e,"callee")})}();var et=e.document&&e.document.childNodes;function tt(e){return Ue(e)&&d(e)}function nt(e){return!0===e||!1===e||"[object Boolean]"===s.call(e)}function it(e){return e}function rt(e){return He(e)?function(t){return S(t,e)}:C(e)}function ot(e){return e=Ae({},e),function(t){return Me(t,e)}}function st(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof et&&(Ve=function(e){return"function"==typeof e||!1});var at=Date.now||function(){return(new Date).getTime()},lt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ct=Te(lt);function ut(e){var t=function(t){return e[t]},n="(?:"+ke(e).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(r,t):e}}var dt=ut(lt),ht=ut(ct);var ft=0;var pt=p.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},gt=/(.)^/,vt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},mt=/\\|'|\r|\n|\u2028|\u2029/g,yt=function(e){return"\\"+vt[e]};function wt(e,t){return e._chain?p(t).chain():t}function bt(e){return _($e(e),function(t){var n=p[t]=e[t];p.prototype[t]=function(){var e=[this._wrapped];return r.apply(e,arguments),wt(this,n.apply(p,e))}}),p}_(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=t[e];p.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],wt(this,t)}}),_(["concat","join","slice"],function(e){var n=t[e];p.prototype[e]=function(){return wt(this,n.apply(this._wrapped,arguments))}}),p.prototype.value=function(){return this._wrapped},p.prototype.valueOf=p.prototype.toJSON=p.prototype.value,p.prototype.toString=function(){return String(this._wrapped)};var xt=bt({default:p,VERSION:g,iteratee:y,restArguments:b,each:_,forEach:_,map:D,collect:D,reduce:P,foldl:P,inject:P,reduceRight:F,foldr:F,find:I,detect:I,filter:N,select:N,reject:function(e,t,n){return N(e,me(w(t)),n)},every:L,all:L,some:R,any:R,contains:M,includes:M,include:M,invoke:j,pluck:O,where:function(e,t){return N(e,ot(t))},findWhere:function(e,t){return I(e,ot(t))},max:H,min:function(e,t,n){var i,r,o=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var a=0,l=(e=$(e)?e:Ee(e)).length;a<l;a++)null!=(i=e[a])&&i<o&&(o=i);else t=w(t,n),_(e,function(e,n,i){((r=t(e,n,i))<s||r===1/0&&o===1/0)&&(o=e,s=r)});return o},shuffle:function(e){return q(e,1/0)},sample:q,sortBy:function(e,t,n){var i=0;return t=w(t,n),O(D(e,function(e,n,r){return{value:e,index:i++,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:V,indexBy:B,countBy:U,toArray:function(e){return e?He(e)?o.call(e):Be(e)?e.match(W):$(e)?D(e,it):Ee(e):[]},size:function(e){return null==e?0:$(e)?e.length:ke(e).length},partition:G,first:Q,head:Q,take:Q,initial:Y,last:function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:X(e,Math.max(0,e.length-t))},rest:X,tail:X,drop:X,compact:function(e){return N(e,Boolean)},flatten:function(e,t){return K(e,t,!1)},without:J,uniq:Z,unique:Z,union:ee,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=T(e);i<r;i++){var o=e[i];if(!M(t,o)){var s;for(s=1;s<n&&M(arguments[s],o);s++);s===n&&t.push(o)}}return t},difference:te,unzip:ne,zip:ie,object:function(e,t){for(var n={},i=0,r=T(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},findIndex:oe,findLastIndex:se,sortedIndex:ae,indexOf:ce,lastIndexOf:ue,range:function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(o.call(e,i,i+=t));return n},bind:he,partial:fe,bindAll:pe,memoize:function(e,t){var n=function(i){var r=n.cache,o=""+(t?t.apply(this,arguments):i);return k(r,o)||(r[o]=e.apply(this,arguments)),r[o]};return n.cache={},n},delay:ge,defer:ve,throttle:function(e,t,n){var i,r,o,s,a=0;n||(n={});var l=function(){a=!1===n.leading?0:at(),i=null,s=e.apply(r,o),i||(r=o=null)},c=function(){var c=at();a||!1!==n.leading||(a=c);var u=t-(c-a);return r=this,o=arguments,u<=0||u>t?(i&&(clearTimeout(i),i=null),a=c,s=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,u)),s};return c.cancel=function(){clearTimeout(i),a=0,i=r=o=null},c},debounce:function(e,t,n){var i,r,o=function(t,n){i=null,n&&(r=e.apply(t,n))},s=b(function(s){if(i&&clearTimeout(i),n){var a=!i;i=setTimeout(o,t),a&&(r=e.apply(this,s))}else i=ge(o,t,this,s);return r});return s.cancel=function(){clearTimeout(i),i=null},s},wrap:function(e,t){return fe(t,e)},negate:me,compose:function(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:ye,once:we,keys:ke,allKeys:Se,values:Ee,mapObject:function(e,t,n){t=w(t,n);for(var i=ke(e),r=i.length,o={},s=0;s<r;s++){var a=i[s];o[a]=t(e[a],a,e)}return o},pairs:function(e){for(var t=ke(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Te,functions:$e,methods:$e,extend:De,extendOwn:Ae,assign:Ae,findKey:Pe,pick:Ie,omit:Ne,defaults:Le,create:function(e,t){var n=x(e);return t&&Ae(n,t),n},clone:Re,tap:function(e,t){return t(e),e},isMatch:Me,isEqual:function(e,t){return je(e,t)},isEmpty:function(e){return null==e||($(e)&&(He(e)||Be(e)||ze(e))?0===e.length:0===ke(e).length)},isElement:function(e){return!(!e||1!==e.nodeType)},isArray:He,isObject:qe,isArguments:ze,isFunction:Ve,isString:Be,isNumber:Ue,isDate:We,isRegExp:Ge,isError:Qe,isSymbol:Ye,isMap:Xe,isWeakMap:Ke,isSet:Je,isWeakSet:Ze,isFinite:function(e){return!Ye(e)&&h(e)&&!d(parseFloat(e))},isNaN:tt,isBoolean:nt,isNull:function(e){return null===e},isUndefined:function(e){return void 0===e},has:function(e,t){if(!He(t))return k(e,t);for(var n=t.length,i=0;i<n;i++){var r=t[i];if(null==e||!a.call(e,r))return!1;e=e[r]}return!!n},identity:it,constant:function(e){return function(){return e}},noop:function(){},property:rt,propertyOf:function(e){return null==e?function(){}:function(t){return He(t)?S(e,t):e[t]}},matcher:ot,matches:ot,times:function(e,t,n){var i=Array(Math.max(0,e));t=v(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:st,now:at,escape:dt,unescape:ht,result:function(e,t,n){He(t)||(t=[t]);var i=t.length;if(!i)return Ve(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=Ve(o)?o.call(e):o}return e},uniqueId:function(e){var t=++ft+"";return e?e+t:t},templateSettings:pt,template:function(e,t,n){!t&&n&&(t=n),t=Le({},t,p.templateSettings);var i,r=RegExp([(t.escape||gt).source,(t.interpolate||gt).source,(t.evaluate||gt).source].join("|")+"|$","g"),o=0,s="__p+='";e.replace(r,function(t,n,i,r,a){return s+=e.slice(o,a).replace(mt,yt),o=a+t.length,n?s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?s+="'+\n((__t=("+i+"))==null?'':__t)+\n'":r&&(s+="';\n"+r+"\n__p+='"),t}),s+="';\n",t.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{i=new Function(t.variable||"obj","_",s)}catch(e){throw e.source=s,e}var a=function(e){return i.call(this,e,p)},l=t.variable||"obj";return a.source="function("+l+"){\n"+s+"}",a},chain:function(e){var t=p(e);return t._chain=!0,t},mixin:bt});return xt._=xt,xt}),function(e){var t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(n,i,r){t.Backbone=e(t,r,n,i)});else if("undefined"!=typeof exports){var n,i=require("underscore");try{n=require("jquery")}catch(e){}e(t,exports,i,n)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(function(e,t,n,i){var r=e.Backbone,o=Array.prototype.slice;t.VERSION="1.4.0",t.$=i,t.noConflict=function(){return e.Backbone=r,this},t.emulateHTTP=!1,t.emulateJSON=!1;var s,a=t.Events={},l=/\s+/,c=function(e,t,i,r,o){var s,a=0;if(i&&"object"==typeof i){void 0!==r&&"context"in o&&void 0===o.context&&(o.context=r);for(s=n.keys(i);a<s.length;a++)t=c(e,t,s[a],i[s[a]],o)}else if(i&&l.test(i))for(s=i.split(l);a<s.length;a++)t=e(t,s[a],r,o);else t=e(t,i,r,o);return t};a.on=function(e,t,n){(this._events=c(u,this._events||{},e,t,{context:n,ctx:this,listening:s}),s)&&((this._listeners||(this._listeners={}))[s.id]=s,s.interop=!1);return this},a.listenTo=function(e,t,i){if(!e)return this;var r=e._listenId||(e._listenId=n.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),a=s=o[r];a||(this._listenId||(this._listenId=n.uniqueId("l")),a=s=o[r]=new v(this,e));var l=d(e,t,i,this);if(s=void 0,l)throw l;return a.interop&&a.on(t,i),this};var u=function(e,t,n,i){if(n){var r=e[t]||(e[t]=[]),o=i.context,s=i.ctx,a=i.listening;a&&a.count++,r.push({callback:n,context:o,ctx:o||s,listening:a})}return e},d=function(e,t,n,i){try{e.on(t,n,i)}catch(e){return e}};a.off=function(e,t,n){return this._events?(this._events=c(h,this._events,e,t,{context:n,listeners:this._listeners}),this):this},a.stopListening=function(e,t,i){var r=this._listeningTo;if(!r)return this;for(var o=e?[e._listenId]:n.keys(r),s=0;s<o.length;s++){var a=r[o[s]];if(!a)break;a.obj.off(t,i,this),a.interop&&a.off(t,i)}return n.isEmpty(r)&&(this._listeningTo=void 0),this};var h=function(e,t,i,r){if(e){var o,s=r.context,a=r.listeners,l=0;if(t||s||i){for(o=t?[t]:n.keys(e);l<o.length;l++){var c=e[t=o[l]];if(!c)break;for(var u=[],d=0;d<c.length;d++){var h=c[d];if(i&&i!==h.callback&&i!==h.callback._callback||s&&s!==h.context)u.push(h);else{var f=h.listening;f&&f.off(t,i)}}u.length?e[t]=u:delete e[t]}return e}for(o=n.keys(a);l<o.length;l++)a[o[l]].cleanup()}};a.once=function(e,t,n){var i=c(f,{},e,t,this.off.bind(this));return"string"==typeof e&&null==n&&(t=void 0),this.on(i,t,n)},a.listenToOnce=function(e,t,n){var i=c(f,{},t,n,this.stopListening.bind(this,e));return this.listenTo(e,i)};var f=function(e,t,i,r){if(i){var o=e[t]=n.once(function(){r(t,o),i.apply(this,arguments)});o._callback=i}return e};a.trigger=function(e){if(!this._events)return this;for(var t=Math.max(0,arguments.length-1),n=Array(t),i=0;i<t;i++)n[i]=arguments[i+1];return c(p,this._events,e,void 0,n),this};var p=function(e,t,n,i){if(e){var r=e[t],o=e.all;r&&o&&(o=o.slice()),r&&g(r,i),o&&g(o,[t].concat(i))}return e},g=function(e,t){var n,i=-1,r=e.length,o=t[0],s=t[1],a=t[2];switch(t.length){case 0:for(;++i<r;)(n=e[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=e[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=e[i]).callback.call(n.ctx,o,s);return;case 3:for(;++i<r;)(n=e[i]).callback.call(n.ctx,o,s,a);return;default:for(;++i<r;)(n=e[i]).callback.apply(n.ctx,t);return}},v=function(e,t){this.id=e._listenId,this.listener=e,this.obj=t,this.interop=!0,this.count=0,this._events=void 0};v.prototype.on=a.on,v.prototype.off=function(e,t){var n;this.interop?(this._events=c(h,this._events,e,t,{context:void 0,listeners:void 0}),n=!this._events):(this.count--,n=0===this.count),n&&this.cleanup()},v.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},a.bind=a.on,a.unbind=a.off,n.extend(t,a);var m=t.Model=function(e,t){var i=e||{};t||(t={}),this.preinitialize.apply(this,arguments),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(i=this.parse(i,t)||{});var r=n.result(this,"defaults");i=n.defaults(n.extend({},r,i),r),this.set(i,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(m.prototype,a,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!n.iteratee(e,this)(this.attributes)},set:function(e,t,i){if(null==e)return this;var r;if("object"==typeof e?(r=e,i=t):(r={})[e]=t,i||(i={}),!this._validate(r,i))return!1;var o=i.unset,s=i.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,d=this._previousAttributes;for(var h in r)t=r[h],n.isEqual(c[h],t)||a.push(h),n.isEqual(d[h],t)?delete u[h]:u[h]=t,o?delete c[h]:c[h]=t;if(this.idAttribute in r&&(this.id=this.get(this.idAttribute)),!s){a.length&&(this._pending=i);for(var f=0;f<a.length;f++)this.trigger("change:"+a[f],this,c[a[f]],i)}if(l)return this;if(!s)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var i in this.attributes)t[i]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,i=this._changing?this._previousAttributes:this.attributes,r={};for(var o in e){var s=e[o];n.isEqual(i[o],s)||(r[o]=s,t=!0)}return!!t&&r},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=n.extend({parse:!0},e);var t=this,i=e.success;return e.success=function(n){var r=e.parse?t.parse(n,e):n;if(!t.set(r,e))return!1;i&&i.call(e.context,t,n,e),t.trigger("sync",t,n,e)},B(this,e),this.sync("read",this,e)},save:function(e,t,i){var r;null==e||"object"==typeof e?(r=e,i=t):(r={})[e]=t;var o=(i=n.extend({validate:!0,parse:!0},i)).wait;if(r&&!o){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;var s=this,a=i.success,l=this.attributes;i.success=function(e){s.attributes=l;var t=i.parse?s.parse(e,i):e;if(o&&(t=n.extend({},r,t)),t&&!s.set(t,i))return!1;a&&a.call(i.context,s,e,i),s.trigger("sync",s,e,i)},B(this,i),r&&o&&(this.attributes=n.extend({},l,r));var c=this.isNew()?"create":i.patch?"patch":"update";"patch"!==c||i.attrs||(i.attrs=r);var u=this.sync(c,this,i);return this.attributes=l,u},destroy:function(e){e=e?n.clone(e):{};var t=this,i=e.success,r=e.wait,o=function(){t.stopListening(),t.trigger("destroy",t,t.collection,e)};e.success=function(n){r&&o(),i&&i.call(e.context,t,n,e),t.isNew()||t.trigger("sync",t,n,e)};var s=!1;return this.isNew()?n.defer(e.success):(B(this,e),s=this.sync("delete",this,e)),r||o(),s},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||V();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend({},e,{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var i=this.validationError=this.validate(e,t)||null;return!i||(this.trigger("invalid",this,i,n.extend(t,{validationError:i})),!1)}});var y=t.Collection=function(e,t){t||(t={}),this.preinitialize.apply(this,arguments),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},w={add:!0,remove:!0,merge:!0},b={add:!0,remove:!1},x=function(e,t,n){n=Math.min(Math.max(n,0),e.length);var i,r=Array(e.length-n),o=t.length;for(i=0;i<r.length;i++)r[i]=e[i+n];for(i=0;i<o;i++)e[i+n]=t[i];for(i=0;i<r.length;i++)e[i+o+n]=r[i]};n.extend(y.prototype,a,{model:m,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,b))},remove:function(e,t){t=n.extend({},t);var i=!n.isArray(e);e=i?[e]:e.slice();var r=this._removeModels(e,t);return!t.silent&&r.length&&(t.changes={added:[],merged:[],removed:r},this.trigger("update",this,t)),i?r[0]:r},set:function(e,t){if(null!=e){(t=n.extend({},w,t)).parse&&!this._isModel(e)&&(e=this.parse(e,t)||[]);var i=!n.isArray(e);e=i?[e]:e.slice();var r=t.at;null!=r&&(r=+r),r>this.length&&(r=this.length),r<0&&(r+=this.length+1);var o,s,a=[],l=[],c=[],u=[],d={},h=t.add,f=t.merge,p=t.remove,g=!1,v=this.comparator&&null==r&&!1!==t.sort,m=n.isString(this.comparator)?this.comparator:null;for(s=0;s<e.length;s++){o=e[s];var y=this.get(o);if(y){if(f&&o!==y){var b=this._isModel(o)?o.attributes:o;t.parse&&(b=y.parse(b,t)),y.set(b,t),c.push(y),v&&!g&&(g=y.hasChanged(m))}d[y.cid]||(d[y.cid]=!0,a.push(y)),e[s]=y}else h&&(o=e[s]=this._prepareModel(o,t))&&(l.push(o),this._addReference(o,t),d[o.cid]=!0,a.push(o))}if(p){for(s=0;s<this.length;s++)d[(o=this.models[s]).cid]||u.push(o);u.length&&this._removeModels(u,t)}var C=!1,k=!v&&h&&p;if(a.length&&k?(C=this.length!==a.length||n.some(this.models,function(e,t){return e!==a[t]}),this.models.length=0,x(this.models,a,0),this.length=this.models.length):l.length&&(v&&(g=!0),x(this.models,l,null==r?this.length:r),this.length=this.models.length),g&&this.sort({silent:!0}),!t.silent){for(s=0;s<l.length;s++)null!=r&&(t.index=r+s),(o=l[s]).trigger("add",o,this,t);(g||C)&&this.trigger("sort",this,t),(l.length||u.length||c.length)&&(t.changes={added:l,removed:u,merged:c},this.trigger("update",this,t))}return i?e[0]:e}},reset:function(e,t){t=t?n.clone(t):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return o.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[this.modelId(this._isModel(e)?e.attributes:e)]||e.cid&&this._byId[e.cid]},has:function(e){return null!=this.get(e)},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var t=this.comparator;if(!t)throw new Error("Cannot sort a set without a comparator");e||(e={});var i=t.length;return n.isFunction(t)&&(t=t.bind(this)),1===i||n.isString(t)?this.models=this.sortBy(t):this.models.sort(t),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){var t=(e=n.extend({parse:!0},e)).success,i=this;return e.success=function(n){var r=e.reset?"reset":"set";i[r](n,e),t&&t.call(e.context,i,n,e),i.trigger("sync",i,n,e)},B(this,e),this.sync("read",this,e)},create:function(e,t){var i=(t=t?n.clone(t):{}).wait;if(!(e=this._prepareModel(e,t)))return!1;i||this.add(e,t);var r=this,o=t.success;return t.success=function(e,t,n){i&&r.add(e,n),o&&o.call(n.context,e,t,n)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},values:function(){return new k(this,S)},keys:function(){return new k(this,E)},entries:function(){return new k(this,T)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(this._isModel(e))return e.collection||(e.collection=this),e;(t=t?n.clone(t):{}).collection=this;var i=new this.model(e,t);return i.validationError?(this.trigger("invalid",this,i.validationError,t),!1):i},_removeModels:function(e,t){for(var n=[],i=0;i<e.length;i++){var r=this.get(e[i]);if(r){var o=this.indexOf(r);this.models.splice(o,1),this.length--,delete this._byId[r.cid];var s=this.modelId(r.attributes);null!=s&&delete this._byId[s],t.silent||(t.index=o,r.trigger("remove",r,this,t)),n.push(r),this._removeReference(r,t)}}return n},_isModel:function(e){return e instanceof m},_addReference:function(e,t){this._byId[e.cid]=e;var n=this.modelId(e.attributes);null!=n&&(this._byId[n]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){delete this._byId[e.cid];var n=this.modelId(e.attributes);null!=n&&delete this._byId[n],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,i){if(t){if(("add"===e||"remove"===e)&&n!==this)return;if("destroy"===e&&this.remove(t,i),"change"===e){var r=this.modelId(t.previousAttributes()),o=this.modelId(t.attributes);r!==o&&(null!=r&&delete this._byId[r],null!=o&&(this._byId[o]=t))}}this.trigger.apply(this,arguments)}});var C="function"==typeof Symbol&&Symbol.iterator;C&&(y.prototype[C]=y.prototype.values);var k=function(e,t){this._collection=e,this._kind=t,this._index=0},S=1,E=2,T=3;C&&(k.prototype[C]=function(){return this}),k.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var e,t=this._collection.at(this._index);if(this._index++,this._kind===S)e=t;else{var n=this._collection.modelId(t.attributes);e=this._kind===E?n:[n,t]}return{value:e,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var $=t.View=function(e){this.cid=n.uniqueId("view"),this.preinitialize.apply(this,arguments),n.extend(this,n.pick(e,D)),this._ensureElement(),this.initialize.apply(this,arguments)},_=/^(\S+)\s*(.*)$/,D=["model","collection","el","id","attributes","className","tagName","events"];n.extend($.prototype,a,{tagName:"div",$:function(e){return this.$el.find(e)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=n.result(this,"events")),!e)return this;for(var t in this.undelegateEvents(),e){var i=e[t];if(n.isFunction(i)||(i=this[i]),i){var r=t.match(_);this.delegate(r[1],r[2],i.bind(this))}}return this},delegate:function(e,t,n){return this.$el.on(e+".delegateEvents"+this.cid,t,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,n){return this.$el.off(e+".delegateEvents"+this.cid,t,n),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}});var A=function(e,t,i,r){n.each(i,function(n,i){t[i]&&(e.prototype[i]=function(e,t,n,i){switch(t){case 1:return function(){return e[n](this[i])};case 2:return function(t){return e[n](this[i],t)};case 3:return function(t,r){return e[n](this[i],P(t,this),r)};case 4:return function(t,r,o){return e[n](this[i],P(t,this),r,o)};default:return function(){var t=o.call(arguments);return t.unshift(this[i]),e[n].apply(e,t)}}}(t,n,i,r))})},P=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?F(e):n.isString(e)?function(t){return t.get(e)}:e},F=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}};n.each([[y,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[m,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(e){var t=e[0],i=e[1],r=e[2];t.mixin=function(e){var i=n.reduce(n.functions(e),function(e,t){return e[t]=0,e},{});A(t,e,i,r)},A(t,n,i,r)}),t.sync=function(e,i,r){var o=I[e];n.defaults(r||(r={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var s={type:o,dataType:"json"};if(r.url||(s.url=n.result(i,"url")||V()),null!=r.data||!i||"create"!==e&&"update"!==e&&"patch"!==e||(s.contentType="application/json",s.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),r.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",r.emulateJSON&&(s.data._method=o);var a=r.beforeSend;r.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||r.emulateJSON||(s.processData=!1);var l=r.error;r.error=function(e,t,n){r.textStatus=t,r.errorThrown=n,l&&l.call(r.context,e,t,n)};var c=r.xhr=t.ajax(n.extend(s,r));return i.trigger("request",i,c,r),c};var I={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var N=t.Router=function(e){e||(e={}),this.preinitialize.apply(this,arguments),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},L=/\((.*?)\)/g,R=/(\(\?)?:\w+/g,M=/\*\w+/g,j=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(N.prototype,a,{preinitialize:function(){},initialize:function(){},route:function(e,i,r){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(i)&&(r=i,i=""),r||(r=this[i]);var o=this;return t.history.route(e,function(n){var s=o._extractParameters(e,n);!1!==o.execute(r,s,i)&&(o.trigger.apply(o,["route:"+i].concat(s)),o.trigger("route",i,s),t.history.trigger("route",o,i,s))}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(j,"\\$&").replace(L,"(?:$1)?").replace(R,function(e,t){return t?e:"([^/?]+)"}).replace(M,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var i=e.exec(t).slice(1);return n.map(i,function(e,t){return t===i.length-1?e||null:e?decodeURIComponent(e):null})}});var O=t.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},H=/^[#\/]|\s+$/g,q=/^\/+|\/+$/g,z=/#.*$/;O.started=!1,n.extend(O.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(H,"")},start:function(e){if(O.started)throw new Error("Backbone.history has already been started");if(O.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(q,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,r=i.insertBefore(this.iframe,i.firstChild).contentWindow;r.document.open(),r.document.close(),r.location.hash="#"+this.fragment}var o=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),O.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),n.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!O.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var i=n+e;e=e.replace(z,"");var r=this.decodeFragment(e);if(this.fragment!==r){if(this.fragment=r,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var o=this.iframe.contentWindow;t.replace||(o.document.open(),o.document.close()),this._updateHash(o.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var i=e.href.replace(/(javascript:|#).*$/,"");e.replace(i+"#"+t)}else e.hash="#"+t}}),t.history=new O;m.extend=y.extend=N.extend=$.extend=O.extend=function(e,t){var i,r=this;return i=e&&n.has(e,"constructor")?e.constructor:function(){return r.apply(this,arguments)},n.extend(i,r,t),i.prototype=n.create(r.prototype,e),i.prototype.constructor=i,i.__super__=r.prototype,i};var V=function(){throw new Error('A "url" property or function must be specified')},B=function(e,t){var n=t.error;t.error=function(i){n&&n.call(t.context,e,i,t),e.trigger("error",e,i,t)}};return t}),Backbone.Validation=function(e){"use strict";var t,n,i,r,o,s,a,l,c,u,d={forceUpdate:!1,selector:"name",labelFormatter:"sentenceCase",valid:Function.prototype,invalid:Function.prototype},h={formatLabel:function(e,t){return y[d.labelFormatter](e,t)},format:function(){var e=Array.prototype.slice.call(arguments);return e.shift().replace(/\{(\d+)\}/g,function(t,n){return void 0!==e[n]?e[n]:t})}},f=function(t,n,i){return n=n||{},i=i||"",e.each(t,function(r,o){t.hasOwnProperty(o)&&(r&&e.isArray(r)?e.forEach(r,function(e,t){f(e,n,i+o+"."+t+"."),n[i+o+"."+t]=e}):r&&"object"==typeof r&&r.constructor===Object&&f(r,n,i+o+"."),n[i+o]=r)}),n},p=(t=function(t,n){var i=t.attributes;if(e.isFunction(i)?i=i(n):e.isString(i)&&e.isFunction(w[i])&&(i=w[i](n)),e.isArray(i))return i},n=function(t,n,i,r){return e.reduce(function(t,n){var i=t.validation&&e.result(t,"validation")[n]||{};return(e.isFunction(i)||e.isString(i))&&(i={fn:i}),e.isArray(i)||(i=[i]),e.reduce(i,function(t,n){return e.each(e.without(e.keys(n),"msg"),function(e){t.push({fn:b[e],val:n[e],msg:n.msg})}),t},[])}(t,n),function(o,s){var a=e.extend({},h,b),l=s.fn.call(a,i,n,s.val,t,r);return!1!==l&&!1!==o&&(l&&!o?e.result(s,"msg")||l:o)},"")},r=function(t,n,r){n.associatedViews?n.associatedViews.push(t):n.associatedViews=[t],e.extend(n,i(t,r))},o=function(t,n){n&&t.associatedViews&&t.associatedViews.length>1?t.associatedViews=e.without(t.associatedViews,n):(delete t.validate,delete t.preValidate,delete t.isValid,delete t.associatedViews)},s=function(e){r(this.view,e,this.options)},a=function(e){o(e)},{version:"0.11.3",configure:function(t){e.extend(d,t)},bind:function(t,n){var i=(n=e.extend({},d,g,n)).model||t.model,o=n.collection||t.collection;if(void 0===i&&void 0===o)throw"Before you execute the binding your view must have a model or a collection.\nSee http://thedersen.com/projects/backbone-validation/#using-form-model-validation for more information.";i?r(t,i,n):o&&(o.each(function(e){r(t,e,n)}),o.bind("add",s,{view:t,options:n}),o.bind("remove",a))},unbind:function(t,n){var i=(n=e.extend({},n)).model||t.model,r=n.collection||t.collection;i?o(i,t):r&&(r.each(function(e){o(e,t)}),r.unbind("add",s),r.unbind("remove",a))},mixin:(i=function(i,r){return{preValidate:function(t,i){var r,o=this,s={};return e.isObject(t)?(e.each(t,function(e,t){(r=o.preValidate(t,e))&&(s[t]=r)}),e.isEmpty(s)?void 0:s):n(this,t,i,e.extend({},this.attributes))},isValid:function(o){var s,a,l,c;return o=o||t(r,i),e.isString(o)?a=[o]:e.isArray(o)&&(a=o),a&&(s=f(this.attributes),e.each(this.associatedViews,function(t){e.each(a,function(i){(l=n(this,i,s[i],e.extend({},this.attributes)))?(r.invalid(t,i,l,r.selector),(c=c||{})[i]=l):r.valid(t,i,r.selector)},this)},this)),!0===o&&(c=this.validate()),c&&this.trigger("invalid",this,c,{validationError:c}),a?!c:!this.validation||this._isValid},validate:function(o,s){var a=this,l=!o,c=e.extend({},r,s),u=function(t,n){return n=n||e.keys(e.result(t,"validation")||{}),e.reduce(n,function(e,t){return e[t]=void 0,e},{})}(a,t(r,i)),d=e.extend({},u,a.attributes,o),h=f(d),p=o?f(o):h,g=function(t,i,r){var o,s={},a=!0,l=e.clone(i);return e.each(r,function(e,i){(o=n(t,i,e,l))&&(s[i]=o,a=!1)}),{invalidAttrs:s,isValid:a}}(a,d,e.pick(h,e.keys(u)));if(a._isValid=g.isValid,e.each(a.associatedViews,function(t){e.each(u,function(e,n){var i=g.invalidAttrs.hasOwnProperty(n),r=p.hasOwnProperty(n);i||c.valid(t,n,c.selector),i&&(r||l)&&c.invalid(t,n,g.invalidAttrs[n],c.selector)})}),e.defer(function(){a.trigger("validated",a._isValid,a,g.invalidAttrs),a.trigger("validated:"+(a._isValid?"valid":"invalid"),a,g.invalidAttrs)}),!c.forceUpdate&&e.intersection(e.keys(g.invalidAttrs),e.keys(p)).length>0)return g.invalidAttrs}}})(null,d)}),g=p.callbacks={valid:function(e,t,n){e.$("["+n+'~="'+t+'"]').removeClass("invalid").removeAttr("data-error")},invalid:function(e,t,n,i){e.$("["+i+'~="'+t+'"]').addClass("invalid").attr("data-error",n)}},v=p.patterns={digits:/^\d+$/,number:/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/,email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,url:/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i},m=p.messages={required:"{0} is required",acceptance:"{0} must be accepted",min:"{0} must be greater than or equal to {1}",max:"{0} must be less than or equal to {1}",range:"{0} must be between {1} and {2}",length:"{0} must be {1} characters",minLength:"{0} must be at least {1} characters",maxLength:"{0} must be at most {1} characters",rangeLength:"{0} must be between {1} and {2} characters",oneOf:"{0} must be one of: {1}",equalTo:"{0} must be the same as {1}",digits:"{0} must only contain digits",number:"{0} must be a number",email:"{0} must be a valid email",url:"{0} must be a valid url",inlinePattern:"{0} is invalid"},y=p.labelFormatters={none:function(e){return e},sentenceCase:function(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,t){return 0===t?e.toUpperCase():" "+e.toLowerCase()}).replace(/_/g," ")},label:function(e,t){return t.labels&&t.labels[e]||y.sentenceCase(e,t)}},w=p.attributeLoaders={inputNames:function(e){var t=[];return e&&e.$("form [name]").each(function(){/^(?:input|select|textarea)$/i.test(this.nodeName)&&this.name&&"submit"!==this.type&&-1===t.indexOf(this.name)&&t.push(this.name)}),t}},b=p.validators=(l=String.prototype.trim?function(e){return null===e?"":String.prototype.trim.call(e)}:function(e){return null===e?"":e.toString().replace(/^\s+/,"").replace(/\s+$/,"")},c=function(t){return e.isNumber(t)||e.isString(t)&&t.match(v.number)},u=function(t){return!(e.isNull(t)||e.isUndefined(t)||e.isString(t)&&""===l(t)||e.isArray(t)&&e.isEmpty(t))},{fn:function(t,n,i,r,o){return e.isString(i)&&(i=r[i]),i.call(r,t,n,o)},required:function(t,n,i,r,o){var s=e.isFunction(i)?i.call(r,t,n,o):i;return!(!s&&!u(t))&&(s&&!u(t)?this.format(m.required,this.formatLabel(n,r)):void 0)},acceptance:function(t,n,i,r){if("true"!==t&&(!e.isBoolean(t)||!1===t))return this.format(m.acceptance,this.formatLabel(n,r))},min:function(e,t,n,i){if(!c(e)||e<n)return this.format(m.min,this.formatLabel(t,i),n)},max:function(e,t,n,i){if(!c(e)||e>n)return this.format(m.max,this.formatLabel(t,i),n)},range:function(e,t,n,i){if(!c(e)||e<n[0]||e>n[1])return this.format(m.range,this.formatLabel(t,i),n[0],n[1])},length:function(t,n,i,r){if(!e.isString(t)||t.length!==i)return this.format(m.length,this.formatLabel(n,r),i)},minLength:function(t,n,i,r){if(!e.isString(t)||t.length<i)return this.format(m.minLength,this.formatLabel(n,r),i)},maxLength:function(t,n,i,r){if(!e.isString(t)||t.length>i)return this.format(m.maxLength,this.formatLabel(n,r),i)},rangeLength:function(t,n,i,r){if(!e.isString(t)||t.length<i[0]||t.length>i[1])return this.format(m.rangeLength,this.formatLabel(n,r),i[0],i[1])},oneOf:function(t,n,i,r){if(!e.include(i,t))return this.format(m.oneOf,this.formatLabel(n,r),i.join(", "))},equalTo:function(e,t,n,i,r){if(e!==r[n])return this.format(m.equalTo,this.formatLabel(t,i),this.formatLabel(n,i))},pattern:function(e,t,n,i){if(!u(e)||!e.toString().match(v[n]||n))return this.format(m[n]||m.inlinePattern,this.formatLabel(t,i),n)}});return e.each(b,function(t,n){b[n]=e.bind(b[n],e.extend({},h,b))}),p}(_),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).enquire=e()}}(function(){return function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){var n=t[s][1][e];return r(n||e)},u,u.exports,e,t,n,i)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t,n){var i=e(3),r=e(4).each;function o(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}o.prototype={constuctor:o,addHandler:function(e){var t=new i(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;r(t,function(n,i){if(n.equals(e))return n.destroy(),!t.splice(i,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){r(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";r(this.handlers,function(t){t[e]()})}},t.exports=o},{3:3,4:4}],2:[function(e,t,n){var i=e(1),r=e(4),o=r.each,s=r.isFunction,a=r.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var r=this.queries,l=n&&this.browserIsIncapable;return r[e]||(r[e]=new i(e,l)),s(t)&&(t={match:t}),a(t)||(t=[t]),o(t,function(t){s(t)&&(t={match:t}),r[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},t.exports=l},{1:1,4:4}],3:[function(e,t,n){function i(e){this.options=e,!e.deferSetup&&this.setup()}i.prototype={constructor:i,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},t.exports=i},{}],4:[function(e,t,n){t.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var n=0,i=e.length;n<i&&!1!==t(e[n],n);n++);}}},{}],5:[function(e,t,n){var i=e(2);t.exports=new i},{2:2}]},{},[5])(5)}),function(e){"use strict";e.fn.fitVids=function(t){var n={customSelector:null},i=document.createElement("div"),r=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return i.className="fit-vids-style",i.innerHTML="&shy;<style>               .fluid-width-video-wrapper {                 width: 100%;                              position: relative;                       padding: 0;                            }                                                                                   .fluid-width-video-wrapper iframe,        .fluid-width-video-wrapper object,        .fluid-width-video-wrapper embed {           position: absolute;                       top: 0;                                   left: 0;                                  width: 100%;                              height: 100%;                          }                                       </style>",r.parentNode.insertBefore(i,r),t&&e.extend(n,t),this.each(function(){var t=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.kickstarter.com']","object","embed"];n.customSelector&&t.push(n.customSelector),e(this).find(t.join(",")).each(function(){var t=e(this);if(!("embed"===this.tagName.toLowerCase()&&t.parent("object").length||t.parent(".fluid-width-video-wrapper").length)){var n=("object"===this.tagName.toLowerCase()||t.attr("height")&&!isNaN(parseInt(t.attr("height"),10))?parseInt(t.attr("height"),10):t.height())/(isNaN(parseInt(t.attr("width"),10))?t.width():parseInt(t.attr("width"),10));if(!t.attr("id")){var i="fitvid"+Math.floor(999999*Math.random());t.attr("id",i)}t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top",100*n+"%"),t.removeAttr("height").removeAttr("width")}})})}}(jQuery),function(e){var t={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0},onAutoChange:function(){return!0}};e.fn.bxSlider=function(n){if(0===this.length)return this;if(this.length>1)return this.each(function(){e(this).bxSlider(n)}),this;var r={},o=this,s=e(window).width(),a=e(window).height();if(!e(o).data("bxSlider")){var l=function(){e(o).data("bxSlider")||(r.settings=e.extend({},t,n),r.settings.slideWidth=parseInt(r.settings.slideWidth),r.children=o.children(r.settings.slideSelector),r.children.length<r.settings.minSlides&&(r.settings.minSlides=r.children.length),r.children.length<r.settings.maxSlides&&(r.settings.maxSlides=r.children.length),r.settings.randomStart&&(r.settings.startSlide=Math.floor(Math.random()*r.children.length)),r.active={index:r.settings.startSlide},r.carousel=r.settings.minSlides>1||r.settings.maxSlides>1,r.carousel&&(r.settings.preloadImages="all"),r.minThreshold=r.settings.minSlides*r.settings.slideWidth+(r.settings.minSlides-1)*r.settings.slideMargin,r.maxThreshold=r.settings.maxSlides*r.settings.slideWidth+(r.settings.maxSlides-1)*r.settings.slideMargin,r.working=!1,r.controls={},r.interval=null,r.animProp="vertical"===r.settings.mode?"top":"left",r.usingCSS=r.settings.useCSS&&"fade"!==r.settings.mode&&function(){for(var e=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],n=0;n<t.length;n++)if(void 0!==e.style[t[n]])return r.cssPrefix=t[n].replace("Perspective","").toLowerCase(),r.animProp="-"+r.cssPrefix+"-transform",!0;return!1}(),"vertical"===r.settings.mode&&(r.settings.maxSlides=r.settings.minSlides),o.data("origStyle",o.attr("style")),o.children(r.settings.slideSelector).each(function(){e(this).data("origStyle",e(this).attr("style"))}),c())},c=function(){var t=r.children.eq(r.settings.startSlide);o.wrap('<div class="'+r.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),r.viewport=o.parent(),r.settings.ariaLive&&!r.settings.ticker&&r.viewport.attr("aria-live","polite"),r.loader=e('<div class="bx-loading" />'),r.viewport.prepend(r.loader),o.css({width:"horizontal"===r.settings.mode?1e3*r.children.length+215+"%":"auto",position:"relative"}),r.usingCSS&&r.settings.easing?o.css("-"+r.cssPrefix+"-transition-timing-function",r.settings.easing):r.settings.easing||(r.settings.easing="swing"),r.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),r.viewport.parent().css({maxWidth:f()}),r.children.css({float:"horizontal"===r.settings.mode?"left":"none",listStyle:"none",position:"relative"}),r.children.css("width",p()),"horizontal"===r.settings.mode&&r.settings.slideMargin>0&&r.children.css("marginRight",r.settings.slideMargin),"vertical"===r.settings.mode&&r.settings.slideMargin>0&&r.children.css("marginBottom",r.settings.slideMargin),"fade"===r.settings.mode&&(r.children.css({position:"absolute",zIndex:0,display:"none"}),r.children.eq(r.settings.startSlide).css({zIndex:r.settings.slideZIndex,display:"block"})),r.controls.el=e('<div class="bx-controls" />'),r.settings.captions&&S(),r.active.last=r.settings.startSlide===v()-1,r.settings.video&&o.fitVids(),("all"===r.settings.preloadImages||r.settings.ticker)&&(t=r.children),r.settings.ticker?r.settings.pager=!1:(r.settings.controls&&C(),r.settings.auto&&r.settings.autoControls&&k(),r.settings.pager&&x(),(r.settings.controls||r.settings.autoControls||r.settings.pager)&&r.viewport.after(r.controls.el)),u(t,d)},u=function(t,n){var i=t.find('img:not([src=""]), iframe').length,r=0;0!==i?t.find('img:not([src=""]), iframe').each(function(){e(this).one("load error",function(){++r===i&&n()}).each(function(){(this.complete||""==this.src)&&e(this).trigger("load")})}):n()},d=function(){if(r.settings.infiniteLoop&&"fade"!==r.settings.mode&&!r.settings.ticker){var t="vertical"===r.settings.mode?r.settings.minSlides:r.settings.maxSlides,n=r.children.slice(0,t).clone(!0).addClass("bx-clone"),i=r.children.slice(-t).clone(!0).addClass("bx-clone");r.settings.ariaHidden&&(n.attr("aria-hidden",!0),i.attr("aria-hidden",!0)),o.append(n).prepend(i)}r.loader.remove(),y(),"vertical"===r.settings.mode&&(r.settings.adaptiveHeight=!0),r.viewport.height(h()),o.redrawSlider(),r.settings.onSliderLoad.call(o,r.active.index),r.initialized=!0,r.settings.responsive&&e(window).bind("resize",U),r.settings.auto&&r.settings.autoStart&&(v()>1||r.settings.autoSlideForOnePage)&&R(),r.settings.ticker&&M(),r.settings.pager&&A(r.settings.startSlide),r.settings.controls&&I(),r.settings.touchEnabled&&!r.settings.ticker&&H(),r.settings.keyboardEnabled&&!r.settings.ticker&&e(document).keydown(O)},h=function(){var t=0,n=e();if("vertical"===r.settings.mode||r.settings.adaptiveHeight)if(r.carousel){var o=1===r.settings.moveSlides?r.active.index:r.active.index*m();for(n=r.children.eq(o),i=1;i<=r.settings.maxSlides-1;i++)n=o+i>=r.children.length?n.add(r.children.eq(i-1)):n.add(r.children.eq(o+i))}else n=r.children.eq(r.active.index);else n=r.children;return"vertical"===r.settings.mode?(n.each(function(n){t+=e(this).outerHeight()}),r.settings.slideMargin>0&&(t+=r.settings.slideMargin*(r.settings.minSlides-1))):t=Math.max.apply(Math,n.map(function(){return e(this).outerHeight(!1)}).get()),"border-box"===r.viewport.css("box-sizing")?t+=parseFloat(r.viewport.css("padding-top"))+parseFloat(r.viewport.css("padding-bottom"))+parseFloat(r.viewport.css("border-top-width"))+parseFloat(r.viewport.css("border-bottom-width")):"padding-box"===r.viewport.css("box-sizing")&&(t+=parseFloat(r.viewport.css("padding-top"))+parseFloat(r.viewport.css("padding-bottom"))),t},f=function(){var e="100%";return r.settings.slideWidth>0&&(e="horizontal"===r.settings.mode?r.settings.maxSlides*r.settings.slideWidth+(r.settings.maxSlides-1)*r.settings.slideMargin:r.settings.slideWidth),e},p=function(){var e=r.settings.slideWidth,t=r.viewport.width();if(0===r.settings.slideWidth||r.settings.slideWidth>t&&!r.carousel||"vertical"===r.settings.mode)e=t;else if(r.settings.maxSlides>1&&"horizontal"===r.settings.mode){if(t>r.maxThreshold)return e;t<r.minThreshold?e=(t-r.settings.slideMargin*(r.settings.minSlides-1))/r.settings.minSlides:r.settings.shrinkItems&&(e=Math.floor((t+r.settings.slideMargin)/Math.ceil((t+r.settings.slideMargin)/(e+r.settings.slideMargin))-r.settings.slideMargin))}return e},g=function(){var e=1,t=null;return"horizontal"===r.settings.mode&&r.settings.slideWidth>0?r.viewport.width()<r.minThreshold?e=r.settings.minSlides:r.viewport.width()>r.maxThreshold?e=r.settings.maxSlides:(t=r.children.first().width()+r.settings.slideMargin,e=Math.floor((r.viewport.width()+r.settings.slideMargin)/t)||1):"vertical"===r.settings.mode&&(e=r.settings.minSlides),e},v=function(){var e=0,t=0,n=0;if(r.settings.moveSlides>0){if(!r.settings.infiniteLoop){for(;t<r.children.length;)++e,t=n+g(),n+=r.settings.moveSlides<=g()?r.settings.moveSlides:g();return n}e=Math.ceil(r.children.length/m())}else e=Math.ceil(r.children.length/g());return e},m=function(){return r.settings.moveSlides>0&&r.settings.moveSlides<=g()?r.settings.moveSlides:g()},y=function(){var e,t,n;r.children.length>r.settings.maxSlides&&r.active.last&&!r.settings.infiniteLoop?"horizontal"===r.settings.mode?(e=(t=r.children.last()).position(),w(-(e.left-(r.viewport.width()-t.outerWidth())),"reset",0)):"vertical"===r.settings.mode&&(n=r.children.length-r.settings.minSlides,e=r.children.eq(n).position(),w(-e.top,"reset",0)):(e=r.children.eq(r.active.index*m()).position(),r.active.index===v()-1&&(r.active.last=!0),void 0!==e&&("horizontal"===r.settings.mode?w(-e.left,"reset",0):"vertical"===r.settings.mode&&w(-e.top,"reset",0)))},w=function(t,n,i,s){var a,l;r.usingCSS?(l="vertical"===r.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)",o.css("-"+r.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===n?(o.css(r.animProp,l),0!==i?o.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){e(t.target).is(o)&&(o.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),P())}):P()):"reset"===n?o.css(r.animProp,l):"ticker"===n&&(o.css("-"+r.cssPrefix+"-transition-timing-function","linear"),o.css(r.animProp,l),0!==i?o.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(t){e(t.target).is(o)&&(o.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),w(s.resetValue,"reset",0),j())}):(w(s.resetValue,"reset",0),j()))):((a={})[r.animProp]=t,"slide"===n?o.animate(a,i,r.settings.easing,function(){P()}):"reset"===n?o.css(r.animProp,t):"ticker"===n&&o.animate(a,i,"linear",function(){w(s.resetValue,"reset",0),j()}))},b=function(){for(var t="",n="",i=v(),o=0;o<i;o++)n="",r.settings.buildPager&&e.isFunction(r.settings.buildPager)||r.settings.pagerCustom?(n=r.settings.buildPager(o),r.pagerEl.addClass("bx-custom-pager")):(n=o+1,r.pagerEl.addClass("bx-default-pager")),t+='<div class="bx-pager-item"><a href="" data-slide-index="'+o+'" class="bx-pager-link">'+n+"</a></div>";r.pagerEl.html(t)},x=function(){r.settings.pagerCustom?r.pagerEl=e(r.settings.pagerCustom):(r.pagerEl=e('<div class="bx-pager" />'),r.settings.pagerSelector?e(r.settings.pagerSelector).html(r.pagerEl):r.controls.el.addClass("bx-has-pager").append(r.pagerEl),b()),r.pagerEl.on("click touchend","a",D)},C=function(){r.controls.next=e('<a class="bx-next" href="">'+r.settings.nextText+"</a>"),r.controls.prev=e('<a class="bx-prev" href="">'+r.settings.prevText+"</a>"),r.controls.next.bind("click touchend",E),r.controls.prev.bind("click touchend",T),r.settings.nextSelector&&e(r.settings.nextSelector).append(r.controls.next),r.settings.prevSelector&&e(r.settings.prevSelector).append(r.controls.prev),r.settings.nextSelector||r.settings.prevSelector||(r.controls.directionEl=e('<div class="bx-controls-direction" />'),r.controls.directionEl.append(r.controls.prev).append(r.controls.next),r.controls.el.addClass("bx-has-controls-direction").append(r.controls.directionEl))},k=function(){r.controls.start=e('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+r.settings.startText+"</a></div>"),r.controls.stop=e('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+r.settings.stopText+"</a></div>"),r.controls.autoEl=e('<div class="bx-controls-auto" />'),r.controls.autoEl.on("click",".bx-start",$),r.controls.autoEl.on("click",".bx-stop",_),r.settings.autoControlsCombine?r.controls.autoEl.append(r.controls.start):r.controls.autoEl.append(r.controls.start).append(r.controls.stop),r.settings.autoControlsSelector?e(r.settings.autoControlsSelector).html(r.controls.autoEl):r.controls.el.addClass("bx-has-controls-auto").append(r.controls.autoEl),F(r.settings.autoStart?"stop":"start")},S=function(){r.children.each(function(t){var n=e(this).find("img:first").attr("title");void 0!==n&&(""+n).length&&e(this).append('<div class="bx-caption"><span>'+n+"</span></div>")})},E=function(e){e.preventDefault(),r.controls.el.hasClass("disabled")||(r.settings.auto&&r.settings.stopAutoOnClick&&o.stopAuto(),o.goToNextSlide())},T=function(e){e.preventDefault(),r.controls.el.hasClass("disabled")||(r.settings.auto&&r.settings.stopAutoOnClick&&o.stopAuto(),o.goToPrevSlide())},$=function(e){o.startAuto(),e.preventDefault()},_=function(e){o.stopAuto(),e.preventDefault()},D=function(t){var n,i;t.preventDefault(),r.controls.el.hasClass("disabled")||(r.settings.auto&&r.settings.stopAutoOnClick&&o.stopAuto(),void 0!==(n=e(t.currentTarget)).attr("data-slide-index")&&(i=parseInt(n.attr("data-slide-index")))!==r.active.index&&o.goToSlide(i))},A=function(t){var n=r.children.length;if("short"===r.settings.pagerType)return r.settings.maxSlides>1&&(n=Math.ceil(r.children.length/r.settings.maxSlides)),void r.pagerEl.html(t+1+r.settings.pagerShortSeparator+n);r.pagerEl.find("a").removeClass("active"),r.pagerEl.each(function(n,i){e(i).find("a").eq(t).addClass("active")})},P=function(){if(r.settings.infiniteLoop){var e="";0===r.active.index?e=r.children.eq(0).position():r.active.index===v()-1&&r.carousel?e=r.children.eq((v()-1)*m()).position():r.active.index===r.children.length-1&&(e=r.children.eq(r.children.length-1).position()),e&&("horizontal"===r.settings.mode?w(-e.left,"reset",0):"vertical"===r.settings.mode&&w(-e.top,"reset",0))}r.working=!1,r.settings.onSlideAfter.call(o,r.children.eq(r.active.index),r.oldIndex,r.active.index)},F=function(e){r.settings.autoControlsCombine?r.controls.autoEl.html(r.controls[e]):(r.controls.autoEl.find("a").removeClass("active"),r.controls.autoEl.find("a:not(.bx-"+e+")").addClass("active"))},I=function(){1===v()?(r.controls.prev.addClass("disabled"),r.controls.next.addClass("disabled")):!r.settings.infiniteLoop&&r.settings.hideControlOnEnd&&(0===r.active.index?(r.controls.prev.addClass("disabled"),r.controls.next.removeClass("disabled")):r.active.index===v()-1?(r.controls.next.addClass("disabled"),r.controls.prev.removeClass("disabled")):(r.controls.prev.removeClass("disabled"),r.controls.next.removeClass("disabled")))},N=function(){o.startAuto()},L=function(){o.stopAuto()},R=function(){if(r.settings.autoDelay>0)setTimeout(o.startAuto,r.settings.autoDelay);else o.startAuto(),e(window).focus(N).blur(L);r.settings.autoHover&&o.hover(function(){r.interval&&(o.stopAuto(!0),r.autoPaused=!0)},function(){r.autoPaused&&(o.startAuto(!0),r.autoPaused=null)})},M=function(){var t,n,i,s,a,l,c,u,d=0;"next"===r.settings.autoDirection?o.append(r.children.clone().addClass("bx-clone")):(o.prepend(r.children.clone().addClass("bx-clone")),t=r.children.first().position(),d="horizontal"===r.settings.mode?-t.left:-t.top),w(d,"reset",0),r.settings.pager=!1,r.settings.controls=!1,r.settings.autoControls=!1,r.settings.tickerHover&&(r.usingCSS?(s="horizontal"===r.settings.mode?4:5,r.viewport.hover(function(){n=o.css("-"+r.cssPrefix+"-transform"),i=parseFloat(n.split(",")[s]),w(i,"reset",0)},function(){u=0,r.children.each(function(t){u+="horizontal"===r.settings.mode?e(this).outerWidth(!0):e(this).outerHeight(!0)}),a=r.settings.speed/u,l="horizontal"===r.settings.mode?"left":"top",c=a*(u-Math.abs(parseInt(i))),j(c)})):r.viewport.hover(function(){o.stop()},function(){u=0,r.children.each(function(t){u+="horizontal"===r.settings.mode?e(this).outerWidth(!0):e(this).outerHeight(!0)}),a=r.settings.speed/u,l="horizontal"===r.settings.mode?"left":"top",c=a*(u-Math.abs(parseInt(o.css(l)))),j(c)})),j()},j=function(e){var t,n,i=e||r.settings.speed,s={left:0,top:0},a={left:0,top:0};"next"===r.settings.autoDirection?s=o.find(".bx-clone").first().position():a=r.children.first().position(),t="horizontal"===r.settings.mode?-s.left:-s.top,n="horizontal"===r.settings.mode?-a.left:-a.top,w(t,"ticker",i,{resetValue:n})},O=function(t){var n=document.activeElement.tagName.toLowerCase();if(null==new RegExp(n,["i"]).exec("input|textarea")&&function(t){var n=e(window),i={top:n.scrollTop(),left:n.scrollLeft()},r=t.offset();return i.right=i.left+n.width(),i.bottom=i.top+n.height(),r.right=r.left+t.outerWidth(),r.bottom=r.top+t.outerHeight(),!(i.right<r.left||i.left>r.right||i.bottom<r.top||i.top>r.bottom)}(o)){if(39===t.keyCode)return E(t),!1;if(37===t.keyCode)return T(t),!1}},H=function(){r.touch={start:{x:0,y:0},end:{x:0,y:0}},r.viewport.bind("touchstart MSPointerDown pointerdown",q),r.viewport.on("click",".bxslider a",function(e){r.viewport.hasClass("click-disabled")&&(e.preventDefault(),r.viewport.removeClass("click-disabled"))})},q=function(e){if(r.controls.el.addClass("disabled"),r.working)e.preventDefault(),r.controls.el.removeClass("disabled");else{r.touch.originalPos=o.position();var t=e.originalEvent,n=void 0!==t.changedTouches?t.changedTouches:[t];r.touch.start.x=n[0].pageX,r.touch.start.y=n[0].pageY,r.viewport.get(0).setPointerCapture&&(r.pointerId=t.pointerId,r.viewport.get(0).setPointerCapture(r.pointerId)),r.viewport.bind("touchmove MSPointerMove pointermove",V),r.viewport.bind("touchend MSPointerUp pointerup",B),r.viewport.bind("MSPointerCancel pointercancel",z)}},z=function(e){w(r.touch.originalPos.left,"reset",0),r.controls.el.removeClass("disabled"),r.viewport.unbind("MSPointerCancel pointercancel",z),r.viewport.unbind("touchmove MSPointerMove pointermove",V),r.viewport.unbind("touchend MSPointerUp pointerup",B),r.viewport.get(0).releasePointerCapture&&r.viewport.get(0).releasePointerCapture(r.pointerId)},V=function(e){var t=e.originalEvent,n=void 0!==t.changedTouches?t.changedTouches:[t],i=Math.abs(n[0].pageX-r.touch.start.x),o=Math.abs(n[0].pageY-r.touch.start.y),s=0,a=0;3*i>o&&r.settings.preventDefaultSwipeX?e.preventDefault():3*o>i&&r.settings.preventDefaultSwipeY&&e.preventDefault(),"fade"!==r.settings.mode&&r.settings.oneToOneTouch&&("horizontal"===r.settings.mode?(a=n[0].pageX-r.touch.start.x,s=r.touch.originalPos.left+a):(a=n[0].pageY-r.touch.start.y,s=r.touch.originalPos.top+a),w(s,"reset",0))},B=function(e){r.viewport.unbind("touchmove MSPointerMove pointermove",V),r.controls.el.removeClass("disabled");var t=e.originalEvent,n=void 0!==t.changedTouches?t.changedTouches:[t],i=0,s=0;r.touch.end.x=n[0].pageX,r.touch.end.y=n[0].pageY,"fade"===r.settings.mode?(s=Math.abs(r.touch.start.x-r.touch.end.x))>=r.settings.swipeThreshold&&(r.touch.start.x>r.touch.end.x?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto()):("horizontal"===r.settings.mode?(s=r.touch.end.x-r.touch.start.x,i=r.touch.originalPos.left):(s=r.touch.end.y-r.touch.start.y,i=r.touch.originalPos.top),!r.settings.infiniteLoop&&(0===r.active.index&&s>0||r.active.last&&s<0)?w(i,"reset",200):Math.abs(s)>=r.settings.swipeThreshold?(s<0?o.goToNextSlide():o.goToPrevSlide(),o.stopAuto()):w(i,"reset",200)),r.viewport.unbind("touchend MSPointerUp pointerup",B),r.viewport.get(0).releasePointerCapture&&r.viewport.get(0).releasePointerCapture(r.pointerId)},U=function(t){if(r.initialized)if(r.working)window.setTimeout(U,10);else{var n=e(window).width(),i=e(window).height();s===n&&a===i||(s=n,a=i,o.redrawSlider(),r.settings.onSliderResize.call(o,r.active.index))}},W=function(e){var t=g();r.settings.ariaHidden&&!r.settings.ticker&&(r.children.attr("aria-hidden","true"),r.children.slice(e,e+t).attr("aria-hidden","false"))};return o.goToSlide=function(t,n){var i,s,a,l,c=!0,u=0,d={left:0,top:0},f=null;if(r.oldIndex=r.active.index,r.active.index=function(e){return e<0?r.settings.infiniteLoop?v()-1:r.active.index:e>=v()?r.settings.infiniteLoop?0:r.active.index:e}(t),!r.working&&r.active.index!==r.oldIndex){if(r.working=!0,void 0!==(c=r.settings.onSlideBefore.call(o,r.children.eq(r.active.index),r.oldIndex,r.active.index))&&!c)return r.active.index=r.oldIndex,void(r.working=!1);"next"===n?r.settings.onSlideNext.call(o,r.children.eq(r.active.index),r.oldIndex,r.active.index)||(c=!1):"prev"===n&&(r.settings.onSlidePrev.call(o,r.children.eq(r.active.index),r.oldIndex,r.active.index)||(c=!1)),r.active.last=r.active.index>=v()-1,(r.settings.pager||r.settings.pagerCustom)&&A(r.active.index),r.settings.controls&&I(),"fade"===r.settings.mode?(r.settings.adaptiveHeight&&r.viewport.height()!==h()&&r.viewport.animate({height:h()},r.settings.adaptiveHeightSpeed),r.children.filter(":visible").fadeOut(r.settings.speed).css({zIndex:0}),r.children.eq(r.active.index).css("zIndex",r.settings.slideZIndex+1).fadeIn(r.settings.speed,function(){e(this).css("zIndex",r.settings.slideZIndex),P()})):(r.settings.adaptiveHeight&&r.viewport.height()!==h()&&r.viewport.animate({height:h()},r.settings.adaptiveHeightSpeed),!r.settings.infiniteLoop&&r.carousel&&r.active.last?"horizontal"===r.settings.mode?(d=(f=r.children.eq(r.children.length-1)).position(),u=r.viewport.width()-f.outerWidth()):(i=r.children.length-r.settings.minSlides,d=r.children.eq(i).position()):r.carousel&&r.active.last&&"prev"===n?(s=1===r.settings.moveSlides?r.settings.maxSlides-m():(v()-1)*m()-(r.children.length-r.settings.maxSlides),d=(f=o.children(".bx-clone").eq(s)).position()):"next"===n&&0===r.active.index?(d=o.find("> .bx-clone").eq(r.settings.maxSlides).position(),r.active.last=!1):t>=0&&(l=t*parseInt(m()),d=r.children.eq(l).position()),void 0!==d&&(a="horizontal"===r.settings.mode?-(d.left-u):-d.top,w(a,"slide",r.settings.speed)),r.working=!1),r.settings.ariaHidden&&W(r.active.index*m())}},o.goToNextSlide=function(){if((r.settings.infiniteLoop||!r.active.last)&&1!=r.working){var e=parseInt(r.active.index)+1;o.goToSlide(e,"next")}},o.goToPrevSlide=function(){if((r.settings.infiniteLoop||0!==r.active.index)&&1!=r.working){var e=parseInt(r.active.index)-1;o.goToSlide(e,"prev")}},o.startAuto=function(e){r.interval||(r.interval=setInterval(function(){"next"===r.settings.autoDirection?o.goToNextSlide():o.goToPrevSlide()},r.settings.pause),r.settings.onAutoChange.call(o,!0),r.settings.autoControls&&!0!==e&&F("stop"))},o.stopAuto=function(e){r.interval&&(clearInterval(r.interval),r.interval=null,r.settings.onAutoChange.call(o,!1),r.settings.autoControls&&!0!==e&&F("start"))},o.getCurrentSlide=function(){return r.active.index},o.getCurrentSlideElement=function(){return r.children.eq(r.active.index)},o.getSlideElement=function(e){return r.children.eq(e)},o.getSlideCount=function(){return r.children.length},o.isWorking=function(){return r.working},o.redrawSlider=function(){r.children.add(o.find(".bx-clone")).outerWidth(p()),r.viewport.css("height",h()),r.settings.ticker||y(),r.active.last&&(r.active.index=v()-1),r.active.index>=v()&&(r.active.last=!0),r.settings.pager&&!r.settings.pagerCustom&&(b(),A(r.active.index)),r.settings.ariaHidden&&W(r.active.index*m())},o.destroySlider=function(){r.initialized&&(r.initialized=!1,e(".bx-clone",this).remove(),r.children.each(function(){void 0!==e(this).data("origStyle")?e(this).attr("style",e(this).data("origStyle")):e(this).removeAttr("style")}),void 0!==e(this).data("origStyle")?this.attr("style",e(this).data("origStyle")):e(this).removeAttr("style"),e(this).unwrap().unwrap(),r.controls.el&&r.controls.el.remove(),r.controls.next&&r.controls.next.remove(),r.controls.prev&&r.controls.prev.remove(),r.pagerEl&&r.settings.controls&&!r.settings.pagerCustom&&r.pagerEl.remove(),e(".bx-caption",this).remove(),r.controls.autoEl&&r.controls.autoEl.remove(),clearInterval(r.interval),r.settings.responsive&&e(window).unbind("resize",U),r.settings.keyboardEnabled&&e(document).unbind("keydown",O),e(this).removeData("bxSlider"),e(window).off("blur",L).off("focus",N))},o.reloadSlider=function(t){void 0!==t&&(n=t),o.destroySlider(),l(),e(o).data("bxSlider",this)},l(),e(o).data("bxSlider",this),this}}}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.Vimeo=e.Vimeo||{},e.Vimeo.Player=t())}(this,function(){"use strict";var e="undefined"!=typeof global&&"[object global]"==={}.toString.call(global);function t(e,t){return 0===e.indexOf(t.toLowerCase())?e:""+t.toLowerCase()+e.substr(0,1).toUpperCase()+e.substr(1)}function n(e){return/^(https?:)?\/\/((player|www).)?vimeo.com(?=$|\/)/.test(e)}function i(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.id,r=t.url,o=i||r;if(!o)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(e=o,!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e)return"https://vimeo.com/"+o;if(n(o))return o.replace("http:","https:");if(i)throw new TypeError("“"+i+"” is not a valid video id.");throw new TypeError("“"+o+"” is not a vimeo.com url.")}var r=void 0!==Array.prototype.indexOf,o="undefined"!=typeof window&&void 0!==window.postMessage;if(!(e||r&&o))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var s="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e,t){return e(t={exports:{}},t.exports),t.exports}a(function(e,t){!function(e){var t,n=Object.defineProperty,i=function(e,t){return e===t||e!=e&&t!=t};function r(e,t){function i(e){if(!this||this.constructor!==i)return new i(e);this._keys=[],this._values=[],this._itp=[],this.objectOnly=t,e&&function(e){this.add?e.forEach(this.add,this):e.forEach(function(e){this.set(e[0],e[1])},this)}.call(this,e)}return t||n(e,"size",{get:g}),e.constructor=i,i.prototype=e,i}function o(e){return this.has(e)&&(this._keys.splice(t,1),this._values.splice(t,1),this._itp.forEach(function(e){t<e[0]&&e[0]--})),-1<t}function s(e){return this.has(e)?this._values[t]:void 0}function a(e,n){if(this.objectOnly&&n!==Object(n))throw new TypeError("Invalid value used as weak collection key");if(n!=n||0===n)for(t=e.length;t--&&!i(e[t],n););else t=e.indexOf(n);return-1<t}function l(e){return a.call(this,this._values,e)}function c(e){return a.call(this,this._keys,e)}function u(e,n){return this.has(e)?this._values[t]=n:this._values[this._keys.push(e)-1]=n,this}function d(e){return this.has(e)||this._values.push(e),this}function h(){(this._keys||0).length=this._values.length=0}function f(){return p(this._itp,this._values)}function p(e,t,n){var i=[0],r=!1;return e.push(i),{next:function(){var o,s=i[0];return!r&&s<t.length?(o=n?[t[s],n[s]]:t[s],i[0]++):(r=!0,e.splice(e.indexOf(i),1)),{done:r,value:o}}}}function g(){return this._values.length}function v(e,t){for(var n=this.entries();;){var i=n.next();if(i.done)break;e.call(t,i.value[1],i.value[0],this)}}"undefined"==typeof WeakMap&&(e.WeakMap=r({delete:o,clear:h,get:s,has:c,set:u},!0)),"undefined"!=typeof Map&&"function"==typeof(new Map).values&&(new Map).values().next||(e.Map=r({delete:o,has:c,get:s,set:u,keys:function(){return p(this._itp,this._keys)},values:f,entries:function(){return p(this._itp,this._keys,this._values)},forEach:v,clear:h})),"undefined"!=typeof Set&&"function"==typeof(new Set).values&&(new Set).values().next||(e.Set=r({has:l,add:d,delete:o,clear:h,keys:f,values:f,entries:function(){return p(this._itp,this._values,this._values)},forEach:v})),"undefined"==typeof WeakSet&&(e.WeakSet=r({delete:o,add:d,clear:h,has:l},!0))}(void 0!==s?s:window)});var l=a(function(e){var t,n,i,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){var e,t,n,i=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,i){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==i})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function s(e,i){n.add(e,i),t||(t=o(n.drain))}function a(e){var t,n=void 0===e?"undefined":r(e);return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function l(){for(var e=0;e<this.chain.length;e++)c(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function c(e,t,n){var i,r;try{!1===t?n.reject(e.msg):(i=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(r=a(i))?r.call(i,n.resolve,n.reject):n.resolve(i)}catch(e){n.reject(e)}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&s(l,t))}function d(e,t,n,i){for(var r=0;r<t.length;r++)!function(r){e.resolve(t[r]).then(function(e){n(r,e)},i)}(r)}function h(e){this.def=e,this.triggered=!1}function f(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new function(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}(this);this.then=function(e,n){var i={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return i.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");i.resolve=e,i.reject=t}),t.chain.push(i),0!==t.state&&s(l,t),i.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){(function e(t){var n,i=this;if(!i.triggered){i.triggered=!0,i.def&&(i=i.def);try{(n=a(t))?s(function(){var r=new h(i);try{n.call(t,function(){e.apply(r,arguments)},function(){u.apply(r,arguments)})}catch(e){u.call(r,e)}}):(i.msg=t,i.state=1,i.chain.length>0&&s(l,i))}catch(e){u.call(new h(i),e)}}}).call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}n=function(){var e,n,i;return{add:function(t,r){i=new function(e,t){this.fn=e,this.self=t,this.next=void 0}(t,r),n?n.next=i:e=i,n=i,i=void 0},drain:function(){var i=e;for(e=n=t=void 0;i;)i.fn.call(i.self),i=i.next}}}();var p=e({},"constructor",f,!1);return f.prototype=p,e(p,"__NPO__",0,!1),e(f,"resolve",function(e){return e&&"object"==(void 0===e?"undefined":r(e))&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(f,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(f,"all",function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");var r=e.length,o=Array(r),s=0;d(t,e,function(e,t){o[e]=t,++s===r&&n(o)},i)})}),e(f,"race",function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):new t(function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");d(t,e,function(e,t){n(t)},i)})}),f},(n=s)[t="Promise"]=n[t]||i(),e.exports&&(e.exports=n[t])}),c=new WeakMap;function u(e,t,n){var i=c.get(e.element)||{};t in i||(i[t]=[]),i[t].push(n),c.set(e.element,i)}function d(e,t){return(c.get(e.element)||{})[t]||[]}function h(e,t,n){var i=c.get(e.element)||{};if(!i[t])return!0;if(!n)return i[t]=[],c.set(e.element,i),!0;var r=i[t].indexOf(n);return-1!==r&&i[t].splice(r,1),c.set(e.element,i),i[t]&&0===i[t].length}var f=["autopause","autoplay","background","byline","color","height","id","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","title","transparent","url","width"];function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f.reduce(function(t,n){var i=e.getAttribute("data-vimeo-"+n);return(i||""===i)&&(t[n]=""===i?1:i),t},t)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(i,r){if(!n(e))throw new TypeError("“"+e+"” is not a vimeo.com url.");var o="https://vimeo.com/api/oembed.json?url="+encodeURIComponent(e);for(var s in t)t.hasOwnProperty(s)&&(o+="&"+s+"="+encodeURIComponent(t[s]));var a="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;a.open("GET",o,!0),a.onload=function(){if(404!==a.status)if(403!==a.status)try{var t=JSON.parse(a.responseText);i(t)}catch(e){r(e)}else r(new Error("“"+e+"” is not embeddable."));else r(new Error("“"+e+"” was not found."))},a.onerror=function(){var e=a.status?" ("+a.status+")":"";r(new Error("There was an error fetching the embed code from Vimeo"+e+"."))},a.send()})}function v(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var i=document.createElement("div");return i.innerHTML=n,t.appendChild(i.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function m(e){return"string"==typeof e&&(e=JSON.parse(e)),e}function y(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var i={method:t};void 0!==n&&(i.value=n);var r=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));r>=8&&r<10&&(i=JSON.stringify(i)),e.element.contentWindow.postMessage(i,e.origin)}}function w(e,t){t=m(t);var n=[],i=void 0;if(t.event){if("error"===t.event)d(e,t.data.method).forEach(function(n){var i=new Error(t.data.message);i.name=t.data.name,n.reject(i),h(e,t.data.method,n)});n=d(e,"event:"+t.event),i=t.data}else if(t.method){var r=function(e,t){var n=d(e,t);if(n.length<1)return!1;var i=n.shift();return h(e,t,i),i}(e,t.method);r&&(n.push(r),i=t.value)}n.forEach(function(t){try{if("function"==typeof t)return void t.call(e,i);t.resolve(i)}catch(e){}})}var b=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var x=new WeakMap,C=new WeakMap,k=function(){function e(t){var r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!=typeof document&&"string"==typeof t&&(t=document.getElementById(t)),!function(e){return e instanceof window.HTMLElement}(t))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==t.nodeName){var s=t.querySelector("iframe");s&&(t=s)}if("IFRAME"===t.nodeName&&!n(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(x.has(t))return x.get(t);this.element=t,this.origin="*";var a=new l(function(e,s){var a=function(t){if(n(t.origin)&&r.element.contentWindow===t.source){"*"===r.origin&&(r.origin=t.origin);var i=m(t.data),o="event"in i&&"ready"===i.event,s="method"in i&&"ping"===i.method;if(o||s)return r.element.setAttribute("data-ready","true"),void e();w(r,i)}};if(window.addEventListener?window.addEventListener("message",a,!1):window.attachEvent&&window.attachEvent("onmessage",a),"IFRAME"!==r.element.nodeName){var l=p(t,o);g(i(l),l).then(function(e){var n,i,o,s=v(e,t);return r.element=s,r._originalElement=t,n=t,i=s,o=c.get(n),c.set(i,o),c.delete(n),x.set(r.element,r),e}).catch(function(e){return s(e)})}});return C.set(this,a),x.set(this.element,this),"IFRAME"===this.element.nodeName&&y(this,"ping"),this}return b(e,[{key:"callMethod",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new l(function(i,r){return t.ready().then(function(){u(t,e,{resolve:i,reject:r}),y(t,e,n)}).catch(function(e){r(e)})})}},{key:"get",value:function(e){var n=this;return new l(function(i,r){return e=t(e,"get"),n.ready().then(function(){u(n,e,{resolve:i,reject:r}),y(n,e)})})}},{key:"set",value:function(e,n){var i=this;return l.resolve(n).then(function(n){if(e=t(e,"set"),null==n)throw new TypeError("There must be a value to set.");return i.ready().then(function(){return new l(function(t,r){u(i,e,{resolve:t,reject:r}),y(i,e,n)})})})}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===d(this,"event:"+e).length&&this.callMethod("addEventListener",e).catch(function(){}),u(this,"event:"+e,t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");h(this,"event:"+e,t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=C.get(this)||new l(function(e,t){t("Unknown player. Probably unloaded.")});return l.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new l(function(t){C.delete(e),x.delete(e.element),e._originalElement&&(x.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.remove(),t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}}]),e}();return e||!window.Vimeo||window.Vimeo.Player||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: "+e)};t.forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=p(e);g(i(t),t).then(function(t){return v(t,e)}).catch(n)}catch(e){n(e)}})}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=function(t){if(n(t.origin)&&t.data&&"spacechange"===t.data.event)for(var i=e.querySelectorAll("iframe"),r=0;r<i.length;r++)if(i[r].contentWindow===t.source){i[r].parentElement.style.paddingBottom=t.data.data[0].bottom+"px";break}};window.addEventListener?window.addEventListener("message",t,!1):window.attachEvent&&window.attachEvent("onmessage",t)}()),k}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).morphdom=t()}(this,function(){"use strict";var e,t=11;var n="http://www.w3.org/1999/xhtml",i="undefined"==typeof document?void 0:document,r=!!i&&"content"in i.createElement("template"),o=!!i&&i.createRange&&"createContextualFragment"in i.createRange();function s(t){return t=t.trim(),r?function(e){var t=i.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(t):o?function(t){return e||(e=i.createRange()).selectNode(i.body),e.createContextualFragment(t).childNodes[0]}(t):function(e){var t=i.createElement("body");return t.innerHTML=e,t.childNodes[0]}(t)}function a(e,t){var n,i,r=e.nodeName,o=t.nodeName;return r===o||(n=r.charCodeAt(0),i=o.charCodeAt(0),n<=90&&i>=97?r===o.toUpperCase():i<=90&&n>=97&&o===r.toUpperCase())}function l(e,t,n){e[n]!==t[n]&&(e[n]=t[n],e[n]?e.setAttribute(n,""):e.removeAttribute(n))}var c={OPTION:function(e,t){var n=e.parentNode;if(n){var i=n.nodeName.toUpperCase();"OPTGROUP"===i&&(i=(n=n.parentNode)&&n.nodeName.toUpperCase()),"SELECT"!==i||n.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),n.selectedIndex=-1)}l(e,t,"selected")},INPUT:function(e,t){l(e,t,"checked"),l(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var n=t.value;e.value!==n&&(e.value=n);var i=e.firstChild;if(i){var r=i.nodeValue;if(r==n||!n&&r==e.placeholder)return;i.nodeValue=n}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var n,i,r=-1,o=0,s=e.firstChild;s;)if("OPTGROUP"===(i=s.nodeName&&s.nodeName.toUpperCase()))s=(n=s).firstChild;else{if("OPTION"===i){if(s.hasAttribute("selected")){r=o;break}o++}!(s=s.nextSibling)&&n&&(s=n.nextSibling,n=null)}e.selectedIndex=r}}},u=1,d=11,h=3,f=8;function p(){}function g(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}return function(e){return function(t,r,o){if(o||(o={}),"string"==typeof r)if("#document"===t.nodeName||"HTML"===t.nodeName||"BODY"===t.nodeName){var l=r;(r=i.createElement("html")).innerHTML=l}else r=s(r);var v=o.getNodeKey||g,m=o.onBeforeNodeAdded||p,y=o.onNodeAdded||p,w=o.onBeforeElUpdated||p,b=o.onElUpdated||p,x=o.onBeforeNodeDiscarded||p,C=o.onNodeDiscarded||p,k=o.onBeforeElChildrenUpdated||p,S=!0===o.childrenOnly,E=Object.create(null),T=[];function $(e){T.push(e)}function _(e,t,n){!1!==x(e)&&(t&&t.removeChild(e),C(e),function e(t,n){if(t.nodeType===u)for(var i=t.firstChild;i;){var r=void 0;n&&(r=v(i))?$(r):(C(i),i.firstChild&&e(i,n)),i=i.nextSibling}}(e,n))}function D(e){y(e);for(var t=e.firstChild;t;){var n=t.nextSibling,i=v(t);if(i){var r=E[i];r&&a(t,r)?(t.parentNode.replaceChild(r,t),A(r,t)):D(t)}else D(t);t=n}}function A(t,n,r){var o=v(n);if(o&&delete E[o],!r){if(!1===w(t,n))return;if(e(t,n),b(t),!1===k(t,n))return}"TEXTAREA"!==t.nodeName?function(e,t){var n,r,o,s,l,d=t.firstChild,p=e.firstChild;e:for(;d;){for(s=d.nextSibling,n=v(d);p;){if(o=p.nextSibling,d.isSameNode&&d.isSameNode(p)){d=s,p=o;continue e}r=v(p);var g=p.nodeType,y=void 0;if(g===d.nodeType&&(g===u?(n?n!==r&&((l=E[n])?o===l?y=!1:(e.insertBefore(l,p),r?$(r):_(p,e,!0),p=l):y=!1):r&&(y=!1),(y=!1!==y&&a(p,d))&&A(p,d)):g!==h&&g!=f||(y=!0,p.nodeValue!==d.nodeValue&&(p.nodeValue=d.nodeValue))),y){d=s,p=o;continue e}r?$(r):_(p,e,!0),p=o}if(n&&(l=E[n])&&a(l,d))e.appendChild(l),A(l,d);else{var w=m(d);!1!==w&&(w&&(d=w),d.actualize&&(d=d.actualize(e.ownerDocument||i)),e.appendChild(d),D(d))}d=s,p=o}!function(e,t,n){for(;t;){var i=t.nextSibling;(n=v(t))?$(n):_(t,e,!0),t=i}}(e,p,r);var b=c[e.nodeName];b&&b(e,t)}(t,n):c.TEXTAREA(t,n)}!function e(t){if(t.nodeType===u||t.nodeType===d)for(var n=t.firstChild;n;){var i=v(n);i&&(E[i]=n),e(n),n=n.nextSibling}}(t);var P,F,I=t,N=I.nodeType,L=r.nodeType;if(!S)if(N===u)L===u?a(t,r)||(C(t),I=function(e,t){for(var n=e.firstChild;n;){var i=n.nextSibling;t.appendChild(n),n=i}return t}(t,(P=r.nodeName,(F=r.namespaceURI)&&F!==n?i.createElementNS(F,P):i.createElement(P)))):I=r;else if(N===h||N===f){if(L===N)return I.nodeValue!==r.nodeValue&&(I.nodeValue=r.nodeValue),I;I=r}if(I===r)C(t);else{if(r.isSameNode&&r.isSameNode(I))return;if(A(I,r,S),T)for(var R=0,M=T.length;R<M;R++){var j=E[T[R]];j&&_(j,j.parentNode,!1)}}return!S&&I!==t&&t.parentNode&&(I.actualize&&(I=I.actualize(t.ownerDocument||i)),t.parentNode.replaceChild(I,t)),I}}(function(e,n){var i,r,o,s,a=n.attributes;if(n.nodeType!==t&&e.nodeType!==t){for(var l=a.length-1;l>=0;l--)r=(i=a[l]).name,o=i.namespaceURI,s=i.value,o?(r=i.localName||r,e.getAttributeNS(o,r)!==s&&("xmlns"===i.prefix&&(r=i.name),e.setAttributeNS(o,r,s))):e.getAttribute(r)!==s&&e.setAttribute(r,s);for(var c=e.attributes,u=c.length-1;u>=0;u--)r=(i=c[u]).name,(o=i.namespaceURI)?(r=i.localName||r,n.hasAttributeNS(o,r)||e.removeAttributeNS(o,r)):n.hasAttribute(r)||e.removeAttribute(r)}})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(e.jQuery)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={autoShow:!1,autoHide:!1,autoPick:!1,inline:!1,container:null,trigger:null,language:"",format:"mm/dd/yyyy",date:null,startDate:null,endDate:null,startView:0,weekStart:0,yearFirst:!1,yearSuffix:"",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],itemTag:"li",mutedClass:"muted",pickedClass:"picked",disabledClass:"disabled",highlightedClass:"highlighted",template:'<div class="datepicker-container"><div class="datepicker-panel" data-view="years picker"><ul><li data-view="years prev">&lsaquo;</li><li data-view="years current"></li><li data-view="years next">&rsaquo;</li></ul><ul data-view="years"></ul></div><div class="datepicker-panel" data-view="months picker"><ul><li data-view="year prev">&lsaquo;</li><li data-view="year current"></li><li data-view="year next">&rsaquo;</li></ul><ul data-view="months"></ul></div><div class="datepicker-panel" data-view="days picker"><ul><li data-view="month prev">&lsaquo;</li><li data-view="month current"></li><li data-view="month next">&rsaquo;</li></ul><ul data-view="week"></ul><ul data-view="days"></ul></div></div>',offset:10,zIndex:1e3,filter:null,show:null,hide:null,pick:null},n="undefined"!=typeof window?window:{},i="datepicker",r="click.datepicker",o="datepicker-hide",s={},a=0,l=1,c=2,u=Object.prototype.toString;function d(e){return"string"==typeof e}var h=Number.isNaN||n.isNaN;function f(e){return"number"==typeof e&&!h(e)}function p(e){return void 0===e}function g(e){return"date"===(t=e,u.call(t).slice(8,-1).toLowerCase());var t}function v(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.apply(t,i.concat(r))}}function m(e){return'[data-view="'+e+'"]'}function y(e,t){return[31,function(e){return e%4==0&&e%100!=0||e%400==0}(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]}function w(e,t,n){return Math.min(n,y(e,t))}var b=/(y|m|d)+/g;var x=/\d+/g,C={show:function(){this.built||this.build(),this.shown||this.trigger("show.datepicker").isDefaultPrevented()||(this.shown=!0,this.$picker.removeClass(o).on(r,e.proxy(this.click,this)),this.showView(this.options.startView),this.inline||(e(window).on("resize.datepicker",this.onResize=v(this.place,this)),e(document).on(r,this.onGlobalClick=v(this.globalClick,this)),e(document).on("keyup.datepicker",this.onGlobalKeyup=v(this.globalKeyup,this)),this.place()))},hide:function(){this.shown&&(this.trigger("hide.datepicker").isDefaultPrevented()||(this.shown=!1,this.$picker.addClass(o).off(r,this.click),this.inline||(e(window).off("resize.datepicker",this.onResize),e(document).off(r,this.onGlobalClick),e(document).off("keyup.datepicker",this.onGlobalKeyup))))},toggle:function(){this.shown?this.hide():this.show()},update:function(){var e=this.getValue();e!==this.oldValue&&(this.setDate(e,!0),this.oldValue=e)},pick:function(e){var t=this.$element,n=this.date;this.trigger("pick.datepicker",{view:e||"",date:n}).isDefaultPrevented()||(n=this.formatDate(this.date),this.setValue(n),this.isInput&&(t.trigger("input"),t.trigger("change")))},reset:function(){this.setDate(this.initialDate,!0),this.setValue(this.initialValue),this.shown&&this.showView(this.options.startView)},getMonthName:function(t,n){var i=this.options,r=i.monthsShort,o=i.months;return e.isNumeric(t)?t=Number(t):p(n)&&(n=t),!0===n&&(o=r),o[f(t)?t:this.date.getMonth()]},getDayName:function(t,n,i){var r=this.options,o=r.days;return e.isNumeric(t)?t=Number(t):(p(i)&&(i=n),p(n)&&(n=t)),i?o=r.daysMin:n&&(o=r.daysShort),o[f(t)?t:this.date.getDay()]},getDate:function(e){var t=this.date;return e?this.formatDate(t):new Date(t)},setDate:function(t,n){var i=this.options.filter;if(g(t)||d(t)){if(t=this.parseDate(t),e.isFunction(i)&&!1===i.call(this.$element,t,"day"))return;this.date=t,this.viewDate=new Date(t),n||this.pick(),this.built&&this.render()}},setStartDate:function(e){g(e)||d(e)?this.startDate=this.parseDate(e):this.startDate=null,this.built&&this.render()},setEndDate:function(e){g(e)||d(e)?this.endDate=this.parseDate(e):this.endDate=null,this.built&&this.render()},parseDate:function(t){var n=this.format,i=[];if(g(t))return new Date(t.getFullYear(),t.getMonth(),t.getDate());d(t)&&(i=t.match(x)||[]),t=new Date;var r=n.parts.length,o=t.getFullYear(),s=t.getDate(),a=t.getMonth();return i.length===r&&e.each(i,function(e,t){var i=parseInt(t,10);switch(n.parts[e]){case"dd":case"d":s=i;break;case"mm":case"m":a=i-1;break;case"yy":o=2e3+i;break;case"yyyy":o=i}}),new Date(o,a,s)},formatDate:function(t){var n=this.format,i="";if(g(t)){var r=t.getFullYear(),o={d:t.getDate(),m:t.getMonth()+1,yy:r.toString().substring(2),yyyy:r};o.dd=(o.d<10?"0":"")+o.d,o.mm=(o.m<10?"0":"")+o.m,i=n.source,e.each(n.parts,function(e,t){i=i.replace(t,o[t])})}return i},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(i)}},k={click:function(t){var n=e(t.target),i=this.options,r=this.viewDate,o=this.format;if(t.stopPropagation(),t.preventDefault(),!n.hasClass("disabled")){var s=n.data("view"),u=r.getFullYear(),d=r.getMonth(),h=r.getDate();switch(s){case"years prev":case"years next":u="years prev"===s?u-10:u+10,this.viewDate=new Date(u,d,w(u,d,h)),this.renderYears();break;case"year prev":case"year next":u="year prev"===s?u-1:u+1,this.viewDate=new Date(u,d,w(u,d,h)),this.renderMonths();break;case"year current":o.hasYear&&this.showView(c);break;case"year picked":o.hasMonth?this.showView(l):(n.addClass(i.pickedClass).siblings().removeClass(i.pickedClass),this.hideView()),this.pick("year");break;case"year":u=parseInt(n.text(),10),this.date=new Date(u,d,w(u,d,h)),o.hasMonth?(this.viewDate=new Date(this.date),this.showView(l)):(n.addClass(i.pickedClass).siblings().removeClass(i.pickedClass),this.renderYears(),this.hideView()),this.pick("year");break;case"month prev":case"month next":(d="month prev"===s?d-1:d+1)<0?(u-=1,d+=12):d>11&&(u+=1,d-=12),this.viewDate=new Date(u,d,w(u,d,h)),this.renderDays();break;case"month current":o.hasMonth&&this.showView(l);break;case"month picked":o.hasDay?this.showView(a):(n.addClass(i.pickedClass).siblings().removeClass(i.pickedClass),this.hideView()),this.pick("month");break;case"month":d=e.inArray(n.text(),i.monthsShort),this.date=new Date(u,d,w(u,d,h)),o.hasDay?(this.viewDate=new Date(u,d,w(u,d,h)),this.showView(a)):(n.addClass(i.pickedClass).siblings().removeClass(i.pickedClass),this.renderMonths(),this.hideView()),this.pick("month");break;case"day prev":case"day next":case"day":"day prev"===s?d-=1:"day next"===s&&(d+=1),h=parseInt(n.text(),10),this.date=new Date(u,d,h),this.viewDate=new Date(u,d,h),this.renderDays(),"day"===s&&this.hideView(),this.pick("day");break;case"day picked":this.hideView(),this.pick("day")}}},globalClick:function(e){for(var t=e.target,n=this.element,i=this.$trigger[0],r=!0;t!==document;){if(t===i||t===n){r=!1;break}t=t.parentNode}r&&this.hide()},keyup:function(){this.update()},globalKeyup:function(e){var t=e.target,n=e.key,i=e.keyCode;this.isInput&&t!==this.element&&this.shown&&("Tab"===n||9===i)&&this.hide()}},S={render:function(){this.renderYears(),this.renderMonths(),this.renderDays()},renderWeek:function(){var t=this,n=[],i=this.options,r=i.weekStart,o=i.daysMin;r=parseInt(r,10)%7,o=o.slice(r).concat(o.slice(0,r)),e.each(o,function(e,i){n.push(t.createItem({text:i}))}),this.$week.html(n.join(""))},renderYears:function(){var e=this.options,t=this.startDate,n=this.endDate,i=e.disabledClass,r=e.filter,o=e.yearSuffix,s=this.viewDate.getFullYear(),a=(new Date).getFullYear(),l=this.date.getFullYear(),c=[],u=!1,d=!1,h=void 0;for(h=-5;h<=6;h+=1){var f=new Date(s+h,1,1),p=!1;t&&(p=f.getFullYear()<t.getFullYear(),-5===h&&(u=p)),!p&&n&&(p=f.getFullYear()>n.getFullYear(),6===h&&(d=p)),!p&&r&&(p=!1===r.call(this.$element,f,"year"));var g=s+h===l,v=g?"year picked":"year";c.push(this.createItem({picked:g,disabled:p,text:s+h,view:p?"year disabled":v,highlighted:f.getFullYear()===a}))}this.$yearsPrev.toggleClass(i,u),this.$yearsNext.toggleClass(i,d),this.$yearsCurrent.toggleClass(i,!0).html(s+-5+o+" - "+(s+6)+o),this.$years.html(c.join(""))},renderMonths:function(){var t=this.options,n=this.startDate,i=this.endDate,r=this.viewDate,o=t.disabledClass||"",s=t.monthsShort,a=e.isFunction(t.filter)&&t.filter,l=r.getFullYear(),c=new Date,u=c.getFullYear(),d=c.getMonth(),h=this.date.getFullYear(),f=this.date.getMonth(),p=[],g=!1,v=!1,m=void 0;for(m=0;m<=11;m+=1){var y=new Date(l,m,1),w=!1;n&&(w=(g=y.getFullYear()===n.getFullYear())&&y.getMonth()<n.getMonth()),!w&&i&&(w=(v=y.getFullYear()===i.getFullYear())&&y.getMonth()>i.getMonth()),!w&&a&&(w=!1===a.call(this.$element,y,"month"));var b=l===h&&m===f,x=b?"month picked":"month";p.push(this.createItem({disabled:w,picked:b,highlighted:l===u&&y.getMonth()===d,index:m,text:s[m],view:w?"month disabled":x}))}this.$yearPrev.toggleClass(o,g),this.$yearNext.toggleClass(o,v),this.$yearCurrent.toggleClass(o,g&&v).html(l+t.yearSuffix||""),this.$months.html(p.join(""))},renderDays:function(){var e=this.$element,t=this.options,n=this.startDate,i=this.endDate,r=this.viewDate,o=this.date,s=t.disabledClass,a=t.filter,l=t.months,c=t.weekStart,u=t.yearSuffix,d=r.getFullYear(),h=r.getMonth(),f=new Date,p=f.getFullYear(),g=f.getMonth(),v=f.getDate(),m=o.getFullYear(),w=o.getMonth(),b=o.getDate(),x=void 0,C=void 0,k=void 0,S=[],E=d,T=h,$=!1;0===h?(E-=1,T=11):T-=1,x=y(E,T);var _=new Date(d,h,1);for((k=_.getDay()-parseInt(c,10)%7)<=0&&(k+=7),n&&($=_.getTime()<=n.getTime()),C=x-(k-1);C<=x;C+=1){var D=new Date(E,T,C),A=!1;n&&(A=D.getTime()<n.getTime()),!A&&a&&(A=!1===a.call(e,D,"day")),S.push(this.createItem({disabled:A,highlighted:E===p&&T===g&&D.getDate()===v,muted:!0,picked:E===m&&T===w&&C===b,text:C,view:"day prev"}))}var P=[],F=d,I=h,N=!1;11===h?(F+=1,I=0):I+=1,x=y(d,h),k=42-(S.length+x);var L=new Date(d,h,x);for(i&&(N=L.getTime()>=i.getTime()),C=1;C<=k;C+=1){var R=new Date(F,I,C),M=F===m&&I===w&&C===b,j=!1;i&&(j=R.getTime()>i.getTime()),!j&&a&&(j=!1===a.call(e,R,"day")),P.push(this.createItem({disabled:j,picked:M,highlighted:F===p&&I===g&&R.getDate()===v,muted:!0,text:C,view:"day next"}))}var O=[];for(C=1;C<=x;C+=1){var H=new Date(d,h,C),q=!1;n&&(q=H.getTime()<n.getTime()),!q&&i&&(q=H.getTime()>i.getTime()),!q&&a&&(q=!1===a.call(e,H,"day"));var z=d===m&&h===w&&C===b,V=z?"day picked":"day";O.push(this.createItem({disabled:q,picked:z,highlighted:d===p&&h===g&&H.getDate()===v,text:C,view:q?"day disabled":V}))}this.$monthPrev.toggleClass(s,$),this.$monthNext.toggleClass(s,N),this.$monthCurrent.toggleClass(s,$&&N).html(t.yearFirst?d+u+" "+l[h]:l[h]+" "+d+u),this.$days.html(S.join("")+O.join("")+P.join(""))}},E=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var T="datepicker-top-left",$="datepicker-bottom-left",_=[T,"datepicker-top-right",$,"datepicker-bottom-right"].join(" "),D=function(){function n(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.$element=e(i),this.element=i,this.options=e.extend({},t,s[r.language],e.isPlainObject(r)&&r),this.built=!1,this.shown=!1,this.isInput=!1,this.inline=!1,this.initialValue="",this.initialDate=null,this.startDate=null,this.endDate=null,this.init()}return E(n,[{key:"init",value:function(){var t=this.$element,n=this.options,i=n.startDate,r=n.endDate,o=n.date;this.$trigger=e(n.trigger),this.isInput=t.is("input")||t.is("textarea"),this.inline=n.inline&&(n.container||!this.isInput),this.format=function(t){var n=String(t).toLowerCase(),i=n.match(b);if(!i||0===i.length)throw new Error("Invalid date format.");return t={source:n,parts:i},e.each(i,function(e,n){switch(n){case"dd":case"d":t.hasDay=!0;break;case"mm":case"m":t.hasMonth=!0;break;case"yyyy":case"yy":t.hasYear=!0}}),t}(n.format);var s=this.getValue();this.initialValue=s,this.oldValue=s,o=this.parseDate(o||s),i&&(i=this.parseDate(i),o.getTime()<i.getTime()&&(o=new Date(i)),this.startDate=i),r&&(r=this.parseDate(r),i&&r.getTime()<i.getTime()&&(r=new Date(i)),o.getTime()>r.getTime()&&(o=new Date(r)),this.endDate=r),this.date=o,this.viewDate=new Date(o),this.initialDate=new Date(this.date),this.bind(),(n.autoShow||this.inline)&&this.show(),n.autoPick&&this.pick()}},{key:"build",value:function(){if(!this.built){this.built=!0;var t=this.$element,n=this.options,i=e(n.template);this.$picker=i,this.$week=i.find(m("week")),this.$yearsPicker=i.find(m("years picker")),this.$yearsPrev=i.find(m("years prev")),this.$yearsNext=i.find(m("years next")),this.$yearsCurrent=i.find(m("years current")),this.$years=i.find(m("years")),this.$monthsPicker=i.find(m("months picker")),this.$yearPrev=i.find(m("year prev")),this.$yearNext=i.find(m("year next")),this.$yearCurrent=i.find(m("year current")),this.$months=i.find(m("months")),this.$daysPicker=i.find(m("days picker")),this.$monthPrev=i.find(m("month prev")),this.$monthNext=i.find(m("month next")),this.$monthCurrent=i.find(m("month current")),this.$days=i.find(m("days")),this.inline?e(n.container||t).append(i.addClass("datepicker-inline")):(e(document.body).append(i.addClass("datepicker-dropdown")),i.addClass(o)),this.renderWeek()}}},{key:"unbuild",value:function(){this.built&&(this.built=!1,this.$picker.remove())}},{key:"bind",value:function(){var t=this.options,n=this.$element;e.isFunction(t.show)&&n.on("show.datepicker",t.show),e.isFunction(t.hide)&&n.on("hide.datepicker",t.hide),e.isFunction(t.pick)&&n.on("pick.datepicker",t.pick),this.isInput&&n.on("keyup.datepicker",e.proxy(this.keyup,this)),this.inline||(t.trigger?this.$trigger.on(r,e.proxy(this.toggle,this)):this.isInput?n.on("focus.datepicker",e.proxy(this.show,this)):n.on(r,e.proxy(this.show,this)))}},{key:"unbind",value:function(){var t=this.$element,n=this.options;e.isFunction(n.show)&&t.off("show.datepicker",n.show),e.isFunction(n.hide)&&t.off("hide.datepicker",n.hide),e.isFunction(n.pick)&&t.off("pick.datepicker",n.pick),this.isInput&&t.off("keyup.datepicker",this.keyup),this.inline||(n.trigger?this.$trigger.off(r,this.toggle):this.isInput?t.off("focus.datepicker",this.show):t.off(r,this.show))}},{key:"showView",value:function(e){var t=this.$yearsPicker,n=this.$monthsPicker,i=this.$daysPicker,r=this.format;if(r.hasYear||r.hasMonth||r.hasDay)switch(Number(e)){case c:n.addClass(o),i.addClass(o),r.hasYear?(this.renderYears(),t.removeClass(o),this.place()):this.showView(a);break;case l:t.addClass(o),i.addClass(o),r.hasMonth?(this.renderMonths(),n.removeClass(o),this.place()):this.showView(c);break;default:t.addClass(o),n.addClass(o),r.hasDay?(this.renderDays(),i.removeClass(o),this.place()):this.showView(l)}}},{key:"hideView",value:function(){!this.inline&&this.options.autoHide&&this.hide()}},{key:"place",value:function(){if(!this.inline){var t=this.$element,n=this.options,i=this.$picker,r=e(document).outerWidth(),o=e(document).outerHeight(),s=t.outerWidth(),a=t.outerHeight(),l=i.width(),c=i.height(),u=t.offset(),d=u.left,f=u.top,p=parseFloat(n.offset),g=T;h(p)&&(p=10),f>c&&f+a+c>o?(f-=c+p,g=$):f+=a+p,d+l>r&&(d+=s-l,g=g.replace("left","right")),i.removeClass(_).addClass(g).css({top:f,left:d,zIndex:parseInt(n.zIndex,10)})}}},{key:"trigger",value:function(t,n){var i=e.Event(t,n);return this.$element.trigger(i),i}},{key:"createItem",value:function(t){var n=this.options,i=n.itemTag,r={text:"",view:"",muted:!1,picked:!1,disabled:!1,highlighted:!1},o=[];return e.extend(r,t),r.muted&&o.push(n.mutedClass),r.highlighted&&o.push(n.highlightedClass),r.picked&&o.push(n.pickedClass),r.disabled&&o.push(n.disabledClass),"<"+i+' class="'+o.join(" ")+'" data-view="'+r.view+'">'+r.text+"</"+i+">"}},{key:"getValue",value:function(){var e=this.$element;return this.isInput?e.val():e.text()}},{key:"setValue",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.$element;this.isInput?t.val(e):t.text(e)}}],[{key:"setDefaults",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.extend(t,s[n.language],e.isPlainObject(n)&&n)}}]),n}();if(e.extend&&e.extend(D.prototype,S,k,C),e.fn){var A=e.fn.datepicker;e.fn.datepicker=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var s=void 0;return this.each(function(n,o){var a=e(o),l="destroy"===t,c=a.data(i);if(!c){if(l)return;var u=e.extend({},a.data(),e.isPlainObject(t)&&t);c=new D(o,u),a.data(i,c)}if(d(t)){var h=c[t];e.isFunction(h)&&(s=h.apply(c,r),l&&a.removeData(i))}}),p(s)?this:s},e.fn.datepicker.Constructor=D,e.fn.datepicker.languages=s,e.fn.datepicker.setDefaults=D.setDefaults,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=A,this}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Viewer=t()}(this,function(){"use strict";function e(t){"@babel/helpers - typeof";return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var o={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,zoom:null,zoomed:null},s="undefined"!=typeof window&&void 0!==window.document,a=s?window:{},l=!(!s||!a.document.documentElement)&&"ontouchstart"in a.document.documentElement,c=!!s&&"PointerEvent"in a,u="".concat("viewer","-active"),d="".concat("viewer","-close"),h="".concat("viewer","-fade"),f="".concat("viewer","-fixed"),p="".concat("viewer","-fullscreen"),g="".concat("viewer","-fullscreen-exit"),v="".concat("viewer","-hide"),m="".concat("viewer","-hide-md-down"),y="".concat("viewer","-hide-sm-down"),w="".concat("viewer","-hide-xs-down"),b="".concat("viewer","-in"),x="".concat("viewer","-invisible"),C="".concat("viewer","-loading"),k="".concat("viewer","-move"),S="".concat("viewer","-open"),E="".concat("viewer","-show"),T="".concat("viewer","-transition"),$=c?"pointerdown":l?"touchstart":"mousedown",_=c?"pointermove":l?"touchmove":"mousemove",D=c?"pointerup pointercancel":l?"touchend touchcancel":"mouseup",A="".concat("viewer","Action"),P=/\s\s*/,F=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function I(e){return"string"==typeof e}var N=Number.isNaN||a.isNaN;function L(e){return"number"==typeof e&&!N(e)}function R(e){return void 0===e}function M(t){return"object"===e(t)&&null!==t}var j=Object.prototype.hasOwnProperty;function O(e){if(!M(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&j.call(n,"isPrototypeOf")}catch(e){return!1}}function H(e){return"function"==typeof e}function q(e,t){if(e&&H(t))if(Array.isArray(e)||L(e.length)){var n,i=e.length;for(n=0;n<i&&!1!==t.call(e,e[n],n,e);n+=1);}else M(e)&&Object.keys(e).forEach(function(n){t.call(e,e[n],n,e)});return e}var z=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return M(e)&&n.length>0&&n.forEach(function(t){M(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},V=/^(?:width|height|left|top|marginLeft|marginTop)$/;function B(e,t){var n=e.style;q(t,function(e,t){V.test(t)&&L(e)&&(e+="px"),n[t]=e})}function U(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)}function W(e,t){if(e&&t)if(L(e.length))q(e,function(e){W(e,t)});else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function G(e,t){e&&t&&(L(e.length)?q(e,function(e){G(e,t)}):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function Q(e,t,n){t&&(L(e.length)?q(e,function(e){Q(e,t,n)}):n?W(e,t):G(e,t))}var Y=/([a-z\d])([A-Z])/g;function X(e){return e.replace(Y,"$1-$2").toLowerCase()}function K(e,t){return M(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat(X(t)))}function J(e,t,n){M(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat(X(t)),n)}var Z=function(){var e=!1;if(s){var t=!1,n=function(){},i=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});a.addEventListener("test",n,i),a.removeEventListener("test",n,i)}return e}();function ee(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;t.trim().split(P).forEach(function(t){if(!Z){var o=e.listeners;o&&o[t]&&o[t][n]&&(r=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,r,i)})}function te(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n;t.trim().split(P).forEach(function(t){if(i.once&&!Z){var o=e.listeners,s=void 0===o?{}:o;r=function(){delete s[t][n],e.removeEventListener(t,r,i);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];n.apply(e,a)},s[t]||(s[t]={}),s[t][n]&&e.removeEventListener(t,s[t][n],i),s[t][n]=r,e.listeners=s}e.addEventListener(t,r,i)})}function ne(e,t,n){var i;return H(Event)&&H(CustomEvent)?i=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(i=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}function ie(e){var t=e.rotate,n=e.scaleX,i=e.scaleY,r=e.translateX,o=e.translateY,s=[];L(r)&&0!==r&&s.push("translateX(".concat(r,"px)")),L(o)&&0!==o&&s.push("translateY(".concat(o,"px)")),L(t)&&0!==t&&s.push("rotate(".concat(t,"deg)")),L(n)&&1!==n&&s.push("scaleX(".concat(n,")")),L(i)&&1!==i&&s.push("scaleY(".concat(i,")"));var a=s.length?s.join(" "):"none";return{WebkitTransform:a,msTransform:a,transform:a}}var re=a.navigator&&/(Macintosh|iPhone|iPod|iPad).*AppleWebKit/i.test(a.navigator.userAgent);function oe(e,t,n){var i=document.createElement("img");if(e.naturalWidth&&!re)return n(e.naturalWidth,e.naturalHeight),i;var r=document.body||document.documentElement;return i.onload=function(){n(i.width,i.height),re||r.removeChild(i)},q(t.inheritedAttributes,function(t){var n=e.getAttribute(t);null!==n&&i.setAttribute(t,n)}),i.src=e.src,re||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",r.appendChild(i)),i}function se(e){switch(e){case 2:return w;case 3:return y;case 4:return m;default:return""}}function ae(e,t){var n=e.pageX,i=e.pageY,o={endX:n,endY:i};return t?o:r({timeStamp:Date.now(),startX:n,startY:i},o)}var le={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,t=e.body||e.documentElement;this.body=t,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=t.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(t).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=z({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&B(this.viewer,this.viewerData)},initList:function(){var e=this,t=this.element,n=this.options,i=this.list,r=[];i.innerHTML="",q(this.images,function(t,o){var s=t.src,a=t.alt||function(e){return I(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}(s),l=e.getImageURL(t);if(s||l){var c=document.createElement("li"),u=document.createElement("img");q(n.inheritedAttributes,function(e){var n=t.getAttribute(e);null!==n&&u.setAttribute(e,n)}),u.src=s||l,u.alt=a,u.setAttribute("data-index",o),u.setAttribute("data-original-url",l||s),u.setAttribute("data-viewer-action","view"),u.setAttribute("role","button"),c.appendChild(u),i.appendChild(c),r.push(c)}}),this.items=r,q(r,function(t){var i=t.firstElementChild;J(i,"filled",!0),n.loading&&W(t,C),te(i,"load",function(i){n.loading&&G(t,C),e.loadImage(i)},{once:!0})}),n.transition&&te(t,"viewed",function(){W(i,T)},{once:!0})},renderList:function(e){var t=e||this.index,n=this.items[t].offsetWidth||30,i=n+1;B(this.list,z({width:i*this.length},ie({translateX:(this.viewerData.width-n)/2-i*t})))},resetList:function(){var e=this.list;e.innerHTML="",G(e,T),B(e,ie({translateX:0}))},initImage:function(e){var t,n=this,i=this.options,r=this.image,o=this.viewerData,s=this.footer.offsetHeight,a=o.width,l=Math.max(o.height-s,s),c=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=oe(r,i,function(t,r){var o=t/r,s=a,u=l;n.imageInitializing=!1,l*o>a?u=a/o:s=l*o;var d={naturalWidth:t,naturalHeight:r,aspectRatio:o,ratio:(s=Math.min(.9*s,t))/t,width:s,height:u=Math.min(.9*u,r),left:(a-s)/2,top:(l-u)/2},h=z({},d);i.rotatable&&(d.rotate=c.rotate||0,h.rotate=0),i.scalable&&(d.scaleX=c.scaleX||1,d.scaleY=c.scaleY||1,h.scaleX=1,h.scaleY=1),n.imageData=d,n.initialImageData=h,e&&e()})},renderImage:function(e){var t=this,n=this.image,i=this.imageData;if(B(n,z({width:i.width,height:i.height,marginLeft:i.left,marginTop:i.top},ie(i))),e)if((this.viewing||this.zooming)&&this.options.transition){var r=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){ee(n,"transitionend",r)}},te(n,"transitionend",r,{once:!0})}else e()},resetImage:function(){if(this.viewing||this.viewed){var e=this.image;this.viewing&&this.viewing.abort(),e.parentNode.removeChild(e),this.image=null}}},ce={bind:function(){var e=this.options,t=this.viewer,n=this.canvas,i=this.element.ownerDocument;te(t,"click",this.onClick=this.click.bind(this)),te(t,"dragstart",this.onDragStart=this.dragstart.bind(this)),te(n,$,this.onPointerDown=this.pointerdown.bind(this)),te(i,_,this.onPointerMove=this.pointermove.bind(this)),te(i,D,this.onPointerUp=this.pointerup.bind(this)),te(i,"keydown",this.onKeyDown=this.keydown.bind(this)),te(window,"resize",this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&te(t,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&te(n,"dblclick",this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,n=this.canvas,i=this.element.ownerDocument;ee(t,"click",this.onClick),ee(t,"dragstart",this.onDragStart),ee(n,$,this.onPointerDown),ee(i,_,this.onPointerMove),ee(i,D,this.onPointerUp),ee(i,"keydown",this.onKeyDown),ee(window,"resize",this.onResize),e.zoomable&&e.zoomOnWheel&&ee(t,"wheel",this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&ee(n,"dblclick",this.onDblclick)}},ue={click:function(e){var t=e.target,n=this.options,i=this.imageData,r=K(t,A);switch(l&&e.isTrusted&&t===this.canvas&&clearTimeout(this.clickCanvasTimeout),r){case"mix":this.played?this.stop():n.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.hide();break;case"view":this.view(K(t,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(n.loop);break;case"play":this.play(n.fullscreen);break;case"next":this.next(n.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-i.scaleX||-1);break;case"flip-vertical":this.scaleY(-i.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(l&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle())},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var t=this.element,n=this.options,i=this.image,r=this.index,o=this.viewerData;G(i,x),n.loading&&G(this.canvas,C),i.style.cssText="height:0;"+"margin-left:".concat(o.width/2,"px;")+"margin-top:".concat(o.height/2,"px;")+"max-width:none!important;position:absolute;width:0;",this.initImage(function(){Q(i,k,n.movable),Q(i,T,n.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,H(n.viewed)&&te(t,"viewed",n.viewed,{once:!0}),ne(t,"viewed",{originalImage:e.images[r],index:r,image:i})})})},loadImage:function(e){var t=e.target,n=t.parentNode,i=n.offsetWidth||30,r=n.offsetHeight||50,o=!!K(t,"filled");oe(t,this.options,function(e,n){var s=e/n,a=i,l=r;r*s>i?o?a=r*s:l=i/s:o?l=i/s:a=r*s,B(t,z({width:a,height:l},ie({translateX:(i-a)/2,translateY:(r-l)/2})))})},keydown:function(e){var t=this.options;if(this.fulled&&t.keyboard)switch(e.keyCode||e.which||e.charCode){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}},dragstart:function(e){"img"===e.target.tagName.toLowerCase()&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,i=e.buttons,r=e.button;if(!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(L(i)&&1!==i||L(r)&&0!==r||e.ctrlKey))){e.preventDefault(),e.changedTouches?q(e.changedTouches,function(e){n[e.identifier]=ae(e)}):n[e.pointerId||0]=ae(e);var o=!!t.movable&&"move";t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?o="zoom":t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(o="switch"),!t.transition||"move"!==o&&"zoom"!==o||G(this.image,T),this.action=o}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?q(e.changedTouches,function(e){z(t[e.identifier]||{},ae(e,!0))}):z(t[e.pointerId||0]||{},ae(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,i=this.options,r=this.action,o=this.pointers;e.changedTouches?q(e.changedTouches,function(e){t=o[e.identifier],delete o[e.identifier]}):(t=o[e.pointerId||0],delete o[e.pointerId||0]),r&&(e.preventDefault(),!i.transition||"move"!==r&&"zoom"!==r||W(this.image,T),this.action=!1,l&&"zoom"!==r&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),i.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){ne(n.image,"dblclick")},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,i.backdrop&&"static"!==i.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){ne(n.canvas,"click")},50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();q(this.player.getElementsByTagName("img"),function(t){te(t,"load",e.loadImage.bind(e),{once:!0}),ne(t,"load")})}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,i=1;e.deltaY?i=e.deltaY>0?1:-1:e.wheelDelta?i=-e.wheelDelta/120:e.detail&&(i=e.detail>0?1:-1),this.zoom(-i*n,!0,e)}}},de={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(H(n.show)&&te(t,"show",n.show,{once:!0}),!1===ne(t,"show")||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var i=this.viewer;if(G(i,v),n.transition&&!e){var r=this.shown.bind(this);this.transitioning={abort:function(){ee(i,"transitionend",r),G(i,b)}},W(i,T),i.initialOffsetWidth=i.offsetWidth,te(i,"transitionend",r,{once:!0}),W(i,b)}else W(i,b),this.shown();return this},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.element,n=this.options;if(n.inline||this.hiding||!this.isShown&&!this.showing)return this;if(H(n.hide)&&te(t,"hide",n.hide,{once:!0}),!1===ne(t,"hide"))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var i=this.viewer;if(n.transition&&U(this.image,T)&&!e){var r=this.hidden.bind(this),o=function(){setTimeout(function(){te(i,"transitionend",r,{once:!0}),G(i,b)},0)};this.transitioning={abort:function(){this.viewed?ee(this.image,"transitionend",o):ee(i,"transitionend",r)}},this.viewed?(te(this.image,"transitionend",o,{once:!0}),this.zoomTo(0,!1,!1,!0)):o()}else G(i,b),this.hidden();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var n=this.element,i=this.options,r=this.title,o=this.canvas,s=this.items[t],a=s.querySelector("img"),l=K(a,"originalUrl"),c=a.getAttribute("alt"),d=document.createElement("img");if(q(i.inheritedAttributes,function(e){var t=a.getAttribute(e);null!==t&&d.setAttribute(e,t)}),d.src=l,d.alt=c,H(i.view)&&te(n,"view",i.view,{once:!0}),!1===ne(n,"view",{originalImage:this.images[t],index:t,image:d})||!this.isShown||this.hiding||this.played)return this;this.image=d,G(this.items[this.index],u),W(s,u),this.viewed=!1,this.index=t,this.imageData={},W(d,x),i.loading&&W(o,C),o.innerHTML="",o.appendChild(d),this.renderList(),r.innerHTML="";var h,f=function(){var t,n=e.imageData,o=Array.isArray(i.title)?i.title[1]:i.title;r.innerHTML=I(t=H(o)?o.call(e,d,n):"".concat(c," (").concat(n.naturalWidth," × ").concat(n.naturalHeight,")"))?t.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;"):t};return te(n,"viewed",f,{once:!0}),this.viewing={abort:function(){ee(n,"viewed",f),d.complete?this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort():(d.src="",ee(d,"load",h),this.timeout&&clearTimeout(this.timeout))}},d.complete?this.load():(te(d,"load",h=this.load.bind(this),{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){G(d,x),e.timeout=!1},1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e,t){var n=this.imageData;return this.moveTo(R(e)?e:n.left+Number(e),R(t)?t:n.top+Number(t)),this},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;if(e=Number(e),t=Number(t),this.viewed&&!this.played&&this.options.movable){var i=!1;L(e)&&(n.left=e,i=!0),L(t)&&(n.top=t,i=!0),i&&this.renderImage()}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(i.width*e/i.naturalWidth,t,n),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.element,s=this.options,a=this.pointers,l=this.imageData,c=l.width,u=l.height,d=l.left,h=l.top,f=l.naturalWidth,p=l.naturalHeight;if(L(e=Math.max(0,e))&&this.viewed&&!this.played&&(r||s.zoomable)){if(!r){var g=Math.max(.01,s.minZoomRatio),v=Math.min(100,s.maxZoomRatio);e=Math.min(Math.max(e,g),v)}i&&e>.95&&e<1.05&&(e=1);var m=f*e,y=p*e,w=m-c,b=y-u,x=c/f;if(H(s.zoom)&&te(o,"zoom",s.zoom,{once:!0}),!1===ne(o,"zoom",{ratio:e,oldRatio:x,originalEvent:i}))return this;if(this.zooming=!0,i){var C=function(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}(this.viewer),k=a&&Object.keys(a).length?function(e){var t=0,n=0,i=0;return q(e,function(e){var r=e.startX,o=e.startY;t+=r,n+=o,i+=1}),{pageX:t/=i,pageY:n/=i}}(a):{pageX:i.pageX,pageY:i.pageY};l.left-=w*((k.pageX-C.left-d)/c),l.top-=b*((k.pageY-C.top-h)/u)}else l.left-=w/2,l.top-=b/2;l.width=m,l.height=y,l.ratio=e,this.renderImage(function(){t.zooming=!1,H(s.zoomed)&&te(o,"zoomed",s.zoomed,{once:!0}),ne(o,"zoomed",{ratio:e,oldRatio:x,originalEvent:i})}),n&&this.tooltip()}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this.imageData;return L(e=Number(e))&&this.viewed&&!this.played&&this.options.rotatable&&(t.rotate=e,this.renderImage()),this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;if(e=Number(e),t=Number(t),this.viewed&&!this.played&&this.options.scalable){var i=!1;L(e)&&(n.scaleX=e,i=!0),L(t)&&(n.scaleY=t,i=!0),i&&this.renderImage()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var n=this.options,i=this.player,r=this.loadImage.bind(this),o=[],s=0,a=0;if(this.played=!0,this.onLoadWhenPlay=r,t&&this.requestFullscreen(),W(i,E),q(this.items,function(e,t){var l=e.querySelector("img"),c=document.createElement("img");c.src=K(l,"originalUrl"),c.alt=l.getAttribute("alt"),c.referrerPolicy=l.referrerPolicy,s+=1,W(c,h),Q(c,T,n.transition),U(e,u)&&(W(c,b),a=t),o.push(c),te(c,"load",r,{once:!0}),i.appendChild(c)}),L(n.interval)&&n.interval>0){var l=function t(){e.playing=setTimeout(function(){G(o[a],b),W(o[a=(a+=1)<s?a:0],b),t()},n.interval)};s>1&&l()}return this},stop:function(){var e=this;if(!this.played)return this;var t=this.player;return this.played=!1,clearTimeout(this.playing),q(t.getElementsByTagName("img"),function(t){ee(t,"load",e.onLoadWhenPlay)}),G(t,E),t.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,i=this.image,r=this.list;return!this.isShown||this.played||this.fulled||!t.inline?this:(this.fulled=!0,this.open(),W(this.button,g),t.transition&&(G(r,T),this.viewed&&G(i,T)),W(n,f),n.setAttribute("style",""),B(n,{zIndex:t.zIndex}),this.initContainer(),this.viewerData=z({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){W(i,T),W(r,T)},0)})}),this)},exit:function(){var e=this,t=this.options,n=this.viewer,i=this.image,r=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),G(this.button,g),t.transition&&(G(r,T),this.viewed&&G(i,T)),G(n,f),B(n,{zIndex:t.zIndexInline}),this.viewerData=z({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){W(i,T),W(r,T)},0)})}),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,i=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*i.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&ne(n,"transitionend"),W(n,E),W(n,h),W(n,T),n.initialOffsetWidth=n.offsetWidth,W(n,b)):W(n,E),this.tooltipping=setTimeout(function(){t.transition?(te(n,"transitionend",function(){G(n,E),G(n,h),G(n,T),e.fading=!1},{once:!0}),G(n,b),e.fading=!0):G(n,E),e.tooltipping=!1},1e3),this):this},toggle:function(){return 1===this.imageData.ratio?this.zoomTo(this.initialImageData.ratio,!0):this.zoomTo(1,!0),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=z({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,t=this.element,n=this.options,i=this.isImg;if(i&&!t.parentNode)return this.destroy();var r=[];if(q(i?[t]:t.querySelectorAll("img"),function(t){H(n.filter)?n.filter.call(e,t)&&r.push(t):e.getImageURL(t)&&r.push(t)}),!r.length)return this;if(this.images=r,this.length=r.length,this.ready){var o=[];if(q(this.items,function(e,t){var n=e.querySelector("img"),i=r[t];i&&n?i.src!==n.src&&o.push(t):o.push(t)}),B(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var s=o.indexOf(this.index);s>=0?(this.viewed=!1,this.view(Math.max(this.index-(s+1),0))):W(this.items[this.index],u)}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var e=this.element,t=this.options;return e.viewer?(this.destroyed=!0,this.ready?(this.played&&this.stop(),t.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):t.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),t.inline||ee(e,"click",this.onStart),e.viewer=void 0,this):this}},he={getImageURL:function(e){var t=this.options.url;return t=I(t)?e.getAttribute(t):H(t)?t.call(this,e):""},open:function(){var e=this.body;W(e,S),e.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px")},close:function(){var e=this.body;G(e,S),e.style.paddingRight=this.initialBodyPaddingRight},shown:function(){var e=this.element,t=this.options;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,H(t.shown)&&te(e,"shown",t.shown,{once:!0}),!1!==ne(e,"shown")&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var e=this.element,t=this.options;this.fulled=!1,this.viewed=!1,this.isShown=!1,this.close(),this.unbind(),W(this.viewer,v),this.resetList(),this.resetImage(),this.hiding=!1,this.destroyed||(H(t.hidden)&&te(e,"hidden",t.hidden,{once:!0}),ne(e,"hidden"))},requestFullscreen:function(){var e=this.element.ownerDocument;if(this.fulled&&!(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)){var t=e.documentElement;t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var t=this.options,n=this.pointers,i=n[Object.keys(n)[0]],o=i.endX-i.startX,s=i.endY-i.startY;switch(this.action){case"move":this.move(o,s);break;case"zoom":this.zoom(function(e){var t=r({},e),n=[];return q(e,function(e,i){delete t[i],q(t,function(t){var i=Math.abs(e.startX-t.startX),r=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),s=Math.abs(e.endY-t.endY),a=Math.sqrt(i*i+r*r),l=(Math.sqrt(o*o+s*s)-a)/a;n.push(l)})}),n.sort(function(e,t){return Math.abs(e)<Math.abs(t)}),n[0]}(n),!1,e);break;case"switch":this.action="switched";var a=Math.abs(o);a>1&&a>Math.abs(s)&&(this.pointers={},o>1?this.prev(t.loop):o<-1&&this.next(t.loop))}q(n,function(e){e.startX=e.endX,e.startY=e.endY})},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.left>=0&&e.top>=0&&e.width<=t.width&&e.height<=t.height}},fe=a.Viewer,pe=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||1!==t.nodeType)throw new Error("The first argument is required and must be an element.");this.element=t,this.options=z({},o,O(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.init()}var n,i,r;return n=e,r=[{key:"noConflict",value:function(){return window.Viewer=fe,e}},{key:"setDefaults",value:function(e){z(o,O(e)&&e)}}],(i=[{key:"init",value:function(){var e=this,t=this.element,n=this.options;if(!t.viewer){t.viewer=this;var i="img"===t.tagName.toLowerCase(),r=[];if(q(i?[t]:t.querySelectorAll("img"),function(t){H(n.filter)?n.filter.call(e,t)&&r.push(t):e.getImageURL(t)&&r.push(t)}),this.isImg=i,this.length=r.length,this.images=r,this.initBody(),R(document.createElement("viewer").style.transition)&&(n.transition=!1),n.inline){var o=0,s=function(){var t;(o+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout(function(){e.delaying=!1,e.build()},0))};this.initializing={abort:function(){q(r,function(e){e.complete||ee(e,"load",s)})}},q(r,function(e){e.complete?s():te(e,"load",s,{once:!0})})}else te(t,"click",this.onStart=function(t){var i=t.target;"img"!==i.tagName.toLowerCase()||H(n.filter)&&!n.filter.call(e,i)||e.view(e.images.indexOf(i))})}}},{key:"build",value:function(){if(!this.ready){var e=this.element,t=this.options,n=e.parentNode,i=document.createElement("div");i.innerHTML='<div class="viewer-container" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list"></ul></div></div><div class="viewer-tooltip"></div><div role="button" class="viewer-button" data-viewer-action="mix"></div><div class="viewer-player"></div></div>';var r=i.querySelector(".".concat("viewer","-container")),o=r.querySelector(".".concat("viewer","-title")),s=r.querySelector(".".concat("viewer","-toolbar")),a=r.querySelector(".".concat("viewer","-navbar")),l=r.querySelector(".".concat("viewer","-button")),c=r.querySelector(".".concat("viewer","-canvas"));if(this.parent=n,this.viewer=r,this.title=o,this.toolbar=s,this.navbar=a,this.button=l,this.canvas=c,this.footer=r.querySelector(".".concat("viewer","-footer")),this.tooltipBox=r.querySelector(".".concat("viewer","-tooltip")),this.player=r.querySelector(".".concat("viewer","-player")),this.list=r.querySelector(".".concat("viewer","-list")),W(o,t.title?se(Array.isArray(t.title)?t.title[0]:t.title):v),W(a,t.navbar?se(t.navbar):v),Q(l,v,!t.button),t.backdrop&&(W(r,"".concat("viewer","-backdrop")),t.inline||"static"===t.backdrop||J(c,A,"hide")),I(t.className)&&t.className&&t.className.split(P).forEach(function(e){W(r,e)}),t.toolbar){var u=document.createElement("ul"),g=O(t.toolbar),m=F.slice(0,3),y=F.slice(7,9),w=F.slice(9);g||W(s,se(t.toolbar)),q(g?t.toolbar:F,function(e,n){var i=g&&O(e),r=g?X(n):e,o=i&&!R(e.show)?e.show:e;if(o&&(t.zoomable||-1===m.indexOf(r))&&(t.rotatable||-1===y.indexOf(r))&&(t.scalable||-1===w.indexOf(r))){var s=i&&!R(e.size)?e.size:e,a=i&&!R(e.click)?e.click:e,l=document.createElement("li");l.setAttribute("role","button"),W(l,"".concat("viewer","-").concat(r)),H(a)||J(l,A,r),L(o)&&W(l,se(o)),-1!==["small","large"].indexOf(s)?W(l,"".concat("viewer","-").concat(s)):"play"===r&&W(l,"".concat("viewer","-large")),H(a)&&te(l,"click",a),u.appendChild(l)}}),s.appendChild(u)}else W(s,v);if(!t.rotatable){var b=s.querySelectorAll('li[class*="rotate"]');W(b,x),q(b,function(e){s.appendChild(e)})}if(t.inline)W(l,p),B(r,{zIndex:t.zIndexInline}),"static"===window.getComputedStyle(n).position&&B(n,{position:"relative"}),n.insertBefore(r,e.nextSibling);else{W(l,d),W(r,f),W(r,h),W(r,v),B(r,{zIndex:t.zIndex});var C=t.container;I(C)&&(C=e.ownerDocument.querySelector(C)),C||(C=this.body),C.appendChild(r)}t.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,H(t.ready)&&te(e,"ready",t.ready,{once:!0}),!1!==ne(e,"ready")?this.ready&&t.inline&&this.view(this.index):this.ready=!1}}}])&&t(n.prototype,i),r&&t(n,r),e}();return z(pe.prototype,le,ce,ue,de,he),pe}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("jquery"),require("viewerjs")):"function"==typeof define&&define.amd?define(["jquery","viewerjs"],t):t((e=e||self).jQuery,e.Viewer)}(this,function(e,t){"use strict";if(e=e&&e.hasOwnProperty("default")?e.default:e,t=t&&t.hasOwnProperty("default")?t.default:t,e&&e.fn&&t){var n=e.fn.viewer;e.fn.viewer=function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];var s;return this.each(function(i,o){var a=e(o),l="destroy"===n,c=a.data("viewer");if(!c){if(l)return;var u=e.extend({},a.data(),e.isPlainObject(n)&&n);c=new t(o,u),a.data("viewer",c)}if("string"==typeof n){var d=c[n];e.isFunction(d)&&((s=d.apply(c,r))===c&&(s=void 0),l&&a.removeData("viewer"))}}),void 0!==s?s:this},e.fn.viewer.Constructor=t,e.fn.viewer.setDefaults=t.setDefaults,e.fn.viewer.noConflict=function(){return e.fn.viewer=n,this}}}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var n,i,r;return t&&t.requirejs||(t?i=t:t={},function(e){var t,o,s,a,l={},c={},u={},d={},h=Object.prototype.hasOwnProperty,f=[].slice,p=/\.js$/;function g(e,t){return h.call(e,t)}function v(e,t){var n,i,r,o,s,a,l,c,d,h,f,g=t&&t.split("/"),v=u.map,m=v&&v["*"]||{};if(e){for(s=(e=e.split("/")).length-1,u.nodeIdCompat&&p.test(e[s])&&(e[s]=e[s].replace(p,"")),"."===e[0].charAt(0)&&g&&(e=g.slice(0,g.length-1).concat(e)),d=0;d<e.length;d++)if("."===(f=e[d]))e.splice(d,1),d-=1;else if(".."===f){if(0===d||1===d&&".."===e[2]||".."===e[d-1])continue;d>0&&(e.splice(d-1,2),d-=2)}e=e.join("/")}if((g||m)&&v){for(d=(n=e.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),g)for(h=g.length;h>0;h-=1)if((r=v[g.slice(0,h).join("/")])&&(r=r[i])){o=r,a=d;break}if(o)break;!l&&m&&m[i]&&(l=m[i],c=d)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function m(t,n){return function(){var i=f.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),o.apply(e,i.concat([t,n]))}}function y(e){return function(t){l[e]=t}}function w(n){if(g(c,n)){var i=c[n];delete c[n],d[n]=!0,t.apply(e,i)}if(!g(l,n)&&!g(d,n))throw new Error("No "+n);return l[n]}function b(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function x(e){return e?b(e):[]}s=function(e,t){var n,i,r=b(e),o=r[0],s=t[1];return e=r[1],o&&(n=w(o=v(o,s))),o?e=n&&n.normalize?n.normalize(e,(i=s,function(e){return v(e,i)})):v(e,s):(o=(r=b(e=v(e,s)))[0],e=r[1],o&&(n=w(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},a={require:function(e){return m(e)},exports:function(e){var t=l[e];return void 0!==t?t:l[e]={}},module:function(e){return{id:e,uri:"",exports:l[e],config:function(e){return function(){return u&&u.config&&u.config[e]||{}}}(e)}}},t=function(t,n,i,r){var o,u,h,f,p,v,b,C=[],k=typeof i;if(v=x(r=r||t),"undefined"===k||"function"===k){for(n=!n.length&&i.length?["require","exports","module"]:n,p=0;p<n.length;p+=1)if("require"===(u=(f=s(n[p],v)).f))C[p]=a.require(t);else if("exports"===u)C[p]=a.exports(t),b=!0;else if("module"===u)o=C[p]=a.module(t);else if(g(l,u)||g(c,u)||g(d,u))C[p]=w(u);else{if(!f.p)throw new Error(t+" missing "+u);f.p.load(f.n,m(r,!0),y(u),{}),C[p]=l[u]}h=i?i.apply(l[t],C):void 0,t&&(o&&o.exports!==e&&o.exports!==l[t]?l[t]=o.exports:h===e&&b||(l[t]=h))}else t&&(l[t]=i)},n=i=o=function(n,i,r,l,c){if("string"==typeof n)return a[n]?a[n](i):w(s(n,x(i)).f);if(!n.splice){if((u=n).deps&&o(u.deps,u.callback),!i)return;i.splice?(n=i,i=r,r=null):n=e}return i=i||function(){},"function"==typeof r&&(r=l,l=c),l?t(e,n,i,r):setTimeout(function(){t(e,n,i,r)},4),o},o.config=function(e){return o(e)},n._defined=l,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),g(l,e)||g(c,e)||(c[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=n,t.require=i,t.define=r),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||$;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){var t={};function n(e){var t=e.prototype,n=[];for(var i in t){"function"==typeof t[i]&&("constructor"!==i&&n.push(i))}return n}t.Extend=function(e,t){var n={}.hasOwnProperty;function i(){this.constructor=e}for(var r in t)n.call(t,r)&&(e[r]=t[r]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},t.Decorate=function(e,t){var i=n(t),r=n(e);function o(){var n=Array.prototype.unshift,i=t.prototype.constructor.length,r=e.prototype.constructor;i>0&&(n.call(arguments,e.prototype.constructor),r=t.prototype.constructor),r.apply(this,arguments)}t.displayName=e.displayName,o.prototype=new function(){this.constructor=o};for(var s=0;s<r.length;s++){var a=r[s];o.prototype[a]=e.prototype[a]}for(var l=function(e){var n=function(){};e in o.prototype&&(n=o.prototype[e]);var i=t.prototype[e];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}},c=0;c<i.length;c++){var u=i[c];o.prototype[u]=l(u)}return o};var i=function(){this.listeners={}};i.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},i.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},t.Observable=i,t.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},t.bind=function(e,t){return function(){e.apply(t,arguments)}},t._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},t.hasScroll=function(t,n){var i=e(n),r=n.style.overflowX,o=n.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},t.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},t.appendMany=function(t,n){if("1.7"===e.fn.jquery.substr(0,3)){var i=e();e.map(n,function(e){i=i.add(e)}),n=i}t.append(n)},t.__cache={};var r=0;return t.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++r),t=r.toString())),t},t.StoreData=function(e,n,i){var r=t.GetUniqueElementId(e);t.__cache[r]||(t.__cache[r]={}),t.__cache[r][n]=i},t.GetData=function(n,i){var r=t.GetUniqueElementId(n);return i?t.__cache[r]&&null!=t.__cache[r][i]?t.__cache[r][i]:e(n).data(i):t.__cache[r]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(t.message);i.append(n(r(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],r=this.option(i);t.push(r)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(e,t){t.find(".select2-results").append(e)},n.prototype.sort=function(e){return this.options.get("sorter")(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current(function(i){var r=e.map(i,function(e){return e.id.toString()});n.$results.find(".select2-results__option[aria-selected]").each(function(){var n=e(this),i=t.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&e.inArray(o,r)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")})})},n.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.className="select2-results__option";var r={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var s in(null!=n.element&&o.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==n.id&&delete r["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(r.role="group",r["aria-label"]=n.text,delete r["aria-selected"]),r){var a=r[s];i.setAttribute(s,a)}if(n.children){var l=e(i),c=document.createElement("strong");c.className="select2-results__group";e(c);this.template(n,c);for(var u=[],d=0;d<n.children.length;d++){var h=n.children[d],f=this.option(h);u.push(f)}var p=e("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(u),l.append(c),l.append(p)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",function(e){r.clear(),r.append(e.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),n.on("results:append",function(e){r.append(e.data),n.isOpen()&&r.setClasses()}),n.on("query",function(e){r.hideMessages(),r.showLoading(e)}),n.on("select",function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())}),n.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),n.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),n.on("results:select",function(){var e=r.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");"true"==e.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:n})}}),n.on("results:previous",function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var i=n-1;0===e.length&&(i=0);var o=t.eq(i);o.trigger("mouseenter");var s=r.$results.offset().top,a=o.offset().top,l=r.$results.scrollTop()+(a-s);0===i?r.$results.scrollTop(0):a-s<0&&r.$results.scrollTop(l)}}),n.on("results:next",function(){var e=r.getHighlightedResults(),t=r.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var i=t.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),s=i.offset().top+i.outerHeight(!1),a=r.$results.scrollTop()+s-o;0===n?r.$results.scrollTop(0):s>o&&r.$results.scrollTop(a)}}),n.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),n.on("results:message",function(e){r.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-t+e.deltaY,i=e.deltaY>0&&t-e.deltaY<=0,o=e.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(n){var i=e(this),o=t.GetData(this,"data");"true"!==i.attr("aria-selected")?r.trigger("select",{originalEvent:n,data:o}):r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:o}):r.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(n){var i=t.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:i,element:e(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,i=e.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=i(t,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=r(o):e(n).append(o)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(e,t){var i=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){i.trigger("focus",e)}),this.$selection.on("blur",function(e){i._handleBlur(e)}),this.$selection.on("keydown",function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){i.update(e.data)}),e.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(e)}),e.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)}),e.on("enable",function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")}),e.on("disable",function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")})},i.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each(function(){this!=i[0]&&t.GetData(this,"element").select2("close")})})},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("<span></span>")},r.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(t,n);n.empty().append(i);var r=t.title||t.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},i.prototype.bind=function(t,r){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){o.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!o.isDisabled()){var i=e(this).parent(),r=n.GetData(i[0],"data");o.trigger("unselect",{originalEvent:t,data:r})}})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=0;i<e.length;i++){var r=e[i],o=this.selectionContainer(),s=this.display(r,o);o.append(s);var a=r.title||r.text;a&&o.attr("title",a),n.StoreData(o[0],"data",r),t.push(o)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,t)}},i}),t.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(t.length>1||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},t}),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(e,t,n){function i(){}return i.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},i.prototype._handleClear=function(e,t){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();var r=n.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var s={data:r};if(this.trigger("clear",s),s.prevented)this.$element.val(o);else{for(var a=0;a<r.length;a++)if(s={data:r[a]},this.trigger("unselect",s),s.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(e,n,i){i.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=this.options.get("translations").get("removeAllItems"),o=e('<span class="select2-selection__clear" title="'+r()+'">&times;</span>');n.StoreData(o[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(o)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=e('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=t.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(e,i,r){var o=this,s=i.id+"-results";e.call(this,i,r),i.on("open",function(){o.$search.attr("aria-controls",s),o.$search.trigger("focus")}),i.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")}),i.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),i.on("disable",function(){o.$search.prop("disabled",!0)}),i.on("focus",function(e){o.$search.trigger("focus")}),i.on("results:focus",function(e){e.data._resultId?o.$search.attr("aria-activedescendant",e.data._resultId):o.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){o._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented(),e.which===n.BACKSPACE&&""===o.$search.val()){var i=o.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var r=t.GetData(i[0],"data");o.searchRemoveChoice(r),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){o.$search.val()&&e.stopPropagation()});var a=document.documentMode,l=a&&a<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){l?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(l&&"input"===e.type)o.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&o.handleSearch(e)}})},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},i}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,i){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],s=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",function(t,n){if(-1!==e.inArray(t,o)){n=n||{};var i=e.Event("select2:"+t,{params:n});r.$element.trigger(i),-1!==e.inArray(t,s)&&(n.prevented=i.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var i=t(e);n._cache[e]=i}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"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","Œ":"OE","Ƣ":"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","œ":"oe","ƣ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var i=t.id+"-result-";return i+=e.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+e.generateChars(4),i},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=[],i=this;this.$element.find(":selected").each(function(){var e=n(this),r=i.item(e);t.push(r)}),e(t)},i.prototype.select=function(e){var t=this;if(e.selected=!0,n(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var r=[];(e=[e]).push.apply(e,i);for(var o=0;o<e.length;o++){var s=e[o].id;-1===n.inArray(s,r)&&r.push(s)}t.$element.val(r),t.$element.trigger("input").trigger("change")});else{var i=e.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple")){if(e.selected=!1,n(e.element).is("option"))return e.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(i){for(var r=[],o=0;o<i.length;o++){var s=i[o].id;s!==e.id&&-1===n.inArray(s,r)&&r.push(s)}t.$element.val(r),t.$element.trigger("input").trigger("change")})}},i.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},i.prototype.query=function(e,t){var i=[],r=this;this.$element.children().each(function(){var t=n(this);if(t.is("option")||t.is("optgroup")){var o=r.item(t),s=r.matches(e,o);null!==s&&i.push(s)}}),t({results:i})},i.prototype.addOptions=function(e){t.appendMany(this.$element,e)},i.prototype.option=function(e){var i;e.children?(i=document.createElement("optgroup")).label=e.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=e.text:i.innerText=e.text,void 0!==e.id&&(i.value=e.id),e.disabled&&(i.disabled=!0),e.selected&&(i.selected=!0),e.title&&(i.title=e.title);var r=n(i),o=this._normalizeItem(e);return o.element=i,t.StoreData(i,"data",o),r},i.prototype.item=function(e){var i={};if(null!=(i=t.GetData(e[0],"data")))return i;if(e.is("option"))i={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){i={text:e.prop("label"),children:[],title:e.prop("title")};for(var r=e.children("option"),o=[],s=0;s<r.length;s++){var a=n(r[s]),l=this.item(a);o.push(l)}i.children=o}return(i=this._normalizeItem(i)).element=e[0],t.StoreData(e[0],"data",i),i},i.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=n.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},{selected:!1,disabled:!1},e)},i.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},i}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),i.__super__.select.call(this,e)},i.prototype.convertToOptions=function(e){var i=this,r=this.$element.find("option"),o=r.map(function(){return i.item(n(this)).id}).get(),s=[];function a(e){return function(){return n(this).val()==e.id}}for(var l=0;l<e.length;l++){var c=this._normalizeItem(e[l]);if(n.inArray(c.id,o)>=0){var u=r.filter(a(c)),d=this.item(u),h=n.extend(!0,{},c,d),f=this.option(h);u.replaceWith(f)}else{var p=this.option(c);if(c.children){var g=this.convertToOptions(c.children);t.appendMany(p,g)}s.push(p)}}return s},i}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function i(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,i){var r=n.ajax(e);return r.then(t),r.fail(i),r}};return n.extend({},t,e,!0)},i.prototype.processResults=function(e){return e},i.prototype.query=function(e,t){var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);function o(){var o=r.transport(r,function(r){var o=i.processResults(r,e);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(o)},function(){"status"in o&&(0===o.status||"0"===o.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=o}"function"==typeof r.url&&(r.url=r.url.call(this.$element,e)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},i}),t.define("select2/data/tags",["jquery"],function(e){function t(t,n,i){var r=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,n,i),e.isArray(r))for(var a=0;a<r.length;a++){var l=r[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return t.prototype.query=function(e,t,n){var i=this;this._removeOldTags(),null!=t.term&&null==t.page?e.call(this,t,function e(r,o){for(var s=r.results,a=0;a<s.length;a++){var l=s[a],c=null!=l.children&&!e({results:l.children},!0);if((l.text||"").toUpperCase()===(t.term||"").toUpperCase()||c)return!o&&(r.data=s,void n(r))}if(o)return!0;var u=i.createTag(t);if(null!=u){var d=i.option(u);d.attr("data-select2-tag",!0),i.addOptions([d]),i.insertTag(s,u)}r.results=s,n(r)}):e.call(this,t,n)},t.prototype.createTag=function(t,n){var i=e.trim(n.term);return""===i?null:{id:i,text:i}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){this.$element.find("option[data-select2-tag]").each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,i){var r=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,function(t){var n=r._normalizeItem(t);if(!r.$element.find("option").filter(function(){return e(this).val()===n.id}).length){var i=r.option(n);i.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([i])}!function(e){r.trigger("select",{data:e})}(n)});o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),n.term=o.term),t.call(this,n,i)},t.prototype.tokenizer=function(t,n,i,r){for(var o=i.get("tokenSeparators")||[],s=n.term,a=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};a<s.length;){var c=s[a];if(-1!==e.inArray(c,o)){var u=s.substr(0,a),d=l(e.extend({},n,{term:u}));null!=d?(r(d),s=s.substr(a+1)||"",a=0):a++}else a++}return{term:s}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){var i=null!=e?e.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(e,t){function n(){}return n.prototype.render=function(t){var n=t.call(this),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(t,n,i){var r=this,o=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),n.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),n.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),n.on("focus",function(){n.isOpen()||r.$search.trigger("focus")}),n.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),n.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},n.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.showSearch=function(e,t){return!0},n}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;i>=0;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),i=t.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.select2."+i.id,s="resize.select2."+i.id,a="orientationchange.select2."+i.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(o,function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)}),e(window).on(o+" "+s+" "+a,function(e){r._positionDropdown(),r._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id,s="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+o+" "+s)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=o.top,s.bottom=o.top+s.height;var a=this.$dropdown.outerHeight(!1),l=t.scrollTop(),c=t.scrollTop()+t.height(),u=l<o.top-a,d=c>o.bottom+a,h={left:o.left,top:s.bottom},f=this.$dropdownParent;"static"===f.css("position")&&(f=f.offsetParent());var p={top:0,left:0};(e.contains(document.body,f[0])||f[0].isConnected)&&(p=f.offset()),h.top-=p.top,h.left-=p.left,n||i||(r="below"),d||!u||n?!u&&d&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(h.top=s.top-p.top-a),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var r=t[i];r.children?n+=e(r.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),t.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var o=e.GetData(r[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},t}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(e,t,n,i,r,o,s,a,l,c,u,d,h,f,p,g,v,m,y,w,b,x,C,k,S,E,T,$,_){function D(){this.reset()}return D.prototype.apply=function(u){if(null==(u=e.extend(!0,{},this.defaults,u)).dataAdapter){if(null!=u.ajax?u.dataAdapter=p:null!=u.data?u.dataAdapter=f:u.dataAdapter=h,u.minimumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,w)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null==u.tokenSeparators&&null==u.tokenizer||(u.dataAdapter=c.Decorate(u.dataAdapter,v)),null!=u.query){var d=t(u.amdBase+"compat/query");u.dataAdapter=c.Decorate(u.dataAdapter,d)}if(null!=u.initSelection){var _=t(u.amdBase+"compat/initSelection");u.dataAdapter=c.Decorate(u.dataAdapter,_)}}if(null==u.resultsAdapter&&(u.resultsAdapter=n,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,k)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,C)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,T))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=b;else{var D=c.Decorate(b,x);u.dropdownAdapter=D}if(0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,E)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,$)),null!=u.dropdownCssClass||null!=u.dropdownCss||null!=u.adaptDropdownCssClass){var A=t(u.amdBase+"compat/dropdownCss");u.dropdownAdapter=c.Decorate(u.dropdownAdapter,A)}u.dropdownAdapter=c.Decorate(u.dropdownAdapter,S)}if(null==u.selectionAdapter){if(u.multiple?u.selectionAdapter=r:u.selectionAdapter=i,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,o)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,a)),null!=u.containerCssClass||null!=u.containerCss||null!=u.adaptContainerCssClass){var P=t(u.amdBase+"compat/containerCss");u.selectionAdapter=c.Decorate(u.selectionAdapter,P)}u.selectionAdapter=c.Decorate(u.selectionAdapter,l)}u.language=this._resolveLanguage(u.language),u.language.push("en");for(var F=[],I=0;I<u.language.length;I++){var N=u.language[I];-1===F.indexOf(N)&&F.push(N)}return u.language=F,u.translations=this._processTranslations(u.language,u.debug),u},D.prototype.reset=function(){function t(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return d[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:{},matcher:function n(i,r){if(""===e.trim(i.term))return r;if(r.children&&r.children.length>0){for(var o=e.extend(!0,{},r),s=r.children.length-1;s>=0;s--)null==n(i,r.children[s])&&o.children.splice(s,1);return o.children.length>0?o:n(i,o)}var a=t(r.text).toUpperCase(),l=t(i.term).toUpperCase();return a.indexOf(l)>-1?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},D.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,r=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return e.language=s,e},D.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=e.isArray(t)?t:[t];for(var i=[],r=0;r<n.length;r++)if(i.push(n[r]),"string"==typeof n[r]&&n[r].indexOf("-")>0){var o=n[r].split("-")[0];i.push(o)}return i},D.prototype._processTranslations=function(t,n){for(var i=new u,r=0;r<t.length;r++){var o=new u,s=t[r];if("string"==typeof s)try{o=u.loadPath(s)}catch(e){try{s=this.defaults.amdLanguageBase+s,o=u.loadPath(s)}catch(e){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+s+'" could not be automatically loaded. A fallback will be used instead.')}}else o=e.isPlainObject(s)?new u(s):s;i.extend(o)}return i},D.prototype.set=function(t,n){var i={};i[e.camelCase(t)]=n;var r=c._convertData(i);e.extend(!0,this.defaults,r)},new D}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,n,i){function r(t,r){if(this.options=t,null!=r&&this.fromElement(r),null!=r&&(this.options=n.applyFromElement(this.options,r)),this.options=n.apply(this.options),r&&r.is("input")){var o=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,o)}}return r.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),i.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(e[0],"data",i.GetData(e[0],"select2Tags")),i.StoreData(e[0],"tags",!0)),i.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",i.GetData(e[0],"ajaxUrl")),i.StoreData(e[0],"ajax-Url",i.GetData(e[0],"ajaxUrl")));var r={};function o(e,t){return t.toUpperCase()}for(var s=0;s<e[0].attributes.length;s++){var a=e[0].attributes[s].name;if("data-"==a.substr(0,"data-".length)){var l=a.substring("data-".length),c=i.GetData(e[0],l);r[l.replace(/-([a-z])/g,o)]=c}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(r=t.extend(!0,{},e[0].dataset,r));var u=t.extend(!0,{},i.GetData(e[0]),r);for(var d in u=i._convertData(u))t.inArray(d,n)>-1||(t.isPlainObject(this.options[d])?t.extend(this.options[d],u[d]):this.options[d]=u[d]);return this},r.prototype.get=function(e){return this.options[e]},r.prototype.set=function(e,t){this.options[e]=t},r}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,i){var r=function(e,i){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),r.__super__.constructor.call(this);var o=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",o),e.attr("tabindex","-1");var s=this.options.get("dataAdapter");this.dataAdapter=new s(e,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var c=this.options.get("dropdownAdapter");this.dropdown=new c(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){d.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(r,n.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var i=this._resolveWidth(e,"style");return null!=i?i:this._resolveWidth(e,"element")}if("element"==t){var r=e.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==t){var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&c.length>=1)return c[1]}return null}return"computedstyle"==t?window.getComputedStyle(e[0]).width:t},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=t?(this._observer=new t(function(t){e._syncA(),e._syncS(null,t)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},r.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},r.prototype._registerSelectionEvents=function(){var t=this,n=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("focus",function(e){t.focus(e)}),this.selection.on("*",function(i,r){-1===e.inArray(i,n)&&t.trigger(i,r)})},r.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},r.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},r.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&t.altKey?(e.close(t),t.preventDefault()):n===i.ENTER?(e.trigger("results:select",{}),t.preventDefault()):n===i.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===i.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===i.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(t,n){var i=!1,r=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(n)if(n.addedNodes&&n.addedNodes.length>0)for(var o=0;o<n.addedNodes.length;o++){n.addedNodes[o].selected&&(i=!0)}else n.removedNodes&&n.removedNodes.length>0?i=!0:e.isArray(n)&&e.each(n,function(e,t){if(r._isChangeMutation(e,t))return i=!0,!1});else i=!0;return i}},r.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),i=this;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var o=i[e],s={prevented:!1,name:e,args:t};if(n.call(this,o,s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},r.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var n=t[0];e.isArray(n)&&(n=e.map(n,function(e){return e.toString()})),this.$element.val(n).trigger("input").trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},r}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,n,i,r){if(null==e.fn.select2){var o=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var i=e.extend(!0,{},t);new n(e(this),i)}),this;if("string"==typeof t){var i,s=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,s)}),e.inArray(t,o)>-1?this:i}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=i),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n}),Backbone.View.prototype.remove=function(){"use strict";return this.undelegateEvents(),this.$el.empty(),this.stopListening(),this},Backbone.View.prototype.close=function(){"use strict";return this.unbind(),this.onClose&&this.onClose(),this};var CHR=CHR||{};CHR.views=CHR.views||{},CHR.models=CHR.models||{},CHR.config=CHR.config||{};var globals=globals||{},bbGEvent=bbGEvent||_.extend({},Backbone.Events);console.log("Globals did load"),$(window).on("resize",_.debounce(function(){bbGEvent.trigger("global:resize")},100)),$(window).on("scroll",_.debounce(function(){bbGEvent.trigger("global:scroll")},10)),$("body").on("click",function(e){bbGEvent.trigger("global:click",e)}),$(document).ready(function(){var e=$("a.download:not(:has(i))");e&&e.each(function(e){$(this).append('<i class="fas fa-download"></i>')})}),CHR.config.meqiaQueries={xl:"screen and (max-width: 1280px)",lg:"screen and (max-width: 1024px)",md:"screen and (max-width: 960px)",mdMin:"screen and (min-width: 641px)",sm:"screen and (max-width: 640px)",xs:"screen and (max-width: 480px)"},globals.events={search:{queryStringParsed:"parsed:queryString",facetClick:"click:facet",updatedResults:"searchResultsUpdated",changeDisplayMode:"click:changeDisplayMode",changePageSize:"change:pageSize",navigateToPage:"click:pager",keywordSearch:"click:keywordSearch"},productseries:{navigateToProductTab:"navigate:ProductTab"}},globals.registerEpiserverVariables=function(){"use strict";chr.config.lang=$("html").data("apilanguage"),chr.config.node=$("html").data("apinode")},globals.localStorage={getCurrentLocalStorage:function(e){try{return void 0===window.localStorage[e]&&(window.localStorage[e]="[]"),JSON.parse(window.localStorage[e])}catch(e){return e}},setCurrentLocalStorage:function(e,t){window.localStorage[e]=JSON.stringify(t)}},String.format||(String.format=function(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,n){return void 0!==t[n]?t[n]:e})}),function(e,t,n,i){i.views.userAccountForm=t.View.extend({events:{"change #Country":"changeCountry","click .opt-in .md-checkbox":"handleCommPrefs","change #Relationship":"changeRelationship","change .select-country":"changeState"},initialize:function(){this.$commPrefs=e('.opt-in .md-checkbox[id^="CommunicationPreferences"]'),this.$sendNoEmails=e("#SendNoEmails"),console.log("View: CHR.views.userAccountForm -> loaded")},handleCommPrefs:function(t){e(t.target).is(":checked")&&("SendNoEmails"===e(t.target).prop("id")?this.$commPrefs.prop("checked",!1):this.$sendNoEmails.prop("checked",!1))},changeCountry:function(t){var n=e(document.getElementsByTagName("html"))[0],i=n.dataset.apinode,r=n.dataset.apilanguage,o=e("#CountryDdl").data("api-url");e.ajax({url:"/"+r+o+"/"+i,data:{countryCode:e("#Country").val()},type:"GET"}).done(function(t){t.length>0?(e("#StateDdl").removeClass("hide").addClass("show"),e("#StateDdl select").empty(),e("#StateDdl select").append(e("<option />").val("").text(e("#stateDefaultOption").val())),e.each(t,function(){e("#StateDdl select").append(e("<option />").val(this.StateId).text(this.Name))})):(e("#StateDdl select").empty(),e("#StateDdl").removeClass("show").addClass("hide"),e("#StateDdl").children(".field").removeClass("error"))}).fail(function(e,t,n){console.log("error",e)})},changeRelationship:function(t){e("#distributor").slideToggle()},changeState:function(t){var n=e(document.getElementsByTagName("html"))[0],i=n.dataset.apinode,r=n.dataset.apilanguage,o=e(t.target),s=o.closest(".field"),a=s.closest(".two-col"),l=a.find("#stateDefaultOption"),c=a.find("#StateDdl"),u=c.find("select"),d=s.data("api-url");e.ajax({url:"/"+r+d+"/"+i,data:{countryCode:o.val()},type:"GET"}).done(function(t){t.length>0?(c.removeClass("hide").addClass("show"),u.empty(),u.append(e("<option />").val("").text(l.val())),e.each(t,function(){u.append(e("<option />").val(this.StateId).text(this.Name))})):(u.empty(),c.removeClass("show").addClass("hide"),c.children(".field").removeClass("error"))}).fail(function(e,t,n){console.log("error",e)})}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.contactBlock=t.View.extend({events:{"click .submit":"showContactForm"},initialize:function(){this.selectsAreStyled=!1,this.envokeForm=this.$("#contactEnvokeForm"),this.helpText=this.$(".help-text"),this.submitBtn=this.$(".submit"),this.bodyText=this.$(".body-text"),console.log("View: CHR.views.contactBlock -> loaded"),this.initializeForm()},initializeForm:function(){var t=!1;window._nvkForm=window._nvkForm||[],window._nvkForm.push({on:"load",updateField:function(n){return setTimeout(function(){t||(e("#contactEnvokeForm").find("select.form-control").wrap('<div class="styled-select"></div>'),t=!0)},50),null}})},showContactForm:function(){this.envokeForm.fadeIn(),this.helpText.fadeOut(function(){this.remove()}),this.submitBtn.fadeOut(function(){this.remove()}),this.bodyText.fadeIn(),this.watchEnvokeLeadSumbission(),this.activateUnloadEvent()},activateUnloadEvent:function(){e(window).on("beforeunload",function(t){return e("#contactEnvokeForm").data("browser-warning-message")})},deactivateUnloadEvent:function(){e(window).off("beforeunload")},watchEnvokeLeadSumbission:function(){var e=this;window._nvkForm=window._nvkForm||[],window._nvkForm.push({on:"success",callback:function(t){console.log(t.contact.id),e.deactivateUnloadEvent(),e.CallbackFormSubmit(t.contact.id)}})},CallbackFormSubmit:function(t){var n=e(document.getElementsByTagName("html"))[0];this.node=n.dataset.apinode,this.lang=n.dataset.apilanguage;var i=e("#contactEnvokeForm").data("api-url"),r="/"+this.lang+i+this.node;e.ajax({url:r,data:{contactId:t},type:"GET"})}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.updateUserProfilePage=t.View.extend({events:{"change #Country":"changeCountry"},initialize:function(){console.log("View: CHR.views.updateUserProfilePage -> loaded")},changeCountry:function(t){var n=e(document.getElementsByTagName("html"))[0],i=n.dataset.apinode,r=n.dataset.apilanguage,o=e("#CountryDdl").data("api-url");e.ajax({url:"/"+r+o+"/"+i,data:{countryCode:e("#Country").val()},type:"GET"}).done(function(t){t.length>0?(e("#StateDdl").removeClass("hide").addClass("show"),e("#StateDdl select").empty(),e("#StateDdl select").append(e("<option />").val("").text(e("#stateDefaultOption").val())),e.each(t,function(){e("#StateDdl select").append(e("<option />").val(this.StateId).text(this.Name))})):(e("#StateDdl select").empty(),e("#StateDdl").removeClass("show").addClass("hide"),e("#StateDdl").children(".field").removeClass("error"))}).fail(function(e,t,n){console.log("error",e)})}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.accountNavigation=t.View.extend({initialize:function(){var e=this,t=new i.views.dropdownMenu({el:this.$el});this.listenTo(t,"menuItem:click",function(t){e.processClick(t)}),this.listenTo(t,"select:change",function(t){e.processSelect(t)}),console.log("View: CHR.views.accountNavigation -> loaded")},processClick:function(t){window.location.href=e(t.target).data("href")},processSelect:function(t){""!==e(t.target).val()&&(window.location.href=e(t.target).val())}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i,r){"use strict";i.views=i.views||{},i.views.headerVideo=n.View.extend({initialize:function(e){var t=this.$el.find(".progress"),n=document.getElementById("headerVideoId");n.ontimeupdate=function(){var e=n.currentTime/n.duration*100;t.css({width:"".concat(e,"%")})},this.updateVideoControls(n),this.updateAudioControls(n)},updateVideoControls:function(e){this.$el.find(".video-control").on("click",function(t){t.preventDefault(),document.querySelectorAll(".video-control use").forEach(function(e){return e.classList.toggle("hidden")}),e.paused?e.play():e.pause()})},updateAudioControls:function(e){this.$el.find(".audio-control").on("click",function(t){t.preventDefault(),document.querySelectorAll(".audio-control svg").forEach(function(e){return e.classList.toggle("hidden")}),e.muted?e.muted=!1:e.muted=!0})}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i,r){"use strict";i.views=i.views||{},i.views.sliderBlock=n.View.extend({initialize:function(){var e=this;this.$SLIDER_EL=this.$el.find(".slider"),this.$ALL_VIMEO_VIDEOS=this.$SLIDER_EL.find("iframe.vimeo"),this.listenTo(bbGEvent,"global:resize",function(){this.configureSlider()}.bind(this)),r(document).ready(function(){e.configureSlider()}),console.log("View: CHR.views.sliderBlock -> loaded")},buildSliderConfiguration:function(){var e,t=this,n=r(window).outerWidth(),i=10;return n<=640?e=1:n>640&&n<780?e=1.2:(e=2,i=35),{controls:!0,hideControlOnEnd:!0,captions:!0,infiniteLoop:!1,slideWidth:672,slideMargin:i,video:!0,onSlideBefore:function(){t.$ALL_VIMEO_VIDEOS.each(function(){this.pause()})},minSlides:e,maxSlides:e,touchEnabled:!1,pager:!0}},configureSlider:function(){var e=this,t=this.buildSliderConfiguration();this.$SLIDER_EL&&this.$SLIDER_EL.reloadSlider?this.$SLIDER_EL.reloadSlider(t):(this.$SLIDER_EL.bxSlider(t),this.$ALL_VIMEO_VIDEOS.each(function(t){e.$ALL_VIMEO_VIDEOS[t]=new Vimeo.Player(e.$ALL_VIMEO_VIDEOS[t])}))}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i,r){"use strict";i.views=i.views||{},i.views.textBlock=n.View.extend({initialize:function(e){console.log("View: CHR.views.textBlockView -> loaded")}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i){i.views.genericFormPage=t.View.extend({events:{},initialize:function(){this.watchEnvokeLeadSumbission(),console.log("View: CHR.views.genericFormPage -> loaded")},watchEnvokeLeadSumbission:function(){var t=this,n=!1;window._nvkForm=window._nvkForm||[],window._nvkForm.push({on:"success",callback:function(e){console.log(e.contact.id),t.CallbackFormSubmit(e.contact.id)}}),window._nvkForm.push({on:"load",updateField:function(t){return setTimeout(function(){n||(e("#GenericEnvokeForm").find("select.form-control").wrap('<div class="styled-select"></div>'),n=!0)},50),null}})},CallbackFormSubmit:function(t){var n=e(document.getElementsByTagName("html"))[0];this.node=n.dataset.apinode,this.lang=n.dataset.apilanguage;var i=e("#GenericEnvokeForm").data("api-url");if(i){var r="/"+this.lang+i+this.node;e.ajax({url:r,data:{contactId:t},type:"GET"})}}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.priceSheetListing=t.View.extend({events:{"click a.collapse-button":"showCategory"},initialize:function(){console.log("View: CHR.views.priceSheetListing -> Loaded"),this.expandFirstElement()},expandFirstElement:function(){e(e(".comp-pricingPage .comp-priceSheet a")[0]).click()},showCategory:function(t){t.preventDefault();var n=e(t.target).attr("data-target"),i=e('.comp-pricingPage .comp-priceSheet section[data-name="'+n+'"]');if(i.is(":visible"))return e(t.target).text("+"),e(t.target).removeClass("minus"),void i.slideToggle();e(t.target).text("-"),e(t.target).addClass("minus"),i.slideToggle()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.countryElementBlock=t.View.extend({events:{"change .countryddl":"changeCountry"},initialize:function(){console.log("View: CHR.views.countryElementBlock -> loaded")},changeCountry:function(t){var n=e(document.getElementsByTagName("html"))[0],i=n.dataset.apinode,r=n.dataset.apilanguage,o=e("select.countryddl").data("api-url");e.ajax({url:"/"+r+o+"/"+i,data:{countryCode:e("select.countryddl").val()},type:"GET"}).done(function(t){t.length>0?(e("select.stateddl").closest(".state-field").show(),e("select.stateddl").empty(),e("select.stateddl").append(e("<option />").val("").text(e("#stateDefaultOption").val())),e.each(t,function(){e("select.stateddl").append(e("<option />").val(this.StateId).text(this.Name))})):(e("select.stateddl").empty(),e("select.stateddl").closest(".state-field").hide())}).fail(function(e,t,n){console.log("error",e)})}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.courseLocationDateElementBlock=t.View.extend({events:{"change .select-course-location":"showMessage"},initialize:function(){console.log("View: CHR.views.courseLocationDateElementBlock -> loaded")},showMessage:function(){e(".course-location-message").text(e(".select-course-location option:selected").data("message"))}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.downloadableToolOrCalculatorBlock=t.View.extend({events:{},initialize:function(){this.watchEnvokeLeadSumbission(),console.log("View: CHR.views.downloadableToolOrCalculatorBlock -> loaded")},watchEnvokeLeadSumbission:function(){var e=this,t=!1;window._nvkForm=window._nvkForm||[],window._nvkForm.push({on:"success",callback:function(t){console.log(t.contact.id),e.CallbackFormSubmit(t.contact.id)}}),window._nvkForm.push({on:"load",updateField:function(n){return setTimeout(function(){t||(e.$el.find("#ToolAndCalculatorEnvokeForm select.form-control").wrap('<div class="styled-select"></div>'),e.$el.find("#ToolAndCalculatorEnvokeForm .nvkSubmitButton button").append('<i class="fas fa-download"></i>'),t=!0)},50),null}})},CallbackFormSubmit:function(t){var n=e(document.getElementsByTagName("html"))[0];this.node=n.dataset.apinode,this.lang=n.dataset.apilanguage;var i=e("#ToolAndCalculatorEnvokeForm").data("api-url"),r="/"+this.lang+i+this.node;e.ajax({url:r,data:{contactId:t},type:"GET"})}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.stateElementBlock=t.View.extend({events:{},initialize:function(){console.log("View: CHR.views.stateElementBlock -> loaded"),this.initializeValidation()},initializeValidation:function(){e.extend(!0,epi.EPiServer.Forms,{Validators:{"Valtech.Christie.PublicRelations.Implementation.Infrastructure.Validators.CountryStateSelectionValidator":function(t,n,i){if(e("select.countryddl").val().length){var r=e("select.stateddl").val();if(e('[name="'+t+'"] option').length>1&&!r.length)return{isValid:!1,message:i.model.message}}return{isValid:!0}}}})}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.models.EventListingPage=t.Model.extend({initialPageNumber:0,url:function(){var e=this.getNextPageNumber();return"/"+this.lang+this.apiUrl+this.node+"?pageNum="+e},initialize:function(){var t=e(document.getElementsByTagName("html"))[0];this.node=t.dataset.apinode,this.lang=t.dataset.apilanguage,this.apiUrl=e("#LoadMore").data("api-url")},getNextPageNumber:function(){return 0===this.initialPageNumber&&(this.initialPageNumber=parseInt(e("#pageNumber").val())),this.initialPageNumber+=1}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.EventListingPage=t.View.extend({template:this.$("#event-list-template").html(),events:{'click [name="loadmore"]':"getEvents"},initialize:function(){console.log("View: CHR.views.EventListingPage -> loaded"),this.$eventContainer=this.$(".event-container"),this.$loadMore=this.$('[name="loadmore"]')},getEvents:function(){var e=this;this.model.fetch({success:function(t){e.renderEvents(),!1===e.model.get("ShowLoadMore")&&e.disableLoadMoreButton()},error:function(){}})},renderEvents:function(){var e=this;return console.log("mapping"),this.toRenderDom=this.model.attributes.Events.map(function(t){return e.renderEvent(t)}),this.$eventContainer.append(this.toRenderDom)},renderEvent:function(e){return _.template(this.template)(e)},disableLoadMoreButton:function(){this.$loadMore.hide()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.models.PressReleaseListingPage=t.Model.extend({initialPageNumber:0,pageNum:0,year:0,url:function(){return this.pageNum=this.getNextPageNumber(),this.year=parseInt(e("#facetYears").val())||0,"/"+this.lang+this.apiUrl+this.node+"?pageNum="+this.pageNum+"&year="+this.year},initialize:function(){var t=e(document.getElementsByTagName("html"))[0];this.node=t.dataset.apinode,this.lang=t.dataset.apilanguage,this.apiUrl=e("#LoadMoreUrl").val(),null!=this.urlParam("year")&&e("#facetYears").val(this.urlParam("year"))},getNextPageNumber:function(){return 0===this.initialPageNumber&&(this.initialPageNumber=1,null!=this.urlParam("pageNum")&&(this.initialPageNumber=parseInt(this.urlParam("pageNum")))),this.initialPageNumber+=1},resetPageNumber:function(){this.initialPageNumber=0},urlParam:function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.href);return null==t?null:decodeURI(t[1])||0}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.PressReleaseListingPage=t.View.extend({template:this.$("#pressrelease-list-template").html(),events:{'click [name="loadmore"]':"getPressReleases",'change [name="facetYears"]':"getFacetPressReleases"},initialize:function(){console.log("View: CHR.views.PressReleaseListingPage -> loaded"),this.$pressReleaseContainer=this.$(".pressRelease-container"),this.$loadMore=this.$('[name="loadmore"]')},getPressReleases:function(){var e=this;this.model.fetch({success:function(t){e.renderPressReleases(),!1===e.model.get("ShowLoadMore")?e.disableLoadMoreButton():e.enableLoadMoreButton(),e.updateQueryStringParam("pageNum",t.pageNum),e.updateQueryStringParam("year",t.year)},error:function(){}})},getFacetPressReleases:function(){var e=this;this.$pressReleaseContainer.empty(),this.model.resetPageNumber(),this.updateQueryStringParam("pageNum",0),this.model.fetch({success:function(t){e.renderPressReleases(),!1===e.model.get("ShowLoadMore")?e.disableLoadMoreButton():e.enableLoadMoreButton(),e.updateQueryStringParam("pageNum",t.pageNum),e.updateQueryStringParam("year",t.year)},error:function(){}})},renderPressReleases:function(){var e=this;return console.log("mapping"),this.toRenderDom=this.model.attributes.PressReleases.map(function(t){return e.renderPressRelease(t)}),this.$pressReleaseContainer.append(this.toRenderDom)},renderPressRelease:function(e){return _.template(this.template)(e)},disableLoadMoreButton:function(){this.$loadMore.hide()},enableLoadMoreButton:function(){this.$loadMore.show()},updateQueryStringParam:function(e,t){var n=[location.protocol,"//",location.host,location.pathname].join(""),i=document.location.search,r=e+"="+t,o="?"+r;i&&(keyRegex=new RegExp("([?&])"+e+"[^&]*"),o=null!==i.match(keyRegex)?i.replace(keyRegex,"$1"+r):i+"&"+r),window.history.pushState({},"",n+o)}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.helpCenterPageResults=t.View.extend({events:{"click article.tile.video":"showVideoLightBox"},initialize:function(){console.log("View: CHR.views.helpCenterPageResults -> Loaded")},showVideoLightBox:function(t){var n=e(t.target).closest("a").attr("href");if(n&&0!==n.lastIndexOf("/",0)){t.preventDefault();var i=e(t.target).find("h2").text(),r=n.substring(2),o=0===n.lastIndexOf("V",0)?"vimeo":"oculu",s=e("body");this.template=e("#"+o+"-tmpl").html(),e("#lightbox").remove();var a={Title:i,EmbedIdentifier:r};s.append(this.renderLightBox(a)),e("#lightbox").fadeIn(),e("#lightbox").click(function(){e(this).fadeOut(function(){this.remove()})})}},renderLightBox:function(e){return _.template(this.template)(e)}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.whitepaperFormBlock=t.View.extend({events:{},initialize:function(){this.watchEnvokeLeadSumbission(),console.log("View: CHR.views.whitepaperFormBlock -> loaded")},watchEnvokeLeadSumbission:function(){var e=this,t=!1;window._nvkForm=window._nvkForm||[],window._nvkForm.push({on:"success",callback:function(t){console.log(t.contact.id),e.CallbackFormSubmit(t.contact.id)}}),window._nvkForm.push({on:"load",updateField:function(n){return setTimeout(function(){t||(e.$el.find("#whitepaperEnvokeForm select.form-control").wrap('<div class="styled-select"></div>'),e.$el.find("#whitepaperEnvokeForm .nvkSubmitButton button").append('<i class="fas fa-download"></i>'),e.$el.find("#whitepaperEnvokeForm .form-group").length>0&&e.$el.addClass("anonymous"),t=!0)},50),null}})},CallbackFormSubmit:function(t){var n=e(document.getElementsByTagName("html"))[0];this.node=n.dataset.apinode,this.lang=n.dataset.apilanguage;var i=e("#whitepaperEnvokeForm").data("api-url"),r="/"+this.lang+i+this.node;e.ajax({url:r,data:{contactId:t},type:"GET"})}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.videoMedia=t.View.extend({events:{"click img.thumbnail":"showLightBox"},initialize:function(){console.log("View: CHR.views.videoMedia -> loaded")},showLightBox:function(t){t.preventDefault();var n=e(t.target).closest(".video-player"),i=n.data("type")||"vimeo",r=n.data("video-id")||"",o=n.data("video-title")||"",s=e("body");this.template=e("#"+i+"-tmpl").html(),e("#lightbox").remove();var a={Title:o,EmbedIdentifier:r};s.append(this.renderLightBox(a)),s.addClass("hide-scrollbar"),e("#lightbox").fadeIn(),e("#lightbox").click(function(){e(this).fadeOut(function(){this.remove(),s.removeClass("hide-scrollbar")})})},renderLightBox:function(e){return _.template(this.template)(e)}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.models.warrantyChecker=t.Model.extend({SerialNumber:"",url:function(){return this.serialNumber=e("input[name='SerialNumber']").val(),"/"+this.lang+this.apiUrl+this.node+"?serialNumber="+this.serialNumber},initialize:function(){var t=e(document.getElementsByTagName("html"))[0];this.lang=t.dataset.apilanguage,this.node=t.dataset.apinode,this.apiUrl=e("#warrantyForm").attr("data-api-url")},validation:{SerialNumber:{required:!0}}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.warrantyChecker=t.View.extend({template:this.$("#warranty-status-template").html(),events:{'change input[name="SerialNumber"]':"inputChange","click .button":"submitForm",'keyup input[name="SerialNumber"]':"checkEnterKey"},initialize:function(){this.selectsAreStyled=!1,this.warrantyForm=this.$("#warrantyForm"),this.$eventContainer=this.$(".warranty-status"),this.$statusErrorMessage=this.$(".status-error"),this.$errorMessage=this.$("#errorMessage"),t.Validation.bind(this,{valid:function(e,t){var n=e.$("[name="+t+"]").closest(".field");n.removeClass("error"),n.find("span").removeClass("field-validation-error"),n.find("span").html("").addClass("field-validation-valid")},invalid:function(e,t,n){var i=e.$("[name="+t+"]").closest(".field");i.addClass("error"),i.find("span").removeClass("field-validation-valid"),i.find("span").html(n).addClass("field-validation-error")}}),this.warrantyForm.attr("onsubmit","return false;"),console.log("View: CHR.views.warrantyCheckerBlock -> loaded")},checkEnterKey:function(e){switch(e.which){case 13:e.preventDefault(),this.$el.find("form#warrantyForm .button").click()}},inputChange:function(t){var n=e(t.target).val(),i=t.target.name;this.model.set(i,n),this.model.isValid(i)},submitForm:function(){var e=this;this.model.isValid(!0)?this.model.fetch({success:function(t){e.renderEvents(),e.$statusErrorMessage.hide(),e.$eventContainer.show()},error:function(t){e.$eventContainer.hide(),e.$statusErrorMessage.show()}}):event.preventDefault()},renderEvents:function(){this.$eventContainer.html(""),this.model.set({Expired:!1});var e=new Date(this.model.get("CoverageStatus"));return Date.now()>e.getTime()&&this.model.set({Expired:!0}),this.toRenderDom=this.renderEvent(this.model.attributes),this.$eventContainer.append(this.toRenderDom)},renderEvent:function(e){return _.template(this.template)(e)}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.models.orProductInformation=t.Model.extend({Key:0,Group:"",Model:"",Quantity:0,initialize:function(){},validation:{Key:{required:!0,range:[0,100]},Code:[{required:!0,msg:function(){return t.Validation.messages.requiredModel}}],Model:[{required:!0,msg:function(){return t.Validation.messages.requiredModel}}],Group:[{required:!0,msg:function(){return t.Validation.messages.requiredGroup}}],Quantity:[{required:!0,msg:function(){return t.Validation.messages.requiredQuantity}},{range:[1,100]}]}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.orProductInformation=t.View.extend({template:this.$("#line-item-template").html(),events:{"click #addLineItem":"addProductInformationLineItem","click #removeLineItems":"removeProductInformationLineItems","change #ProductInformation_Group":"setupModels"},initialize:function(){this.$lineItemsTable=this.$(".line-items > table"),this.$categorySelect=this.$("#ProductInformation_Group"),this.$modelsDdl=this.$("#ModelDdl"),this.$groupSelect=this.$("#ProductInformation_Group"),this.$modelSelect=this.$("#ProductInformation_Model"),this.$quantityInput=this.$("#ProductInformation_Quantity"),_.extend(t.Validation.messages,{requiredGroup:this.$('[name="Group"]').attr("requiredMessage"),requiredCode:this.$('[name="Model"]').attr("requiredMessage"),requiredModel:this.$('[name="Model"]').attr("requiredMessage"),requiredQuantity:this.$('[name="Quantity"]').attr("requiredMessage")}),t.Validation.bind(this,{valid:function(e,t){var n=e.$("[name="+t+"]").closest(".field");n.removeClass("error"),n.find("span").removeClass("field-validation-error"),n.find("span").html("").addClass("field-validation-valid")},invalid:function(e,t,n){var i=e.$("[name="+t+"]").closest(".field");i.addClass("error"),i.find("span").removeClass("field-validation-valid"),i.find("span").html(n).addClass("field-validation-error")}});var n=e(".field.error");if(n.length>0){var i=e(n[0]).offset().top-200;e("html, body").scrollTop(i)}console.log("View: CHR.views.orProductInformation -> loaded")},addProductInformationLineItem:function(t){t.preventDefault(),e(".line-items").show(),this.model.set("Key",this.$lineItemsTable.find(".line-item").length),this.model.set("Group",this.$groupSelect.val()),this.model.set("Model",this.$modelSelect.find(":selected").text()),this.model.set("Code",this.$modelSelect.find(":selected").val()),this.model.set("Quantity",this.$quantityInput.val()),this.model.isValid(!0)&&!this.containsModel()&&this.$lineItemsTable.append(this.renderLineItem()),this.$lineItemsTable.find(".line-item").length<=0&&e(".line-items").hide()},removeProductInformationLineItems:function(e){e.preventDefault();var t=this.$lineItemsTable.find("input:checked").parent().parent();t&&t.remove(),this.refreshTable()},refreshTable:function(){var t=this,n="";this.$lineItemsTable.find(".line-item").each(function(i,r){t.model.set("Key",i),t.model.set("Code",e(r).find(".code").val()),t.model.set("Model",e(r).find(".model").val()),t.model.set("Quantity",e(r).find(".quantity").val()),n+=t.renderLineItem()}),n?(this.$lineItemsTable.find(".line-item").remove(),this.$lineItemsTable.append(n)):e(".line-items").hide()},renderLineItem:function(){return _.template(this.template)(this.model.attributes)},containsModel:function(){var t=this,n=!1;return e(".line-items > table").find(".line-item input.model").each(function(i,r){e(r).val()===t.model.get("Model")&&(n=!0)}),n},setupModels:function(){var t=e(document.getElementsByTagName("html"))[0],n=t.dataset.apinode,i=t.dataset.apilanguage,r=this.$modelsDdl.data("api-url"),o=this.$modelSelect,s=this.$("#stateDefaultOption");e.ajax({url:"/"+i+r+"/"+n,data:{categoryId:this.$categorySelect.val()},type:"GET"}).done(function(t){t.length>0?(o.empty(),o.append(e("<option />").val("").text(s.val())),e.each(t,function(){o.append(e("<option />").val(this.Id).text(this.Name))})):o.empty()}).fail(function(e,t,n){console.log("error",e)})}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.models.orProjectInformation=t.Model.extend({ExpectedDelivery:"",initialize:function(){},validation:{ExpectedDelivery:{dateValidator:"date",msg:function(){return t.Validation.messages.validExpectedDelivery}}}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.orProjectInformation=t.View.extend({events:{"change #win-probability":"refreshWinLabel","change #ProjectInformation_ExpectedDelivery":"validateDate","keyup #ProjectInformation_ApproxDealPrice":"onKeyUpDealPrice","click #win-probability":"onClickWinProbability"},initialize:function(){this.$winProbabilityRange=this.$("#win-probability"),this.$winProbabilityLabel=this.$winProbabilityRange.parent().find("label"),this.$originalText=this.$winProbabilityLabel.text(),this.$expectedDelivery=this.$("#ProjectInformation_ExpectedDelivery"),this.$dealPrice=this.$("#ProjectInformation_ApproxDealPrice"),this.$winProbabilityRange.on("input",function(){e(this).trigger("change")}),this.refreshWinLabel(),_.extend(t.Validation.messages,{validExpectedDelivery:this.$expectedDelivery.attr("validationMessage")}),_.extend(Backbone.Validation.validators,{dateValidator:function(e,t,n,i){var r=new Date(e);return r instanceof Date&&!isNaN(r.valueOf())?null:"error"}}),t.Validation.bind(this,{valid:function(e,t){var n=e.$("[name="+t+"]").closest(".field");n.removeClass("error"),n.find("span").removeClass("field-validation-error"),n.find("span").html("").addClass("field-validation-valid")},invalid:function(e,t,n){var i=e.$("[name="+t+"]").closest(".field");i.addClass("error"),i.find("span").removeClass("field-validation-valid"),i.find("span").html(n).addClass("field-validation-error")}}),this.$expectedDelivery.datepicker({format:this.$expectedDelivery.attr("dateFormat")}),console.log("View: CHR.views.orProjectInformation -> loaded")},refreshWinLabel:function(){this.$winProbabilityRange.val()%5==0&&this.$winProbabilityLabel.text(this.$originalText+":  "+this.$winProbabilityRange.val()+"%")},onClickWinProbability:function(){var e=this.$winProbabilityRange.val(),t=5*Math.ceil(e/5);this.$winProbabilityLabel.text(this.$originalText+":  "+t+"%")},validateDate:function(){this.model.set("ExpectedDelivery",this.$expectedDelivery.val()),this.model.isValid(!0)},onKeyUpDealPrice:function(){var e,t=this.$dealPrice.val();(e=t,new RegExp("^[0-9]+$").test(e))?this.$dealPrice.val(""+t):this.$dealPrice.val(""+t.slice(0,-1))}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.models.ProductRegInformation=t.Model.extend({Key:0,ModelNumber:"",SerialNumber:"",initialize:function(){},validation:{Key:{required:!0,range:[0,100]},ModelNumber:[{required:!0,msg:function(){return t.Validation.messages.requiredModelNumber}}],SerialNumber:[{required:!0,msg:function(){return t.Validation.messages.requiredSerialNumber}}]}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.ProductRegInformation=t.View.extend({template:this.$("#line-item-template").html(),events:{"click #addLineItem":"addProductInformationLineItem","click #removeLineItems":"removeProductInformationLineItems"},initialize:function(){e("#ProductCategory").select2(),e("#ProductUsedOn").select2(),this.$lineItemsTable=this.$(".line-items > table"),this.$modelNumber=this.$("#Products_ModelNumber"),this.$serialNumber=this.$("#Products_SerialNumber"),_.extend(t.Validation.messages,{requiredModelNumber:this.$('[name="ModelNumber"]').attr("requiredMessage"),requiredSerialNumber:this.$('[name="SerialNumber"]').attr("requiredMessage")}),t.Validation.bind(this,{valid:function(e,t){var n=e.$("[name="+t+"]").closest(".field");n.removeClass("error"),n.find("span").removeClass("field-validation-error"),n.find("span").html("").addClass("field-validation-valid")},invalid:function(e,t,n){var i=e.$("[name="+t+"]").closest(".field");i.addClass("error"),i.find("span").removeClass("field-validation-valid"),i.find("span").html(n).addClass("field-validation-error")}});var n=e(".field.error");if(n.length>0){var i=e(n[0]).offset().top-200;e("html, body").scrollTop(i)}console.log("View: CHR.views.ProductRegInformation -> loaded")},addProductInformationLineItem:function(t){t.preventDefault(),e(".line-items").show(),this.model.set("Key",this.$lineItemsTable.find(".line-item").length),this.model.set("ModelNumber",this.$modelNumber.val()),this.model.set("SerialNumber",this.$serialNumber.val()),this.model.isValid(!0)&&!this.containsModel()&&(this.$lineItemsTable.append(this.renderLineItem()),this.$modelNumber.val(""),this.$serialNumber.val("")),this.$lineItemsTable.find(".line-item").length<=0&&e(".line-items").hide()},removeProductInformationLineItems:function(e){e.preventDefault();var t=this.$lineItemsTable.find("input:checked").parent().parent();t&&t.remove(),this.refreshTable()},refreshTable:function(){var t=this,n="";this.$lineItemsTable.find(".line-item").each(function(i,r){t.model.set("Key",i),t.model.set("ModelNumber",e(r).find(".model").val()),t.model.set("SerialNumber",e(r).find(".serial").val()),n+=t.renderLineItem()}),n?(this.$lineItemsTable.find(".line-item").remove(),this.$lineItemsTable.append(n)):e(".line-items").hide()},renderLineItem:function(){return _.template(this.template)(this.model.attributes)},containsModel:function(){var t=this,n=!1;return e(".line-items > table").find(".line-item input.serial").each(function(i,r){e(r).val()===t.model.get("SerialNumber")&&(n=!0)}),n}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.models.changePassword=t.Model.extend({OldPassword:"",Password:"",ConfirmPassword:"",initialize:function(){},validation:{OldPassword:{required:!0,msg:function(){return t.Validation.messages.requiredPassword}},Password:[{required:!0,msg:function(){return t.Validation.messages.requiredPassword}},{minLength:8,pattern:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[~!@#$%^&*_\-+=`|(){}[\]:;,.?/])/}],ConfirmPassword:[{required:!0,msg:function(){return t.Validation.messages.requiredConfirmPassword}},{equalTo:"Password"}]}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.changePassword=t.View.extend({events:{'change [type="password"]':"passwordChange",'click [type="submit"]':"validateForm"},initialize:function(){console.log("View: CHR.views.changePassword -> Loaded"),this.$('[name="OldPassword"]').length||this.model.set("OldPassword",!1),_.extend(t.Validation.messages,{equalTo:this.$('[name="ConfirmPassword"]').attr("compareMessage"),requiredPassword:this.$('[name="Password"]').attr("requiredMessage"),requiredConfirmPassword:this.$('[name="ConfirmPassword"]').attr("requiredMessage"),inlinePattern:this.$('[name="Password"]').attr("validationMessage")}),t.Validation.bind(this,{valid:function(e,t){var n=e.$("[name="+t+"]").closest(".field");n.removeClass("error"),n.find("span").removeClass("field-validation-error"),n.find("span").html("").addClass("field-validation-valid")},invalid:function(e,t,n){var i=e.$("[name="+t+"]").closest(".field");i.addClass("error"),i.find("span").removeClass("field-validation-valid"),i.find("span").html(n).addClass("field-validation-error")}})},passwordChange:function(t){var n=e(t.target).val(),i=t.target.name;this.model.set(i,n),this.model.isValid(i)},validateForm:function(e){this.model.isValid(!0)||e.preventDefault()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.accessoryRelatedProduct=t.View.extend({events:{"click a.collapse-button":"showCategory"},initialize:function(){console.log("View: CHR.views.accessoryRelatedProduct -> Loaded"),this.$(".action-button.arrow").append('<i class="fas fa-long-arrow-alt-right"></i>'),this.expandFirstElement()},expandFirstElement:function(){e(e(".comp-accessory-related-products .comp-accesory-related a")[0]).click()},showCategory:function(t){t.preventDefault();var n=e(t.target).attr("data-target"),i=e(".comp-accessory-related-products .comp-accesory-related").find('[data-name="'+n+'"]');if(i.is(":visible"))return e(t.target).text("+"),e(t.target).removeClass("minus"),void i.slideToggle();e(t.target).text("-"),e(t.target).addClass("minus"),i.slideToggle()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.models.productDownloads=t.Model.extend({ProductId:"",LanguageId:"",url:function(){return this.languageId=parseInt(e("select[name='Language']").val())||0,"/"+this.lang+this.apiUrl+this.node+"?languageId="+this.languageId},initialize:function(){var t=e(document.getElementsByTagName("html"))[0];this.lang=t.dataset.apilanguage,this.node=t.dataset.apinode,this.apiUrl=e("#downloads").attr("data-api-url")}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.productDownloads=t.View.extend({template:this.$("#product-downloads-template").html(),events:{"click a.collapse-button":"showCategory","change #Language":"languageSelected"},initialize:function(){console.log("View: CHR.views.productDownloads -> Loaded"),this.$eventContainer=this.$(".downloads-items"),this.$statusErrorMessage=this.$(".status-error")},expandFirstElement:function(){e(e(".comp-product-downloads .comp-download a")[0]).click()},showCategory:function(t){t.preventDefault();var n=e(t.target).attr("data-target"),i=e(".comp-product-downloads .comp-download").find('[data-name="'+n+'"]');if(i.is(":visible"))return e(t.target).text("+"),e(t.target).removeClass("minus"),void i.slideToggle();e(t.target).text("-"),e(t.target).addClass("minus"),i.slideToggle()},languageSelected:function(e){var t=this;e.preventDefault(),this.model.fetch({success:function(e){t.renderEvents(),t.expandFirstElement()},error:function(e){t.$statusErrorMessage.show()}})},renderEvents:function(){var e=this;return this.$eventContainer.html(""),this.toRenderDom=this.model.attributes.Downloads.map(function(t){return e.renderEvent(t)}),this.$eventContainer.append(this.toRenderDom)},renderEvent:function(e){return _.template(this.template)(e)}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.productImages=t.View.extend({events:{"click img.image-target":"openModal"},initialize:function(){var t=e("#images-container");t.viewer({title:!1,fullscreen:!1,toolbar:{zoomIn:1,zoomOut:1,oneToOne:3,reset:1,prev:1,play:{show:0},next:1,rotateLeft:0,rotateRight:0,flipHorizontal:0,flipVertical:0}});t.data("viewer");console.log("View: CHR.views.productImages -> Loaded")},openModal:function(t){t.preventDefault(),e("#images-container").viewer()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.producttabs=t.View.extend({sections:[],tabs:["overview","specifications","accessories","downloads","images","products","pricing","promotion"],events:{"click span":"scrollToSection"},initialize:function(){console.log("View: CHR.views.producttabs -> Loaded"),this.currScrollPos=e(n).scrollTop(),this.listenTo(bbGEvent,"global:scroll",function(e){this.toggleStickyHeader(),this.highLightSection()}.bind(this)),this.setupSections(),this.startRouter();var t=this;t.scrollToTab(),history.scrollRestoration="manual",window.onpopstate=function(){t.scrollToTab()}},startRouter:function(){this.router=new i.routers.searchPage,this.listenTo(bbGEvent,globals.events.search.queryStringParsed,this.render.bind(this));var e=window.location.pathname,t=this.getLastNodePath(e);this.sections.indexOf(t)>=0&&(e=e.replace("/"+t,"/")),Backbone.history.start({pushState:!0,root:e})},scrollToSection:function(t){t.preventDefault();var n=e(t.target).attr("data-tab"),i=e("#"+n).offset().top-240;e("html, body").scrollTop(i),this.navigate(n)},scrollToTab:function(){var n=t.history.location.pathname;if(n){var i=this.getLastNodePath(n);if(-1!==e.inArray(i,this.tabs)){var r=e("#"+i).offset().top-240;e("html, body").scrollTop(r),this.navigate(i)}}},toggleStickyHeader:function(){this.currScrollPos=e(n).scrollTop(),this.scrollLimit=e(".product-hero").outerHeight(),this.$navPartial=e(".tabs-wrapper"),this.currScrollPos>this.scrollLimit?(e(".tiny-hero").show(),this.$navPartial.addClass("sticky")):(e(".tiny-hero").hide(),this.$navPartial.removeClass("sticky"))},setupSections:function(){var t=[];e("#productTabs").children().each(function(n,i){t.push(e(i).attr("data-tab"))}),this.sections=t},highLightSection:function(){var t="";e.each(this.sections,function(n,i){var r=e("#productTabs").offset().top,o=e("#"+i).offset();if(o){var s=o.top-240;s&&r>=s&&(t=i)}}),e("span[data-tab]").removeClass("hover"),e("span[data-tab='"+t+"']").addClass("hover"),this.navigate(t)},navigate:function(e){var n=t.history.location.pathname;n&&(this.getLastNodePath(n)!==e&&this.router.navigate("./"+e,{trigger:!1}))},getLastNodePath:function(e){var t=e.split("/");return(t=t.filter(Boolean))?t[t.length-1]:""}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.productPromotion=t.View.extend({events:{},initialize:function(){console.log("View: CHR.views.productPromotion -> Loaded")}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.productAccesories=t.View.extend({events:{"click a.collapse-button":"showCategory"},initialize:function(){console.log("View: CHR.views.productAccesories -> Loaded"),this.$(".action-button.arrow").append('<i class="fas fa-long-arrow-alt-right"></i>')},expandFirstElement:function(){e(e(".comp-product-accesories .comp-accesory-category a")[0]).click()},showCategory:function(t){t.preventDefault();var n=e(t.target).attr("data-target"),i=e(".comp-product-accesories .comp-accesory-category").find('[data-name="'+n+'"]');if(i.is(":visible"))return e(t.target).text("+"),e(t.target).removeClass("minus"),void i.slideToggle();e(t.target).text("-"),e(t.target).addClass("minus"),i.slideToggle()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.productSpecifications=t.View.extend({MAX_ITEMS_TO_SHOW:6,events:{"click a.button":"showSpecifications"},initialize:function(){this.$specItems=this.$(".spec-item"),this.$loadMore=this.$(".load-more-specs"),this.$specItems.length>this.MAX_ITEMS_TO_SHOW&&(this.$specItems.slice(0,this.MAX_ITEMS_TO_SHOW).show(),this.$loadMore.show()),this.cleanTextBeak(),console.log("View: CHR.views.productSpecifications -> Loaded")},cleanTextBeak:function(){var t=["li","p"];this.$el.find(".spec-item").each(function(n,i){t.forEach(function(t){e(i).find(t).each(function(){var t=e(this);t.text(String(t.text()).replace(/\u200B/g,""))})})})},showSpecifications:function(e){e.preventDefault(),this.$specItems.length>this.MAX_ITEMS_TO_SHOW&&(this.$specItems.slice(this.MAX_ITEMS_TO_SHOW).slideToggle(),this.$loadMore.hide())}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.models.relatedProductsPartial=t.Model.extend({initialPageNumber:0,url:function(){var e=this.getNextPageNumber();return"/"+this.lang+this.apiUrl+this.node+"?pageNum="+e},initialize:function(){var t=e(document.getElementsByTagName("html"))[0];this.node=t.dataset.apinode,this.lang=t.dataset.apilanguage,this.apiUrl=e("#LoadMore").data("api-url")},getNextPageNumber:function(){return 0===this.initialPageNumber&&(this.initialPageNumber=parseInt(e("#pageNumber").val())),this.initialPageNumber+=1}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views=i.views||{},i.views.relatedProductsPartial=t.View.extend({template:this.$("#related-products-template").html(),events:{'click [name="loadmore"]':"getRelatedProducts"},initialize:function(){console.log("View: CHR.views.relatedProductsPartial -> Loaded",this),this.$eventContainer=this.$('[name="related-products-container"]'),this.$loadMore=this.$('[name="loadmore"]')},getRelatedProducts:function(){var e=this;this.model.fetch({success:function(t){e.renderEvents(),!1===e.model.get("ShowLoadMore")&&e.disableLoadMoreButton()},error:function(){}})},renderEvents:function(){var e=this;return console.log("mapping"),this.toRenderDom=this.model.attributes.RelatedProductCards.map(function(t){return e.renderEvent(t)}),this.$eventContainer.append(this.toRenderDom)},renderEvent:function(e){return _.template(this.template)(e)},disableLoadMoreButton:function(){this.$loadMore.hide()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.cookieConsent=t.View.extend({events:{'click [name="cookiePolicyConsent"]':"cookiePolicyConsent",'click [name="cookiePolicyReject"]':"cookiePolicyReject"},initialize:function(){var t=e(document.getElementsByTagName("html"))[0];this.node=t.dataset.apinode,this.lang=t.dataset.apilanguage,this.apiConsentUrl=e("#cookieConsentUrl").val(),this.consentUrl="/"+this.lang+this.apiConsentUrl+this.node,this.apiRejectUrl=e("#cookieRejectUrl").val(),this.rejectUrl="/"+this.lang+this.apiRejectUrl+this.node,console.log("View: CHR.views.cookieConsent -> loaded")},cookiePolicyConsent:function(t){e.getJSON(this.consentUrl,function(e){}),this.$el.fadeOut()},cookiePolicyReject:function(t){e.getJSON(this.rejectUrl,function(e){}),this.$el.fadeOut()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.dropdownMenu=t.View.extend({events:{"click .dropdown-menu li":"processClick","touchdown .dropdown-trigger":"openDropdown","mouseenter .dropdown-trigger":"openDropdown","mouseleave .dropdown-trigger":"closeDropdownIfMouseNotEntered","mouseenter .dropdown-menu":"dropdownEntered","mouseleave .dropdown-menu":"closeDropdown","change .mobile-select select":"processSelect"},DROPDOWN_MENU_WIDTH:180,DROPDOWN_ARROW_HEIGHT:12,initialize:function(){var t=this;this.$triggerEl=this.$el.find(".dropdown-trigger"),this.$menuEl=this.$el.find(".dropdown-menu"),this.$mainNav=e("#main-nav"),this.$dropdownEntered=!1,bbGEvent.on("global:resize",function(){t.closeDropdown()}),bbGEvent.on("global:click",function(e){t.$el.is(e.target)||0!==t.$el.has(e.target).length||t.closeDropdown()}),bbGEvent.on("dropdown:closeAll",function(){console.log("dropdown:closeAll"),t.closeDropdown()}),this.$menuEl.css({width:this.DROPDOWN_MENU_WIDTH}),this.$triggerEl.hasClass("open")&&this.$menuEl.css({display:"block"}),console.log("View: CHR.views.dropdownMenu -> loaded")},openDropdown:function(){console.log("openDropdown"),bbGEvent.trigger("dropdown:closeAll"),this.$menuEl.toggleClass("dark-theme",this.$mainNav.hasClass("open")),this.$triggerEl.toggleClass("open");var e=Math.round(this.$triggerEl.offset().left)-Math.round(this.DROPDOWN_MENU_WIDTH/2),t=Math.round(this.$triggerEl.offset().top)+this.$triggerEl.height()+this.DROPDOWN_ARROW_HEIGHT;e+=Math.round(this.$triggerEl.width()/2),this.$menuEl.css({display:"block"}),this.$menuEl.offset({left:e,top:t})},closeDropdown:function(){console.log("closeDropdown"),this.$triggerEl.removeClass("open"),this.$menuEl.fadeOut(300),this.$dropdownEntered=!1},dropdownEntered:function(){console.log("dropdownEntered"),this.$dropdownEntered=!0},closeDropdownIfMouseNotEntered:function(){console.log("closeDropdownIfMouseNotEntered");var e=this;setTimeout(function(){e.$dropdownEntered||e.closeDropdown()},500)},processClick:function(e){this.trigger("menuItem:click",e)},processSelect:function(e){this.trigger("select:change",e)}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.footer=t.View.extend({events:{"click .link-to-top":"scrollToTop"},SLIDE_CLASS:"slide-in",initialize:function(){console.log("View: CHR.views.footer -> loaded"),this.$backToTopArrow=this.$(".link-to-top"),window.onscroll=this.showHideBackToTop.bind(this),this.showHideBackToTop()},scrollToTop:function(){e("html, body").animate({scrollTop:"0px"})},showHideBackToTop:function(){window.innerHeight<document.body.offsetHeight-2&&window.innerHeight+window.pageYOffset>=document.body.offsetHeight-2?this.$backToTopArrow.addClass(this.SLIDE_CLASS):this.$backToTopArrow.hasClass(this.SLIDE_CLASS)&&this.$backToTopArrow.removeClass(this.SLIDE_CLASS)}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i,r){"use strict";i.views=i.views||{},i.views.header=n.View.extend({events:{"mouseleave #account-link-trigger":"handleAccountLinkLeave","click #account-link-mobile-trigger":"handleAccountLinkMobileClick"},initialize:function(t){this.$body=r("body"),this.currScrollPos=r(e).scrollTop(),this.scrollLimit=this.$el.find(".header-actions").outerHeight(),this.$navPartial=this.$el.find(".comp-navigationPartial"),this.listenTo(bbGEvent,"global:scroll",function(e){this.toggleStickyHeader()}.bind(this)),console.log("View: CHR.views.header -> loaded")},handleAccountLinkMobileClick:function(e){var t=r(e.currentTarget),n=t.hasClass("open");if(r(e.target).hasClass("close-target"))return e.preventDefault(),void t.removeClass("open");if(!n){e.preventDefault();var i=r("#main-nav").height();t.addClass("open").find(".account-link-dropdown-mobile").height(i)}},handleAccountLinkClick:function(e){r(e.currentTarget).toggleClass("open")},handleAccountLinkLeave:function(e){r(e.currentTarget).removeClass("open")},toggleStickyHeader:function(){this.$navPartial.hasClass("open")||(this.currScrollPos=r(e).scrollTop(),this.currScrollPos>this.scrollLimit?this.$navPartial.addClass("sticky"):this.$navPartial.removeClass("sticky"))}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i,r){"use strict";i.views=i.views||{},i.views.navigationPartial=n.View.extend({events:{"click .search-toggle":"searchToggle","click .has-children":"bindSubnavTriggers","click .nav-back":"bindBackTriggers","click #mobile-nav-trigger":"bindMobileNavTrigger","click #nav-close-trigger":"bindNavCloseTrigger"},initialize:function(e){var t=this;this.$menu=this.$el.find("#main-nav"),this.$body=r("body"),this.$searchLayer=r(".search-layer"),enquire.register(i.config.meqiaQueries.md,{match:function(){bbGEvent.off("global:resize")},unmatch:function(){bbGEvent.on("global:resize",function(){t.bindNavCloseTrigger()})}}),console.log("View: CHR.views.navigationPartial -> loaded")},bindSubnavTriggers:function(e){var t=r(e.target);enquire.register(i.config.meqiaQueries.md,{match:function(){e.clientX>240&&(e.preventDefault(),t.addClass("active"))},unmatch:function(){return!0}})},bindBackTriggers:function(e){var t=r(e.target);enquire.register(i.config.meqiaQueries.md,{match:function(){e.preventDefault();t.closest(".cat-group").prev(".active").removeClass("active")}})},bindMobileNavTrigger:function(e){e.preventDefault(),this.$menu.toggleClass("offset",this.$searchLayer.hasClass("open")),this.$searchLayer.toggleClass("dark-theme",this.$searchLayer.hasClass("open")),this.$body.addClass("modal-open"),this.$menu.addClass("open"),this.$el.addClass("open"),r(".content-container").css("display","none"),r(".comp-hero").css("display","none"),r("footer").css("display","none")},bindNavCloseTrigger:function(e){var t=this;e&&e.preventDefault(),this.$el.find(".top-level-item a.has-children").removeClass("active"),this.$searchLayer.removeClass("dark-theme"),this.$el.removeClass("open"),this.$menu.removeClass("open"),this.$body.removeClass("modal-open"),this.$menu.on("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){t.$menu.off()}),r(".content-container").css("display",""),r(".comp-hero").css("display",""),r("footer").css("display","")},searchToggle:function(e){e.preventDefault(),bbGEvent.trigger("search:toggle")}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i){i.views.hero=t.View.extend({MAX_SCREEN_WIDTH:960,initialize:function(){this.$overlayBox=this.$("aside"),this.$promoText=this.$(".promo-title"),this.render(),this.listenTo(bbGEvent,"global:resize",function(){this.render()}.bind(this)),console.log("View: CHR.views.hero -> Loaded")},render:function(){this.heroHeight=this.$el.outerHeight(),this.heroPaddingTop=parseInt(this.$el.css("padding-top")),this.overlayHeight=this.$overlayBox.outerHeight();var e=this.calculateMargin();screen.width>this.MAX_SCREEN_WIDTH&&this.$el.css("margin-bottom",e),this.checkTextOverflow()},checkTextOverflow:function(){if(this.$promoText[0])for(;this.$promoText[0].scrollWidth>this.$promoText.innerWidth();){var e=parseFloat(window.getComputedStyle(this.$promoText[0]).getPropertyValue("font-size"));this.$promoText[0].style.fontSize=e-1+"px"}},calculateMargin:function(){return this.overlayHeight-(this.heroHeight-this.heroPaddingTop)}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.languageNavigation=t.View.extend({initialize:function(){var e=this,t=new i.views.dropdownMenu({el:this.$el});this.listenTo(t,"menuItem:click",function(t){e.processClick(t)}),this.listenTo(t,"select:change",function(t){e.processClick(t)}),this.verifyDevice(),console.log("View: CHR.views.languageNavigation -> loaded")},verifyDevice:function(){var e=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),t=navigator.userAgent.toLowerCase().indexOf("android")>-1;(e||t)&&(this.$el.find(".dropdown-trigger").css("display","none"),this.$el.find(".mobile-select").css("display","block"))},processClick:function(t){var n=e(t.target).parents("form");switch(t.target.nodeName){case"LI":n.find(".currentLanguageId").val(e(t.target).data("value")),e(t.target).closest(".dropdown-menu").hide();break;case"SELECT":n.find(".currentLanguageId").val(e(t.target).val())}n.submit()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.socialSharing=t.View.extend({events:{"click .trigger":"toggleShareIcons","click li>a":"launchSharingWindow"},initialize:function(){this.canonicalUrl=encodeURIComponent(e('meta[property="og:url"]').attr("content")),this.seoDescription=encodeURIComponent(e('meta[property="og:description"]').attr("content")),this.seoTitle=encodeURIComponent(e('meta[property="og:title"]').attr("content")),this.apiLanguage=encodeURIComponent(e('meta[property="og:locale"]').attr("content")),this.mainImageUrl=encodeURIComponent(e('meta[property="og:image"]').attr("content")),this.shareIconsVisible=!1,this.transInProgress=!1,this.shareIcons=this.$("li"),this.leftPos=0,this.iconWidth=27,this.spaceBtwIcons=5,console.log("View: CHR.views.socialSharing -> Loaded")},toggleShareIcons:function(t){var n=this;t.preventDefault(),this.transInProgress||(this.shareIconsVisible?(this.transInProgress=!0,_.each(this.shareIcons,function(t){e(t).css("left",0-n.iconWidth)}),this.shareIcons.last().on("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){n.leftPos=0,n.shareIconsVisible=!1,n.transInProgress=!1})):(this.transInProgress=!0,_.each(this.shareIcons,function(t){e(t).css("left",n.leftPos),n.leftPos+=n.iconWidth+n.spaceBtwIcons}),this.shareIcons.last().on("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){n.shareIconsVisible=!0,n.transInProgress=!1})))},launchSharingWindow:function(t){t.preventDefault();var n=e(t.target).closest("a"),i=this.constructSocialUrl(n.data("url"));window.open(i,"Share","menubar=0,resizable=0,width=500,height=500")},constructSocialUrl:function(e){return e=(e=(e=(e=(e=e.replace("${canonicalUrl}",this.canonicalUrl)).replace("${SeoTitle}",this.seoTitle)).replace("${SeoDescription}",this.seoDescription)).replace("${ApiLanguage}",this.apiLanguage)).replace("${MainImageUrl}",this.mainImageUrl)}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.courseRegistrationForm=t.View.extend({events:{},initialize:function(){console.log("View: CHR.views.courseRegistrationForm -> loaded"),this.$radioButtons=this.$(".FormChoice input[type=radio]"),this.updateRadioButtons()},updateRadioButtons:function(){this.$radioButtons&&(this.$radioButtons.each(function(){e(this).prop("type","checkbox")}),e(".FormChoice input:checkbox").click(function(){var t="input:checkbox[name='"+e(this).attr("name")+"']";e(t).prop("checked",!1),e(this).prop("checked",!0)}))}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i,r){"use strict";r.models=r.models||{},r.models.relatedResourcesPartial=t.Model.extend({apiUrl:"",contentRef:"",url:function(){var e=this.contentRef;return"/"+this.lang+this.apiUrl+this.node+"?contentRef="+e},initialize:function(){var t=e(document.getElementsByTagName("html"))[0];this.node=t.dataset.apinode,this.lang=t.dataset.apilanguage}})}(jQuery,Backbone,window,document,chr=CHR||{}),function(e,t,n,i,r){"use strict";r.views=r.views||{},r.views.relatedResourcesPartial=t.View.extend({template:e("#related-resources-tmpl").html(),events:{'click [name="loadmore"]':"getRelatedResources","click .video-player-title":"showLightBox"},initialize:function(){console.log("View: CHR.views.relatedResourcesPartial -> Loaded",this),this.$eventContainer=this.$el.find('[name="related-resources-container"]'),this.$loadMore=this.$el.find('[name="loadmore"]'),this.model.apiUrl=this.$el.find('[name="loadmore"]').data("api-url"),this.model.contentRef=this.$el.find("#contentRef").val(),this.$el.find(".video-player-title").css({cursor:"pointer"})},getRelatedResources:function(){var e=this,t=new r.views.videoMedia;this.model.fetch({success:function(n){e.renderEvents(),e.disableLoadMoreButton(),e.$eventContainer.find("img.thumbnail").on("click",function(e){t.showLightBox(e)})},error:function(){}})},renderEvents:function(){var e=this;return this.toRenderDom=this.model.attributes.RelatedResources.map(function(t){return e.renderEvent(t)}),this.$eventContainer.append(this.toRenderDom)},renderEvent:function(e){return _.template(this.template)(e)},disableLoadMoreButton:function(){this.$loadMore.hide()},showLightBox:function(t){t.preventDefault();var n=e(t.target).parent().find(".video-player"),i=n.data("type")||"vimeo",r=n.data("video-id")||"",o=n.data("video-title")||"",s=e("body");this.template=e("#"+i+"-tmpl").html(),e("#lightbox").remove();var a={Title:o,EmbedIdentifier:r};s.append(this.renderLightBox(a)),s.addClass("hide-scrollbar"),e("#lightbox").fadeIn(),e("#lightbox").click(function(){e(this).fadeOut(function(){this.remove(),s.removeClass("hide-scrollbar")})})},renderLightBox:function(e){return _.template(this.template)(e)}})}(jQuery,Backbone,window,document,chr=CHR||{}),function(e,t,n,i,r){"use strict";i.models=i.models||{},i.models.searchResult=n.Model.extend({initialize:function(){}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i,r){"use strict";i.collections=i.collections||{},e.config=e.config||{},e.config.search=e.config.search||{},globals.registerEpiserverVariables(),i.collections.searchResults=n.Collection.extend({url:"/"+i.config.lang+e.config.search.apiUrl+i.config.node,model:i.models.searchResult,parse:function(e){return this.total=e.Total,this.facets=e.FacetGroups,this.ShowLoadMore=e.ShowLoadMore,e.Items}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i,r){"use strict";i.models=i.models||{},i.models.searchPage=n.Model.extend({initialize:function(){this.set("totalitems",e.config.search.totalItems),this.set("type",e.config.search.type),this.set("facetids",e.config.search.facets)},setQuery:function(e){if(e.query&&this.set("query",e.query),this.set("pageNum",e.pageNum),this.set("pagesize",e.pagesize),e.keyword&&this.set("keyword",e.keyword),e.facetids)if(r.isArray(e.facetids))this.set("facetids",e.facetids);else{var t=[];t.push(e.facetids),this.set("facetids",t)}else this.set("facetids",[])},getQuery:function(){var e={pageNum:this.get("pageNum"),pagesize:this.get("pagesize"),facetids:this.get("facetids")};return this.get("query")&&(e.query=this.get("query")),this.get("facetids")&&(e.facetids=this.get("facetids")),this.get("keyword")&&(e.keyword=this.get("keyword")),this.get("type")&&(e.type=this.get("type")),e},isChecked:function(e){return _.contains(this.get("facetids"),e)},setFacetGroups:function(e){var t=this.get("facetids");r.each(e,function(e,n){r.each(n.Facets,function(e,n){r.inArray(n.Id,t)>=0&&0===n.Count&&t.splice(r.inArray(n.Id,t),1)})}),this.set("facetids",t),this.set("facetGroups",e)},setTotalItems:function(e){this.set("totalitems",e)},updateFacets:function(e){if("radio"===e.type){_.contains(this.get("facetids"),e.id)&&(r('input[data-id="'+e.id+'"]').prop("checked",!1),e.selected=!1);var t=e.id.split(":"),n=t[0]+":"+t[1],i=_.reject(this.get("facetids"),function(e){return e.startsWith(n)});this.set("facetids",i)}e.selected?this.get("facetids").push(e.id):this.set("facetids",_.without(this.get("facetids"),e.id)),this.set("pageNum",1)},updatePageSize:function(e){this.set("pagesize",e),this.set("pageNum",1)},navigateToPage:function(e){this.set("pageNum",e)},setKeyword:function(e){this.set("keyword",e),this.set("pageNum",1)}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i,r){"use strict";i.routers=i.routers||{};var o=n.Router;o.prototype._extractParameters=function(e,t){var n=e.exec(t).slice(1);return _.map(n,function(e,t){return n.length,e||null})},i.routers.searchPage=o.extend({PAGE_SIZE:window.config.search.pagesize,FACETS:window.config.search.facets,routes:{"?*queryString":"parseQueryString","":"passThrough"},initialize:function(){this.listenTo(bbGEvent,globals.events.productseries.navigateToProductTab,this.passThrough.bind(this))},passThrough:function(){bbGEvent.trigger(globals.events.search.queryStringParsed,{pageNum:1,pagesize:this.PAGE_SIZE,facets:this.FACETS})},parseQueryString:function(e){var t={};_.each(_.map(e.split(/&/g),function(e,t){var n,i=e.split("="),r={};i.length>=1&&(2===i.length&&(n=i[1]),r[i[0]]=decodeURIComponent(n.replace(/\+/g," ")));return r}),function(e){var n=Object.keys(e)[0];if(t[n])if(Array.isArray(t[n]))t[n].push(e[n]);else{var i=t[n];t[n]=[i,e[n]]}else _.extend(t,e)}),t.pageNum||(t.pageNum=1),t.pagesize||(t.pagesize=this.PAGE_SIZE),bbGEvent.trigger(globals.events.search.queryStringParsed,t)}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i,r){"use strict";i.views=i.views||{},i.views.facets=n.View.extend({events:{"click input[type=checkbox]":"facetToggle","click input[type=radio]":"facetToggle","click dt":"filterToggle","click span.toggle-all-filters":"toggleAllFilters"},initialize:function(e){this.parent=e.parent,this.facetTemplate=_.template(r("#facet-group-tmpl").html()),this.$templateTargetEl=this.$(".wrapper"),this.$facetGroupContainer=r(".facet-group-container"),this.allFiltersContainer=this.$(".selectable-facets"),this.$facetGroupContainer.each(function(){r(this).find(".facet")[0];var e=r(this).find("dt")[0],t=r(this).find(".group.open");if(r(e).hasClass("default-closed"))return r(e).addClass("icon-closed"),void r(t).hide();r(e).addClass("icon-open")}),console.log("View: chr.views.facets -> loaded")},render:function(){var e=[];r(".icon-closed").children(".facet-group").each(function(t,n){e.push(n.innerHTML)}),this.$templateTargetEl.html(this.facetTemplate(_.extend({isDataFiltered:this.renderAppliedFilters(this.model.attributes),isChecked:function(e){return _.contains(this.model.get("facetids"),e)}.bind(this),isClosed:function(t){return _.contains(e,t)}},_.clone(this.model.attributes)))),this.allFiltersContainer=this.$(".selectable-facets"),this.delegateEvents()},renderAppliedFilters:function(e){var t=0;return _.each(e.facetGroups,function(e){_.each(e.Facets,function(e){!0===e.Checked&&t++})}),t>0},facetToggle:function(e){var t=r(e.currentTarget);bbGEvent.trigger(globals.events.search.facetClick,{id:t.data("id"),selected:t.is(":checked"),type:t[0].type})},filterToggle:function(e){var t=r(e.currentTarget);0!==t.next(".group").length&&(t.toggleClass("icon-open icon-closed"),t.next(".group").slideToggle(200,"linear"))},toggleAllFilters:function(e){this.allFiltersContainer.slideToggle(function(){r(e.target).toggleClass("closed")})}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i,r){"use strict";i.views=i.views||{},i.views.keywordFilter=n.View.extend({events:{"click button[type=submit]":"searchKeyword",'keyup input[name="keyword"]':"searchKeyword"},initialize:function(e){this.parent=e.parent},searchKeyword:function(e){if(e.preventDefault(),"click"!==e.type&&13!==e.keyCode)return!1;var t=this.$('input[name="keyword"]').val();bbGEvent.trigger(globals.events.search.keywordSearch,t)}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i,r){"use strict";i.views=i.views||{},i.views.searchPage=n.View.extend({events:{"click .button.refine":"toggleFilterPanel","click a.close-panel":"toggleFilterPanel","click #LoadMore":"loadMore"},initialize:function(){this.$facets=this.$el.find(".search-facets"),this.$keywordFilter=this.$el.find(".keyword-filter"),this.$results=this.$el.find(".search-results"),this.$noResults=this.$el.find(".search-no-results"),this.$loadMoreBtn=this.$("#LoadMore"),this.$resultTitle=this.$el.find(".resultsHeader"),this.resultType=this.$el.data("result-type")||"case-study",this.collection=new i.collections.searchResults,this.listenTo(bbGEvent,globals.events.search.facetClick,this.updateFacets.bind(this)),this.listenTo(bbGEvent,globals.events.search.changePageSize,this.updatePagesize.bind(this)),this.listenTo(bbGEvent,globals.events.search.navigateToPage,this.navigateToPage.bind(this)),this.listenTo(bbGEvent,globals.events.search.keywordSearch,this.keywordSearch.bind(this)),this.$el.on("click",".remove",this.removeFilter),console.log("View: CHR.views.searchPage -> loaded"),this.startRouter()},startRouter:function(){this.router=new i.routers.searchPage,this.listenTo(bbGEvent,globals.events.search.queryStringParsed,this.render.bind(this)),Backbone.history.start({pushState:!0,root:window.location.pathname})},render:function(t){this.facetView?_.delay(this.navigate.bind(this),200):(t.facetids||(t.facetids=e.config.search.facets),this.model.setQuery(t),this.renderFacets(),this.renderKeywordFilter())},updateFacets:function(e){this.model.updateFacets(e),this.fetchResults()},updatePagesize:function(e){this.model.updatePageSize(e),this.fetchResults()},navigateToPage:function(e){this.model.navigateToPage(e.pageNum),this.fetchResults(e.source)},keywordSearch:function(e){this.model.setKeyword(e),this.fetchResults()},removeFilter:function(e){var t=r(e.target).parent("LI"),n=t.data("id");t.fadeOut(function(){r('input[data-id="'+n+'"]').trigger("click"),this.remove()})},fetchResults:function(e){this.navigate(),this.collection.fetch({data:this.model.getQuery(),success:function(t){this.collection.trigger("change"),0===this.collection.total?this.showNoResults():(this.renderResults(t.ShowLoadMore,e),this.showResults())}.bind(this),error:function(e){throw new Error("api search error, response: "+e)}})},navigate:function(){var e=this.model.getQuery(),t=Object.keys(e).map(function(t){if(Array.isArray(e[t])){var n="";return _.each(e[t],function(e){n+=t+"="+encodeURIComponent(e)+"&"}),n.slice(0,-1)}return t+"="+encodeURIComponent(e[t])}).filter(function(e){return 0===e||e}).join("&");this.router.navigate("?"+t,{trigger:!1})},renderFacets:function(){this.facetView=new i.views.facets({el:this.$facets,model:this.model,parent:this})},renderKeywordFilter:function(){this.keywordFilterView=new i.views.keywordFilter({el:this.$keywordFilter,model:this.model,parent:this})},renderResults:function(e,t){this.model.setFacetGroups(this.collection.facets),this.model.setTotalItems(this.collection.total),this.navigate(),this.facetView.render(),"loadMore"!==t&&this.$results.empty(),this.collection.each(function(e){var t=this.renderSingleResult(e);this.$results.append(t)},this),!0===e?this.$loadMoreBtn.show():this.$loadMoreBtn.hide()},renderSingleResult:function(e){return _.template(r("#"+this.resultType+"-tmpl").html())(_.extend({isEmpty:function(e){return!e||""===e},isVimeo:function(e){return 0===e.lastIndexOf("V",0)},isOculu:function(e){return 0===e.lastIndexOf("O",0)},getVideoName:function(e){return 0===e.lastIndexOf("O",0)?"oculu":"vimeo"},getEmbedIdentifier:function(e){return e.substring(2)}},_.clone(e.attributes)))},showNoResults:function(){this.$results.hide(),this.$noResults.show()},showResults:function(){this.$results.show(),this.$noResults.hide(),this.updateResultCount()},updateResultCount:function(){0!==this.$resultTitle.length&&this.$resultTitle.html(String.format(e.config.search.resultFormat,this.model.get("totalitems")))},loadMore:function(){var e=parseInt(this.model.get("pageNum"));e+=1,bbGEvent.trigger(globals.events.search.navigateToPage,{pageNum:e,source:"loadMore"})}})}(window,document,Backbone,CHR=CHR||{},jQuery),function(e,t,n,i){i.views.globalSearch=t.View.extend({events:{"click .search-close":"closeSearchLayer","keydown .search-terms":"submitIfEnter"},initialize:function(){var t=this;this.$navPartial=e(".comp-navigationPartial"),this.$headerLogo=this.$navPartial.find("figure"),this.$searchLayer=this.$el.find(".search-layer"),this.$searchForm=this.$el.find(".search-form"),this.$mainNav=e("#main-nav"),this.device="desktop",enquire.register(CHR.config.meqiaQueries.md,{match:function(){bbGEvent.off("global:resize"),t.device="mobile"},unmatch:function(){t.device="desktop",bbGEvent.on("global:resize",function(){t.closeSearchLayer()})}}),bbGEvent.on("search:close",function(){t.closeSearchLayer()}),bbGEvent.on("search:toggle",function(){t.searchToggle()}),console.log("View: CHR.views.globalSearch -> loaded")},searchToggle:function(){return this.$searchLayer.hasClass("open")?this.closeSearchLayer():this.openSearchLayer()},openSearchLayer:function(){var e=this;this.$searchLayer.hasClass("in-progress")||(this.$searchLayer.addClass("in-progress"),"desktop"===this.device?(this.$el.css("visibility","visible"),this.$searchLayer.addClass("open"),this.$searchLayer.on("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){e.$searchLayer.find(".search-terms").focus(),e.$searchLayer.removeClass("in-progress")})):(this.$el.css("visibility","visible"),this.$mainNav.hasClass("open")&&(this.$searchLayer.addClass("dark-theme"),this.$mainNav.addClass("offset")),this.$searchLayer.addClass("open"),this.$searchLayer.on("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){e.$searchLayer.find(".search-terms").focus(),e.$searchLayer.removeClass("in-progress")})))},closeSearchLayer:function(){var e=this;this.$searchLayer.hasClass("in-progress")||(this.$searchLayer.addClass("in-progress"),this.$searchLayer.removeClass("open"),this.$mainNav.removeClass("offset"),this.$searchLayer.on("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){e.$searchLayer.find(".search-terms").val(""),e.$searchLayer.find(".search-terms").blur(),e.$searchLayer.removeClass("dark-theme"),e.$searchLayer.off(),e.$searchLayer.removeClass("in-progress"),e.$el.css("visibility","hidden")}))},submitIfEnter:function(e){13===e.keyCode&&this.$searchForm.submit()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t,n,i){i.views.helpCenterSearchHeading=t.View.extend({events:{"keydown .search-terms":"hideSmileyIcon","keyup .search-terms":"showOrHideSmileyIcon","change .search-terms":"showOrHideSmileyIcon"},initialize:function(){this.$smileyIcon=this.$(".smiley-icon"),console.log("View: CHR.views.helpCenterSearchHeading -> loaded")},showOrHideSmileyIcon:function(e){this.$("input.search-terms").val()?this.$smileyIcon.hide():this.$smileyIcon.show()},hideSmileyIcon:function(e){this.$smileyIcon.hide()}})}(jQuery,Backbone,window,chr=CHR||{}),function(e,t){"use strict";window.loader=new function(){var n=null,i="",r="",o="",s=[],a=null;return{init:function(){n=e("[data-view]"),_.each(n,function(n){if(i=e(n).attr("data-view"),r=e(n).attr("data-model"),o=e(n).attr("data-collection"),void 0===t.views[i])throw new Error("No view found for "+i);void 0===o?s.push(new t.views[i]({el:e(n),model:void 0!==t.models[r]?new t.models[r]:null})):((a=_.find(t.dataLoader.collections,function(e){return e.name===o}))||console.error("Probably caused by not found collection with name "+o+" please check that the name matches an actual package. Available packages:",t.dataLoader.collections),s.push(new CHR.views[i]({el:e(n),collection:a.object})))})},viewInstances:s}},window.loader.init()}(jQuery,CHR);
//# sourceMappingURL=christie.min.js.map
;
