!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,e){"use strict";var n=[],r=Object.getPrototypeOf,o=n.slice,i=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},s=n.push,a=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,p=c.toString,h=p.call(Object),f={},d=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},g=function(t){return null!=t&&t===t.window},v=t.document,m={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,n){var r,o,i=(n=n||v).createElement("script");if(i.text=t,e)for(r in m)(o=e[r]||e.getAttribute&&e.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[u.call(t)]||"object":typeof t}var w="3.5.1",T=function(t,e){return new T.fn.init(t,e)};function x(t){var e=!!t&&"length"in t&&t.length,n=b(t);return!d(t)&&!g(t)&&("array"===n||0===e||"number"==typeof e&&0+~]|"+L+")"+L+"*"),U=new RegExp(L+"|>"),V=new RegExp(H),X=new RegExp("^"+F+"$"),Q={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+H),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("^(?:"+M+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,G=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},it=function(){h()},st=wt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(A=_.call(T.childNodes),T.childNodes),A[T.childNodes.length].nodeType}catch(e){P={apply:A.length?function(t,e){k.apply(t,_.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function at(t,e,r,o){var i,a,u,c,p,d,m,y=e&&e.ownerDocument,T=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==T&&9!==T&&11!==T)return r;if(!o&&(h(e),e=e||f,g)){if(11!==T&&(p=Z.exec(t)))if(i=p[1]){if(9===T){if(!(u=e.getElementById(i)))return r;if(u.id===i)return r.push(u),r}else if(y&&(u=y.getElementById(i))&&b(e,u)&&u.id===i)return r.push(u),r}else{if(p[2])return P.apply(r,e.getElementsByTagName(t)),r;if((i=p[3])&&n.getElementsByClassName&&e.getElementsByClassName)return P.apply(r,e.getElementsByClassName(i)),r}if(n.qsa&&!j[t+" "]&&(!v||!v.test(t))&&(1!==T||"object"!==e.nodeName.toLowerCase())){if(m=t,y=e,1===T&&(U.test(t)||B.test(t))){for((y=tt.test(t)&&mt(e.parentNode)||e)===e&&n.scope||((c=e.getAttribute("id"))?c=c.replace(rt,ot):e.setAttribute("id",c=w)),a=(d=s(t)).length;a--;)d[a]=(c?"#"+c:":scope")+" "+bt(d[a]);m=d.join(",")}try{return P.apply(r,y.querySelectorAll(m)),r}catch(e){j(t,!0)}finally{c===w&&e.removeAttribute("id")}}}return l(t.replace(W,"$1"),e,r,o)}function lt(){var t=[];return function e(n,o){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=o}}function ut(t){return t[w]=!0,t}function ct(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function pt(t,e){for(var n=t.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=e}function ht(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function gt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function vt(t){return ut(function(e){return e=+e,ut(function(n,r){for(var o,i=t([],n.length,e),s=i.length;s--;)n[o=i[s]]&&(n[o]=!(r[o]=n[o]))})})}function mt(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}for(e in n=at.support={},i=at.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!Y.test(e||n&&n.nodeName||"HTML")},h=at.setDocument=function(t){var e,o,s=t?t.ownerDocument||t:T;return s!=f&&9===s.nodeType&&s.documentElement&&(d=(f=s).documentElement,g=!i(f),T!=f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",it,!1):o.attachEvent&&o.attachEvent("onunload",it)),n.scope=ct(function(t){return d.appendChild(t).appendChild(f.createElement("div")),"undefined"!=typeof t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),n.attributes=ct(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=ct(function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=K.test(f.getElementsByClassName),n.getById=ct(function(t){return d.appendChild(t).id=w,!f.getElementsByName||!f.getElementsByName(w).length}),n.getById?(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&g){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&g){var n,r,o,i=e.getElementById(t);if(i){if((n=i.getAttributeNode("id"))&&n.value===t)return[i];for(o=e.getElementsByName(t),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===t)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],o=0,i=e.getElementsByTagName(t);if("*"===t){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&g)return e.getElementsByClassName(t)},m=[],v=[],(n.qsa=K.test(f.querySelectorAll))&&(ct(function(t){var e;d.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+L+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+w+"-]").length||v.push("~="),(e=f.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||v.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||v.push(".#.+[+~]"),t.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ct(function(t){t.innerHTML="";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+L+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),d.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=K.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ct(function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),m.push("!=",H)}),v=v.length&&new RegExp(v.join("|")),m=m.length&&new RegExp(m.join("|")),e=K.test(d.compareDocumentPosition),b=e||K.test(d.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},O=e?function(t,e){if(t===e)return p=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==f||t.ownerDocument==T&&b(T,t)?-1:e==f||e.ownerDocument==T&&b(T,e)?1:c?$(c,t)-$(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return p=!0,0;var n,r=0,o=t.parentNode,i=e.parentNode,s=[t],a=[e];if(!o||!i)return t==f?-1:e==f?1:o?-1:i?1:c?$(c,t)-$(c,e):0;if(o===i)return ht(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?ht(s[r],a[r]):s[r]==T?-1:a[r]==T?1:0}),f},at.matches=function(t,e){return at(t,null,null,e)},at.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&g&&!j[e+" "]&&(!m||!m.test(e))&&(!v||!v.test(e)))try{var r=y.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){j(e,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||at.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]&&at.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&&V.test(n)&&(e=s(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&C(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var o=at.attr(r,t);return null==o?"!="===e:!e||(o+="","="===e?o===n:"!="===e?o!==n:"^="===e?n&&0===o.indexOf(n):"*="===e?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(t,e,n){return d(e)?T.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?T.grep(t,function(t){return t===e!==n}):"string"!=typeof e?T.grep(t,function(t){return-1)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var r,o;if(!t)return this;if(n=n||A,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:D.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:v,!0)),O.test(r[1])&&T.isPlainObject(e))for(r in e)d(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(o=v.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):d(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,A=T(v);var k=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function _(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,dt=/^$|^module$|\/(?:java|ecma)script/i;ct=v.createDocumentFragment().appendChild(v.createElement("div")),(pt=v.createElement("input")).setAttribute("type","radio"),pt.setAttribute("checked","checked"),pt.setAttribute("name","t"),ct.appendChild(pt),f.checkClone=ct.cloneNode(!0).cloneNode(!0).lastChild.checked,ct.innerHTML="",f.noCloneChecked=!!ct.cloneNode(!0).lastChild.defaultValue,ct.innerHTML="",f.option=!!ct.lastChild;var gt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function vt(t,e){var n;return n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&j(t,e)?T.merge([t],n):n}function mt(t,e){for(var n=0,r=t.length;n",""]);var yt=/<|&#?\w+;/;function bt(t,e,n,r,o){for(var i,s,a,l,u,c,p=e.createDocumentFragment(),h=[],f=0,d=t.length;f\s*$/g;function Dt(t,e){return j(t,"table")&&j(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function kt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Pt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function _t(t,e){var n,r,o,i,s,a;if(1===e.nodeType){if(Y.hasData(t)&&(a=Y.get(t).events))for(o in Y.remove(e,"handle events"),a)for(n=0,r=a[o].length;n").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),v.head.appendChild(e[0])},abort:function(){n&&n()}}});var Ue,Ve=[],Xe=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ve.pop()||T.expando+"_"+Se.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(e,n,r){var o,i,s,a=!1!==e.jsonp&&(Xe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xe.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=d(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Xe,"$1"+o):!1!==e.jsonp&&(e.url+=(Ce.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return s||T.error(o+" was not called"),s[0]},e.dataTypes[0]="json",i=t[o],t[o]=function(){s=arguments},r.always(function(){void 0===i?T(t).removeProp(o):t[o]=i,e[o]&&(e.jsonpCallback=n.jsonpCallback,Ve.push(o)),s&&d(i)&&i(s[0]),s=i=void 0}),"script"}),f.createHTMLDocument=((Ue=v.implementation.createHTMLDocument("").body).innerHTML="
",2===Ue.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(f.createHTMLDocument?((r=(e=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,e.head.appendChild(r)):e=v),i=!n&&[],(o=O.exec(t))?[e.createElement(o[1])]:(o=bt([t],e,i),i&&i.length&&T(i).remove(),T.merge([],o.childNodes)));var r,o,i},T.fn.load=function(t,e,n){var r,o,i,s=this,a=t.indexOf(" ");return-1").append(T.parseHTML(t)).find(r):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,i||[t.responseText,e,t])})}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(t,e,n){var r,o,i,s,a,l,u=T.css(t,"position"),c=T(t),p={};"static"===u&&(t.style.position="relative"),a=c.offset(),i=T.css(t,"top"),l=T.css(t,"left"),("absolute"===u||"fixed"===u)&&-1<(i+l).indexOf("auto")?(s=(r=c.position()).top,o=r.left):(s=parseFloat(i)||0,o=parseFloat(l)||0),d(e)&&(e=e.call(t,n,T.extend({},a))),null!=e.top&&(p.top=e.top-a.top+s),null!=e.left&&(p.left=e.left-a.left+o),"using"in e?e.using.call(t,p):("number"==typeof p.top&&(p.top+="px"),"number"==typeof p.left&&(p.left+="px"),c.css(p))}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],o={top:0,left:0};if("fixed"===T.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==r&&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(r,"marginTop",!0),left:e.left-o.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||rt})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;T.fn[t]=function(r){return W(this,function(t,r,o){var i;if(g(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===o)return i?i[e]:t[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):t[r]=o},t,r,arguments.length)}}),T.each(["top","left"],function(t,e){T.cssHooks[e]=Wt(f.pixelPosition,function(t,n){if(n)return n=qt(t,e),Lt.test(n)?T(t).position()[e]+"px":n})}),T.each({Height:"height",Width:"width"},function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,r){T.fn[r]=function(o,i){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===i?"margin":"border");return W(this,function(e,n,o){var i;return g(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===o?T.css(e,n,a):T.style(e,n,o,a)},e,s?o:void 0,s)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),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,e){T.fn[e]=function(t,n){return 0=0?this.parent.children[t]:null}return null},t.prototype.getNextSibling=function(){if(this.parent){var t=this.parent.getChildIndex(this)+1;return tn.right||e>n.bottom)return null;for(var r=0,o=this.hitAreas.length;r>1,s=this.hitAreas[i];if(es.bottom))return s;r=i+1}}return null},t.prototype.mustOpenFolderTimer=function(t){var e=t.node;return e.isFolder()&&!e.is_open&&t.position===s.Inside},t.prototype.updateDropHint=function(){if(this.hoveredArea){this.removeDropHint();var t=this.treeWidget._getNodeElementForNode(this.hoveredArea.node);this.previousGhost=t.addDropHint(this.hoveredArea.position)}},t.prototype.startOpenFolderTimer=function(t){var e=this;this.stopOpenFolderTimer(),this.openFolderTimer=window.setTimeout(function(){e.treeWidget._openNode(t,e.treeWidget.options.slide,function(){e.refresh(),e.updateDropHint()})},this.treeWidget.options.openFolderDelay)},t.prototype.stopOpenFolderTimer=function(){this.openFolderTimer&&(clearTimeout(this.openFolderTimer),this.openFolderTimer=null)},t.prototype.moveItem=function(t){var e=this;if(this.currentItem&&this.hoveredArea&&this.hoveredArea.position!==s.None&&this.canMoveToArea(this.hoveredArea)){var n=this.currentItem.node,r=this.hoveredArea.node,o=this.hoveredArea.position,i=n.parent;o===s.Inside&&(this.hoveredArea.node.is_open=!0);var a=function(){e.treeWidget.tree.moveNode(n,r,o),e.treeWidget.element.empty(),e.treeWidget._refreshElements(null)};this.treeWidget._triggerEvent("tree.move",{move_info:{moved_node:n,target_node:r,position:u(o),previous_parent:i,do_move:a,original_event:t.originalEvent}}).isDefaultPrevented()||a()}},t.prototype.getTreeDimensions=function(){var t=this.treeWidget.element.offset();if(t){var e=this.treeWidget.element,n=e.width()||0,r=e.height()||0,o=t.left+this.treeWidget._getScrollLeft();return{left:o,top:t.top,right:o+n,bottom:t.top+r+16}}return{left:0,top:0,right:0,bottom:0}},t}(),f=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.currentNode=n,o.treeBottom=r,o}return i(e,t),e.prototype.generate=function(){return this.positions=[],this.lastTop=0,this.iterate(),this.generateHitAreas(this.positions)},e.prototype.generateHitAreas=function(t){for(var e=-1,n=[],r=[],o=0,i=t;o").addClass("jqtree-title jqtree-dragging"),o?this.$element.text(t):this.$element.html(t),this.$element.css("position","absolute"),r.append(this.$element)}return t.prototype.move=function(t,e){this.$element.offset({left:t-this.offsetX,top:e-this.offsetY})},t.prototype.remove=function(){this.$element.remove()},t}(),g=function(t){return t?"true":"false"},v=function(){function t(t){this.treeWidget=t,this.openedIconElement=this.createButtonElement(t.options.openedIcon||"+"),this.closedIconElement=this.createButtonElement(t.options.closedIcon||"-")}return t.prototype.render=function(t){t&&t.parent?this.renderFromNode(t):this.renderFromRoot()},t.prototype.renderFromRoot=function(){var t=this.treeWidget.element;t.empty(),this.createDomElements(t[0],this.treeWidget.tree.children,!0,1)},t.prototype.renderFromNode=function(t){var e=jQuery(t.element),n=this.createLi(t,t.getLevel());this.attachNodeData(t,n),e.after(n),e.remove(),t.children&&this.createDomElements(n,t.children,!1,t.getLevel()+1)},t.prototype.createDomElements=function(t,e,n,r){var o=this.createUl(n);t.appendChild(o);for(var i=0,s=e;i1)){var n=t.changedTouches[0];e.handleMouseDown(T(n,t))}},e.touchMove=function(t){if(t&&!(t.touches.length>1)){var n=t.changedTouches[0];e.handleMouseMove(t,T(n,t))}},e.touchEnd=function(t){if(t&&!(t.touches.length>1)){var n=t.changedTouches[0];e.handleMouseUp(T(n,t))}},e}return i(e,t),e.prototype.setMouseDelay=function(t){this.mouseDelay=t},e.prototype.init=function(){var t=this.$el.get(0);t.addEventListener("mousedown",this.mouseDown,{passive:!1}),t.addEventListener("touchstart",this.touchStart,{passive:!1}),this.isMouseStarted=!1,this.mouseDelay=0,this.mouseDelayTimer=null,this.isMouseDelayMet=!1,this.mouseDownInfo=null},e.prototype.deinit=function(){var t=this.$el.get(0);t.removeEventListener("mousedown",this.mouseDown),t.removeEventListener("touchstart",this.touchStart),document.removeEventListener("mousemove",this.mouseMove),document.removeEventListener("touchmove",this.touchMove),document.removeEventListener("mouseup",this.mouseUp),document.removeEventListener("touchend",this.touchEnd)},e.prototype.handleMouseDown=function(t){return this.isMouseStarted&&this.handleMouseUp(t),this.mouseDownInfo=t,!!this.mouseCapture(t)&&(this.handleStartMouse(),!0)},e.prototype.handleStartMouse=function(){document.addEventListener("mousemove",this.mouseMove,{passive:!1}),document.addEventListener("touchmove",this.touchMove,{passive:!1}),document.addEventListener("mouseup",this.mouseUp,{passive:!1}),document.addEventListener("touchend",this.touchEnd,{passive:!1}),this.mouseDelay&&this.startMouseDelayTimer()},e.prototype.startMouseDelayTimer=function(){var t=this;this.mouseDelayTimer&&clearTimeout(this.mouseDelayTimer),this.mouseDelayTimer=window.setTimeout(function(){t.isMouseDelayMet=!0},this.mouseDelay),this.isMouseDelayMet=!1},e.prototype.handleMouseMove=function(t,e){if(this.isMouseStarted)return this.mouseDrag(e),void(t.cancelable&&t.preventDefault());this.mouseDelay&&!this.isMouseDelayMet||(this.mouseDownInfo&&(this.isMouseStarted=!1!==this.mouseStart(this.mouseDownInfo)),this.isMouseStarted?(this.mouseDrag(e),t.cancelable&&t.preventDefault()):this.handleMouseUp(e))},e.prototype.handleMouseUp=function(t){document.removeEventListener("mousemove",this.mouseMove),document.removeEventListener("touchmove",this.touchMove),document.removeEventListener("mouseup",this.mouseUp),document.removeEventListener("touchend",this.touchEnd),this.isMouseStarted&&(this.isMouseStarted=!1,this.mouseStop(t))},e}(b),S=function(){function t(t){this.treeWidget=t}return t.prototype.saveState=function(){var t=JSON.stringify(this.getState());this.treeWidget.options.onSetStateFromStorage?this.treeWidget.options.onSetStateFromStorage(t):this.supportsLocalStorage()&&localStorage.setItem(this.getKeyName(),t)},t.prototype.getStateFromStorage=function(){var t=this.loadFromStorage();return t?this.parseState(t):null},t.prototype.getState=function(){var t,e;return{open_nodes:(e=[],this.treeWidget.tree.iterate(function(t){return t.is_open&&t.id&&t.hasChildren()&&e.push(t.id),!0}),e),selected_node:(t=[],this.treeWidget.getSelectedNodes().forEach(function(e){null!=e.id&&t.push(e.id)}),t)}},t.prototype.setInitialState=function(t){if(t){var e=!1;return t.open_nodes&&(e=this.openInitialNodes(t.open_nodes)),t.selected_node&&(this.resetSelection(),this.selectInitialNodes(t.selected_node)),e}return!1},t.prototype.setInitialStateOnDemand=function(t,e){t?this.doSetInitialStateOnDemand(t.open_nodes,t.selected_node,e):e()},t.prototype.getNodeIdToBeSelected=function(){var t=this.getStateFromStorage();return t&&t.selected_node?t.selected_node[0]:null},t.prototype.parseState=function(t){var e,n=JSON.parse(t);return n&&n.selected_node&&"number"==typeof(e=n.selected_node)&&e%1==0&&(n.selected_node=[n.selected_node]),n},t.prototype.loadFromStorage=function(){return this.treeWidget.options.onGetStateFromStorage?this.treeWidget.options.onGetStateFromStorage():this.supportsLocalStorage()?localStorage.getItem(this.getKeyName()):null},t.prototype.openInitialNodes=function(t){for(var e=!1,n=0,r=t;n=o},t.prototype.getScrollLeft=function(){return this.$scrollParent&&this.$scrollParent.scrollLeft()||0},t.prototype.initScrollParent=function(){var t=this,e=function(){t.scrollParentTop=0,t.$scrollParent=null};"fixed"===this.treeWidget.$el.css("position")&&e();var n=function(){var e=["overflow","overflow-y"],n=function(t){for(var n=0,r=e;n0,s=n.left+r.clientWidth,a=n.left,l=t.pageX>s-20,u=t.pageX0,i=t.pageX>r-20,s=t.pageX-n<20;i?e.scrollLeft(n+20):s&&o&&e.scrollLeft(Math.max(n-20,0))}},t}(),E=function(){function t(t){this.treeWidget=t,this.clear()}return t.prototype.getSelectedNode=function(){var t=this.getSelectedNodes();return!!t.length&&t[0]},t.prototype.getSelectedNodes=function(){if(this.selectedSingleNode)return[this.selectedSingleNode];var t=[];for(var e in this.selectedNodes)if(Object.prototype.hasOwnProperty.call(this.selectedNodes,e)){var n=this.treeWidget.getNodeById(e);n&&t.push(n)}return t},t.prototype.getSelectedNodesUnder=function(t){if(this.selectedSingleNode)return t.isParentOf(this.selectedSingleNode)?[this.selectedSingleNode]:[];var e=[];for(var n in this.selectedNodes)if(Object.prototype.hasOwnProperty.call(this.selectedNodes,n)){var r=this.treeWidget.getNodeById(n);r&&t.isParentOf(r)&&e.push(r)}return e},t.prototype.isNodeSelected=function(t){return null!=t.id?!!this.selectedNodes[t.id]:!!this.selectedSingleNode&&this.selectedSingleNode.element===t.element},t.prototype.clear=function(){this.selectedNodes={},this.selectedSingleNode=null},t.prototype.removeFromSelection=function(t,e){var n=this;void 0===e&&(e=!1),null==t.id?this.selectedSingleNode&&t.element===this.selectedSingleNode.element&&(this.selectedSingleNode=null):(delete this.selectedNodes[t.id],e&&t.iterate(function(){return null!=t.id&&delete n.selectedNodes[t.id],!0}))},t.prototype.addToSelection=function(t){null!=t.id?this.selectedNodes[t.id]=!0:this.selectedSingleNode=t},t.prototype.isFocusOnTree=function(){var t=document.activeElement;return Boolean(t&&"SPAN"===t.tagName&&this.treeWidget._containsElement(t))},t}(),N=function(){function t(t,e){this.init(t,e)}return t.prototype.init=function(t,e){this.node=t,this.treeWidget=e,t.element||(t.element=this.treeWidget.element.get(0)),this.$element=jQuery(t.element)},t.prototype.addDropHint=function(t){return this.mustShowBorderDropHint(t)?new O(this.$element,this.treeWidget._getScrollLeft()):new I(this.node,this.$element,t)},t.prototype.select=function(t){var e,n=this.getLi();n.addClass("jqtree-selected"),n.attr("aria-selected","true");var r=this.getSpan();r.attr("tabindex",null!==(e=this.treeWidget.options.tabIndex)&&void 0!==e?e:null),t&&r.trigger("focus")},t.prototype.deselect=function(){var t=this.getLi();t.removeClass("jqtree-selected"),t.attr("aria-selected","false");var e=this.getSpan();e.removeAttr("tabindex"),e.blur()},t.prototype.getUl=function(){return this.$element.children("ul:first")},t.prototype.getSpan=function(){return this.$element.children(".jqtree-element").find("span.jqtree-title")},t.prototype.getLi=function(){return this.$element},t.prototype.mustShowBorderDropHint=function(t){return t===s.Inside},t}(),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.open=function(t,e,n){var r=this;if(void 0===e&&(e=!0),void 0===n&&(n="fast"),!this.node.is_open){this.node.is_open=!0;var o=this.getButton();o.removeClass("jqtree-closed"),o.html("");var i=o.get(0);if(i){var s=this.treeWidget.renderer.openedIconElement.cloneNode(!0);i.appendChild(s)}var a=function(){r.getLi().removeClass("jqtree-closed"),r.getSpan().attr("aria-expanded","true"),t&&t(r.node),r.treeWidget._triggerEvent("tree.open",{node:r.node})};e?this.getUl().slideDown(n,a):(this.getUl().show(),a())}},e.prototype.close=function(t,e){var n=this;if(void 0===t&&(t=!0),void 0===e&&(e="fast"),this.node.is_open){this.node.is_open=!1;var r=this.getButton();r.addClass("jqtree-closed"),r.html("");var o=r.get(0);if(o){var i=this.treeWidget.renderer.closedIconElement.cloneNode(!0);o.appendChild(i)}var s=function(){n.getLi().addClass("jqtree-closed"),n.getSpan().attr("aria-expanded","false"),n.treeWidget._triggerEvent("tree.close",{node:n.node})};t?this.getUl().slideUp(e,s):(this.getUl().hide(),s())}},e.prototype.mustShowBorderDropHint=function(t){return!this.node.is_open&&t===s.Inside},e.prototype.getButton=function(){return this.$element.children(".jqtree-element").find("a.jqtree-toggler")},e}(N),O=function(){function t(t,e){var n=t.children(".jqtree-element"),r=t.width()||0,o=Math.max(r+e-4,0),i=n.outerHeight()||0,s=Math.max(i-4,0);this.$hint=jQuery(''),n.append(this.$hint),this.$hint.css({width:o,height:s})}return t.prototype.remove=function(){this.$hint.remove()},t}(),I=function(){function t(t,e,n){this.$element=e,this.node=t,this.$ghost=jQuery('
  • \n
  • '),n===s.After?this.moveAfter():n===s.Before?this.moveBefore():n===s.Inside&&(t.isFolder()&&t.is_open?this.moveInsideOpenFolder():this.moveInside())}return t.prototype.remove=function(){this.$ghost.remove()},t.prototype.moveAfter=function(){this.$element.after(this.$ghost)},t.prototype.moveBefore=function(){this.$element.before(this.$ghost)},t.prototype.moveInsideOpenFolder=function(){jQuery(this.node.children[0].element).before(this.$ghost)},t.prototype.moveInside=function(){this.$element.after(this.$ghost),this.$ghost.addClass("jqtree-inside")},t}(),A=n.default||r,D="Node parameter is empty",k="Parameter is empty: ",P=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleClick=function(t){var n=e.getClickTarget(t.target);if(n)if("button"===n.type)e.toggle(n.node,e.options.slide),t.preventDefault(),t.stopPropagation();else if("label"===n.type){var r=n.node;e._triggerEvent("tree.click",{node:r,click_event:t}).isDefaultPrevented()||e.doSelectNode(r)}},e.handleDblclick=function(t){var n=e.getClickTarget(t.target);"label"===(null==n?void 0:n.type)&&e._triggerEvent("tree.dblclick",{node:n.node,click_event:t})},e.handleContextmenu=function(t){var n=A(t.target).closest("ul.jqtree-tree .jqtree-element");if(n.length){var r=e.getNode(n);if(r)return t.preventDefault(),t.stopPropagation(),e._triggerEvent("tree.contextmenu",{node:r,click_event:t}),!1}return null},e}return i(e,t),e.prototype.toggle=function(t,e){if(void 0===e&&(e=null),!t)throw Error(D);var n=null!=e?e:this.options.slide;return t.is_open?this.closeNode(t,n):this.openNode(t,n),this.element},e.prototype.getTree=function(){return this.tree},e.prototype.selectNode=function(t,e){return this.doSelectNode(t,e),this.element},e.prototype.getSelectedNode=function(){return this.selectNodeHandler.getSelectedNode()},e.prototype.toJson=function(){return JSON.stringify(this.tree.getData())},e.prototype.loadData=function(t,e){return this.doLoadData(t,e),this.element},e.prototype.loadDataFromUrl=function(t,e,n){return"string"==typeof t?this.doLoadDataFromUrl(t,e,null!=n?n:null):this.doLoadDataFromUrl(null,t,e),this.element},e.prototype.reload=function(t){return this.doLoadDataFromUrl(null,null,t),this.element},e.prototype.getNodeById=function(t){return this.tree.getNodeById(t)},e.prototype.getNodeByName=function(t){return this.tree.getNodeByName(t)},e.prototype.getNodeByNameMustExist=function(t){return this.tree.getNodeByNameMustExist(t)},e.prototype.getNodesByProperty=function(t,e){return this.tree.getNodesByProperty(t,e)},e.prototype.getNodeByHtmlElement=function(t){return this.getNode(A(t))},e.prototype.getNodeByCallback=function(t){return this.tree.getNodeByCallback(t)},e.prototype.openNode=function(t,e,n){var r=this;if(!t)throw Error(D);var o=function(){var t,o,i;return"function"==typeof e?(o=e,i=null):(i=e,o=n),null==i&&(i=null!==(t=r.options.slide)&&void 0!==t&&t),[i,o]}(),i=o[0],s=o[1];return this._openNode(t,i,s),this.element},e.prototype.closeNode=function(t,e){if(!t)throw Error(D);var n=null!=e?e:this.options.slide;return(t.isFolder()||t.isEmptyFolder)&&(new j(t,this).close(n,this.options.animationSpeed),this.saveState()),this.element},e.prototype.isDragging=function(){return this.dndHandler.isDragging},e.prototype.refreshHitAreas=function(){return this.dndHandler.refresh(),this.element},e.prototype.addNodeAfter=function(t,e){var n=e.addAfter(t);return n&&this._refreshElements(e.parent),n},e.prototype.addNodeBefore=function(t,e){if(!e)throw Error(k+"existingNode");var n=e.addBefore(t);return n&&this._refreshElements(e.parent),n},e.prototype.addParentNode=function(t,e){if(!e)throw Error(k+"existingNode");var n=e.addParent(t);return n&&this._refreshElements(n.parent),n},e.prototype.removeNode=function(t){if(!t)throw Error(D);if(!t.parent)throw Error("Node has no parent");this.selectNodeHandler.removeFromSelection(t,!0);var e=t.parent;return t.remove(),this._refreshElements(e),this.element},e.prototype.appendNode=function(t,e){var n=e||this.tree,r=n.append(t);return this._refreshElements(n),r},e.prototype.prependNode=function(t,e){var n=null!=e?e:this.tree,r=n.prepend(t);return this._refreshElements(n),r},e.prototype.updateNode=function(t,e){if(!t)throw Error(D);var n="object"==typeof e&&e.id&&e.id!==t.id;n&&this.tree.removeNodeFromIndex(t),t.setData(e),n&&this.tree.addNodeToIndex(t),"object"==typeof e&&e.children&&e.children instanceof Array&&(t.removeChildren(),e.children.length&&t.loadFromData(e.children));var r=this.selectNodeHandler.isFocusOnTree(),o=this.isSelectedNodeInSubtree(t);return this._refreshElements(t),o&&this.selectCurrentNode(r),this.element},e.prototype.isSelectedNodeInSubtree=function(t){var e=this.getSelectedNode();return!!e&&(t===e||t.isParentOf(e))},e.prototype.moveNode=function(t,e,n){if(!t)throw Error(D);if(!e)throw Error(k+"targetNode");var r=l[n];return void 0!==r&&(this.tree.moveNode(t,e,r),this._refreshElements(null)),this.element},e.prototype.getStateFromStorage=function(){return this.saveStateHandler.getStateFromStorage()},e.prototype.addToSelection=function(t,e){if(!t)throw Error(D);return this.selectNodeHandler.addToSelection(t),this._getNodeElementForNode(t).select(void 0===e||e),this.saveState(),this.element},e.prototype.getSelectedNodes=function(){return this.selectNodeHandler.getSelectedNodes()},e.prototype.isNodeSelected=function(t){if(!t)throw Error(D);return this.selectNodeHandler.isNodeSelected(t)},e.prototype.removeFromSelection=function(t){if(!t)throw Error(D);return this.selectNodeHandler.removeFromSelection(t),this._getNodeElementForNode(t).deselect(),this.saveState(),this.element},e.prototype.scrollToNode=function(t){if(!t)throw Error(D);var e=A(t.element).offset(),n=e?e.top:0,r=this.$el.offset(),o=n-(r?r.top:0);return this.scrollHandler.scrollToY(o),this.element},e.prototype.getState=function(){return this.saveStateHandler.getState()},e.prototype.setState=function(t){return this.saveStateHandler.setInitialState(t),this._refreshElements(null),this.element},e.prototype.setOption=function(t,e){return this.options[t]=e,this.element},e.prototype.moveDown=function(){var t=this.getSelectedNode();return t&&this.keyHandler.moveDown(t),this.element},e.prototype.moveUp=function(){var t=this.getSelectedNode();return t&&this.keyHandler.moveUp(t),this.element},e.prototype.getVersion=function(){return"1.5.2"},e.prototype._triggerEvent=function(t,e){var n=A.Event(t,e);return this.element.trigger(n),n},e.prototype._openNode=function(t,e,n){var r=this;void 0===e&&(e=!0);var o=function(t,e,n){new j(t,r).open(n,e,r.options.animationSpeed)};if(t.isFolder()||t.isEmptyFolder)if(t.load_on_demand)this.loadFolderOnDemand(t,e,n);else{for(var i=t.parent;i;)i.parent&&o(i,!1,null),i=i.parent;o(t,e,n),this.saveState()}},e.prototype._refreshElements=function(t){this.renderer.render(t),this._triggerEvent("tree.refresh")},e.prototype._getNodeElementForNode=function(t){return t.isFolder()?new j(t,this):new N(t,this)},e.prototype._getNodeElement=function(t){var e=this.getNode(t);return e?this._getNodeElementForNode(e):null},e.prototype._containsElement=function(t){var e=this.getNode(A(t));return null!=e&&e.tree===this.tree},e.prototype._getScrollLeft=function(){return this.scrollHandler.getScrollLeft()},e.prototype.init=function(){t.prototype.init.call(this),this.element=this.$el,this.mouseDelay=300,this.isInitialized=!1,this.options.rtl=this.getRtlOption(),null==this.options.closedIcon&&(this.options.closedIcon=this.getDefaultClosedIcon()),this.renderer=new v(this),this.dataLoader=new m(this),this.saveStateHandler=new S(this),this.selectNodeHandler=new E(this),this.dndHandler=new h(this),this.scrollHandler=new C(this),this.keyHandler=new y(this),this.initData(),this.element.on("click",this.handleClick),this.element.on("dblclick",this.handleDblclick),this.options.useContextMenu&&this.element.on("contextmenu",this.handleContextmenu)},e.prototype.deinit=function(){this.element.empty(),this.element.off(),this.keyHandler.deinit(),this.tree=new c({},!0),t.prototype.deinit.call(this)},e.prototype.mouseCapture=function(t){return!!this.options.dragAndDrop&&this.dndHandler.mouseCapture(t)},e.prototype.mouseStart=function(t){return!!this.options.dragAndDrop&&this.dndHandler.mouseStart(t)},e.prototype.mouseDrag=function(t){if(this.options.dragAndDrop){var e=this.dndHandler.mouseDrag(t);return this.scrollHandler.checkScrolling(),e}return!1},e.prototype.mouseStop=function(t){return!!this.options.dragAndDrop&&this.dndHandler.mouseStop(t)},e.prototype.initData=function(){this.options.data?this.doLoadData(this.options.data,null):this.getDataUrlInfo(null)?this.doLoadDataFromUrl(null,null,null):this.doLoadData([],null)},e.prototype.getDataUrlInfo=function(t){var e,n=this,r=this.options.dataUrl||this.element.data("url"),o=function(e){if(null==t?void 0:t.id){var r={node:t.id};e.data=r}else{var o=n.getNodeIdToBeSelected();o&&(r={selected_node:o},e.data=r)}};return"function"==typeof r?r(t):"string"==typeof r?(o(e={url:r}),e):r&&"object"==typeof r?(o(r),r):null},e.prototype.getNodeIdToBeSelected=function(){return this.options.saveState?this.saveStateHandler.getNodeIdToBeSelected():null},e.prototype.initTree=function(t){var e=this,n=function(){e.isInitialized||(e.isInitialized=!0,e._triggerEvent("tree.init"))};if(this.options.nodeClass){this.tree=new this.options.nodeClass(null,!0,this.options.nodeClass),this.selectNodeHandler.clear(),this.tree.loadFromData(t);var r=this.setInitialState();this._refreshElements(null),r?this.setInitialStateOnDemand(n):n()}},e.prototype.setInitialState=function(){var t=this,e=function(){if(t.options.saveState){var e=t.saveStateHandler.getStateFromStorage();return e?[!0,t.saveStateHandler.setInitialState(e)]:[!1,!1]}return[!1,!1]}(),n=e[0],r=e[1];return n||(r=function(){if(!1===t.options.autoOpen)return!1;var e=t.getAutoOpenMaxLevel(),n=!1;return t.tree.iterate(function(t,r){return t.load_on_demand?(n=!0,!1):!!t.hasChildren()&&(t.is_open=!0,r!==e)}),n}()),r},e.prototype.setInitialStateOnDemand=function(t){var e,n,r,o=this;(function(){if(o.options.saveState){var e=o.saveStateHandler.getStateFromStorage();return!!e&&(o.saveStateHandler.setInitialStateOnDemand(e,t),!0)}return!1})()||(e=o.getAutoOpenMaxLevel(),n=0,(r=function(){o.tree.iterate(function(t,i){return t.load_on_demand?(t.is_loading||function(t){n+=1,o._openNode(t,!1,function(){n-=1,r()})}(t),!1):(o._openNode(t,!1,null),i!==e)}),0===n&&t()})())},e.prototype.getAutoOpenMaxLevel=function(){return!0===this.options.autoOpen?-1:"number"==typeof this.options.autoOpen?this.options.autoOpen:"string"==typeof this.options.autoOpen?parseInt(this.options.autoOpen,10):0},e.prototype.getClickTarget=function(t){var e=A(t),n=e.closest(".jqtree-toggler");if(n.length){if(r=this.getNode(n))return{type:"button",node:r}}else{var r,o=e.closest(".jqtree-element");if(o.length&&(r=this.getNode(o)))return{type:"label",node:r}}return null},e.prototype.getNode=function(t){var e=t.closest("li.jqtree_common");return 0===e.length?null:e.data("node")},e.prototype.saveState=function(){this.options.saveState&&this.saveStateHandler.saveState()},e.prototype.selectCurrentNode=function(t){var e=this.getSelectedNode();if(e){var n=this._getNodeElementForNode(e);n&&n.select(t)}},e.prototype.deselectCurrentNode=function(){var t=this.getSelectedNode();t&&this.removeFromSelection(t)},e.prototype.getDefaultClosedIcon=function(){return this.options.rtl?"◀":"►"},e.prototype.getRtlOption=function(){if(null!=this.options.rtl)return this.options.rtl;var t=this.element.data("rtl");return null!==t&&!1!==t&&void 0!==t},e.prototype.doSelectNode=function(t,e){var n=this,r=function(){n.options.saveState&&n.saveStateHandler.saveState()};if(!t)return this.deselectCurrentNode(),void r();var o=a(a({},{mustSetFocus:!0,mustToggle:!0}),e||{});if(n.options.onCanSelectNode?!0===n.options.selectable&&n.options.onCanSelectNode(t):!0===n.options.selectable){if(this.selectNodeHandler.isNodeSelected(t))o.mustToggle&&(this.deselectCurrentNode(),this._triggerEvent("tree.select",{node:null,previous_node:t}));else{var i=this.getSelectedNode()||null;this.deselectCurrentNode(),this.addToSelection(t,o.mustSetFocus),this._triggerEvent("tree.select",{node:t,deselected_node:i}),(s=t.parent)&&s.parent&&!s.is_open&&n.openNode(s,!1)}var s;r()}},e.prototype.doLoadData=function(t,e){t&&(this._triggerEvent("tree.load_data",{tree_data:t}),e?(this.deselectNodes(e),this.loadSubtree(t,e)):this.initTree(t),this.isDragging()&&this.dndHandler.refresh())},e.prototype.deselectNodes=function(t){for(var e=0,n=this.selectNodeHandler.getSelectedNodesUnder(t);e1&&(r+=(Math.ceil(e)-1)*H),d(s.ratedFill),(r=s.rtl?100-r:r)<0?r=0:r>100&&(r=100),B.css("width",r+"%")}function c(){q=L*s.numStars+R*(s.numStars-1),F=L/q*100,H=R/q*100,r.width(q),l()}function p(t){var e=s.starWidth=t;return L=window.parseFloat(s.starWidth.replace("px","")),z.find("svg").attr({width:s.starWidth,height:e}),B.find("svg").attr({width:s.starWidth,height:e}),c(),r}function h(t){return s.spacing=t,R=parseFloat(s.spacing.replace("px","")),z.find("svg:not(:first-child)").css({"margin-left":t}),B.find("svg:not(:first-child)").css({"margin-left":t}),c(),r}function f(t){return s.normalFill=t,(s.rtl?B:z).find("svg").attr({fill:s.normalFill}),r}function d(t){if(s.multiColor){var e=(V-U)/s.maxValue*100,n=s.multiColor||{};t=o(n.startColor||u.startColor,n.endColor||u.endColor,e)}else Q=t;return s.ratedFill=t,(s.rtl?z:B).find("svg").attr({fill:s.ratedFill}),r}function g(t){t=!!t,s.rtl=t,f(s.normalFill),l()}function v(t){s.multiColor=t,d(t||Q)}function m(e){s.numStars=e,M=s.maxValue/s.numStars,z.empty(),B.empty();for(var n=0;nt&&C(t),l(),r}function b(t){return s.precision=t,C(s.rating),r}function w(t){return s.halfStar=t,r}function T(t){return s.fullStar=t,r}function x(t){var e=z.offset().left,n=e+z.width(),r=s.maxValue,o=t.pageX,i=0;if(on)i=r;else{var a=(o-e)/(n-e);if(R>0)for(var l=a*=100;l>0;)l>F?(i+=M,l-=F+H):(i+=l/F*M,l=0);else i=a*s.maxValue;i=function(t){var e=t%M,n=M/2,r=s.halfStar,o=s.fullStar;return o||r?(o||r&&e>n?t+=M-e:(t-=e,e>0&&(t+=n)),t):t}(i)}return s.rtl&&(i=r-i),parseFloat(i)}function S(t){return s.readOnly=t,r.attr("readonly",!0),_(),t||(r.removeAttr("readonly"),r.on("mousemove",O).on("mouseenter",O).on("mouseleave",I).on("click",A).on("rateyo.init",D).on("rateyo.change",k).on("rateyo.set",P)),r}function C(t){var n=t,o=s.maxValue;return"string"==typeof n&&("%"===n[n.length-1]&&(n=n.substr(0,n.length-1),y(o=100)),n=parseFloat(n)),function(t,e,n){if(!(t>=e&&t<=n))throw Error("Invalid Rating, expected value between "+e+" and "+n)}(n,U,o),n=parseFloat(n.toFixed(s.precision)),e(parseFloat(n),U,o),s.rating=n,l(),X&&r.trigger("rateyo.set",{rating:n}),r}function E(t){return s.onInit=t,r}function N(t){return s.onSet=t,r}function j(t){return s.onChange=t,r}function O(t){var n=x(t).toFixed(s.precision),o=s.maxValue;l(n=e(parseFloat(n),U,o)),r.trigger("rateyo.change",{rating:n})}function I(){(function(){var t,e=!1;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e})()||(l(),r.trigger("rateyo.change",{rating:s.rating}))}function A(t){var e=x(t).toFixed(s.precision);e=parseFloat(e),$.rating(e)}function D(t,e){s.onInit&&"function"==typeof s.onInit&&s.onInit.apply(this,[e.rating,$])}function k(t,e){s.onChange&&"function"==typeof s.onChange&&s.onChange.apply(this,[e.rating,$])}function P(t,e){s.onSet&&"function"==typeof s.onSet&&s.onSet.apply(this,[e.rating,$])}function _(){r.off("mousemove",O).off("mouseenter",O).off("mouseleave",I).off("click",A).off("rateyo.init",D).off("rateyo.change",k).off("rateyo.set",P)}this.node=r.get(0);var $=this;r.empty().addClass("jq-ry-container");var M,L,F,R,H,q,W=t("
    ").addClass("jq-ry-group-wrapper").appendTo(r),z=t("
    ").addClass("jq-ry-normal-group").addClass("jq-ry-group").appendTo(W),B=t("
    ").addClass("jq-ry-rated-group").addClass("jq-ry-group").appendTo(W),U=0,V=s.rating,X=!1,Q=s.ratedFill;this.rating=function(t){return n(t)?(C(t),r):s.rating},this.destroy=function(){return s.readOnly||_(),i.prototype.collection=(e=r.get(0),n=this.collection,t.each(n,function(t){if(e===this.node){var r=n.slice(0,t),o=n.slice(t+1,n.length);return n=r.concat(o),!1}}),n),r.removeClass("jq-ry-container").children().remove(),r;var e,n},this.method=function(t){if(!t)throw Error("Method name not specified!");if(!n(this[t]))throw Error("Method "+t+" doesn't exist!");var e=Array.prototype.slice.apply(arguments,[]).slice(1);return this[t].apply(this,e)},this.option=function(t,e){if(!n(t))return s;var r;switch(t){case"starWidth":r=p;break;case"numStars":r=m;break;case"normalFill":r=f;break;case"ratedFill":r=d;break;case"multiColor":r=v;break;case"maxValue":r=y;break;case"precision":r=b;break;case"rating":r=C;break;case"halfStar":r=w;break;case"fullStar":r=T;break;case"readOnly":r=S;break;case"spacing":r=h;break;case"rtl":r=g;break;case"onInit":r=E;break;case"onSet":r=N;break;case"onChange":r=j;break;default:throw Error("No such option as "+t)}return n(e)?r(e):s[t]},m(s.numStars),S(s.readOnly),s.rtl&&g(s.rtl),this.collection.push(this),this.rating(s.rating,!0),X=!0,r.trigger("rateyo.init",{rating:s.rating})}function s(e,n){var r;return t.each(n,function(){if(e===this.node)return r=this,!1}),r}var a='',l={starWidth:"32px",normalFill:"gray",ratedFill:"#f39c12",numStars:5,maxValue:5,precision:1,rating:0,fullStar:!1,halfStar:!1,readOnly:!1,spacing:"0px",rtl:!1,multiColor:null,onInit:null,onChange:null,onSet:null,starSvg:null},u={startColor:"#c0392b",endColor:"#f1c40f"},c=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i,p=function(t){if(!c.test(t))return null;var e=c.exec(t);return{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}};i.prototype.collection=[],window.RateYo=i,t.fn.rateYo=function(){return(function(e){var n=i.prototype.collection,r=t(this);if(0===r.length)return r;var o=Array.prototype.slice.apply(arguments,[]);if(0===o.length)e=o[0]={};else{if(1!==o.length||"object"!=typeof o[0]){if(o.length>=1&&"string"==typeof o[0]){var a=o[0],u=o.slice(1),c=[];return t.each(r,function(t,e){var r=s(e,n);if(!r)throw Error("Trying to set options before even initialization");var o=r[a];if(!o)throw Error("Method "+a+" does not exist!");var i=o.apply(r,u);c.push(i)}),c=1===c.length?c[0]:c}throw Error("Invalid Arguments")}e=o[0]}return e=t.extend({},l,e),t.each(r,function(){var r=s(this,n);if(r)return r;var o=t(this),a={},l=t.extend({},e);return t.each(o.data(),function(t,e){if(0===t.indexOf("rateyo")){var n=t.replace(/^rateyo/,"");n=n[0].toLowerCase()+n.slice(1),a[n]=e,delete l[n]}}),new i(t(this),t.extend({},a,l))})}).apply(this,Array.prototype.slice.apply(arguments,[]))}}(window.jQuery),"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:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.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},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},a.prototype.init=function(e,n,r){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&t(document).find(t.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 o=this.options.trigger.split(" "),i=o.length;i--;){var s=o[i];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",l="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},a.prototype.getDefaults=function(){return a.DEFAULTS},a.prototype.getOptions=function(n){var r=this.$element.data();for(var o in r)r.hasOwnProperty(o)&&-1!==t.inArray(o,e)&&delete r[o];return(n=t.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=s(n.template,n.whiteList,n.sanitizeFn)),n},a.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,r){n[t]!=r&&(e[t]=r)}),e},a.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},a.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},a.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},a.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var r=this,o=this.tip(),i=this.getUID(this.type);this.setContent(),o.attr("id",i),this.$element.attr("aria-describedby",i),this.options.animation&&o.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(s);u&&(s=s.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?o.appendTo(t(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),p=o[0].offsetWidth,h=o[0].offsetHeight;if(u){var f=s,d=this.getPosition(this.$viewport);s="bottom"==s&&c.bottom+h>d.bottom?"top":"top"==s&&c.top-hd.width?"left":"left"==s&&c.left-ps.top+s.height&&(o.top=s.top+s.height-l)}else{var u=e.left-i,c=e.left+i+n;us.right&&(o.left=s.left+s.width-c)}return o},a.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)},a.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},a.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(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},a.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},a.prototype.enable=function(){this.enabled=!0},a.prototype.disable=function(){this.enabled=!1},a.prototype.toggleEnabled=function(){this.enabled=!this.enabled},a.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},a.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})},a.prototype.sanitizeHtml=function(t){return s(t,this.options.whiteList,this.options.sanitizeFn)};var l=t.fn.tooltip;t.fn.tooltip=function(e){return this.each(function(){var n=t(this),r=n.data("bs.tooltip"),o="object"==typeof e&&e;!r&&/destroy|hide/.test(e)||(r||n.data("bs.tooltip",r=new a(this,o)),"string"==typeof e&&r[e]())})},t.fn.tooltip.Constructor=a,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=l,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.4.1",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e).prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===r&&(n=this.sanitizeHtml(n))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(n);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.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)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var r=t(this),o=r.data("bs.popover"),i="object"==typeof n&&n;!o&&/destroy|hide/.test(n)||(o||r.data("bs.popover",o=new e(this,i)),"string"==typeof n&&o[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(n,r){this.$body=t(document.body),this.$scrollElement=t(n).is(document.body)?t(window):t(n),this.options=t.extend({},e.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var r=t(this),o=r.data("bs.scrollspy"),i="object"==typeof n&&n;o||r.data("bs.scrollspy",o=new e(this,i)),"string"==typeof n&&o[n]()})}e.VERSION="3.4.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),o=e.data("target")||e.attr("href"),i=/^#./.test(o)&&t(o);return i&&i.length&&i.is(":visible")&&[[i[n]().top+r,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,i=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),r<=e)return s!=(t=i[i.length-1])&&this.activate(t);if(s&&e=o[t]&&(void 0===o[t+1]||e .active"),s=o&&t.support.transition&&(i.length&&i.hasClass("fade")||!!r.find("> .fade").length);function a(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}i.length&&s?i.one("bsTransitionEnd",a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),i.removeClass("in")};var r=t.fn.tab;t.fn.tab=n,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=r,this};var o=function(e){e.preventDefault(),n.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(jQuery),function(t){"use strict";var e=function(n,r){this.options=t.extend({},e.DEFAULTS,r);var o=this.options.target===e.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=o.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var r=t(this),o=r.data("bs.affix"),i="object"==typeof n&&n;o||r.data("bs.affix",o=new e(this,i)),"string"==typeof n&&o[n]()})}e.VERSION="3.4.1",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,r){var o=this.$target.scrollTop(),i=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return o').html(this.options.on).addClass(this._onstyle+" "+e),r=t('