
try{/*! jQuery v3.1.1 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.1.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:c.sort,splice:c.splice},r.extend=r.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||r.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(r.isPlainObject(d)||(e=r.isArray(d)))?(e?(e=!1,f=c&&r.isArray(c)?c:[]):f=c&&r.isPlainObject(c)?c:{},g[b]=r.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},r.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===r.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=r.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==k.call(a))&&(!(b=e(a))||(c=l.call(b,"constructor")&&b.constructor,"function"==typeof c&&m.call(c)===n))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[k.call(a)]||"object":typeof a},globalEval:function(a){p(a)},camelCase:function(a){return a.replace(t,"ms-").replace(u,v)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(w(a)){for(c=a.length;d<c;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(s,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(w(Object(a))?r.merge(c,"string"==typeof a?[a]:a):h.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:i.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,f=0,h=[];if(w(a))for(d=a.length;f<d;f++)e=b(a[f],f,c),null!=e&&h.push(e);else for(f in a)e=b(a[f],f,c),null!=e&&h.push(e);return g.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),r.isFunction(a))return d=f.call(arguments,2),e=function(){return a.apply(b||this,d.concat(f.call(arguments)))},e.guid=a.guid=a.guid||r.guid++,e},now:Date.now,support:o}),"function"==typeof Symbol&&(r.fn[Symbol.iterator]=c[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){j["[object "+b+"]"]=b.toLowerCase()});function w(a){var b=!!a&&"length"in a&&a.length,c=r.type(a);return"function"!==c&&!r.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:pa(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:pa(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function ra(){}ra.prototype=d.filters=d.pseudos,d.setFilters=new ra,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=Q.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function sa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function ta(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=x++;return b.first?function(b,c,e){while(b=b[d])if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[w,h];if(i){while(b=b[d])if((1===b.nodeType||g)&&a(b,c,i))return!0}else while(b=b[d])if(1===b.nodeType||g)if(l=b[u]||(b[u]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===w&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function ua(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d<e;d++)ga(a,b[d],c);return c}function wa(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function xa(a,b,c,d,e,f){return d&&!d[u]&&(d=xa(d)),e&&!e[u]&&(e=xa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||va(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:wa(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=wa(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i<f;i++)if(c=d.relative[a[i].type])m=[ta(ua(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return xa(i>1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i<e&&ya(a.slice(i,e)),e<f&&ya(a=a.slice(e)),e<f&&sa(a))}m.push(c)}return ua(m)}function za(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,C=/^.[^:#\[\.,]*$/;function D(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):C.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b<d;b++)if(r.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;b<d;b++)r.find(a,e[b],c);return d>1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(D(this,a||[],!1))},not:function(a){return this.pushStack(D(this,a||[],!0))},is:function(a){return!!D(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var E,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,G=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||E,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:F.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),B.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};G.prototype=r.fn,E=r(d);var H=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a<c;a++)if(r.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&r(a);if(!A.test(a))for(;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function J(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return J(a,"nextSibling")},prev:function(a){return J(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return a.contentDocument||r.merge([],a.childNodes)}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(I[a]||r.uniqueSort(e),H.test(a)&&e.reverse()),this.pushStack(e)}});var K=/[^\x20\t\r\n\f]+/g;function L(a){var b={};return r.each(a.match(K)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?L(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){r.each(b,function(b,c){r.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==r.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return r.each(arguments,function(a,b){var c;while((c=r.inArray(b,f,c))>-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function M(a){return a}function N(a){throw a}function O(a,b,c){var d;try{a&&r.isFunction(d=a.promise)?d.call(a).done(b).fail(c):a&&r.isFunction(d=a.then)?d.call(a,b,c):b.call(void 0,a)}catch(a){c.call(void 0,a)}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b<f)){if(a=d.apply(h,i),a===c.promise())throw new TypeError("Thenable self-resolution");j=a&&("object"==typeof a||"function"==typeof a)&&a.then,r.isFunction(j)?e?j.call(a,g(f,c,M,e),g(f,c,N,e)):(f++,j.call(a,g(f,c,M,e),g(f,c,N,e),g(f,c,M,c.notifyWith))):(d!==M&&(h=void 0,i=[a]),(e||c.resolveWith)(h,i))}},k=e?j:function(){try{j()}catch(a){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(a,k.stackTrace),b+1>=f&&(d!==N&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:M,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:M)),c[2][3].add(g(0,a,r.isFunction(d)?d:N))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(O(a,g.done(h(c)).resolve,g.reject),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)O(e[c],h(c),g.reject);return g.promise()}});var P=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&P.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var Q=r.Deferred();r.fn.ready=function(a){return Q.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,holdReady:function(a){a?r.readyWait++:r.ready(!0)},ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||Q.resolveWith(d,[r]))}}),r.ready.then=Q.then;function R(){d.removeEventListener("DOMContentLoaded",R),
a.removeEventListener("load",R),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",R),a.addEventListener("load",R));var S=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)S(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},T=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function U(){this.expando=r.expando+U.uid++}U.uid=1,U.prototype={cache:function(a){var b=a[this.expando];return b||(b={},T(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[r.camelCase(b)]=c;else for(d in b)e[r.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][r.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){r.isArray(b)?b=b.map(r.camelCase):(b=r.camelCase(b),b=b in d?[b]:b.match(K)||[]),c=b.length;while(c--)delete d[b[c]]}(void 0===b||r.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!r.isEmptyObject(b)}};var V=new U,W=new U,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Y=/[A-Z]/g;function Z(a){return"true"===a||"false"!==a&&("null"===a?null:a===+a+""?+a:X.test(a)?JSON.parse(a):a)}function $(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Y,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=Z(c)}catch(e){}W.set(a,b,c)}else c=void 0;return c}r.extend({hasData:function(a){return W.hasData(a)||V.hasData(a)},data:function(a,b,c){return W.access(a,b,c)},removeData:function(a,b){W.remove(a,b)},_data:function(a,b,c){return V.access(a,b,c)},_removeData:function(a,b){V.remove(a,b)}}),r.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=W.get(f),1===f.nodeType&&!V.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=r.camelCase(d.slice(5)),$(f,d,e[d])));V.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){W.set(this,a)}):S(this,function(b){var c;if(f&&void 0===b){if(c=W.get(f,a),void 0!==c)return c;if(c=$(f,a),void 0!==c)return c}else this.each(function(){W.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){W.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=V.get(a,b),c&&(!d||r.isArray(c)?d=V.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return V.get(a,c)||V.access(a,c,{empty:r.Callbacks("once memory").add(function(){V.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?r.queue(this[0],a):void 0===b?this:this.each(function(){var c=r.queue(this,a,b);r._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&r.dequeue(this,a)})},dequeue:function(a){return this.each(function(){r.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=r.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=V.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var _=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,aa=new RegExp("^(?:([+-])=|)("+_+")([a-z%]*)$","i"),ba=["Top","Right","Bottom","Left"],ca=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&r.contains(a.ownerDocument,a)&&"none"===r.css(a,"display")},da=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};function ea(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return r.css(a,b,"")},i=h(),j=c&&c[3]||(r.cssNumber[b]?"":"px"),k=(r.cssNumber[b]||"px"!==j&&+i)&&aa.exec(r.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,r.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var fa={};function ga(a){var b,c=a.ownerDocument,d=a.nodeName,e=fa[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=r.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),fa[d]=e,e)}function ha(a,b){for(var c,d,e=[],f=0,g=a.length;f<g;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=V.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&ca(d)&&(e[f]=ga(d))):"none"!==c&&(e[f]="none",V.set(d,"display",c)));for(f=0;f<g;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}r.fn.extend({show:function(){return ha(this,!0)},hide:function(){return ha(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){ca(this)?r(this).show():r(this).hide()})}});var ia=/^(?:checkbox|radio)$/i,ja=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ka=/^$|\/(?:java|ecma)script/i,la={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};la.optgroup=la.option,la.tbody=la.tfoot=la.colgroup=la.caption=la.thead,la.th=la.td;function ma(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&r.nodeName(a,b)?r.merge([a],c):c}function na(a,b){for(var c=0,d=a.length;c<d;c++)V.set(a[c],"globalEval",!b||V.get(b[c],"globalEval"))}var oa=/<|&#?\w+;/;function pa(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;n<o;n++)if(f=a[n],f||0===f)if("object"===r.type(f))r.merge(m,f.nodeType?[f]:f);else if(oa.test(f)){g=g||l.appendChild(b.createElement("div")),h=(ja.exec(f)||["",""])[1].toLowerCase(),i=la[h]||la._default,g.innerHTML=i[1]+r.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;r.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",n=0;while(f=m[n++])if(d&&r.inArray(f,d)>-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=ma(l.appendChild(f),"script"),j&&na(g),c){k=0;while(f=g[k++])ka.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var qa=d.documentElement,ra=/^key/,sa=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ta=/^([^.]*)(?:\.(.+)|)/;function ua(){return!0}function va(){return!1}function wa(){try{return d.activeElement}catch(a){}}function xa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)xa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=va;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(qa,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(K)||[""],j=b.length;while(j--)h=ta.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.hasData(a)&&V.get(a);if(q&&(i=q.events)){b=(b||"").match(K)||[""],j=b.length;while(j--)if(h=ta.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&V.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(V.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c<arguments.length;c++)i[c]=arguments[c];if(b.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,b)!==!1){h=r.event.handlers.call(this,b,j),c=0;while((f=h[c++])&&!b.isPropagationStopped()){b.currentTarget=f.elem,d=0;while((g=f.handlers[d++])&&!b.isImmediatePropagationStopped())b.rnamespace&&!b.rnamespace.test(g.namespace)||(b.handleObj=g,b.data=g.data,e=((r.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(b.result=e)===!1&&(b.preventDefault(),b.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,b),b.result}},handlers:function(a,b){var c,d,e,f,g,h=[],i=b.delegateCount,j=a.target;if(i&&j.nodeType&&!("click"===a.type&&a.button>=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c<i;c++)d=b[c],e=d.selector+" ",void 0===g[e]&&(g[e]=d.needsContext?r(e,this).index(j)>-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i<b.length&&h.push({elem:j,handlers:b.slice(i)}),h},addProp:function(a,b){Object.defineProperty(r.Event.prototype,a,{enumerable:!0,configurable:!0,get:r.isFunction(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[r.expando]?a:new r.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==wa()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===wa()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&r.nodeName(this,"input"))return this.click(),!1},_default:function(a){return r.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},r.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},r.Event=function(a,b){return this instanceof r.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ua:va,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&r.extend(this,b),this.timeStamp=a&&a.timeStamp||r.now(),void(this[r.expando]=!0)):new r.Event(a,b)},r.Event.prototype={constructor:r.Event,isDefaultPrevented:va,isPropagationStopped:va,isImmediatePropagationStopped:va,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ua,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ua,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ua,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},r.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&ra.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&sa.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},r.event.addProp),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){r.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||r.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),r.fn.extend({on:function(a,b,c,d){return xa(this,a,b,c,d)},one:function(a,b,c,d){return xa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,r(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=va),this.each(function(){r.event.remove(this,a,c,b)})}});var ya=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,za=/<script|<style|<link/i,Aa=/checked\s*(?:[^=]|=\s*.checked.)/i,Ba=/^true\/(.*)/,Ca=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Da(a,b){return r.nodeName(a,"table")&&r.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a:a}function Ea(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Fa(a){var b=Ba.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ga(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(V.hasData(a)&&(f=V.access(a),g=V.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c<d;c++)r.event.add(b,e,j[e][c])}W.hasData(a)&&(h=W.access(a),i=r.extend({},h),W.set(b,i))}}function Ha(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ia.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function Ia(a,b,c,d){b=g.apply([],b);var e,f,h,i,j,k,l=0,m=a.length,n=m-1,q=b[0],s=r.isFunction(q);if(s||m>1&&"string"==typeof q&&!o.checkClone&&Aa.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ia(f,b,c,d)});if(m&&(e=pa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(ma(e,"script"),Ea),i=h.length;l<m;l++)j=e,l!==n&&(j=r.clone(j,!0,!0),i&&r.merge(h,ma(j,"script"))),c.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,r.map(h,Fa),l=0;l<i;l++)j=h[l],ka.test(j.type||"")&&!V.access(j,"globalEval")&&r.contains(k,j)&&(j.src?r._evalUrl&&r._evalUrl(j.src):p(j.textContent.replace(Ca,""),k))}return a}function Ja(a,b,c){for(var d,e=b?r.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||r.cleanData(ma(d)),d.parentNode&&(c&&r.contains(d.ownerDocument,d)&&na(ma(d,"script")),d.parentNode.removeChild(d));return a}r.extend({htmlPrefilter:function(a){return a.replace(ya,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=ma(h),f=ma(a),d=0,e=f.length;d<e;d++)Ha(f[d],g[d]);if(b)if(c)for(f=f||ma(a),g=g||ma(h),d=0,e=f.length;d<e;d++)Ga(f[d],g[d]);else Ga(a,h);return g=ma(h,"script"),g.length>0&&na(g,!i&&ma(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(T(c)){if(b=c[V.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[V.expando]=void 0}c[W.expando]&&(c[W.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ja(this,a,!0)},remove:function(a){return Ja(this,a)},text:function(a){return S(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ia(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Da(this,a);b.appendChild(a)}})},prepend:function(){return Ia(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Da(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ia(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ia(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(ma(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return S(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!za.test(a)&&!la[(ja.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(r.cleanData(ma(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ia(this,arguments,function(b){var c=this.parentNode;r.inArray(this,a)<0&&(r.cleanData(ma(this)),c&&c.replaceChild(b,this))},a)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){r.fn[a]=function(a){for(var c,d=[],e=r(a),f=e.length-1,g=0;g<=f;g++)c=g===f?this:this.clone(!0),r(e[g])[b](c),h.apply(d,c.get());return this.pushStack(d)}});var Ka=/^margin/,La=new RegExp("^("+_+")(?!px)[a-z%]+$","i"),Ma=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)};!function(){function b(){if(i){i.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i.innerHTML="",qa.appendChild(h);var b=a.getComputedStyle(i);c="1%"!==b.top,g="2px"===b.marginLeft,e="4px"===b.width,i.style.marginRight="50%",f="4px"===b.marginRight,qa.removeChild(h),i=null}}var c,e,f,g,h=d.createElement("div"),i=d.createElement("div");i.style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===i.style.backgroundClip,h.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",h.appendChild(i),r.extend(o,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return b(),e},pixelMarginRight:function(){return b(),f},reliableMarginLeft:function(){return b(),g}}))}();function Na(a,b,c){var d,e,f,g,h=a.style;return c=c||Ma(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||r.contains(a.ownerDocument,a)||(g=r.style(a,b)),!o.pixelMarginRight()&&La.test(g)&&Ka.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function Oa(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Pa=/^(none|table(?!-c[ea]).+)/,Qa={position:"absolute",visibility:"hidden",display:"block"},Ra={letterSpacing:"0",fontWeight:"400"},Sa=["Webkit","Moz","ms"],Ta=d.createElement("div").style;function Ua(a){if(a in Ta)return a;var b=a[0].toUpperCase()+a.slice(1),c=Sa.length;while(c--)if(a=Sa[c]+b,a in Ta)return a}function Va(a,b,c){var d=aa.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Wa(a,b,c,d,e){var f,g=0;for(f=c===(d?"border":"content")?4:"width"===b?1:0;f<4;f+=2)"margin"===c&&(g+=r.css(a,c+ba[f],!0,e)),d?("content"===c&&(g-=r.css(a,"padding"+ba[f],!0,e)),"margin"!==c&&(g-=r.css(a,"border"+ba[f]+"Width",!0,e))):(g+=r.css(a,"padding"+ba[f],!0,e),"padding"!==c&&(g+=r.css(a,"border"+ba[f]+"Width",!0,e)));return g}function Xa(a,b,c){var d,e=!0,f=Ma(a),g="border-box"===r.css(a,"boxSizing",!1,f);if(a.getClientRects().length&&(d=a.getBoundingClientRect()[b]),d<=0||null==d){if(d=Na(a,b,f),(d<0||null==d)&&(d=a.style[b]),La.test(d))return d;e=g&&(o.boxSizingReliable()||d===a.style[b]),d=parseFloat(d)||0}return d+Wa(a,b,c||(g?"border":"content"),e,f)+"px"}r.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Na(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=r.camelCase(b),i=a.style;return b=r.cssProps[h]||(r.cssProps[h]=Ua(h)||h),g=r.cssHooks[b]||r.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=aa.exec(c))&&e[1]&&(c=ea(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(r.cssNumber[h]?"":"px")),o.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=r.camelCase(b);return b=r.cssProps[h]||(r.cssProps[h]=Ua(h)||h),g=r.cssHooks[b]||r.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Na(a,b,d)),"normal"===e&&b in Ra&&(e=Ra[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),r.each(["height","width"],function(a,b){r.cssHooks[b]={get:function(a,c,d){if(c)return!Pa.test(r.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?Xa(a,b,d):da(a,Qa,function(){return Xa(a,b,d)})},set:function(a,c,d){var e,f=d&&Ma(a),g=d&&Wa(a,b,d,"border-box"===r.css(a,"boxSizing",!1,f),f);return g&&(e=aa.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=r.css(a,b)),Va(a,c,g)}}}),r.cssHooks.marginLeft=Oa(o.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Na(a,"marginLeft"))||a.getBoundingClientRect().left-da(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),r.each({margin:"",padding:"",border:"Width"},function(a,b){r.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+ba[d]+b]=f[d]||f[d-2]||f[0];return e}},Ka.test(a)||(r.cssHooks[a+b].set=Va)}),r.fn.extend({css:function(a,b){return S(this,function(a,b,c){var d,e,f={},g=0;if(r.isArray(b)){for(d=Ma(a),e=b.length;g<e;g++)f[b[g]]=r.css(a,b[g],!1,d);return f}return void 0!==c?r.style(a,b,c):r.css(a,b)},a,b,arguments.length>1)}});function Ya(a,b,c,d,e){return new Ya.prototype.init(a,b,c,d,e)}r.Tween=Ya,Ya.prototype={constructor:Ya,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=Ya.propHooks[this.prop];return a&&a.get?a.get(this):Ya.propHooks._default.get(this)},run:function(a){var b,c=Ya.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ya.propHooks._default.set(this),this}},Ya.prototype.init.prototype=Ya.prototype,Ya.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},Ya.propHooks.scrollTop=Ya.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=Ya.prototype.init,r.fx.step={};var Za,$a,_a=/^(?:toggle|show|hide)$/,ab=/queueHooks$/;function bb(){$a&&(a.requestAnimationFrame(bb),r.fx.tick())}function cb(){return a.setTimeout(function(){Za=void 0}),Za=r.now()}function db(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ba[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function eb(a,b,c){for(var d,e=(hb.tweeners[b]||[]).concat(hb.tweeners["*"]),f=0,g=e.length;f<g;f++)if(d=e[f].call(c,b,a))return d}function fb(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&ca(a),q=V.get(a,"fxshow");c.queue||(g=r._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,r.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],_a.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}n[d]=q&&q[d]||r.style(a,d)}if(i=!r.isEmptyObject(b),i||!r.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=q&&q.display,null==j&&(j=V.get(a,"display")),k=r.css(a,"display"),"none"===k&&(j?k=j:(ha([a],!0),j=a.style.display||j,k=r.css(a,"display"),ha([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===r.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(q?"hidden"in q&&(p=q.hidden):q=V.access(a,"fxshow",{display:j}),f&&(q.hidden=!p),p&&ha([a],!0),m.done(function(){p||ha([a]),V.remove(a,"fxshow");for(d in n)r.style(a,d,n[d])})),i=eb(p?q[d]:0,d,m),d in q||(q[d]=i.start,p&&(i.end=i.start,i.start=0))}}function gb(a,b){var c,d,e,f,g;for(c in a)if(d=r.camelCase(c),e=b[d],f=a[c],r.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=r.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function hb(a,b,c){var d,e,f=0,g=hb.prefilters.length,h=r.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Za||cb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;g<i;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),f<1&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:r.extend({},b),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},c),originalProperties:b,originalOptions:c,startTime:Za||cb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=r.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;c<d;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(gb(k,j.opts.specialEasing);f<g;f++)if(d=hb.prefilters[f].call(j,a,k,j.opts))return r.isFunction(d.stop)&&(r._queueHooks(j.elem,j.opts.queue).stop=r.proxy(d.stop,d)),d;return r.map(k,eb,j),r.isFunction(j.opts.start)&&j.opts.start.call(a,j),r.fx.timer(r.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}r.Animation=r.extend(hb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return ea(c.elem,a,aa.exec(b),c),c}]},tweener:function(a,b){r.isFunction(a)?(b=a,a=["*"]):a=a.match(K);for(var c,d=0,e=a.length;d<e;d++)c=a[d],hb.tweeners[c]=hb.tweeners[c]||[],hb.tweeners[c].unshift(b)},prefilters:[fb],prefilter:function(a,b){b?hb.prefilters.unshift(a):hb.prefilters.push(a)}}),r.speed=function(a,b,c){var e=a&&"object"==typeof a?r.extend({},a):{complete:c||!c&&b||r.isFunction(a)&&a,duration:a,easing:c&&b||b&&!r.isFunction(b)&&b};return r.fx.off||d.hidden?e.duration=0:"number"!=typeof e.duration&&(e.duration in r.fx.speeds?e.duration=r.fx.speeds[e.duration]:e.duration=r.fx.speeds._default),null!=e.queue&&e.queue!==!0||(e.queue="fx"),e.old=e.complete,e.complete=function(){r.isFunction(e.old)&&e.old.call(this),e.queue&&r.dequeue(this,e.queue)},e},r.fn.extend({fadeTo:function(a,b,c,d){return this.filter(ca).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=r.isEmptyObject(a),f=r.speed(b,c,d),g=function(){var b=hb(this,r.extend({},a),f);(e||V.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=r.timers,g=V.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&ab.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||r.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=V.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=r.timers,g=d?d.length:0;for(c.finish=!0,r.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),r.each(["toggle","show","hide"],function(a,b){var c=r.fn[b];r.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(db(b,!0),a,d,e)}}),r.each({slideDown:db("show"),slideUp:db("hide"),slideToggle:db("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){r.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),r.timers=[],r.fx.tick=function(){var a,b=0,c=r.timers;for(Za=r.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||r.fx.stop(),Za=void 0},r.fx.timer=function(a){r.timers.push(a),a()?r.fx.start():r.timers.pop()},r.fx.interval=13,r.fx.start=function(){$a||($a=a.requestAnimationFrame?a.requestAnimationFrame(bb):a.setInterval(r.fx.tick,r.fx.interval))},r.fx.stop=function(){a.cancelAnimationFrame?a.cancelAnimationFrame($a):a.clearInterval($a),$a=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(b,c){return b=r.fx?r.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",o.checkOn=""!==a.value,o.optSelected=c.selected,a=d.createElement("input"),a.value="t",a.type="radio",o.radioValue="t"===a.value}();var ib,jb=r.expr.attrHandle;r.fn.extend({attr:function(a,b){return S(this,r.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?ib:void 0)),
void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&r.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(K);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),ib={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=jb[b]||r.find.attr;jb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=jb[g],jb[g]=e,e=null!=c(a,b,d)?g:null,jb[g]=f),e}});var kb=/^(?:input|select|textarea|button)$/i,lb=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return S(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):kb.test(a.nodeName)||lb.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function mb(a){var b=a.match(K)||[];return b.join(" ")}function nb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,nb(this)))});if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=nb(c),d=1===c.nodeType&&" "+mb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=mb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,nb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=nb(c),d=1===c.nodeType&&" "+mb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=mb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,nb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(K)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=nb(this),b&&V.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":V.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+mb(nb(c))+" ").indexOf(b)>-1)return!0;return!1}});var ob=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":r.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ob,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:mb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d<i;d++)if(c=e[d],(c.selected||d===f)&&!c.disabled&&(!c.parentNode.disabled||!r.nodeName(c.parentNode,"optgroup"))){if(b=r(c).val(),g)return b;h.push(b)}return h},set:function(a,b){var c,d,e=a.options,f=r.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=r.inArray(r.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(r.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var pb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!pb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,pb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(V.get(h,"events")||{})[b.type]&&V.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&T(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!T(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.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(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=V.access(d,b);e||d.addEventListener(a,c,!0),V.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=V.access(d,b)-1;e?V.access(d,b,e):(d.removeEventListener(a,c,!0),V.remove(d,b))}}});var qb=a.location,rb=r.now(),sb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var tb=/\[\]$/,ub=/\r?\n/g,vb=/^(?:submit|button|image|reset|file)$/i,wb=/^(?:input|select|textarea|keygen)/i;function xb(a,b,c,d){var e;if(r.isArray(b))r.each(b,function(b,e){c||tb.test(a)?d(a,e):xb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)xb(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(r.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)xb(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&wb.test(this.nodeName)&&!vb.test(a)&&(this.checked||!ia.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:r.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(ub,"\r\n")}}):{name:b.name,value:c.replace(ub,"\r\n")}}).get()}});var yb=/%20/g,zb=/#.*$/,Ab=/([?&])_=[^&]*/,Bb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Cb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Db=/^(?:GET|HEAD)$/,Eb=/^\/\//,Fb={},Gb={},Hb="*/".concat("*"),Ib=d.createElement("a");Ib.href=qb.href;function Jb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(K)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Kb(a,b,c,d){var e={},f=a===Gb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Lb(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Mb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Nb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qb.href,type:"GET",isLocal:Cb.test(qb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Lb(Lb(a,r.ajaxSettings),b):Lb(r.ajaxSettings,a)},ajaxPrefilter:Jb(Fb),ajaxTransport:Jb(Gb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Bb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||qb.href)+"").replace(Eb,qb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(K)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Ib.protocol+"//"+Ib.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Kb(Fb,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Db.test(o.type),f=o.url.replace(zb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(yb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(sb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Ab,"$1"),n=(sb.test(f)?"&":"?")+"_="+rb++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Hb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Kb(Gb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Mb(o,y,d)),v=Nb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Ob={0:200,1223:204},Pb=r.ajaxSettings.xhr();o.cors=!!Pb&&"withCredentials"in Pb,o.ajax=Pb=!!Pb,r.ajaxTransport(function(b){var c,d;if(o.cors||Pb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Ob[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Qb=[],Rb=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Qb.pop()||r.expando+"_"+rb++;return this[a]=!0,a}}),r.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Rb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rb.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=r.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Rb,"$1"+e):b.jsonp!==!1&&(b.url+=(sb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||r.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?r(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Qb.push(e)),g&&r.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),o.createHTMLDocument=function(){var a=d.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),r.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var e,f,g;return b||(o.createHTMLDocument?(b=d.implementation.createHTMLDocument(""),e=b.createElement("base"),e.href=d.location.href,b.head.appendChild(e)):b=d),f=B.exec(a),g=!c&&[],f?[b.createElement(f[1])]:(f=pa([a],b,g),g&&g.length&&r(g).remove(),r.merge([],f.childNodes))},r.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=mb(a.slice(h)),a=a.slice(0,h)),r.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&r.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?r("<div>").append(r.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){r.fn[b]=function(a){return this.on(b,a)}}),r.expr.pseudos.animated=function(a){return r.grep(r.timers,function(b){return a===b.elem}).length};function Sb(a){return r.isWindow(a)?a:9===a.nodeType&&a.defaultView}r.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=r.css(a,"position"),l=r(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=r.css(a,"top"),i=r.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),r.isFunction(b)&&(b=b.call(a,c,r.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},r.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){r.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),d.width||d.height?(e=f.ownerDocument,c=Sb(e),b=e.documentElement,{top:d.top+c.pageYOffset-b.clientTop,left:d.left+c.pageXOffset-b.clientLeft}):d):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===r.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),r.nodeName(a[0],"html")||(d=a.offset()),d={top:d.top+r.css(a[0],"borderTopWidth",!0),left:d.left+r.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-r.css(c,"marginTop",!0),left:b.left-d.left-r.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===r.css(a,"position"))a=a.offsetParent;return a||qa})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;r.fn[a]=function(d){return S(this,function(a,d,e){var f=Sb(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),r.each(["top","left"],function(a,b){r.cssHooks[b]=Oa(o.pixelPosition,function(a,c){if(c)return c=Na(a,b),La.test(c)?r(a).position()[b]+"px":c})}),r.each({Height:"height",Width:"width"},function(a,b){r.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){r.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return S(this,function(b,c,e){var f;return r.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?r.css(b,c,h):r.style(b,c,e,h)},b,g?e:void 0,g)}})}),r.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),r.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery-3.1.1",[],function(){return r});var Tb=a.jQuery,Ub=a.$;return r.noConflict=function(b){return a.$===r&&(a.$=Ub),b&&a.jQuery===r&&(a.jQuery=Tb),r},b||(a.jQuery=a.$=r),r});

}catch(e){console.log("Module 'jquery-3.1.1': ",e);}
try{!function(e,t){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(e,require("jquery-3.1.1")):"function"==typeof define&&define.amd?define("f-carousel-1.0.0",["jquery-3.1.1"],function(n){return t(e,n)}):e.fCarousel=t(e,e.jQuery)}(this,function(e,t,n){"use strict";return t.fn.fCarousel=function(n){var a=t.extend({visibleItems:1,separation:200,distance:200,sideItemsAlign:0,perspective:0,orientation:"horizontal",responsive:{},opacity:1,centerItem:0,visibleClass:"f-carousel-visible",centerClass:"f-carousel-active",buletsClass:"f-carousel-pagination-bullets",buletClass:"f-carousel-pagination-bullet",itemClass:"f-carousel-item",nextButton:"",prevButton:"",pagination:"",speed:300,easing:"ease-out",itemsNav:!0,swipe:!0,mousewheel:!1,autoplay:!1,stopOnHover:!0,beforeChange:t.noop,onChange:t.noop,afterChange:t.noop,clickedCenter:t.noop},n);return this.each(function(){function n(e,t){var n={};return n["-webkit-"+e]=t,n["-moz-"+e]=t,n["-ms-"+e]=t,n["-o-"+e]=t,n[e]=t,n}var s=t(this),o=t(this).find("."+a.itemClass);!function(e){function a(n){clearInterval(y),s.hasClass("inited")&&e.beforeChange(s,s.find("."+e.centerClass));var a=n.index();f=0<n.index()?n.prev():o.eq(o.length-1),h=n.index()<o.length-1?n.next():o.eq(0),s.data({items:o.length,centerItem:n,prevItem:f,nextItem:h}),n.data("newPos",u),e.pagination&&t(e.pagination).find("."+e.buletClass).removeClass(e.centerClass).eq(n.index()).addClass(e.centerClass),o.removeClass(e.centerClass);for(var r=a-1,l=1;;r--,l++)if(l<=u)0<=r?o.eq(r).data("newPos",u-l):o.eq(o.length+r).data("newPos",u-l);else{if(!(l>u&&0<=r))break;for(var c=r;c>=u-(o.length-a-1);c--)o.eq(c).data("newPos",2*u+1)}for(var r=a+1,l=1,d=0;;r++,l++)if(l<=u)r<=o.length-1?o.eq(r).data("newPos",u+l):(o.eq(d).data("newPos",u+l),d++);else{if(!(l>u&&r<=o.length-1))break;for(c=r;c<=o.length-1-(u-a);c++)o.eq(c).data("newPos",2*u+1)}o.each(function(){try{var n=p[t(this).data("newPos")];t(this).css(n),t(this).toggleClass(e.visibleClass,!!n.opacity)}catch(e){}}),s.hasClass("inited")&&e.onChange(s),setTimeout(function(){o.removeClass(e.centerClass),s.data("centerItem").index()===n.index()&&(n.addClass(e.centerClass),!s.hasClass("inited")&&s.addClass("inited"),e.afterChange(s,n)),I&&i()},e.speed)}function i(){clearInterval(y),y=setInterval(function(){a(h)},I)}o.css(t.extend({margin:"auto",position:"absolute",left:0,right:0,top:0,bottom:0},n("transition-property","transform, opacity"),n("transition-duration",e.speed+"ms"),n("transition-timing-function",e.easing),n("transition-delay","0s")));for(var r,l,c,u=e.visibleItems,p=[],d=0;d<u;d++)r=-e.separation*(u-d),c=-e.distance*(u-d),l=e.sideItemsAlign*(u-d),"horizontal"==e.orientation?(r="translate3d("+r+"px,"+l+"px,"+c+"px)",l="rotateY("+e.perspective+"deg)"):(r="translate3d("+l+"px,"+r+"px,"+c+"px)",l="rotateX("+e.perspective+"deg)"),r=t.extend({opacity:e.opacity,zIndex:d+1},n("transform-origin","0 50%"),n("transform",r+" "+l)),p.push(r);for(r=t.extend({opacity:1,zIndex:u+1},n("transform-origin","50% 50%"),n("transform","translate3d(0px,0px,0px)")),p.push(r),d=0;d<u;d++)r=e.separation*(d+1),c=-e.distance*(d+1),l=e.sideItemsAlign*(d+1),"horizontal"==e.orientation?(r="translate3d("+r+"px,"+l+"px,"+c+"px)",l="rotateY(-"+e.perspective+"deg)"):(r="translate3d("+l+"px,"+r+"px,"+c+"px)",l="rotateX(-"+e.perspective+"deg)"),r=t.extend({opacity:e.opacity,zIndex:u-d},n("transform-origin","100% 50%"),n("transform",r+" "+l)),p.push(r);r=t.extend({opacity:0,zIndex:0},n("transform-origin","50% 50%"),n("transform","translate3d(0px,0px,"+-e.distance*u+"px)")),p.push(r);var f,h,d=0==e.centerItem?o.eq(Math.floor(o.length/2)):o.eq(e.centerItem-1);if(a(d),o.on("click",function(){s.data("centerItem").index()===t(this).index()&&(t(this).hasClass(e.centerClass)?e.clickedCenter(s,t(this)):e.itemsNav&&s.hasClass("inited")&&a(t(this)))}),o.each(function(){var n=t(this);n.find("a").on("click",function(t){if(s.hasClass("inited")&&!n.hasClass(e.centerClass)&&e.itemsNav)return a(n),!1})}),e.prevButton&&t(e.prevButton).on("click",function(){return a(f),!1}),e.nextButton&&t(e.nextButton).on("click",function(){return a(h),!1}),e.pagination&&t(e.pagination).addClass(e.buletsClass),o.each(function(n,a){t("<span></span>").addClass(e.buletClass).appendTo(e.pagination).on("click",function(e){return s.trigger("jumpTo",n+1),!1})}),t(e.pagination).find("."+e.buletClass).removeClass(e.centerClass).eq(s.data("centerItem").index()).addClass(e.centerClass),e.mousewheel&&t.event.special.mousewheel&&s.on("mousewheel",function(e){if(s.hasClass("inited"))return a(0>e.deltaY?h:f),!1}),e.swipe){var v,m,g=0,C=0,x=!1,b=!1;s.addClass("draggable").on("mousedown touchstart",function(n){if("A"!==n.target.tagName||!n.target.hasAttribute("href"))if(n.preventDefault(),t(n.target).closest("."+e.itemClass).hasClass(e.centerClass)||"vertical"!==e.orientation)s.hasClass("inited")&&e.swipe&&(g=(b=!n.clientX)?event.touches[0].pageX:n.clientX,C=b?event.touches[0].pageY:n.clientY,x=!0,clearInterval(y));else{var o=s.find("."+e.itemClass+"."+e.centerClass),i=o.offset(),r=o.height(),l="horizontal"==e.orientation?event.pageX||event.touches[0].pageX||n.clientX:event.pageY||event.touches[0].pageY||n.clientY;i&&Math.abs(l)<Math.abs(i.top)&&a(f),i&&Math.abs(l)>Math.abs(i.top+r)&&a(h)}}).on("mousemove touchmove",function(t){if(x&&("A"!==t.target.tagName||!t.target.hasAttribute("href"))){t.preventDefault();var n=b?event.touches[0].pageX:t.clientX,n=n-g;if(t=b?event.touches[0].pageY:t.clientY,t-=C,v="horizontal"==e.orientation?n:t,m="horizontal"==e.orientation?"left":"top",s.find("."+e.itemClass+"."+e.centerClass).css(m,v/4),Math.abs(v)>Math.abs(t))return!1}}).on("mouseup mouseleave touchend",function(t){x&&("A"===t.target.tagName&&t.target.hasAttribute("href")||(x=!1,m="horizontal"==e.orientation?"left":"top",s.find("."+e.itemClass+"."+e.centerClass).css(m,0),Math.abs(v)>e.separation/2&&a(0>v?h:f),v=0,I&&i()))})}var y,I=!1;e.autoplay&&(I=e.autoplay,i()),d=s.children(e.prevButton,e.prevButton),e.stopOnHover&&(d=d.add(s)),d.on("mousedown touchstart mousemove touchmove focus",function(){I&&clearInterval(y)}).on("mouseup mouseleave touchend blur",function(){I&&i()}),s.on("jumpToPrev",function(){a(f)}),s.on("jumpToNext",function(){a(h)}),s.on("jumpTo",function(e,t){a(o.eq(t-1))}),s.on("play",function(e,t){t&&!I&&(I=t,i())}),s.on("stop",function(){I=!1,clearInterval(y)}),s.on("destroy",function(){clearInterval(y),s.removeClass("inited draggable").css(n("perspective","none")),o.removeClass(e.centerClass).css(t.extend({opacity:1,position:"static",top:"auto",right:"auto",bottom:"auto",left:"auto"},n("transition","none"),n("transform","none"))),s.children(e.prevButton,e.prevButton).remove()})}(function(n){if("object"==typeof n.responsive&&0<Object.keys(n.responsive).length){var a,s=n.responsive,o=0;for(a in s)s.hasOwnProperty(a)&&e.innerWidth>=parseInt(a,10)&&(o=parseInt(a,10));return t.extend({},n,s[o])}return n}(a))})},t.fn.fCarousel});
}catch(e){console.log("Module 'f-carousel-1.0.0': ",e);}
try{!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",[],t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=0,o=i[n];t=t||[];for(var s=this._onceEvents&&this._onceEvents[e];o;){var r=s&&s[o];r&&(this.off(e,o),delete s[o]),o.apply(this,t),n+=r?0:1,o=i[n]}return this}},t.allOff=t.removeAllListeners=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define("imagesLoaded",["ev-emitter/ev-emitter","jquery-3.1.1"],function(i,n){return e.imagesLoaded=t(e,i,n),e.imagesLoaded}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter,e.jQuery)}("undefined"!=typeof window?window:this,function(e,t,i){function n(e,t){for(var i in t)e[i]=t[i];return e}function o(e){var t=[];if(Array.isArray(e))t=e;else if("number"==typeof e.length)for(var i=0;i<e.length;i++)t.push(e[i]);else t.push(e);return t}function s(e,t,r){if(!(this instanceof s))return new s(e,t,r);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=n({},this.options),"function"==typeof t?r=t:n(this.options,t),r&&this.on("always",r),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(function(){this.check()}.bind(this))}function r(e){this.img=e}function h(e,t){this.url=e,this.element=t,this.img=new Image}var a=e.console;s.prototype=Object.create(t.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&d[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var s=e.querySelectorAll(this.options.background);for(n=0;n<s.length;n++){var r=s[n];this.addElementBackgroundImages(r)}}}};var d={1:!0,9:!0,11:!0};return s.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},s.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},s.prototype.addBackground=function(e,t){var i=new h(e,t);this.images.push(i)},s.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();this.images.forEach(function(t){t.once("progress",e),t.check()})},s.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){if(this.getIsImageComplete())return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src},r.prototype.getIsImageComplete=function(){return this.img.complete&&void 0!==this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype=Object.create(r.prototype),h.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},h.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},h.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},s.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&(i=t,i.fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(i(this))})},s.makeJQueryPlugin(),s});
}catch(e){console.log("Module 'imagesloaded-4.1.3': ",e);}
try{"use strict";!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(n,require("jquery-3.1.1")):"function"==typeof define&&define.amd?define("jquery-utils-1.0.0",["jquery-3.1.1"],function(e){return t(n,e)}):t(n,n.jQuery)}(this,function(n,t,e){if(n&&t)return t.has=function(n,e){if(!t.isArray(e))return null!=n&&hasOwnProperty.call(n,e);for(var r=e.length,i=0;i<r;i++){var u=e[i];if(null==n||!hasOwnProperty.call(n,u))return!1;n=n[u]}return!!r},t.each(["Arguments","String","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],function(n,e){t["is"+e]=function(n){return toString.call(n)==="[object "+e+"]"}}),t.isArguments(arguments)||(t.isArguments=function(n){return t.has(n,"callee")}),t.isElement=function(n){return!(!n||1!==n.nodeType)},t.isObject=function(n){var e=typeof n;return t.isFunction(e)||"object"===e&&!!n},t.isNaN=function(n){return t.isNumeric(n)&&isNaN(n)},t.isTrue=function(n){return!/^(?:t(?:rue)?|y(?:es)?|1+)$/i.test(n)},t.isFalse=function(n){return!t.isTrue(n)},t.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"===toString.call(n)},t.isNull=function(n){return null===n},t.isUndefined=function(n){return void 0===n},t.isEmpty=function(n){return!(!t.isUndefined(n)&&!t.isNull(n))||(t.isArray(n)||t.isString(n)||t.isArguments(n)?0===n.length:!t.isNumeric(n)&&0===Object.keys(n).length)},t.uuid=function(n){for(var e,r="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";t("#"+(e=Array(n||61).join().split(",").map(function(){return r.charAt(Math.floor(Math.random()*r.length))}).join(""))).length>0;);return e.trim()},t.fn.once=function(n,e,r){return this.each(function(){t.isEmpty(e)?t(this).off(n).on(n,r):t(this).off(n,e).on(n,e,r)})},t.debounce=function(n,t,e){var r;return function(){var i=this,u=arguments;clearTimeout(r),r=setTimeout(function(){r=null,e||n.apply(i,u)},t),e&&!r&&n.apply(i,u)}},t});
}catch(e){console.log("Module 'jquery-utils-1.0.0': ",e);}
try{!function(t,e){"use strict";"function"==typeof define&&define.amd?define("blazy",[],function(){return t.Blazy=e(),e()}):"object"==typeof exports?module.exports=e():t.Blazy=e()}(this,function(){"use strict";function t(t){var o=t._util;o.elements=v(t.options),o.count=o.elements.length,o.destroyed&&(o.destroyed=!1,t.options.container&&w(t.options.container,function(t){h(t,"scroll",o.validateT)}),h(window,"resize",o.saveViewportOffsetT),h(window,"resize",o.validateT),h(window,"scroll",o.validateT)),e(t)}function e(t){for(var e=t._util,n=0;n<e.count;n++){var s=e.elements[n];(o(s,t.options)||p(s,t.options.successClass))&&(t.load(s),e.elements.splice(n,1),e.count--,n--)}0===e.count&&t.destroy()}function o(t,e){var o=t.getBoundingClientRect();if(e.container&&T){var s=t.closest(e.containerClass);if(s){var i=s.getBoundingClientRect();if(n(i,C)){var r=i.top-e.offset,c=i.right+e.offset,a=i.bottom+e.offset,l=i.left-e.offset;return n(o,{top:r>C.top?r:C.top,right:c<C.right?c:C.right,bottom:a<C.bottom?a:C.bottom,left:l>C.left?l:C.left})}return!1}}return n(o,C)}function n(t,e){return t.right>=e.left&&t.bottom>=e.top&&t.left<=e.right&&t.top<=e.bottom}function s(t,e,o){if(!p(t,o.successClass)&&(e||o.loadInvisible||t.offsetWidth>0&&t.offsetHeight>0)){var n=l(t,b)||l(t,o.src);if(n){var s=n.split(o.separator),a=s[E&&s.length>1?1:0],u=l(t,o.srcset),v=f(t,"img"),m=t.parentNode,y=m&&f(m,"picture");if(v||void 0===t.src){var C=new Image,T=function(){o.error&&o.error(t,"invalid"),d(t,o.errorClass),g(C,"error",T),g(C,"load",O)},O=function(){v?y||c(t,a,u):t.style.backgroundImage='url("'+a+'")',i(t,o),g(C,"load",O),g(C,"error",T)};y&&(C=t,w(m.getElementsByTagName("source"),function(t){r(t,z,o.srcset)})),h(C,"error",T),h(C,"load",O),c(C,a,u)}else t.src=a,i(t,o)}else f(t,"video")?(w(t.getElementsByTagName("source"),function(t){r(t,S,o.src)}),t.load(),i(t,o)):(o.error&&o.error(t,"missing"),d(t,o.errorClass))}}function i(t,e){d(t,e.successClass),e.success&&e.success(t),u(t,e.src),u(t,e.srcset),w(e.breakpoints,function(e){u(t,e.src)})}function r(t,e,o){var n=l(t,o);n&&(a(t,e,n),u(t,o))}function c(t,e,o){o&&a(t,z,o),t.src=e}function a(t,e,o){t.setAttribute(e,o)}function l(t,e){return t.getAttribute(e)}function u(t,e){t.removeAttribute(e)}function f(t,e){return t.nodeName.toLowerCase()===e}function p(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")}function d(t,e){p(t,e)||(t.className+=" "+e)}function v(t){var e=[],o=[];void 0!==t.selector&&t.selector&&(o="[object String]"!==Object.prototype.toString.call(t.selector)&&t.selector.length?t.selector:t.root.querySelectorAll(t.selector));for(var n=o.length;n--;e.unshift(o[n]));return e}function m(t){C.bottom=(window.innerHeight||document.documentElement.clientHeight)+t,C.right=(window.innerWidth||document.documentElement.clientWidth)+t}function h(t,e,o){t.attachEvent?t.attachEvent&&t.attachEvent("on"+e,o):t.addEventListener(e,o,{capture:!1,passive:!0})}function g(t,e,o){t.detachEvent?t.detachEvent&&t.detachEvent("on"+e,o):t.removeEventListener(e,o,{capture:!1,passive:!0})}function w(t,e){if(t&&e)for(var o=t.length,n=0;n<o&&!1!==e(t[n],n);n++);}function y(t,e,o){var n=0;return function(){var s=+new Date;s-n<e||(n=s,t.apply(o,arguments))}}var b,C,E,T,S="src",z="srcset";return function(o){if(!document.querySelectorAll){var n=document.createStyleSheet();document.querySelectorAll=function(t,e,o,s,i){for(i=document.all,e=[],t=t.replace(/\[for\b/gi,"[htmlFor").split(","),o=t.length;o--;){for(n.addRule(t[o],"k:v"),s=i.length;s--;)i[s].currentStyle.k&&e.push(i[s]);n.removeRule(0)}return e}}var i=this,r=i._util={};r.elements=[],r.destroyed=!0,i.options=o||{},i.options.error=i.options.error||!1,i.options.offset=i.options.offset||100,i.options.root=i.options.root||document,i.options.success=i.options.success||!1,i.options.selector=i.options.selector||".b-lazy",i.options.separator=i.options.separator||"|",i.options.containerClass=i.options.container,i.options.container=!!i.options.containerClass&&document.querySelectorAll(i.options.containerClass),i.options.errorClass=i.options.errorClass||"b-error",i.options.breakpoints=i.options.breakpoints||!1,i.options.loadInvisible=i.options.loadInvisible||!1,i.options.successClass=i.options.successClass||"b-loaded",i.options.validateDelay=i.options.validateDelay||25,i.options.saveViewportOffsetDelay=i.options.saveViewportOffsetDelay||50,i.options.srcset=i.options.srcset||"data-srcset",i.options.src=b=i.options.src||"data-src",T=Element.prototype.closest,E=window.devicePixelRatio>1,C={},C.top=0-i.options.offset,C.left=0-i.options.offset,i.revalidate=function(){t(i)},i.load=function(t,e){var o=this.options;t&&void 0===t.length?s(t,e,o):w(t,function(t){s(t,e,o)})},i.destroy=function(){var t=i._util;i.options.container&&w(i.options.container,function(e){g(e,"scroll",t.validateT)}),g(window,"scroll",t.validateT),g(window,"resize",t.validateT),g(window,"resize",t.saveViewportOffsetT),t.count=0,t.elements.length=0,t.destroyed=!0},r.validateT=y(function(){e(i)},i.options.validateDelay,i),r.saveViewportOffsetT=y(function(){m(i.options.offset)},i.options.saveViewportOffsetDelay,i),m(i.options.offset),w(i.options.breakpoints,function(t){if(t.width>=window.screen.width)return b=t.src,!1}),setTimeout(function(){t(i)})}});
}catch(e){console.log("Module 'blazy-1.8.2': ",e);}
try{!function(e,n){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(e,require("jquery-utils-1.0.0"),require("f-carousel-1.0.0"),require("blazy"),require("imagesLoaded")):"function"==typeof define&&define.amd?define("event-banner-swiper-1.0.0",["jquery-utils-1.0.0","f-carousel-1.0.0","blazy","imagesLoaded"],function(r,a,i,o){n(e,r,a,i,o)}):n(e,e.jQuery,e.fCarousel,e.Blazy,e.imagesLoaded)}(this,function(e,n,r,a,i,o){"use strict";n(".event-banner-swiper").fCarousel({centerItem:2,separation:100,orientation:"vertical",mousewheel:!1,afterChange:function(e,r){new a({selector:".event-banner-swiper .f-carousel-visible .event-banner-b-lazy",loadInvisible:!0,success:function(e){var r=n(e);r.imagesLoaded({background:!0}).fail(function(e){r.parent().remove()}).done(function(e){r.addClass("event-banner-loaded")})},error:function(e){n(e).parent().remove()}})}})});
}catch(e){console.log("Module 'event-banner-swiper-1.0.0': ",e);}
try{!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("swiper-4.0.3",[],function(){return e.Swiper=t(),e.Swiper}):e.Swiper=t()}(this,function(){"use strict";function e(e,t){var a=[],i=0;if(e&&!t&&e instanceof W)return e;if(e)if("string"==typeof e){var s,r,n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){var o="div";for(0===n.indexOf("<li")&&(o="ul"),0===n.indexOf("<tr")&&(o="tbody"),0!==n.indexOf("<td")&&0!==n.indexOf("<th")||(o="tr"),0===n.indexOf("<tbody")&&(o="table"),0===n.indexOf("<option")&&(o="select"),r=document.createElement(o),r.innerHTML=n,i=0;i<r.childNodes.length;i+=1)a.push(r.childNodes[i])}else for(s=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||document).querySelectorAll(e.trim()):[document.getElementById(e.trim().split("#")[1])],i=0;i<s.length;i+=1)s[i]&&a.push(s[i])}else if(e.nodeType||e===window||e===document)a.push(e);else if(e.length>0&&e[0].nodeType)for(i=0;i<e.length;i+=1)a.push(e[i]);return new W(a)}function t(e){for(var t=[],a=0;a<e.length;a+=1)-1===t.indexOf(e[a])&&t.push(e[a]);return t}function a(e){var t=this;if(void 0===e)return this;for(var a=e.split(" "),i=0;i<a.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==t[s].classList&&t[s].classList.add(a[i]);return this}function i(e){for(var t=this,a=e.split(" "),i=0;i<a.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==t[s].classList&&t[s].classList.remove(a[i]);return this}function s(e){return!!this[0]&&this[0].classList.contains(e)}function r(e){for(var t=this,a=e.split(" "),i=0;i<a.length;i+=1)for(var s=0;s<this.length;s+=1)void 0!==t[s].classList&&t[s].classList.toggle(a[i]);return this}function n(e,t){var a=arguments,i=this;if(1!==arguments.length||"string"!=typeof e){for(var s=0;s<this.length;s+=1)if(2===a.length)i[s].setAttribute(e,t);else for(var r in e)i[s][r]=e[r],i[s].setAttribute(r,e[r]);return this}if(this[0])return this[0].getAttribute(e)}function o(e){for(var t=this,a=0;a<this.length;a+=1)t[a].removeAttribute(e);return this}function l(e,t){var a,i=this;if(void 0!==t){for(var s=0;s<this.length;s+=1)a=i[s],a.dom7ElementDataStorage||(a.dom7ElementDataStorage={}),a.dom7ElementDataStorage[e]=t;return this}if(a=this[0]){if(a.dom7ElementDataStorage&&e in a.dom7ElementDataStorage)return a.dom7ElementDataStorage[e];var r=a.getAttribute("data-"+e);if(r)return r}else;}function d(e){for(var t=this,a=0;a<this.length;a+=1){var i=t[a].style;i.webkitTransform=e,i.transform=e}return this}function p(e){var t=this;"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a+=1){var i=t[a].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this}function c(){function t(t){var a=t.target;if(a){var i=t.target.dom7EventData||[];if(i.unshift(t),e(a).is(o))l.apply(a,i);else for(var s=e(a).parents(),r=0;r<s.length;r+=1)e(s[r]).is(o)&&l.apply(s[r],i)}}function a(e){var t=e&&e.target?e.target.dom7EventData||[]:[];t.unshift(e),l.apply(this,t)}for(var i=this,s=[],r=arguments.length;r--;)s[r]=arguments[r];var n=s[0],o=s[1],l=s[2],d=s[3];if("function"==typeof s[1]){var p;p=s,n=p[0],l=p[1],d=p[2],o=void 0}d||(d=!1);for(var c,u=n.split(" "),h=0;h<this.length;h+=1){var v=i[h];if(o)for(c=0;c<u.length;c+=1)v.dom7LiveListeners||(v.dom7LiveListeners=[]),v.dom7LiveListeners.push({type:n,listener:l,proxyListener:t}),v.addEventListener(u[c],t,d);else for(c=0;c<u.length;c+=1)v.dom7Listeners||(v.dom7Listeners=[]),v.dom7Listeners.push({type:n,listener:l,proxyListener:a}),v.addEventListener(u[c],a,d)}return this}function u(){for(var e=this,t=[],a=arguments.length;a--;)t[a]=arguments[a];var i=t[0],s=t[1],r=t[2],n=t[3];if("function"==typeof t[1]){var o;o=t,i=o[0],r=o[1],n=o[2],s=void 0}n||(n=!1);for(var l=i.split(" "),d=0;d<l.length;d+=1)for(var p=0;p<this.length;p+=1){var c=e[p];if(s){if(c.dom7LiveListeners)for(var u=0;u<c.dom7LiveListeners.length;u+=1)r?c.dom7LiveListeners[u].listener===r&&c.removeEventListener(l[d],c.dom7LiveListeners[u].proxyListener,n):c.dom7LiveListeners[u].type===l[d]&&c.removeEventListener(l[d],c.dom7LiveListeners[u].proxyListener,n)}else if(c.dom7Listeners)for(var h=0;h<c.dom7Listeners.length;h+=1)r?c.dom7Listeners[h].listener===r&&c.removeEventListener(l[d],c.dom7Listeners[h].proxyListener,n):c.dom7Listeners[h].type===l[d]&&c.removeEventListener(l[d],c.dom7Listeners[h].proxyListener,n)}return this}function h(){for(var e=this,t=[],a=arguments.length;a--;)t[a]=arguments[a];for(var i=t[0].split(" "),s=t[1],r=0;r<i.length;r+=1)for(var n=0;n<this.length;n+=1){var o=void 0;try{o=new window.CustomEvent(i[r],{detail:s,bubbles:!0,cancelable:!0})}catch(e){o=document.createEvent("Event"),o.initEvent(i[r],!0,!0),o.detail=s}e[n].dom7EventData=t.filter(function(e,t){return t>0}),e[n].dispatchEvent(o),e[n].dom7EventData=[],delete e[n].dom7EventData}return this}function v(e){function t(r){if(r.target===this)for(e.call(this,r),a=0;a<i.length;a+=1)s.off(i[a],t)}var a,i=["webkitTransitionEnd","transitionend"],s=this;if(e)for(a=0;a<i.length;a+=1)s.on(i[a],t);return this}function f(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function m(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function g(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),a=document.body,i=e.clientTop||a.clientTop||0,s=e.clientLeft||a.clientLeft||0,r=e===window?window.scrollY:e.scrollTop,n=e===window?window.scrollX:e.scrollLeft;return{top:t.top+r-i,left:t.left+n-s}}return null}function b(){return this[0]?window.getComputedStyle(this[0],null):{}}function w(e,t){var a,i=this;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a+=1)for(var s in e)i[a].style[s]=e[s];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a+=1)i[a].style[e]=t;return this}return this}function y(e){var t=this;if(!e)return this;for(var a=0;a<this.length;a+=1)if(!1===e.call(t[a],a,t[a]))return t;return this}function x(e){var t=this;if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var a=0;a<this.length;a+=1)t[a].innerHTML=e;return this}function E(e){var t=this;if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var a=0;a<this.length;a+=1)t[a].textContent=e;return this}function T(t){var a,i,s=this[0];if(!s||void 0===t)return!1;if("string"==typeof t){if(s.matches)return s.matches(t);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(t);if(s.msMatchesSelector)return s.msMatchesSelector(t);for(a=e(t),i=0;i<a.length;i+=1)if(a[i]===s)return!0;return!1}if(t===document)return s===document;if(t===window)return s===window;if(t.nodeType||t instanceof W){for(a=t.nodeType?[t]:t,i=0;i<a.length;i+=1)if(a[i]===s)return!0;return!1}return!1}function S(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function C(e){if(void 0===e)return this;var t,a=this.length;return e>a-1?new W([]):e<0?(t=a+e,new W(t<0?[]:[this[t]])):new W([this[e]])}function M(){for(var e=this,t=[],a=arguments.length;a--;)t[a]=arguments[a];for(var i,s=0;s<t.length;s+=1){i=t[s];for(var r=0;r<this.length;r+=1)if("string"==typeof i){var n=document.createElement("div");for(n.innerHTML=i;n.firstChild;)e[r].appendChild(n.firstChild)}else if(i instanceof W)for(var o=0;o<i.length;o+=1)e[r].appendChild(i[o]);else e[r].appendChild(i)}return this}function z(e){var t,a,i=this;for(t=0;t<this.length;t+=1)if("string"==typeof e){var s=document.createElement("div");for(s.innerHTML=e,a=s.childNodes.length-1;a>=0;a-=1)i[t].insertBefore(s.childNodes[a],i[t].childNodes[0])}else if(e instanceof W)for(a=0;a<e.length;a+=1)i[t].insertBefore(e[a],i[t].childNodes[0]);else i[t].insertBefore(e,i[t].childNodes[0]);return this}function P(t){return new W(this.length>0?t?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])}function k(t){var a=[],i=this[0];if(!i)return new W([]);for(;i.nextElementSibling;){var s=i.nextElementSibling;t?e(s).is(t)&&a.push(s):a.push(s),i=s}return new W(a)}function $(t){if(this.length>0){var a=this[0];return new W(t?a.previousElementSibling&&e(a.previousElementSibling).is(t)?[a.previousElementSibling]:[]:a.previousElementSibling?[a.previousElementSibling]:[])}return new W([])}function I(t){var a=[],i=this[0];if(!i)return new W([]);for(;i.previousElementSibling;){var s=i.previousElementSibling;t?e(s).is(t)&&a.push(s):a.push(s),i=s}return new W(a)}function L(a){for(var i=this,s=[],r=0;r<this.length;r+=1)null!==i[r].parentNode&&(a?e(i[r].parentNode).is(a)&&s.push(i[r].parentNode):s.push(i[r].parentNode));return e(t(s))}function D(a){for(var i=this,s=[],r=0;r<this.length;r+=1)for(var n=i[r].parentNode;n;)a?e(n).is(a)&&s.push(n):s.push(n),n=n.parentNode;return e(t(s))}function O(e){var t=this;return void 0===e?new W([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function A(e){for(var t=this,a=[],i=0;i<this.length;i+=1)for(var s=t[i].querySelectorAll(e),r=0;r<s.length;r+=1)a.push(s[r]);return new W(a)}function H(a){for(var i=this,s=[],r=0;r<this.length;r+=1)for(var n=i[r].childNodes,o=0;o<n.length;o+=1)a?1===n[o].nodeType&&e(n[o]).is(a)&&s.push(n[o]):1===n[o].nodeType&&s.push(n[o]);return new W(t(s))}function X(){for(var e=this,t=0;t<this.length;t+=1)e[t].parentNode&&e[t].parentNode.removeChild(e[t]);return this}function N(){for(var t=[],a=arguments.length;a--;)t[a]=arguments[a];var i,s,r=this;for(i=0;i<t.length;i+=1){var n=e(t[i]);for(s=0;s<n.length;s+=1)r[r.length]=n[s],r.length+=1}return r}function Y(){var e=this,t=e.params,a=e.touchEvents,i=e.el,s=e.wrapperEl;e.onTouchStart=Xe.bind(e),e.onTouchMove=Ne.bind(e),e.onTouchEnd=Ye.bind(e),e.onClick=Be.bind(e);var r="container"===t.touchEventsTarget?i:s,n=!!t.nested;if(ge.ie)r.addEventListener(a.start,e.onTouchStart,!1),(U.touch?r:K).addEventListener(a.move,e.onTouchMove,n),(U.touch?r:K).addEventListener(a.end,e.onTouchEnd,!1);else{if(U.touch){var o=!("onTouchStart"!==a.start||!U.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(a.start,e.onTouchStart,o),r.addEventListener(a.move,e.onTouchMove,n),r.addEventListener(a.end,e.onTouchEnd,o)}(t.simulateTouch&&!He.ios&&!He.android||t.simulateTouch&&!U.touch&&He.ios)&&(r.addEventListener("mousedown",e.onTouchStart,!1),K.addEventListener("mousemove",e.onTouchMove,n),K.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.addEventListener("click",e.onClick,!0),e.on("resize observerUpdate",Ge)}function G(){var e=this,t=e.params,a=e.touchEvents,i=e.el,s=e.wrapperEl,r="container"===t.touchEventsTarget?i:s,n=!!t.nested;if(ge.ie)r.removeEventListener(a.start,e.onTouchStart,!1),(U.touch?r:K).removeEventListener(a.move,e.onTouchMove,n),(U.touch?r:K).removeEventListener(a.end,e.onTouchEnd,!1);else{if(U.touch){var o=!("onTouchStart"!==a.start||!U.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(a.start,e.onTouchStart,o),r.removeEventListener(a.move,e.onTouchMove,n),r.removeEventListener(a.end,e.onTouchEnd,o)}(t.simulateTouch&&!He.ios&&!He.android||t.simulateTouch&&!U.touch&&He.ios)&&(r.removeEventListener("mousedown",e.onTouchStart,!1),K.removeEventListener("mousemove",e.onTouchMove,n),K.removeEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",e.onClick,!0),e.off("resize observerUpdate",Ge)}function B(){var e="onwheel"in K;if(!e){var t=K.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&K.implementation&&K.implementation.hasFeature&&!0!==K.implementation.hasFeature("","")&&(e=K.implementation.hasFeature("Events.wheel","3.0")),e}var V;V="undefined"==typeof window?{navigator:{userAgent:""},location:{},history:{},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{}},Image:function(){},Date:function(){}}:window;var R=V,W=function(e){for(var t=this,a=0;a<e.length;a+=1)t[a]=e[a];return t.length=e.length,this};e.fn=W.prototype,e.Class=W,e.Dom7=W;var F=("resize scroll".split(" "),{addClass:a,removeClass:i,hasClass:s,toggleClass:r,attr:n,removeAttr:o,data:l,transform:d,transition:p,on:c,off:u,trigger:h,transitionEnd:v,outerWidth:f,outerHeight:m,offset:g,css:w,each:y,html:x,text:E,is:T,index:S,eq:C,append:M,prepend:z,next:P,nextAll:k,prev:$,prevAll:I,parent:L,parents:D,closest:O,find:A,children:H,remove:X,add:N,styles:b});Object.keys(F).forEach(function(t){e.fn[t]=F[t]});var j,q={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){void 0===t&&(t="x");var a,i,s,r=R.getComputedStyle(e,null);return R.WebKitCSSMatrix?(i=r.transform||r.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),s=new R.WebKitCSSMatrix("none"===i?"":i)):(s=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=s.toString().split(",")),"x"===t&&(i=R.WebKitCSSMatrix?s.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=R.WebKitCSSMatrix?s.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0},parseUrlQuery:function(e){var t,a,i,s,r={},n=e||R.location.href;if("string"==typeof n&&n.length)for(n=n.indexOf("?")>-1?n.replace(/\S*\?/,""):"",a=n.split("&").filter(function(e){return""!==e}),s=a.length,t=0;t<s;t+=1)i=a[t].replace(/#\S+/g,"").split("="),r[decodeURIComponent(i[0])]=void 0===i[1]?void 0:decodeURIComponent(i[1])||"";return r},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var a=Object(e[0]),i=1;i<e.length;i+=1){var s=e[i];if(void 0!==s&&null!==s)for(var r=Object.keys(Object(s)),n=0,o=r.length;n<o;n+=1){var l=r[n],d=Object.getOwnPropertyDescriptor(s,l);void 0!==d&&d.enumerable&&(q.isObject(a[l])&&q.isObject(s[l])?q.extend(a[l],s[l]):!q.isObject(a[l])&&q.isObject(s[l])?(a[l]={},q.extend(a[l],s[l])):a[l]=s[l])}}return a}};j="undefined"==typeof document?{addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return{}},querySelectorAll:function(){return[]},createElement:function(){return{style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document;var K=j,U=function(){return{touch:R.Modernizr&&!0===R.Modernizr.touch||function(){return!!("ontouchstart"in R||R.DocumentTouch&&K instanceof R.DocumentTouch)}(),transforms3d:R.Modernizr&&!0===R.Modernizr.csstransforms3d||function(){var e=K.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=K.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),a=0;a<t.length;a+=1)if(t[a]in e)return!0;return!1}(),observer:function(){return"MutationObserver"in R||"WebkitMutationObserver"in R}(),passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});R.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:function(){return"ongesturestart"in R}()}}(),_=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach(function(e){t.on(e,t.params.on[e])})},Z={components:{}};_.prototype.on=function(e,t){var a=this;return"function"!=typeof t?a:(e.split(" ").forEach(function(e){a.eventsListeners[e]||(a.eventsListeners[e]=[]),a.eventsListeners[e].push(t)}),a)},_.prototype.once=function(e,t){function a(){for(var s=[],r=arguments.length;r--;)s[r]=arguments[r];t.apply(i,s),i.off(e,a)}var i=this;return"function"!=typeof t?i:i.on(e,a)},_.prototype.off=function(e,t){var a=this;return e.split(" ").forEach(function(e){void 0===t?a.eventsListeners[e]=[]:a.eventsListeners[e].forEach(function(i,s){i===t&&a.eventsListeners[e].splice(s,1)})}),a},_.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var a,i,s,r=this;return"string"==typeof e[0]||Array.isArray(e[0])?(a=e[0],i=e.slice(1,e.length),s=r):(a=e[0].events,i=e[0].data,s=e[0].context||r),(Array.isArray(a)?a:a.split(" ")).forEach(function(e){if(r.eventsListeners[e]){var t=[];r.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(s,i)})}}),r},_.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(a){var i=t.modules[a];i.params&&q.extend(e,i.params)})},_.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(a){var i=t.modules[a],s=e[a]||{};i.instance&&Object.keys(i.instance).forEach(function(e){var a=i.instance[e];t[e]="function"==typeof a?a.bind(t):a}),i.on&&t.on&&Object.keys(i.on).forEach(function(e){t.on(e,i.on[e])}),i.create&&i.create.bind(t)(s)})},Z.components.set=function(e){var t=this;t.use&&t.use(e)},_.installModule=function(e){for(var t=[],a=arguments.length-1;a-- >0;)t[a]=arguments[a+1];var i=this;i.prototype.modules||(i.prototype.modules={});var s=e.name||Object.keys(i.prototype.modules).length+"_"+q.now();return i.prototype.modules[s]=e,e.proto&&Object.keys(e.proto).forEach(function(t){i.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(function(t){i[t]=e.static[t]}),e.install&&e.install.apply(i,t),i},_.use=function(e){for(var t=[],a=arguments.length-1;a-- >0;)t[a]=arguments[a+1];var i=this;return Array.isArray(e)?(e.forEach(function(e){return i.installModule(e)}),i):i.installModule.apply(i,[e].concat(t))},Object.defineProperties(_,Z);var Q=function(){var e,t,a=this,i=a.$el;e=void 0!==a.params.width?a.params.width:a.wrapperEl.clientWidth,t=void 0!==a.params.height?a.params.height:a.wrapperEl.clientHeight,e=i[0].clientWidth>e?e:i[0].clientWidth,t=i[0].clientHeight>t?t:i[0].clientHeight,0===e&&a.isHorizontal()||0===t&&a.isVertical()||(e=e-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),t=t-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),q.extend(a,{width:e,height:t,size:a.isHorizontal()?e:t}))},J=function(){var e=this,t=e.params,a=e.$wrapperEl,i=e.size,s=e.rtl,r=e.wrongRTL,n=a.children("."+e.params.slideClass),o=e.virtual&&t.virtual.enabled,l=o?e.virtual.slides.length:n.length,d=[],p=[],c=[],u=t.slidesOffsetBefore;"function"==typeof u&&(u=t.slidesOffsetBefore.call(e));var h=t.slidesOffsetAfter;"function"==typeof h&&(h=t.slidesOffsetAfter.call(e));var v=l,f=e.snapGrid.length,m=e.snapGrid.length,g=t.spaceBetween,b=-u,w=0,y=0;if(void 0!==i){"string"==typeof g&&g.indexOf("%")>=0&&(g=parseFloat(g.replace("%",""))/100*i),e.virtualSize=-g,s?n.css({marginLeft:"",marginTop:""}):n.css({marginRight:"",marginBottom:""});var x;t.slidesPerColumn>1&&(x=Math.floor(l/t.slidesPerColumn)===l/e.params.slidesPerColumn?l:Math.ceil(l/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(x=Math.max(x,t.slidesPerView*t.slidesPerColumn)));for(var E,T=t.slidesPerColumn,S=x/T,C=S-(t.slidesPerColumn*S-l),M=0;M<l;M+=1){E=0;var z=n.eq(M);if(t.slidesPerColumn>1){var P=void 0,k=void 0,$=void 0;"column"===t.slidesPerColumnFill?(k=Math.floor(M/T),$=M-k*T,(k>C||k===C&&$===T-1)&&($+=1)>=T&&($=0,k+=1),P=k+$*x/T,z.css({"-webkit-box-ordinal-group":P,"-moz-box-ordinal-group":P,"-ms-flex-order":P,"-webkit-order":P,order:P})):($=Math.floor(M/S),k=M-$*S),z.css("margin-"+(e.isHorizontal()?"top":"left"),0!==$&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",k).attr("data-swiper-row",$)}"none"!==z.css("display")&&("auto"===t.slidesPerView?(E=e.isHorizontal()?z.outerWidth(!0):z.outerHeight(!0),t.roundLengths&&(E=Math.floor(E))):(E=(i-(t.slidesPerView-1)*g)/t.slidesPerView,t.roundLengths&&(E=Math.floor(E)),n[M]&&(e.isHorizontal()?n[M].style.width=E+"px":n[M].style.height=E+"px")),n[M]&&(n[M].swiperSlideSize=E),c.push(E),t.centeredSlides?(b=b+E/2+w/2+g,0===w&&0!==M&&(b=b-i/2-g),0===M&&(b=b-i/2-g),Math.abs(b)<.001&&(b=0),y%t.slidesPerGroup==0&&d.push(b),p.push(b)):(y%t.slidesPerGroup==0&&d.push(b),p.push(b),b=b+E+g),e.virtualSize+=E+g,w=E,y+=1)}e.virtualSize=Math.max(e.virtualSize,i)+h;var I;if(s&&r&&("slide"===t.effect||"coverflow"===t.effect)&&a.css({width:e.virtualSize+t.spaceBetween+"px"}),U.flexbox&&!t.setWrapperSize||(e.isHorizontal()?a.css({width:e.virtualSize+t.spaceBetween+"px"}):a.css({height:e.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(e.virtualSize=(E+t.spaceBetween)*x,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?a.css({width:e.virtualSize+t.spaceBetween+"px"}):a.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){I=[];for(var L=0;L<d.length;L+=1)d[L]<e.virtualSize+d[0]&&I.push(d[L]);d=I}if(!t.centeredSlides){I=[];for(var D=0;D<d.length;D+=1)d[D]<=e.virtualSize-i&&I.push(d[D]);d=I,Math.floor(e.virtualSize-i)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-i)}0===d.length&&(d=[0]),0!==t.spaceBetween&&(e.isHorizontal()?s?n.css({marginLeft:g+"px"}):n.css({marginRight:g+"px"}):n.css({marginBottom:g+"px"})),q.extend(e,{slides:n,snapGrid:d,slidesGrid:p,slidesSizesGrid:c}),l!==v&&e.emit("slidesLengthChange"),d.length!==f&&e.emit("snapGridLengthChange"),p.length!==m&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}},ee=function(){var e,t=this,a=0,i=Array.prototype.slice.call(t.slides).filter(function(e){return e.classList.contains("swiper-slide-visible")});for(e=0;e<Math.ceil(t.params.slidesPerColumn);e+=1){var s=0;i.forEach(function(t){if(1*t.getAttribute("data-swiper-row")===e){var a=1*window.getComputedStyle(t).marginTop.replace(/px/i,"")+1*window.getComputedStyle(t).marginBottom.replace(/px/i,""),i=t.offsetHeight+a;s=i>s?i:s}}),a+=s}a&&t.$wrapperEl.css("height",a+"px")},te=function(){for(var e=this,t=e.slides,a=0;a<t.length;a+=1)t[a].swiperSlideOffset=e.isHorizontal()?t[a].offsetLeft:t[a].offsetTop},ae=function(e){void 0===e&&(e=this.translate||0);var t=this,a=t.params,i=t.slides,s=t.rtl;if(0!==i.length){void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();var r=-e;s&&(r=e),i.removeClass(a.slideVisibleClass);for(var n=0;n<i.length;n+=1){var o=i[n],l=(r+(a.centeredSlides?t.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+a.spaceBetween);if(a.watchSlidesVisibility){var d=-(r-o.swiperSlideOffset),p=d+t.slidesSizesGrid[n];(d>=0&&d<t.size||p>0&&p<=t.size||d<=0&&p>=t.size)&&i.eq(n).addClass(a.slideVisibleClass)}o.progress=s?-l:l}}},ie=function(e){void 0===e&&(e=this.translate||0);var t=this,a=t.params,i=t.maxTranslate()-t.minTranslate(),s=t.progress,r=t.isBeginning,n=t.isEnd,o=r,l=n;0===i?(s=0,r=!0,n=!0):(s=(e-t.minTranslate())/i,r=s<=0,n=s>=1),q.extend(t,{progress:s,isBeginning:r,isEnd:n}),(a.watchSlidesProgress||a.watchSlidesVisibility)&&t.updateSlidesProgress(e),r&&!o&&t.emit("reachBeginning toEdge"),n&&!l&&t.emit("reachEnd toEdge"),(o&&!r||l&&!n)&&t.emit("fromEdge"),t.emit("progress",s)},se=function(){var e=this,t=e.slides,a=e.params,i=e.$wrapperEl,s=e.activeIndex,r=e.realIndex,n=e.virtual&&a.virtual.enabled;t.removeClass(a.slideActiveClass+" "+a.slideNextClass+" "+a.slidePrevClass+" "+a.slideDuplicateActiveClass+" "+a.slideDuplicateNextClass+" "+a.slideDuplicatePrevClass);var o;o=n?e.$wrapperEl.find("."+a.slideClass+'[data-swiper-slide-index="'+s+'"]'):t.eq(s),o.addClass(a.slideActiveClass),a.loop&&(o.hasClass(a.slideDuplicateClass)?i.children("."+a.slideClass+":not(."+a.slideDuplicateClass+')[data-swiper-slide-index="'+r+'"]').addClass(a.slideDuplicateActiveClass):i.children("."+a.slideClass+"."+a.slideDuplicateClass+'[data-swiper-slide-index="'+r+'"]').addClass(a.slideDuplicateActiveClass));var l=o.nextAll("."+a.slideClass).eq(0).addClass(a.slideNextClass);a.loop&&0===l.length&&(l=t.eq(0),l.addClass(a.slideNextClass));var d=o.prevAll("."+a.slideClass).eq(0).addClass(a.slidePrevClass);a.loop&&0===d.length&&(d=t.eq(-1),d.addClass(a.slidePrevClass)),a.loop&&(l.hasClass(a.slideDuplicateClass)?i.children("."+a.slideClass+":not(."+a.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(a.slideDuplicateNextClass):i.children("."+a.slideClass+"."+a.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(a.slideDuplicateNextClass),d.hasClass(a.slideDuplicateClass)?i.children("."+a.slideClass+":not(."+a.slideDuplicateClass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(a.slideDuplicatePrevClass):i.children("."+a.slideClass+"."+a.slideDuplicateClass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(a.slideDuplicatePrevClass))},re=function(e){var t,a=this,i=a.rtl?a.translate:-a.translate,s=a.slidesGrid,r=a.snapGrid,n=a.params,o=a.activeIndex,l=a.realIndex,d=a.snapIndex,p=e;if(void 0===p){for(var c=0;c<s.length;c+=1)void 0!==s[c+1]?i>=s[c]&&i<s[c+1]-(s[c+1]-s[c])/2?p=c:i>=s[c]&&i<s[c+1]&&(p=c+1):i>=s[c]&&(p=c);n.normalizeSlideIndex&&(p<0||void 0===p)&&(p=0)}if(t=r.indexOf(i)>=0?r.indexOf(i):Math.floor(p/n.slidesPerGroup),t>=r.length&&(t=r.length-1),p===o)return void(t!==d&&(a.snapIndex=t,a.emit("snapIndexChange")));var u=parseInt(a.slides.eq(p).attr("data-swiper-slide-index")||p,10);q.extend(a,{snapIndex:t,realIndex:u,previousIndex:o,activeIndex:p}),a.emit("activeIndexChange"),a.emit("snapIndexChange"),l!==u&&a.emit("realIndexChange"),a.emit("slideChange")},ne=function(t){var a=this,i=a.params,s=e(t.target).closest("."+i.slideClass)[0],r=!1;if(s)for(var n=0;n<a.slides.length;n+=1)a.slides[n]===s&&(r=!0);if(!s||!r)return a.clickedSlide=void 0,void(a.clickedIndex=void 0);a.clickedSlide=s,a.virtual&&a.params.virtual.enabled?a.clickedIndex=parseInt(e(s).attr("data-swiper-slide-index"),10):a.clickedIndex=e(s).index(),i.slideToClickedSlide&&void 0!==a.clickedIndex&&a.clickedIndex!==a.activeIndex&&a.slideToClickedSlide()},oe={updateSize:Q,updateSlides:J,updateAutoHeight:ee,updateSlidesOffset:te,updateSlidesProgress:ae,updateProgress:ie,updateSlidesClasses:se,updateActiveIndex:re,updateClickedSlide:ne},le=function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,a=t.params,i=t.rtl,s=t.translate,r=t.$wrapperEl;if(a.virtualTranslate)return i?-s:s;var n=q.getTranslate(r[0],e);return i&&(n=-n),n||0},de=function(e,t){var a=this,i=a.rtl,s=a.params,r=a.$wrapperEl,n=a.progress,o=0,l=0;a.isHorizontal()?o=i?-e:e:l=e,s.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),s.virtualTranslate||(U.transforms3d?r.transform("translate3d("+o+"px, "+l+"px, 0px)"):r.transform("translate("+o+"px, "+l+"px)")),a.translate=a.isHorizontal()?o:l;var d,p=a.maxTranslate()-a.minTranslate();d=0===p?0:(e-a.minTranslate())/p,d!==n&&a.updateProgress(e),a.emit("setTranslate",a.translate,t)},pe=function(){return-this.snapGrid[0]},ce=function(){return-this.snapGrid[this.snapGrid.length-1]},ue={getTranslate:le,setTranslate:de,minTranslate:pe,maxTranslate:ce},he=function(e,t){var a=this;a.$wrapperEl.transition(e),a.emit("setTransition",e,t)},ve=function(e){void 0===e&&(e=!0);var t=this,a=t.activeIndex,i=t.params,s=t.previousIndex;i.autoHeight&&t.updateAutoHeight(),t.emit("transitionStart"),e&&a!==s&&(t.emit("slideChangeTransitionStart"),a>s?t.emit("slideNextTransitionStart"):t.emit("slidePrevTransitionStart"))},fe=function(e){void 0===e&&(e=!0);var t=this,a=t.activeIndex,i=t.previousIndex;t.animating=!1,t.setTransition(0),t.emit("transitionEnd"),e&&a!==i&&(t.emit("slideChangeTransitionEnd"),a>i?t.emit("slideNextTransitionEnd"):t.emit("slidePrevTransitionEnd"))},me={setTransition:he,transitionStart:ve,transitionEnd:fe},ge=function(){return{isSafari:function(){var e=R.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(R.navigator.userAgent),ie:R.navigator.pointerEnabled||R.navigator.msPointerEnabled,ieTouch:R.navigator.msPointerEnabled&&R.navigator.msMaxTouchPoints>1||R.navigator.pointerEnabled&&R.navigator.maxTouchPoints>1,lteIE9:function(){var e=K.createElement("div");return e.innerHTML="\x3c!--[if lte IE 9]><i></i><![endif]--\x3e",1===e.getElementsByTagName("i").length}()}}(),be=function(e,t,a,i){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===a&&(a=!0);var s=this,r=e;r<0&&(r=0);var n=s.params,o=s.snapGrid,l=s.slidesGrid,d=s.previousIndex,p=s.activeIndex,c=s.rtl,u=s.$wrapperEl,h=Math.floor(r/n.slidesPerGroup);h>=o.length&&(h=o.length-1),(p||n.initialSlide||0)===(d||0)&&a&&s.emit("beforeSlideChangeStart");var v=-o[h];if(s.updateProgress(v),n.normalizeSlideIndex)for(var f=0;f<l.length;f+=1)-Math.floor(100*v)>=Math.floor(100*l[f])&&(r=f);return!(!s.allowSlideNext&&v<s.translate&&v<s.minTranslate())&&(!(!s.allowSlidePrev&&v>s.translate&&v>s.maxTranslate()&&(p||0)!==r)&&(c&&-v===s.translate||!c&&v===s.translate?(s.updateActiveIndex(r),n.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==n.effect&&s.setTranslate(v),!1):(0===t||ge.lteIE9?(s.setTransition(0),s.setTranslate(v),s.updateActiveIndex(r),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(a),s.transitionEnd(a)):(s.setTransition(t),s.setTranslate(v),s.updateActiveIndex(r),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(a),s.animating||(s.animating=!0,u.transitionEnd(function(){s&&s.transitionEnd(a)}))),!0)))},we=function(e,t,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,s=i.params,r=i.animating;return s.loop?!r&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,i.slideTo(i.activeIndex+s.slidesPerGroup,e,t,a)):i.slideTo(i.activeIndex+s.slidesPerGroup,e,t,a)},ye=function(e,t,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,s=i.params,r=i.animating;return s.loop?!r&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,i.slideTo(i.activeIndex-1,e,t,a)):i.slideTo(i.activeIndex-1,e,t,a)},xe=function(e,t,a){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this;return i.slideTo(i.activeIndex,e,t,a)},Ee=function(){var t,a=this,i=a.params,s=a.$wrapperEl,r="auto"===i.slidesPerView?a.slidesPerViewDynamic():i.slidesPerView,n=a.clickedIndex;if(i.loop){if(a.animating)return;t=parseInt(e(a.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?n<a.loopedSlides-r/2||n>a.slides.length-a.loopedSlides+r/2?(a.loopFix(),n=s.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),q.nextTick(function(){a.slideTo(n)})):a.slideTo(n):n>a.slides.length-r?(a.loopFix(),n=s.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),q.nextTick(function(){a.slideTo(n)})):a.slideTo(n)}else a.slideTo(n)},Te={slideTo:be,slideNext:we,slidePrev:ye,slideReset:xe,slideToClickedSlide:Ee},Se=function(){var t=this,a=t.params,i=t.$wrapperEl;i.children("."+a.slideClass+"."+a.slideDuplicateClass).remove();var s=i.children("."+a.slideClass);if(a.loopFillGroupWithBlank){var r=a.slidesPerGroup-s.length%a.slidesPerGroup;if(r!==a.slidesPerGroup){for(var n=0;n<r;n+=1){var o=e(K.createElement("div")).addClass(a.slideClass+" "+a.slideBlankClass);i.append(o)}s=i.children("."+a.slideClass)}}"auto"!==a.slidesPerView||a.loopedSlides||(a.loopedSlides=s.length),t.loopedSlides=parseInt(a.loopedSlides||a.slidesPerView,10),
t.loopedSlides+=a.loopAdditionalSlides,t.loopedSlides>s.length&&(t.loopedSlides=s.length);var l=[],d=[];s.each(function(a,i){var r=e(i);a<t.loopedSlides&&d.push(i),a<s.length&&a>=s.length-t.loopedSlides&&l.push(i),r.attr("data-swiper-slide-index",a)});for(var p=0;p<d.length;p+=1)i.append(e(d[p].cloneNode(!0)).addClass(a.slideDuplicateClass));for(var c=l.length-1;c>=0;c-=1)i.prepend(e(l[c].cloneNode(!0)).addClass(a.slideDuplicateClass))},Ce=function(){var e,t=this,a=t.params,i=t.activeIndex,s=t.slides,r=t.loopedSlides,n=t.allowSlidePrev,o=t.allowSlideNext;t.allowSlidePrev=!0,t.allowSlideNext=!0,i<r?(e=s.length-3*r+i,e+=r,t.slideTo(e,0,!1,!0)):("auto"===a.slidesPerView&&i>=2*r||i>s.length-2*a.slidesPerView)&&(e=-s.length+i+r,e+=r,t.slideTo(e,0,!1,!0)),t.allowSlidePrev=n,t.allowSlideNext=o},Me=function(){var e=this,t=e.$wrapperEl,a=e.params,i=e.slides;t.children("."+a.slideClass+"."+a.slideDuplicateClass).remove(),i.removeAttr("data-swiper-slide-index")},ze={loopCreate:Se,loopFix:Ce,loopDestroy:Me},Pe=function(e){var t=this;if(!U.touch&&t.params.simulateTouch){var a=t.el;a.style.cursor="move",a.style.cursor=e?"-webkit-grabbing":"-webkit-grab",a.style.cursor=e?"-moz-grabbin":"-moz-grab",a.style.cursor=e?"grabbing":"grab"}},ke=function(){var e=this;U.touch||(e.el.style.cursor="")},$e={setGrabCursor:Pe,unsetGrabCursor:ke},Ie=function(e){var t=this,a=t.$wrapperEl,i=t.params;if(i.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var s=0;s<e.length;s+=1)e[s]&&a.append(e[s]);else a.append(e);i.loop&&t.loopCreate(),i.observer&&U.observer||t.update()},Le=function(e){var t=this,a=t.params,i=t.$wrapperEl,s=t.activeIndex;a.loop&&t.loopDestroy();var r=s+1;if("object"==typeof e&&"length"in e){for(var n=0;n<e.length;n+=1)e[n]&&i.prepend(e[n]);r=s+e.length}else i.prepend(e);a.loop&&t.loopCreate(),a.observer&&U.observer||t.update(),t.slideTo(r,0,!1)},De=function(e){var t=this,a=t.params,i=t.$wrapperEl,s=t.activeIndex;a.loop&&(t.loopDestroy(),t.slides=i.children("."+a.slideClass));var r,n=s;if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)r=e[o],t.slides[r]&&t.slides.eq(r).remove(),r<n&&(n-=1);n=Math.max(n,0)}else r=e,t.slides[r]&&t.slides.eq(r).remove(),r<n&&(n-=1),n=Math.max(n,0);a.loop&&t.loopCreate(),a.observer&&U.observer||t.update(),a.loop?t.slideTo(n+t.loopedSlides,0,!1):t.slideTo(n,0,!1)},Oe=function(){for(var e=this,t=[],a=0;a<e.slides.length;a+=1)t.push(a);e.removeSlide(t)},Ae={appendSlide:Ie,prependSlide:Le,removeSlide:De,removeAllSlides:Oe},He=function(){var e=R.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:R.cordova||R.phonegap,phonegap:R.cordova||R.phonegap},a=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),i=e.match(/(Android);?[\s\/]+([\d.]+)?/),s=e.match(/(iPad).*OS\s([\d_]+)/),r=e.match(/(iPod)(.*OS\s([\d_]+))?/),n=!s&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(a&&(t.os="windows",t.osVersion=a[2],t.windows=!0),i&&!a&&(t.os="android",t.osVersion=i[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(s||n||r)&&(t.os="ios",t.ios=!0),n&&!r&&(t.osVersion=n[2].replace(/_/g,"."),t.iphone=!0),s&&(t.osVersion=s[2].replace(/_/g,"."),t.ipad=!0),r&&(t.osVersion=r[3]?r[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(n||s||r)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var o=t.osVersion.split("."),l=K.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(r||n)&&(1*o[0]==7?1*o[1]>=1:1*o[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=R.devicePixelRatio||1,t}(),Xe=function(t){var a=this,i=a.touchEventsData,s=a.params,r=a.touches,n=t;if(n.originalEvent&&(n=n.originalEvent),i.isTouchEvent="touchstart"===n.type,i.isTouchEvent||!("which"in n)||3!==n.which){if(s.noSwiping&&e(n).closest("."+s.noSwipingClass)[0])return void(a.allowClick=!0);if(!s.swipeHandler||e(n).closest(s.swipeHandler)[0]){r.currentX="touchstart"===n.type?n.targetTouches[0].pageX:n.pageX,r.currentY="touchstart"===n.type?n.targetTouches[0].pageY:n.pageY;var o=r.currentX,l=r.currentY;if(!(He.ios&&s.iOSEdgeSwipeDetection&&o<=s.iOSEdgeSwipeThreshold)){if(q.extend(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=o,r.startY=l,i.touchStartTime=q.now(),a.allowClick=!0,a.updateSize(),a.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==n.type){var d=!0;e(n.target).is(i.formElements)&&(d=!1),K.activeElement&&e(K.activeElement).is(i.formElements)&&K.activeElement.blur(),d&&n.preventDefault()}a.emit("touchStart",n)}}}},Ne=function(t){var a=this,i=a.touchEventsData,s=a.params,r=a.touches,n=a.rtl,o=t;if(o.originalEvent&&(o=o.originalEvent),!i.isTouchEvent||"mousemove"!==o.type){var l="touchmove"===o.type?o.targetTouches[0].pageX:o.pageX,d="touchmove"===o.type?o.targetTouches[0].pageY:o.pageY;if(o.preventedByNestedSwiper)return r.startX=l,void(r.startY=d);if(!a.allowTouchMove)return a.allowClick=!1,void(i.isTouched&&(q.extend(r,{startX:l,startY:d,currentX:l,currentY:d}),i.touchStartTime=q.now()));if(i.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(a.isVertical()){if(r.currentY<r.startY&&a.translate<=a.maxTranslate()||r.currentY>r.startY&&a.translate>=a.minTranslate())return}else if(r.currentX<r.startX&&a.translate<=a.maxTranslate()||r.currentX>r.startX&&a.translate>=a.minTranslate())return;if(i.isTouchEvent&&K.activeElement&&o.target===K.activeElement&&e(o.target).is(i.formElements))return i.isMoved=!0,void(a.allowClick=!1);if(i.allowTouchCallbacks&&a.emit("touchMove",o),!(o.targetTouches&&o.targetTouches.length>1)){if(r.currentX="touchmove"===o.type?o.targetTouches[0].pageX:o.pageX,r.currentY="touchmove"===o.type?o.targetTouches[0].pageY:o.pageY,void 0===i.isScrolling){var p;a.isHorizontal()&&r.currentY===r.startY||a.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:(p=180*Math.atan2(Math.abs(r.currentY-r.startY),Math.abs(r.currentX-r.startX))/Math.PI,i.isScrolling=a.isHorizontal()?p>s.touchAngle:90-p>s.touchAngle)}if(i.isScrolling&&a.emit("touchMoveOpposite",o),"undefined"==typeof startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isTouched){if(i.isScrolling)return void(i.isTouched=!1);if(i.startMoving){a.allowClick=!1,o.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&o.stopPropagation(),i.isMoved||(s.loop&&a.loopFix(),i.startTranslate=a.getTranslate(),a.setTransition(0),a.animating&&a.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!s.grabCursor||!0!==a.allowSlideNext&&!0!==a.allowSlidePrev||a.setGrabCursor(!0),a.emit("sliderFirstMove",o)),a.emit("sliderMove",o),i.isMoved=!0;var c=a.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY;r.diff=c,c*=s.touchRatio,n&&(c=-c),a.swipeDirection=c>0?"prev":"next",i.currentTranslate=c+i.startTranslate;var u=!0,h=s.resistanceRatio;if(s.touchReleaseOnEdges&&(h=0),c>0&&i.currentTranslate>a.minTranslate()?(u=!1,s.resistance&&(i.currentTranslate=a.minTranslate()-1+Math.pow(-a.minTranslate()+i.startTranslate+c,h))):c<0&&i.currentTranslate<a.maxTranslate()&&(u=!1,s.resistance&&(i.currentTranslate=a.maxTranslate()+1-Math.pow(a.maxTranslate()-i.startTranslate-c,h))),u&&(o.preventedByNestedSwiper=!0),!a.allowSlideNext&&"next"===a.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!a.allowSlidePrev&&"prev"===a.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(c)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=a.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}s.followFinger&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(a.updateActiveIndex(),a.updateSlidesClasses()),s.freeMode&&(0===i.velocities.length&&i.velocities.push({position:r[a.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:r[a.isHorizontal()?"currentX":"currentY"],time:q.now()})),a.updateProgress(i.currentTranslate),a.setTranslate(i.currentTranslate))}}}}},Ye=function(e){var t=this,a=t.touchEventsData,i=t.params,s=t.touches,r=t.rtl,n=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,d=e;if(d.originalEvent&&(d=d.originalEvent),a.allowTouchCallbacks&&t.emit("touchEnd",d),a.allowTouchCallbacks=!1,a.isTouched){i.grabCursor&&a.isMoved&&a.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var p=q.now(),c=p-a.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(d),t.emit("tap",d),c<300&&p-a.lastClickTime>300&&(a.clickTimeout&&clearTimeout(a.clickTimeout),a.clickTimeout=q.nextTick(function(){t&&t.emit("click",d)},300)),c<300&&p-a.lastClickTime<300&&(a.clickTimeout&&clearTimeout(a.clickTimeout),t.emit("doubleTap",d))),a.lastClickTime=q.now(),q.nextTick(function(){t&&(t.allowClick=!0)}),!a.isTouched||!a.isMoved||!t.swipeDirection||0===s.diff||a.currentTranslate===a.startTranslate)return a.isTouched=!1,void(a.isMoved=!1);a.isTouched=!1,a.isMoved=!1;var u;if(u=i.followFinger?r?t.translate:-t.translate:-a.currentTranslate,i.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(i.freeModeMomentum){if(a.velocities.length>1){var h=a.velocities.pop(),v=a.velocities.pop(),f=h.position-v.position,m=h.time-v.time;t.velocity=f/m,t.velocity/=2,Math.abs(t.velocity)<i.freeModeMinimumVelocity&&(t.velocity=0),(m>150||q.now()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=i.freeModeMomentumVelocityRatio,a.velocities.length=0;var g=1e3*i.freeModeMomentumRatio,b=t.velocity*g,w=t.translate+b;r&&(w=-w);var y,x=!1,E=20*Math.abs(t.velocity)*i.freeModeMomentumBounceRatio;if(w<t.maxTranslate())i.freeModeMomentumBounce?(w+t.maxTranslate()<-E&&(w=t.maxTranslate()-E),y=t.maxTranslate(),x=!0,a.allowMomentumBounce=!0):w=t.maxTranslate();else if(w>t.minTranslate())i.freeModeMomentumBounce?(w-t.minTranslate()>E&&(w=t.minTranslate()+E),y=t.minTranslate(),x=!0,a.allowMomentumBounce=!0):w=t.minTranslate();else if(i.freeModeSticky){for(var T,S=0;S<l.length;S+=1)if(l[S]>-w){T=S;break}w=Math.abs(l[T]-w)<Math.abs(l[T-1]-w)||"next"===t.swipeDirection?l[T]:l[T-1],r||(w=-w)}if(0!==t.velocity)g=r?Math.abs((-w-t.translate)/t.velocity):Math.abs((w-t.translate)/t.velocity);else if(i.freeModeSticky)return void t.slideReset();i.freeModeMomentumBounce&&x?(t.updateProgress(y),t.setTransition(g),t.setTranslate(w),t.transitionStart(),t.animating=!0,n.transitionEnd(function(){t&&a.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(i.speed),t.setTranslate(y),n.transitionEnd(function(){t&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(w),t.setTransition(g),t.setTranslate(w),t.transitionStart(),t.animating||(t.animating=!0,n.transitionEnd(function(){t&&t.transitionEnd()}))):t.updateProgress(w),t.updateActiveIndex(),t.updateSlidesClasses()}return void((!i.freeModeMomentum||c>=i.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}for(var C=0,M=t.slidesSizesGrid[0],z=0;z<o.length;z+=i.slidesPerGroup)void 0!==o[z+i.slidesPerGroup]?u>=o[z]&&u<o[z+i.slidesPerGroup]&&(C=z,M=o[z+i.slidesPerGroup]-o[z]):u>=o[z]&&(C=z,M=o[o.length-1]-o[o.length-2]);var P=(u-o[C])/M;if(c>i.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(P>=i.longSwipesRatio?t.slideTo(C+i.slidesPerGroup):t.slideTo(C)),"prev"===t.swipeDirection&&(P>1-i.longSwipesRatio?t.slideTo(C+i.slidesPerGroup):t.slideTo(C))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(C+i.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(C)}}},Ge=function(){var e=this,t=e.params,a=e.el,i=e.allowSlideNext,s=e.allowSlidePrev;if(!a||0!==a.offsetWidth){if(t.breakpoints&&e.setBreakpoint(),e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var r=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.allowSlidePrev=s,e.allowSlideNext=i}},Be=function(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},Ve={attachEvents:Y,detachEvents:G},Re=function(){var e=this,t=e.activeIndex,a=e.loopedSlides;void 0===a&&(a=0);var i=e.params,s=i.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var r=e.getBreakpoint(s);if(r&&e.currentBreakpoint!==r){var n=r in s?s[r]:e.originalParams,o=i.loop&&n.slidesPerView!==i.slidesPerView;if(q.extend(e.params,n),q.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=r,o){var l=t-a;e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(l+a,0,!1)}}}},We=function(e){if(e){var t=!1,a=[];Object.keys(e).forEach(function(e){a.push(e)}),a.sort(function(e,t){return parseInt(e,10)>parseInt(t,10)});for(var i=0;i<a.length;i+=1){var s=a[i];s>=R.innerWidth&&!t&&(t=s)}return t||"max"}},Fe={setBreakpoint:Re,getBreakpoint:We},je=function(){var e=this,t=e.classNames,a=e.params,i=e.rtl,s=e.$el,r=[];r.push(a.direction),a.freeMode&&r.push("free-mode"),U.flexbox||r.push("no-flexbox"),a.autoHeight&&r.push("autoheight"),i&&r.push("rtl"),a.slidesPerColumn>1&&r.push("multirow"),He.android&&r.push("android"),He.ios&&r.push("ios"),(R.navigator.pointerEnabled||R.navigator.msPointerEnabled)&&r.push("wp8-"+a.direction),r.forEach(function(e){t.push(a.containerModifierClass+e)}),s.addClass(t.join(" "))},qe=function(){var e=this,t=e.$el,a=e.classNames;t.removeClass(a.join(" "))},Ke={addClasses:je,removeClasses:qe},Ue=function(e,t,a,i,s,r){function n(){r&&r()}var o;e.complete&&s?n():t?(o=new R.Image,o.onload=n,o.onerror=n,i&&(o.sizes=i),a&&(o.srcset=a),t&&(o.src=t)):n()},_e=function(){function e(){void 0!==t&&null!==t&&t&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}var t=this;t.imagesToLoad=t.$el.find("img");for(var a=0;a<t.imagesToLoad.length;a+=1){var i=t.imagesToLoad[a];t.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,e)}},Ze={loadImage:Ue,preloadImages:_e},Qe={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},Je={update:oe,translate:ue,transition:me,slide:Te,loop:ze,grabCursor:$e,manipulation:Ae,events:Ve,breakpoints:Fe,classes:Ke,images:Ze},et={},tt=function(t){function a(){for(var i=[],s=arguments.length;s--;)i[s]=arguments[s];var r,n;if(1===i.length&&i[0].constructor&&i[0].constructor===Object)n=i[0];else{var o;o=i,r=o[0],n=o[1]}n||(n={}),n=q.extend({},n),r&&!n.el&&(n.el=r),t.call(this,n),Object.keys(Je).forEach(function(e){Object.keys(Je[e]).forEach(function(t){a.prototype[t]||(a.prototype[t]=Je[e][t])})});var l=this;Object.keys(l.modules).forEach(function(e){var t=l.modules[e];if(t.params){var a=Object.keys(t.params)[0],i=t.params[a];if("object"!=typeof i)return;if(!(a in n&&"enabled"in i))return;!0===n[a]&&(n[a]={enabled:!0}),"object"!=typeof n[a]||"enabled"in n[a]||(n[a].enabled=!0),n[a]||(n[a]={enabled:!1})}});var d=q.extend({},Qe);l.useModulesParams(d),l.params=q.extend({},d,et,n),l.originalParams=q.extend({},l.params),l.passedParams=q.extend({},n);var p=e(l.params.el);if(r=p[0]){if(p.length>1){var c=[];return p.each(function(e,t){var i=q.extend({},n,{el:t});c.push(new a(i))}),c}r.swiper=l,p.data("swiper",l);var u=p.children("."+l.params.wrapperClass);return q.extend(l,{$el:p,el:r,$wrapperEl:u,wrapperEl:u[0],classNames:[],slides:e(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"horizontal"===l.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===p.css("direction")),wrongRTL:"-webkit-box"===u.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend"],t=["mousedown","mousemove","mouseup"];return R.navigator.pointerEnabled?t=["pointerdown","pointermove","pointerup"]:R.navigator.msPointerEnabled&&(t=["MSPointerDown","MsPointerMove","MsPointerUp"]),{start:U.touch||!l.params.simulateTouch?e[0]:t[0],move:U.touch||!l.params.simulateTouch?e[1]:t[1],end:U.touch||!l.params.simulateTouch?e[2]:t[2]}}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, textarea, button, video",lastClickTime:q.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),l}}t&&(a.__proto__=t),a.prototype=Object.create(t&&t.prototype),a.prototype.constructor=a;var i={extendedDefaults:{},defaults:{},Class:{},$:{}};return a.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,a=e.slides,i=e.slidesGrid,s=e.size,r=e.activeIndex,n=1;if(t.centeredSlides){for(var o,l=a[r].swiperSlideSize,d=r+1;d<a.length;d+=1)a[d]&&!o&&(l+=a[d].swiperSlideSize,n+=1,l>s&&(o=!0));for(var p=r-1;p>=0;p-=1)a[p]&&!o&&(l+=a[p].swiperSlideSize,n+=1,l>s&&(o=!0))}else for(var c=r+1;c<a.length;c+=1)i[c]-i[r]<s&&(n+=1);return n},a.prototype.update=function(){function e(){a=Math.min(Math.max(t.translate,t.maxTranslate()),t.minTranslate()),t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}var t=this;if(t){t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();var a;t.params.freeMode?(e(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||e(),t.emit("update")}},a.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))},a.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var a=this,i=a.params,s=a.$el,r=a.$wrapperEl,n=a.slides;a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),i.loop&&a.loopDestroy(),t&&(a.removeClasses(),s.removeAttr("style"),r.removeAttr("style"),n&&n.length&&n.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(function(e){a.off(e)}),!1!==e&&(a.$el[0].swiper=null,a.$el.data("swiper",null),q.deleteProps(a),a=null)},a.extendDefaults=function(e){q.extend(et,e)},i.extendedDefaults.get=function(){return et},i.defaults.get=function(){return Qe},i.Class.get=function(){return t},i.$.get=function(){return e},Object.defineProperties(a,i),a}(_),at={name:"device",proto:{device:He},static:{device:He}},it={name:"support",proto:{support:U},static:{support:U}},st={name:"browser",proto:{browser:ge},static:{browser:ge}},rt={name:"resize",create:function(){var e=this;q.extend(e,{resize:{resizeHandler:function(){e&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){var e=this;R.addEventListener("resize",e.resize.resizeHandler),R.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;R.removeEventListener("resize",e.resize.resizeHandler),R.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},nt={func:R.MutationObserver||R.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var a=this,i=nt.func,s=new i(function(e){e.forEach(function(e){a.emit("observerUpdate",e)})});s.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),a.observer.observers.push(s)},init:function(){var e=this;if(U.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),a=0;a<t.length;a+=1)e.observer.attach(t[a]);e.observer.attach(e.$el[0],{childList:!1}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){var e=this;e.observer.observers.forEach(function(e){e.disconnect()}),e.observer.observers=[]}},ot={name:"observer",params:{observer:!1,observeParents:!1},create:function(){var e=this;q.extend(e,{observer:{init:nt.init.bind(e),attach:nt.attach.bind(e),destroy:nt.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},lt={update:function(e){function t(){a.updateSlides(),a.updateProgress(),a.updateSlidesClasses(),a.lazy&&a.params.lazy.enabled&&a.lazy.load()}var a=this,i=a.params,s=i.slidesPerView,r=i.slidesPerGroup,n=i.centeredSlides,o=a.virtual,l=o.from,d=o.to,p=o.slides,c=o.slidesGrid,u=o.renderSlide,h=o.offset;a.updateActiveIndex();var v,f=a.activeIndex||0;v=a.rtl&&a.isHorizontal()?"right":a.isHorizontal()?"left":"top";var m,g;n?(m=Math.floor(s/2)+r,g=Math.floor(s/2)+r):(m=s+(r-1),g=r);var b=Math.max((f||0)-g,0),w=Math.min((f||0)+m,p.length-1),y=(a.slidesGrid[b]||0)-(a.slidesGrid[0]||0);if(q.extend(a.virtual,{from:b,to:w,offset:y,slidesGrid:a.slidesGrid}),l===b&&d===w&&!e)return a.slidesGrid!==c&&y!==h&&a.slides.css(v,y+"px"),void a.updateProgress();if(a.params.virtual.renderExternal)return a.params.virtual.renderExternal.call(a,{offset:y,from:b,to:w,slides:function(){for(var e=[],t=b;t<=w;t+=1)e.push(p[t]);return e}()}),void t();var x=[],E=[];if(e)a.$wrapperEl.find("."+a.params.slideClass).remove();else for(var T=l;T<=d;T+=1)(T<b||T>w)&&a.$wrapperEl.find("."+a.params.slideClass+'[data-swiper-slide-index="'+T+'"]').remove();for(var S=0;S<p.length;S+=1)S>=b&&S<=w&&(void 0===d||e?E.push(S):(S>d&&E.push(S),S<l&&x.push(S)));E.forEach(function(e){a.$wrapperEl.append(u(p[e],e))}),x.sort(function(e,t){return e<t}).forEach(function(e){a.$wrapperEl.prepend(u(p[e],e))}),a.$wrapperEl.children(".swiper-slide").css(v,y+"px"),t()},renderSlide:function(t,a){var i=this,s=i.params.virtual;if(s.cache&&i.virtual.cache[a])return i.virtual.cache[a];var r=e(s.renderSlide?s.renderSlide.call(i,t,a):'<div class="'+i.params.slideClass+'" data-swiper-slide-index="'+a+'">'+t+"</div>");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",a),s.cache&&(i.virtual.cache[a]=r),r},appendSlide:function(e){var t=this;t.virtual.slides.push(e),t.virtual.update(!0)},prependSlide:function(e){var t=this;if(t.virtual.slides.unshift(e),t.params.virtual.cache){var a=t.virtual.cache,i={};Object.keys(a).forEach(function(e){i[e+1]=a[e]}),t.virtual.cache=i}t.virtual.update(!0),t.slideNext(0)}},dt={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null}},create:function(){var e=this;q.extend(e,{virtual:{update:lt.update.bind(e),appendSlide:lt.appendSlide.bind(e),prependSlide:lt.prependSlide.bind(e),renderSlide:lt.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;e.params.virtual.enabled&&(e.classNames.push(e.params.containerModifierClass+"virtual"),q.extend(e.params,{watchSlidesProgress:!0}),e.virtual.update())},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},pt={handle:function(e){var t=this,a=e;a.originalEvent&&(a=a.originalEvent);var i=a.keyCode||a.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===i||t.isVertical()&&40===i))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===i||t.isVertical()&&38===i))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||K.activeElement&&K.activeElement.nodeName&&("input"===K.activeElement.nodeName.toLowerCase()||"textarea"===K.activeElement.nodeName.toLowerCase()))){if(37===i||39===i||38===i||40===i){var s=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var r={left:R.pageXOffset,top:R.pageYOffset},n=R.innerWidth,o=R.innerHeight,l=t.$el.offset();t.rtl&&(l.left-=t.$el[0].scrollLeft);for(var d=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],p=0;p<d.length;p+=1){var c=d[p];c[0]>=r.left&&c[0]<=r.left+n&&c[1]>=r.top&&c[1]<=r.top+o&&(s=!0)}if(!s)return}t.isHorizontal()?(37!==i&&39!==i||(a.preventDefault?a.preventDefault():a.returnValue=!1),(39===i&&!t.rtl||37===i&&t.rtl)&&t.slideNext(),(37===i&&!t.rtl||39===i&&t.rtl)&&t.slidePrev()):(38!==i&&40!==i||(a.preventDefault?a.preventDefault():a.returnValue=!1),40===i&&t.slideNext(),38===i&&t.slidePrev()),t.emit("keyPress",i)}},enable:function(){var t=this;t.keyboard.enabled||(e(K).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this;t.keyboard.enabled&&(e(K).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},ct={name:"keyboard",params:{keyboard:{enabled:!1}},create:function(){var e=this;q.extend(e,{keyboard:{enabled:!1,enable:pt.enable.bind(e),disable:pt.disable.bind(e),handle:pt.handle.bind(e)}})},on:{init:function(){var e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(){var e=this;e.keyboard.enabled&&e.keyboard.disable()}}},ut={lastScrollTime:q.now(),event:function(){return R.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":B()?"wheel":"mousewheel"}(),normalize:function(e){var t=0,a=0,i=0,s=0;return"detail"in e&&(a=e.detail),"wheelDelta"in e&&(a=-e.wheelDelta/120),"wheelDeltaY"in e&&(a=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=a,a=0),i=10*t,s=10*a,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||s)&&e.deltaMode&&(1===e.deltaMode?(i*=40,s*=40):(i*=800,s*=800)),i&&!t&&(t=i<1?-1:1),s&&!a&&(a=s<1?-1:1),{spinX:t,spinY:a,pixelX:i,pixelY:s}},handle:function(e){var t=e,a=this,i=a.params.mousewheel;t.originalEvent&&(t=t.originalEvent);var s=0,r=a.rtl?-1:1,n=ut.normalize(t);if(i.forceToAxis)if(a.isHorizontal()){if(!(Math.abs(n.pixelX)>Math.abs(n.pixelY)))return!0;s=n.pixelX*r}else{if(!(Math.abs(n.pixelY)>Math.abs(n.pixelX)))return!0;s=n.pixelY}else s=Math.abs(n.pixelX)>Math.abs(n.pixelY)?-n.pixelX*r:-n.pixelY;if(0===s)return!0;if(i.invert&&(s=-s),a.params.freeMode){var o=a.getTranslate()+s*i.sensitivity,l=a.isBeginning,d=a.isEnd;if(o>=a.minTranslate()&&(o=a.minTranslate()),o<=a.maxTranslate()&&(o=a.maxTranslate()),a.setTransition(0),a.setTranslate(o),a.updateProgress(),a.updateActiveIndex(),a.updateSlidesClasses(),(!l&&a.isBeginning||!d&&a.isEnd)&&a.updateSlidesClasses(),a.params.freeModeSticky&&(clearTimeout(a.mousewheel.timeout),a.mousewheel.timeout=q.nextTick(function(){a.slideReset()},300)),a.emit("scroll",t),a.params.autoplay&&a.params.autoplayDisableOnInteraction&&a.stopAutoplay(),0===o||o===a.maxTranslate())return!0}else{if(q.now()-a.mousewheel.lastScrollTime>60)if(s<0)if(a.isEnd&&!a.params.loop||a.animating){if(i.releaseOnEdges)return!0}else a.slideNext(),a.emit("scroll",t);else if(a.isBeginning&&!a.params.loop||a.animating){if(i.releaseOnEdges)return!0}else a.slidePrev(),a.emit("scroll",t);a.mousewheel.lastScrollTime=(new R.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var t=this;if(!ut.event)return!1;if(t.mousewheel.enabled)return!1;var a=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(a=e(t.params.mousewheel.eventsTarged)),a.on(ut.event,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable:function(){var t=this;if(!ut.event)return!1;if(!t.mousewheel.enabled)return!1;var a=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(a=e(t.params.mousewheel.eventsTarged)),a.off(ut.event,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}},ht={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;q.extend(e,{mousewheel:{enabled:!1,enable:ut.enable.bind(e),disable:ut.disable.bind(e),handle:ut.handle.bind(e),lastScrollTime:q.now()}})},on:{init:function(){var e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}},vt={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var a=e.navigation,i=a.$nextEl,s=a.$prevEl;s&&s.length>0&&(e.isBeginning?s.addClass(t.disabledClass):s.removeClass(t.disabledClass)),i&&i.length>0&&(e.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass))}},init:function(){var t=this,a=t.params.navigation;if(a.nextEl||a.prevEl){var i,s;a.nextEl&&(i=e(a.nextEl),t.params.uniqueNavElements&&"string"==typeof a.nextEl&&i.length>1&&1===t.$el.find(a.nextEl).length&&(i=t.$el.find(a.nextEl))),a.prevEl&&(s=e(a.prevEl),t.params.uniqueNavElements&&"string"==typeof a.prevEl&&s.length>1&&1===t.$el.find(a.prevEl).length&&(s=t.$el.find(a.prevEl))),i&&i.length>0&&i.on("click",function(e){e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()}),s&&s.length>0&&s.on("click",function(e){e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()}),q.extend(t.navigation,{
$nextEl:i,nextEl:i&&i[0],$prevEl:s,prevEl:s&&s[0]})}},destroy:function(){var e=this,t=e.navigation,a=t.$nextEl,i=t.$prevEl;a&&a.length&&(a.off("click"),a.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("click"),i.removeClass(e.params.navigation.disabledClass))}},ft={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden"}},create:function(){var e=this;q.extend(e,{navigation:{init:vt.init.bind(e),update:vt.update.bind(e),destroy:vt.destroy.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var a=this,i=a.navigation,s=i.$nextEl,r=i.$prevEl;!a.params.navigation.hideOnClick||e(t.target).is(r)||e(t.target).is(s)||(s&&s.toggleClass(a.params.navigation.hiddenClass),r&&r.toggleClass(a.params.navigation.hiddenClass))}}},mt={update:function(){var t=this,a=t.rtl,i=t.params.pagination;if(i.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var s,r=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,n=t.pagination.$el,o=t.params.loop?Math.ceil((r-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(s=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),s>r-1-2*t.loopedSlides&&(s-=r-2*t.loopedSlides),s>o-1&&(s-=o),s<0&&"bullets"!==t.params.paginationType&&(s=o+s)):s=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var l=t.pagination.bullets;if(i.dynamicBullets&&(t.pagination.bulletSize=l.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(t.isHorizontal()?"width":"height",5*t.pagination.bulletSize+"px")),l.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev"),n.length>1)l.each(function(t,a){var r=e(a);r.index()===s&&(r.addClass(i.bulletActiveClass),i.dynamicBullets&&(r.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),r.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")))});else{var d=l.eq(s);d.addClass(i.bulletActiveClass),i.dynamicBullets&&(d.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),d.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))}if(i.dynamicBullets){var p=(5*t.pagination.bulletSize-t.pagination.bulletSize)/2-s*t.pagination.bulletSize,c=a?"right":"left";l.css(t.isHorizontal()?c:"top",p+"px")}}if("fraction"===i.type&&(n.find("."+i.currentClass).text(s+1),n.find("."+i.totalClass).text(o)),"progressbar"===i.type){var u=(s+1)/o,h=u,v=1;t.isHorizontal()||(v=u,h=1),n.find("."+i.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+h+") scaleY("+v+")").transition(t.params.speed)}"custom"===i.type&&i.renderCustom?(n.html(i.renderCustom(t,s+1,o)),t.emit("paginationRender",t,n[0])):t.emit("paginationUpdate",t,n[0])}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.$el,s="";if("bullets"===t.type){for(var r=e.params.loop?Math.ceil((a-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,n=0;n<r;n+=1)t.renderBullet?s+=t.renderBullet.call(e,n,t.bulletClass):s+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";i.html(s),e.pagination.bullets=i.find("."+t.bulletClass)}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',i.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',i.html(s)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var t=this,a=t.params.pagination;if(a.el){var i=e(a.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof a.el&&i.length>1&&1===t.$el.find(a.el).length&&(i=t.$el.find(a.el)),"bullets"===a.type&&a.clickable&&i.addClass(a.clickableClass),i.addClass(a.modifierClass+a.type),"bullets"===a.type&&a.dynamicBullets&&i.addClass(""+a.modifierClass+a.type+"-dynamic"),a.clickable&&i.on("click","."+a.bulletClass,function(a){a.preventDefault();var i=e(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)}),q.extend(t.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var a=e.pagination.$el;a.removeClass(t.hiddenClass),a.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&a.off("click","."+t.bulletClass)}}},gt={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,type:"bullets",dynamicBullets:!1,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",clickableClass:"swiper-pagination-clickable"}},create:function(){var e=this;q.extend(e,{pagination:{init:mt.init.bind(e),render:mt.render.bind(e),update:mt.update.bind(e),destroy:mt.destroy.bind(e)}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;e.params.loop?e.pagination.update():void 0===e.snapIndex&&e.pagination.update()},snapIndexChange:function(){var e=this;e.params.loop||e.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(t){var a=this;a.params.pagination.el&&a.params.pagination.hideOnClick&&a.pagination.$el.length>0&&!e(t.target).hasClass(a.params.pagination.bulletClass)&&a.pagination.$el.toggleClass(a.params.pagination.hiddenClass)}}},bt={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=e.rtl,i=e.progress,s=t.dragSize,r=t.trackSize,n=t.$dragEl,o=t.$el,l=e.params.scrollbar,d=s,p=(r-s)*i;a&&e.isHorizontal()?(p=-p,p>0?(d=s-p,p=0):-p+s>r&&(d=r+p)):p<0?(d=s+p,p=0):p+s>r&&(d=r-p),e.isHorizontal()?(U.transforms3d?n.transform("translate3d("+p+"px, 0, 0)"):n.transform("translateX("+p+"px)"),n[0].style.width=d+"px"):(U.transforms3d?n.transform("translate3d(0px, "+p+"px, 0)"):n.transform("translateY("+p+"px)"),n[0].style.height=d+"px"),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout(function(){o[0].style.opacity=0,o.transition(400)},1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,a=t.$dragEl,i=t.$el;a[0].style.width="",a[0].style.height="";var s,r=e.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,n=e.size/e.virtualSize,o=n*(r/e.size);s="auto"===e.params.scrollbar.dragSize?r*n:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?a[0].style.width=s+"px":a[0].style.height=s+"px",i[0].style.opacity=n>=1?0:1,e.params.scrollbarHide&&(i[0].style.opacity=0),q.extend(t,{trackSize:r,divider:n,moveDivider:o,dragSize:s})}},setDragPosition:function(e){var t,a=this,i=a.scrollbar,s=i.$el,r=i.dragSize,n=i.moveDivider;t=a.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY;var o=t-s.offset()[a.isHorizontal()?"left":"top"]-r/2,l=-a.minTranslate()*n,d=-a.maxTranslate()*n;o<l?o=l:o>d&&(o=d),a.rtl&&(o=d-o),o=-o/n,a.updateProgress(o),a.setTranslate(o),a.updateActiveIndex(),a.updateSlidesClasses()},onDragStart:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=t.$wrapperEl,r=i.$el,n=i.$dragEl;t.scrollbar.isTouched=!0,e.preventDefault(),e.stopPropagation(),s.transition(100),n.transition(100),i.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),r.transition(0),a.hide&&r.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,a=t.scrollbar,i=t.$wrapperEl,s=a.$el,r=a.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,a.setDragPosition(e),i.transition(0),s.transition(0),r.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,a=t.params.scrollbar,i=t.scrollbar,s=i.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,a.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=q.nextTick(function(){s.css("opacity",0),s.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),a.snapOnRelease&&t.slideReset())},enableDraggable:function(){var t=this;if(t.params.scrollbar.el){var a=t.scrollbar,i=a.$el,s=U.touch?i[0]:document;i.on(t.scrollbar.dragEvents.start,t.scrollbar.onDragStart),e(s).on(t.scrollbar.dragEvents.move,t.scrollbar.onDragMove),e(s).on(t.scrollbar.dragEvents.end,t.scrollbar.onDragEnd)}},disableDraggable:function(){var t=this;if(t.params.scrollbar.el){var a=t.scrollbar,i=a.$el,s=U.touch?i[0]:document;i.off(t.scrollbar.dragEvents.start),e(s).off(t.scrollbar.dragEvents.move),e(s).off(t.scrollbar.dragEvents.end)}},init:function(){var t=this;if(t.params.scrollbar.el){var a=t.scrollbar,i=t.$el,s=t.touchEvents,r=t.params.scrollbar,n=e(r.el);t.params.uniqueNavElements&&"string"==typeof r.el&&n.length>1&&1===i.find(r.el).length&&(n=i.find(r.el));var o=n.find(".swiper-scrollbar-drag");0===o.length&&(o=e('<div class="swiper-scrollbar-drag"></div>'),n.append(o)),t.scrollbar.dragEvents=function(){return!1!==t.params.simulateTouch||U.touch?s:{start:"mousedown",move:"mousemove",end:"mouseup"}}(),q.extend(a,{$el:n,el:n[0],$dragEl:o,dragEl:o[0]}),r.draggable&&a.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},wt={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0}},create:function(){var e=this;q.extend(e,{scrollbar:{init:bt.init.bind(e),destroy:bt.destroy.bind(e),updateSize:bt.updateSize.bind(e),setTranslate:bt.setTranslate.bind(e),setTransition:bt.setTransition.bind(e),enableDraggable:bt.enableDraggable.bind(e),disableDraggable:bt.disableDraggable.bind(e),setDragPosition:bt.setDragPosition.bind(e),onDragStart:bt.onDragStart.bind(e),onDragMove:bt.onDragMove.bind(e),onDragEnd:bt.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},yt={setTransform:function(t,a){var i=this,s=i.rtl,r=e(t),n=s?-1:1,o=r.attr("data-swiper-parallax")||"0",l=r.attr("data-swiper-parallax-x"),d=r.attr("data-swiper-parallax-y"),p=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(l||d?(l=l||"0",d=d||"0"):i.isHorizontal()?(l=o,d="0"):(d=o,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*a*n+"%":l*a*n+"px",d=d.indexOf("%")>=0?parseInt(d,10)*a+"%":d*a+"px",void 0!==c&&null!==c){var u=c-(c-1)*(1-Math.abs(a));r[0].style.opacity=u}if(void 0===p||null===p)r.transform("translate3d("+l+", "+d+", 0px)");else{var h=p-(p-1)*(1-Math.abs(a));r.transform("translate3d("+l+", "+d+", 0px) scale("+h+")")}},setTranslate:function(){var t=this,a=t.$el,i=t.slides,s=t.progress;a.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(e,a){t.parallax.setTransform(a,s)}),i.each(function(a,i){e(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(e,a){var s=Math.min(Math.max(i.progress,-1),1);t.parallax.setTransform(a,s)})})},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(a,i){var s=e(i),r=parseInt(s.attr("data-swiper-parallax-duration"),10)||t;0===t&&(r=0),s.transition(r)})}},xt={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;q.extend(e,{parallax:{setTransform:yt.setTransform.bind(e),setTranslate:yt.setTranslate.bind(e),setTransition:yt.setTransition.bind(e)}})},on:{beforeInit:function(){this.params.watchSlidesProgress=!0},init:function(){var e=this;e.params.parallax&&e.parallax.setTranslate()},setTranslate:function(){var e=this;e.params.parallax&&e.parallax.setTranslate()},setTransition:function(e){var t=this;t.params.parallax&&t.parallax.setTransition(e)}}},Et={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,a=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,s=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-t,2)+Math.pow(s-a,2))},onGestureStart:function(t){var a=this,i=a.params.zoom,s=a.zoom,r=s.gesture;if(!U.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;r.scaleStart=Et.getDistanceBetweenTouches(t)}if(!(r.$slideEl&&r.$slideEl.length||(r.$slideEl=e(this),0===r.$slideEl.length&&(r.$slideEl=a.slides.eq(a.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+i.containerClass),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==r.$imageWrapEl.length)))return void(r.$imageEl=void 0);r.$imageEl.transition(0),a.zoom.isScaling=!0},onGestureChange:function(e){var t=this,a=t.params.zoom,i=t.zoom,s=i.gesture;if(!U.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;s.scaleMove=Et.getDistanceBetweenTouches(e)}s.$imageEl&&0!==s.$imageEl.length&&(U.gestures?t.zoom.scale=e.scale*i.currentScale:i.scale=s.scaleMove/s.scaleStart*i.currentScale,i.scale>s.maxRatio&&(i.scale=s.maxRatio-1+Math.pow(i.scale-s.maxRatio+1,.5)),i.scale<a.minRatio&&(i.scale=a.minRatio+1-Math.pow(a.minRatio-i.scale+1,.5)),s.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(e){var t=this,a=t.params.zoom,i=t.zoom,s=i.gesture;!U.gestures&&("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2)||s.$imageEl&&0!==s.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,s.maxRatio),a.minRatio),s.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(s.$slideEl=void 0))},onTouchStart:function(e){var t=this,a=t.zoom,i=a.gesture,s=a.image;i.$imageEl&&0!==i.$imageEl.length&&(s.isTouched||(He.android&&e.preventDefault(),s.isTouched=!0,s.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,s.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,a=t.zoom,i=a.gesture,s=a.image,r=a.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(t.allowClick=!1,s.isTouched&&i.$slideEl)){s.isMoved||(s.width=i.$imageEl[0].offsetWidth,s.height=i.$imageEl[0].offsetHeight,s.startX=q.getTranslate(i.$imageWrapEl[0],"x")||0,s.startY=q.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),t.rtl&&(s.startX=-s.startX),t.rtl&&(s.startY=-s.startY));var n=s.width*a.scale,o=s.height*a.scale;if(!(n<i.slideWidth&&o<i.slideHeight)){if(s.minX=Math.min(i.slideWidth/2-n/2,0),s.maxX=-s.minX,s.minY=Math.min(i.slideHeight/2-o/2,0),s.maxY=-s.minY,s.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,s.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!s.isMoved&&!a.isScaling){if(t.isHorizontal()&&(Math.floor(s.minX)===Math.floor(s.startX)&&s.touchesCurrent.x<s.touchesStart.x||Math.floor(s.maxX)===Math.floor(s.startX)&&s.touchesCurrent.x>s.touchesStart.x))return void(s.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.y<s.touchesStart.y||Math.floor(s.maxY)===Math.floor(s.startY)&&s.touchesCurrent.y>s.touchesStart.y))return void(s.isTouched=!1)}e.preventDefault(),e.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentX<s.minX&&(s.currentX=s.minX+1-Math.pow(s.minX-s.currentX+1,.8)),s.currentX>s.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentY<s.minY&&(s.currentY=s.minY+1-Math.pow(s.minY-s.currentY+1,.8)),s.currentY>s.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=s.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=s.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(s.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(s.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(s.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(s.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=s.touchesCurrent.x,r.prevPositionY=s.touchesCurrent.y,r.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}}},onTouchEnd:function(){var e=this,t=e.zoom,a=t.gesture,i=t.image,s=t.velocity;if(a.$imageEl&&0!==a.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var r=300,n=300,o=s.x*r,l=i.currentX+o,d=s.y*n,p=i.currentY+d;0!==s.x&&(r=Math.abs((l-i.currentX)/s.x)),0!==s.y&&(n=Math.abs((p-i.currentY)/s.y));var c=Math.max(r,n);i.currentX=l,i.currentY=p;var u=i.width*t.scale,h=i.height*t.scale;i.minX=Math.min(a.slideWidth/2-u/2,0),i.maxX=-i.minX,i.minY=Math.min(a.slideHeight/2-h/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),a.$imageWrapEl.transition(c).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,a=t.gesture;a.$slideEl&&e.previousIndex!==e.activeIndex&&(a.$imageEl.transform("translate3d(0,0,0) scale(1)"),a.$imageWrapEl.transform("translate3d(0,0,0)"),a.$slideEl=void 0,a.$imageEl=void 0,a.$imageWrapEl=void 0,t.scale=1,t.currentScale=1)},toggle:function(e){var t=this,a=t.zoom;a.scale&&1!==a.scale?a.out():a.in(e)},in:function(t){var a=this,i=a.zoom,s=a.params.zoom,r=i.gesture,n=i.image;if(r.$slideEl||(r.$slideEl=a.clickedSlide?e(a.clickedSlide):a.slides.eq(a.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+s.containerClass)),r.$imageEl&&0!==r.$imageEl.length){r.$slideEl.addClass(""+s.zoomedSlideClass);var o,l,d,p,c,u,h,v,f,m,g,b,w,y,x,E,T,S;void 0===n.touchesStart.x&&t?(o="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,l="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(o=n.touchesStart.x,l=n.touchesStart.y),i.scale=r.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,i.currentScale=r.$imageWrapEl.attr("data-swiper-zoom")||s.maxRatio,t?(T=r.$slideEl[0].offsetWidth,S=r.$slideEl[0].offsetHeight,d=r.$slideEl.offset().left,p=r.$slideEl.offset().top,c=d+T/2-o,u=p+S/2-l,f=r.$imageEl[0].offsetWidth,m=r.$imageEl[0].offsetHeight,g=f*i.scale,b=m*i.scale,w=Math.min(T/2-g/2,0),y=Math.min(S/2-b/2,0),x=-w,E=-y,h=c*i.scale,v=u*i.scale,h<w&&(h=w),h>x&&(h=x),v<y&&(v=y),v>E&&(v=E)):(h=0,v=0),r.$imageWrapEl.transition(300).transform("translate3d("+h+"px, "+v+"px,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+i.scale+")")}},out:function(){var t=this,a=t.zoom,i=t.params.zoom,s=a.gesture;s.$slideEl||(s.$slideEl=t.clickedSlide?e(t.clickedSlide):t.slides.eq(t.activeIndex),s.$imageEl=s.$slideEl.find("img, svg, canvas"),s.$imageWrapEl=s.$imageEl.parent("."+i.containerClass)),s.$imageEl&&0!==s.$imageEl.length&&(a.scale=1,a.currentScale=1,s.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),s.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),s.$slideEl.removeClass(""+i.zoomedSlideClass),s.$slideEl=void 0)},enable:function(){var t=this,a=t.zoom;if(!a.enabled){a.enabled=!0;var i=t.slides,s=!("touchstart"!==t.touchEvents.start||!U.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};U.gestures?(i.on("gesturestart",a.onGestureStart,s),i.on("gesturechange",a.onGestureChange,s),i.on("gestureend",a.onGestureEnd,s)):"touchstart"===t.touchEvents.start&&(i.on(t.touchEvents.start,a.onGestureStart,s),i.on(t.touchEvents.move,a.onGestureChange,s),i.on(t.touchEvents.end,a.onGestureEnd,s)),t.slides.each(function(i,s){var r=e(s);r.find("."+t.params.zoom.containerClass).length>0&&r.on(t.touchEvents.move,a.onTouchMove)})}},disable:function(){var t=this,a=t.zoom;if(a.enabled){t.zoom.enabled=!1;var i=t.slides,s=!("touchstart"!==t.touchEvents.start||!U.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};U.gestures?(i.off("gesturestart",a.onGestureStart,s),i.off("gesturechange",a.onGestureChange,s),i.off("gestureend",a.onGestureEnd,s)):"touchstart"===t.touchEvents.start&&(i.off(t.touchEvents.start,a.onGestureStart,s),i.off(t.touchEvents.move,a.onGestureChange,s),i.off(t.touchEvents.end,a.onGestureEnd,s)),t.slides.each(function(i,s){var r=e(s);r.find("."+t.params.zoom.containerClass).length>0&&r.off(t.touchEvents.move,a.onTouchMove)})}}},Tt={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(a){t[a]=Et[a].bind(e)}),q.extend(e,{zoom:t})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},St={loadInSlide:function(t,a){void 0===a&&(a=!0);var i=this,s=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var r=i.virtual&&i.params.virtual.enabled,n=r?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):i.slides.eq(t),o=n.find("."+s.elementClass+":not(."+s.loadedClass+"):not(."+s.loadingClass+")");!n.hasClass(s.elementClass)||n.hasClass(s.loadedClass)||n.hasClass(s.loadingClass)||(o=o.add(n[0])),0!==o.length&&o.each(function(t,r){var o=e(r);o.addClass(s.loadingClass);var l=o.attr("data-background"),d=o.attr("data-src"),p=o.attr("data-srcset"),c=o.attr("data-sizes");i.loadImage(o[0],d||l,p,c,!1,function(){if(void 0!==i&&null!==i&&i&&(!i||i.params)){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(p&&(o.attr("srcset",p),o.removeAttr("data-srcset")),c&&(o.attr("sizes",c),o.removeAttr("data-sizes")),d&&(o.attr("src",d),o.removeAttr("data-src"))),o.addClass(s.loadedClass).removeClass(s.loadingClass),n.find("."+s.preloaderClass).remove(),i.params.loop&&a){var e=n.attr("data-swiper-slide-index");if(n.hasClass(i.params.slideDuplicateClass)){var t=i.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(t.index(),!1)}else{var r=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(r.index(),!1)}}i.emit("lazyImageReady",n[0],o[0])}}),i.emit("lazyImageLoad",n[0],o[0])})}},load:function(){function t(e){if(l){if(s.children("."+r.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(n[e])return!0;return!1}function a(t){return l?e(t).attr("data-swiper-slide-index"):e(t).index()}var i=this,s=i.$wrapperEl,r=i.params,n=i.slides,o=i.activeIndex,l=i.virtual&&r.virtual.enabled,d=r.lazy,p=r.slidesPerView;if("auto"===p&&(p=0),i.lazy.initialImageLoaded||(i.lazy.initialImageLoaded=!0),i.params.watchSlidesVisibility)s.children("."+r.slideVisibleClass).each(function(t,a){var s=l?e(a).attr("data-swiper-slide-index"):e(a).index();i.lazy.loadInSlide(s)});else if(p>1)for(var c=o;c<o+p;c+=1)t(c)&&i.lazy.loadInSlide(c);else i.lazy.loadInSlide(o);if(d.loadPrevNext)if(p>1||d.loadPrevNextAmount&&d.loadPrevNextAmount>1){for(var u=d.loadPrevNextAmount,h=p,v=Math.min(o+h+Math.max(u,h),n.length),f=Math.max(o-Math.max(h,u),0),m=o+p;m<v;m+=1)t(m)&&i.lazy.loadInSlide(m);for(var g=f;g<o;g+=1)t(g)&&i.lazy.loadInSlide(g)}else{var b=s.children("."+r.slideNextClass);b.length>0&&i.lazy.loadInSlide(a(b));var w=s.children("."+r.slidePrevClass);w.length>0&&i.lazy.loadInSlide(a(w))}}},Ct={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;q.extend(e,{lazy:{initialImageLoaded:!1,load:St.load.bind(e),loadInSlide:St.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},Mt={LinearSpline:function(e,t){var a=function(){var e,t,a;return function(i,s){for(t=-1,e=i.length;e-t>1;)a=e+t>>1,i[a]<=s?t=a:e=a;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1;var i,s;return this.interpolate=function(e){return e?(s=a(this.x,e),i=s-1,(e-this.x[i])*(this.y[s]-this.y[i])/(this.x[s]-this.x[i])+this.y[i]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Mt.LinearSpline(t.slidesGrid,e.slidesGrid):new Mt.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){function a(e){var t=e.rtl&&"horizontal"===e.params.direction?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(e),s=-r.controller.spline.interpolate(-t)),s&&"container"!==r.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),s=(t-r.minTranslate())*i+e.minTranslate()),r.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,r),e.updateActiveIndex(),e.updateSlidesClasses()}var i,s,r=this,n=r.controller.control;if(Array.isArray(n))for(var o=0;o<n.length;o+=1)n[o]!==t&&n[o]instanceof tt&&a(n[o]);else n instanceof tt&&t!==n&&a(n)},setTransition:function(e,t){function a(t){t.setTransition(e,s),0!==e&&(t.transitionStart(),t.$wrapperEl.transitionEnd(function(){r&&(t.params.loop&&"slide"===s.params.controller.by&&t.loopFix(),t.transitionEnd())}))}var i,s=this,r=s.controller.control;if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==t&&r[i]instanceof tt&&a(r[i]);else r instanceof tt&&t!==r&&a(r)}},zt={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;q.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Mt.getInterpolateFunction.bind(e),setTranslate:Mt.setTranslate.bind(e),setTransition:Mt.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){var a=this;a.controller.control&&a.controller.setTranslate(e,t)},setTransition:function(e,t){var a=this;a.controller.control&&a.controller.setTransition(e,t)}}},Pt={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(t){var a=this,i=a.params.a11y;if(13===t.keyCode){var s=e(t.target);a.navigation&&a.navigation.$nextEl&&s.is(a.navigation.$nextEl)&&(a.isEnd&&!a.params.loop||a.slideNext(),a.isEnd?a.a11y.notify(i.lastSlideMessage):a.a11y.notify(i.nextSlideMessage)),a.navigation&&a.navigation.$prevEl&&s.is(a.navigation.$prevEl)&&(a.isBeginning&&!a.params.loop||a.slidePrev(),a.isBeginning?a.a11y.notify(i.firstSlideMessage):a.a11y.notify(i.prevSlideMessage)),a.pagination&&s.is("."+a.params.pagination.bulletClass)&&s[0].click()}},notify:function(e){var t=this,a=t.a11y.liveRegion;0!==a.length&&(a.html(""),a.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,a=t.$nextEl,i=t.$prevEl;i&&i.length>0&&(e.isBeginning?e.a11y.disableEl(i):e.a11y.enableEl(i)),a&&a.length>0&&(e.isEnd?e.a11y.disableEl(a):e.a11y.enableEl(a))}},updatePagination:function(){var t=this,a=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(i,s){var r=e(s);t.a11y.makeElFocusable(r),t.a11y.addElRole(r,"button"),t.a11y.addElLabel(r,a.paginationBulletMessage.replace(/{{index}}/,r.index()+1))})},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,a,i=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(a=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,i.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),a&&(e.a11y.makeElFocusable(a),e.a11y.addElRole(a,"button"),e.a11y.addElLabel(a,i.prevSlideMessage),a.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy:function(){var e=this;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove();var t,a;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(a=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),a&&a.off("keydown",e.a11y.onEnterKey),
e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)}},kt={name:"a11y",params:{a11y:{enabled:!1,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;q.extend(t,{a11y:{liveRegion:e('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(Pt).forEach(function(e){t.a11y[e]=Pt[e].bind(t)})},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(){var e=this;e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(){var e=this;e.params.a11y.enabled&&e.a11y.destroy()}}},$t={init:function(){var e=this;if(e.params.history){if(!R.history||!R.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=$t.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||R.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||R.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=$t.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=R.location.pathname.slice(1).split("/"),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){var a=this;if(a.history.initialized&&a.params.history.enabled){var i=a.slides.eq(t),s=$t.slugify(i.attr("data-history"));R.location.pathname.includes(e)||(s=e+"/"+s);var r=R.history.state;r&&r.value===s||(a.params.history.replaceState?R.history.replaceState({value:s},null,s):R.history.pushState({value:s},null,s))}},slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,a){var i=this;if(t)for(var s=0,r=i.slides.length;s<r;s+=1){var n=i.slides.eq(s),o=$t.slugify(n.attr("data-history"));if(o===t&&!n.hasClass(i.params.slideDuplicateClass)){var l=n.index();i.slideTo(l,e,a)}}else i.slideTo(0,e,a)}},It={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;q.extend(e,{history:{init:$t.init.bind(e),setHistory:$t.setHistory.bind(e),setHistoryPopState:$t.setHistoryPopState.bind(e),scrollToSlide:$t.scrollToSlide.bind(e)}})},on:{init:function(){var e=this;e.params.history.enabled&&e.history.init()},destroy:function(){var e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},Lt={onHashCange:function(){var e=this,t=K.location.hash.replace("#","");t!==e.slides.eq(e.activeIndex).attr("data-hash")&&e.slideTo(e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index())},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&R.history&&R.history.replaceState)R.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||"");else{var t=e.slides.eq(e.activeIndex),a=t.attr("data-hash")||t.attr("data-history");K.location.hash=a||""}},init:function(){var t=this;if(!(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)){t.hashNavigation.initialized=!0;var a=K.location.hash.replace("#","");if(a)for(var i=0,s=t.slides.length;i<s;i+=1){var r=t.slides.eq(i),n=r.attr("data-hash")||r.attr("data-history");if(n===a&&!r.hasClass(t.params.slideDuplicateClass)){var o=r.index();t.slideTo(o,0,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&e(R).on("hashchange",t.hashNavigation.onHashCange)}},destroy:function(){var t=this;t.params.hashNavigation.watchState&&e(R).off("hashchange",t.hashNavigation.onHashCange)}},Dt={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;q.extend(e,{hashNavigation:{initialized:!1,init:Lt.init.bind(e),destroy:Lt.destroy.bind(e),setHash:Lt.setHash.bind(e),onHashCange:Lt.onHashCange.bind(e)}})},on:{init:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd:function(){var e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()}}},Ot={run:function(){var e=this,t=e.slides.eq(e.activeIndex),a=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(a=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),e.autoplay.timeout=q.nextTick(function(){e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))},a)},start:function(){var e=this;return void 0===e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&(void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0===e?(t.autoplay.paused=!1,t.autoplay.run()):t.$wrapperEl.transitionEnd(function(){t&&(t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())})))}},At={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,disableOnInteraction:!0,stopOnLastSlide:!1}},create:function(){var e=this;q.extend(e,{autoplay:{running:!1,paused:!1,run:Ot.run.bind(e),start:Ot.start.bind(e),stop:Ot.stop.bind(e),pause:Ot.pause.bind(e)}})},on:{init:function(){var e=this;e.params.autoplay.enabled&&e.autoplay.start()},beforeTransitionStart:function(e,t){var a=this;a.autoplay.running&&(t||!a.params.autoplay.disableOnInteraction?a.autoplay.pause(e):a.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy:function(){var e=this;e.autoplay.running&&e.autoplay.stop()}}},Ht={setTranslate:function(){for(var e=this,t=e.slides,a=0;a<t.length;a+=1){var i=e.slides.eq(a),s=i[0].swiperSlideOffset,r=-s;e.params.virtualTranslate||(r-=e.translate);var n=0;e.isHorizontal()||(n=r,r=0);var o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:o}).transform("translate3d("+r+"px, "+n+"px, 0px)")}},setTransition:function(e){var t=this,a=t.slides,i=t.$wrapperEl;if(a.transition(e),t.params.virtualTranslate&&0!==e){var s=!1;a.transitionEnd(function(){if(!s&&t){s=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],a=0;a<e.length;a+=1)i.trigger(e[a])}})}}},Xt={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;q.extend(e,{fadeEffect:{setTranslate:Ht.setTranslate.bind(e),setTransition:Ht.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"fade"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"fade"),q.extend(e.params,{slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0}))},setTranslate:function(){var e=this;"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e){var t=this;"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}},Nt={setTranslate:function(){var t,a=this,i=a.$el,s=a.$wrapperEl,r=a.slides,n=a.width,o=a.height,l=a.rtl,d=a.size,p=a.params.cubeEffect,c=a.isHorizontal(),u=a.virtual&&a.params.virtual.enabled,h=0;p.shadow&&(c?(t=s.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),s.append(t)),t.css({height:n+"px"})):(t=i.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),i.append(t))));for(var v=0;v<r.length;v+=1){var f=r.eq(v),m=v;u&&(m=parseInt(f.attr("data-swiper-slide-index"),10));var g=90*m,b=Math.floor(g/360);l&&(g=-g,b=Math.floor(-g/360));var w=Math.max(Math.min(f[0].progress,1),-1),y=0,x=0,E=0;m%4==0?(y=4*-b*d,E=0):(m-1)%4==0?(y=0,E=4*-b*d):(m-2)%4==0?(y=d+4*b*d,E=d):(m-3)%4==0&&(y=-d,E=3*d+4*d*b),l&&(y=-y),c||(x=y,y=0);var T="rotateX("+(c?0:-g)+"deg) rotateY("+(c?g:0)+"deg) translate3d("+y+"px, "+x+"px, "+E+"px)";if(w<=1&&w>-1&&(h=90*m+90*w,l&&(h=90*-m-90*w)),f.transform(T),p.slideShadows){var S=c?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),C=c?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===S.length&&(S=e('<div class="swiper-slide-shadow-'+(c?"left":"top")+'"></div>'),f.append(S)),0===C.length&&(C=e('<div class="swiper-slide-shadow-'+(c?"right":"bottom")+'"></div>'),f.append(C)),S.length&&(S[0].style.opacity=Math.max(-w,0)),C.length&&(C[0].style.opacity=Math.max(w,0))}}if(s.css({"-webkit-transform-origin":"50% 50% -"+d/2+"px","-moz-transform-origin":"50% 50% -"+d/2+"px","-ms-transform-origin":"50% 50% -"+d/2+"px","transform-origin":"50% 50% -"+d/2+"px"}),p.shadow)if(c)t.transform("translate3d(0px, "+(n/2+p.shadowOffset)+"px, "+-n/2+"px) rotateX(90deg) rotateZ(0deg) scale("+p.shadowScale+")");else{var M=Math.abs(h)-90*Math.floor(Math.abs(h)/90),z=1.5-(Math.sin(2*M*Math.PI/360)/2+Math.cos(2*M*Math.PI/360)/2),P=p.shadowScale,k=p.shadowScale/z,$=p.shadowOffset;t.transform("scale3d("+P+", 1, "+k+") translate3d(0px, "+(o/2+$)+"px, "+-o/2/k+"px) rotateX(-90deg)")}var I=ge.isSafari||ge.isUiWebView?-d/2:0;s.transform("translate3d(0px,0,"+I+"px) rotateX("+(a.isHorizontal()?0:h)+"deg) rotateY("+(a.isHorizontal()?-h:0)+"deg)")},setTransition:function(e){var t=this,a=t.$el;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&a.find(".swiper-cube-shadow").transition(e)}},Yt={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;q.extend(e,{cubeEffect:{setTranslate:Nt.setTranslate.bind(e),setTransition:Nt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"cube"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d"),q.extend(e.params,{slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0}))},setTranslate:function(){var e=this;"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e){var t=this;"cube"===t.params.effect&&t.cubeEffect.setTransition(e)}}},Gt={setTranslate:function(){for(var t=this,a=t.slides,i=0;i<a.length;i+=1){var s=a.eq(i),r=s[0].progress;t.params.flipEffect.limitRotation&&(r=Math.max(Math.min(s[0].progress,1),-1));var n=s[0].swiperSlideOffset,o=-180*r,l=o,d=0,p=-n,c=0;if(t.isHorizontal()?t.rtl&&(l=-l):(c=p,p=0,d=-l,l=0),s[0].style.zIndex=-Math.abs(Math.round(r))+a.length,t.params.flipEffect.slideShadows){var u=t.isHorizontal()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),h=t.isHorizontal()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===u.length&&(u=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),s.append(u)),0===h.length&&(h=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),s.append(h)),u.length&&(u[0].style.opacity=Math.max(-r,0)),h.length&&(h[0].style.opacity=Math.max(r,0))}s.transform("translate3d("+p+"px, "+c+"px, 0px) rotateX("+d+"deg) rotateY("+l+"deg)")}},setTransition:function(t){var a=this,i=a.slides,s=a.activeIndex,r=a.$wrapperEl;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),a.params.virtualTranslate&&0!==t){var n=!1;i.eq(s).transitionEnd(function(){if(!n&&a&&e(this).hasClass(a.params.slideActiveClass)){n=!0,a.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i<t.length;i+=1)r.trigger(t[i])}})}}},Bt={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;q.extend(e,{flipEffect:{setTranslate:Gt.setTranslate.bind(e),setTransition:Gt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"flip"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d"),q.extend(e.params,{slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0}))},setTranslate:function(){var e=this;"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e){var t=this;"flip"===t.params.effect&&t.flipEffect.setTransition(e)}}},Vt={setTranslate:function(){for(var t=this,a=t.width,i=t.height,s=t.slides,r=t.$wrapperEl,n=t.slidesSizesGrid,o=t.params.coverflowEffect,l=t.isHorizontal(),d=t.translate,p=l?a/2-d:i/2-d,c=l?o.rotate:-o.rotate,u=o.depth,h=0,v=s.length;h<v;h+=1){var f=s.eq(h),m=n[h],g=f[0].swiperSlideOffset,b=(p-g-m/2)/m*o.modifier,w=l?c*b:0,y=l?0:c*b,x=-u*Math.abs(b),E=l?0:o.stretch*b,T=l?o.stretch*b:0;Math.abs(T)<.001&&(T=0),Math.abs(E)<.001&&(E=0),Math.abs(x)<.001&&(x=0),Math.abs(w)<.001&&(w=0),Math.abs(y)<.001&&(y=0);var S="translate3d("+T+"px,"+E+"px,"+x+"px)  rotateX("+y+"deg) rotateY("+w+"deg)";if(f.transform(S),f[0].style.zIndex=1-Math.abs(Math.round(b)),o.slideShadows){var C=l?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),M=l?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===C.length&&(C=e('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),f.append(C)),0===M.length&&(M=e('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),f.append(M)),C.length&&(C[0].style.opacity=b>0?b:0),M.length&&(M[0].style.opacity=-b>0?-b:0)}}if(ge.ie){r[0].style.perspectiveOrigin=p+"px 50%"}},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},Rt={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;q.extend(e,{coverflowEffect:{setTranslate:Vt.setTranslate.bind(e),setTransition:Vt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0)},setTranslate:function(){var e=this;"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e){var t=this;"coverflow"===t.params.effect&&t.coverflowEffect.setTransition(e)}}};return tt.components=[at,it,st,rt,ot,dt,ct,ht,ft,gt,wt,xt,Tt,Ct,zt,kt,It,Dt,At,Xt,Yt,Bt,Rt],tt});
}catch(e){console.log("Module 'swiper-4.0.3': ",e);}
try{!function(e,i){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(e,require("jquery-utils-1.0.0"),require("swiper-4.0.3")):"function"==typeof define&&define.amd?define("wide-slider-1.0.0",["jquery-utils-1.0.0","swiper-4.0.3"],function(n,t){i(e,n,t)}):i(e,e.jQuery,e.Swiper)}(this,function(e,i,n,t){"use strict";new n(".wide-slider > .swiper-container",{touchAngle:10,shortSwipes:!1,longSwipesRatio:.2,longSwipesMs:100,effect:"fade",loop:!0,fadeEffect:{crossFade:!0},watchSlidesVisibility:!0,preloadImages:!1,lazy:!0,pagination:{el:".wide-slider .swiper-pagination",type:"bullets",clickable:!0},navigation:{nextEl:".wide-slider .swiper-button-next",prevEl:".wide-slider .swiper-button-prev"},on:{init:function(e){i(this.el).addClass("ready"),new n(".wide-slider .wide-slider-caption.swiper-container",{direction:"vertical",slidesPerView:"auto",freeMode:!0,touchAngle:45,scrollbar:{el:".wide-slider .wide-slider-caption.swiper-container .swiper-scrollbar"},mousewheel:!0,on:{resize:function(){this.update(!0)}}})},slideChange:function(e){i(this.slides[this.activeIndex]).find("[data-animation ^= 'animated']").each(function(){var e=i(this),n=e.data("animation");e.addClass(n).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){e.removeClass(n)})})},resize:function(){this.update(!0)}}})});
}catch(e){console.log("Module 'wide-slider-1.0.0': ",e);}
try{/* (C) Copyright IBM Corp. 2007  All Rights Reserved.                */
/**
 * This is the JS file for the common semantic tagging service
 */















 



 
var STSPG = {
	lang: "kk",
	bidi: "ltr",
	service: "",
    contextUrl: "/semanticTag",
	wpsBaseURL: "",
	externalServiceEntries:'',
	isDynamicLoading : false,
	isC2AHandlerRequired : true,
	isPersonCardHandlerRequired : true,
	isActionHandlerRequired : true,
	isParsingRequired : true,
	newSametimeCommunityServer:true
};

STSPG.service={"entries":[{"id":"com.ibm.portal.action","test":"(globalTestNode.className.match(STSP.actionRE))","js":"","classnames":[".com\\.ibm\\.portal\\.action"]},{"id":"hcard","test":"(globalTestNode.className.match(STSP.hcardRE))","js":"/javascript/semanticTagPerson.js","classnames":[".vcard"]},{"id":"sametime","test":"id:hcard","js":"/javascript/semanticTagAwareness.js","classnames":[]},{"id":"c2a","test":"(globalTestNode.className.match(/(^|\\s)c2a:(source|target)(\\s|$)/)) ","js":"/javascript/semanticTagC2A.js","classnames":[".c2a\\:source",".c2a\\:target"]}]};
var externalEntries;
try{
if(STSPG.externalServiceEntries!=null&&STSPG.externalServiceEntries.length>0){
externalEntries=eval(" ("+STSPG.externalServiceEntries+")");
STSPG.service.entries=STSPG.service.entries.concat(externalEntries);
}else{
}
}
catch(e){
}


var STSP={version:"1.0",lang:STSPG.lang,bidi:STSPG.bidi,tagScope:["*"],service:STSPG.service,scripts:new Array(),actionRegistry:null,refcntAttr:"semtag_refcnt",hoverIdPrefix:"semtag_hover_",hoverIdx:0,liveElemPrefix:"semtag_live_",reMap:new Array(),actionRE:new RegExp("(^|\\s)com.ibm.portal.action(\\s|$)"),hcardRE:new RegExp("(^|\\s)vcard(\\s|$)"),specialMenuProviders:new Array(),parseElem:null,isEnablerObjectAvailable:(typeof com!=="undefined")&&(typeof com.ibm!=="undefined")&&(typeof com.ibm.mashups!=="undefined"),svcEntryPersonCard:null,isSizzleAvailable:((typeof i$!=="undefined")&&(typeof i$.query==="function")),DELAY:10,isMobile:navigator.userAgent.match(/(Android|BlackBerry|iPad|iPhone|iPod|IEMobile|Opera Mini)/ig)?true:false,init:function(_1){
var _2=STSP.DELAY;
if(STSPG.isParsingRequired===false){
STSP.svcEntryPersonCard=STSP.service.entries[1];
if(!STSP.svcEntryPersonCard.nodes){
STSP.svcEntryPersonCard.nodes=[];
}
}
var _3=STSP.isEnablerObjectAvailable;
STSP.isSizzleAvailable=((typeof i$!=="undefined")&&(typeof i$.query==="function"));
if(_3===false){
STSP.parseElem=STSP.getElementFromEvent(_1);
window.setTimeout(STSP.parseDom,STSP.DELAY);
}else{
var _4=STSP.service.entries;
var _5=_4?_4.length:0;
if(STSPG.isDynamicLoading){
for(var k=0;k<_4.length;k++){
var _6=_4[k];
if(_6.id==="hcard"){
STSP.loadScript("/javascript/attributes.js");
STSP.loadScript("/javascript/semanticTagMenu.js");
}
STSP.loadScript(_6.js);
}
}
}
if(STSPG.isActionHandlerRequired){
STSP.setCallback("com.ibm.portal.action",STSP.processActions);
}
if(!STSPG.isDynamicLoading&&STSPG.isPersonCardHandlerRequired&&(typeof SemTagMenu==="object")){
window.setTimeout(SemTagMenu.init,_2);
}
},loadConnScript:function(){
var _7=document.createElement("script");
var _8=STSP.connUrl;
var _9=_8;
_9=_8+"/profiles/portalJS/portalBizCard.js";
_9+=(_9.indexOf("?")==-1)?"?":"&";
_9+="lang="+STSP.lang;
_7.src=_9;
try{
document.body.insertBefore(_7,document.body.firstChild);
}
catch(e){
alert("Svc.loadConnScript caught: "+e);
}
},watchEvent:function(_a,_b,_c,_d){
try{
if(_a.addEventListener){
_a.addEventListener(_b,_c,_d);
}else{
if(_a.attachEvent){
_a.attachEvent("on"+_b,_c);
}
}
}
catch(e){
}
},clearEventWatch:function(_e,_f,_10,_11){
try{
if(_e.removeEventListener){
_e.removeEventListener(_f,_10,_11);
}else{
if(_e.detachEvent){
_e.detachEvent("on"+_f,_10);
}
}
}
catch(e){
}
},parseDomUsingMashupHandler:function(_12,_13){
if(STSP.isSizzleAvailable===true){
}
if(STSPG.isParsingRequired===false){
return false;
}
var _14=STSP.getService(_13);
if(_13==="com.ibm.portal.action"){
STSP.setCallback(_13,STSP.processActions);
}
if(!_14.nodes){
_14.nodes=[];
}
for(var len=0;len<_12.length;len++){
_14.nodes.push(_12[len]);
}
if(_14.callback){
_14.callback.call(this);
}
STSP.loadScript(_14.js);
try{
var _15=STSP.service.entries;
for(var k=0;k<_15.length;k++){
var _16=_15[k];
var _17=false;
if(_16.id===_14.id){
continue;
}
if(_16.test&&_16.test.match(/^id:/)){
var _18=_16.test.substr(3);
if(_18!=_14.id){
continue;
}
var _12=STSP.getNodes(_18);
if(_12&&0<_12.length){
_17=true;
}
}
if(_17&&STSPG.isDynamicLoading){
STSP.loadScript(_16.js);
}
if(_16.callback){
_16.callback.call(this);
}
}
}
catch(e){
}
},parseDom:function(_19,_1a){
if(STSPG.isParsingRequired===false){
return false;
}
if(!_1a&&_19){
_1a=STSP.getElementFromEvent(_19);
}
if(!_1a&&STSP.parseElem){
_1a=STSP.parseElem;
}else{
if(!_1a){
_1a=document;
}else{
if(typeof _1a=="string"){
_1a=document.getElementById(_1a);
}
}
}
var _1b=STSP.service.entries;
for(var j=0;j<_1b.length;j++){
var _1c=_1b[j];
if(!_1c.nodes){
_1c.nodes=[];
}else{
if(_1a==document){
while(0<_1c.nodes.length){
_1c.nodes.pop();
}
}
}
}
var _1d=new Date().getTime();
if(STSP.isSizzleAvailable===false){
STSP.traverseNodes(_1a);
var _1e=new Date().getTime();
}else{
_1d=new Date().getTime();
for(var k=0;k<_1b.length;k++){
var _1c=_1b[k];
if(_1c.classnames==null||_1c.classnames==="undefined"||_1c.classnames.length<1){
continue;
}
var _1f=typeof _1c.classnames;
if(typeof _1c.classnames==="string"){
continue;
}
var _20=_1c.classnames.join(",");
var _21;
_21=i$.query(_1c.classnames.join(","),_1a,_1c.nodes);
if(_1c.nodes.length!=_21.length){
}
}
_1e=new Date().getTime();
var _22=_1e-_1d;
}
for(var k=0;k<_1b.length;k++){
var _1c=_1b[k];
var _23=false;
if(0<_1c.nodes.length){
_23=true;
}else{
if(_1c.test&&_1c.test.match(/^id:/)){
var _24=_1c.test.substr(3);
var _25=STSP.getNodes(_24);
if(_25&&0<_25.length){
_23=true;
}
}
}
if(_23){
if(STSPG.isDynamicLoading){
if(_1c.id=="hcard"){
STSP.loadScript("/javascript/attributes.js");
STSP.loadScript("/javascript/semanticTagMenu.js");
}
var _26=typeof _1c.js;
if(typeof _1c.js==="string"){
STSP.loadScript(_1c.js);
}
}
}
if(_1c.callback){
_1c.callback.call(_1c.nodes);
}
}
STSP.parseElem=null;
},traverseNodes:function(_27){
STSP.traverse_children(_27);
},traverse_tagscope:function(_28){
var _29=STSP.service.entries;
var _2a=_28.getElementsByTagName(STSP.tagScope);
for(var i=0;i<_2a.length;i++){
var _28=_2a[i];
for(var j=0;j<_29.length;j++){
var _2b=_29[j];
if(!_2b.nodes){
_2b.nodes=new Array();
}
if(eval(_2b.test)){
_2b.nodes.push(_28);
}
}
}
},traverse_children:function(_2c){
STSP.testNode(_2c);
var _2d=(_2c&&_2c.childNodes)?_2c.childNodes:null;
if(STSPG.isPersonCardHandlerRequired&&_2c&&_2c.tagName&&_2c.tagName=="IFRAME"){
try{
if(typeof ActiveXObject!="undefined"){
var _2e=document.frames[_2c.id].document;
if(_2e){
_2d=_2e.childNodes;
}
}else{
if(_2c.contentDocument&&_2c.contentDocument.childNodes){
_2d=_2c.contentDocument.childNodes;
}
}
}
catch(e){
_2d=null;
}
var _2f=_2d?_2d.length:"is null";
if(_2d&&0<_2d.length){
var _30=SemTagMenu.includeCSS(_2d[0].parentNode);
if(_30){
STSP.watchEvent(_2c,"load",STSP.parseDom,false);
SemTagMenu.registerMenuEventHandlers(_2d[0].parentNode);
}
}
}
if(_2d==null||_2d=="undefined"){
return;
}
for(var i=0;i<_2d.length;i++){
STSP.traverse_children(_2d[i]);
}
},testNode:function(_31){
globalTestNode=_31;
if(_31==null||_31.className==null||_31.className=="undefined"||_31.tagName==null||_31.tagName=="undefined"){
return;
}
var _32=STSP.service.entries;
for(var j=0;j<_32.length;j++){
var _33=_32[j];
if(_33.test&&!_33.test.match(/^id:/)&&eval(_33.test)){
if(!_31.alreadyadded){
_31.alreadyadded=true;
_33.nodes.push(_31);
}
}
}
},getService:function(_34){
var _35=STSP.service.entries;
for(var i=0;i<_35.length;i++){
var _36=_35[i];
if(_36.id==_34){
return _36;
}
}
},setSemanticTagValue:function(_37,_38,_39){
if(!_38.semTagValues){
_38.semTagValues={};
}
_38.semTagValues[_37]=_39;
},getSemanticTagValues:function(_3a){
return _3a.semTagValues;
},getNodes:function(_3b){
var _3c=STSP.getService(_3b);
if(_3c&&_3c.test&&_3c.test.match(/^id:/)){
_3c=STSP.getService(_3c.test.substr(3));
}
if(_3c){
}
var _3d=_3c?(_3c.nodes?_3c.nodes:[]):null;
return _3d;
},setCallback:function(_3e,_3f){
var _40=STSP.getService(_3e);
if(_40){
_40.callback=_3f;
}else{
}
},loadScript:function(_41,_42){
if(!_41||_41==""){
return;
}
if(_42=="undefined"||_42==null){
_42=false;
}
if(!STSP.scripts[_41]){
STSP.scripts[_41]=true;
var _43=document.createElement("script");
var url=_41.match(/^http/)?_41:STSPG.contextUrl+_41;
url+=(url.indexOf("?")==-1)?"?":"&";
url+="language="+STSP.lang;
_43.src=url;
if(STSPG.isDynamicLoading||_42){
document.body.insertBefore(_43,document.body.firstChild);
}
}
},setSpecialMenuProvider:function(_44){
STSP.specialMenuProviders.push(_44);
},getElementsByClassName:function(_45,_46,_47,_48){
if(!_46){
_46=document.body;
}
if(!_47){
limit=0;
}
if(!_48){
_48=["*"];
}
var _49=STSP.getRegExp(_45);
if(_46&&_46.className&&_46.className.match(_49)){
var _4a=new Array(_46);
return _4a;
}
var _4b=new Array();
for(var t=0;t<_48.length;t++){
var _4c=_46.getElementsByTagName(_48[t]);
for(var i=0;i<_4c.length;i++){
var _4d=_4c[i];
if(_4d.className&&_4d.className.match(_49)){
_4b.push(_4d);
}
if(0<_47&&_47==_4b.length){
break;
}
}
}
return _4b;
},getParentByClassName:function(_4e,_4f){
if(!_4f){
return null;
}
var _50=STSP.getRegExp(_4e);
if(_4f.className&&_4f.className.match(_50)){
return _4f;
}
while(_4f.parentNode){
_4f=_4f.parentNode;
if(_4f.className&&_4f.className.match(_50)){
return _4f;
}
}
return null;
},addHover:function(_51,_52,_53,_54){
while(typeof SemTagMenu==undefined){
alert("waiting...");
}
var _55=_51.getAttribute(STSP.refcntAttr);
var _56=(_52!==null);
if(_55){
_51.setAttribute(STSP.refcntAttr,parseInt(Number(_55)+1));
if(SemTagMenu.staticHover){
var img=SemTagMenu.findHoverFromLiveElement(_51);
if(img){
STSP.watchEvent(img,"click",_53,false);
img.setAttribute("href","javascript:SemTagMenu.a11y()");
}else{
}
}else{
STSP.watchEvent(_51,"mouseover",_52,false);
}
}else{
_51.setAttribute(STSP.refcntAttr,"1");
STSP.hoverIdx++;
_51.setAttribute(STSP.liveElemPrefix+"id",STSP.hoverIdx);
if(SemTagMenu.staticHover){
var img=STSP.createHoverImage(_54);
STSP.watchEvent(img,"click",_53,false);
STSP.watchEvent(img,"keydown",SemTagMenu.a11y,false);
img.setAttribute("href","javascript:void()");
var _57=_51.nextSibling;
if(_57){
_57.parentNode.insertBefore(img,_57);
}else{
_51.parentNode.appendChild(img);
}
_51.setAttribute(STSP.hoverIdPrefix+"idx",parseInt(STSP.hoverIdx));
_51.id=STSP.liveElemPrefix+STSP.hoverIdx;
}else{
var _58=SemTagUtil.getNodeClassValue(_51);
if(_58&&0<_58.length){
_58+=" hasHover";
}else{
_58="hasHover";
}
SemTagUtil.setNodeClassValue(_51,_58);
STSP.watchEvent(_51,"mouseover",_52,false);
_51.setAttribute("tabIndex","0");
STSP.watchEvent(_51,"focus",_52,false);
STSP.watchEvent(_51,"blur",SemTagMenu.mouseout,false);
}
}
},removeHover:function(_59,_5a,_5b){
var _5c=_59.getAttribute(STSP.refcntAttr);
if(_5c){
var _5d=Number(_5c)-1;
if(_5d<0){
}
if(SemTagMenu.staticHover){
var _5e=STSP.getHoverElement(_59);
STSP.clearEventWatch(_5e,"click",_5b,false);
if(_5d==0){
_5e.parentNode.removeChild(_5e);
}
}else{
STSP.clearEventWatch(_59,"mouseover",_5a,false);
STSP.clearEventWatch(_59,"focus",_5a,false);
_59.setAttribute(STSP.refcntAttr,_5d);
if(_5d==0){
var _5f=SemTagUtil.getNodeClassValue(_59);
var _60=_5f.replace(/hasHover/,"");
SemTagUtil.setNodeClassValue(_59,_60);
_59.removeAttribute(STSP.refcntAttr);
_59.removeAttribute("tabIndex");
}
}
}
},createHoverImage:function(_61){
var img=document.createElement("img");
img.id=STSP.hoverIdPrefix+STSP.hoverIdx;
img.className=SemTagMenu.iconName;
img.setAttribute("src",STSPG.contextUrl+"/ui/menu_selected.gif");
img.setAttribute("border","0");
img.setAttribute("alt",_61);
var _62=document.createElement("a");
STSP.watchEvent(_62,"mouseover",SemTagMenu.activateHover,false);
STSP.watchEvent(_62,"mouseout",SemTagMenu.deactivateHover,false);
_62.appendChild(img);
return _62;
},getHoverElement:function(_63){
if(!_63){
return null;
}
if(SemTagMenu.staticHover){
var idx=_63.getAttribute(STSP.hoverIdPrefix+"idx");
var img=document.getElementById(STSP.hoverIdPrefix+idx);
if(img){
var _64=img.parentNode;
return _64;
}
}else{
var _65=SemTagUtil.getNodeClassValue(_63);
if(_65.match(/hasHover/)){
return _63;
}
}
return null;
},showHover:function(_66,_67,_68){
SemTagMenu.showHover(_66,_67,_68);
},setMenuData:function(_69,_6a,_6b,_6c,_6d){
SemTagMenu.setMenuData(_69,_6a,_6b,_6c,_6d);
},getMenuItemJson:function(_6e,_6f,_70,_71){
var o=_70?_70:0;
var i=_71?_71:"";
var _72={"label":_6e,"href":_6f,"order":o,"icon":i};
return _72;
},getMenuHeaderJson:function(_73,_74,_75){
if(_74!="text/html"){
return null;
}
if(_73&&0<_73.length){
var _76={"markup":_73,"order":_75};
return _76;
}else{
null;
}
},getMenuFooterJson:function(_77,_78,_79){
if(_78!="text/html"){
return null;
}
if(_77&&0<_77.length){
var _7a={"markup":_77,"order":_79};
return _7a;
}else{
null;
}
},getElementFromEvent:function(_7b){
var _7c=_7b.target?_7b.target:_7b.srcElement;
if(_7c==window){
_7c=_7c.document;
}
return _7c;
},getLiveElementFromEvent:function(_7d){
var _7e=SemTagMenu.findLiveElementFromEventSource(STSP.getElementFromEvent(_7d));
return _7e;
},getEventAbsoluteX:function(e){
var x=0;
if(e.pageX){
x=e.pageX;
}else{
if(e.clientX){
if(document.body.scrollLeft>document.documentElement.scrollLeft){
x=e.clientX+document.body.scrollLeft;
}else{
x=e.clientX+document.documentElement.scrollLeft;
}
}
}
return x;
},getEventAbsoluteY:function(e){
var y=0;
if(e.pageY){
y=e.pageY;
}else{
if(e.clientY){
if(document.body.scrollTop>document.documentElement.scrollTop){
y=e.clientY+document.body.scrollTop;
}else{
y=e.clientY+document.documentElement.scrollTop;
}
}
}
return y;
},findPosition:function(obj,_7f){
var _80=0,_81=0,_82=0;
var _83=obj.offsetWidth;
var _84;
if(obj.offsetParent){
if(_7f){
_81+=(STSP.bidi=="rtl")?0:_83;
}
_82+=obj.offsetHeight;
while(obj!=null){
_81+=obj.offsetLeft;
_82+=obj.offsetTop;
obj=obj.offsetParent;
_80++;
}
_84=[_81+(STSP.bidi=="rtl"?_83:0),_82];
return _84;
}else{
_84=[obj.x+(STSP.bidi=="rtl"?_83:0),obj.y];
return _84;
}
},createGroupJson:function(ctx,_85){
var _86={"context":ctx,"extenders":_85};
return _86;
},createActionJson:function(id,js,ctx,_87,_88,_89,url,_8a){
var i=(id&&0<id.length)?id[0].innerHTML:null;
var j=(js&&0<js.length)?js[0].innerHTML:null;
var c=(ctx&&0<ctx.length)?ctx[0].innerHTML:null;
var l=(_87&&0<_87.length)?_87[0].innerHTML:null;
var d=(_88&&0<_88.length)?_88[0].innerHTML:null;
var s=(_89&&0<_89.length)?_89[0].innerHTML:null;
var u=(url&&0<url.length)?url[0].innerHTML:null;
var o=(_8a&&0<_8a.length)?parseInt(_8a[0].innerHTML):0;
var _8b={"id":i,"impl":j,"context":c,"label":l,"description":d,"showif":s,"url":u,"order":o};
return _8b;
},parseOrder:function(_8c){
var _8d;
if(_8c==null||_8c.length==0){
_8d=0;
return _8d;
}
if(_8c.charAt(0)=="-"){
_8d=parseInt(_8c.substr(1))*-1;
return _8d;
}else{
_8d=parseInt(_8c);
return _8d;
}
},getActions:function(_8e){
var _8f;
if(!STSP.actionRegistry){
STSP.processActions();
}
for(var i=0;i<STSP.actionRegistry.length;i++){
if(STSP.actionRegistry[i].context==_8e){
_8f=STSP.actionRegistry[i].extenders;
return _8f;
}
}
_8f=STSP.actionRegistry[0].extenders;
return _8f;
},processActions:function(){
if(!STSP.actionRegistry){
STSP.actionRegistry=new Array();
STSP.actionRegistry[0]=STSP.createGroupJson("dummy",new Array());
}
var i;
var _90=STSP.getNodes("com.ibm.portal.action");
while(_90&&0<_90.length){
var _91=_90.pop();
var id=STSP.getElementsByClassName("action-id",_91);
var _92=STSP.getElementsByClassName("action-impl",_91);
var ctx=STSP.getElementsByClassName("action-context",_91);
var _93=STSP.getElementsByClassName("action-label",_91);
var _94=STSP.getElementsByClassName("action-description",_91);
var _95=STSP.getElementsByClassName("action-showif",_91);
var url=STSP.getElementsByClassName("action-url",_91);
var _96=STSP.getElementsByClassName("action-order",_91);
var _97=STSP.createActionJson(id,_92,ctx,_93,_94,_95,url,_96);
for(i=1;i<STSP.actionRegistry.length;i++){
if(STSP.actionRegistry[i].context==_97.context){
var cnt=STSP.actionRegistry[i].extenders.length;
for(var j=0;j<cnt;j++){
if(_97.id==STSP.actionRegistry[i].extenders[j].id){
break;
}
}
if(j==cnt){
STSP.actionRegistry[i].extenders.push(_97);
}
break;
}
}
if(i==STSP.actionRegistry.length){
STSP.actionRegistry[i]=STSP.createGroupJson(ctx[0].innerHTML,new Array());
STSP.actionRegistry[i].extenders.push(_97);
}
if(_97.impl){
STSP.loadScript(_97.impl,true);
}
}
for(i=0;i<STSP.actionRegistry.length;i++){
STSP.actionRegistry[i].extenders.sort(STSP.sortByOrder);
}
},sortByOrder:function(a,b){
if(a.order>b.order){
return 1;
}else{
if(a.order<b.order){
return -1;
}else{
return 0;
}
}
},getTextValue:function(_98){
if(!_98){
return "";
}
return _98.innerHTML.replace(/<[a-zA-Z\/][^>]*>/gi,"");
},getTypedValue:function(_99,_9a){
if(!_9a){
_9a="def";
}
var _9b=new Array();
var _9c=STSP.getElementsByClassName("type",_99);
var _9d=STSP.getElementsByClassName("value",_99);
var _9e="";
if(_9d.length<1){
_9e=STSP.getTextValue(_99);
}
for(var i=0;i<_9d.length;i++){
_9e+=STSP.getTextValue(_9d[i]);
}
if(_9c.length<1){
_9b[_9a]=_9e;
}else{
for(var j=0;j<_9c.length;j++){
var _9f=_9c[j];
var _a0=_9f.tagName.match(/^abbr$/i)?_9f.getAttribute("title"):STSP.getTextValue(_9f);
_9b[_a0.toLowerCase()]=_9e;
}
}
return _9b;
},findNameElementInHcard:function(_a1){
if(_a1.className!="vcard"){
_a1=STSP.getParentByClassName("vcard",_a1);
}
var _a2=STSP.getElementsByClassName("fn",_a1)[0];
if(!_a2){
_a2=STSP.getElementsByClassName("n",_a1)[0];
}
return _a2;
},getEmailFromHcard:function(_a3){
var _a4;
if(!_a3){
_a4="";
return _a4;
}
if(_a3.className!="vcard"){
_a3=STSP.getParentByClassName("vcard",_a3);
}
var _a5="";
if(_a3){
var _a6=STSP.getElementsByClassName("email",_a3)[0];
var _a7=STSP.getTypedValue(_a6,"internet");
_a5=_a7.internet;
}
_a4=_a5;
return _a4;
},findElementByNameInHcard:function(_a8,_a9){
if(_a8.className!="vcard"){
_a8=STSP.getParentByClassName("vcard",_a8);
}
var _aa=STSP.getElementsByClassName(_a9,_a8)[0];
return _aa;
},getRegExp:function(str){
var _ab=STSP.reMap[str];
if(!_ab){
_ab=new RegExp("(^|\\s)"+str+"(\\s|$)");
STSP.reMap[str]=_ab;
}
return _ab;
},addElementToHandler:function(_ac,_ad,_ae){
if(STSPG.isParsingRequired===true){
return false;
}
if(_ac==null||_ac==="undefined"){
return false;
}
var _af=STSP.service.entries;
var _b0=null;
for(var k=0;k<_af.length;k++){
var _b1=_af[k];
if(_b1.id===_ae){
_b0=_b1;
break;
}
}
if(_b0==null){
return false;
}
var _b2;
if(_ac.nodeName==="A"||_ae==="c2a"){
_b2=_ac.parentNode;
}else{
_b2=_ac;
}
if(_b2.getAttribute("alreadyAdded")==null){
if(_b0.nodes==null||_b0.nodes==="undefined"||typeof _b0.nodes!=="array"){
_b0.nodes=[];
}
_b0.nodes.push(_b2);
_b2.setAttribute("alreadyAdded",true);
if(_ae==="c2a"){
var _b3=document.getElementsByClassName("c2a:target");
for(var i=0;i<_b3.length;i++){
_b0.nodes.push(_b3.item(i));
}
}
}
_b0.callback.call(_b0.nodes);
if(_ae==="hcard"){
var _b4=typeof SemTagPerson;
if(STSPG.ifConnUrlExists==="false"&&(typeof SemTagPerson==="object")){
SemTagPerson.showHover(_ad);
}
STSP.stNI=((typeof (stproxy)==="undefined")&&(typeof (prepareSametimeLink)==="undefined"));
var _b5=typeof SemTagAwrns;
if(STSPG.isParsingRequired===false&&STSP.stNI===false&&(typeof SemTagAwrns)){
SemTagAwrns.processHcards([_b2]);
}
}
if(_ae==="c2a"&&SemTagC2A){
SemTagC2A.showHover(_ad);
}
_b0.nodes=[];
return true;
},addElementToPersonCardHandler:function(_b6,_b7){
if(STSPG.isParsingRequired===true){
return false;
}
if(_b6==null||_b6==="undefined"){
return false;
}
var _b8;
if(_b6.nodeName==="A"){
_b8=_b6.parentNode;
}else{
_b8=_b6;
}
if(_b8.getAttribute("alreadyAdded")==null){
STSP.svcEntryPersonCard.nodes.push(_b8);
_b8.setAttribute("alreadyAdded",true);
}
STSP.svcEntryPersonCard.callback.call(STSP.svcEntryPersonCard.nodes);
var _b9=typeof SemTagPerson;
if(STSPG.ifConnUrlExists==="false"&&(typeof SemTagPerson)){
SemTagPerson.showHover(_b7);
}
STSP.stNI=((typeof (stproxy)==="undefined")&&(typeof (prepareSametimeLink)==="undefined"));
var _ba=typeof SemTagAwrns;
if(STSPG.isParsingRequired===false&&STSP.stNI===false&&(typeof SemTagAwrns)){
SemTagAwrns.processHcards([_b8]);
}
STSP.svcEntryPersonCard.nodes.pop();
return true;
},registerService:function(_bb){
var _bc=STSP.service.entries;
_bc[_bc.length]=_bb;
if(STSP.isEnablerObjectAvailable&&typeof dojo!=="undefined"){
try{
dojo.addOnLoad(function(){
var _bd=new com.ibm.mashups.livetext.ConfigEntry(_bb.classnames.join(),false,"portallof",STSPG.contextUrl+"/javascript","portallof.vcard",false,_bb.id);
dojo.publish("/com/ibm/mashups/livetext/configentryadded",[_bd]);
SemTagSvc.parseDom(null,null);
});
}
catch(e){
console.error("Error occurred in registerService for service "+_bb.id+"is :"+e);
}
}
}};
var SemTagSvcConfig=null;
if((STSP.ifConnUrlExists=="true")&&(STSP.isconnServerNew===true)){
SemTagSvcConfig={isPortal:true,baseUrl:STSP.connUrl+"/profiles",loadCssFiles:true,isBidiRTL:false};
}
STSP.watchEvent(window,"load",STSP.init,false);
var SemTagSvc=STSP;
var SemTagSvcPortal=STSP;


var SemTagUtil={isGecko:(document.all?false:true),getNodeClassValue:function(_1){
var rv;
var _2;
if(SemTagUtil.isGecko){
rv=(typeof (_1.getAttribute)!="undefined")?_1.getAttribute("class"):"";
}else{
rv=_1.className;
}
_2=(typeof (rv)!="undefined"&&rv!=null)?rv:"";
return _2;
},setNodeClassValue:function(_3,_4){
if(SemTagUtil.isGecko){
_3.setAttribute("class",_4);
}else{
_3.className=_4;
}
},fireEvent:function(_5,_6){
try{
if(_5.fireEvent){
_5.fireEvent(_6);
}else{
if(_5.dispatchEvent){
_5.dispatchEvent(_6);
}
}
}
catch(e){
}
},getOwnerDocument:function(_7){
if(!_7){
return null;
}
var _8;
if(SemTagUtil.isGecko){
_8=_7.ownerDocument;
return _8;
}else{
var _9=_7;
while(_9.parentNode){
_9=_9.parentNode;
}
_8=_9;
return _8;
}
},getFrameElement:function(_a){
var _b;
if(SemTagUtil.isGecko){
var oD=_a.ownerDocument;
_b=oD.defaultView.frameElement;
return _b;
}else{
var _c=_a;
while(_c.parentNode){
_c=_c.parentNode;
}
_b=_c;
return _b;
}
},getHcardAttributeValue:function(_d,_e){
switch(_d){
case ("email"):
return SemTagUtil.getHcardTypedAttribute(_e,_d,"internet");
case ("tel"):
return SemTagUtil.getHcardTypedAttribute(_e,_d,"voice");
case ("adr"):
return SemTagUtil.getHcardTypedAttribute(_e,_d,"intl");
}
var _f=STSP.getParentByClassName("vcard",_e);
var _10=STSP.getElementsByClassName(_d,_f,1);
if(_10.length>0&&_10[0].tagName.match(/^abbr$/i)){
var _11=_10[0].getAttribute("title");
return _11;
}
switch(_d){
case ("X-person-display-inline"):
if(_10.length>0){
return true;
}else{
return false;
}
case ("fn"):
var fn=SemTagUtil.getSinglePropertyValue(_10[0]);
if(fn){
return fn;
}else{
var _11=SemTagUtil.getHcardAttributeValue("n",_e);
return _11;
}
break;
case ("X-person-header-only"):
case ("X-person-inside-inline"):
var _11=(_10&&0<_10.length);
return _11;
case ("X-sametime-resolve"):
var _12=_10[0];
var _13=(typeof (_12)!="undefined"&&_12!=null);
return _13;
case ("n"):
if(_10.length>0){
var _14=_10[0];
var _15="";
var _16=["honorific-prefix","given-name","additional-name","family-name","honorific-suffix"];
for(var i=0;i<5;i++){
var n=SemTagUtil.getSinglePropertyValue(STSP.getElementsByClassName(_16[i],_14,1)[0]);
if(n){
_15+=n+" ";
}
}
return _15;
}
var _17="";
return _17;
break;
case ("photo"):
var _18=_10[0];
if(_18){
var _13=_18.getAttribute("src");
return _13;
}else{
return;
}
break;
case ("X-sametime-status"):
var _19=_10[0];
var _13;
if(!_19){
_13="";
return _13;
}
var _1a=_19.getAttribute("value");
if(_1a){
_13=_1a;
return _13;
}else{
_13=SemTagUtil.getSinglePropertyValue(_19);
return _13;
}
break;
case ("street-address"):
case ("post-office-box"):
case ("extended-address"):
case ("locality"):
case ("region"):
case ("postal-code"):
case ("country-name"):
case ("title"):
case ("role"):
case ("org"):
default:
var _13=SemTagUtil.getSinglePropertyValue(_10[0]);
return _13;
break;
}
},getHcardTypedAttribute:function(_1b,_1c,_1d){
var _1e=new Object();
var _1f=STSP.getParentByClassName("vcard",_1b);
var _20=STSP.getElementsByClassName(_1c,_1f);
for(var i=0;i<_20.length;i++){
var _21=_20[i];
if(_1c=="email"&&_21.nodeName.toLowerCase()=="a"&&_21.href.match(/^mailto:/)){
var _22=_21.href.indexOf("?");
if(_22>-1){
_1e[_1d]=_21.href.slice(7,_22);
}else{
_1e[_1d]=_21.href.slice(7);
}
continue;
}
_1e=STSP.getTypedValue(_21,_1d);
}
return _1e;
},getSinglePropertyValue:function(_23){
if(!_23){
return false;
}
var _24=_23.innerHTML.replace(/<[a-zA-Z\/][^>]*>/gi,"");
return _24;
},crossDomainRequest:function(){
var _25=new Array();
var _26=new Array();
var _27=this;
createTimeoutFunction=function(_28){
return function(){
_27.cancelRequest(_28);
};
};
this.getScriptId=function(id){
return "_JVLN_"+id;
};
this.getScriptObject=function(id){
var _29=SemTagUtil.isGecko?this.getScriptId(id):this.$_getScriptId(id);
return document.getElementById(_29);
};
this.request=function(url,_2a,_2b,_2c,_2d){
var _2e=this.getScriptId(_2d);
if(_2b){
_25[_2d]=_2b;
}
if(_2c){
_26[_2d]=_2c;
}
var _2f=document.createElement("script");
_2f.id=_2e;
try{
_2f.src=url;
}
catch(e){
return false;
}
document.body.insertBefore(_2f,document.body.firstChild);
if(_2a){
var _30=this;
window.setTimeout(createTimeoutFunction(_2d),_2a);
}
};
this.cancelRequest=function(id){
var _31=_25[id];
_25[id]=null;
var _32=_26[id];
_26[id]=null;
if(_31){
try{
if(_31){
var evt={"target":_32};
_31.call(this,false,null,evt);
}
var _33=this.getScriptObject(id);
if(_33){
document.body.removeChild(_33);
}
}
catch(e){
}
}
};
this.dispatch=function(id,_34){
if(!id){
return;
}
try{
var _35=_25[id];
if(!_35){
}
if(_35){
var evt={"target":_26[id]};
_35.call(this,true,_34,evt);
_25[id]=null;
_26[id]=null;
var _36=this.getScriptObject(id);
if(_36){
document.body.removeChild(_36);
}
}
}
catch(e){
}
};
}};





if(typeof (ibm)=="undefined"){
ibm={};
}
if(typeof (ibm.portal)=="undefined"){
ibm.portal={};
}
if(typeof (ibm.portal.xml)=="undefined"){
ibm.portal.xml={};
}
if(typeof (ibm.portal.xml)=="undefined"){
ibm.portal.xml={};
}
ibm.portal.util={};
ibm.portal.util.cloneObject=function(_1){
var _2={};
for(i in _1){
_2[i]=_1[i];
}
return _2;
};
ibm.portal.resource={};
ibm.portal.resource.str={};
ibm.portal.resource.getString=function(_3,_4){
s=_3[_4];
s=(s==null)?_4:s;
if(arguments.length>=2){
i=1;
do{
s=s.replace("%"+i,arguments[i]);
i=i+1;
}while(i<arguments.length);
}
return s;
};
if(typeof (ibm.portal.xml)=="undefined"){
ibm.portal.xml={};
}
ibm.portal.xml.ie={};
ibm.portal.xml.gecko={};
ibm.portal.xml.getXmlHttpRequest=function(){
var _5=null;
if(typeof ActiveXObject!="undefined"){
_5=new ActiveXObject("Microsoft.XMLHTTP");
}else{
_5=new XMLHttpRequest();
}
return _5;
};
ibm.portal.xml.loadXml=function(_6){
if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){
return ibm.portal.xml.ie.loadXml(_6);
}else{
return ibm.portal.xml.gecko.loadXml(_6);
}
};
ibm.portal.xml.loadXmlString=function(_7){
if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){
return ibm.portal.xml.ie.loadXmlString(_7);
}else{
return ibm.portal.xml.gecko.loadXmlString(_7);
}
};
ibm.portal.xml.loadXsl=function(_8){
if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){
return ibm.portal.xml.ie.loadXsl(_8);
}else{
return ibm.portal.xml.gecko.loadXsl(_8);
}
};
ibm.portal.xml.transform=function(_9,_a,_b,_c,_d){
if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){
return ibm.portal.xml.ie.transform(_9,_a,_b,_c,_d);
}else{
return ibm.portal.xml.gecko.transform(_9,_a,_b,_c,_d);
}
};
ibm.portal.xml.update=function(_e,_f,xsl,_10,_11){
if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){
var _12=ibm.portal.xml.ie.transform(_f,xsl,_10,_11,true);
ibm.portal.debug.text("XSLT result: "+_12);
_e.innerHTML+=_12;
}else{
_12=ibm.portal.xml.gecko.transform(_f,xsl,_10,_11,false);
_e.appendChild(_12.documentElement);
}
};
ibm.portal.xml.ie.XSLT_PROG_IDS=["Msxml2.XSLTemplate.6.0","Msxml2.XSLTemplate.4.0","MSXML2.XSLTemplate.3.0","MSXML2.XSLTemplate"];
ibm.portal.xml.ie.DOM_PROG_IDS=["MSXML2.FreeThreadedDOMDocument.6.0","Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];
ibm.portal.xml.ie.FTDOM_PROG_IDS=["Msxml2.FreeThreadedDOMDocument.6.0","Msxml2.FreeThreadedDOMDocument.4.0","MSXML2.FreeThreadedDOMDocument","MSXML.FreeThreadedDOMDocument","Microsoft.FreeThreadedXMLDOM"];
ibm.portal.xml.ie._getMSXMLImpl=function(_13){
while(_13.length>0){
try{
var _14=new ActiveXObject(_13[0]);
if(_14){
return _14;
}
}
catch(err){
}
_13.splice(0,1);
}
throw new Error("No MSXML implementation exists");
};
ibm.portal.xml.ie.loadXml=function(_15){
var _16=this._getMSXMLImpl(this.DOM_PROG_IDS);
_16.async=0;
_16.resolveExternals=0;
if(!_16.load(_15)){
throw new Error("Error loading xml file "+_15);
}
return _16;
};
ibm.portal.xml.ie.loadXmlString=function(_17){
var _18=this._getMSXMLImpl(this.DOM_PROG_IDS);
_18.async=0;
_18.resolveExternals=0;
if(_17){
if(!_18.loadXML(_17)){
throw new Error("Error loading xml string "+_17);
}
}
return _18;
};
ibm.portal.xml.ie.loadXsl=function(_19){
var _1a=this._getMSXMLImpl(this.FTDOM_PROG_IDS);
_1a.async=0;
_1a.resolveExternals=0;
if(!_1a.load(_19)){
throw new Error("Error loading xsl file "+_19);
}
return _1a;
};
ibm.portal.xml.ie.transform=function(_1b,xsl,_1c,_1d,_1e){
var _1f=_1b;
var _20=xsl;
try{
if(!_20.documentElement){
_20=this.loadXsl(xsl);
}
}
catch(e){
var _21=e.message;
throw new Error(""+_21,""+_21);
}
var _22=this._getMSXMLImpl(this.XSLT_PROG_IDS);
_22.stylesheet=_20;
var _23=_22.createProcessor();
_23.input=_1f;
if(_1d){
for(var p in _1d){
_23.addParameter(p,_1d[p]);
}
}
if(_1c){
_23.addParameter("mode",_1c);
}
if(_1e){
if(!_23.transform()){
throw new Error("Error transforming xml doc "+_1f);
}
return _23.output;
}else{
var _24=this._getMSXMLImpl(this.DOM_PROG_IDS);
_24.async=false;
_24.validateOnParse=false;
_1f.transformNodeToObject(_20,_24);
return _24;
}
};
ibm.portal.xml.gecko.loadXml=function(_25){
var _26=document.implementation.createDocument("","",null);
var xhr=new XMLHttpRequest();
xhr.open("GET",_25,false);
xhr.send(null);
if(xhr.status==200){
_26=xhr.responseXML;
}else{
throw new Error("Error loading "+_25+":"+xhr.status+":"+xhr.statusText);
}
return _26;
};
ibm.portal.xml.gecko.loadXmlString=function(_27){
var _28=new DOMParser();
try{
oXmlDoc=_28.parseFromString(_27,"text/xml");
}
catch(exc){
throw new Error("Error loading xml string "+_27);
}
return oXmlDoc;
};
ibm.portal.xml.gecko.loadXsl=function(_29){
var _2a=document.implementation.createDocument("","",null);
var xhr=new XMLHttpRequest();
xhr.open("GET",_29,false);
xhr.send(null);
if(xhr.status==200){
_2a=xhr.responseXML;
}
return _2a;
};
ibm.portal.xml.gecko.transform=function(_2b,xsl,_2c,_2d,_2e){
try{
var _2f=xsl;
if(!_2f.documentElement){
alert("xslDoc is not a Document, loading it...");
_2f=this.loadXsl(xsl);
}
var _30=new XSLTProcessor();
_30.importStylesheet(_2f);
if(_2d){
for(var p in _2d){
_30.setParameter(null,p,_2d[p]);
}
}
if(_2c){
_30.setParameter(null,"mode",_2c);
}
var _31=_30.transformToDocument(_2b);
if(!_2e){
return _31;
}
resultStr=_31.documentElement.textContent;
}
catch(exc){
throw new Error("Error transforming xml doc "+exc);
}
return resultStr;
};
ibm.portal.xml.setLayerContentByXml=function(_32,xml,xsl,_33,_34){
var _35=ibm.portal.xml.transform(xml,xsl,null,_33,_34);
if(_32.innerHTML){
_32.innerHTML=_35;
}else{
var obj=document.getElementById(_32);
obj.innerHTML=_35;
}
};
ibm.portal.io={};
ibm.portal.io.sAcceptLanguage="";
ibm.portal.io.getResponseHeader=function(_36,_37){
var _38;
try{
_38=_36.getResponseHeader(_37);
}
catch(exc){
_38=null;
}
return _38;
};
ibm.portal.io.checkForError=function(_39){
var _3a=null;
var _3b=ibm.portal.io.getResponseHeader(_39,"X-IBM-REST-Error");
if(_3b){
var _3a="",_3c=ibm.portal.io.getResponseHeader(_39,"X-IBM-REST-MsgArg1");
if(_3c){
_3a=ibm.portal.resource.getString(_3b,window.decodeURIComponent(_3c));
}else{
_3a=ibm.portal.resource.getString(_3b);
}
}
return _3a;
};
ibm.portal.io.asyncRequest=function(_3d,_3e,_3f,_40){
try{
ibm.portal.io.setAsync(_3d,_3e,_3f,_40,true);
}
catch(e){
ibm.portal.io.setAsync(_3d,_3e,_3f,_40,false);
}
};
ibm.portal.io.setAsync=function(_41,_42,_43,_44,_45){
var _46=ibm.portal.xml.getXmlHttpRequest();
_46.open(_41,_42,true);
if(!_45){
_46.setRequestHeader("Accept-language","*");
}
try{
_46.onreadystatechange=function(){
if(_46.readyState==4){
_44.startUpdate();
sError=ibm.portal.io.checkForError(_46);
if(sError){
_44.handleError(""+ibm.portal.resource.getString(sError));
}else{
var _47=_46.responseText;
_44.handleData(_47);
}
}
};
_46.send(_43);
}
catch(e){
throw new Error("","");
}
};
try{
}
catch(e){
console.error(e);
}



}catch(e){console.log("Module 'wp_liveobject_framework_core': ",e);}
try{/* (C) Copyright IBM Corp. 2007  All Rights Reserved.                */
/**
 * This is the JS file for the common semantic tagging service
 */


 





 

STSPG.ifConnUrlExists = "false";
STSPG.connUrl= "null";
STSPG.isconnServerNew = false;
STSPG.ptTimeout =  1500;
STSPG.preferredImIds =  ["X-imn","email","uid","fn"];

STSPG.c2a_click_for_actions = "\u04d8\u0440\u0435\u043a\u0435\u0442\u0442\u0435\u0440\u0433\u0435 \u04e9\u0442\u0443 \u04af\u0448\u0456\u043d \u043d\u04b1\u049b\u0443";

STSPG.hover_label_menu =  "\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0434\u0456 \u0431\u0430\u0441\u044b\u04a3\u044b\u0437";
STSPG.a11y_hover=  "\u0436\u0435\u0442\u0456\u043b\u0434\u0456\u0440\u0456\u043b\u0433\u0435\u043d \u043c\u04d9\u043b\u0456\u043c\u0435\u0442";
STSPG.a11y_photo=  "\u0444\u043e\u0442\u043e\u0441\u0443\u0440\u0435\u0442";
STSPG.a11y_close=  "\u0436\u0430\u0431\u0443";
STSPG.ally_expandImage  =  "\u0410\u049b\u043f\u0430\u0440\u0430\u0442\u0442\u044b \u0436\u0430\u0441\u044b\u0440\u0443 \u04af\u0448\u0456\u043d \u043d\u04b1\u049b\u044b\u04a3\u044b\u0437";
STSPG.ally_collapsedImage  =  "\u0411\u0435\u0439\u043d\u0435\u0431\u0435\u0442\u0442\u0435\u043d \u043a\u04e9\u043f \u0430\u049b\u043f\u0430\u0440\u0430\u0442 \u0430\u043b\u0443 \u04af\u0448\u0456\u043d \u0431\u044b\u0441\u044b\u04a3\u044b\u0437";
STSPG.ally_showMore  =  "\u049a\u043e\u0441\u044b\u043c\u0448\u0430 \u043a\u04e9\u0440\u0441\u0435\u0442\u0443";
STSPG.ally_showLess  =  "\u0410\u0437\u044b\u0440\u0430\u049b \u043a\u04e9\u0440\u0441\u0435\u0442\u0443";
STSPG.ally_buisnessCardLabel  =  "\u0411\u0438\u0437\u043d\u0435\u0441 \u043a\u04d9\u0440\u0442\u0456\u0448\u043a\u0435";
STSPG.ally_moreAction=  "\u049a\u043e\u0441\u044b\u043c\u0448\u0430 \u04d9\u0440\u0435\u043a\u0435\u0442\u0442\u0435\u0440";

STSPG.start_chat=  "\u0421\u04e9\u0439\u043b\u0435\u0441\u0456\u043c";
STSPG.add_to_contact=  "\u0416\u0430\u04a3\u0430 Sametime \u0456\u0441\u0442\u0435\u0441 \u043a\u0456\u0441\u0456\u0441\u0456\u043d \u049b\u043e\u0441\u0443";
STSPG.send_email=  "\u0425\u0430\u0442 \u0436\u0456\u0431\u0435\u0440\u0443";
STSPG.view_person=  "\u041f\u0440\u043e\u0444\u0438\u043b\u044c";
STSPG.hover_label_person=  "\u0416\u0435\u043a\u0435 \u0442\u04b1\u043b\u0493\u0430 \u043a\u0430\u0440\u0442\u0430\u0441\u044b \u04af\u0448\u0456\u043d \u043e\u0441\u044b \u0436\u0435\u0440\u0434\u0456 \u0431\u0430\u0441\u0443";
STSPG.work_location=  "person.adr.locality+', '+person.adr.region+' '+person.adr.countryname";
STSPG.specify_email_if_connection=  "\u041f\u043e\u0440\u0442\u0430\u043b \u049b\u043e\u0441\u044b\u043b\u044b\u043c\u0434\u0430\u0440\u043c\u0435\u043d \u0431\u0456\u0440\u0456\u043a\u0442\u0456\u0440\u0456\u043b\u0433\u0435\u043d\u0434\u0435, \u049b\u043e\u0441\u044b\u043b\u044b\u043c \u0431\u0438\u0437\u043d\u0435\u0441 \u043a\u0430\u0440\u0442\u0430\u0441\u044b \u0442\u0435\u043a \u044d\u043b\u0435\u043d\u043a\u0442\u0440\u043e\u043d\u0434\u044b\u049b \u043c\u0435\u043a\u0435\u043d-\u0436\u0430\u0439 \u043a\u04e9\u0440\u0441\u0435\u0442\u0456\u043b\u0433\u0435\u043d\u0434\u0435 \u0493\u0430\u043d\u0430 \u043f\u0430\u0439\u0434\u0430 \u0431\u043e\u043b\u0430\u0434\u044b";

STSPG.expandedItems  =  "ibm-primaryEmail,street,stateOrProvinceName,postalCode,countryName";
STSPG.collapsedItems  =  "ibm-jobTitle,telephoneNumber";
STSPG.showDetailsFlag  =  true;
STSPG.getPersonResolverUrl =  function(){ return "?uri=personrecord%3ATOBEREPLACED&amp;locale=kk&amp;locale=en&amp;locale=ltr" };
STSPG.basePumaResolvedUrl =  SemTagSvcPortalGlobalDynamic.basePumaResolvedUrl;
STSPG.availAttribUrl =  SemTagSvcPortalGlobalDynamic.availAttribUrl;




STSP.availAttribStr =  "";
STSP.ifConnUrlExists =  STSPG.ifConnUrlExists;
STSP.connUrl =  STSPG.connUrl;
STSP.isconnServerNew = STSPG.isconnServerNew;
STSP.sametimeSTProxy = (typeof stproxy !== "undefined" );
STSP.sametimeSTLinks = ( (typeof stproxy === "undefined") && (typeof prepareSametimeLink !== "undefined") );
STSP.stNI = ( (typeof stproxy === "undefined") && (typeof prepareSametimeLink === "undefined") );


	
	var availAttrib={availAttribUrl:STSPG.availAttribUrl,req:"",uAR:false,isGecko:navigator.userAgent.match(/(opera|opr|firefox|msie|chrome|safari)\/?\s*([\d\.]+)/i)||[],retrieveAttribute:function(){
if(availAttrib.uAR){
return;
}
if(STSP.availAttribStr!=""){
return;
}
availAttrib.req=ibm.portal.xml.getXmlHttpRequest();
availAttrib.req.onreadystatechange=availAttrib.processStateChange;
try{
availAttrib.req.open("GET",availAttrib.availAttribUrl,true);
}
catch(e){
alert(e);
}
availAttrib.req.send(null);
availAttrib.uAR=true;
},getAttributesFromTags:function(_1,_2,_3){
var _4;
if(availAttrib.isGecko.length==0||availAttrib.isGecko.indexOf("MSIE")>0){
_4=_1.getElementsByTagName(_3+":"+_2);
return _4;
}else{
_4=_1.getElementsByTagNameNS("*",_2);
return _4;
}
},processStateChange:function(){
if(availAttrib.req.readyState==4){
if(availAttrib.req.status==200){
var _5=availAttrib.req.responseText;
if(_5.length>1){
var _6=ibm.portal.xml.loadXmlString(_5);
var _7=availAttrib.getAttributesFromTags(_6.documentElement,"title","atom");
var i;
for(i=1;i<_7.length;i++){
if((STSP.availAttribStr=="")){
if((_7[i].firstChild.nodeValue!=null)){
STSP.availAttribStr=_7[i].firstChild.nodeValue;
}
}else{
if((_7[i].firstChild.nodeValue!=null)){
STSP.availAttribStr=_7[i].firstChild.nodeValue+","+STSP.availAttribStr;
}
}
}
}
}else{
}
}
}};


	


var mytest=null;
var liveNameElementId=null;
var SemTagMenu={needCss:true,staticHover:false,id:"semtagmenu",hideDelay:navigator.userAgent.match(/(Android|BlackBerry|iPad|iPhone|iPod)/g)?5000:STSPG.ptTimeout,timeouts:[],iconName:"menu_drop_icon",showing:false,currentElem:null,currentHoverLabel:null,refCount:-1,a11yMode:false,svcHandlers:[],items:[],headers:[],footers:[],moreActionImgUrl:STSPG.contextUrl+"/ui/ShowActions.gif",verticalRulerUrl:STSPG.contextUrl+"/ui/Line_Tree.gif",hoverIdRE:new RegExp(STSP.hoverIdPrefix),iconNameRE:new RegExp("(^|\\s)menu_drop_icon(\\s|$)"),sftflag:false,init:function(){
},includeCSS:function(_1){
var _2=false;
if(typeof (_1._JAVLIN_STYLE_)=="undefined"){
_2=true;
_1._JAVLIN_STYLE_="loaded";
}
return _2;
},registerMenuEventHandlers:function(_3){
STSP.watchEvent(_3,"click",SemTagMenu.click,false);
STSP.watchEvent(_3,"keydown",SemTagMenu.catchEscape,false);
STSP.watchEvent(_3,"keyup",SemTagMenu.catchKeyup,false);
},unregisterMenuEventHandlers:function(_4){
STSP.clearEventWatch(_4,"click",SemTagMenu.click,false);
STSP.clearEventWatch(_4,"keydown",SemTagMenu.catchEscape,false);
STSP.clearEventWatch(_4,"keyup",SemTagMenu.catchKeyup,false);
},nls:{"hover_label":STSPG.hover_label_menu,"a11y_hover":STSPG.a11y_hover,"a11y_photo":STSPG.a11y_photo,"a11y_close":STSPG.a11y_close,"ally_expandImage":STSPG.ally_expandImage,"ally_collapsedImage":STSPG.ally_collapsedImage,"ally_showMore":STSPG.ally_showMore,"ally_showLess":STSPG.ally_showLess,"ally_buisnessCardLabel":STSPG.ally_buisnessCardLabel,"ally_moreAction":STSPG.ally_moreAction},hoverDimension:[14,14],hoverOffset:[15,-1],menuOffset:[15,-1],writeHover:function(_5,_6,_7){
_5.write("<div class='"+SemTagMenu.iconName+"' style='cursor:pointer;'>"+_7+"</div>");
},startMenu:function(_8,_9){
_8.write("<div class='personMenu' id='personMenuID'><ul role='region' aria-label='listitem' style='padding:0px;margin:0px;list-style-type:none;float:left;'title='Person card dialog' alt='Person card dialog'><li role='region' aria-label='listitem' tabindex=0 onkeydown=\"SemTagMenu.catchEscape();\" onkeyup=\"SemTagMenu.catchKeyup();\"></li></ul>");
},writeHeader:function(_a,_b,_c){
_a.write("<div class='semtag_header'>"+_b.markup+"</div>");
},startActionSection:function(_d,_e,_f,_10){
if(!_f){
_f="personMenuActions";
}
_d.write("<div id='lessItem' style='display:block'><table role='presentation' class='personMenuActions' id='menuItemID' dir='"+_e+"'><tr >");
if(0<SemTagMenu.items.length){
tempitem=SemTagMenu.items.shift();
_d.write("<td style='width:10'><a role='region' aria-label='actionItem' href='"+tempitem.href+"' style='color:#105ec1;padding-top:5px;padding-bottom:5px;font-size:1.0em;'><img style='display:none' src='' alt=''> "+tempitem.label+"</img></a></td>");
}
if(_10.length>=1){
_d.write("<td style='width:1'><img src= '"+SemTagMenu.verticalRulerUrl+"' alt=''/> </td> ");
_d.write("<td ><a role='region' aria-label='moreaction' href='#' style='color:#105ec1;padding-top:5px;padding-bottom:5px;font-size:1.0em;width:90;'onClick=\"SemTagMenu.shtest();return false;\" onKeydown=\" if (event.keyCode==13){SemTagMenu.shtest();return false; }\"><img style='display:none' src='' alt=''><label id='actionMore'>"+SemTagMenu.nls.ally_moreAction+"</img></label><span style='position: absolute; top: -9000px;'>Press Enter for more actions items and tab to move the focus on items</span><img style='border:none;' src='"+SemTagMenu.moreActionImgUrl+"' title='"+SemTagMenu.nls.ally_collapsedImage+" ' alt='"+SemTagMenu.nls.ally_collapsedImage+" ' /></a></td>");
}
_d.write("</tr></table></div>");
_d.write("<div id='moreItem' style='display:none'><table role='presentation' id='moreActionItems' class='"+_f+"' dir='"+_e+"'>");
while(0<SemTagMenu.items.length){
_10=SemTagMenu.items.shift();
if(_10.href&&(_10.href.indexOf("mailto:")>-1||_10.href.indexOf("http:")>-1)){
_d.write("<tr ><td><a href='"+_10.href+"'>"+_10.label+"</a></td></tr>");
}else{
_d.write("<tr ><td><a  onclick='"+_10.href+";return false;"+"' href='javascript:void(0);'>"+_10.label+"</a></td></tr>");
}
}
_d.write("</table></div>");
},writeFooter:function(out,_11,_12){
out.write("<div class='semtag_footer'>"+_11.markup+"</div>");
},endMenu:function(out,_13){
out.write("<a role='region' aria-label='exitlink' style='width:0px; height:0px;' onblur=\"SemTagMenu.exitCard();\" onclick='return false;' href='exit from person card' title='exit from person card'><img style='display:none' src='' alt='' /></a></div>");
},out:function(){
this.buffer="";
this.write=function(str){
this.buffer+=str;
};
},activateHover:function(_14){
var _15=STSP.getElementFromEvent(_14);
if(_15){
_15.src=STSPG.contextUrl+"/ui/menu_selected_hover.gif";
}
SemTagMenu.setCurrentElement(SemTagMenu.findLiveElementFromEventSource(_15));
},deactivateHover:function(_16){
var _17=STSP.getElementFromEvent(_16);
if(_17){
_17.src=STSPG.contextUrl+"/ui/menu_selected.gif";
}
SemTagMenu.setCurrentElement(null);
},showHover:function(_18,_19,_1a){
if(SemTagMenu.staticHover){
return;
}
var tag=SemTagMenu.getMenuTag();
if(SemTagMenu.showing&&tag.style.display!="none"){
return;
}
var _1b=STSP.getElementFromEvent(_18);
var _1c=0;
if(_1b&&_1b!=SemTagMenu.currentElem){
SemTagMenu.clearAllSvcHandlers(tag);
_1c=_1b.getAttribute(STSP.refcntAttr);
if(_1c){
SemTagMenu.setCurrentElement(_1b);
}else{
SemTagMenu.setCurrentElement(null);
return;
}
}
SemTagMenu.addSvcHandler(tag,_19);
if(_1a&&0<_1a.length){
SemTagMenu.currentHoverLabel=_1a;
}
SemTagMenu.refCount--;
if(0<SemTagMenu.refCount){
return;
}
SemTagMenu.setRefCount((0<_1c)?_1c:Number(_1b.getAttribute(STSP.refcntAttr)));
SemTagMenu.showing=false;
if(_18.type=="focus"){
SemTagMenu.a11yMode=true;
STSP.watchEvent(_1b,"keydown",SemTagMenu.a11y,false);
}
var out=new SemTagMenu.out();
var _1a=SemTagMenu.currentHoverLabel?SemTagMenu.currentHoverLabel:SemTagMenu.nls.hover_label;
if(!STSP.isMobile){
SemTagMenu.writeHover(out,STSP.bidi,_1a);
if(STSPG.isPersonCardHandlerRequired){
availAttrib.retrieveAttribute();
}
}
SemTagMenu.offScreen(tag);
tag.innerHTML=out.buffer;
var pos=STSP.findPosition(SemTagMenu.currentElem,false);
var _1d=(STSP.bidi=="rtl")?0-SemTagMenu.hoverOffset[0]:SemTagMenu.hoverOffset[0];
SemTagMenu.show(SemTagMenu.id,_18,pos[0]+_1d,pos[1]+SemTagMenu.hoverOffset[1],tag.offsetWidth,tag.offsetHeight);
},addSvcHandler:function(tag,_1e){
SemTagMenu.svcHandlers.push(_1e);
STSP.watchEvent(tag,"click",_1e,false);
},clearAllSvcHandlers:function(tag){
while(0<SemTagMenu.svcHandlers.length){
var _1f=SemTagMenu.svcHandlers.pop();
if(_1f){
STSP.clearEventWatch(tag,"click",_1f,false);
}
}
},setCurrentElement:function(_20){
SemTagMenu.currentElem=_20;
SemTagMenu.setRefCount(_20?Number(_20.getAttribute(STSP.refcntAttr)):0);
SemTagMenu.currentHoverLabel=null;
while(0<SemTagMenu.headers.length){
SemTagMenu.headers.pop();
}
while(0<SemTagMenu.items.length){
SemTagMenu.items.pop();
}
while(0<SemTagMenu.footers.length){
SemTagMenu.footers.pop();
}
},setRefCount:function(cnt){
SemTagMenu.refCount=cnt;
},setMenuData:function(_21,_22,_23,_24,_25){
var _26=_22?_22.length:0;
if(!SemTagMenu.staticHover&&SemTagMenu.refCount<0){
return;
}
var _27=SemTagMenu.findLiveElementFromEventSource(STSP.getElementFromEvent(_21));
if(!_27){
return;
}
if(SemTagMenu.staticHover&&(_27!=SemTagMenu.currentElem||SemTagMenu.showing)){
SemTagMenu.setCurrentElement(_27);
}
if(_22){
for(var i=0;i<_22.length;i++){
SemTagMenu.items.push(_22[i]);
}
}
if(_23){
SemTagMenu.currentMenuCss=_23;
}
if(_24){
SemTagMenu.headers.push(_24);
}
if(_25){
SemTagMenu.footers.push(_25);
}
SemTagMenu.refCount--;
if(0<SemTagMenu.refCount){
return;
}
SemTagMenu.stopEvent(_21);
for(var j=0;j<STSP.specialMenuProviders.length;j++){
var _28=STSP.specialMenuProviders[j];
var _29=_28.call(_21,SemTagMenu.currentElem);
if(_29&&0<_29.length){
for(var k=0;k<_29.length;k++){
SemTagMenu.items.push(_29[k]);
}
}
}
SemTagMenu.showMenu(_21);
},getCurrentElement:function(){
return SemTagMenu.currentElem;
},showMenu:function(_2a){
if(0==SemTagMenu.headers.length+SemTagMenu.items.length+SemTagMenu.footers.length){
SemTagMenu.hide();
return;
}
SemTagMenu.items.sort(STSP.sortByOrder);
if(1<SemTagMenu.headers.length){
SemTagMenu.headers.sort(STSP.sortByOrder);
}
if(1<SemTagMenu.footers.length){
SemTagMenu.footers.sort(STSP.sortByOrder);
}
var out=new SemTagMenu.out();
SemTagMenu.startMenu(out,STSP.bidi);
if(0<SemTagMenu.headers.length){
SemTagMenu.writeHeader(out,SemTagMenu.headers[0],STSP.bidi);
}
SemTagMenu.startActionSection(out,STSP.bidi,SemTagMenu.currentMenuCss,SemTagMenu.items);
if(0<SemTagMenu.footers.length){
SemTagMenu.writeFooter(out,SemTagMenu.footers[0],STSP.bidi);
}
SemTagMenu.endMenu(out,STSP.bidi);
var tag=SemTagMenu.getMenuTag();
SemTagMenu.clearAllSvcHandlers(tag);
SemTagMenu.offScreen(tag);
tag.innerHTML=out.buffer;
SemTagMenu.showing=true;
SemTagMenu.defaultCursor();
if(SemTagMenu.a11yMode){
if(SemTagUtil.isGecko){
var _2b=tag.getElementsByTagName("li");
if(0<_2b.length){
_2b[0].focus();
}
}else{
tag.focus();
}
}
SemTagMenu.registerMenuEventHandlers(document);
var pos=STSP.findPosition(SemTagMenu.currentElem,false);
var _2c=(STSP.bidi=="rtl")?0-SemTagMenu.menuOffset[0]:SemTagMenu.menuOffset[0];
SemTagMenu.show(SemTagMenu.id,_2a,pos[0]+_2c,pos[1]+SemTagMenu.menuOffset[1],tag.offsetWidth,tag.offsetHeight);
},getMenuTag:function(){
var tag=document.getElementById(SemTagMenu.id);
if(!tag){
tag=document.createElement("div");
tag.setAttribute("id",SemTagMenu.id);
tag.style.position="absolute";
tag.style.display="none";
tag.style.zIndex="99999";
STSP.watchEvent(tag,"mouseout",SemTagMenu.mouseout,false);
STSP.watchEvent(tag,"mouseover",SemTagMenu.mouseover,false);
document.body.insertBefore(tag,document.body.firstChild);
}
return tag;
},show:function(_2d,e,_2e,_2f,_30,_31){
var _32;
var _33;
SemTagMenu.clearTimeouts();
var _34=document.getElementById(_2d);
if(_30==null){
_30=0;
}
if(_31==null){
_31=0;
}
var top,_35;
if(_2e!=null&&_2f!=null){
var top=_2f;
var _35=_2e-(STSP.bidi=="rtl"?_30:0);
}else{
var top=STSP.getEventAbsoluteY(e);
var _35=STSP.getEventAbsoluteX(e);
}
var _36=SemTagMenu.currentElem;
mytest=_36.parentNode;
var _37,_38,d=document;
if(typeof window.innerWidth!="undefined"){
_37=window.innerWidth;
_38=window.innerHeight;
}else{
if(d.documentElement&&typeof d.documentElement.clientWidth!="undefined"&&d.documentElement.clientWidth!=0){
_37=d.documentElement.clientWidth;
_38=d.documentElement.clientHeight;
}else{
if(d.body&&typeof d.body.clientWidth!="undefined"){
_37=d.body.clientWidth;
_38=d.body.clientHeight;
}
}
}
var _39=(document.body.scrollLeft>document.documentElement.scrollLeft)?document.body.scrollLeft:document.documentElement.scrollLeft;
if((_35+_30)>(_37+_39)){
var _3a=(_35+_30)-_37-_39;
_35-=_3a;
}
var _3b=(document.body.scrollTop>document.documentElement.scrollTop)?document.body.scrollTop:document.documentElement.scrollTop;
if((top+_31)>(_38+_3b)){
var _3a=(top+_31)-_38-_3b;
top-=_3a;
}
if(STSP.bidi=="rtl"&&_35<0){
_35=0;
}
var od=SemTagUtil.getOwnerDocument(_36);
if(od.location!=document.location){
var f=SemTagUtil.getFrameElement(_36);
if(f){
var el=f.offsetParent;
var x=0,y=0;
while(el){
x+=el.offsetLeft;
y+=el.offsetTop;
el=el.offsetParent;
}
var lof=_36.offsetParent;
var xx=0,yy=0;
while(lof){
xx+=lof.offsetLeft;
yy+=lof.offsetTop;
lof=lof.offsetParent;
}
if(f.id=="wpsFLY_flyoutIFrame"){
top=y+yy+_36.offsetHeight;
_35=x+xx+_36.offsetWidth;
}else{
top+=f.offsetTop;
_35+=f.offsetLeft;
}
if(SemTagUtil.isGecko&&f.id=="wpsFLY_flyoutIFrame"){
_33=f.contentWindow.pageXOffset;
_32=f.contentWindow.pageYOffset;
}
if(!SemTagUtil.isGecko&&f.id=="wpsFLY_flyoutIFrame"){
_33=f.contentWindow.document.body.parentNode.scrollLeft;
_32=f.contentWindow.document.body.parentNode.scrollTop;
}
top-=_32;
_35-=_33;
}
}
_34.style.top=top+"px";
_34.style.left=_35+"px";
_34.style.display="block";
SemTagMenu.startHideTimer(_2d);
},hide:function(_3c,e){
SemTagMenu.unregisterMenuEventHandlers(document);
var tag=SemTagMenu.getMenuTag();
if(!tag){
return false;
}
if(tag.style.display!="block"){
return false;
}
tag.style.display="none";
SemTagMenu.showing=false;
try{
var _3d=SemTagMenu.getNextEle(mytest);
}
catch(e){
}
SemTagMenu.setCurrentElement(null);
SemTagMenu.currentHoverLabel=null;
SemTagMenu.clearAllSvcHandlers(tag);
SemTagMenu.a11yMode=false;
SemTagMenu.defaultCursor();
return true;
},getNextEle:function(ele){
var par=ele.parentNode;
while(true){
if(par==null||par=="undefined"){
return false;
}else{
if(par.nodeName=="BODY"){
return par;
}else{
var _3e=par.nextSibling;
if(_3e!=null){
return _3e;
}
par=par.parentNode;
}
}
}
return false;
},offScreen:function(_3f){
_3f.style.top="-1000px";
_3f.style.left="-1000px";
_3f.style.display="block";
},findLiveElementFromEventSource:function(_40){
var _41;
if(SemTagMenu.staticHover){
var id=_40.id;
if(!id.match(SemTagMenu.hoverIdRE)){
var _42=_40.getElementsByTagName("img");
for(var i=0;i<_42.length;i++){
if(_42[i].id&&_42[i].id.match(SemTagMenu.hoverIdRE)){
id=_42[i].id;
break;
}
}
}
if(id&&0<id.length){
var idx=id.substr(STSP.hoverIdPrefix.length);
_41=document.getElementById(STSP.liveElemPrefix+idx);
return _41;
}else{
_41=_40;
return _41;
}
}else{
var _43=SemTagMenu.getCurrentElement();
_41=_43?_43:_40;
return _41;
}
},findHoverFromLiveElement:function(_44){
var _45;
var idx=_44.getAttribute(STSP.hoverIdPrefix+"idx");
_45=document.getElementById(STSP.hoverIdPrefix+idx);
return _45;
},inMenu:function(_46,_47,_48,_49){
if(!_46){
return false;
}
if(!SemTagMenu.showing){
return false;
}
if(!_48){
_48=0;
}
if(!_49){
_49=0;
}
var _4a=STSP.getEventAbsoluteX(_47);
var _4b=STSP.getEventAbsoluteY(_47);
var _4c=_46.style.left.replace(/px$/,"");
var _4d=_46.style.top.replace(/px$/,"");
var _4e=parseInt(_4c)+parseInt(_46.clientWidth);
var _4f=parseInt(_4d)+parseInt(_46.clientHeight);
if((_4a-1<=(_4c-_48))||(_4b-1<=(_4d-_49))||(_4a>=(_4e+_48))||(_4b>=(_4f+_49))){
return false;
}else{
return true;
}
},mouseout:function(_50){
if(_50.type=="blur"){
var _51=STSP.getElementFromEvent(_50);
if(SemTagMenu.currentElem){
STSP.clearEventWatch(SemTagMenu.currentElem,"keydown",SemTagMenu.a11y,false);
}
if(!SemTagMenu.showing){
if(!_51.className.match(SemTagMenu.iconNameRE)){
SemTagMenu.hide();
}
}
}else{
var _52=SemTagMenu.id;
menuElem=document.getElementById(_52);
SemTagMenu.startHideTimer(_52);
}
},mouseover:function(_53){
SemTagMenu.clearTimeouts();
},click:function(_54){
if(!_54){
return;
}
var _55=STSP.getElementFromEvent(_54);
var _56=STSP.getParentByClassName("semtag_header",_55);
var _57=STSP.getParentByClassName("personMenuActions",_55);
if(!_56&&!_57){
SemTagMenu.hide(SemTagMenu.id);
}
},catchKeyup:function(_58){
var _59;
var _5a=false;
if(_58){
if(_58.which){
_59=_58.which;
}else{
_59=_58.keyCode;
}
}
var _5b=document.activeElement.className;
if(_5b.indexOf("lotusui")>-1){
_5a=true;
}
if(_59==16&&_5a&&SemTagMenu.sftflag){
SemTagMenu.exitCard();
}
SemTagMenu.sftflag=false;
},catchEscape:function(_5c){
var key;
if(_5c){
if(_5c.which){
key=_5c.which;
}else{
key=_5c.keyCode;
}
}
if(key==16){
SemTagMenu.sftflag=true;
}
if(key==27){
var _5d=null;
if(SemTagMenu.showing){
var _5e=SemTagMenu.getCurrentElement();
if(_5e){
_5d=STSP.getHoverElement(_5e);
}
}
SemTagMenu.hide();
if(_5d){
_5d.focus();
}
}
},a11y:function(_5f){
if(_5f){
var key;
if(_5f.which){
key=_5f.which;
}else{
key=_5f.keyCode;
}
if(key==13){
var _60=STSP.getElementFromEvent(_5f);
if(_60){
SemTagMenu.a11yMode=true;
var _61=(SemTagMenu.staticHover?_60:SemTagMenu.getMenuTag());
if(SemTagUtil.isGecko){
var evt=document.createEvent("MouseEvents");
evt.initEvent("click",true,true);
SemTagUtil.fireEvent(_61,evt);
}else{
_61.click();
}
SemTagMenu.stopEvent(_5f);
}
}
}else{
var _60=SemTagMenu.currentElem;
if(_60){
SemTagMenu.a11yMode=true;
var _61=(SemTagMenu.staticHover?_60:SemTagMenu.getMenuTag());
if(SemTagUtil.isGecko){
var _62=document.createEvent("MouseEvents");
_62.initEvent("click",true,true);
SemTagUtil.fireEvent(_61,_62);
}else{
_61.click();
}
SemTagMenu.stopEvent(evt);
}
}
return true;
},stopEvent:function(_63){
if(!_63){
return;
}
if(SemTagUtil.isGecko){
try{
_63.preventDefault();
_63.stopPropagation();
}
catch(e){
}
}else{
try{
_63.returnValue=false;
_63.cancelBubble=true;
}
catch(e){
}
}
},startHideTimer:function(_64){
if(0<SemTagMenu.hideDelay&&!SemTagMenu.a11yMode){
SemTagMenu.timeouts.push(window.setTimeout("SemTagMenu.endHideTimer(\""+_64+"\")",SemTagMenu.hideDelay));
}
},endHideTimer:function(_65){
SemTagMenu.hide(_65);
},clearTimeouts:function(){
var tos=SemTagMenu.timeouts;
for(i=0;i<tos.length;i++){
window.clearTimeout(tos[i]);
}
},defaultCursor:function(){
document.body.style.cursor="default";
},waitCursor:function(){
document.body.style.cursor="progress";
},shtest:function(){
var _66=document.getElementById("lessItem");
var _67=document.getElementById("moreItem");
var tds=_66.getElementsByTagName("td");
if(tds&&tds.length>1){
for(var _68=(tds.length-2);_68<tds.length;_68++){
var _69=tds[_68];
_69.style.display="none";
}
}
_67.style.display="block";
},exitCard:function(){
var _6a=null;
if(SemTagMenu.showing){
var _6b=SemTagMenu.getCurrentElement();
if(_6b){
_6a=STSP.getHoverElement(_6b);
}
}
SemTagMenu.hide();
if(_6a){
_6a.focus();
}
}};
if(STSPG.isDynamicLoading&&STSPG.isPersonCardHandlerRequired){
window.setTimeout(SemTagMenu.init,STSP.DELAY);
}



	

var SemTagPerson={INLINE:"X-person-display-inline",activeElems:new Array(),requestor:new SemTagUtil.crossDomainRequest(),basePumaResolvedUrl:STSPG.basePumaResolvedUrl,collapsedImgUrl:STSPG.contextUrl+"/ui/imgcollapsed.gif",expandedImgUrl:STSPG.contextUrl+"/ui/imgexpanded.gif",moreActionImgUrl:STSPG.contextUrl+"/ui/ShowActions.gif",verticalRulerUrl:STSPG.contextUrl+"/ui/Line_Tree.gif",profileImageUrl:STSPG.contextUrl+"/ui/Properties.gif",noPhotoPersonUrl:STSPG.contextUrl+"/ui/NoPhotoPerson.gif",pumaUrl:"um/secure/users/profiles",init:function(){
if(STSP.ifConnUrlExists=="true"&&STSP.isconnServerNew==false){
if(eval("document.body != null")==false){
SemTagPerson.processUntilAvailable(SemTagPerson.init,"(document.body != null)",null,null,null,null);
return;
}else{
SemTagPerson.loadScript();
}
}
if(STSP.ifConnUrlExists=="true"&&STSP.isconnServerNew==true){
if(eval("document.body != null")==false){
SemTagPerson.processUntilAvailable(SemTagPerson.init,"(document.body != null)",null,null,null,null);
return;
}else{
STSP.loadConnScript();
}
}
STSP.setCallback("hcard",SemTagPerson.hcardsAdded);
STSP.setCallback("mailto",SemTagPerson.mailtosAdded);
SemTagPerson.processHcards(STSP.getNodes("hcard"));
SemTagPerson.processMailtos(STSP.getNodes("mailto"));
STSP.watchEvent(window,"load",SemTagPerson.clearInternalData,false);
},loadScript:function(){
var _1=document.createElement("script");
var _2=STSP.connUrl;
_2+=(_2.indexOf("?")==-1)?"?":"&";
_2+="lang="+STSP.lang;
_1.src=_2;
document.body.insertBefore(_1,document.body.firstChild);
},clearInternalData:function(){
var _3=SemTagPerson.activeElems;
while(_3!=="undefined"&&_3!=null&&0<_3.length){
_3.pop();
}
},nls:{"start_chat":STSPG.start_chat,"add_to_contact":STSPG.add_to_contact,"send_email":STSPG.send_email,"view_person":STSPG.view_person,"hover_label":STSPG.hover_label_person,"work_location":STSPG.work_location,"specify_email_if_connection":STSPG.specify_email_if_connection},getPersonResolverUrl:STSPG.getPersonResolverUrl,getMarkup:function(_4,_5,_6,_7,_8,_9){
var _a="";
var _b=(typeof (_4.email)!="undefined"&&_4.email.internet)?_4.email.internet:null;
if(!(STSP.ifConnUrlExists=="true"&&_b!=null)){
if(_4._profileinplace){
var _c=_4.uid.replace(/\\/g,"&perc5C");
_a="javascript:SemTagPerson.executeJSTargetInFrame(\"javascript:doShowProfile(\\\""+_c+"\\\")\")";
}else{
_a="javascript:SemTagPerson.openPersonRecord()";
}
_6.push(STSP.getMenuItemJson(SemTagPerson.nls.view_person,_a,-100));
}
if(_b){
_6.push(STSP.getMenuItemJson(SemTagPerson.nls.send_email,"mailto:"+_b,-90));
}
var _d=(typeof (SemTagAwrns)!="undefined"&&typeof (_4.X.ststatus)!="undefined");
if(_d){
}
if(STSP.sametimeSTProxy){
var _e="javascript:SemTagAwrns.openAddToContacts(\""+_4.X.imn+"\")";
_6.push(STSP.getMenuItemJson(stproxy.uiControl.i18nStrings.contextMenuAddToContacts,_e,-40));
}
if(typeof (SemTagAwrns)!="undefined"&&typeof (_4.X.ststatus)!="undefined"&&(_4.X.ststatus=="online"||_4.X.ststatus=="away")){
var _f="javascript:SemTagAwrns.openChat(\""+_4.X.imn+"\")";
_6.push(STSP.getMenuItemJson(SemTagPerson.nls.start_chat,_f,-80));
if(STSP.sametimeSTProxy){
var _10="javascript:SemTagAwrns.openCall(\""+_4.X.imn+"\")";
var _11="javascript:SemTagAwrns.openInstantMeeting(\""+_4.X.imn+"\")";
var _12="javascript:SemTagAwrns.openSendAnnouncement(\""+_4.X.imn+"\")";
_6.push(STSP.getMenuItemJson(stproxy.uiControl.i18nStrings.contextMenuCall,_10,-70));
_6.push(STSP.getMenuItemJson(stproxy.uiControl.i18nStrings.contextMenuInstantMeeting,_11,-60));
_6.push(STSP.getMenuItemJson(stproxy.uiControl.i18nStrings.contextMenuSendAnnouncement,_12,-50));
}
if(STSP.sametimeSTLinks){
_6.push(STSP.getMenuItemJson(SemTagPerson.nls.add_to_contact,"javascript:SemTagPerson.addToSametimeList()",-11));
}
}
var _13=STSP.getActions("person");
if(_13){
for(i=0;i<_13.length;i++){
var _14=_13[i].showif;
var _15=true;
if(_14){
try{
var _16=eval(_14);
_15=_16.call(null,SemTagPerson.currentPerson);
}
catch(e){
try{
var _16=eval(_14);
_15=_16.call(null,SemTagPerson.currentPerson);
}
catch(e2){
_15=false;
}
}
}
if(_15){
var _17=_13[i].label;
if(_17.match(/nls\.[a-z]/)){
_17=eval(_17);
}
if(!(_17.indexOf("Send Instant")>-1)){
var _18=_13[i].url.replace(/@@@ARGS@@@/g,"SemTagPerson.currentPerson");
_6.push(STSP.getMenuItemJson(_17,_18,_13[i].order));
}
}
}
}
if(!_4._inline){
if(STSP.ifConnUrlExists=="true"&&(STSP.isconnServerNew==false)&&(_b!=null)){
_8.write("<div class='popupPersonCard' id='businessCard'>");
_8.write("</div>");
}else{
var _19="";
if(typeof (SemTagAwrns)!="undefined"&&typeof (_4.X.ststatus)!="undefined"&&(_4.X.ststatus=="online"||_4.X.ststatus=="away")){
_19=_4.X.ststatus;
}
var _1a=null;
if(_4.photo!=null&&_4.photo!=="undefined"&&_4.photo.length>0){
_1a=_4.photo;
}else{
_1a=SemTagPerson.noPhotoPersonUrl;
}
_8.write("<div class ='businessCardMenu'>");
_8.write("<span class='photoCard' id ='imageSpan'><div id='imageDiv' style='height:90px; width:90px' >");
_8.write("<img id='personImg' tabindex=0 style='border:1px solid rgb(192,192,192);float:right;padding:10px ; height:50px; width:50px; background-color:white;margin-right:6px' src='"+_1a+"' onMouseover='SemTagPerson.imgHoverIn();return false;' alt='"+_4.fn+" "+SemTagMenu.nls.a11y_photo+"' title='"+_4.fn+" "+SemTagMenu.nls.a11y_photo+"' role='region' aria-label='UserImage' / >");
_8.write(" <img id='personImg1' tabindex=0 style='display:none;border:1px solid rgb(192,192,192);float:right;padding:10px ; height:82px; width:82px; background-color:white;margin-right:6px' src='"+_1a+"' onMouseout='SemTagPerson.imgHoverOut();return false;' alt='"+_4.fn+" "+SemTagMenu.nls.a11y_photo+"' title='"+_4.fn+" "+SemTagMenu.nls.a11y_photo+"' role='region' aria-label='UserImage'/></div></span>");
_8.write("<div class='businessCard'><ul role='region' aria-label='listitem'dir='"+_5+"'>");
_8.write("<li class='cardName' onkeydown=\"SemTagMenu.catchEscape();\" onkeyup=\"SemTagMenu.catchKeyup();\" role='region' aria-label='listitem'><a href='#' style='text-Decoration:none;color:black'>"+_4.fn+"</a></li>");
if(typeof (SemTagAwrns)!="undefined"&&typeof (_4.X.ststatus)!="undefined"&&(_4.X.ststatus=="online"||_4.X.ststatus=="away")){
_8.write("<span id='statusIcon' style='vertical-align:text-top'><a href='#' style='text-Decoration:none;color:black'>"+SemTagAwrns.st+_19+"</a></span>");
}
if(STSPG.collapsedItems!=null){
_8.write(SemTagPerson.getItemsAsHtml(STSPG.collapsedItems,"collapsed"));
}
_8.write("</ul></div>");
if(STSPG.showDetailsFlag){
_8.write("<div class='showMoreDiv'>");
_8.write("<span id='expCollapSpan' tabIndex=0 alt='"+SemTagMenu.nls.ally_collapsedImage+"'title='"+SemTagMenu.nls.ally_collapsedImage+"'onClick='SemTagPerson.imgClicked();' onKeydown='SemTagPerson.imgClicked();'><img id='expCollapImg'src='"+SemTagPerson.collapsedImgUrl+"' role='region' aria-label='showMore'/> <label id='toggleLabel' class='showMoreLabel'>"+SemTagMenu.nls.ally_showMore+"</label></font></span>");
_8.write("</div>");
}
_8.write("<div class='businessCardExtended' id='expandedSection' style='display:none'><ul role='region' aria-label='listItem' style='padding-top:5px;align:left;' dir='"+_5+"'>");
if(STSPG.expandedItems!=null){
_8.write(SemTagPerson.getItemsAsHtml(STSPG.expandedItems,"expanded"));
}
_8.write("<li></li></ul></div>");
_8.write("</div>");
}
}
},getItemsAsHtml:function(_1b,_1c){
var _1d=new String("");
if(_1b!=null){
var _1e=_1b.split(",");
var i=0;
while(i<_1e.length){
var _1f=_1e[i].replace(/^\s+|\s+$/g,"");
var _20=new String("");
if(_1f.match("businessCategory")){
_20=".category";
}else{
if(_1f.match("carLicense")){
_20=".X.carlicense";
}else{
if(_1f.match("cn")&&_1f.length==2){
_20=".fn";
}else{
if(_1f.match("countryName")){
_20=".adr.countryname";
}else{
if(_1f.match("departmentNumber")){
_20=".X.departmentnumber";
}else{
if(_1f.match("description")){
_20=".note";
}else{
if(_1f.match("displayName")){
_20=".fn";
}else{
if(_1f.match("employeeNumber")){
_20=".X.employeenumber";
}else{
if(_1f.match("employeeType")){
_20=".X.employeetype";
}else{
if(_1f.match("facsimileTelephoneNumber")){
_20=".tel.fax";
}else{
if(_1f.match("givenName")){
_20=".n.givenname";
}else{
if(_1f.match("homePostalAddress")){
_20=".X.homeaddress";
}else{
if(_1f.match("ibm-gender")){
_20=".X.gender";
}else{
if(_1f.match("ibm-generationQualifier")){
_20=".n.honorificsuffix";
}else{
if(_1f.match("ibm-hobby")){
_20=".X.hobby";
}else{
if(_1f.match("ibm-jobTitle")){
_20=".title";
}else{
if(_1f.match("ibm-middleName")){
_20=".n.additionalname";
}else{
if(_1f.match("ibm-otherEmail")){
_20=".email.X_notes";
}else{
if(_1f.match("ibm-personalTitle")){
_20=".n.honorificprefix";
}else{
if(_1f.match("ibm-primaryEmail")){
_20=".email.internet";
}else{
if(_1f.match("mail")&&_1f.length==4){
_20=".email.internet";
}else{
if(_1f.match("ibm-regionalLocale")){
_20=".X.locale";
}else{
if(_1f.match("ibm-timeZone")){
_20=".tz";
}else{
if(_1f.match("initials")){
_20=".X.initials";
}else{
if(_1f.match("localityName")){
_20=".adr.locality";
}else{
if(_1f.match("manager")){
_20=".X.manager";
}else{
if(_1f.match("mobile")){
_20=".tel.cell";
}else{
if(_1f.match("o")&&_1f.length==1){
_20=".org.name";
}else{
if(_1f.match("ou")&&_1f.length==2){
_20=".org.unit";
}else{
if(_1f.match("pager")){
_20=".tel.pager";
}else{
if(_1f.match("postalAddress")){
_20=".X.fulladdress";
}else{
if(_1f.match("postalCode")){
_20=".adr.postalcode";
}else{
if(_1f.match("preferredLanguage")){
_20=".X.language";
}else{
if(_1f.match("roomNumber")){
_20=".adr.extendedaddress";
}else{
if(_1f.match("secretary")){
_20=".X.secretary";
}else{
if(_1f.match("seeAlso")){
_20=".url";
}else{
if(_1f.match("sn")&&_1f.length==2){
_20=".n.familyname";
}else{
if(_1f.match("stateOrProvinceName")){
_20=".adr.region";
}else{
if(_1f.match("street")){
_20=".adr.streetaddress";
}else{
if(_1f.match("telephoneNumber")){
_20=".tel.voice";
}else{
if(_1f.match("uid")&&_1f.length==3){
_20=".uid";
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if(0<_20.length){
var _21=new String("");
var pos=_20.indexOf(".",1);
while(pos!=-1){
if(0<_21.length){
_21+=" && ";
}
_21+="SemTagPerson.currentPerson"+_20.substring(0,pos);
pos=_20.indexOf(".",pos+1);
}
if(0<_21.length){
_21+=" && ";
}
_21+="SemTagPerson.currentPerson"+_20;
var _22=0;
if(_1c.match("expanded")){
_22=0;
}
if(_1c.match("collapsed")){
_22=1;
}
var _23=_21.toString();
var _24=eval(_21.toString());
var _25="<li +tabindex="+_22+" style='padding-bottom:3px'> "+eval(_21.toString())+"</li>";
if(_1f.indexOf("mail")!=-1){
_25="<li><a href='mailto: "+eval(_21.toString())+"'> "+eval(_21.toString())+"</a></li>";
}
if(eval(_21.toString())){
_1d+=_25;
}
}
i++;
}
}
return _1d;
},imgClicked:function(){
var _26=document.getElementById("expCollapImg");
var _27=document.getElementById("expCollapSpan");
var _28=document.getElementById("toggleLabel");
var _29=document.getElementById("expandedSection");
var _2a=navigator.appName;
if(_2a=="Netscape"){
_29.style.width="240";
}else{
_29.style.width="378";
}
if(_26.src.indexOf(SemTagPerson.expandedImgUrl)>1){
_26.src=SemTagPerson.collapsedImgUrl;
_27.title=SemTagMenu.nls.ally_collapsedImage;
_28.innerHTML=SemTagMenu.nls.ally_showMore;
}else{
_26.src=SemTagPerson.expandedImgUrl;
_27.title=SemTagMenu.nls.ally_expandImage;
_28.innerHTML=SemTagMenu.nls.ally_showLess;
}
var _2b=document.getElementById("expandedSection");
_2b.style.display=(_2b.style.display!="none"?"none":"");
},imgHoverIn:function(){
var _2c=document.getElementById("personImg");
var _2d=document.getElementById("personImg1");
_2c.style.display="none";
_2d.style.display="";
},imgHoverOut:function(){
var _2e=document.getElementById("personImg");
var _2f=document.getElementById("personImg1");
_2e.style.display="";
_2f.style.display="none";
},getInlineMarkup:function(_30,_31,_32){
var _33=_30.email.internet;
_32.write("<div class='personMenu'>");
_32.write("<div class='photoCard'><img src='"+_30.photo+"' alt=''/></div>");
_32.write("<div class='businessCard' dir='"+_31+"'>");
var _34=(_30._headeronly?"class='vcard X-person-inside-inline'":"");
_32.write("<ul "+_34+" dir='"+_31+"'>");
_32.write("<li class='cardName'><span class='fn'>"+_30.fn+"</span></li>");
_32.write("<li class='email'><span class'type' style='display:none;'>internet</span><span class='value'>"+_33+"</span></li>");
if(_30.title){
_32.write("<li>"+_30.title+"</li>");
}
if(_30.tel&&_30.tel.voice){
_32.write("<li>"+_30.tel.voice+"</li>");
}
_32.write("</ul>");
_32.write("</div>");
if(_30._headeronly){
_32.write("<div style='clear:both;'>");
}else{
_32.write("<div class='personMenuActions' dir='"+_31+"' style='clear:both;'>");
_32.write("<ul>");
_32.write("<li><a href='NEEDSWORK"+"'>"+SemTagPerson.nls.view_person+"</a></li>");
_32.write("<li><a href='mailto:"+_33+"'>"+SemTagPerson.nls.send_email+"</a></li>");
_32.write("<li><a href='NEEDSWORK"+"'>"+SemTagPerson.nls.add_to_contact+"</a></li>");
_32.write("</ul>");
}
_32.write("</div>");
_32.write("</div>");
},openPersonRecord:function(id){
var _35;
var _36=null;
if(id!=="undefined"&&id!=null){
_36=id;
}else{
_35=SemTagPerson.currentPerson;
if(_35&&_35.uid&&_35.uid.length>0){
_36=_35.uid;
}else{
if((typeof (_35.email)!="undefined"&&typeof (_35.email.internet)!="undefined"&&0<_35.email.internet.length)){
_36=_35.email;
}else{
if(_35&&_35.userObjectID&&_35.userObjectID.length>0){
_36="OBJID="+_35.userObjectID;
}
}
}
}
var _37=encodeURIComponent(_36);
var _38=encodeURIComponent(_37);
var _39=SemTagPerson.getPersonResolverUrl();
var _3a=SemTagPerson.getPersonResolverUrl().replace("TOBEREPLACED",_38);
window.open(SemTagPerson.getPersonResolverUrl().replace("TOBEREPLACED",_38),null,"height=640,width=512,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");
},openCardORPersonRecord:function(id){
if(STSP.isMobile){
availAttrib.retrieveAttribute();
SemTagPerson.showMenu();
}else{
var _3b=SemTagMenu.currentElem;
var _3c=SemTagUtil.getHcardAttributeValue("X-person-profile-inplace",_3b);
if(_3c){
javascript:
doShowProfile(id);
}else{
SemTagPerson.openPersonRecord(id);
}
}
},addToSametimeList:function(){
var _3d=SemTagPerson.currentPerson.email.internet;
var fn_=encodeURIComponent(SemTagPerson.currentPerson.fn);
var fn=encodeURIComponent(fn_);
window.open(SemTagPerson.getPersonResolverUrl().replace("TOBEREPLACED",_3d+"/"+fn),null,"height=640,width=512,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");
},out:function(){
this.buffer="";
this.write=function(str){
this.buffer+=str;
};
},processHcards:function(_3e){
var _3f=_3e?_3e.length:0;
if(!_3e||_3f==0){
return;
}
for(var i=0;i<_3e.length;i++){
var _40=_3e[i];
var _41=SemTagPerson.getNameElement(_40);
if(!_41){
continue;
}
var _42=_41.getAttribute(STSP.liveElemPrefix+"id");
if(_42&&STSP.ifConnUrlExists=="false"){
if(SemTagPerson.activeElems[_42]){
continue;
}else{
continue;
}
}
var _43=STSP.getElementsByClassName("email",_40);
_43=_43||null;
if((_43==null||_43.length==0)&&STSP.ifConnUrlExists=="true"){
}
if(STSP.ifConnUrlExists=="true"&&STSP.isconnServerNew){
var _44=_45?_45.internet:"Not defined";
try{
if(eval("window.lconn != null")==false||(lconn.profiles==null||lconn.profiles=="undefined")){
SemTagPerson.processUntilAvailable(SemTagPerson.processHcards,"window.lconn != null && !(lconn.profiles == null || lconn.profiles == 'undefined')",null,null,null,_3e);
}else{
lconn.profiles.bizCard.bizCard.processTag(_41);
}
}
catch(e){
}
}
var _46=STSP.getElementsByClassName("userObjectId",_40);
var _45=SemTagUtil.getHcardAttributeValue("email",_40);
if(!_46){
if(!_45.internet){
var uid=SemTagUtil.getHcardAttributeValue("uid",_40);
if(!uid){
continue;
}
}
}
if(SemTagPerson.isInline(_40)){
var _47={"target":_41};
SemTagPerson.requestPersonInfo(_47);
}else{
var _48=STSP.getTextValue(_41);
var _49=_48.indexOf("click");
var _4a=_48.substring(0,_49)+SemTagPerson.nls.hover_label+" "+SemTagMenu.nls.a11y_hover;
if(STSP.ifConnUrlExists=="false"||(STSP.ifConnUrlExists=="true"&&STSP.isconnServerNew==false)){
STSP.addHover(_41,SemTagPerson.showHover,SemTagPerson.showMenu,_4a);
}else{
var _4b=_41.getAttribute(STSP.refcntAttr);
if(_4b){
_41.setAttribute(STSP.refcntAttr,parseInt(Number(_4b)+1));
}else{
_41.setAttribute(STSP.refcntAttr,"1");
STSP.hoverIdx++;
_41.setAttribute(STSP.liveElemPrefix+"id",STSP.hoverIdx);
}
}
_42=_41.getAttribute(STSP.liveElemPrefix+"id");
if(_42){
SemTagPerson.activeElems[_42]=true;
}
}
}
},processUntilAvailable:function(_4c,_4d,_4e,_4f,_50,_51){
if(typeof (_4c)!="function"){
return;
}
var _52=500;
var _53=20;
var _54=true;
if(typeof (_4f)=="number"){
_52=_4f;
}
if(typeof (_50)=="number"){
_53=_50;
}
if(typeof (_4e)=="boolean"){
_54=_4e;
}
var _55="";
var _56=0;
console.log("eval(test) is :"+eval(_4d));
var _57=Array.prototype.slice.call(arguments);
var _58=_57.shift();
var _59=_57.shift();
var _5a=_57.shift();
var _5b=_57.shift();
var _5c=_57.shift();
if(eval(_4d)){
if(_51!=null){
_4c.apply(null,Array.prototype.slice.call(_57));
}else{
_4c();
}
return;
}
_55=window.setInterval(function(){
_56++;
if(eval(_4d)){
window.clearInterval(_55);
if(_51!=null){
_4c.apply(null,Array.prototype.slice.call(_57));
}else{
_4c();
}
}else{
if(_56>=_53){
window.clearInterval(_55);
if(_54){
throw new Error("processUntilAvailable: test was never met: "+_4d);
}
}
}
},_52);
},isInline:function(_5d){
var _5e=SemTagUtil.getHcardAttributeValue(SemTagPerson.INLINE,_5d);
return _5e;
},processMailtos:function(_5f){
if(!_5f||_5f.length==0){
return;
}
while(_5f.length>0){
var _60=_5f.pop();
STSP.watchEvent(_60,"mouseover",SemTagPerson.tagMouseover,false);
}
},hcardsAdded:function(_61){
var _62=STSP.getNodes("hcard");
var _63=_62?_62.length:0;
if(_61&&_61.length>0){
SemTagPerson.processHcards(_61);
}else{
SemTagPerson.processHcards(STSP.getNodes("hcard"));
}
},hcardsAdded:function(){
var _64=STSP.getNodes("hcard");
var _65=_64?_64.length:0;
SemTagPerson.processHcards(STSP.getNodes("hcard"));
},mailtosAdded:function(){
SemTagPerson.processMailtos(STSP.getNodes("mailto"));
},showHover:function(_66){
var _67=SemTagUtil.getHcardAttributeValue("X-person-inside-inline",STSP.getLiveElementFromEvent(_66));
var _68=_67?null:SemTagPerson.nls.hover_label;
STSP.showHover(_66,SemTagPerson.showMenu,_68);
return false;
},showMenu:function(_69){
SemTagMenu.waitCursor();
SemTagMenu.stopEvent(_69);
SemTagPerson.requestPersonInfo(_69);
return false;
},renderCard:function(_6a){
var _6b=new BusinessCard.out();
BusinessCard.getMenuData(_6a,null,null,null,_6b);
var _6c=document.getElementById("businessCard");
_6c.innerHTML=_6b.buffer;
},requestPersonInfo:function(_6d){
SemTagPerson.callUserProfileServlet(SemTagPerson,_6d);
},dispatch:function(_6e){
var _6f=(_6e.email&&_6e.email.internet)?_6e.email.internet:null;
if(_6f){
SemTagPerson.requestor.dispatch(_6f.toLowerCase(),_6e);
}
},requestReturn:function(_70,_71,_72){
var _73=_70?"success":"fail";
var _74=_70?_71:SemTagPerson.emptyPerson();
if(_74){
var _75=STSP.getLiveElementFromEvent(_72);
SemTagPerson.fillPersonJsonMoreFromDom(_74,_75);
SemTagPerson.update(_74,_75,_72);
}else{
SemTagMenu.defaultCursor();
}
},appendObjectIdToUrl:function(_76){
var _77=SemTagPerson.basePumaResolvedUrl.indexOf(SemTagPerson.pumaUrl);
var _78="";
if(_77>-1){
_78=SemTagPerson.basePumaResolvedUrl.substr(0,_77)+SemTagPerson.pumaUrl+"/"+_76+SemTagPerson.basePumaResolvedUrl.substr(_77+SemTagPerson.pumaUrl.length);
}
return _78;
},fillPersonJsonMoreFromDom:function(_79,_7a){
var _7b=STSP.findNameElementInHcard(_7a);
if(_7b){
var _7c=STSP.getTextValue(_7b);
var _7d=_7c.indexOf("click");
if(_7d>0){
_79.fn=_7c.substring(0,_7d);
}else{
_79.fn=STSP.getTextValue(_7b);
}
}
var _7e=SemTagPerson.getElementEmail(_7a);
if(_7e){
_79.email={"internet":_7e};
}
var uid=SemTagUtil.getHcardAttributeValue("uid",_7a);
if(uid){
_79.uid=uid;
}
var _7f=SemTagUtil.getHcardAttributeValue("userObjectId",_7a);
if(_7f&&_7f.length>0){
_79.userObjectID=_7f;
}
if(_79.userObjectID){
var _80=_79.userObjectID.split("/");
if(_80&&_80.length>0){
_79.userObjectID=_80[_80.length-1];
}
}
if(_79){
var _81=(_79.photo&&_79.photo.length>0?"not null":"is not available");
}
if(_79&&_79.photo&&_79.photo.length>0){
if(_79.userObjectID&&_79.userObjectID.length>0){
var _82=SemTagPerson.appendObjectIdToUrl(_79.userObjectID+"/jpegPhoto");
_79.photo=_82+"&index=0";
}else{
_79.photo=_79.photoURL;
}
}
if(!_79.tel||!_79.tel.voice){
var _83=STSP.findElementByNameInHcard(_7a,"tel");
if(_83){
var _84=STSP.getTypedValue(_83,"voice");
_79.tel={"voice":_84["voice"]};
}
}
var _85=STSP.findElementByNameInHcard(_7a,"adr");
var _86={};
if(_85){
_86=SemTagPerson.getAddressJson(_85);
_79.adr=_86;
}
if(typeof (_79.adr)!="undefined"&&(_79.adr.locality||_79.adr.countryname||_79.adr.region)){
if(!_79.X){
_79.X={};
}
var _81=_79.adr.locality+", "+_79.adr.region+" "+_79.adr.countryname;
_79.X.worklocation=_81.replace(/undefined/g,"");
}
if(typeof (SemTagAwrns)!="undefined"){
if(!_79.X){
_79.X={};
}
_79.X.imn=SemTagAwrns.getSametimeId(_7a);
_79.X.ststatus=_7b.getAttribute("semtag_ststatus");
}
},emptyPerson:function(){
var _87={"fn":"","email":{"internet":""}};
return _87;
},update:function(_88,_89,_8a){
SemTagPerson.currentPerson=_88;
var _8b=STSP.getParentByClassName("vcard",_89);
var _8c=SemTagUtil.getHcardAttributeValue("X-person-header-only",_8b);
if(_8c){
_88._headeronly=true;
}
SemTagPerson.readHcardContext(_8b,_88);
STSP.setSemanticTagValue("hcard",_89,_88);
if(SemTagPerson.isInline(_8b)){
var out=new SemTagPerson.out();
SemTagPerson.getInlineMarkup(_88,STSP.bidi,out);
_8b.innerHTML=out.buffer;
var _8d=SemTagUtil.getNodeClassValue(_8b);
SemTagUtil.setNodeClassValue(_8b,_8d.replace(/vcard/,"vcard-done"));
if(_8c){
var _8e=STSP.getElementsByClassName("vcard",_8b,1);
if(_8e){
SemTagPerson.processHcards(_8e);
}
}
}else{
var _8f=new Array();
var _90="personMenuActions";
var _91=new SemTagPerson.out();
var _92=new SemTagPerson.out();
SemTagPerson.getMarkup(_88,STSP.bidi,_8f,_90,_91,_92);
var _93=(typeof (_88.email)!="undefined"&&_88.email.internet)?_88.email.internet:null;
STSP.setMenuData(_8a,_8f,_90,STSP.getMenuHeaderJson(_91.buffer,"text/html",-100),STSP.getMenuFooterJson(_92.buffer,"text/html",-100));
if(STSP.ifConnUrlExists=="true"&&(STSP.isconnServerNew===false)&&_93!=null){
if(eval("window.BusinessCard != null")==false){
SemTagPerson.processUntilAvailable(BusinessCard.getProfileInfo,"(window.BusinessCard != null)",null,null,null,true,"SemTagPerson.renderCard",_93);
}else{
BusinessCard.getProfileInfo(true,"SemTagPerson.renderCard",_93);
}
}
}
},readHcardContext:function(_94,_95){
var _96=SemTagUtil.getHcardAttributeValue("X-person-inside-inline",_94);
if(_96){
_95._inline=true;
}
var _97=SemTagUtil.getHcardAttributeValue("X-person-inside-profile",_94);
if(_97){
_95._inprofile=true;
}
var _98=SemTagUtil.getHcardAttributeValue("X-person-profile-inplace",_94);
if(_98){
_95._profileinplace=true;
}
},getElementEmail:function(_99){
if(!_99){
alert("getElementEmail called with: "+_99);
}
var _9a;
var _9b=STSP.getParentByClassName("vcard",_99);
if(_9b){
_9a=SemTagUtil.getHcardAttributeValue("email",_9b);
_9a=_9a.internet;
}else{
if(_99.tagName=="A"&&_99.href.match(/^mailto:/)){
_9a=_99.href.replace(/^mailto:/,"");
}
}
return _9a;
},getNameElement:function(_9c){
try{
if(_9c.className!="vcard"){
_9c=STSP.getParentByClassName("vcard",_9c);
}
var _9d=STSP.getElementsByClassName("fn",_9c,1)[0];
if(!_9d){
_9d=STSP.getElementsByClassName("n",_9c,1)[0];
}
return _9d;
}
catch(e){
}
return null;
},getAddressJson:function(_9e){
var _9f={"postofficebox":"","streetaddress":"","locality":"","region":"","postalcode":"","countryname":""};
var _a0=_9e;
if(_a0.className!="adr"){
_a0=STSP.getParentByClassName("adr",_9e);
}
if(_a0){
var _a1=_a0.childNodes;
for(var i=0;i<_a1.length;i++){
SemTagPerson.readAddressInfo(_a1[i],_9f);
}
}else{
_9f.streetaddress="5 Technology Park Drive";
_9f.locality="Westford";
_9f.region="MA";
_9f.postalcode="01886";
_9f.countryname="USA";
}
return _9f;
},readAddressInfo:function(_a2,_a3){
var _a4=_a2.childNodes;
if(_a4){
for(var i=0;i<_a4.length;i++){
SemTagPerson.readAddressInfo(_a4[i],_a3);
}
}
if(_a2.className!=null){
var cn=_a2.className;
if(cn.match(/(^|\s)post-office-box(\s|$)/i)){
_a3.postofficebox=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)extenodeed-address(\s|$)/i)){
_a3.extenodeedaddress=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)street-address(\s|$)/i)){
_a3.streetaddress=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)locality(\s|$)/i)){
_a3.locality=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)region(\s|$)/i)){
_a3.region=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)postal-code(\s|$)/i)){
_a3.postalcode=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)country-name(\s|$)/i)){
_a3.countryname=STSP.getTextValue(_a2);
}
}
}
}
}
}
}
}
},existsInObject:function(_a5,_a6){
var _a7=_a6.split(".");
var _a8=_a5;
var _a9=true;
for(var i=0;i<_a7.length;i++){
var _aa;
if(_a7[i].indexOf("(")>-1){
_aa=_a7[i].substr(0,_a7[i].indexOf("("));
}else{
_aa=_a7[i];
}
if(_a8[_aa]){
_a8=_a8[_aa];
}else{
_a9=false;
break;
}
}
return _a9;
},executeJSTargetInFrame:function(_ab){
if(_ab.indexOf("javascript:")>-1){
var _ac=_ab.substr(("javascript:".length));
var _ad=window;
if(!SemTagPerson.existsInObject(window,_ac)){
for(var i=0;i<parent.frames.length;i++){
if(SemTagPerson.existsInObject(parent.frames[i],_ac)){
_ad=parent.frames[i];
break;
}
}
}else{
}
_ad.eval(_ab);
}else{
}
},getTagFromServer:function(_ae){
var _af=STSP.getLiveElementFromEvent(_ae);
var _b0=SemTagPerson.getElementEmail(_af);
if(_b0){
_b0=_b0.toLowerCase();
var src=SemTagPerson.servletUrl.replace(/@@@EMAIL@@@/,_b0);
SemTagPerson.requestor.request(src,6000,SemTagPerson.requestReturn,_af,_b0);
}else{
var evt={"target":_af};
SemTagPerson.requestReturn(false,null,evt);
}
},callUserProfileServlet:function(_b1){
var _b2="";
var _b3=STSP.getLiveElementFromEvent(_b1);
var _b4="";
var _b5=SemTagPerson.getElementEmail(_b3);
if(_b5){
_b4="ibm-primaryEmail="+_b5;
}
var uid=SemTagUtil.getHcardAttributeValue("uid",_b3);
if(uid){
_b4="identifier="+uid;
}
_b2=SemTagUtil.getHcardAttributeValue("userObjectId",_b3);
var xml=null;
try{
if(_b2&&_b2.length>0){
var _b6=SemTagPerson.appendObjectIdToUrl(_b2)+"&expandRefs=true&includeAttributes=@@@AVAILATTRIBUTES@@@";
_b6=_b6.replace("@@@AVAILATTRIBUTES@@@",STSP.availAttribStr);
xml=ibm.portal.xml.loadXml(_b6.replace("@@@AVAILATTRIBUTES@@@",STSP.availAttribStr));
}else{
if(uid&&uid.length>0){
var _b6=SemTagPerson.basePumaResolvedUrl+"&@@@QUERY@@@&includeAttributes=@@@AVAILATTRIBUTES@@@";
_b6=_b6.replace("@@@AVAILATTRIBUTES@@@",STSP.availAttribStr);
try{
xml=ibm.portal.xml.loadXml(_b6.replace("@@@QUERY@@@",_b4));
}
catch(er){
if(uid.indexOf("uid=")==0){
_b4=uid;
}else{
_b4="uid="+uid;
}
var _b7=SemTagPerson.basePumaResolvedUrl+"&expandRefs=true&includeAttributes=@@@AVAILATTRIBUTES@@@&searchAttributes=@@@QUERY@@@";
_b7=_b7.replace("@@@AVAILATTRIBUTES@@@",STSP.availAttribStr);
xml=ibm.portal.xml.loadXml(_b7.replace(/@@@QUERY@@@/,_b4));
}
}else{
var _b6=SemTagPerson.basePumaResolvedUrl+"&expandRefs=true&includeAttributes=@@@AVAILATTRIBUTES@@@&searchAttributes=@@@QUERY@@@";
_b6=_b6.replace("@@@AVAILATTRIBUTES@@@",STSP.availAttribStr);
xml=ibm.portal.xml.loadXml(_b6.replace(/@@@QUERY@@@/,_b4));
}
}
}
catch(e){
var evt={"target":_b3};
SemTagPerson.requestReturn(false,null,evt);
return false;
}
if(xml){
if(0<_b2.length){
var xsl=ibm.portal.xml.loadXsl(STSPG.contextUrl+"/xsl/UserAtomByIdToPersonJson.xsl");
}else{
var xsl=ibm.portal.xml.loadXsl(STSPG.contextUrl+"/xsl/UserAtomToPersonJson.xsl");
}
var _b8=ibm.portal.xml.transform(xml,xsl,null,null,true);
var _b9=eval(_b8)[0];
if(!_b9&&!_b9.fn){
_b9=SemTagPerson.emptyPerson();
}
SemTagPerson.fillPersonJsonMoreFromDom(_b9,_b3);
SemTagPerson.update(_b9,_b3,_b1);
return;
}else{
}
var evt={"target":_b3};
SemTagPerson.requestReturn(false,null,evt);
}};
SemTagPerson.init();


var SemTagAwrns={SVCNAME:"sametime",hcards:new Array(),activeElems:[],hasApplet:false,imIds:STSPG.preferredImIds,st:"",stIR:false,init:function(){
STSP.setCallback(SemTagAwrns.SVCNAME,SemTagAwrns.hcardsAdded);
SemTagAwrns.processHcards(STSP.getNodes(SemTagAwrns.SVCNAME));
},hcardsAdded:function(){
SemTagAwrns.processHcards(STSP.getNodes(SemTagAwrns.SVCNAME));
},processHcards:function(_1){
_1=_1||null;
if(_1==null){
return;
}
STSP.sametimeSTProxy=(typeof (stproxy)!=="undefined");
STSP.sametimeSTLinks=((typeof (stproxy)==="undefined")&&(typeof (prepareSametimeLink)!=="undefined"));
STSP.stNI=((typeof (stproxy)==="undefined")&&(typeof (prepareSametimeLink)==="undefined"));
if(!STSP.sametimeSTProxy&&!STSP.sametimeSTLinks){
return;
}else{
}
SemTagAwrns.hcards=[];
SemTagAwrns.hcards=_1;
if(STSP.sametimeSTProxy){
stproxy.addOnLoad(function(){
var _2=SemTagAwrns.hcards;
for(var i=0;i<_2.length;i++){
var _3=_2[i];
if(SemTagAwrns.disabled(_3)){
continue;
}
var _4=STSP.findNameElementInHcard(_3);
if(!_4){
continue;
}
var _5=_4.getAttribute(STSP.liveElemPrefix+"id");
var _6=SemTagAwrns.activeElems[_5];
if(_5==null){
continue;
}
if(_5&&SemTagAwrns.activeElems[_5]){
continue;
}
var _7=SemTagAwrns.getSametimeId(_3);
var _8=SemTagUtil.getHcardAttributeValue("X-sametime-resolve",_3);
if(!_8){
continue;
}
var _9=document.createElement("span");
var _a=SemTagUtil.getHcardAttributeValue("x-sametime-no-icon",_3);
SemTagAwrns.stIR=false;
if(_a){
SemTagAwrns.stIR=true;
}
var _b=stproxy.getLiveNameModel(_7,{"isInBuddyList":false,"forceWatchlist":true});
_b.portalId=_7;
var _c=SemTagAwrns.getStatus(_b.status);
if(_4){
_4.setAttribute("semtag_ststatus",_c);
}
if(!(SemTagAwrns.stIR)){
var _d=document.createElement("img");
_d.id=i;
_d.imgId=_b.id;
SemTagAwrns.setSTIS(_b,_d,stproxy);
_9.appendChild(_d);
_9.setAttribute("class","sametimeawarenessicon");
_9.className+=" sametimeawarenessicon";
_4.parentNode.insertBefore(_9,_4);
}
if(stproxy.hitch&&stproxy.hitch.connect){
stproxy.hitch.connect(_b,"onUpdate",SemTagAwrns.updateSTProxy);
}else{
_b.onUpdate=SemTagAwrns.updateSTProxy;
}
if(_5){
SemTagAwrns.activeElems[_5]=true;
}
}
});
}
if(STSP.sametimeSTLinks){
for(var i=0;i<_1.length;i++){
var _e=_1[i];
if(SemTagAwrns.disabled(_e)){
continue;
}
SemTagAwrns.hcards=[];
SemTagAwrns.hcards.push(_e);
var _f=STSP.findNameElementInHcard(_e);
if(!_f){
continue;
}
var _10=_f.getAttribute(STSP.liveElemPrefix+"id");
var _11=SemTagAwrns.activeElems[_10];
if(_10==null){
continue;
}
if(_10&&SemTagAwrns.activeElems[_10]){
continue;
}
var _12=SemTagAwrns.getSametimeId(_e);
var _13=SemTagUtil.getHcardAttributeValue("X-sametime-resolve",_e);
if(_13){
var _14=document.createElement("span");
}
if(STSP.sametimeSTLinks&&_13){
var od=SemTagUtil.getOwnerDocument(_e);
if(od.location!=document.location){
var f=SemTagUtil.getFrameElement(_e);
if(f){
if(f.id=="wpsFLY_flyoutIFrame"){
continue;
}
}
}
_14.style.verticalAlign="text-top";
}
if(STSP.sametimeSTLinks&&_13){
st=prepareSametimeLink(_12,"",_13,"text:no;");
_14.innerHTML=st;
_f.parentNode.insertBefore(_14,_f);
}
if(_10){
SemTagAwrns.activeElems[_10]=true;
}
}
}
},setSTIS:function(_15,_16,_17){
if(_15.status>=_17.awareness.OFFLINE&&_15.status<=_17.awareness.IN_MEETING_MOBILE){
switch(_15.status){
case 0:
_16.src=_17.uiControl.iconPaths.iconOffline;
break;
case 1:
_16.src=_17.uiControl.iconPaths.iconAvailable;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 4:
case 2:
_16.src=_17.uiControl.iconPaths.iconAway;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 3:
_16.src=_17.uiControl.iconPaths.iconDnd;
break;
case 5:
_16.src=_17.uiControl.iconPaths.iconInMeeting;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 6:
_16.src=_17.uiControl.iconPaths.iconAvailableMobile;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 7:
_16.src=_17.uiControl.iconPaths.iconAwayMobile;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 8:
_16.src=_17.uiControl.iconPaths.iconDndMobile;
break;
case 9:
_16.src=_17.uiControl.iconPaths.iconAwayMobile;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 10:
_16.src=_17.uiControl.iconPaths.iconInMeetingMobile;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
default:
_16.src=_17.NOT_USING;
break;
}
_16.title=_15.statusMessage;
_16.alt=_15.statusMessage;
}
},disabled:function(_18){
var _19=SemTagUtil.getHcardAttributeValue("X-no-awareness",_18);
return _19;
},getSametimeId:function(_1a){
var _1b=null;
for(var i=0;i<SemTagAwrns.imIds.length;i++){
var _1c=STSP.findElementByNameInHcard(_1a,SemTagAwrns.imIds[i]);
if(_1c){
_1b=STSP.getTextValue(_1c);
if(0<_1b.length){
break;
}
}
}
return _1b;
},updateST:function(_1d){
var _1e=_1d.split(";");
var _1f=_1e[0];
var _20=_1e[1];
for(var i=0;i<SemTagAwrns.hcards.length;i++){
var vc=SemTagAwrns.hcards[i];
var _21=SemTagAwrns.getSametimeId(vc);
if(_21==_1f){
var _22=STSP.findNameElementInHcard(vc);
if(_22){
_22.setAttribute("semtag_ststatus",_20);
}
}
}
},updateSTProxy:function(){
var _23=SemTagAwrns.getStatus(this.status);
for(var i=0;i<SemTagAwrns.hcards.length;i++){
var vc=SemTagAwrns.hcards[i];
var _24=SemTagAwrns.getSametimeId(vc);
if(_24.toLowerCase()==this.portalId.toLowerCase()){
var _25=STSP.findNameElementInHcard(vc);
if(_25){
_25.setAttribute("semtag_ststatus",_23);
}
var _26=SemTagUtil.getHcardAttributeValue("x-sametime-no-icon",vc);
SemTagAwrns.stIR=false;
if(_26){
SemTagAwrns.stIR=true;
}
if(!(SemTagAwrns.stIR)){
var _27=STSP.getElementsByClassName("sametimeawarenessicon",vc);
var _28=_27!=null||_27.length>0?_27[0]:null;
if(_28){
icon=_28.firstChild;
SemTagAwrns.setSTIS(this,icon,stproxy);
}else{
}
}
}
}
},getStatus:function(_29){
var val="";
switch(_29){
case 0:
val="offline";
break;
case 1:
val="online";
break;
case 2:
val="away";
break;
case 3:
val="donotdisturb";
break;
case 4:
val="away";
break;
case 5:
val="meeting";
break;
default:
val="offline";
break;
}
return val;
},openCall:function(_2a){
if(stproxy.policies.get(stproxy.policies.TCSPI)){
stproxy.call.byId(_2a);
}
},openInstantMeeting:function(_2b){
if(stproxy.policies.get(stproxy.policies.DISABLE_MEETING_INVITATION)){
stproxy.createMeeting(_2b);
}
},openSendAnnouncement:function(_2c){
if(stproxy.policies.get(stproxy.policies.ALLOW_ANNOUNCEMENT)){
stproxy.createAnnouncement(_2c);
}
},openAddToContacts:function(_2d){
stproxy.createAdder(_2d);
},openChat:function(_2e,_2f){
if(STSP.sametimeSTLinks){
STLinksCreateIM(_2e);
}
if(STSP.sametimeSTProxy){
if(_2f==null){
_2f=stproxy.getLiveNameModel(_2e,{"isInBuddyList":false,"forceWatchlist":true});
}
stproxy.openChat(_2f.id);
}
}};
if(typeof wps_userStatusFuncs=="undefined"){
wps_userStatusFuncs=new Object();
}
wps_userStatusFuncs["STLinksUserStatusChanged_SA"]=0;
if(typeof wps_loggedInFuncs=="undefined"){
wps_loggedInFuncs=new Object();
}
wps_loggedInFuncs["STLinksLoggedIn_SA"]=0;
if(typeof wps_appletStartedFuncs=="undefined"){
wps_appletStartedFuncs=new Object();
}
wps_appletStartedFuncs["STLinksAppletStarted_SA"]=0;
function STLinksUserStatusChanged_SA(_30,_31,_32,_33,_34){
var val="";
switch(_32){
case 32:
val="online";
break;
case 64:
val="away";
break;
case 554:
val="online";
break;
case 96:
val="away";
break;
case 608:
val="away";
break;
case 128:
val="donotdisturb";
break;
default:
val="offline";
break;
}
var arg=_30+";"+val;
if(STSP.sametimeSTLinks){
SemTagAwrns.updateST(arg);
}
};
function STLinksAppletStarted_SA(){
SemTagAwrns.hasApplet=true;
};
function STLinksLoggedIn_SA(id,_35){
};
window.setTimeout(SemTagAwrns.init,STSP.DELAY);



	

var SemTagC2A={serviceId:"c2a",sourceTagName:"c2a:source",typeNameTagName:"c2a:typename",valueTagName:"c2a:value",displayTagName:"c2a:display",anchorTagName:"c2a:anchor",targetTagName:"c2a:target",menulabelTagName:"c2a:action-label",paramTagName:"c2a:action-param",defaultNameSpaceStr:"IBM_C2A_DEFAULT_NAMESPACE",namespaceSep:"#",liveObjectNamespace:"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/livetext",targetsAvail:null,targetNodeIDs:new Object(),sourceNodeIDs:new Object(),currentValue:"",currentValArray:null,IDctr:0,c2aIdBaseStr:"IBMC2ASRVC_",c2aSourceIdBase:"IBMC2ASRVC_Source_",c2aTargetIdBase:"IBMC2ASRVC_Target_",nls:{"c2a_click_for_actions":STSPG.c2a_click_for_actions},init:function(){
if(!window.ibm){
window.ibm=new Object();
}
if(!window.ibm.portal){
window.ibm.portal=new Object();
}
window.ibm.portal.c2a=new Object();
for(var i=0;i<parent.frames.length;i++){
if(SemTagC2A.canAccessFrameContent(parent.frames[i])){
if(!parent.frames[i].ibm){
parent.frames[i].ibm=new Object();
}
if(!parent.frames[i].ibm.portal){
parent.frames[i].ibm.portal=new Object();
}
parent.frames[i].ibm.portal.c2a=new Object();
}
}
SemTagC2A.defineRegExpressions();
STSP.setCallback(SemTagC2A.serviceId,SemTagC2A.parseDOM);
STSP.setSpecialMenuProvider(SemTagC2A.getSpecialC2AMenuItems);
SemTagC2A.parseDOM();
},getSpecialC2AMenuItems:function(_1){
var _2=null;
try{
var _3=_1;
var _4=_1.parentNode;
var _5=STSP.getSemanticTagValues(_1);
for(var _6 in _5){
var _7=_5[_6];
if(!_7){
continue;
}
_2=SemTagC2A.getTargetMenuItems(SemTagC2A.getSpecialC2ASourceInfo(_6,_7));
}
}
catch(e){
}
return _2;
},showHover:function(_8){
STSP.showHover(_8,SemTagC2A.handleClick,SemTagC2A.nls.c2a_click_for_actions);
},canAccessFrameContent:function(_9){
var _a=false;
try{
if(window.location.host==_9.location.host&&window.location.protocol==_9.location.protocol){
_a=true;
}
}
catch(err){
}
return _a;
},findElementInWindowScope:function(_b){
var _c;
_c=document.getElementById(_b);
if(_c==null){
for(var i=0;i<parent.frames.length;i++){
if(SemTagC2A.canAccessFrameContent(parent.frames[i])){
_c=frames[i].document.getElementById(_b);
if(_c!=null){
break;
}
}
}
}
return _c;
},handleClick:function(_d){
if(!window.ibm){
window.ibm=new Object();
}
if(!window.ibm.portal){
window.ibm.portal=new Object();
}
window.ibm.portal.c2a=new Object();
for(var i=0;i<parent.frames.length;i++){
if(SemTagC2A.canAccessFrameContent(parent.frames[i])){
if(!parent.frames[i].ibm){
parent.frames[i].ibm=new Object();
}
if(!parent.frames[i].ibm.portal){
parent.frames[i].ibm.portal=new Object();
}
parent.frames[i].ibm.portal.c2a=new Object();
}
}
var _e=STSP.getLiveElementFromEvent(_d);
if(!SemTagC2A.isSource(_e)){
var _f=STSP.getParentByClassName(SemTagC2A.sourceTagName,_e);
}
SemTagC2A.generateMenuContents(_d,_f);
},parseDOM:function(){
SemTagC2A.processDomNodes(STSP.getNodes(SemTagC2A.serviceId));
SemTagC2A.processSources(SemTagC2A.sourceNodeIDs);
},processDomNodes:function(_10){
for(var _11 in SemTagC2A.sourceNodeIDs){
if(!SemTagC2A.findElementInWindowScope(_11)){
delete SemTagC2A.sourceNodeIDs[_11];
}
}
for(var _11 in SemTagC2A.targetNodeIDs){
if(!SemTagC2A.findElementInWindowScope(_11)){
delete SemTagC2A.targetNodeIDs[_11];
}
}
while(_10&&_10.length>0){
var _12=_10.pop();
var _13=_12.id;
if(_13!=null&&(SemTagC2A.exists(SemTagC2A.sourceNodeIDs,_13)||SemTagC2A.exists(SemTagC2A.targetNodeIDs,_13))){
continue;
}
if(SemTagC2A.isSource(_12)){
if(_12.id==null||_12.id==""){
_12.id=SemTagC2A.c2aSourceIdBase+SemTagC2A.IDctr;
SemTagC2A.IDctr++;
}
SemTagC2A.sourceNodeIDs[_12.id]="true";
}else{
if(SemTagC2A.isTarget(_12)){
if(_12.id==null||_12.id==""){
_12.id=SemTagC2A.c2aTargetIdBase+SemTagC2A.IDctr;
SemTagC2A.IDctr++;
}
SemTagC2A.targetNodeIDs[_12.id]="true";
}
}
}
SemTagC2A.updateAvailableTargets();
},exists:function(_14,_15){
if(_14[_15]&&_14[_15]=="true"){
return true;
}
return false;
},processSources:function(_16){
for(var _17 in _16){
var _18=SemTagC2A.findElementInWindowScope(_17);
var _19=SemTagC2A.getSourceInfo(_18);
var _1a=SemTagC2A.isTargetDefined(_19);
if(_19.value==null||_19.value==""){
break;
}
var _1b=_19.anchorNode.getAttribute("hasHover");
if(_1a||_19.display!=""){
if(_1b==null||_1b=="false"){
STSP.addHover(_19.anchorNode,SemTagC2A.showHover,SemTagC2A.handleClick);
_19.anchorNode.setAttribute("hasHover","true");
}
}else{
if(_1b=="true"){
STSP.removeHover(_19.anchorNode,SemTagC2A.showHover,SemTagC2A.handleClick);
}
_19.anchorNode.setAttribute("hasHover","false");
}
}
},defineRegExpressions:function(){
SemTagC2A.sourceRegExp=new RegExp("(^|\\s)"+SemTagC2A.sourceTagName+"(\\s|$)");
SemTagC2A.typeNameRegExp=new RegExp("(^|\\s)"+SemTagC2A.typeNameTagName+"(\\s|$)");
SemTagC2A.valueRegExp=new RegExp("(^|\\s)"+SemTagC2A.valueTagName+"(\\s|$)");
SemTagC2A.displayRegExp=new RegExp("(^|\\s)"+SemTagC2A.displayTagName+"(\\s|$)");
SemTagC2A.anchorRegExp=new RegExp("(^|\\s)"+SemTagC2A.anchorTagName+"(\\s|$)");
SemTagC2A.targetRegExp=new RegExp("(^|\\s)"+SemTagC2A.targetTagName+"(\\s|$)"),SemTagC2A.menulabelRegExp=new RegExp("(^|\\s)"+SemTagC2A.menulabelTagName+"(\\s|$)");
SemTagC2A.paramRegExp=new RegExp("(^|\\s)"+SemTagC2A.paramTagName+"(\\s|$)");
},isTarget:function(_1c){
if(_1c.tagName=="FORM"){
var _1d=SemTagUtil.getNodeClassValue(_1c).match(SemTagC2A.targetRegExp);
return _1d;
}else{
return false;
}
},isSource:function(_1e){
if(_1e.tagName=="SPAN"||_1e.tagName=="DIV"){
var _1f=SemTagUtil.getNodeClassValue(_1e).match(SemTagC2A.sourceRegExp);
return _1f;
}else{
return false;
}
},updateAvailableTargets:function(){
SemTagC2A.targetsAvail=null;
SemTagC2A.targetsAvail=new Array();
for(var _20 in SemTagC2A.targetNodeIDs){
var _21=SemTagC2A.findElementInWindowScope(_20);
var _22=_21.childNodes;
var _23=null;
var _24=null;
for(var i=0;i<_22.length;i++){
var _25=_22[i];
var _26=SemTagUtil.getNodeClassValue(_25);
if(_26==""){
continue;
}
if(_26.match(SemTagC2A.typeNameRegExp)){
var _27=SemTagC2A.getElementValue(_25);
var _28=SemTagC2A.parseTypeName(_27);
_23=_28.namespace;
_24=_28.type;
if(_24!=null){
if(_23==null){
_23=SemTagC2A.defaultNameSpaceStr;
}
if(typeof (SemTagC2A.targetsAvail[_23])=="undefined"){
SemTagC2A.targetsAvail[_23]=new Array();
}
SemTagC2A.targetsAvail[_23][_24]=true;
}
}
}
}
},parseTypeName:function(_29){
var _2a=null;
var _2b=null;
var _2c=_29.indexOf(SemTagC2A.namespaceSep);
if(_2c<0){
_2a=SemTagC2A.defaultNameSpaceStr;
_2b=_29;
}else{
_2a=_29.substring(0,_2c);
_2b=_29.substring(_2c+1);
}
var _2d;
if(_2a==SemTagC2A.liveObjectNamespace){
var _2e=_2b.indexOf(".");
if(_2e>0){
var _2f=_2b.substring(_2e+1);
_2b=_2b.substring(0,_2e);
_2d={"namespace":_2a,"type":_2b,"selector":_2f};
return _2d;
}
}
_2d={"namespace":_2a,"type":_2b};
return _2d;
},isTargetDefined:function(_30){
var _31=false;
for(var i=0;i<_30.typenames.length;i++){
if(!_30.typenames[i].namespace||_30.typenames[i].namespace==""){
_30.typenames[i].namespace=SemTagC2A.defaultNameSpaceStr;
}
if(typeof (SemTagC2A.targetsAvail[_30.typenames[i].namespace])!="undefined"){
var _32=SemTagC2A.targetsAvail[_30.typenames[i].namespace][_30.typenames[i].type];
_31=(typeof (_32)!="undefined"&&_32?true:false);
}
if(_31==true){
return _31;
}
}
return false;
},isTargetSourceMatch:function(_33,_34){
var _35;
var _36;
for(var i=0;i<_33.typenames.length;i++){
_35=_33.typenames[i];
for(var j=0;j<_34.typenames.length;j++){
_36=_34.typenames[j];
if(_35.namespace==_36.namespace){
if(_35.namespace==SemTagC2A.liveObjectNamespace){
var _37;
if(_36.selector){
_37=SemTagC2A.selectSubField(_33.value,_34.selector);
}else{
_37=_33.value;
}
if(_37&&_37!=null&&_37!=""){
return true;
}
}else{
if(_35.type==_36.type){
return true;
}
}
}
}
}
return false;
},getElementValue:function(_38){
var _39;
if(SemTagUtil.getNodeClassValue(_38).match(SemTagC2A.displayRegExp)){
_39=_38.innerHTML;
}else{
_39=_38.firstChild.nodeValue;
}
var _3a=_39==null?"":_39.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");
return _3a;
},fillC2AInfo:function(_3b,_3c){
var _3d=_3b.childNodes;
for(var i=0;i<_3d.length;i++){
var _3e=_3d[i];
var _3f=SemTagUtil.getNodeClassValue(_3e);
if(_3f==null||_3f==""){
if(_3e.childNodes.length>0){
SemTagC2A.fillC2AInfo(_3e,_3c);
}
}else{
if(_3f.match(SemTagC2A.typeNameRegExp)){
var _40=SemTagC2A.getElementValue(_3e);
var _41=SemTagC2A.parseTypeName(_40);
_3c.typenames.push({namespace:_41.namespace,type:_41.type});
if(_41.selector){
_3c.selector=_41.selector;
}
}else{
if(_3f.match(SemTagC2A.valueRegExp)&&_3c.value==""){
_3c.value=SemTagC2A.getElementValue(_3e);
if(!_3c.anchorNode||_3c.anchorNode==""){
_3c.anchorNode=_3e;
}
}else{
if(_3f.match(SemTagC2A.displayRegExp)&&_3c.display==""){
_3c.display=SemTagC2A.getElementValue(_3e);
}else{
if(_3f.match(SemTagC2A.menulabelRegExp)&&_3c.menuLabel==""){
_3c.menuLabel=SemTagC2A.getElementValue(_3e);
}else{
if(_3f.match(SemTagC2A.anchorRegExp)){
_3c.anchorNode=_3e;
}else{
if(!_3f.match(SemTagC2A.sourceRegExp)&&!_3f.match(SemTagC2A.targetRegExp)){
if(_3e.childNodes.length>0){
SemTagC2A.fillC2AInfo(_3e,_3c);
}
}
}
}
}
}
}
}
}
},getSpecialC2ASourceInfo:function(_42,_43){
var _44={"typenames":new Array(),"value":_43,"display":"","anchorNode":""};
_44.typenames.push({namespace:SemTagC2A.liveObjectNamespace,type:_42});
return _44;
},getSourceInfo:function(_45){
var _46={"typenames":new Array(),"value":"","display":"","anchorNode":""};
SemTagC2A.fillC2AInfo(_45,_46);
return _46;
},getTargetInfo:function(_47){
var _48={"typenames":new Array(),"menuLabel":""};
SemTagC2A.fillC2AInfo(_47,_48);
return _48;
},generateMenuContents:function(_49,_4a){
var _4b=null;
var _4c=null;
var _4d=SemTagC2A.getSourceInfo(_4a);
if(SemTagC2A.isTargetDefined(_4d)==true){
_4b=SemTagC2A.getTargetMenuItems(_4d);
}
if(_4d.display!=""){
_4c=STSP.getMenuHeaderJson(_4d.display,"text/html",-100);
}
if(_4b!=null||_4d.display!=""){
STSP.setMenuData(_49,_4b,"",_4c,"");
}
},getTargetMenuItems:function(_4e){
var _4f=new Array();
var _50=new Array();
for(var _51 in SemTagC2A.targetNodeIDs){
var _52=SemTagC2A.findElementInWindowScope(_51);
var _53=SemTagC2A.getTargetInfo(_52);
var _54=_53.menuLabel;
var _55=_50[_54];
if(_55!=null){
_50[_54]=_55++;
}else{
_50[_54]=1;
_55=1;
}
if(_55>1){
_54+=" ("+_55+")";
}
if(SemTagC2A.isTargetSourceMatch(_4e,_53)==true){
_4f.push(STSP.getMenuItemJson(_54,"javascript:SemTagC2A.executeMenuAction(\""+_51+"\");"));
}
}
if(_4f.length>0){
SemTagC2A.currentValue=_4e.value;
}
return _4f;
},executeMenuAction:function(_56){
var _57={};
var _58=SemTagC2A.findElementInWindowScope(_56);
if(_58&&_58.tagName=="FORM"){
var _59=SemTagC2A.currentValue;
var _5a=SemTagC2A.getTargetInfo(_58);
if(_5a.selector){
_59=SemTagC2A.selectSubField(_59,_5a.selector);
}
var _5b=STSP.getElementsByClassName(SemTagC2A.paramTagName,_58,0,["INPUT"]);
for(var j=0;j<_5b.length;j++){
_5b[j].value=SemTagC2A.getStringValue(_59);
}
window.ibm.portal.c2a.event={value:_59};
for(var i=0;i<parent.frames.length;i++){
if(SemTagC2A.canAccessFrameContent(parent.frames[i])){
if(!parent.frames[i].ibm){
parent.frames[i].ibm=new Object();
}
if(!parent.frames[i].ibm.portal){
parent.frames[i].ibm.portal=new Object();
}
parent.frames[i].ibm.portal.c2a=new Object();
parent.frames[i].ibm.portal.c2a.event={value:_59};
}
}
if(_58.onsubmit){
if(SemTagUtil.isGecko){
var _5c=new Object();
_58.onsubmit(_5c);
}else{
_58.fireEvent("onsubmit");
}
}
_58.submit();
}else{
}
},selectSubField:function(obj,_5d){
var _5e=_5d.split(".");
var x=obj;
for(var i=0;i<_5e.length;i++){
if(typeof (x)=="object"&&x[_5e[i]]){
x=x[_5e[i]];
}else{
x=null;
break;
}
}
return x;
},getStringValue:function(x){
var _5f;
if(typeof x=="string"){
_5f=x;
return x;
}else{
_5f=SemTagC2A.getJSON(x);
return _5f;
}
},getJSON:function(x){
var _60;
if(x==null){
_60="null";
return _60;
}
switch(typeof x){
case "string":
_60="\""+x+"\"";
return _60;
case "number":
case "boolean":
_60=String(x);
return _60;
case "object":
if(x instanceof Array){
_60=SemTagC2A.getArrayJSON(x);
return _60;
}else{
if(x){
_60=SemTagC2A.getObjectJSON(x);
return _60;
}
}
}
},getObjectJSON:function(o){
var a=[];
var _61;
for(k in o){
if(o.hasOwnProperty(k)){
a.push("\""+k+"\":"+SemTagC2A.getJSON(o[k]));
}
}
_61="{"+a.join(",")+"}";
return _61;
},getArrayJSON:function(o){
var a=[];
var _62;
for(var k=0;k<o.length;k++){
a.push(SemTagC2A.getJSON(o[k]));
}
_62="["+a.join(",")+"]";
return _62;
},triggerCSRAction:function(_63){
var _64=SemTagC2A.findElementInWindowScope(_63);
var _65=SemTagC2A.getC2ATargetPageID(_64);
var _66=SemTagC2A.getC2ATargetPortletWindowID(_64);
var _67=SemTagC2A.getC2ACommTargetName(_64);
var _68=SemTagC2A.currentValue;
var _69=SemTagC2A.getTargetActionParams(_64);
},triggerCSREvent:function(_6a){
var _6b=SemTagC2A.findElementInWindowScope(_6a);
var _6c=SemTagC2A.getC2ATargetPageID(_6b);
var _6d=SemTagC2A.getC2ATargetPortletWindowID(_6b);
var _6e=SemTagC2A.getC2ACommTargetQName(_6b);
var _6f=SemTagC2A.currentValue;
var _70=com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.iwidget.services.EventService.SERVICE_NAME);
_70.fireEvent(_6d,_6e,_6f,"{http://www.w3.org/2001/XMLSchema}string");
},getC2ATargetPageID:function(_71){
var _72=dojo.query("input[name=\"com.ibm.wps.propertybroker.standard.c2a.pageid\"]",_71);
var _73=(_72!=null&&_72.length==1)?_72[0].value:"undefined";
return _73;
},getC2ATargetPortletWindowID:function(_74){
var _75=dojo.query("input[name=\"com.ibm.wps.propertybroker.standard.c2a.portletwindowid\"]",_74);
var _76=(_75!=null&&_75.length==1)?_75[0].value:"undefined";
return _76;
},getC2ACommTargetName:function(_77){
var _78=dojo.query("input[name=\"com.ibm.wps.propertybroker.standard.c2a.commtargetname\"]",_77);
var _79=(_78!=null&&_78.length==1)?_78[0].value:"undefined";
return _79;
},getC2ACommTargetQName:function(_7a){
var _7b=dojo.query("input[name=\"com.ibm.wps.propertybroker.standard.c2a.commtargetqname\"]",_7a);
var _7c=(_7b!=null&&_7b.length==1)?_7b[0].value:"undefined";
return _7c;
},getC2ATargetActionParams:function(_7d){
var _7e=dojo.query("input[type=\"text\"]",_7d);
dojo.forEach(_7e,function(_7f){
});
}};
SemTagC2A.init();



 // end of jspscriptlet

 

}catch(e){console.log("Module 'wp_liveobject_framework': ",e);}
try{setTimeout(function(){	
// create a test node off the browser screen to calculate high contrast mode
var testNode = document.createElement("div");
testNode.className = "highContrastTestNode";
document.body.appendChild(testNode);
// look at the computed style for the test node
var styles = null;
try {
	styles = document.defaultView.getComputedStyle(testNode, "");
} catch(e) {
	styles = testNode.currentStyle;
}
if(styles) {
	var testImg = styles.backgroundImage;
	if ((styles.borderTopColor == styles.borderRightColor) || (testImg != null && (testImg == "none" || testImg == "url(invalid-url:)" ))) {
		document.getElementsByTagName("body")[0].className+=" lotusImagesOff";
	}
	document.body.removeChild(testNode);
}
}, 500);

}catch(e){console.log("Module 'wp_one_ui_303': ",e);}
try{"use strict";!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(t,require("jquery-3.1.1")):"function"==typeof define&&define.amd?define("ripples-1.0.0",["jquery-3.1.1"],function(n){return e(t,n)}):e(t,t.jQuery,t.noUiSlider)}(this,function(t,e,n,o){function i(t,n){a=this,this.element=e(t),this.options=e.extend({},p,n),this._defaults=p,this._name=r,this.init()}if(t&&e){var r="ripples",a=null,p={};i.prototype.init=function(){var n=this.element;n.on("mousedown touchstart",function(o){if(!a.isTouch()||"mousedown"!==o.type){n.find(".ripple-container").length||n.append('<div class="ripple-container"></div>');var i=n.children(".ripple-container"),r=a.getRelY(i,o),p=a.getRelX(i,o);if(r||p){var u=a.getRipplesColor(n),s=e("<div></div>");s.addClass("ripple").css({left:p,top:r,"background-color":u}),i.append(s),function(){t.getComputedStyle(s[0]).opacity}(),a.rippleOn(n,s),setTimeout(function(){a.rippleEnd(s)},500),n.on("mouseup mouseleave touchend",function(){s.data("mousedown","off"),"off"===s.data("animating")&&a.rippleOut(s)})}}})},i.prototype.getNewSize=function(t,e){return Math.max(t.outerWidth(),t.outerHeight())/e.outerWidth()*2.5},i.prototype.getRelX=function(t,e){var n=t.offset();return a.isTouch()?(e=e.originalEvent,1===e.touches.length&&e.touches[0].pageX-n.left):e.pageX-n.left},i.prototype.getRelY=function(t,e){var n=t.offset();return a.isTouch()?(e=e.originalEvent,1===e.touches.length&&e.touches[0].pageY-n.top):e.pageY-n.top},i.prototype.getRipplesColor=function(e){return e.data("ripple-color")?e.data("ripple-color"):t.getComputedStyle(e[0]).color},i.prototype.hasTransitionSupport=function(){var t=document.body||document.documentElement,e=t.style;return e.transition!==o||e.WebkitTransition!==o||e.MozTransition!==o||e.MsTransition!==o||e.OTransition!==o},i.prototype.isTouch=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},i.prototype.rippleEnd=function(t){t.data("animating","off"),"off"===t.data("mousedown")&&a.rippleOut(t)},i.prototype.rippleOut=function(t){t.off(),a.hasTransitionSupport()?t.addClass("ripple-out"):t.animate({opacity:0},100,function(){t.trigger("transitionend")}),t.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){t.remove()})},i.prototype.rippleOn=function(t,e){var n=a.getNewSize(t,e);a.hasTransitionSupport()?e.css({"-ms-transform":"scale("+n+")","-moz-transform":"scale("+n+")","-webkit-transform":"scale("+n+")",transform:"scale("+n+")"}).addClass("ripple-on").data("animating","on").data("mousedown","on"):e.animate({width:2*Math.max(t.outerWidth(),t.outerHeight()),height:2*Math.max(t.outerWidth(),t.outerHeight()),"margin-left":-1*Math.max(t.outerWidth(),t.outerHeight()),"margin-top":-1*Math.max(t.outerWidth(),t.outerHeight()),opacity:.2},500,function(){e.trigger("transitionend")})},e.fn.ripples=function(t){return this.each(function(){e.data(this,"plugin_"+r)||e.data(this,"plugin_"+r,new i(this,t))})}}});
}catch(e){console.log("Module 'ripples-1.0.0': ",e);}
try{!function(e,i){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(e,require("jquery-utils-1.0.0"),require("swiper-4.0.3")):"function"==typeof define&&define.amd?define("notice-swiper-1.0.0",["jquery-utils-1.0.0","swiper-4.0.3"],function(t,n){i(e,t,n)}):i(e,e.jQuery,e.Swiper)}(this,function(e,i,t,n){"use strict";new t(".notice-swiper .swiper-container",{slidesPerView:1,slidesPerColumn:1,spaceBetween:0,autoplay:8e3,autoHeight:!0,watchSlidesVisibility:!0,pagination:{el:".notice-swiper .swiper-pagination",type:"progressbar",clickable:!1}})});
}catch(e){console.log("Module 'notice-swiper-1.0.0': ",e);}
try{(function(){
    i$.merge({
	"ICON_STOP":"msgError",
	"ICON_SUCCESS":"msgSuccess",
	"BUTTON_RETRY":"Қайта көру",
	"BUTTON_YES":"Иә",
	"BUTTON_NO":"Жоқ",
	"BUTTON_IGNORE":"Өткізіп жіберу",
	"LINK_LEARN_MORE":"Қосымша мәліметтер",
	"ICON_WARNING":"msgWarning",
	"ICON_INFORMATION":"msgInfo",
	"LOADING_IMAGE_0":"сурет жүктелуде",
	"BUTTON_ABORT":"Доғару",
	"ICON_EXCLAMATION":"msgWarning",
	"BUTTON_CANCEL":"Болдырмау",
	"BUTTON_CONTINUE":"Жалғастыру",
	"BUTTON_OK":"ОК",
	"BUTTON_TRY":"Қайталап көріңіз",
	"LOADING_0":"Жүктелуде...",
	"ICON_ASTERISK":"msgInfo",
	"ICON_ERROR":"msgError",
	"CLOSE_IMAGE_0":"суретті жабу",
	"CLOSE_0":"Жабу"
},i$.fromPath("wpModules.dialog.nls",true));
})();
}catch(e){console.log("Module 'wp_dialog_main': ",e);}
try{(function(){
    i$.merge({
	"Rating_Distribution":"Баға тарату",
	"text_info_changes_lost":"Әр түрлі қойындыда жасалған өзгертулер жоғалады.",
	"text_error_tags_too_long":"Жеткіліксіз рұқсаттарға немесе тегтердің ұзын болуына байланысты тегтер қосылмады.",
	"title_taggingError_message":"Қате - консольді тексеріңіз",
	"title_hide_tags":"Тегтерді жасыру",
	"star":"Жұлдызша",
	"text_invalid_tag_name":"Дұрыс емес тег аты",
	"title_community_rating_distribution":"Жалпы бағалар таратылымы",
	"text_error_tags_rejected":"Әрекеттеріңіз орындалмады: ${0} тегті сервер сүзгі ережесінің, жеткіліксіз рұқсаттың немесе дұрыс емес таңбалардың кесірінен қабылдамады.",
	"title_locale_picker":"Сіздің нсанданыңыздың тілі ішінде сақталады:",
	"title_switch_to_pub_view":"Жалпы көруге ауысу",
	"text_success_changes_stored_successfully":"Әрекеттеріңіз орындалды:",
	"button_public":"Жалпы",
	"title_open_ratings_widget":"Бағалауды қосуға басыңыз",
	"text_info_length_of_tag_invalid":"Енгізілен тег ұзындығы не аса ұзын не аса қысқа.",
	"title_switch_to_priv_view":"Жеке көруге ауысыңыз",
	"title_submit_tags":"Тегтерді бағындру",
	"title_delete":"Жою \"${0}\"",
	"title_view_tags":"Тегтерді көру",
	"ratingDescription_rating":"баға",
	"text_add_tags":"Келесі тегтерді қосыңыз:",
	"title_click_to_add_ratings":"Бағалауды қосуға басыңыз.",
	"text_error_ratings_renderMode_wsrp":"WSRP сценарилерінде бағалау толығымен қолданылмайтынын ескеріңіз. Анықтама алу үшін әкімшіңізге хабарласыңыз.",
	"text_community_tags_for_this_resource":"Осы ресурска жалпы тегтер:",
	"deleteRating":"Жою",
	"title_ratingError_message":"Қате - консольді тексеріңіз",
	"title_community_tags":"Тегтер: ",
	"text_error_tags_renderMode_wsrp":"WSRP сценарилерінде тегтеу толығымен қолданылмайтынын ескеріңіз. Анықтама алу үшін әкімшіңізге хабарласыңыз.",
	"text_no_tags":"Тегтер жоқ",
	"title_rating_distribution":"${0} рет ${1} жұлдызшамен бағаланды",
	"text_rating_saved":"Баға сақталды.",
	"title_all_rating":"Барлық бағалар",
	"title_delete_all_tags_of_name":"\"${0}\" атымен осы ресурста белгіленген барлқ тегтерді Өшіру",
	"Menu_public_tagging":"Жеке жалпы тегтер",
	"text_all_ratings_deleted":"Барлық бағалаулар жойылды.",
	"title_not_set":"Бағалаулар орнатылмады.",
	"rating_menu":"Баға мәзірі",
	"title_info":"Ақпарат",
	"title_hide_ratings":"Бағалауды жасыру",
	"text_loading":"Жүктелуде...",
	"title_your_rating":"Менің жалпы бағам:",
	"text_all_tags_deleted":"Таңдалған жалпы тегтер жойылды.",
	"add_tagging":"Тег қосу",
	"text_rating_deleted":"Баға жойылды.",
	"text_tags_deleted":"${0} тегі жойылды ",
	"link_done":"Жабу",
	"title_done_with_tagging":"Тегтеу арқылы жасау (сақталмаған өзгерітер жоғалады)",
	"text_your_rating_for_this_resource":"Осы ресурстың бағаларыңыз:",
	"text_no_tags_on_this_resource":"Мұнда ресурсқа белгілейтін тег жоқ.",
	"text_tag":"\"${0}\" тегі",
	"Menu_privateRating":"Менің жеке бағам",
	"tagging_menu":"Тегтейтін мәзір",
	"title_delete_ratings_for_this_resource":"Осы ресурқа берілген барлық ресурстарды жойыңыз.",
	"Ratings":"бағалар",
	"title_open_tags_widget":"Тегтер қосу",
	"ratingDescription_ratings":"бағалар",
	"text_stars_count":"${0} жұлдыз",
	"link_delete":"Жою",
	"title_done_with_rating":"Бағалаумен жасалған (сақталмаған өзгерітер жоғалады)",
	"title_confirmation":"Растау",
	"title_pub_tags":"Жалпы тегтерім: ",
	"title_error_message":"Қате хабар",
	"title_priv_rating":"Менің жеке бағам:",
	"text_community_rating_for_this_resource":"Осы ресурстың жалпы бағалары:",
	"title_view_ratings":"Бағалауды көру",
	"title_priv_tags":"Менің жеке тегтерім: ",
	"title_more_tags":"Қосымша...",
	"Menu_tagging":"Тегтер",
	"text_tags_saved":"${0} тегі жасалды ",
	"title_delete_rating":"Бағаларды жою",
	"title_your_tags":"Сіздің тегтеріңіз",
	"button_save":"Сақтау",
	"title_pub_rating":"Баға:",
	"title_input_tag_names":"Тег атына өріс енгізіңіз",
	"button_private":"Жеке",
	"Rating":"баға",
	"title_close_widget":"Виджетті жабу",
	"title_all_tags":"Барлық тегтер",
	"text_you_have_no_tags_on_this_resource":"Ресурсқа белгілейтін тег жоқ.",
	"text_error_tags_invalid":"Жарамсыз таңбаларға байланысты тегтер қосылмады",
	"title_switch_to_community_view":"Жалпы көруге ауысу",
	"title_rating_percentage":"Баға: ${1} бағаның ${0} бағасы.",
	"text_rate":"Баға \"${0}\"",
	"Menu_rating":"Баға",
	"text_info_max_number_of_private_tags_reached":"Бір пайдалнушыға рұқсат етілетін жеке тегтердің максималды санына жеттіңіз (${0} тег).",
	"title_submit_rating":"Баға ұсыну",
	"text_your_tags_for_this_resource":"Осы ресурқа арналағн тегтер:",
	"ratingDescription_from":"Кімнен",
	"title_community_rating":"Жалпы бағалар",
	"text_info_max_number_of_community_tags_reached":"Сіздің әкімшіңіз орнатқаньрұқсат етілетін жеке тегтердің максималды санына жеттіңіз.",
	"Menu_private_tagging":"Менің жеке тегтерім",
	"Menu_myRating":"Менің жалпы бағам\t",
	"text_error_tag_already_assigned":"Сіз бұрыннан осы ресурсқа бір немесе қосымша тегтерді белгіледіңіз.",
	"text_info_max_number_of_public_tags_reached":"Бір пайдалнушыға рұқсат етілетін тегтердің максималды санына жеттіңіз (${0} тег)."
},i$.fromPath("dojoless_resource_AddTag",true));
})();
}catch(e){console.log("Module 'wp_tagging_rating_light': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-U69, (C) Copyright IBM Corp. 2009, 2010 - All Rights reserved.  **/
var com_ibm_widgets_resolver=(function(){var _1="tagginglighterrorDiv_";var _2="tagginglighterrordivider_";var _3="tagginglighterrorlabel_";var _4="ratinglighterrorDiv_";var _5="ratinglighterrordivider_";var _6="ratinglighterrorlabel_";var _7="ratinglightmenulink_";var _8="tagginglightmenulink_";var _9="tagginglightAddTaglink_";var _a="tagginglightinputField_";var _b="errorMessagedividerShow";var _c="errorMessageStyleShow";var _d="errorMessagedivider";var _e="errorMessageStyle";var _f=function(_10,_11){if(typeof ibmCfg!="undefined"&&typeof ibmCfg.enablerConfig!="undefined"&&typeof ibmCfg.enablerConfig.isDebug!="undefined"&&typeof ibmCfg.enablerConfig.traceConfig!="undefined"){var _12=ibmCfg.enablerConfig.traceConfig;var _13=new RegExp(i$.isArray(_12)?_12.join("|"):_12);if(_13&&_13.test("com.ibm.widgets.TaggingAndRatingLight")){var msg="";var _14="";if(_11||(_11===0)||(_11===null)||(_11==="")){if(!i$.isArray(_11)){_14=_11;}else{if(_11&&_11.length>0){for(var arg in _11){if(_14===""){_14=_14+_11[arg];}else{_14=_14+", "+_11[arg];}}}}msg=msg+"Params [ "+_14+" ]";}console.log("com.ibm.widgets.TaggingAndRatingLight"+" "+_10+" "+msg);}}};var _15=function(_16,_17){var _18=i$.byId(_4+_16);var _19=i$.byId(_5+_16);var _1a=i$.byId(_6+_16);if(_1a!=null){_1a.innerHTML=_17.data.message;}if(_18!=null){_18.setAttribute("class",_c);}if(_19!=null){_19.setAttribute("class",_b);}};var _1b=function(_1c){var _1d=i$.byId(_4+_1c);var _1e=i$.byId(_5+_1c);if(_1d!=null){_1d.setAttribute("class",_e);}if(_1e!=null){_1e.setAttribute("class",_d);}};var _1f=function(_20){var _21=i$.byId(_4+_20);if(_21!=null&&_21.getElementsByTagName("img")!=null){var _22=_21.getElementsByTagName("img")[0];if(_22!=null){_22.setAttribute("alt",dojoless_resource_AddTag.title_ratingError_message);_22.setAttribute("title",dojoless_resource_AddTag.title_ratingError_message);}}var _23=i$.byId(_7+_20);if(_23!=null&&_23.getElementsByTagName("img")!=null){var _24=_23.getElementsByTagName("img")[0];if(_24!=null){_24.setAttribute("alt",dojoless_resource_AddTag.rating_menu);_24.setAttribute("title",dojoless_resource_AddTag.rating_menu);}}};var _25=function(_26){var _27=i$.byId(_1+_26);if(_27!=null&&_27.getElementsByTagName("img")!=null){var _28=_27.getElementsByTagName("img")[0];if(_28!=null){_28.setAttribute("alt",dojoless_resource_AddTag.title_title_taggingError_message);_28.setAttribute("title",dojoless_resource_AddTag.title_title_taggingError_message);}}var _29=i$.byId(_8+_26);if(_29!=null&&_29.getElementsByTagName("img")!=null){var _2a=_29.getElementsByTagName("img")[0];if(_2a!=null){_2a.setAttribute("alt",dojoless_resource_AddTag.tagging_menu);_2a.setAttribute("title",dojoless_resource_AddTag.tagging_menu);}}var _2b=i$.byId(_9+_26);if(_2b!=null&&_2b.getElementsByTagName("img")!=null){var _2c=_2b.getElementsByTagName("img")[0];if(_2c!=null){_2c.setAttribute("alt",dojoless_resource_AddTag.add_tagging);_2c.setAttribute("title",dojoless_resource_AddTag.add_tagging);}}var _2d=i$.byId(_a+_26);if(_2d!=null){_2d.setAttribute("alt",dojoless_resource_AddTag.add_tagging);_2d.setAttribute("title",dojoless_resource_AddTag.add_tagging);}};var _2e=function(_2f,_30){var _31={uri:"tm:ts:empty",rmparam:"rm:"+_2f.oid,"mime-type":"application/json"};if(_2f.query==null){_2f.query={scope:"ALL","max-results":"5","start-index":"0",orderMetric:"TAG_SPACE_COUNT_REVERSE_NAME",order:"DESC"};}_32(_31,_2f,_30);};var _33=function(_34,_35){var _36={uri:"rtm:rs:empty",rmparam:"rm:"+_34.oid,"mime-type":"application/json"};if(_34.query==null){_34.query={scope:"ALL"};}_32(_36,_34,_35);};var _32=function(_37,_38,_39){var _3a=ibmPortalConfig.contentHandlerURI;if(_3a!=null){if(_3a.indexOf("?")>0){_3a+="&";}else{_3a+="?";}}_3a+=i$.toQuery(_37)+"&"+i$.toQuery(_38.query)+"&"+Math.random();i$.xhrGet({url:_3a,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_3b){if(_3b.data===""){}else{var _3c=i$.fromJson(_3b.data);var _3d=_3c["entry"];}var _3e;if(_37.uri=="tm:ts:empty"){var _3f=0;if(_3d!==undefined){_3f=_3d.length;}var _3e=new Array(_3f);for(var i=0;i<_3f;i++){_3e[i]={name:_3d[i]["title"]["$t"],count:_3d[i]["link"][0]["count"],id:_3d[i]["id"]};}}else{if(_3d===undefined){_3e=null;}else{numberOfRatings=_3d.length;var _3e=new Array(numberOfRatings);for(var i=0;i<numberOfRatings;i++){_3e[i]={name:_3d[i]["title"]["$t"],count:_3d[i]["link"][0]["count"]};}}}_39(_3e,_38);},function(_40){console.error("Error case: ",_40);if(_40!=null&&_40.xhr!=null&&_40.xhr.status!=null&&_40.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{if(_37.uri=="tm:ts:empty"){_41(_38.oid,_40);}if(_37.uri=="rtm:rs:empty"){_15(_38.oid,_40);}}});};var _41=function(_42,_43){var _44=i$.byId(_1+_42);var _45=i$.byId(_2+_42);var _46=i$.byId(_3+_42);if(_46!=null){_46.innerHTML=_43.data.message;}if(_44!=null){_44.setAttribute("class",_c);}if(_45!=null){_45.style.display="inline-block";}};var _47=function(_48,_49){var _4a=i$.byId(_1+_48);var _4b=i$.byId(_2+_48);var _4c=i$.byId(_3+_48);if(_4c!=null){_4c.innerHTML=_49;}if(_4a!=null){_4a.setAttribute("class",_c);}if(_4b!=null){_4b.style.display="inline-block";}};var _4d=function(_4e){var _4f=i$.byId(_1+_4e);var _50=i$.byId(_2+_4e);if(_4f!=null){_4f.setAttribute("class",_e);}if(_50!=null){_50.style.display="none";}};var _51=function(){this.template="";this.template+="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";this.template+="<atom:feed xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:xml=\"http://www.w3.org/XML/1998/namespace\" xmlns:ext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model\" xmlns:creationcontext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1.0/portal-creation-context\">\n";this.template+="<atom:author>\n";this.template+="<atom:name>IBM WebSphere Portal/8.0</atom:name>\n";this.template+="</atom:author>\n";this.template+="<atom:title>WebSphere Portal Server TagSpace Feed</atom:title>\n";this.template+="<atom:link href=\".\" rel=\"self\" type=\"application/atom+xml\"/>\n";this.template+="<atom:entry creationcontext:private=\"${isPrivate}\">\n";this.template+="<atom:title xml:lang=\"${locale}\">${tagname}</atom:title>\n";this.template+="<atom:id>tm:cid:${id}</atom:id>\n";this.template+="<atom:link ext:uri=\"rm:${resourceURI}\" rel=\"replies\" href=\"example.org\"/>\n";this.template+="${category}";this.template+="</atom:entry>\n";this.template+="</atom:feed>\n";this.getRequest=function(tag){if(tag.isPrivate==null){var _52=false;}else{var _52=tag.isPrivate;}if(tag.locale==null){var _53="en";}else{var _53=tag.locale;}if(tag.id==null){var id="0";}else{var id=tag.id;}if(tag.category==null){var _54="";}else{var _54="<atom:category term=\""+tag.category+"\"/>\n";}var _55=this.template;_55=_55.replace("${tagname}",tag.name);_55=_55.replace("${resourceURI}",tag.oid);_55=_55.replace("${isPrivate}",_52);_55=_55.replace("${locale}",_53);_55=_55.replace("${id}",id);_55=_55.replace("${category}",_54);return _55;};};var _56=new _51();var Tag=function(_57,oid){this.name=_57;this.oid=oid;this.isPrivate=false;this.locale="en";this.id=115;this.category="books";this.display=function(){return "URL: "+this.oid+", tag: "+this.name;};};var _58=function(tag){request=_56.getRequest(tag);var _59=tag.oid;_5a(request,_59,_5b);};var _5a=function(_5c,_5d,_5e){var _5f=ibmPortalConfig.contentHandlerURI;if(_5f!=null){if(_5f.indexOf("?")>0){_5f+="&";}else{_5f+="?";}}var _60="uri=";var _61="tm:ts:all";var _62="&mime-type=application/json";var _63=_5f+_60+_61;i$.xhrPost({url:_63,postData:_5c,headers:{"content-type":"application/xml"}}).then(function(_64){var _65=com_ibm_widgets_tagging.getCurrentDisplayedCount(_5d);var _66=com_ibm_widgets_tagging.getCurrentDisplayedTagScope(_5d);com_ibm_widgets_tagging.setPlusClicked(_5d,false);_5e(_5d,_66,_65,com_ibm_widgets_tagging.displayTagsLight);},function(_67){console.error("Error case: ",_67);if(_67!=null&&_67.xhr!=null&&_67.xhr.status!=null&&_67.xhr.status==400){_67.data.message=dojoless_resource_AddTag.text_error_tags_invalid;}else{if(_67!=null&&_67.xhr!=null&&_67.xhr.status!=null&&_67.xhr.status==403){_67.data.message=dojoless_resource_AddTag.text_error_tags_too_long;}else{if(_67!=null&&_67.xhr!=null&&_67.xhr.status!=null&&_67.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}}}_41(_5d,_67);});};var _5b=function(_68,_69,_6a,_6b){var _6c=i$.byId(com_ibm_widgets_tagging.TAGGING_WIDGET_TAGS_ID_PREFIX+_68);if(_6c.getAttribute("customLabel")==null||_6c.getAttribute("customLabel")=="undefined"){if(ibmPortalCPConfig.tagging.inline.customLabel!==null&&typeof ibmPortalCPConfig.tagging.inline.customLabel!=="undefined"){customLabel=ibmPortalCPConfig.tagging.inline.customLabel;}else{customLabel=null;}}else{customLabel=_6c.getAttribute("customLabel");}var _6d=com_ibm_widgets_tagging.TAGGING_WIDGET_ID_PREFIX+_6a;var _6e=null;switch(_69){case ("PERSONAL_PRIVATE"):_6e=["personal_private"];break;case ("PERSONAL_PUBLIC"):_6e=["personal_public"];break;case ("COMMUNITY_PERSONAL_PUBLIC"):_6e=["community","personal_public"];break;default:_6e=["community","personal_public"];break;}var _6f={"oid":_68,"tagListParentId":_6d,"tagsClickable":_6c.getAttribute("tagsClickable")||ibmPortalCPConfig.tagging.inline.tagsClickable,"tagClickActionMode":_6c.getAttribute("tagClickActionMode")||ibmPortalCPConfig.tagging.inline.tagClickActionMode,"showDialogLauncher":_6c.getAttribute("showDialogLauncher")||ibmPortalCPConfig.tagging.inline.showDialogLauncher,"maxResults":_6c.getAttribute("maxResults")||ibmPortalCPConfig.tagging.inline.maxResults,"customMessageNoTags":_6c.getAttribute("customMessageNoTags")||dojoless_resource_AddTag.text_no_tags,"countsEnabled":_6c.getAttribute("countsEnabled")||ibmPortalCPConfig.tagging.inline.countsEnabled,"customLabel":_6c.getAttribute("customLabel")||ibmPortalCPConfig.tagging.inline.customLabel,"tagClickTransmitScopes":_6c.getAttribute("tagClickTransmitScopes")||ibmPortalCPConfig.tagging.inline.tagClickTransmitScopes,"privateTaggingEnabled":_6c.getAttribute("privateTaggingEnabled")||ibmPortalCPConfig.tagging.inline.privateTaggingEnabled,"resourceType":_6c.getAttribute("resourceType")||ibmPortalCPConfig.tagging.inline.resourceType,"customLabelCommunityTags":_6c.getAttribute("customLabelCommunityTags")||ibmPortalCPConfig.tagging.inline.customLabelCommunityTags,"customLabelPersonalPublicTags":_6c.getAttribute("customLabelPersonalPublicTags")||ibmPortalCPConfig.tagging.inline.customLabelPersonalPublicTags,"customLabelPersonalPrivateTags":_6c.getAttribute("customLabelPersonalPrivateTags")||ibmPortalCPConfig.tagging.inline.customLabelPersonalPrivateTags,"showAllTags":false};_6f.query={"order":_6c.getAttribute("order")||ibmPortalCPConfig.tagging.inline.order,"orderMetric":_6c.getAttribute("orderMetric")||ibmPortalCPConfig.tagging.inline.orderMetric,"scope":_6e,"resourceCategories":_6c.getAttribute("resourceCategories")||ibmPortalCPConfig.tagging.inline.resourceCategories};_2e(_6f,_6b);};var _70=function(_71,_72,_73){var _74=null;switch(_72){case ("PERSONAL_PRIVATE"):_74=["personal_private"];break;case ("PERSONAL_PUBLIC"):_74=["personal_public"];break;case ("COMMUNITY_PERSONAL_PUBLIC"):_74=["community","personal_public"];break;default:_74=["community","personal_public"];break;}var _75=i$.byId(com_ibm_widgets_rating.RATINGWIDGET_STARS_DIV_PREFIX+_71);if(_75.getAttribute("ratingDescription")==null||_75.getAttribute("ratingDescription")=="undefined"){if(ibmPortalCPConfig.rating.inline.ratingDescription!==null&&typeof ibmPortalCPConfig.rating.inline.ratingDescription!=="undefined"){ratingDescription=ibmPortalCPConfig.rating.inline.ratingDescription.toUpperCase();}else{ratingDescription="ALL";}}else{ratingDescription=_75.getAttribute("ratingDescription");}if(_75.getAttribute("numStars")==null||_75.getAttribute("numStars")=="undefined"){if(ibmPortalCPConfig.rating.inline.numStars!==null&&typeof ibmPortalCPConfig.rating.inline.numStars!=="undefined"){numStars=ibmPortalCPConfig.rating.inline.numStars;}else{numStars=5;}}else{numStars=_75.getAttribute("numStars");}if(_75.getAttribute("customLabel")==null||_75.getAttribute("customLabel")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabel!==null&&typeof ibmPortalCPConfig.rating.inline.customLabel!=="undefined"){customLabel=ibmPortalCPConfig.rating.inline.customLabel;}else{customLabel=null;}}else{customLabel=_75.getAttribute("customLabel");}var _76;var _77;var _78;if(_75.getAttribute("customLabelCommunityRatings")==null||_75.getAttribute("customLabelCommunityRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!=="undefined"){_76=ibmPortalCPConfig.rating.inline.customLabelCommunityRatings;}else{_76=null;}}else{_76=_75.getAttribute("customLabelCommunityRatings");}if(_75.getAttribute("customLabelPersonalPublicRatings")==null||_75.getAttribute("customLabelPersonalPublicRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!=="undefined"){_77=ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings.toUpperCase();}else{_77=null;}}else{_77=_75.getAttribute("customLabelPersonalPublicRatings");}if(_75.getAttribute("customLabelPersonalPrivateRatings")==null||_75.getAttribute("customLabelPersonalPrivateRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!=="undefined"){_78=ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings.toUpperCase();}else{_78=null;}}else{_78=_75.getAttribute("customLabelPersonalPrivateRatings");}var _79={"oid":_71,"customLabel":customLabel,"customLabelCommunityRatings":_76,"customLabelPersonalPublicRatings":_77,"customLabelPersonalPrivateRatings":_78,"scope":_74,"ratingDescription":ratingDescription,"numStars":numStars};_79.query={"oid":_71,"customLabel":customLabel,"customLabelCommunityRatings":_76,"customLabelPersonalPublicRatings":_77,"customLabelPersonalPrivateRatings":_78,"scope":_74,"ratingDescription":ratingDescription,"numStars":numStars};_33(_79,_73);};var _7a=function(_7b,_7c,_7d,_7e){var _7f=null;_7f=["personal_public"];var _80=i$.byId(com_ibm_widgets_rating.RATINGWIDGET_STARS_DIV_PREFIX+_7b);if(_80.getAttribute("numStars")==null||_80.getAttribute("numStars")=="undefined"){if(ibmPortalCPConfig.rating.inline.numStars!==null&&typeof ibmPortalCPConfig.rating.inline.numStars!=="undefined"){numStars=ibmPortalCPConfig.rating.inline.numStars;}else{numStars=5;}}else{numStars=_80.getAttribute("numStars");}if(_80.getAttribute("customLabel")==null||_80.getAttribute("customLabel")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabel!==null&&typeof ibmPortalCPConfig.rating.inline.customLabel!=="undefined"){customLabel=ibmPortalCPConfig.rating.inline.customLabel;}else{customLabel=null;}}else{customLabel=_80.getAttribute("customLabel");}var _81;var _82;var _83;if(_80.getAttribute("customLabelCommunityRatings")==null||_80.getAttribute("customLabelCommunityRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!=="undefined"){_81=ibmPortalCPConfig.rating.inline.customLabelCommunityRatings;}else{_81=null;}}else{_81=_80.getAttribute("customLabelCommunityRatings");}if(_80.getAttribute("customLabelPersonalPublicRatings")==null||_80.getAttribute("customLabelPersonalPublicRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!=="undefined"){_82=ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings.toUpperCase();}else{_82=null;}}else{_82=_80.getAttribute("customLabelPersonalPublicRatings");}if(_80.getAttribute("customLabelPersonalPrivateRatings")==null||_80.getAttribute("customLabelPersonalPrivateRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!=="undefined"){_83=ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings.toUpperCase();}else{_83=null;}}else{_83=_80.getAttribute("customLabelPersonalPrivateRatings");}var _84={"oid":_7b,"customLabel":customLabel,"customLabelCommunityRatings":_81,"customLabelPersonalPublicRatings":_82,"customLabelPersonalPrivateRatings":_83,"scope":_7f,"numStars":numStars,"ratingValue":_7d};_84.query={"oid":_7b,"customLabel":customLabel,"customLabelCommunityRatings":_81,"customLabelPersonalPublicRatings":_82,"customLabelPersonalPrivateRatings":_83,"scope":_7f,"numStars":numStars,"ratingValue":_7d};_33(_84,_7e);};var _85=function(_86,_87,_88,_89){var _8a=null;switch(_87){case ("PERSONAL_PRIVATE"):_8a=["personal_private"];break;case ("PERSONAL_PUBLIC"):_8a=["personal_public"];break;case ("COMMUNITY_PERSONAL_PUBLIC"):_8a=["community","personal_public"];break;default:_8a=["community","personal_public"];break;}var _8b=i$.byId(com_ibm_widgets_rating.RATINGWIDGET_STARS_DIV_PREFIX+_86);if(_8b.getAttribute("ratingDescription")==null||_8b.getAttribute("ratingDescription")=="undefined"){if(ibmPortalCPConfig.rating.inline.ratingDescription!==null&&typeof ibmPortalCPConfig.rating.inline.ratingDescription!=="undefined"){ratingDescription=ibmPortalCPConfig.rating.inline.ratingDescription.toUpperCase();}else{ratingDescription="ALL";}}else{ratingDescription=_8b.getAttribute("ratingDescription");}if(_8b.getAttribute("numStars")==null||_8b.getAttribute("numStars")=="undefined"){if(ibmPortalCPConfig.rating.inline.numStars!==null&&typeof ibmPortalCPConfig.rating.inline.numStars!=="undefined"){numStars=ibmPortalCPConfig.rating.inline.numStars;}else{numStars=5;}}else{numStars=_8b.getAttribute("numStars");}if(_8b.getAttribute("customLabel")==null||_8b.getAttribute("customLabel")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabel!==null&&typeof ibmPortalCPConfig.rating.inline.customLabel!=="undefined"){customLabel=ibmPortalCPConfig.rating.inline.customLabel;}else{customLabel=null;}}else{customLabel=_8b.getAttribute("customLabel");}var _8c;var _8d;var _8e;if(_8b.getAttribute("customLabelCommunityRatings")==null||_8b.getAttribute("customLabelCommunityRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!=="undefined"){_8c=ibmPortalCPConfig.rating.inline.customLabelCommunityRatings;}else{_8c=null;}}else{_8c=_8b.getAttribute("customLabelCommunityRatings");}if(_8b.getAttribute("customLabelPersonalPublicRatings")==null||_8b.getAttribute("customLabelPersonalPublicRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!=="undefined"){_8d=ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings.toUpperCase();}else{_8d=null;}}else{_8d=_8b.getAttribute("customLabelPersonalPublicRatings");}if(_8b.getAttribute("customLabelPersonalPrivateRatings")==null||_8b.getAttribute("customLabelPersonalPrivateRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!=="undefined"){_8e=ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings.toUpperCase();}else{_8e=null;}}else{_8e=_8b.getAttribute("customLabelPersonalPrivateRatings");}var _8f={"oid":_86,"customLabel":customLabel,"customLabelCommunityRatings":_8c,"customLabelPersonalPublicRatings":_8d,"customLabelPersonalPrivateRatings":_8e,"scope":_8a,"ratingDescription":ratingDescription,"numStars":numStars};_8f.query={"oid":_86,"customLabel":customLabel,"customLabelCommunityRatings":_8c,"customLabelPersonalPublicRatings":_8d,"customLabelPersonalPrivateRatings":_8e,"scope":_8a,"ratingDescription":ratingDescription,"numStars":numStars};var _90=new Array(1);_90[0]={name:_88,count:"1"};var _91=!ibmPortalConfig.isUserLoggedIn;if(_91&&_87=="PERSONAL_PUBLIC"){_89(_90,_8f);}else{_33(_8f,_89);}};var _92=function(_93,_94){var _95=i$.byId(com_ibm_widgets_rating.RATINGWIDGET_PREFIX+_93);var _96=_94;if(_94=="COMMUNITY_PERSONAL_PUBLIC"){_96=["community","personal_public"];}var _97={"oid":_93,"scope":_96};_97.query={"oid":_93,"scope":_96};var _98={uri:"rtm:empty",rmparam:"rm:"+_97.oid,"mime-type":"application/json"};var _99={"scope":_96};_99.query={"scope":_96};var _9a=ibmPortalConfig.contentHandlerURI;if(_9a!=null){if(_9a.indexOf("?")>0){_9a+="&";}else{_9a+="?";}}_9a+=i$.toQuery(_98)+"&"+i$.toQuery(_99.query)+"&"+Math.random();i$.xhrGet({url:_9a,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_9b){if(_9b.data===""){}else{var _9c=i$.fromJson(_9b.data);var _9d=_9c["entry"];}var _9e;if(_98.uri=="tm:ts:empty"){}else{if(_9d===undefined){_9e=null;}else{numberOfRatings=_9d.length;if(numberOfRatings==1){var _9e=null;_9e={id:_9d[0].id};_a0(_9e.id,_98,_97,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{var i=0;for(i=0;i<numberOfRatings;i++){var _9e=null;_9e={id:_9d[i].id};_a0(_9e.id,_98,_97,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}}}},function(_9f){console.error("Error case: ",_9f);if(_9f!=null&&_9f.xhr!=null&&_9f.xhr.status!=null&&_9f.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(_97.oid,_9f);}});};var _a0=function(_a1,_a2,_a3,_a4){var _a2={uri:_a1,"mime-type":"application/json"};var _a5={"scope":_a3.scope};_a5.query={"scope":_a3.scope};var _a6=ibmPortalConfig.contentHandlerURI;if(_a6!=null){if(_a6.indexOf("?")>0){_a6+="&";}else{_a6+="?";}}_a6+=i$.toQuery(_a2)+"&"+i$.toQuery(_a5.query)+"&"+Math.random();i$.xhrDelete({url:_a6,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_a7){_a4(_a3.oid,_a3.scope,com_ibm_widgets_rating.displayDojolessRatings);},function(_a8){console.error("Error case: ",_a8);if(_a8!=null&&_a8.xhr!=null&&_a8.xhr.status!=null&&_a8.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(_a3.oid,_a8);}});};var _a9=function(_aa,_ab){var _ac=i$.byId(com_ibm_widgets_rating.RATINGWIDGET_PREFIX+_aa);var _ad=_ab;if(_ab=="COMMUNITY_PERSONAL_PUBLIC"){_ad=["community","personal_public"];}var _ae={"oid":_aa,"scope":_ad};_ae.query={"oid":_aa,"scope":_ad};var _af={uri:"rtm:rs:empty",rmparam:"rm:"+_ae.oid,"mime-type":"application/json"};var _b0=ibmPortalConfig.contentHandlerURI;if(_b0!=null){if(_b0.indexOf("?")>0){_b0+="&";}else{_b0+="?";}}_b0+=i$.toQuery(_af)+"&"+Math.random();i$.xhrGet({url:_b0,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_b1){if(_b1.data!=null&&_b1.data!=""){var _b2=i$.fromJson(_b1.data);var _b3=_b2["entry"];}var _b4;if(_af.uri=="rtm:rs:empty"){if(_b3===undefined){_b4=null;}else{numberOfRatings=_b3.length;var _b4=null;var _b5=_b3[0];if(_b5!=null){var _b6=_b5.link;}if(_b6!=null){var _b7=_b6[2].href;}if(_b7!=null){_b4={id:_b7};_b9(_b4.id,_af,_ae,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}}},function(_b8){console.error("Error case: ",_b8);if(_b8!=null&&_b8.xhr!=null&&_b8.xhr.status!=null&&_b8.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(_ae.oid,_b8);}});};var _b9=function(_ba,_bb,_bc,_bd){var _bb={uri:_ba,"mime-type":"application/json"};var _be;if(_bc.scope=="COMMUNITY_PERSONAL_PUBLIC"){_be=["community","personal_public"];}var _bf={"scope":_be};_bf.query={"scope":_be};var _c0=ibmPortalConfig.contentHandlerURI;if(_c0!=null){if(_c0.indexOf("?")>0){_c0+="&";}else{_c0+="?";}}_c0+=i$.toQuery(_bb)+"&"+i$.toQuery(_bf.query)+"&"+Math.random();_c0=_ba;i$.xhrDelete({url:_c0,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_c1){_bd(_bc.oid,_bc.scope,com_ibm_widgets_rating.displayDojolessRatings);},function(_c2){console.error("Error case: ",_c2);if(_c2!=null&&_c2.xhr!=null&&_c2.xhr.status!=null&&_c2.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(_bc.oid,_c2);}});};var _c3=function(){this.template="";this.template+="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";this.template+="<atom:feed xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:xml=\"http://www.w3.org/XML/1998/namespace\" xmlns:ext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model\" xmlns:creationcontext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1.0/portal-creation-context\">\n";this.template+="<atom:author>\n";this.template+="<atom:name>IBM WebSphere Portal/8.0</atom:name>\n";this.template+="</atom:author>\n";this.template+="<atom:title>WebSphere Portal Server RatingSpace Feed</atom:title>\n";this.template+="<atom:link href=\".\" rel=\"self\" type=\"application/atom+xml\"/>\n";this.template+="<atom:entry creationcontext:private=\"${isPrivate}\">\n";this.template+="<atom:title >${tagname}</atom:title>\n";this.template+="<atom:id>rm:cid:${id}</atom:id>\n";this.template+="<atom:link ext:uri=\"rm:${resourceURI}\" rel=\"replies\" href=\"example.org\"/>\n";this.template+="${category}";this.template+="</atom:entry>\n";this.template+="</atom:feed>\n";this.getRequest=function(_c4){var _c5=this.template;_c5=_c5.replace("${tagname}",_c4.name);_c5=_c5.replace("${resourceURI}",_c4.oid);_c5=_c5.replace("${isPrivate}",_c4.isPrivate);_c5=_c5.replace("${id}",_c4.id);return _c5;};};var _c6=new _c3();var _c7=function(_c8,_c9,_ca,_cb){var _cc;if(_c9=="PERSONAL_PUBLIC"){scopeIsPrivate="false";}else{scopeIsPrivate="true";}var _cd={name:_ca,oid:_c8,isPrivate:scopeIsPrivate};request=_c6.getRequest(_cd);var _ce=!ibmPortalConfig.isUserLoggedIn;if(!_ce){_cf(request,_c8,_cb);}else{_d0(request,_c8,_ca,_cb);}};var _cf=function(_d1,oid,_d2){var _d3=ibmPortalConfig.contentHandlerURI;if(_d3!=null){if(_d3.indexOf("?")>0){_d3+="&";}else{_d3+="?";}}var _d4="uri=";var _d5="rtm:rs:"+"all";var _d6="&mime-type=application/json";var _d7=_d3+_d4+_d5+"&"+Math.random();i$.xhrPost({url:_d7,postData:_d1,headers:{"content-type":"application/xml","X-IBM-XHR":"true"}}).then(function(_d8){_d2(oid,com_ibm_widgets_rating.getCurrentDisplayedScope(oid),com_ibm_widgets_rating.displayDojolessRatings);},function(_d9){console.error("Error case: ",_d9);if(_d9!=null&&_d9.xhr!=null&&_d9.xhr.status!=null&&_d9.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(oid,_d9);}});};var _d0=function(_da,oid,_db,_dc){var _dd=ibmPortalConfig.contentHandlerURI;if(_dd!=null){if(_dd.indexOf("?")>0){_dd+="&";}else{_dd+="?";}}var _de="uri=";var _df="rtm:rs:"+"all";var _e0="&mime-type=application/json";var _e1=_dd+_de+_df+"&"+Math.random();i$.xhrPost({url:_e1,postData:_da,headers:{"content-type":"application/xml","X-IBM-XHR":"true"}}).then(function(_e2){var _e3=new Array(1);_e3[0]={name:"0",count:"0"};var _e4=!ibmPortalConfig.isUserLoggedIn;_dc(oid,com_ibm_widgets_rating.getCurrentDisplayedScope(oid),_db,com_ibm_widgets_rating.displayDojolessRatings);},function(_e5){console.error("Error case: ",_e5);if(_e5!=null&&_e5.xhr!=null&&_e5.xhr.status!=null&&_e5.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(oid,_e5);}});};var _e6=function(){this.editRatingtemplate="";this.editRatingtemplate+="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";this.editRatingtemplate+="<atom:feed xmlns:atom=\"http://www.w3.org/2005/Atom\" xmlns:xml=\"http://www.w3.org/XML/1998/namespace\" xmlns:ext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.0.1/portal-model\" xmlns:creationcontext=\"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1.0/portal-creation-context\">\n";this.editRatingtemplate+="<atom:author>\n";this.editRatingtemplate+="<atom:name>IBM WebSphere Portal/8.0</atom:name>\n";this.editRatingtemplate+="</atom:author>\n";this.editRatingtemplate+="<atom:title>WebSphere Portal Server RatingSpace Feed</atom:title>\n";this.editRatingtemplate+="<atom:id>rtm:rs:empty</atom:id>\n";this.editRatingtemplate+="<atom:link href=\".\" rel=\"self\" type=\"application/atom+xml\"/>\n";this.editRatingtemplate+="<atom:entry xmlns:atom=\"http://www.w3.org/2005/Atom\">\n";this.editRatingtemplate+="<atom:title >${tagname}</atom:title>\n";this.editRatingtemplate+="<atom:author>\n";this.editRatingtemplate+="<atom:name>wpsadmin</atom:name>\n";this.editRatingtemplate+="<atom:uri>um:oid:Z9eAeI9D8MQCCNHC8JM472JPCMMG613DEJM4CH9PGJM06O1D03Q47I1EA3H9CN1</atom:uri>\n";this.editRatingtemplate+="</atom:author>\n";this.editRatingtemplate+="<atom:id>rtm:oid:${id}</atom:id>\n";this.editRatingtemplate+="</atom:entry>\n";this.editRatingtemplate+="</atom:feed>\n";this.getEditRatingRequest=function(_e7){var _e8=this.editRatingtemplate;_e8=_e8.replace("${tagname}",_e7.name);_e8=_e8.replace("${resourceURI}",_e7.resourceID);_e8=_e8.replace("${isPrivate}",false);_e8=_e8.replace("${id}",_e7.id);return _e8;};};var _e9=new _e6();var _ea=function(_eb,_ec,_ed,_ee){var _ef={uri:"rtm:empty",rmparam:"rm:"+_eb,"mime-type":"application/json"};var _f0={"oid":_eb,"scope":_ec};_f0.query={"oid":_eb,"scope":_ec};var _f1=ibmPortalConfig.contentHandlerURI;if(_f1!=null){if(_f1.indexOf("?")>0){_f1+="&";}else{_f1+="?";}}_f1+=i$.toQuery(_ef)+"&"+i$.toQuery(_f0.query)+"&"+Math.random();i$.xhrGet({url:_f1,headers:{"X-IBM-XHR":"true"},responseType:"text"}).then(function(_f2){if(_f2.data===""){}else{var _f3=i$.fromJson(_f2.data);var _f4=_f3["entry"];}var _f5;if(_ef.uri=="tm:ts:empty"){}else{if(_f4===undefined){_f5=null;}else{numberOfRatings=_f4.length;var _f5=null;_f5={id:_f4[0]["id"],name:_f4[0]["title"]["$t"],count:_f4[0]["link"][0]["count"]};var _f6={name:_ed,oid:_f5.id,resourceID:_f0.oid};editRatingrequest=_e9.getEditRatingRequest(_f6);_f8(editRatingrequest,_eb,_f5.id,_ee);}}},function(_f7){console.error("Error case: ",_f7);if(_f7!=null&&_f7.xhr!=null&&_f7.xhr.status!=null&&_f7.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(_f0.oid,_f7);}});};var _f8=function(_f9,oid,id,_fa){var _fb=ibmPortalConfig.contentHandlerURI;var _fc={uri:id,rep:"empty",mode:"merge",};if(_fb!=null){if(_fb.indexOf("?")>0){_fb+="&";}else{_fb+="?";}}var _fd=_fb+i$.toQuery(_fc);i$.xhrPut({url:_fd,postData:_f9,headers:{"content-type":"application/xml","X-IBM-XHR":"true"}}).then(function(_fe){_fa(oid,com_ibm_widgets_rating.getCurrentDisplayedScope(oid),com_ibm_widgets_rating.displayDojolessRatings);},function(_ff){console.error("Error case: ",_ff);if(_ff!=null&&_ff.xhr!=null&&_ff.xhr.status!=null&&_ff.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_15(oid,_ff);}});};var _100=function(_101,_102,_103){var _104={uri:"tm:name:"+_103,rmparam:"rm:"+_101.oid,"mime-type":"application/json"};var _105=com_ibm_widgets_tagging.getCurrentDisplayedTagScope(_101.oid);var _106={"scope":_105};_106.query={"scope":_105};var _107=ibmPortalConfig.contentHandlerURI;if(_107!=null){if(_107.indexOf("?")>0){_107+="&";}else{_107+="?";}}_107+=i$.toQuery(_104)+"&"+i$.toQuery(_106.query)+"&"+Math.random();i$.xhrGet({url:_107,scope:_105,responseType:"text",}).then(function(_108){if(_108.data===""){}else{var _109=i$.fromJson(_108.data);var _10a=_109["entry"];}var torR;var _10b=0;if(_10a!==undefined){_10b=_10a.length;}var torR=new Array(_10b);for(var i=0;i<_10b;i++){torR[i]={name:_10a[i]["title"]["$t"],id:_10a[i].id};_10d(torR[i].id,_104,_101,_102);}},function(_10c){console.error("Error case: ",_10c);if(_10c!=null&&_10c.xhr!=null&&_10c.xhr.status!=null&&_10c.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_41(_101.oid,_10c);}});};var _10d=function(_10e,_10f,_110,_111){var _10f={uri:_10e,"mime-type":"application/json"};var _112=ibmPortalConfig.contentHandlerURI;if(_112!=null){if(_112.indexOf("?")>0){_112+="&";}else{_112+="?";}}_112+=i$.toQuery(_10f)+"&"+i$.toQuery(_110.query)+"&"+Math.random();i$.xhrDelete({url:_112,responseType:"text"}).then(function(_113){var _114=com_ibm_widgets_tagging.getCurrentDisplayedCount(_110.oid);var _115=com_ibm_widgets_tagging.getCurrentDisplayedTagScope(_110.oid);_111(_110.oid,_115,_114,com_ibm_widgets_tagging.displayTagsLight);},function(_116){console.error("Error case: ",_116);if(_116!=null&&_116.xhr!=null&&_116.xhr.status!=null&&_116.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_41(_110.oid,_116);}});};var _117=function(_118,_119,_11a){var _11b={uri:"tm:name:"+_11a,rmparam:"rm:"+_118,"mime-type":"application/json"};var _11c=com_ibm_widgets_tagging.getCurrentDisplayedTagScope(_118);var _11d={"scope":_11c};_11d.query={"scope":_11c};var _11e=ibmPortalConfig.contentHandlerURI;if(_11e.indexOf("?")>0){_11e+="&";}else{_11e+="?";}_11e+=i$.toQuery(_11b)+"&"+i$.toQuery(_11d.query)+"&"+Math.random();i$.xhrGet({url:_11e,scope:_11c,responseType:"text",}).then(function(_11f){if(_11f.data===""){console.log("Data is empty string.");}else{var _120=i$.fromJson(_11f.data);var _121=_120["entry"];}var torR;var _122=0;if(_121!==undefined){_122=_121.length;}var torR=new Array(_122);for(var i=0;i<_122;i++){torR[i]={name:_121[i]["title"]["$t"],id:_121[i].id};_124(torR[i].id,_11b,_118,_119);}},function(_123){console.error("Error case: ",_123);if(_123!=null&&_123.xhr!=null&&_123.xhr.status!=null&&_123.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_41(_118,_123);}});};var _124=function(_125,_126,_127,_128){var _126={uri:_125,"mime-type":"application/json"};var _129=ibmPortalConfig.contentHandlerURI;if(_129!=null){if(_129.indexOf("?")>0){_129+="&";}else{_129+="?";}}_129+=i$.toQuery(_126)+"&"+i$.toQuery(_127)+"&"+Math.random();i$.xhrDelete({url:_129,responseType:"text"}).then(function(_12a){var _12b=com_ibm_widgets_tagging.getCurrentDisplayedCount(_127);var _12c=com_ibm_widgets_tagging.getCurrentDisplayedTagScope(_127);_5b(_127,_12c,_12b,com_ibm_widgets_tagging.displayMoreTags);},function(_12d){console.error("Error case: ",_12d);if(_12d!=null&&_12d.xhr!=null&&_12d.xhr.status!=null&&_12d.xhr.status==401){window.setTimeout(function(){document.location.reload();},0);}else{_41(_127,_12d);}});};return {fetchTagsLight:_2e,fetchSpecificScopeTags:_5b,showTaggingErrorMessage:_41,showTaggingValidationError:_47,deleteTag:_100,deleteMoreTag:_117,insertTag:_58,clearTaggingErrorMessage:_4d,setALTtextforAllElementsInTagging:_25,trace:_f,setALTtextforAllElementsInRating:_1f,deleteRating:_92,deleteAllRating:_a9,insertRating:_c7,editRating:_ea,clearRatingErrorMessage:_1b,fetchDojolessRatings:_33,fetchSpecificScopeRatings:_70,fetchSpecificScopeRatings_defaultView:_7a,fetchSpecificScopeRatings_anonymousUser:_85};})();var com_ibm_widgets_tagging=(function(){var _12e=".tags";var _12f="Twisty_";var _130="TagWidget_";var _131="tagginglighttagslist_";var _132="_Content";var _133="lotusHidden lotusTagCloud lotusui";var _134="lotusTagCloud lotusui";var _135="tagginglight_privateTaggingEnabled";var _136="tagginglight_deleteTaggingEnabled";var _137="tagginglight_plusClicked";var _138="_Image";var _139="_MoreTags";var _13a="TaggingMenu_";var _13b="tagginglight_";TAGGING_INLINE_EDITING_TYPEAHEAD_SUFFIX="_SuggestionList";var _13c="taggingMenuOptionDiv";var _13d="TaggingMenuDiv_";var _13e="tagginglight_CurrentScope";var _13f="tagginglight_CurrentCount";var _140="tagginglightmenulink_";var _141="tagginglightAddTaglink_";var _142="taggingDropDownMenuDialog_";var _143,_144,_145,_146;var _147="tagginglightinput_";var _148="tagginglightinputField_";var _149=new Array();var _14a="deleteIcon";var _14b="wpTaggingLight";var _14c="ltr";var _14d=i$.addOnLoad;if(typeof wp_wcm_async!="undefined"){_14d=i$.scope(wp_wcm_async,wp_wcm_async.addOnPageLoad);}_14d(function(){var _14e=ibmPortalConfig.projectUUID;if(_14e==null||_14e==""){i$.forEach(i$.query(_12e),function(_14f,_150,_151){var _152=_130+_150;var _153=ibmPortalCPConfig?ibmPortalCPConfig.operations.canViewTags&&ibmPortalCPConfig.isTaggingEnabled:null;if(_153==null||(!_153)){return;}var _154={"count":_150,"oid":_14f.getAttribute("resourceId"),"tagListParentId":_152,"tagsClickable":_14f.getAttribute("tagsClickable")||ibmPortalCPConfig.tagging.inline.tagsClickable,"tagClickActionMode":_14f.getAttribute("tagClickActionMode")||ibmPortalCPConfig.tagging.inline.tagClickActionMode,"showDialogLauncher":_14f.getAttribute("showDialogLauncher")||ibmPortalCPConfig.tagging.inline.showDialogLauncher,"maxResults":_14f.getAttribute("maxResults")||ibmPortalCPConfig.tagging.inline.maxResults,"customLabel":_14f.getAttribute("customLabel")||ibmPortalCPConfig.tagging.inline.customLabel,"customMessageNoTags":_14f.getAttribute("customMessageNoTags")||dojoless_resource_AddTag.text_no_tags,"countsEnabled":_14f.getAttribute("countsEnabled")||ibmPortalCPConfig.tagging.inline.countsEnabled,"deletingEnabled":_14f.getAttribute("deletingEnabled")||ibmPortalCPConfig.tagging.inline.deletingEnabled,"tagClickTransmitScopes":_14f.getAttribute("tagClickTransmitScopes")||ibmPortalCPConfig.tagging.inline.tagClickTransmitScopes,"resourceType":_14f.getAttribute("resourceType")||ibmPortalCPConfig.tagging.inline.resourceType,"privateTaggingEnabled":_14f.getAttribute("privateTaggingEnabled")||ibmPortalCPConfig.tagging.inline.privateTaggingEnabled,"customLabelCommunityTags":_14f.getAttribute("customLabelCommunityTags")||ibmPortalCPConfig.tagging.inline.customLabelCommunityTags,"customLabelPersonalPublicTags":_14f.getAttribute("customLabelPersonalPublicTags")||ibmPortalCPConfig.tagging.inline.customLabelPersonalPublicTags,"customLabelPersonalPrivateTags":_14f.getAttribute("customLabelPersonalPrivateTags")||ibmPortalCPConfig.tagging.inline.customLabelPersonalPrivateTags,"showAllTags":false};_154.query={"order":_14f.getAttribute("order")||ibmPortalCPConfig.tagging.inline.order,"orderMetric":_14f.getAttribute("orderMetric")||ibmPortalCPConfig.tagging.inline.orderMetric,"scope":_14f.getAttribute("tagScope")||ibmPortalCPConfig.tagging.inline.tagScope,"resourceCategories":_14f.getAttribute("resourceCategories")||ibmPortalCPConfig.tagging.inline.resourceCategories};var _155="true";if(_14f.getAttribute("deletingEnabled")==null||_14f.getAttribute("deletingEnabled")=="undefined"){if(ibmPortalCPConfig.tagging.inline.deletingEnabled!==null&&typeof ibmPortalCPConfig.tagging.inline.deletingEnabled!=="undefined"){_155=ibmPortalCPConfig.tagging.inline.deletingEnabled;}else{_155="true";}}else{_155=_14f.getAttribute("deletingEnabled");}_156(_14f.getAttribute("resourceId"),_155);_149[_150]=_14f.getAttribute("resourceId");var _157=_134;var _158=null;if(_14f.getAttribute("tagScope")!=null){_158=_14f.getAttribute("tagScope");}else{_158=ibmPortalCPConfig.tagging.inline.tagScope;}if(_158){_158=_158.toUpperCase();}var _159=_15a(_158);var _15b=null;if(_14f.getAttribute("customLabel")!=null){_15b=_14f.getAttribute("customLabel");}else{_15b=ibmPortalCPConfig.tagging.inline.customLabel;}if(!_15b){switch(_159[0]){case ("COMMUNITY"):if(_154.customLabelCommunityTags==null){_15b=dojoless_resource_AddTag.title_community_tags;}else{_15b=_154.customLabelCommunityTags;}break;case ("PERSONAL_PRIVATE"):if(_154.customLabelPersonalPrivateTags==null){_15b=dojoless_resource_AddTag.title_priv_tags;}else{_15b=_154.customLabelPersonalPrivateTags;}break;case ("PERSONAL_PUBLIC"):if(_154.customLabelPersonalPublicTags==null){_15b=dojoless_resource_AddTag.title_pub_tags;}else{_15b=_154.customLabelPersonalPublicTags;}break;default:_15b=dojoless_resource_AddTag.title_community_tags;break;}}else{_15b=dojoless_resource_AddTag.title_community_tags;}var loc=ibmCfg.portalConfig.locale;if(loc!=null){var _15c=i$.isRTL(loc);if(_15c!=null){if(_15c){_14c="rtl";}else{_14c="ltr";}}}var _15d=i$.byId("tagginglightlabeltext_"+_14f.getAttribute("resourceId"));if(_15d!=null){_15d.innerHTML=_15b;}_154.query.scope=_159;var _15e=i$.createDom("span",{"class":"trcText","title":_15b,"dir":_14c},_14f);var _15f=i$.createDom("span",{"id":_152,"class":_157,"dir":_14c},_14f);if(_14f.getAttribute("privateTaggingEnabled")==null||_14f.getAttribute("privateTaggingEnabled")=="undefined"){if(ibmPortalCPConfig.tagging.inline.privateTaggingEnabled!==null&&typeof ibmPortalCPConfig.tagging.inline.privateTaggingEnabled!=="undefined"){_145=ibmPortalCPConfig.tagging.inline.privateTaggingEnabled;}else{_145="false";}}else{_145=_14f.getAttribute("privateTaggingEnabled");}var _160=!ibmPortalConfig.isUserLoggedIn;if(_160){_159=["community","personal_public"];_145="false";}_161(_14f.getAttribute("resourceId"),_145);com_ibm_widgets_resolver.setALTtextforAllElementsInTagging(_14f.getAttribute("resourceId"));com_ibm_widgets_resolver.fetchTagsLight(_154,_162);});}},i$.global);var _163=",";var _164=", ";var _165=" , ";var _166=" ; ";var _167="...";var _168=" ";var _162=function(tags,_169){var _16a=tags.length;var _16b=(_169.maxResults<_16a&&_169.showAllTags==false)?_169.maxResults:_16a;var _16c=_169.tagListParentId;var _16d=_16c+_132;var _16e=i$.byId(_16c);_16e.innerHTML="";com_ibm_widgets_resolver.clearTaggingErrorMessage(_169.oid);var _16f=i$.byId("tagginglightmenuDIV_"+_169.oid);var _170=i$.byId("tagginglightAddTagDIV_"+_169.oid);if(ibmPortalCPConfig.operations.canCreatePublicTags||ibmPortalCPConfig.operations.canCreatePrivateTags){if(_16f!=null){_16f.setAttribute("class","menuShow");}if(_170!=null){_170.setAttribute("class","addtagShow");}}var _171=i$.byId("tagginglightinput_"+_169.oid);if(_171!=null){_171.setAttribute("class","addtagShow");}var _172=i$.byId("tagginglightdivider1_"+_169.oid);if(_172!=null){_172.setAttribute("class","divider1Show");}var _173=i$.createDom("span",{"id":_16d,"dir":_14c},_16e);var _174=i$.byId("tagginglightmoretagslink_"+_169.oid);if(_174!=null){_174.innerHTML=dojoless_resource_AddTag.title_more_tags;_174.setAttribute("onclick","com_ibm_widgets_tagging.getMoreTags('"+_169.oid+"')");i$.bindDomEvt(_174,"onkeypress",function(evt){var _175=evt.keyCode;if(_175==0&&evt.charCode==32){_175=32;}if(_175==13||_175==32){com_ibm_widgets_tagging.getMoreTags(_169.oid);}});_174.setAttribute("style","display:inline");}var _176=i$.byId(_142+_169.oid);var _177=null;var _178=_169.query.scope;var _179=_178[0];_179=_179.toUpperCase();switch(_179){case ("COMMUNITY"):if(_169.customLabelCommunityTags==null){_177=dojoless_resource_AddTag.title_community_tags;}else{_177=_169.customLabelCommunityTags;}break;case ("PERSONAL_PRIVATE"):if(_169.customLabelPersonalPrivateTags==null){_177=dojoless_resource_AddTag.title_priv_tags;}else{_177=_169.customLabelPersonalPrivateTags;}break;case ("PERSONAL_PUBLIC"):if(_169.customLabelPersonalPublicTags==null){_177=dojoless_resource_AddTag.title_pub_tags;}else{_177=_169.customLabelPersonalPublicTags;}break;default:_177=dojoless_resource_AddTag.title_community_tags;break;}if(_169.customLabel!=null){_177=_169.customLabel;}var _17a=i$.byId("tagginglightlabeltext_"+_169.oid);if(_17a!=null){_17a.innerHTML=_177;}_227(_169.oid,_178[0].toUpperCase());if(_169.count!=null){_22d(_169.oid,_169.count);}var _17b=i$.byId("tagginglightdivider3_"+_169.oid);var _17c=i$.byId("tagginglightdivider2_"+_169.oid);if(tags.length<1){var _17d=i$.createDom("span",{"title":_169.customMessageNoTags,"dir":_14c},_173);var _17e=document.createTextNode(_169.customMessageNoTags);_17d.appendChild(_17e);_174.setAttribute("style","display:none");if(_17b!=null){_17b.setAttribute("class","none");_17b.setAttribute("style","display:inline-block");}if(_17c!=null){_17c.setAttribute("class","divider1Show");}}else{if(_174!=null){_174.innerHTML=dojoless_resource_AddTag.title_more_tags;_174.setAttribute("style","display:inline");}if(_17b!=null){_17b.setAttribute("class","divider1Show");}if(_17c!=null){_17c.setAttribute("class","divider1Show");}}i$.forEach(tags,function(_17f,_180,_181){if(_180<_16b){var _182=_17f.name;var _183=_17f.id;_183=_183.substring(8);var _184;var _185=i$.createDom("a",{"lang":ibmPortalConfig.locale,"href":"javascript:;","alt":_182,"dir":_14c},_173);if(_169.tagsClickable==="false"){_184=i$.createDom("span",{"title":_182,"dir":_14c},_185);}else{_184=i$.createDom("span",{"title":_182,"href":"javascript:;","dir":_14c},_185);}var _186=_24e(_169.oid);_185.setAttribute("onclick","com_ibm_widgets_tagging.selectTagRedirectFunction('"+_182+"' , '"+_186+"','"+_169.tagClickActionMode+"')");var _187=i$.bindDomEvt(_185,"onkeypress",function(evt){var _188=evt.keyCode;if(_188==0&&evt.charCode==32){_188=32;}if(_188==13||_188==32){_1c9(_182,_186,_169.tagClickActionMode);}});var _189=document.createTextNode(_182);_184.appendChild(_189);if(_169.countsEnabled&&_17f.count){_189=document.createTextNode(" ("+_17f.count+") ");_184.appendChild(_189);}var _18a=_169.query.scope[0];_18a=_18a.toUpperCase();var _18b=!ibmPortalConfig.isUserLoggedIn;var _18c=_23b(_169.oid);if(_18a=="PERSONAL_PUBLIC"||_18a=="PERSONAL_PRIVATE"||ibmPortalCPConfig.operations.canDeleteOtherUsersTags){if(!_18b&&_18c=="true"){var _18d=i$.createDom("span",{"dir":_14c},_173);var _18e=i$.createDom("a",{"title":dojoless_resource_AddTag.link_delete,"role":"button","href":"javascript:;"},_18d);var _18f=i$.createDom("div",{"style":"width: 10px; height: 10px;"},_18e);_18f.setAttribute("class",_14a);_18f.setAttribute("alt",dojoless_resource_AddTag.link_delete);var _190;try{_190=document.defaultView.getComputedStyle(_18f);}catch(e){_190=_18f.currentStyle;}if(_190.backgroundImage=="none"){var _191=i$.createDom("div",{"style":"width: 10px; height: 10px;display:inline-block;"},_18e);var _192=document.createTextNode("x");_191.appendChild(_192);}i$.bindDomEvt(_18e,"onclick",function(evt){com_ibm_widgets_resolver.deleteTag(_169,com_ibm_widgets_resolver.fetchSpecificScopeTags,_183);});i$.bindDomEvt(_18e,"onkeypress",function(evt){var _193=evt.keyCode;if(_193==0&&evt.charCode==32){_193=32;}if(_193==13||_193==32){com_ibm_widgets_resolver.deleteTag(_169,com_ibm_widgets_resolver.fetchSpecificScopeTags,_183);}});}}if(_180<(_16b-1)){_189=document.createTextNode(_164);_173.appendChild(_189);}}});var _194=i$.byId(_140+_169.oid);if(_194!=null){_194.setAttribute("onclick","com_ibm_widgets_tagging.tagMenu('"+_169.oid+"')");var _195=i$.bindDomEvt(_194,"onkeypress",i$.scope(this,function(_196){var _197=_196.keyCode;if(_196.keyCode==0&&_196.charCode==32){_197=32;}switch(_197){case 40:case 32:case 38:case 13:var _198=i$.byId(_142+_169.oid);if(_198==null){com_ibm_widgets_tagging.tagMenu(_169.oid);var _199=_13d+_169.oid;var _19a=i$.byId(_199);var _19b=_19a.firstChild;window.setTimeout(function(){_19b.focus();},200);if(_196.preventDefault){_196.preventDefault();}if(_196.returnValue){_196.returnValue=false;}}return false;break;case 39:case 40:var _198=i$.byId(_142+_169.oid);if(_198!=null&&this.taggingDropDownMenu!=null){this.taggingDropDownMenu.close();}break;}}));}if(_16b==_16a){_174.setAttribute("style","display:none");var _17b=i$.byId("tagginglightdivider3_"+_169.oid);if(_17b!=null){_17b.setAttribute("class","none");_17b.setAttribute("style","display:inline-block");}if(_17c!=null){_17c.setAttribute("class","divider1Show");}}var _19c=i$.byId(_141+_169.oid);_19c.style.backgroundColor="white";var _19d;try{_19d=document.defaultView.getComputedStyle(_19c);}catch(e){_19d=_19c.currentStyle;}var _194=i$.byId(_140+_169.oid);var _17b=i$.byId("tagginglightdivider2_"+_169.oid);if(_19d.backgroundColor=="rgb(0, 0, 0)"){var _19e=i$.byId("InputImageDiv");if(_19e==null){var _19f=i$.createDom("div",{"id":"InputImageDiv","dir":_14c},_19c);var _1a0=document.createTextNode("+");_19f.appendChild(_1a0);}}_19c.style.visibility="visible";if(_169.showDialogLauncher!="false"){var _1a1=_17d||_16e;var _19c=i$.byId(_141+_169.oid);var item=i$.byId(_148+_169.oid);var _171=i$.byId("tagginglightinput_"+_169.oid);if(_171){var _1a2=_243(_169.oid);if(_1a2!=null&&_1a2=="true"){_171.setAttribute("class","addtagShow");}else{_171.setAttribute("class","addtag");}}var _1a3=i$.bindDomEvt(_19c,"onclick",function(evt){var item=i$.byId(_148+_169.oid);var _1a4=i$.byId("tagginglightinput_"+_169.oid);var _1a5=_1b2(_169.oid);_1a5=_15a(_1a5);var _1a6=_1a5[0].toUpperCase();if(_1a4){var _1a7=_243(_169.oid);if(_1a7=="true"||_1a6!=="COMMUNITY"){_1a4.setAttribute("class","addtagShow");item.value="";}if(_1a6=="COMMUNITY"){if(_169.count!=null){com_ibm_widgets_resolver.fetchSpecificScopeTags(_169.oid,"PERSONAL_PUBLIC",_169.count,com_ibm_widgets_tagging.displayTagsLight);}_246(_169.oid,true);}else{_246(_169.oid,false);}if(_1a4.getAttribute("class").indexOf("addtag"<0)){item=i$.byId(_148+_169.oid);item.focus();}}});var _1a3=i$.bindDomEvt(_19c,"onkeypress",function(evt){var _1a8=evt.keyCode;if(_1a8==0&&evt.charCode==32){_1a8=32;}if(_1a8!=9&&(_1a8==13||_1a8==32)){var item=i$.byId(_148+_169.oid);var _1a9=i$.byId("tagginglightinput_"+_169.oid);var _1aa=_1b2(_169.oid);_1aa=_15a(_1aa);var _1ab=_1aa[0].toUpperCase();if(_1a9){var _1ac=_243(_169.oid);if(_1ac=="true"||_1ab!=="COMMUNITY"){_1a9.setAttribute("class","addtagShow");item.value="";}if(_1ab=="COMMUNITY"){if(_169.count!=null){com_ibm_widgets_resolver.fetchSpecificScopeTags(_169.oid,"PERSONAL_PUBLIC",_169.count,com_ibm_widgets_tagging.displayTagsLight);}_246(_169.oid,true);}else{_246(_169.oid,false);}if(_1a9.getAttribute("class").indexOf("addtag"<0)){item=i$.byId(_148+_169.oid);item.focus();}}}});var _1ad=i$.byId(_148+_169.oid);var _1ae=i$.byId(_147+_169.oid);var _1af=i$.bindDomEvt(_1ad,"onkeydown",function(e){var _1b0=false;var _1b1=_1b2(_169.oid);var _1b3=_1b1.toUpperCase();if(_1b3=="PERSONAL_PRIVATE"){_1b0=true;}_169.query.scope=_1b1;keyDownHandler(e,_1ad,_169,_1b0);});}var _1b4=i$.createDom("form",{"method":"GET","action":".","name":"hiddenFormLight"},_1ae);var _1b5=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameSelectedTag"},_1b4);var _1b6=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameTagCloudRedirectView"},_1b4);var _1b7=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameSelectedTagMode"},_1b4);var _1b8=i$.createDom("input",{"type":"hidden","name":"hiddenFormUri"},_1b4);if(_169.tagClickTransmitScopes=="true"){var _1b9=_169.query.resourceCategories;if(_1b9&&_1b9!==""){var _1ba="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}sc";var _1bb=_1b9.split(_163);for(var i=0;i<_1bb.length;i++){var _1bc=i$.createDom("input",{type:"hidden",name:_1ba,value:_1bb[i]},_1b4);}}}var _176=i$.byId(_142+_169.oid);if(_176!=null&&this.taggingDropDownMenu!=null){this.taggingDropDownMenu.close();}};var _1bd=function(item){var _1be=item.parentNode;var _1bf=_1be.childNodes;var _1c0=_1bf.length;var i=0;var _1c1=0;for(i=0;i<_1c0;i++){if(_1bf.item(i)==item){_1c1=i;break;}}if(_1c1==_1c0-1){_1c1=0;}else{_1c1=_1c1+1;var j=_1c1;for(j;j<_1c0;j++){if(!(_1bf.item(j).innerHTML==null||_1bf.item(j).innerHTML=="")){break;}}if(j==_1c0){_1c1=0;}else{_1c1=j;}}var _1c2=_1bf.item(_1c1).id;var temp=_1bf.item(_1c1);temp.focus();return i$.byId(_1bf.item(_1c1).id);};var _1c3=function(item){var _1c4=item.parentNode;var _1c5=_1c4.childNodes;var _1c6=_1c5.length;var i=0;var _1c7=0;for(i=0;i<_1c6;i++){if(_1c5.item(i)==item){_1c7=i;break;}}if(_1c7==0){_1c7=_1c6-1;if(_1c5.item(_1c7).innerHTML==""==null||_1c5.item(_1c7).innerHTML==""){_1c7=_1c7-1;}}else{_1c7=_1c7-1;var j=_1c7;for(j;j>0;j--){if(!(_1c5.item(j).innerHTML==""==null||_1c5.item(j).innerHTML=="")){break;}}_1c7=j;}var _1c8=_1c5.item(_1c7).id;var temp=_1c5.item(_1c7);temp.focus();return i$.byId(_1c5.item(_1c7).id);};var _1c9=function(_1ca,_1cb,_1cc){var _1cd="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}stv_all";var _1ce="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}stv_suggestedlinks";var _1cf="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}stv_analytics";var _1d0="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}tcrv";var _1d1="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}stm";var _1d2="tm:tc";var _1d3="tm:prp";var _1d4="all";var _1d5="community";var _1d6=["personal_public","community"];var _1d7="COMMUNITY_PERSONAL_PUBLIC";var _1d8="personal";var _1d9="personal_public";var _1da="personal_private";var _1db=true;var _1dc="PRIVATE";var _1dd="PUBLIC";var _1de="all";var _1df="suggested_links";var _1e0="analytics";var _1e1="TAG_CENTER";var _1e2="PUBLIC_RENDER_PARAMETER";var _1e3=false;if(!this.prefix||this.prefix===""){if(document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.name=_1cd;}else{document.hiddenFormLight.hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight.hiddenFormQNameSelectedTag.name=_1cd;}if(document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.value=_1de;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.name=_1d0;}if(document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.value=_1de;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.name=_1d1;}else{document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.value=_1de;document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.name=_1d0;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.value=_1de;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.name=_1d1;}}else{if(this.prefix===_prefixSuggestedLinks){if(document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.name=_1ce;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.value=_1df;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.name=_1d0;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.value=_1df;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.name=_1d1;}else{document.hiddenFormLight.hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight.hiddenFormQNameSelectedTag.name=_1ce;document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.value=_1df;document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.name=_1d0;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.value=_1df;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.name=_1d1;}}else{if(this.prefix===_prefixAnalytics){if(document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTag.name=_1cf;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.value=_1e0;document.hiddenFormLight[_1cb].hiddenFormQNameTagCloudRedirectView.name=_1d0;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.value=_1e0;document.hiddenFormLight[_1cb].hiddenFormQNameSelectedTagMode.name=_1d1;}else{document.hiddenFormLight.hiddenFormQNameSelectedTag.value=_1ca;document.hiddenFormLight.hiddenFormQNameSelectedTag.name=_1cf;document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.value=_1e0;document.hiddenFormLight.hiddenFormQNameTagCloudRedirectView.name=_1d0;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.value=_1e0;document.hiddenFormLight.hiddenFormQNameSelectedTagMode.name=_1d1;}}}}if(ibmPortalCPConfig.isTagCenterAvailable){var _1e4=ibmPortalCPConfig.tagging.inline.tagClickActionMode;if(_1e4==_1e1){if(document.hiddenFormLight[_1cb].hiddenFormUri!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormUri.value=_1d2;document.hiddenFormLight[_1cb].hiddenFormUri.name="uri";}else{document.hiddenFormLight.hiddenFormUri.value=_1d2;document.hiddenFormLight.hiddenFormUri.name="uri";}}else{if(document.hiddenFormLight[_1cb].hiddenFormUri!=null){_1e3=true;document.hiddenFormLight[_1cb].hiddenFormUri.value=_1d3;}else{document.hiddenFormLight.hiddenFormUri.value=_1d3;}}}if(_1e3){document.hiddenFormLight[_1cb].submit();}else{document.hiddenFormLight.submit();}};function _1e5(aID,rsID,max){var _1e6=i$.byId("handleMoreTagsDialog"+rsID);if(_1e6==null){if(i$.isIE<9){_146=new wpModules.dialog.Dialog({id:"handleMoreTagsDialog"+rsID,markup:aID,autoPosition:_1e7(rsID),posHandler:"horizontallyCenteredBelow",autoResize:true,metrics:{width:max},autoClose:true});}else{_146=new wpModules.dialog.Dialog({id:"handleMoreTagsDialog"+rsID,markup:aID,autoPosition:_1e7(rsID),posHandler:"horizontallyCenteredBelow",autoResize:true,autoClose:true});}_146.open();}};function _1e8(id,lang,dir,_1e9,_1ea,_1eb,_1ec){return i$.createDom("a",{"id":id,"lang":lang,"dir":dir,"tabIndex":"0","href":"javascript:;","role":"menuitem","class":_13c,"onclick":"com_ibm_widgets_resolver.fetchSpecificScopeTags('"+_1e9+"','"+_1ec+"','"+_1ea+"', com_ibm_widgets_tagging.displayTagsLight);",},_1eb);};function _1e7(rsID){return i$.byId("moretagslink_"+rsID);};function _15a(_1ed){_1ed=_1ed.toUpperCase();switch(_1ed){case ("PERSONAL_PRIVATE"):_1ed=["personal_private"];break;case ("PERSONAL_PUBLIC"):_1ed=["personal_public"];break;case ("COMMUNITY_PERSONAL_PUBLIC"):_1ed=["community","personal_public"];break;default:_1ed=["community","personal_public"];break;}return _1ed;};function _1ee(_1ef){i$.forEach(i$.query(_12e),function(_1f0,_1f1,_1f2){var _1f3="TaggingExtraWidget_"+_1f1;var _1f4=_1b2(_1ef);_1f4=_15a(_1f4);var _1f5={"count":_1f1,"oid":_1f0.getAttribute("resourceId"),"tagListParentId":_1f3,"tagsClickable":_1f0.getAttribute("tagsClickable")||ibmPortalCPConfig.tagging.inline.tagsClickable,"showDialogLauncher":_1f0.getAttribute("showDialogLauncher")||ibmPortalCPConfig.tagging.inline.showDialogLauncher,"maxResults":_1f0.getAttribute("maxResults")||ibmPortalCPConfig.tagging.inline.maxResults,"customMessageNoTags":_1f0.getAttribute("customMessageNoTags")||dojoless_resource_AddTag.text_no_tags,"countsEnabled":_1f0.getAttribute("countsEnabled")||ibmPortalCPConfig.tagging.inline.countsEnabled,"deletingEnabled":_1f0.getAttribute("deletingEnabled")||ibmPortalCPConfig.tagging.inline.deletingEnabled,"tagClickTransmitScopes":_1f0.getAttribute("tagClickTransmitScopes")||ibmPortalCPConfig.tagging.inline.tagClickTransmitScopes,"privateTaggingEnabled":_1f0.getAttribute("privateTaggingEnabled")||ibmPortalCPConfig.tagging.inline.privateTaggingEnabled,"showAllTags":false};_1f5.query={"order":_1f0.getAttribute("order")||ibmPortalCPConfig.tagging.inline.order,"orderMetric":_1f0.getAttribute("orderMetric")||ibmPortalCPConfig.tagging.inline.orderMetric,"resourceType":_1f0.getAttribute("resourceType")||ibmPortalCPConfig.tagging.inline.resourceType,"scope":_1f4,"resourceCategories":_1f0.getAttribute("resourceCategories")||ibmPortalCPConfig.tagging.inline.resourceCategories};if(_1f0.getAttribute("deletingEnabled")==null||_1f0.getAttribute("deletingEnabled")=="undefined"){if(ibmPortalCPConfig.tagging.inline.deletingEnabled!==null&&typeof ibmPortalCPConfig.tagging.inline.deletingEnabled!=="undefined"){_1f5.deletingEnabled=ibmPortalCPConfig.tagging.inline.deletingEnabled;}else{_1f5.deletingEnabled="true";}}else{_1f5.deletingEnabled=_1f0.getAttribute("deletingEnabled");}_149[_1f1]=_1f0.getAttribute("resourceId");if(_1ef==_149[_1f1]){var _1f6=_134;if(i$.byId(_1f3)!=null){var _1f7=i$.createDom("span",{"id":_1f3,"class":_1f6,"dir":_14c},_1f0);}com_ibm_widgets_resolver.fetchTagsLight(_1f5,_1f8);}});};var _1f8=function(tags,_1f9){var _1fa=tags.length;var _1fb=(_1f9.maxResults<_1fa&&_1f9.showAllTags==false)?_1f9.maxResults:_1fa;var _1fc="TagsExtra_"+_1f9.oid;var _1fd=_1fc+_132+_1f9.oid;var _1fe=i$.createDom("div",{"id":"TagsExtraDiv","dir":_14c});var _1ff=null;_1ff=i$.byId(_1fc);if(_1ff==null){_1ff=i$.createDom("span",{"id":_1fc,"class":_14b,"dir":_14c},_1fe);}var _200=null;_200=i$.byId(_1fd);if(_200==null){_200=i$.createDom("span",{"id":_1fd,"dir":_14c},_1ff);}else{while(_200.hasChildNodes()){_200.removeChild(_200.lastChild);}}if(tags.length<1){var _201=i$.createDom("div",{"title":_1f9.customMessageNoTags,"class":"lotusTagCloud lotusui","dir":_14c},_200);var _202=document.createTextNode(_1f9.customMessageNoTags);_201.appendChild(_202);}var max=0;i$.forEach(tags,function(_203,_204,_205){if(_204<_1fa&&_204>=_1fb){var _206=_203.name;var _207=_203.id;_207=_207.substring(8);var _208;var _209=i$.createDom("a",{"lang":ibmPortalConfig.locale,"href":"javascript:;","dir":_14c},_200);if(_1f9.tagsClickable==="false"){_208=i$.createDom("span",{"title":_206,"dir":_14c},_209);}else{_208=i$.createDom("span",{"title":_206,"href":"javascript:;","dir":_14c},_209);}var _20a=document.createTextNode(_206);_208.appendChild(_20a);var _20b=_1f9.count;var _20c=_1f9.tagClickActionMode;_209.setAttribute("onclick","com_ibm_widgets_tagging.selectTagRedirectFunction('"+_206+"' , '"+_20b+"','"+_20c+"')");var _20d=i$.bindDomEvt(_209,"onkeypress",function(evt){var _20e=evt.keyCode;if(_20e==0&&evt.charCode==32){_20e=32;}if(_20e==13||_20e==32){_1c9(_206,_20b,_20c);}});var _20f=_206;if(_1f9.countsEnabled&&_203.count){_20a=document.createTextNode(" ("+_203.count+") ");_208.appendChild(_20a);_20f=_20f+"("+_203.count+")";}var _210=_1f9.query.scope;_210=_210[0];_210=_210.toUpperCase();var _211=_23b(_1f9.oid);if(_210=="PERSONAL_PUBLIC"||_210=="PERSONAL_PRIVATE"||ibmPortalCPConfig.operations.canDeleteOtherUsersTags){if(_211=="true"){var _212=i$.createDom("span",{"id":"Delete_"+_1f9.oid+"_"+_206,"dir":_14c},_200);var _213=i$.createDom("a",{"title":dojoless_resource_AddTag.link_delete,"role":"button","href":"javascript:;","dir":_14c},_212);var _214=i$.createDom("img",{"style":"width: 10px; height: 10px;","dir":_14c,"src":"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},_213);_214.setAttribute("class",_14a);_214.setAttribute("alt",dojoless_resource_AddTag.link_delete);_213.setAttribute("onclick","com_ibm_widgets_resolver.deleteMoreTag('"+_1f9.oid+"' , '"+"displayMoreTags"+"','"+_207+"')");i$.bindDomEvt(_213,"onkeypress",function(evt){var _215=evt.keyCode;if(_215==0&&evt.charCode==32){_215=32;}if(_215==13||_215==32){com_ibm_widgets_resolver.deleteMoreTag(_1f9.oid,_1f8,_207);}});}}if(_204<(_1fa-1)){_20a=document.createTextNode(", ");_200.appendChild(_20a);if(i$.isIE<9){var _216=i$.createDom("br",{});}else{var _217=i$.createDom("br",{});_200.appendChild(_217);}_20f=_20f+",";}var lDiv=document.createElement("lDiv");document.body.appendChild(lDiv);lDiv.style.position="absolute";lDiv.style.left=-1000;lDiv.style.top=-1000;lDiv.innerHTML=_20f;var _218={width:lDiv.clientWidth,height:lDiv.clientHeight};document.body.removeChild(lDiv);lDiv=null;var _219=_218.width+45;max=_219>max?_219:max;}});var _21a=i$.createDom("form",{"method":"GET","action":".","name":"hiddenFormLight"},_1ff);var _21b=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameSelectedTag"},_21a);var _21c=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameTagCloudRedirectView"},_21a);var _21d=i$.createDom("input",{"type":"hidden","name":"hiddenFormQNameSelectedTagMode"},_21a);var _21e=i$.createDom("input",{"type":"hidden","name":"hiddenFormUri"},_21a);if(_1f9.tagClickTransmitScopes=="true"){var _21f=_1f9.query.resourceCategories;if(_21f&&_21f!==""){var _220="{http://www.ibm.com/xmlns/prod/websphere/portal/v7.0/portal-contextual-portal}sc";var _221=_21f.split(_163);for(var i=0;i<_221.length;i++){var _222=i$.createDom("input",{type:"hidden",name:_220,value:_221[i]},_21a);}}}var _223=_1f9.query.scope;_223=_223[0];_223=_223.toUpperCase();if(_223=="PERSONAL_PUBLIC"||_223=="PERSONAL_PRIVATE"){max=max+10;}if(_1fa==_1fb){var _224=i$.byId("handleMoreTagsDialog"+_1f9.oid);if(_224!=null&&_146!=null){_146.close();}var _225=i$.byId("tagginglightmoretagslink_"+_1f9.oid);_225.setAttribute("style","display:none");var _226=i$.byId("tagginglightdivider3_"+_1f9.oid);if(_226!=null){_226.setAttribute("class","none");_226.setAttribute("style","display:inline-block");}if(divider2!=null){divider2.setAttribute("class","divider1Show");}}else{_1e5(_1fe.innerHTML,_1f9.oid,max);}};var _227=function(_228,_229){var _22a=i$.byId(_13e+_228);if(_229=="COMMUNITY"){_229="COMMUNITY_PERSONAL_PUBLIC";}if(_22a==null){var _22b=document.createElement("input");_22b.setAttribute("id",_13e+_228);_22b.setAttribute("type","hidden");_22b.setAttribute("name","currentScope");_22b.setAttribute("value",_229);var _22c=i$.byId(_13b+_228);_22c.appendChild(_22b);}else{_22a.setAttribute("value",_229);}};var _22d=function(_22e,_22f){var _230=i$.byId(_13f+_22e);if(_230==null){var _231=document.createElement("input");_231.setAttribute("id",_13f+_22e);_231.setAttribute("type","hidden");_231.setAttribute("name","currentCount");_231.setAttribute("value",_22f);var _232=i$.byId(_13b+_22e);_232.appendChild(_231);}else{_230.setAttribute("value",_22f);}};var _233=function(_234){var _235=i$.byId(_135+_234);if(_235!=null){return _235.value;}};var _161=function(_236,_237){var _238=i$.byId(_135+_236);if(_238==null){var _239=i$.createDom("input",{},_23a);_239.setAttribute("id",_135+_236);_239.setAttribute("type","hidden");_239.setAttribute("name","privateTaggingEnabled");_239.setAttribute("value",_237);var _23a=i$.byId(_13b+_236);_23a.appendChild(_239);}else{_238.setAttribute("value",_237);}};var _23b=function(_23c){var _23d=i$.byId(_136+_23c);if(_23d!=null){return _23d.value;}};var _156=function(_23e,_23f){var _240=i$.byId(_136+_23e);if(_240==null){var _241=i$.byId(_13b+_23e);var _242=document.createElement("input");_242.setAttribute("id",_136+_23e);_242.setAttribute("type","hidden");_242.setAttribute("name","deleteTaggingEnabled");_242.setAttribute("value",_23f);_241.appendChild(_242);}else{_240.setAttribute("value",_23f);}};var _243=function(_244){var _245=i$.byId(_137+_244);if(_245!=null){return _245.value;}};var _246=function(_247,_248){var _249=i$.byId(_137+_247);if(_249==null){var _24a=i$.createDom("input",{},_24b);_24a.setAttribute("id",_137+_247);_24a.setAttribute("type","hidden");_24a.setAttribute("name","plusClicked");_24a.setAttribute("value",_248);var _24b=i$.byId(_13b+_247);_24b.appendChild(_24a);}else{_249.setAttribute("value",_248);}};var _1b2=function(_24c){var _24d=i$.byId(_13e+_24c);if(_24d!=null){return _24d.value;}};var _24e=function(_24f){var _250=i$.byId(_13f+_24f);if(_250!=null){return _250.value;}};var _251=function(_252){var _253={"oid":_252};var _254=_13a+_252;var _255=i$.byId(_13b+_252);var item=i$.byId(_148+_253.oid);var _256=i$.byId("tagginglightinput_"+_253.oid);if(_256){_256.setAttribute("class","addtag");_246(_252,false);}var _257=i$.createDom("div",{"id":_254,"tabIndex":"0","class":_13c,"dir":_14c});var _258=_13d+_252;var _259=i$.createDom("div",{"id":_258,"aria-label":dojoless_resource_AddTag.tagging_menu,"role":"menu","dir":_14c},_257);var _258=_13d+_252;var _25a=null;var _25b=null;var _25c=null;var _25d=_1b2(_252);var _25e=_24e(_252);var _25f=_233(_252);com_ibm_widgets_resolver.clearTaggingErrorMessage(_252);switch(_25d){case ("PERSONAL_PRIVATE"):var _260=dojoless_resource_AddTag.Menu_tagging;var _25e=_24e(_252);var _261=_260+"_"+"Link"+"_"+_252;_25b=_1e8(_261,ibmPortalConfig.locale,_14c,_252,_25e,_259,"COMMUNITY_PERSONAL_PUBLIC");var _262=document.createTextNode(_260);_25b.appendChild(_262);var _263=dojoless_resource_AddTag.Menu_public_tagging;var _264=_263+"_"+"Link"+"_"+_252;_25a=_1e8(_264,ibmPortalConfig.locale,_14c,_252,_25e,_259,"PERSONAL_PUBLIC");var _265=document.createTextNode(_263);_25a.appendChild(_265);break;case ("PERSONAL_PUBLIC"):var _260=dojoless_resource_AddTag.Menu_tagging;var _261=_260+"_"+"Link"+"_"+_252;_25b=_1e8(_261,ibmPortalConfig.locale,_14c,_252,_25e,_259,"COMMUNITY_PERSONAL_PUBLIC");var _262=document.createTextNode(_260);_25b.appendChild(_262);if(_25f=="true"){var _266=dojoless_resource_AddTag.Menu_private_tagging;var _267=_266+"_"+"Link"+"_"+_252;_25c=_1e8(_267,ibmPortalConfig.locale,_14c,_252,_25e,_259,"PERSONAL_PRIVATE");var _265=document.createTextNode(_266);_25c.appendChild(_265);}break;case ("COMMUNITY_PERSONAL_PUBLIC"):var _263=dojoless_resource_AddTag.Menu_public_tagging;var _264=_263+"_"+"Link"+"_"+_252;_25a=_1e8(_264,ibmPortalConfig.locale,_14c,_252,_25e,_259,"PERSONAL_PUBLIC");var _265=document.createTextNode(_263);_25a.appendChild(_265);if(_25f=="true"){var _266=dojoless_resource_AddTag.Menu_private_tagging;var _267=_266+"_"+"Link"+"_"+_252;_25c=_1e8(_267,ibmPortalConfig.locale,_14c,_252,_25e,_259,"PERSONAL_PRIVATE");var _265=document.createTextNode(_266);_25c.appendChild(_265);}break;default:allTagsLabel=dojoless_resource_AddTag.title_community_tags;}if(_25d!="COMMUNITY_PERSONAL_PUBLIC"){_259.appendChild(_25b);_259.appendChild(i$.createDom("br",{},_25b));}if(_25d!="PERSONAL_PUBLIC"){_259.appendChild(_25a);_259.appendChild(i$.createDom("br",{},_25a));}if(_25d!="PERSONAL_PRIVATE"&&_25c!=null){_259.appendChild(_25c);_259.appendChild(i$.createDom("br",{},_25c));}_268(_257.innerHTML,_253.oid);};var _269=function(_26a,item,_26b){var _26c=item.parentNode;var _26d=_26c.childNodes;var _26e=item;var _26f=String.fromCharCode(_26a),_270=_26f.toLowerCase(),_271=_272(_26b),_273=_26b.innerHTML.charAt(_271),_274=_26d,_275;if(_270==_273.toLowerCase()){var _276=0;var i=0;_274=_26e.childNodes;var len=_274.length;for(i;i<len;i++){if(_274.item(i)==_26b){break;}}_276=i;var _277=_278(_274,_276,_273,_26f);if((_277!=item)){_279(_277);}}else{_274=_26e.childNodes;for(var k=0,nal=_274.length;k<nal;k++){_271=_272(_274[k]);_275=_274[k].innerHTML;if((_270==_275.charAt(_271).toLowerCase())){_279(_274[k]);break;}}}};function _279(item){item.focus();};function _278(_27a,_27b,_27c,_27d){var _27e,_27f=false,_280,_281=_27a.length,_282=(_27b==_281-1)?-1:_27b;for(var i=_282+1;i<_281;i++){_27e=_272(_27a[i]);_280=_27a[i].innerHTML.charAt(_27e).toLowerCase();if(_280==_27d.toLowerCase()){_27b=i;break;}if(i==_27a.length-1){if(_27f){break;}i=-1;_281=_27b;_27f=true;}}return _27a[_27b];};function _272(item){var ltr=null;var loc=ibmCfg.portalConfig.locale;if(loc!=null){var _283=i$.isRTL(loc);if(_283!=null){if(_283){ltr=false;}else{ltr=true;}}}if((item.text)&&(!ltr)){return item.text.length-1;}return 0;};function _284(rsID){return i$.byId(_140+rsID);};var _268=function(aID,rsID){this.taggingDropDownMenu=null;this.taggingDropDownMenu=new wpModules.dialog.Dialog({id:_142+rsID,markup:aID,posHandler:"horizontallyCenteredBelow",autoPosition:_284(rsID),autoResize:true,displayCloseOverlay:true,autoClose:true,callbackFn:function(arg){var _285=i$.byId(_140+rsID);if(_285!=null){window.setTimeout(function(){_285.focus();},200);}}});this.taggingDropDownMenu.open();var _286=dojoless_resource_AddTag.Menu_private_tagging;var _287=_286+"_"+"Link"+"_"+rsID;var _288=dojoless_resource_AddTag.Menu_public_tagging;var _289=_288+"_"+"Link"+"_"+rsID;var _28a=dojoless_resource_AddTag.Menu_tagging;var _28b=_28a+"_"+"Link"+"_"+rsID;var _28c=i$.byId(_13d+rsID);if(_28c!=null){var _28d=i$.bindDomEvt(_28c,"onkeydown",i$.scope(this,function(_28e){switch(_28e.keyCode){case 32:var _28f=document.activeElement;if(_28f.id==_289){com_ibm_widgets_resolver.fetchSpecificScopeTags(rsID,"PERSONAL_PUBLIC",0,com_ibm_widgets_tagging.displayTagsLight);}else{if(_28f.id==_28b){com_ibm_widgets_resolver.fetchSpecificScopeTags(rsID,"COMMUNITY_PERSONAL_PUBLIC",0,com_ibm_widgets_tagging.displayTagsLight);}else{com_ibm_widgets_resolver.fetchSpecificScopeTags(rsID,"PERSONAL_PRIVATE",0,com_ibm_widgets_tagging.displayTagsLight);}}break;case 9:if(this.taggingDropDownMenu!=null){this.taggingDropDownMenu.close();}break;case 27:if(this.taggingDropDownMenu!=null){this.taggingDropDownMenu.close();}break;case 38:var _28f=document.activeElement;var _290=_1c3(_28f);if(_290!=null){_290.focus();}if(_28e.preventDefault){_28e.preventDefault();}return false;break;case 39:break;case 40:var _28f=document.activeElement;var _290=_1bd(_28f);if(_290!=null){_290.focus();}if(_28e.preventDefault){_28e.preventDefault();}return false;break;default:var item=document.activeElement;_269(_28e.keyCode,_28c,item);break;}}));}};return {TAGGING_WIDGET_TAGS_ID_PREFIX:"tagginglighttagslist_",TAGGING_WIDGET_ID_PREFIX:"TagWidget_",tagMenu:_251,displayTagsLight:_162,displayMoreTags:_1f8,selectTagRedirectFunction:_1c9,getMoreTags:_1ee,tagIdsArray:_149,getCurrentDisplayedCount:_24e,getCurrentDisplayedTagScope:_1b2,setPlusClicked:_246,};})();"use strict";var com_ibm_widgets_rating=(function(){var _291=".stars";var _292="RatingWidget_";var _293;var _294;var _295;var _296;var _297;var _298=ibmPortalCPConfig.rating.dialog.numStars;var _299="ratinglight_";var _29a="ratinglightstars_";var _29b="ratinglight_CurrentScope";var _29c="ratinglight_privateRatingEnabled";var _29d="ratinglight_deleteRatingEnabled";var _29e="ratinglightlabeltext_";var _29f="ratinglightstarsfull_";var _2a0="ratinglightstarsempty_";var _2a1="ratinglightdescriptionlabel_";var _2a2="ratinglightmenulink_";var _2a3="ratinglightdivider1_";var _2a4="ratinglightdivider2_";var _2a5=14;var _2a6="px";var _2a7="(";var _2a8=")";var _2a9="/";var _2aa="RatingMenuDiv_";var _2ab="RatingMenu_";var _2ac="RatingDistribution_";var _2ad="RatingDistributionDiv_";var _2ae="ratingDistributionEmptyBar";var _2af="ratingDistributionFullBar";var _2b0="ratingDistributionEmptyBarIE8";var _2b1="ratingDistributionFullBarIE8";var _2b2="ratingDistributionText";var _2b3="totalRatingText";var _2b4="horizontalDivider";var _2b5="horizontalDivider2";var _2b6="horizontalDivider3";var _2b7=14;var _2b8="ratingDistributionDiv";var _2b9="ratingDistributionDiv";var _2ba="textDiv";var _2bb="textDivID";var _2bc;var _2bd="ratingsDropDownMenuDialog_";var _2be="wpRatingLightMenuDialogCSS ";var _2bf="ltr";var _2c0="ratingDistributionFullBar_RTL";var _2c1="ratingDistributionFullBarIE8_RTL";var _2c2="PERSONAL_PRIVATE";var _2c3="PERSONAL_PUBLIC";var _2c4="COMMUNITY_PERSONAL_PUBLIC";var _2c5="COMMUNITY";var _2c6="DojolessRating.addOnLoad";var _2c7=" DojolessRating.displayDojolessRatings ";var _2c8=" DojolessRating.getRatings";var _2c9="DojolessRating.getRatingMenu";var _2ca="ratinglightmenuDIV_";var _2cb="ratinglightdivider1_";var _2cc="menuShow";var _2cd="divider1Show";var _2ce="divider1";var _2cf="divider2Show";var _2d0="divider2";var _2d1="o";var _2d2="*";var _2d3="starElements";var _2d4="starElement";var _2d5="_span";var _2d6=i$.addOnLoad;if(typeof wp_wcm_async!="undefined"){_2d6=i$.scope(wp_wcm_async,wp_wcm_async.addOnPageLoad);}_2d6(function(){if(ibmPortalCPConfig!=null&&ibmPortalCPConfig.operations!=null&&ibmPortalCPConfig.operations.canViewRatings!=null&&ibmPortalCPConfig.isRatingEnabled!=null){var _2d7=ibmPortalCPConfig?ibmPortalCPConfig.operations.canViewRatings&&ibmPortalCPConfig.isRatingEnabled:null;var _2d8=i$.query(_291);var _2d9=ibmPortalConfig.projectUUID;if(_2d9==null||_2d9==""){i$.forEach(_2d8,function(_2da,_2db,_2dc){if(_2d7==null||(!_2d7)){return;}var _2dd=_292+_2db;var _2de;var _2df;var _2e0,_2e1;var _2e2="true";var _2e3;var _2e4;var _2e5;if(_2da.getAttribute("ratingDescription")==null||_2da.getAttribute("ratingDescription")=="undefined"){if(ibmPortalCPConfig.rating.inline.ratingDescription!==null&&typeof ibmPortalCPConfig.rating.inline.ratingDescription!=="undefined"){_2de=ibmPortalCPConfig.rating.inline.ratingDescription.toUpperCase();}else{_2de="ALL";}}else{_2de=_2da.getAttribute("ratingDescription");}if(_2da.getAttribute("ratingScope")==null||_2da.getAttribute("ratingScope")=="undefined"){if(ibmPortalCPConfig.rating.inline.ratingScope!==null&&typeof ibmPortalCPConfig.rating.inline.ratingScope!=="undefined"){_2df=ibmPortalCPConfig.rating.inline.ratingScope.toUpperCase();}else{_2df=_2c4;}}else{_2df=_2da.getAttribute("ratingScope");}switch(_2df){case (_2c2):_2df=["personal_private"];break;case (_2c3):_2df=["personal_public"];break;case (_2c4):_2df=["community","personal_public"];break;default:_2df=["community","personal_public"];break;}if(_2da.getAttribute("numStars")==null||_2da.getAttribute("numStars")=="undefined"){if(ibmPortalCPConfig.rating.inline.numStars!==null&&typeof ibmPortalCPConfig.rating.inline.numStars!=="undefined"){_2e0=ibmPortalCPConfig.rating.inline.numStars;}else{_2e0=5;}}else{_2e0=_2da.getAttribute("numStars");}if(_2da.getAttribute("customLabel")==null||_2da.getAttribute("customLabel")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabel!==null&&typeof ibmPortalCPConfig.rating.inline.customLabel!=="undefined"){customLabel=ibmPortalCPConfig.rating.inline.customLabel;}else{customLabel=null;}}else{customLabel=_2da.getAttribute("customLabel");}var _2e6="false";if(_2da.getAttribute("nonCSSuiEnabled")==null||_2da.getAttribute("nonCSSuiEnabled")=="undefined"){_2e6="false";}else{_2e6=_2da.getAttribute("nonCSSuiEnabled");}if(_2da.getAttribute("privateRatingEnabled")==null||_2da.getAttribute("privateRatingEnabled")=="undefined"){if(ibmPortalCPConfig.rating.inline.privateRatingEnabled!==null&&typeof ibmPortalCPConfig.rating.inline.privateRatingEnabled!=="undefined"){_2e1=ibmPortalCPConfig.rating.inline.privateRatingEnabled;}else{_2e1="false";}}else{_2e1=_2da.getAttribute("privateRatingEnabled");}var _2e7=_2da.getAttribute("resourceId");_39e(_2e7,_2e1);var _2e8=!ibmPortalConfig.isUserLoggedIn;if(_2e8){_2df=["community","personal_public"];_2e1="false";}if(_2da.getAttribute("deletingEnabled")==null||_2da.getAttribute("deletingEnabled")=="undefined"){if(ibmPortalCPConfig.rating.inline.deletingEnabled!==null&&typeof ibmPortalCPConfig.rating.inline.deletingEnabled!=="undefined"){_2e2=ibmPortalCPConfig.rating.inline.deletingEnabled;}else{_2e2="true";}}else{_2e2=_2da.getAttribute("deletingEnabled");}var _2e7=_2da.getAttribute("resourceId");_3a6(_2e7,_2e2);if(_2da.getAttribute("customLabelCommunityRatings")==null||_2da.getAttribute("customLabelCommunityRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelCommunityRatings!=="undefined"){_2e3=ibmPortalCPConfig.rating.inline.customLabelCommunityRatings;}else{_2e3=null;}}else{_2e3=_2da.getAttribute("customLabelCommunityRatings");}if(_2da.getAttribute("customLabelPersonalPublicRatings")==null||_2da.getAttribute("customLabelPersonalPublicRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings!=="undefined"){_2e4=ibmPortalCPConfig.rating.inline.customLabelPersonalPublicRatings.toUpperCase();}else{_2e4=null;}}else{_2e4=_2da.getAttribute("customLabelPersonalPublicRatings");}if(_2da.getAttribute("customLabelPersonalPrivateRatings")==null||_2da.getAttribute("customLabelPersonalPrivateRatings")=="undefined"){if(ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!==null&&typeof ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings!=="undefined"){_2e5=ibmPortalCPConfig.rating.inline.customLabelPersonalPrivateRatings.toUpperCase();}else{_2e5=null;}}else{_2e5=_2da.getAttribute("customLabelPersonalPrivateRatings");}var _2e9={"count":_2db,"oid":_2da.getAttribute("resourceId"),"ratingListParentId":_2dd,"customLabel":customLabel,"customLabelCommunityRatings":_2e3,"customLabelPersonalPublicRatings":_2e4,"customLabelPersonalPrivateRatings":_2e5,"scope":_2df,"ratingDescription":_2de,"numStars":_2e0};_2e9.query={"count":_2db,"oid":_2da.getAttribute("resourceId"),"ratingListParentId":_2dd,"customLabel":customLabel,"customLabelCommunityRatings":_2e3,"customLabelPersonalPublicRatings":_2e4,"customLabelPersonalPrivateRatings":_2e5,"scope":_2df,"ratingDescription":_2de,"numStars":_2e0};var _2ea=i$.byId(_2a0+_2e9.oid);var loc=ibmCfg.portalConfig.locale;if(loc!=null){var _2eb=i$.isRTL(loc);if(_2eb!=null){if(_2eb){_2bf="rtl";}else{_2bf="ltr";}}}var _2ec=i$.bindDomEvt(_2ea,"onclick",function(evt){var _2ed=_30d(_2e9.oid);var _2ee=evt.target||evt.srcElement;var _2ef=_2ea;var _2f0=_2ef.offsetLeft;var t=_2ef.offsetTop;while(_2ef=_2ef.offsetParent){_2f0+=_2ef.offsetLeft;}_2ef=i$.byId(_2ee.id);while(_2ef=_2ef.offsetParent){t+=_2ef.offsetTop;}var x;if(i$.isIE<9){x=evt.clientX-_2f0;}else{x=evt.pageX-_2f0;}var _2f1=Math.ceil(x/_2a5);if(_2bf!=null&&_2bf=="rtl"){_2f1=(_2e9.numStars+1)-_2f1;}var _2f2=i$.byId(_29f+_2e9.oid);var _2f3=!ibmPortalConfig.isUserLoggedIn;if(_2ed==_2c4){_314(_2e9.oid,_2c3);if(!_2f3){com_ibm_widgets_resolver.fetchSpecificScopeRatings_defaultView(_2e9.oid,_2c3,_2f1,com_ibm_widgets_rating.updateRatingInDefaultView);}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2f1,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}else{var _2f3=!ibmPortalConfig.isUserLoggedIn;if(!_2f3){if(_2f2.style.width=="0px"&&_2f1>0){com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2f1,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{com_ibm_widgets_resolver.editRating(_2e9.oid,_30d(_2e9.oid),_2f1,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2f1,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}});var _2f4=i$.bindDomEvt(_2ea,"onkeypress",function(_2f5){var _2f6=_30d(_2e9.oid);var _2f7=i$.byId(_29f+_2e9.oid);var _2f8=0;if(_2f7!=null){var _2f9=_2f7.style.width;_2f9=_2f9.replace("px","");if(_2f7.style.width!=null&&_2f9!=null){_2f8=Math.ceil(_2f9/_2a5);}if(_2f5.keyCode!=9){switch(_2f5.keyCode){case 38:case 39:_2f8+=1;_2f8=Math.min(_2f8,_2e0);break;case 40:case 37:_2f8-=1;_2f8=Math.max(_2f8,1);break;case 36:_2f8=1;break;case 35:_2f8=_2e0;break;default:break;}var _2fa=_2f8;var _2fb=!ibmPortalConfig.isUserLoggedIn;if(_2f6==_2c4){_314(_2e9.oid,_2c3);if(!_2fb){com_ibm_widgets_resolver.fetchSpecificScopeRatings_defaultView(_2e9.oid,_2c3,_2fa,com_ibm_widgets_rating.updateRatingInDefaultView);}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2fa,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}else{if(!_2fb){if(_2f7.style.width=="0px"&&_2fa>0){com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2fa,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{if(_2fa>0){com_ibm_widgets_resolver.editRating(_2e9.oid,_30d(_2e9.oid),_2fa,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}}else{if(_2fa>0){com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_2fa,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}}}}});var _2fc;try{_2fc=document.defaultView.getComputedStyle(_2ea,"");}catch(e){_2fc=_2ea.currentStyle;}if(_2fc!=null&&((_2fc.backgroundImage=="none")||(_2e6=="true"))){var _2fd=i$.byId(_29a+_2e9.oid);var _2fe=i$.byId(_2d3+_2e9.oid);if(_2fd!=null&&_2fe==null){var _2ff=i$.createDom("ul",{"id":_2d3+_2e9.oid,"style":"list-style: none;","tabindex":"0","role":"navigation"},_2fd);var k;for(k=1;k<=_2e9.numStars;k++){var _300=null;var _301=null;_300=i$.createDom("li",{"id":_2d4+k+_2e9.oid,"style":"list-style: none;display: inline-block;padding:5px; ","tabindex":"0","role":"link","aria-label":k+dojoless_resource_AddTag.title_pub_rating,"value":k},_2ff);_301=i$.createDom("span",{"id":_2d4+k+_2d5+_2e9.oid,"value":k,"tabindex":"0","aria-label":k+dojoless_resource_AddTag.title_pub_rating},_300);}var _302=i$.bindDomEvt(i$.byId(_2d3+_2e9.oid),"onclick",function(evt){var _303=_30d(_2e9.oid);var _304=evt.target;var _305=_304.getAttribute("value");var _306=_305;var _307=0;if(_2fd!=null){var i;for(i=1;i<=_2e9.numStars;i++){var _308=i$.byId(_2d4+i+_2d5+_2e9.oid).innerHTML;if(_308==_2d2){_307=_307+1;}}}if(_303==_2c4){_314(_2e9.oid,_2c3);var _309=!ibmPortalConfig.isUserLoggedIn;if(!_309){com_ibm_widgets_resolver.fetchSpecificScopeRatings_defaultView(_2e9.oid,_2c3,_306,com_ibm_widgets_rating.updateRatingInDefaultView);}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_306,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}else{if(!_309){if(_307==0&&_306>0){com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_306,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{com_ibm_widgets_resolver.editRating(_2e9.oid,_30d(_2e9.oid),_306,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_306,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}});var _30a=i$.bindDomEvt(i$.byId(_2d3+_2e9.oid),"onkeypress",function(_30b){if(_30b.keyCode==13){var _30c=_30d(_2e9.oid);var _30e=i$.byId(_2d3+_2e9.oid);var _30f=0;if(_30e!=null){var i;for(i=1;i<=_2e9.numStars;i++){var _310=i$.byId(_2d4+i+_2d5+_2e9.oid).innerHTML;if(_310==_2d2){_30f=_30f+1;}}var _311=_30b.target||_30b.srcElement;var _312=_311.getAttribute("value");var _313=_312;if(_30c==_2c4&&!_315&&(ibmPortalCPConfig!=null&&ibmPortalCPConfig.operations!=null&&ibmPortalCPConfig.operations.canCreatePublicRatings)){_314(_2e9.oid,_2c3);}var _315=!ibmPortalConfig.isUserLoggedIn;if(_313!=null){if(!_315){if(_30f==0&&_313>0){com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_313,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{com_ibm_widgets_resolver.editRating(_2e9.oid,_30d(_2e9.oid),_313,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}}else{com_ibm_widgets_resolver.insertRating(_2e9.oid,_30d(_2e9.oid),_313,com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser);}}}}});}}com_ibm_widgets_resolver.setALTtextforAllElementsInRating(_2e9.oid);com_ibm_widgets_resolver.fetchDojolessRatings(_2e9,com_ibm_widgets_rating.displayDojolessRatings);});}}},i$.global);var _316=function(_317,_318){var _319="true";if(_317!=null){_31a(_317);}else{_317=new Array();_31b();_319="false";}_314(_318.oid,_318.scope[0].toUpperCase());if(_318.customLabel==null&&_318.scope[0]!=null){switch(_318.scope[0].toUpperCase()){case (_2c2):if(_318.customLabelPersonalPrivateRatings==null){allRatingLabel=dojoless_resource_AddTag.title_priv_rating;}else{allRatingLabel=_318.customLabelPersonalPrivateRatings;}break;case (_2c3):if(_318.customLabelPersonalPublicRatings==null){allRatingLabel=dojoless_resource_AddTag.title_your_rating;}else{allRatingLabel=_318.customLabelPersonalPublicRatings;}break;case (_2c5):if(_318.customLabelCommunityRatings==null){allRatingLabel=dojoless_resource_AddTag.title_pub_rating;}else{allRatingLabel=_318.customLabelCommunityRatings;}break;default:allRatingLabel=dojoless_resource_AddTag.title_pub_rating;break;}}else{allRatingLabel=_318.customLabel;}var _31c=i$.byId(_29e+_318.oid);if(_31c!=null){_31c.innerHTML="";if(_318.scope[0].toUpperCase()!=_2c5){_31c.innerHTML=allRatingLabel;_31c.setAttribute("alt",allRatingLabel);_31c.setAttribute("title",allRatingLabel);}if(_318.scope[0].toUpperCase()==_2c5&&_318.customLabelCommunityRatings!=null){_31c.innerHTML=_318.customLabelCommunityRatings;_31c.setAttribute("alt",allRatingLabel);_31c.setAttribute("title",allRatingLabel);}}var _31d=i$.byId(_29f+_318.oid);var _31e=i$.byId(_2a0+_318.oid);var _31f=i$.byId(_2a1+_318.oid);var _320=0;if(_297){_320=_296+0.5;}else{_320=_296;}var _321=0;_321=(_318.numStars*_2a5)+_2a6;_31e.style.width=_321;if(_319=="true"){var _322=0;_322=(_320*_2a5)+_2a6;_31d.style.width=_322;_31e.setAttribute("alt",dojoless_resource_AddTag.title_pub_rating+_320);_31e.setAttribute("title",dojoless_resource_AddTag.title_pub_rating+_320);_31d.setAttribute("alt",dojoless_resource_AddTag.title_pub_rating+_320);_31d.setAttribute("title",dojoless_resource_AddTag.title_pub_rating+_320);}else{_31d.style.width=0+_2a6;_31d.setAttribute("alt",dojoless_resource_AddTag.title_pub_rating+"0");_31d.setAttribute("title",dojoless_resource_AddTag.title_pub_rating+"0");_31e.setAttribute("alt",dojoless_resource_AddTag.title_pub_rating+"0");_31e.setAttribute("title",dojoless_resource_AddTag.title_pub_rating+"0");}var _323=i$.byId(_2d3+_318.oid);if(_323!=null){_31e.setAttribute("style","display:none");_31d.setAttribute("style","display:none");var _324;if(_297){_324=_296+1;}else{_324=_296;}var i;var j;for(i=1;i<=_324;i++){i$.byId(_2d4+i+_2d5+_318.oid).innerHTML=_2d2;}for(j=_324+1;j<=_318.numStars;j++){i$.byId(_2d4+j+_2d5+_318.oid).innerHTML=_2d1;}_323.setAttribute("aria-label",_324+dojoless_resource_AddTag.title_pub_rating);}var _325;_325=i$.byId(_2a4+_318.oid);if(_325!=null){_325.setAttribute("class",_2cf);}if(_31f!=null){_31f.innerHTML=" ";_298=_318.numStars;if(_318.scope[0].toUpperCase()==_2c5){switch(_318.ratingDescription.toUpperCase()){case ("NONE"):_325=i$.byId(_2a4+_318.oid);if(_325!=null){_325.setAttribute("class",_2d0);}break;case ("RATING_VALUE"):if(_320>0){if(_294==1){_31f.innerHTML=_2a7+_320+_2a9+_298+_2a8;}else{_31f.innerHTML=_2a7+_320+_2a9+_298+_2a8;}}break;case ("TOTAL_NO_RATING"):if(_320>0){if(_294==1){_31f.innerHTML=_2a7+_294+" "+dojoless_resource_AddTag.ratingDescription_rating+_2a8;}else{_31f.innerHTML=_2a7+_294+" "+dojoless_resource_AddTag.ratingDescription_ratings+_2a8;}}break;default:if(_294>0&&_320>0){if(_294==1){_31f.innerHTML=_2a7+_320+_2a9+_298+" "+dojoless_resource_AddTag.ratingDescription_from+" "+_294+" "+dojoless_resource_AddTag.ratingDescription_rating+_2a8;}else{_31f.innerHTML=_2a7+_320+_2a9+_298+" "+dojoless_resource_AddTag.ratingDescription_from+" "+_294+" "+dojoless_resource_AddTag.ratingDescription_ratings+_2a8;}}}}if(_325!=null){_325.setAttribute("class",_2cf);}}else{if(_325!=null){_325.setAttribute("class",_2d0);}}var _326=i$.byId(_2a2+_318.oid);if(_326!=null){_326.setAttribute("onclick","com_ibm_widgets_rating.getRatingMenu('"+_318.oid+"')");var _327=i$.bindDomEvt(_326,"onkeypress",i$.scope(this,function(_328){var _329=_328.keyCode;if(_328.keyCode==0&&_328.charCode==32){_329=32;}switch(_329){case 38:case 32:case 40:case 13:var _32a=i$.byId(_2bd+_318.oid);if(_32a==null){com_ibm_widgets_rating.getRatingMenu(_318.oid);var _32b=_2aa+_318.oid;var _32c=i$.byId(_32b);if(_32c!=null){var _32d=_32c.firstChild;window.setTimeout(function(){_32d.focus();},200);}if(_328.preventDefault){_328.preventDefault();}if(_328.returnValue){_328.returnValue=false;}}break;case 39:case 40:if(this.ratingsDropDownMenu!=null){this.ratingsDropDownMenu.close();}break;}}));}var _32e=i$.byId(_2bd+_318.oid);if(_32e!=null&&this.ratingsDropDownMenu!=null){this.ratingsDropDownMenu.close();}com_ibm_widgets_resolver.clearRatingErrorMessage(_318.oid);var _32f=i$.byId(_2ca+_318.oid);if(_32f!=null){_32f.setAttribute("class",_2cc);}var _330=i$.byId(_2cb+_318.oid);if(_330!=null){_330.setAttribute("class",_2cd);}};var _331=function(avg){avg*=10;avg=Math.round(avg);return avg/10;};var _332=function(_333){var _334=0;var _335=0;var _336=[];i$.each(_333,function(obj,key){_335+=parseInt(obj.count);_336[parseInt(obj.name)-1]=parseInt(obj.count);_334+=parseInt(obj.name)*parseInt(obj.count);});_334/=_335;return [_334,_335,_336];};var _337=function(avg){var dec=avg-Math.floor(avg);return dec>=0.25&&dec<=0.75;};var _338=function(avg){var _339=Math.floor(avg);return (avg-_339)>0.75?_339+1:_339;};var _31a=function(_33a){var _33b=_332(_33a);_293=_33b[0];_294=_33b[1];_295=_33b[2];_296=_338(_293);_297=_337(_293);};var _31b=function(){_293=0;_294=0;_295=0;_296=0;_297=false;};var _314=function(_33c,_33d){var _33e=i$.byId(_29b+_33c);if(_33d==_2c5){_33d=_2c4;}if(_33e==null){var _33f=document.createElement("input");_33f.setAttribute("id",_29b+_33c);_33f.setAttribute("type","hidden");_33f.setAttribute("name","currentScope");_33f.setAttribute("value",_33d);var _340=i$.byId(_299+_33c);_340.appendChild(_33f);}else{_33e.setAttribute("value",_33d);}};var _30d=function(_341){var _342=i$.byId(_29b+_341);if(_342!=null){return _342.value;}};var _343=function(_344){var _345={"oid":_344};var _346=_2ab+_344;var _347=i$.byId(_299+_344);var _348=i$.createDom("div",{"id":_346,"tabindex":"0","class":_2be+_2b8,"dir":_2bf});var _349=_2aa+_344;var _34a=i$.createDom("div",{"id":_349,"tabindex":"0","role":"menu","class":_2be+_2b8,"aria-label":dojoless_resource_AddTag.rating_menu,"dir":_2bf},_348);var _34b=null;var _34c=null;var _34d=null;var _34e=null;var _34f=null;var _350=null;var _351=i$.byId(_29f+_344);if(_351.style.width=="0px"){deleteEnabled="false";}else{deleteEnabled="true";}var _352=_353(_344);var _354=_355(_344);var _356=_30d(_344);com_ibm_widgets_resolver.clearRatingErrorMessage(_344);var _357=!ibmPortalConfig.isUserLoggedIn;if(_357){_352="false";deleteEnabled="false";}if(_354=="false"){deleteEnabled="false";}switch(_356){case (_2c2):var _358=dojoless_resource_AddTag.Menu_rating;var _359=_358+"_"+"Link"+"_"+_344;_34c=_35a(_359,ibmPortalConfig.locale,_2bf,_344,_34a,_2c5);var _35b=document.createTextNode(_358);_34c.appendChild(_35b);var _35c=dojoless_resource_AddTag.Menu_myRating;var _35d=_35c+"_"+"Link"+"_"+_344;_34b=_35a(_35d,ibmPortalConfig.locale,_2bf,_344,_34a,_2c3);var _35e=document.createTextNode(_35c);_34b.appendChild(_35e);_34b.setAttribute("alt",_35c);_34b.setAttribute("title",_35c);if(deleteEnabled=="true"){var _35f=dojoless_resource_AddTag.deleteRating;var _360=_35f+"_"+"Link"+"_"+_344;_34e=_361(_360,ibmPortalConfig.locale,_2bf,_344,_34a,_2c2);var _362=document.createTextNode(_35f);_34e.appendChild(_362);_34e.setAttribute("alt",_35f);_34e.setAttribute("title",_35f);}break;case (_2c3):var _358=dojoless_resource_AddTag.Menu_rating;var _359=_358+"_"+"Link"+"_"+_344;_34c=_35a(_359,ibmPortalConfig.locale,_2bf,_344,_34a,"COMMUNITY_RATING");var _35b=document.createTextNode(_358);_34c.appendChild(_35b);if(_352=="true"){var _363=dojoless_resource_AddTag.Menu_privateRating;var _364=_363+"_"+"Link"+"_"+_344;_34d=_35a(_364,ibmPortalConfig.locale,_2bf,_344,_34a,_2c2);var _35e=document.createTextNode(_363);_34d.appendChild(_35e);_34d.setAttribute("alt",_363);_34d.setAttribute("title",_363);}if(deleteEnabled=="true"){var _35f=dojoless_resource_AddTag.deleteRating;var _360=_35f+"_"+"Link"+"_"+_344;_34f=_361(_360,ibmPortalConfig.locale,_2bf,_344,_34a,_2c3);var _362=document.createTextNode(_35f);_34f.appendChild(_362);_34f.setAttribute("alt",_35f);_34f.setAttribute("title",_35f);}break;case (_2c4):if(ibmPortalCPConfig!=null&&ibmPortalCPConfig.operations!=null&&ibmPortalCPConfig.operations.canCreatePublicRatings){var _35c=dojoless_resource_AddTag.Menu_myRating;var _35d=_35c+"_"+"Link"+"_"+_344;_34b=_35a(_35d,ibmPortalConfig.locale,_2bf,_344,_34a,_2c3);var _35e=document.createTextNode(_35c);_34b.appendChild(_35e);_34b.setAttribute("alt",_35c);_34b.setAttribute("title",_35c);}if(_352=="true"){var _363=dojoless_resource_AddTag.Menu_privateRating;var _364=_363+"_"+"Link"+"_"+_344;_34d=_35a(_364,ibmPortalConfig.locale,_2bf,_344,_34a,_2c2);var _35e=document.createTextNode(_363);_34d.appendChild(_35e);_34d.setAttribute("alt",_363);_34d.setAttribute("title",_363);}if(ibmPortalCPConfig.operations.canResetRatingPerResource&&deleteEnabled=="true"){var _35f=dojoless_resource_AddTag.deleteRating+" "+dojoless_resource_AddTag.ratingDescription_ratings;var _360=_35f+"_"+"Link"+"_"+_344;_350=_365(_360,ibmPortalConfig.locale,_2bf,_344,_34a,_2c4);var _362=document.createTextNode(_35f);_350.appendChild(_362);_350.setAttribute("alt",_35f);_350.setAttribute("title",_35f);}break;default:allRatingLabel=dojoless_resource_AddTag.title_pub_rating;}if(_356==_2c4){var _366=dojoless_resource_AddTag.Rating_Distribution;var _367=i$.createDom("div",{"id":_2b9+_344,"dir":_2bf},_34a);var _368=i$.createDom("a",{"id":_2ac+_344,"lang":ibmPortalConfig.locale,"dir":_2bf,"href":"javascript:;","tabindex":"0","onclick":"com_ibm_widgets_resolver.fetchSpecificScopeRatings('"+_344+"',\""+_2c4+"\",com_ibm_widgets_rating.displayRatingDistribution);","class":_2be+_2b8},_367);var _369=document.createTextNode(_366);if(_369!=null){_368.appendChild(_369);}}if(_356!=_2c4){_34a.appendChild(_34c);_34a.appendChild(i$.createDom("br",{},_34c));}if(_356!=_2c3){if(_34b!=null){_34a.appendChild(_34b);_34a.appendChild(i$.createDom("br",{},_34b));}}if(_356!=_2c2&&_34d!=null){if(_34d){_34a.appendChild(_34d);_34a.appendChild(i$.createDom("br",{},_34d));}}if(_356==_2c3&&deleteEnabled=="true"){if(_34d!=null){_34a.appendChild(i$.createDom("hr",{"class":_2be+_2b5,"dir":_2bf},_34d));}else{_34a.appendChild(i$.createDom("hr",{"class":_2be+_2b6,"dir":_2bf},_34c));}_34a.appendChild(_34f);}if(_356==_2c2&&deleteEnabled=="true"){_34a.appendChild(i$.createDom("hr",{"class":_2be+_2b5,"dir":_2bf},_34b));_34a.appendChild(_34e);}var _36a=null;if(_356==_2c4){if(_350!=null){if(_34d!=null){var _36b=i$.createDom("hr",{"class":_2be+_2b4,"dir":_2bf},_34d);}else{var _36b=i$.createDom("hr",{"class":_2be+_2b4,"dir":_2bf},_34b);}_34a.appendChild(_36b);_34a.appendChild(_350);}if(_34c!=null){_36a=i$.createDom("hr",{"class":_2be+_2b4,"dir":_2bf},_34c);}else{if(_34b!=null){_36a=i$.createDom("hr",{"class":_2be+_2b4,"dir":_2bf},_34b);}}if(_36a!=null){_34a.appendChild(_36a);}if(_356==_2c4){_34a.appendChild(_367);}}_36c(_348.innerHTML,_345.oid);};function _36d(rsID){return i$.byId(_2a2+rsID);};var _36c=function(aID,rsID){var _36e=dojoless_resource_AddTag.Menu_rating;var _36f=_36e+"_"+"Link"+"_"+rsID;var _370=dojoless_resource_AddTag.Menu_privateRating;var _371=_370+"_"+"Link"+"_"+rsID;var _372=dojoless_resource_AddTag.deleteRating;var _373=_372+"_"+"Link"+"_"+rsID;var _374=dojoless_resource_AddTag.Menu_myRating;var _375=_374+"_"+"Link"+"_"+rsID;var _376=dojoless_resource_AddTag.Rating_Distribution;this.ratingsDropDownMenu=null;this.ratingsDropDownMenu=new wpModules.dialog.Dialog({id:_2bd+rsID,markup:aID,autoPosition:_36d(rsID),autoResize:true,displayCloseOverlay:true,autoClose:true,posHandler:"horizontallyCenteredBelow",callbackFn:function(arg){var _377=i$.byId(_2a2+rsID);if(_377!=null){window.setTimeout(function(){_377.focus();},200);}}});this.ratingsDropDownMenu.open();var _378=i$.byId(_2aa+rsID);if(_378!=null){var _379=i$.bindDomEvt(_378,"onkeydown",i$.scope(this,function(_37a){var _37b=_37a.keyCode;if(_37a.keyCode==0&&_37a.charCode==32){_37b=32;}switch(_37b){case 9:if(this.ratingsDropDownMenu!=null){this.ratingsDropDownMenu.close();}break;case 27:if(this.ratingsDropDownMenu!=null){this.ratingsDropDownMenu.close();}break;case 82:if(i$.byId(_2ac+rsID)!=null){i$.byId(_2ac+rsID).focus();}if(i$.byId(_36f)!=null){i$.byId(_36f).focus();}if(i$.byId(_2ad+rsID)!=null){i$.byId(_2ad+rsID).focus();}break;case 32:var _37c=document.activeElement;var text=_37c.innerHTML;if(this.ratingsDropDownMenu!=null&&!(text.match(_376))){this.ratingsDropDownMenu.close();}if(text==_374){com_ibm_widgets_resolver.fetchSpecificScopeRatings(rsID,_2c3,com_ibm_widgets_rating.displayDojolessRatings);}else{if(text==_370){com_ibm_widgets_resolver.fetchSpecificScopeRatings(rsID,_2c2,com_ibm_widgets_rating.displayDojolessRatings);}else{if(text==_36e){com_ibm_widgets_resolver.fetchSpecificScopeRatings(rsID,_2c5,com_ibm_widgets_rating.displayDojolessRatings);}else{if(text==_372){com_ibm_widgets_resolver.deleteRating(rsID,_30d(rsID));}else{if(text==_376){com_ibm_widgets_resolver.fetchSpecificScopeRatings(rsID,_2c4,com_ibm_widgets_rating.displayRatingDistribution);if(i$.byId(_2ad+rsID)!=null){i$.byId(_2ad+rsID).focus();}}}}}}break;case 37:break;case 38:var _37c=document.activeElement;var _37d=_37e(_37c);if(_37d!=null){_37d.focus();}if(_37a.preventDefault){_37a.preventDefault();}return false;break;case 18:case 40:var _37c=document.activeElement;var _37d=_37f(_37c);if(_37d!=null){_37d.focus();}if(_37a.preventDefault){_37a.preventDefault();}return false;break;default:var _380=document.activeElement;_381(_37a.keyCode,_378,_380);break;}}));}};var _382=function(_383,_384){if(_383!=null){_294=_383.length;_31a(_383);}else{_31b();}var i=_384.numStars-1;var _385=_2aa+_384.oid;var _386=_2ab+_384.oid;var _387=i$.byId(_2b9+_384.oid);var _388=_2ac+_384.oid;var _389=i$.byId(_388);var _38a=_2ad+_384.oid;while(_387.hasChildNodes()){_387.removeChild(_387.lastChild);}var _38b=i$.createDom("div",{"id":"ratingDistributionText"+_384.oid,"tabindex":"0","class":_2be+_2b8,"dir":_2bf},_387);var _38c=document.createTextNode(dojoless_resource_AddTag.Rating_Distribution);if(_38b!=null){_38b.appendChild(_38c);}if(i$.byId(_38a)==null){var _38d=dojoless_resource_AddTag.Rating_Distribution;var _38e=i$.createDom("div",{"id":_38a,"tabindex":"0","class":_2be+_2b8,"dir":_2bf},_387);for(i;i>=0;i--){var _38f=_295[i]||0;var part=0;if(_38f>0){part=Math.round(_38f/_294*100);part=part/100*(_2b7*_384.numStars);}var _390=_384.numStars*_2b7;var _391=i$.createDom("div",{"id":"mainDiv_"+i+"_"+_384.oid,"tabindex":"0","padding":"10px","class":_2be+_2b2,"dir":_2bf},_38e);var _392=i$.createDom("span",{"id":_2bb+i+"_"+_384.oid,"padding":"10px","class":_2be+_2ba,"dir":_2bf},_391);var _393=document.createTextNode(i+1+"  "+dojoless_resource_AddTag.star);_392.appendChild(_393);var j=i+1;_392.setAttribute("alt",j+"  "+dojoless_resource_AddTag.star);_392.setAttribute("title",j+"  "+dojoless_resource_AddTag.star);_38d=_38d+j+"  "+dojoless_resource_AddTag.star;var _394=i$.createDom("div",{"id":"innerDiv_"+i+"_"+_384.oid,"class":"wpRatingLight menu","dir":_2bf},_391);var _395,_396;if(i$.isIE<9){if(_2bf=="ltr"){_395=i$.createDom("div",{"id":"distributionDiv"+i+"_"+_384.oid,"class":_2be+_2b0,"dir":_2bf},_394);_396=i$.createDom("div",{"id":"distributionStyleDiv"+i+"_"+_384.oid,"class":_2be+_2b1,"dir":_2bf,},_395);}else{_395=i$.createDom("div",{"id":"distributionDiv"+i+"_"+_384.oid,"class":_2be+_2b0,"dir":_2bf},_394);_396=i$.createDom("div",{"id":"distributionStyleDiv"+i+"_"+_384.oid,"class":_2be+_2c1,"dir":_2bf,},_395);}}else{if(_2bf=="ltr"){_395=i$.createDom("div",{"id":"distributionDiv"+i+"_"+_384.oid,"class":_2be+_2ae,"dir":_2bf},_394);_396=i$.createDom("div",{"id":"distributionStyleDiv"+i+"_"+_384.oid,"class":_2be+_2af,"dir":_2bf,},_395);}else{_395=i$.createDom("div",{"id":"distributionDiv"+i+"_"+_384.oid,"class":_2be+_2ae,"dir":_2bf},_394);_396=i$.createDom("div",{"id":"distributionStyleDiv"+i+"_"+_384.oid,"class":_2be+_2c0,"dir":_2bf},_395);}}_395.style.width=_390+_2a6;_396.style.width=part+_2a6;var _397=i$.createDom("span",{"id":"countDiv"+i+"_"+_384.oid,"class":_2be+_2ba,"dir":_2bf},_391);var _398=document.createTextNode(_38f);if(_398!=null){_397.appendChild(_398);_397.setAttribute("alt",_38f);_397.setAttribute("title",_38f);_38d=_38d+_38f;}var _399=i$.createDom("div",{"id":"countExtraDiv"+i+"_"+_384.oid,"class":_2be+_2ba,"dir":_2bf},_391);}var _39a=i$.createDom("div",{"id":"totalRatingDiv"+_384.oid,"class":_2be+_2b3,"dir":_2bf},_38e);var _39b;if(_294<=1){_39b=document.createTextNode(_294+" "+dojoless_resource_AddTag.Rating);_39a.setAttribute("alt",_294+" "+dojoless_resource_AddTag.Rating);_39a.setAttribute("title",_294+" "+dojoless_resource_AddTag.Rating);_38d=_38d+_294+" "+dojoless_resource_AddTag.Rating;}else{_39b=document.createTextNode(_294+" "+dojoless_resource_AddTag.Ratings);_39a.setAttribute("alt",_294+" "+dojoless_resource_AddTag.Ratings);_39a.setAttribute("title",_294+" "+dojoless_resource_AddTag.Ratings);_38d=_38d+_294+" "+dojoless_resource_AddTag.Ratings;}_39a.appendChild(_39b);var _387=i$.byId(_2ad+_384.oid);if(_387!=null){_387.setAttribute("alt",_38d);_387.setAttribute("title",_38d);}}};var _353=function(_39c){var _39d=i$.byId(_29c+_39c);if(_39d!=null){return _39d.value;}};var _39e=function(_39f,_3a0){var _3a1=i$.byId(_29c+_39f);if(_3a1==null){var _3a2=i$.byId(_299+_39f);var _3a3=document.createElement("input");_3a3.setAttribute("id",_29c+_39f);_3a3.setAttribute("type","hidden");_3a3.setAttribute("name","privateRatingEnabled");_3a3.setAttribute("value",_3a0);_3a2.appendChild(_3a3);}else{_3a1.setAttribute("value",_3a0);}};var _355=function(_3a4){var _3a5=i$.byId(_29d+_3a4);if(_3a5!=null){return _3a5.value;}};var _3a6=function(_3a7,_3a8){var _3a9=i$.byId(_29d+_3a7);if(_3a9==null){var _3aa=i$.byId(_299+_3a7);var _3ab=document.createElement("input");_3ab.setAttribute("id",_29d+_3a7);_3ab.setAttribute("type","hidden");_3ab.setAttribute("name","deleteRatingEnabled");_3ab.setAttribute("value",_3a8);_3aa.appendChild(_3ab);}else{_3a9.setAttribute("value",_3a8);}};var _35a=function(id,lang,dir,_3ac,_3ad,_3ae){var _3af=!ibmPortalConfig.isUserLoggedIn;if(!_3af){return i$.createDom("a",{"id":id,"lang":lang,"dir":dir,"href":"javascript:;","class":_2be+_2b8,"tabindex":"0","role":"menuitem","aria-label":_3ae,"onclick":"com_ibm_widgets_resolver.fetchSpecificScopeRatings('"+_3ac+"',\""+_3ae+"\",com_ibm_widgets_rating.displayDojolessRatings);"},_3ad);}else{return i$.createDom("a",{"id":id,"lang":lang,"dir":dir,"href":"javascript:;","class":_2be+_2b8,"tabindex":"0","role":"menuitem","aria-label":_3ae,"onclick":"com_ibm_widgets_resolver.fetchSpecificScopeRatings_anonymousUser('"+_3ac+"',\""+_3ae+"\",\"0\",com_ibm_widgets_rating.displayDojolessRatings);"},_3ad);}};var _361=function(id,lang,dir,_3b0,_3b1,_3b2){return i$.createDom("a",{"id":id,"lang":lang,"dir":dir,"href":"javascript:;","tabindex":"0","class":_2be+_2b8,"onclick":"com_ibm_widgets_resolver.deleteRating('"+_3b0+"',\""+_3b2+"\");"},_3b1);};var _365=function(id,lang,dir,_3b3,_3b4,_3b5){return i$.createDom("a",{"id":id,"lang":lang,"dir":dir,"href":"javascript:;","tabindex":"0","class":_2be+_2b8,"onclick":"com_ibm_widgets_resolver.deleteAllRating('"+_3b3+"',\""+_3b5+"\");"},_3b4);};var _3b6=function(_3b7,_3b8){if(_3b7!=null){_294=_3b7.length;_31a(_3b7);}else{_31b();}if(_297){numericalRatingValue=_296+0.5;}else{numericalRatingValue=_296;}var _3b9=!ibmPortalConfig.isUserLoggedIn;if(numericalRatingValue==0||(_3b9&&numericalRatingValue>0)){com_ibm_widgets_resolver.insertRating(_3b8.oid,_30d(_3b8.oid),_3b8.ratingValue,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}else{com_ibm_widgets_resolver.editRating(_3b8.oid,_30d(_3b8.oid),_3b8.ratingValue,com_ibm_widgets_resolver.fetchSpecificScopeRatings);}};var _37f=function(item){if(item!=null&&item.id!=null&&(item.id.match("ratingDistr")||item.id.match("RatingDistr"))){item=item.parentNode;}var _3ba=item.parentNode;var _3bb=_3ba.childNodes;var _3bc=_3bb.length;var i=0;var _3bd=0;for(i=0;i<_3bc;i++){if(_3bb.item(i)==item){_3bd=i;break;}}if(_3bd==_3bc-1){_3bd=0;}else{_3bd=_3bd+1;var j=_3bd;for(j;j<_3bc;j++){if(!(_3bb.item(j).innerHTML==null||_3bb.item(j).innerHTML=="")){break;}}if(j==_3bc){_3bd=0;}else{_3bd=j;}}var _3be=_3bb.item(_3bd).id;var temp=_3bb.item(_3bd);if(_3be.match("ratingDistr")){temp=temp.firstChild;}temp.focus();return i$.byId(_3bb.item(_3bd).id);};var _37e=function(item){if(item!=null&&item.id!=null&&(item.id.match("ratingDistr")||item.id.match("RatingDistr"))){item=item.parentNode;}var _3bf=item.parentNode;var _3c0=_3bf.childNodes;var _3c1=_3c0.length;var i=0;var _3c2=0;for(i=0;i<_3c1;i++){if(_3c0.item(i)==item){_3c2=i;break;}}if(_3c2==0){_3c2=_3c1-1;if(_3c0.item(_3c2).innerHTML==""==null||_3c0.item(_3c2).innerHTML==""){_3c2=_3c2-1;}}else{_3c2=_3c2-1;var j=_3c2;for(j;j>0;j--){if(!(_3c0.item(j).innerHTML==""==null||_3c0.item(j).innerHTML=="")){break;}}_3c2=j;}var _3c3=_3c0.item(_3c2).id;var temp=_3c0.item(_3c2);if(_3c3.match("ratingDistr")){temp=temp.firstChild;}temp.focus();return i$.byId(_3c0.item(_3c2).id);};var _381=function(_3c4,item,_3c5){var _3c6=item.parentNode;var _3c7=_3c6.childNodes;var _3c8=item;var _3c9=String.fromCharCode(_3c4),_3ca=_3c9.toLowerCase(),_3cb=_3cc(_3c5),_3cd=_3c5.innerHTML.charAt(_3cb),_3ce=_3c7,_3cf;if(_3ca==_3cd.toLowerCase()){var _3d0=0;var i=0;_3ce=_3c8.childNodes;var len=_3ce.length;for(i;i<len;i++){if(_3ce.item(i)==_3c5){break;}}_3d0=i;var _3d1=_3d2(_3ce,_3d0,_3cd,_3c9);if((_3d1!=item)){_3d3(_3d1);}}else{_3ce=_3c8.childNodes;for(var k=0,nal=_3ce.length;k<nal;k++){_3cb=_3cc(_3ce[k]);_3cf=_3ce[k].innerHTML;if((_3ca==_3cf.charAt(_3cb).toLowerCase())){_3d3(_3ce[k]);break;}}}};function _3d3(item){item.focus();};function _3d2(_3d4,_3d5,_3d6,_3d7){var _3d8,_3d9=false,_3da,_3db=_3d4.length,_3dc=(_3d5==_3db-1)?-1:_3d5;for(var i=_3dc+1;i<_3db;i++){_3d8=_3cc(_3d4[i]);_3da=_3d4[i].innerHTML.charAt(_3d8).toLowerCase();if(_3da==_3d7.toLowerCase()){_3d5=i;break;}if(i==_3d4.length-1){if(_3d9){break;}i=-1;_3db=_3d5;_3d9=true;}}return _3d4[_3d5];};function _3cc(item){var ltr=null;var loc=ibmCfg.portalConfig.locale;if(loc!=null){var _3dd=i$.isRTL(loc);if(_3dd!=null){if(_3dd){ltr=false;}else{ltr=true;}}}if((item.text)&&(!ltr)){return item.text.length-1;}return 0;};return {getRatingMenu:_343,displayDojolessRatings:_316,displayRatingDistribution:_382,getCurrentDisplayedScope:_30d,openRatingsActionDropDownMenu:_36c,displayDojolessRatings:_316,updateRatingInDefaultView:_3b6,RATINGWIDGET_STARS_DIV_PREFIX:"ratinglightstars_",RATINGWIDGET_PREFIX:"ratinglight_"};})();if(typeof (UTILS)==="undefined"){var UTILS={};UTILS.trim=function(str){if(str.trim){return str.trim();}else{var _3de=/^\s+|\s+$/g;return str.replace(_3de,"");}};UTILS.getCaretPosition=function(el){if(typeof (el.selectionStart)!=="undefined"){return el.selectionStart;}else{if(document.selection){var _3df=document.selection.createRange();_3df.moveStart("character",-el.value.length);return _3df.text.length;}}};UTILS.setCaretPosition=function(el,pos){if(typeof (el.selectionStart)!=="undefined"){el.selectionStart=el.selectionEnd=pos;}else{if(document.selection){var _3e0=el.createTextRange();_3e0.moveStart("character",pos);_3e0.collapse(true);_3e0.select();}}};UTILS.filter=function(arr,func){if(arr.filter){return arr.filter(func);}else{var ret=[];for(var i=0;i<arr.length;i++){if(func(arr[i])){ret.push(arr[i]);}}return ret;}};UTILS.removeClass=function(el,cls){var s=el.className;var _3e1=new RegExp("(^|\\s+)"+cls+"(\\s+|$)","g");s=s.replace(_3e1," ").replace(/\s+/g," ").replace(/^\s|\s$/g,"");el.className=s;};}var suggestionTags=[];var suggestionItems=[];var currentSuggestion=-1;var oldSuggestText="";var DEMO_SUGGESTIONS=["Hans","Horst","Hubert","Hannelore","Herbert","Peter","Petra","Peer","Paula","Paul"];var checkInput=function(_3e2){var text=_3e2.value;var _3e3=UTILS.getCaretPosition(_3e2);var b=getSourroundingTextBoundaries(text,_3e3);var text=UTILS.trim(text.slice(b.from,b.to));if(text===oldSuggestText){return;}oldSuggestText=text;if(text.length===0){hideSuggestionList(_3e2);}else{updateSuggestions(_3e2,text);}};var keyDownHandler=function(e,_3e4,_3e5,_3e6){var _3e7=_3e5.count;var c=e.keyCode;var _3e8=true;if(c===27){if(currentSuggestion>-1){removeSuggestionSelection();}else{}}else{if(c===13){if(currentSuggestion>-1){updateInputWithSuggestion(_3e4,currentSuggestion);}else{addTags(_3e4.value,com_ibm_widgets_tagging.tagIdsArray[_3e7],_3e6);}}else{if(c===40){changeSuggestionSelection(currentSuggestion+1);}else{if(c===38){changeSuggestionSelection(currentSuggestion-1);}else{_3e8=false;}}}}if(_3e8){if(e.preventDefault){e.preventDefault();}if(e.returnValue){e.returnValue=false;}}};var blurTimerId;var updateTimerId;var blurHandler=function(){if(updateTimerId){window.clearInterval(updateTimerId);updateTimerId=null;}};var getSourroundingTextBoundaries=function(text,pos){var from=text.lastIndexOf(TAG_INPUT_SEPARATOR,pos);var to=text.indexOf(TAG_INPUT_SEPARATOR,pos);if(text[pos]===TAG_INPUT_SEPARATOR){from=text.lastIndexOf(TAG_INPUT_SEPARATOR,pos-1);}if(from<0){from=-1;}if(to<0){to=text.length;}return {from:from+1,to:to};};var addTags=function(_3e9,oid,_3ea,_3eb){var _3ec=_3e9;if(typeof (_3ec)!=="string"||_3ec.length===0){return;}if(_3ec.length>50){com_ibm_widgets_resolver.showTaggingValidationError(oid,dojoless_resource_AddTag.text_error_tags_too_long);return;}var str=_3ec.split(/[ ,]+/);var tags=[];for(var i=0;i<str.length;i++){if(tags.indexOf(str[i])==-1){tags.push(str[i]);}}for(var i=0;i<tags.length;i++){var _3ed=UTILS.trim(tags[i]);if(_3ed.length===0){continue;}var tag={name:_3ed,oid:oid,isPrivate:_3ea};if(oid!=null){com_ibm_widgets_resolver.insertTag(tag);}}};var hideSuggestionList=function(_3ee){_3ee.innerHTML="";suggestionTags=[];currentSuggestion=-1;};var updateSuggestions=function(_3ef,text){var _3f0=text.toLowerCase();var len=text.length;var _3f1=UTILS.filter(suggestionTags,function(tag){return (tag.slice(0,len).toLowerCase()===_3f0&&tag.length!==len);});_3f1=_3f1.slice(0,3);updateSuggestionList(_3ef,text,_3f1);window.setTimeout(function(){getSuggestionsFromServer(_3ef,text);},500);};var getSuggestionsFromServer=function(_3f2,text){if(text!==oldSuggestText){return;}var _3f3=text.toLowerCase();var len=text.length;var _3f4=UTILS.filter(DEMO_SUGGESTIONS,function(tag){return (tag.slice(0,len).toLowerCase()===_3f3&&tag.length!==len);});_3f4.sort();_3f4=_3f4.slice(0,3);updateSuggestionList(_3f2,text,_3f4);};var updateSuggestionList=function(_3f5,_3f6,_3f7){if(!_3f7||_3f7.length===0){hideSuggestionList(_3f5);return;}suggestionTags=_3f7;suggestionItems=[];currentSuggestion=-1;inputLen=_3f6.length;var _3f8=i$.byId("TagWidget_0_SuggestionList");_3f8.innerHTML="";for(var i=0;i<_3f7.length;i++){var tag=_3f7[i];var _3f9=tag.slice(0,inputLen);var _3fa=tag.slice(inputLen);var _3fb=i$.createDom("li",{},_3f8);var _3fc=document.createTextNode(_3f9+"<strong>"+_3fa+"</strong>");_3fb.appendChild(_3fc);suggestionItems.push(_3fb);}};var suggestionItemMouseOver=function(e){var _3fd=UTILS.getTarget(e);var i=UTILS.indexOf(suggestionItems,_3fd);if(i===-1){i=UTILS.indexOf(suggestionItems,_3fd.parentNode);}changeSuggestionSelection(i);};var suggestionItemMouseOut=function(e){removeSuggestionSelection();};var suggestionItemClick=function(_3fe,e){var _3ff=UTILS.getTarget(e);var i=UTILS.indexOf(suggestionItems,_3ff);if(i===-1){i=UTILS.indexOf(suggestionItems,_3ff.parentNode);}updateInputWithSuggestion(_3fe,i);};var changeSuggestionSelection=function(_400){if(currentSuggestion>-1){UTILS.removeClass(suggestionItems[currentSuggestion],"highlight");}if(_400>=suggestionItems.length){_400=-1;}if(_400<-1){_400=suggestionItems.length-1;}if(_400<0){currentSuggestion=-1;}else{suggestionItems[_400].className+=" highlight";currentSuggestion=_400;}};var removeSuggestionSelection=function(){changeSuggestionSelection(-1);};var updateInputWithSuggestion=function(_401,_402){var pos=UTILS.getCaretPosition(_401);var _403=_401.value;var b=getSourroundingTextBoundaries(_403,pos);var _404=suggestionTags[_402];if(b.from>0&&_403[b.from-1]===TAG_INPUT_SEPARATOR){_404=" "+_404;}var _405=_403.slice(0,b.from)+_404+_403.slice(b.to);if(b.to===_403.length){_405+=TAG_INPUT_SEPARATOR+" ";}_401.value=_405;_401.focus();if(b.to===_403.length){UTILS.setCaretPosition(_401,_405.length);}else{UTILS.setCaretPosition(_401,b.from+_404.length);}};

}catch(e){console.log("Module 'wp_tagging_rating_light': ",e);}
try{!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("moment",[],function(){return e.moment=t(),e.moment}):e.moment=t()}(this,function(){"use strict";function e(){return ps.apply(null,arguments)}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){var t;for(t in e)return!1;return!0}function i(e){return void 0===e}function r(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function o(e,t){var n,s=[];for(n=0;n<e.length;++n)s.push(t(e[n],n));return s}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,s){return gt(e,t,n,s,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function c(e){return null==e._pf&&(e._pf=h()),e._pf}function f(e){if(null==e._isValid){var t=c(e),n=vs.call(t.parsedDateParts,function(e){return null!=e}),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function m(e){var t=l(NaN);return null!=e?u(c(t),e):c(t).userInvalidated=!0,t}function _(e,t){var n,s,r;if(i(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),i(t._i)||(e._i=t._i),i(t._f)||(e._f=t._f),i(t._l)||(e._l=t._l),i(t._strict)||(e._strict=t._strict),i(t._tzm)||(e._tzm=t._tzm),i(t._isUTC)||(e._isUTC=t._isUTC),i(t._offset)||(e._offset=t._offset),i(t._pf)||(e._pf=c(t)),i(t._locale)||(e._locale=t._locale),Ms.length>0)for(n=0;n<Ms.length;n++)s=Ms[n],r=t[s],i(r)||(e[s]=r);return e}function y(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ss&&(Ss=!0,e.updateOffset(this),Ss=!1)}function g(e){return e instanceof y||null!=e&&null!=e._isAMomentObject}function p(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function w(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=p(t)),n}function v(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s<i;s++)(n&&e[s]!==t[s]||!n&&w(e[s])!==w(t[s]))&&a++;return a+r}function M(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function S(t,n){var s=!0;return u(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),s){for(var i,r=[],a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){i+="\n["+a+"] ";for(var o in arguments[0])i+=o+": "+arguments[0][o]+", ";i=i.slice(0,-2)}else i=arguments[a];r.push(i)}M(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),s=!1}return n.apply(this,arguments)},n)}function k(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),ks[t]||(M(n),ks[t]=!0)}function D(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Y(e){var t,n;for(n in e)t=e[n],D(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function O(e,t){var s,i=u({},e);for(s in t)d(t,s)&&(n(e[s])&&n(t[s])?(i[s]={},u(i[s],e[s]),u(i[s],t[s])):null!=t[s]?i[s]=t[s]:delete i[s]);for(s in e)d(e,s)&&!d(t,s)&&n(e[s])&&(i[s]=u({},i[s]));return i}function x(e){null!=e&&this.set(e)}function T(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return D(s)?s.call(t,n):s}function b(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function P(){return this._invalidDate}function W(e){return this._ordinal.replace("%d",e)}function R(e,t,n,s){var i=this._relativeTime[n];return D(i)?i(e,t,n,s):i.replace(/%d/i,e)}function C(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}function F(e,t){var n=e.toLowerCase();Ps[n]=Ps[n+"s"]=Ps[t]=e}function U(e){return"string"==typeof e?Ps[e]||Ps[e.toLowerCase()]:void 0}function H(e){var t,n,s={};for(n in e)d(e,n)&&(t=U(n))&&(s[t]=e[n]);return s}function L(e,t){Ws[e]=t}function G(e){var t=[];for(var n in e)t.push({unit:n,priority:Ws[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function V(t,n){return function(s){return null!=s?(j(this,t,s),e.updateOffset(this,n),this):N(this,t)}}function N(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function j(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function A(e){return e=U(e),D(this[e])?this[e]():this}function E(e,t){if("object"==typeof e){e=H(e);for(var n=G(e),s=0;s<n.length;s++)this[n[s].unit](e[n[s].unit])}else if(e=U(e),D(this[e]))return this[e](t);return this}function I(e,t,n){var s=""+Math.abs(e),i=t-s.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}function Z(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(Us[e]=i),t&&(Us[t[0]]=function(){return I(i.apply(this,arguments),t[1],t[2])}),n&&(Us[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var t,n,s=e.match(Rs);for(t=0,n=s.length;t<n;t++)Us[s[t]]?s[t]=Us[s[t]]:s[t]=z(s[t]);return function(t){var i,r="";for(i=0;i<n;i++)r+=D(s[i])?s[i].call(t,e):s[i];return r}}function q(e,t){return e.isValid()?(t=J(t,e.localeData()),Fs[t]=Fs[t]||$(t),Fs[t](e)):e.localeData().invalidDate()}function J(e,t){function n(e){return t.longDateFormat(e)||e}var s=5;for(Cs.lastIndex=0;s>=0&&Cs.test(e);)e=e.replace(Cs,n),Cs.lastIndex=0,s-=1;return e}function B(e,t,n){Ns[e]=D(t)?t:function(e,s){return e&&n?n:t}}function Q(e,t){return d(Ns,e)?Ns[e](t._strict,t._locale):new RegExp(X(e))}function X(e){return K(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i}))}function K(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,t){var n,s=t;for("string"==typeof e&&(e=[e]),r(t)&&(s=function(e,n){n[t]=w(e)}),n=0;n<e.length;n++)js[e[n]]=s}function te(e,t){ee(e,function(e,n,s,i){s._w=s._w||{},t(e,s._w,s,i)})}function ne(e,t,n){null!=t&&d(js,e)&&js[e](t,n._a,n,e)}function se(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ie(e,n){return e?t(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Xs).test(n)?"format":"standalone"][e.month()]:t(this._months)?this._months:this._months.standalone}function re(e,n){return e?t(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Xs.test(n)?"format":"standalone"][e.month()]:t(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ae(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)r=l([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(i=Qs.call(this._shortMonthsParse,a),-1!==i?i:null):(i=Qs.call(this._longMonthsParse,a),-1!==i?i:null):"MMM"===t?-1!==(i=Qs.call(this._shortMonthsParse,a))?i:(i=Qs.call(this._longMonthsParse,a),-1!==i?i:null):-1!==(i=Qs.call(this._longMonthsParse,a))?i:(i=Qs.call(this._shortMonthsParse,a),-1!==i?i:null)}function oe(e,t,n){var s,i,r;if(this._monthsParseExact)return ae.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=l([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}}function de(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=w(t);else if(t=e.localeData().monthsParse(t),!r(t))return e;return n=Math.min(e.date(),se(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ue(t){return null!=t?(de(this,t),e.updateOffset(this,!0),this):N(this,"Month")}function le(){return se(this.year(),this.month())}function he(e){return this._monthsParseExact?(d(this,"_monthsRegex")||fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=ti),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ce(e){return this._monthsParseExact?(d(this,"_monthsRegex")||fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=ni),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function fe(){function e(e,t){return t.length-e.length}var t,n,s=[],i=[],r=[];for(t=0;t<12;t++)n=l([2e3,t]),s.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(s.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)s[t]=K(s[t]),i[t]=K(i[t]);for(t=0;t<24;t++)r[t]=K(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function me(e){return _e(e)?366:365}function _e(e){return e%4==0&&e%100!=0||e%400==0}function ye(){return _e(this.year())}function ge(e,t,n,s,i,r,a){var o=new Date(e,t,n,s,i,r,a);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}function pe(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function we(e,t,n){var s=7+t-n;return-(7+pe(e,0,s).getUTCDay()-t)%7+s-1}function ve(e,t,n,s,i){var r,a,o=(7+n-s)%7,d=we(e,s,i),u=1+7*(t-1)+o+d;return u<=0?(r=e-1,a=me(r)+u):u>me(e)?(r=e+1,a=u-me(e)):(r=e,a=u),{year:r,dayOfYear:a}}function Me(e,t,n){var s,i,r=we(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?(i=e.year()-1,s=a+Se(i,t,n)):a>Se(e.year(),t,n)?(s=a-Se(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Se(e,t,n){var s=we(e,t,n),i=we(e+1,t,n);return(me(e)-s+i)/7}function ke(e){return Me(e,this._week.dow,this._week.doy).week}function De(){return this._week.dow}function Ye(){return this._week.doy}function Oe(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function xe(e){var t=Me(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Te(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function be(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pe(e,n){return e?t(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][e.day()]:t(this._weekdays)?this._weekdays:this._weekdays.standalone}function We(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Re(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ce(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=l([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(i=Qs.call(this._weekdaysParse,a),-1!==i?i:null):"ddd"===t?(i=Qs.call(this._shortWeekdaysParse,a),-1!==i?i:null):(i=Qs.call(this._minWeekdaysParse,a),-1!==i?i:null):"dddd"===t?-1!==(i=Qs.call(this._weekdaysParse,a))?i:-1!==(i=Qs.call(this._shortWeekdaysParse,a))?i:(i=Qs.call(this._minWeekdaysParse,a),-1!==i?i:null):"ddd"===t?-1!==(i=Qs.call(this._shortWeekdaysParse,a))?i:-1!==(i=Qs.call(this._weekdaysParse,a))?i:(i=Qs.call(this._minWeekdaysParse,a),-1!==i?i:null):-1!==(i=Qs.call(this._minWeekdaysParse,a))?i:-1!==(i=Qs.call(this._weekdaysParse,a))?i:(i=Qs.call(this._shortWeekdaysParse,a),-1!==i?i:null)}function Fe(e,t,n){var s,i,r;if(this._weekdaysParseExact)return Ce.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=l([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}}function Ue(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Te(e,this.localeData()),this.add(e-t,"d")):t}function He(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Le(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=be(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ge(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=di),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ve(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ui),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ne(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=li),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function je(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],d=[],u=[];for(t=0;t<7;t++)n=l([2e3,1]).day(t),s=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(s),o.push(i),d.push(r),u.push(s),u.push(i),u.push(r);for(a.sort(e),o.sort(e),d.sort(e),u.sort(e),t=0;t<7;t++)o[t]=K(o[t]),d[t]=K(d[t]),u[t]=K(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ae(){return this.hours()%12||12}function Ee(){return this.hours()||24}function Ie(e,t){Z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ze(e,t){return t._meridiemParse}function ze(e){return"p"===(e+"").toLowerCase().charAt(0)}function $e(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function qe(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){for(var t,n,s,i,r=0;r<e.length;){for(i=qe(e[r]).split("-"),t=i.length,n=qe(e[r+1]),n=n?n.split("-"):null;t>0;){if(s=Be(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&v(i,n,!0)>=t-1)break;t--}r++}return null}function Be(e){var t=null;if(!mi[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=hi._abbr,require("./locale/"+e),Qe(t)}catch(e){}return mi[e]}function Qe(e,t){var n;return e&&(n=i(t)?et(e):Xe(e,t))&&(hi=n),hi._abbr}function Xe(e,t){if(null!==t){var n=fi;if(t.abbr=e,null!=mi[e])k("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=mi[e]._config;else if(null!=t.parentLocale){if(null==mi[t.parentLocale])return _i[t.parentLocale]||(_i[t.parentLocale]=[]),_i[t.parentLocale].push({name:e,config:t}),null;n=mi[t.parentLocale]._config}return mi[e]=new x(O(n,t)),_i[e]&&_i[e].forEach(function(e){Xe(e.name,e.config)}),Qe(e),mi[e]}return delete mi[e],null}function Ke(e,t){if(null!=t){var n,s=fi;null!=mi[e]&&(s=mi[e]._config),t=O(s,t),n=new x(t),n.parentLocale=mi[e],mi[e]=n,Qe(e)}else null!=mi[e]&&(null!=mi[e].parentLocale?mi[e]=mi[e].parentLocale:null!=mi[e]&&delete mi[e]);return mi[e]}function et(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return hi;if(!t(e)){if(n=Be(e))return n;e=[e]}return Je(e)}function tt(){return Os(mi)}function nt(e){var t,n=e._a;return n&&-2===c(e).overflow&&(t=n[Es]<0||n[Es]>11?Es:n[Is]<1||n[Is]>se(n[As],n[Es])?Is:n[Zs]<0||n[Zs]>24||24===n[Zs]&&(0!==n[zs]||0!==n[$s]||0!==n[qs])?Zs:n[zs]<0||n[zs]>59?zs:n[$s]<0||n[$s]>59?$s:n[qs]<0||n[qs]>999?qs:-1,c(e)._overflowDayOfYear&&(t<As||t>Is)&&(t=Is),c(e)._overflowWeeks&&-1===t&&(t=Js),c(e)._overflowWeekday&&-1===t&&(t=Bs),c(e).overflow=t),e}function st(e){var t,n,s,i,r,a,o=e._i,d=yi.exec(o)||gi.exec(o);if(d){for(c(e).iso=!0,t=0,n=wi.length;t<n;t++)if(wi[t][1].exec(d[1])){i=wi[t][0],s=!1!==wi[t][2];break}if(null==i)return void(e._isValid=!1);if(d[3]){for(t=0,n=vi.length;t<n;t++)if(vi[t][1].exec(d[3])){r=(d[2]||" ")+vi[t][0];break}if(null==r)return void(e._isValid=!1)}if(!s&&null!=r)return void(e._isValid=!1);if(d[4]){if(!pi.exec(d[4]))return void(e._isValid=!1);a="Z"}e._f=i+(r||"")+(a||""),lt(e)}else e._isValid=!1}function it(e){var t,n,s,i,r,a,o,d,u={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},l="YXWVUTSRQPONZABCDEFGHIKLM";if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),n=Si.exec(t)){if(s=n[1]?"ddd"+(5===n[1].length?", ":" "):"",i="D MMM "+(n[2].length>10?"YYYY ":"YY "),r="HH:mm"+(n[4]?":ss":""),n[1]){var h=new Date(n[2]),f=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][h.getDay()];if(n[1].substr(0,3)!==f)return c(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===d?o=" +0000":(d=l.indexOf(n[5][1].toUpperCase())-12,o=(d<0?" -":" +")+(""+d).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:o=u[n[5]];break;default:o=u[" GMT"]}n[5]=o,e._i=n.splice(1).join(""),a=" ZZ",e._f=s+i+r+a,lt(e),c(e).rfc2822=!0}else e._isValid=!1}function rt(t){var n=Mi.exec(t._i);if(null!==n)return void(t._d=new Date(+n[1]));st(t),!1===t._isValid&&(delete t._isValid,it(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}function at(e,t,n){return null!=e?e:null!=t?t:n}function ot(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function dt(e){var t,n,s,i,r=[];if(!e._d){for(s=ot(e),e._w&&null==e._a[Is]&&null==e._a[Es]&&ut(e),null!=e._dayOfYear&&(i=at(e._a[As],s[As]),(e._dayOfYear>me(i)||0===e._dayOfYear)&&(c(e)._overflowDayOfYear=!0),n=pe(i,0,e._dayOfYear),e._a[Es]=n.getUTCMonth(),e._a[Is]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=s[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Zs]&&0===e._a[zs]&&0===e._a[$s]&&0===e._a[qs]&&(e._nextDay=!0,e._a[Zs]=0),e._d=(e._useUTC?pe:ge).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Zs]=24)}}function ut(e){var t,n,s,i,r,a,o,d;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,a=4,n=at(t.GG,e._a[As],Me(pt(),1,4).year),s=at(t.W,1),((i=at(t.E,1))<1||i>7)&&(d=!0);else{r=e._locale._week.dow,a=e._locale._week.doy;var u=Me(pt(),r,a);n=at(t.gg,e._a[As],u.year),s=at(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(d=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(d=!0)):i=r}s<1||s>Se(n,r,a)?c(e)._overflowWeeks=!0:null!=d?c(e)._overflowWeekday=!0:(o=ve(n,s,i,r,a),e._a[As]=o.year,e._dayOfYear=o.dayOfYear)}function lt(t){if(t._f===e.ISO_8601)return void st(t);if(t._f===e.RFC_2822)return void it(t);t._a=[],c(t).empty=!0;var n,s,i,r,a,o=""+t._i,d=o.length,u=0;for(i=J(t._f,t._locale).match(Rs)||[],n=0;n<i.length;n++)r=i[n],s=(o.match(Q(r,t))||[])[0],s&&(a=o.substr(0,o.indexOf(s)),a.length>0&&c(t).unusedInput.push(a),o=o.slice(o.indexOf(s)+s.length),u+=s.length),Us[r]?(s?c(t).empty=!1:c(t).unusedTokens.push(r),ne(r,s,t)):t._strict&&!s&&c(t).unusedTokens.push(r);c(t).charsLeftOver=d-u,o.length>0&&c(t).unusedInput.push(o),t._a[Zs]<=12&&!0===c(t).bigHour&&t._a[Zs]>0&&(c(t).bigHour=void 0),c(t).parsedDateParts=t._a.slice(0),c(t).meridiem=t._meridiem,t._a[Zs]=ht(t._locale,t._a[Zs],t._meridiem),dt(t),nt(t)}function ht(e,t,n){var s;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(s=e.isPM(n),s&&t<12&&(t+=12),s||12!==t||(t=0),t):t}function ct(e){var t,n,s,i,r;if(0===e._f.length)return c(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)r=0,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],lt(t),f(t)&&(r+=c(t).charsLeftOver,r+=10*c(t).unusedTokens.length,c(t).score=r,(null==s||r<s)&&(s=r,n=t));u(e,n||t)}function ft(e){if(!e._d){var t=H(e._i);e._a=o([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),dt(e)}}function mt(e){var t=new y(nt(_t(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function _t(e){var n=e._i,s=e._f;return e._locale=e._locale||et(e._l),null===n||void 0===s&&""===n?m({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),g(n)?new y(nt(n)):(a(n)?e._d=n:t(s)?ct(e):s?lt(e):yt(e),f(e)||(e._d=null),e))}function yt(s){var d=s._i;i(d)?s._d=new Date(e.now()):a(d)?s._d=new Date(d.valueOf()):"string"==typeof d?rt(s):t(d)?(s._a=o(d.slice(0),function(e){return parseInt(e,10)}),dt(s)):n(d)?ft(s):r(d)?s._d=new Date(d):e.createFromInputFallback(s)}function gt(e,i,r,a,o){var d={};return!0!==r&&!1!==r||(a=r,r=void 0),(n(e)&&s(e)||t(e)&&0===e.length)&&(e=void 0),d._isAMomentObject=!0,d._useUTC=d._isUTC=o,d._l=r,d._i=e,d._f=i,d._strict=a,mt(d)}function pt(e,t,n,s){return gt(e,t,n,s,!1)}function wt(e,n){var s,i;if(1===n.length&&t(n[0])&&(n=n[0]),!n.length)return pt();for(s=n[0],i=1;i<n.length;++i)n[i].isValid()&&!n[i][e](s)||(s=n[i]);return s}function vt(){return wt("isBefore",[].slice.call(arguments,0))}function Mt(){return wt("isAfter",[].slice.call(arguments,0))}function St(e){for(var t in e)if(-1===Oi.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,s=0;s<Oi.length;++s)if(e[Oi[s]]){if(n)return!1;parseFloat(e[Oi[s]])!==w(e[Oi[s]])&&(n=!0)}return!0}function kt(){return this._isValid}function Dt(){return Et(NaN)}function Yt(e){var t=H(e),n=t.year||0,s=t.quarter||0,i=t.month||0,r=t.week||0,a=t.day||0,o=t.hour||0,d=t.minute||0,u=t.second||0,l=t.millisecond||0;this._isValid=St(t),this._milliseconds=+l+1e3*u+6e4*d+1e3*o*60*60,this._days=+a+7*r,this._months=+i+3*s+12*n,this._data={},this._locale=et(),this._bubble()}function Ot(e){return e instanceof Yt}function xt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Tt(e,t){Z(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)})}function bt(e,t){var n=(t||"").match(e);if(null===n)return null;var s=n[n.length-1]||[],i=(s+"").match(xi)||["-",0,0],r=60*i[1]+w(i[2]);return 0===r?0:"+"===i[0]?r:-r}function Pt(t,n){var s,i;return n._isUTC?(s=n.clone(),i=(g(t)||a(t)?t.valueOf():pt(t).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+i),e.updateOffset(s,!1),s):pt(t).local()}function Wt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Rt(t,n,s){var i,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=bt(Gs,t)))return this}else Math.abs(t)<16&&!s&&(t*=60);return!this._isUTC&&n&&(i=Wt(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!n||this._changeInProgress?qt(this,Et(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Wt(this)}function Ct(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ft(e){return this.utcOffset(0,e)}function Ut(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Wt(this),"m")),this}function Ht(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=bt(Ls,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Lt(e){return!!this.isValid()&&(e=e?pt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Gt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vt(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e={};if(_(e,this),e=_t(e),e._a){var t=e._isUTC?l(e._a):pt(e._a);this._isDSTShifted=this.isValid()&&v(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Nt(){return!!this.isValid()&&!this._isUTC}function jt(){return!!this.isValid()&&this._isUTC}function At(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Et(e,t){var n,s,i,a=e,o=null;return Ot(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:r(e)?(a={},t?a[t]=e:a.milliseconds=e):(o=Ti.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:w(o[Is])*n,h:w(o[Zs])*n,m:w(o[zs])*n,s:w(o[$s])*n,ms:w(xt(1e3*o[qs]))*n}):(o=bi.exec(e))?(n="-"===o[1]?-1:1,a={y:It(o[2],n),M:It(o[3],n),w:It(o[4],n),d:It(o[5],n),h:It(o[6],n),m:It(o[7],n),s:It(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=zt(pt(a.from),pt(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),s=new Yt(a),Ot(e)&&d(e,"_locale")&&(s._locale=e._locale),s}function It(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function zt(e,t){var n;return e.isValid()&&t.isValid()?(t=Pt(t,e),e.isBefore(t)?n=Zt(e,t):(n=Zt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function $t(e,t){return function(n,s){var i,r;return null===s||isNaN(+s)||(k(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=s,s=r),n="string"==typeof n?+n:n,i=Et(n,s),qt(this,i,e),this}}function qt(t,n,s,i){var r=n._milliseconds,a=xt(n._days),o=xt(n._months);t.isValid()&&(i=null==i||i,r&&t._d.setTime(t._d.valueOf()+r*s),a&&j(t,"Date",N(t,"Date")+a*s),o&&de(t,N(t,"Month")+o*s),i&&e.updateOffset(t,a||o))}function Jt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Bt(t,n){var s=t||pt(),i=Pt(s,this).startOf("day"),r=e.calendarFormat(this,i)||"sameElse",a=n&&(D(n[r])?n[r].call(this,s):n[r]);return this.format(a||this.localeData().calendar(r,this,pt(s)))}function Qt(){return new y(this)}function Xt(e,t){var n=g(e)?e:pt(e);return!(!this.isValid()||!n.isValid())&&(t=U(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Kt(e,t){var n=g(e)?e:pt(e);return!(!this.isValid()||!n.isValid())&&(t=U(i(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function en(e,t,n,s){return s=s||"()",("("===s[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===s[1]?this.isBefore(t,n):!this.isAfter(t,n))}function tn(e,t){var n,s=g(e)?e:pt(e);return!(!this.isValid()||!s.isValid())&&(t=U(t||"millisecond"),"millisecond"===t?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function nn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function sn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function rn(e,t,n){var s,i,r,a;return this.isValid()?(s=Pt(e,this),s.isValid()?(i=6e4*(s.utcOffset()-this.utcOffset()),t=U(t),"year"===t||"month"===t||"quarter"===t?(a=an(this,s),"quarter"===t?a/=3:"year"===t&&(a/=12)):(r=this-s,a="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-i)/864e5:"week"===t?(r-i)/6048e5:r),n?a:p(a)):NaN):NaN}function an(e,t){var n,s,i=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(i,"months");return t-r<0?(n=e.clone().add(i-1,"months"),s=(t-r)/(r-n)):(n=e.clone().add(i+1,"months"),s=(t-r)/(n-r)),-(i+s)||0}function on(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function dn(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?q(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):D(Date.prototype.toISOString)?this.toDate().toISOString():q(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function un(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+s+"-MM-DD[T]HH:mm:ss.SSS"+i)}function ln(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=q(this,t);return this.localeData().postformat(n)}function hn(e,t){return this.isValid()&&(g(e)&&e.isValid()||pt(e).isValid())?Et({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function cn(e){return this.from(pt(),e)}function fn(e,t){return this.isValid()&&(g(e)&&e.isValid()||pt(e).isValid())?Et({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mn(e){return this.to(pt(),e)}function _n(e){var t;return void 0===e?this._locale._abbr:(t=et(e),null!=t&&(this._locale=t),this)}function yn(){return this._locale}function gn(e){switch(e=U(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function pn(e){return void 0===(e=U(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function wn(){return this._d.valueOf()-6e4*(this._offset||0)}function vn(){return Math.floor(this.valueOf()/1e3)}function Mn(){return new Date(this.valueOf())}function Sn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function kn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Dn(){return this.isValid()?this.toISOString():null}function Yn(){return f(this)}function On(){return u({},c(this))}
function xn(){return c(this).overflow}function Tn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function bn(e,t){Z(0,[e,e.length],0,t)}function Pn(e){return Fn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wn(e){return Fn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Rn(){return Se(this.year(),1,4)}function Cn(){var e=this.localeData()._week;return Se(this.year(),e.dow,e.doy)}function Fn(e,t,n,s,i){var r;return null==e?Me(this,s,i).year:(r=Se(e,s,i),t>r&&(t=r),Un.call(this,e,t,n,s,i))}function Un(e,t,n,s,i){var r=ve(e,t,n,s,i),a=pe(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Hn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Ln(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Gn(e,t){t[qs]=w(1e3*("0."+e))}function Vn(){return this._isUTC?"UTC":""}function Nn(){return this._isUTC?"Coordinated Universal Time":""}function jn(e){return pt(1e3*e)}function An(){return pt.apply(null,arguments).parseZone()}function En(e){return e}function In(e,t,n,s){var i=et(),r=l().set(s,t);return i[n](r,e)}function Zn(e,t,n){if(r(e)&&(t=e,e=void 0),e=e||"",null!=t)return In(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=In(e,s,n,"month");return i}function zn(e,t,n,s){"boolean"==typeof e?(r(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,r(t)&&(n=t,t=void 0),t=t||"");var i=et(),a=e?i._week.dow:0;if(null!=n)return In(t,(n+a)%7,s,"day");var o,d=[];for(o=0;o<7;o++)d[o]=In(t,(o+a)%7,s,"day");return d}function $n(e,t){return Zn(e,t,"months")}function qn(e,t){return Zn(e,t,"monthsShort")}function Jn(e,t,n){return zn(e,t,n,"weekdays")}function Bn(e,t,n){return zn(e,t,n,"weekdaysShort")}function Qn(e,t,n){return zn(e,t,n,"weekdaysMin")}function Xn(){var e=this._data;return this._milliseconds=Ni(this._milliseconds),this._days=Ni(this._days),this._months=Ni(this._months),e.milliseconds=Ni(e.milliseconds),e.seconds=Ni(e.seconds),e.minutes=Ni(e.minutes),e.hours=Ni(e.hours),e.months=Ni(e.months),e.years=Ni(e.years),this}function Kn(e,t,n,s){var i=Et(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function es(e,t){return Kn(this,e,t,1)}function ts(e,t){return Kn(this,e,t,-1)}function ns(e){return e<0?Math.floor(e):Math.ceil(e)}function ss(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,d=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*ns(rs(o)+a),a=0,o=0),d.milliseconds=r%1e3,e=p(r/1e3),d.seconds=e%60,t=p(e/60),d.minutes=t%60,n=p(t/60),d.hours=n%24,a+=p(n/24),i=p(is(a)),o+=i,a-=ns(rs(i)),s=p(o/12),o%=12,d.days=a,d.months=o,d.years=s,this}function is(e){return 4800*e/146097}function rs(e){return 146097*e/4800}function as(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=U(e))||"year"===e)return t=this._days+s/864e5,n=this._months+is(t),"month"===e?n:n/12;switch(t=this._days+Math.round(rs(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}}function os(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN}function ds(e){return function(){return this.as(e)}}function us(e){return e=U(e),this.isValid()?this[e+"s"]():NaN}function ls(e){return function(){return this.isValid()?this._data[e]:NaN}}function hs(){return p(this.days()/7)}function cs(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}function fs(e,t,n){var s=Et(e).abs(),i=nr(s.as("s")),r=nr(s.as("m")),a=nr(s.as("h")),o=nr(s.as("d")),d=nr(s.as("M")),u=nr(s.as("y")),l=i<=sr.ss&&["s",i]||i<sr.s&&["ss",i]||r<=1&&["m"]||r<sr.m&&["mm",r]||a<=1&&["h"]||a<sr.h&&["hh",a]||o<=1&&["d"]||o<sr.d&&["dd",o]||d<=1&&["M"]||d<sr.M&&["MM",d]||u<=1&&["y"]||["yy",u];return l[2]=t,l[3]=+e>0,l[4]=n,cs.apply(null,l)}function ms(e){return void 0===e?nr:"function"==typeof e&&(nr=e,!0)}function _s(e,t){return void 0!==sr[e]&&(void 0===t?sr[e]:(sr[e]=t,"s"===e&&(sr.ss=t-1),!0))}function ys(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=fs(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function gs(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s=ir(this._milliseconds)/1e3,i=ir(this._days),r=ir(this._months);e=p(s/60),t=p(e/60),s%=60,e%=60,n=p(r/12),r%=12;var a=n,o=r,d=i,u=t,l=e,h=s,c=this.asSeconds();return c?(c<0?"-":"")+"P"+(a?a+"Y":"")+(o?o+"M":"")+(d?d+"D":"")+(u||l||h?"T":"")+(u?u+"H":"")+(l?l+"M":"")+(h?h+"S":""):"P0D"}var ps,ws;ws=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,s=0;s<n;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};var vs=ws,Ms=e.momentProperties=[],Ss=!1,ks={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Ds;Ds=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var Ys,Os=Ds,xs={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Ts={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},bs={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ps={},Ws={},Rs=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Cs=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Fs={},Us={},Hs=/[+-]?\d{6}/,Ls=/Z|[+-]\d\d:?\d\d/gi,Gs=/Z|[+-]\d\d(?::?\d\d)?/gi,Vs=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ns={},js={},As=0,Es=1,Is=2,Zs=3,zs=4,$s=5,qs=6,Js=7,Bs=8;Ys=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};var Qs=Ys;Z("M",["MM",2],"Mo",function(){return this.month()+1}),Z("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),Z("MMMM",0,0,function(e){return this.localeData().months(this,e)}),F("month","M"),L("month",8),B("M",/\d\d?/),B("MM",/\d\d?/,/\d\d/),B("MMM",function(e,t){return t.monthsShortRegex(e)}),B("MMMM",function(e,t){return t.monthsRegex(e)}),ee(["M","MM"],function(e,t){t[Es]=w(e)-1}),ee(["MMM","MMMM"],function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[Es]=i:c(n).invalidMonth=e});var Xs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ks="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ei="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ti=Vs,ni=Vs;Z("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),Z(0,["YY",2],0,function(){return this.year()%100}),Z(0,["YYYY",4],0,"year"),Z(0,["YYYYY",5],0,"year"),Z(0,["YYYYYY",6,!0],0,"year"),F("year","y"),L("year",1),B("Y",/[+-]?\d+/),B("YY",/\d\d?/,/\d\d/),B("YYYY",/\d{1,4}/,/\d{4}/),B("YYYYY",/[+-]?\d{1,6}/,Hs),B("YYYYYY",/[+-]?\d{1,6}/,Hs),ee(["YYYYY","YYYYYY"],As),ee("YYYY",function(t,n){n[As]=2===t.length?e.parseTwoDigitYear(t):w(t)}),ee("YY",function(t,n){n[As]=e.parseTwoDigitYear(t)}),ee("Y",function(e,t){t[As]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return w(e)+(w(e)>68?1900:2e3)};var si=V("FullYear",!0);Z("w",["ww",2],"wo","week"),Z("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),L("week",5),L("isoWeek",5),B("w",/\d\d?/),B("ww",/\d\d?/,/\d\d/),B("W",/\d\d?/),B("WW",/\d\d?/,/\d\d/),te(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=w(e)});var ii={dow:0,doy:6};Z("d",0,"do","day"),Z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),Z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),Z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),Z("e",0,0,"weekday"),Z("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),L("day",11),L("weekday",11),L("isoWeekday",11),B("d",/\d\d?/),B("e",/\d\d?/),B("E",/\d\d?/),B("dd",function(e,t){return t.weekdaysMinRegex(e)}),B("ddd",function(e,t){return t.weekdaysShortRegex(e)}),B("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:c(n).invalidWeekday=e}),te(["d","e","E"],function(e,t,n,s){t[s]=w(e)});var ri="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ai="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),oi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),di=Vs,ui=Vs,li=Vs;Z("H",["HH",2],0,"hour"),Z("h",["hh",2],0,Ae),Z("k",["kk",2],0,Ee),Z("hmm",0,0,function(){return""+Ae.apply(this)+I(this.minutes(),2)}),Z("hmmss",0,0,function(){return""+Ae.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)}),Z("Hmm",0,0,function(){return""+this.hours()+I(this.minutes(),2)}),Z("Hmmss",0,0,function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)}),Ie("a",!0),Ie("A",!1),F("hour","h"),L("hour",13),B("a",Ze),B("A",Ze),B("H",/\d\d?/),B("h",/\d\d?/),B("k",/\d\d?/),B("HH",/\d\d?/,/\d\d/),B("hh",/\d\d?/,/\d\d/),B("kk",/\d\d?/,/\d\d/),B("hmm",/\d\d\d\d?/),B("hmmss",/\d\d\d\d\d\d?/),B("Hmm",/\d\d\d\d?/),B("Hmmss",/\d\d\d\d\d\d?/),ee(["H","HH"],Zs),ee(["k","kk"],function(e,t,n){var s=w(e);t[Zs]=24===s?0:s}),ee(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ee(["h","hh"],function(e,t,n){t[Zs]=w(e),c(n).bigHour=!0}),ee("hmm",function(e,t,n){var s=e.length-2;t[Zs]=w(e.substr(0,s)),t[zs]=w(e.substr(s)),c(n).bigHour=!0}),ee("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Zs]=w(e.substr(0,s)),t[zs]=w(e.substr(s,2)),t[$s]=w(e.substr(i)),c(n).bigHour=!0}),ee("Hmm",function(e,t,n){var s=e.length-2;t[Zs]=w(e.substr(0,s)),t[zs]=w(e.substr(s))}),ee("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[Zs]=w(e.substr(0,s)),t[zs]=w(e.substr(s,2)),t[$s]=w(e.substr(i))});var hi,ci=V("Hours",!0),fi={calendar:xs,longDateFormat:Ts,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:bs,months:Ks,monthsShort:ei,week:ii,weekdays:ri,weekdaysMin:oi,weekdaysShort:ai,meridiemParse:/[ap]\.?m?\.?/i},mi={},_i={},yi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pi=/Z|[+-]\d\d(?::?\d\d)?/,wi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mi=/^\/?Date\((\-?\d+)/i,Si=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var ki=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=pt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Di=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=pt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}),Yi=function(){return Date.now?Date.now():+new Date},Oi=["year","quarter","month","week","day","hour","minute","second","millisecond"];Tt("Z",":"),Tt("ZZ",""),B("Z",Gs),B("ZZ",Gs),ee(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=bt(Gs,e)});var xi=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Ti=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,bi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Et.fn=Yt.prototype,Et.invalid=Dt;var Pi=$t(1,"add"),Wi=$t(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ri=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});Z(0,["gg",2],0,function(){return this.weekYear()%100}),Z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),L("weekYear",1),L("isoWeekYear",1),B("G",/[+-]?\d+/),B("g",/[+-]?\d+/),B("GG",/\d\d?/,/\d\d/),B("gg",/\d\d?/,/\d\d/),B("GGGG",/\d{1,4}/,/\d{4}/),B("gggg",/\d{1,4}/,/\d{4}/),B("GGGGG",/[+-]?\d{1,6}/,Hs),B("ggggg",/[+-]?\d{1,6}/,Hs),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=w(e)}),te(["gg","GG"],function(t,n,s,i){n[i]=e.parseTwoDigitYear(t)}),Z("Q",0,"Qo","quarter"),F("quarter","Q"),L("quarter",7),B("Q",/\d/),ee("Q",function(e,t){t[Es]=3*(w(e)-1)}),Z("D",["DD",2],"Do","date"),F("date","D"),L("date",9),B("D",/\d\d?/),B("DD",/\d\d?/,/\d\d/),B("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ee(["D","DD"],Is),ee("Do",function(e,t){t[Is]=w(e.match(/\d\d?/)[0],10)});var Ci=V("Date",!0);Z("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),L("dayOfYear",4),B("DDD",/\d{1,3}/),B("DDDD",/\d{3}/),ee(["DDD","DDDD"],function(e,t,n){n._dayOfYear=w(e)}),Z("m",["mm",2],0,"minute"),F("minute","m"),L("minute",14),B("m",/\d\d?/),B("mm",/\d\d?/,/\d\d/),ee(["m","mm"],zs);var Fi=V("Minutes",!1);Z("s",["ss",2],0,"second"),F("second","s"),L("second",15),B("s",/\d\d?/),B("ss",/\d\d?/,/\d\d/),ee(["s","ss"],$s);var Ui=V("Seconds",!1);Z("S",0,0,function(){return~~(this.millisecond()/100)}),Z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Z(0,["SSS",3],0,"millisecond"),Z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),F("millisecond","ms"),L("millisecond",16),B("S",/\d{1,3}/,/\d/),B("SS",/\d{1,3}/,/\d\d/),B("SSS",/\d{1,3}/,/\d{3}/);var Hi;for(Hi="SSSS";Hi.length<=9;Hi+="S")B(Hi,/\d+/);for(Hi="S";Hi.length<=9;Hi+="S")ee(Hi,Gn);var Li=V("Milliseconds",!1);Z("z",0,0,"zoneAbbr"),Z("zz",0,0,"zoneName");var Gi=y.prototype;Gi.add=Pi,Gi.calendar=Bt,Gi.clone=Qt,Gi.diff=rn,Gi.endOf=pn,Gi.format=ln,Gi.from=hn,Gi.fromNow=cn,Gi.to=fn,Gi.toNow=mn,Gi.get=A,Gi.invalidAt=xn,Gi.isAfter=Xt,Gi.isBefore=Kt,Gi.isBetween=en,Gi.isSame=tn,Gi.isSameOrAfter=nn,Gi.isSameOrBefore=sn,Gi.isValid=Yn,Gi.lang=Ri,Gi.locale=_n,Gi.localeData=yn,Gi.max=Di,Gi.min=ki,Gi.parsingFlags=On,Gi.set=E,Gi.startOf=gn,Gi.subtract=Wi,Gi.toArray=Sn,Gi.toObject=kn,Gi.toDate=Mn,Gi.toISOString=dn,Gi.inspect=un,Gi.toJSON=Dn,Gi.toString=on,Gi.unix=vn,Gi.valueOf=wn,Gi.creationData=Tn,Gi.year=si,Gi.isLeapYear=ye,Gi.weekYear=Pn,Gi.isoWeekYear=Wn,Gi.quarter=Gi.quarters=Hn,Gi.month=ue,Gi.daysInMonth=le,Gi.week=Gi.weeks=Oe,Gi.isoWeek=Gi.isoWeeks=xe,Gi.weeksInYear=Cn,Gi.isoWeeksInYear=Rn,Gi.date=Ci,Gi.day=Gi.days=Ue,Gi.weekday=He,Gi.isoWeekday=Le,Gi.dayOfYear=Ln,Gi.hour=Gi.hours=ci,Gi.minute=Gi.minutes=Fi,Gi.second=Gi.seconds=Ui,Gi.millisecond=Gi.milliseconds=Li,Gi.utcOffset=Rt,Gi.utc=Ft,Gi.local=Ut,Gi.parseZone=Ht,Gi.hasAlignedHourOffset=Lt,Gi.isDST=Gt,Gi.isLocal=Nt,Gi.isUtcOffset=jt,Gi.isUtc=At,Gi.isUTC=At,Gi.zoneAbbr=Vn,Gi.zoneName=Nn,Gi.dates=S("dates accessor is deprecated. Use date instead.",Ci),Gi.months=S("months accessor is deprecated. Use month instead",ue),Gi.years=S("years accessor is deprecated. Use year instead",si),Gi.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ct),Gi.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vt);var Vi=x.prototype;Vi.calendar=T,Vi.longDateFormat=b,Vi.invalidDate=P,Vi.ordinal=W,Vi.preparse=En,Vi.postformat=En,Vi.relativeTime=R,Vi.pastFuture=C,Vi.set=Y,Vi.months=ie,Vi.monthsShort=re,Vi.monthsParse=oe,Vi.monthsRegex=ce,Vi.monthsShortRegex=he,Vi.week=ke,Vi.firstDayOfYear=Ye,Vi.firstDayOfWeek=De,Vi.weekdays=Pe,Vi.weekdaysMin=Re,Vi.weekdaysShort=We,Vi.weekdaysParse=Fe,Vi.weekdaysRegex=Ge,Vi.weekdaysShortRegex=Ve,Vi.weekdaysMinRegex=Ne,Vi.isPM=ze,Vi.meridiem=$e,Qe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=S("moment.lang is deprecated. Use moment.locale instead.",Qe),e.langData=S("moment.langData is deprecated. Use moment.localeData instead.",et);var Ni=Math.abs,ji=ds("ms"),Ai=ds("s"),Ei=ds("m"),Ii=ds("h"),Zi=ds("d"),zi=ds("w"),$i=ds("M"),qi=ds("y"),Ji=ls("milliseconds"),Bi=ls("seconds"),Qi=ls("minutes"),Xi=ls("hours"),Ki=ls("days"),er=ls("months"),tr=ls("years"),nr=Math.round,sr={ss:44,s:45,m:45,h:22,d:26,M:11},ir=Math.abs,rr=Yt.prototype;return rr.isValid=kt,rr.abs=Xn,rr.add=es,rr.subtract=ts,rr.as=as,rr.asMilliseconds=ji,rr.asSeconds=Ai,rr.asMinutes=Ei,rr.asHours=Ii,rr.asDays=Zi,rr.asWeeks=zi,rr.asMonths=$i,rr.asYears=qi,rr.valueOf=os,rr._bubble=ss,rr.get=us,rr.milliseconds=Ji,rr.seconds=Bi,rr.minutes=Qi,rr.hours=Xi,rr.days=Ki,rr.weeks=hs,rr.months=er,rr.years=tr,rr.humanize=ys,rr.toISOString=gs,rr.toString=gs,rr.toJSON=gs,rr.locale=_n,rr.localeData=yn,rr.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gs),rr.lang=Ri,Z("X",0,0,"unix"),Z("x",0,0,"valueOf"),B("x",/[+-]?\d+/),B("X",/[+-]?\d+(\.\d{1,3})?/),ee("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ee("x",function(e,t,n){n._d=new Date(w(e))}),e.version="2.18.1",function(e){ps=e}(pt),e.fn=Gi,e.min=vt,e.max=Mt,e.now=Yi,e.utc=l,e.unix=jn,e.months=$n,e.isDate=a,e.locale=Qe,e.invalid=m,e.duration=Et,e.isMoment=g,e.weekdays=Jn,e.parseZone=An,e.localeData=et,e.isDuration=Ot,e.monthsShort=qn,e.weekdaysMin=Qn,e.defineLocale=Xe,e.updateLocale=Ke,e.locales=tt,e.weekdaysShort=Bn,e.normalizeUnits=U,e.relativeTimeRounding=ms,e.relativeTimeThreshold=_s,e.calendarFormat=Jt,e.prototype=Gi,e});
}catch(e){console.log("Module 'moment-2.18.1': ",e);}
try{!function(e,_){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?_(require("moment")):"function"==typeof define&&define.amd?define("moment-kk",["moment"],_):_(e.moment)}(this,function(e){"use strict";var _={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};return e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var t=e%10,d=e>=100?100:null;return e+(_[e]||_[t]||_[d])},week:{dow:1,doy:7}})});
}catch(e){console.log("Module 'moment-2.18.1': ",e);}
try{(function(){
if(!i$.isIE){
i$.addOnLoad(function(){
var _1=document.createElement("div");
_1.style.cssText="border:1px solid;border-color:red green;position:absolute;height:5px;top:-999px;background-image:url(\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\");";
document.body.appendChild(_1);
var _2=null;
try{
_2=document.defaultView.getComputedStyle(_1,"");
}
catch(e){
_2=_1.currentStyle;
}
if(_2){
var _3=_2.backgroundImage;
if((_2.borderTopColor==_2.borderRightColor)||(_3!=null&&(_3=="none"||_3=="url(invalid-url:)"))){
document.getElementsByTagName("body")[0].className+=" a11yHighContrast";
}
document.body.removeChild(_1);
}
});
}
})();


}catch(e){console.log("Module 'wp_high_contrast': ",e);}
try{!function(e){"function"==typeof define&&define.amd?define("touchswipe.js",["jquery-3.1.1"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery-3.1.1")):e(jQuery)}(function(e){"use strict";function n(n){return!n||void 0!==n.allowPageScroll||void 0===n.swipe&&void 0===n.swipeStatus||(n.allowPageScroll=s),void 0!==n.click&&void 0===n.tap&&(n.tap=n.click),n||(n={}),n=e.extend({},e.fn.swipe.defaults,n),this.each(function(){var r=e(this),i=r.data(D);i||(i=new t(this,n),r.data(D,i))})}function t(n,t){function P(n){if(!(se()||e(n.target).closest(t.excludedElements,Ve).length>0)){var r=n.originalEvent?n.originalEvent:n;if(!r.pointerType||"mouse"!=r.pointerType||0!=t.fallbackToMouseEvents){var i,l=r.touches,o=l?l[0]:r;return We=y,(l?ze=l.length:!1!==t.preventDefaultEvents&&n.preventDefault(),Ue=0,Ne=null,He=null,Xe=null,_e=0,qe=0,Ce=0,Fe=1,Qe=0,Ye=we(),ue(),pe(0,o),!l||ze===t.fingers||t.fingers===T||X()?(Ze=Oe(),2==ze&&(pe(1,l[1]),qe=Ce=be(Ge[0].start,Ge[1].start)),(t.swipeStatus||t.pinchStatus)&&(i=U(r,We))):i=!1,!1===i)?(We=x,U(r,We),i):(t.hold&&(nn=setTimeout(e.proxy(function(){Ve.trigger("hold",[r.target]),t.hold&&(i=t.hold.call(Ve,r,r.target))},this),t.longTapThreshold)),ce(!0),null)}}}function L(e){var n=e.originalEvent?e.originalEvent:e;if(We!==m&&We!==x&&!ae()){var r,i=n.touches,l=i?i[0]:n,o=fe(l);if(Be=Oe(),i&&(ze=i.length),t.hold&&clearTimeout(nn),We=E,2==ze&&(0==qe?(pe(1,i[1]),qe=Ce=be(Ge[0].start,Ge[1].start)):(fe(i[1]),Ce=be(Ge[0].end,Ge[1].end),Xe=Ee(Ge[0].end,Ge[1].end)),Fe=ye(qe,Ce),Qe=Math.abs(qe-Ce)),ze===t.fingers||t.fingers===T||!i||X()){if(Ne=Se(o.start,o.end),He=Se(o.last,o.end),F(e,He),Ue=me(o.start,o.end),_e=Te(),de(Ne,Ue),r=U(n,We),!t.triggerOnTouchEnd||t.triggerOnTouchLeave){var u=!0;if(t.triggerOnTouchLeave){var a=Me(this);u=De(o.end,a)}!t.triggerOnTouchEnd&&u?We=I(E):t.triggerOnTouchLeave&&!u&&(We=I(m)),We!=x&&We!=m||U(n,We)}}else We=x,U(n,We);!1===r&&(We=x,U(n,We))}}function R(e){var n=e.originalEvent?e.originalEvent:e,r=n.touches;if(r){if(r.length&&!ae())return oe(n),!0;if(r.length&&ae())return!0}return ae()&&(ze=Ke),Be=Oe(),_e=Te(),_()||!H()?(We=x,U(n,We)):t.triggerOnTouchEnd||!1===t.triggerOnTouchEnd&&We===E?(!1!==t.preventDefaultEvents&&e.preventDefault(),We=m,U(n,We)):!t.triggerOnTouchEnd&&B()?(We=m,N(n,We,h)):We===E&&(We=x,U(n,We)),ce(!1),null}function k(){ze=0,Be=0,Ze=0,qe=0,Ce=0,Fe=1,ue(),ce(!1)}function j(e){var n=e.originalEvent?e.originalEvent:e;t.triggerOnTouchLeave&&(We=I(m),U(n,We))}function A(){Ve.unbind(Re,P),Ve.unbind(Ie,k),Ve.unbind(ke,L),Ve.unbind(je,R),Ae&&Ve.unbind(Ae,j),ce(!1)}function I(e){var n=e,r=C(),i=H(),l=_();return!r||l?n=x:!i||e!=E||t.triggerOnTouchEnd&&!t.triggerOnTouchLeave?!i&&e==m&&t.triggerOnTouchLeave&&(n=x):n=m,n}function U(e,n){var t,r=e.touches;return(z()||W())&&(t=N(e,n,p)),(Y()||X())&&!1!==t&&(t=N(e,n,f)),ie()&&!1!==t?t=N(e,n,d):le()&&!1!==t?t=N(e,n,g):re()&&!1!==t&&(t=N(e,n,h)),n===x&&k(e),n===m&&(r?r.length||k(e):k(e)),t}function N(n,s,c){var w;if(c==p){if(Ve.trigger("swipeStatus",[s,Ne||null,Ue||0,_e||0,ze,Ge,He]),t.swipeStatus&&!1===(w=t.swipeStatus.call(Ve,n,s,Ne||null,Ue||0,_e||0,ze,Ge,He)))return!1;if(s==m&&V()){if(clearTimeout(en),clearTimeout(nn),Ve.trigger("swipe",[Ne,Ue,_e,ze,Ge,He]),t.swipe&&!1===(w=t.swipe.call(Ve,n,Ne,Ue,_e,ze,Ge,He)))return!1;switch(Ne){case r:Ve.trigger("swipeLeft",[Ne,Ue,_e,ze,Ge,He]),t.swipeLeft&&(w=t.swipeLeft.call(Ve,n,Ne,Ue,_e,ze,Ge,He));break;case i:Ve.trigger("swipeRight",[Ne,Ue,_e,ze,Ge,He]),t.swipeRight&&(w=t.swipeRight.call(Ve,n,Ne,Ue,_e,ze,Ge,He));break;case l:Ve.trigger("swipeUp",[Ne,Ue,_e,ze,Ge,He]),t.swipeUp&&(w=t.swipeUp.call(Ve,n,Ne,Ue,_e,ze,Ge,He));break;case o:Ve.trigger("swipeDown",[Ne,Ue,_e,ze,Ge,He]),t.swipeDown&&(w=t.swipeDown.call(Ve,n,Ne,Ue,_e,ze,Ge,He))}}}if(c==f){if(Ve.trigger("pinchStatus",[s,Xe||null,Qe||0,_e||0,ze,Fe,Ge]),t.pinchStatus&&!1===(w=t.pinchStatus.call(Ve,n,s,Xe||null,Qe||0,_e||0,ze,Fe,Ge)))return!1;if(s==m&&Q())switch(Xe){case u:Ve.trigger("pinchIn",[Xe||null,Qe||0,_e||0,ze,Fe,Ge]),t.pinchIn&&(w=t.pinchIn.call(Ve,n,Xe||null,Qe||0,_e||0,ze,Fe,Ge));break;case a:Ve.trigger("pinchOut",[Xe||null,Qe||0,_e||0,ze,Fe,Ge]),t.pinchOut&&(w=t.pinchOut.call(Ve,n,Xe||null,Qe||0,_e||0,ze,Fe,Ge))}}return c==h?s!==x&&s!==m||(clearTimeout(en),clearTimeout(nn),J()&&!ee()?($e=Oe(),en=setTimeout(e.proxy(function(){$e=null,Ve.trigger("tap",[n.target]),t.tap&&(w=t.tap.call(Ve,n,n.target))},this),t.doubleTapThreshold)):($e=null,Ve.trigger("tap",[n.target]),t.tap&&(w=t.tap.call(Ve,n,n.target)))):c==d?s!==x&&s!==m||(clearTimeout(en),clearTimeout(nn),$e=null,Ve.trigger("doubletap",[n.target]),t.doubleTap&&(w=t.doubleTap.call(Ve,n,n.target))):c==g&&(s!==x&&s!==m||(clearTimeout(en),$e=null,Ve.trigger("longtap",[n.target]),t.longTap&&(w=t.longTap.call(Ve,n,n.target)))),w}function H(){var e=!0;return null!==t.threshold&&(e=Ue>=t.threshold),e}function _(){var e=!1;return null!==t.cancelThreshold&&null!==Ne&&(e=ge(Ne)-Ue>=t.cancelThreshold),e}function q(){return null===t.pinchThreshold||Qe>=t.pinchThreshold}function C(){return!t.maxTimeThreshold||!(_e>=t.maxTimeThreshold)}function F(e,n){if(!1!==t.preventDefaultEvents)if(t.allowPageScroll===s)e.preventDefault();else{var u=t.allowPageScroll===c;switch(n){case r:(t.swipeLeft&&u||!u&&t.allowPageScroll!=w)&&e.preventDefault();break;case i:(t.swipeRight&&u||!u&&t.allowPageScroll!=w)&&e.preventDefault();break;case l:(t.swipeUp&&u||!u&&t.allowPageScroll!=v)&&e.preventDefault();break;case o:(t.swipeDown&&u||!u&&t.allowPageScroll!=v)&&e.preventDefault()}}}function Q(){var e=G(),n=Z(),t=q();return e&&n&&t}function X(){return!!(t.pinchStatus||t.pinchIn||t.pinchOut)}function Y(){return!(!Q()||!X())}function V(){var e=C(),n=H(),t=G(),r=Z();return!_()&&r&&t&&n&&e}function W(){return!!(t.swipe||t.swipeStatus||t.swipeLeft||t.swipeRight||t.swipeUp||t.swipeDown)}function z(){return!(!V()||!W())}function G(){return ze===t.fingers||t.fingers===T||!S}function Z(){return 0!==Ge[0].end.x}function B(){return!!t.tap}function J(){return!!t.doubleTap}function K(){return!!t.longTap}function $(){if(null==$e)return!1;var e=Oe();return J()&&e-$e<=t.doubleTapThreshold}function ee(){return $()}function ne(){return(1===ze||!S)&&(isNaN(Ue)||Ue<t.threshold)}function te(){return _e>t.longTapThreshold&&Ue<b}function re(){return!(!ne()||!B())}function ie(){return!(!$()||!J())}function le(){return!(!te()||!K())}function oe(e){Je=Oe(),Ke=e.touches.length+1}function ue(){Je=0,Ke=0}function ae(){var e=!1;if(Je){Oe()-Je<=t.fingerReleaseThreshold&&(e=!0)}return e}function se(){return!(!0!==Ve.data(D+"_intouch"))}function ce(e){Ve&&(!0===e?(Ve.bind(ke,L),Ve.bind(je,R),Ae&&Ve.bind(Ae,j)):(Ve.unbind(ke,L,!1),Ve.unbind(je,R,!1),Ae&&Ve.unbind(Ae,j,!1)),Ve.data(D+"_intouch",!0===e))}function pe(e,n){var t={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return t.start.x=t.last.x=t.end.x=n.pageX||n.clientX,t.start.y=t.last.y=t.end.y=n.pageY||n.clientY,Ge[e]=t,t}function fe(e){var n=void 0!==e.identifier?e.identifier:0,t=he(n);return null===t&&(t=pe(n,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function he(e){return Ge[e]||null}function de(e,n){e!=s&&(n=Math.max(n,ge(e)),Ye[e].distance=n)}function ge(e){if(Ye[e])return Ye[e].distance}function we(){var e={};return e[r]=ve(r),e[i]=ve(i),e[l]=ve(l),e[o]=ve(o),e}function ve(e){return{direction:e,distance:0}}function Te(){return Be-Ze}function be(e,n){var t=Math.abs(e.x-n.x),r=Math.abs(e.y-n.y);return Math.round(Math.sqrt(t*t+r*r))}function ye(e,n){return(n/e*1).toFixed(2)}function Ee(){return Fe<1?a:u}function me(e,n){return Math.round(Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2)))}function xe(e,n){var t=e.x-n.x,r=n.y-e.y,i=Math.atan2(r,t),l=Math.round(180*i/Math.PI);return l<0&&(l=360-Math.abs(l)),l}function Se(e,n){if(Pe(e,n))return s;var t=xe(e,n);return t<=45&&t>=0?r:t<=360&&t>=315?r:t>=135&&t<=225?i:t>45&&t<135?o:l}function Oe(){return(new Date).getTime()}function Me(n){n=e(n);var t=n.offset();return{left:t.left,right:t.left+n.outerWidth(),top:t.top,bottom:t.top+n.outerHeight()}}function De(e,n){return e.x>n.left&&e.x<n.right&&e.y>n.top&&e.y<n.bottom}function Pe(e,n){return e.x==n.x&&e.y==n.y}var t=e.extend({},t),Le=S||M||!t.fallbackToMouseEvents,Re=Le?M?O?"MSPointerDown":"pointerdown":"touchstart":"mousedown",ke=Le?M?O?"MSPointerMove":"pointermove":"touchmove":"mousemove",je=Le?M?O?"MSPointerUp":"pointerup":"touchend":"mouseup",Ae=Le?M?"mouseleave":null:"mouseleave",Ie=M?O?"MSPointerCancel":"pointercancel":"touchcancel",Ue=0,Ne=null,He=null,_e=0,qe=0,Ce=0,Fe=1,Qe=0,Xe=0,Ye=null,Ve=e(n),We="start",ze=0,Ge={},Ze=0,Be=0,Je=0,Ke=0,$e=0,en=null,nn=null;try{Ve.bind(Re,P),Ve.bind(Ie,k)}catch(n){e.error("events not supported "+Re+","+Ie+" on jQuery.swipe")}this.enable=function(){return this.disable(),Ve.bind(Re,P),Ve.bind(Ie,k),Ve},this.disable=function(){return A(),Ve},this.destroy=function(){A(),Ve.data(D,null),Ve=null},this.option=function(n,r){if("object"==typeof n)t=e.extend(t,n);else if(void 0!==t[n]){if(void 0===r)return t[n];t[n]=r}else{if(!n)return t;e.error("Option "+n+" does not exist on jQuery.swipe.options")}return null}}var r="left",i="right",l="up",o="down",u="in",a="out",s="none",c="auto",p="swipe",f="pinch",h="tap",d="doubletap",g="longtap",w="horizontal",v="vertical",T="all",b=10,y="start",E="move",m="end",x="cancel",S="ontouchstart"in window,O=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!S,M=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!S,D="TouchSwipe",P={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};e.fn.swipe=function(t){var r=e(this),i=r.data(D);if(i&&"string"==typeof t){if(i[t])return i[t].apply(i,Array.prototype.slice.call(arguments,1));e.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&"object"==typeof t)i.option.apply(i,arguments);else if(!(i||"object"!=typeof t&&t))return n.apply(this,arguments);return r},e.fn.swipe.version="1.6.18",e.fn.swipe.defaults=P,e.fn.swipe.phases={PHASE_START:y,PHASE_MOVE:E,PHASE_END:m,PHASE_CANCEL:x},e.fn.swipe.directions={LEFT:r,RIGHT:i,UP:l,DOWN:o,IN:u,OUT:a},e.fn.swipe.pageScroll={NONE:s,HORIZONTAL:w,VERTICAL:v,AUTO:c},e.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:T}});
}catch(e){console.log("Module 'jquery.touchSwipe-1.6.18': ",e);}
try{!function(t,e){"function"==typeof define&&define.amd?define("tether",[],function(){t.Tether=e()}):"object"==typeof exports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,o){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){var e=t.getBoundingClientRect(),o={};for(var i in e)o[i]=e[i];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var s=n(r);o.top+=s.top,o.bottom+=s.top,o.left+=s.left,o.right+=s.left}}return o}function r(t){var e=getComputedStyle(t)||{},o=e.position,i=[];if("fixed"===o)return[t];for(var n=t;(n=n.parentNode)&&n&&1===n.nodeType;){var r=void 0;try{r=getComputedStyle(n)}catch(t){}if(void 0===r||null===r)return i.push(n),i;var s=r,a=s.overflow,l=s.overflowX;/(auto|scroll)/.test(a+s.overflowY+l)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(n)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function s(){T&&document.body.removeChild(T),T=null}function a(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var o=e.documentElement,i=n(t),r=P();return i.top-=r.top,i.left-=r.left,void 0===i.width&&(i.width=document.body.scrollWidth-i.left-i.right),void 0===i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-o.clientTop,i.left=i.left-o.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}function l(t){return t.offsetParent||document.documentElement}function h(){if(M)return M;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");f(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var o=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);var n=o-i;return M={width:n,height:n}}function f(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var o in e)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}function d(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var o=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=c(t).replace(o," ");g(t,i)}}function p(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);var o=c(t)+" "+e;g(t,o)}}function u(t,e){if(void 0!==t.classList)return t.classList.contains(e);var o=c(t);return new RegExp("(^| )"+e+"( |$)","gi").test(o)}function c(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function g(t,e){t.setAttribute("class",e)}function m(t,e,o){o.forEach(function(o){-1===e.indexOf(o)&&u(t,o)&&d(t,o)}),e.forEach(function(e){u(t,e)||p(t,e)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function b(t,e){var o=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+o>=e&&e>=t-o}function y(){return"undefined"!=typeof performance&&void 0!==performance.now?performance.now():+new Date}function w(){for(var t={top:0,left:0},e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];return o.forEach(function(e){var o=e.top,i=e.left;"string"==typeof o&&(o=parseFloat(o,10)),"string"==typeof i&&(i=parseFloat(i,10)),t.top+=o,t.left+=i}),t}function C(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}function O(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),void 0!==e.nodeType&&function(){var t=e,o=a(e),i=o,n=getComputedStyle(e);if(e=[i.left,i.top,o.width+i.left,o.height+i.top],t.ownerDocument!==document){var r=t.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}G.forEach(function(t,o){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[o]+=parseFloat(n["border"+t+"Width"]):e[o]-=parseFloat(n["border"+t+"Width"])})}(),e}var E=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),x=void 0;void 0===x&&(x={modules:[]});var T=null,A=function(){var t=0;return function(){return++t}}(),S={},P=function(){var t=T;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",A()),f(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),T=t);var e=t.getAttribute("data-tether-id");return void 0===S[e]&&(S[e]=n(t),k(function(){delete S[e]})),S[e]},M=null,W=[],k=function(t){W.push(t)},_=function(){for(var t=void 0;t=W.pop();)t()},B=function(){function t(){i(this,t)}return E(t,[{key:"on",value:function(t,e,o){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:o,once:i})}},{key:"once",value:function(t,e,o){this.on(t,e,o,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var o=0;o<this.bindings[t].length;)this.bindings[t][o].handler===e?this.bindings[t].splice(o,1):++o}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,o=arguments.length,i=Array(o>1?o-1:0),n=1;n<o;n++)i[n-1]=arguments[n];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,a=r.ctx,l=r.once,h=a;void 0===h&&(h=this),s.apply(h,i),l?this.bindings[t].splice(e,1):++e}}}}]),t}();x.Utils={getActualBoundingClientRect:n,getScrollParents:r,getBounds:a,getOffsetParent:l,extend:f,addClass:p,removeClass:d,hasClass:u,updateClasses:m,defer:k,flush:_,uniqueId:A,Evented:B,getScrollBarSize:h,removeUtilElements:s};var z=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),j=function(t,e,o){for(var i=!0;i;){var n=t,r=e,s=o;i=!1,null===n&&(n=Function.prototype);var a=Object.getOwnPropertyDescriptor(n,r);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(s)}var h=Object.getPrototypeOf(n);if(null===h)return;t=h,e=r,o=s,i=!0,a=h=void 0}};if(void 0===x)throw new Error("You must include the utils.js file before tether.js");var Y=x.Utils,r=Y.getScrollParents,a=Y.getBounds,l=Y.getOffsetParent,f=Y.extend,p=Y.addClass,d=Y.removeClass,m=Y.updateClasses,k=Y.defer,_=Y.flush,h=Y.getScrollBarSize,s=Y.removeUtilElements,L=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],o=0;o<e.length;++o){var i=e[o];if(void 0!==t.style[i])return i}}(),D=[],X=function(){D.forEach(function(t){t.position(!1)}),_()};!function(){var t=null,e=null,o=null,i=function i(){if(void 0!==e&&e>16)return e=Math.min(e-16,250),void(o=setTimeout(i,250));void 0!==t&&y()-t<10||(null!=o&&(clearTimeout(o),o=null),t=y(),X(),e=y()-t)};"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var F={center:"center",left:"right",right:"left"},H={middle:"middle",top:"bottom",bottom:"top"},N={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},U=function(t,e){var o=t.left,i=t.top;return"auto"===o&&(o=F[e.left]),"auto"===i&&(i=H[e.top]),{left:o,top:i}},V=function(t){var e=t.left,o=t.top;return void 0!==N[t.left]&&(e=N[t.left]),void 0!==N[t.top]&&(o=N[t.top]),{left:e,top:o}},R=function(t){var e=t.split(" "),o=z(e,2);return{top:o[0],left:o[1]}},q=R,I=function(t){function e(t){var o=this;i(this,e),j(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),D.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(o)}),this.position()}return v(e,t),E(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,o=arguments.length<=1||void 0===arguments[1]||arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=f(i,t);var n=this.options,s=n.element,a=n.target,l=n.targetModifier;if(this.element=s,this.target=a,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),p(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&p(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=q(this.options.targetAttachment),this.attachment=q(this.options.attachment),this.offset=R(this.options.offset),this.targetOffset=R(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),!1!==this.options.enabled&&this.enable(o)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return a(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=a(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,o=this.target;o===document.body?(o=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=a(o);var i=getComputedStyle(o),n=o.scrollWidth>o.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,r=0;n&&(r=15);var s=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-r,e={width:15,height:.975*s*(s/o.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},l=0;s<408&&this.target===document.body&&(l=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var h=this.target.scrollTop/(o.scrollHeight-s);return e.top=h*(s-e.height-l)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&p(this.target,this.getClass("enabled")),p(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),D.forEach(function(e,o){e===t&&D.splice(o,1)}),0===D.length&&s()}},{key:"updateAttachClasses",value:function(t,e){var o=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var n=this._addAttachClasses;t.top&&n.push(this.getClass("element-attached")+"-"+t.top),t.left&&n.push(this.getClass("element-attached")+"-"+t.left),e.top&&n.push(this.getClass("target-attached")+"-"+e.top),e.left&&n.push(this.getClass("target-attached")+"-"+e.left);var r=[];i.forEach(function(t){r.push(o.getClass("element-attached")+"-"+t),r.push(o.getClass("target-attached")+"-"+t)}),k(function(){void 0!==o._addAttachClasses&&(m(o.element,o._addAttachClasses,r),!1!==o.options.addTargetClasses&&m(o.target,o._addAttachClasses,r),delete o._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var o=U(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,o);var i=this.cache("element-bounds",function(){return a(t.element)}),n=i.width,r=i.height;if(0===n&&0===r&&void 0!==this.lastSize){var s=this.lastSize;n=s.width,r=s.height}else this.lastSize={width:n,height:r};var f=this.cache("target-bounds",function(){return t.getTargetBounds()}),d=f,p=C(V(this.attachment),{width:n,height:r}),u=C(V(o),d),c=C(this.offset,{width:n,height:r}),g=C(this.targetOffset,d);p=w(p,c),u=w(u,g);for(var m=f.left+u.left-p.left,v=f.top+u.top-p.top,b=0;b<x.modules.length;++b){var y=x.modules[b],O=y.position.call(this,{left:m,top:v,targetAttachment:o,targetPos:f,elementPos:i,offset:p,targetOffset:u,manualOffset:c,manualTargetOffset:g,scrollbarSize:S,attachment:this.attachment});if(!1===O)return!1;void 0!==O&&"object"==typeof O&&(v=O.top,m=O.left)}var E={page:{top:v,left:m},viewport:{top:v-pageYOffset,bottom:pageYOffset-v-r+innerHeight,left:m-pageXOffset,right:pageXOffset-m-n+innerWidth}},T=this.target.ownerDocument,A=T.defaultView,S=void 0;return A.innerHeight>T.documentElement.clientHeight&&(S=this.cache("scrollbar-size",h),E.viewport.bottom-=S.height),A.innerWidth>T.documentElement.clientWidth&&(S=this.cache("scrollbar-size",h),E.viewport.right-=S.width),-1!==["","static"].indexOf(T.body.style.position)&&-1!==["","static"].indexOf(T.body.parentElement.style.position)||(E.page.bottom=T.body.scrollHeight-v-r,E.page.right=T.body.scrollWidth-m-n),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var e=t.cache("target-offsetparent",function(){return l(t.target)}),o=t.cache("target-offsetparent-bounds",function(){return a(e)}),i=getComputedStyle(e),n=o,r={};if(["Top","Left","Bottom","Right"].forEach(function(t){r[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),o.right=T.body.scrollWidth-o.left-n.width+r.right,o.bottom=T.body.scrollHeight-o.top-n.height+r.bottom,E.page.top>=o.top+r.top&&E.page.bottom>=o.bottom&&E.page.left>=o.left+r.left&&E.page.right>=o.right){var s=e.scrollTop,h=e.scrollLeft;E.offset={top:E.page.top-o.top+s-r.top,left:E.page.left-o.left+h-r.left}}}(),this.move(E),this.history.unshift(E),this.history.length>3&&this.history.pop(),e&&_(),!0}}},{key:"move",value:function(t){var e=this;if(void 0!==this.element.parentNode){var o={};for(var i in t){o[i]={};for(var n in t[i]){for(var r=!1,s=0;s<this.history.length;++s){var a=this.history[s];if(void 0!==a[i]&&!b(a[i][n],t[i][n])){r=!0;break}}r||(o[i][n]=!0)}}var h={top:"",left:"",right:"",bottom:""},d=function(t,o){if(!1!==(void 0!==e.options.optimizations?e.options.optimizations.gpu:null)){var i=void 0,n=void 0;t.top?(h.top=0,i=o.top):(h.bottom=0,i=-o.bottom),t.left?(h.left=0,n=o.left):(h.right=0,n=-o.right),window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches||(n=Math.round(n),i=Math.round(i))),h[L]="translateX("+n+"px) translateY("+i+"px)","msTransform"!==L&&(h[L]+=" translateZ(0)")}else t.top?h.top=o.top+"px":h.bottom=o.bottom+"px",t.left?h.left=o.left+"px":h.right=o.right+"px"},p=!1;if((o.page.top||o.page.bottom)&&(o.page.left||o.page.right)?(h.position="absolute",d(o.page,t.page)):(o.viewport.top||o.viewport.bottom)&&(o.viewport.left||o.viewport.right)?(h.position="fixed",d(o.viewport,t.viewport)):void 0!==o.offset&&o.offset.top&&o.offset.left?function(){h.position="absolute";var i=e.cache("target-offsetparent",function(){return l(e.target)});l(e.element)!==i&&k(function(){e.element.parentNode.removeChild(e.element),i.appendChild(e.element)}),d(o.offset,t.offset),p=!0}():(h.position="absolute",d({top:!0,left:!0},t.page)),!p)if(this.options.bodyElement)this.options.bodyElement.appendChild(this.element);else{for(var u=!0,c=this.element.parentNode;c&&1===c.nodeType&&"BODY"!==c.tagName;){if("static"!==getComputedStyle(c).position){u=!1;break}c=c.parentNode}u||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},m=!1;for(var n in h){var v=h[n];this.element.style[n]!==v&&(m=!0,g[n]=v)}m&&k(function(){f(e.element.style,g),e.trigger("repositioned")})}}}]),e}(B);I.modules=[],x.position=X;var $=f(I,x),z=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Y=x.Utils,a=Y.getBounds,f=Y.extend,m=Y.updateClasses,k=Y.defer,G=["left","top","right","bottom"];x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return a(e.element)}),s=r.height,l=r.width;if(0===l&&0===s&&void 0!==this.lastSize){var h=this.lastSize;l=h.width,s=h.height}var d=this.cache("target-bounds",function(){return e.getTargetBounds()}),p=d.height,u=d.width,c=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,o=t.pinnedClass;e&&c.push(e),o&&c.push(o)}),c.forEach(function(t){["left","top","right","bottom"].forEach(function(e){c.push(t+"-"+e)})});var g=[],v=f({},n),b=f({},this.attachment);return this.options.constraints.forEach(function(t){var r=t.to,a=t.attachment,h=t.pin;void 0===a&&(a="");var f=void 0,d=void 0;if(a.indexOf(" ")>=0){var c=a.split(" "),m=z(c,2);d=m[0],f=m[1]}else f=d=a;var y=O(e,r);"target"!==d&&"both"!==d||(o<y[1]&&"top"===v.top&&(o+=p,v.top="bottom"),o+s>y[3]&&"bottom"===v.top&&(o-=p,v.top="top")),"together"===d&&("top"===v.top&&("bottom"===b.top&&o<y[1]?(o+=p,v.top="bottom",o+=s,b.top="top"):"top"===b.top&&o+s>y[3]&&o-(s-p)>=y[1]&&(o-=s-p,v.top="bottom",b.top="bottom")),"bottom"===v.top&&("top"===b.top&&o+s>y[3]?(o-=p,v.top="top",o-=s,b.top="bottom"):"bottom"===b.top&&o<y[1]&&o+(2*s-p)<=y[3]&&(o+=s-p,v.top="top",b.top="top")),"middle"===v.top&&(o+s>y[3]&&"top"===b.top?(o-=s,b.top="bottom"):o<y[1]&&"bottom"===b.top&&(o+=s,b.top="top"))),"target"!==f&&"both"!==f||(i<y[0]&&"left"===v.left&&(i+=u,v.left="right"),i+l>y[2]&&"right"===v.left&&(i-=u,v.left="left")),"together"===f&&(i<y[0]&&"left"===v.left?"right"===b.left?(i+=u,v.left="right",i+=l,b.left="left"):"left"===b.left&&(i+=u,v.left="right",i-=l,b.left="right"):i+l>y[2]&&"right"===v.left?"left"===b.left?(i-=u,v.left="left",i-=l,b.left="right"):"right"===b.left&&(i-=u,v.left="left",i+=l,b.left="left"):"center"===v.left&&(i+l>y[2]&&"left"===b.left?(i-=l,b.left="right"):i<y[0]&&"right"===b.left&&(i+=l,b.left="left"))),"element"!==d&&"both"!==d||(o<y[1]&&"bottom"===b.top&&(o+=s,b.top="top"),o+s>y[3]&&"top"===b.top&&(o-=s,b.top="bottom")),"element"!==f&&"both"!==f||(i<y[0]&&("right"===b.left?(i+=l,b.left="left"):"center"===b.left&&(i+=l/2,b.left="left")),i+l>y[2]&&("left"===b.left?(i-=l,b.left="right"):"center"===b.left&&(i-=l/2,b.left="right"))),"string"==typeof h?h=h.split(",").map(function(t){return t.trim()}):!0===h&&(h=["top","left","right","bottom"]),h=h||[];var w=[],C=[];o<y[1]&&(h.indexOf("top")>=0?(o=y[1],w.push("top")):C.push("top")),o+s>y[3]&&(h.indexOf("bottom")>=0?(o=y[3]-s,w.push("bottom")):C.push("bottom")),i<y[0]&&(h.indexOf("left")>=0?(i=y[0],w.push("left")):C.push("left")),i+l>y[2]&&(h.indexOf("right")>=0?(i=y[2]-l,w.push("right")):C.push("right")),w.length&&function(){var t=void 0;t=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),g.push(t),w.forEach(function(e){g.push(t+"-"+e)})}(),C.length&&function(){var t=void 0;t=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),g.push(t),C.forEach(function(e){g.push(t+"-"+e)})}(),(w.indexOf("left")>=0||w.indexOf("right")>=0)&&(b.left=v.left=!1),(w.indexOf("top")>=0||w.indexOf("bottom")>=0)&&(b.top=v.top=!1),v.top===n.top&&v.left===n.left&&b.top===e.attachment.top&&b.left===e.attachment.left||(e.updateAttachClasses(b,v),e.trigger("update",{attachment:b,targetAttachment:v}))}),k(function(){!1!==e.options.addTargetClasses&&m(e.target,g,c),m(e.element,g,c)}),{top:o,left:i}}});var Y=x.Utils,a=Y.getBounds,m=Y.updateClasses,k=Y.defer;x.modules.push({position:function(t){var e=this,o=t.top,i=t.left,n=this.cache("element-bounds",function(){return a(e.element)}),r=n.height,s=n.width,l=this.getTargetBounds(),h=o+r,f=i+s,d=[];o<=l.bottom&&h>=l.top&&["left","right"].forEach(function(t){var e=l[t];e!==i&&e!==f||d.push(t)}),i<=l.right&&f>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];e!==o&&e!==h||d.push(t)});var p=[],u=[],c=["left","top","right","bottom"];return p.push(this.getClass("abutted")),c.forEach(function(t){p.push(e.getClass("abutted")+"-"+t)}),d.length&&u.push(this.getClass("abutted")),d.forEach(function(t){u.push(e.getClass("abutted")+"-"+t)}),k(function(){!1!==e.options.addTargetClasses&&m(e.target,u,p),m(e.element,u,p)}),!0}});var z=function(){function t(t,e){var o=[],i=!0,n=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(o.push(s.value),!e||o.length!==e);i=!0);}catch(t){n=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(n)throw r}}return o}return function(e,o){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return x.modules.push({position:function(t){var e=t.top,o=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:o}));var n=void 0,r=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var s=i,a=z(s,2);n=a[0],r=a[1],n=parseFloat(n,10),r=parseFloat(r,10)}else n=i.top,r=i.left;return e+=n,o+=r,{top:e,left:o}}}}),$});
}catch(e){console.log("Module 'tether-1.4.0': ",e);}
try{!function(e,s){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=s(e,require("jquery-utils-1.0.0"),require("swiper-4.0.3"),require("imagesLoaded")):"function"==typeof define&&define.amd?define("hot-news-swiper-1.0.0",["jquery-utils-1.0.0","swiper-4.0.3","imagesLoaded"],function(i,n){s(e,i,n)}):s(e,e.jQuery,e.Swiper)}(this,function(e,s,i,n){"use strict";new i(".hot-news-swiper .swiper-container",{navigation:{nextEl:".hot-news-swiper ~ .hot-news-controls .hot-news-next",prevEl:".hot-news-swiper ~ .hot-news-controls .hot-news-prev"},slidesPerView:2,slidesPerColumn:3,spaceBetween:30,watchSlidesVisibility:!0,preloadImages:!1,lazy:!0,autoHeight:!0,on:{init:function(e){s(this.el).addClass("ready")},resize:function(){this.update(!0)},lazyImageReady:function(e,i){i=s(i),"none"===i.css("background-image")?i.addClass("swiper-lazy-error"):i.imagesLoaded({background:!0}).fail(function(e){i.addClass("swiper-lazy-error")}).done(function(e){i.addClass("swiper-lazy-ready")})}},breakpoints:{576:{slidesPerView:1,slidesPerColumn:6,spaceBetween:0}}})});
}catch(e){console.log("Module 'hot-news-swiper-1.0.0': ",e);}
try{!function(e,t){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(e,require("jquery-utils-1.0.0"),require("jquery-utils-1.0.0")):"function"==typeof define&&define.amd?define("sticky-menu-1.0.0",["jquery-utils-1.0.0","jquery-utils-1.0.0"],function(r){t(e,r)}):t(e,e.jQuery)}(this,function(e,t,r){"use strict";t&&t(".sticky-menu").each(function(){var r=t(this);if(!t.isEmpty(r.data("scroll"))){var i=String(r.data("scroll")).replace(/\s/g,"").split(",").sort(function(e,t){return e-t}),n=t.debounce(function(){var e=i.filter(function(e){return t(document).scrollTop()>e}).slice(-1);e.length?r.attr("data-scroll",e[0]):r.removeAttr("data-scroll")},17);n(),t(e).on("scroll",n),t(e).on("resize",n)}})});
}catch(e){console.log("Module 'sticky-menu-1.0.0': ",e);}
try{!function(){"use strict";function e(){var e={skin:f.skin,pkg:f.pkg,version:l};/MSIE\x20(\d+\.\d+);/.test(navigator.userAgent)&&parseInt(RegExp.$1,10)<9&&(e.ie8=!0);var t=[];for(var n in e){var o=e[n];o&&t.push(n+"="+o)}return t.length?"?"+t.join("&"):""}function t(){s=!0;var e=document.createElement("script");e.setAttribute("type","text/javascript"),e.setAttribute("src",m+"/js/"+v),e.onerror=function(e){d(e)},document.getElementsByTagName("head")[0].appendChild(e)}function n(){return new Promise(function(e,t){function n(){document.addEventListener?(document.removeEventListener("DOMContentLoaded",n,!1),window.removeEventListener("load",n,!1)):(document.detachEvent("onreadystatechange",n),window.detachEvent("onload",n)),i||(i=!0,e())}function o(){if(!i){try{document.documentElement.doScroll("left")}catch(e){return void setTimeout(o,50)}n()}}var i=!1;if("loading"!==document.readyState)return n();if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",n),window.attachEvent("onload",n);var r=!1;try{r=null==window.frameElement}catch(a){}document.documentElement.doScroll&&r&&o()}})}function o(){var e=m+"/css/"+v,t=document.createElement("style");return t.type="text/css",new Promise(function(n,o){DG.ajax(e,{type:"get",dataType:"html",success:function(e){var o=document.getElementsByTagName("head")[0],i="http://maps.api.2gis.ru/2.0";m!==i&&(e=e.replace(new RegExp(i,"g"),m)),t.styleSheet?(o.appendChild(t),t.styleSheet.cssText=e):(t.appendChild(document.createTextNode(e)),o.appendChild(t)),n()},error:function(){o()}})})}function i(){var e=DG.config.protocol+DG.config.webApiServer+"/"+DG.config.webApiVersion+"/region/list";return new Promise(function(t){DG.ajax(e,{type:DG.ajax.corsSupport?"get":"jsonp",data:{format:DG.ajax.corsSupport?"json":"jsonp",key:DG.config.webApiKey,fields:DG.config.regionListFields},timeout:DG.config.loadProjectListTimeout,success:function(e){var n=e.result;n&&n.items&&n.items.length&&(DG.projectsList=n.items),t()},error:function(e){t()}})})}function r(){DG.extend(DG.config,{"webApiKey":"rubnkm7490","geoclickerCatalogApiKey":"ruxlih0718","protocol":"https:"}),DG.customConfig&&DG.extend(DG.config,DG.customConfig)}function a(){return Promise.all([o(),i(),n()])}function c(){DG.ready=!0}function d(){for(var e=0,t=u.length;e<t;e++)"function"==typeof u[e]&&u[e]()}var s=!1,u=[],l="v3.3.6",m="https://maps.api.2gis.ru/2.0",f={"pkg":"full","ssl":"true"},p="true"===f.lazy,v=e();window.DG=window.DG||{},window.DG.ready=!1,window.__dgApi__={callbacks:[[r,void 0],[a,void 0],[c,void 0]],version:l};var g=window.DG.then=function(e,n){return DG.then!==g?DG.then(e,n):(window.__dgApi__.callbacks.push([e,n]),p&&!s&&t(),n&&u.push(n),this)};p||t()}();
}catch(e){console.log("Module '2gis-2.0': ",e);}
try{"use strict";!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(e,require("jquery-3.1.1")):"function"==typeof define&&define.amd?define("2gis",["jquery-3.1.1"],function(n){return o(e,n)}):o(e,e.jQuery)}(this,function(e,o,n){e&&o&&e.DG&&o(function(){DG.then(function(){var e=DG.map(document.querySelectorAll(".map")[0],{center:[51.127168,71.427325],zoom:17,dragging:!1,touchZoom:!1,scrollWheelZoom:!1,doubleClickZoom:!1,boxZoom:!1,geoclicker:!1,zoomControl:!1,fullscreenControl:!1});DG.marker([51.12735,71.42708]).addTo(e)})})});
}catch(e){console.log("Module '2gis-2.0': ",e);}
try{(function(){
var _1=i$.addClass,_2=i$.hasClass,_3=i$.removeClass,_4=i$.fromPath,ln=function(o){
return o.length;
},_5="edit-mode",_6="edit-mode-disabled",_7="help-mode",_8="info-mode",_9="toolbar-opened",_a="toolbar-closed",_b=_4("wpModules.state.page");
if(_b){
var _c=_b.getStateManager();
_c&&_c.getState().then(function(_d){
var _e=_d.renderParams().get({nsuri:"http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",name:"pageMode"}),_f=_d.renderParams().get({nsuri:"http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",name:"showTools"}),_10=document.body;
_3(_10,_5);
_3(_10,_6);
_3(_10,_8);
_3(_10,_7);
if(_e&&ln(_e)>0&&_e[0].value&&ln(_e[0].value)>0){
var _11=_e[0].value;
for(var i=0;i<ln(_11);++i){
var _12=_11[i];
if("EDIT"==_12){
if(wpModules.state.page.supportsEditMode){
_1(_10,_5);
}else{
_1(_10,_6);
}
}else{
if("INFO"==_12){
_1(_10,_8);
}else{
if("HELP"==_12){
_1(_10,_7);
}
}
}
}
}
if(_f&&ln(_f)>0&&_f[0].value&&ln(_f[0].value)>0){
var _13=_f[0].value[0];
if("true"==_13){
_1(_10,_9);
}else{
_1(_10,_a);
}
}else{
_1(_10,_a);
}
});
}
})();


}catch(e){console.log("Module 'wp_state_page_modes': ",e);}
try{!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(t,require("jquery-3.1.1"),require("tether")):"function"==typeof define&&define.amd?define("bootstrap-4.0.0",["jquery-3.1.1","tether"],function(n,i){e(t,n,i)}):e(t,t.jQuery,t.Tether)}(this,function(t,e,n,i){if(void 0===e)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");+function(t){var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),function(){function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function(e){function n(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function o(t){return(t[0]||t).nodeType}function r(){return{bindType:l.end,delegateType:l.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):i}}}function s(){if(t.QUnit)return!1;var e=document.createElement("bootstrap");for(var n in h)if(e.style[n]!==i)return{end:h[n]};return!1}function a(t){var n=this,i=!1;return e(this).one(c.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||c.triggerTransitionEnd(n)},t),this}var l=!1,h={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},c={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");return e||(e=t.getAttribute("href")||"",e=/^#[a-z]/i.test(e)?e:null),e},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger(l.end)},supportsTransitionEnd:function(){return Boolean(l)},typeCheckConfig:function(t,e,i){for(var r in i)if(i.hasOwnProperty(r)){var s=i[r],a=e[r],l=a&&o(a)?"element":n(a);if(!new RegExp(s).test(l))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+l+'" but expected type "'+s+'".')}}};return function(){l=s(),e.fn.emulateTransitionEnd=a,c.supportsTransitionEnd()&&(e.event.special[c.TRANSITION_END]=r())}(),c}(e),h=(function(t){var e="alert",n=t.fn[e],i={DISMISS:'[data-dismiss="alert"]'},o={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},s={ALERT:"alert",FADE:"fade",SHOW:"show"},h=function(){function e(t){r(this,e),this._element=t}return e.prototype.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.prototype.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},e.prototype._getRootElement=function(e){var n=l.getSelectorFromElement(e),i=!1;return n&&(i=t(n)[0]),i||(i=t(e).closest("."+s.ALERT)[0]),i},e.prototype._triggerCloseEvent=function(e){var n=t.Event(o.CLOSE);return t(e).trigger(n),n},e.prototype._removeElement=function(e){var n=this;if(t(e).removeClass(s.SHOW),!l.supportsTransitionEnd()||!t(e).hasClass(s.FADE))return void this._destroyElement(e);t(e).one(l.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(150)},e.prototype._destroyElement=function(e){t(e).detach().trigger(o.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),o=i.data("bs.alert");o||(o=new e(this),i.data("bs.alert",o)),"close"===n&&o[n](this)})},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},a(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(o.CLICK_DATA_API,i.DISMISS,h._handleDismiss(new h)),t.fn[e]=h._jQueryInterface,t.fn[e].Constructor=h,t.fn[e].noConflict=function(){return t.fn[e]=n,h._jQueryInterface}}(e),function(t){var e="button",n=t.fn[e],i={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},o={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},s={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},l=function(){function e(t){r(this,e),this._element=t}return e.prototype.toggle=function(){var e=!0,n=t(this._element).closest(o.DATA_TOGGLE)[0];if(n){var r=t(this._element).find(o.INPUT)[0];if(r){if("radio"===r.type)if(r.checked&&t(this._element).hasClass(i.ACTIVE))e=!1;else{var s=t(n).find(o.ACTIVE)[0];s&&t(s).removeClass(i.ACTIVE)}e&&(r.checked=!t(this._element).hasClass(i.ACTIVE),t(r).trigger("change")),r.focus()}}this._element.setAttribute("aria-pressed",!t(this._element).hasClass(i.ACTIVE)),e&&t(this._element).toggleClass(i.ACTIVE)},e.prototype.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.button");i||(i=new e(this),t(this).data("bs.button",i)),"toggle"===n&&i[n]()})},a(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(s.CLICK_DATA_API,o.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var n=e.target;t(n).hasClass(i.BUTTON)||(n=t(n).closest(o.BUTTON)),l._jQueryInterface.call(t(n),"toggle")}).on(s.FOCUS_BLUR_DATA_API,o.DATA_TOGGLE_CARROT,function(e){var n=t(e.target).closest(o.BUTTON)[0];t(n).toggleClass(i.FOCUS,/^focus(in)?$/.test(e.type))}),t.fn[e]=l._jQueryInterface,t.fn[e].Constructor=l,t.fn[e].noConflict=function(){return t.fn[e]=n,l._jQueryInterface}}(e),function(e){var n="carousel",o="bs.carousel",h="."+o,c=e.fn[n],u={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},d={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},f={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},_={SLIDE:"slide"+h,SLID:"slid"+h,KEYDOWN:"keydown"+h,MOUSEENTER:"mouseenter"+h,MOUSELEAVE:"mouseleave"+h,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},p={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},g={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},m=function(){function t(n,i){r(this,t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(i),this._element=e(n)[0],this._indicatorsElement=e(this._element).find(g.INDICATORS)[0],this._addEventListeners()}return t.prototype.next=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(f.NEXT)},t.prototype.nextWhenVisible=function(){document.hidden||this.next()},t.prototype.prev=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(f.PREVIOUS)},t.prototype.pause=function(t){t||(this._isPaused=!0),e(this._element).find(g.NEXT_PREV)[0]&&l.supportsTransitionEnd()&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.prototype.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.prototype.to=function(t){var n=this;this._activeElement=e(this._element).find(g.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(this._isSliding)return void e(this._element).one(_.SLID,function(){return n.to(t)});if(i===t)return this.pause(),void this.cycle();var o=t>i?f.NEXT:f.PREVIOUS;this._slide(o,this._items[t])}},t.prototype.dispose=function(){e(this._element).off(h),e.removeData(this._element,o),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t.prototype._getConfig=function(t){return t=e.extend({},u,t),l.typeCheckConfig(n,t,d),t},t.prototype._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on(_.KEYDOWN,function(e){return t._keydown(e)}),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||e(this._element).on(_.MOUSEENTER,function(e){return t.pause(e)}).on(_.MOUSELEAVE,function(e){return t.cycle(e)})},t.prototype._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next();break;default:return}},t.prototype._getItemIndex=function(t){return this._items=e.makeArray(e(t).parent().find(g.ITEM)),this._items.indexOf(t)},t.prototype._getItemByDirection=function(t,e){var n=t===f.NEXT,i=t===f.PREVIOUS,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=t===f.PREVIOUS?-1:1,a=(o+s)%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},t.prototype._triggerSlideEvent=function(t,n){var i=e.Event(_.SLIDE,{relatedTarget:t,direction:n});return e(this._element).trigger(i),i},t.prototype._setActiveIndicatorElement=function(t){if(this._indicatorsElement){e(this._indicatorsElement).find(g.ACTIVE).removeClass(p.ACTIVE);var n=this._indicatorsElement.children[this._getItemIndex(t)];n&&e(n).addClass(p.ACTIVE)}},t.prototype._slide=function(t,n){var i=this,o=e(this._element).find(g.ACTIVE_ITEM)[0],r=n||o&&this._getItemByDirection(t,o),s=Boolean(this._interval),a=void 0,h=void 0,c=void 0;if(t===f.NEXT?(a=p.LEFT,h=p.NEXT,c=f.LEFT):(a=p.RIGHT,h=p.PREV,c=f.RIGHT),r&&e(r).hasClass(p.ACTIVE))return void(this._isSliding=!1);if(!this._triggerSlideEvent(r,c).isDefaultPrevented()&&o&&r){this._isSliding=!0,s&&this.pause(),this._setActiveIndicatorElement(r);var u=e.Event(_.SLID,{relatedTarget:r,direction:c});l.supportsTransitionEnd()&&e(this._element).hasClass(p.SLIDE)?(e(r).addClass(h),l.reflow(r),e(o).addClass(a),e(r).addClass(a),e(o).one(l.TRANSITION_END,function(){e(r).removeClass(a+" "+h).addClass(p.ACTIVE),e(o).removeClass(p.ACTIVE+" "+h+" "+a),i._isSliding=!1,setTimeout(function(){return e(i._element).trigger(u)},0)}).emulateTransitionEnd(600)):(e(o).removeClass(p.ACTIVE),e(r).addClass(p.ACTIVE),this._isSliding=!1,e(this._element).trigger(u)),s&&this.cycle()}},t._jQueryInterface=function(n){return this.each(function(){var r=e(this).data(o),a=e.extend({},u,e(this).data());"object"===(void 0===n?"undefined":s(n))&&e.extend(a,n);var l="string"==typeof n?n:a.slide;if(r||(r=new t(this,a),e(this).data(o,r)),"number"==typeof n)r.to(n);else if("string"==typeof l){if(r[l]===i)throw new Error('No method named "'+l+'"');r[l]()}else a.interval&&(r.pause(),r.cycle())})},t._dataApiClickHandler=function(n){var i=l.getSelectorFromElement(this);if(i){var r=e(i)[0];if(r&&e(r).hasClass(p.CAROUSEL)){var s=e.extend({},e(r).data(),e(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),t._jQueryInterface.call(e(r),s),a&&e(r).data(o).to(a),n.preventDefault()}}},a(t,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return u}}]),t}();e(document).on(_.CLICK_DATA_API,g.DATA_SLIDE,m._dataApiClickHandler),e(t).on(_.LOAD_DATA_API,function(){e(g.DATA_RIDE).each(function(){var t=e(this);m._jQueryInterface.call(t,t.data())})}),e.fn[n]=m._jQueryInterface,e.fn[n].Constructor=m,e.fn[n].noConflict=function(){return e.fn[n]=c,m._jQueryInterface}}(e),function(t){var e="collapse",n="bs.collapse",o=t.fn[e],h={toggle:!0,parent:""},c={toggle:"boolean",parent:"string"},u={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},d={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed",OPENED:"is-opened",OPENING:"is-opening",CLOSED:"is-closed",CLOSING:"is-closing"},f={WIDTH:"width",HEIGHT:"height"},_={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},p=function(){function o(e,n,i){r(this,o),this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray)}return o.prototype.toggle=function(e){t(this._element).hasClass(d.SHOW)?t.isEmptyObject(e)?this.show(e):this.hide(e):t.isEmptyObject(e)?this.hide(e):this.show(e)},o.prototype.show=function(e){var i=this,r=t(this._triggerArray).data("wrapper");if(r=t.isEmptyObject(r)?this._element:t(this._element).closest(r),!this._isTransitioning){if(t(this._element).hasClass(d.SHOW))return void t(r).removeClass(d.CLOSING).removeClass(d.CLOSED).removeClass(d.OPENING).addClass(d.OPENED);var s=void 0,a=void 0;if(e&&this._parent&&(s=t.makeArray(t(this._parent).find(_.ACTIVES)),s.length||(s=null)),!(s&&(a=t(s).data(n))&&a._isTransitioning)){var h=t.Event(u.SHOW);if(t(this._element).trigger(h),!h.isDefaultPrevented()){s&&(o._jQueryInterface.call(t(s),"hide"),a||t(s).data(n,null));var c=this._getDimension();t(this._element).removeClass(d.COLLAPSE).addClass(d.COLLAPSING),t(r).removeClass(d.CLOSING).removeClass(d.CLOSED).addClass(d.OPENING),this._element.style[c]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&t(this._triggerArray).removeClass(d.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var f=function(){t(i._element).removeClass(d.COLLAPSING).addClass(d.COLLAPSE).addClass(d.SHOW),t(r).removeClass(d.CLOSING).removeClass(d.CLOSED).removeClass(d.OPENING).addClass(d.OPENED),i._element.style[c]="",i.setTransitioning(!1),t(i._element).trigger(u.SHOWN)};if(!l.supportsTransitionEnd())return void f();var p=c[0].toUpperCase()+c.slice(1),g="scroll"+p;t(this._element).one(l.TRANSITION_END,f).emulateTransitionEnd(600),this._element.style[c]=this._element[g]+"px"}}}},o.prototype.hide=function(e){var n=this,i=t(this._triggerArray).data("wrapper");if(i=t.isEmptyObject(i)?this._element:t(this._element).closest(i),!this._isTransitioning){if(!t(this._element).hasClass(d.SHOW))return void t(i).removeClass(d.OPENING).removeClass(d.OPENED).removeClass(d.CLOSING).addClass(d.CLOSED);var o=t.Event(u.HIDE);if(t(this._element).trigger(o),!o.isDefaultPrevented()){var r=this._getDimension(),s=r===f.WIDTH?"offsetWidth":"offsetHeight";this._element.style[r]=this._element[s]+"px",l.reflow(this._element),t(this._element).addClass(d.COLLAPSING).removeClass(d.COLLAPSE).removeClass(d.SHOW),t(i).removeClass(d.OPENING).removeClass(d.OPENED).addClass(d.CLOSING),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&t(this._triggerArray).addClass(d.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var a=function(){n.setTransitioning(!1),t(n._element).removeClass(d.COLLAPSING).addClass(d.COLLAPSE).trigger(u.HIDDEN),t(i).removeClass(d.OPENING).removeClass(d.OPENED).removeClass(d.CLOSING).addClass(d.CLOSED)};if(this._element.style[r]="",!l.supportsTransitionEnd())return void a();t(this._element).one(l.TRANSITION_END,a).emulateTransitionEnd(600)}}},o.prototype.setTransitioning=function(t){this._isTransitioning=t},o.prototype.dispose=function(){t.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},o.prototype._getConfig=function(n){return n=t.extend({},h,n),n.toggle=Boolean(n.toggle),l.typeCheckConfig(e,n,c),n},o.prototype._getDimension=function(){return t(this._element).hasClass(f.WIDTH)?f.WIDTH:f.HEIGHT},o.prototype._getParent=function(){var e=this,n=this._element.closest(this._config.parent),i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(i).each(function(t,n){e._addAriaAndCollapsedClass(o._getTargetFromElement(n),[n])}),n},o.prototype._addAriaAndCollapsedClass=function(e,n){if(e){var i=t(e).hasClass(d.SHOW);e.setAttribute("aria-expanded",i),n.length&&t(n).toggleClass(d.COLLAPSED,!i).attr("aria-expanded",i)}},o._getTargetFromElement=function(e){var n=l.getSelectorFromElement(e);return n?t(n)[0]:null},o._jQueryInterface=function(e,r){return this.each(function(){var a=t(this).addClass(d.COLLAPSE),l=a.data(n),c=t.extend({},h,a.data(),"object"===(void 0===e?"undefined":s(e))&&e);if(!l&&c.toggle&&/show|hide/.test(e)&&(c.toggle=!1),l||(l=new o(this,c,r),a.data(n,l)),"string"==typeof e){if(l[e]===i)throw new Error('No method named "'+e+'"');l[e](r)}})},a(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return h}}]),o}();t(document).on(u.CLICK_DATA_API,_.DATA_TOGGLE,function(e){e.preventDefault();var i=t(p._getTargetFromElement(this)),o=i.data(n),r=o?"toggle":t(this).data();p._jQueryInterface.call(i,r,[e])}),t(_.DATA_TOGGLE).each(function(e,i){var o=t(p._getTargetFromElement(i)),r=o.data(n),s=r?"toggle":t(i).data();p._jQueryInterface.call(o,s)}),t.fn[e]=p._jQueryInterface,t.fn[e].Constructor=p,t.fn[e].noConflict=function(){return t.fn[e]=o,p._jQueryInterface}}(e),function(t){var e="dropdown",n=".bs.dropdown",o=t.fn[e],s={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,CLICK:"click"+n,CLICK_DATA_API:"click.bs.dropdown.data-api",FOCUSIN_DATA_API:"focusin.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api"},h={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",SHOW:"show"},c={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},u=function(){function o(t){r(this,o),this._element=t,this._addEventListeners()}return o.prototype.toggle=function(){if(this.disabled||t(this).hasClass(h.DISABLED))return!1;var e=o._getParentFromElement(this),n=t(e).hasClass(h.SHOW);if(o._clearMenus(),n)return!1;if("ontouchstart"in document.documentElement&&!t(e).closest(c.NAVBAR_NAV).length){var i=document.createElement("div");i.className=h.BACKDROP,t(i).insertBefore(this),t(i).on("click",o._clearMenus)}var r={relatedTarget:this},a=t.Event(s.SHOW,r);return t(e).trigger(a),!a.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded",!0),t(e).toggleClass(h.SHOW),t(e).trigger(t.Event(s.SHOWN,r)),!1)},o.prototype.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(n),this._element=null},o.prototype._addEventListeners=function(){t(this._element).on(s.CLICK,this.toggle)},o._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.dropdown");if(n||(n=new o(this),t(this).data("bs.dropdown",n)),"string"==typeof e){if(n[e]===i)throw new Error('No method named "'+e+'"');n[e].call(this)}})},o._clearMenus=function(e){if(!e||3!==e.which){var n=t(c.BACKDROP)[0];n&&n.parentNode.removeChild(n);for(var i=t.makeArray(t(c.DATA_TOGGLE)),r=0;r<i.length;r++){var a=o._getParentFromElement(i[r]),l={relatedTarget:i[r]};if(t(a).hasClass(h.SHOW)&&(!e||"click"!==e.type&&"focusin"!==e.type||!t.contains(a,e.target))){var u=t.Event(s.HIDE,l);t(a).trigger(u),u.isDefaultPrevented()||(i[r].setAttribute("aria-expanded","false"),t(a).removeClass(h.SHOW).trigger(t.Event(s.HIDDEN,l)))}}}},o._getParentFromElement=function(n){var i=l.getSelectorFromElement(n);return(i?t(i)[0]:t(n).closest("."+e).get(0))||n.parentNode},o._dataApiKeydownHandler=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!t(this).hasClass(h.DISABLED))){var n=o._getParentFromElement(this),i=t(n).hasClass(h.SHOW);if(!i&&27!==e.which||i&&27===e.which){if(27===e.which){var r=t(n).find(c.DATA_TOGGLE)[0];t(r).trigger("focus")}return void t(this).trigger("click")}var s=t(n).find(c.VISIBLE_ITEMS).get();if(s.length){var a=s.indexOf(e.target);38===e.which&&a>0&&a--,40===e.which&&a<s.length-1&&a++,a<0&&(a=0),s[a].focus()}}},a(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),o}();t(document).on(s.KEYDOWN_DATA_API,c.DATA_TOGGLE,u._dataApiKeydownHandler).on(s.KEYDOWN_DATA_API,c.ROLE_MENU,u._dataApiKeydownHandler).on(s.KEYDOWN_DATA_API,c.ROLE_LISTBOX,u._dataApiKeydownHandler).on(s.CLICK_DATA_API,u._clearMenus).on(s.CLICK_DATA_API,c.DATA_TOGGLE,u.prototype.toggle).on(s.CLICK_DATA_API,c.FORM_CHILD,function(t){t.stopPropagation()}),t.fn[e]=u._jQueryInterface,t.fn[e].Constructor=u,t.fn[e].noConflict=function(){return t.fn[e]=o,u._jQueryInterface}}(e),function(e){var n="modal",o=".bs.modal",h=e.fn[n],c={backdrop:!0,keyboard:!0,focus:!0,show:!0},u={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},d={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},f={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},_={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"},p=function(){function h(t,n){r(this,h),this._config=this._getConfig(n),this._element=t,this._dialog=e(t).find(_.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return h.prototype.toggle=function(t){return this._isShown?this.hide():this.show(t)},h.prototype.show=function(t){var n=this;if(this._isTransitioning)throw new Error("Modal is transitioning");l.supportsTransitionEnd()&&e(this._element).hasClass(f.FADE)&&(this._isTransitioning=!0);var i=e.Event(d.SHOW,{relatedTarget:t});e(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),e(document.body).addClass(f.OPEN),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(d.CLICK_DISMISS,_.DATA_DISMISS,function(t){return n.hide(t)}),e(this._dialog).on(d.MOUSEDOWN_DISMISS,function(){e(n._element).one(d.MOUSEUP_DISMISS,function(t){e(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)}))},h.prototype.hide=function(t){var n=this;if(t&&t.preventDefault(),this._isTransitioning)throw new Error("Modal is transitioning");var i=l.supportsTransitionEnd()&&e(this._element).hasClass(f.FADE);i&&(this._isTransitioning=!0);var o=e.Event(d.HIDE);e(this._element).trigger(o),this._isShown&&!o.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),e(document).off(d.FOCUSIN),e(this._element).removeClass(f.SHOW),e(this._element).off(d.CLICK_DISMISS),e(this._dialog).off(d.MOUSEDOWN_DISMISS),i?e(this._element).one(l.TRANSITION_END,function(t){return n._hideModal(t)}).emulateTransitionEnd(300):this._hideModal())},h.prototype.dispose=function(){e.removeData(this._element,"bs.modal"),e(t,document,this._element,this._backdrop).off(o),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null},h.prototype._getConfig=function(t){return t=e.extend({},c,t),l.typeCheckConfig(n,t,u),t},h.prototype._showElement=function(t){var n=this,i=l.supportsTransitionEnd()&&e(this._element).hasClass(f.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&l.reflow(this._element),e(this._element).addClass(f.SHOW),this._config.focus&&this._enforceFocus();var o=e.Event(d.SHOWN,{relatedTarget:t}),r=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,e(n._element).trigger(o)};i?e(this._dialog).one(l.TRANSITION_END,r).emulateTransitionEnd(300):r()},h.prototype._enforceFocus=function(){var t=this;e(document).off(d.FOCUSIN).on(d.FOCUSIN,function(n){document===n.target||t._element===n.target||e(t._element).has(n.target).length||t._element.focus()})},h.prototype._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(d.KEYDOWN_DISMISS,function(e){27===e.which&&t.hide()}):this._isShown||e(this._element).off(d.KEYDOWN_DISMISS)},h.prototype._setResizeEvent=function(){var n=this;this._isShown?e(t).on(d.RESIZE,function(t){return n._handleUpdate(t)}):e(t).off(d.RESIZE)},h.prototype._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._isTransitioning=!1,this._showBackdrop(function(){e(document.body).removeClass(f.OPEN),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(d.HIDDEN)})},h.prototype._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},h.prototype._showBackdrop=function(t){var n=this,i=e(this._element).hasClass(f.FADE)?f.FADE:"";if(this._isShown&&this._config.backdrop){var o=l.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=f.BACKDROP,i&&e(this._backdrop).addClass(i),e(this._backdrop).appendTo(document.body),e(this._element).on(d.CLICK_DISMISS,function(t){if(n._ignoreBackdropClick)return void(n._ignoreBackdropClick=!1);t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),o&&l.reflow(this._backdrop),e(this._backdrop).addClass(f.SHOW),!t)return;if(!o)return void t();e(this._backdrop).one(l.TRANSITION_END,t).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(f.SHOW);var r=function(){n._removeBackdrop(),t&&t()};l.supportsTransitionEnd()&&e(this._element).hasClass(f.FADE)?e(this._backdrop).one(l.TRANSITION_END,r).emulateTransitionEnd(150):r()}else t&&t()},h.prototype._handleUpdate=function(){this._adjustDialog()},h.prototype._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},h.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},h.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<t.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},h.prototype._setScrollbar=function(){var t=parseInt(e(_.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=t+this._scrollbarWidth+"px")},h.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},h.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=f.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},h._jQueryInterface=function(t,n){return this.each(function(){var o=e(this).data("bs.modal"),r=e.extend({},h.Default,e(this).data(),"object"===(void 0===t?"undefined":s(t))&&t);if(o||(o=new h(this,r),e(this).data("bs.modal",o)),"string"==typeof t){if(o[t]===i)throw new Error('No method named "'+t+'"');o[t](n)}else r.show&&o.show(n)})},a(h,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return c}}]),h}();e(document).on(d.CLICK_DATA_API,_.DATA_TOGGLE,function(t){var n=this,i=void 0,o=l.getSelectorFromElement(this);o&&(i=e(o)[0]);var r=e(i).data("bs.modal")?"toggle":e.extend({},e(i).data(),e(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var s=e(i).one(d.SHOW,function(t){t.isDefaultPrevented()||s.one(d.HIDDEN,function(){e(n).is(":visible")&&n.focus()})});p._jQueryInterface.call(e(i),r,this)}),e.fn[n]=p._jQueryInterface,e.fn[n].Constructor=p,e.fn[n].noConflict=function(){return e.fn[n]=h,p._jQueryInterface}}(e),function(e){var n="scrollspy",o=e.fn[n],h={offset:10,method:"auto",target:""},c={offset:"number",method:"string",target:"(string|element)"},u={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},d={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",NAV_LINK:"nav-link",NAV:"nav",ACTIVE:"active"},f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},_={OFFSET:"offset",POSITION:"position"},p=function(){function o(n,i){var s=this;r(this,o),this._element=n,this._scrollElement="BODY"===n.tagName?t:n,this._config=this._getConfig(i),this._selector=this._config.target+" "+f.NAV_LINKS+","+this._config.target+" "+f.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(u.SCROLL,function(t){return s._process(t)}),this.refresh(),this._process()}return o.prototype.refresh=function(){var t=this,n=this._scrollElement!==this._scrollElement.window?_.POSITION:_.OFFSET,i="auto"===this._config.method?n:this._config.method,o=i===_.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),e.makeArray(e(this._selector)).map(function(t){var n=void 0,r=l.getSelectorFromElement(t);return r&&(n=e(r)[0]),n&&(n.offsetWidth||n.offsetHeight)?[e(n)[i]().top+o,r]:null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},o.prototype.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},o.prototype._getConfig=function(t){if(t=e.extend({},h,t),"string"!=typeof t.target){var i=e(t.target).attr("id");i||(i=l.getUID(n),e(t.target).attr("id",i)),t.target="#"+i}return l.typeCheckConfig(n,t,c),t},o.prototype._getScrollTop=function(){return this._scrollElement===t?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},o.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},o.prototype._getOffsetHeight=function(){return this._scrollElement===t?t.innerHeight:this._scrollElement.offsetHeight},o.prototype._process=function(){
var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var o=this._targets[this._targets.length-1];return void(this._activeTarget!==o&&this._activate(o))}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&(this._offsets[r+1]===i||t<this._offsets[r+1])&&this._activate(this._targets[r])}},o.prototype._activate=function(t){this._activeTarget=t,this._clear();var n=this._selector.split(",");n=n.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'});var i=e(n.join(","));i.hasClass(d.DROPDOWN_ITEM)?(i.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(d.ACTIVE),i.addClass(d.ACTIVE)):i.parents(f.LI).find("> "+f.NAV_LINKS).addClass(d.ACTIVE),e(this._scrollElement).trigger(u.ACTIVATE,{relatedTarget:t})},o.prototype._clear=function(){e(this._selector).filter(f.ACTIVE).removeClass(d.ACTIVE)},o._jQueryInterface=function(t){return this.each(function(){var n=e(this).data("bs.scrollspy"),r="object"===(void 0===t?"undefined":s(t))&&t;if(n||(n=new o(this,r),e(this).data("bs.scrollspy",n)),"string"==typeof t){if(n[t]===i)throw new Error('No method named "'+t+'"');n[t]()}})},a(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return h}}]),o}();e(t).on(u.LOAD_DATA_API,function(){for(var t=e.makeArray(e(f.DATA_SPY)),n=t.length;n--;){var i=e(t[n]);p._jQueryInterface.call(i,i.data())}}),e.fn[n]=p._jQueryInterface,e.fn[n].Constructor=p,e.fn[n].noConflict=function(){return e.fn[n]=o,p._jQueryInterface}}(e),function(t){var e=t.fn.tab,n={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},o={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},s={A:"a",LI:"li",DROPDOWN:".dropdown",LIST:"ul:not(.dropdown-menu), ol:not(.dropdown-menu), nav:not(.dropdown-menu)",FADE_CHILD:"> .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},h=function(){function e(t){r(this,e),this._element=t}return e.prototype.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(o.ACTIVE)||t(this._element).hasClass(o.DISABLED))){var i=void 0,r=void 0,a=t(this._element).closest(s.LIST)[0],h=l.getSelectorFromElement(this._element);a&&(r=t.makeArray(t(a).find(s.ACTIVE)),r=r[r.length-1]);var c=t.Event(n.HIDE,{relatedTarget:this._element}),u=t.Event(n.SHOW,{relatedTarget:r});if(r&&t(r).trigger(c),t(this._element).trigger(u),!u.isDefaultPrevented()&&!c.isDefaultPrevented()){h&&(i=t(h)[0]),this._activate(this._element,a);var d=function(){var i=t.Event(n.HIDDEN,{relatedTarget:e._element}),o=t.Event(n.SHOWN,{relatedTarget:r});t(r).trigger(i),t(e._element).trigger(o)};i?this._activate(i,i.parentNode,d):d()}}},e.prototype.dispose=function(){t.removeClass(this._element,"bs.tab"),this._element=null},e.prototype._activate=function(e,n,i){var r=this,a=t(n).find(s.ACTIVE_CHILD)[0],h=i&&l.supportsTransitionEnd()&&(a&&t(a).hasClass(o.FADE)||Boolean(t(n).find(s.FADE_CHILD)[0])),c=function(){return r._transitionComplete(e,a,h,i)};a&&h?t(a).one(l.TRANSITION_END,c).emulateTransitionEnd(150):c(),a&&t(a).removeClass(o.SHOW)},e.prototype._transitionComplete=function(e,n,i,r){if(n){t(n).removeClass(o.ACTIVE);var a=t(n.parentNode).find(s.DROPDOWN_ACTIVE_CHILD)[0];a&&t(a).removeClass(o.ACTIVE),n.setAttribute("aria-expanded",!1)}if(t(e).addClass(o.ACTIVE),e.setAttribute("aria-expanded",!0),i?(l.reflow(e),t(e).addClass(o.SHOW)):t(e).removeClass(o.FADE),e.parentNode&&t(e.parentNode).hasClass(o.DROPDOWN_MENU)){var h=t(e).closest(s.DROPDOWN)[0];h&&t(h).find(s.DROPDOWN_TOGGLE).addClass(o.ACTIVE),e.setAttribute("aria-expanded",!0)}r&&r()},e._jQueryInterface=function(n){return this.each(function(){var o=t(this),r=o.data("bs.tab");if(r||(r=new e(this),o.data("bs.tab",r)),"string"==typeof n){if(r[n]===i)throw new Error('No method named "'+n+'"');r[n]()}})},a(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(n.CLICK_DATA_API,s.DATA_TOGGLE,function(e){e.preventDefault(),h._jQueryInterface.call(t(this),"show")}),t.fn.tab=h._jQueryInterface,t.fn.tab.Constructor=h,t.fn.tab.noConflict=function(){return t.fn.tab=e,h._jQueryInterface}}(e),function(t){if("undefined"==typeof Tether)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var e="tooltip",n=".bs.tooltip",o=t.fn[e],h={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[],container:!1},c={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array",container:"(string|element|boolean)"},u={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},d={SHOW:"show",OUT:"out"},f={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},_={FADE:"fade",SHOW:"show"},p={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},g={element:!1,enabled:!1},m={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},E=function(){function o(t,e){r(this,o),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._isTransitioning=!1,this._tether=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}return o.prototype.enable=function(){this._isEnabled=!0},o.prototype.disable=function(){this._isEnabled=!1},o.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},o.prototype.toggle=function(e){if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(_.SHOW))return void this._leave(null,this);this._enter(null,this)}},o.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},o.prototype.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){if(this._isTransitioning)throw new Error("Tooltip is transitioning");t(this.element).trigger(n);var i=t.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!i)return;var r=this.getTipElement(),s=l.getUID(this.constructor.NAME);r.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(r).addClass(_.FADE);var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,h=this._getAttachment(a),c=!1===this.config.container?document.body:t(this.config.container);t(r).data(this.constructor.DATA_KEY,this).appendTo(c),t(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new Tether({attachment:h,element:r,target:this.element,classes:g,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),l.reflow(r),this._tether.position(),t(r).addClass(_.SHOW);var u=function(){var n=e._hoverState;e._hoverState=null,e._isTransitioning=!1,t(e.element).trigger(e.constructor.Event.SHOWN),n===d.OUT&&e._leave(null,e)};if(l.supportsTransitionEnd()&&t(this.tip).hasClass(_.FADE))return this._isTransitioning=!0,void t(this.tip).one(l.TRANSITION_END,u).emulateTransitionEnd(o._TRANSITION_DURATION);u()}},o.prototype.hide=function(e){var n=this,i=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE);if(this._isTransitioning)throw new Error("Tooltip is transitioning");var r=function(){n._hoverState!==d.SHOW&&i.parentNode&&i.parentNode.removeChild(i),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),n._isTransitioning=!1,n.cleanupTether(),e&&e()};t(this.element).trigger(o),o.isDefaultPrevented()||(t(i).removeClass(_.SHOW),this._activeTrigger[m.CLICK]=!1,this._activeTrigger[m.FOCUS]=!1,this._activeTrigger[m.HOVER]=!1,l.supportsTransitionEnd()&&t(this.tip).hasClass(_.FADE)?(this._isTransitioning=!0,t(i).one(l.TRANSITION_END,r).emulateTransitionEnd(150)):r(),this._hoverState="")},o.prototype.isWithContent=function(){return Boolean(this.getTitle())},o.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},o.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(p.TOOLTIP_INNER),this.getTitle()),e.removeClass(_.FADE+" "+_.SHOW),this.cleanupTether()},o.prototype.setElementContent=function(e,n){var i=this.config.html;"object"===(void 0===n?"undefined":s(n))&&(n.nodeType||n.jquery)?i?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[i?"html":"text"](n)},o.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},o.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},o.prototype._getAttachment=function(t){return u[t.toUpperCase()]},o.prototype._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==m.MANUAL){var i=n===m.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===m.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},o.prototype._fixTitle=function(){var t=s(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},o.prototype._enter=function(e,n){var i=this.constructor.DATA_KEY;return n=n||t(e.currentTarget).data(i),n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?m.FOCUS:m.HOVER]=!0),t(n.getTipElement()).hasClass(_.SHOW)||n._hoverState===d.SHOW?void(n._hoverState=d.SHOW):(clearTimeout(n._timeout),n._hoverState=d.SHOW,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===d.SHOW&&n.show()},n.config.delay.show)):void n.show())},o.prototype._leave=function(e,n){var i=this.constructor.DATA_KEY;if(n=n||t(e.currentTarget).data(i),n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?m.FOCUS:m.HOVER]=!1),!n._isWithActiveTrigger()){if(clearTimeout(n._timeout),n._hoverState=d.OUT,!n.config.delay||!n.config.delay.hide)return void n.hide();n._timeout=setTimeout(function(){n._hoverState===d.OUT&&n.hide()},n.config.delay.hide)}},o.prototype._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},o.prototype._getConfig=function(n){return n=t.extend({},this.constructor.Default,t(this.element).data(),n),n.delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),l.typeCheckConfig(e,n,this.constructor.DefaultType),n},o.prototype._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},o._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.tooltip"),r="object"===(void 0===e?"undefined":s(e))&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new o(this,r),t(this).data("bs.tooltip",n)),"string"==typeof e)){if(n[e]===i)throw new Error('No method named "'+e+'"');n[e]()}})},a(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return h}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return f}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return c}}]),o}();return t.fn[e]=E._jQueryInterface,t.fn[e].Constructor=E,t.fn[e].noConflict=function(){return t.fn[e]=o,E._jQueryInterface},E}(e));!function(t){var e="popover",l=".bs.popover",c=t.fn[e],u=t.extend({},h.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),d=t.extend({},h.DefaultType,{content:"(string|element|function)"}),f={FADE:"fade",SHOW:"show"},_={TITLE:".popover-title",CONTENT:".popover-content"},p={HIDE:"hide"+l,HIDDEN:"hidden"+l,SHOW:"show"+l,SHOWN:"shown"+l,INSERTED:"inserted"+l,CLICK:"click"+l,FOCUSIN:"focusin"+l,FOCUSOUT:"focusout"+l,MOUSEENTER:"mouseenter"+l,MOUSELEAVE:"mouseleave"+l},g=function(h){function c(){return r(this,c),n(this,h.apply(this,arguments))}return o(c,h),c.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},c.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},c.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(_.TITLE),this.getTitle()),this.setElementContent(e.find(_.CONTENT),this._getContent()),e.removeClass(f.FADE+" "+f.SHOW),this.cleanupTether()},c.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},c._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.popover"),o="object"===(void 0===e?"undefined":s(e))?e:null;if((n||!/destroy|hide/.test(e))&&(n||(n=new c(this,o),t(this).data("bs.popover",n)),"string"==typeof e)){if(n[e]===i)throw new Error('No method named "'+e+'"');n[e]()}})},a(c,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return l}},{key:"DefaultType",get:function(){return d}}]),c}(h);t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=c,g._jQueryInterface}}(e)}()});
}catch(e){console.log("Module 'bootstrap-4.0.0-alpha.6': ",e);}
try{"use strict";!function(o,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(o,require("jquery-utils-1.0.0"),require("bootstrap-4.0.0")):"function"==typeof define&&define.amd?define("bootstrap4",["jquery-utils-1.0.0","bootstrap-4.0.0"],function(e){return t(o,e)}):t(o,o.jQuery)}(this,function(o,t,e){o&&t&&t(function(){t.fn.tooltip&&t('[data-toggle="tooltip"], [rel="tooltip"]').tooltip(),t('[data-toggle="popover"]').each(function(){var o=t(this).data("color");t.fn.popover&&t(this).popover({template:'<div class="popover '+o+' " role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>',animation:!1})})})});
}catch(e){console.log("Module 'bootstrap-4.0.0-alpha.6': ",e);}
try{(function(_1){
var _1=_1,_2=_1.document,_3=i$.hasClass,_4=i$.toQuery,_5=i$.fromPath,_6=i$.forEach,_7="edit",_8="info",_9="toolbar:open",_a="toolbar:close",_b="ibm.portal.toolbar.",_c=function(_d){
var _d=_e(_d),_f=_10(_d),uri=_f.uri,_11=_f.params||{},_12=_13(_d);
if(uri){
if(_14()&&!_15(_12)){
if(_d.editMode===true){
_16(uri,_11);
}else{
_17(uri,_11);
}
}else{
_18(uri,_11,_12);
}
}else{
if(_14()){
if(_15(_12)){
_19(_12);
}
}else{
_18(uri,_11,_12);
}
}
},_1a=function(_1b){
_1b.primaryTab=_1b.tab;
_1b.tab=null;
return _c(_1b);
},_1c=function(_1d){
_1d.secondaryTab=_1d.tab;
_1d.tab=null;
return _c(_1d);
},_1e=function(_1f){
var _20=_21();
if(_20){
_20.close(_1f);
}else{
_1f();
}
},_22=function(_23){
_1e(function(){
_24(_23);
});
},_24=function(_25){
var _26=_10(_25),uri=_26.uri,_27=_26.params||{};
if(_14()){
if(uri){
if(!_27.uri){
_27.uri=[];
}
_27.uri.push(_a);
}else{
uri=_a;
}
}
if(uri){
_28(_29(),uri,_27,function(url){
_2a().location.href=url;
});
}
},_14=function(){
var r=_21();
return r;
},_2b=function(_2c,_2d){
var uri=_2e(_2c,_2d);
if(_2c==_7&&_2d&&_14()){
_16(uri);
}else{
_17(uri);
}
},_2e=function(_2f,_30){
var uri=["pagemode:"];
uri.push(_2f);
uri.push(":");
_30?uri.push("on"):uri.push("off");
var r=uri.join("");
return r;
},_31=function(_32){
_2b(_7,_32);
},_33=function(){
var r=_34(_7);
return r;
},_35=function(_36){
_2b(_8,_36);
},_37=function(){
var r=_34(_8);
return r;
},_34=function(_38){
var win=_29(),_39=win.document.body,r=_3(_39,_38+"-mode");
return r;
},_3a=function(_3b,_3c){
var r=false;
if(_3c!==undefined){
r=_3c!==_34(_3b);
}
return r;
},_17=function(uri,_3d){
var win=_29();
_28(win,uri,_3d,function(url){
win.location.href=url;
});
},_16=function(uri,_3e){
if(_14()){
var _3f=_21();
_3f.load(_40(uri,_3e),"view",{"onload":function(){
_3f.restore();
}});
}else{
var win=_29();
_28(win,uri,_3e,function(url){
win.location.href=url;
});
}
},_41=function(_42){
_29().location.reload(_42);
},_10=function(_43){
var r={};
if(_43){
var uri=null,_44={},_45=_43.editMode,_46=_43.infoMode;
if(_3a(_7,_45)){
uri=_2e(_7,_45);
}
if(_3a(_8,_46)){
var _47=_2e(_8,_46);
if(uri){
_44.uri=[_47];
}else{
uri=_47;
}
}
if(uri){
r.uri=uri;
r.params=_44;
}
}
return r;
},_40=function(uri,_48){
var _49={"uri":uri};
if(_48){
_49.params=_48;
}
return _49;
},_e=function(_4a){
if(_14()){
_4a.autoOpenDefaultTabs=false;
}
return _4a;
},_19=function(_4b){
if(_4b&&_15(_4b)){
var _4c=_21();
if(_4c){
var p=_4b.primaryURI,_4d={},_4e=_4b.onCloseDialog;
if(_4e&&_4e.id){
_4d.onCloseDialog=function(_4f){
_50(_4f,_4e.id,_4e.key);
};
}
if(p){
_4c.load(_40(p),"primary",_4d);
}
var s=_4b.secondaryURI;
if(s){
_4c.load(_40(s),"secondary",_4d);
}
}
}
},_50=function(_51,id,key){
var _52=_51,id=id,key=key||"onCloseDialog";
_53(function(w){
try{
var d=w.document;
if(d){
var n=d.getElementById(id);
if(n){
var f=n[key];
if(f){
f.call(n,_51);
}
}
}
}
catch(e){
}
});
},_18=function(uri,_54,_55){
if(uri){
if(!_54){
_54={};
}
if(!_54.uri){
_54.uri=[];
}
_54.uri.push(_9);
}else{
uri=_9;
}
if(_55&&_15(_55)){
if(!_54){
_54={};
}
var p=_55.primaryURI;
if(p){
_54.primaryTabURI=[p];
}
var s=_55.secondaryURI;
if(s){
_54.secondaryTabURI=[s];
}
}
_28(_29(),uri,_54,function(url){
_2a().location.href=url;
});
},_13=function(_56){
var r={};
if(_56){
if(_56.tab||_56.primaryTab||_56.secondaryTab){
var _57=_56.secondaryTab||_56.tab;
if(_57){
r.secondaryURI=_58(_57);
}
var _59=_56.primaryTab;
if(_59){
r.primaryURI=_58(_59);
}
}
r.onCloseDialog=_56.onCloseDialog;
var _5a=_56.autoOpenDefaultTabs;
if(_5a){
if(!r.primaryURI){
r.primaryURI="default";
}
if(!r.secondaryURI){
r.secondaryURI="default";
}
}
}
return r;
},_58=function(t){
if(t.indexOf(_b)==0||t.indexOf("Z6_")==0){
return "nm:oid:"+t;
}else{
return t;
}
},_15=function(_5b){
var r=_5b&&(_5b.primaryURI||_5b.secondaryURI);
return r;
},_28=function(win,uri,_5c,cb){
_5d(win).then(function(url){
var _5e=url,buf=[];
buf.push(_5e);
if(_5e.indexOf("?")<0){
buf.push("?");
}else{
buf.push("&");
}
buf.push("uri=");
buf.push(uri);
if(_5c){
buf.push("&");
buf.push(_4(_5c));
}
var r=buf.join("");
cb(r);
});
},_5d=function(win){
var r=wpModules.theme.WindowUtils.findBaseURL(win);
return r;
},_5f=function(win){
var r=wpModules.theme.WindowUtils.getBaseURL(win);
return r;
},_29=function(){
var wu=wpModules.theme.WindowUtils,r=(wu&&wu.getWindow(wu.VIEW_AREA))||_1;
return r;
},_53=function(cb){
var _60=_2a(),_61=_60.frames;
cb.call(this,_60);
if(_61&&_61.length>0){
_6(_61,function(f){
cb.call(this,f.window);
});
}
},_2a=function(){
var win=_29(),r=(win.parent||win);
return r;
},_21=function(){
var r=_5("wpModules.toolbar.NavigationController",false,_2a());
return r;
},_62=_5("wpModules.toolbar",true);
_62.openToolbar=_c;
_62.openPrimaryTab=_1a;
_62.openSecondaryTab=_1c;
_62.closeTab=_1e;
_62.closeToolbar=_22;
_62.isToolbarOpened=_14;
_62.setEditModeActive=_31;
_62.isEditModeActive=_33;
_62.setInfoModeActive=_35;
_62.isInfoModeActive=_37;
_62.loadViewArea=_17;
_62.reloadViewArea=_41;
_62.getViewAreaWindow=_29;
_62.getToolbarMasterWindow=_2a;
_62.getBaseURL=_5f;
})(window);


}catch(e){console.log("Module 'wp_toolbar_utils': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved.  **/
(function(){
function _1(_2){
var _3=window,_4=_2.metadata;
if(_4&&_4._contributionWindow){
return _4._contributionWindow;
}
if(_4&&_4.contributor){
var _5=_4.contributor,_6=_5.lastIndexOf(":"),_7=_5.substr(_6+1),_8=i$.fromPath("wpModules.theme.WindowUtils");
if(_8){
_3=_8.getWindow(_7);
}
}
if(!_4){
_4=_2.metadata={};
}
_4._contributionWindow=_3;
return _3;
};
var _9={getWindow:function(_a){
var _b=(_a.metadata&&_a.metadata.actionUrlTarget)||"same",_c,wu=wpModules.theme.WindowUtils;
_c=_1(_a);
if(_b=="view"){
_c=wu&&wu.getWindow(wu.VIEW_AREA);
}else{
if(_b=="master"){
_c=wu&&wu.getWindow(wu.MASTER);
}
}
return _c||window;
}};
var _d={getWindow:function(_e){
return _1(_e);
}};
i$.toPath("wptheme.contextMenu.extension.actionUrlTarget",_9);
i$.toPath("wptheme.contextMenu.extension.menuItemScope",_d);
var _f={templates:{anchor:"<span class=\"wpthemeMenuBadgeAnchor\"></span>",loading:"<span class=\"wpthemeMenuLoading wpthemeTemplateLoading\"></span>",badge_info:"<span class=\"wpthemeMenuBadge wpthemeMenuBadgeInfo\" aria-live=\"polite\">${count}</span>",badge_warn:"<span class=\"wpthemeMenuBadge wpthemeMenuBadgeWarn\" aria-live=\"polite\">${count}</span>",badge_error:"<span class=\"wpthemeMenuBadge wpthemeMenuBadgeError\" aria-live=\"polite\">${count}</span>"},getAnchor:function(_10){
var md=(_10)?_10.metadata:null;
return (md&&(md.badgeUrl||md.badgeData))?_f.templates.anchor:"";
},injectBadge:function(_11,_12){
var _13=(_12)?_12:_11._menuitem,md=(_13)?_13.metadata:null;
if(md&&(md.badgeUrl||md.badgeData)){
var _14=_f._findNode(_11,"wpthemeMenuBadgeAnchor");
if(_14){
if(md.badgeUrl){
var _15,_16=md.badgeUrl,_17=ibmCfg.portalConfig.contentHandlerURI;
if(_16.indexOf("?")==0){
_15=_17+((_17.indexOf("?")<0)?"?":"&")+_16.substring(1);
}else{
_15=_16;
}
var tmp=i$.createDom("div");
tmp.innerHTML=_f.templates.loading;
_14.appendChild(tmp.firstChild);
i$.xhrGet({url:_15,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_18){
_f._insertBadge(_18.data,md.badgeTitle,_14);
},function(_19){
while(_14.firstChild){
_14.removeChild(_14.firstChild);
}
});
}else{
_f._insertBadge(md.badgeData,md.badgeTitle,_14);
}
}
}
},_insertBadge:function(_1a,_1b,_1c){
while(_1c.firstChild){
_1c.removeChild(_1c.firstChild);
}
if(_1a&&_1a.count>0){
var tmp=i$.createDom("div");
if(_1a.level=="error"){
tmp.innerHTML=_f.templates.badge_error.replace(/\$\{count\}/g,_1a.count);
}else{
if(_1a.level=="warn"){
tmp.innerHTML=_f.templates.badge_warn.replace(/\$\{count\}/g,_1a.count);
}else{
tmp.innerHTML=_f.templates.badge_info.replace(/\$\{count\}/g,_1a.count);
}
}
if(_1b){
tmp.firstChild.setAttribute("title",_1b);
tmp.firstChild.setAttribute("aria-label",_1b);
}
_1c.appendChild(tmp.firstChild);
}
},_findNode:function(_1d,_1e){
var _1f,i,_20;
var _21=function(_22,_23){
for(i=_22.childNodes.length-1;i>=0;i--){
_20=_22.childNodes[i];
if(i$.hasClass(_20,_1e)){
_1f=_20;
continue;
}
if(_20.childNodes){
i=_21(_20,i);
}
}
return _23;
};
_21(_1d);
return _1f;
}};
i$.toPath("wptheme.contextMenu.extension.badge",_f);
})();


}catch(e){console.log("Module 'wp_simple_contextmenu_ext': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved.  **/
(function(){
var _1=ibmCfg.portalConfig.contentHandlerURI+((ibmCfg.portalConfig.contentHandlerURI.indexOf("?")<0)?"?":"&")+"uri=menu:${id}",_2=false,_3="Separator",_4="Header",_5=function(){
var _6=i$.hasClass(document.getElementsByTagName("body")[0],"edit-mode");
return _6;
},_7=i$.fromPath("wptheme",true),_8=i$.fromPath("wptheme.contextMenu",true),_9=i$.fromPath("wptheme.contextMenu.extension",true);
i$.mash(_7,{getWindowIDFromSkin:function(_a){
while((_a=_a.parentNode)!=null){
if(i$.hasClass(_a,"component-control")){
var m=_a&&(_a.className||"").match(/id-([\S]+)/);
var _b=m&&m[1];
return _b;
}
}
return null;
},getPortletState:function(_c){
var _d=i$.byId("portletState");
var _e={};
if(_d){
if(!_d._cache){
_d._cache=i$.fromJson(_d.innerHTML);
_d._cache._defaults={"windowState":"normal","portletMode":"view"};
}
if(_d._cache[_c]){
_e=_d._cache[_c];
}else{
_e=_d._cache._defaults;
}
}
return _e;
},isValidOp:function(_f){
if(_f.visibility===false){
return false;
}
var _10=_f.metadata||{};
switch(_f.id){
case "ibm.portal.operations.changePortletMode":
var _11=_7.getPortletState(_10.wid).portletMode!=_10.portletMode;
return _11;
case "ibm.portal.operations.changeWindowState":
var _11=_7.getPortletState(_10.wid).windowState!=_10.windowState;
return _11;
default:
}
return true;
},operation:{changeToHelpMode:function(_12){
var _13=window.location.href;
if(_12.actionUrl){
if(_12.actionUrl.indexOf("?")==0){
var _14=_13.indexOf("#");
if(_14!=-1){
var _15=_13.substring(0,_14);
var _16=_13.substring(_14);
_13=_15+(_15.indexOf("?")==-1?"?":"&")+_12.actionUrl.substring(1);
_13+=_16;
}else{
_13+=(_13.indexOf("?")==-1?"?":"&")+_12.actionUrl.substring(1);
}
}else{
_13=_12.actionUrl;
}
}
window.open(_13,"","resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,width=800,height=600,screenX=10,screenY=10,top=10,left=10");
}},canImpersonate:function(){
return ibmCfg.portalConfig.canImpersonate;
}});
i$.mash(_8,{cache:{},css:{focus:"wpthemeMenuFocus",disabled:"wpthemeMenuDisabled",show:"wpthemeMenuShow",error:"wpthemeMenuError",menuTemplate:"wpthemeTemplateMenu",submenuTemplate:"wpthemeTemplateSubmenu",loadingTemplate:"wpthemeTemplateLoading",complementaryContent:"wpthemeComplementaryContent",menuOverlay:"wpthemeMenuOverlay",alignLeft:"wpthemeMenuLeft",alignRight:"wpthemeMenuRight",noTouch:"wpthemeNoTouch"},init:function(){
var _17;
if(arguments.length==1){
_17=arguments[0];
}else{
_17={node:arguments[0],menuId:arguments[1],jsonQuery:(arguments.length>2)?arguments[2]:null};
}
this.init2(_17);
},init2:function(_18){
var _19=_18.node;
_18.params=_18.params||{};
var _1a=_18.params.autoScroll!==false;
_19._contextMenu=_19._contextMenu||{};
var _1b=_19._contextMenu;
_1b.id=_19._contextMenu.id||_19.getAttribute("id")||Math.round(Math.random()*1000000000);
_19.setAttribute("id",_1b.id);
_1b.menuId=_18.menuId;
_1b.jsonQuery=_18.jsonQuery;
_1b.templateId=_18.params.templateId||null;
_1b.alignLeft=(_18.params.alignment=="left")||false;
_1b.alignRight=(_18.params.alignment=="right")||false;
_1b.touchDevice=(com_ibm_device_class.indexOf("tablet")!=-1)||(com_ibm_device_class.indexOf("smartphone")!=-1);
_1b.closeFn=function(_1c,evt){
var fn=_18.onClose;
if(fn){
if(i$.isFunction(fn)){
try{
fn();
}
catch(exc){
console.log("error executing function "+fn+" - "+exc);
}
}
}
_7.contextMenu.close(_1b,_1c,evt);
};
if(_1b.touchDevice){
var _1d=i$.bindDomEvt(document.body,"touchmove",function(evt){
var _1e=(evt)?evt.target||evt.srcElement:null;
var _1f=i$.byId(_1b.id);
if(i$.hasClass((_1b.shadowNode)?_1b.shadowNode:_1f,_24.show)&&!i$.isDescendant(_1e,_1b.shadowNode)){
i$.unbindDomEvt(_1d);
if(_1b._inProgress){
_displayMenu=false;
}
_1b.closeFn(false);
}
});
}
var _20=function(_21){
if(_21.displayMenu){
_1b.activeAction=false;
i$.fireEvent("wptheme/contextMenu/close/all");
var _22=i$.byId(_1b.id);
if(!_1b._submenu){
i$.fireEvent("wptheme/contextMenu/close/all");
_7.contextMenu._updateAbsolutePosition(_22);
}
var _23=_7.contextMenu._adjustScreenPositionStart();
i$.addClass((_1b.shadowNode)?_1b.shadowNode:_22,_24.show);
if(_1a){
_7.contextMenu._adjustScreenPositionEnd(_23);
}
var _25=_22._firstSelectable;
if(_25){
_25.focus();
_22._currentSelected=_25;
}
i$.addClass((_1b.shadowNode)?_1b.shadowNode:_22,("ontouchstart" in document)?"":_24.noTouch);
}
};
_7.contextMenu._initialize(_19).then(_20,_20);
_19=null;
},initSubmenu:function(_26,_27,_28){
_26._contextMenu=_26._contextMenu||{};
var _29=_26._contextMenu;
_29._submenu=true;
_29._menuitemTemplate=_28._menuitemTemplate;
_29._subMenuTemplate=_28._subMenuTemplate;
_29._loadingTemplate=_28._loadingTemplate;
_7.contextMenu.init(_26,_27,_28.jsonQuery);
},_findFocusNode:function(_2a){
var _2b,i,_2c;
var _2d=function(_2e,_2f){
var l=_2e.childNodes.length;
for(i=0;i<l;i++){
if(_2b){
break;
}
_2c=_2e.childNodes[i];
if(i$.hasClass(_2c,_24.focus)){
_2b=_2c;
break;
}
if(_2c.childNodes){
i=_2d(_2c,i);
}
}
return _2f;
};
if(i$.hasClass(_2a,_24.focus)){
return _2a;
}
_2d(_2a);
return _2b;
},_findNodes:function(_30,_31){
var _32,_33,_34,_35,i,_36;
var _37=function(_38,_39){
for(i=_38.childNodes.length-1;i>=0;i--){
_36=_38.childNodes[i];
if(i$.hasClass(_36,_24.menuTemplate)){
_33=_36;
continue;
}
if(i$.hasClass(_36,_24.submenuTemplate)){
_34=_36;
continue;
}
if(i$.hasClass(_36,_24.loadingTemplate)){
_35=_36;
continue;
}
if(_36.childNodes){
i=_37(_36,i);
}
}
return _39;
};
if(_31&&!_30._contextMenu.menuNode){
_32=document.getElementById(_31);
if(_32){
_32=_32.cloneNode(true);
_30.appendChild(_32);
}
}
_37(_30);
if(!_33){
_32=document.getElementById("simpleMenuTemplate");
if(_32){
_32=_32.cloneNode(true);
_30.appendChild(_32);
_37(_30);
}
}
var _3a={"root":_32,"menu":_33,"submenu":_34,"loading":_35};
return _3a;
},_findNextNodeByKeyCode:function(_3b,_3c){
var _3d=_3b.parentNode;
var _3e,_3f,_40,i,j;
var l=_3d.childNodes.length;
for(i=0;i<l;i++){
if(_3d.childNodes[i]==_3b){
break;
}
}
for(j=i+1;j<l;j++){
_3e=_3d.childNodes[j];
_3f=_3e.textContent||_3e.innerText;
if(_3e._menuitem&&_3e._menuitem.type!=_4&&_3e._menuitem.type!=_3&&_3f&&_3f.charAt(0).toUpperCase().charCodeAt(0)==_3c){
_40=_3d.childNodes[j];
return _40;
}
}
for(j=0;j<i;j++){
_3e=_3d.childNodes[j];
_3f=_3e.textContent||_3e.innerText;
if(_3e._menuitem&&_3e._menuitem.type!=_4&&_3e._menuitem.type!=_3&&_3f&&_3f.charAt(0).toUpperCase().charCodeAt(0)==_3c){
_40=_3d.childNodes[j];
return _40;
}
}
return null;
},_invalidateCallback:function(){
_7.contextMenu.cache={};
},_initialize:function(_41){
var _42=true;
var _43=_41._contextMenu;
if(_7.contextMenu.cache[_43.id]||_43._inProgress){
return i$.promise.resolved({displayMenu:_42});
}
_43._inProgress=true;
i$.addListener("wptheme/contextMenu/invalidate/all",_7.contextMenu._invalidateCallback);
var _44,_45,tmp=i$.createDom("div"),_46;
if(_43._submenu){
tmp.innerHTML=_43._subMenuTemplate.replace(/\$\{submenu-id\}/g,_43.id+"_menu");
_41.appendChild(tmp.firstChild);
_44=i$.byId(_43.id+"_menu");
_45=i$.createDom("div");
_45.innerHTML=_43._loadingTemplate;
}else{
var _47=_7.contextMenu._findNodes((_43.shadowNode)?_43.shadowNode:_41,_41._contextMenu.templateId);
_44=_47.menu;
_46=_47.root;
if(_46){
if(_43.alignLeft||_43.alignRight){
i$.removeClass(_46,_24.alignLeft);
i$.removeClass(_46,_24.alignRight);
if(_43.alignLeft){
i$.addClass(_46,_24.alignLeft);
}else{
i$.addClass(_46,_24.alignRight);
}
}
_46.removeAttribute("id");
}
if(!_43._menuitemTemplate){
_43._menuitemTemplate=i$.trim(_44.innerHTML);
}
if(!_43._loadingTemplate){
_45=i$.createDom("div");
_45.appendChild(_47.loading);
_43._loadingTemplate=i$.trim(_45.innerHTML);
_43._loadingTemplate=_43._loadingTemplate.replace(/\$\{loading\}/g,_7.contextMenu.nls.LOADING_0);
_45=null;
}
_45=i$.createDom("div");
_45.innerHTML=_43._loadingTemplate;
if(_47.submenu){
tmp.appendChild(_47.submenu.cloneNode(true));
if(!_43._subMenuTemplate){
_43._subMenuTemplate=i$.trim(tmp.innerHTML);
}
}
}
while(_44.firstChild){
_44.removeChild(_44.firstChild);
}
_44.appendChild(_45);
var _48;
if(_43._submenu){
_48=_43.shadowNode;
}else{
if(_43.shadowNode){
_48=_43.shadowNode;
}else{
_48=_7.contextMenu._transformIntoAbsolutePosition(_41);
}
}
i$.addClass((_48)?_48:_41,_24.show);
i$.bindDomEvt((_48)?_48:_41,"onmouseleave",function(){
if(_43._inProgress){
_42=false;
}
_43.closeFn(false);
});
var _49=_7.contextMenu._load(_43).then(function(_4a){
var _4b=_7.contextMenu._parseData(_4a).then(function(_4c){
_4c=_7.contextMenu._filterMenu(_4c);
if(!_4c||_4c.length==0){
_4c=[{type:"Menuitem",_enabled:true,itemClass:_24.error,title:{value:_7.contextMenu.nls.NO_ITEMS_0,lang:"en"}}];
}
_7.contextMenu._buildMenu(_43,_44,_4c);
_43._inProgress=false;
_7.contextMenu.cache[_43.id]=true;
return {displayMenu:_42};
});
return _4b;
},function(){
var tmp=i$.createDom("div");
tmp.innerHTML=_7.contextMenu._fromTemplate(_43._menuitemTemplate,_24.error,_7.contextMenu.nls.ERROR_LOADING_0);
while(_44.firstChild){
_44.removeChild(_44.firstChild);
}
_44.appendChild(tmp);
_43._inProgress=false;
_7.contextMenu.cache[_43.id]=true;
return {displayMenu:_42};
});
return _49;
},close:function(_4d,_4e,evt){
var _4f=(evt)?evt.target||evt.srcElement:null;
var _50=i$.byId(_4d.id);
i$.removeClass((_4d.shadowNode)?_4d.shadowNode:_50,_24.show);
if(!_4d.activeAction){
var _51=_50._currentSelected;
if(_51){
_51.blur();
}
var _52=_7.contextMenu._findFocusNode(_50);
window.setTimeout(function(){
((_52)?_52:_50).focus();
if(_4e){
window.setTimeout(function(){
_7.contextMenu._applyAction(_4f);
},0);
}
},0);
}
},_load:function(_53){
var _54=_1.replace(/\$\{id\}/g,_53.menuId);
if(_53.jsonQuery){
_54+=(_54.indexOf("?")==-1?"?":"&")+i$.toQuery(_53.jsonQuery);
}
var _55=i$.xhrGet({url:_54,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_56){
return _56.data;
},function(_57){
var _58=_57.xhr.getResponseHeader("Content-Type")||"";
if((_58.indexOf("text/html")==0)||(_57.xhr.status==401)){
window.setTimeout(function(){
document.location.reload();
},0);
}
console.log("Error trying to load the context menu feed for '"+_53.menuId+"': "+_57);
return null;
});
return _55;
},_parseData:function(_59){
var _5a=[];
i$.each(_59,function(_5b){
var _5c=i$.fromPath("moduleInfo.deferred",false,_5b)?i$.modules.loadDeferred():i$.promise.resolved(true);
_5a.push(_5c.then(function(){
var _5d=_7.contextMenu._checkFunction(_5b,_5b.visibilityFn,_5b,(typeof _5b.visibility!="undefined")?_5b.visibility:true);
var _5e=_7.contextMenu._checkFunction(_5b,_5b.enableFn,_5b,(typeof _5b.enabled!="undefined")?_5b.enabled:true);
return i$.whenAll(_5d,_5e).then(function(_5f){
_5b._visible=_5f[0];
_5b._enabled=_5f[1];
return _5b;
});
}));
});
var _60=i$.whenAll.apply(i$,_5a);
return _60;
},_filterMenu:function(_61){
var _62=[],_63,_64={"type":_3};
for(var i=_61.length-1;i>=0;i--){
_63=_61[i];
if(!_63._visible){
continue;
}
if(_63.type==_3){
if(_64.type==_3){
continue;
}
}else{
if(_63.type==_4){
if((_64.type==_3)||(_64.type==_4)){
continue;
}
}
}
_64=_63;
_62.unshift(_63);
}
while(_62.length>0&&_62[0].type==_3){
_62=_62.slice(1);
}
return _62;
},_buildMenu:function(_65,_66,_67){
var _68=document.createDocumentFragment(),tmp=i$.createDom("div"),_69,_6a,_6b,_6c,_6d,_6e,_6f=i$.fromPath("wptheme.contextMenu.extension.badge");
for(var i=0,l=_67.length;i<l;i++){
_69=_67[i];
tmp.innerHTML=_7.contextMenu._fromTemplate(_65._menuitemTemplate,_69,_6f);
while(_6a=tmp.firstChild){
if(_6a.nodeType==1){
if(_69.type=="Submenu"){
_6a._menuitem=_69;
_6a._jsonData=_65;
i$.bindDomEvt(_6a,"onmouseover",_7.contextMenu._applySubmenu);
}else{
if(_69._enabled){
if(!_6d){
_6d=_6a;
}
_6e=_6a;
_6a.links={previous:_6b,next:null,sub:null};
if(_6b){
_6b.links.next=_6a;
}
if(!_6c&&_69.type!=_4){
_6c=_6a;
}
_6a._menuitem=_69;
_6b=_6a;
i$.bindDomEvt(_6a,"onclick",function(evt){
_7.contextMenu._stopEventPropagation(evt);
_65.closeFn(true,evt);
});
i$.bindDomEvt(_6a,"onkeydown",function(evt){
return _7.contextMenu._applyKeyAction(evt);
});
i$.bindDomEvt(_6a,"onmouseover",function(evt){
return _7.contextMenu._applyFocusAction(evt);
});
}
}
if((_69.title)&&(i$.isRTL(_69.title.lang))){
i$.addClass(_6a,"rtl");
_6a.setAttribute("dir","RTL");
}
if(_69.markupId){
_6a.setAttribute("id",_69.markupId);
}
if(_6f){
_6f.injectBadge(_6a);
}
}
_68.appendChild(_6a);
}
}
_6d.links.previous=_6e;
_6e.links.next=_6d;
while(_66.firstChild){
_66.removeChild(_66.firstChild);
}
_66.appendChild(_68);
i$.byId(_65.id)._firstSelectable=_6c;
i$.byId(_65.id)._currentSelected=null;
},_fromTemplate:function(_70,_71,_72){
var _73,_74,_75,_76="";
if(typeof (_71)=="string"){
_73=_71;
_74=_72;
_75="";
}else{
_73="type"+_71.type;
if(_71.itemClass){
_73+=" "+_71.itemClass;
}
if(!_71._enabled){
_73+=" "+_24.disabled;
}
_74=(_71.title)?_71.title.value:"";
_75=((_71.description)?_71.description.value:"");
if(_72){
_76=_72.getAnchor(_71);
}
}
var _77=_70.replace(/\$\{title\}/g,_74).replace(/\$\{badge\}/g,_76).replace(/"\$\{css-class\}"/g,"\""+(_73)+"\"").replace(/\$\{css-class\}/g,"\""+(_73)+"\"").replace(/"\$\{description\}"/g,"\""+_75+"\"").replace(/\$\{description\}/g,"\""+_75+"\"");
return _77;
},_checkFunction:function(_78,fn,arg,_79){
if(fn){
if(!_78.fromPath){
_78.fromPath={};
}
var _7a=i$.fromPath("wptheme.contextMenu.extension.menuItemScope"),_7b=_7a?_7a.getWindow(_78):null,_7c=_78.fromPath[fn]||i$.fromPath(fn,false,_7b);
_78.fromPath[fn]=_7c;
if(i$.isFunction(_7c)){
try{
return _7c(arg);
}
catch(exc){
console.log("error executing function "+fn+" - "+exc);
}
}
}
return i$.promise.resolved(_79);
},_stopEventPropagation:function(evt){
if(evt){
if(evt.stopPropagation){
evt.stopPropagation();
}else{
evt.cancelBubble=true;
}
}
},_applyKeyAction:function(evt){
var _7d=evt.target||evt.srcElement;
var _7e=_7d;
var _7f=null;
while(!_7f){
_7e=_7e.parentNode;
if(_7e._contextMenu){
_7f=_7e;
}
}
var _80=_7f._contextMenu;
switch(evt.keyCode){
case 32:
if(evt.preventDefault){
evt.preventDefault();
}
case 13:
_7.contextMenu._stopEventPropagation(evt);
_80.closeFn(true,evt);
return false;
case 9:
case 27:
_80.closeFn(false);
break;
case 40:
_7.contextMenu._moveFocus(evt,_80,_7d,"next");
return false;
case 38:
_7.contextMenu._moveFocus(evt,_80,_7d,"previous");
return false;
}
var _81=_7.contextMenu._findNextNodeByKeyCode(_7d,evt.keyCode);
if(_81){
_81.focus();
return false;
}
return true;
},_moveFocus:function(evt,_82,_83,_84){
var _85=_83.links[_84];
if(_85&&(_85._menuitem.type==_4||_85._menuitem.type==_3)){
var _86=false;
var _87=null;
while(!_87&&!_86){
_85=_85.links[_84];
if(!_85){
_86=true;
}else{
if(_85._menuitem.type!=_4&&_85._menuitem.type!=_3){
_87=_85;
}
}
}
_85=_87;
}
if(_85){
var _88=i$.byId(_82.id)._currentSelected;
if(_88){
_88.blur();
}
i$.byId(_82.id)._currentSelected=_85;
_85.focus();
}
if(evt.preventDefault){
evt.preventDefault();
}
},_applyFocusAction:function(evt){
var _89=evt.target||evt.srcElement;
var _8a=_89;
var _8b=null;
var _8c=_89._menuitem;
while(!_8b){
_8a=_8a.parentNode;
if(_8a._contextMenu){
_8b=_8a;
}
if(!_8c){
_89=_89.parentNode;
_8c=_89._menuitem;
}
}
var _8d=_8b._contextMenu;
var _8e=i$.byId(_8d.id)._currentSelected;
if(_8e!=_89){
if(_8e){
_8e.blur();
i$.byId(_8d.id)._currentSelected=null;
}
if(_8c.type!=_4&&_8c.type!=_3){
i$.byId(_8d.id)._currentSelected=_89;
_89.focus();
}
}
return false;
},_applyAction:function(_8f){
var _90=_8f;
var _91=null;
var _92=_8f._menuitem;
while(!_91){
_90=_90.parentNode;
if(_90._contextMenu){
_91=_90;
}
if(!_92){
_8f=_8f.parentNode;
_92=_8f._menuitem;
}
}
var _93=_91._contextMenu;
_93.activeAction=true;
var p=_7.contextMenu._checkFunction(_92,_92.actionFn,_92,_92.actionUrl);
if(p){
p.then(function(_94){
if(_94&&i$.isString(_94)){
var _95=i$.fromPath("wptheme.contextMenu.extension.actionUrlTarget");
var _96=(_95)?_95.getWindow(_92):window;
var _97=_92.actionHttpMethod||"GET";
if(_97!="GET"){
var _98=_96.i$.createDom("form");
_98.setAttribute("action",_94);
_97=_97.toLowerCase();
switch(_97){
case "get":
_98.setAttribute("method","GET");
break;
case "delete":
case "put":
var _99=_96.i$.createDom("input",{"type":"hidden","name":"x-method-override","value":_97.toUpperCase()});
_98.appendChild(_99);
case "post":
_98.setAttribute("method","POST");
_98.setAttribute("enctype","multipart/form-data");
break;
default:
}
_96.i$.byId(_24.complementaryContent).appendChild(_98);
_98.submit();
}else{
var _9a=_96.i$.createDom("a");
_9a.setAttribute("style","display:none");
_9a.setAttribute("href",_94);
_96.i$.byId(_24.complementaryContent).appendChild(_9a);
_9a.click();
}
}
});
}
},_applySubmenu:function(evt){
var _9b=evt.target||evt.srcElement;
if(!_9b._jsonData){
_9b=_9b.parentNode;
}
if(_9b._jsonData){
_9b.setAttribute("id",_9b._jsonData.id+"_"+_9b._menuitem.id);
_7.contextMenu.initSubmenu(_9b,_9b._menuitem.id,_9b._jsonData);
}
},_transformIntoAbsolutePosition:function(_9c){
var _9d=_9c.childNodes,_9e,i=0,_9f=false;
while(_9e=_9d[i++]){
if(i$.hasClass(_9e,_24.alignRight)){
_9f=true;
break;
}else{
if(i$.hasClass(_9e,_24.alignLeft)){
break;
}
}
}
var _a0=i$.createDom("div");
_a0.className=_9c.className;
_a0.appendChild(_9e);
i$.byId(_24.complementaryContent).appendChild(_a0);
_a0._contextMenu=_9c._contextMenu;
_9c._contextMenu.shadowNode=_a0;
_9c._contextMenu._menuIsRight=_9f;
var _a1=i$.createDom("span");
_a0.appendChild(_a1);
i$.addClass(_a1,_24.menuOverlay);
_9c._contextMenu.overlayNode=_a1;
_9c._contextMenu.menuNode=_9e;
_7.contextMenu._updateAbsolutePosition(_9c);
return _a0;
},_updateAbsolutePosition:function(_a2){
var _a3=_a2._contextMenu._menuIsRight;
var _a4=_a2._contextMenu.menuNode;
var _a5=_a2._contextMenu.overlayNode;
var _a6=_7.contextMenu._findPos(_a2);
var _a7=2;
_a5.style.left=(_a6[0]-_a7)+"px";
_a5.style.top=(_a6[1]-_a7)+"px";
_a5.style.width=(_a2.offsetWidth+(2*_a7))+"px";
_a5.style.height=(_a2.offsetHeight+(2*_a7))+"px";
var dir=document.getElementsByTagName("html")[0].getAttribute("dir");
if(dir!=null){
dir=dir.toLowerCase();
}else{
dir="";
}
if(!(dir=="rtl")){
_a4.style.left=((_a3)?_a6[0]+_a2.offsetWidth:_a6[0])+"px";
}else{
_a4.style.left=((_a3)?_a6[0]+_a2.offsetWidth-_a2.scrollWidth:_a6[0]+_a2.scrollWidth)+"px";
}
_a4.style.top=_a6[1]+"px";
},_adjustScreenPositionStart:function(){
return document.documentElement.scrollHeight;
},_adjustScreenPositionEnd:function(_a8){
var _a9=document.documentElement.scrollHeight;
if(_a8!=_a9){
document.documentElement.scrollTop=document.documentElement.scrollHeight;
}
},_findPos:function(obj){
var _aa=curtop=0;
if(obj.offsetParent){
do{
_aa+=obj.offsetLeft;
curtop+=obj.offsetTop;
}while(obj=obj.offsetParent);
var _ab=[_aa,curtop];
return _ab;
}
},});
var _24=_7.contextMenu.css;
})();


}catch(e){console.log("Module 'wp_simple_contextmenu_js': ",e);}
try{(function(){
    i$.merge({
	"NO_ITEMS_0":"Көрсетуге арналған элементтер жоқ",
	"ERROR_LOADING_0":"Мәзірді қотару барысында қате орын алды.",
	"LOADING_0":"Жүктелуде..."
},i$.fromPath("wptheme.contextMenu.nls",true));
})();
}catch(e){console.log("Module 'wp_simple_contextmenu_js': ",e);}
try{(function(_1){
var _2="aria-labelledby",_3="aria-describedby",_4="aria-pressed",_5="title",_6="true",_7="false",_8="selected",_9="disabled",_a="wpToolbarHighContrast",_b="http://www.ibm.com/xmlns/prod/websphere/portal/publicparams",_c="wpInfoModeToggle",_d="wpInfoModeToggleLink",_e="wpPageModeToggle",_f="wpPageModeToggleLink",_10="wpToolbarToggle",_11="ibm.portal.home.createpage",_12="ibm.portal.toolbar.NewPage",_13="wps.content.root",_14="wps.Administration",_15="ibm.portal.page.Applications",_16=[13,32,38,40],_17=[13,32],T=true,F=false,_18=i$.byId,_19=i$.hasClass,_1a=i$.addClass,_1b=i$.removeClass,_1c=i$.forEach,_1d=i$.toQuery,_1e=i$.fromPath,_1f=i$.bindDomEvt;
function _20(_21,_22){
var _23=_21||_18(_e),_24="valueoff",_25="valueon";
if(_22){
if(!_19(_23,_25)){
_1b(_23,_24);
_1a(_23,_25);
_26(_23,_4,_6);
_26(_23,_5,_27(_28(_18("wpEditModeDesc"))));
}
}else{
if(_19(_23,_25)){
_1b(_23,_25);
_1a(_23,_24);
_26(_23,_4,_7);
_26(_23,_5,_27(_28(_18("wpViewModeDesc"))));
}
}
};
function _29(_2a,_2b){
var _2c=_2a||_18(_c),_2d=_18(_d);
if(_2b){
if(!_19(_2c,_8)){
_1a(_2c,_8);
_26(_2d,_2,"wpInfoModeOnLabel");
_26(_2d,_3,"wpInfoModeOnDesc");
_26(_2d,_4,_6);
_26(_2c,_5,_27(_28(_18("wpInfoModeOnDesc"))));
}
}else{
if(_19(_2c,_8)){
_1b(_2c,_8);
_26(_2d,_2,"wpInfoModeOffLabel");
_26(_2d,_3,"wpInfoModeOffDesc");
_26(_2d,_4,_7);
_26(_2c,_5,_27(_28(_18("wpInfoModeOffDesc"))));
}
}
};
function _2e(_2f,e){
if(!_30(e,_17)){
return F;
}
_1a(_2f,_8);
var _31=wpModules.toolbar;
if(_31.isToolbarOpened()){
_31.closeToolbar();
}else{
_31.openToolbar({"autoOpenDefaultTabs":true});
}
return T;
};
function _32(_33,_34,e){
if(!_30(e,_17)){
return F;
}
if(!_19(_33,_9)){
var t=wpModules.toolbar,_35=t.isEditModeActive();
if(_35){
t.setEditModeActive(F);
}else{
if(_34&&_36()){
var _37={"editMode":T};
if(!t.isToolbarOpened()){
_37.autoOpenDefaultTabs=true;
}
t.openToolbar(_37);
}else{
t.setEditModeActive(T);
}
}
_20(_33,!_35);
}
return T;
};
function _38(_39,e){
if(!_30(e,_17)){
return F;
}
var t=wpModules.toolbar,_3a=t.isInfoModeActive();
_29(_39,!_3a);
t.setInfoModeActive(!_3a);
return T;
};
function _3b(_3c,e){
var _3d=F;
if(_3e()){
_3d=_3f(_3c,_13,e);
}else{
_40(_13);
_3d=T;
}
return _3d;
};
function _41(_42,e){
var _43=F;
if(_3e()){
_43=_3f(_42,_15,e);
}else{
_40(_15);
_43=T;
}
return _43;
};
function _44(_45,e){
var _46=T;
_40(_14);
return _46;
};
function _3e(){
var _47=(typeof wptheme!="undefined"&&wptheme.contextMenu);
return _47;
};
function _3f(_48,_49,e){
if(!_30(e,_16)){
return F;
}
var _4a={"navID":_4b(),"rootNode":_49};
var _4c=wpModules.toolbar;
if(_4c&&_4c.isToolbarOpened()){
_4a.contribURI="nm:oid:ibm.portal.Toolbar";
}
_4d(_48,"navigationMenu",_4a);
return T;
};
function _4d(_4e,_4f,_50){
_1a(_4e.parentNode,_8);
_26(_4e,_4,_6);
args={"node":_4e.parentNode,"menuId":_4f,"jsonQuery":_50,"params":{"templateId":"simpleMenuTemplate","alignment":"right","autoScroll":false},"onClose":function(){
_1b(_4e.parentNode,_8);
_26(_4e,_4,_7);
}};
wptheme.contextMenu.init(args);
};
function _26(_51,_52,_53){
_51.setAttribute(_52,_53);
};
function _28(_54){
return _54.firstChild;
};
function _27(_55){
return _55.nodeValue;
};
function _56(_57){
var fc=_57.firstChild;
while(fc&&fc.nodeType!==1){
fc=fc.nextSibling;
}
return fc;
};
function _58(_59,_5a,_5b){
if(_5b&&_59&&_5a&&_5a.length>0){
_1c(_5a,function(p){
if(_59.name==p.name&&_59.nsuri==p.nsuri){
_5b(p.value);
return F;
}
});
}
};
function _30(e,_5c){
var k=e?e.keyCode:null;
if(k){
if(_5c){
var r=_5c.indexOf(k)>=0;
return r;
}else{
return F;
}
}
return T;
};
function _5d(){
return wpModules.toolbar.getViewAreaWindow();
};
function _4b(){
var r=_5d().ibmCfg.portalConfig.currentPageOID;
return r;
};
function _5e(){
return _1e("ibmCfg.portalConfig.isCurrentPageEditable",false,_5d());
};
function _36(){
return _1e("wpModules.state.page.supportsToolbar",false,_5d());
};
function _40(id){
wpModules.toolbar.loadViewArea("nm:oid:"+id);
};
function _5f(_60){
if(_60&&_60.pageId){
var id=_60.pageId;
if(id&&id.value&&id.value.length>0){
_40(id.value[0]);
}
}
};
i$.addOnLoad(function(){
var _61=i$.fromPath("wpModules.state.page",false);
if(_61){
var _62=_61.getStateManager();
_62.addListener(function(_63){
var _64=_63.renderParams().getModified();
_58({"nsuri":_b,"name":"editMode"},_64,function(_65){
var res=(_65&&_65[0]=="true"),_66=_18(_e);
if(_66){
_20(_66,res);
}
});
_58({"nsuri":_b,"name":"infoMode"},_64,function(_67){
var res=(_67&&_67[0]=="true"),_68=_18(_c);
if(_68){
_29(_68,res);
}
});
});
}
var _69=wpModules.toolbar.getViewAreaWindow();
if(self===_69){
var w=_69.parent||_69,_6a=w.document.getElementById(_e);
if(_6a){
if(_5e()){
_1b(_6a,_9);
}else{
_1a(_6a,_9);
}
}
var _6b=w.document.getElementById(_10);
if(_6b){
if(_36()){
_1b(_6b,_9);
}else{
_1a(_6b,_9);
}
}
}
var _6c=_18(_11);
if(_6c){
var _6d=wpModules.toolbar;
_6c.onClose=_5f;
if(_6d.isToolbarOpened()||_18(_e)){
var _6e={};
_6e.id=_11;
_6e.key="onClose";
_1f(_6c,"click",function(e){
_6d.openToolbar({"primaryTab":"siteManagerTreeTab:context:oid:"+_4b()+":default:action:CREATE_CHILD_PAGE","onCloseDialog":_6e});
e.preventDefault?e.preventDefault():e.returnValue=F;
return F;
});
}
}
});
wpModules.a11y.highContrastMode.then(function(_6f){
if(_6f){
_1a(_18(_c),_a);
}
});
_1.toggleToolbar=_2e;
_1.toggleEditMode=_32;
_1.toggleInfoMode=_38;
_1.openSitesMenu=_3b;
_1.openApplicationsMenu=_41;
_1.openAdministration=_44;
})(i$.fromPath("wpModules.theme.ActionBar",true));


}catch(e){console.log("Module 'wp_toolbar_actionbar': ",e);}
try{!function(t,e){"function"==typeof define&&define.amd?define("no-ui-slider",[],function(){t.noUiSlider=e()}):"object"==typeof exports?module.exports=e():t.noUiSlider=e()}(this,function(){"use strict";function t(t){return"object"==typeof t&&"function"==typeof t.to&&"function"==typeof t.from}function e(t){t.parentElement.removeChild(t)}function r(t){t.preventDefault()}function n(t){return t.filter(function(t){return!this[t]&&(this[t]=!0)},{})}function i(t,e){return Math.round(t/e)*e}function o(t,e){var r=t.getBoundingClientRect(),n=t.ownerDocument,i=n.documentElement,o=h(n);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(o.x=0),e?r.top+o.y-i.clientTop:r.left+o.x-i.clientLeft}function s(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function a(t,e,r){r>0&&(f(t,e),setTimeout(function(){p(t,e)},r))}function l(t){return Math.max(Math.min(t,100),0)}function u(t){return Array.isArray(t)?t:[t]}function c(t){t=String(t);var e=t.split(".");return e.length>1?e[1].length:0}function f(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function p(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function d(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function h(t){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:r?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:r?t.documentElement.scrollTop:t.body.scrollTop}}function m(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function g(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}function v(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function b(t,e){return 100/(e-t)}function S(t,e){return 100*e/(t[1]-t[0])}function w(t,e){return S(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}function x(t,e){return e*(t[1]-t[0])/100+t[0]}function y(t,e){for(var r=1;t>=e[r];)r+=1;return r}function E(t,e,r){if(r>=t.slice(-1)[0])return 100;var n,i,o,s,a=y(r,t);return n=t[a-1],i=t[a],o=e[a-1],s=e[a],o+w([n,i],r)/b(o,s)}function C(t,e,r){if(r>=100)return t.slice(-1)[0];var n,i,o,s,a=y(r,e);return n=t[a-1],i=t[a],o=e[a-1],s=e[a],x([n,i],(r-o)*b(o,s))}function N(t,e,r,n){if(100===n)return n;var o,s,a=y(n,t);return r?(o=t[a-1],s=t[a],n-o>(s-o)/2?s:o):e[a-1]?t[a-1]+i(n-t[a-1],e[a-1]):n}function U(t,e,r){var n;if("number"==typeof e&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(e))throw new Error("noUiSlider ("+Q+"): 'range' contains invalid value.");if(n="min"===t?0:"max"===t?100:parseFloat(t),!s(n)||!s(e[0]))throw new Error("noUiSlider ("+Q+"): 'range' value isn't numeric.");r.xPct.push(n),r.xVal.push(e[0]),n?r.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(r.xSteps[0]=e[1]),r.xHighestCompleteStep.push(0)}function P(t,e,r){if(!e)return!0;r.xSteps[t]=S([r.xVal[t],r.xVal[t+1]],e)/b(r.xPct[t],r.xPct[t+1]);var n=(r.xVal[t+1]-r.xVal[t])/r.xNumSteps[t],i=Math.ceil(Number(n.toFixed(3))-1),o=r.xVal[t]+r.xNumSteps[t]*i;r.xHighestCompleteStep[t]=o}function A(t,e,r){this.xPct=[],this.xVal=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var n,i=[];for(n in t)t.hasOwnProperty(n)&&i.push([t[n],n]);for(i.length&&"object"==typeof i[0][0]?i.sort(function(t,e){return t[0][0]-e[0][0]}):i.sort(function(t,e){return t[0]-e[0]}),n=0;n<i.length;n++)U(i[n][1],i[n][0],this);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)P(n,this.xNumSteps[n],this)}function M(e){if(t(e))return!0;throw new Error("noUiSlider ("+Q+"): 'format' requires 'to' and 'from' methods.")}function O(t,e){if(!s(e))throw new Error("noUiSlider ("+Q+"): 'step' is not numeric.");t.singleStep=e}function k(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider ("+Q+"): 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider ("+Q+"): Missing 'min' or 'max' in 'range'.");if(e.min===e.max)throw new Error("noUiSlider ("+Q+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new A(e,t.snap,t.singleStep)}function V(t,e){if(e=u(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider ("+Q+"): 'start' option is incorrect.");t.handles=e.length,t.start=e}function F(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider ("+Q+"): 'snap' option must be a boolean.")}function L(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider ("+Q+"): 'animate' option must be a boolean.")}function z(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider ("+Q+"): 'animationDuration' option must be a number.")}function j(t,e){var r,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r<t.handles;r++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider ("+Q+"): 'connect' option doesn't match handle count.");n=e}t.connect=n}function H(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider ("+Q+"): 'orientation' option is invalid.")}}function D(t,e){if(!s(e))throw new Error("noUiSlider ("+Q+"): 'margin' option must be numeric.");if(0!==e&&(t.margin=t.spectrum.getMargin(e),!t.margin))throw new Error("noUiSlider ("+Q+"): 'margin' option is only supported on linear sliders.")}function q(t,e){if(!s(e))throw new Error("noUiSlider ("+Q+"): 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(e),!t.limit||t.handles<2)throw new Error("noUiSlider ("+Q+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function T(t,e){if(!s(e))throw new Error("noUiSlider ("+Q+"): 'padding' option must be numeric.");if(0!==e){if(t.padding=t.spectrum.getMargin(e),!t.padding)throw new Error("noUiSlider ("+Q+"): 'padding' option is only supported on linear sliders.");if(t.padding<0)throw new Error("noUiSlider ("+Q+"): 'padding' option must be a positive number.");if(t.padding>=50)throw new Error("noUiSlider ("+Q+"): 'padding' option must be less than half the range.")}}function R(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+Q+"): 'direction' option was not recognized.")}}function B(t,e){if("string"!=typeof e)throw new Error("noUiSlider ("+Q+"): 'behaviour' must be a string containing options.");var r=e.indexOf("tap")>=0,n=e.indexOf("drag")>=0,i=e.indexOf("fixed")>=0,o=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0;if(i){if(2!==t.handles)throw new Error("noUiSlider ("+Q+"): 'fixed' behaviour must be used with 2 handles");D(t,t.start[1]-t.start[0])}t.events={tap:r||o,drag:n,fixed:i,snap:o,hover:s}}function X(t,e){if(!1!==e)if(!0===e){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(!0)}else{if(t.tooltips=u(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider ("+Q+"): must pass a formatter for all handles.");t.tooltips.forEach(function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider ("+Q+"): 'tooltips' must be passed a formatter or 'false'.")})}}function Y(t,e){t.ariaFormat=e,M(e)}function I(t,e){t.format=e,M(e)}function _(t,e){if(void 0!==e&&"string"!=typeof e&&!1!==e)throw new Error("noUiSlider ("+Q+"): 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function W(t,e){if(void 0!==e&&"object"!=typeof e)throw new Error("noUiSlider ("+Q+"): 'cssClasses' must be an object.");if("string"==typeof t.cssPrefix){t.cssClasses={};for(var r in e)e.hasOwnProperty(r)&&(t.cssClasses[r]=t.cssPrefix+e[r])}else t.cssClasses=e}function $(t,e){if(!0!==e&&!1!==e)throw new Error("noUiSlider ("+Q+"): 'useRequestAnimationFrame' option should be true (default) or false.");t.useRequestAnimationFrame=e}function G(t){var e={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:Z,format:Z},r={step:{r:!1,t:O},start:{r:!0,t:V},connect:{r:!0,t:j},direction:{r:!0,t:R},snap:{r:!1,t:F},animate:{r:!1,t:L},animationDuration:{r:!1,t:z},range:{r:!0,t:k},orientation:{r:!1,t:H},margin:{r:!1,t:D},limit:{r:!1,t:q},padding:{r:!1,t:T},behaviour:{r:!0,t:B},ariaFormat:{r:!1,t:Y},format:{r:!1,t:I},tooltips:{r:!1,t:X},cssPrefix:{r:!1,t:_},cssClasses:{r:!1,t:W},useRequestAnimationFrame:{r:!1,t:$}},n={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(r).forEach(function(i){if(void 0===t[i]&&void 0===n[i]){if(r[i].r)throw new Error("noUiSlider ("+Q+"): '"+i+"' is required.");return!0}r[i].t(e,void 0===t[i]?n[i]:t[i])}),e.pips=t.pips;var i=[["left","top"],["right","bottom"]];return e.style=i[e.dir][e.ort],e.styleOposite=i[e.dir?0:1][e.ort],e}function J(t,i,s){function c(t,e){var r=bt.createElement("div");return e&&f(r,e),t.appendChild(r),r}function b(t,e){var r=c(t,i.cssClasses.origin),n=c(r,i.cssClasses.handle);return n.setAttribute("data-handle",e),n.setAttribute("tabindex","0"),n.setAttribute("role","slider"),n.setAttribute("aria-orientation",i.ort?"vertical":"horizontal"),0===e?f(n,i.cssClasses.handleLower):e===i.handles-1&&f(n,i.cssClasses.handleUpper),r}function S(t,e){return!!e&&c(t,i.cssClasses.connect)}function w(t,e){return!!i.tooltips[e]&&c(t.firstChild,i.cssClasses.tooltip)}function x(t,e,r){if("range"===t||"steps"===t)return ht.xVal;if("count"===t){if(!e)throw new Error("noUiSlider ("+Q+"): 'values' required for mode 'count'.");var n,i=100/(e-1),o=0;for(e=[];(n=o++*i)<=100;)e.push(n);t="positions"}return"positions"===t?e.map(function(t){return ht.fromStepping(r?ht.getStep(t):t)}):"values"===t?r?e.map(function(t){return ht.fromStepping(ht.getStep(ht.toStepping(t)))}):e:void 0}function y(t,e,r){function i(t,e){return(t+e).toFixed(7)/1}var o={},s=ht.xVal[0],a=ht.xVal[ht.xVal.length-1],l=!1,u=!1,c=0;return r=n(r.slice().sort(function(t,e){return t-e})),r[0]!==s&&(r.unshift(s),l=!0),r[r.length-1]!==a&&(r.push(a),u=!0),r.forEach(function(n,s){var a,f,p,d,h,m,g,v,b,S,w=n,x=r[s+1];if("steps"===e&&(a=ht.xNumSteps[s]),a||(a=x-w),!1!==w&&void 0!==x)for(a=Math.max(a,1e-7),f=w;f<=x;f=i(f,a)){for(d=ht.toStepping(f),h=d-c,v=h/t,b=Math.round(v),S=h/b,p=1;p<=b;p+=1)m=c+p*S,o[m.toFixed(5)]=["x",0];g=r.indexOf(f)>-1?1:"steps"===e?2:0,!s&&l&&(g=0),f===x&&u||(o[d.toFixed(5)]=[f,g]),c=d}}),o}function E(t,e,r){function n(t,e){var r=e===i.cssClasses.value,n=r?u:p,o=r?a:l;return e+" "+n[i.ort]+" "+o[t]}function o(t,o){o[1]=o[1]&&e?e(o[0],o[1]):o[1];var a=c(s,!1);a.className=n(o[1],i.cssClasses.marker),a.style[i.style]=t+"%",o[1]&&(a=c(s,!1),a.className=n(o[1],i.cssClasses.value),a.style[i.style]=t+"%",a.innerText=r.to(o[0]))}var s=bt.createElement("div"),a=[i.cssClasses.valueNormal,i.cssClasses.valueLarge,i.cssClasses.valueSub],l=[i.cssClasses.markerNormal,i.cssClasses.markerLarge,i.cssClasses.markerSub],u=[i.cssClasses.valueHorizontal,i.cssClasses.valueVertical],p=[i.cssClasses.markerHorizontal,i.cssClasses.markerVertical];return f(s,i.cssClasses.pips),f(s,0===i.ort?i.cssClasses.pipsHorizontal:i.cssClasses.pipsVertical),Object.keys(t).forEach(function(e){o(e,t[e])}),s}function C(){st&&(e(st),st=null)}function N(t){C();var e=t.mode,r=t.density||1,n=t.filter||!1,i=t.values||!1,o=t.stepped||!1,s=x(e,i,o),a=y(r,e,s),l=t.format||{to:Math.round};return st=ct.appendChild(E(a,n,l))}function U(){var t=rt.getBoundingClientRect(),e="offset"+["Width","Height"][i.ort];return 0===i.ort?t.width||rt[e]:t.height||rt[e]}function P(t,e,r,n){var o=function(e){return!ct.hasAttribute("disabled")&&(!d(ct,i.cssClasses.tap)&&(!!(e=A(e,n.pageOffset))&&(!(t===at.start&&void 0!==e.buttons&&e.buttons>1)&&((!n.hover||!e.buttons)&&(ut||e.preventDefault(),e.calcPoint=e.points[i.ort],void r(e,n))))))},s=[];return t.split(" ").forEach(function(t){e.addEventListener(t,o,!!ut&&{passive:!0}),s.push([t,o])}),s}function A(t,e){var r,n,i=0===t.type.indexOf("touch"),o=0===t.type.indexOf("mouse"),s=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(s=!0),i){if(t.touches.length>1)return!1;r=t.changedTouches[0].pageX,n=t.changedTouches[0].pageY}return e=e||h(bt),(o||s)&&(r=t.clientX+e.x,n=t.clientY+e.y),t.pageOffset=e,t.points=[r,n],t.cursor=o||s,t}function M(t){var e=t-o(rt,i.ort),r=100*e/U();return i.dir?100-r:r}function O(t){var e=100,r=!1;return nt.forEach(function(n,i){if(!n.hasAttribute("disabled")){var o=Math.abs(ft[i]-t);o<e&&(r=i,e=o)}}),r}function k(t,e,r,n){var i=r.slice(),o=[!t,t],s=[t,!t];n=n.slice(),t&&n.reverse(),n.length>1?n.forEach(function(t,r){var n=q(i,t,i[t]+e,o[r],s[r],!1);!1===n?e=0:(e=n-i[t],i[t]=n)}):o=s=[!0];var a=!1;n.forEach(function(t,n){a=X(t,r[t]+e,o[n],s[n])||a}),a&&n.forEach(function(t){V("update",t),V("slide",t)})}function V(t,e,r){Object.keys(gt).forEach(function(n){var o=n.split(".")[0];t===o&&gt[n].forEach(function(t){t.call(ot,mt.map(i.format.to),e,mt.slice(),r||!1,ft.slice())})})}function F(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&z(t,e)}function L(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return z(t,e);var r=(i.dir?-1:1)*(t.calcPoint-e.startCalcPoint);k(r>0,100*r/e.baseSize,e.locations,e.handleNumbers)}function z(t,e){dt&&(p(dt,i.cssClasses.active),dt=!1),t.cursor&&(wt.style.cursor="",wt.removeEventListener("selectstart",r)),vt.forEach(function(t){St.removeEventListener(t[0],t[1])}),p(ct,i.cssClasses.drag),B(),e.handleNumbers.forEach(function(t){V("change",t),V("set",t),V("end",t)})}function j(t,e){if(1===e.handleNumbers.length){var n=nt[e.handleNumbers[0]];if(n.hasAttribute("disabled"))return!1;dt=n.children[0],f(dt,i.cssClasses.active)}t.stopPropagation();var o=P(at.move,St,L,{startCalcPoint:t.calcPoint,baseSize:U(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:ft.slice()}),s=P(at.end,St,z,{handleNumbers:e.handleNumbers}),a=P("mouseout",St,F,{handleNumbers:e.handleNumbers});vt=o.concat(s,a),t.cursor&&(wt.style.cursor=getComputedStyle(t.target).cursor,nt.length>1&&f(ct,i.cssClasses.drag),wt.addEventListener("selectstart",r,!1)),e.handleNumbers.forEach(function(t){V("start",t)})}function H(t){t.stopPropagation();var e=M(t.calcPoint),r=O(e);if(!1===r)return!1;i.events.snap||a(ct,i.cssClasses.tap,i.animationDuration),X(r,e,!0,!0),B(),V("slide",r,!0),V("update",r,!0),V("change",r,!0),V("set",r,!0),i.events.snap&&j(t,{handleNumbers:[r]})}function D(t){var e=M(t.calcPoint),r=ht.getStep(e),n=ht.fromStepping(r);Object.keys(gt).forEach(function(t){"hover"===t.split(".")[0]&&gt[t].forEach(function(t){t.call(ot,n)})})}function q(t,e,r,n,o,s){return nt.length>1&&(n&&e>0&&(r=Math.max(r,t[e-1]+i.margin)),o&&e<nt.length-1&&(r=Math.min(r,t[e+1]-i.margin))),nt.length>1&&i.limit&&(n&&e>0&&(r=Math.min(r,t[e-1]+i.limit)),o&&e<nt.length-1&&(r=Math.max(r,t[e+1]-i.limit))),i.padding&&(0===e&&(r=Math.max(r,i.padding)),e===nt.length-1&&(r=Math.min(r,100-i.padding))),r=ht.getStep(r),!((r=l(r))===t[e]&&!s)&&r}function T(t){return t+"%"}function R(t,e){ft[t]=e,mt[t]=ht.fromStepping(e);var r=function(){nt[t].style[i.style]=T(e),Y(t),Y(t+1)};window.requestAnimationFrame&&i.useRequestAnimationFrame?window.requestAnimationFrame(r):r()}function B(){pt.forEach(function(t){var e=ft[t]>50?-1:1,r=3+(nt.length+e*t);nt[t].childNodes[0].style.zIndex=r})}function X(t,e,r,n){return!1!==(e=q(ft,t,e,r,n,!1))&&(R(t,e),!0)}function Y(t){if(it[t]){var e=0,r=100;0!==t&&(e=ft[t-1]),t!==it.length-1&&(r=ft[t]),it[t].style[i.style]=T(e),it[t].style[i.styleOposite]=T(100-r)}}function I(t,e){null!==t&&!1!==t&&("number"==typeof t&&(t=String(t)),!1===(t=i.format.from(t))||isNaN(t)||X(e,ht.toStepping(t),!1,!1))}function _(t,e){var r=u(t),n=void 0===ft[0];e=void 0===e||!!e,r.forEach(I),i.animate&&!n&&a(ct,i.cssClasses.tap,i.animationDuration),pt.forEach(function(t){X(t,ft[t],!0,!1)}),B(),pt.forEach(function(t){V("update",t),null!==r[t]&&e&&V("set",t)})}function W(t){_(i.start,t)}function $(){var t=mt.map(i.format.to);return 1===t.length?t[0]:t}function J(){for(var t in i.cssClasses)i.cssClasses.hasOwnProperty(t)&&p(ct,i.cssClasses[t]);for(;ct.firstChild;)ct.removeChild(ct.firstChild);delete ct.noUiSlider}function K(){return ft.map(function(t,e){var r=ht.getNearbySteps(t),n=mt[e],i=r.thisStep.step,o=null;!1!==i&&n+i>r.stepAfter.startValue&&(i=r.stepAfter.startValue-n),o=n>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&n-r.stepBefore.highestStep,100===t?i=null:0===t&&(o=null);var s=ht.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(s))),null!==o&&!1!==o&&(o=Number(o.toFixed(s))),[o,i]})}function Z(t,e){gt[t]=gt[t]||[],gt[t].push(e),"update"===t.split(".")[0]&&nt.forEach(function(t,e){V("update",e)})}function tt(t){var e=t&&t.split(".")[0],r=e&&t.substring(e.length);Object.keys(gt).forEach(function(t){var n=t.split(".")[0],i=t.substring(n.length);e&&e!==n||r&&r!==i||delete gt[t]})}function et(t,e){var r=$(),n=["margin","limit","padding","range","animate","snap","step","format"];n.forEach(function(e){void 0!==t[e]&&(s[e]=t[e])});var o=G(s);n.forEach(function(e){void 0!==t[e]&&(i[e]=o[e])}),ht=o.spectrum,i.margin=o.margin,i.limit=o.limit,i.padding=o.padding,i.pips&&N(i.pips),ft=[],_(t.start||r,e)}var rt,nt,it,ot,st,at=m(),lt=v(),ut=lt&&g(),ct=t,ft=[],pt=[],dt=!1,ht=i.spectrum,mt=[],gt={},vt=null,bt=t.ownerDocument,St=bt.documentElement,wt=bt.body;if(ct.noUiSlider)throw new Error("noUiSlider ("+Q+"): Slider was already initialized.");return function(t){f(t,i.cssClasses.target),0===i.dir?f(t,i.cssClasses.ltr):f(t,i.cssClasses.rtl),0===i.ort?f(t,i.cssClasses.horizontal):f(t,i.cssClasses.vertical),rt=c(t,i.cssClasses.base)}(ct),function(t,e){nt=[],it=[],it.push(S(e,t[0]));for(var r=0;r<i.handles;r++)nt.push(b(e,r)),pt[r]=r,it.push(S(e,t[r+1]))}(i.connect,rt),ot={destroy:J,steps:K,on:Z,off:tt,get:$,set:_,reset:W,__moveHandles:function(t,e,r){k(t,e,ft,r)},options:s,updateOptions:et,target:ct,removePips:C,pips:N},function(t){t.fixed||nt.forEach(function(t,e){P(at.start,t.children[0],j,{handleNumbers:[e]})}),t.tap&&P(at.start,rt,H,{}),t.hover&&P(at.move,rt,D,{hover:!0}),t.drag&&it.forEach(function(e,r){if(!1!==e&&0!==r&&r!==it.length-1){var n=nt[r-1],o=nt[r],s=[e];f(e,i.cssClasses.draggable),t.fixed&&(s.push(n.children[0]),s.push(o.children[0])),s.forEach(function(t){P(at.start,t,j,{handles:[n,o],handleNumbers:[r-1,r]})})}})}(i.events),_(i.start),i.pips&&N(i.pips),i.tooltips&&function(){var t=nt.map(w);Z("update",function(e,r,n){if(t[r]){var o=e[r];!0!==i.tooltips[r]&&(o=i.tooltips[r].to(n[r])),t[r].innerHTML=o}})}(),function(){Z("update",function(t,e,r,n,o){pt.forEach(function(t){var e=nt[t],n=q(ft,t,0,!0,!0,!0),s=q(ft,t,100,!0,!0,!0),a=o[t],l=i.ariaFormat.to(r[t]);e.children[0].setAttribute("aria-valuemin",n.toFixed(1)),e.children[0].setAttribute("aria-valuemax",s.toFixed(1)),e.children[0].setAttribute("aria-valuenow",a.toFixed(1)),e.children[0].setAttribute("aria-valuetext",l)})})}(),ot}function K(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider ("+Q+"): create requires a single element, got: "+t);var r=G(e,t),n=J(t,r,e);return t.noUiSlider=n,n}var Q="10.0.0";A.prototype.getMargin=function(t){var e=this.xNumSteps[0];if(e&&t/e%1!=0)throw new Error("noUiSlider ("+Q+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&S(this.xVal,t)},A.prototype.toStepping=function(t){return t=E(this.xVal,this.xPct,t)},A.prototype.fromStepping=function(t){return C(this.xVal,this.xPct,t)},A.prototype.getStep=function(t){return t=N(this.xPct,this.xSteps,this.snap,t)},A.prototype.getNearbySteps=function(t){var e=y(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},A.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(c);return Math.max.apply(null,t)},A.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var Z={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};return{version:Q,create:K}});
}catch(e){console.log("Module 'nouislider-10.0.0': ",e);}
try{"use strict";!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(e,require("jquery-utils-1.0.0"),require("no-ui-slider")):"function"==typeof define&&define.amd?define("noUiSlider",["jquery-utils-1.0.0","no-ui-slider"],function(t,n){return i(e,t,n)}):i(e,e.jQuery,e.noUiSlider)}(this,function(e,i,t,n){e&&i&&t&&i(function(){i(".slider").each(function(e,n){var r=i(n),a=i.extend({start:[0],padding:0,step:1,direction:"ltr",orientation:"horizontal",behaviour:"tap-drag",margin:1,connect:!0,rangeMin:0,rangeMax:100},r.data());!i.isEmpty(a.limit)&&!i.isEmpty(a.start)&&a.start.length<=1&&delete a.limit,i.isEmpty(a.pipsMode)||i.extend(a,{pips:{mode:a.pipsMode,density:a.pipsDensity}}),i.isEmpty(a.rangeMin)||i.isEmpty(a.rangeMax)||i.extend(a,{range:{min:a.rangeMin,max:a.rangeMax}}),i.extend(a,{start:function(e){return Array.prototype.slice.call(e).map(function(e){return i.isNumeric(e.value)?Number(e.value):e.value}).filter(function(e){return i.isNumeric(e)})}(i("> input",n))}),t.create(n,a).on("change",function(e,t){i(this.target.children[t]).val(e[t])})})})});
}catch(e){console.log("Module 'nouislider-10.0.0': ",e);}
try{if(typeof (wpModules.toolbar)=="undefined"){
wpModules.toolbar={};
}
if(typeof (wpModules.toolbar.menuActions)=="undefined"){
wpModules.toolbar.menuActions={};
}


}catch(e){console.log("Module 'wp_toolbar_menuactions': ",e);}
try{(function(){
    i$.merge({
	"move_page_dialog_title":"Бетті '{0}' келесіге көшіру...",
	"edit_wiring_dialog_title":"'{0}' үшін Байланыс соңғы нүктелерін басқару",
	"confirm_delete_page_anonymous":"Бұл бетті және оның барлық еншілестерін шынымен жою керек пе?",
	"delete_control_dialog_title":"Портлет жою",
	"confirm_delete_page":"'{0}' бетін және барлық оның еншілестерін жоюға сенімдісіз бе?",
	"confirm_delete_control_anonymous":"Осы портлетті беттен жоюға сенімдісіз бе?",
	"page_properties_dialog_title":"Бет сипаттарын басқару",
	"delete_page_dialog_title":"Бетті жою",
	"edit_wiring_dialog_title_anonymous":"Байланыс соңғы нүктелерін басқару",
	"preview_as_user_dialog_title":"Пайдаланушы ретінде Алдын ала қарау",
	"confirm_delete_control":"'{0}' портлетті беттен жоюға сенімдісіз бе?"
},i$.fromPath("wpModules.toolbar.menuActions.nls",true));
})();
}catch(e){console.log("Module 'wp_toolbar_menuactions': ",e);}
try{(function(_1,_2){
var _3="?uri=pagemode:edit:off&uri=op:ibm.portal.operations.showPreviewScreen()&returnURI=dialog:CloseModalDialog",_4={"then":function(){
}},_5=i$.fromPath,_1=_1,_6=_1.document,_7=wpModules.toolbar,_8=_2,_9=function(_a){
var _b=_3,_c=_d("preview_as_user_dialog_title")||"Preview as User",_e={"url":_b,"title":_c,"modal":true,"autoResize":true,"window":_1.parent||_1,"callbackFn":function(_f){
if(_f){
var _10=get(_f,"action");
if(_10=="ok"){
var _11=get(_f,"userID"),_12=get(_f,"path");
_13(_11,_12);
}
}
}},_14=new wpModules.dialog.Dialog(_e);
_14.open();
var r=_4;
return r;
},_13=function(_15,_16){
var url=_7.getBaseURL(_17());
url=url.replace(_16,_16+_15);
url+=url.indexOf("?")<0?"?":"&";
url+="uri=toolbar:close&uri=pagemode:edit:off";
top.location.href=url;
},_18=function(_19){
var r=_19.visibility!==false;
return r;
},_1a=function(_1b){
var r=_1c();
return r;
},_1c=function(){
var r=_5("ibmCfg.portalConfig.canAnonymousUserViewCurrentPage",false,_17());
return r;
},_17=function(){
var r=_7.getViewAreaWindow();
return r;
},_1d=function(_1e){
return {"then":function(cb){
cb(_1e);
}};
},_d=function(key){
var r=_8.nls[key];
return r;
},get=function(obj,key){
var o=obj[key],r=null;
if(o){
var v=o.value;
if(v&&v.length>0){
r=v[0];
}
}
return r;
};
_8.openPreviewAsUserDialog=_9;
_8.isPreviewAsUnauthenticatedUserVisible=_18;
_8.isPreviewAsUnauthenticatedUserEnabled=_1a;
})(window,i$.fromPath("wpModules.toolbar.menuActions",true));


}catch(e){console.log("Module 'wp_toolbar_sitepreview_menuactions': ",e);}
try{(function(){
if(typeof ic4_wai_integration!="undefined"&&ic4_wai_integration===true){
if(typeof waiHideSecondaryNav!="undefined"&&waiHideSecondaryNav===true){
document.getElementById("wpthemeSecondaryBanner").style.display="none";
document.getElementById("wpthemeMainContent").style.display="none";
}
document.getElementById("wptheme_banner").removeAttribute("role");
document.getElementById("wptheme_contentinfo").removeAttribute("role");
if(dojo!="undefined"){
djConfig.locale=dojo.locale;
dojo.addOnLoad(function(){
document.getElementById("logoutlink").onclick=null;
});
}
if(typeof appName!="undefined"&&appName==="profile"){
ibmConfig.proxyURL=svcHrefProfiles+"/ajaxProxy/";
ibmConfig["com.ibm.mashups.proxy.url"]=svcHrefProfiles+"/ajaxProxy";
djConfig.baseUrl=(needProxy?(ibmConfig.proxyURL+encodeURIComponent(baseProtocol)+"/"+encodeURIComponent(baseHost)):(baseProtocol+"://"+baseHost))+basePath+"/web/dojo/";
djConfig.proxy=applicationContext+"/ajaxProxy";
}
if(typeof i$!="undefined"&&i$.isRTL){
document.body.className=document.body.className.replace("lotusImagesOff","");
document.body.className+=" wptheme_ic4_wai_rtl";
}
}
})();


}catch(e){console.log("Module 'wp_ic4_wai_resources': ",e);}
try{!function(e,t){"function"==typeof define&&define.amd?define("photo-swipe-ui-4.1.0",function(n){return e.PhotoSwipeUI_Default=t(n),e.PhotoSwipeUI_Default}):"object"==typeof exports?module.exports=t(require("jquery-3.1.1")):e.PhotoSwipeUI_Default=t(e.jQuery)}(this,function(e){"use strict";return function(e,t){var n,o,l,r,i,s,a,u,c,p,d,m,f,h,w,v,g=this,_=!1,T=!0,I=!0,b={barsSize:{top:44,bottom:"auto"},closeElClasses:["item","caption","zoom-wrap","ui","top-bar"],timeToIdle:4e3,timeToIdleOutside:1e3,loadingIndicatorDelay:1e3,addCaptionHTMLFn:function(e,t){return e.title?(t.children[0].innerHTML=e.title,!0):(t.children[0].innerHTML="",!1)},closeEl:!0,captionEl:!0,fullscreenEl:!0,zoomEl:!0,shareEl:!0,counterEl:!0,arrowEl:!0,preloaderEl:!0,urlEl:!0,tapToClose:!1,tapToToggleControls:!0,clickToCloseNonZoomable:!0,getImageURLForShare:function(){return e.currItem.src||""},getPageURLForShare:function(){return window.location.href},getTextForShare:function(){return e.currItem.title||""},indexIndicatorSep:" / "},E=function(e){if(f)return!0;e=e||window.event,m.timeToIdle&&m.mouseUsed&&!u&&O();for(var n,o,l=e.target||e.srcElement,r=l.className,i=0;i<M.length;i++)n=M[i],n.onTap&&r.indexOf("pswp__"+n.name)>-1&&(n.onTap(e.target),o=!0);if(o){e.stopPropagation&&e.stopPropagation(),f=!0;var s=t.features.isOldAndroid?600:30;h=setTimeout(function(){f=!1},s)}},C=function(e,n,o){t[(o?"add":"remove")+"Class"](e,"pswp__"+n)},F=function(){var e=1===m.getNumItemsFn();e!==d&&(C(o,"ui--one-slide",e),d=e)},x=function(){C(s,"share-modal--hidden",I)},S=function(){return I=!I,I?(t.removeClass(s,"pswp__share-modal--fade-in"),setTimeout(function(){I&&x()},300)):(x(),setTimeout(function(){I||t.addClass(s,"pswp__share-modal--fade-in")},30)),I||y(),!1},K=function(t){t=t||window.event;var n=t.target||t.srcElement;return e.shout("shareLinkClick",t,n),!!n.href&&(!!n.hasAttribute("download")||(window.open(n.href,"pswp_share","scrollbars=yes,resizable=yes,toolbar=no,location=yes,width=550,height=420,top=100,left="+(window.screen?Math.round(screen.width/2-275):100)),I||S(),!1))},y=function(){var e=m.getImageURLForShare(),t=m.getPageURLForShare(),n=m.getTextForShare();Array.prototype.slice.call(document.querySelectorAll(".pswp__share-modal a")).forEach(function(o){o.hasAttribute("data-pswp-tm-href")&&o.setAttribute("href",o.getAttribute("data-pswp-tm-href").replace("{{url}}",encodeURIComponent(t)).replace("{{image_url}}",encodeURIComponent(e)).replace("{{raw_image_url}}",e).replace("{{text}}",encodeURIComponent(n)))}),s.children[0].onclick=K},A=function(e){for(var n=0;n<m.closeElClasses.length;n++)if(t.hasClass(e,"pswp__"+m.closeElClasses[n]))return!0},L=0,O=function(){clearTimeout(v),L=0,u&&g.setIdle(!1)},k=function(e){e=e||window.event;var t=e.relatedTarget||e.toElement;t&&"HTML"!==t.nodeName||(clearTimeout(v),v=setTimeout(function(){g.setIdle(!0)},m.timeToIdleOutside))},R=function(){m.fullscreenEl&&!t.features.isOldAndroid&&(n||(n=g.getFullscreenAPI()),n?(t.bind(document,n.eventK,g.updateFullscreen),g.updateFullscreen(),t.addClass(e.template,"pswp--supports-fs")):t.removeClass(e.template,"pswp--supports-fs"))},q=function(e){e.vGap.top=this.template.querySelectorAll(".pswp .pswp__top-bar")[0].offsetHeight||0,e.vGap.bottom=this.template.querySelectorAll(".pswp .pswp__caption")[0].offsetHeight||0},z=function(){m.timeToIdle&&c("mouseUsed",function(){t.bind(document,"mousemove",O),t.bind(document,"mouseout",k),w=setInterval(function(){2===++L&&g.setIdle(!0)},m.timeToIdle/2)})},D=function(){c("onVerticalDrag",function(e){T&&e<.95?g.hideControls():!T&&e>=.95&&g.showControls()});var e;c("onPinchClose",function(t){T&&t<.9?(g.hideControls(),e=!0):e&&!T&&t>.9&&g.showControls()}),c("zoomGestureEnded",function(){(e=!1)&&!T&&g.showControls()})},M=[{name:"caption",option:"captionEl",onInit:function(e){l=e}},{name:"share-modal",option:"shareEl",onInit:function(e){s=e},onTap:function(e){S()}},{name:"button--share",option:"shareEl",onInit:function(e){i=e},onTap:function(e){S()}},{name:"button--zoom",option:"zoomEl",onTap:e.toggleDesktopZoom},{name:"button--url",option:"urlEl",onInit:function(e){},onTap:function(e){}},{name:"counter",option:"counterEl",onInit:function(e){r=e}},{name:"button--close",option:"closeEl",onTap:e.close},{name:"button--arrow--left",option:"arrowEl",onTap:e.prev},{name:"button--arrow--right",option:"arrowEl",onTap:e.next},{name:"button--fs",option:"fullscreenEl",onTap:function(e){n.isFullscreen()?n.exit():n.enter()}},{name:"preloader",option:"preloaderEl",onInit:function(e){p=e}}],U=function(){var n,l,r,i=function(e){if(e)for(var o=e.length,i=0;i<o;i++){n=e[i],l=n.className;for(var s=0;s<M.length;s++)r=M[s],l.indexOf("pswp__"+r.name)>-1&&(m[r.option]?(t.removeClass(n,"pswp__element--disabled"),r.onInit&&r.onInit(n)):t.addClass(n,"pswp__element--disabled"))}};i(o.children);var s=e.template.querySelectorAll(".pswp__top-bar")[0];s&&i(s.children)};g.init=function(){t.extend(e.options,b,!0),m=e.options,o=e.template.querySelectorAll(".pswp__ui")[0],c=e.listen,D(),c("beforeChange",g.update),c("doubleTap",function(t){var n=e.currItem.initialZoomLevel;e.getZoomLevel()!==n?e.zoomTo(n,t,333):e.zoomTo(m.getDoubleTapZoom(!1,e.currItem),t,333)}),c("preventDragEvent",function(e,t,n){var o=e.target||e.srcElement;o&&o.className&&e.type.indexOf("mouse")>-1&&(o.className.indexOf("__caption")>0||/(SMALL|STRONG|EM)/i.test(o.tagName))&&(n.prevent=!1)}),c("bindEvents",function(){t.bind(o,"pswpTap click",E),t.bind(e.scrollWrap,"pswpTap",g.onGlobalTap),e.likelyTouchDevice||t.bind(e.scrollWrap,"mouseover",g.onMouseOver)}),c("unbindEvents",function(){I||S(),w&&clearInterval(w),t.unbind(document,"mouseout",k),t.unbind(document,"mousemove",O),t.unbind(o,"pswpTap click",E),t.unbind(e.scrollWrap,"pswpTap",g.onGlobalTap),t.unbind(e.scrollWrap,"mouseover",g.onMouseOver),n&&(t.unbind(document,n.eventK,g.updateFullscreen),n.isFullscreen()&&(m.hideAnimationDuration=0,n.exit()),n=null)}),c("destroy",function(){m.captionEl&&t.removeClass(l,"pswp__caption--empty"),s&&(s.children[0].onclick=null),t.removeClass(o,"pswp__ui--over-close"),t.addClass(o,"pswp__ui--hidden"),g.setIdle(!1)}),m.showAnimationDuration||t.removeClass(o,"pswp__ui--hidden"),c("initialZoomIn",function(){m.showAnimationDuration&&t.removeClass(o,"pswp__ui--hidden")}),c("initialZoomOut",function(){t.addClass(o,"pswp__ui--hidden")}),c("parseVerticalMargin",q),U(),m.shareEl&&i&&s&&(I=!0),F(),z(),R()},g.setIdle=function(e){u=e,C(o,"ui--idle",e)},g.update=function(){T&&e.currItem?(g.updateIndexIndicator(),m.captionEl&&(m.addCaptionHTMLFn(e.currItem,l),C(l,"caption--empty",!e.currItem.title)),e.currItem.loaded&&e.updateCurrDimention(),_=!0):_=!1,I||S(),F()},g.updateFullscreen=function(o){o&&setTimeout(function(){e.setScrollOffset(0,t.getScrollY())},50),t[(n.isFullscreen()?"add":"remove")+"Class"](e.template,"pswp--fs")},g.updateIndexIndicator=function(){m.counterEl&&(r.innerHTML=e.getCurrentIndex()+1+m.indexIndicatorSep+m.getNumItemsFn())},g.onGlobalTap=function(n){n=n||window.event;var o=n.target||n.srcElement;if(!f)if(n.detail&&"mouse"===n.detail.pointerType){if(A(o))return void e.close();t.hasClass(o,"pswp__img")&&(1===e.getZoomLevel()&&e.getZoomLevel()<=e.currItem.fitRatio||e.toggleDesktopZoom(n.detail.releasePoint))}else if(m.tapToToggleControls&&(T?g.hideControls():g.showControls()),m.tapToClose&&(t.hasClass(o,"pswp__img")||A(o)))return void e.close()},g.onMouseOver=function(e){e=e||window.event;var t=e.target||e.srcElement;C(o,"ui--over-close",A(t))},g.hideControls=function(){t.addClass(o,"pswp__ui--hidden"),T=!1},g.showControls=function(){T=!0,_||g.update(),t.removeClass(o,"pswp__ui--hidden")},g.supportsFullscreen=function(){var e=document;return!!(e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen)},g.getFullscreenAPI=function(){var t,n=document.documentElement,o="fullscreenchange";return n.requestFullscreen?t={enterK:"requestFullscreen",exitK:"exitFullscreen",elementK:"fullscreenElement",eventK:o}:n.mozRequestFullScreen?t={enterK:"mozRequestFullScreen",exitK:"mozCancelFullScreen",elementK:"mozFullScreenElement",eventK:"moz"+o}:n.webkitRequestFullscreen?t={enterK:"webkitRequestFullscreen",exitK:"webkitExitFullscreen",elementK:"webkitFullscreenElement",eventK:"webkit"+o}:n.msRequestFullscreen&&(t={enterK:"msRequestFullscreen",exitK:"msExitFullscreen",elementK:"msFullscreenElement",eventK:"MSFullscreenChange"}),t&&(t.enter=function(){if(a=m.closeOnScroll,m.closeOnScroll=!1,"webkitRequestFullscreen"!==this.enterK)return e.template[this.enterK]();e.template[this.enterK](Element.ALLOW_KEYBOARD_INPUT)},t.exit=function(){return m.closeOnScroll=a,document[this.exitK]()},t.isFullscreen=function(){return document[this.elementK]}),t}}});
}catch(e){console.log("Module 'photo-swipe-4.1.0': ",e);}
try{!function(e,t){"function"==typeof define&&define.amd?define("photo-swipe-4.1.0",function(n){return e.PhotoSwipe=t(n),e.PhotoSwipe}):"object"==typeof exports?module.exports=t(require("jquery-3.1.1")):e.PhotoSwipe=t(e.jQuery)}(this,function(e){"use strict";return function(e,t,n,i){var o={features:null,bind:function(e,t,n,i){var o=(i?"remove":"add")+"EventListener";t=t.split(" ");for(var a=0;a<t.length;a++)t[a]&&e[o](t[a],n,!1)},isArray:function(e){return e instanceof Array},createEl:function(e,t){var n=document.createElement(t||"div");return e&&(n.className=e),n},getScrollY:function(){var e=window.pageYOffset;return void 0!==e?e:document.documentElement.scrollTop},unbind:function(e,t,n){o.bind(e,t,n,!0)},removeClass:function(e,t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");try{e.className=e.className.replace(n," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}catch(e){}},addClass:function(e,t){o.hasClass(e,t)||(e.className+=(e.className?" ":"")+t)},hasClass:function(e,t){return e.className&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(e.className)},getChildByClass:function(e,t){for(var n=e.firstChild;n;){if(o.hasClass(n,t))return n;n=n.nextSibling}},arraySearch:function(e,t,n){for(var i=e.length;i--;)if(e[i][n]===t)return i;return-1},extend:function(e,t,n){for(var i in t)if(t.hasOwnProperty(i)){if(n&&e.hasOwnProperty(i))continue;e[i]=t[i]}},easing:{sine:{out:function(e){return Math.sin(e*(Math.PI/2))},inOut:function(e){return-(Math.cos(Math.PI*e)-1)/2}},cubic:{out:function(e){return--e*e*e+1}}},detectFeatures:function(){if(o.features)return o.features;var e=o.createEl(),t=e.style,n="",i={};if(i.oldIE=document.all&&!document.addEventListener,i.touch="ontouchstart"in window,window.requestAnimationFrame&&(i.raf=window.requestAnimationFrame,i.caf=window.cancelAnimationFrame),i.pointerEvent=navigator.pointerEnabled||navigator.msPointerEnabled,!i.pointerEvent){var a=navigator.userAgent;if(/iP(hone|od)/.test(navigator.platform)){var r=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);r&&r.length>0&&(r=parseInt(r[1],10))>=1&&r<8&&(i.isOldIOSPhone=!0)}var l=a.match(/Android\s([0-9\.]*)/),s=l?l[1]:0;s=parseFloat(s),s>=1&&(s<4.4&&(i.isOldAndroid=!0),i.androidVersion=s),i.isMobileOpera=/opera mini|opera mobi/i.test(a)}for(var u,c,d=["transform","perspective","animationName"],p=["","webkit","Moz","ms","O"],m=0;m<4;m++){n=p[m];for(var f=0;f<3;f++)u=d[f],c=n+(n?u.charAt(0).toUpperCase()+u.slice(1):u),!i[u]&&c in t&&(i[u]=c);n&&!i.raf&&(n=n.toLowerCase(),i.raf=window[n+"RequestAnimationFrame"],i.raf&&(i.caf=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]))}if(!i.raf){var h=0;i.raf=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),i=window.setTimeout(function(){e(t+n)},n);return h=t+n,i},i.caf=function(e){clearTimeout(e)}}return i.svg=!!document.createElementNS&&!!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o.features=i,i}};o.detectFeatures(),o.features.oldIE&&(o.bind=function(e,t,n,i){t=t.split(" ");for(var o,a=(i?"detach":"attach")+"Event",r=function(){n.handleEvent.call(n)},l=0;l<t.length;l++)if(o=t[l])if("object"==typeof n&&n.handleEvent){if(i){if(!n["oldIE"+o])return!1}else n["oldIE"+o]=r;e[a]("on"+o,n["oldIE"+o])}else e[a]("on"+o,n)});var a=this,r={allowPanToNext:!0,spacing:.12,bgOpacity:1,mouseUsed:!1,loop:!0,pinchToClose:!0,closeOnScroll:!0,closeOnVerticalDrag:!0,verticalDragRange:.75,hideAnimationDuration:333,showAnimationDuration:333,showHideOpacity:!1,focus:!0,escKey:!0,arrowKeys:!0,mainScrollEndFriction:.35,panEndFriction:.35,isClickableElement:function(e){return"A"===e.tagName},getDoubleTapZoom:function(e,t){return e?1:t.initialZoomLevel<.7?1:1.33},maxSpreadZoom:1.33,modal:!0,scaleMode:"fit"};o.extend(r,i);var l,s,u,c,d,p,m,f,h,y,v,x,g,w,b,I,C,D,S,M,T,A,E,O,k,R,P,Z,F,L,_,z,N,U,H,Y,q,G,W,B,X,V,K,j,$,Q,J,ee,te,ne,ie,oe,ae,re,le,se,ue=function(){return{x:0,y:0}},ce=ue(),de=ue(),pe=ue(),me={},fe=0,he={},ye=ue(),ve=0,xe=!0,ge=[],we={},be=!1,Ie=function(e,t){o.extend(a,t.publicMethods),ge.push(e)},Ce=function(e){var t=Kt();return e>t-1?e-t:e<0?t+e:e},De={},Se=function(e,t){return De[e]||(De[e]=[]),De[e].push(t)},Me=function(e){var t=De[e];if(t){var n=Array.prototype.slice.call(arguments);n.shift();for(var i=0;i<t.length;i++)t[i].apply(a,n)}},Te=function(){return(new Date).getTime()},Ae=function(e){re=e,a.bg.style.opacity=e*r.bgOpacity},Ee=function(e,t,n,i,o){(!be||o&&o!==a.currItem)&&(i/=o?o.fitRatio:a.currItem.fitRatio),e[A]=x+t+"px, "+n+"px"+g+" scale("+i+")"},Oe=function(e){te&&!a.currItem.loading&&(e&&(y>a.currItem.fitRatio?be||(sn(a.currItem,!1,!0),be=!0):be&&(sn(a.currItem),be=!1)),Ee(te,pe.x,pe.y,y))},ke=function(e){e.container&&Ee(e.container.style,void 0!==e.initialPosition&&e.initialPosition&&e.initialPosition.x||0,void 0!==e.initialPosition&&e.initialPosition&&e.initialPosition.y||0,e.initialZoomLevel,e)},Re=function(e,t){t[A]=x+e+"px, 0px"+g},Pe=function(e,t){if(!r.loop&&t){var n=c+(ye.x*fe-e)/ye.x,i=Math.round(e-ft.x);(n<0&&i>0||n>=Kt()-1&&i<0)&&(e=ft.x+i*r.mainScrollEndFriction)}ft.x=e,Re(e,d)},Ze=function(e,t){var n=ht[e]-he[e];return de[e]+ce[e]+n-n*(t/v)},Fe=function(e,t){void 0!==t&&t&&(e.x=t.x,e.y=t.y,t.id&&(e.id=t.id))},Le=function(e){e.x=Math.round(e.x),e.y=Math.round(e.y)},_e=null,ze=function(){_e&&(o.unbind(document,"mousemove",ze),o.addClass(e,"pswp--has_mouse"),r.mouseUsed=!0,Me("mouseUsed")),_e=setTimeout(function(){_e=null},100)},Ne=function(){o.bind(document,"keydown",a),_.transform&&o.bind(a.scrollWrap,"click",a),r.mouseUsed||o.bind(document,"mousemove",ze),o.bind(window,"resize scroll",a),Me("bindEvents")},Ue=function(){o.unbind(window,"resize",a),o.unbind(window,"scroll",h.scroll),o.unbind(document,"keydown",a),o.unbind(document,"mousemove",ze),_.transform&&o.unbind(a.scrollWrap,"click",a),G&&o.unbind(window,m,a),Me("unbindEvents")},He=function(e,t){var n=on(a.currItem,me,e);return t&&(ee=n),n},Ye=function(e){return e||(e=a.currItem),e.initialZoomLevel},qe=function(e){return e||(e=a.currItem),e.w>0?r.maxSpreadZoom:1},Ge=function(e,t,n,i){return i===a.currItem.initialZoomLevel?(n[e]=a.currItem.initialPosition[e],!0):(n[e]=Ze(e,i),n[e]>t.min[e]?(n[e]=t.min[e],!0):n[e]<t.max[e]&&(n[e]=t.max[e],!0))},We=function(){if(A){var t=_.perspective&&!O;return x="translate"+(t?"3d(":"("),void(g=_.perspective?", 0px)":")")}A="left",o.addClass(e,"pswp--ie"),Re=function(e,t){t.left=e+"px"},ke=function(e){var t=e.fitRatio>1?1:e.fitRatio,n=e.container.style,i=t*e.w,o=t*e.h;n.width=i+"px",n.height=o+"px",n.left=e.initialPosition.x+"px",n.top=e.initialPosition.y+"px"},Oe=function(){if(te){var e=te,t=a.currItem,n=t.fitRatio>1?1:t.fitRatio,i=n*t.w,o=n*t.h;e.width=i+"px",e.height=o+"px",e.left=pe.x+"px",e.top=pe.y+"px"}}},Be=function(e){var t="";r.escKey&&27===e.keyCode?t="close":r.arrowKeys&&(37===e.keyCode?t="prev":39===e.keyCode&&(t="next")),t&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||(e.preventDefault?e.preventDefault():e.returnValue=!1,a[t]()))},Xe=function(e){e&&(X||B||ne||Y)&&(e.preventDefault(),e.stopPropagation())},Ve=function(){a.setScrollOffset(0,o.getScrollY())},Ke={},je=0,$e=function(e){Ke[e]&&(Ke[e].raf&&R(Ke[e].raf),je--,delete Ke[e])},Qe=function(e){Ke[e]&&$e(e),Ke[e]||(je++,Ke[e]={})},Je=function(){for(var e in Ke)Ke.hasOwnProperty(e)&&$e(e)},et=function(e,t,n,i,o,a,r){var l,s=Te();Qe(e);var u=function(){if(Ke[e]){if((l=Te()-s)>=i)return $e(e),a(n),void(r&&r());a((n-t)*o(l/i)+t),Ke[e].raf=k(u)}};u()},tt={shout:Me,listen:Se,viewportSize:me,options:r,isMainScrollAnimating:function(){return ne},getZoomLevel:function(){return y},getCurrentIndex:function(){return c},isDragging:function(){return G},isZooming:function(){return $},setScrollOffset:function(e,t){he.x=e,L=he.y=t,Me("updateScrollOffset",he)},applyZoomPan:function(e,t,n,i){pe.x=t,pe.y=n,y=e,Oe(i)},init:function(){if(window&&window.document&&!l&&!s){var n;a.framework=o,a.template=e,a.bg=a.template.querySelectorAll(".pswp__bg")[0],P=e.className,l=!0,_=o.detectFeatures(),k=_.raf,R=_.caf,A=_.transform,F=_.oldIE,a.scrollWrap=a.template.querySelectorAll(".pswp__scroll-wrap")[0],a.container=a.template.querySelectorAll(".pswp__container")[0],d=a.container.style,a.itemHolders=I=[{el:a.container.children[0],wrap:0,index:-1},{el:a.container.children[1],wrap:0,index:-1},{el:a.container.children[2],wrap:0,index:-1}],I[0].el.style.display=I[2].el.style.display="none",We(),h={resize:a.updateSize,scroll:Ve,keydown:Be,click:Xe};var i=_.isOldIOSPhone||_.isOldAndroid||_.isMobileOpera;for(_.animationName&&_.transform&&!i||(r.showAnimationDuration=r.hideAnimationDuration=0),n=0;n<ge.length;n++)a["init"+ge[n]]();if(t){(a.ui=new t(a,o)).init()}Me("firstUpdate"),c=c||r.index||0,(isNaN(c)||c<0||c>=Kt())&&(c=0),a.currItem=Vt(c),(_.isOldIOSPhone||_.isOldAndroid)&&(xe=!1),e.setAttribute("aria-hidden","false"),r.modal&&(xe?e.style.position="fixed":(e.style.position="absolute",e.style.top=o.getScrollY()+"px")),void 0===L&&(Me("initialLayout"),L=Z=o.getScrollY());var u="pswp--open ";for(r.mainClass&&(u+=r.mainClass+" "),r.showHideOpacity&&(u+="pswp--animate_opacity "),u+=O?"pswp--touch":"pswp--notouch",u+=_.animationName?" pswp--css_animation":"",u+=_.svg?" pswp--svg":"",o.addClass(e,u),a.updateSize(),p=-1,ve=null,n=0;n<3;n++)Re((n+p)*ye.x,I[n].el.style);F||o.bind(a.scrollWrap,f,a),Se("initialZoomInEnd",function(){a.setContent(I[0],c-1),a.setContent(I[2],c+1),I[0].el.style.display=I[2].el.style.display="block",r.focus&&e.focus(),Ne()}),a.setContent(I[1],c),a.updateCurrItem(),Me("afterInit"),xe||(w=setInterval(function(){je||G||$||y!==a.currItem.initialZoomLevel||a.updateSize()},1e3)),o.addClass(e,"pswp--visible")}},close:function(){l&&(l=!1,s=!0,Me("close"),Ue(),$t(a.currItem,null,!0,a.destroy))},destroy:function(){Me("destroy"),Gt&&clearTimeout(Gt),e.setAttribute("aria-hidden","true"),e.className=P,w&&clearInterval(w),o.unbind(a.scrollWrap,f,a),o.unbind(window,"scroll",a),wt(),Je(),De=null},panTo:function(e,t,n){n||(e>ee.min.x?e=ee.min.x:e<ee.max.x&&(e=ee.max.x),t>ee.min.y?t=ee.min.y:t<ee.max.y&&(t=ee.max.y)),pe.x=e,pe.y=t,Oe()},handleEvent:function(e){e=e||window.event,h[e.type]&&h[e.type](e)},goTo:function(e){e=Ce(e);var t=e-c;ve=t,c=e,a.currItem=Vt(c),fe-=t,Pe(ye.x*fe),Je(),ne=!1,a.updateCurrItem()},next:function(){a.goTo(c+1)},prev:function(){a.goTo(c-1)},updateCurrZoomItem:function(e){if(e&&Me("beforeChange",0),I[1].el.children.length){var t=I[1].el.children[0];te=o.hasClass(t,"pswp__zoom-wrap")?t.style:null}else te=null;ee=a.currItem.bounds,v=y=a.currItem.initialZoomLevel,void 0!==ee&&ee&&(pe.x=ee.center.x,pe.y=ee.center.y),e&&Me("afterChange")},invalidateCurrItems:function(){b=!0;for(var e=0;e<3;e++)I[e].item&&(I[e].item.needsUpdate=!0)},updateCurrDimention:function(){a.currItem.container&&(a.currItem.container.lastElementChild.style.width=a.currItem.container.lastElementChild.style.height="auto",a.currItem.container.lastElementChild.style.width=a.currItem.w=a.currItem.container.lastElementChild.width,a.currItem.container.lastElementChild.style.height=a.currItem.h=a.currItem.container.lastElementChild.height,on(a.currItem,me),sn(a.currItem,a.currItem.container.lastElementChild),ke(a.currItem),a.updateCurrZoomItem(!1),Me("afterChange"),o.addClass(a.currItem.container.lastElementChild,"pswp__view"))},updateCurrItem:function(e){if(0!==ve){var t,n=Math.abs(ve);if(!(e&&n<2)){a.currItem=Vt(c),be=!1,Me("beforeChange",ve),n>=3&&(p+=ve+(ve>0?-3:3),n=3);for(var i=0;i<n;i++)ve>0?(t=I.shift(),I[2]=t,p++,Re((p+2)*ye.x,t.el.style),a.setContent(t,c-n+i+1+1)):(t=I.pop(),I.unshift(t),p--,Re(p*ye.x,t.el.style),a.setContent(t,c+n-i-1-1));if(te&&1===Math.abs(ve)){var o=Vt(C);o.initialZoomLevel!==y&&(on(o,me),sn(o),ke(o))}ve=0,a.updateCurrZoomItem(),C=c,Me("afterChange")}}},updateSize:function(t){if(!xe&&r.modal){var n=o.getScrollY();if(L!==n&&(e.style.top=n+"px",L=n),!t&&we.x===window.innerWidth&&we.y===window.innerHeight)return;we.x=window.innerWidth,we.y=window.innerHeight,e.style.height=we.y+"px"}if(me.x=a.scrollWrap.clientWidth,me.y=a.scrollWrap.clientHeight,Ve(),ye.x=me.x+Math.round(me.x*r.spacing),ye.y=me.y,Pe(ye.x*fe),Me("beforeResize"),void 0!==p){for(var i,l,s,u=0;u<3;u++)i=I[u],Re((u+p)*ye.x,i.el.style),s=c+u-1,r.loop&&Kt()>2&&(s=Ce(s)),l=Vt(s),l&&(b||l.needsUpdate||!l.bounds)?(a.cleanSlide(l),a.setContent(i,s),1===u&&(a.currItem=l,a.updateCurrZoomItem(!0)),l.needsUpdate=!1):-1===i.index&&s>=0&&a.setContent(i,s),l&&l.container&&(l.loading?(l.w=Math.round(75*me.x/100),l.h=Math.round(75*me.y/100),on(l,me),sn(l,l.placeholder),ke(l)):(on(l,me),sn(l),ke(l)));b=!1}v=y=a.currItem.initialZoomLevel,ee=a.currItem.bounds,void 0!==ee&&ee&&(pe.x=ee.center.x,pe.y=ee.center.y,Oe(!0)),Me("resize")},zoomTo:function(e,t,n,i,a){t&&(v=y,ht.x=Math.abs(t.x)-pe.x,ht.y=Math.abs(t.y)-pe.y,Fe(de,pe));var r=He(e,!1),l={};Ge("x",r,l,e),Ge("y",r,l,e);var s=y,u={x:pe.x,y:pe.y};Le(l);var c=function(t){1===t?(y=e,pe.x=l.x,pe.y=l.y):(y=(e-s)*t+s,pe.x=(l.x-u.x)*t+u.x,pe.y=(l.y-u.y)*t+u.y),a&&a(t),Oe(1===t)};n?et("customZoomTo",0,1,n,i||o.easing.sine.inOut,c):c(1)}},nt={},it={},ot={},at={},rt={},lt=[],st={},ut=[],ct={},dt=0,pt=ue(),mt=0,ft=ue(),ht=ue(),yt=ue(),vt=function(e,t){return e.x===t.x&&e.y===t.y},xt=function(e,t){return Math.abs(e.x-t.x)<25&&Math.abs(e.y-t.y)<25},gt=function(e,t){return ct.x=Math.abs(e.x-t.x),ct.y=Math.abs(e.y-t.y),Math.sqrt(ct.x*ct.x+ct.y*ct.y)},wt=function(){V&&(R(V),V=null)},bt=function(){G&&(V=k(bt),_t())},It=function(){return!("fit"===r.scaleMode&&y===a.currItem.initialZoomLevel)},Ct=function(e,t){return!!e&&(!(e.className&&e.className.indexOf("pswp__scroll-wrap")>-1)&&(t(e)?e:Ct(e.parentNode,t)))},Dt={},St=function(e,t){return Dt.prevent=!Ct(e.target,r.isClickableElement),Me("preventDragEvent",e,t,Dt),Dt.prevent},Mt=function(e,t){return t.x=e.pageX,t.y=e.pageY,t.id=e.identifier,t},Tt=function(e,t,n){n.x=.5*(e.x+t.x),n.y=.5*(e.y+t.y)},At=function(e,t,n){if(e-N>50){var i=ut.length>2?ut.shift():{};i.x=t,i.y=n,ut.push(i),N=e}},Et=function(){var e=pe.y-a.currItem.initialPosition.y;return 1-Math.abs(e/(me.y/2))},Ot={},kt={},Rt=[],Pt=function(e){for(;Rt.length>0;)Rt.pop();return E?(se=0,lt.forEach(function(e){0===se?Rt[0]=e:1===se&&(Rt[1]=e),se++})):e.type.indexOf("touch")>-1?e.touches&&e.touches.length>0&&(Rt[0]=Mt(e.touches[0],Ot),e.touches.length>1&&(Rt[1]=Mt(e.touches[1],kt))):(Ot.x=e.pageX,Ot.y=e.pageY,Ot.id="",Rt[0]=Ot),Rt},Zt=function(e,t){var n,i,o,l,s=pe[e]+t[e],u=t[e]>0,c=ft.x+t.x,d=ft.x-st.x;if(n=s>ee.min[e]||s<ee.max[e]?r.panEndFriction:1,s=pe[e]+t[e]*n,(r.allowPanToNext||y===a.currItem.initialZoomLevel)&&(te?"h"!==ie||"x"!==e||B||(u?(s>ee.min[e]&&(n=r.panEndFriction,ee.min[e]-s,i=ee.min[e]-de[e]),(i<=0||d<0)&&Kt()>1?(l=c,d<0&&c>st.x&&(l=st.x)):ee.min.x!==ee.max.x&&(o=s)):(s<ee.max[e]&&(n=r.panEndFriction,s-ee.max[e],i=de[e]-ee.max[e]),(i<=0||d>0)&&Kt()>1?(l=c,d>0&&c<st.x&&(l=st.x)):ee.min.x!==ee.max.x&&(o=s))):l=c,"x"===e))return void 0!==l&&(Pe(l,!0),K=l!==st.x),ee.min.x!==ee.max.x&&(void 0!==o?pe.x=o:K||(pe.x+=t.x*n)),void 0!==l;ne||K||y>a.currItem.fitRatio&&(pe[e]+=t[e]*n)},Ft=function(e){if(!("mousedown"===e.type&&e.button>0)){if(Xt)return void e.preventDefault();if(!q||"mousedown"!==e.type){if(St(e,!0)&&e.preventDefault(),Me("pointerDown"),E){var t=o.arraySearch(lt,e.pointerId,"id");t<0&&(t=lt.length),lt[t]={x:e.pageX,y:e.pageY,id:e.pointerId}}var n=Pt(e),i=n.length;j=null,Je(),G&&1!==i||(G=oe=!0,o.bind(window,m,a),H=le=ae=Y=K=X=W=B=!1,ie=null,Me("firstTouchStart",n),Fe(de,pe),ce.x=ce.y=0,Fe(at,n[0]),Fe(rt,at),st.x=ye.x*fe,ut=[{x:at.x,y:at.y}],N=z=Te(),He(y,!0),wt(),bt()),!$&&i>1&&!ne&&!K&&(v=y,B=!1,$=W=!0,ce.y=ce.x=0,Fe(de,pe),Fe(nt,n[0]),Fe(it,n[1]),Tt(nt,it,yt),ht.x=Math.abs(yt.x)-pe.x,ht.y=Math.abs(yt.y)-pe.y,Q=J=gt(nt,it))}}},Lt=function(e){if(e.preventDefault(),E){var t=o.arraySearch(lt,e.pointerId,"id");if(t>-1){var n=lt[t];n.x=e.pageX,n.y=e.pageY}}if(G){var i=Pt(e);if(ie||X||$)j=i;else if(ft.x!==ye.x*fe)ie="h";else{var a=Math.abs(i[0].x-at.x)-Math.abs(i[0].y-at.y);Math.abs(a)>=10&&(ie=a>0?"h":"v",j=i)}}},_t=function(){if(j){var e=j.length;if(0!==e)if(Fe(nt,j[0]),ot.x=nt.x-at.x,ot.y=nt.y-at.y,$&&e>1){if(at.x=nt.x,at.y=nt.y,!ot.x&&!ot.y&&vt(j[1],it))return;Fe(it,j[1]),B||(B=!0,Me("zoomGestureStarted"));var t=gt(nt,it),n=Yt(t);n>a.currItem.initialZoomLevel+a.currItem.initialZoomLevel/15&&(le=!0);var i=1,o=Ye(),l=qe();if(n<o)if(r.pinchToClose&&!le&&v<=a.currItem.initialZoomLevel){var s=o-n,u=1-s/(o/1.2);Ae(u),Me("onPinchClose",u),ae=!0}else i=(o-n)/o,i>1&&(i=1),n=o-i*(o/3);else n>l&&(i=(n-l)/(6*o),i>1&&(i=1),n=l+i*o);i<0&&(i=0),Q=t,Tt(nt,it,pt),ce.x+=pt.x-yt.x,ce.y+=pt.y-yt.y,Fe(yt,pt),pe.x=Ze("x",n),pe.y=Ze("y",n),H=n>y,y=n,Oe()}else{if(!ie)return;if(oe&&(oe=!1,Math.abs(ot.x)>=10&&(ot.x-=j[0].x-rt.x),Math.abs(ot.y)>=10&&(ot.y-=j[0].y-rt.y)),at.x=nt.x,at.y=nt.y,0===ot.x&&0===ot.y)return;if("v"===ie&&r.closeOnVerticalDrag&&!It()){ce.y+=ot.y,pe.y+=ot.y;var c=Et();return Y=!0,Me("onVerticalDrag",c),Ae(c),void Oe()}At(Te(),nt.x,nt.y),X=!0,ee=a.currItem.bounds;var d=Zt("x",ot);d||(Zt("y",ot),Le(pe),Oe())}}},zt=function(e){if(_.isOldAndroid){if(q&&"mouseup"===e.type)return;e.type.indexOf("touch")>-1&&(clearTimeout(q),q=setTimeout(function(){q=0},600))}Me("pointerUp"),St(e,!1)&&e.preventDefault();var t;if(E){var n=o.arraySearch(lt,e.pointerId,"id");if(n>-1)if(t=lt.splice(n,1)[0],navigator.pointerEnabled)t.type=e.pointerType||"mouse";else{var i={4:"mouse",2:"touch",3:"pen"};t.type=i[e.pointerType],t.type||(t.type=e.pointerType||"mouse")}}var l,s=Pt(e),u=s.length;if("mouseup"===e.type&&(u=0),2===u)return j=null,!0;1===u&&Fe(rt,s[0]),0!==u||ie||ne||(t||("mouseup"===e.type?t={x:e.pageX,y:e.pageY,type:"mouse"}:e.changedTouches&&e.changedTouches[0]&&(t={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY,type:"touch"})),Me("touchRelease",e,t));var c=-1;if(0===u&&(G=!1,o.unbind(window,m,a),wt(),$?c=0:-1!==mt&&(c=Te()-mt)),mt=1===u?Te():-1,l=-1!==c&&c<150?"zoom":"swipe",$&&u<2&&($=!1,1===u&&(l="zoomPointerUp"),Me("zoomGestureEnded")),j=null,X||B||ne||Y)if(Je(),U||(U=Nt()),U.calculateSwipeSpeed("x"),Y){var d=Et();if(d<r.verticalDragRange)a.close();else{var p=pe.y,f=re;et("verticalDrag",0,1,300,o.easing.cubic.out,function(e){pe.y=(a.currItem.initialPosition.y-p)*e+p,Ae((1-f)*e+f),Oe()}),Me("onVerticalDrag",1)}}else{if((K||ne)&&0===u){var h=Ht(l,U);if(h)return;l="zoomPointerUp"}if(!ne)return"swipe"!==l?void qt():void(!K&&y>a.currItem.fitRatio&&Ut(U))}},Nt=function(){var e,t,n={lastFlickOffset:{},lastFlickDist:{},lastFlickSpeed:{},slowDownRatio:{},slowDownRatioReverse:{},speedDecelerationRatio:{},speedDecelerationRatioAbs:{},distanceOffset:{},backAnimDestination:{},backAnimStarted:{},calculateSwipeSpeed:function(i){ut.length>1?(e=Te()-N+50,t=ut[ut.length-2][i]):(e=Te()-z,t=rt[i]),n.lastFlickOffset[i]=at[i]-t,n.lastFlickDist[i]=Math.abs(n.lastFlickOffset[i]),n.lastFlickDist[i]>20?n.lastFlickSpeed[i]=n.lastFlickOffset[i]/e:n.lastFlickSpeed[i]=0,Math.abs(n.lastFlickSpeed[i])<.1&&(n.lastFlickSpeed[i]=0),n.slowDownRatio[i]=.95,n.slowDownRatioReverse[i]=1-n.slowDownRatio[i],n.speedDecelerationRatio[i]=1},calculateOverBoundsAnimOffset:function(e,t){n.backAnimStarted[e]||(pe[e]>ee.min[e]?n.backAnimDestination[e]=ee.min[e]:pe[e]<ee.max[e]&&(n.backAnimDestination[e]=ee.max[e]),void 0!==n.backAnimDestination[e]&&(n.slowDownRatio[e]=.7,n.slowDownRatioReverse[e]=1-n.slowDownRatio[e],n.speedDecelerationRatioAbs[e]<.05&&(n.lastFlickSpeed[e]=0,n.backAnimStarted[e]=!0,et("bounceZoomPan"+e,pe[e],n.backAnimDestination[e],t||300,o.easing.sine.out,function(t){pe[e]=t,Oe()}))))},calculateAnimOffset:function(e){n.backAnimStarted[e]||(n.speedDecelerationRatio[e]=n.speedDecelerationRatio[e]*(n.slowDownRatio[e]+n.slowDownRatioReverse[e]-n.slowDownRatioReverse[e]*n.timeDiff/10),n.speedDecelerationRatioAbs[e]=Math.abs(n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]),n.distanceOffset[e]=n.lastFlickSpeed[e]*n.speedDecelerationRatio[e]*n.timeDiff,pe[e]+=n.distanceOffset[e])},panAnimLoop:function(){if(Ke.zoomPan&&(Ke.zoomPan.raf=k(n.panAnimLoop),n.now=Te(),n.timeDiff=n.now-n.lastNow,n.lastNow=n.now,n.calculateAnimOffset("x"),n.calculateAnimOffset("y"),Oe(),n.calculateOverBoundsAnimOffset("x"),n.calculateOverBoundsAnimOffset("y"),n.speedDecelerationRatioAbs.x<.05&&n.speedDecelerationRatioAbs.y<.05))return pe.x=Math.round(pe.x),pe.y=Math.round(pe.y),Oe(),void $e("zoomPan")}};return n},Ut=function(e){if(e.calculateSwipeSpeed("y"),ee=a.currItem.bounds,e.backAnimDestination={},e.backAnimStarted={},Math.abs(e.lastFlickSpeed.x)<=.05&&Math.abs(e.lastFlickSpeed.y)<=.05)return e.speedDecelerationRatioAbs.x=e.speedDecelerationRatioAbs.y=0,e.calculateOverBoundsAnimOffset("x"),e.calculateOverBoundsAnimOffset("y"),!0;Qe("zoomPan"),e.lastNow=Te(),e.panAnimLoop()},Ht=function(e,t){var n;ne||(dt=c);var i;if("swipe"===e){var l=at.x-rt.x,s=t.lastFlickDist.x<10;l>30&&(s||t.lastFlickOffset.x>20)?i=-1:l<-30&&(s||t.lastFlickOffset.x<-20)&&(i=1)}var u;i&&(c+=i,c<0?(c=r.loop?Kt()-1:0,u=!0):c>=Kt()&&(c=r.loop?0:Kt()-1,u=!0),u&&!r.loop||(ve+=i,fe-=i,n=!0));var d,p=ye.x*fe,m=Math.abs(p-ft.x);return n||p>ft.x==t.lastFlickSpeed.x>0?(d=Math.abs(t.lastFlickSpeed.x)>0?m/Math.abs(t.lastFlickSpeed.x):333,d=Math.min(d,400),d=Math.max(d,250)):d=333,dt===c&&(n=!1),ne=!0,n&&a.getItemAt(c).container&&o.removeClass(a.getItemAt(c).container.lastElementChild,"pswp__view"),Me("mainScrollAnimStart"),et("mainScroll",ft.x,p,d,o.easing.cubic.out,Pe,function(){Je(),ne=!1,dt=-1,(n||dt!==c)&&a.updateCurrItem(),Me("mainScrollAnimComplete")}),n&&a.updateCurrItem(!0),n},Yt=function(e){return 1/J*e*v},qt=function(){var e=y,t=Ye(),n=qe();y<t?e=t:y>n&&(e=n);var i,r=re;return ae&&!H&&!le&&y<t?(a.close(),!0):(ae&&(i=function(e){Ae((1-r)*e+r)}),a.zoomTo(e,0,200,o.easing.cubic.out,i),!0)};Ie("Gestures",{publicMethods:{initGestures:function(){var e=function(e,t,n,i,o){D=e+t,S=e+n,M=e+i,T=o?e+o:""};E=_.pointerEvent,E&&_.touch&&(_.touch=!1),E?navigator.pointerEnabled?e("pointer","down","move","up","cancel"):e("MSPointer","Down","Move","Up","Cancel"):_.touch?(e("touch","start","move","end","cancel"),O=!0):e("mouse","down","move","up"),m=S+" "+M+" "+T,f=D,E&&!O&&(O=navigator.maxTouchPoints>1||navigator.msMaxTouchPoints>1),a.likelyTouchDevice=O,h[D]=Ft,h[S]=Lt,h[M]=zt,T&&(h[T]=h[M]),_.touch&&(f+=" mousedown",m+=" mousemove mouseup",h.mousedown=h[D],h.mousemove=h[S],h.mouseup=h[M]),O||(r.allowPanToNext=!1)}}});var Gt,Wt,Bt,Xt,Vt,Kt,jt,$t=function(t,n,i,l){Gt&&clearTimeout(Gt),Xt=!0,Bt=!0;var s;t.initialLayout?(s=t.initialLayout,t.initialLayout=null):s=r.getThumbBoundsFn&&r.getThumbBoundsFn(c);var d=i?r.hideAnimationDuration:r.showAnimationDuration,p=function(){$e("initialZoom"),i?(a.template.removeAttribute("style"),a.bg.removeAttribute("style")):(Ae(1),o.addClass(e,"pswp--animated-in"),Me("initialZoom"+(i?"OutEnd":"InEnd"))),l&&l(),Xt=!1};if(!d||!s||void 0===s.x)return Me("initialZoom"+(i?"Out":"In")),y=t.initialZoomLevel,Fe(pe,t.initialPosition),Oe(),e.style.opacity=i?0:1,Ae(1),void(d?setTimeout(function(){p()},d):p());!function(){var n=u,l=!a.currItem.src||a.currItem.loadError||r.showHideOpacity;t.miniImg&&(t.miniImg.style.webkitBackfaceVisibility="hidden"),i||(y=s.w/t.w,pe.x=s.x,pe.y=s.y-Z,a[l?"template":"bg"].style.opacity=.001,Oe()),Qe("initialZoom"),i&&!n&&o.removeClass(e,"pswp--animated-in"),l&&(i?o[(n?"remove":"add")+"Class"](e,"pswp--animate_opacity"):setTimeout(function(){o.addClass(e,"pswp--animate_opacity")},30)),Gt=setTimeout(function(){if(Me("initialZoom"+(i?"Out":"In")),i){var a=s.w/t.w,r={x:pe.x,y:pe.y},u=y,c=re,m=function(t){1===t?(y=a,pe.x=s.x,pe.y=s.y-L):(y=(a-u)*t+u,pe.x=(s.x-r.x)*t+r.x,pe.y=(s.y-L-r.y)*t+r.y),Oe(),l?e.style.opacity=1-t:Ae(c-t*c)};n?et("initialZoom",0,1,d,o.easing.cubic.out,m,p):(m(1),Gt=setTimeout(p,d+20))}else y=t.initialZoomLevel,Fe(pe,t.initialPosition),Oe(),Ae(1),l?e.style.opacity=1:Ae(1),Gt=setTimeout(p,d+20)},i?25:90)}()},Qt={},Jt=[],en={index:0,errorMsg:'<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',forceProgressiveLoading:!1,preload:[1,1],getNumItemsFn:function(){return Wt.length}},tn=function(){return{center:{x:0,y:0},max:{x:0,y:0},min:{x:0,y:0}}},nn=function(e,t,n){var i=e.bounds;i.center.x=Math.round((Qt.x-t)/2),i.center.y=Math.round((Qt.y-n)/2)+e.vGap.top,i.max.x=t>Qt.x?Math.round(Qt.x-t):i.center.x,i.max.y=n>Qt.y?Math.round(Qt.y-n)+e.vGap.top:i.center.y,i.min.x=t>Qt.x?0:i.center.x,i.min.y=n>Qt.y?e.vGap.top:i.center.y},on=function(e,t,n){if(e.src&&!e.loadError){var i=!n;if(e.vGap={top:a.template.querySelectorAll(".pswp .pswp__top-bar")[0].offsetHeight||0,bottom:a.template.querySelectorAll(".pswp .pswp__caption")[0].offsetHeight||0},i&&(e.vGap||(e.vGap={top:0,bottom:0}),Me("parseVerticalMargin",e)),Qt.x=t.x,Qt.y=t.y-e.vGap.top-e.vGap.bottom,i){var o=Qt.x/e.w,l=Qt.y/e.h;e.fitRatio=o<l?o:l;var s=r.scaleMode;"orig"===s||e.loading&&null!==e.placeholder?n=1:"fit"===s&&(n=e.fitRatio),n>1&&(n=1),e.initialZoomLevel=n,e.bounds||(e.bounds=tn())}if(!n)return;return nn(e,e.w*n,e.h*n),i&&n===e.initialZoomLevel&&(e.initialPosition=e.bounds.center),e.bounds}return e.w=e.h=0,e.initialZoomLevel=e.fitRatio=1,e.bounds=tn(),e.initialPosition=e.bounds.center,e.bounds},an=function(e,t,n,i,o,a){t.loadError||i&&(t.imageAppended=!0,n.appendChild(i),a&&setTimeout(function(){t&&t.loaded&&t.placeholder&&(t.placeholder.style.display="none",t.placeholder=null)},500))},rn=function(e){e.loading=!0,e.loaded=!1;var t=e.img=o.createEl("pswp__img","img"),n=function(){e.loading=!1,e.loaded=!0,e.loadComplete?e.loadComplete(e):e.img=null,t.onload=t.onerror=null,t=null};return t.onload=n,t.onerror=function(){e.loadError=!0,n()},t.src=e.src,t},ln=function(e,t){if(e.src&&e.loadError&&e.container)return t&&(e.container.innerHTML=""),e.container.innerHTML=r.errorMsg.replace("%url%",e.src),!0},sn=function(e,t,n){if(e.src){t||(t=e.container.lastChild);var i=n?e.w:Math.round(e.w*e.fitRatio),o=n?e.h:Math.round(e.h*e.fitRatio);e.placeholder&&!e.loaded&&(e.placeholder.style.fontSize=100*me.y/window.outerHeight/100+"em"),t.style.width=i+"px",t.style.height=o+"px"}},un=function(){if(Jt.length){for(var e,t=0;t<Jt.length;t++)e=Jt[t],e.holder.index===e.index&&an(e.index,e.item,e.baseDiv,e.img,0,e.clearPlaceholder);Jt=[]}};Ie("Controller",{publicMethods:{lazyLoadItem:function(e){e=Ce(e);var t=Vt(e);t&&(!t.loaded&&!t.loading||b)&&(Me("gettingData",e,t),t.src&&rn(t))},initController:function(){o.extend(r,en,!0),a.items=Wt=n,Vt=a.getItemAt,Kt=r.getNumItemsFn,jt=r.loop,Kt()<3&&(r.loop=!1),Se("beforeChange",function(e){var t,n=r.preload,i=null===e||e>=0,o=Math.min(n[0],Kt()),l=Math.min(n[1],Kt());for(t=1;t<=(i?l:o);t++)a.lazyLoadItem(c+t);for(t=1;t<=(i?o:l);t++)a.lazyLoadItem(c-t)}),Se("initialLayout",function(){a.currItem.initialLayout=r.getThumbBoundsFn&&r.getThumbBoundsFn(c)}),Se("mainScrollAnimComplete",un),Se("initialZoomInEnd",un),Se("destroy",function(){for(var e,t=0;t<Wt.length;t++)e=Wt[t],e.container&&(e.container=null),e.placeholder&&(e.placeholder=null),e.img&&(e.img=null),e.preloader&&(e.preloader=null),e.loadError&&(e.loaded=e.loadError=!1);Jt=null})},getItemAt:function(e){return e>=0&&(void 0!==Wt[e]&&Wt[e])},allowProgressiveImg:function(){return r.forceProgressiveLoading||!O||r.mouseUsed||screen.width>1200},setContent:function(e,t){r.loop&&(t=Ce(t));var n=a.getItemAt(e.index);n&&(n.container=null);var i,s=a.getItemAt(t);if(!s)return void(e.el.innerHTML="");Me("gettingData",t,s),e.index=t,e.item=s;var u=s.container=o.createEl("pswp__zoom-wrap");!s.src&&s.html&&(s.html.tagName?u.appendChild(s.html):u.innerHTML=s.html),ln(s),!s.src||s.loadError||s.loaded?s.src&&!s.loadError&&(i=s.img=o.createEl("pswp__img","img"),i.src=s.src,an(0,s,u,i),Me("beforeChange")):(s.loadComplete=function(n){if(l){if(e&&e.index===t){if(ln(n,!0))return n.loadComplete=n.img=null,on(n,me),ke(n),void(e.index===c&&a.updateCurrZoomItem());n.imageAppended||(_.transform&&(ne||Xt)?Jt.push({item:n,baseDiv:u,img:n.img,index:t,holder:e,clearPlaceholder:!0}):an(0,n,u,n.img,0,!0)),n.placeholder&&(n.placeholder.style.display="none",n.container.removeChild(n.placeholder),n.placeholder=null),e.index===c&&Me("beforeChange")}n.loadComplete=null,n.img=null,Me("imageLoadComplete",t,n)}},o.features.transform&&(s.placeholder=u.appendChild(o.createEl("pswp__loader","div")),s.placeholder.style.position="absolute",s.placeholder.appendChild(document.createElement("div")),s.w=Math.round(75*me.x/100),s.h=Math.round(75*me.y/100),on(s,me),sn(s,s.placeholder),ke(s)),s.loading||rn(s),a.allowProgressiveImg()&&(!Bt&&_.transform?Jt.push({item:s,baseDiv:u,img:s.img,index:t,holder:e}):an(0,s,u,s.img,0,!0))),Bt||t!==c?ke(s):(te=u.style,$t(s,i||s.img)),e.el.innerHTML="",e.el.appendChild(u)},cleanSlide:function(e){e.img&&(e.img.onload=e.img.onerror=null),e.loaded=e.loading=e.img=e.imageAppended=!1}}});var cn,dn={},pn=function(e,t,n){var i=document.createEvent("CustomEvent"),o={origEvent:e,target:e.target,releasePoint:t,pointerType:n||"touch"};i.initCustomEvent("pswpTap",!0,!0,o),e.target.dispatchEvent(i)};Ie("Tap",{publicMethods:{initTap:function(){Se("firstTouchStart",a.onTapStart),Se("touchRelease",a.onTapRelease),Se("destroy",function(){dn={},cn=null})},onTapStart:function(e){e.length>1&&(clearTimeout(cn),cn=null)},onTapRelease:function(e,t){if(t&&!X&&!W&&!je){var n=t;if(cn&&(clearTimeout(cn),cn=null,xt(n,dn)))return void Me("doubleTap",n);if("mouse"===t.type)return void pn(e,t,"mouse");if("BUTTON"===e.target.tagName.toUpperCase()||o.hasClass(e.target,"pswp__single-tap"))return void pn(e,t);Fe(dn,n),cn=setTimeout(function(){pn(e,t),cn=null},300)}}}});var mn;Ie("DesktopZoom",{publicMethods:{initDesktopZoom:function(){F||(O?Se("mouseUsed",function(){a.setupDesktopZoom()}):a.setupDesktopZoom(!0))},setupDesktopZoom:function(t){mn={};var n="wheel mousewheel DOMMouseScroll";Se("bindEvents",function(){o.bind(e,n,a.handleMouseWheel)}),Se("unbindEvents",function(){mn&&o.unbind(e,n,a.handleMouseWheel)}),a.mouseZoomedIn=!1;var i,r=function(){a.currItem.url?(a.template.querySelectorAll(".pswp__ui .pswp__button--url")[0].setAttribute("href",a.currItem.url),o.addClass(e,"pswp--external-url")):o.removeClass(e,"pswp--external-url"),a.mouseZoomedIn&&(o.removeClass(e,"pswp--zoomed-in"),a.mouseZoomedIn=!1),y<1?o.addClass(e,"pswp--zoom-allowed"):o.removeClass(e,"pswp--zoom-allowed"),l()},l=function(){i&&(o.removeClass(e,"pswp--dragging"),i=!1)};Se("resize",r),Se("afterChange",r),Se("pointerDown",function(){a.mouseZoomedIn&&(i=!0,o.addClass(e,"pswp--dragging"))}),Se("pointerUp",l),t||r()},handleMouseWheel:function(e){if(y<=a.currItem.fitRatio)return r.modal&&(!r.closeOnScroll||je||G?e.preventDefault():A&&Math.abs(e.deltaY)>2&&(u=!0,a.close())),!0;if(e.stopPropagation(),mn.x=0,"deltaX"in e)1===e.deltaMode?(mn.x=18*e.deltaX,mn.y=18*e.deltaY):(mn.x=e.deltaX,mn.y=e.deltaY);else if("wheelDelta"in e)e.wheelDeltaX&&(mn.x=-.16*e.wheelDeltaX),e.wheelDeltaY?mn.y=-.16*e.wheelDeltaY:mn.y=-.16*e.wheelDelta;else{if(!("detail"in e))return;mn.y=e.detail}He(y,!0);var t=pe.x-mn.x,n=pe.y-mn.y;(r.modal||t<=ee.min.x&&t>=ee.max.x&&n<=ee.min.y&&n>=ee.max.y)&&e.preventDefault(),a.panTo(t,n)},toggleDesktopZoom:function(t){t instanceof Node&&(t=null),t=t||{x:me.x/2+he.x,y:me.y/2+he.y};var n=r.getDoubleTapZoom(!0,a.currItem),i=y===n;a.mouseZoomedIn=!i,a.zoomTo(i?a.currItem.initialZoomLevel:n,t,333),o[(i?"remove":"add")+"Class"](e,"pswp--zoomed-in")}}});var fn,hn,yn,vn,xn,gn,wn,bn,In,Cn,Dn,Sn,Mn={history:!0,galleryUID:1},Tn=function(){return Dn.hash.substring(1)},An=function(){fn&&clearTimeout(fn),yn&&clearTimeout(yn)},En=function(){var e=Tn(),t={};if(e.length<5)return t;var n,i=e.split("&");for(n=0;n<i.length;n++)if(i[n]){var o=i[n].split("=");o.length<2||(t[o[0]]=o[1])}if(r.galleryPIDs){var a=t.pid;for(t.pid=0,n=0;n<Wt.length;n++)if(Wt[n].pid===a){t.pid=n;break}}else t.pid=parseInt(t.pid,10)-1;return t.pid<0&&(t.pid=0),t},On=function(){if(yn&&clearTimeout(yn),je||G)return void(yn=setTimeout(On,500));vn?clearTimeout(hn):vn=!0;var e=c+1,t=Vt(c);t.hasOwnProperty("pid")&&(e=t.pid);var n=wn+"&gid="+r.galleryUID+"&pid="+e;bn||-1===Dn.hash.indexOf(n)&&(Cn=!0);var i=Dn.href.split("#")[0]+"#"+n
;Sn?"#"+n!==window.location.hash&&history[bn?"replaceState":"pushState"]("",document.title,i):bn?Dn.replace(i):Dn.hash=n,bn=!0,hn=setTimeout(function(){vn=!1},60)};Ie("History",{publicMethods:{initHistory:function(){if(o.extend(r,Mn,!0),r.history){Dn=window.location,Cn=!1,In=!1,bn=!1,wn=Tn(),Sn="pushState"in history,wn.indexOf("gid=")>-1&&(wn=wn.split("&gid=")[0],wn=wn.split("?gid=")[0]),Se("afterChange",a.updateURL),Se("unbindEvents",function(){o.unbind(window,"hashchange",a.onHashChange)});var e=function(){gn=!0,In||(Cn?history.back():wn?Dn.hash=wn:Sn?history.pushState("",document.title,Dn.pathname+Dn.search):Dn.hash=""),An()};Se("unbindEvents",function(){u&&e()}),Se("destroy",function(){gn||e()}),Se("firstUpdate",function(){c=En().pid});var t=wn.indexOf("pid=");t>-1&&(wn=wn.substring(0,t),"&"===wn.slice(-1)&&(wn=wn.slice(0,-1))),setTimeout(function(){l&&o.bind(window,"hashchange",a.onHashChange)},40)}},onHashChange:function(){if(Tn()===wn)return In=!0,void a.close();vn||(xn=!0,a.goTo(En().pid),xn=!1)},updateURL:function(){An(),xn||(bn?fn=setTimeout(On,800):On())}}}),o.extend(a,tt)}});
}catch(e){console.log("Module 'photo-swipe-4.1.0': ",e);}
try{!function(e,i){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(e,require("jquery-utils-1.0.0"),require("photo-swipe-4.1.0"),require("photo-swipe-ui-4.1.0"),require("swiper-4.0.3"),require("imagesLoaded")):"function"==typeof define&&define.amd?define("wcm-embed-gallery-1.0.0",["jquery-utils-1.0.0","photo-swipe-4.1.0","photo-swipe-ui-4.1.0","swiper-4.0.3","imagesLoaded"],function(t,r,s,n){i(e,t,r,s,n)}):i(e,e.jQuery,e.PhotoSwipe,e.PhotoSwipeUI_Default,e.Swiper)}(this,function(e,i,t,r,s,n){"use strict";new s(".wcm-embed-gallery .swiper-container",{navigation:{nextEl:".wcm-embed-gallery .wcm-embed-controls .wcm-embed-next",prevEl:".wcm-embed-gallery .wcm-embed-controls .wcm-embed-prev"},pagination:{el:".wcm-embed-gallery .swiper-pagination",type:"progressbar",clickable:!1},slidesPerView:5,slidesPerColumn:1,spaceBetween:15,watchSlidesVisibility:!0,preloadImages:!1,lazy:!0,on:{init:function(e){i(this.el).addClass("ready").toggleClass("no-swiper-scroll",i(this.el).find("[data-pswp-src]").length-1<=5)},resize:function(){this.update(!0)},click:function(e){var s=i(this.el).find("[data-pswp-src]"),n=s.index(e.target);new t(document.getElementById("pswp"),r,s.map(function(e,i){return{src:i.getAttribute("data-pswp-src"),title:i.getAttribute("data-pswp-caption")?decodeURIComponent(i.getAttribute("data-pswp-caption")):null,url:i.getAttribute("data-pswp-url")||i.getAttribute("href")||null}}),{index:n,history:!1,hideAnimationDuration:0,showAnimationDuration:0}).init()},lazyImageReady:function(e,t){t=i(t),"none"===t.css("background-image")?t.addClass("swiper-lazy-error"):t.imagesLoaded({background:!0}).fail(function(e){t.addClass("swiper-lazy-error")}).done(function(e){t.addClass("swiper-lazy-ready")})}},breakpoints:{480:{slidesPerView:1},576:{slidesPerView:2},768:{slidesPerView:3},992:{slidesPerView:4}}})});
}catch(e){console.log("Module 'wcm-embed-gallery-1.0.0': ",e);}
try{!function(e,t){"function"==typeof define&&define.amd?define("salvattore-1.0.9",[],t):"object"==typeof exports?module.exports=t():e.salvattore=t()}(this,function(){return window.matchMedia||(window.matchMedia=function(){"use strict";var e=window.styleMedia||window.media;if(!e){var t=document.createElement("style"),n=document.getElementsByTagName("script")[0],r=null;t.type="text/css",t.id="matchmediajs-test",n.parentNode.insertBefore(t,n),r="getComputedStyle"in window&&window.getComputedStyle(t,null)||t.currentStyle,e={matchMedium:function(e){var n="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=n:t.textContent=n,"1px"===r.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}()),function(){"use strict";if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var e=window.matchMedia,t=e("only all").matches,n=!1,r=0,a=[],i=function(t){clearTimeout(r),r=setTimeout(function(){for(var t=0,n=a.length;t<n;t++){var r=a[t].mql,i=a[t].listeners||[],o=e(r.media).matches;if(o!==r.matches){r.matches=o;for(var c=0,l=i.length;c<l;c++)i[c].call(window,r)}}},30)};window.matchMedia=function(r){var o=e(r),c=[],l=0;return o.addListener=function(e){t&&(n||(n=!0,window.addEventListener("resize",i,!0)),0===l&&(l=a.push({mql:o,listeners:c})),c.push(e))},o.removeListener=function(e){for(var t=0,n=c.length;t<n;t++)c[t]===e&&c.splice(t,1)},o}}(),function(){"use strict";for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,n){var r=(new Date).getTime(),a=Math.max(0,16-(r-e)),i=window.setTimeout(function(){t(r+a)},a);return e=r+a,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),"function"!=typeof window.CustomEvent&&function(){"use strict";function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),function(e,t,n){"use strict";var r={},a=[],i=[],o=[],c=function(e,t,n){e.dataset?e.dataset[t]=n:e.setAttribute("data-"+t,n)};return r.obtainGridSettings=function(t){var n=e.getComputedStyle(t,":before"),r=n.getPropertyValue("content").slice(1,-1),a=r.match(/^\s*(\d+)(?:\s?\.(.+))?\s*$/),i=1,o=[];return a?(i=a[1],o=a[2],o=o?o.split("."):["column"]):(a=r.match(/^\s*\.(.+)\s+(\d+)\s*$/))&&(o=a[1],(i=a[2])&&(i=i.split("."))),{numberOfColumns:i,columnClasses:o}},r.addColumns=function(e,n){for(var a,i=r.obtainGridSettings(e),o=i.numberOfColumns,l=i.columnClasses,s=new Array(+o),u=t.createDocumentFragment(),d=o;0!=d--;)a="[data-columns] > *:nth-child("+o+"n-"+d+")",s.push(n.querySelectorAll(a));s.forEach(function(e){var n=t.createElement("div"),r=t.createDocumentFragment();n.className=l.join(" "),Array.prototype.forEach.call(e,function(e){r.appendChild(e)}),n.appendChild(r),u.appendChild(n)}),e.appendChild(u),c(e,"columns",o)},r.removeColumns=function(n){var r=t.createRange();r.selectNodeContents(n);var a=Array.prototype.filter.call(r.extractContents().childNodes,function(t){return t instanceof e.HTMLElement}),i=a.length,o=a[0].childNodes.length,l=new Array(o*i);Array.prototype.forEach.call(a,function(e,t){Array.prototype.forEach.call(e.children,function(e,n){l[n*i+t]=e})});var s=t.createElement("div");return c(s,"columns",0),l.filter(function(e){return!!e}).forEach(function(e){s.appendChild(e)}),s},r.recreateColumns=function(t){e.requestAnimationFrame(function(){r.addColumns(t,r.removeColumns(t));var e=new CustomEvent("columnsChange");t.dispatchEvent(e)})},r.mediaQueryChange=function(e){e.matches&&Array.prototype.forEach.call(a,r.recreateColumns)},r.getCSSRules=function(e){var t;try{t=e.sheet.cssRules||e.sheet.rules}catch(e){return[]}return t||[]},r.getStylesheets=function(){var e=Array.prototype.slice.call(t.querySelectorAll("style"));return e.forEach(function(t,n){"text/css"!==t.type&&""!==t.type&&e.splice(n,1)}),Array.prototype.concat.call(e,Array.prototype.slice.call(t.querySelectorAll("link[rel='stylesheet']")))},r.mediaRuleHasColumnsSelector=function(e){var t,n;try{t=e.length}catch(e){t=0}for(;t--;)if(n=e[t],n.selectorText&&n.selectorText.match(/\[data-columns\](.*)::?before$/))return!0;return!1},r.scanMediaQueries=function(){var t=[];if(e.matchMedia){r.getStylesheets().forEach(function(e){Array.prototype.forEach.call(r.getCSSRules(e),function(e){try{e.media&&e.cssRules&&r.mediaRuleHasColumnsSelector(e.cssRules)&&t.push(e)}catch(e){}})});var n=i.filter(function(e){return-1===t.indexOf(e)});o.filter(function(e){return-1!==n.indexOf(e.rule)}).forEach(function(e){e.mql.removeListener(r.mediaQueryChange)}),o=o.filter(function(e){return-1===n.indexOf(e.rule)}),t.filter(function(e){return-1==i.indexOf(e)}).forEach(function(t){var n=e.matchMedia(t.media.mediaText);n.addListener(r.mediaQueryChange),o.push({rule:t,mql:n})}),i.length=0,i=t}},r.rescanMediaQueries=function(){r.scanMediaQueries(),Array.prototype.forEach.call(a,r.recreateColumns)},r.nextElementColumnIndex=function(e,t){var n,r,a,i=e.children,o=i.length,c=0,l=0;for(a=0;a<o;a++)n=i[a],r=n.children.length+(t[a].children||t[a].childNodes).length,0===c&&(c=r),r<c&&(l=a,c=r);return l},r.createFragmentsList=function(e){for(var n=new Array(e),r=0;r!==e;)n[r]=t.createDocumentFragment(),r++;return n},r.appendElements=function(e,t){var n=e.children,a=n.length,i=r.createFragmentsList(a);Array.prototype.forEach.call(t,function(t){var n=r.nextElementColumnIndex(e,i);i[n].appendChild(t)}),Array.prototype.forEach.call(n,function(e,t){e.appendChild(i[t])})},r.prependElements=function(e,n){var a=e.children,i=a.length,o=r.createFragmentsList(i),c=i-1;n.forEach(function(e){var t=o[c];t.insertBefore(e,t.firstChild),0===c?c=i-1:c--}),Array.prototype.forEach.call(a,function(e,t){e.insertBefore(o[t],e.firstChild)});for(var l=t.createDocumentFragment(),s=n.length%i;0!=s--;)l.appendChild(e.lastChild);e.insertBefore(l,e.firstChild)},r.registerGrid=function(n){if("none"!==e.getComputedStyle(n).display){var i=t.createRange();i.selectNodeContents(n);var o=t.createElement("div");o.appendChild(i.extractContents()),c(o,"columns",0),r.addColumns(n,o),a.push(n)}},r.init=function(){var e=t.createElement("style");e.innerHTML="[data-columns]::before{display:block;visibility:hidden;position:absolute;font-size:1px;}",t.head.appendChild(e);var n=t.querySelectorAll("[data-columns]");Array.prototype.forEach.call(n,r.registerGrid),r.scanMediaQueries()},r.init(),{appendElements:r.appendElements,prependElements:r.prependElements,registerGrid:r.registerGrid,recreateColumns:r.recreateColumns,rescanMediaQueries:r.rescanMediaQueries,init:r.init,append_elements:r.appendElements,prepend_elements:r.prependElements,register_grid:r.registerGrid,recreate_columns:r.recreateColumns,rescan_media_queries:r.rescanMediaQueries}}(window,window.document)});
}catch(e){console.log("Module 'salvattore-1.0.9': ",e);}
try{!function(e){if(e.document){var t=e.document;t.querySelectorAll||(t.querySelectorAll=function(n){var r,i=t.createElement("style"),o=[];for(t.documentElement.firstChild.appendChild(i),t._qsa=[],i.styleSheet.cssText=n+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",e.scrollBy(0,0),i.parentNode.removeChild(i);t._qsa.length;)r=t._qsa.shift(),r.style.removeAttribute("x-qsa"),o.push(r);return t._qsa=null,o}),t.querySelector||(t.querySelector=function(e){var n=t.querySelectorAll(e);return n.length?n[0]:null}),t.getElementsByClassName||(t.getElementsByClassName=function(e){return e=String(e).replace(/^|\s+/g,"."),t.querySelectorAll(e)}),Object.keys||(Object.keys=function(e){if(e!==Object(e))throw TypeError("Object.keys called on non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),Array.prototype.forEach||(Array.prototype.forEach=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw TypeError();var r,i=arguments[1];for(r=0;r<n;r++)r in t&&e.call(i,t[r],r,t)}),function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.atob=e.atob||function(e){e=String(e);var n,r=0,i=[],o=0,a=0;if(e=e.replace(/\s/g,""),e.length%4==0&&(e=e.replace(/=+$/,"")),e.length%4==1)throw Error("InvalidCharacterError");if(/[^+\/0-9A-Za-z]/.test(e))throw Error("InvalidCharacterError");for(;r<e.length;)n=t.indexOf(e.charAt(r)),o=o<<6|n,a+=6,24===a&&(i.push(String.fromCharCode(o>>16&255)),i.push(String.fromCharCode(o>>8&255)),i.push(String.fromCharCode(255&o)),a=0,o=0),r+=1;return 12===a?(o>>=4,i.push(String.fromCharCode(255&o))):18===a&&(o>>=2,i.push(String.fromCharCode(o>>8&255)),i.push(String.fromCharCode(255&o))),i.join("")},e.btoa=e.btoa||function(e){e=String(e);var n,r,i,o,a,s,l,h=0,u=[];if(/[^\x00-\xFF]/.test(e))throw Error("InvalidCharacterError");for(;h<e.length;)n=e.charCodeAt(h++),r=e.charCodeAt(h++),i=e.charCodeAt(h++),o=n>>2,a=(3&n)<<4|r>>4,s=(15&r)<<2|i>>6,l=63&i,h===e.length+2?(s=64,l=64):h===e.length+1&&(l=64),u.push(t.charAt(o),t.charAt(a),t.charAt(s),t.charAt(l));return u.join("")}}(e),Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(e){var t=this.__proto__||this.constructor.prototype;return e in this&&(!(e in t)||t[e]!==this[e])}),function(){if("performance"in e==!1&&(e.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in e.performance==!1){var t=Date.now();performance.timing&&performance.timing.navigationStart&&(t=performance.timing.navigationStart),e.performance.now=function(){return Date.now()-t}}}(),e.requestAnimationFrame||(e.webkitRequestAnimationFrame&&e.webkitCancelAnimationFrame?function(e){e.requestAnimationFrame=function(t){return webkitRequestAnimationFrame(function(){t(e.performance.now())})},e.cancelAnimationFrame=e.webkitCancelAnimationFrame}(e):e.mozRequestAnimationFrame&&e.mozCancelAnimationFrame?function(e){e.requestAnimationFrame=function(t){return mozRequestAnimationFrame(function(){t(e.performance.now())})},e.cancelAnimationFrame=e.mozCancelAnimationFrame}(e):function(e){e.requestAnimationFrame=function(t){return e.setTimeout(t,1e3/60)},e.cancelAnimationFrame=e.clearTimeout}(e))}}(this),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("holder",[],function(){e.Holder=t()}):"object"==typeof exports?exports.Holder=t():e.Holder=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){(function(t){function r(e,t,n,r){var a=i(n.substr(n.lastIndexOf(e.domain)),e);a&&o({mode:null,el:r,flags:a,engineSettings:t})}function i(e,t){var n={theme:E(F.settings.themes.gray,null),stylesheets:t.stylesheets,instanceOptions:t},r=e.indexOf("?"),i=[e];-1!==r&&(i=[e.slice(0,r),e.slice(r+1)]);var o=i[0].split("/");n.holderURL=e;var a=o[1],s=a.match(/([\d]+p?)x([\d]+p?)/);if(!s)return!1;if(n.fluid=-1!==a.indexOf("p"),n.dimensions={width:s[1].replace("p","%"),height:s[2].replace("p","%")},2===i.length){var l=m.parse(i[1]);if(y.truthy(l.ratio)){n.fluid=!0;var h=parseFloat(n.dimensions.width.replace("%","")),u=parseFloat(n.dimensions.height.replace("%",""));u=Math.floor(u/h*100),h=100,n.dimensions.width=h+"%",n.dimensions.height=u+"%"}if(n.auto=y.truthy(l.auto),l.bg&&(n.theme.bg=y.parseColor(l.bg)),l.fg&&(n.theme.fg=y.parseColor(l.fg)),l.bg&&!l.fg&&(n.autoFg=!0),l.theme&&n.instanceOptions.themes.hasOwnProperty(l.theme)&&(n.theme=E(n.instanceOptions.themes[l.theme],null)),l.text&&(n.text=l.text),l.textmode&&(n.textmode=l.textmode),l.size&&(n.size=l.size),l.font&&(n.font=l.font),l.align&&(n.align=l.align),l.lineWrap&&(n.lineWrap=l.lineWrap),n.nowrap=y.truthy(l.nowrap),n.outline=y.truthy(l.outline),y.truthy(l.random)){F.vars.cache.themeKeys=F.vars.cache.themeKeys||Object.keys(n.instanceOptions.themes);var c=F.vars.cache.themeKeys[0|Math.random()*F.vars.cache.themeKeys.length];n.theme=E(n.instanceOptions.themes[c],null)}}return n}function o(e){var t=e.mode,n=e.el,r=e.flags,i=e.engineSettings,o=r.dimensions,s=r.theme,l=o.width+"x"+o.height;t=null==t?r.fluid?"fluid":"image":t;if(null!=r.text&&(s.text=r.text,"object"===n.nodeName.toLowerCase())){for(var c=s.text.split("\\n"),d=0;d<c.length;d++)c[d]=y.encodeHtmlEntity(c[d]);s.text=c.join("\\n")}if(s.text){var f=s.text.match(/holder_([a-z]+)/g);null!==f&&f.forEach(function(e){"holder_dimensions"===e&&(s.text=s.text.replace(e,l))})}var p=r.holderURL,g=E(i,null);if(r.font&&(s.font=r.font,!g.noFontFallback&&"img"===n.nodeName.toLowerCase()&&F.setup.supportsCanvas&&"svg"===g.renderer&&(g=E(g,{renderer:"canvas"}))),r.font&&"canvas"==g.renderer&&(g.reRender=!0),"background"==t)null==n.getAttribute("data-background-src")&&b.setAttr(n,{"data-background-src":p});else{var m={};m[F.vars.dataAttr]=p,b.setAttr(n,m)}r.theme=s,n.holderData={flags:r,engineSettings:g},"image"!=t&&"fluid"!=t||b.setAttr(n,{alt:s.text?s.text+" ["+l+"]":l});var v={mode:t,el:n,holderSettings:{dimensions:o,theme:s,flags:r},engineSettings:g};"image"==t?(r.auto||(n.style.width=o.width+"px",n.style.height=o.height+"px"),"html"==g.renderer?n.style.backgroundColor=s.bg:(a(v),"exact"==r.textmode&&(n.holderData.resizeUpdate=!0,F.vars.resizableImages.push(n),h(n)))):"background"==t&&"html"!=g.renderer?a(v):"fluid"==t&&(n.holderData.resizeUpdate=!0,"%"==o.height.slice(-1)?n.style.height=o.height:null!=r.auto&&r.auto||(n.style.height=o.height+"px"),"%"==o.width.slice(-1)?n.style.width=o.width:null!=r.auto&&r.auto||(n.style.width=o.width+"px"),"inline"!=n.style.display&&""!==n.style.display&&"none"!=n.style.display||(n.style.display="block"),u(n),"html"==g.renderer?n.style.backgroundColor=s.bg:(F.vars.resizableImages.push(n),h(n)))}function a(e){function n(){var t=null;switch(l.renderer){case"canvas":t=C(u,e);break;case"svg":t=A(u,e);break;default:throw"Holder: invalid renderer: "+l.renderer}return t}var r=null,i=e.mode,o=e.el,a=e.holderSettings,l=e.engineSettings;switch(l.renderer){case"svg":if(!F.setup.supportsSVG)return;break;case"canvas":if(!F.setup.supportsCanvas)return;break;default:return}var h={width:a.dimensions.width,height:a.dimensions.height,theme:a.theme,flags:a.flags},u=s(h);if(null==(r=n()))throw"Holder: couldn't render placeholder";"background"==i?(o.style.backgroundImage="url("+r+")",l.noBackgroundSize||(o.style.backgroundSize=h.width+"px "+h.height+"px")):("img"===o.nodeName.toLowerCase()?b.setAttr(o,{src:r}):"object"===o.nodeName.toLowerCase()&&b.setAttr(o,{data:r,type:"image/svg+xml"}),l.reRender&&t.setTimeout(function(){var e=n();if(null==e)throw"Holder: couldn't render placeholder";"img"===o.nodeName.toLowerCase()?b.setAttr(o,{src:e}):"object"===o.nodeName.toLowerCase()&&b.setAttr(o,{data:e,type:"image/svg+xml"})},150)),b.setAttr(o,{"data-holder-rendered":!0})}function s(e){function t(e,t,n,r){t.width=n,t.height=r,e.width=Math.max(e.width,t.width),e.height+=t.height}var n=F.defaults.size;switch(parseFloat(e.theme.size)?n=e.theme.size:parseFloat(e.flags.size)&&(n=e.flags.size),e.font={family:e.theme.font?e.theme.font:"Arial, Helvetica, Open Sans, sans-serif",size:l(e.width,e.height,n,F.defaults.scale),units:e.theme.units?e.theme.units:F.defaults.units,weight:e.theme.fontweight?e.theme.fontweight:"bold"},e.text=e.theme.text||Math.floor(e.width)+"x"+Math.floor(e.height),e.noWrap=e.theme.nowrap||e.flags.nowrap,e.align=e.theme.align||e.flags.align||"center",e.flags.textmode){case"literal":e.text=e.flags.dimensions.width+"x"+e.flags.dimensions.height;break;case"exact":if(!e.flags.exactDimensions)break;e.text=Math.floor(e.flags.exactDimensions.width)+"x"+Math.floor(e.flags.exactDimensions.height)}var r=e.flags.lineWrap||F.setup.lineWrapRatio,i=e.width*r,o=i,a=new v({width:e.width,height:e.height}),s=a.Shape,h=new s.Rect("holderBg",{fill:e.theme.bg});if(h.resize(e.width,e.height),a.root.add(h),e.flags.outline){var u=new x(h.properties.fill);u=u.lighten(u.lighterThan("7f7f7f")?-.1:.1),h.properties.outline={fill:u.toHex(!0),width:2}}var c=e.theme.fg;if(e.flags.autoFg){var d=new x(h.properties.fill),f=new x("fff"),p=new x("000",{alpha:.285714});c=d.blendAlpha(d.lighterThan("7f7f7f")?p:f).toHex(!0)}var g=new s.Group("holderTextGroup",{text:e.text,align:e.align,font:e.font,fill:c});g.moveTo(null,null,1),a.root.add(g);var m=g.textPositionData=O(a);if(!m)throw"Holder: staging fallback not supported yet.";g.properties.leading=m.boundingBox.height;var y=null,w=null;if(m.lineCount>1){var b,S=0,A=0,C=0;w=new s.Group("line"+C),"left"!==e.align&&"right"!==e.align||(o=e.width*(1-2*(1-r)));for(var E=0;E<m.words.length;E++){var k=m.words[E];y=new s.Text(k.text);var T="\\n"==k.text;!e.noWrap&&(S+k.width>=o||!0===T)&&(t(g,w,S,g.properties.leading),g.add(w),S=0,A+=g.properties.leading,C+=1,w=new s.Group("line"+C),w.y=A),!0!==T&&(y.moveTo(S,0),S+=m.spaceWidth+k.width,w.add(y))}if(t(g,w,S,g.properties.leading),g.add(w),"left"===e.align)g.moveTo(e.width-i,null,null);else if("right"===e.align){for(b in g.children)w=g.children[b],w.moveTo(e.width-w.width,null,null);g.moveTo(0-(e.width-i),null,null)}else{for(b in g.children)w=g.children[b],w.moveTo((g.width-w.width)/2,null,null);g.moveTo((e.width-g.width)/2,null,null)}g.moveTo(null,(e.height-g.height)/2,null),(e.height-g.height)/2<0&&g.moveTo(null,0,null)}else y=new s.Text(e.text),w=new s.Group("line0"),w.add(y),g.add(w),"left"===e.align?g.moveTo(e.width-i,null,null):"right"===e.align?g.moveTo(0-(e.width-i),null,null):g.moveTo((e.width-m.boundingBox.width)/2,null,null),g.moveTo(null,(e.height-m.boundingBox.height)/2,null);return a}function l(e,t,n,r){var i=parseInt(e,10),o=parseInt(t,10),a=Math.max(i,o),s=Math.min(i,o),l=.8*Math.min(s,a*r);return Math.round(Math.max(n,l))}function h(e){var t;t=null==e||null==e.nodeType?F.vars.resizableImages:[e];for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i.holderData){var o=i.holderData.flags,s=k(i);if(s){if(!i.holderData.resizeUpdate)continue;if(o.fluid&&o.auto){var l=i.holderData.fluidConfig;switch(l.mode){case"width":s.height=s.width/l.ratio;break;case"height":s.width=s.height*l.ratio}}var h={mode:"image",holderSettings:{dimensions:s,theme:o.theme,flags:o},el:i,engineSettings:i.holderData.engineSettings};"exact"==o.textmode&&(o.exactDimensions=s,h.holderSettings.dimensions=o.dimensions),a(h)}else d(i)}}}function u(e){if(e.holderData){var t=k(e);if(t){var n=e.holderData.flags,r={fluidHeight:"%"==n.dimensions.height.slice(-1),fluidWidth:"%"==n.dimensions.width.slice(-1),mode:null,initialDimensions:t};r.fluidWidth&&!r.fluidHeight?(r.mode="width",r.ratio=r.initialDimensions.width/parseFloat(n.dimensions.height)):!r.fluidWidth&&r.fluidHeight&&(r.mode="height",r.ratio=parseFloat(n.dimensions.width)/r.initialDimensions.height),e.holderData.fluidConfig=r}else d(e)}}function c(){var e,n=[],r=Object.keys(F.vars.invisibleImages);r.forEach(function(t){e=F.vars.invisibleImages[t],k(e)&&"img"==e.nodeName.toLowerCase()&&(n.push(e),delete F.vars.invisibleImages[t])}),n.length&&j.run({images:n}),setTimeout(function(){t.requestAnimationFrame(c)},10)}function d(e){e.holderData.invisibleId||(F.vars.invisibleId+=1,F.vars.invisibleImages["i"+F.vars.invisibleId]=e,e.holderData.invisibleId=F.vars.invisibleId)}function f(e){F.vars.debounceTimer||e.call(this),F.vars.debounceTimer&&t.clearTimeout(F.vars.debounceTimer),F.vars.debounceTimer=t.setTimeout(function(){F.vars.debounceTimer=null,e.call(this)},F.setup.debounce)}function p(){f(function(){h(null)})}var g=n(2),m=n(3),v=n(6),y=n(7),w=n(8),b=n(9),x=n(10),S=n(11),A=n(12),C=n(15),E=y.extend,k=y.dimensionCheck,T=S.svg_ns,j={version:S.version,addTheme:function(e,t){return null!=e&&null!=t&&(F.settings.themes[e]=t),delete F.vars.cache.themeKeys,this},addImage:function(e,t){return b.getNodeArray(t).forEach(function(t){var n=b.newEl("img"),r={};r[F.setup.dataAttr]=e,b.setAttr(n,r),t.appendChild(n)}),this},setResizeUpdate:function(e,t){e.holderData&&(e.holderData.resizeUpdate=!!t,e.holderData.resizeUpdate&&h(e))},run:function(e){e=e||{};var n={},a=E(F.settings,e);F.vars.preempted=!0,F.vars.dataAttr=a.dataAttr||F.setup.dataAttr,n.renderer=a.renderer?a.renderer:F.setup.renderer,-1===F.setup.renderers.join(",").indexOf(n.renderer)&&(n.renderer=F.setup.supportsSVG?"svg":F.setup.supportsCanvas?"canvas":"html");var s=b.getNodeArray(a.images),l=b.getNodeArray(a.bgnodes),h=b.getNodeArray(a.stylenodes),u=b.getNodeArray(a.objects);return n.stylesheets=[],n.svgXMLStylesheet=!0,n.noFontFallback=!!a.noFontFallback,n.noBackgroundSize=!!a.noBackgroundSize,h.forEach(function(e){if(e.attributes.rel&&e.attributes.href&&"stylesheet"==e.attributes.rel.value){var t=e.attributes.href.value,r=b.newEl("a");r.href=t;var i=r.protocol+"//"+r.host+r.pathname+r.search;n.stylesheets.push(i)}}),l.forEach(function(e){if(t.getComputedStyle){var r=t.getComputedStyle(e,null).getPropertyValue("background-image"),s=e.getAttribute("data-background-src"),l=s||r,h=null,u=a.domain+"/",c=l.indexOf(u);if(0===c)h=l;else if(1===c&&"?"===l[0])h=l.slice(1);else{var d=l.substr(c).match(/([^\"]*)"?\)/);if(null!==d)h=d[1];else if(0===l.indexOf("url("))throw"Holder: unable to parse background URL: "+l}if(h){var f=i(h,a);f&&o({mode:"background",el:e,flags:f,engineSettings:n})}}}),u.forEach(function(e){var t={};try{t.data=e.getAttribute("data"),t.dataSrc=e.getAttribute(F.vars.dataAttr)}catch(e){}var i=null!=t.data&&0===t.data.indexOf(a.domain),o=null!=t.dataSrc&&0===t.dataSrc.indexOf(a.domain);i?r(a,n,t.data,e):o&&r(a,n,t.dataSrc,e)}),s.forEach(function(e){var t={};try{t.src=e.getAttribute("src"),t.dataSrc=e.getAttribute(F.vars.dataAttr),t.rendered=e.getAttribute("data-holder-rendered")}catch(e){}var i=null!=t.src,o=null!=t.dataSrc&&0===t.dataSrc.indexOf(a.domain),s=null!=t.rendered&&"true"==t.rendered;i?0===t.src.indexOf(a.domain)?r(a,n,t.src,e):o&&(s?r(a,n,t.dataSrc,e):function(e,t,n,i,o){y.imageExists(e,function(e){e||r(t,n,i,o)})}(t.src,a,n,t.dataSrc,e)):o&&r(a,n,t.dataSrc,e)}),this}},F={settings:{domain:"holder.js",images:"img",objects:"object",bgnodes:"body .holderjs",stylenodes:"head link.holderjs",themes:{gray:{bg:"#EEEEEE",fg:"#AAAAAA"},social:{bg:"#3a5a97",fg:"#FFFFFF"},industrial:{bg:"#434A52",fg:"#C2F200"},sky:{bg:"#0D8FDB",fg:"#FFFFFF"},vine:{bg:"#39DBAC",fg:"#1E292C"},lava:{bg:"#F8591A",fg:"#1C2846"}}},defaults:{size:10,units:"pt",scale:1/16}},O=function(){var e=null,t=null,n=null;return function(r){var i=r.root;if(F.setup.supportsSVG){var o=!1;null!=e&&e.parentNode===document.body||(o=!0),e=w.initSVG(e,i.properties.width,i.properties.height),e.style.display="block",o&&(t=b.newEl("text",T),n=function(e){return document.createTextNode(e)}(null),b.setAttr(t,{x:0}),t.appendChild(n),e.appendChild(t),document.body.appendChild(e),e.style.visibility="hidden",e.style.position="absolute",e.style.top="-100%",e.style.left="-100%");var a=i.children.holderTextGroup,s=a.properties;b.setAttr(t,{y:s.font.size,style:y.cssProps({"font-weight":s.font.weight,"font-size":s.font.size+s.font.units,"font-family":s.font.family})}),n.nodeValue=s.text;var l=t.getBBox(),h=Math.ceil(l.width/i.properties.width),u=s.text.split(" "),c=s.text.match(/\\n/g);h+=null==c?0:c.length,n.nodeValue=s.text.replace(/[ ]+/g,"");var d=t.getComputedTextLength(),f=l.width-d,p=Math.round(f/Math.max(1,u.length-1)),g=[];if(h>1){n.nodeValue="";for(var m=0;m<u.length;m++)if(0!==u[m].length){n.nodeValue=y.decodeHtmlEntity(u[m]);var v=t.getBBox();g.push({text:u[m],width:v.width})}}return e.style.display="none",{spaceWidth:p,lineCount:h,boundingBox:l,words:g}}return!1}}();for(var z in F.flags)F.flags.hasOwnProperty(z)&&(F.flags[z].match=function(e){return e.match(this.regex)});F.setup={renderer:"html",debounce:100,ratio:1,supportsCanvas:!1,supportsSVG:!1,lineWrapRatio:.9,dataAttr:"data-src",renderers:["html","canvas","svg"]},F.vars={preempted:!1,resizableImages:[],invisibleImages:{},invisibleId:0,visibilityCheckStarted:!1,debounceTimer:null,cache:{}},function(){var e=b.newEl("canvas");e.getContext&&-1!=e.toDataURL("image/png").indexOf("data:image/png")&&(F.setup.renderer="canvas",F.setup.supportsCanvas=!0),document.createElementNS&&document.createElementNS(T,"svg").createSVGRect&&(F.setup.renderer="svg",F.setup.supportsSVG=!0)}(),function(){F.vars.visibilityCheckStarted||(t.requestAnimationFrame(c),F.vars.visibilityCheckStarted=!0)}(),g&&g(function(){F.vars.preempted||j.run(),t.addEventListener?(t.addEventListener("resize",p,!1),t.addEventListener("orientationchange",p,!1)):t.attachEvent("onresize",p),"object"==typeof t.Turbolinks&&t.document.addEventListener("page:change",function(){j.run()})}),e.exports=j}).call(t,function(){return this}())},function(e,t){e.exports="undefined"!=typeof window&&function(e){function t(e){if(!w){if(!a.body)return i(t);for(w=!0;e=b.shift();)i(e)}}function n(e){(v||e.type===l||a[d]===c)&&(r(),t())}function r(){v?(a[m](p,n,h),e[m](l,n,h)):(a[f](g,n),e[f](u,n))}function i(e,t){setTimeout(e,+t>=0?t:1)}function o(e){w?i(e):b.push(e)}null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e,!1),document.readyState="complete"},!1),document.readyState="loading");var a=e.document,s=a.documentElement,l="load",h=!1,u="on"+l,c="complete",d="readyState",f="detachEvent",p="DOMContentLoaded",g="onreadystatechange",m="removeEventListener",v="addEventListener"in a,y=h,w=h,b=[];if(a[d]===c)i(t);else if(v)a.addEventListener(p,n,h),e.addEventListener(l,n,h);else{a.attachEvent(g,n),e.attachEvent(u,n);try{y=null==e.frameElement&&s}catch(e){}y&&y.doScroll&&function e(){if(!w){try{y.doScroll("left")}catch(t){return i(e,50)}r(),t()}}()}return o.version="1.4.0",o.isReady=function(){return w},o}(window)},function(e,t,n){var r=encodeURIComponent,i=decodeURIComponent,o=n(4),a=n(5),s=/(\w+)\[(\d+)\]/,l=/\w+\.\w+/;t.parse=function(e){if("string"!=typeof e)return{};if(""===(e=o(e)))return{};"?"===e.charAt(0)&&(e=e.slice(1));for(var t={},n=e.split("&"),r=0;r<n.length;r++){var a,h,u,c=n[r].split("="),d=i(c[0]);if(a=s.exec(d))t[a[1]]=t[a[1]]||[],t[a[1]][a[2]]=i(c[1]);else if(a=l.test(d)){for(a=d.split("."),h=t;a.length;)if(u=a.shift(),u.length){if(h[u]){if(h[u]&&"object"!=typeof h[u])break}else h[u]={};a.length||(h[u]=i(c[1])),h=h[u]}}else t[c[0]]=null==c[1]?"":i(c[1])}return t},t.stringify=function(e){if(!e)return"";var t=[];for(var n in e){var i=e[n];if("array"!=a(i))t.push(r(n)+"="+r(e[n]));else for(var o=0;o<i.length;++o)t.push(r(n+"["+o+"]")+"="+r(i[o]))}return t.join("&")}},function(e,t){function n(e){return e.replace(/^\s*|\s*$/g,"")}t=e.exports=n,t.left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t){function n(e){return!(null==e||!(e._isBuffer||e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)))}var r=Object.prototype.toString;e.exports=function(e){switch(r.call(e)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===e?"null":void 0===e?"undefined":e!==e?"nan":e&&1===e.nodeType?"element":n(e)?"buffer":typeof(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e))}},function(e,t){var n=function(e){function t(e,t){for(var n in t)e[n]=t[n];return e}var n=1,r=function(e){n++,this.parent=null,this.children={},this.id=n,this.name="n"+n,void 0!==e&&(this.name=e),this.x=this.y=this.z=0,this.width=this.height=0};r.prototype.resize=function(e,t){null!=e&&(this.width=e),null!=t&&(this.height=t)},r.prototype.moveTo=function(e,t,n){this.x=null!=e?e:this.x,this.y=null!=t?t:this.y,this.z=null!=n?n:this.z},r.prototype.add=function(e){var t=e.name;if(void 0!==this.children[t])throw"SceneGraph: child already exists: "+t;this.children[t]=e,e.parent=this};var i=function(){r.call(this,"root"),this.properties=e};i.prototype=new r;var o=function(e,n){if(r.call(this,e),this.properties={fill:"#000000"},void 0!==n)t(this.properties,n);else if(void 0!==e&&"string"!=typeof e)throw"SceneGraph: invalid node name"};o.prototype=new r;var a=function(){o.apply(this,arguments),this.type="group"};a.prototype=new o;var s=function(){o.apply(this,arguments),this.type="rect"};s.prototype=new o;var l=function(e){o.call(this),this.type="text",this.properties.text=e};l.prototype=new o;var h=new i;return this.Shape={Rect:s,Text:l,Group:a},this.root=h,this};e.exports=n},function(e,t){(function(e){t.extend=function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);if(null!=t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n},t.cssProps=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+":"+e[n]);return t.join(";")},t.encodeHtmlEntity=function(e){for(var t=[],n=0,r=e.length-1;r>=0;r--)n=e.charCodeAt(r),n>128?t.unshift(["&#",n,";"].join("")):t.unshift(e[r]);return t.join("")},t.imageExists=function(e,t){var n=new Image;n.onerror=function(){t.call(this,!1)},n.onload=function(){t.call(this,!0)},n.src=e},t.decodeHtmlEntity=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(t)})},t.dimensionCheck=function(e){var t={height:e.clientHeight,width:e.clientWidth};return!(!t.height||!t.width)&&t},t.truthy=function(e){return"string"==typeof e?"true"===e||"yes"===e||"1"===e||"on"===e||"✓"===e:!!e},t.parseColor=function(e){var t,n=e.match(/(^(?:#?)[0-9a-f]{6}$)|(^(?:#?)[0-9a-f]{3}$)/i);return null!==n?(t=n[1]||n[2],"#"!==t[0]?"#"+t:t):null!==(n=e.match(/^rgb\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/))?t="rgb("+n.slice(1).join(",")+")":(n=e.match(/^rgba\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0\.\d{1,}|1)\)$/),null!==n?t="rgba("+n.slice(1).join(",")+")":null)},t.canvasRatio=function(){var t=1,n=1;if(e.document){var r=e.document.createElement("canvas");if(r.getContext){var i=r.getContext("2d");t=e.devicePixelRatio||1,n=i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1}}return t/n}}).call(t,function(){return this}())},function(e,t,n){(function(e){var r=n(9),i="http://www.w3.org/2000/svg";t.initSVG=function(e,t,n){var o,a,s=!1;e&&e.querySelector?null===(a=e.querySelector("style"))&&(s=!0):(e=r.newEl("svg",i),s=!0),s&&(o=r.newEl("defs",i),a=r.newEl("style",i),r.setAttr(a,{type:"text/css"}),o.appendChild(a),e.appendChild(o)),e.webkitMatchesSelector&&e.setAttribute("xmlns",i);for(var l=0;l<e.childNodes.length;l++)8===e.childNodes[l].nodeType&&e.removeChild(e.childNodes[l]);for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);return r.setAttr(e,{width:t,height:n,viewBox:"0 0 "+t+" "+n,preserveAspectRatio:"none"}),e},t.svgStringToDataURI=function(){return function(t,n){return n?"data:image/svg+xml;charset=UTF-8;base64,"+btoa(e.unescape(encodeURIComponent(t))):"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t)}}(),t.serializeSVG=function(t,n){if(e.XMLSerializer){var i=new XMLSerializer,o="",a=n.stylesheets;if(n.svgXMLStylesheet){for(var s=r.createXML(),l=a.length-1;l>=0;l--){var h=s.createProcessingInstruction("xml-stylesheet",'href="'+a[l]+'" rel="stylesheet"');s.insertBefore(h,s.firstChild)}s.removeChild(s.documentElement),o=i.serializeToString(s)}var u=i.serializeToString(t);return u=u.replace(/\&amp;(\#[0-9]{2,}\;)/g,"&$1"),o+u}}}).call(t,function(){return this}())},function(e,t){(function(e){t.newEl=function(t,n){if(e.document)return null==n?e.document.createElement(t):e.document.createElementNS(n,t)},t.setAttr=function(e,t){for(var n in t)e.setAttribute(n,t[n])},t.createXML=function(){if(e.DOMParser)return(new DOMParser).parseFromString("<xml />","application/xml")},t.getNodeArray=function(t){var n=null;return"string"==typeof t?n=document.querySelectorAll(t):e.NodeList&&t instanceof e.NodeList?n=t:e.Node&&t instanceof e.Node?n=[t]:e.HTMLCollection&&t instanceof e.HTMLCollection?n=t:t instanceof Array?n=t:null===t&&(n=[]),n=Array.prototype.slice.call(n)}}).call(t,function(){return this}())},function(e,t){var n=function(e,t){"string"==typeof e&&(this.original=e,"#"===e.charAt(0)&&(e=e.slice(1)),/[^a-f0-9]+/i.test(e)||(3===e.length&&(e=e.replace(/./g,"$&$&")),6===e.length&&(this.alpha=1,t&&t.alpha&&(this.alpha=t.alpha),this.set(parseInt(e,16)))))};n.rgb2hex=function(e,t,n){function r(e){var t=(0|e).toString(16);return e<16&&(t="0"+t),t}return[e,t,n].map(r).join("")},n.hsl2rgb=function(e,t,n){var r=e/60,i=(1-Math.abs(2*n-1))*t,o=i*(1-Math.abs(parseInt(r)%2-1)),a=n-i/2,s=0,l=0,h=0;return r>=0&&r<1?(s=i,l=o):r>=1&&r<2?(s=o,l=i):r>=2&&r<3?(l=i,h=o):r>=3&&r<4?(l=o,h=i):r>=4&&r<5?(s=o,h=i):r>=5&&r<6&&(s=i,h=o),s+=a,l+=a,h+=a,s=parseInt(255*s),l=parseInt(255*l),h=parseInt(255*h),[s,l,h]},n.prototype.set=function(e){this.raw=e;var t=(16711680&this.raw)>>16,n=(65280&this.raw)>>8,r=255&this.raw,i=.2126*t+.7152*n+.0722*r,o=-.09991*t-.33609*n+.436*r,a=.615*t-.55861*n-.05639*r;return this.rgb={r:t,g:n,b:r},this.yuv={y:i,u:o,v:a},this},n.prototype.lighten=function(e){var t=Math.min(1,Math.max(0,Math.abs(e)))*(e<0?-1:1),r=255*t|0,i=Math.min(255,Math.max(0,this.rgb.r+r)),o=Math.min(255,Math.max(0,this.rgb.g+r)),a=Math.min(255,Math.max(0,this.rgb.b+r)),s=n.rgb2hex(i,o,a);return new n(s)},n.prototype.toHex=function(e){return(e?"#":"")+this.raw.toString(16)},n.prototype.lighterThan=function(e){return e instanceof n||(e=new n(e)),this.yuv.y>e.yuv.y},n.prototype.blendAlpha=function(e){e instanceof n||(e=new n(e));var t=e,r=this,i=t.alpha*t.rgb.r+(1-t.alpha)*r.rgb.r,o=t.alpha*t.rgb.g+(1-t.alpha)*r.rgb.g,a=t.alpha*t.rgb.b+(1-t.alpha)*r.rgb.b;return new n(n.rgb2hex(i,o,a))},e.exports=n},function(e,t){e.exports={version:"2.9.4",svg_ns:"http://www.w3.org/2000/svg"}},function(e,t,n){function r(e,t){return c.element({tag:t,width:e.width,height:e.height,fill:e.properties.fill})}function i(e){return h.cssProps({fill:e.fill,"font-weight":e.font.weight,"font-family":e.font.family+", monospace","font-size":e.font.size+e.font.units})}function o(e,t,n){var r=n/2;return["M",r,r,"H",e-r,"V",t-r,"H",r,"V",0,"M",0,r,"L",e,t-r,"M",0,t-r,"L",e,r].join(" ")}var a=n(13),s=n(8),l=n(11),h=n(7),u=l.svg_ns,c={element:function(e){var t=e.tag,n=e.content||"";return delete e.tag,delete e.content,[t,n,e]}};e.exports=function(e,t){var n=t.engineSettings,l=n.stylesheets,h=l.map(function(e){return'<?xml-stylesheet rel="stylesheet" href="'+e+'"?>'}).join("\n"),d="holder_"+Number(new Date).toString(16),f=e.root,p=f.children.holderTextGroup,g="#"+d+" text { "+i(p.properties)+" } ";p.y+=.8*p.textPositionData.boundingBox.height;var m=[];Object.keys(p.children).forEach(function(e){var t=p.children[e];Object.keys(t.children).forEach(function(e){var n=t.children[e],r=p.x+t.x+n.x,i=p.y+t.y+n.y,o=c.element({tag:"text",content:n.properties.text,x:r,y:i});m.push(o)})});var v=c.element({tag:"g",content:m}),y=null;if(f.children.holderBg.properties.outline){var w=f.children.holderBg.properties.outline;y=c.element({tag:"path",d:o(f.children.holderBg.width,f.children.holderBg.height,w.width),"stroke-width":w.width,stroke:w.fill,fill:"none"})}var b=r(f.children.holderBg,"rect"),x=[];x.push(b),w&&x.push(y),x.push(v);var S=c.element({tag:"g",id:d,content:x}),A=c.element({tag:"style",content:g,type:"text/css"}),C=c.element({tag:"defs",content:A}),E=c.element({tag:"svg",content:[C,S],width:f.properties.width,height:f.properties.height,xmlns:u,viewBox:[0,0,f.properties.width,f.properties.height].join(" "),preserveAspectRatio:"none"}),k=a(E);return k=h+k[0],s.svgStringToDataURI(k,"background"===t.mode)}},function(e,t,n){n(14);e.exports=function e(t,n,r){"use strict";function i(e,t){if(null!==t&&!1!==t&&void 0!==t)return"string"!=typeof t&&"object"!=typeof t?String(t):t}var o,a,s,l,h=1,u=!0;if(r=r||{},"string"==typeof t[0])t[0]=function(e){var t=e.match(/^[\w-]+/),n={tag:t?t[0]:"div",attr:{},children:[]},i=e.match(/#([\w-]+)/),o=e.match(/\$([\w-]+)/),a=e.match(/\.[\w-]+/g);return i&&(n.attr.id=i[1],r[i[1]]=n),o&&(r[o[1]]=n),a&&(n.attr.class=a.join(" ").replace(/\./g,"")),e.match(/&$/g)&&(u=!1),n}(t[0]);else{if(!Array.isArray(t[0]))throw new Error("First element of array must be a string, or an array and not "+JSON.stringify(t[0]));h=0}for(;h<t.length;h++){if(!1===t[h]||null===t[h]){t[0]=!1;break}if(void 0!==t[h]&&!0!==t[h])if("string"==typeof t[h])u&&(t[h]=function(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(t[h])),t[0].children.push(t[h]);else if("number"==typeof t[h])t[0].children.push(t[h]);else if(Array.isArray(t[h])){if(Array.isArray(t[h][0])){if(t[h].reverse().forEach(function(e){t.splice(h+1,0,e)}),0!==h)continue;h++}e(t[h],n,r),t[h][0]&&t[0].children.push(t[h][0])}else if("function"==typeof t[h])s=t[h];else{if("object"!=typeof t[h])throw new TypeError('"'+t[h]+'" is not allowed as a value.');for(a in t[h])t[h].hasOwnProperty(a)&&null!==t[h][a]&&!1!==t[h][a]&&("style"===a&&"object"==typeof t[h][a]?t[0].attr[a]=JSON.stringify(t[h][a],i).slice(2,-2).replace(/","/g,";").replace(/":"/g,":").replace(/\\"/g,"'"):t[0].attr[a]=t[h][a])}}if(!1!==t[0]){o="<"+t[0].tag;for(l in t[0].attr)t[0].attr.hasOwnProperty(l)&&(o+=" "+l+'="'+function(e){return e||0===e?String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;"):""}(t[0].attr[l])+'"');o+=">",t[0].children.forEach(function(e){o+=e}),o+="</"+t[0].tag+">",t[0]=o}return r[0]=t[0],s&&s(t[0]),r}},function(e,t){"use strict";function n(e){var t=""+e,n=r.exec(t);if(!n)return t;var i,o="",a=0,s=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}s!==a&&(o+=t.substring(s,a)),s=a+1,o+=i}return s!==a?o+t.substring(s,a):o}var r=/["'&<>]/;e.exports=n},function(e,t,n){var r=n(9),i=n(7);e.exports=function(){var e=r.newEl("canvas"),t=null;return function(n){null==t&&(t=e.getContext("2d"));var r=i.canvasRatio(),o=n.root;e.width=r*o.properties.width,e.height=r*o.properties.height,t.textBaseline="middle";var a=o.children.holderBg,s=r*a.width,l=r*a.height;t.fillStyle=a.properties.fill,t.fillRect(0,0,s,l),a.properties.outline&&(t.strokeStyle=a.properties.outline.fill,t.lineWidth=a.properties.outline.width,t.moveTo(1,1),t.lineTo(s-1,1),t.lineTo(s-1,l-1),t.lineTo(1,l-1),t.lineTo(1,1),t.moveTo(0,1),t.lineTo(s,l-1),t.moveTo(0,l-1),t.lineTo(s,1),t.stroke());var h=o.children.holderTextGroup;t.font=h.properties.font.weight+" "+r*h.properties.font.size+h.properties.font.units+" "+h.properties.font.family+", monospace",t.fillStyle=h.properties.fill;for(var u in h.children){var c=h.children[u];for(var d in c.children){var f=c.children[d],p=r*(h.x+c.x+f.x),g=r*(h.y+c.y+f.y+h.properties.leading/2);t.fillText(f.properties.text,p,g)}}return e.toDataURL("image/png")}}()}])}),function(e,t){t&&(Holder=e.Holder)}(this,"undefined"!=typeof Meteor&&"undefined"!=typeof Package);
}catch(e){console.log("Module 'holder-2.9.4': ",e);}
try{(function(){
if(!i$.isIE){
i$.addOnLoad(function(){
var _1=new Array();
var _2=document.getElementsByTagName("SECTION");
var _3=null;
for(var i=0;i<_2.length;i++){
if(i$.hasClass(_2[i],"a11yRegionTarget")){
var _4=_2[i];
var _5=null;
var _6=_4.getElementsByTagName("SPAN");
var _7=document.getElementsByTagName("HEADER");
var _8=null;
for(var j=0;j<_6.length;j++){
if(i$.hasClass(_6[j],"a11yRegionLabel")){
_5=_6[j];
}
}
if(_5){
var _9=_5;
var _a=_4;
while((_a=_a.parentNode)!=null){
if(i$.hasClass(_a,"component-control")){
var m=_a&&(_a.className||"").match(/id-([\S]+)/);
_3=m&&m[1];
break;
}
}
if(_3){
var _b="skinHeader"+_3;
var _c=_9.innerHTML;
if(_1.indexOf(_c)>-1){
for(var j=0;j<_1.length;j++){
var _d=_c.concat(" ").concat(j+1);
if(_1.indexOf(_d)==-1){
_c=_d;
_1.push(_c);
break;
}
}
}else{
_1.push(_c);
}
_4.setAttribute("aria-label",_c);
for(var k=0;k<_7.length;k++){
if(i$.hasClass(_7[k],"wpthemeControlHeader")){
_8=_7[k];
if(_8.parentNode==_4){
_8.setAttribute("aria-label",_b);
}
}
}
}
}
}
}
});
}
})();


}catch(e){console.log("Module 'wp_theme_skin_region': ",e);}
try{!function(a){"use strict";a.fn.nabrkWideSlider=function(e){function i(e){for(var i,n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";a("[data-uuid="+(i=Array(e||61).join().split(",").map(function(){return n.charAt(Math.floor(Math.random()*n.length))}).join(""))+"]").length>0;);return i.trim()}return e=a.extend({range:1,leftCaption:"Previous",rightCaption:"Next"},e||{}),this.each(function(n,s){function t(a){d.removeClass("loading");var i=d.index(a);for(a.hasClass("loaded")||a.addClass("loading"),n=0;n<e.range+1;n++){var s=i-n,t=i+n;i<=0?s=d.length-n:i>=d.length-1&&(t=n),d.eq(s).hasClass("loaded")||d.eq(s).addClass("loading "),d.eq(t).hasClass("loaded")||d.eq(t).addClass("loading ")}}function o(e){e.find("[data-animation ^= 'animated']").each(function(){var e=a(this),i=e.data("animation");e.addClass(i).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){e.removeClass(i)})}),e.find("video, iframe").length>0?r.addClass("is-player"):r.removeClass("is-player"),t(e),new Blazy({selector:".carousel-item.loading .carousel-b-lazy",loadInvisible:!0,success:function(e){var i=a(e);i.imagesLoaded({background:!0}).fail(function(a){i.closest(".carousel-item").addClass("not-loaded")}).done(function(a){i.closest(".carousel-item").addClass("loaded")}).always(function(a){i.closest(".carousel-item").removeClass("loading")})},error:function(a,e){"missing"===e?console.error(a,"data-src is missing!"):"invalid"===e&&console.error(a,"data-src is invalid!"),l.closest(".carousel-item").addClass("not-loaded").removeClass("loading")}})}var l=a(s).attr("data-uuid",i(32));e=a.extend(e,l.data());var r=l.find(".carousel-inner"),d=r.find("> .carousel-item"),c=a("<a class='left carousel-control' data-target='[data-uuid="+e.uuid+"]' role='button' data-slide='prev'><i class='nc-icon-outline arrows-1_minimal-left' aria-hidden='true'></i> <span class='sr-only'>"+e.leftCaption+"</span></a>").appendTo(l),u=a("<a class='right carousel-control' data-target='[data-uuid="+e.uuid+"]' role='button' data-slide='next'><i class='nc-icon-outline arrows-1_minimal-right' aria-hidden='true'></i> <span class='sr-only'>"+e.rightCaption+"</span></a>").appendTo(l),f=a('<ol class="carousel-indicators"></ol>').appendTo(l);a.fn.ripples&&"function"==typeof a.fn.ripples&&(c.ripples(),u.ripples()),d.filter(".active").length<=0&&d.first().addClass("active"),d.each(function(i,n){var s=a(n),t=(function(){var e,i=a('<div class="sk-circle"></div>').appendTo(s);for(e=1;e<=12;e++)i.append('<div class="sk-circle'+e+' sk-child"></div>')}(),a("<li data-target='[data-uuid="+e.uuid+"]' data-slide-to='"+i+"'><a href='javascript:;'></a></li>").appendTo(f));s.hasClass("active")&&t.addClass("active")}),e.range&&e.range>d.length&&(e.range=d.length-1),l.carousel(e),o(d.filter(".active")),l.on("slide.bs.carousel",function(e){o(a(e.relatedTarget))}),l.find(".carousel-inner").swipe({swipeLeft:function(a,e,i,n,s){l.carousel("next")},swipeRight:function(){l.carousel("prev")},threshold:0})})}}(jQuery);
}catch(e){console.log("Module 'bootstrap-touch-slider-1.0.0': ",e);}
try{!function(e,t){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(e,require("jquery-utils-1.0.0"),require("blazy"),require("imagesLoaded"),require("salvattore-1.0.9")):"function"==typeof define&&define.amd?define("wcm-news-archive-1.0.0",["jquery-utils-1.0.0","blazy","imagesLoaded","salvattore-1.0.9"],function(i,r,o,u){t(e,i,r,o,u)}):t(e,e.jQuery,e.Blazy,e.imagesLoaded,e.salvattore)}(this,function(e,t,i,r,o,u){"use strict"});
}catch(e){console.log("Module 'wcm-news-archive-1.0.0': ",e);}
try{(function(){
    i$.merge({
	"WARNING_0":"Ескерту",
	"DELETE_0":"Жою",
	"INFO_0":"Ақпарат",
	"MESSAGES_AVAILABLE_1":"${0} хабарлары сараптауға қол жетімді",
	"SHOW_DETAILS_0":"Мәліметтерді көрсету",
	"ERROR_0":"Қате",
	"HIDE_DETAILS_0":"Толық мәліметтерді жасыру"
},i$.fromPath("wptheme.statusBar.nls",true));
})();
}catch(e){console.log("Module 'wp_status_bar': ",e);}
try{(function(){
if(typeof com==="undefined"||!com){
com={};
}
if(typeof com.ibm==="undefined"||!com.ibm){
com.ibm={};
}
if(typeof com.ibm.widgets==="undefined"||!com.ibm.widgets){
com.ibm.widgets={};
}
if(typeof com.ibm.widgets.StatusType==="undefined"||!com.ibm.widgets.StatusType){
com.ibm.widgets.StatusType=function(id,_1,_2,_3){
this._id=id;
this._styleClass=_1;
this._iconPath=_2;
this._iconAlt=_3;
};
}
if(typeof com.ibm.widgets.StatusMessage==="undefined"||!com.ibm.widgets.StatusMessage){
com.ibm.widgets.StatusMessage=function(_4,_5,_6){
this._type=_4;
this._message=_5;
if(!i$.isString(_5)&&_5.message&&i$.isString(_5.message)){
this._message=_5.message;
}
this._details=_6;
};
}
if(typeof com.ibm.widgets.StatusBarV2==="undefined"||!com.ibm.widgets.StatusBarV2){
com.ibm.widgets.StatusBarV2=function(_7){
this.uid=_7;
this.showDetails=false;
this._messages=[];
this._connections=[];
this._numMessages=0;
this._baseURL=window.location.protocol+"//"+window.location.host;
this.blankGifIcon="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
this._statusTypesMap={"error":new com.ibm.widgets.StatusType(0,"wpthemeError",this.blankGifIcon,wptheme.statusBar.nls.ERROR_0),"warning":new com.ibm.widgets.StatusType(1,"wpthemeWarning",this.blankGifIcon,wptheme.statusBar.nls.WARNING_0),"info":new com.ibm.widgets.StatusType(2,"wpthemeInfo",this.blankGifIcon,wptheme.statusBar.nls.INFO_0)};
i$.addListener("/portal/status",i$.scope(this,this.addMessage));
i$.addListener("/message/status",i$.scope(this,this.addMessage));
i$.addListener("/portal/status/clear",i$.scope(this,this.clearMessage));
i$.addListener("/message/status/clear",i$.scope(this,this.clearMessage));
if(typeof (ibmCfg)!="undefined"&&ibmCfg.portalConfig){
this.isBidi=ibmCfg.portalConfig.isRTL;
}else{
if(typeof (ibmPortalConfig)!="undefined"){
this.isBidi=ibmPortalConfig.isRTL;
}else{
if(typeof (ibmConfig)!="undefined"){
this.isBidi=ibmConfig.isBidi;
}
}
}
i$.addOnUnload(i$.scope(this,this._onWindowUnload));
this.containerNode=i$.byId("wpthemeStatusBarContainer");
};
}
i$.augment(com.ibm.widgets.StatusBarV2,{_onWindowUnload:function(){
i$.forEach(this._connections,function(_8){
i$.unbindDomEvt(_8);
});
this._connections=null;
this.clear();
this._messages=null;
},_getStatusContainer:function(){
return this.containerNode;
},_escapeHTML:function(_9){
if(_9.replace){
return _9.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;");
}
return _9;
},setShowDetails:function(_a){
this.showDetails=_a;
},toggleShowDetails:function(){
this.setShowDetails(!this.showDetails);
this.render();
},clear:function(){
var _b=this._getStatusContainer();
if(!!_b){
_b.innerHTML="";
_b.setAttribute("role","");
_b.setAttribute("wairole","");
}
this._messages.length=0;
},clearMessage:function(_c){
if(_c.uid&&_c.uid!=this.uid){
return;
}
var _d=_c.message;
if(typeof _d==="undefined"||_d===null){
this.clear();
}else{
for(var i=this._messages.length-1;i>=0;i--){
if(this._messages[i]._type==_d._type&&this._messages[i]._message==_d._message&&this._messages[i]._details==_d._details){
this._messages.splice(i,1);
}
}
if(this._messages.length==0){
this.clear();
}else{
if(this._messages.length<100){
this.render(this._getStatusContainer());
}
}
}
},addMessage:function(_e){
if(_e.uid&&_e.uid!=this.uid){
return;
}
var _f=_e.message;
this._messages.push(_f);
if(this._messages.length<100){
this.render(this._getStatusContainer());
}
},render:function(_10){
if(_10==null){
_10=this._getStatusContainer();
}
_10.innerHTML="";
if(this._messages.length>1){
this.renderHeader(_10);
}else{
if(this._messages.length==1){
this.renderMessage(_10,this._messages[0],this.showDetails,0);
}
}
if(this.showDetails&&this._messages.length>1){
for(x in this._messages){
this.renderMessage(_10,this._messages[x],this.showDetails,x);
}
}
},renderHeader:function(_11){
if(this._messages.length>1){
var _12=2;
for(var i=0;i<this._messages.length;i++){
_12=Math.min(_12,this._statusTypesMap[this._messages[i]._type]._id);
}
var _13="info";
for(x in this._statusTypesMap){
if(this._statusTypesMap[x]._id==_12){
_13=x;
break;
}
}
var _14=new com.ibm.widgets.StatusMessage(_13,wptheme.statusBar.nls.MESSAGES_AVAILABLE_1.replace("${0}",this._messages.length),"");
this.renderMessage(_11,_14,this.showDetails,-1);
}
},renderMessage:function(_15,_16,_17,_18){
var _19=this._statusTypesMap[_16._type];
var _1a=document.createElement("div");
_1a.className="wpthemeMessage "+_19._styleClass;
if(this._messages.length>1&&_18>=0){
_1a.className+=" wpthemeMoreMsg";
}
var _1b=document.createElement("img");
_1b.className="wpthemeMsgIcon "+(_19._styleClass=="wpthemeError"?"wpthemeMsgIconError":_19._styleClass=="wpthemeWarning"?"wpthemeMsgIconWarning":"wpthemeMsgIconInfo");
_1b.src=_19._iconPath;
_1b.alt=_1b.title=_19._iconAlt;
_1a.appendChild(_1b);
var _1c=document.createElement("span");
_1c.className="wpthemeAltText";
_1c.innerHTML=this._escapeHTML(_19._iconAlt+":");
_1a.appendChild(_1c);
var _1d=document.createElement("div");
_1d.className="wpthemeMessageBody";
_1d.innerHTML=this._escapeHTML(_16._message);
_1a.appendChild(_1d);
if((this._messages.length>1&&_18<0)||(this._messages.length==1)){
if(_16._details&&_16._details.length>0||_18<0){
var _1e=document.createElement("a");
_1e.href="javascript:void(0)";
_1e.className="wpthemeHideShow";
_1e.role="button";
this._connections.push(i$.bindDomEvt(_1e,"onclick",i$.scope(this,this.toggleShowDetails)));
var _1f=document.createElement("img");
_1f.className="wpthemeMsgIcon16";
_1f.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif";
_1e.appendChild(_1f);
var _20=document.createElement("span");
_20.className="wpthemeAltText";
_1e.appendChild(_20);
}else{
_17=false;
}
var _21=document.createElement("a");
_21.href="javascript:void(0);";
_21.className="wpthemeDelete";
_21.role="button";
_21.title=wptheme.statusBar.nls.DELETE_0;
this._connections.push(i$.bindDomEvt(_21,"onclick",i$.scope(this,this.clear)));
var _22=document.createElement("img");
_22.alt=wptheme.statusBar.nls.DELETE_0;
_22.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif";
_21.appendChild(_22);
var _23=document.createElement("span");
_23.className="wpthemeAltText";
_23.innerHTML=this._escapeHTML(wptheme.statusBar.nls.DELETE_0);
_21.appendChild(_23);
if(_16._details&&_16._details.length>0||_18<0){
if(_17){
_1e.title=wptheme.statusBar.nls.HIDE_DETAILS_0;
_1f.className+=" wpthemeMsgIconHide";
_1f.alt=wptheme.statusBar.nls.HIDE_DETAILS_0;
_20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.HIDE_DETAILS_0);
}else{
_1e.title=wptheme.statusBar.nls.SHOW_DETAILS_0;
_1f.className+=" wpthemeMsgIconShow";
_1f.alt=wptheme.statusBar.nls.SHOW_DETAILS_0;
_20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.SHOW_DETAILS_0);
}
_1a.appendChild(_1e);
}
_1a.appendChild(_21);
}
var _24=document.createElement("div");
_24.className="wpthemeClear";
_1a.appendChild(_24);
if(_16._details&&_16._details.length>0&&_17&&_18>=0){
var _25=document.createElement("div");
_25.className="wpthemeDetails";
_25.appendChild(document.createTextNode(_16._details));
_1a.appendChild(_25);
}
_15.appendChild(_1a);
_15.setAttribute("role","alert");
_15.setAttribute("wairole","alert");
}});
if(typeof wpstatusbar==="undefined"||!wpstatusbar){
wpstatusbar=new com.ibm.widgets.StatusBarV2("ibmStatusBox");
}
var _26=i$.getCookie("ibm.portal.operations.error");
if(_26){
var _27=i$.fromJson(decodeURIComponent(_26));
var _28="error";
if(_27.errorType){
_28=_27.errorType;
}else{
if(_27.errorCode){
if(_27.errorCode=="400"){
_28="error";
}
}
}
i$.fireEvent("/portal/status",[{message:new com.ibm.widgets.StatusMessage(_28,_27.errorMessage?_27.errorMessage:"",_27.errorDetails?_27.errorDetails:""),uid:"ibmStatusBox"}]);
i$.deleteCookie("ibm.portal.operations.error");
}
i$.addOnLoad(function(){
if("localStorage" in window&&window["localStorage"]!==null){
if(localStorage["com.ibm.wp.toolbar.msg.msg"]!=null){
i$.fireEvent("/message/status",[{message:new com.ibm.widgets.StatusMessage(localStorage["com.ibm.wp.toolbar.msg.type"],localStorage["com.ibm.wp.toolbar.msg.msg"],""),uid:"ibmStatusBox"}]);
localStorage.removeItem("com.ibm.wp.toolbar.msg.type");
localStorage.removeItem("com.ibm.wp.toolbar.msg.msg");
}
}
});
})();


}catch(e){console.log("Module 'wp_status_bar': ",e);}
try{(function(_1){
var _2="wpToolbarProjectMenuLink",_3="wpToolbarProjectInfoBox",_4="<edit-mode>",_5="<page-id>",_6="?uri=toolbar:projectTab:projectMenu:returnURI:dialog:CloseModalDialog@oid:"+_5+"&uri=pagemode:edit:"+_4,_7="project:oid:",_8="project:null",_9="title",_a="titleLang",_b="titleDir",_c="editMode",_d="action",_e="resultURI",_f="selectProject",_10="openDialog",_11="openToolbar",_12="closeToolbar",_13={"uri":"pagemode:edit:on"},_14={"uri":"pagemode:edit:off"},_15={"uri":"toolbar:open","params":{"primaryTabURI":"default","secondaryTabURI":"default"}},_16={"uri":"toolbar:open"},_1=_1,_17=_1.document,_18=i$.byId,_19=i$.bindDomEvt,_1a=i$.fromPath,_1b=i$.forEach,_1c=i$.toQuery,_1d=wpModules.toolbar,_1e=function(_1f,e){
var k=e.keyCode;
if(k&&k!==13&&k!==32&&k!==38&&k!==40){
return false;
}
var url=_6.replace(_5,_20()).replace(_4,(_21()?"on":"off")),_22={"url":url,"autoResize":true,"posHandler":"horizontallyBelow","autoPosition":_1f.parentNode,"modal":false,"padding":0,"callbackFn":function(_23){
_1f.focus();
if(_23){
var _24=get(_23,_d);
if(_f==_24){
_25(_23);
}else{
if(_10==_24){
_26(_23);
}else{
if(_11==_24){
_27(_23);
}
}
}
}
}};
_28(_22);
return true;
},_25=function(_29){
var uri=get(_29,_e),_2a=get(_29,_c)=="true";
if(uri){
var _2b=[],_2c=_1d.isToolbarOpened(),_2d=_2e(uri),_2f=_30(_29),_31=_32();
if(_2c&&!_2d){
if(_2f){
_1d.closeToolbar({"editMode":_2a});
}else{
_1d.setEditModeActive(_2a);
}
}else{
if(_2a!=_21()){
if(_2a){
_2b.push(_13);
if(!_2c&&_31){
_2b.push(_15);
}
}else{
_2b.push(_14);
}
}
if(_2c){
if(_2f){
_1d.closeTab();
}else{
if(_31){
if(_2a){
_2b.push(_15);
}else{
_2b.push(_16);
}
}
}
}
_2b.push(_33(uri));
var win=_34(),url=_35(_2b,win),_36=win.parent||win;
_36.location.href=url;
}
}
},_26=function(_37){
var _38=_39(_3a(_37,_e));
if(_38){
var _3b=get(_37,_9)||"Dialog",url=_3c(_38),_3d={"url":url,"title":_3b,"modal":true,"autoResize":true,"metrics":{"width":900},"padding":0,"callbackFn":function(_3e){
if(_3e&&_3e.result=="project_published"){
_1d.closeToolbar({"editMode":false});
}else{
_1d.reloadViewArea(true);
}
}};
_28(_3d);
}
},_27=function(_3f){
var uri=get(_3f,_e);
_1d.openToolbar({tab:uri});
},_28=function(_40){
var _41=new wpModules.dialog.Dialog(_40);
_41.open();
},_35=function(_42,_43){
var _44=_43?_45(_43):"",url=[_44];
_44.indexOf("?")<0?url.push("?"):url.push("&");
_1b(_42,function(_46){
var uri=_46.uri,_47=_46.params;
url.push("uri=");
url.push(uri);
url.push("&");
if(_47){
url.push(_1c(_47));
url.push("&");
}
});
var r=url.join("");
return r;
},_3c=function(_48,_49){
var _4a=_49?_45(_49):"",url=[_4a],uri=_48.uri,_4b=_48.params;
_4a.indexOf("?")<0?url.push("?"):url.push("&");
url.push("uri=");
url.push(uri);
if(_4b){
url.push("&");
url.push(_1c(_4b));
}
var r=url.join("");
return r;
},_33=function(uri,_4c){
var a={};
a.uri=uri;
if(_4c){
a.params=_4c;
}
return a;
},_39=function(_4d){
if(_4d&&_4d.length>0){
var o={};
o.uri=_4d[0];
o.params={};
for(var i=1,l=_4d.length;i<l;i+=2){
var key=_4d[i],val=_4d[i+1];
if(val){
o.params[key]=[val];
}
}
return o;
}
return null;
},get=function(obj,key){
var o=obj[key];
if(o){
var v=o.value;
if(v&&v.length>0){
var r=v[0];
return r;
}
}
return null;
},_3a=function(obj,key){
var o=obj[key];
if(o){
var r=o.value;
return r;
}
return null;
},_20=function(){
var r=_34().ibmCfg.portalConfig.currentPageOID;
return r;
},_21=function(){
var r=_1d.isEditModeActive();
return r;
},_34=function(){
var r=_1d.getViewAreaWindow();
return r;
},_32=function(){
var r=_1a("wpModules.state.page.supportsToolbar",false,_34());
return r;
},_45=function(win){
var r=_1d.getBaseURL(win);
return r;
},_2e=function(uri){
var _4e=_4f(),r=true;
if(_4e){
r=uri.substring(_7.length)!=_4e;
}else{
r=uri!=_8;
}
return r;
},_30=function(_50){
var _51=_3a(_50,_d),r=(_51&&_51.length>1&&_51[1]==_12);
return r;
},_4f=function(){
return _34().ibmCfg.portalConfig.projectUUID;
};
i$.addOnLoad(function(){
var _52=_18(_2);
if(_52){
var _53=function(e){
if(_1e(_52,e)){
e.preventDefault?e.preventDefault():e.returnValue=false;
return false;
}
};
_19(_52,"click",_53);
_19(_52,"keydown",_53);
}
});
})(window);


}catch(e){console.log("Module 'wp_toolbar_projectmenu': ",e);}
try{!function(e,t){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(e,require("jquery-3.1.1")):"function"==typeof define&&define.amd?define("arrive-2.4.1",["jquery-3.1.1"],function(n){return t(e,n)}):t(e,e.jQuery)}(this,function(e,t,n){"use strict";function r(e,t,n){l.addMethod(t,n,e.unbindEvent),l.addMethod(t,n,e.unbindEventWithSelectorOrCallback),l.addMethod(t,n,e.unbindEventWithSelectorAndCallback)}function i(e){e.arrive=f.bindEvent,r(f,e,"unbindArrive"),e.leave=d.bindEvent,r(d,e,"unbindLeave")}if(e.MutationObserver&&"undefined"!=typeof HTMLElement){var o=0,l=function(){var t=HTMLElement.prototype.matches||HTMLElement.prototype.webkitMatchesSelector||HTMLElement.prototype.mozMatchesSelector||HTMLElement.prototype.msMatchesSelector;return{matchesSelector:function(e,n){return e instanceof HTMLElement&&t.call(e,n)},addMethod:function(e,t,n){var r=e[t];e[t]=function(){return n.length==arguments.length?n.apply(this,arguments):"function"==typeof r?r.apply(this,arguments):void 0}},callCallbacks:function(e,t){t&&t.options.onceOnly&&1==t.firedElems.length&&(e=[e[0]]);for(var n,r=0;n=e[r];r++)n&&n.callback&&n.callback.call(n.elem,n.elem);t&&t.options.onceOnly&&1==t.firedElems.length&&t.me.unbindEventWithSelectorAndCallback.call(t.target,t.selector,t.callback)},checkChildNodesRecursively:function(e,t,n,r){for(var i,o=0;i=e[o];o++)n(i,t,r)&&r.push({callback:t.callback,elem:i}),i.childNodes.length>0&&l.checkChildNodesRecursively(i.childNodes,t,n,r)},mergeArrays:function(e,t){var n,r={};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r},toElementsArray:function(t){return void 0===t||"number"==typeof t.length&&t!==e||(t=[t]),t}}}(),c=function(){var e=function(){this._eventsBucket=[],this._beforeAdding=null,this._beforeRemoving=null};return e.prototype.addEvent=function(e,t,n,r){var i={target:e,selector:t,options:n,callback:r,firedElems:[]};return this._beforeAdding&&this._beforeAdding(i),this._eventsBucket.push(i),i},e.prototype.removeEvent=function(e){for(var t,n=this._eventsBucket.length-1;t=this._eventsBucket[n];n--)if(e(t)){this._beforeRemoving&&this._beforeRemoving(t);var r=this._eventsBucket.splice(n,1);r&&r.length&&(r[0].callback=null)}},e.prototype.beforeAdding=function(e){this._beforeAdding=e},e.prototype.beforeRemoving=function(e){this._beforeRemoving=e},e}(),a=function(t,r){var i=new c,o=this,a={fireOnAttributesModification:!1};return i.beforeAdding(function(n){var i,l=n.target;l!==e.document&&l!==e||(l=document.getElementsByTagName("html")[0]),i=new MutationObserver(function(e){r.call(this,e,n)});var c=t(n.options);i.observe(l,c),n.observer=i,n.me=o}),i.beforeRemoving(function(e){e.observer.disconnect()}),this.bindEvent=function(e,t,n){t=l.mergeArrays(a,t);for(var r=l.toElementsArray(this),o=0;o<r.length;o++)i.addEvent(r[o],e,t,n)},this.unbindEvent=function(){var e=l.toElementsArray(this);i.removeEvent(function(t){for(var r=0;r<e.length;r++)if(this===n||t.target===e[r])return!0;return!1})},this.unbindEventWithSelectorOrCallback=function(e){var t,r=l.toElementsArray(this),o=e;t="function"==typeof e?function(e){for(var t=0;t<r.length;t++)if((this===n||e.target===r[t])&&e.callback===o)return!0;return!1}:function(t){for(var i=0;i<r.length;i++)if((this===n||t.target===r[i])&&t.selector===e)return!0;return!1},i.removeEvent(t)},this.unbindEventWithSelectorAndCallback=function(e,t){var r=l.toElementsArray(this);i.removeEvent(function(i){for(var o=0;o<r.length;o++)if((this===n||i.target===r[o])&&i.selector===e&&i.callback===t)return!0;return!1})},this},u=function(){function e(e){var t={attributes:!1,childList:!0,subtree:!0};return e.fireOnAttributesModification&&(t.attributes=!0),t}function t(e,t){e.forEach(function(e){var n=e.addedNodes,i=e.target,o=[];null!==n&&n.length>0?l.checkChildNodesRecursively(n,t,r,o):"attributes"===e.type&&r(i,t,o)&&o.push({callback:t.callback,elem:i}),l.callCallbacks(o,t)})}function r(e,t,r){return!(!l.matchesSelector(e,t.selector)||(e._id===n&&(e._id=o++),-1!=t.firedElems.indexOf(e._id)))&&(t.firedElems.push(e._id),!0)}var i={fireOnAttributesModification:!1,onceOnly:!1,existing:!1};f=new a(e,t);var c=f.bindEvent;return f.bindEvent=function(e,t,n){void 0===n?(n=t,t=i):t=l.mergeArrays(i,t);var r=l.toElementsArray(this);if(t.existing){for(var o=[],a=0;a<r.length;a++)for(var u=r[a].querySelectorAll(e),s=0;s<u.length;s++)o.push({callback:n,elem:u[s]});if(t.onceOnly&&o.length)return n.call(o[0].elem,o[0].elem);setTimeout(l.callCallbacks,1,o)}c.call(this,e,t,n)},f},s=function(){function e(){return{childList:!0,subtree:!0}}function t(e,t){e.forEach(function(e){var r=e.removedNodes,i=[];null!==r&&r.length>0&&l.checkChildNodesRecursively(r,t,n,i),l.callCallbacks(i,t)})}function n(e,t){return l.matchesSelector(e,t.selector)}var r={};d=new a(e,t);var i=d.bindEvent;return d.bindEvent=function(e,t,n){void 0===n?(n=t,t=r):t=l.mergeArrays(r,t),i.call(this,e,t,n)},d},f=new u,d=new s;t&&i(t.fn),i(HTMLElement.prototype),i(NodeList.prototype),i(HTMLCollection.prototype),i(HTMLDocument.prototype),i(Window.prototype);var h={};return r(f,h,"unbindAllArrive"),r(d,h,"unbindAllLeave"),h}});
}catch(e){console.log("Module 'arrive-2.4.1': ",e);}
try{!function(e,i){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(e,require("jquery-utils-1.0.0"),require("swiper-4.0.3")):"function"==typeof define&&define.amd?define("event-calendar-swiper-1.0.0",["jquery-utils-1.0.0","swiper-4.0.3"],function(t,r){i(e,t,r)}):i(e,e.jQuery,e.Swiper)}(this,function(e,i,t,r){"use strict"});
}catch(e){console.log("Module 'event-calendar-swiper-1.0.0': ",e);}
try{!function(e,t){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(e,require("jquery-3.1.1")):"function"==typeof define&&define.amd?define("bootstrap-select-1.12.4",["jquery-3.1.1"],function(i){return t(e,i)}):e=t(e,e.jQuery)}(this,function(e,t,i){"use strict";function n(e){var i=[{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}];return t.each(i,function(){e=e?e.replace(this.re,this.ch):""}),e}function s(e){var i=arguments,n=e;[].shift.apply(i);var s,o=this.each(function(){var e=t(this);if(e.is("select")){var o=e.data("selectpicker"),a="object"==typeof n&&n;if(o){if(a)for(var l in a)a.hasOwnProperty(l)&&(o.options[l]=a[l])}else{var r=t.extend({},u.DEFAULTS,t.fn.selectpicker.defaults||{},e.data(),a);r.template=t.extend({},u.DEFAULTS.template,t.fn.selectpicker.defaults?t.fn.selectpicker.defaults.template:{},e.data().template,a.template),e.data("selectpicker",o=new u(this,r))}"string"==typeof n&&(s=o[n]instanceof Function?o[n].apply(o,i):o.options[n])}});return void 0!==s?s:o}String.prototype.includes||function(){var e={}.toString,t=function(){try{var e={},t=Object.defineProperty,i=t(e,e,e)&&t}catch(e){}return i}(),n="".indexOf,s=function(t){if(null==this)throw new TypeError;var s=String(this);if(t&&"[object RegExp]"==e.call(t))throw new TypeError;var o=s.length,a=String(t),l=a.length,r=arguments.length>1?arguments[1]:i,d=r?Number(r):0;return d!=d&&(d=0),!(l+Math.min(Math.max(d,0),o)>o)&&-1!=n.call(s,a,d)};t?t(String.prototype,"includes",{value:s,configurable:!0,writable:!0}):String.prototype.includes=s}(),String.prototype.startsWith||function(){var e=function(){try{var e={},t=Object.defineProperty,i=t(e,e,e)&&t}catch(e){}return i}(),t={}.toString,n=function(e){if(null==this)throw new TypeError;var n=String(this);if(e&&"[object RegExp]"==t.call(e))throw new TypeError;var s=n.length,o=String(e),a=o.length,l=arguments.length>1?arguments[1]:i,r=l?Number(l):0;r!=r&&(r=0);var d=Math.min(Math.max(r,0),s);if(a+d>s)return!1;for(var h=-1;++h<a;)if(n.charCodeAt(d+h)!=o.charCodeAt(h))return!1;return!0};e?e(String.prototype,"startsWith",{value:n,configurable:!0,writable:!0}):String.prototype.startsWith=n}(),Object.keys||(Object.keys=function(e,t,i){i=[];for(t in e)i.hasOwnProperty.call(e,t)&&i.push(t);return i});var o={useDefault:!1,_set:t.valHooks.select.set};t.valHooks.select.set=function(e,i){return i&&!o.useDefault&&t(e).data("selected",!0),o._set.apply(this,arguments)};var a=null,l=function(){try{return new Event("change"),!0}catch(e){return!1}}();t.fn.triggerNative=function(e){var t,i=this[0];i.dispatchEvent?(l?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event"),t.initEvent(e,!0,!1)),i.dispatchEvent(t)):i.fireEvent?(t=document.createEventObject(),t.eventType=e,i.fireEvent("on"+e,t)):this.trigger(e)},t.expr.pseudos.icontains=function(e,i,n){var s=t(e).find("a");return(s.data("tokens")||s.text()).toString().toUpperCase().includes(n[3].toUpperCase())},t.expr.pseudos.ibegins=function(e,i,n){var s=t(e).find("a");return(s.data("tokens")||s.text()).toString().toUpperCase().startsWith(n[3].toUpperCase())},t.expr.pseudos.aicontains=function(e,i,n){var s=t(e).find("a");return(s.data("tokens")||s.data("normalizedText")||s.text()).toString().toUpperCase().includes(n[3].toUpperCase())},t.expr.pseudos.aibegins=function(e,i,n){var s=t(e).find("a");return(s.data("tokens")||s.data("normalizedText")||s.text()).toString().toUpperCase().startsWith(n[3].toUpperCase())};var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},d={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x60;":"`"},h=function(e){var t=function(t){return e[t]},i="(?:"+Object.keys(e).join("|")+")",n=RegExp(i),s=RegExp(i,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(s,t):e}},c=h(r),p=h(d),u=function(e,i){o.useDefault||(t.valHooks.select.set=o._set,o.useDefault=!0),this.$element=t(e),this.$newElement=null,this.$button=null,this.$menu=null,this.$lis=null,this.options=i,null===this.options.title&&(this.options.title=this.$element.attr("title"));var n=this.options.windowPadding;"number"==typeof n&&(this.options.windowPadding=[n,n,n,n]),this.val=u.prototype.val,this.render=u.prototype.render,this.refresh=u.prototype.refresh,this.setStyle=u.prototype.setStyle,this.selectAll=u.prototype.selectAll,this.deselectAll=u.prototype.deselectAll,this.destroy=u.prototype.destroy,this.remove=u.prototype.remove,this.show=u.prototype.show,this.hide=u.prototype.hide,this.init()};u.VERSION="1.12.4",u.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(e,t){return 1==e?"{0} item selected":"{0} items selected"},maxOptionsText:function(e,t){return[1==e?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn no-ripple",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:"Search",liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"nc-icon-outline",tickIcon:"ui-1_check",showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0},u.prototype={constructor:u,init:function(){var e=this,i=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.liObj={},this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement).appendTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element.removeClass("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right"),void 0!==i&&(this.$button.attr("data-id",i),t('label[for="'+i+'"]').click(function(t){t.preventDefault(),e.$button.focus()})),this.checkDisabled(),this.checkReadonly(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){e.$menuInner.attr("aria-expanded",!1),e.$menu.parent().removeClass("open"),e.$element.trigger("hide.bs.select",t)},"hidden.bs.dropdown":function(t){e.$element.trigger("hidden.bs.select",t)},"show.bs.dropdown":function(t){e.$menuInner.attr("aria-expanded",!0),e.$element.trigger("show.bs.select",t)},"shown.bs.dropdown":function(t){e.$element.trigger("shown.bs.select",t)}}),e.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){e.$button.addClass("bs-invalid"),e.$element.on({"focus.bs.select":function(){e.$button.focus(),e.$element.off("focus.bs.select")},"shown.bs.select":function(){e.$element.val(e.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&e.$button.removeClass("bs-invalid"),e.$element.off("rendered.bs.select")}}),e.$button.on("blur.bs.select",function(){e.$element.focus().blur(),e.$button.off("blur.bs.select")})}),setTimeout(function(){e.$element.trigger("loaded.bs.select")})},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",n=this.autofocus?" autofocus":"",s=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>":"",o=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control no-ui" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+c(this.options.liveSearchPlaceholder)+'"')+' role="textbox" aria-label="Search"></div>':"",a=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"</button></div></div>":"",l=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"</button></div></div>":"",r='<div class="btn-group bootstrap-select'+e+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+n+' role="button"><span class="filter-option"><span></span></span><span class="bs-caret">'+this.options.template.caret+'</span></button><div class="dropdown-menu open" role="combobox">'+s+o+a+'<ul class="dropdown-menu inner" role="listbox" aria-expanded="false"></ul>'+l+"</div></div>";return t(r)},createView:function(){var e=this.createDropdown(),t=this.createLi();return e.find("ul")[0].innerHTML=t,e},reloadLi:function(){var e=this.createLi();this.$menuInner[0].innerHTML=e},createLi:function(){var e=this,s=[],o=0,a=document.createElement("option"),l=-1,r=function(e,t,i,n){return"<li"+(void 0!==i&&""!==i?' class="'+i+'"':"")+(void 0!==t&&null!==t?' data-original-index="'+t+'"':"")+(void 0!==n&&null!==n?'data-optgroup="'+n+'"':"")+">"+e+"</li>"},d=function(i,s,o,a){return'<a tabindex="0"'+(void 0!==s?' class="'+s+'"':"")+(o?' style="'+o+'"':"")+(e.options.liveSearchNormalize?' data-normalized-text="'+n(c(t(i).html()))+'"':"")+(void 0!==a||null!==a?' data-tokens="'+a+'"':"")+' role="option">'+i+'<span class="'+e.options.iconBase+" "+e.options.tickIcon+' check-mark"></span></a>'};if(this.options.title&&!this.multiple&&(l--,!this.$element.find(".bs-title-option").length)){var h=this.$element[0];a.className="bs-title-option",a.innerHTML=this.options.title,a.value="",h.insertBefore(a,h.firstChild);t(h.options[h.selectedIndex]).attr("selected")===i&&this.$element.data("selected")===i&&(a.selected=!0)}var p=this.$element.find("option");return p.each(function(n){var a=t(this);if(l++,!a.hasClass("bs-title-option")){var h,u=this.className||"",f=c(this.style.cssText),m=a.data("content")?a.data("content"):a.html(),b=a.data("tokens")?a.data("tokens"):null,g=void 0!==a.data("subtext")?'<small class="text-muted">'+a.data("subtext")+"</small>":"",v=void 0!==a.data("icon")?'<span class="'+e.options.iconBase+" "+a.data("icon")+'"></span> ':"",$=a.parent(),x="OPTGROUP"===$[0].tagName,y=x&&$[0].disabled,w=this.disabled||y;if(""!==v&&w&&(v="<span>"+v+"</span>"),e.options.hideDisabled&&(w&&!x||y))return h=a.data("prevHiddenIndex"),a.next().data("prevHiddenIndex",h!==i?h:n),void l--;if(a.data("content")||(m=v+'<span class="text">'+m+g+"</span>"),x&&!0!==a.data("divider")){if(e.options.hideDisabled&&w){if($.data("allOptionsDisabled")===i){var C=$.children();$.data("allOptionsDisabled",C.filter(":disabled").length===C.length)}if($.data("allOptionsDisabled"))return void l--}var S=" "+$[0].className||"";if(0===a.index()){o+=1;var k=$[0].label,E=void 0!==$.data("subtext")?'<small class="text-muted">'+$.data("subtext")+"</small>":"";k=($.data("icon")?'<span class="'+e.options.iconBase+" "+$.data("icon")+'"></span> ':"")+'<span class="text">'+c(k)+E+"</span>",0!==n&&s.length>0&&(l++,s.push(r("",null,"divider",o+"div"))),l++,s.push(r(k,null,"dropdown-header"+S,o))}if(e.options.hideDisabled&&w)return void l--;s.push(r(d(m,"opt "+u+S,f,b),n,"",o))}else if(!0===a.data("divider"))s.push(r("",n,"divider"));else if(!0===a.data("hidden"))h=a.data("prevHiddenIndex"),a.next().data("prevHiddenIndex",h!==i?h:n),s.push(r(d(m,u,f,b),n,"hidden is-hidden"));else{var I=this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName;if(!I&&e.options.hideDisabled&&(h=a.data("prevHiddenIndex"))!==i){var T=p.eq(h)[0].previousElementSibling;T&&"OPTGROUP"===T.tagName&&!T.disabled&&(I=!0)}I&&(l++,s.push(r("",null,"divider",o+"div"))),s.push(r(d(m,u,f,b),n))}e.liObj[n]=l}}),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),s.join("")},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(e){var n,s=this,o=this.$element.find("option");!1!==e&&o.each(function(e){var t=s.findLis().eq(s.liObj[e]);s.setDisabled(e,this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled,t),s.setSelected(e,this.selected,t)}),this.togglePlaceholder(),this.tabIndex();var a=o.map(function(){if(this.selected){if(s.options.hideDisabled&&(this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled))return;var e,i=t(this),n=i.data("icon")&&s.options.showIcon?'<i class="'+s.options.iconBase+" "+i.data("icon")+'"></i> ':"";return e=s.options.showSubtext&&i.data("subtext")&&!s.multiple?' <small class="text-muted">'+i.data("subtext")+"</small>":"",void 0!==i.attr("title")?i.attr("title"):i.data("content")&&s.options.showContent?i.data("content").toString():n+i.html()+e}}).toArray(),l=this.multiple?a.join(this.options.multipleSeparator):a[0];if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var r=this.options.selectedTextFormat.split(">");if(r.length>1&&a.length>r[1]||1==r.length&&a.length>=2){n=this.options.hideDisabled?", [disabled]":"";var d=o.not('[data-divider="true"], [data-hidden="true"]'+n).length;l=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(a.length,d):this.options.countSelectedText).replace("{0}",a.length.toString()).replace("{1}",d.toString())}}this.options.title==i&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(l=this.options.title),l||(l=void 0!==this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",p(t.trim(l.replace(/<[^>]*>?/g,"")))),this.$button.find(".filter-option span").html(l),this.$element.trigger("rendered.bs.select")},setStyle:function(e,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var i=e||this.options.style;"add"==t?this.$button.addClass(i):"remove"==t?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(e){if(e||!1!==this.options.size&&!this.sizeInfo){var i=document.createElement("div"),n=document.createElement("div"),s=document.createElement("ul"),o=document.createElement("li"),a=document.createElement("li"),l=document.createElement("a"),r=document.createElement("span"),d=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(!0):null,h=this.options.liveSearch?document.createElement("div"):null,c=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,p=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;if(r.className="text",i.className=this.$menu[0].parentNode.className+" open",n.className="dropdown-menu open",s.className="dropdown-menu inner",o.className="divider",r.appendChild(document.createTextNode("Inner text")),l.appendChild(r),a.appendChild(l),s.appendChild(a),s.appendChild(o),d&&n.appendChild(d),h){var u=document.createElement("input");h.className="bs-searchbox",u.className="form-control no-ui",h.appendChild(u),n.appendChild(h)}c&&n.appendChild(c),n.appendChild(s),p&&n.appendChild(p),i.appendChild(n),document.body.appendChild(i);var f=l.offsetHeight,m=d?d.offsetHeight:0,b=h?h.offsetHeight:0,g=c?c.offsetHeight:0,v=p?p.offsetHeight:0,$=t(o).outerHeight(!0),x="function"==typeof getComputedStyle&&getComputedStyle(n),y=x?null:t(n),w={vert:parseInt(x?x.paddingTop:y.css("paddingTop"))+parseInt(x?x.paddingBottom:y.css("paddingBottom"))+parseInt(x?x.borderTopWidth:y.css("borderTopWidth"))+parseInt(x?x.borderBottomWidth:y.css("borderBottomWidth")),horiz:parseInt(x?x.paddingLeft:y.css("paddingLeft"))+parseInt(x?x.paddingRight:y.css("paddingRight"))+parseInt(x?x.borderLeftWidth:y.css("borderLeftWidth"))+parseInt(x?x.borderRightWidth:y.css("borderRightWidth"))},C={vert:w.vert+parseInt(x?x.marginTop:y.css("marginTop"))+parseInt(x?x.marginBottom:y.css("marginBottom"))+2,horiz:w.horiz+parseInt(x?x.marginLeft:y.css("marginLeft"))+parseInt(x?x.marginRight:y.css("marginRight"))+2};document.body.removeChild(i),this.sizeInfo={liHeight:f,headerHeight:m,searchHeight:b,actionsHeight:g,doneButtonHeight:v,dividerHeight:$,menuPadding:w,menuExtras:C}}},setSize:function(){if(this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var i,n,s,o,a,l,r,d,h=this,c=this.$menu,p=this.$menuInner,u=t(e),f=this.$newElement[0].offsetHeight,m=this.$newElement[0].offsetWidth,b=this.sizeInfo.liHeight,g=this.sizeInfo.headerHeight,v=this.sizeInfo.searchHeight,$=this.sizeInfo.actionsHeight,x=this.sizeInfo.doneButtonHeight,y=this.sizeInfo.dividerHeight,w=this.sizeInfo.menuPadding,C=this.sizeInfo.menuExtras,S=this.options.hideDisabled?".disabled":"",k=function(){var e,i=h.$newElement.offset(),n=t(h.options.container);h.options.container&&!n.is("body")?(e=n.offset(),e.top+=parseInt(n.css("borderTopWidth")),e.left+=parseInt(n.css("borderLeftWidth"))):e={top:0,left:0};var s=h.options.windowPadding;a=i.top-e.top-u.scrollTop(),l=u.height()-a-f-e.top-s[2],r=i.left-e.left-u.scrollLeft(),d=u.width()-r-m-e.left-s[1],a-=s[0],r-=s[3]};if(k(),"auto"===this.options.size){var E=function(){var e,u=function(e,i){return function(n){return i?n.classList?n.classList.contains(e):t(n).hasClass(e):!(n.classList?n.classList.contains(e):t(n).hasClass(e))}},f=h.$menuInner[0].getElementsByTagName("li"),y=Array.prototype.filter?Array.prototype.filter.call(f,u("hidden",!1)):h.$lis.not(".hidden"),S=Array.prototype.filter?Array.prototype.filter.call(y,u("dropdown-header",!0)):y.filter(".dropdown-header");k(),i=l-C.vert,n=d-C.horiz,h.options.container?(c.data("height")||c.data("height",c.height()),s=c.data("height"),c.data("width")||c.data("width",c.width()),o=c.data("width")):(s=c.height(),o=c.width()),h.options.dropupAuto&&h.$newElement.toggleClass("dropup",a>l&&i-C.vert<s),h.$newElement.hasClass("dropup")&&(i=a-C.vert),"auto"===h.options.dropdownAlignRight&&c.toggleClass("dropdown-menu-right",r>d&&n-C.horiz<o-m),e=y.length+S.length>3?3*b+C.vert-2:0,c.css({"max-height":i+"px",overflow:"hidden","min-height":e+g+v+$+x+"px"}),p.css({"max-height":i-g-v-$-x-w.vert+"px","overflow-y":"auto","min-height":Math.max(e-w.vert,0)+"px"})};E(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",E),u.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",E)}else if(this.options.size&&"auto"!=this.options.size&&this.$lis.not(S).length>this.options.size){var I=this.$lis.not(".divider").not(S).children().slice(0,this.options.size).last().parent().index(),T=this.$lis.slice(0,I+1).filter(".divider").length;i=b*this.options.size+T*y+w.vert,h.options.container?(c.data("height")||c.data("height",c.height()),s=c.data("height")):s=c.height(),h.options.dropupAuto&&this.$newElement.toggleClass("dropup",a>l&&i-C.vert<s),c.css({"max-height":i+g+v+$+x+"px",overflow:"hidden","min-height":""}),p.css({"max-height":i-w.vert+"px","overflow-y":"auto","min-height":""})}}},setWidth:function(){if("auto"===this.options.width){this.$menu.css("min-width","0");var e=this.$menu.parent().clone().appendTo("body"),t=this.options.container?this.$newElement.clone().appendTo("body"):e,i=e.children(".dropdown-menu").outerWidth(),n=t.css("width","auto").children("button").outerWidth();e.remove(),t.remove(),this.$newElement.css("width",Math.max(i,n)+"px")}else"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=t('<div class="bs-container" />');var i,n,s,o=this,a=t(this.options.container),l=function(e){o.$bsContainer.addClass(e.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",e.hasClass("dropup")),i=e.offset(),a.is("body")?n={top:0,left:0}:(n=a.offset(),n.top+=parseInt(a.css("borderTopWidth"))-a.scrollTop(),n.left+=parseInt(a.css("borderLeftWidth"))-a.scrollLeft()),s=e.hasClass("dropup")?0:e[0].offsetHeight,o.$bsContainer.css({top:i.top-n.top+s,left:i.left-n.left,width:e[0].offsetWidth})};this.$button.on("click",function(){var e=t(this);o.isDisabled()||(l(o.$newElement),o.$bsContainer.appendTo(o.options.container).toggleClass("open",!e.hasClass("open")).append(o.$menu))}),t(e).on("resize scroll",function(){l(o.$newElement)}),this.$element.on("hide.bs.select",function(){o.$menu.data("height",o.$menu.height()),o.$bsContainer.detach()})},setSelected:function(e,t,i){i||(this.togglePlaceholder(),i=this.findLis().eq(this.liObj[e])),i.toggleClass("selected",t).find("a").attr("aria-selected",t)},setDisabled:function(e,t,i){i||(i=this.findLis().eq(this.liObj[e])),t?i.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1).attr("aria-disabled",!0):i.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0).attr("aria-disabled",!1)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var e=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled").attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click(function(){return!e.isDisabled()})},isTrue:function(e){return!/^(?:t(?:rue)?|y(?:es)?|1+)$/i.test(e)},isReadonly:function(){return this.$element[0].hasAttribute("readonly")&&"false"!==this.$element[0].getAttribute("readonly")},checkReadonly:function(){this.isReadonly()?(this.$newElement.addClass("readonly"),this.$button.addClass("readonly").attr("tabindex",-1).attr("aria-readonly",!0)):(this.$button.hasClass("readonly")&&(this.$newElement.removeClass("readonly"),this.$button.removeClass("readonly").attr("aria-readonly",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"))},togglePlaceholder:function(){var e=this.$element.val();this.$button.toggleClass("bs-placeholder",null===e||""===e||e.constructor===Array&&0===e.length)},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var e=this,i=t(document);i.data("spaceSelect",!1),!e.isReadonly()&&this.$button.on("keyup",function(e){/(32)/.test(e.keyCode.toString(10))&&i.data("spaceSelect")&&(e.preventDefault(),i.data("spaceSelect",!1))}),this.$button.on("click",function(){e.setSize()}),this.$element.on("shown.bs.select",function(){if(e.options.liveSearch||e.multiple){if(!e.multiple){var t=e.liObj[e.$element[0].selectedIndex];if("number"!=typeof t||!1===e.options.size)return;var i=e.$lis.eq(t)[0].offsetTop-e.$menuInner[0].offsetTop;i=i-e.$menuInner[0].offsetHeight/2+e.sizeInfo.liHeight/2,e.$menuInner[0].scrollTop=i}}else e.$menuInner.find(".selected a").focus()}),!e.isReadonly()&&this.$menuInner.on("click","li a",function(i){var n=t(this),s=n.parent().data("originalIndex"),o=e.$element.val(),l=e.$element.prop("selectedIndex"),r=!0;if(e.multiple&&1!==e.options.maxOptions&&i.stopPropagation(),i.preventDefault(),!e.isDisabled()&&!n.parent().hasClass("disabled")){var d=e.$element.find("option"),h=d.eq(s),c=h.prop("selected"),p=h.parent("optgroup"),u=e.options.maxOptions,f=p.data("maxOptions")||!1;if(e.multiple){if(h.prop("selected",!c),e.setSelected(s,!c),n.blur(),!1!==u||!1!==f){var m=u<d.filter(":selected").length,b=f<p.find("option:selected").length;if(u&&m||f&&b)if(u&&1==u)d.prop("selected",!1),h.prop("selected",!0),e.$menuInner.find(".selected").removeClass("selected"),e.setSelected(s,!0);else if(f&&1==f){p.find("option:selected").prop("selected",!1),h.prop("selected",!0);var g=n.parent().data("optgroup");e.$menuInner.find('[data-optgroup="'+g+'"]').removeClass("selected"),e.setSelected(s,!0)}else{var v="string"==typeof e.options.maxOptionsText?[e.options.maxOptionsText,e.options.maxOptionsText]:e.options.maxOptionsText,$="function"==typeof v?v(u,f):v,x=$[0].replace("{n}",u),y=$[1].replace("{n}",f),w=t('<div class="notify"></div>');$[2]&&(x=x.replace("{var}",$[2][u>1?0:1]),y=y.replace("{var}",$[2][f>1?0:1])),h.prop("selected",!1),e.$menu.append(w),u&&m&&(w.append(t("<div>"+x+"</div>")),r=!1,e.$element.trigger("maxReached.bs.select")),f&&b&&(w.append(t("<div>"+y+"</div>")),r=!1,e.$element.trigger("maxReachedGrp.bs.select")),setTimeout(function(){e.setSelected(s,!1)},10),w.delay(750).fadeOut(300,function(){t(this).remove()})}}}else d.prop("selected",!1),h.prop("selected",!0),e.$menuInner.find(".selected").removeClass("selected").find("a").attr("aria-selected",!1),e.setSelected(s,!0);!e.multiple||e.multiple&&1===e.options.maxOptions?e.$button.focus():e.options.liveSearch&&e.$searchbox.focus(),r&&(o!=e.$element.val()&&e.multiple||l!=e.$element.prop("selectedIndex")&&!e.multiple)&&(a=[s,h.prop("selected"),c],e.$element.triggerNative("change"))}}),!e.isReadonly()&&this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),e.options.liveSearch&&!t(i.target).hasClass("close")?e.$searchbox.focus():e.$button.focus())}),!e.isReadonly()&&this.$menuInner.on("click",".divider, .dropdown-header",function(t){t.preventDefault(),t.stopPropagation(),e.options.liveSearch?e.$searchbox.focus():e.$button.focus()}),this.$menu.on("click",".popover-title .close",function(){e.$button.click()}),this.$searchbox.on("click",function(e){e.stopPropagation()}),!e.isReadonly()&&this.$menu.on("click",".actions-btn",function(i){e.options.liveSearch?e.$searchbox.focus():e.$button.focus(),i.preventDefault(),i.stopPropagation(),t(this).hasClass("bs-select-all")?e.selectAll():e.deselectAll()}),this.$element.change(function(){e.render(!1),e.$element.trigger("changed.bs.select",a),a=null})},liveSearchListener:function(){var e=this,s=t('<li class="no-results"></li>');this.$button.on("click.dropdown.data-api",function(){e.$menuInner.find(".active").removeClass("active"),e.$searchbox.val()&&(e.$searchbox.val(""),e.$lis.not(".is-hidden").removeClass("hidden"),s.parent().length&&s.remove()),e.multiple||e.$menuInner.find(".selected").addClass("active"),setTimeout(function(){e.$searchbox.focus()},10)}),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(e){e.stopPropagation()}),this.$searchbox.on("input propertychange",function(){if(e.$lis.not(".is-hidden").removeClass("hidden"),e.$lis.filter(".active").removeClass("active"),s.remove(),e.$searchbox.val()){var o,a=e.$lis.not(".is-hidden, .divider, .dropdown-header");if(o=e.options.liveSearchNormalize?a.not(":a"+e._searchStyle()+'("'+n(e.$searchbox.val())+'")'):a.not(":"+e._searchStyle()+'("'+e.$searchbox.val()+'")'),o.length===a.length)s.html(e.options.noneResultsText.replace("{0}",'"'+c(e.$searchbox.val())+'"')),e.$menuInner.append(s),e.$lis.addClass("hidden");else{o.addClass("hidden");var l,r=e.$lis.not(".hidden");r.each(function(e){var n=t(this);n.hasClass("divider")?l===i?n.addClass("hidden"):(l&&l.addClass("hidden"),l=n):n.hasClass("dropdown-header")&&r.eq(e+1).data("optgroup")!==n.data("optgroup")?n.addClass("hidden"):l=null}),l&&l.addClass("hidden"),a.not(".hidden").first().addClass("active"),e.$menuInner.scrollTop(0)}}})},_searchStyle:function(){return{begins:"ibegins",startsWith:"ibegins"}[this.options.liveSearchStyle]||"icontains"},val:function(e){return void 0!==e?(this.$element.val(e),this.render(),this.$element):this.$element.val()},changeAll:function(e){if(this.multiple){void 0===e&&(e=!0),this.findLis();var i=this.$element.find("option"),n=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden"),s=n.length,o=[];if(e){if(n.filter(".selected").length===n.length)return}else if(0===n.filter(".selected").length)return;n.toggleClass("selected",e);for(var a=0;a<s;a++){var l=n[a].getAttribute("data-original-index");o[o.length]=i.eq(l)[0]}t(o).prop("selected",e),this.render(!1),this.togglePlaceholder(),this.$element.triggerNative("change")}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){t=t||e.event,t&&t.stopPropagation(),this.$button.trigger("click")},keydown:function(e){var i,n,s,o,a=t(this),l=a.is("input")?a.parent().parent():a.parent(),r=l.data("this"),d=":not(.disabled, .hidden, .dropdown-header, .divider)",h={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};if(!(o=r.$newElement.hasClass("open"))&&(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105||e.keyCode>=65&&e.keyCode<=90))return r.options.container?r.$button.trigger("click"):(r.setSize(),r.$menu.parent().addClass("open"),o=!0),void r.$searchbox.focus();if(r.options.liveSearch&&/(^9$|27)/.test(e.keyCode.toString(10))&&o&&(e.preventDefault(),e.stopPropagation(),r.$menuInner.click(),r.$button.focus()),/(38|40)/.test(e.keyCode.toString(10))){if(i=r.$lis.filter(d),!i.length)return;n=r.options.liveSearch?i.index(i.filter(".active")):i.index(i.find("a").filter(":focus").parent()),s=r.$menuInner.data("prevIndex"),38==e.keyCode?(!r.options.liveSearch&&n!=s||-1==n||n--,n<0&&(n+=i.length)):40==e.keyCode&&((r.options.liveSearch||n==s)&&n++,n%=i.length),r.$menuInner.data("prevIndex",n),r.options.liveSearch?(e.preventDefault(),a.hasClass("dropdown-toggle")||(i.removeClass("active").eq(n).addClass("active").children("a").focus(),a.focus())):i.eq(n).children("a").focus()}else if(!a.is("input")){var c,p,u=[];i=r.$lis.filter(d),i.each(function(i){t.trim(t(this).children("a").text().toLowerCase()).substring(0,1)==h[e.keyCode]&&u.push(i)}),c=t(document).data("keycount"),c++,t(document).data("keycount",c),p=t.trim(t(":focus").text().toLowerCase()).substring(0,1),p!=h[e.keyCode]?(c=1,t(document).data("keycount",c)):c>=u.length&&(t(document).data("keycount",0),c>u.length&&(c=1)),i.eq(u[c-1]).children("a").focus()}if((/(13|32)/.test(e.keyCode.toString(10))||/(^9$)/.test(e.keyCode.toString(10))&&r.options.selectOnTab)&&o){if(/(32)/.test(e.keyCode.toString(10))||e.preventDefault(),r.options.liveSearch)/(32)/.test(e.keyCode.toString(10))||(r.$menuInner.find(".active a").click(),
a.focus());else{var f=t(":focus");f.click(),f.focus(),e.preventDefault(),t(document).data("spaceSelect",!0)}t(document).data("keycount",0)}(/(^9$|27)/.test(e.keyCode.toString(10))&&o&&(r.multiple||r.options.liveSearch)||/(27)/.test(e.keyCode.toString(10))&&!o)&&(r.$menu.parent().removeClass("open"),r.options.container&&r.$newElement.removeClass("open"),r.$button.focus())},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null,this.liObj={},this.reloadLi(),this.render(),this.checkDisabled(),this.checkReadonly(),this.liHeight(!0),this.setStyle(),this.setWidth(),this.$lis&&this.$searchbox.trigger("propertychange"),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};var f=t.fn.selectpicker;t.fn.selectpicker=s,t.fn.selectpicker.Constructor=u,t.fn.selectpicker.noConflict=function(){return t.fn.selectpicker=f,this},t(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',u.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="listbox"], .bs-searchbox input',function(e){e.stopPropagation()}),t(e).on("load.bs.select.data-api",function(){t(".selectpicker").each(function(){var e=t(this);s.call(e,e.data())})})});
}catch(e){console.log("Module 'bootstrap-select-1.12.4': ",e);}
try{!function(e){e.fn.selectpicker.defaults={noneSelectedText:"Ничего не выбрано",noneResultsText:"Совпадений не найдено {0}",countSelectedText:"Выбрано {0} из {1}",maxOptionsText:["Достигнут предел ({n} {var} максимум)","Достигнут предел в группе ({n} {var} максимум)",["шт.","шт."]],doneButtonText:"Закрыть",selectAllText:"Выбрать все",deselectAllText:"Отменить все",multipleSeparator:", "}}(jQuery);
}catch(e){console.log("Module 'bootstrap-select-1.12.4': ",e);}
try{"use strict";!function(s,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(s,require("jquery-utils-1.0.0")):"function"==typeof define&&define.amd?define("bootstrap-select",["jquery-utils-1.0.0","bootstrap-select-1.12.4"],function(t){return e(s,t)}):e(s,s.jQuery)}(this,function(s,e,t){s&&e&&e.fn.selectpicker&&e(function(){e(".selectpicker").on("loaded.bs.select",function(s){var t=e(this);t.closest(".form-group").addClass("is-bootstrap-select has-render").toggleClass("is-not-empty",!e.isEmpty(t.val())).toggleClass("is-empty",e.isEmpty(t.val())).closest(".input-group").addClass("has-render")}).on("show.bs.select",function(s){e(this).closest(".form-group").addClass("is-focused")}).on("hide.bs.select",function(s){e(this).closest(".form-group").removeClass("is-focused")}).on("changed.bs.select",function(s,t,o,i){var l=e(this);l.closest(".form-group").toggleClass("is-not-empty",!e.isEmpty(l.val())).toggleClass("is-empty",e.isEmpty(l.val()))})})});
}catch(e){console.log("Module 'bootstrap-select-1.12.4': ",e);}
try{function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var _slice=Array.prototype.slice,_slicedToArray=function(){function e(e,t){var i=[],n=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){r=!0,s=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw s}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery-3.1.1")):"function"==typeof define&&define.amd?define("parsley",["jquery-3.1.1"],t):e.parsley=t(e.jQuery)}(this,function(e){"use strict";function t(e,t){return e.parsleyAdaptedCallback||(e.parsleyAdaptedCallback=function(){var i=Array.prototype.slice.call(arguments,0);i.unshift(this),e.apply(t||T,i)}),e.parsleyAdaptedCallback}function i(e){return 0===e.lastIndexOf(D,0)?e.substr(D.length):e}function n(){var t=this,i=window||global;_extends(this,{isNativeEvent:function(e){return e.originalEvent&&!1!==e.originalEvent.isTrusted},fakeInputEvent:function(i){t.isNativeEvent(i)&&e(i.target).trigger("input")},misbehaves:function(i){t.isNativeEvent(i)&&(t.behavesOk(i),e(document).on("change.inputevent",i.data.selector,t.fakeInputEvent),t.fakeInputEvent(i))},behavesOk:function(i){t.isNativeEvent(i)&&e(document).off("input.inputevent",i.data.selector,t.behavesOk).off("change.inputevent",i.data.selector,t.misbehaves)},install:function(){if(!i.inputEventPatched){i.inputEventPatched="0.0.3";for(var n=["select",'input[type="checkbox"]','input[type="radio"]','input[type="file"]'],r=0;r<n.length;r++){var s=n[r];e(document).on("input.inputevent",s,{selector:s},t.behavesOk).on("change.inputevent",s,{selector:s},t.misbehaves)}}},uninstall:function(){delete i.inputEventPatched,e(document).off(".inputevent")}})}var r=1,s={},a={attr:function(t,i,n){var r,s,a,o=this,l=new RegExp("^"+i,"i");if(void 0===n)n={};else{for(r in n)n.hasOwnProperty(r)&&delete n[r];e.extend(n,{messages:{}})}if(!t)return n;for(a=t.attributes,r=a.length;r--;)(s=a[r])&&s.specified&&l.test(s.name)&&(0==s.name.indexOf(i+"messages-")?s.name.slice((i+"messages-").length).split("-").reduce(function(e,t,i,n){return e[o.camelize(t)]=n.length-1==i?o.deserializeValue(s.value):{}},n.messages):n[o.camelize(s.name.slice(i.length))]=o.deserializeValue(s.value));return n},checkAttr:function(e,t,i){return e.hasAttribute(t+i)},setAttr:function(e,t,i,n){e.setAttribute(this.dasherize(t+i),String(n))},generateID:function(){return""+r++},deserializeValue:function(t){var i;try{return t?"true"==t||"false"!=t&&("null"==t?null:isNaN(i=Number(t))?/^[\[\{]/.test(t)?e.parseJSON(t):t:i):t}catch(e){return t}},camelize:function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},dasherize:function(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},warn:function(){var e;window.console&&"function"==typeof window.console.warn&&(e=window.console).warn.apply(e,arguments)},warnOnce:function(e){s[e]||(s[e]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){s={}},trimString:function(e){return e.replace(/^\s+|\s+$/g,"")},parse:{date:function(e){var t=e.match(/^(\d{4,})-(\d\d)-(\d\d)$/);if(!t)return null;var i=t.map(function(e){return parseInt(e,10)}),n=_slicedToArray(i,4),r=(n[0],n[1]),s=n[2],a=n[3],o=new Date(r,s-1,a);return o.getFullYear()!==r||o.getMonth()+1!==s||o.getDate()!==a?null:o},string:function(e){return e},integer:function(e){return isNaN(e)?null:parseInt(e,10)},number:function(e){if(isNaN(e))throw null;return parseFloat(e)},boolean:function(e){return!/^\s*false\s*$/i.test(e)},object:function(e){return a.deserializeValue(e)},regexp:function(e){var t="";return/^\/.*\/(?:[gimy]*)$/.test(e)?(t=e.replace(/.*\/([gimy]*)$/,"$1"),e=e.replace(new RegExp("^/(.*?)/"+t+"$"),"$1")):e="^"+e+"$",new RegExp(e,t)}},parseRequirement:function(e,t){var i=this.parse[e||"string"];if(!i)throw'Unknown requirement specification: "'+e+'"';var n=i(t);if(null===n)throw"Requirement is not a "+e+': "'+t+'"';return n},namespaceEvents:function(t,i){return t=this.trimString(t||"").split(/\s+/),t[0]?e.map(t,function(e){return e+"."+i}).join(" "):""},difference:function(t,i){var n=[];return e.each(t,function(e,t){-1==i.indexOf(t)&&n.push(t)}),n},all:function(t){return e.when.apply(e,_toConsumableArray(t).concat([42,42]))},objectCreate:Object.create||function(){var e=function(){};return function(t){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=typeof t)throw TypeError("Argument must be an object");e.prototype=t;var i=new e;return e.prototype=null,i}}(),_SubmitSelector:'input[type="submit"], button:submit'},o={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:!0,multiple:null,group:null,uiEnabled:!0,validationThreshold:3,focus:"first",trigger:!1,triggerAfterFailure:"input",errorClass:"parsley-error",successClass:"parsley-success",classHandler:function(e){},errorsContainer:function(e){},errorsWrapper:'<ul class="parsley-errors-list"></ul>',errorTemplate:"<li></li>"},l=function(){this.__id__=a.generateID()};l.prototype={asyncSupport:!0,_pipeAccordingToValidationResult:function(){var t=this,i=function(){var i=e.Deferred();return!0!==t.validationResult&&i.reject(),i.resolve().promise()};return[i,i]},actualizeOptions:function(){return a.attr(this.element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(e){this.domOptions=a.objectCreate(this.parent.options),this.options=a.objectCreate(this.domOptions);for(var t in e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);this.actualizeOptions()},_listeners:null,on:function(e,t){return this._listeners=this._listeners||{},(this._listeners[e]=this._listeners[e]||[]).push(t),this},subscribe:function(t,i){e.listenTo(this,t.toLowerCase(),i)},off:function(e,t){var i=this._listeners&&this._listeners[e];if(i)if(t)for(var n=i.length;n--;)i[n]===t&&i.splice(n,1);else delete this._listeners[e];return this},unsubscribe:function(t,i){e.unsubscribeTo(this,t.toLowerCase())},trigger:function(e,t,i){t=t||this;var n,r=this._listeners&&this._listeners[e];if(r)for(var s=r.length;s--;)if(!1===(n=r[s].call(t,t,i)))return n;return!this.parent||this.parent.trigger(e,t,i)},asyncIsValid:function(e,t){return a.warnOnce("asyncIsValid is deprecated; please use whenValid instead"),this.whenValid({group:e,force:t})},_findRelated:function(){return this.options.multiple?e(this.parent.element.querySelectorAll("["+this.options.namespace+'multiple="'+this.options.multiple+'"]')):this.$element}};var u=function(e,t){var i=e.match(/^\s*\[(.*)\]\s*$/);if(!i)throw'Requirement is not an array: "'+e+'"';var n=i[1].split(",").map(a.trimString);if(n.length!==t)throw"Requirement has "+n.length+" values when "+t+" are needed";return n},d=function(e,t,i){var n=null,r={};for(var s in e)if(s){var o=i(s);"string"==typeof o&&(o=a.parseRequirement(e[s],o)),r[s]=o}else n=a.parseRequirement(e[s],t);return[n,r]},h=function(t){e.extend(!0,this,t)};h.prototype={validate:function(e,t){if(this.fn)return arguments.length>3&&(t=[].slice.call(arguments,1,-1)),this.fn(e,t);if(Array.isArray(e)){if(!this.validateMultiple)throw"Validator `"+this.name+"` does not handle multiple values";return this.validateMultiple.apply(this,arguments)}var i=arguments[arguments.length-1];if(this.validateDate&&i._isDateInput())return arguments[0]=a.parse.date(arguments[0]),null!==arguments[0]&&this.validateDate.apply(this,arguments);if(this.validateNumber)return!isNaN(e)&&(arguments[0]=parseFloat(arguments[0]),this.validateNumber.apply(this,arguments));if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values"},parseRequirements:function(t,i){if("string"!=typeof t)return Array.isArray(t)?t:[t];var n=this.requirementType;if(Array.isArray(n)){for(var r=u(t,n.length),s=0;s<r.length;s++)r[s]=a.parseRequirement(n[s],r[s]);return r}return e.isPlainObject(n)?d(n,t,i):[a.parseRequirement(n,t)]},requirementType:"string",priority:2};var p=function(e,t){this.__class__="ValidatorRegistry",this.locale="en",this.init(e||{},t||{})},c={email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,number:/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i,integer:/^-?\d+$/,digits:/^\d+$/,alphanum:/^\w+$/i,date:{test:function(e){return null!==a.parse.date(e)}},url:new RegExp("^(?:(?:https?|ftp)://)?(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$","i")};c.range=c.number;var f=function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},m=function(e,t){return t.map(a.parse[e])},g=function(e,t){return function(i){for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.pop(),t.apply(void 0,[i].concat(_toConsumableArray(m(e,r))))}},v=function(e){return{validateDate:g("date",e),validateNumber:g("number",e),requirementType:e.length<=2?"string":["string","string"],priority:30}};p.prototype={init:function(e,t){this.catalog=t,this.validators=_extends({},this.validators);for(var i in e)this.addValidator(i,e[i].fn,e[i].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(e){if(void 0===this.catalog[e])throw new Error(e+" is not available in the catalog");return this.locale=e,this},addCatalog:function(e,t,i){return"object"==typeof t&&(this.catalog[e]=t),!0===i?this.setLocale(e):this},addMessage:function(e,t,i){return void 0===this.catalog[e]&&(this.catalog[e]={}),this.catalog[e][t]=i,this},addMessages:function(e,t){for(var i in t)this.addMessage(e,i,t[i]);return this},addValidator:function(e,t,i){if(this.validators[e])a.warn('Validator "'+e+'" is already defined.');else if(o.hasOwnProperty(e))return void a.warn('"'+e+'" is a restricted keyword and is not a valid validator name.');return this._setValidator.apply(this,arguments)},updateValidator:function(e,t,i){return this.validators[e]?this._setValidator.apply(this,arguments):(a.warn('Validator "'+e+'" is not already defined.'),this.addValidator.apply(this,arguments))},removeValidator:function(e){return this.validators[e]||a.warn('Validator "'+e+'" is not defined.'),delete this.validators[e],this},_setValidator:function(e,t,i){"object"!=typeof t&&(t={fn:t,priority:i}),t.validate||(t=new h(t)),this.validators[e]=t;for(var n in t.messages||{})this.addMessage(n,e,t.messages[n]);return this},getErrorMessage:function(e){var t;if("type"===e.name){t=(this.catalog[this.locale][e.name]||{})[e.requirements]}else t=this.formatMessage(this.catalog[this.locale][e.name],e.requirements);return t||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(e,t){if("object"==typeof t){for(var i in t)e=this.formatMessage(e,t[i]);return e}return"string"==typeof e?e.replace(/%s/i,t):""},validators:{notblank:{validateString:function(e){return/\S/.test(e)},priority:2},required:{validateMultiple:function(e){return e.length>0},validateString:function(e){return/\S/.test(e)},priority:512},type:{validateString:function(e,t){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=i.step,r=void 0===n?"any":n,s=i.base,a=void 0===s?0:s,o=c[t];if(!o)throw new Error("validator type `"+t+"` is not supported");if(!o.test(e))return!1;if("number"===t&&!/^any$/i.test(r||"")){var l=Number(e),u=Math.max(f(r),f(a));if(f(l)>u)return!1;var d=function(e){return Math.round(e*Math.pow(10,u))};if((d(l)-d(a))%d(r)!=0)return!1}return!0},requirementType:{"":"string",step:"string",base:"number"},priority:256},pattern:{validateString:function(e,t){return t.test(e)},requirementType:"regexp",priority:64},minlength:{validateString:function(e,t){return e.length>=t},requirementType:"integer",priority:30},maxlength:{validateString:function(e,t){return e.length<=t},requirementType:"integer",priority:30},length:{validateString:function(e,t,i){return e.length>=t&&e.length<=i},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function(e,t){return e.length>=t},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function(e,t){return e.length<=t},requirementType:"integer",priority:30},check:{validateMultiple:function(e,t,i){return e.length>=t&&e.length<=i},requirementType:["integer","integer"],priority:30},min:v(function(e,t){return e>=t}),max:v(function(e,t){return e<=t}),range:v(function(e,t,i){return e>=t&&e<=i}),equalto:{validateString:function(t,i){var n=e(i);return n.length?t===n.val():t===i},priority:256}}};var y={},_=function e(t,i,n){for(var r=[],s=[],a=0;a<t.length;a++){for(var o=!1,l=0;l<i.length;l++)if(t[a].assert.name===i[l].assert.name){o=!0;break}o?s.push(t[a]):r.push(t[a])}return{kept:s,added:r,removed:n?[]:e(i,t,!0).added}};y.Form={_actualizeTriggers:function(){var e=this;this.$element.on("submit.Parsley",function(t){e.onSubmitValidate(t)}),this.$element.on("click.Parsley",a._SubmitSelector,function(t){e.onSubmitButton(t)}),!1!==this.options.uiEnabled&&this.element.setAttribute("novalidate","")},focus:function(){if(this._focusedField=null,!0===this.validationResult||"none"===this.options.focus)return null;for(var e=0;e<this.fields.length;e++){var t=this.fields[e];if(!0!==t.validationResult&&t.validationResult.length>0&&void 0===t.options.noFocus&&(this._focusedField=t.$element,"first"===this.options.focus))break}return null===this._focusedField?null:this._focusedField.focus()},_destroyUI:function(){this.$element.off(".Parsley")}},y.Field={_reflowUI:function(){if(this._buildUI(),this._ui){var e=_(this.validationResult,this._ui.lastValidationResult);this._ui.lastValidationResult=this.validationResult,this._manageStatusClass(),this._manageErrorsMessages(e),this._actualizeTriggers(),!e.kept.length&&!e.added.length||this._failedOnce||(this._failedOnce=!0,this._actualizeTriggers())}},getErrorsMessages:function(){if(!0===this.validationResult)return[];for(var e=[],t=0;t<this.validationResult.length;t++)e.push(this.validationResult[t].errorMessage||this._getErrorMessage(this.validationResult[t].assert));return e},addError:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=t.message,n=t.assert,r=t.updateClass,s=void 0===r||r;this._buildUI(),this._addError(e,{message:i,assert:n}),s&&this._errorClass()},updateError:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=t.message,n=t.assert,r=t.updateClass,s=void 0===r||r;this._buildUI(),this._updateError(e,{message:i,assert:n}),s&&this._errorClass()},removeError:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=t.updateClass,n=void 0===i||i;this._buildUI(),this._removeError(e),n&&this._manageStatusClass()},_manageStatusClass:function(){this.hasConstraints()&&this.needsValidation()&&!0===this.validationResult?this._successClass():this.validationResult.length>0?this._errorClass():this._resetClass()},_manageErrorsMessages:function(t){if(void 0===this.options.errorsMessagesDisabled){if(void 0!==this.options.errorMessage)return t.added.length||t.kept.length?(this._insertErrorWrapper(),0===this._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&this._ui.$errorsWrapper.append(e(this.options.errorTemplate).addClass("parsley-custom-error-message")),this._ui.$errorsWrapper.addClass("filled").find(".parsley-custom-error-message").html(this.options.errorMessage)):this._ui.$errorsWrapper.removeClass("filled").find(".parsley-custom-error-message").remove();for(var i=0;i<t.removed.length;i++)this._removeError(t.removed[i].assert.name);for(i=0;i<t.added.length;i++)this._addError(t.added[i].assert.name,{message:t.added[i].errorMessage,assert:t.added[i].assert});for(i=0;i<t.kept.length;i++)this._updateError(t.kept[i].assert.name,{message:t.kept[i].errorMessage,assert:t.kept[i].assert})}},_addError:function(t,i){var n=i.message,r=i.assert;this._insertErrorWrapper(),this._ui.$errorsWrapper.addClass("filled").append(e(this.options.errorTemplate).addClass("parsley-"+t).html(n||this._getErrorMessage(r)))},_updateError:function(e,t){var i=t.message,n=t.assert;this._ui.$errorsWrapper.addClass("filled").find(".parsley-"+e).html(i||this._getErrorMessage(n))},_removeError:function(e){this._ui.$errorsWrapper.removeClass("filled").find(".parsley-"+e).remove()},_getErrorMessage:function(e){var t=e.name+"Message";return"type"===e.name&&void 0!==this.options[this.options[e.name]+"Message"]?this.options[this.options[e.name]+"Message"]:void 0!==this.options[t]?window.Parsley.formatMessage(this.options[t],e.requirements):window.Parsley.getErrorMessage(e)},_buildUI:function(){if(!this._ui&&!1!==this.options.uiEnabled){var t={};this.element.setAttribute(this.options.namespace+"id",this.__id__),t.$errorClassHandler=this._manageClassHandler(),t.errorsWrapperId="parsley-id-"+(this.options.multiple?"multiple-"+this.options.multiple:this.__id__),t.$errorsWrapper=e(this.options.errorsWrapper).attr("id",t.errorsWrapperId),t.lastValidationResult=[],t.validationInformationVisible=!1,this._ui=t}},_manageClassHandler:function(){if("string"==typeof this.options.classHandler)return 0===e(this.options.classHandler).length&&ParsleyUtils.warn("No elements found that match the selector `"+this.options.classHandler+"` set in options.classHandler or data-parsley-class-handler"),e(this.options.classHandler);if("function"==typeof this.options.classHandler)var t=this.options.classHandler.call(this,this);return void 0!==t&&t.length?t:this._inputHolder()},_inputHolder:function(){return this.options.multiple&&"SELECT"!==this.element.nodeName?this.$element.next():this.$element},_insertErrorWrapper:function(){var t;if(0!==this._ui.$errorsWrapper.parent().length)return this._ui.$errorsWrapper.parent();if("string"==typeof this.options.errorsContainer){if(e(this.options.errorsContainer).length)return e(this.options.errorsContainer).append(this._ui.$errorsWrapper);a.warn("The errors container `"+this.options.errorsContainer+"` does not exist in DOM")}else"function"==typeof this.options.errorsContainer&&(t=this.options.errorsContainer.call(this,this));return void 0!==t&&t.length?t.append(this._ui.$errorsWrapper):this._inputHolder().after(this._ui.$errorsWrapper)},_actualizeTriggers:function(){var e,t=this,i=this._findRelated();i.off(".Parsley"),this._failedOnce?i.on(a.namespaceEvents(this.options.triggerAfterFailure,"Parsley"),function(){t._validateIfNeeded()}):(e=a.namespaceEvents(this.options.trigger,"Parsley"))&&i.on(e,function(e){t._validateIfNeeded(e)})},_validateIfNeeded:function(e){var t=this;e&&/key|input/.test(e.type)&&(!this._ui||!this._ui.validationInformationVisible)&&this.getValue().length<=this.options.validationThreshold||(this.options.debounce?(window.clearTimeout(this._debounced),this._debounced=window.setTimeout(function(){return t.validate()},this.options.debounce)):this.validate())},_resetUI:function(){this._failedOnce=!1,this._actualizeTriggers(),void 0!==this._ui&&(this._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(),this._ui.lastValidationResult=[],this._ui.validationInformationVisible=!1)},_destroyUI:function(){this._resetUI(),void 0!==this._ui&&this._ui.$errorsWrapper.remove(),delete this._ui},_successClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.errorClass).addClass(this.options.successClass)},_errorClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.successClass).addClass(this.options.errorClass)},_resetClass:function(){this._ui.$errorClassHandler.removeClass(this.options.successClass).removeClass(this.options.errorClass)}};var w=function(t,i,n){this.__class__="Form",this.element=t,this.$element=e(t),this.domOptions=i,this.options=n,this.parent=window.Parsley,this.fields=[],this.validationResult=null},b={pending:null,resolved:!0,rejected:!1};w.prototype={onSubmitValidate:function(e){var t=this;if(!0!==e.parsley){var i=this._submitSource||this.$element.find(a._SubmitSelector)[0];if(this._submitSource=null,this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!0),!i||null===i.getAttribute("formnovalidate")){window.Parsley._remoteCache={};var n=this.whenValidate({event:e});"resolved"===n.state()&&!1!==this._trigger("submit")||(e.stopImmediatePropagation(),e.preventDefault(),"pending"===n.state()&&n.done(function(){t._submit(i)}))}}},onSubmitButton:function(e){this._submitSource=e.currentTarget},_submit:function(t){if(!1!==this._trigger("submit")){if(t){var i=this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!1);0===i.length&&(i=e('<input class="parsley-synthetic-submit-button" type="hidden">').appendTo(this.$element)),i.attr({name:t.getAttribute("name"),value:t.getAttribute("value")})}this.$element.trigger(_extends(e.Event("submit"),{parsley:!0}))}},validate:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){a.warnOnce("Calling validate on a parsley form without passing arguments as an object is deprecated.");var i=_slice.call(arguments);t={group:i[0],force:i[1],event:i[2]}}return b[this.whenValidate(t).state()]},whenValidate:function(){var t,i=this,n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=n.group,s=n.force,o=n.event;this.submitEvent=o,o&&(this.submitEvent=_extends({},o,{preventDefault:function(){a.warnOnce("Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult = false`"),i.validationResult=!1}})),this.validationResult=!0,this._trigger("validate"),this._refreshFields();var l=this._withoutReactualizingFormOptions(function(){return e.map(i.fields,function(e){return e.whenValidate({force:s,group:r})})});return(t=a.all(l).done(function(){i._trigger("success")}).fail(function(){i.validationResult=!1,i.focus(),i._trigger("error")}).always(function(){i._trigger("validated")})).pipe.apply(t,_toConsumableArray(this._pipeAccordingToValidationResult()))},isValid:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){a.warnOnce("Calling isValid on a parsley form without passing arguments as an object is deprecated.");var i=_slice.call(arguments);t={group:i[0],force:i[1]}}return b[this.whenValid(t).state()]},whenValid:function(){var t=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=i.group,r=i.force;this._refreshFields();var s=this._withoutReactualizingFormOptions(function(){return e.map(t.fields,function(e){return e.whenValid({group:n,force:r})})});return a.all(s)},reset:function(){for(var e=0;e<this.fields.length;e++)this.fields[e].reset();this._trigger("reset")},destroy:function(){this._destroyUI();for(var e=0;e<this.fields.length;e++)this.fields[e].destroy();this.$element.removeData("Parsley"),this._trigger("destroy")},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var t=this,i=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){t.$element.find(t.options.inputs).not(t.options.excluded).each(function(e,i){var n=new window.Parsley.Factory(i,{},t);if(("Field"===n.__class__||"FieldMultiple"===n.__class__)&&!0!==n.options.excluded){var r=n.__class__+"-"+n.__id__;void 0===t.fieldsMappedById[r]&&(t.fieldsMappedById[r]=n,t.fields.push(n))}}),e.each(a.difference(i,t.fields),function(e,t){t.reset()})}),this},_withoutReactualizingFormOptions:function(e){var t=this.actualizeOptions;this.actualizeOptions=function(){return this};var i=e();return this.actualizeOptions=t,i},_trigger:function(e){return this.trigger("form:"+e)}};var F=function(e,t,i,n,r){var s=window.Parsley._validatorRegistry.validators[t],a=new h(s);n=n||e.options[t+"Priority"]||a.priority,r=!0===r,_extends(this,{validator:a,name:t,requirements:i,priority:n,isDomConstraint:r}),this._parseRequirements(e.options)},C=function(e){return e[0].toUpperCase()+e.slice(1)};F.prototype={validate:function(e,t){var i;return(i=this.validator).validate.apply(i,[e].concat(_toConsumableArray(this.requirementList),[t]))},_parseRequirements:function(e){var t=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(i){return e[t.name+C(i)]})}};var E=function(t,i,n,r){this.__class__="Field",this.element=t,this.$element=e(t),void 0!==r&&(this.parent=r),this.options=n,this.domOptions=i,this.constraints=[],this.constraintsByName={},this.validationResult=!0,this._bindConstraints()},x={pending:null,resolved:!0,rejected:!1};E.prototype={validate:function(t){arguments.length>=1&&!e.isPlainObject(t)&&(a.warnOnce("Calling validate on a parsley field without passing arguments as an object is deprecated."),t={options:t});var i=this.whenValidate(t);if(!i)return!0;switch(i.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(){var e,t=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=i.force,r=i.group;if(this.refreshConstraints(),!r||this._isInGroup(r))return this.value=this.getValue(),this._trigger("validate"),(e=this.whenValid({force:n,value:this.value,_refreshed:!0}).always(function(){t._reflowUI()}).done(function(){t._trigger("success")}).fail(function(){t._trigger("error")}).always(function(){t._trigger("validated")})).pipe.apply(e,_toConsumableArray(this._pipeAccordingToValidationResult()))},hasConstraints:function(){return 0!==this.constraints.length},needsValidation:function(e){return void 0===e&&(e=this.getValue()),!(!e.length&&!this._isRequired()&&void 0===this.options.validateIfEmpty)},_isInGroup:function(t){return Array.isArray(this.options.group)?-1!==e.inArray(t,this.options.group):this.options.group===t},isValid:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){a.warnOnce("Calling isValid on a parsley field without passing arguments as an object is deprecated.");var i=_slice.call(arguments);t={force:i[0],value:i[1]}}var n=this.whenValid(t);return!n||x[n.state()]},whenValid:function(){var t=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=i.force,r=void 0!==n&&n,s=i.value,o=i.group;if(i._refreshed||this.refreshConstraints(),!o||this._isInGroup(o)){if(this.validationResult=!0,!this.hasConstraints())return e.when();if(void 0!==s&&null!==s||(s=this.getValue()),!this.needsValidation(s)&&!0!==r)return e.when();var l=this._getGroupedConstraints(),u=[];return e.each(l,function(i,n){var r=a.all(e.map(n,function(e){return t._validateConstraint(s,e)}));if(u.push(r),"rejected"===r.state())return!1}),a.all(u)}},_validateConstraint:function(t,i){var n=this,r=i.validate(t,this);return!1===r&&(r=e.Deferred().reject()),a.all([r]).fail(function(e){n.validationResult instanceof Array||(n.validationResult=[]),n.validationResult.push({assert:i,errorMessage:"string"==typeof e&&e})})},getValue:function(){var e;return e="function"==typeof this.options.value?this.options.value(this):void 0!==this.options.value?this.options.value:this.$element.val(),void 0===e||null===e?"":this._handleWhitespace(e)},reset:function(){return this._resetUI(),this._trigger("reset")},destroy:function(){this._destroyUI(),this.$element.removeData("Parsley"),this.$element.removeData("FieldMultiple"),this._trigger("destroy")},refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},addConstraint:function(e,t,i,n){if(window.Parsley._validatorRegistry.validators[e]){var r=new F(this,e,t,i,n);"undefined"!==this.constraintsByName[r.name]&&this.removeConstraint(r.name),this.constraints.push(r),this.constraintsByName[r.name]=r}return this},removeConstraint:function(e){for(var t=0;t<this.constraints.length;t++)if(e===this.constraints[t].name){this.constraints.splice(t,1);break}return delete this.constraintsByName[e],this},updateConstraint:function(e,t,i){return this.removeConstraint(e).addConstraint(e,t,i)},_bindConstraints:function(){for(var e=[],t={},i=0;i<this.constraints.length;i++)!1===this.constraints[i].isDomConstraint&&(e.push(this.constraints[i]),t[this.constraints[i].name]=this.constraints[i]);this.constraints=e,this.constraintsByName=t;for(var n in this.options)this.addConstraint(n,this.options[n],void 0,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){null!==this.element.getAttribute("required")&&this.addConstraint("required",!0,void 0,!0),null!==this.element.getAttribute("pattern")&&this.addConstraint("pattern",this.element.getAttribute("pattern"),void 0,!0);var e=this.element.getAttribute("min"),t=this.element.getAttribute("max");null!==e&&null!==t?this.addConstraint("range",[e,t],void 0,!0):null!==e?this.addConstraint("min",e,void 0,!0):null!==t&&this.addConstraint("max",t,void 0,!0),null!==this.element.getAttribute("minlength")&&null!==this.element.getAttribute("maxlength")?this.addConstraint("length",[this.element.getAttribute("minlength"),this.element.getAttribute("maxlength")],void 0,!0):null!==this.element.getAttribute("minlength")?this.addConstraint("minlength",this.element.getAttribute("minlength"),void 0,!0):null!==this.element.getAttribute("maxlength")&&this.addConstraint("maxlength",this.element.getAttribute("maxlength"),void 0,!0);var i=this.element.type;return"number"===i?this.addConstraint("type",["number",{step:this.element.getAttribute("step")||"1",base:e||this.element.getAttribute("value")}],void 0,!0):/^(email|url|range|date)$/i.test(i)?this.addConstraint("type",i,void 0,!0):this},_isRequired:function(){return void 0!==this.constraintsByName.required&&!1!==this.constraintsByName.required.requirements},_trigger:function(e){return this.trigger("field:"+e)},_handleWhitespace:function(e){return!0===this.options.trimValue&&a.warnOnce('data-parsley-trim-value="true" is deprecated, please use data-parsley-whitespace="trim"'),"squish"===this.options.whitespace&&(e=e.replace(/\s{2,}/g," ")),"trim"!==this.options.whitespace&&"squish"!==this.options.whitespace&&!0!==this.options.trimValue||(e=a.trimString(e)),e},_isDateInput:function(){var e=this.constraintsByName.type;return e&&"date"===e.requirements},_getGroupedConstraints:function(){if(!1===this.options.priorityEnabled)return[this.constraints];for(var e=[],t={},i=0;i<this.constraints.length;i++){var n=this.constraints[i].priority;t[n]||e.push(t[n]=[]),t[n].push(this.constraints[i])}return e.sort(function(e,t){return t[0].priority-e[0].priority}),e}};var A=E,$=function(){this.__class__="FieldMultiple"};$.prototype={addElement:function(e){return this.$elements.push(e),this},
refreshConstraints:function(){var t;if(this.constraints=[],"SELECT"===this.element.nodeName)return this.actualizeOptions()._bindConstraints(),this;for(var i=0;i<this.$elements.length;i++)if(e("html").has(this.$elements[i]).length){t=this.$elements[i].data("FieldMultiple").refreshConstraints().constraints;for(var n=0;n<t.length;n++)this.addConstraint(t[n].name,t[n].requirements,t[n].priority,t[n].isDomConstraint)}else this.$elements.splice(i,1);return this},getValue:function(){if("function"==typeof this.options.value)return this.options.value(this);if(void 0!==this.options.value)return this.options.value;if("INPUT"===this.element.nodeName){if("radio"===this.element.type)return this._findRelated().filter(":checked").val()||"";if("checkbox"===this.element.type){var t=[];return this._findRelated().filter(":checked").each(function(){t.push(e(this).val())}),t}}return"SELECT"===this.element.nodeName&&(null===this.$element.val()||this.$element.val().filter(function(t){return null===Object.prototype.toString.call(t).match(/(?:number|boolean)/i)&&e.isEmptyObject(t)}).length>0)?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}};var P=function(t,i,n){this.element=t,this.$element=e(t);var r=this.$element.data("Parsley");if(r)return void 0!==n&&r.parent===window.Parsley&&(r.parent=n,r._resetOptions(r.options)),"object"==typeof i&&_extends(r.options,i),r;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if(void 0!==n&&"Form"!==n.__class__)throw new Error("Parent instance must be a Form instance");return this.parent=n||window.Parsley,this.init(i)};P.prototype={init:function(e){return this.__class__="Parsley",this.__version__="2.7.2",this.__id__=a.generateID(),this._resetOptions(e),"FORM"===this.element.nodeName||a.checkAttr(this.element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs)?this.bind("parsleyForm"):this.isMultiple()?this.handleMultiple():this.bind("parsleyField")},isMultiple:function(){return"radio"===this.element.type||"checkbox"===this.element.type||"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple")},handleMultiple:function(){var t,i=this;if(this.options.multiple=this.options.multiple||(t=this.element.getAttribute("name"))||this.element.getAttribute("id"),"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple"))return this.options.multiple=this.options.multiple||this.__id__,this.bind("parsleyFieldMultiple");if(!this.options.multiple)return a.warn("To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element),this;this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,""),t&&e('input[name="'+t+'"]').each(function(e,t){"radio"!==t.type&&"checkbox"!==t.type||t.setAttribute(i.options.namespace+"multiple",i.options.multiple)}),this.bind("parsleyField",!0);var n=this.bind("parsleyFieldMultiple");return"radio"==this.element.type&&this._findRelated().each(function(t,i){n.$elements.filter(function(e){return i===e[0]})<=0&&n.addElement(e(i))}),n},bind:function(t,i){var n;switch(t){case"parsleyForm":n=e.extend(new w(this.element,this.domOptions,this.options),new l,window.ParsleyExtend)._bindFields();break;case"parsleyField":n=e.extend(new A(this.element,this.domOptions,this.options,this.parent),new l,window.ParsleyExtend);break;case"parsleyFieldMultiple":n=e.extend(new A(this.element,this.domOptions,this.options,this.parent),new $,new l,window.ParsleyExtend)._init();break;default:throw new Error(t+"is not a supported Parsley type")}return this.options.multiple&&a.setAttr(this.element,this.options.namespace,"multiple",this.options.multiple),void 0!==i?(this.$element.data("FieldMultiple",n),n):(this.$element.data("Parsley",n),n._actualizeTriggers(),n._trigger("init"),n)}};var V=e.fn.jquery.split(".");if(parseInt(V[0])<=1&&parseInt(V[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";V.forEach||a.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");var O=_extends(new l,{element:document,$element:e(document),actualizeOptions:null,_resetOptions:null,Factory:P,version:"2.7.2"});_extends(A.prototype,y.Field,l.prototype),_extends(w.prototype,y.Form,l.prototype),_extends(P.prototype,l.prototype),e.fn.parsley=e.fn.psly=function(t){if(this.length>1){var i=[];return this.each(function(){i.push(e(this).parsley(t))}),i}return e(this).length?new P(this[0],t):void a.warn("You must bind Parsley on an existing element.")},void 0===window.ParsleyExtend&&(window.ParsleyExtend={}),O.options=_extends(a.objectCreate(o),window.ParsleyConfig),window.ParsleyConfig=O.options,window.Parsley=window.psly=O,O.Utils=a,window.ParsleyUtils={},e.each(a,function(e,t){"function"==typeof t&&(window.ParsleyUtils[e]=function(){return a.warnOnce("Accessing `window.ParsleyUtils` is deprecated. Use `window.Parsley.Utils` instead."),a[e].apply(a,arguments)})});var M=window.Parsley._validatorRegistry=new p(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={},e.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateValidator removeValidator".split(" "),function(e,t){window.Parsley[t]=function(){return M[t].apply(M,arguments)},window.ParsleyValidator[t]=function(){var e;return a.warnOnce("Accessing the method '"+t+"' through Validator is deprecated. Simply call 'window.Parsley."+t+"(...)'"),(e=window.Parsley)[t].apply(e,arguments)}}),window.Parsley.UI=y,window.ParsleyUI={removeError:function(e,t,i){var n=!0!==i;return a.warnOnce("Accessing UI is deprecated. Call 'removeError' on the instance directly. Please comment in issue 1073 as to your need to call this method."),e.removeError(t,{updateClass:n})},getErrorsMessages:function(e){return a.warnOnce("Accessing UI is deprecated. Call 'getErrorsMessages' on the instance directly."),e.getErrorsMessages()}},e.each("addError updateError".split(" "),function(e,t){window.ParsleyUI[t]=function(e,i,n,r,s){var o=!0!==s;return a.warnOnce("Accessing UI is deprecated. Call '"+t+"' on the instance directly. Please comment in issue 1073 as to your need to call this method."),e[t](i,{message:n,assert:r,updateClass:o})}}),!1!==window.ParsleyConfig.autoBind&&e(function(){e("[data-parsley-validate]").length&&e("[data-parsley-validate]").parsley()});var T=e({}),R=function(){a.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")},D="parsley:";e.listen=function(e,n){var r;if(R(),"object"==typeof arguments[1]&&"function"==typeof arguments[2]&&(r=arguments[1],n=arguments[2]),"function"!=typeof n)throw new Error("Wrong parameters");window.Parsley.on(i(e),t(n,r))},e.listenTo=function(e,n,r){if(R(),!(e instanceof A||e instanceof w))throw new Error("Must give Parsley instance");if("string"!=typeof n||"function"!=typeof r)throw new Error("Wrong parameters");e.on(i(n),t(r))},e.unsubscribe=function(e,t){if(R(),"string"!=typeof e||"function"!=typeof t)throw new Error("Wrong arguments");window.Parsley.off(i(e),t.parsleyAdaptedCallback)},e.unsubscribeTo=function(e,t){if(R(),!(e instanceof A||e instanceof w))throw new Error("Must give Parsley instance");e.off(i(t))},e.unsubscribeAll=function(t){R(),window.Parsley.off(i(t)),e("form,input,textarea,select").each(function(){var n=e(this).data("Parsley");n&&n.off(i(t))})},e.emit=function(e,t){var n;R();var r=t instanceof A||t instanceof w,s=Array.prototype.slice.call(arguments,r?2:1);s.unshift(i(e)),r||(t=window.Parsley),(n=t).trigger.apply(n,_toConsumableArray(s))};return e.extend(!0,O,{asyncValidators:{default:{fn:function(e){return e.status>=200&&e.status<300},url:!1},reverse:{fn:function(e){return e.status<200||e.status>=300},url:!1}},addAsyncValidator:function(e,t,i,n){return O.asyncValidators[e]={fn:t,url:i||!1,options:n||{}},this}}),O.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function(t,i,n,r){var s,a,o={},l=n.validator||(!0===n.reverse?"reverse":"default");if(void 0===O.asyncValidators[l])throw new Error("Calling an undefined async validator: `"+l+"`");i=O.asyncValidators[l].url||i,i.indexOf("{value}")>-1?i=i.replace("{value}",encodeURIComponent(t)):o[r.element.getAttribute("name")||r.element.getAttribute("id")]=t;var u=e.extend(!0,n.options||{},O.asyncValidators[l].options);s=e.extend(!0,{},{url:i,data:o,type:"GET"},u),r.trigger("field:ajaxoptions",r,s),a=e.param(s),void 0===O._remoteCache&&(O._remoteCache={});var d=O._remoteCache[a]=O._remoteCache[a]||e.ajax(s),h=function(){var t=O.asyncValidators[l].fn.call(r,d,i,n);return t||(t=e.Deferred().reject()),e.when(t)};return d.then(h,h)},priority:-1}),O.on("form:submit",function(){O._remoteCache={}}),l.prototype.addAsyncValidator=function(){return a.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`"),O.addAsyncValidator.apply(O,arguments)},O.addMessages("en",{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same."}),O.setLocale("en"),(new n).install(),O});
}catch(e){console.log("Module 'parsley.js-2.7.2': ",e);}
try{"use strict";window.Parsley&&window.Parsley.addValidator("maxFileSize",{validateString:function(e,r,n){if(n=n.$element[0],!window.FormData)return console.warn("You are making all developpers in the world cringe. Upgrade your browser!"),!0;var i,a=[],t=n.files;for(r=Number(r)||0,i=0;i<t.length;i++){var l=t.item(i);l.size>1024*r&&a.push(l.name)}return a.length<=0},requirementType:"integer",messages:{en:"Selected file does not match the required maximum file size: %s",ru:"Выбранный файл превышает максимальный размер: %s",kk:"Таңдалған файл ең үлкен файл өлшеміне сәйкес келмейді: %s"}}),window.Parsley&&window.Parsley.addValidator("fileTypes",{validateString:function(e,r,n){if(n=n.$element[0],!window.FormData)return console.warn("You are making all developpers in the world cringe. Upgrade your browser!"),!0;var i,a=[],t=n.files;for(i=0;i<t.length;i++){var l=t.item(i);"[object String]"===Object.prototype.toString.call(r)&&r.length>0&&r.trim().replace(/\s/g,"").split(",").indexOf(new RegExp(".[^.]*$","i").exec(l.name)[0].slice(1))<0&&a.push(l.name)}return a.length<=0},requirementType:"string",messages:{en:"Selected file does not match the required file types: %s",ru:"Выбранный файл не является одним из разрешенных типов: %s",kk:"Таңдалған файл ұсынылған файл типтеріне сәйкес келмейді: %s"}}),window.Parsley&&window.Parsley.addValidator("maxFiles",{validateString:function(e,r,n){return n=n.$element[0],window.FormData?(r=Number(r)||0,n.files.length&&n.files.length<=r):(console.warn("You are making all developpers in the world cringe. Upgrade your browser!"),!0)},requirementType:"integer",messages:{en:"Maximum files should not be more than %s",ru:"Количество файлов не должно превышать %s",kk:"Ең үлкен файлдар %s-дан аспауы тиіс"}}),window.Parsley&&window.Parsley.addValidator("minFiles",{validateString:function(e,r,n){return n=n.$element[0],window.FormData?(r=Number(r)||0,files.length&&files.length>=r):(console.warn("You are making all developpers in the world cringe. Upgrade your browser!"),!0)},requirementType:"integer",messages:{en:"Minimum files should not be less than %s",ru:"Количество файлов не должно быть менее %s",kk:"Ең кіші мән %s-ден кем болмауы тиіс"}});
}catch(e){console.log("Module 'parsley.js-2.7.2': ",e);}
try{Parsley.addMessages("kk",{defaultMessage:"Қате мән.",type:{email:"Электронды пошта мекенжайын енгізіңіз.",url:"URL мекенжайды енгізіңіз.",number:"Санды енгізіңіз.",integer:"Бүтін сан енгізіңіз.",digits:"Тек цифр енгізіңіз.",alphanum:"Әріптік-цифрлы мән енгізіңіз."},notblank:"Бұл алаң толтырылуы тиіс.",required:"Міндетті алаң.",pattern:"Бұл мән қате.",min:"Бұл мән %s-дан кем болмауы тиіс.",max:"Бұл мән %s-ден аспауы тиіс.",range:"Бұл мән %s-ден %s-ге дейін болуы тиіс.",minlength:"Бұл мән %s-дан кем емес таңбадан тұруы тиіс.",maxlength:"Бұл мән %s-ден артық емес таңбадан тұруы тиіс.",length:"Бұл мән %s-ден %s-ге дейінгі таңбадан тұруы тиіс.",mincheck:"%s-дан кем емес мән таңдаңыз.",maxcheck:"%s-дан артық емес мән таңдаңыз.",check:"%s-дан %s-ге дейінгі мән таңдаңыз.",equalto:"Бұл мән сәйкес келуі тиіс.",dateiso:"Бұл мән дұрыс күн болуы тиіс(ЖЖЖЖ-АА-КК).",minwords:"Бұл мән %s-ден кем емес сөзден тұруы тиіс.",maxwords:"Бұл мән %s-ден артық емес сөзден тұруы тиіс.",words:"Бұл мән %s-ден %s-ге дейін сөзден тұруы тиіс.",gt:"Бұл мән артығырақ болуы тиіс.",gte:"Бұл мән артық не тең болуы тиіс.",lt:"Бұл мән кемірек болуы тиіс.",lte:"Бұл мән кем не тең болуы тиіс.",notequalto:"Бұл мән ерекшеленуі тиіс.",maxFileSize:"Таңдалған файл ең үлкен файл өлшеміне сәйкес келмейді: %s",fileTypes:"Таңдалған файл ұсынылған файл типтеріне сәйкес келмейді: %s",maxFiles:"Ең үлкен файлдар %s-дан аспауы тиіс",minFiles:"Ең кіші мән %s-ден кем болмауы тиіс"}),Parsley.setLocale("kk");
}catch(e){console.log("Module 'parsley.js-2.7.2': ",e);}
try{!function(t,e){if("function"==typeof define&&define.amd)define("bootstrap-switch",["jquery-3.1.1"],function(i){t.bootstrapSwitch=e(i)});else if("undefined"!=typeof exports)e(require("jquery-3.1.1"));else{var i={exports:{}};e(t.jquery),t.bootstrapSwitch=i.exports}}(this,function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(t){return t&&t.__esModule?t:{default:t}}(t),s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),n=i.default||window.jQuery||window.$,a=function(){function t(i){var s=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,t),this.$element=n(i),this.options=n.extend({},n.fn.bootstrapSwitch.defaults,this._getElementOptions(),o),this.prevOptions={},this.$wrapper=n("<div>",{class:function(){var t=[];return t.push(s.options.state?"on":"off"),s.options.size&&t.push(s.options.size),s.options.disabled&&t.push("disabled"),s.options.readonly&&t.push("readonly"),s.options.indeterminate&&t.push("indeterminate"),s.options.inverse&&t.push("inverse"),s.$element.attr("id")&&t.push("id-"+s.$element.attr("id")),t.map(s._getClass.bind(s)).concat([s.options.baseClass],s._getClasses(s.options.wrapperClass)).join(" ")}}),this.$wrapper.toggleClass(s.options.state?this._getClass(this.options.onColor):this._getClass(this.options.offColor)),this.$container=n("<div>",{class:this._getClass("container")}),this.$on=n("<span>",{html:this.options.onText,class:this._getClass("handle-on")+" "+this._getClass(this.options.onColor)}),this.$off=n("<span>",{html:this.options.offText,class:this._getClass("handle-off")+" "+this._getClass(this.options.offColor)}),this.$label=n("<span>",{html:this.options.labelText,class:this._getClass("label")}),this.$element.on("init.bootstrapSwitch",this.options.onInit.bind(this,i)),this.$element.on("switchChange.bootstrapSwitch",function(){for(var t=arguments.length,e=Array(t),o=0;o<t;o++)e[o]=arguments[o];!1===s.options.onSwitchChange.apply(i,e)&&(s.$element.is(":radio")?n('[name="'+s.$element.attr("name")+'"]').trigger("previousState.bootstrapSwitch",!0):s.$element.trigger("previousState.bootstrapSwitch",!0))}),this.$container=this.$element.wrap(this.$container).parent(),this.$wrapper=this.$container.wrap(this.$wrapper).parent(),this.$element.before(this.options.inverse?this.$off:this.$on).before(this.$label).before(this.options.inverse?this.$on:this.$off),this.options.indeterminate&&this.$element.prop("indeterminate",!0),this._init(),this._elementHandlers(),this._handleHandlers(),this._labelHandlers(),this._formHandler(),this._externalLabelHandler(),this.$element.trigger("init.bootstrapSwitch",this.options.state)}return o(t,[{key:"setPrevOptions",value:function(){this.prevOptions=s({},this.options)}},{key:"state",value:function(t,e){return void 0===t?this.options.state:this.options.disabled||this.options.readonly||this.options.state&&!this.options.radioAllOff&&this.$element.is(":radio")?this.$element:(this.$element.is(":radio")?n('[name="'+this.$element.attr("name")+'"]').trigger("setPreviousOptions.bootstrapSwitch"):this.$element.trigger("setPreviousOptions.bootstrapSwitch"),this.options.indeterminate&&this.indeterminate(!1),this.$element.prop("checked",Boolean(t)).trigger("change.bootstrapSwitch",e),this.$element)}},{key:"toggleState",value:function(t){return this.options.disabled||this.options.readonly?this.$element:this.options.indeterminate?(this.indeterminate(!1),this.state(!0)):this.$element.prop("checked",!this.options.state).trigger("change.bootstrapSwitch",t)}},{key:"size",value:function(t){return void 0===t?this.options.size:(null!=this.options.size&&this.$wrapper.removeClass(this._getClass(this.options.size)),t&&this.$wrapper.addClass(this._getClass(t)),this._width(),this._containerPosition(),this.options.size=t,this.$element)}},{key:"animate",value:function(t){return void 0===t?this.options.animate:this.options.animate===Boolean(t)?this.$element:this.toggleAnimate()}},{key:"toggleAnimate",value:function(){return this.options.animate=!this.options.animate,this.$wrapper.toggleClass(this._getClass("animate")),this.$element}},{key:"disabled",value:function(t){return void 0===t?this.options.disabled:this.options.disabled===Boolean(t)?this.$element:this.toggleDisabled()}},{key:"toggleDisabled",value:function(){return this.options.disabled=!this.options.disabled,this.$element.prop("disabled",this.options.disabled),this.$wrapper.toggleClass(this._getClass("disabled")),this.$element}},{key:"readonly",value:function(t){return void 0===t?this.options.readonly:this.options.readonly===Boolean(t)?this.$element:this.toggleReadonly()}},{key:"toggleReadonly",value:function(){return this.options.readonly=!this.options.readonly,this.$element.prop("readonly",this.options.readonly),this.$wrapper.toggleClass(this._getClass("readonly")),this.$element}},{key:"indeterminate",value:function(t){return void 0===t?this.options.indeterminate:this.options.indeterminate===Boolean(t)?this.$element:this.toggleIndeterminate()}},{key:"toggleIndeterminate",value:function(){return this.options.indeterminate=!this.options.indeterminate,this.$element.prop("indeterminate",this.options.indeterminate),this.$wrapper.toggleClass(this._getClass("indeterminate")),this._containerPosition(),this.$element}},{key:"inverse",value:function(t){return void 0===t?this.options.inverse:this.options.inverse===Boolean(t)?this.$element:this.toggleInverse()}},{key:"toggleInverse",value:function(){this.$wrapper.toggleClass(this._getClass("inverse"));var t=this.$on.clone(!0),e=this.$off.clone(!0);return this.$on.replaceWith(e),this.$off.replaceWith(t),this.$on=e,this.$off=t,this.options.inverse=!this.options.inverse,this.$element}},{key:"onColor",value:function(t){return void 0===t?this.options.onColor:(this.options.onColor&&this.$on.removeClass(this._getClass(this.options.onColor)),this.$on.addClass(this._getClass(t)),this.options.onColor=t,this.$element)}},{key:"offColor",value:function(t){return void 0===t?this.options.offColor:(this.options.offColor&&this.$off.removeClass(this._getClass(this.options.offColor)),this.$off.addClass(this._getClass(t)),this.options.offColor=t,this.$element)}},{key:"onText",value:function(t){return void 0===t?this.options.onText:(this.$on.html(t),this._width(),this._containerPosition(),this.options.onText=t,this.$element)}},{key:"offText",value:function(t){return void 0===t?this.options.offText:(this.$off.html(t),this._width(),this._containerPosition(),this.options.offText=t,this.$element)}},{key:"labelText",value:function(t){return void 0===t?this.options.labelText:(this.$label.html(t),this._width(),this.options.labelText=t,this.$element)}},{key:"handleWidth",value:function(t){return void 0===t?this.options.handleWidth:(this.options.handleWidth=t,this._width(),this._containerPosition(),this.$element)}},{key:"labelWidth",value:function(t){return void 0===t?this.options.labelWidth:(this.options.labelWidth=t,this._width(),this._containerPosition(),this.$element)}},{key:"baseClass",value:function(t){return this.options.baseClass}},{key:"wrapperClass",value:function(t){return void 0===t?this.options.wrapperClass:(t||(t=n.fn.bootstrapSwitch.defaults.wrapperClass),this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" ")),this.$wrapper.addClass(this._getClasses(t).join(" ")),this.options.wrapperClass=t,this.$element)}},{key:"radioAllOff",value:function(t){if(void 0===t)return this.options.radioAllOff;var e=Boolean(t);return this.options.radioAllOff===e?this.$element:(this.options.radioAllOff=e,this.$element)}},{key:"onInit",value:function(t){return void 0===t?this.options.onInit:(t||(t=n.fn.bootstrapSwitch.defaults.onInit),this.options.onInit=t,this.$element)}},{key:"onSwitchChange",value:function(t){return void 0===t?this.options.onSwitchChange:(t||(t=n.fn.bootstrapSwitch.defaults.onSwitchChange),this.options.onSwitchChange=t,this.$element)}},{key:"destroy",value:function(){var t=this.$element.closest("form");return t.length&&t.off("reset.bootstrapSwitch").removeData("bootstrap-switch"),this.$container.children().not(this.$element).remove(),this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch"),this.$element}},{key:"_getElementOptions",value:function(){return{state:this.$element.is(":checked"),size:this.$element.data("size"),animate:this.$element.data("animate"),disabled:this.$element.is(":disabled"),readonly:this.$element.is("[readonly]"),indeterminate:this.$element.data("indeterminate"),inverse:this.$element.data("inverse"),radioAllOff:this.$element.data("radio-all-off"),onColor:this.$element.data("on-color"),offColor:this.$element.data("off-color"),onText:this.$element.data("on-text"),offText:this.$element.data("off-text"),labelText:this.$element.data("label-text"),handleWidth:this.$element.data("handle-width"),labelWidth:this.$element.data("label-width"),baseClass:this.$element.data("base-class"),wrapperClass:this.$element.data("wrapper-class")}}},{key:"_width",value:function(){var t=this,e=this.$on.add(this.$off).add(this.$label).css("width",""),i="auto"===this.options.handleWidth?Math.round(Math.max(this.$on.width(),this.$off.width())):this.options.handleWidth;return e.width(i),this.$label.width(function(e,s){return"auto"!==t.options.labelWidth?t.options.labelWidth:s<i?i:s}),this._handleWidth=this.$on.outerWidth(),this._labelWidth=this.$label.outerWidth(),this.$container.width(2*this._handleWidth+this._labelWidth),this.$wrapper.width(this._handleWidth+this._labelWidth)}},{key:"_containerPosition",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.state;arguments[1];this.$container.css("margin-left",function(){var i=[0,"-"+t._handleWidth+"px"];return t.options.indeterminate?"-"+t._handleWidth/2+"px":e?t.options.inverse?i[1]:i[0]:t.options.inverse?i[0]:i[1]})}},{key:"_init",value:function(){var t=this,e=function(){t.setPrevOptions(),t._width(),t._containerPosition(),setTimeout(function(){if(t.options.animate)return t.$wrapper.addClass(t._getClass("animate"))},50)};if(this.$wrapper.is(":visible"))return void e();var i=window.setInterval(function(){if(t.$wrapper.is(":visible"))return e(),window.clearInterval(i)},50)}},{key:"_elementHandlers",value:function(){var t=this;return this.$element.on({"setPreviousOptions.bootstrapSwitch":this.setPrevOptions.bind(this),"previousState.bootstrapSwitch":function(){t.options=t.prevOptions,t.options.indeterminate&&t.$wrapper.addClass(t._getClass("indeterminate")),t.$element.prop("checked",t.options.state).trigger("change.bootstrapSwitch",!0)},"change.bootstrapSwitch":function(e,i){e.preventDefault(),e.stopImmediatePropagation();var s=t.$element.is(":checked");t._containerPosition(s),s!==t.options.state&&(t.options.state=s,t.$wrapper.toggleClass(t._getClass("off")).toggleClass(t._getClass("on")),t.$wrapper.toggleClass(t._getClass(t.options.onColor)).toggleClass(t._getClass(t.options.offColor)),i||(t.$element.is(":radio")&&n('[name="'+t.$element.attr("name")+'"]').not(t.$element).prop("checked",!1).trigger("change.bootstrapSwitch",!0),t.$element.trigger("switchChange.bootstrapSwitch",[s])))},"focus.bootstrapSwitch":function(e){e.preventDefault(),t.$wrapper.addClass(t._getClass("focused"))},"blur.bootstrapSwitch":function(e){e.preventDefault(),t.$wrapper.removeClass(t._getClass("focused"))},"keydown.bootstrapSwitch":function(e){!e.which||t.options.disabled||t.options.readonly||37!==e.which&&39!==e.which||(e.preventDefault(),e.stopImmediatePropagation(),t.state(39===e.which))}})}},{key:"_handleHandlers",value:function(){var t=this;return this.$on.on("click.bootstrapSwitch",function(e){return e.preventDefault(),e.stopPropagation(),t.state(!1),t.$element.trigger("focus.bootstrapSwitch")}),this.$off.on("click.bootstrapSwitch",function(e){return e.preventDefault(),e.stopPropagation(),t.state(!0),t.$element.trigger("focus.bootstrapSwitch")})}},{key:"_labelHandlers",value:function(){var t=this,e={click:function(t){t.stopPropagation()},"mousedown.bootstrapSwitch touchstart.bootstrapSwitch":function(e){t._dragStart||t.options.disabled||t.options.readonly||(e.preventDefault(),e.stopPropagation(),t._dragStart=(e.pageX||e.originalEvent.touches[0].pageX)-parseInt(t.$container.css("margin-left"),10),t.options.animate&&t.$wrapper.removeClass(t._getClass("animate")),t.$element.trigger("focus.bootstrapSwitch"))},"mousemove.bootstrapSwitch touchmove.bootstrapSwitch":function(e){if(null!=t._dragStart){var i=(e.pageX||e.originalEvent.touches[0].pageX)-t._dragStart;e.preventDefault(),i<-t._handleWidth||i>0||(t._dragEnd=i,t.$container.css("margin-left",t._dragEnd+"px"))}},"mouseup.bootstrapSwitch touchend.bootstrapSwitch":function(e){if(t._dragStart){if(e.preventDefault(),t.options.animate&&t.$wrapper.addClass(t._getClass("animate")),t._dragEnd){var i=t._dragEnd>-t._handleWidth/2;t._dragEnd=!1,t.state(t.options.inverse?!i:i)}else t.state(!t.options.state);t._dragStart=!1}},"mouseleave.bootstrapSwitch":function(){t.$label.trigger("mouseup.bootstrapSwitch")}};this.$label.on(e)}},{key:"_externalLabelHandler",value:function(){var t=this,e=this.$element.closest("label");e.on("click",function(i){i.preventDefault(),i.stopImmediatePropagation(),i.target===e[0]&&t.toggleState()})}},{key:"_formHandler",value:function(){var t=this.$element.closest("form");t.data("bootstrap-switch")||t.on("reset.bootstrapSwitch",function(){window.setTimeout(function(){t.find("input").filter(function(){return n(this).data("bootstrap-switch")}).each(function(){return n(this).bootstrapSwitch("state",this.checked)})},1)}).data("bootstrap-switch",!0)}},{key:"_getClass",value:function(t){return this.options.baseClass+"-"+t}},{key:"_getClasses",value:function(t){return n.isArray(t)?t.map(this._getClass.bind(this)):[this._getClass(t)]}}]),t}();n.fn.bootstrapSwitch=function(t){function e(e,i){var o=n(i),r=o.data("bootstrap-switch"),l=r||new a(i,t);return r||o.data("bootstrap-switch",l),"string"==typeof t?l[t].apply(l,s):e}for(var i=arguments.length,s=Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];return Array.prototype.reduce.call(this,e,this)},n.fn.bootstrapSwitch.Constructor=a,n.fn.bootstrapSwitch.defaults={state:!0,size:null,animate:!0,disabled:!1,readonly:!1,indeterminate:!1,inverse:!1,radioAllOff:!1,onColor:"primary",offColor:"default",onText:"ON",offText:"OFF",labelText:"&nbsp",handleWidth:"auto",labelWidth:"auto",baseClass:"bootstrap-switch",wrapperClass:"wrapper",onInit:function(){},onSwitchChange:function(){}}});
}catch(e){console.log("Module 'bootstrap-switch-3.3.4': ",e);}
try{"use strict";!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(t,require("jquery-utils-1.0.0"),require("bootstrap-switch")):"function"==typeof define&&define.amd?define("bootstrapSwitch",["jquery-utils-1.0.0","bootstrap-switch"],function(o){return e(t,o)}):e(t,t.jQuery)}(this,function(t,e,o){t&&e&&e(function(){e(".bootstrap-switch").each(function(t,o){var i=e(o);i.bootstrapSwitch&&i.bootstrapSwitch(e.extend({onText:"ON",offText:"OFF"},i.data()))})})});
}catch(e){console.log("Module 'bootstrap-switch-3.3.4': ",e);}
try{!function(t){"function"==typeof define&&define.amd?define("bootstrap-datepicker-1.7.0",["jquery-3.1.1"],t):t("object"==typeof exports?require("jquery-3.1.1"):jQuery)}(function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function a(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function s(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function n(i,a){return function(){return a!==e&&t.fn.datepicker.deprecated(a),this[i].apply(this,arguments)}}function o(t){return t&&!isNaN(t.getTime())}function r(e,i){function a(t,e){return e.toLowerCase()}var s,n=t(e).data(),o={},r=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var h in n)i.test(h)&&(s=h.replace(r,a),o[s]=n[h]);return o}function h(e){var i={};if(m[e]||(e=e.split("-")[0],m[e])){var a=m[e];return t.each(g,function(t,e){e in a&&(i[e]=a[e])}),i}}var l=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,a=this.length;i<a;i++)if(0<=this[i].valueOf()-e&&this[i].valueOf()-e<864e5)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(e){e&&(t.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var t=new l;return t.replace(this),t}};return function(){var i=[];return i.push.apply(i,arguments),t.extend(i,e),i}}(),d=function(e,i){t.data(e,"datepicker",this),this._process_options(i),this.dates=new l,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=t(D.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(t,e){return Number(e)+1}),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};d.prototype={constructor:d,_resolveViewName:function(e){return t.each(D.viewModes,function(i,a){if(e===i||-1!==t.inArray(e,a.names))return e=i,!1}),e},_resolveDaysOfWeek:function(e){return t.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(i){try{if(i===e||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;return t(i).length>0}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var s=this.o=t.extend({},this._o),n=s.language;m[n]||(n=n.split("-")[0],m[n]||(n=f.language)),s.language=n,s.startView=this._resolveViewName(s.startView),s.minViewMode=this._resolveViewName(s.minViewMode),s.maxViewMode=this._resolveViewName(s.maxViewMode),s.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,s.startView)),!0!==s.multidate&&(s.multidate=Number(s.multidate)||!1,!1!==s.multidate&&(s.multidate=Math.max(0,s.multidate))),s.multidateSeparator=String(s.multidateSeparator),s.weekStart%=7,s.weekEnd=(s.weekStart+6)%7;var o=D.parseFormat(s.format);s.startDate!==-1/0&&(s.startDate?s.startDate instanceof Date?s.startDate=this._local_to_utc(this._zero_time(s.startDate)):s.startDate=D.parseDate(s.startDate,o,s.language,s.assumeNearbyYear):s.startDate=-1/0),s.endDate!==1/0&&(s.endDate?s.endDate instanceof Date?s.endDate=this._local_to_utc(this._zero_time(s.endDate)):s.endDate=D.parseDate(s.endDate,o,s.language,s.assumeNearbyYear):s.endDate=1/0),s.daysOfWeekDisabled=this._resolveDaysOfWeek(s.daysOfWeekDisabled||[]),s.daysOfWeekHighlighted=this._resolveDaysOfWeek(s.daysOfWeekHighlighted||[]),s.datesDisabled=s.datesDisabled||[],t.isArray(s.datesDisabled)||(s.datesDisabled=s.datesDisabled.split(",")),s.datesDisabled=t.map(s.datesDisabled,function(t){return D.parseDate(t,o,s.language,s.assumeNearbyYear)});var r=String(s.orientation).toLowerCase().split(/\s+/g),h=s.orientation.toLowerCase();if(r=t.grep(r,function(t){return/^auto|left|right|top|bottom$/.test(t)}),s.orientation={x:"auto",y:"auto"},h&&"auto"!==h)if(1===r.length)switch(r[0]){case"top":case"bottom":s.orientation.y=r[0];break;case"left":case"right":s.orientation.x=r[0]}else h=t.grep(r,function(t){return/^left|right$/.test(t)}),s.orientation.x=h[0]||"auto",h=t.grep(r,function(t){return/^top|bottom$/.test(t)}),s.orientation.y=h[0]||"auto";else;if(s.defaultViewDate instanceof Date||"string"==typeof s.defaultViewDate)s.defaultViewDate=D.parseDate(s.defaultViewDate,o,s.language,s.assumeNearbyYear);else if(s.defaultViewDate){var l=s.defaultViewDate.year||(new Date).getFullYear(),d=s.defaultViewDate.month||0,c=s.defaultViewDate.day||1;s.defaultViewDate=i(l,d,c)}else s.defaultViewDate=a()},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var i,a,s,n=0;n<t.length;n++)i=t[n][0],2===t[n].length?(a=e,s=t[n][1]):3===t[n].length&&(a=t[n][1],s=t[n][2]),i.on(s,a)},_unapplyEvents:function(t){for(var i,a,s,n=0;n<t.length;n++)i=t[n][0],2===t[n].length?(s=e,a=t[n][1]):3===t[n].length&&(s=t[n][1],a=t[n][2]),i.off(a,s)},_buildEvents:function(){var e={keyup:t.proxy(function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};!0===this.o.showOnFocus&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.inputField.length?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:t.proxy(function(t){this._focused_from=t.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy(function(t){this.update(t.date)},this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[this.picker,".prev, .next",{click:t.proxy(this.navArrowsClick,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var a=i||this.dates.get(-1),s=this._utc_to_local(a);this.element.trigger({type:e,date:s,viewMode:this.viewMode,dates:t.map(this.dates,this._utc_to_local),format:t.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return D.formatDate(i,e,this.o.language)},this)})},show:function(){if(!(this.inputField.prop("disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var i;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))i=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),e.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&i(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==e?new Date(t):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:n("setDates"),setUTCDate:n("setUTCDates"),remove:n("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);var a=this.o.language;return t.map(this.dates,function(t){return D.formatDate(t,i,a)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),i=this.picker.outerHeight(),a=t(this.o.container),s=a.width(),n="body"===this.o.container?t(document).scrollTop():a.scrollTop(),o=a.offset(),r=[0];this.element.parents().each(function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&r.push(Number(e))});var h=Math.max.apply(Math,r)+this.o.zIndexOffset,l=this.component?this.component.parent().offset():this.element.offset(),d=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),c=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),u=l.left-o.left,p=l.top-o.top;"body"!==this.o.container&&(p+=n),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(u-=e-c)):l.left<0?(this.picker.addClass("datepicker-orient-left"),u-=l.left-10):u+e>s?(this.picker.addClass("datepicker-orient-right"),u+=c-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f,g=this.o.orientation.y;if("auto"===g&&(f=-n+p-i,g=f<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+g),"top"===g?p-=i+parseInt(this.picker.css("padding-top")):p+=d,this.o.rtl){var m=s-(u+c);this.picker.css({top:p,right:m,zIndex:h})}else this.picker.css({top:p,left:u,zIndex:h});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],a=!1;return arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),a=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy(function(t){return D.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=t.grep(i,t.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),a?(this.setValue(),this.element.change()):this.dates.length&&("string"==typeof this.o.format?(String(this.element[0].value).length===String(this.o.format).length&&String(e)!==String(this.dates)&&this._trigger("changeDate"),this.element.change()):String(e)!==String(this.dates)&&(this._trigger("changeDate"),this.element.change())),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){var e=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(i+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)i+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(i+=" disabled"),i+='">'+m[this.o.language].daysMin[e++%7]+"</th>";i+="</tr>",this.picker.find(".datepicker-days thead").append(i)},fillMonths:function(){for(var t,e=this._utc_to_local(this.viewDate),i="",a=0;a<12;a++)t=e&&e.getMonth()===a?" focused":"",i+='<span class="month'+t+'">'+m[this.o.language].monthsShort[a]+"</span>";this.picker.find(".datepicker-months td").html(i)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var i=[],n=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),r=a();return e.getUTCFullYear()<n||e.getUTCFullYear()===n&&e.getUTCMonth()<o?i.push("old"):(e.getUTCFullYear()>n||e.getUTCFullYear()===n&&e.getUTCMonth()>o)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&s(e,r)&&i.push("today"),-1!==this.dates.contains(e)&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&i.push("selected"),e.valueOf()===this.range[0]&&i.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,a,s,n,o,r,h){for(var l,d,c,u="",p=s/10,f=this.picker.find(i),g=Math.floor(n/s)*s,m=g+9*p,D=Math.floor(this.viewDate.getFullYear()/p)*p,v=t.map(this.dates,function(t){return Math.floor(t.getUTCFullYear()/p)*p}),y=g-p;y<=m+p;y+=p)l=[a],d=null,y===g-p?l.push("old"):y===m+p&&l.push("new"),-1!==t.inArray(y,v)&&l.push("active"),(y<o||y>r)&&l.push("disabled"),y===D&&l.push("focused"),h!==t.noop&&(c=h(new Date(y,0,1)),c===e?c={}:"boolean"==typeof c?c={enabled:c}:"string"==typeof c&&(c={classes:c}),!1===c.enabled&&l.push("disabled"),c.classes&&(l=l.concat(c.classes.split(/\s+/))),c.tooltip&&(d=c.tooltip)),u+='<span class="'+l.join(" ")+'"'+(d?' title="'+d+'"':"")+">"+y+"</span>";f.find(".datepicker-switch").text(g+"-"+m),f.find("td").html(u)},fill:function(){var a,s,n=new Date(this.viewDate),o=n.getUTCFullYear(),r=n.getUTCMonth(),h=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,l=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,u=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",f=m[this.o.language].titleFormat||m.en.titleFormat;if(!isNaN(o)&&!isNaN(r)){this.picker.find(".datepicker-days .datepicker-switch").text(D.formatDate(n,f,this.o.language)),this.picker.find("tfoot .today").text(u).toggle(!1!==this.o.todayBtn),this.picker.find("tfoot .clear").text(p).toggle(!1!==this.o.clearBtn),this.picker.find("thead .datepicker-title").text(this.o.title).toggle(""!==this.o.title),this.updateNavArrows(),this.fillMonths();var g=i(o,r,0),v=g.getUTCDate();g.setUTCDate(v-(g.getUTCDay()-this.o.weekStart+7)%7);var y=new Date(g);g.getUTCFullYear()<100&&y.setUTCFullYear(g.getUTCFullYear()),y.setUTCDate(y.getUTCDate()+42),y=y.valueOf();for(var w,k,_=[];g.valueOf()<y;){if((w=g.getUTCDay())===this.o.weekStart&&(_.push("<tr>"),this.o.calendarWeeks)){var b=new Date(+g+(this.o.weekStart-w-7)%7*864e5),C=new Date(Number(b)+(11-b.getUTCDay())%7*864e5),T=new Date(Number(T=i(C.getUTCFullYear(),0,1))+(11-T.getUTCDay())%7*864e5),M=(C-T)/864e5/7+1;_.push('<td class="cw">'+M+"</td>")}k=this.getClassNames(g),k.push("day"),this.o.beforeShowDay!==t.noop&&(s=this.o.beforeShowDay(this._utc_to_local(g)),s===e?s={}:"boolean"==typeof s?s={enabled:s}:"string"==typeof s&&(s={classes:s}),!1===s.enabled&&k.push("disabled"),s.classes&&(k=k.concat(s.classes.split(/\s+/))),s.tooltip&&(a=s.tooltip)),k=t.isFunction(t.uniqueSort)?t.uniqueSort(k):t.unique(k),_.push('<td class="'+k.join(" ")+'"'+(a?' title="'+a+'"':"")+(this.o.dateCells?' data-date="'+g.getTime().toString()+'"':"")+"><div>"+g.getUTCDate()+"</div></td>"),a=null,w===this.o.weekEnd&&_.push("</tr>"),g.setUTCDate(g.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(_.join(""));var U=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",x=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?U:o).end().find("tbody span").removeClass("active");if(t.each(this.dates,function(t,e){e.getUTCFullYear()===o&&x.eq(e.getUTCMonth()).addClass("active")}),(o<h||o>d)&&x.addClass("disabled"),o===h&&x.slice(0,l).addClass("disabled"),o===d&&x.slice(c+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var S=this;t.each(x,function(i,a){var s=new Date(o,i,1),n=S.o.beforeShowMonth(s);n===e?n={}:"boolean"==typeof n?n={enabled:n}:"string"==typeof n&&(n={classes:n}),!1!==n.enabled||t(a).hasClass("disabled")||t(a).addClass("disabled"),n.classes&&t(a).addClass(n.classes),n.tooltip&&t(a).prop("title",n.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,o,h,d,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,o,h,d,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,o,h,d,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,i=new Date(this.viewDate),a=i.getUTCFullYear(),s=i.getUTCMonth(),n=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,r=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 0:t=a<=n&&s<=o,e=a>=r&&s>=h;break;case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:t=Math.floor(a/l)*l<=n,e=Math.floor(a/l)*l+l>=r}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){e.preventDefault(),e.stopPropagation();var s,n,o,r,h;s=t(e.target),s.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),s.hasClass("today")&&!s.hasClass("day")&&(this.setViewMode(0),this._setDate(a(),"linked"===this.o.todayBtn?null:"view")),s.hasClass("clear")&&this.clearDates(),s.hasClass("disabled")||(s.hasClass("day")&&(o=Number(s.text()),r=this.viewDate.getUTCFullYear(),h=this.viewDate.getUTCMonth(),(s.hasClass("old")||s.hasClass("new"))&&(n=s.hasClass("old")?-1:1,h=(h+n+12)%12,(-1===n&&11===h||1===n&&0===h)&&(r+=n,this.o.updateViewDate&&this._trigger("changeYear",this.viewDate)),this.o.updateViewDate&&this._trigger("changeMonth",this.viewDate)),this._setDate(i(r,h,o))),(s.hasClass("month")||s.hasClass("year")||s.hasClass("decade")||s.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(h=s.parent().find("span").index(s),r=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(h)):(h=0,r=Number(s.text()),this.viewDate.setUTCFullYear(r)),this._trigger(D.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(r,h,o)):(this.setViewMode(this.viewMode-1),this.fill()))),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},navArrowsClick:function(e){var i=t(e.target),a=i.hasClass("prev")?-1:1;0!==this.viewMode&&(a*=12*D.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,a),this._trigger(D.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!o(t))return this.o.defaultViewDate;if(!e)return t;var i,a,s=new Date(t.valueOf()),n=s.getUTCDate(),r=s.getUTCMonth(),h=Math.abs(e);if(e=e>0?1:-1,1===h)a=-1===e?function(){return s.getUTCMonth()===r}:function(){return s.getUTCMonth()!==i},i=r+e,s.setUTCMonth(i),i=(i+12)%12;else{for(var l=0;l<h;l++)s=this.moveMonth(s,e);i=s.getUTCMonth(),s.setUTCDate(n),a=function(){return i!==s.getUTCMonth()}}for(;a();)s.setUTCDate(--n),s.setUTCMonth(i);return s},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,i){do{if(t=this[i](t,e),!this.dateWithinRange(t))return!1;i="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,function(t){return s(e,t)}).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(!this.picker.is(":visible"))return void(40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation()));var e,i,a=!1,s=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(i=this.moveAvailableDate(s,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(i=this.moveAvailableDate(s,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?i=this.moveAvailableDate(s,e,"moveDay"):this.weekOfDateIsDisabled(s)||(i=this.moveAvailableDate(s,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(s,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(s,e,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),a=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}a&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+D.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var c=function(e,i){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(i.inputs,function(t){return t.jquery?t[0]:t}),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,p.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t.data(e,"datepicker")}),this.updateDates()};c.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,i){i.setRange(e)})},dateUpdated:function(i){if(!this.updating){this.updating=!0;var a=t.data(i.target,"datepicker");if(a!==e){var s=a.getUTCDate(),n=this.keepEmptyValues,o=t.inArray(i.target,this.inputs),r=o-1,h=o+1,l=this.inputs.length;if(-1!==o){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e!==a&&n||e.setUTCDate(s)}),s<this.dates[r])for(;r>=0&&s<this.dates[r];)this.pickers[r--].setUTCDate(s);else if(s>this.dates[h])for(;h<l&&s>this.dates[h];)this.pickers[h++].setUTCDate(s);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,function(t){t.destroy()}),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:n("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var u=t.fn.datepicker,p=function(i){var a=Array.apply(null,arguments);a.shift();var s;if(this.each(function(){var e=t(this),n=e.data("datepicker"),o="object"==typeof i&&i;if(!n){var l=r(this,"date"),u=t.extend({},f,l,o),p=h(u.language),g=t.extend({},f,p,l,o);e.hasClass("input-daterange")||g.inputs?(t.extend(g,{inputs:g.inputs||e.find("input").toArray()}),n=new c(this,g)):n=new d(this,g),e.data("datepicker",n)}"string"==typeof i&&"function"==typeof n[i]&&(s=n[i].apply(n,a))}),s===e||s instanceof d||s instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return s};t.fn.datepicker=p;var f=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,dateCells:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"}},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=d;var m=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},D={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(i,s,n,o){function r(t,e){return!0===e&&(e=10),t<100&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}function h(){var t=this.slice(0,l[p].length),e=l[p].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(!i)return e;if(i instanceof Date)return i;if("string"==typeof s&&(s=D.parseFormat(s)),s.toValue)return s.toValue(i,s,n);var l,c,u,p,f,g={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},v={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(i in v&&(i=v[i]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(i)){for(l=i.match(/([\-+]\d+)([dmwy])/gi),i=new Date,p=0;p<l.length;p++)c=l[p].match(/([\-+]\d+)([dmwy])/i),u=Number(c[1]),f=g[c[2].toLowerCase()],i=d.prototype[f](i,u);return d.prototype._zero_utc_time(i)}l=i&&i.match(this.nonpunctuation)||[];var y,w,k={},_=["yyyy","yy","M","MM","m","mm","d","dd"],b={yyyy:function(t,e){return t.setUTCFullYear(o?r(e,o):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};b.yy=b.yyyy,b.M=b.MM=b.mm=b.m,b.dd=b.d,i=a();var C=s.parts.slice();if(l.length!==C.length&&(C=t(C).filter(function(e,i){return-1!==t.inArray(i,_)}).toArray()),l.length===C.length){var T;for(p=0,T=C.length;p<T;p++){if(y=parseInt(l[p],10),c=C[p],isNaN(y))switch(c){case"MM":w=t(m[n].months).filter(h),y=t.inArray(w[0],m[n].months)+1;break;case"M":w=t(m[n].monthsShort).filter(h),y=t.inArray(w[0],m[n].monthsShort)+1}k[c]=y}var M,U;for(p=0;p<_.length;p++)(U=_[p])in k&&!isNaN(k[U])&&(M=new Date(i),b[U](M,k[U]),isNaN(M)||(i=M))}return i},formatDate:function(e,i,a){if(!e)return"";if("string"==typeof i&&(i=D.parseFormat(i)),i.toDisplay)return i.toDisplay(e,i,a);var s={d:e.getUTCDate(),D:m[a].daysShort[e.getUTCDay()],DD:m[a].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:m[a].monthsShort[e.getUTCMonth()],MM:m[a].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,e=[];for(var n=t.extend([],i.separators),o=0,r=i.parts.length;o<=r;o++)n.length&&e.push(n.shift()),e.push(s[i.parts[o]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">&laquo;</th><th colspan="5" class="datepicker-switch"></th><th class="next">&raquo;</th></tr></thead>',
contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};D.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+D.headTemplate+"<tbody></tbody>"+D.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+D.headTemplate+D.contTemplate+D.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+D.headTemplate+D.contTemplate+D.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+D.headTemplate+D.contTemplate+D.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+D.headTemplate+D.contTemplate+D.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=D,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=u,this},t.fn.datepicker.version="1.7.0-dev",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),p.call(i,"show"))}),t(function(){p.call(t('[data-provide="datepicker-inline"]'))})});
}catch(e){console.log("Module 'bootstrap-datepicker-1.7.0': ",e);}
try{!function(a){a.fn.datepicker.dates.kk={days:["Жексенбі","Дүйсенбі","Сейсенбі","Сәрсенбі","Бейсенбі","Жұма","Сенбі"],daysShort:["Жек","Дүй","Сей","Сәр","Бей","Жұм","Сен"],daysMin:["Жк","Дс","Сс","Ср","Бс","Жм","Сн"],months:["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"],monthsShort:["Қаң","Ақп","Нау","Сәу","Мам","Мау","Шіл","Там","Қыр","Қаз","Қар","Жел"],today:"Бүгін",weekStart:1}}(jQuery);
}catch(e){console.log("Module 'bootstrap-datepicker-1.7.0': ",e);}
try{"use strict";!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(e,require("jquery-utils-1.0.0"),require("bootstrap-datepicker-1.7.0")):"function"==typeof define&&define.amd?define("bootstrap-datepicker",["jquery-utils-1.0.0","bootstrap-datepicker-1.7.0"],function(i){return t(e,i)}):t(e,e.jQuery)}(this,function(e,t,i){e&&t&&t(function(){t(".date-picker").each(function(){t.fn.datepicker&&t(this).datepicker({templates:{leftArrow:'<i class="nc-icon-outline arrows-1_minimal-left"></i>',rightArrow:'<i class="nc-icon-outline arrows-1_minimal-right"></i>'}}).on("show",function(){t(".datepicker").addClass("open");var e=t(this).data("datepicker-color");0!=e.length&&t(".datepicker").addClass("datepicker-"+e)}).on("hide",function(){t(".datepicker").removeClass("open")})})})});
}catch(e){console.log("Module 'bootstrap-datepicker-1.7.0': ",e);}
try{!function(e,i){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(e,require("jquery-utils-1.0.0"),require("swiper-4.0.3"),require("imagesLoaded")):"function"==typeof define&&define.amd?define("bottom-banner-swiper-1.0.0",["jquery-utils-1.0.0","swiper-4.0.3","imagesLoaded"],function(s,n){i(e,s,n)}):i(e,e.jQuery,e.Swiper)}(this,function(e,i,s,n){"use strict";new s(".bottom-banner-swiper .swiper-container",{slidesPerView:6,slidesPerColumn:1,spaceBetween:30,loop:!0,watchSlidesVisibility:!0,preloadImages:!1,lazy:!0,on:{init:function(){i(this.el).addClass("ready")},resize:function(){this.update(!0)},lazyImageReady:function(e,s){s=i(s),s.imagesLoaded({background:!1}).fail(function(e){s.addClass("bottom-banner-error")}).done(function(e){s.addClass("bottom-banner-ready")})}},breakpoints:{480:{slidesPerView:1},576:{slidesPerView:2},768:{slidesPerView:3},992:{slidesPerView:4}}})});
}catch(e){console.log("Module 'bottom-banner-swiper-1.0.0': ",e);}
try{!function(e,i){"use strict";"object"==typeof exports&&"undefined"!=typeof module?module.exports=i(e,require("jquery-utils-1.0.0"),require("swiper-4.0.3"),require("imagesLoaded")):"function"==typeof define&&define.amd?define("book-news-swiper-1.0.0",["jquery-utils-1.0.0","swiper-4.0.3","imagesLoaded"],function(s,o){i(e,s,o)}):i(e,e.jQuery,e.Swiper)}(this,function(e,i,s,o){"use strict";new s(".book-news-swiper .swiper-container",{navigation:{nextEl:".book-news-swiper ~ .book-news-controls .book-news-next",prevEl:".book-news-swiper ~ .book-news-controls .book-news-prev"},slidesPerView:4,slidesPerColumn:1,spaceBetween:30,watchSlidesVisibility:!0,preloadImages:!1,lazy:!0,on:{init:function(e){i(this.el).addClass("ready")},resize:function(){this.update(!0)},lazyImageReady:function(e,s){s=i(s),"none"===s.css("background-image")?s.addClass("swiper-lazy-error"):s.imagesLoaded({background:!0}).fail(function(e){s.addClass("swiper-lazy-error")}).done(function(e){s.addClass("swiper-lazy-ready")})}},breakpoints:{480:{slidesPerView:1},576:{slidesPerView:2},768:{slidesPerView:3}}})});
}catch(e){console.log("Module 'book-news-swiper-1.0.0': ",e);}
try{!function(t){"function"==typeof define&&define.amd?define("sticky.js",["jquery-3.1.1"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery-3.1.1")):t(jQuery)}(function(t){var e=Array.prototype.slice,i=Array.prototype.splice,s={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"is-sticky-space",center:!1,getWidthFrom:"",widthFromWrapper:!1,responsiveWidth:!1,zIndex:"inherit"},r=t(window),n=t(document),o=[],c=r.height(),p=function(){for(var t=r.scrollTop(),e=n.height(),i=e-c,s=t>i?i-t:0,p=0,a=o.length;p<a;p++){var d=o[p],y=d.stickyWrapper?d.stickyWrapper.offset().top:o[p].stickyElement.offset().top,u=y-d.topSpacing-s;if(d.topSpacing<=0&&(d.topSpacing=o.slice(0,p).reduce(function(t,e,i,s){return t+(e.stickyWrapper?e.stickyElement.outerHeight(!0):0)},0)),t<=u)null!==d.currentTop&&(l.removeWrapper(d),d.stickyElement.removeClass(d.className).css({width:"",position:"",top:"","z-index":""}),d.stickyElement.trigger("sticky-end",[d]),d.currentTop=null);else{var m=e-d.stickyElement.outerHeight()-d.topSpacing-d.bottomSpacing-t-s;m<0?m+=d.topSpacing:m=d.topSpacing,d.currentTop!==m&&(l.addWrapper(d),d.stickyElement.addClass(d.className).css("position","fixed").css("top",m),null===d.currentTop?d.stickyElement.trigger("sticky-start",[d]):d.stickyElement.trigger("sticky-update",[d]),d.currentTop===d.topSpacing&&d.currentTop>m||null===d.currentTop&&m<d.topSpacing?d.stickyElement.trigger("sticky-bottom-reached",[d]):null!==d.currentTop&&m===d.topSpacing&&d.currentTop<m&&d.stickyElement.trigger("sticky-bottom-unreached",[d]),d.currentTop=m);var h=d.stickyWrapper.parent();d.stickyElement.offset().top+d.stickyElement.outerHeight()>=h.offset().top+h.outerHeight()&&d.stickyElement.offset().top<=d.topSpacing?(d.stickyElement.removeClass(d.className).css("position","absolute").css("top","").css("bottom",0).css("z-index",""),l.removeWrapper(d)):(l.addWrapper(d),d.stickyElement.addClass(d.className).css("position","fixed").css("top",m).css("bottom",""))}}},a=function(){c=r.height();for(var e=0,i=o.length;e<i;e++){var s=o[e];s.getWidthFrom?s.responsiveWidth&&t(s.getWidthFrom).width():s.widthFromWrapper&&s.stickyWrapper.width()}},l={init:function(e){return this.each(function(){var i=t.extend({},s,e),r=t(this);i.stickyElement=r,i.currentTop=null,o.push(i)})},removeWrapper:function(e){t.isEmptyObject(e.stickyWrapper)||(e.stickyWrapper.remove(),e.stickyWrapper=null)},addWrapper:function(e){t.isEmptyObject(e.stickyWrapper)&&(e.stickyWrapper=t("<div></div>").attr("class",e.stickyElement.attr("class")).addClass(e.wrapperClassName).insertAfter(e.stickyElement),e.center,"right"===e.stickyElement.css("float")&&e.stickyWrapper.css({float:"right"}),"left"===e.stickyElement.css("float")&&e.stickyWrapper.css({float:"left"}),e.stickyWrapper.css({"padding-top":"0px"}),e.stickyWrapper.css({"padding-bottom":"0px"}),e.stickyWrapper.css({"margin-bottom":e.stickyElement.css("margin-bottom")}),e.stickyWrapper.css({display:e.stickyElement.css("display")}),e.stickyWrapper.css({visibility:"hidden"}),e.currentTop=null,l.setWrapperHeight(e),l.setupChangeListeners(e))},setWrapperHeight:function(t){t.stickyWrapper&&t.stickyWrapper.css("height",t.stickyElement.outerHeight())},setupChangeListeners:function(t){if(window.MutationObserver){new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&l.setWrapperHeight(t)}).observe(t.stickyElement[0],{subtree:!0,childList:!0})}else window.addEventListener?(t.stickyElement[0].addEventListener("DOMNodeInserted",function(){l.setWrapperHeight(t)},!1),t.stickyElement[0].addEventListener("DOMNodeRemoved",function(){l.setWrapperHeight(t)},!1)):window.attachEvent&&(t.stickyElement[0].attachEvent("onDOMNodeInserted",function(){l.setWrapperHeight(t)}),t.stickyElement[0].attachEvent("onDOMNodeRemoved",function(){l.setWrapperHeight(t)}))},update:p,unstick:function(e){return this.each(function(){for(var e=this,s=t(e),r=-1,n=o.length;n-- >0;)o[n].stickyElement.get(0)===e&&(i.call(o,n,1),r=n);-1!==r&&(s.unwrap(),s.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",p,!1),window.addEventListener("resize",a,!1)):window.attachEvent&&(window.attachEvent("onscroll",p),window.attachEvent("onresize",a)),t.fn.sticky=function(i){return l[i]?l[i].apply(this,e.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):l.init.apply(this,arguments)},t.fn.unstick=function(i){return l[i]?l[i].apply(this,e.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):l.unstick.apply(this,arguments)},t(function(){setTimeout(p,0)})});
}catch(e){console.log("Module 'sticky-1.0': ",e);}
try{!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(t,require("jquery-3.1.1"),require("moment")):"function"==typeof define&&define.amd?define("air-datepicker",["jquery-3.1.1","moment"],function(i,s){e(t,i,s)}):e(t,t.jQuery,t.moment)}(this,function(t,e,i,s){!function(){var n,a,o,h=!1,r={classes:"",inline:!1,language:"ru",startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"@",toggleSelected:!0,keyboardNav:!0,position:"bottom center",offset:30,view:"days",minView:"days",showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:",",range:!1,todayButton:!1,clearButton:!1,showEvent:"focus",autoClose:!1,monthsField:"monthsShort",prevHtml:"<i class='nc-icon-outline arrows-1_minimal-left'></i>",nextHtml:"<i class='nc-icon-outline arrows-1_minimal-right'></i>",navTitles:{days:"MMMM, <i>YYYY</i>",months:"YYYY",years:"YYYY1 - YYYY2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:"",onShow:"",onHide:"",onChangeMonth:"",onChangeYear:"",onChangeDecade:"",onChangeView:"",onRenderCell:""},c={ctrlRight:[17,39],ctrlUp:[17,38],ctrlLeft:[17,37],ctrlDown:[17,40],shiftRight:[16,39],shiftUp:[16,38],shiftLeft:[16,37],shiftDown:[16,40],altUp:[18,38],altRight:[18,39],altLeft:[18,37],altDown:[18,40],ctrlShiftUp:[16,17,38]},d=function(t,a){this.el=t,this.$el=e(t),this.opts=e.extend(!0,{},r,a,this.$el.data()),n==s&&(n=e("body")),this.currentDate=new Date,this.opts.startDate||(this.opts.startDate=this.currentDate),"INPUT"==this.el.nodeName&&(this.elIsInput=!0),this.opts.altField&&(this.$altField="string"==typeof this.opts.altField?e(this.opts.altField):this.opts.altField),this.inited=!1,this.visible=!1,this.silent=!1,this.currentView=this.opts.view,this._createShortCuts(),this.selectedDates=[],this.views={},this.keys=[],this.minRange="",this.maxRange="",this._prevOnSelectValue="",this._defineLocale(this.opts.language),this.$el.val()&&i(this.$el.val(),this.loc.dateFormat,!0).isValid()&&(this.opts.startDate=i(this.$el.val(),this.loc.dateFormat).toDate()),this.init()};o=d,o.prototype={VERSION:"2.2.3",viewIndexes:["days","months","years"],init:function(){h||this.opts.inline||!this.elIsInput||this._buildDatepickersContainer(),this._buildBaseHtml(),this._syncWithMinMaxDates(),this.elIsInput&&(this.opts.inline||(this._setPositionClasses(this.opts.position),this._bindEvents()),this.opts.keyboardNav&&!this.opts.onlyTimepicker&&this._bindKeyboardEvents(),this.$datepicker.on("mousedown",this._onMouseDownDatepicker.bind(this)),this.$datepicker.on("mouseup",this._onMouseUpDatepicker.bind(this))),this.opts.classes&&this.$datepicker.addClass(this.opts.classes),this.opts.timepicker&&(this.timepicker=new e.fn.dpicker.Timepicker(this,this.opts),this._bindTimepickerEvents()),this.opts.onlyTimepicker&&this.$datepicker.addClass("-only-timepicker-"),this.views[this.currentView]=new e.fn.dpicker.Body(this,this.currentView,this.opts),this.views[this.currentView].show(),this.nav=new e.fn.dpicker.Navigation(this,this.opts),this.view=this.currentView,this.$el.on("clickCell.adp",this._onClickCell.bind(this)),this.$datepicker.on("mouseenter",".dpicker--cell",this._onMouseEnterCell.bind(this)),this.$datepicker.on("mouseleave",".dpicker--cell",this._onMouseLeaveCell.bind(this)),this.inited=!0,this.opts.startDate!==this.currentDate&&this.selectDate(this.opts.startDate),this.$el.closest(".form-group").addClass("is-dpicker"),this.opts.inline&&this.$el.closest(".form-group").addClass("is-dpicker-inline")},_createShortCuts:function(){this.minDate=this.opts.minDate?this.opts.minDate:new Date(-86399999136e5),this.maxDate=this.opts.maxDate?this.opts.maxDate:new Date(86399999136e5)},_bindEvents:function(){this.$el.on(this.opts.showEvent+".adp",this._onShowEvent.bind(this)),this.$el.on("mouseup.adp",this._onMouseUpEl.bind(this)),this.$el.on("blur.adp",this._onBlur.bind(this)),this.$el.on("keyup.adp",this._onKeyUpGeneral.bind(this)),e(t).on("resize.adp",this._onResize.bind(this)),e("body").on("mouseup.adp",this._onMouseUpBody.bind(this))},_bindKeyboardEvents:function(){this.$el.on("keydown.adp",this._onKeyDown.bind(this)),this.$el.on("keyup.adp",this._onKeyUp.bind(this)),this.$el.on("hotKey.adp",this._onHotKey.bind(this))},_bindTimepickerEvents:function(){this.$el.on("timeChange.adp",this._onTimeChange.bind(this))},isWeekend:function(t){return-1!==this.opts.weekends.indexOf(t)},_defineLocale:function(t){"string"==typeof t?(this.loc=e.fn.dpicker.language[t],this.loc||(console.warn("Can't find language \""+t+'" in Datepicker.language, will use "ru" instead'),this.loc=e.extend(!0,{},e.fn.dpicker.language.ru)),this.loc=e.extend(!0,{},e.fn.dpicker.language.ru,e.fn.dpicker.language[t])):this.loc=e.extend(!0,{},e.fn.dpicker.language.ru,t),this.opts.dateFormat&&(this.loc.dateFormat=this.opts.dateFormat),this.opts.timeFormat&&(this.loc.timeFormat=this.opts.timeFormat),""!==this.opts.firstDay&&(this.loc.firstDay=this.opts.firstDay),this.opts.timepicker&&(this.loc.dateFormat=[this.loc.dateFormat,this.loc.timeFormat].join(this.opts.dateTimeSeparator)),this.opts.onlyTimepicker&&(this.loc.dateFormat=this.loc.timeFormat);var i=this._getWordBoundaryRegExp;(this.loc.timeFormat.match(i("aa"))||this.loc.timeFormat.match(i("AA")))&&(this.ampm=!0)},_buildDatepickersContainer:function(){h=!0,n.append('<div class="dpickers-container" id="dpickers-container"></div>'),a=e("#dpickers-container")},_buildBaseHtml:function(){var t,i=e('<div class="dpicker-inline">');t="INPUT"==this.el.nodeName?this.opts.inline?i.insertAfter(this.$el):a:i.appendTo(this.$el),this.$datepicker=e('<div class="dpicker"><i class="dpicker--pointer"></i><nav class="dpicker--nav"></nav><div class="dpicker--content"></div></div>').appendTo(t),this.$content=e(".dpicker--content",this.$datepicker),this.$nav=e(".dpicker--nav",this.$datepicker)},_triggerOnChange:function(){if(!this.selectedDates.length){if(""===this._prevOnSelectValue)return;return this._prevOnSelectValue="",this.opts.onSelect("","",this)}var t,e=this.selectedDates,i=o.getParsedDate(e[0]),s=this,n=new Date(i.year,i.month,i.date,i.hours,i.minutes);t=e.map(function(t){return s.formatDate(s.loc.dateFormat,t)}).join(this.opts.multipleDatesSeparator),(this.opts.multipleDates||this.opts.range)&&(n=e.map(function(t){var e=o.getParsedDate(t);return new Date(e.year,e.month,e.date,e.hours,e.minutes)})),this._prevOnSelectValue=t,this.opts.onSelect(t,n,this)},next:function(){var t=this.parsedDate,e=this.opts;switch(this.view){case"days":this.date=new Date(t.year,t.month+1,1),e.onChangeMonth&&e.onChangeMonth(this.parsedDate.month,this.parsedDate.year);break;case"months":this.date=new Date(t.year+1,t.month,1),e.onChangeYear&&e.onChangeYear(this.parsedDate.year);break;case"years":this.date=new Date(t.year+10,0,1),e.onChangeDecade&&e.onChangeDecade(this.curDecade)}},prev:function(){var t=this.parsedDate,e=this.opts;switch(this.view){case"days":this.date=new Date(t.year,t.month-1,1),e.onChangeMonth&&e.onChangeMonth(this.parsedDate.month,this.parsedDate.year);break;case"months":this.date=new Date(t.year-1,t.month,1),e.onChangeYear&&e.onChangeYear(this.parsedDate.year);break;case"years":this.date=new Date(t.year-10,0,1),e.onChangeDecade&&e.onChangeDecade(this.curDecade)}},formatDate:function(t,e){e=e||this.date;var i,s=t,n=this._getWordBoundaryRegExp,a=this.loc,h=o.getLeadingZeroNum,r=o.getDecade(e),c=o.getParsedDate(e),d=c.fullHours,l=c.hours,u=t.match(n("aa"))||t.match(n("AA")),m="am",p=this._replacer;switch(this.opts.timepicker&&this.timepicker&&u&&(i=this.timepicker._getValidHoursFromDate(e,u),d=h(i.hours),l=i.hours,m=i.dayPeriod),!0){case/@/.test(s):s=s.replace(/@/,e.getTime());case/aa/.test(s):s=p(s,n("aa"),m);case/AA/.test(s):s=p(s,n("AA"),m.toUpperCase());case/DD/.test(s):s=p(s,n("DD"),c.fullDate);case/D/.test(s):s=p(s,n("D"),c.date);case/dd/.test(s):s=p(s,n("dd"),a.days[c.day]);case/d/.test(s):s=p(s,n("d"),a.daysShort[c.day]);case/MMMM/.test(s):s=p(s,n("MMMM"),this.loc.months[c.month]);case/MMM/.test(s):s=p(s,n("MMM"),a.monthsShort[c.month]);case/MM/.test(s):s=p(s,n("MM"),c.fullMonth);case/M/.test(s):s=p(s,n("M"),c.month+1);case/mm/.test(s):s=p(s,n("mm"),c.fullMinutes);case/m/.test(s):s=p(s,n("m"),c.minutes);case/HH/.test(s):s=p(s,n("HH"),d);case/hh/.test(s):s=p(s,n("hh"),l);case/YY/.test(s):s=p(s,n("YYYY"),c.year);case/YYYY1/.test(s):s=p(s,n("YYYY1"),r[0]);case/YYYY2/.test(s):s=p(s,n("YYYY2"),r[1]);case/YY/.test(s):s=p(s,n("YY"),c.year.toString().slice(-2))}return s},_replacer:function(t,e,i){return t.replace(e,function(t,e,s,n){return e+i+n})},_getWordBoundaryRegExp:function(t){var e="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+e+")("+t+")($|<|"+e+")","g")},selectDate:function(t){var e=this,i=e.opts,s=e.parsedDate,n=e.selectedDates,a=n.length,h="";if(Array.isArray(t))return void t.forEach(function(t){e.selectDate(t)});if(t instanceof Date){if(this.lastSelectedDate=t,this.timepicker&&this.timepicker._setTime(t),e._trigger("selectDate",t),this.timepicker&&(t.setHours(this.timepicker.hours),t.setMinutes(this.timepicker.minutes)),"days"==e.view&&t.getMonth()!=s.month&&i.moveToOtherMonthsOnSelect&&(h=new Date(t.getFullYear(),t.getMonth(),1)),"years"==e.view&&t.getFullYear()!=s.year&&i.moveToOtherYearsOnSelect&&(h=new Date(t.getFullYear(),0,1)),h&&(e.silent=!0,e.date=h,e.silent=!1,e.nav._render()),i.multipleDates&&!i.range){if(a===i.multipleDates)return;e._isSelected(t)||e.selectedDates.push(t)}else i.range?2==a?(e.selectedDates=[t],e.minRange=t,e.maxRange=""):1==a?(e.selectedDates.push(t),e.maxRange?e.minRange=t:e.maxRange=t,o.bigger(e.maxRange,e.minRange)&&(e.maxRange=e.minRange,e.minRange=t),e.selectedDates=[e.minRange,e.maxRange]):(e.selectedDates=[t],e.minRange=t):e.selectedDates=[t];e._setInputValue(),i.onSelect&&e._triggerOnChange(),i.autoClose&&!this.timepickerIsActive&&(i.multipleDates||i.range?i.range&&2==e.selectedDates.length&&e.hide():e.hide()),e.views[this.currentView]._render()}},removeDate:function(t){var e=this.selectedDates,i=this;if(t instanceof Date)return e.some(function(s,n){if(o.isSame(s,t))return e.splice(n,1),i.selectedDates.length?i.lastSelectedDate=i.selectedDates[i.selectedDates.length-1]:(i.minRange="",i.maxRange="",i.lastSelectedDate=""),i.views[i.currentView]._render(),i._setInputValue(),i.opts.onSelect&&i._triggerOnChange(),!0})},today:function(){this.silent=!0,this.view=this.opts.minView,this.silent=!1,this.date=new Date,this.date instanceof Date&&this.selectDate(this.date)},clear:function(){this.selectedDates=[],this.minRange="",this.maxRange="",this.views[this.currentView]._render(),this._setInputValue(),this.opts.onSelect&&this._triggerOnChange()},update:function(t,i){var s=arguments.length,n=this.lastSelectedDate;return 2==s?this.opts[t]=i:1==s&&"object"==typeof t&&(this.opts=e.extend(!0,this.opts,t)),this._createShortCuts(),this._syncWithMinMaxDates(),this._defineLocale(this.opts.language),this.nav._addButtonsIfNeed(),this.opts.onlyTimepicker||this.nav._render(),this.views[this.currentView]._render(),this.elIsInput&&!this.opts.inline&&(this._setPositionClasses(this.opts.position),this.visible&&this.setPosition(this.opts.position)),this.opts.classes&&this.$datepicker.addClass(this.opts.classes),this.opts.onlyTimepicker&&this.$datepicker.addClass("-only-timepicker-"),this.opts.timepicker&&(n&&this.timepicker._handleDate(n),this.timepicker._updateRanges(),this.timepicker._updateCurrentTime(),n&&(n.setHours(this.timepicker.hours),n.setMinutes(this.timepicker.minutes))),this._setInputValue(),this},_syncWithMinMaxDates:function(){var t=this.date.getTime();this.silent=!0,this.minTime>t&&(this.date=this.minDate),this.maxTime<t&&(this.date=this.maxDate),this.silent=!1},_isSelected:function(t,e){var i=!1;return this.selectedDates.some(function(s){if(o.isSame(s,t,e))return i=s,!0}),i},_setInputValue:function(){var t,e=this,i=e.opts,s=e.loc.dateFormat,n=i.altFieldDateFormat,a=e.selectedDates.map(function(t){return e.formatDate(s,t)});i.altField&&e.$altField.length&&(t=this.selectedDates.map(function(t){return e.formatDate(n,t)}),t=t.join(this.opts.multipleDatesSeparator),this.$altField.val(t)),a=a.join(this.opts.multipleDatesSeparator),this.$el.val(a),this.$el.trigger("change")},_isInRange:function(t,e){var i=t.getTime(),s=o.getParsedDate(t),n=o.getParsedDate(this.minDate),a=o.getParsedDate(this.maxDate),h=new Date(s.year,s.month,n.date).getTime(),r=new Date(s.year,s.month,a.date).getTime(),c={day:i>=this.minTime&&i<=this.maxTime,month:h>=this.minTime&&r<=this.maxTime,year:s.year>=n.year&&s.year<=a.year};return e?c[e]:c.day},_getDimensions:function(t){var e=t.offset();return{width:t.outerWidth(),height:t.outerHeight(),left:e.left,top:e.top}},_getDateFromCell:function(t){var e=this.parsedDate,i=t.data("year")||e.year,n=t.data("month")==s?e.month:t.data("month"),a=t.data("date")||1;return new Date(i,n,a)},_resetClasses:function(){var t=this;["bottom","top","right","left"].forEach(function(e){t.$datepicker.removeClass("-from-"+e+"-"),["top","center","bottom","left","right"].forEach(function(i){t.$datepicker.removeClass("-"+e+"-"+i+"-")})})},_setPositionClasses:function(t){t=t.split(" ");var e=t[0],i=t[1];this._resetClasses(),this.$datepicker.addClass("-"+e+"-"+i+"-").addClass("-from-"+e+"-"),this.visible&&this.$datepicker.addClass("active")},_checkPosition:function(e){e=(e||this.opts.position).split(" ");var i,s,n=this._getDimensions(this.$el),a=this._getDimensions(this.$datepicker),o=this.opts.offset,h=e[0],r=e[1],c=Math.max(document.documentElement.clientHeight,t.innerHeight),d=Math.max(document.documentElement.clientWidth,t.innerWidth);switch(h){case"top":i=n.top-a.height-o;break;case"right":s=n.left+n.width+o;break;case"bottom":i=n.top+n.height+o;break;case"left":s=n.left-a.width-o}switch(r){case"top":/left|right/.test(h)&&(i=n.top);break;case"right":/top|bottom/.test(h)&&(s=n.left+n.width-a.width);break;case"bottom":/left|right/.test(h)&&(i=n.top+n.height-a.height);break;case"left":/top|bottom/.test(h)&&(s=n.left);break;case"center":/left|right/.test(h)?i=n.top+n.height/2-a.height/2:s=n.left+n.width/2-a.width/2}return i<0||i+a.height>=c+t.scrollY?null:s<0||s+a.width>=d+t.scrollX?null:{left:s,top:i}},setPosition:function(t){var i=this;t=(t||i.opts.position).split(" ");var s,n=t[0],a=t[1];e.isEmptyObject(s=i._checkPosition(n+" "+a))?(/left|right/.test(n)&&!s&&["right","left"].forEach(function(t){["top","center","bottom"].forEach(function(n){!s&&!e.isEmptyObject(s=i._checkPosition(t+" "+n))&&i._setPositionClasses(t+" "+n)})}),!s&&["bottom","top"].forEach(function(t){["center","left","right"].forEach(function(n){!s&&!e.isEmptyObject(s=i._checkPosition(t+" "+n))&&i._setPositionClasses(t+" "+n)})})):i._setPositionClasses(n+" "+a),i.$datepicker.css(s)},show:function(){var t=this.opts.onShow;this.setPosition(this.opts.position),this.$datepicker.addClass("active"),this.visible=!0,this.$el.addClass("dpicker-active").closest(".form-group").addClass("dpicker-active"),t&&this._bindVisionEvents(t)},hide:function(){var t=this.opts.onHide;this.$datepicker.removeClass("active").css({left:"-100000px"}),this.focused="",this.keys=[],this.inFocus=!1,this.visible=!1,this.$el.blur(),this.$el.removeClass("dpicker-active").closest(".form-group").removeClass("dpicker-active"),t&&this._bindVisionEvents(t)},down:function(t){this._changeView(t,"down")},up:function(t){this._changeView(t,"up")},_bindVisionEvents:function(t){this.$datepicker.off("transitionend.dp"),t(this,!1),this.$datepicker.one("transitionend.dp",t.bind(this,this,!0))},_changeView:function(t,e){t=t||this.focused||this.date;var i="up"==e?this.viewIndex+1:this.viewIndex-1;i>2&&(i=2),i<0&&(i=0),this.silent=!0,this.date=new Date(t.getFullYear(),t.getMonth(),1),this.silent=!1,this.view=this.viewIndexes[i]},_handleHotKey:function(t){var e,i,s,n=o.getParsedDate(this._getFocusedDate()),a=this.opts,h=!1,r=!1,c=!1,d=n.year,l=n.month,u=n.date;switch(t){case"ctrlRight":case"ctrlUp":l+=1,h=!0;break;case"ctrlLeft":case"ctrlDown":l-=1,h=!0;break;case"shiftRight":case"shiftUp":r=!0,d+=1;break;case"shiftLeft":case"shiftDown":r=!0,d-=1;break;case"altRight":case"altUp":c=!0,d+=10;break;case"altLeft":case"altDown":c=!0,d-=10;break;case"ctrlShiftUp":this.up()}s=o.getDaysCount(new Date(d,l)),i=new Date(d,l,u),s<u&&(u=s),i.getTime()<this.minTime?i=this.minDate:i.getTime()>this.maxTime&&(i=this.maxDate),this.focused=i,e=o.getParsedDate(i),h&&a.onChangeMonth&&a.onChangeMonth(e.month,e.year),r&&a.onChangeYear&&a.onChangeYear(e.year),c&&a.onChangeDecade&&a.onChangeDecade(this.curDecade)},_registerKey:function(t){this.keys.some(function(e){return e==t})||this.keys.push(t)},_unRegisterKey:function(t){var e=this.keys.indexOf(t);this.keys.splice(e,1)},_isHotKeyPressed:function(){var t,e=!1,i=this,s=this.keys.sort();for(var n in c)t=c[n],s.length==t.length&&t.every(function(t,e){return t==s[e]})&&(i._trigger("hotKey",n),e=!0);return e},_trigger:function(t,e){this.$el.trigger(t,e)},_focusNextCell:function(t,e){e=e||this.cellType;var i=o.getParsedDate(this._getFocusedDate()),s=i.year,n=i.month,a=i.date;if(!this._isHotKeyPressed()){switch(t){case 37:"day"==e&&(a-=1),"month"==e&&(n-=1),"year"==e&&(s-=1);break;case 38:"day"==e&&(a-=7),"month"==e&&(n-=3),"year"==e&&(s-=4);break;case 39:"day"==e&&(a+=1),"month"==e&&(n+=1),"year"==e&&(s+=1);break;case 40:"day"==e&&(a+=7),"month"==e&&(n+=3),"year"==e&&(s+=4)}var h=new Date(s,n,a);h.getTime()<this.minTime?h=this.minDate:h.getTime()>this.maxTime&&(h=this.maxDate),this.focused=h}},_getFocusedDate:function(){var t=this.focused||this.selectedDates[this.selectedDates.length-1],e=this.parsedDate;if(!t)switch(this.view){case"days":t=new Date(e.year,e.month,(new Date).getDate());break;case"months":t=new Date(e.year,e.month,1);break;case"years":t=new Date(e.year,0,1)}return t},_getCell:function(t,i){i=i||this.cellType;var s,n=o.getParsedDate(t),a='.dpicker--cell[data-year="'+n.year+'"]';switch(i){case"month":a='[data-month="'+n.month+'"]';break;case"day":a+='[data-month="'+n.month+'"][data-date="'+n.date+'"]'}return s=this.views[this.currentView].$el.find(a),s.length?s:e("")},destroy:function(){var t=this;t.$el.off(".adp").data("dpicker",""),t.selectedDates=[],t.focused="",t.views={},t.keys=[],t.minRange="",t.maxRange="",t.opts.inline||!t.elIsInput?t.$datepicker.closest(".dpicker-inline").remove():t.$datepicker.remove(),t.$el.closest(".form-group").removeClass("is-dpicker").removeClass("is-dpicker-inline")},_handleAlreadySelectedDates:function(t,e){this.opts.range?this.opts.toggleSelected?this.removeDate(e):2!=this.selectedDates.length&&this._trigger("clickCell",e):this.opts.toggleSelected&&this.removeDate(e),this.opts.toggleSelected||(this.lastSelectedDate=t,this.opts.timepicker&&(this.timepicker._setTime(t),this.timepicker.update()))},_onShowEvent:function(t){this.visible||this.show()},_onBlur:function(){!this.inFocus&&this.visible&&this.hide()},_onMouseDownDatepicker:function(t){this.inFocus=!0},_onMouseUpDatepicker:function(t){this.inFocus=!1,t.originalEvent.inFocus=!0,t.originalEvent.timepickerFocus||this.$el.focus()},_onKeyUpGeneral:function(t){this.$el.val()||this.clear()},_onResize:function(){this.visible&&this.setPosition()},_onMouseUpBody:function(t){t.originalEvent.inFocus||this.visible&&!this.inFocus&&this.hide()},_onMouseUpEl:function(t){t.originalEvent.inFocus=!0,setTimeout(this._onKeyUpGeneral.bind(this),4)},_onKeyDown:function(t){var e=t.which;if(this._registerKey(e),e>=37&&e<=40&&(t.preventDefault(),this._focusNextCell(e)),13==e&&this.focused){if(this._getCell(this.focused).hasClass("-disabled-"))return;if(this.view!=this.opts.minView)this.down();else{var i=this._isSelected(this.focused,this.cellType);if(!i)return this.timepicker&&(this.focused.setHours(this.timepicker.hours),this.focused.setMinutes(this.timepicker.minutes)),void this.selectDate(this.focused);this._handleAlreadySelectedDates(i,this.focused)}}27==e&&this.hide()},_onKeyUp:function(t){var e=t.which;this._unRegisterKey(e)},_onHotKey:function(t,e){this._handleHotKey(e)},_onMouseEnterCell:function(t){var i=e(t.target).closest(".dpicker--cell"),s=this._getDateFromCell(i);this.silent=!0,this.focused&&(this.focused=""),i.addClass("-focus-"),this.focused=s,this.silent=!1,this.opts.range&&1==this.selectedDates.length&&(this.minRange=this.selectedDates[0],this.maxRange="",o.less(this.minRange,this.focused)&&(this.maxRange=this.minRange,this.minRange=""),this.views[this.currentView]._update())},_onMouseLeaveCell:function(t){e(t.target).closest(".dpicker--cell").removeClass("-focus-"),this.silent=!0,this.focused="",this.silent=!1},_onTimeChange:function(t,e,i){var s=new Date,n=this.selectedDates,a=!1;n.length&&(a=!0,s=this.lastSelectedDate),s.setHours(e),s.setMinutes(i),a||this._getCell(s).hasClass("-disabled-")?(this._setInputValue(),this.opts.onSelect&&this._triggerOnChange()):this.selectDate(s)},_onClickCell:function(t,e){this.timepicker&&(e.setHours(this.timepicker.hours),e.setMinutes(this.timepicker.minutes)),this.selectDate(e)},set focused(t){if(!t&&this.focused){var e=this._getCell(this.focused);e.length&&e.removeClass("-focus-")}this._focused=t,this.opts.range&&1==this.selectedDates.length&&(this.minRange=this.selectedDates[0],this.maxRange="",o.less(this.minRange,this._focused)&&(this.maxRange=this.minRange,this.minRange="")),this.silent||(this.date=t)},get focused(){return this._focused},get parsedDate(){return o.getParsedDate(this.date)},set date(t){if(t instanceof Date)return this.currentDate=t,this.inited&&!this.silent&&(this.views[this.view]._render(),this.nav._render(),this.visible&&this.elIsInput&&this.setPosition()),t},get date(){return this.currentDate},set view(t){if(this.viewIndex=this.viewIndexes.indexOf(t),!(this.viewIndex<0))return this.prevView=this.currentView,this.currentView=t,this.inited&&(this.views[t]?this.views[t]._render():this.views[t]=new e.fn.dpicker.Body(this,t,this.opts),this.views[this.prevView].hide(),this.views[t].show(),this.nav._render(),this.opts.onChangeView&&this.opts.onChangeView(t),this.elIsInput&&this.visible&&this.setPosition()),t},get view(){return this.currentView},get cellType(){return this.view.substring(0,this.view.length-1)},get minTime(){var t=o.getParsedDate(this.minDate);return new Date(t.year,t.month,t.date).getTime()},get maxTime(){var t=o.getParsedDate(this.maxDate);return new Date(t.year,t.month,t.date).getTime()},get curDecade(){return o.getDecade(this.date)}},o.getDaysCount=function(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()},o.getParsedDate=function(t){return{year:t.getFullYear(),month:t.getMonth(),fullMonth:t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,date:t.getDate(),fullDate:t.getDate()<10?"0"+t.getDate():t.getDate(),day:t.getDay(),hours:t.getHours(),fullHours:t.getHours()<10?"0"+t.getHours():t.getHours(),minutes:t.getMinutes(),fullMinutes:t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes()}},o.getDecade=function(t){var e=10*Math.floor(t.getFullYear()/10);return[e,e+9]},o.template=function(t,e){return t.replace(/#\{([\w]+)\}/g,function(t,i){if(e[i]||0===e[i])return e[i]})},o.isSame=function(t,e,i){if(!t||!e)return!1;var s=o.getParsedDate(t),n=o.getParsedDate(e),a=i||"day";return{day:s.date==n.date&&s.month==n.month&&s.year==n.year,month:s.month==n.month&&s.year==n.year,year:s.year==n.year}[a]},o.less=function(t,e,i){return!(!t||!e)&&e.getTime()<t.getTime()},o.bigger=function(t,e,i){return!(!t||!e)&&e.getTime()>t.getTime()},o.getLeadingZeroNum=function(t){return parseInt(t)<10?"0"+t:t},o.resetTime=function(t){if("object"==typeof t)return t=o.getParsedDate(t),new Date(t.year,t.month,t.date)},e.fn.dpicker=function(t){return this.each(function(){if(e.data(this,"dpicker")){var i=e.data(this,"dpicker");i.opts=e.extend(!0,i.opts,t),i.update()}else e.data(this,"dpicker",new d(this,t))})},e.fn.dpicker.Constructor=d,e.fn.dpicker.language={ru:{days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],daysShort:["Вос","Пон","Вто","Сре","Чет","Пят","Суб"],daysMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthsShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],today:"Сегодня",clear:"Очистить",dateFormat:"DD.MM.YYYY",timeFormat:"HH:mm",firstDay:1}},e(function(){e("input:text.dpicker").dpicker()})}(),function(){var t={days:'<div class="dpicker--days dpicker--body"><div class="dpicker--days-names"></div><div class="dpicker--cells dpicker--cells-days"></div></div>',months:'<div class="dpicker--months dpicker--body"><div class="dpicker--cells dpicker--cells-months"></div></div>',years:'<div class="dpicker--years dpicker--body"><div class="dpicker--cells dpicker--cells-years"></div></div>'},i=e.fn.dpicker,n=i.Constructor;i.Body=function(t,i,s){this.d=t,this.type=i,this.opts=s,this.$el=e(""),this.opts.onlyTimepicker||this.init()},i.Body.prototype={init:function(){this._buildBaseHtml(),this._render(),this._bindEvents()},_bindEvents:function(){this.$el.on("click",".dpicker--cell",e.proxy(this._onClickCell,this))},_buildBaseHtml:function(){this.$el=e(t[this.type]).appendTo(this.d.$content),this.$names=e(".dpicker--days-names",this.$el),this.$cells=e(".dpicker--cells",this.$el)},_getDayNamesHtml:function(t,e,i,n){return e=e!=s?e:t,i=i||"",(n=n!=s?n:0)>7?i:7==e?this._getDayNamesHtml(t,0,i,++n):(i+='<div class="dpicker--day-name'+(this.d.isWeekend(e)?" -weekend-":"")+'">'+this.d.loc.daysMin[e]+"</div>",this._getDayNamesHtml(t,++e,i,++n))},_getCellContents:function(t,e){var i="dpicker--cell dpicker--cell-"+e,s=new Date,a=this.d,o=n.resetTime(a.minRange),h=n.resetTime(a.maxRange),r=a.opts,c=n.getParsedDate(t),d={},l=c.date;switch(e){case"day":a.isWeekend(c.day)&&(i+=" -weekend-"),c.month!=this.d.parsedDate.month&&(i+=" -other-month-",r.selectOtherMonths||(i+=" -disabled-"),r.showOtherMonths||(l=""));break;case"month":l=a.loc[a.opts.monthsField][c.month];break;case"year":var u=a.curDecade;l=c.year,(c.year<u[0]||c.year>u[1])&&(i+=" -other-decade-",r.selectOtherYears||(i+=" -disabled-"),r.showOtherYears||(l=""))}return r.onRenderCell&&(d=r.onRenderCell(t,e)||{},l=d.html?d.html:l,i+=d.classes?" "+d.classes:""),r.range&&(n.isSame(o,t,e)&&(i+=" -range-from-"),n.isSame(h,t,e)&&(i+=" -range-to-"),1==a.selectedDates.length&&a.focused?((n.bigger(o,t)&&n.less(a.focused,t)||n.less(h,t)&&n.bigger(a.focused,t))&&(i+=" -in-range-"),n.less(h,t)&&n.isSame(a.focused,t)&&(i+=" -range-from-"),n.bigger(o,t)&&n.isSame(a.focused,t)&&(i+=" -range-to-")):2==a.selectedDates.length&&n.bigger(o,t)&&n.less(h,t)&&(i+=" -in-range-")),n.isSame(s,t,e)&&(i+=" -current-"),a.focused&&n.isSame(t,a.focused,e)&&(i+=" -focus-"),a._isSelected(t,e)&&(i+=" -selected-"),a._isInRange(t,e)&&!d.disabled||(i+=" -disabled-"),{html:l,classes:i}},_getDaysHtml:function(t){var e=n.getDaysCount(t),i=new Date(t.getFullYear(),t.getMonth(),1).getDay(),s=new Date(t.getFullYear(),t.getMonth(),e).getDay(),a=i-this.d.loc.firstDay,o=6-s+this.d.loc.firstDay;a=a<0?a+7:a,o=o>6?o-7:o;for(var h,r,c=1-a,d="",l=c,u=e+o;l<=u;l++)r=t.getFullYear(),h=t.getMonth(),d+=this._getDayHtml(new Date(r,h,l));return d},_getDayHtml:function(t){var e=this._getCellContents(t,"day");return'<div class="'+e.classes+'" data-date="'+t.getDate()+'" data-month="'+t.getMonth()+'" data-year="'+t.getFullYear()+'">'+e.html+"</div>"},_getMonthsHtml:function(t){for(var e="",i=n.getParsedDate(t),s=0;s<12;)e+=this._getMonthHtml(new Date(i.year,s)),s++;return e},_getMonthHtml:function(t){var e=this._getCellContents(t,"month");return'<div class="'+e.classes+'" data-month="'+t.getMonth()+'">'+e.html+"</div>"},_getYearsHtml:function(t){var e=(n.getParsedDate(t),n.getDecade(t)),i=e[0]-1,s="",a=i;for(a;a<=e[1]+1;a++)s+=this._getYearHtml(new Date(a,0));return s},_getYearHtml:function(t){var e=this._getCellContents(t,"year");return'<div class="'+e.classes+'" data-year="'+t.getFullYear()+'">'+e.html+"</div>"},_renderTypes:{days:function(){var t=this._getDayNamesHtml(this.d.loc.firstDay),e=this._getDaysHtml(this.d.currentDate);this.$cells.html(e),this.$names.html(t)},months:function(){var t=this._getMonthsHtml(this.d.currentDate);this.$cells.html(t)},years:function(){var t=this._getYearsHtml(this.d.currentDate);this.$cells.html(t)}},_render:function(){this.opts.onlyTimepicker||this._renderTypes[this.type].bind(this)()},_update:function(){var t,i,s,n=e(".dpicker--cell",this.$cells),a=this;n.each(function(n,o){i=e(this),s=a.d._getDateFromCell(e(this)),t=a._getCellContents(s,a.d.cellType),i.attr("class",t.classes)})},show:function(){this.opts.onlyTimepicker||(this.$el.addClass("active"),this.acitve=!0)},hide:function(){this.$el.removeClass("active"),this.active=!1},_handleClick:function(t){var e=t.data("date")||1,i=t.data("month")||0,s=t.data("year")||this.d.parsedDate.year,n=this.d;if(n.view!=this.opts.minView)return void n.down(new Date(s,i,e));var a=new Date(s,i,e),o=this.d._isSelected(a,this.d.cellType);if(!o)return void n._trigger("clickCell",a);n._handleAlreadySelectedDates.bind(n,o,a)()},_onClickCell:function(t){var i=e(t.target).closest(".dpicker--cell");i.hasClass("-disabled-")||this._handleClick.bind(this)(i)}}}(),function(){var t=e.fn.dpicker,i=t.Constructor;t.Navigation=function(t,e){this.d=t,this.opts=e,this.$buttonsContainer="",this.init()},t.Navigation.prototype={init:function(){this._buildBaseHtml(),this._bindEvents()},_bindEvents:function(){this.d.$nav.on("click",".dpicker--nav-action",e.proxy(this._onClickNavButton,this)),this.d.$nav.on("click",".dpicker--nav-title",e.proxy(this._onClickNavTitle,this)),this.d.$datepicker.on("click",".dpicker--button",e.proxy(this._onClickNavButton,this))},_buildBaseHtml:function(){this.opts.onlyTimepicker||this._render(),this._addButtonsIfNeed()},_addButtonsIfNeed:function(){this.opts.todayButton&&this._addButton("today"),this.opts.clearButton&&this._addButton("clear")},_render:function(){var t=this._getTitle(this.d.currentDate),s=i.template('<div class="dpicker--nav-action" data-action="prev">#{prevHtml}</div><div class="dpicker--nav-title">#{title}</div><div class="dpicker--nav-action" data-action="next">#{nextHtml}</div>',e.extend({title:t},this.opts));this.d.$nav.html(s),"years"==this.d.view&&e(".dpicker--nav-title",this.d.$nav).addClass("-disabled-"),this.setNavStatus()},_getTitle:function(t){return this.d.formatDate(this.opts.navTitles[this.d.view],t)},_addButton:function(t){this.$buttonsContainer.length||this._addButtonsContainer();var s={action:t,label:this.d.loc[t]},n=i.template('<span class="dpicker--button" data-action="#{action}">#{label}</span>',s);e("[data-action="+t+"]",this.$buttonsContainer).length||this.$buttonsContainer.append(n)},_addButtonsContainer:function(){this.d.$datepicker.append('<div class="dpicker--buttons"></div>'),this.$buttonsContainer=e(".dpicker--buttons",this.d.$datepicker)},setNavStatus:function(){if((this.opts.minDate||this.opts.maxDate)&&this.opts.disableNavWhenOutOfRange){var t=this.d.parsedDate,e=t.month,s=t.year,n=t.date;switch(this.d.view){case"days":this.d._isInRange(new Date(s,e-1,1),"month")||this._disableNav("prev"),this.d._isInRange(new Date(s,e+1,1),"month")||this._disableNav("next");break;case"months":this.d._isInRange(new Date(s-1,e,n),"year")||this._disableNav("prev"),this.d._isInRange(new Date(s+1,e,n),"year")||this._disableNav("next");break;case"years":var a=i.getDecade(this.d.date);this.d._isInRange(new Date(a[0]-1,0,1),"year")||this._disableNav("prev"),this.d._isInRange(new Date(a[1]+1,0,1),"year")||this._disableNav("next")}}},_disableNav:function(t){e('[data-action="'+t+'"]',this.d.$nav).addClass("-disabled-")},_activateNav:function(t){e('[data-action="'+t+'"]',this.d.$nav).removeClass("-disabled-")},_onClickNavButton:function(t){var i=e(t.target).closest("[data-action]"),s=i.data("action");this.d[s]()},_onClickNavTitle:function(t){
if(!e(t.target).hasClass("-disabled-"))return"days"==this.d.view?this.d.view="months":void(this.d.view="years")}}}(),function(){var t=e.fn.dpicker,i=t.Constructor;t.Timepicker=function(t,e){this.d=t,this.opts=e,this.init()},t.Timepicker.prototype={init:function(){var t="input";this._setTime(this.d.date),this._buildHTML(),navigator.userAgent.match(/trident/gi)&&(t="change"),this.d.$el.on("selectDate",this._onSelectDate.bind(this)),this.$ranges.on(t,this._onChangeRange.bind(this)),this.$ranges.on("mouseup",this._onMouseUpRange.bind(this)),this.$ranges.on("mousemove focus ",this._onMouseEnterRange.bind(this)),this.$ranges.on("mouseout blur",this._onMouseOutRange.bind(this))},_setTime:function(t){var e=i.getParsedDate(t);this._handleDate(t),this.hours=e.hours<this.minHours?this.minHours:e.hours,this.minutes=e.minutes<this.minMinutes?this.minMinutes:e.minutes},_setMinTimeFromDate:function(t){this.minHours=t.getHours(),this.minMinutes=t.getMinutes(),this.d.lastSelectedDate&&this.d.lastSelectedDate.getHours()>t.getHours()&&(this.minMinutes=this.opts.minMinutes)},_setMaxTimeFromDate:function(t){this.maxHours=t.getHours(),this.maxMinutes=t.getMinutes(),this.d.lastSelectedDate&&this.d.lastSelectedDate.getHours()<t.getHours()&&(this.maxMinutes=this.opts.maxMinutes)},_setDefaultMinMaxTime:function(){var t=this.opts;this.minHours=t.minHours<0||t.minHours>23?0:t.minHours,this.minMinutes=t.minMinutes<0||t.minMinutes>59?0:t.minMinutes,this.maxHours=t.maxHours<0||t.maxHours>23?23:t.maxHours,this.maxMinutes=t.maxMinutes<0||t.maxMinutes>59?59:t.maxMinutes},_validateHoursMinutes:function(t){this.hours<this.minHours?this.hours=this.minHours:this.hours>this.maxHours&&(this.hours=this.maxHours),this.minutes<this.minMinutes?this.minutes=this.minMinutes:this.minutes>this.maxMinutes&&(this.minutes=this.maxMinutes)},_buildHTML:function(){var t=i.getLeadingZeroNum,s={hourMin:this.minHours,hourMax:t(this.maxHours),hourStep:this.opts.hoursStep,hourValue:this.hours,hourVisible:t(this.displayHours),minMin:this.minMinutes,minMax:t(this.maxMinutes),minStep:this.opts.minutesStep,minValue:t(this.minutes)},n=i.template('<div class="dpicker--time"><div class="dpicker--time-current">   <span class="dpicker--time-current-hours">#{hourVisible}</span>   <span class="dpicker--time-current-colon">:</span>   <span class="dpicker--time-current-minutes">#{minValue}</span></div><div class="dpicker--time-sliders">   <div class="dpicker--time-row">      <input type="range" name="hours" value="#{hourValue}" min="#{hourMin}" max="#{hourMax}" step="#{hourStep}"/>   </div>   <div class="dpicker--time-row">      <input type="range" name="minutes" value="#{minValue}" min="#{minMin}" max="#{minMax}" step="#{minStep}"/>   </div></div></div>',s);this.$timepicker=e(n).appendTo(this.d.$datepicker),this.$ranges=e('[type="range"]',this.$timepicker),this.$hours=e('[name="hours"]',this.$timepicker),this.$minutes=e('[name="minutes"]',this.$timepicker),this.$hoursText=e(".dpicker--time-current-hours",this.$timepicker),this.$minutesText=e(".dpicker--time-current-minutes",this.$timepicker),this.d.ampm&&(this.$ampm=e('<span class="dpicker--time-current-ampm">').appendTo(e(".dpicker--time-current",this.$timepicker)).html(this.dayPeriod),this.$timepicker.addClass("-am-pm-"))},_updateCurrentTime:function(){var t=i.getLeadingZeroNum(this.displayHours),e=i.getLeadingZeroNum(this.minutes);this.$hoursText.html(t),this.$minutesText.html(e),this.d.ampm&&this.$ampm.html(this.dayPeriod)},_updateRanges:function(){this.$hours.attr({min:this.minHours,max:this.maxHours}).val(this.hours),this.$minutes.attr({min:this.minMinutes,max:this.maxMinutes}).val(this.minutes)},_handleDate:function(t){this._setDefaultMinMaxTime(),t&&(i.isSame(t,this.d.opts.minDate)?this._setMinTimeFromDate(this.d.opts.minDate):i.isSame(t,this.d.opts.maxDate)&&this._setMaxTimeFromDate(this.d.opts.maxDate)),this._validateHoursMinutes(t)},update:function(){this._updateRanges(),this._updateCurrentTime()},_getValidHoursFromDate:function(t,e){var s=t,n=t;t instanceof Date&&(s=i.getParsedDate(t),n=s.hours);var a=e||this.d.ampm,o="am";if(a)switch(!0){case 0==n:n=12;break;case 12==n:o="pm";break;case n>11:n-=12,o="pm"}return{hours:n,dayPeriod:o}},set hours(t){this._hours=t;var e=this._getValidHoursFromDate(t);this.displayHours=e.hours,this.dayPeriod=e.dayPeriod},get hours(){return this._hours},_onChangeRange:function(t){var i=e(t.target),s=i.attr("name");this.d.timepickerIsActive=!0,this[s]=i.val(),this._updateCurrentTime(),this.d._trigger("timeChange",[this.hours,this.minutes]),this._handleDate(this.d.lastSelectedDate),this.update()},_onSelectDate:function(t,e){this._handleDate(e),this.update()},_onMouseEnterRange:function(t){var i=e(t.target).attr("name");e(".dpicker--time-current-"+i,this.$timepicker).addClass("-focus-")},_onMouseOutRange:function(t){var i=e(t.target).attr("name");this.d.inFocus||e(".dpicker--time-current-"+i,this.$timepicker).removeClass("-focus-")},_onMouseUpRange:function(t){this.d.timepickerIsActive=!1}}}()});
}catch(e){console.log("Module 'air-datepicker-2.2.3': ",e);}
try{"use strict";function is_mobile(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}is_mobile(),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(t,require("jquery-utils-1.0.0")):"function"==typeof define&&define.amd?define("ui-1.0.0",["jquery-utils-1.0.0"],function(s){return e(t,s)}):e(t,t.jQuery)}(this,function(t,e,s){t&&e&&(e.expr[":"].notmdproc=function(t){var s=e(t);return!s.data("mdproc")||(s.filter("select, :input").not(":checkbox, :radio, :button, :reset, :submit, :disabled, [readonly], :hidden").each(function(){e(this).trigger("change")}),!1)},e.ui={options:{validate:!0,input:!0,form:!0,ripples:!0,checkbox:!0,togglebutton:!0,radio:!0,arrive:!0,autofill:!0,withRipples:[".btn:not(.btn-link):not(.badges):not(.no-ripple)",".card-image:not(.no-ripple)",".navbar .nav-link:not(.no-ripple)",".withripple",".pagination li:not(.active):not(.disabled) a:not(.no-ripple)",".dpicker .dpicker--button:not(.no-ripple)",".theme-login a:not(.no-ripple)",".carousel .carousel-control:not(.no-ripple)"].join(","),formElements:"form",inputElements:"input.form-control:not(.no-ui), textarea.form-control:not(.no-ui), select.form-control:not(.no-ui), button.form-control:not(.no-ui)",checkboxElements:".checkbox > label > input[type=checkbox], label.checkbox-inline > input[type=checkbox]",togglebuttonElements:".togglebutton > label > input[type=checkbox]",radioElements:".radio > label > input[type=radio], label.radio-inline > input[type=radio]"},checkbox:function(t){l(e(t||this.options.checkboxElements).filter(":notmdproc").data("mdproc",!0).after("<span class='checkbox-material'><span class='check'></span></span>"))},togglebutton:function(t){l(e(t||this.options.togglebuttonElements).filter(":notmdproc").data("mdproc",!0).after("<span class='toggle'></span>"))},radio:function(t){l(e(t||this.options.radioElements).filter(":notmdproc").data("mdproc",!0).after("<span class='circle'></span><span class='check'></span>"))},form:function(t){e(t||this.options.formElements).filter("form").filter(":notmdproc").data("mdproc",!0).each(function(){e(this).attr("novalidate",!0)})},input:function(t){var s=this;e(t||s.options.inputElements).filter(":notmdproc").data("mdproc",!0).each(function(){var t=this,o=e(this);!o.hasClass("form-control")&&o.addClass("form-control");var i=o.closest(".form-group");0!==i.length||"hidden"===o.attr("type")||o.attr("hidden")||(o.wrap("<div class='form-group'></div>"),i=o.closest(".form-group")),o.attr("data-hint")&&(o.after("<p class='help-block'>"+o.attr("data-hint")+"</p>"),o.removeAttr("data-hint"));e.each({"input-lg":"form-group-lg","input-sm":"form-group-sm"},function(t,e){o.hasClass(t)&&(o.removeClass(t),i.addClass(e))}),i.toggleClass("is-readonly",o.is("[readonly]")),i.toggleClass("is-disabled",o.is("[disabled]")),["text","textarea","url","password","search","email","tel","number","datetime","date","datetime-local","month","week","time","color","range","image"].indexOf(o[0].type||o[0].tagName.toLocaleLowerCase())>=0&&i.addClass("is-key-controls"),["date","datetime-local","month","week","time","color","range","image"].indexOf(o[0].type||o[0].tagName.toLocaleLowerCase())>=0&&i.addClass("is-not-regular"),["file","select","select-one","select-multiple","checkbox","radio"].indexOf(o[0].type||o[0].tagName.toLocaleLowerCase())>=0&&i.addClass("is-select-controls"),["file","button","reset","submit"].indexOf(o[0].type||o[0].tagName.toLocaleLowerCase())>=0&&i.addClass("is-button-controls"),e.isEmpty(o[0].type)||i.addClass("is-"+o[0].type);var a=o.siblings("label").first(),n=o.siblings(".input-controls").first(),l=o.siblings(".input-state-controls").first(),r=o.attr("placeholder")||"",c=o.attr("id")||e.uuid(32);a.length<=0&&(e.isEmpty(r)?i.hasClass("is-button-controls")&&!e.isEmpty(o.text())?a=e("<label><span>"+o.text()+"</span></label>").insertAfter(o):(a=e("<label></label>").insertAfter(o),i.addClass("is-plane-control")):a=e("<label><span>"+r+"</span></label>").insertAfter(o)),o.prop("id",c),a.prop("for",c),l.length<=0&&(!i.hasClass("is-key-controls")||i.hasClass("is-color")||i.hasClass("is-range")||i.hasClass("is-image")||(l=n.length>0?e('<div class="input-controls input-state-controls"></div>').insertBefore(n):e('<div class="input-controls input-state-controls"></div>').appendTo(i))),l.length>0&&(l.find(".state-disabled").length<=0&&e('<a href="javascript:;" tabindex="-1" class="state-disabled nc-icon-outline ui-1_lock"></a>').prependTo(l),i.hasClass("is-select-one")||i.hasClass("is-select-multiple")||l.find(".state-clear").length<=0&&e('<a href="javascript:;" tabindex="-1" class="state-clear nc-icon-outline ui-1_simple-remove"></a>').prependTo(l).click(function(e){o.is(":file")&&(t.value="",t.type="",t.type="file"),o.val("").trigger("change").focus()})),o.is(":checkbox")||o.is(":radio")?(o.is(":checked")?i.removeClass("is-not-checked").addClass("is-checked"):i.addClass("is-not-checked").removeClass("is-checked"),i.addClass("label-floating"),a.addClass("control-label")):o.is(":file")?(a.addClass("btn"),t.files.length>=0?i.addClass("is-empty"):i.addClass("is-not-empty")):o.is(":reset")||o.is(":submit")||o.is(":button")?a.addClass("btn"):(e.isEmpty(o.val())?i.addClass("is-empty"):i.addClass("is-not-empty"),i.hasClass("no-floating")||(o.attr("placeholder",null),i.hasClass("label-placeholder")||i.addClass("label-floating"),a.addClass("control-label"))),!i.hasClass("is-key-controls")||i.hasClass("is-color")||i.hasClass("is-range")||i.hasClass("is-image")||i.hasClass("is-disabled")||!e.isEmpty(o.data("Parsley"))?(i.hasClass("is-select-controls")||i.hasClass("is-color")||i.hasClass("is-range"))&&e.isEmpty(o.data("Parsley")&&!i.hasClass("is-disabled"))&&(o.attr("data-parsley-trigger","change"),i.hasClass("has-validate")&&o.parsley()):(o.attr("data-parsley-trigger","keyup"),i.hasClass("has-validate")&&o.parsley()),i.hasClass("is-button-controls")&&!i.hasClass("is-disabled")&&s.ripples(a),o.hasClass("selectpicker")||i.addClass("has-render").closest(".input-group").addClass("has-render")})},attachInputEventHandlers:function(){var t=this,s=function(t){var s=e(this);(void 0===(o=t).which||"number"==typeof o.which&&o.which>0&&!o.ctrlKey&&!o.metaKey&&!o.altKey&&8!=o.which&&9!=o.which&&13!=o.which&&16!=o.which&&17!=o.which&&20!=o.which&&27!=o.which)&&s.is(":not(:checkbox)")&&s.is(":not(:radio)")&&s.closest(".form-group").removeClass("is-empty").addClass("is-not-empty");var o},l=function(){var s=this,o=e(this);if(!(o.is(":button")||o.is(":reset")||o.is(":submit"))){var i=o.closest(".form-group");i.toggleClass("is-readonly",o.is("[readonly]")),i.toggleClass("is-disabled",o.is("[disabled]"));o.siblings("label").first().attr("data-content",null);o.is(":not(:checkbox)")&&o.is(":not(:radio)")&&(o.is(":file")?s.files.length>=0?i.addClass("is-empty"):i.addClass("is-not-empty"):e.isEmpty(o.val())?i.addClass("is-empty").removeClass("is-not-empty"):i.removeClass("is-empty").addClass("is-not-empty")),o.is(":radio")?e("input:radio[name="+e.escapeSelector(o.attr("name"))+"]").each(function(t,s){e(s).closest(".form-group").removeClass("has-success").removeClass("has-info").removeClass("has-danger").removeClass("has-warning")}):i.removeClass("has-success").removeClass("has-info").removeClass("has-danger").removeClass("has-warning").removeClass("has-loading"),t.options.validate&&i.hasClass("has-validate")&&!i.hasClass("is-disabled")&&e.when(a(s)).done(function(){n(s,!0)}).fail(function(){n(s,!1)}).always(function(){n(s)})}},r=function(){o.call(t,this)},c=function(){i.call(t,this)},d=function(){(function(t){e(t).closest(".form-group").addClass("has-over")}).call(t,this)},p=function(){(function(t){var s=e(t).closest(".form-group");setTimeout(function(){s.removeClass("has-over")},800)}).call(t,this)},u=function(){var s=e(this);if(!(s.is(":button")||s.is(":reset")||s.is(":submit")||s.is(":file"))){var o=s.closest(".form-group");o.toggleClass("is-readonly",s.is("[readonly]")),o.toggleClass("is-disabled",s.is("[disabled]"));var i=s.val();s.is(":checkbox")||s.is(":radio")?(s.is(":radio")&&e("input:radio[name="+e.escapeSelector(s.attr("name"))+"][id!="+e.escapeSelector(s.attr("id"))+"]").each(function(t,o){o.outerHTML!==s[0].outerHTML&&e(o).closest(".form-group").removeClass("is-checked").addClass("is-not-checked")}),s.is(":checkbox")&&document.querySelectorAll("[id="+e.escapeSelector(s.attr("id"))+"]").forEach(function(t){e(t).prop("checked",s.is(":checked")).closest(".form-group").toggleClass("is-not-checked",!s.is(":checked")).toggleClass("is-checked",s.is(":checked"))})):s.is(":not(:checkbox)")&&s.is(":not(:radio)")&&(e.isEmpty(i)?o.addClass("is-empty").removeClass("is-not-empty"):o.removeClass("is-empty").addClass("is-not-empty")),t.options.validate&&o.hasClass("has-validate")&&!o.hasClass("is-disabled")&&e.when(a(s)).done(function(){n(s,!0)}).fail(function(){n(s,!1)}).always(function(){n(s)})}},f=function(){var t=e(this).closest(".form-group"),s="";e.each(this.files,function(t,e){s+=e.name+", "}),(s=s.substring(0,s.length-2))?t.removeClass("is-empty").addClass("is-not-empty"):t.addClass("is-empty").removeClass("is-not-empty"),t.find("input.form-control[readonly]").val(s)},h=function(s){var o=e(this);if(o.is(":submit")){s.preventDefault();var i=t.options.validate?o.closest("form").find("select, :input").filter(".has-validate .form-control").not(":button, :reset, :submit, :disabled, :hidden").map(function(t,s){return e.when(a(s)).done(function(){n(s,!0)}).fail(function(){n(s,!1)}).always(function(){n(s)})}):e.Deferred();e.when.apply(e,i).done(function(){o.closest("form").submit()}).fail(function(){o.closest("form").find(".has-error").first().find(".form-control").focus()})}};e(document).once("keydown paste","input.form-control, textarea.form-control",s).once("keyup change","input.form-control, textarea.form-control",l).once("focus","input.form-control, textarea.form-control, select.form-control",r).once("blur","input.form-control, textarea.form-control, select.form-control",c).once("mouseenter","input.form-control, textarea.form-control, select.form-control, .form-group label",d).once("mouseleave","input.form-control, textarea.form-control, select.form-control, .form-group label",p).once("change","input.form-control, textarea.form-control, select.form-control",u).once("change",".form-group.is-file .form-control[type='file']",f).once("click",":submit",h)},ripples:function(t){e(t||this.options.withRipples).each(function(t,s){!(["text","textarea","url","password","search","email","tel","number","datetime","date","datetime-local","month","week","time","color","range","image","select","select-one","select-multiple","checkbox","radio"].indexOf(s.type||s.tagName.toLocaleLowerCase())>=0)&&e(s).ripples()})},autofill:function(t){e(t||".form-control").filter(":input").not("select, :checkbox, :radio, :button, :reset, :submit, :disabled, :hidden, :file").each(function(t,s){var o=e(this),i=setInterval(function(){o.hasClass("is-focused")?clearInterval(i):o.is(":-webkit-autofill")?o.closest(".form-group").removeClass("is-empty").addClass("is-not-empty"):o.val()!==o.attr("value")&&o.val().trim().length>0&&o.trigger("change")},100);setTimeout(function(){clearInterval(i)},1e4)})},attachAutofillEventHandlers:function(){var t=[];e(document).off("focus","input.form-control").on("focus","input.form-control",function(){var s=e(this).not("select, :checkbox, :radio, :button, :reset, :submit, :disabled, :hidden, :file");t.push(setInterval(function(){s.each(function(){var t=e(this);(t.val()!==t.attr("value")||t.is(":-webkit-autofill"))&&t.trigger("change")})},100))}).off("blur",".form-group input.form-control").on("blur",".form-group input.form-control",function(){clearInterval(t.pop())})},init:function(t,s){this.options=e.extend({},this.options,s);var o=e(document);return e.fn.ripples&&this.options.ripples&&this.ripples(t),this.options.form&&this.form(t),this.options.input&&(this.input(t),this.attachInputEventHandlers(t)),this.options.checkbox&&this.checkbox(t),this.options.togglebutton&&this.togglebutton(t),this.options.radio&&this.radio(t),this.options.autofill&&(this.autofill(),this.attachAutofillEventHandlers()),document.arrive&&this.options.arrive&&(e.fn.ripples&&this.options.ripples&&o.arrive(this.options.withRipples,function(){e.ui.ripples(e(this))}),this.options.form&&o.arrive(this.options.formElements,function(){e.ui.form(e(this))}),this.options.input&&o.arrive(this.options.inputElements,function(){e.ui.input(e(this))}),this.options.checkbox&&o.arrive(this.options.checkboxElements,function(){e.ui.checkbox(e(this))}),this.options.radio&&o.arrive(this.options.radioElements,function(){e.ui.radio(e(this))}),this.options.togglebutton&&o.arrive(this.options.togglebuttonElements,function(){e.ui.togglebutton(e(this))})),t},validate:function(t,s){e.isEmpty(t),s=!!e.isBoolean(s)&&s,t=e.isString(t)?e(t):t;var o=this.options.validate?t.filter("select, :input").not(":button, :reset, :submit, :disabled, :hidden").map(function(t){var s=e(this),o=s.closest(".form-group");e.isEmpty(s.data("Parsley"))&&(o.addClass("has-validate"),s.parsley());var i=a(s[0]);return e.when(i).done(function(){n(s[0],!0)}).fail(function(){n(s[0],!1)}).always(function(){n(s[0])})}):e.Deferred();return s&&t.filter("select, :input").not(":button, :reset, :submit, :disabled, :hidden").filter(function(t){return e(this).closest(".form-group").hasClass("has-error")}).first().first().focus(),e.when.apply(e,o)}},e(function(){e.ui&&e.ui.init()}));function o(t){var s=e(t),o=s.closest(".form-group");s.prop("disabled")||(this.options.validate&&o.hasClass("is-key-controls")&&e.when(a(t)).done(function(){n(t,!0)}).fail(function(){n(t,!1)}).always(function(){n(t)}),o.addClass("is-focused"))}function i(t){e(t).closest(".form-group").removeClass("is-focused")}function a(t){var s=e(t);s.closest(".form-group");return s.data("Parsley")?s.is(":not(:button)")&&s.is(":not(:reset)")&&s.is(":not(:submit)")?s.data("Parsley").whenValidate():void 0:e.Deferred()}function n(t,s){var o=e(t),i=o.closest(".form-group"),a=o.siblings("label").first();if(void 0!==s)s?i.removeClass("has-error").addClass("has-success"):i.removeClass("has-success").addClass("has-error");else if(o.is(":file")){var n=e.extend({captionContainer:" > span",multipleCaption:"{count} files selected"},o.data());e.isEmpty(n.captionContainer)||(o[0].multiple&&o[0].files.length>1?a.find(n.captionContainer).text(n.multipleCaption.replace("{count}",o[0].files.length)):a.find(n.captionContainer).text(o[0].files.length?o[0].files.item(0).name:n.multipleCaption.replace("{count}",0)))}}function l(t){var s=!1;(t.is(e.ui.options.checkboxElements)||t.is(e.ui.options.radioElements))&&(s=!0),t.closest("label").hover(function(){var t=e(this).find("input"),i=t.prop("disabled");s&&(a=e(this),n=i,(a.hasClass("checkbox-inline")||a.hasClass("radio-inline")?a:a.closest(".checkbox").length?a.closest(".checkbox"):a.closest(".radio")).toggleClass("disabled",n));var a,n;i||o(t)},function(){i(e(this).find("input"))})}});
}catch(e){console.log("Module 'nabrk_portal_wp9_theme_4c7c004_Theme': ",e);}
try{(function(_1,_2){
var _3="aria-pressed",_4="selected",_5="true",_6="false",_7=_1.document,_8=i$.addClass,_9=i$.removeClass,_a=wpModules.theme.WindowUtils,_b=_2,_c=function(_d,_e,e){
if(e){
var k=e.keyCode;
if(k&&k!==13&&k!==32&&k!==38&&k!==40){
return false;
}
}
if(typeof wptheme!="undefined"&&wptheme.contextMenu){
var _f=_10(),_11=[];
for(var i=0,l=_f.length;i<l;i++){
_11.push("nm:oid:"+_f[i]);
}
var _12={resURI:"nm:oid:"+_13(_14()),contribURI:_11},_15={"node":_d.parentNode,"menuId":_e,"jsonQuery":_12,"params":{"templateId":"simpleMenuTemplate","alignment":"right","autoScroll":false},"onClose":function(){
_16(_d);
}};
_17(_d);
wptheme.contextMenu.init(_15);
return true;
}else{
return false;
}
},_17=function(_18){
_8(_18.parentNode,_4);
_19(_18,_3,_5);
},_16=function(_1a){
_9(_1a.parentNode,_4);
_19(_1a,_3,_6);
},_19=function(_1b,_1c,_1d){
_1b.setAttribute(_1c,_1d);
},_14=function(){
var r=_a.getWindow(_a.VIEW_AREA);
return r;
},_13=function(win){
var r=win.ibmCfg.portalConfig.currentPageOID;
return r;
},_10=function(){
var r=_a.getPageIDs();
return r;
};
_b.open=_c;
})(window,i$.fromPath("wpModules.toolbar.ContextMenu",true));


}catch(e){console.log("Module 'wp_toolbar_contextmenu': ",e);}
try{(function(_1){
var _2=_1,_3=_1.document,_4=i$.addClass,_5=i$.removeClass,_6=i$.byId,_7=i$.bindDomEvt,_8="minimized",_9="utb-end-preview-btn",_a=3500,_b=500,_c=function(_d,_e){
var _f=function(){
_4(_d,_8);
};
return setTimeout(_f,_e);
},_10=function(_11,_12){
var _13=function(){
_5(_11,_8);
};
return setTimeout(_13,_12);
};
i$.addOnLoad(function(){
var _14=_6(_9);
if(_14){
var _15=_14.parentNode,_16=_c(_15,_a);
_7(_15,"mouseenter",function(){
if(_16){
clearTimeout(_16);
}
_16=_10(_15,_b);
});
_7(_15,"mouseleave",function(){
if(_16){
clearTimeout(_16);
}
_16=_c(_15,_a);
});
}
});
})(window);


}catch(e){console.log("Module 'wp_toolbar_sitepreview': ",e);}