if(function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function($,t){"use strict";var e=[],C=$.document,i=Object.getPrototypeOf,a=e.slice,g=e.concat,l=e.push,o=e.indexOf,n={},r=n.toString,m=n.hasOwnProperty,s=m.toString,c=s.call(Object),v={},y=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},b=function(t){return null!=t&&t===t.window},u={type:!0,src:!0,noModule:!0};function w(t,e,n){var i,o=(e=e||C).createElement("script");if(o.text=t,n)for(i in u)n[i]&&(o[i]=n[i]);e.head.appendChild(o).parentNode.removeChild(o)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?n[r.call(t)]||"object":typeof t}var T=function(t,e){return new T.fn.init(t,e)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!y(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&0+~]|"+L+")"+L+"*"),V=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(F),B=new RegExp("^"+q+"$"),Q={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),tt=function(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){_()},ot=yt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{O.apply(e=P.call(y.childNodes),y.childNodes),e[y.childNodes.length].nodeType}catch(n){O={apply:e.length?function(t,e){D.apply(t,P.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function rt(t,e,n,i){var o,r,s,a,l,c,u,h=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!i&&((e?e.ownerDocument||e:y)!==$&&_(e),e=e||$,C)){if(11!==d&&(l=K.exec(t)))if(o=l[1]){if(9===d){if(!(s=e.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(h&&(s=h.getElementById(o))&&v(e,s)&&s.id===o)return n.push(s),n}else{if(l[2])return O.apply(n,e.getElementsByTagName(t)),n;if((o=l[3])&&p.getElementsByClassName&&e.getElementsByClassName)return O.apply(n,e.getElementsByClassName(o)),n}if(p.qsa&&!E[t+" "]&&(!m||!m.test(t))){if(1!==d)h=e,u=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(et,nt):e.setAttribute("id",a=T),r=(c=f(t)).length;r--;)c[r]="#"+a+" "+vt(c[r]);u=c.join(","),h=J.test(t)&>(e.parentNode)||e}if(u)try{return O.apply(n,h.querySelectorAll(u)),n}catch(t){}finally{a===T&&e.removeAttribute("id")}}}return g(t.replace(z,"$1"),e,n,i)}function st(){var i=[];return function t(e,n){return i.push(e+" ")>w.cacheLength&&delete t[i.shift()],t[e+" "]=n}}function at(t){return t[T]=!0,t}function lt(t){var e=$.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var n=t.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=e}function ut(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ht(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function dt(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function pt(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&&ot(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ft(s){return at(function(r){return r=+r,at(function(t,e){for(var n,i=s([],t.length,r),o=i.length;o--;)t[n=i[o]]&&(t[n]=!(e[n]=t[n]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=rt.support={},o=rt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},_=rt.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:y;return i!==$&&9===i.nodeType&&i.documentElement&&(s=($=i).documentElement,C=!o($),y!==$&&(n=$.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",it,!1):n.attachEvent&&n.attachEvent("onunload",it)),p.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=lt(function(t){return t.appendChild($.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=G.test($.getElementsByClassName),p.getById=lt(function(t){return s.appendChild(t).id=T,!$.getElementsByName||!$.getElementsByName(T).length}),p.getById?(w.filter.ID=function(t){var e=t.replace(Z,tt);return function(t){return t.getAttribute("id")===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&C){var n=e.getElementById(t);return n?[n]:[]}}):(w.filter.ID=function(t){var n=t.replace(Z,tt);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&C){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),w.find.TAG=p.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):p.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},w.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&C)return e.getElementsByClassName(t)},a=[],m=[],(p.qsa=G.test($.querySelectorAll))&&(lt(function(t){s.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+L+"*(?:value|"+R+")"),t.querySelectorAll("[id~="+T+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||m.push(".#.+[+~]")}),lt(function(t){t.innerHTML="";var e=$.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+L+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),s.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(p.matchesSelector=G.test(u=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&<(function(t){p.disconnectedMatch=u.call(t,"*"),u.call(t,"[s!='']:x"),a.push("!=",F)}),m=m.length&&new RegExp(m.join("|")),a=a.length&&new RegExp(a.join("|")),e=G.test(s.compareDocumentPosition),v=e||G.test(s.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},k=e?function(t,e){if(t===e)return c=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===n?t===$||t.ownerDocument===y&&v(y,t)?-1:e===$||e.ownerDocument===y&&v(y,e)?1:l?N(l,t)-N(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,s=[t],a=[e];if(!o||!r)return t===$?-1:e===$?1:o?-1:r?1:l?N(l,t)-N(l,e):0;if(o===r)return ut(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ut(s[i],a[i]):s[i]===y?-1:a[i]===y?1:0}),$},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==$&&_(t),e=e.replace(V,"='$1']"),p.matchesSelector&&C&&!E[e+" "]&&(!a||!a.test(e))&&(!m||!m.test(e)))try{var n=u.call(t,e);if(n||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(Z,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Z,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&U.test(n)&&(e=f(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Z,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=d[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&d(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,o){return function(t){var e=rt.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===o:"!="===i?e!==o:"^="===i?o&&0===e.indexOf(o):"*="===i?o&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(t,n,i){return y(n)?T.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?T.grep(t,function(t){return t===n!==i}):"string"!=typeof n?T.grep(t,function(t){return-1)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||j,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:D.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:C,!0)),k.test(i[1])&&T.isPlainObject(e))for(i in e)y(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(o=C.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):y(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,j=T(C);var O=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function N(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter(function(){for(var t=0;t\x20\t\r\n\f]+)/i,ut=/^$|^module$|\/(?:java|ecma)script/i,ht={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function dt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&E(t,e)?T.merge([t],n):n}function pt(t,e){for(var n=0,i=t.length;nx",v.noCloneChecked=!!ft.cloneNode(!0).lastChild.defaultValue;var yt=C.documentElement,bt=/^key/,wt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xt=/^([^.]*)(?:\.(.+)|)/;function _t(){return!0}function $t(){return!1}function Ct(){try{return C.activeElement}catch(t){}}function Tt(t,e,n,i,o,r){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Tt(t,a,n,i,e[a],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=$t;else if(!o)return t;return 1===r&&(s=o,(o=function(t){return T().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=T.guid++)),t.each(function(){T.event.add(this,e,o,i,n)})}T.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,c,u,h,d,p,f,g,m=Y.get(e);if(m)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&T.find.matchesSelector(yt,o),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(R)||[""]).length;c--;)p=g=(a=xt.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(h=T.event.special[p]||{},p=(o?h.delegateType:h.bindType)||p,h=T.event.special[p]||{},u=T.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&T.expr.match.needsContext.test(o),namespace:f.join(".")},r),(d=l[p])||((d=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,i,f,s)||e.addEventListener&&e.addEventListener(p,s)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),T.event.global[p]=!0)},remove:function(t,e,n,i,o){var r,s,a,l,c,u,h,d,p,f,g,m=Y.hasData(t)&&Y.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(R)||[""]).length;c--;)if(p=g=(a=xt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=T.event.special[p]||{},d=l[p=(i?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=d.length;r--;)u=d[r],!o&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(r,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,f,m.handle)||T.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)T.event.remove(t,p+e[c],n,i,!0);T.isEmptyObject(l)&&Y.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,s,a=T.event.fix(t),l=new Array(arguments.length),c=(Y.get(this,"events")||{})[a.type]||[],u=T.event.special[a.type]||{};for(l[0]=a,e=1;e\x20\t\r\n\f]*)[^>]*)\/>/gi,Et=/\s*$/g;function jt(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ot(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Pt(t,e){var n,i,o,r,s,a,l,c;if(1===e.nodeType){if(Y.hasData(t)&&(r=Y.access(t),s=Y.set(e,r),c=r.events))for(o in delete s.handle,s.events={},c)for(n=0,i=c[o].length;n")},clone:function(t,e,n){var i,o,r,s,a,l,c,u=t.cloneNode(!0),h=T.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(s=dt(u),i=0,o=(r=dt(t)).length;i").prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(t){i.remove(),o=null,t&&e("error"===t.type?404:200,t.type)}),C.head.appendChild(i[0])},abort:function(){o&&o()}}});var He,We=[],Ve=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||T.expando+"_"+we++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,n){var i,o,r,s=!1!==t.jsonp&&(Ve.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ve.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=y(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ve,"$1"+i):!1!==t.jsonp&&(t.url+=(xe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return r||T.error(i+" was not called"),r[0]},t.dataTypes[0]="json",o=$[i],$[i]=function(){r=arguments},n.always(function(){void 0===o?T($).removeProp(i):$[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,We.push(i)),r&&y(o)&&o(r[0]),r=o=void 0}),"script"}),v.createHTMLDocument=((He=C.implementation.createHTMLDocument("").body).innerHTML="
",2===He.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((i=(e=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,e.head.appendChild(i)):e=C),r=!n&&[],(o=k.exec(t))?[e.createElement(o[1])]:(o=vt([t],e,r),r&&r.length&&T(r).remove(),T.merge([],o.childNodes)));var i,o,r},T.fn.load=function(t,e,n){var i,o,r,s=this,a=t.indexOf(" ");return-1").append(T.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.expr.pseudos.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(t,e,n){var i,o,r,s,a,l,c=T.css(t,"position"),u=T(t),h={};"static"===c&&(t.style.position="relative"),a=u.offset(),r=T.css(t,"top"),l=T.css(t,"left"),("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(s=(i=u.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),y(e)&&(e=e.call(t,n,T.extend({},a))),null!=e.top&&(h.top=e.top-a.top+s),null!=e.left&&(h.left=e.left-a.left+o),"using"in e?e.using.call(t,h):u.css(h)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.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 t,e,n,i=this[0],o={top:0,left:0};if("fixed"===T.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((o=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),o.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-T.css(i,"marginTop",!0),left:e.left-o.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||yt})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,o){var r="pageYOffset"===o;T.fn[e]=function(t){return H(this,function(t,e,n){var i;if(b(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n)return i?i[o]:t[e];i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):t[e]=n},e,t,arguments.length)}}),T.each(["top","left"],function(t,n){T.cssHooks[n]=It(v.pixelPosition,function(t,e){if(e)return e=Ft(t,n),Lt.test(e)?T(t).position()[n]+"px":e})}),T.each({Height:"height",Width:"width"},function(s,a){T.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,r){T.fn[r]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),o=i||(!0===t||!0===e?"margin":"border");return H(this,function(t,e,n){var i;return b(t)?0===r.indexOf("outer")?t["inner"+s]:t.document.documentElement["client"+s]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+s],i["scroll"+s],t.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?T.css(t,e,o):T.style(t,e,n,o)},a,n?t:void 0,n)}})}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){T.fn[n]=function(t,e){return 0",a)||this.op(e,"<",s)&&this.op(e,">",a))&&l.push(n);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],s.prototype.initialize=function(){var t,e,n;if((this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&!0!==this.state.imagesLoaded)&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,n=this.$element.children(e).width(),t.length&&n<=0))return this.preloadAutoWidthImages(t),!1;this.$element.addClass("owl-loading"),this.$stage=l("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('
'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},s.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,n=-1,i=null;t?(l.each(t,function(t){t<=e&&n").addClass(this.settings.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},s.prototype.update=function(){for(var t=0,e=this._pipe.length,n=l.proxy(function(t){return this[t]},this._invalidated),i={};t",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(o=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),r=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),s=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,o+s),r+s)),(8",r[t+1]||e-o)&&(i="left"===this.state.direction?t+1:t),-1===i},this)),this.settings.loop||(this.op(n,">",r[this.minimum()])?i=n=this.minimum():this.op(n,"<",r[this.maximum()])&&(i=n=this.maximum())),i},s.prototype.animate=function(t){this.trigger("translate"),this.state.inMotion=0=n);)e=++o}else e=this._items.length-r.items;return e},s.prototype.minimum=function(t){return t?0:this._clones.length/2},s.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},s.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},s.prototype.clones=function(n){var e=this._clones.length/2,i=e+this._items.length,o=function(t){return t%2==0?i+t/2:e-(t+1)/2};return n===a?l.map(this._clones,function(t,e){return o(e)}):l.map(this._clones,function(t,e){return t===n?o(e):null})},s.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},s.prototype.coordinates=function(t){var e=null;return t===a?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[t-1]||0))/2*(this.settings.rtl?-1:1)):e=this._coordinates[t-1]||0,e)},s.prototype.duration=function(t,e,n){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(n||this.settings.smartSpeed)},s.prototype.to=function(t,e){if(this.settings.loop){var n=t-this.relative(this.current()),i=this.current(),o=this.current(),r=this.current()+n,s=o-r<0,a=this._clones.length+this._items.length;r=a-this.settings.items&&!0===s&&(i=o-this._items.length,this.reset(i)),c.clearTimeout(this.e._goToLoop),this.e._goToLoop=c.setTimeout(l.proxy(function(){this.speed(this.duration(this.current(),i+n,e)),this.current(i+n),this.update()},this),30)}else this.speed(this.duration(this.current(),t,e)),this.current(t),this.update()},s.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},s.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},s.prototype.transitionEnd=function(t){if(t!==a&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.state.inMotion=!1,this.trigger("translated")},s.prototype.viewport=function(){var t;if(this.options.responsiveBaseElement!==c)t=l(this.options.responsiveBaseElement).width();else if(c.innerWidth)t=c.innerWidth;else{if(!r.documentElement||!r.documentElement.clientWidth)throw"Can not detect viewport width.";t=r.documentElement.clientWidth}return t},s.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:l(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(l.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(l.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},s.prototype.add=function(t,e){e=e===a?this._items.length:this.normalize(e,!0),this.trigger("add",{content:t,position:e}),0===this._items.length||e===this._items.length?(this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:t,position:e})},s.prototype.remove=function(t){(t=this.normalize(t,!0))!==a&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},s.prototype.addTriggerableEvents=function(){var n=l.proxy(function(e,n){return l.proxy(function(t){t.relatedTarget!==this&&(this.suppress([n]),e.apply(this,[].slice.call(arguments,1)),this.release([n]))},this)},this);l.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},l.proxy(function(t,e){this.$element.on(t+".owl.carousel",n(e,t+".owl.carousel"))},this))},s.prototype.watchVisibility=function(){function t(t){return 0=n.length&&(o.state.imagesLoaded=!0,o.initialize())},s.src=r.attr("src")||r.attr("data-src")||r.attr("data-src-retina")})},s.prototype.destroy=function(){for(var t in this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),!1!==this.settings.responsive&&l(c).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd),this._plugins)this._plugins[t].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),l(r).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},s.prototype.op=function(t,e,n){var i=this.settings.rtl;switch(e){case"<":return i?n":return i?t=":return i?t<=n:n<=t;case"<=":return i?n<=t:t<=n}},s.prototype.on=function(t,e,n,i){t.addEventListener?t.addEventListener(e,n,i):t.attachEvent&&t.attachEvent("on"+e,n)},s.prototype.off=function(t,e,n,i){t.removeEventListener?t.removeEventListener(e,n,i):t.detachEvent&&t.detachEvent("on"+e,n)},s.prototype.trigger=function(t,e,n){var i={item:{count:this._items.length,index:this.current()}},o=l.camelCase(l.grep(["on",t,n],function(t){return t}).join("-").toLowerCase()),r=l.Event([t,"owl",n||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},i,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(r)}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[o]&&this.settings[o].apply(this,r)),r},s.prototype.suppress=function(t){l.each(t,l.proxy(function(t,e){this._supress[e]=!0},this))},s.prototype.release=function(t){l.each(t,l.proxy(function(t,e){delete this._supress[e]},this))},s.prototype.browserSupport=function(){if(this.support3d=t(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0],this.support3d){this.transformVendor=t(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0];this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][t(["transition","WebkitTransition","MozTransition","OTransition"])[1]],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=c.orientation},l.fn.owlCarousel=function(t){return this.each(function(){l(this).data("owlCarousel")||l(this).data("owlCarousel",new s(this,t))})},l.fn.owlCarousel.Constructor=s}(window.Zepto||window.jQuery,window,document),function(a,r,t,e){var n=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var e=this._core.settings,n=e.center&&Math.ceil(e.items/2)||e.items,i=e.center&&-1*n||0,o=(t.property&&t.property.value||this._core.current())+i,r=this._core.clones().length,s=a.proxy(function(t,e){this.load(e)},this);i++
',n=l.lazyLoad?'
':'
',e.after(n),e.after('
')};if(e.wrap('
"),this._core.settings.lazyLoad&&(s="data-src",a="owl-lazy"),r.length)return c(r.attr(s)),r.remove(),!1;"youtube"===t.type?(i="http://img.youtube.com/vi/"+t.id+"/hqdefault.jpg",c(i)):"vimeo"===t.type&&u.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){i=t[0].thumbnail_large,c(i)}})},i.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},i.prototype.play=function(t){this._core.trigger("play",null,"video"),this._playing&&this.stop();var e,n,i=u(t.target||t.srcElement),o=i.closest("."+this._core.settings.itemClass),r=this._videos[o.attr("data-video")],s=r.width||"100%",a=r.height||this._core.$stage.height();"youtube"===r.type?e='':"vimeo"===r.type&&(e=''),o.addClass("owl-video-playing"),this._playing=o,n=u('
'+e+"
"),i.after(n)},i.prototype.isInFullScreen=function(){var t=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return t&&u(t).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(t&&this._fullscreen&&this._playing)&&(this._fullscreen?this._fullscreen=!1:!this._playing||this._core.state.orientation===e.orientation||(this._core.state.orientation=e.orientation,!1))},i.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},u.fn.owlCarousel.Constructor.Plugins.Video=i}(window.Zepto||window.jQuery,window,document),function(s,t,e,n){var i=function(t){this.core=t,this.core.options=s.extend({},i.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":s.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":s.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":s.proxy(function(t){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};i.Defaults={animateOut:!1,animateIn:!1},i.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var t,e=s.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),i=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.css({left:t+"px"}).addClass("animated owl-animated-out").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e)),o&&i.addClass("animated owl-animated-in").addClass(o).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e))}},i.prototype.clear=function(t){s(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},s.fn.owlCarousel.Constructor.Plugins.Animate=i}(window.Zepto||window.jQuery,window,document),function(e,n,i,t){var o=function(t){this.core=t,this.core.options=e.extend({},o.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":e.proxy(function(){this.autoplay()},this),"play.owl.autoplay":e.proxy(function(t,e,n){this.play(e,n)},this),"stop.owl.autoplay":e.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(n.clearInterval(this.interval),this.interval=n.setInterval(e.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):n.clearInterval(this.interval)},o.prototype.play=function(t,e){!0!==i.hidden&&(this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion||(!1!==this.core.settings.autoplay?this.core.next(this.core.settings.autoplaySpeed):n.clearInterval(this.interval)))},o.prototype.stop=function(){n.clearInterval(this.interval)},o.prototype.pause=function(){n.clearInterval(this.interval)},o.prototype.destroy=function(){var t,e;for(t in n.clearInterval(this.interval),this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(r,t,e,n){"use strict";var i=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":r.proxy(function(t){this._core.settings.dotsData&&this._templates.push(r(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":r.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,0,r(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":r.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":r.proxy(function(t){if("position"==t.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),n=this._core.maximum(),i=this._core.minimum();t.data=t.property.value>n?n<=e?i:n:t.property.value").addClass(n.dotClass).append(r("")).prop("outerHTML")]),n.navContainer&&n.dotsContainer||(this._controls.$container=r("
").addClass(n.controlsClass).appendTo(this.$element)),this._controls.$indicators=n.dotsContainer?r(n.dotsContainer):r("
").hide().addClass(n.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",r.proxy(function(t){var e=r(t.target).parent().is(this._controls.$indicators)?r(t.target).index():r(t.target).parent().index();t.preventDefault(),this.to(e,n.dotsSpeed)},this)),t=n.navContainer?r(n.navContainer):r("
").addClass(n.navContainerClass).prependTo(this._controls.$container),this._controls.$next=r("<"+n.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(n.navClass[0]).html(n.navText[0]).hide().prependTo(t).on("click",r.proxy(function(t){this.prev(n.navSpeed)},this)),this._controls.$next.addClass(n.navClass[1]).html(n.navText[1]).hide().appendTo(t).on("click",r.proxy(function(t){this.next(n.navSpeed)},this)),this._overrides)this._core[e]=r.proxy(this[e],this)},i.prototype.destroy=function(){var t,e,n,i;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},i.prototype.update=function(){var t,e,n=this._core.settings,i=this._core.clones().length/2,o=i+this._core.items().length,r=n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],t=i,e=0;t=this._core.maximum())),this._controls.$previous.toggle(i.nav),this._controls.$next.toggle(i.nav),i.dots){if(t=this._pages.length-this._controls.$indicators.children().length,i.dotData&&0!==t){for(e=0;e=e}).pop()},i.prototype.getPosition=function(t){var e,n,i=this._core.settings;return"page"==i.slideBy?(e=r.inArray(this.current(),this._pages),n=this._pages.length,t?++e:--e,e=this._pages[(e%n+n)%n].start):(e=this._core.relative(this._core.current()),n=this._core.items().length,t?e+=i.slideBy:e-=i.slideBy),e},i.prototype.next=function(t){r.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},i.prototype.prev=function(t){r.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},i.prototype.to=function(t,e,n){var i;n?r.proxy(this._overrides.to,this._core)(t,e):(i=this._pages.length,r.proxy(this._overrides.to,this._core)(this._pages[(t%i+i)%i].start,e))},r.fn.owlCarousel.Constructor.Plugins.Navigation=i}(window.Zepto||window.jQuery,window,document),function(n,i,t,e){"use strict";var o=function(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":n.proxy(function(){"URLHash"==this._core.settings.startPosition&&n(i).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":n.proxy(function(t){var e=n(t.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[e]=t.content},this)},this._core.options=n.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers),n(i).on("hashchange.owl.navigation",n.proxy(function(){var t=i.location.hash.substring(1),e=this._core.$stage.children(),n=this._hashes[t]&&e.index(this._hashes[t])||0;if(!t)return!1;this._core.to(n,!1,!0)},this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var t,e;for(t in n(i).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},n.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window,document),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||3this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(ndocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},m.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=g(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&g(g.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var r=i[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",a="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(t){return(t=g.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},m.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&g.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},m.prototype.enter=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState?void(e.hoverState="in"):(clearTimeout(e.timeout),e.hoverState="in",e.options.delay&&e.options.delay.show?void(e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)):e.show())},m.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},m.prototype.leave=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue())return clearTimeout(e.timeout),e.hoverState="out",e.options.delay&&e.options.delay.hide?void(e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)):e.hide()},m.prototype.show=function(){var t=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,i=this.tip(),o=this.getUID(this.type);this.setContent(),i.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&i.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,a=s.test(r);a&&(r=r.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=i[0].offsetWidth,u=i[0].offsetHeight;if(a){var h=r,d=this.getPosition(this.$viewport);r="bottom"==r&&l.bottom+u>d.bottom?"top":"top"==r&&l.top-ud.width?"left":"left"==r&&l.left-cs.top+s.height&&(o.top=s.top+s.height-l)}else{var c=e.left-r,u=e.left+r+n;cs.right&&(o.left=s.left+s.width-u)}return o},m.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},m.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=g(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(t){var e=this;t&&((e=g(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},m.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var t=g.fn.tooltip;g.fn.tooltip=function(i){return this.each(function(){var t=g(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new m(this,n)),"string"==typeof i&&e[i]())})},g.fn.tooltip.Constructor=m,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=t,this}}(jQuery),function(o){"use strict";var r=function(t,e){this.init("popover",t,e)};if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.3.7",r.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),r.prototype=o.extend({},o.fn.tooltip.Constructor.prototype),(r.prototype.constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=o.fn.popover;o.fn.popover=function(i){return this.each(function(){var t=o(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new r(this,n)),"string"==typeof i&&e[i]())})},o.fn.popover.Constructor=r,o.fn.popover.noConflict=function(){return o.fn.popover=t,this}}(jQuery),function(r){"use strict";function o(t,e){this.$body=r(document.body),this.$scrollElement=r(r(t).is(document.body)?window:t),this.options=r.extend({},o.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",r.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=r(this),e=t.data("bs.scrollspy"),n="object"==typeof i&&i;e||t.data("bs.scrollspy",e=new o(this,n)),"string"==typeof i&&e[i]()})}o.VERSION="3.3.7",o.DEFAULTS={offset:10},o.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},o.prototype.refresh=function(){var t=this,i="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),r.isWindow(this.$scrollElement[0])||(i="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=r(this),e=t.data("target")||t.attr("href"),n=/^#./.test(e)&&r(e);return n&&n.length&&n.is(":visible")&&[[n[i]().top+o,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},o.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,r=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return s!=(t=r[r.length-1])&&this.activate(t);if(s&&e=o[t]&&(void 0===o[t+1]||e .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var o=e.find("> .active"),r=n&&a.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);o.length&&r?o.one("bsTransitionEnd",i).emulateTransitionEnd(s.TRANSITION_DURATION):i(),o.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=s,a.fn.tab.noConflict=function(){return a.fn.tab=t,this};var n=function(t){t.preventDefault(),e.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(l){"use strict";function n(i){return this.each(function(){var t=l(this),e=t.data("bs.affix"),n="object"==typeof i&&i;e||t.data("bs.affix",e=new c(this,n)),"string"==typeof i&&e[i]()})}var c=function(t,e){this.options=l.extend({},c.DEFAULTS,e),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(t,e,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return o=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[s[n]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(l.prototype=o(t),n=new l,l.prototype=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var s=n(7).f,a=n(44),l=n(34),c=n(10),u=n(35),h=n(14),i=n(28),o=n(46),r=n(71),d=n(9),p=n(21).fastKey,f=n(15),g=d?"_s":"size",m=function(t,e){var n,i=p(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,r,n,i){var o=t(function(t,e){u(t,o,r,"_i"),t._t=r,t._i=a(null),t._f=void 0,t._l=void 0,t[g]=0,null!=e&&h(e,n,t[i],t)});return l(o.prototype,{clear:function(){for(var t=f(this,r),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var e=f(this,r),n=m(e,t);if(n){var i=n.n,o=n.p;delete e._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),e._f==n&&(e._f=i),e._l==n&&(e._l=o),e[g]--}return!!n},forEach:function(t){f(this,r);for(var e,n=c(t,1o;)s(i,n=e[o++])&&(~l(r,n)||r.push(n));return r}},function(t,e,n){var l=n(18),c=n(19),u=n(65);t.exports=function(a){return function(t,e,n){var i,o=l(t),r=c(o.length),s=u(n,r);if(a&&e!=e){for(;s=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(t,e,n){var i=n(0)("unscopables"),o=Array.prototype;null==o[i]&&n(11)(o,i,{}),t.exports=function(t){o[i][t]=!0}},function(t,e,n){"use strict";var i=n(47),o=n(15);t.exports=n(36)("Map",function(t){return function(){return t(this,0t.length)&&new RegExp("\\b"+s.str.escapeRegExp(e)+"\\b",n?"i":"").test(t)},s.str.containsWord=function(t,e,n){if(s.is.emptyString(t)||s.is.emptyString(e)||t.length")).data("value",this.value).contents().detach().end().append(this.format(this.value)),this._setClasses(this.$el),this._setStyle(this.$el),this.$detail=s("").addClass(this.row.classes.join(" ")).data("__FooTableCell__",this).append(s("")).append(s("")),this.created=!0)},collapse:function(){this.created&&(this.$detail.children("th").html(this.column.title),this.$el.clone().attr("id",this.$el.attr("id")?this.$el.attr("id")+"-detail":void 0).css("display","table-cell").html("").append(this.$el.contents().detach()).replaceAll(this.$detail.children("td").first()),a.is.jq(this.$detail.parent())||this.$detail.appendTo(this.row.$details.find(".footable-details > tbody")))},restore:function(){if(this.created){if(a.is.jq(this.$detail.parent())){var t=this.$detail.children("td").first();this.$el.attr("class",t.attr("class")).attr("style",t.attr("style")).css("display",this.column.hidden||!this.column.visible?"none":"table-cell").append(t.contents().detach())}this.$detail.detach()}},parse:function(){return this.column.parser.call(this.column,this.$el,this.ft.o)},format:function(t){return this.column.formatter.call(this.column,t,this.ft.o,this.row.value)},val:function(t,e,n){if(a.is.undef(t))return this.value;var i=a.is.hash(t)&&a.is.hash(t.options)&&a.is.defined(t.value);if(this.o=s.extend(!0,{classes:this.classes,style:this.style},i?t.options:{}),this.value=i?t.value:t,this.classes=a.is.array(this.o.classes)?this.o.classes:a.is.string(this.o.classes)?this.o.classes.match(/\S+/g):[],this.style=a.is.hash(this.o.style)?this.o.style:a.is.string(this.o.style)?a.css2json(this.o.style):{},n=!a.is.boolean(n)||n,this.created&&n){this.$el.data("value",this.value).empty();var o=this.$detail.children("td").first().empty(),r=a.is.jq(this.$detail.parent())?o:this.$el;r.append(this.format(this.value)),this._setClasses(r),this._setStyle(r),a.is.boolean(e)&&!e||this.row.draw()}},_setClasses:function(t){var e=!a.is.emptyArray(this.column.classes),n=!a.is.emptyArray(this.classes),i=null;t.removeAttr("class"),(e||n)&&(e&&n?i=this.classes.concat(this.column.classes).join(" "):e?i=this.column.classes.join(" "):n&&(i=this.classes.join(" ")),a.is.emptyString(i)||t.addClass(i))},_setStyle:function(t){var e=!a.is.emptyObject(this.column.style),n=!a.is.emptyObject(this.style),i=null;t.removeAttr("style"),(e||n)&&(e&&n?i=s.extend({},this.column.style,this.style):e?i=this.column.style:n&&(i=this.style),a.is.hash(i)&&t.css(i))}})}(jQuery,FooTable),function(n,i){i.Column=i.Class.extend({construct:function(t,e,n){this.ft=t,this.type=i.is.emptyString(n)?"text":n,this.virtual=!!i.is.boolean(e.virtual)&&e.virtual,this.$el=i.is.jq(e.$el)?e.$el:null,this.index=i.is.number(e.index)?e.index:-1,this.internal=!1,this.define(e),this.$create()},define:function(t){this.hidden=!!i.is.boolean(t.hidden)&&t.hidden,this.visible=!i.is.boolean(t.visible)||t.visible,this.name=i.is.string(t.name)?t.name:null,null==this.name&&(this.name="col"+(t.index+1)),this.title=i.is.string(t.title)?t.title:null,!this.virtual&&null==this.title&&i.is.jq(this.$el)&&(this.title=this.$el.html()),null==this.title&&(this.title="Column "+(t.index+1)),this.style=i.is.hash(t.style)?t.style:i.is.string(t.style)?i.css2json(t.style):{},this.classes=i.is.array(t.classes)?t.classes:i.is.string(t.classes)?t.classes.match(/\S+/g):[],this.parser=i.checkFnValue(this,t.parser,this.parser),this.formatter=i.checkFnValue(this,t.formatter,this.formatter)},$create:function(){(this.$el=!this.virtual&&i.is.jq(this.$el)?this.$el:n("")).html(this.title).addClass(this.classes.join(" ")).css(this.style)},parser:function(t){if(i.is.element(t)||i.is.jq(t)){var e=n(t).data("value");return i.is.defined(e)?e:n(t).html()}return i.is.defined(t)&&null!=t?t+"":null},formatter:function(t,e,n){return null==t?"":t},createCell:function(t){var e=i.is.jq(t.$el)?t.$el.children("td,th").get(this.index):null,n=i.is.hash(t.value)?t.value[this.name]:null;return new i.Cell(this.ft,t,this,e||n)}}),i.columns=new i.ClassFactory,i.columns.register("text",i.Column)}(jQuery,FooTable),function(t,n){n.Component=n.Class.extend({construct:function(t,e){if(!(t instanceof n.Table))throw new TypeError("The instance parameter must be an instance of FooTable.Table.");this.ft=t,this.enabled=!!n.is.boolean(e)&&e},preinit:function(t){},init:function(){},destroy:function(){},predraw:function(){},draw:function(){},postdraw:function(){}}),n.components=new n.ClassFactory}(jQuery,FooTable),function(t,e){e.Defaults=function(){this.stopPropagation=!1,this.on=null},e.defaults=new e.Defaults}(jQuery,FooTable),function(a,l){l.Row=l.Class.extend({construct:function(t,e,n){this.ft=t,this.columns=e,this.created=!1,this.define(n)},define:function(t){this.$el=l.is.element(t)||l.is.jq(t)?a(t):null,this.$toggle=a("",{class:"footable-toggle fooicon fooicon-plus"});var e=l.is.hash(t),n=e&&l.is.hash(t.options)&&l.is.hash(t.value);this.value=e?n?t.value:t:null,this.o=a.extend(!0,{expanded:!1,classes:null,style:null},n?t.options:{}),this.expanded=l.is.jq(this.$el)&&this.$el.data("expanded")||this.o.expanded,this.classes=l.is.jq(this.$el)&&this.$el.attr("class")?this.$el.attr("class").match(/\S+/g):l.is.array(this.o.classes)?this.o.classes:l.is.string(this.o.classes)?this.o.classes.match(/\S+/g):[],this.style=l.is.jq(this.$el)&&this.$el.attr("style")?l.css2json(this.$el.attr("style")):l.is.hash(this.o.style)?this.o.style:l.is.string(this.o.style)?l.css2json(this.o.style):{},this.cells=this.createCells();var i=this;i.value={},l.arr.each(i.cells,function(t){i.value[t.column.name]=t.val()})},$create:function(){if(!this.created){(this.$el=l.is.jq(this.$el)?this.$el:a("")).data("__FooTableRow__",this),this._setClasses(this.$el),this._setStyle(this.$el),"last"==this.ft.rows.toggleColumn&&this.$toggle.addClass("last-column"),this.$details=a("",{class:"footable-detail-row"}).append(a("",{colspan:this.ft.columns.visibleColspan}).append(a("",{class:"footable-details "+this.ft.classes.join(" ")}).append("")));var e=this;l.arr.each(e.cells,function(t){t.created||t.$create(),e.$el.append(t.$el)}),e.$el.off("click.ft.row").on("click.ft.row",{self:e},e._onToggle),this.created=!0}},createCells:function(){var e=this;return l.arr.map(e.columns,function(t){return t.createCell(e)})},val:function(t,e,n){var i=this;if(!l.is.hash(t))return l.is.hash(this.value)&&!l.is.emptyObject(this.value)||(this.value={},l.arr.each(this.cells,function(t){t.column.internal||(i.value[t.column.name]=t.val())})),this.value;this.collapse(!1);var o=l.is.hash(t),r=o&&l.is.hash(t.options)&&l.is.hash(t.value);if(this.o=a.extend(!0,{expanded:i.expanded,classes:i.classes,style:i.style},r?t.options:{}),this.expanded=this.o.expanded,this.classes=l.is.array(this.o.classes)?this.o.classes:l.is.string(this.o.classes)?this.o.classes.match(/\S+/g):[],this.style=l.is.hash(this.o.style)?this.o.style:l.is.string(this.o.style)?l.css2json(this.o.style):{},o)if(r&&(t=t.value),l.is.hash(this.value))for(var s in t)t.hasOwnProperty(s)&&(this.value[s]=t[s]);else this.value=t;else this.value=null;n=!l.is.boolean(n)||n,l.arr.each(this.cells,function(t){!t.column.internal&&l.is.defined(i.value[t.column.name])&&t.val(i.value[t.column.name],!1,n)}),this.created&&n&&(this._setClasses(this.$el),this._setStyle(this.$el),l.is.boolean(e)&&!e||this.draw())},_setClasses:function(t){var e=!l.is.emptyArray(this.classes),n=null;t.removeAttr("class"),e&&(n=this.classes.join(" "),l.is.emptyString(n)||t.addClass(n))},_setStyle:function(t){var e=!l.is.emptyObject(this.style),n=null;t.removeAttr("style"),e&&(n=this.style,l.is.hash(n)&&t.css(n))},expand:function(){if(this.created){var t=this;t.ft.raise("expand.ft.row",[t]).then(function(){t.__hidden__=l.arr.map(t.cells,function(t){return t.column.hidden&&t.column.visible?t:null}),0",{class:"footable-loader"}).append(a("",{class:"fooicon fooicon-loader"})),this.o=a.extend(!0,{},l.defaults,e),this.data=this.$el.data()||{},this.classes=[],this.components=l.components.load(l.is.hash(this.data.components)?this.data.components:this.o.components,this),this.breakpoints=this.use(FooTable.Breakpoints),this.columns=this.use(FooTable.Columns),this.rows=this.use(FooTable.Rows),this._construct(n)},_construct:function(t){var e=this;return this._preinit().then(function(){return e._init().then(function(){return e.raise("ready.ft.table").then(function(){l.is.fn(t)&&t.call(e,e)})})}).always(function(t){e.$el.show(),l.is.error(t)&&console.error("FooTable: unhandled error thrown during initialization.",t)})},_preinit:function(){var i=this;return this.raise("preinit.ft.table",[i.data]).then(function(){var t=(i.$el.attr("class")||"").match(/\S+/g)||[];i.o.ajax=l.checkFnValue(i,i.data.ajax,i.o.ajax),i.o.stopPropagation=l.is.boolean(i.data.stopPropagation)?i.data.stopPropagation:i.o.stopPropagation;for(var e=0,n=t.length;e")),0==e.length&&i.$el.append(""),0==t.length&&i.$el.prepend(t=a("")),i.execute(!1,!0,"init").then(function(){return i.$el.data("__FooTable__",i),0==n.children("tr").length&&n.remove(),0==t.children("tr").length&&t.remove(),i.raise("postinit.ft.table").then(function(){return i.draw()}).always(function(){a(window).off("resize.ft"+i.id,i._onWindowResize).on("resize.ft"+i.id,{self:i},i._onWindowResize),i.initialized=!0})})})},destroy:function(){var t=this;return t.raise("destroy.ft.table").then(function(){return t.execute(!0,!0,"destroy").then(function(){t.$el.removeData("__FooTable__").removeClass("footable-"+t.id),l.is.hash(t.o.on)&&t.$el.off(t.o.on),a(window).off("resize.ft"+t.id,t._onWindowResize),t.initialized=!1,l.instances[t.id]=null})}).fail(function(t){l.is.error(t)&&console.error("FooTable: unhandled error thrown while destroying the plugin.",t)})},raise:function(n,i){var o=this,r=l.__debug__&&(l.is.emptyArray(l.__debug_options__.events)||l.arr.any(l.__debug_options__.events,function(t){return l.str.contains(n,t)}));return(i=i||[]).unshift(this),a.Deferred(function(t){var e=a.Event(n);1==o.o.stopPropagation&&o.$el.one(n,function(t){t.stopPropagation()}),r&&console.log("FooTable:"+n+": ",i),o.$el.trigger(e,i),e.isDefaultPrevented()?(r&&console.log('FooTable: default prevented for the "'+n+'" event.'),t.reject(e)):t.resolve(e)})},use:function(t){for(var e=0,n=this.components.length;e=t.width&&(!(i instanceof a.Breakpoint)||oi&&(i=t.index)}),i++;for(var o,r,s=0;s tr:last:has([data-breakpoints]), tbody > tr:first:has([data-breakpoints]), thead > tr:last, tbody > tr:first").first();if(0",{class:"footable-header"}),e.$header.children("th,td").detach(),u.arr.each(e.array,function(t){e.$header.append(t.$el)}),e.showHeader&&!u.is.jq(e.$header.parent())&&e.ft.$el.children("thead").append(e.$header)},get:function(e){return e instanceof u.Column?e:u.is.string(e)?u.arr.first(this.array,function(t){return t.name==e}):u.is.number(e)?u.arr.first(this.array,function(t){return t.index==e}):u.is.fn(e)?u.arr.get(this.array,e):null},ensure:function(t){var e=this,n=[];return u.is.array(t)&&u.arr.each(t,function(t){n.push(e.get(t))}),n}}),u.components.register("columns",u.Columns,900)}(jQuery,FooTable),function(t){t.Defaults.prototype.columns=[],t.Defaults.prototype.showHeader=!0}(FooTable),function(o,r){r.Rows=r.Component.extend({construct:function(t){this._super(t,!0),this.o=t.o,this.array=[],this.all=[],this.showToggle=t.o.showToggle,this.toggleSelector=t.o.toggleSelector,this.toggleColumn=t.o.toggleColumn,this.emptyString=t.o.empty,this.expandFirst=t.o.expandFirst,this.expandAll=t.o.expandAll,this.$empty=null,this._fromHTML=r.is.emptyArray(t.o.rows)&&!r.is.promise(t.o.rows)},parse:function(){var n=this;return o.Deferred(function(e){var t=n.ft.$el.children("tbody").children("tr");r.is.array(n.o.rows)&&0",{class:"footable-empty"}).append(o("",{class:"footable-filtering"}).prependTo(e.ft.$el.children("thead")),e.$cell=s(""),this.ft.$el.append(t)),this.$row.appendTo(t)}else this.$wrapper.appendTo(this.$container);this.detached=!1}i.is.jq(this.$cell)&&this.$cell.attr("colspan",this.ft.columns.visibleColspan),this._createLinks(),this._setVisible(this.current,this.current>this.previous),this._setNavigation(!0),this.$count.text(this.formattedCount)}},$create:function(){this._createdLinks=0;var t="footable-paging-center";switch(this.position){case"left":t="footable-paging-left";break;case"right":t="footable-paging-right"}if(this.ft.$el.addClass("footable-paging").addClass(t),this.$container=null===this.container?null:r(this.container).first(),i.is.jq(this.$container))this.$container.addClass("footable-paging-external").addClass(t);else{var e=this.ft.$el.children("tfoot");0==e.length&&(e=r(""),this.ft.$el.append(e)),this.$row=r("",{class:"footable-paging"}).prependTo(e),this.$container=this.$cell=r(""),t.ft.$el.append(n)),t.$row=o("",{class:"footable-editing"}).append(t.$cell).appendTo(n)},$buttonShow:function(){return'"},$buttonHide:function(){return'"},$buttonAdd:function(){return' "},$buttonEdit:function(){return' "},$buttonDelete:function(){return'"},$buttonView:function(){return' "},$rowButtons:function(){return r.is.jq(this._$buttons)?this._$buttons.clone():(this._$buttons=o('
'),this.allowView&&this._$buttons.append(this.$buttonView()),this.allowEdit&&this._$buttons.append(this.$buttonEdit()),this.allowDelete&&this._$buttons.append(this.$buttonDelete()),this._$buttons)},draw:function(){this.$cell.attr("colspan",this.ft.columns.visibleColspan)},_onEditClick:function(t){t.preventDefault();var e=t.data.self,n=o(this).closest("tr").data("__FooTableRow__");n instanceof r.Row&&e.ft.raise("edit.ft.editing",[n]).then(function(){e.callbacks.editRow.call(e.ft,n)})},_onDeleteClick:function(t){t.preventDefault();var e=t.data.self,n=o(this).closest("tr").data("__FooTableRow__");n instanceof r.Row&&e.ft.raise("delete.ft.editing",[n]).then(function(){e.callbacks.deleteRow.call(e.ft,n)})},_onViewClick:function(t){t.preventDefault();var e=t.data.self,n=o(this).closest("tr").data("__FooTableRow__");n instanceof r.Row&&e.ft.raise("view.ft.editing",[n]).then(function(){e.callbacks.viewRow.call(e.ft,n)})},_onAddClick:function(t){t.preventDefault();var e=t.data.self;e.ft.raise("add.ft.editing").then(function(){e.callbacks.addRow.call(e.ft)})},_onShowClick:function(t){t.preventDefault();var e=t.data.self;e.ft.raise("show.ft.editing").then(function(){e.ft.$el.addClass("footable-editing-show"),e.column.visible=!0,e.ft.draw()})},_onHideClick:function(t){t.preventDefault();var e=t.data.self;e.ft.raise("hide.ft.editing").then(function(){e.ft.$el.removeClass("footable-editing-show"),e.column.visible=!1,e.ft.draw()})}}),r.components.register("editing",r.Editing,850)}(jQuery,FooTable),function(i,o){o.EditingColumn=o.Column.extend({construct:function(t,e,n){this._super(t,n,"editing"),this.editing=e,this.internal=!0},$create:function(){(this.$el=!this.virtual&&o.is.jq(this.$el)?this.$el:i("
").text(this.emptyString))},draw:function(){var e=this,n=e.ft.$el.children("tbody"),i=!0;0 tr.footable-filtering").remove()})},$create:function(){var t,e=this,n=s("
",{class:"form-group footable-filtering-search"}).append(s("
").attr("colspan",e.ft.columns.visibleColspan).appendTo(e.$row),e.$container=e.$cell),e.$form=s("
",{class:"form-inline"}).append(n).appendTo(e.$container),e.$input=s("",{type:"text",class:"form-control",placeholder:e.placeholder}),e.$button=s("
").attr("colspan",this.ft.columns.visibleColspan).appendTo(this.$row)}this.$wrapper=r("
",{class:"footable-pagination-wrapper"}).appendTo(this.$container),this.$pagination=r("
").attr("colspan",t.ft.columns.visibleColspan).append(t.$buttonShow()),t.allowAdd&&t.$cell.append(t.$buttonAdd()),t.$cell.append(t.$buttonHide()),t.alwaysShow&&t.ft.$el.addClass("footable-editing-always-show"),t.allowAdd||t.ft.$el.addClass("footable-editing-no-add"),t.allowEdit||t.ft.$el.addClass("footable-editing-no-edit"),t.allowDelete||t.ft.$el.addClass("footable-editing-no-delete"),t.allowView||t.ft.$el.addClass("footable-editing-no-view");var n=t.ft.$el.children("tfoot");0==n.length&&(n=o("
",{class:"footable-editing"})).html(this.title)},parser:function(t){if(o.is.string(t)&&(t=i(i.trim(t))),o.is.element(t)&&(t=i(t)),o.is.jq(t)){var e=t.prop("tagName").toLowerCase();return"td"==e||"th"==e?t.data("value")||t.contents():t}return null},createCell:function(t){var e=this.editing.$rowButtons(),n=i("").append(e);return o.is.jq(t.$el)&&(0===this.index?n.prependTo(t.$el):n.insertAfter(t.$el.children().eq(this.index-1))),new o.Cell(this.ft,t,this,n||n.html())}}),o.columns.register("editing",o.EditingColumn)}(jQuery,FooTable),jQuery,FooTable.Defaults.prototype.editing={enabled:!1,pageToNew:!0,position:"right",alwaysShow:!1,addRow:function(){},editRow:function(t){},deleteRow:function(t){},viewRow:function(t){},showText:' Edit rows',hideText:"Cancel",addText:"New row",editText:'',deleteText:'',viewText:'',allowAdd:!0,allowEdit:!0,allowDelete:!0,allowView:!1,column:{classes:"footable-editing",name:"editing",title:"",filterable:!1,sortable:!1}},function(t,e){e.is.defined(e.Paging)&&(e.Paging.prototype.unpaged=[],e.Paging.extend("predraw",function(){this.unpaged=this.ft.rows.array.slice(0),this._super()}))}(jQuery,FooTable),function(t,r){r.Row.prototype.add=function(n){n=!r.is.boolean(n)||n;var i=this;return t.Deferred(function(t){var e=i.ft.rows.all.push(i)-1;if(n)return i.ft.draw().then(function(){t.resolve(e)});t.resolve(e)})},r.Row.prototype.delete=function(n){n=!r.is.boolean(n)||n;var i=this;return t.Deferred(function(t){var e=i.ft.rows.all.indexOf(i);if(r.is.number(e)&&0<=e&&e>>0}(location.origin+location.pathname);n.State=n.Component.extend({construct:function(t){this._super(t,t.o.state.enabled),this._key="1",this.key=this._key+(n.is.string(t.o.state.key)?t.o.state.key:this._uid()),this.filtering=!n.is.boolean(t.o.state.filtering)||t.o.state.filtering,this.paging=!n.is.boolean(t.o.state.paging)||t.o.state.paging,this.sorting=!n.is.boolean(t.o.state.sorting)||t.o.state.sorting},preinit:function(t){var e=this;this.ft.raise("preinit.ft.state",[t]).then(function(){e.enabled=n.is.boolean(t.state)?t.state:e.enabled,e.enabled&&(e.key=e._key+(n.is.string(t.stateKey)?t.stateKey:e.key),e.filtering=n.is.boolean(t.stateFiltering)?t.stateFiltering:e.filtering,e.paging=n.is.boolean(t.statePaging)?t.statePaging:e.paging,e.sorting=n.is.boolean(t.stateSorting)?t.stateSorting:e.sorting)},function(){e.enabled=!1})},get:function(t){return JSON.parse(localStorage.getItem(this.key+":"+t))},set:function(t,e){localStorage.setItem(this.key+":"+t,JSON.stringify(e))},remove:function(t){localStorage.removeItem(this.key+":"+t)},read:function(){this.ft.execute(!1,!0,"readState")},write:function(){this.ft.execute(!1,!0,"writeState")},clear:function(){this.ft.execute(!1,!0,"clearState")},_uid:function(){var t=this.ft.$el.attr("id");return i+"_"+(n.is.string(t)?t:++e)}}),n.components.register("state",n.State,700)}(jQuery,FooTable),function(t){t.Component.prototype.readState=function(){},t.Component.prototype.writeState=function(){},t.Component.prototype.clearState=function(){}}(FooTable),FooTable.Defaults.prototype.state={enabled:!1,filtering:!0,paging:!0,sorting:!0,key:null},function(e){e.Filtering&&(e.Filtering.prototype.readState=function(){if(this.ft.state.filtering){var t=this.ft.state.get("filtering");e.is.hash(t)&&!e.is.emptyArray(t.filters)&&(this.filters=this.ensure(t.filters))}},e.Filtering.prototype.writeState=function(){if(this.ft.state.filtering){var t=e.arr.map(this.filters,function(t){return{name:t.name,query:t.query instanceof e.Query?t.query.val():t.query,columns:e.arr.map(t.columns,function(t){return t.name}),hidden:t.hidden,space:t.space,connectors:t.connectors,ignoreCase:t.ignoreCase}});this.ft.state.set("filtering",{filters:t})}},e.Filtering.prototype.clearState=function(){this.ft.state.filtering&&this.ft.state.remove("filtering")})}(FooTable),function(e){e.Paging&&(e.Paging.prototype.readState=function(){if(this.ft.state.paging){var t=this.ft.state.get("paging");e.is.hash(t)&&(this.current=t.current,this.size=t.size)}},e.Paging.prototype.writeState=function(){this.ft.state.paging&&this.ft.state.set("paging",{current:this.current,size:this.size})},e.Paging.prototype.clearState=function(){this.ft.state.paging&&this.ft.state.remove("paging")})}(FooTable),function(n){n.Sorting&&(n.Sorting.prototype.readState=function(){if(this.ft.state.sorting){var t=this.ft.state.get("sorting");if(n.is.hash(t)){var e=this.ft.columns.get(t.column);e instanceof n.Column&&(this.column=e,this.column.direction=t.direction)}}},n.Sorting.prototype.writeState=function(){this.ft.state.sorting&&this.column instanceof n.Column&&this.ft.state.set("sorting",{column:this.column.name,direction:this.column.direction})},n.Sorting.prototype.clearState=function(){this.ft.state.sorting&&this.ft.state.remove("sorting")})}(FooTable),function(t){t.Table.extend("_construct",function(t){return this.state=this.use(FooTable.State),this._super(t)}),t.Table.extend("_preinit",function(){var t=this;return t._super().then(function(){t.state.enabled&&t.state.read()})}),t.Table.extend("draw",function(){var t=this;return t._super().then(function(){t.state.enabled&&t.state.write()})})}(FooTable),function(t,s){s.Export=s.Component.extend({construct:function(t){this._super(t,!0),this.snapshot=[]},predraw:function(){this.snapshot=this.ft.rows.array.slice(0)},columns:function(){var e=[];return s.arr.each(this.ft.columns.array,function(t){t.internal||e.push({type:t.type,name:t.name,title:t.title,visible:t.visible,hidden:t.hidden,classes:t.classes,style:t.style})}),e},rows:function(t){var e=(t=!!s.is.boolean(t)&&t)?this.ft.rows.all:this.snapshot,n=[];return s.arr.each(e,function(t){n.push(t.val())}),n},json:function(t){return JSON.parse(JSON.stringify({columns:this.columns(),rows:this.rows(t)}))},csv:function(t){var n,i,o="",e=this.columns();s.arr.each(e,function(t,e){i='"'+t.title.replace(/"/g,'""')+'"',o+=0===e?i:","+i}),o+="\n";var r=t?this.ft.rows.all:this.snapshot;return s.arr.each(r,function(t){s.arr.each(t.cells,function(t,e){t.column.internal||(n=t.column.stringify.call(t.column,t.value,t.ft.o,t.row.value),i='"'+n.replace(/"/g,'""')+'"',o+=0===e?i:","+i)}),o+="\n"}),o}}),s.components.register("export",s.Export,490)}(jQuery,FooTable),function(i){i.Column.prototype.__export_define__=function(t){this.stringify=i.checkFnValue(this,t.stringify,this.stringify)},i.Column.extend("define",function(t){this._super(t),this.__export_define__(t)}),i.Column.prototype.stringify=function(t,e,n){return t+""},null!=i.DateColumn&&(i.DateColumn.prototype.stringify=function(t,e,n){return i.is.object(t)&&i.is.boolean(t._isAMomentObject)&&t.isValid()?t.format(this.formatString):""}),i.ObjectColumn.prototype.stringify=function(t,e,n){return i.is.object(t)?JSON.stringify(t):""},i.ArrayColumn.prototype.stringify=function(t,e,n){return i.is.array(t)?JSON.stringify(t):""}}(FooTable),function(e){e.Table.prototype.toJSON=function(t){return this.use(e.Export).json(t)},e.Table.prototype.toCSV=function(t){return this.use(e.Export).csv(t)}}(FooTable),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),n(e),e}:n(jQuery)}(function(n){var t=function(){if(n&&n.fn&&n.fn.select2&&n.fn.select2.amd)var t=n.fn.select2.amd;var e,o,c;return t&&t.requirejs||(t?o=t:t={},function(p){function f(t,e){return n.call(t,e)}function a(t,e){var n,i,o,r,s,a,l,c,u,h,d,p=e&&e.split("/"),f=$.map,g=f&&f["*"]||{};if(t){for(s=(t=t.split("/")).length-1,$.nodeIdCompat&&T.test(t[s])&&(t[s]=t[s].replace(T,"")),"."===t[0].charAt(0)&&p&&(t=p.slice(0,p.length-1).concat(t)),u=0;u":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},t.appendMany=function(t,e){if("1.7"===r.fn.jquery.substr(0,3)){var n=r();r.map(e,function(t){n=n.add(t)}),e=n}t.append(e)},t}),t.define("select2/results",["jquery","./utils"],function(d,t){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=d('
    ');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var e=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=d('
  • '),i=this.options.get("translations").get(t.message);n.append(e(i(t.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var n=0;n",{class:"select2-results__options select2-results__options--nested"});h.append(a),r.append(s),r.append(h)}else this.template(t,e);return d.data(e,"data",t),e},i.prototype.bind=function(e,t){var l=this,n=e.id+"-results";this.$results.attr("id",n),e.on("results:all",function(t){l.clear(),l.append(t.data),e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("results:append",function(t){l.append(t.data),e.isOpen()&&l.setClasses()}),e.on("query",function(t){l.hideMessages(),l.showLoading(t)}),e.on("select",function(){e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("unselect",function(){e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),e.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=l.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t=l.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:e})}}),e.on("results:previous",function(){var t=l.getHighlightedResults(),e=l.$results.find("[aria-selected]"),n=e.index(t);if(0!==n){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var r=l.$results.offset().top,s=o.offset().top,a=l.$results.scrollTop()+(s-r);0===i?l.$results.scrollTop(0):s-r<0&&l.$results.scrollTop(a)}}),e.on("results:next",function(){var t=l.getHighlightedResults(),e=l.$results.find("[aria-selected]"),n=e.index(t)+1;if(!(n>=e.length)){var i=e.eq(n);i.trigger("mouseenter");var o=l.$results.offset().top+l.$results.outerHeight(!1),r=i.offset().top+i.outerHeight(!1),s=l.$results.scrollTop()+r-o;0===n?l.$results.scrollTop(0):othis.$results.outerHeight()||r<0)&&this.$results.scrollTop(o)}},i.prototype.template=function(t,e){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=n(t,e);null==o?e.style.display="none":"string"==typeof o?e.innerHTML=i(o):d(e).append(o)},i}),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(n,t,o){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t},i.prototype.bind=function(t,e){var n=this,i=(t.id,t.id+"-results");this.container=t,this.$selection.on("focus",function(t){n.trigger("focus",t)}),this.$selection.on("blur",function(t){n._handleBlur(t)}),this.$selection.on("keydown",function(t){n.trigger("keypress",t),t.which===o.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){n.update(t.data)}),t.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(t)}),t.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(t)}),t.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),t.on("disable",function(){n.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(t){var e=this;window.setTimeout(function(){document.activeElement==e.$selection[0]||n.contains(e.$selection[0],document.activeElement)||e.trigger("blur",t)},1)},i.prototype._attachCloseHandler=function(t){n(document.body).on("mousedown.select2."+t.id,function(t){var e=n(t.target).closest(".select2");n(".select2.select2-container--open").each(function(){var t=n(this);this!=e[0]&&t.data("element").select2("close")})})},i.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(t,e){e.find(".selection").append(t)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},i}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,e),o.prototype.render=function(){var t=o.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html(''),t},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),e.on("focus",function(t){e.isOpen()||n.$selection.focus()}),e.on("selection:update",function(t){n.update(t.data)})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},o.prototype.selectionContainer=function(){return t("")},o.prototype.update=function(t){if(0!==t.length){var e=t[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(e,n);n.empty().append(i),n.prop("title",e.title||e.text)}else this.clear()},o}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,t,a){function o(t,e){o.__super__.constructor.apply(this,arguments)}return a.Extend(o,t),o.prototype.render=function(){var t=o.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('
      '),t},o.prototype.bind=function(t,e){var n=this;o.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){n.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!n.options.get("disabled")){var e=i(this).parent().data("data");n.trigger("unselect",{originalEvent:t,data:e})}})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},o.prototype.selectionContainer=function(){return i('
    • ×
    • ')},o.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=0;n×');n.data("data",e),this.$selection.find(".select2-selection__rendered").prepend(n)}},t}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(i,t,s){function e(t,e,n){t.call(this,e,n)}return e.prototype.render=function(t){var e=i('');this.$searchContainer=e,this.$search=e.find("input");var n=t.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("open",function(){i.$search.trigger("focus")}),e.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),e.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),e.on("disable",function(){i.$search.prop("disabled",!0)}),e.on("focus",function(t){i.$search.trigger("focus")}),e.on("results:focus",function(t){i.$search.attr("aria-activedescendant",t.id)}),this.$selection.on("focusin",".select2-search--inline",function(t){i.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){i._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){if(t.stopPropagation(),i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented(),t.which===s.BACKSPACE&&""===i.$search.val()){var e=i.$searchContainer.prev(".select2-selection__choice");if(0this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t}),t.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.query=function(n,i,o){var r=this;this.current(function(t){var e=null!=t?t.length:0;0=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n.call(r,i,o)})},t}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery","../utils"],function(o,t){function e(){}return e.prototype.render=function(t){var e=t.call(this),n=o('');return this.$searchContainer=n,this.$search=n.find("input"),e.prepend(n),e},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),this.$search.on("keydown",function(t){i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(t){o(this).off("keyup")}),this.$search.on("keyup input",function(t){i.handleSearch(t)}),e.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),e.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),e.on("focus",function(){e.isOpen()||i.$search.focus()}),e.on("results:all",function(t){null!=t.query.term&&""!==t.query.term||(i.showSearch(t)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))})},e.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.showSearch=function(t,e){return!0},e}),t.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,i)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),i=e.length-1;0<=i;i--){var o=e[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},t}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(o){function t(t,e,n,i){this.lastParams={},t.call(this,e,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("query",function(t){i.lastParams=t,i.loading=!0}),e.on("query:append",function(t){i.lastParams=t,i.loading=!0}),this.$results.on("scroll",function(){var t=o.contains(document.documentElement,i.$loadingMore[0]);!i.loading&&t&&i.$results.offset().top+i.$results.outerHeight(!1)+50>=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)&&i.loadMore()})},t.prototype.loadMore=function(){this.loading=!0;var t=o.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},t.prototype.createLoadingMore=function(){var t=o('
    • '),e=this.options.get("translations").get("loadingMore");return t.html(e(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function t(t,e,n){this.$dropdownParent=n.get("dropdownParent")||f(document.body),t.call(this,e,n)}return t.prototype.bind=function(t,e,n){var i=this,o=!1;t.call(this,e,n),e.on("open",function(){i._showDropdown(),i._attachPositioningHandler(e),o||(o=!0,e.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),e.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),e.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},t.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},t.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},t.prototype.render=function(t){var e=f(""),n=t.call(this);return e.append(n),this.$dropdownContainer=e},t.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},t.prototype._attachPositioningHandler=function(t,e){var n=this,i="scroll.select2."+e.id,o="resize.select2."+e.id,r="orientationchange.select2."+e.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){f(this).data("select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(i,function(t){var e=f(this).data("select2-scroll-position");f(this).scrollTop(e.y)}),f(window).on(i+" "+o+" "+r,function(t){n._positionDropdown(),n._resizeDropdown()})},t.prototype._detachPositioningHandler=function(t,e){var n="scroll.select2."+e.id,i="resize.select2."+e.id,o="orientationchange.select2."+e.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+i+" "+o)},t.prototype._positionDropdown=function(){var t=f(window),e=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=o.top,r.bottom=o.top+r.height;var s=this.$dropdown.outerHeight(!1),a=t.scrollTop(),l=t.scrollTop()+t.height(),c=ao.bottom+s,h={left:o.left,top:r.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var p=d.offset();h.top-=p.top,h.left-=p.left,e||n||(i="below"),u||!c||e?!c&&u&&e&&(i="below"):i="above",("above"==i||e&&"below"!==i)&&(h.top=r.top-p.top-s),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(h)},t.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},t.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},t}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(t,e,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,i)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var n=0,i=0;i');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},u}),t.define("jquery-mousewheel",["jquery"],function(t){return t}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(o,t,r,e){if(null==o.fn.select2){var s=["open","close","destroy"];o.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each(function(){var t=o.extend(!0,{},e);new r(o(this),t)}),this;if("string"==typeof e){var n,i=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=o(this).data("select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=t[e].apply(t,i)}),-1o&&(o=t.outerHeight(!1)),e?t.attr("style",e):t.css("display","")})}n.each(function(){var t=l(this),e=0;r.target&&t.is(r.target)||("border-box"!==t.css("box-sizing")&&(e+=c(t.css("border-top-width"))+c(t.css("border-bottom-width")),e+=c(t.css("padding-top"))+c(t.css("padding-bottom"))),t.css(r.property,o-e+"px"))})}),a.each(function(){var t=l(this);t.attr("style",t.data("style-cache")||null)}),d._maintainScroll&&l(window).scrollTop(o/s*l("html").outerHeight(!0)),this},d._applyDataApi=function(){var n={};l("[data-match-height], [data-mh]").each(function(){var t=l(this),e=t.attr("data-mh")||t.attr("data-match-height");n[e]=e in n?n[e].add(t):t}),l.each(n,function(){this.matchHeight(!0)})};var r=function(t){d._beforeUpdate&&d._beforeUpdate(t,d._groups),l.each(d._groups,function(){d._apply(this.elements,this.options)}),d._afterUpdate&&d._afterUpdate(t,d._groups)};d._update=function(t,e){if(e&&"resize"===e.type){var n=l(window).width();if(n===i)return;i=n}t?-1===o&&(o=setTimeout(function(){r(e),o=-1},d._throttle)):r(e)},l(d._applyDataApi);var t=l.fn.on?"on":"bind";l(window)[t]("load",function(t){d._update(!1,t)}),l(window)[t]("resize orientationchange",function(t){d._update(!0,t)})}),$(document).ready(function(){"use strict";$.noConflict(),jQuery(".item_img").matchHeight({byRow:!0,property:"height",target:null,remove:!1}),Scrollbar.initAll({damping:.1,thumbMinSize:10,renderByPixels:!0,continuousScrolling:"auto",alwaysShowTracks:!1});jQuery(window).scroll(function(){220